1 pub type clock_t
= ::c_uint
;
2 pub type suseconds_t
= ::c_int
;
4 pub type blksize_t
= ::int32_t
;
5 pub type fsblkcnt_t
= ::uint64_t
;
6 pub type fsfilcnt_t
= ::uint64_t
;
10 pub d_fileno
: ::ino_t
,
14 pub d_name
: [::c_char
; 512],
18 pub gl_pathc
: ::size_t
,
20 pub gl_offs
: ::size_t
,
22 pub gl_pathv
: *mut *mut ::c_char
,
24 __unused3
: *mut ::c_void
,
26 __unused4
: *mut ::c_void
,
27 __unused5
: *mut ::c_void
,
28 __unused6
: *mut ::c_void
,
29 __unused7
: *mut ::c_void
,
30 __unused8
: *mut ::c_void
,
39 pub st_mode
: ::mode_t
,
41 pub st_nlink
: ::nlink_t
,
45 pub st_atime
: ::time_t
,
46 pub st_atimensec
: ::c_long
,
47 pub st_mtime
: ::time_t
,
48 pub st_mtimensec
: ::c_long
,
49 pub st_ctime
: ::time_t
,
50 pub st_ctimensec
: ::c_long
,
51 pub st_birthtime
: ::time_t
,
52 pub st_birthtimensec
: ::c_long
,
54 pub st_blocks
: ::blkcnt_t
,
55 pub st_blksize
: ::blksize_t
,
56 pub st_flags
: ::uint32_t
,
57 pub st_gen
: ::uint32_t
,
58 pub st_spare
: [::uint32_t
; 2],
62 pub f_flag
: ::c_ulong
,
63 pub f_bsize
: ::c_ulong
,
64 pub f_frsize
: ::c_ulong
,
65 pub f_iosize
: ::c_ulong
,
67 pub f_blocks
: ::fsblkcnt_t
,
68 pub f_bfree
: ::fsblkcnt_t
,
69 pub f_bavail
: ::fsblkcnt_t
,
70 pub f_bresvd
: ::fsblkcnt_t
,
72 pub f_files
: ::fsfilcnt_t
,
73 pub f_ffree
: ::fsfilcnt_t
,
74 pub f_favail
: ::fsfilcnt_t
,
75 pub f_fresvd
: ::fsfilcnt_t
,
77 pub f_syncreads
: ::uint64_t
,
78 pub f_syncwrites
: ::uint64_t
,
80 pub f_asyncreads
: ::uint64_t
,
81 pub f_asyncwrites
: ::uint64_t
,
83 pub f_fsidx
: ::fsid_t
,
84 pub f_fsid
: ::c_ulong
,
85 pub f_namemax
: ::c_ulong
,
88 pub f_spare
: [::uint32_t
; 4],
90 pub f_fstypename
: [::c_char
; 32],
91 pub f_mntonname
: [::c_char
; 1024],
92 pub f_mntfromname
: [::c_char
; 1024],
96 pub ai_flags
: ::c_int
,
97 pub ai_family
: ::c_int
,
98 pub ai_socktype
: ::c_int
,
99 pub ai_protocol
: ::c_int
,
100 pub ai_addrlen
: ::socklen_t
,
101 pub ai_canonname
: *mut ::c_char
,
102 pub ai_addr
: *mut ::sockaddr
,
103 pub ai_next
: *mut ::addrinfo
,
106 pub struct sockaddr_storage
{
108 pub ss_family
: ::sa_family_t
,
111 __ss_pad3
: [u8; 112],
114 pub struct siginfo_t
{
115 pub si_signo
: ::c_int
,
116 pub si_code
: ::c_int
,
117 pub si_errno
: ::c_int
,
119 pub si_addr
: *mut ::c_void
,
123 pub struct pthread_attr_t
{
126 pta_private
: *mut ::c_void
,
129 pub struct pthread_mutex_t
{
131 ptm_errorcheck
: ::c_uchar
,
133 ptm_interlock
: ::c_uchar
,
135 ptm_owner
: ::pthread_t
,
136 ptm_waiters
: *mut u8,
137 ptm_recursed
: ::c_uint
,
138 ptm_spare2
: *mut ::c_void
,
141 pub struct pthread_mutexattr_t
{
142 ptma_magic
: ::c_uint
,
143 ptma_private
: *mut ::c_void
,
146 pub struct pthread_cond_t
{
149 ptc_waiters_first
: *mut u8,
150 ptc_waiters_last
: *mut u8,
151 ptc_mutex
: *mut ::pthread_mutex_t
,
152 ptc_private
: *mut ::c_void
,
155 pub struct pthread_condattr_t
{
156 ptca_magic
: ::c_uint
,
157 ptca_private
: *mut ::c_void
,
160 pub struct pthread_rwlock_t
{
162 ptr_interlock
: ::c_uchar
,
163 ptr_rblocked_first
: *mut u8,
164 ptr_rblocked_last
: *mut u8,
165 ptr_wblocked_first
: *mut u8,
166 ptr_wblocked_last
: *mut u8,
167 ptr_nreaders
: ::c_uint
,
168 ptr_owner
: ::pthread_t
,
169 ptr_private
: *mut ::c_void
,
173 pub ident
: ::uintptr_t
,
174 pub filter
: ::uint32_t
,
175 pub flags
: ::uint32_t
,
176 pub fflags
: ::uint32_t
,
178 pub udata
: ::intptr_t
,
182 pub dqb_bhardlimit
: ::uint32_t
,
183 pub dqb_bsoftlimit
: ::uint32_t
,
184 pub dqb_curblocks
: ::uint32_t
,
185 pub dqb_ihardlimit
: ::uint32_t
,
186 pub dqb_isoftlimit
: ::uint32_t
,
187 pub dqb_curinodes
: ::uint32_t
,
188 pub dqb_btime
: ::int32_t
,
189 pub dqb_itime
: ::int32_t
,
193 pub dli_fname
: *const ::c_char
,
194 pub dli_fbase
: *mut ::c_void
,
195 pub dli_sname
: *const ::c_char
,
196 pub dli_saddr
: *const ::c_void
,
200 pub decimal_point
: *mut ::c_char
,
201 pub thousands_sep
: *mut ::c_char
,
202 pub grouping
: *mut ::c_char
,
203 pub int_curr_symbol
: *mut ::c_char
,
204 pub currency_symbol
: *mut ::c_char
,
205 pub mon_decimal_point
: *mut ::c_char
,
206 pub mon_thousands_sep
: *mut ::c_char
,
207 pub mon_grouping
: *mut ::c_char
,
208 pub positive_sign
: *mut ::c_char
,
209 pub negative_sign
: *mut ::c_char
,
210 pub int_frac_digits
: ::c_char
,
211 pub frac_digits
: ::c_char
,
212 pub p_cs_precedes
: ::c_char
,
213 pub p_sep_by_space
: ::c_char
,
214 pub n_cs_precedes
: ::c_char
,
215 pub n_sep_by_space
: ::c_char
,
216 pub p_sign_posn
: ::c_char
,
217 pub n_sign_posn
: ::c_char
,
218 pub int_p_cs_precedes
: ::c_char
,
219 pub int_n_cs_precedes
: ::c_char
,
220 pub int_p_sep_by_space
: ::c_char
,
221 pub int_n_sep_by_space
: ::c_char
,
222 pub int_p_sign_posn
: ::c_char
,
223 pub int_n_sign_posn
: ::c_char
,
227 pub const LC_COLLATE_MASK
: ::c_int
= (1 << ::LC_COLLATE
);
228 pub const LC_CTYPE_MASK
: ::c_int
= (1 << ::LC_CTYPE
);
229 pub const LC_MONETARY_MASK
: ::c_int
= (1 << ::LC_MONETARY
);
230 pub const LC_NUMERIC_MASK
: ::c_int
= (1 << ::LC_NUMERIC
);
231 pub const LC_TIME_MASK
: ::c_int
= (1 << ::LC_TIME
);
232 pub const LC_MESSAGES_MASK
: ::c_int
= (1 << ::LC_MESSAGES
);
233 pub const LC_ALL_MASK
: ::c_int
= !0;
235 pub const ERA
: ::nl_item
= 52;
236 pub const ERA_D_FMT
: ::nl_item
= 53;
237 pub const ERA_D_T_FMT
: ::nl_item
= 54;
238 pub const ERA_T_FMT
: ::nl_item
= 55;
239 pub const ALT_DIGITS
: ::nl_item
= 56;
241 pub const O_CLOEXEC
: ::c_int
= 0x400000;
242 pub const O_ALT_IO
: ::c_int
= 0x40000;
243 pub const O_NOSIGPIPE
: ::c_int
= 0x1000000;
244 pub const O_SEARCH
: ::c_int
= 0x800000;
245 pub const O_EXLOCK
: ::c_int
= 0x20;
246 pub const O_SHLOCK
: ::c_int
= 0x10;
247 pub const O_DIRECTORY
: ::c_int
= 0x200000;
249 pub const MS_SYNC
: ::c_int
= 0x4;
250 pub const MS_INVALIDATE
: ::c_int
= 0x2;
252 pub const RLIM_NLIMITS
: ::c_int
= 12;
254 pub const ENOATTR
: ::c_int
= 93;
255 pub const EILSEQ
: ::c_int
= 85;
256 pub const EOVERFLOW
: ::c_int
= 84;
257 pub const ECANCELED
: ::c_int
= 87;
258 pub const EIDRM
: ::c_int
= 82;
259 pub const ENOMSG
: ::c_int
= 83;
260 pub const ENOTSUP
: ::c_int
= 86;
261 pub const ELAST
: ::c_int
= 96;
263 pub const F_DUPFD_CLOEXEC
: ::c_int
= 12;
264 pub const F_CLOSEM
: ::c_int
= 10;
265 pub const F_GETNOSIGPIPE
: ::c_int
= 13;
266 pub const F_SETNOSIGPIPE
: ::c_int
= 14;
267 pub const F_MAXFD
: ::c_int
= 11;
269 pub const IPV6_JOIN_GROUP
: ::c_int
= 12;
270 pub const IPV6_LEAVE_GROUP
: ::c_int
= 13;
272 pub const SO_SNDTIMEO
: ::c_int
= 0x100b;
273 pub const SO_RCVTIMEO
: ::c_int
= 0x100c;
275 pub const O_DSYNC
: ::c_int
= 0x10000;
277 pub const MAP_RENAME
: ::c_int
= 0x20;
278 pub const MAP_NORESERVE
: ::c_int
= 0x40;
279 pub const MAP_HASSEMAPHORE
: ::c_int
= 0x200;
280 pub const MAP_WIRED
: ::c_int
= 0x800;
282 pub const _SC_IOV_MAX
: ::c_int
= 32;
283 pub const _SC_GETGR_R_SIZE_MAX
: ::c_int
= 47;
284 pub const _SC_GETPW_R_SIZE_MAX
: ::c_int
= 48;
285 pub const _SC_LOGIN_NAME_MAX
: ::c_int
= 37;
286 pub const _SC_MQ_PRIO_MAX
: ::c_int
= 55;
287 pub const _SC_NPROCESSORS_ONLN
: ::c_int
= 1002;
288 pub const _SC_THREADS
: ::c_int
= 41;
289 pub const _SC_THREAD_ATTR_STACKADDR
: ::c_int
= 61;
290 pub const _SC_THREAD_ATTR_STACKSIZE
: ::c_int
= 62;
291 pub const _SC_THREAD_DESTRUCTOR_ITERATIONS
: ::c_int
= 57;
292 pub const _SC_THREAD_KEYS_MAX
: ::c_int
= 58;
293 pub const _SC_THREAD_PRIO_INHERIT
: ::c_int
= 64;
294 pub const _SC_THREAD_PRIO_PROTECT
: ::c_int
= 65;
295 pub const _SC_THREAD_PRIORITY_SCHEDULING
: ::c_int
= 63;
296 pub const _SC_THREAD_PROCESS_SHARED
: ::c_int
= 66;
297 pub const _SC_THREAD_SAFE_FUNCTIONS
: ::c_int
= 67;
298 pub const _SC_THREAD_STACK_MIN
: ::c_int
= 59;
299 pub const _SC_THREAD_THREADS_MAX
: ::c_int
= 60;
300 pub const _SC_TTY_NAME_MAX
: ::c_int
= 68;
301 pub const _SC_ATEXIT_MAX
: ::c_int
= 40;
302 pub const _SC_CLK_TCK
: ::c_int
= 39;
303 pub const _SC_AIO_LISTIO_MAX
: ::c_int
= 51;
304 pub const _SC_AIO_MAX
: ::c_int
= 52;
305 pub const _SC_ASYNCHRONOUS_IO
: ::c_int
= 50;
306 pub const _SC_MAPPED_FILES
: ::c_int
= 33;
307 pub const _SC_MEMLOCK
: ::c_int
= 34;
308 pub const _SC_MEMLOCK_RANGE
: ::c_int
= 35;
309 pub const _SC_MEMORY_PROTECTION
: ::c_int
= 36;
310 pub const _SC_MESSAGE_PASSING
: ::c_int
= 53;
311 pub const _SC_MQ_OPEN_MAX
: ::c_int
= 54;
312 pub const _SC_PRIORITY_SCHEDULING
: ::c_int
= 56;
313 pub const _SC_SEMAPHORES
: ::c_int
= 42;
314 pub const _SC_SHARED_MEMORY_OBJECTS
: ::c_int
= 87;
315 pub const _SC_SYNCHRONIZED_IO
: ::c_int
= 31;
316 pub const _SC_TIMERS
: ::c_int
= 44;
317 pub const _SC_HOST_NAME_MAX
: ::c_int
= 69;
319 pub const FD_SETSIZE
: usize = 0x100;
321 pub const ST_NOSUID
: ::c_ulong
= 8;
323 pub const PTHREAD_MUTEX_INITIALIZER
: pthread_mutex_t
= pthread_mutex_t
{
324 ptm_magic
: 0x33330003,
327 ptm_waiters
: 0 as *mut _
,
332 ptm_spare2
: 0 as *mut _
,
334 pub const PTHREAD_COND_INITIALIZER
: pthread_cond_t
= pthread_cond_t
{
335 ptc_magic
: 0x55550005,
337 ptc_waiters_first
: 0 as *mut _
,
338 ptc_waiters_last
: 0 as *mut _
,
339 ptc_mutex
: 0 as *mut _
,
340 ptc_private
: 0 as *mut _
,
342 pub const PTHREAD_RWLOCK_INITIALIZER
: pthread_rwlock_t
= pthread_rwlock_t
{
343 ptr_magic
: 0x99990009,
345 ptr_rblocked_first
: 0 as *mut _
,
346 ptr_rblocked_last
: 0 as *mut _
,
347 ptr_wblocked_first
: 0 as *mut _
,
348 ptr_wblocked_last
: 0 as *mut _
,
351 ptr_private
: 0 as *mut _
,
353 pub const PTHREAD_MUTEX_NORMAL
: ::c_int
= 0;
354 pub const PTHREAD_MUTEX_ERRORCHECK
: ::c_int
= 1;
355 pub const PTHREAD_MUTEX_RECURSIVE
: ::c_int
= 2;
356 pub const PTHREAD_MUTEX_DEFAULT
: ::c_int
= PTHREAD_MUTEX_NORMAL
;
358 pub const EVFILT_AIO
: ::int16_t
= 2;
359 pub const EVFILT_PROC
: ::int16_t
= 4;
360 pub const EVFILT_READ
: ::int16_t
= 0;
361 pub const EVFILT_SIGNAL
: ::int16_t
= 5;
362 pub const EVFILT_SYSCOUNT
: ::int16_t
= 7;
363 pub const EVFILT_TIMER
: ::int16_t
= 6;
364 pub const EVFILT_VNODE
: ::int16_t
= 3;
365 pub const EVFILT_WRITE
: ::int16_t
= 1;
367 pub const NOTE_PCTRLMASK
: ::uint32_t
= 0xf0000000;
369 pub const CRTSCTS
: ::tcflag_t
= 0x00010000;
371 pub const TMP_MAX
: ::c_uint
= 308915776;
373 pub const NI_MAXHOST
: ::socklen_t
= 1025;
375 pub const RTLD_NOLOAD
: ::c_int
= 0x2000;
376 pub const RTLD_LOCAL
: ::c_int
= 0x200;
378 pub const CTL_MAXNAME
: ::c_int
= 12;
379 pub const SYSCTL_NAMELEN
: ::c_int
= 32;
380 pub const SYSCTL_DEFSIZE
: ::c_int
= 8;
381 pub const CTLTYPE_NODE
: ::c_int
= 1;
382 pub const CTLTYPE_INT
: ::c_int
= 2;
383 pub const CTLTYPE_STRING
: ::c_int
= 3;
384 pub const CTLTYPE_QUAD
: ::c_int
= 4;
385 pub const CTLTYPE_STRUCT
: ::c_int
= 5;
386 pub const CTLTYPE_BOOL
: ::c_int
= 6;
387 pub const CTLFLAG_READONLY
: ::c_int
= 0x00000000;
388 pub const CTLFLAG_READWRITE
: ::c_int
= 0x00000070;
389 pub const CTLFLAG_ANYWRITE
: ::c_int
= 0x00000080;
390 pub const CTLFLAG_PRIVATE
: ::c_int
= 0x00000100;
391 pub const CTLFLAG_PERMANENT
: ::c_int
= 0x00000200;
392 pub const CTLFLAG_OWNDATA
: ::c_int
= 0x00000400;
393 pub const CTLFLAG_IMMEDIATE
: ::c_int
= 0x00000800;
394 pub const CTLFLAG_HEX
: ::c_int
= 0x00001000;
395 pub const CTLFLAG_ROOT
: ::c_int
= 0x00002000;
396 pub const CTLFLAG_ANYNUMBER
: ::c_int
= 0x00004000;
397 pub const CTLFLAG_HIDDEN
: ::c_int
= 0x00008000;
398 pub const CTLFLAG_ALIAS
: ::c_int
= 0x00010000;
399 pub const CTLFLAG_MMAP
: ::c_int
= 0x00020000;
400 pub const CTLFLAG_OWNDESC
: ::c_int
= 0x00040000;
401 pub const CTLFLAG_UNSIGNED
: ::c_int
= 0x00080000;
402 pub const SYSCTL_VERS_MASK
: ::c_int
= 0xff000000;
403 pub const SYSCTL_VERS_0
: ::c_int
= 0x00000000;
404 pub const SYSCTL_VERS_1
: ::c_int
= 0x01000000;
405 pub const SYSCTL_VERSION
: ::c_int
= SYSCTL_VERS_1
;
406 pub const CTL_EOL
: ::c_int
= -1;
407 pub const CTL_QUERY
: ::c_int
= -2;
408 pub const CTL_CREATE
: ::c_int
= -3;
409 pub const CTL_CREATESYM
: ::c_int
= -4;
410 pub const CTL_DESTROY
: ::c_int
= -5;
411 pub const CTL_MMAP
: ::c_int
= -6;
412 pub const CTL_DESCRIBE
: ::c_int
= -7;
413 pub const CTL_UNSPEC
: ::c_int
= 0;
414 pub const CTL_KERN
: ::c_int
= 1;
415 pub const CTL_VM
: ::c_int
= 2;
416 pub const CTL_VFS
: ::c_int
= 3;
417 pub const CTL_NET
: ::c_int
= 4;
418 pub const CTL_DEBUG
: ::c_int
= 5;
419 pub const CTL_HW
: ::c_int
= 6;
420 pub const CTL_MACHDEP
: ::c_int
= 7;
421 pub const CTL_USER
: ::c_int
= 8;
422 pub const CTL_DDB
: ::c_int
= 9;
423 pub const CTL_PROC
: ::c_int
= 10;
424 pub const CTL_VENDOR
: ::c_int
= 11;
425 pub const CTL_EMUL
: ::c_int
= 12;
426 pub const CTL_SECURITY
: ::c_int
= 13;
427 pub const CTL_MAXID
: ::c_int
= 14;
428 pub const KERN_OSTYPE
: ::c_int
= 1;
429 pub const KERN_OSRELEASE
: ::c_int
= 2;
430 pub const KERN_OSREV
: ::c_int
= 3;
431 pub const KERN_VERSION
: ::c_int
= 4;
432 pub const KERN_MAXVNODES
: ::c_int
= 5;
433 pub const KERN_MAXPROC
: ::c_int
= 6;
434 pub const KERN_MAXFILES
: ::c_int
= 7;
435 pub const KERN_ARGMAX
: ::c_int
= 8;
436 pub const KERN_SECURELVL
: ::c_int
= 9;
437 pub const KERN_HOSTNAME
: ::c_int
= 10;
438 pub const KERN_HOSTID
: ::c_int
= 11;
439 pub const KERN_CLOCKRATE
: ::c_int
= 12;
440 pub const KERN_VNODE
: ::c_int
= 13;
441 pub const KERN_PROC
: ::c_int
= 14;
442 pub const KERN_FILE
: ::c_int
= 15;
443 pub const KERN_PROF
: ::c_int
= 16;
444 pub const KERN_POSIX1
: ::c_int
= 17;
445 pub const KERN_NGROUPS
: ::c_int
= 18;
446 pub const KERN_JOB_CONTROL
: ::c_int
= 19;
447 pub const KERN_SAVED_IDS
: ::c_int
= 20;
448 pub const KERN_OBOOTTIME
: ::c_int
= 21;
449 pub const KERN_DOMAINNAME
: ::c_int
= 22;
450 pub const KERN_MAXPARTITIONS
: ::c_int
= 23;
451 pub const KERN_RAWPARTITION
: ::c_int
= 24;
452 pub const KERN_NTPTIME
: ::c_int
= 25;
453 pub const KERN_TIMEX
: ::c_int
= 26;
454 pub const KERN_AUTONICETIME
: ::c_int
= 27;
455 pub const KERN_AUTONICEVAL
: ::c_int
= 28;
456 pub const KERN_RTC_OFFSET
: ::c_int
= 29;
457 pub const KERN_ROOT_DEVICE
: ::c_int
= 30;
458 pub const KERN_MSGBUFSIZE
: ::c_int
= 31;
459 pub const KERN_FSYNC
: ::c_int
= 32;
460 pub const KERN_OLDSYSVMSG
: ::c_int
= 33;
461 pub const KERN_OLDSYSVSEM
: ::c_int
= 34;
462 pub const KERN_OLDSYSVSHM
: ::c_int
= 35;
463 pub const KERN_OLDSHORTCORENAME
: ::c_int
= 36;
464 pub const KERN_SYNCHRONIZED_IO
: ::c_int
= 37;
465 pub const KERN_IOV_MAX
: ::c_int
= 38;
466 pub const KERN_MBUF
: ::c_int
= 39;
467 pub const KERN_MAPPED_FILES
: ::c_int
= 40;
468 pub const KERN_MEMLOCK
: ::c_int
= 41;
469 pub const KERN_MEMLOCK_RANGE
: ::c_int
= 42;
470 pub const KERN_MEMORY_PROTECTION
: ::c_int
= 43;
471 pub const KERN_LOGIN_NAME_MAX
: ::c_int
= 44;
472 pub const KERN_DEFCORENAME
: ::c_int
= 45;
473 pub const KERN_LOGSIGEXIT
: ::c_int
= 46;
474 pub const KERN_PROC2
: ::c_int
= 47;
475 pub const KERN_PROC_ARGS
: ::c_int
= 48;
476 pub const KERN_FSCALE
: ::c_int
= 49;
477 pub const KERN_CCPU
: ::c_int
= 50;
478 pub const KERN_CP_TIME
: ::c_int
= 51;
479 pub const KERN_OLDSYSVIPC_INFO
: ::c_int
= 52;
480 pub const KERN_MSGBUF
: ::c_int
= 53;
481 pub const KERN_CONSDEV
: ::c_int
= 54;
482 pub const KERN_MAXPTYS
: ::c_int
= 55;
483 pub const KERN_PIPE
: ::c_int
= 56;
484 pub const KERN_MAXPHYS
: ::c_int
= 57;
485 pub const KERN_SBMAX
: ::c_int
= 58;
486 pub const KERN_TKSTAT
: ::c_int
= 59;
487 pub const KERN_MONOTONIC_CLOCK
: ::c_int
= 60;
488 pub const KERN_URND
: ::c_int
= 61;
489 pub const KERN_LABELSECTOR
: ::c_int
= 62;
490 pub const KERN_LABELOFFSET
: ::c_int
= 63;
491 pub const KERN_LWP
: ::c_int
= 64;
492 pub const KERN_FORKFSLEEP
: ::c_int
= 65;
493 pub const KERN_POSIX_THREADS
: ::c_int
= 66;
494 pub const KERN_POSIX_SEMAPHORES
: ::c_int
= 67;
495 pub const KERN_POSIX_BARRIERS
: ::c_int
= 68;
496 pub const KERN_POSIX_TIMERS
: ::c_int
= 69;
497 pub const KERN_POSIX_SPIN_LOCKS
: ::c_int
= 70;
498 pub const KERN_POSIX_READER_WRITER_LOCKS
: ::c_int
= 71;
499 pub const KERN_DUMP_ON_PANIC
: ::c_int
= 72;
500 pub const KERN_SOMAXKVA
: ::c_int
= 73;
501 pub const KERN_ROOT_PARTITION
: ::c_int
= 74;
502 pub const KERN_DRIVERS
: ::c_int
= 75;
503 pub const KERN_BUF
: ::c_int
= 76;
504 pub const KERN_FILE2
: ::c_int
= 77;
505 pub const KERN_VERIEXEC
: ::c_int
= 78;
506 pub const KERN_CP_ID
: ::c_int
= 79;
507 pub const KERN_HARDCLOCK_TICKS
: ::c_int
= 80;
508 pub const KERN_ARND
: ::c_int
= 81;
509 pub const KERN_SYSVIPC
: ::c_int
= 82;
510 pub const KERN_BOOTTIME
: ::c_int
= 83;
511 pub const KERN_EVCNT
: ::c_int
= 84;
512 pub const KERN_MAXID
: ::c_int
= 85;
513 pub const KERN_PROC_ALL
: ::c_int
= 0;
514 pub const KERN_PROC_PID
: ::c_int
= 1;
515 pub const KERN_PROC_PGRP
: ::c_int
= 2;
516 pub const KERN_PROC_SESSION
: ::c_int
= 3;
517 pub const KERN_PROC_TTY
: ::c_int
= 4;
518 pub const KERN_PROC_UID
: ::c_int
= 5;
519 pub const KERN_PROC_RUID
: ::c_int
= 6;
520 pub const KERN_PROC_GID
: ::c_int
= 7;
521 pub const KERN_PROC_RGID
: ::c_int
= 8;
524 pub fn getnameinfo(sa
: *const ::sockaddr
,
527 hostlen
: ::socklen_t
,
530 flags
: ::c_int
) -> ::c_int
;
531 pub fn mprotect(addr
: *mut ::c_void
, len
: ::size_t
, prot
: ::c_int
)
533 pub fn sysctl(name
: *const ::c_int
,
536 oldlenp
: *mut ::size_t
,
537 newp
: *const ::c_void
,
540 pub fn sysctlbyname(name
: *const ::c_char
,
542 oldlenp
: *mut ::size_t
,
543 newp
: *const ::c_void
,
546 #[link_name = "__kevent50"]
547 pub fn kevent(kq
: ::c_int
,
548 changelist
: *const ::kevent
,
550 eventlist
: *mut ::kevent
,
552 timeout
: *const ::timespec
) -> ::c_int
;
553 #[link_name = "__mount50"]
554 pub fn mount(src
: *const ::c_char
,
555 target
: *const ::c_char
,
558 size
: ::size_t
) -> ::c_int
;
559 pub fn ptrace(requeset
: ::c_int
,
562 data
: ::c_int
) -> ::c_int
;
563 pub fn sethostname(name
: *const ::c_char
, len
: ::size_t
) -> ::c_int
;
564 pub fn pthread_setname_np(t
: ::pthread_t
,
565 name
: *const ::c_char
,
566 arg
: *mut ::c_void
) -> ::c_int
;
567 pub fn pthread_getattr_np(native
: ::pthread_t
,
568 attr
: *mut ::pthread_attr_t
) -> ::c_int
;
569 pub fn pthread_attr_getguardsize(attr
: *const ::pthread_attr_t
,
570 guardsize
: *mut ::size_t
) -> ::c_int
;
571 pub fn pthread_attr_getstack(attr
: *const ::pthread_attr_t
,
572 stackaddr
: *mut *mut ::c_void
,
573 stacksize
: *mut ::size_t
) -> ::c_int
;
574 #[link_name = "__sigtimedwait50"]
575 pub fn sigtimedwait(set
: *const sigset_t
,
576 info
: *mut siginfo_t
,
577 timeout
: *const ::timespec
) -> ::c_int
;
578 pub fn sigwaitinfo(set
: *const sigset_t
,
579 info
: *mut siginfo_t
) -> ::c_int
;
580 pub fn duplocale(base
: ::locale_t
) -> ::locale_t
;
581 pub fn freelocale(loc
: ::locale_t
);
582 pub fn localeconv_l(loc
: ::locale_t
) -> *mut lconv
;
583 pub fn newlocale(mask
: ::c_int
,
584 locale
: *const ::c_char
,
585 base
: ::locale_t
) -> ::locale_t
;