File tree Expand file tree Collapse file tree 6 files changed +6
-0
lines changed Expand file tree Collapse file tree 6 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ extern {
232
232
pub fn strpbrk ( cs : * const c_char , ct : * const c_char ) -> * mut c_char ;
233
233
pub fn strstr ( cs : * const c_char , ct : * const c_char ) -> * mut c_char ;
234
234
pub fn strlen ( cs : * const c_char ) -> size_t ;
235
+ pub fn strnlen ( cs : * const c_char , maxlen : size_t ) -> size_t ;
235
236
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
236
237
link_name = "strerror$UNIX2003" ) ]
237
238
pub fn strerror ( n : c_int ) -> * mut c_char ;
Original file line number Diff line number Diff line change @@ -643,6 +643,7 @@ pub const _SC_SEM_NSEMS_MAX: ::c_int = 49;
643
643
pub const _SC_SEM_VALUE_MAX: :: c_int = 50 ;
644
644
pub const _SC_SIGQUEUE_MAX: :: c_int = 51 ;
645
645
pub const _SC_TIMER_MAX: :: c_int = 52 ;
646
+ pub const _SC_HOST_NAME_MAX: :: c_int = 72 ;
646
647
647
648
pub const PTHREAD_MUTEX_INITIALIZER : pthread_mutex_t = 0 as * mut _ ;
648
649
pub const PTHREAD_COND_INITIALIZER : pthread_cond_t = 0 as * mut _ ;
Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ pub const _SC_REALTIME_SIGNALS : ::c_int = 64;
262
262
pub const _SC_RTSIG_MAX : :: c_int = 66 ;
263
263
pub const _SC_SIGQUEUE_MAX : :: c_int = 70 ;
264
264
pub const _SC_TIMER_MAX : :: c_int = 93 ;
265
+ pub const _SC_HOST_NAME_MAX: :: c_int = 33 ;
265
266
266
267
pub const FD_SETSIZE : usize = 1024 ;
267
268
Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ pub const _SC_SEMAPHORES : ::c_int = 42;
310
310
pub const _SC_SHARED_MEMORY_OBJECTS : :: c_int = 87 ;
311
311
pub const _SC_SYNCHRONIZED_IO : :: c_int = 31 ;
312
312
pub const _SC_TIMERS : :: c_int = 44 ;
313
+ pub const _SC_HOST_NAME_MAX : :: c_int = 69 ;
313
314
314
315
pub const FD_SETSIZE : usize = 0x100 ;
315
316
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ pub const _SC_REALTIME_SIGNALS : ::c_int = 64;
231
231
pub const _SC_RTSIG_MAX : :: c_int = 66 ;
232
232
pub const _SC_SIGQUEUE_MAX : :: c_int = 70 ;
233
233
pub const _SC_TIMER_MAX : :: c_int = 93 ;
234
+ pub const _SC_HOST_NAME_MAX : :: c_int = 33 ;
234
235
235
236
pub const FD_SETSIZE : usize = 1024 ;
236
237
Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ pub const _SC_XBS5_LPBIG_OFFBIG: ::c_int = 128;
339
339
pub const _SC_XOPEN_LEGACY: :: c_int = 129 ;
340
340
pub const _SC_XOPEN_REALTIME: :: c_int = 130 ;
341
341
pub const _SC_XOPEN_REALTIME_THREADS: :: c_int = 131 ;
342
+ pub const _SC_HOST_NAME_MAX: :: c_int = 180 ;
342
343
343
344
pub const RLIM_SAVED_MAX : :: rlim_t = RLIM_INFINITY ;
344
345
pub const RLIM_SAVED_CUR : :: rlim_t = RLIM_INFINITY ;
You can’t perform that action at this time.
0 commit comments