Skip to content

Commit f5b64dd

Browse files
committed
Merge branch 'syslog' of https://github.com/lemonrock/libc into syslog
2 parents 1c6c0ca + 3045cb2 commit f5b64dd

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ extern {
232232
pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;
233233
pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;
234234
pub fn strlen(cs: *const c_char) -> size_t;
235+
pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t;
235236
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
236237
link_name = "strerror$UNIX2003")]
237238
pub fn strerror(n: c_int) -> *mut c_char;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ pub const _SC_SEM_NSEMS_MAX: ::c_int = 49;
643643
pub const _SC_SEM_VALUE_MAX: ::c_int = 50;
644644
pub const _SC_SIGQUEUE_MAX: ::c_int = 51;
645645
pub const _SC_TIMER_MAX: ::c_int = 52;
646+
pub const _SC_HOST_NAME_MAX: ::c_int = 72;
646647

647648
pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = 0 as *mut _;
648649
pub const PTHREAD_COND_INITIALIZER: pthread_cond_t = 0 as *mut _;

src/unix/bsd/openbsdlike/bitrig.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ pub const _SC_REALTIME_SIGNALS : ::c_int = 64;
262262
pub const _SC_RTSIG_MAX : ::c_int = 66;
263263
pub const _SC_SIGQUEUE_MAX : ::c_int = 70;
264264
pub const _SC_TIMER_MAX : ::c_int = 93;
265+
pub const _SC_HOST_NAME_MAX: ::c_int = 33;
265266

266267
pub const FD_SETSIZE: usize = 1024;
267268

src/unix/bsd/openbsdlike/netbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ pub const _SC_SEMAPHORES : ::c_int = 42;
310310
pub const _SC_SHARED_MEMORY_OBJECTS : ::c_int = 87;
311311
pub const _SC_SYNCHRONIZED_IO : ::c_int = 31;
312312
pub const _SC_TIMERS : ::c_int = 44;
313+
pub const _SC_HOST_NAME_MAX : ::c_int = 69;
313314

314315
pub const FD_SETSIZE: usize = 0x100;
315316

src/unix/bsd/openbsdlike/openbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ pub const _SC_REALTIME_SIGNALS : ::c_int = 64;
231231
pub const _SC_RTSIG_MAX : ::c_int = 66;
232232
pub const _SC_SIGQUEUE_MAX : ::c_int = 70;
233233
pub const _SC_TIMER_MAX : ::c_int = 93;
234+
pub const _SC_HOST_NAME_MAX : ::c_int = 33;
234235

235236
pub const FD_SETSIZE: usize = 1024;
236237

src/unix/notbsd/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ pub const _SC_XBS5_LPBIG_OFFBIG: ::c_int = 128;
339339
pub const _SC_XOPEN_LEGACY: ::c_int = 129;
340340
pub const _SC_XOPEN_REALTIME: ::c_int = 130;
341341
pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 131;
342+
pub const _SC_HOST_NAME_MAX: ::c_int = 180;
342343

343344
pub const RLIM_SAVED_MAX: ::rlim_t = RLIM_INFINITY;
344345
pub const RLIM_SAVED_CUR: ::rlim_t = RLIM_INFINITY;

0 commit comments

Comments
 (0)