1 pub type blkcnt_t
= i64;
2 pub type blksize_t
= i64;
5 pub type c_ulong
= u64;
6 pub type fsblkcnt_t
= u64;
7 pub type fsfilcnt_t
= u64;
9 pub type nlink_t
= u64;
11 pub type rlim_t
= u64;
12 pub type suseconds_t
= i64;
13 pub type time_t
= i64;
14 pub type wchar_t
= i32;
15 pub type greg_t
= u64;
16 pub type clock_t
= i64;
17 pub type __fsword_t
= ::c_long
;
18 pub type __priority_which_t
= ::c_uint
;
23 pub aio_fildes
: ::c_int
,
24 pub aio_lio_opcode
: ::c_int
,
25 pub aio_reqprio
: ::c_int
,
26 pub aio_buf
: *mut ::c_void
,
27 pub aio_nbytes
: ::size_t
,
28 pub aio_sigevent
: ::sigevent
,
29 __next_prio
: *mut aiocb
,
32 __error_code
: ::c_int
,
33 __return_value
: ::ssize_t
,
34 pub aio_offset
: off_t
,
35 #[cfg(target_pointer_width = "32")]
36 __unused1
: [::c_char
; 4],
37 __glibc_reserved
: [::c_char
; 32]
43 pub st_nlink
: ::nlink_t
,
44 pub st_mode
: ::mode_t
,
50 pub st_atime
: ::time_t
,
51 pub st_atime_nsec
: ::c_long
,
52 pub st_mtime
: ::time_t
,
53 pub st_mtime_nsec
: ::c_long
,
54 pub st_ctime
: ::time_t
,
55 pub st_ctime_nsec
: ::c_long
,
56 pub st_blksize
: ::blksize_t
,
57 pub st_blocks
: ::blkcnt_t
,
58 __glibc_reserved
: [::c_long
; 3],
63 pub st_ino
: ::ino64_t
,
64 pub st_nlink
: ::nlink_t
,
65 pub st_mode
: ::mode_t
,
71 pub st_atime
: ::time_t
,
72 pub st_atime_nsec
: ::c_long
,
73 pub st_mtime
: ::time_t
,
74 pub st_mtime_nsec
: ::c_long
,
75 pub st_ctime
: ::time_t
,
76 pub st_ctime_nsec
: ::c_long
,
77 pub st_blksize
: ::blksize_t
,
78 pub st_blocks
: ::blkcnt64_t
,
79 __glibc_reserved
: [::c_long
; 3],
82 pub struct pthread_attr_t
{
83 __size
: [::c_ulong
; 7]
86 pub struct sigaction
{
87 pub sa_sigaction
: ::sighandler_t
,
88 __glibc_reserved0
: ::c_int
,
89 pub sa_flags
: ::c_int
,
90 pub sa_restorer
: ::dox
::Option
<extern fn()>,
91 pub sa_mask
: sigset_t
,
95 pub ss_sp
: *mut ::c_void
,
96 pub ss_flags
: ::c_int
,
97 pub ss_size
: ::size_t
,
100 pub struct sigset_t
{
101 __size
: [::c_ulong
; 16],
104 pub struct siginfo_t
{
105 pub si_signo
: ::c_int
,
106 pub si_errno
: ::c_int
,
107 pub si_code
: ::c_int
,
109 _pad2
: [::c_long
; 14],
112 pub struct ipc_perm
{
119 pub __seq
: ::c_ushort
,
121 __unused1
: ::c_ulong
,
125 pub struct shmid_ds
{
126 pub shm_perm
: ::ipc_perm
,
127 pub shm_segsz
: ::size_t
,
128 pub shm_atime
: ::time_t
,
129 pub shm_dtime
: ::time_t
,
130 pub shm_ctime
: ::time_t
,
131 pub shm_cpid
: ::pid_t
,
132 pub shm_lpid
: ::pid_t
,
133 pub shm_nattch
: ::shmatt_t
,
134 __unused4
: ::c_ulong
,
139 pub f_type
: ::c_uint
,
140 pub f_bsize
: ::c_uint
,
141 pub f_blocks
: ::fsblkcnt_t
,
142 pub f_bfree
: ::fsblkcnt_t
,
143 pub f_bavail
: ::fsblkcnt_t
,
144 pub f_files
: ::fsfilcnt_t
,
145 pub f_ffree
: ::fsfilcnt_t
,
146 pub f_fsid
: ::fsid_t
,
147 pub f_namelen
: ::c_uint
,
148 pub f_frsize
: ::c_uint
,
149 pub f_flags
: ::c_uint
,
150 f_spare
: [::c_uint
; 4],
154 pub msg_name
: *mut ::c_void
,
155 pub msg_namelen
: ::socklen_t
,
156 pub msg_iov
: *mut ::iovec
,
157 pub msg_iovlen
: ::size_t
,
158 pub msg_control
: *mut ::c_void
,
159 pub msg_controllen
: ::size_t
,
160 pub msg_flags
: ::c_int
,
164 pub cmsg_len
: ::size_t
,
165 pub cmsg_level
: ::c_int
,
166 pub cmsg_type
: ::c_int
,
170 pub c_iflag
: ::tcflag_t
,
171 pub c_oflag
: ::tcflag_t
,
172 pub c_cflag
: ::tcflag_t
,
173 pub c_lflag
: ::tcflag_t
,
175 pub c_cc
: [::cc_t
; ::NCCS
],
176 pub c_ispeed
: ::speed_t
,
177 pub c_ospeed
: ::speed_t
,
181 pub uptime
: ::c_long
,
182 pub loads
: [::c_ulong
; 3],
183 pub totalram
: ::c_ulong
,
184 pub freeram
: ::c_ulong
,
185 pub sharedram
: ::c_ulong
,
186 pub bufferram
: ::c_ulong
,
187 pub totalswap
: ::c_ulong
,
188 pub freeswap
: ::c_ulong
,
189 pub procs
: ::c_ushort
,
191 pub totalhigh
: ::c_ulong
,
192 pub freehigh
: ::c_ulong
,
193 pub mem_unit
: ::c_uint
,
194 pub _f
: [::c_char
; 0],
197 pub struct glob64_t
{
198 pub gl_pathc
: ::size_t
,
199 pub gl_pathv
: *mut *mut ::c_char
,
200 pub gl_offs
: ::size_t
,
201 pub gl_flags
: ::c_int
,
203 __unused1
: *mut ::c_void
,
204 __unused2
: *mut ::c_void
,
205 __unused3
: *mut ::c_void
,
206 __unused4
: *mut ::c_void
,
207 __unused5
: *mut ::c_void
,
217 pub l_type
: ::c_short
,
218 pub l_whence
: ::c_short
,
219 pub l_start
: ::off_t
,
224 // FIXME this is actually a union
226 __size
: [::c_char
; 32],
227 __align
: [::c_long
; 0],
235 // FIXME: This is actually a union.
241 pub struct fpregset_t
{
244 pub fprs
: [fpreg_t
; 16],
247 pub struct mcontext_t
{
249 pub gregs
: [u64; 16],
250 pub aregs
: [u32; 16],
251 pub fpregs
: fpregset_t
,
254 pub struct ucontext_t
{
255 pub uc_flags
: ::c_ulong
,
256 pub uc_link
: *mut ucontext_t
,
257 pub uc_stack
: ::stack_t
,
258 pub uc_mcontext
: mcontext_t
,
259 pub uc_sigmask
: ::sigset_t
,
262 pub struct msqid_ds
{
263 pub msg_perm
: ::ipc_perm
,
264 pub msg_stime
: ::time_t
,
265 pub msg_rtime
: ::time_t
,
266 pub msg_ctime
: ::time_t
,
267 __msg_cbytes
: ::c_ulong
,
268 pub msg_qnum
: ::msgqnum_t
,
269 pub msg_qbytes
: ::msglen_t
,
270 pub msg_lspid
: ::pid_t
,
271 pub msg_lrpid
: ::pid_t
,
272 __glibc_reserved4
: ::c_ulong
,
273 __glibc_reserved5
: ::c_ulong
,
277 pub const SFD_CLOEXEC
: ::c_int
= 0x080000;
279 pub const NCCS
: usize = 32;
281 pub const O_TRUNC
: ::c_int
= 512;
283 pub const O_CLOEXEC
: ::c_int
= 0x80000;
285 pub const EBFONT
: ::c_int
= 59;
286 pub const ENOSTR
: ::c_int
= 60;
287 pub const ENODATA
: ::c_int
= 61;
288 pub const ETIME
: ::c_int
= 62;
289 pub const ENOSR
: ::c_int
= 63;
290 pub const ENONET
: ::c_int
= 64;
291 pub const ENOPKG
: ::c_int
= 65;
292 pub const EREMOTE
: ::c_int
= 66;
293 pub const ENOLINK
: ::c_int
= 67;
294 pub const EADV
: ::c_int
= 68;
295 pub const ESRMNT
: ::c_int
= 69;
296 pub const ECOMM
: ::c_int
= 70;
297 pub const EPROTO
: ::c_int
= 71;
298 pub const EDOTDOT
: ::c_int
= 73;
300 pub const SA_NODEFER
: ::c_int
= 0x40000000;
301 pub const SA_RESETHAND
: ::c_int
= 0x80000000;
302 pub const SA_RESTART
: ::c_int
= 0x10000000;
303 pub const SA_NOCLDSTOP
: ::c_int
= 0x00000001;
305 pub const EPOLL_CLOEXEC
: ::c_int
= 0x80000;
307 pub const EFD_CLOEXEC
: ::c_int
= 0x80000;
309 pub const POSIX_FADV_DONTNEED
: ::c_int
= 6;
310 pub const POSIX_FADV_NOREUSE
: ::c_int
= 7;
312 pub const __SIZEOF_PTHREAD_CONDATTR_T
: usize = 4;
313 pub const __SIZEOF_PTHREAD_MUTEXATTR_T
: usize = 4;
314 pub const __SIZEOF_PTHREAD_MUTEX_T
: usize = 40;
315 pub const __SIZEOF_PTHREAD_RWLOCK_T
: usize = 56;
316 pub const __SIZEOF_PTHREAD_RWLOCKATTR_T
: usize = 8;
318 pub const EADDRINUSE
: ::c_int
= 98;
319 pub const EADDRNOTAVAIL
: ::c_int
= 99;
320 pub const ECONNABORTED
: ::c_int
= 103;
321 pub const ECONNREFUSED
: ::c_int
= 111;
322 pub const ECONNRESET
: ::c_int
= 104;
323 pub const EDEADLK
: ::c_int
= 35;
324 pub const ENOSYS
: ::c_int
= 38;
325 pub const ENOTCONN
: ::c_int
= 107;
326 pub const ETIMEDOUT
: ::c_int
= 110;
327 pub const FIOCLEX
: ::c_ulong
= 0x5451;
328 pub const FIONBIO
: ::c_ulong
= 0x5421;
329 pub const MAP_ANON
: ::c_int
= 0x20;
330 pub const O_ACCMODE
: ::c_int
= 3;
331 pub const O_APPEND
: ::c_int
= 1024;
332 pub const O_CREAT
: ::c_int
= 64;
333 pub const O_EXCL
: ::c_int
= 128;
334 pub const O_NONBLOCK
: ::c_int
= 2048;
335 pub const PTHREAD_STACK_MIN
: ::size_t
= 16384;
336 pub const RLIM_INFINITY
: ::rlim_t
= 0xffffffffffffffff;
337 pub const SA_NOCLDWAIT
: ::c_int
= 2;
338 pub const SA_ONSTACK
: ::c_int
= 0x08000000;
339 pub const SA_SIGINFO
: ::c_int
= 4;
340 pub const SIGBUS
: ::c_int
= 7;
341 pub const SIGSTKSZ
: ::size_t
= 0x2000;
342 pub const MINSIGSTKSZ
: ::size_t
= 2048;
343 pub const SIG_SETMASK
: ::c_int
= 2;
344 pub const SOCK_DGRAM
: ::c_int
= 2;
345 pub const SOCK_STREAM
: ::c_int
= 1;
346 pub const SOL_SOCKET
: ::c_int
= 1;
347 pub const SO_BROADCAST
: ::c_int
= 6;
348 pub const SO_ERROR
: ::c_int
= 4;
349 pub const SO_RCVTIMEO
: ::c_int
= 20;
350 pub const SO_REUSEADDR
: ::c_int
= 2;
351 pub const SO_SNDTIMEO
: ::c_int
= 21;
352 pub const SO_BINDTODEVICE
: ::c_int
= 25;
353 pub const SO_TIMESTAMP
: ::c_int
= 29;
354 pub const SO_MARK
: ::c_int
= 36;
355 pub const SO_PROTOCOL
: ::c_int
= 38;
356 pub const SO_DOMAIN
: ::c_int
= 39;
357 pub const SO_RXQ_OVFL
: ::c_int
= 40;
358 pub const SO_PEEK_OFF
: ::c_int
= 42;
359 pub const SO_BUSY_POLL
: ::c_int
= 46;
361 pub const RLIMIT_RSS
: ::c_int
= 5;
362 pub const RLIMIT_NOFILE
: ::c_int
= 7;
363 pub const RLIMIT_AS
: ::c_int
= 9;
364 pub const RLIMIT_NPROC
: ::c_int
= 6;
365 pub const RLIMIT_MEMLOCK
: ::c_int
= 8;
366 pub const RLIMIT_RTTIME
: ::c_int
= 15;
367 pub const RLIMIT_NLIMITS
: ::c_int
= 16;
369 pub const O_NOCTTY
: ::c_int
= 256;
370 pub const O_SYNC
: ::c_int
= 1052672;
371 pub const O_RSYNC
: ::c_int
= 1052672;
372 pub const O_DSYNC
: ::c_int
= 4096;
373 pub const O_FSYNC
: ::c_int
= 0x101000;
374 pub const O_DIRECT
: ::c_int
= 0x4000;
375 pub const O_DIRECTORY
: ::c_int
= 0x10000;
376 pub const O_NOFOLLOW
: ::c_int
= 0x20000;
378 pub const SOCK_NONBLOCK
: ::c_int
= O_NONBLOCK
;
380 pub const LC_PAPER
: ::c_int
= 7;
381 pub const LC_NAME
: ::c_int
= 8;
382 pub const LC_ADDRESS
: ::c_int
= 9;
383 pub const LC_TELEPHONE
: ::c_int
= 10;
384 pub const LC_MEASUREMENT
: ::c_int
= 11;
385 pub const LC_IDENTIFICATION
: ::c_int
= 12;
386 pub const LC_PAPER_MASK
: ::c_int
= (1 << LC_PAPER
);
387 pub const LC_NAME_MASK
: ::c_int
= (1 << LC_NAME
);
388 pub const LC_ADDRESS_MASK
: ::c_int
= (1 << LC_ADDRESS
);
389 pub const LC_TELEPHONE_MASK
: ::c_int
= (1 << LC_TELEPHONE
);
390 pub const LC_MEASUREMENT_MASK
: ::c_int
= (1 << LC_MEASUREMENT
);
391 pub const LC_IDENTIFICATION_MASK
: ::c_int
= (1 << LC_IDENTIFICATION
);
392 pub const LC_ALL_MASK
: ::c_int
= ::LC_CTYPE_MASK
402 | LC_MEASUREMENT_MASK
403 | LC_IDENTIFICATION_MASK
;
405 pub const MAP_ANONYMOUS
: ::c_int
= 0x0020;
406 pub const MAP_GROWSDOWN
: ::c_int
= 0x0100;
407 pub const MAP_DENYWRITE
: ::c_int
= 0x0800;
408 pub const MAP_EXECUTABLE
: ::c_int
= 0x01000;
409 pub const MAP_LOCKED
: ::c_int
= 0x02000;
410 pub const MAP_NORESERVE
: ::c_int
= 0x04000;
411 pub const MAP_POPULATE
: ::c_int
= 0x08000;
412 pub const MAP_NONBLOCK
: ::c_int
= 0x010000;
413 pub const MAP_STACK
: ::c_int
= 0x020000;
415 pub const EDEADLOCK
: ::c_int
= 35;
416 pub const ENAMETOOLONG
: ::c_int
= 36;
417 pub const ENOLCK
: ::c_int
= 37;
418 pub const ENOTEMPTY
: ::c_int
= 39;
419 pub const ELOOP
: ::c_int
= 40;
420 pub const ENOMSG
: ::c_int
= 42;
421 pub const EIDRM
: ::c_int
= 43;
422 pub const ECHRNG
: ::c_int
= 44;
423 pub const EL2NSYNC
: ::c_int
= 45;
424 pub const EL3HLT
: ::c_int
= 46;
425 pub const EL3RST
: ::c_int
= 47;
426 pub const ELNRNG
: ::c_int
= 48;
427 pub const EUNATCH
: ::c_int
= 49;
428 pub const ENOCSI
: ::c_int
= 50;
429 pub const EL2HLT
: ::c_int
= 51;
430 pub const EBADE
: ::c_int
= 52;
431 pub const EBADR
: ::c_int
= 53;
432 pub const EXFULL
: ::c_int
= 54;
433 pub const ENOANO
: ::c_int
= 55;
434 pub const EBADRQC
: ::c_int
= 56;
435 pub const EBADSLT
: ::c_int
= 57;
436 pub const EMULTIHOP
: ::c_int
= 72;
437 pub const EOVERFLOW
: ::c_int
= 75;
438 pub const ENOTUNIQ
: ::c_int
= 76;
439 pub const EBADFD
: ::c_int
= 77;
440 pub const EBADMSG
: ::c_int
= 74;
441 pub const EREMCHG
: ::c_int
= 78;
442 pub const ELIBACC
: ::c_int
= 79;
443 pub const ELIBBAD
: ::c_int
= 80;
444 pub const ELIBSCN
: ::c_int
= 81;
445 pub const ELIBMAX
: ::c_int
= 82;
446 pub const ELIBEXEC
: ::c_int
= 83;
447 pub const EILSEQ
: ::c_int
= 84;
448 pub const ERESTART
: ::c_int
= 85;
449 pub const ESTRPIPE
: ::c_int
= 86;
450 pub const EUSERS
: ::c_int
= 87;
451 pub const ENOTSOCK
: ::c_int
= 88;
452 pub const EDESTADDRREQ
: ::c_int
= 89;
453 pub const EMSGSIZE
: ::c_int
= 90;
454 pub const EPROTOTYPE
: ::c_int
= 91;
455 pub const ENOPROTOOPT
: ::c_int
= 92;
456 pub const EPROTONOSUPPORT
: ::c_int
= 93;
457 pub const ESOCKTNOSUPPORT
: ::c_int
= 94;
458 pub const EOPNOTSUPP
: ::c_int
= 95;
459 pub const ENOTSUP
: ::c_int
= EOPNOTSUPP
;
460 pub const EPFNOSUPPORT
: ::c_int
= 96;
461 pub const EAFNOSUPPORT
: ::c_int
= 97;
462 pub const ENETDOWN
: ::c_int
= 100;
463 pub const ENETUNREACH
: ::c_int
= 101;
464 pub const ENETRESET
: ::c_int
= 102;
465 pub const ENOBUFS
: ::c_int
= 105;
466 pub const EISCONN
: ::c_int
= 106;
467 pub const ESHUTDOWN
: ::c_int
= 108;
468 pub const ETOOMANYREFS
: ::c_int
= 109;
469 pub const EHOSTDOWN
: ::c_int
= 112;
470 pub const EHOSTUNREACH
: ::c_int
= 113;
471 pub const EALREADY
: ::c_int
= 114;
472 pub const EINPROGRESS
: ::c_int
= 115;
473 pub const ESTALE
: ::c_int
= 116;
474 pub const EUCLEAN
: ::c_int
= 117;
475 pub const ENOTNAM
: ::c_int
= 118;
476 pub const ENAVAIL
: ::c_int
= 119;
477 pub const EISNAM
: ::c_int
= 120;
478 pub const EREMOTEIO
: ::c_int
= 121;
479 pub const EDQUOT
: ::c_int
= 122;
480 pub const ENOMEDIUM
: ::c_int
= 123;
481 pub const EMEDIUMTYPE
: ::c_int
= 124;
482 pub const ECANCELED
: ::c_int
= 125;
483 pub const ENOKEY
: ::c_int
= 126;
484 pub const EKEYEXPIRED
: ::c_int
= 127;
485 pub const EKEYREVOKED
: ::c_int
= 128;
486 pub const EKEYREJECTED
: ::c_int
= 129;
487 pub const EOWNERDEAD
: ::c_int
= 130;
488 pub const ENOTRECOVERABLE
: ::c_int
= 131;
489 pub const EHWPOISON
: ::c_int
= 133;
490 pub const ERFKILL
: ::c_int
= 132;
492 pub const SOCK_SEQPACKET
: ::c_int
= 5;
494 pub const SO_TYPE
: ::c_int
= 3;
495 pub const SO_DONTROUTE
: ::c_int
= 5;
496 pub const SO_SNDBUF
: ::c_int
= 7;
497 pub const SO_RCVBUF
: ::c_int
= 8;
498 pub const SO_KEEPALIVE
: ::c_int
= 9;
499 pub const SO_OOBINLINE
: ::c_int
= 10;
500 pub const SO_LINGER
: ::c_int
= 13;
501 pub const SO_REUSEPORT
: ::c_int
= 15;
502 pub const SO_PEERCRED
: ::c_int
= 17;
503 pub const SO_RCVLOWAT
: ::c_int
= 18;
504 pub const SO_SNDLOWAT
: ::c_int
= 19;
505 pub const SO_ACCEPTCONN
: ::c_int
= 30;
507 pub const TCP_COOKIE_TRANSACTIONS
: ::c_int
= 15;
508 pub const TCP_THIN_LINEAR_TIMEOUTS
: ::c_int
= 16;
509 pub const TCP_THIN_DUPACK
: ::c_int
= 17;
510 pub const TCP_USER_TIMEOUT
: ::c_int
= 18;
511 pub const TCP_REPAIR
: ::c_int
= 19;
512 pub const TCP_REPAIR_QUEUE
: ::c_int
= 20;
513 pub const TCP_QUEUE_SEQ
: ::c_int
= 21;
514 pub const TCP_REPAIR_OPTIONS
: ::c_int
= 22;
515 pub const TCP_FASTOPEN
: ::c_int
= 23;
516 pub const TCP_TIMESTAMP
: ::c_int
= 24;
518 pub const SIGCHLD
: ::c_int
= 17;
519 pub const SIGUSR1
: ::c_int
= 10;
520 pub const SIGUSR2
: ::c_int
= 12;
521 pub const SIGCONT
: ::c_int
= 18;
522 pub const SIGSTOP
: ::c_int
= 19;
523 pub const SIGTSTP
: ::c_int
= 20;
524 pub const SIGURG
: ::c_int
= 23;
525 pub const SIGIO
: ::c_int
= 29;
526 pub const SIGSYS
: ::c_int
= 31;
527 pub const SIGSTKFLT
: ::c_int
= 16;
528 pub const SIGUNUSED
: ::c_int
= 31;
529 pub const SIGTTIN
: ::c_int
= 21;
530 pub const SIGTTOU
: ::c_int
= 22;
531 pub const SIGXCPU
: ::c_int
= 24;
532 pub const SIGXFSZ
: ::c_int
= 25;
533 pub const SIGVTALRM
: ::c_int
= 26;
534 pub const SIGPROF
: ::c_int
= 27;
535 pub const SIGWINCH
: ::c_int
= 28;
536 pub const SIGPOLL
: ::c_int
= 29;
537 pub const SIGPWR
: ::c_int
= 30;
538 pub const SIG_BLOCK
: ::c_int
= 0x000000;
539 pub const SIG_UNBLOCK
: ::c_int
= 0x01;
541 pub const FALLOC_FL_KEEP_SIZE
: ::c_int
= 0x01;
542 pub const FALLOC_FL_PUNCH_HOLE
: ::c_int
= 0x02;
544 pub const BUFSIZ
: ::c_uint
= 8192;
545 pub const TMP_MAX
: ::c_uint
= 238328;
546 pub const FOPEN_MAX
: ::c_uint
= 16;
547 pub const POSIX_MADV_DONTNEED
: ::c_int
= 4;
548 pub const _SC_EQUIV_CLASS_MAX
: ::c_int
= 41;
549 pub const _SC_CHARCLASS_NAME_MAX
: ::c_int
= 45;
550 pub const _SC_PII
: ::c_int
= 53;
551 pub const _SC_PII_XTI
: ::c_int
= 54;
552 pub const _SC_PII_SOCKET
: ::c_int
= 55;
553 pub const _SC_PII_INTERNET
: ::c_int
= 56;
554 pub const _SC_PII_OSI
: ::c_int
= 57;
555 pub const _SC_POLL
: ::c_int
= 58;
556 pub const _SC_SELECT
: ::c_int
= 59;
557 pub const _SC_PII_INTERNET_STREAM
: ::c_int
= 61;
558 pub const _SC_PII_INTERNET_DGRAM
: ::c_int
= 62;
559 pub const _SC_PII_OSI_COTS
: ::c_int
= 63;
560 pub const _SC_PII_OSI_CLTS
: ::c_int
= 64;
561 pub const _SC_PII_OSI_M
: ::c_int
= 65;
562 pub const _SC_T_IOV_MAX
: ::c_int
= 66;
563 pub const _SC_2_C_VERSION
: ::c_int
= 96;
564 pub const _SC_CHAR_BIT
: ::c_int
= 101;
565 pub const _SC_CHAR_MAX
: ::c_int
= 102;
566 pub const _SC_CHAR_MIN
: ::c_int
= 103;
567 pub const _SC_INT_MAX
: ::c_int
= 104;
568 pub const _SC_INT_MIN
: ::c_int
= 105;
569 pub const _SC_LONG_BIT
: ::c_int
= 106;
570 pub const _SC_WORD_BIT
: ::c_int
= 107;
571 pub const _SC_MB_LEN_MAX
: ::c_int
= 108;
572 pub const _SC_SSIZE_MAX
: ::c_int
= 110;
573 pub const _SC_SCHAR_MAX
: ::c_int
= 111;
574 pub const _SC_SCHAR_MIN
: ::c_int
= 112;
575 pub const _SC_SHRT_MAX
: ::c_int
= 113;
576 pub const _SC_SHRT_MIN
: ::c_int
= 114;
577 pub const _SC_UCHAR_MAX
: ::c_int
= 115;
578 pub const _SC_UINT_MAX
: ::c_int
= 116;
579 pub const _SC_ULONG_MAX
: ::c_int
= 117;
580 pub const _SC_USHRT_MAX
: ::c_int
= 118;
581 pub const _SC_NL_ARGMAX
: ::c_int
= 119;
582 pub const _SC_NL_LANGMAX
: ::c_int
= 120;
583 pub const _SC_NL_MSGMAX
: ::c_int
= 121;
584 pub const _SC_NL_NMAX
: ::c_int
= 122;
585 pub const _SC_NL_SETMAX
: ::c_int
= 123;
586 pub const _SC_NL_TEXTMAX
: ::c_int
= 124;
587 pub const _SC_BASE
: ::c_int
= 134;
588 pub const _SC_C_LANG_SUPPORT
: ::c_int
= 135;
589 pub const _SC_C_LANG_SUPPORT_R
: ::c_int
= 136;
590 pub const _SC_DEVICE_IO
: ::c_int
= 140;
591 pub const _SC_DEVICE_SPECIFIC
: ::c_int
= 141;
592 pub const _SC_DEVICE_SPECIFIC_R
: ::c_int
= 142;
593 pub const _SC_FD_MGMT
: ::c_int
= 143;
594 pub const _SC_FIFO
: ::c_int
= 144;
595 pub const _SC_PIPE
: ::c_int
= 145;
596 pub const _SC_FILE_ATTRIBUTES
: ::c_int
= 146;
597 pub const _SC_FILE_LOCKING
: ::c_int
= 147;
598 pub const _SC_FILE_SYSTEM
: ::c_int
= 148;
599 pub const _SC_MULTI_PROCESS
: ::c_int
= 150;
600 pub const _SC_SINGLE_PROCESS
: ::c_int
= 151;
601 pub const _SC_NETWORKING
: ::c_int
= 152;
602 pub const _SC_REGEX_VERSION
: ::c_int
= 156;
603 pub const _SC_SIGNALS
: ::c_int
= 158;
604 pub const _SC_SYSTEM_DATABASE
: ::c_int
= 162;
605 pub const _SC_SYSTEM_DATABASE_R
: ::c_int
= 163;
606 pub const _SC_USER_GROUPS
: ::c_int
= 166;
607 pub const _SC_USER_GROUPS_R
: ::c_int
= 167;
608 pub const _SC_LEVEL1_ICACHE_SIZE
: ::c_int
= 185;
609 pub const _SC_LEVEL1_ICACHE_ASSOC
: ::c_int
= 186;
610 pub const _SC_LEVEL1_ICACHE_LINESIZE
: ::c_int
= 187;
611 pub const _SC_LEVEL1_DCACHE_SIZE
: ::c_int
= 188;
612 pub const _SC_LEVEL1_DCACHE_ASSOC
: ::c_int
= 189;
613 pub const _SC_LEVEL1_DCACHE_LINESIZE
: ::c_int
= 190;
614 pub const _SC_LEVEL2_CACHE_SIZE
: ::c_int
= 191;
615 pub const _SC_LEVEL2_CACHE_ASSOC
: ::c_int
= 192;
616 pub const _SC_LEVEL2_CACHE_LINESIZE
: ::c_int
= 193;
617 pub const _SC_LEVEL3_CACHE_SIZE
: ::c_int
= 194;
618 pub const _SC_LEVEL3_CACHE_ASSOC
: ::c_int
= 195;
619 pub const _SC_LEVEL3_CACHE_LINESIZE
: ::c_int
= 196;
620 pub const _SC_LEVEL4_CACHE_SIZE
: ::c_int
= 197;
621 pub const _SC_LEVEL4_CACHE_ASSOC
: ::c_int
= 198;
622 pub const _SC_LEVEL4_CACHE_LINESIZE
: ::c_int
= 199;
623 pub const O_ASYNC
: ::c_int
= 0x2000;
624 pub const O_NDELAY
: ::c_int
= 0x800;
625 pub const ST_RELATIME
: ::c_ulong
= 4096;
626 pub const NI_MAXHOST
: ::socklen_t
= 1025;
628 pub const ADFS_SUPER_MAGIC
: ::c_int
= 0x0000adf5;
629 pub const AFFS_SUPER_MAGIC
: ::c_int
= 0x0000adff;
630 pub const CODA_SUPER_MAGIC
: ::c_int
= 0x73757245;
631 pub const CRAMFS_MAGIC
: ::c_int
= 0x28cd3d45;
632 pub const EFS_SUPER_MAGIC
: ::c_int
= 0x00414a53;
633 pub const EXT2_SUPER_MAGIC
: ::c_int
= 0x0000ef53;
634 pub const EXT3_SUPER_MAGIC
: ::c_int
= 0x0000ef53;
635 pub const EXT4_SUPER_MAGIC
: ::c_int
= 0x0000ef53;
636 pub const HPFS_SUPER_MAGIC
: ::c_int
= 0xf995e849;
637 pub const HUGETLBFS_MAGIC
: ::c_int
= 0x958458f6;
638 pub const ISOFS_SUPER_MAGIC
: ::c_int
= 0x00009660;
639 pub const JFFS2_SUPER_MAGIC
: ::c_int
= 0x000072b6;
640 pub const MINIX_SUPER_MAGIC
: ::c_int
= 0x0000137f;
641 pub const MINIX_SUPER_MAGIC2
: ::c_int
= 0x0000138f;
642 pub const MINIX2_SUPER_MAGIC
: ::c_int
= 0x00002468;
643 pub const MINIX2_SUPER_MAGIC2
: ::c_int
= 0x00002478;
644 pub const MSDOS_SUPER_MAGIC
: ::c_int
= 0x00004d44;
645 pub const NCP_SUPER_MAGIC
: ::c_int
= 0x0000564c;
646 pub const NFS_SUPER_MAGIC
: ::c_int
= 0x00006969;
647 pub const OPENPROM_SUPER_MAGIC
: ::c_int
= 0x00009fa1;
648 pub const PROC_SUPER_MAGIC
: ::c_int
= 0x00009fa0;
649 pub const QNX4_SUPER_MAGIC
: ::c_int
= 0x0000002f;
650 pub const REISERFS_SUPER_MAGIC
: ::c_int
= 0x52654973;
651 pub const SMB_SUPER_MAGIC
: ::c_int
= 0x0000517b;
652 pub const TMPFS_MAGIC
: ::c_int
= 0x01021994;
653 pub const USBDEVICE_SUPER_MAGIC
: ::c_int
= 0x00009fa2;
655 pub const VEOF
: usize = 4;
656 pub const VEOL
: usize = 11;
657 pub const VEOL2
: usize = 16;
658 pub const VMIN
: usize = 6;
659 pub const IEXTEN
: ::tcflag_t
= 0x00008000;
660 pub const TOSTOP
: ::tcflag_t
= 0x00000100;
661 pub const FLUSHO
: ::tcflag_t
= 0x00001000;
663 pub const CPU_SETSIZE
: ::c_int
= 0x400;
665 pub const EXTPROC
: ::tcflag_t
= 0x00010000;
667 pub const QFMT_VFS_V1
: ::c_int
= 4;
669 pub const PTRACE_TRACEME
: ::c_uint
= 0;
670 pub const PTRACE_PEEKTEXT
: ::c_uint
= 1;
671 pub const PTRACE_PEEKDATA
: ::c_uint
= 2;
672 pub const PTRACE_PEEKUSER
: ::c_uint
= 3;
673 pub const PTRACE_POKETEXT
: ::c_uint
= 4;
674 pub const PTRACE_POKEDATA
: ::c_uint
= 5;
675 pub const PTRACE_POKEUSER
: ::c_uint
= 6;
676 pub const PTRACE_CONT
: ::c_uint
= 7;
677 pub const PTRACE_KILL
: ::c_uint
= 8;
678 pub const PTRACE_SINGLESTEP
: ::c_uint
= 9;
679 pub const PTRACE_GETREGS
: ::c_uint
= 12;
680 pub const PTRACE_SETREGS
: ::c_uint
= 13;
681 pub const PTRACE_GETFPREGS
: ::c_uint
= 14;
682 pub const PTRACE_SETFPREGS
: ::c_uint
= 15;
683 pub const PTRACE_ATTACH
: ::c_uint
= 16;
684 pub const PTRACE_DETACH
: ::c_uint
= 17;
685 pub const PTRACE_SYSCALL
: ::c_uint
= 24;
686 pub const PTRACE_SETOPTIONS
: ::c_uint
= 0x4200;
687 pub const PTRACE_GETEVENTMSG
: ::c_uint
= 0x4201;
688 pub const PTRACE_GETSIGINFO
: ::c_uint
= 0x4202;
689 pub const PTRACE_SETSIGINFO
: ::c_uint
= 0x4203;
690 pub const PTRACE_GETREGSET
: ::c_uint
= 0x4204;
691 pub const PTRACE_SETREGSET
: ::c_uint
= 0x4205;
692 pub const PTRACE_SEIZE
: ::c_uint
= 0x4206;
693 pub const PTRACE_INTERRUPT
: ::c_uint
= 0x4207;
694 pub const PTRACE_LISTEN
: ::c_uint
= 0x4208;
695 pub const PTRACE_PEEKSIGINFO
: ::c_uint
= 0x4209;
697 pub const MADV_DODUMP
: ::c_int
= 17;
698 pub const MADV_DONTDUMP
: ::c_int
= 16;
700 pub const EPOLLWAKEUP
: ::c_int
= 0x20000000;
702 pub const MADV_HUGEPAGE
: ::c_int
= 14;
703 pub const MADV_NOHUGEPAGE
: ::c_int
= 15;
704 pub const MAP_HUGETLB
: ::c_int
= 0x040000;
706 pub const EFD_NONBLOCK
: ::c_int
= 0x800;
708 pub const F_GETLK
: ::c_int
= 5;
709 pub const F_GETOWN
: ::c_int
= 9;
710 pub const F_SETOWN
: ::c_int
= 8;
711 pub const F_SETLK
: ::c_int
= 6;
712 pub const F_SETLKW
: ::c_int
= 7;
714 pub const SEEK_DATA
: ::c_int
= 3;
715 pub const SEEK_HOLE
: ::c_int
= 4;
717 pub const SFD_NONBLOCK
: ::c_int
= 0x0800;
719 pub const TCSANOW
: ::c_int
= 0;
720 pub const TCSADRAIN
: ::c_int
= 1;
721 pub const TCSAFLUSH
: ::c_int
= 2;
723 pub const TCGETS
: ::c_ulong
= 0x5401;
724 pub const TCSETS
: ::c_ulong
= 0x5402;
725 pub const TCSETSW
: ::c_ulong
= 0x5403;
726 pub const TCSETSF
: ::c_ulong
= 0x5404;
727 pub const TCGETA
: ::c_ulong
= 0x5405;
728 pub const TCSETA
: ::c_ulong
= 0x5406;
729 pub const TCSETAW
: ::c_ulong
= 0x5407;
730 pub const TCSETAF
: ::c_ulong
= 0x5408;
731 pub const TCSBRK
: ::c_ulong
= 0x5409;
732 pub const TCXONC
: ::c_ulong
= 0x540A;
733 pub const TCFLSH
: ::c_ulong
= 0x540B;
734 pub const TIOCGSOFTCAR
: ::c_ulong
= 0x5419;
735 pub const TIOCSSOFTCAR
: ::c_ulong
= 0x541A;
736 pub const TIOCINQ
: ::c_ulong
= 0x541B;
737 pub const TIOCLINUX
: ::c_ulong
= 0x541C;
738 pub const TIOCGSERIAL
: ::c_ulong
= 0x541E;
739 pub const TIOCEXCL
: ::c_ulong
= 0x540C;
740 pub const TIOCNXCL
: ::c_ulong
= 0x540D;
741 pub const TIOCSCTTY
: ::c_ulong
= 0x540E;
742 pub const TIOCGPGRP
: ::c_ulong
= 0x540F;
743 pub const TIOCSPGRP
: ::c_ulong
= 0x5410;
744 pub const TIOCOUTQ
: ::c_ulong
= 0x5411;
745 pub const TIOCSTI
: ::c_ulong
= 0x5412;
746 pub const TIOCGWINSZ
: ::c_ulong
= 0x5413;
747 pub const TIOCSWINSZ
: ::c_ulong
= 0x5414;
748 pub const TIOCMGET
: ::c_ulong
= 0x5415;
749 pub const TIOCMBIS
: ::c_ulong
= 0x5416;
750 pub const TIOCMBIC
: ::c_ulong
= 0x5417;
751 pub const TIOCMSET
: ::c_ulong
= 0x5418;
752 pub const FIONREAD
: ::c_ulong
= 0x541B;
753 pub const TIOCCONS
: ::c_ulong
= 0x541D;
755 pub const RTLD_DEEPBIND
: ::c_int
= 0x8;
756 pub const RTLD_GLOBAL
: ::c_int
= 0x100;
757 pub const RTLD_NOLOAD
: ::c_int
= 0x4;
759 pub const LINUX_REBOOT_MAGIC1
: ::c_int
= 0xfee1dead;
760 pub const LINUX_REBOOT_MAGIC2
: ::c_int
= 672274793;
761 pub const LINUX_REBOOT_MAGIC2A
: ::c_int
= 85072278;
762 pub const LINUX_REBOOT_MAGIC2B
: ::c_int
= 369367448;
763 pub const LINUX_REBOOT_MAGIC2C
: ::c_int
= 537993216;
765 pub const LINUX_REBOOT_CMD_RESTART
: ::c_int
= 0x01234567;
766 pub const LINUX_REBOOT_CMD_HALT
: ::c_int
= 0xCDEF0123;
767 pub const LINUX_REBOOT_CMD_CAD_ON
: ::c_int
= 0x89ABCDEF;
768 pub const LINUX_REBOOT_CMD_CAD_OFF
: ::c_int
= 0x00000000;
769 pub const LINUX_REBOOT_CMD_POWER_OFF
: ::c_int
= 0x4321FEDC;
770 pub const LINUX_REBOOT_CMD_RESTART2
: ::c_int
= 0xA1B2C3D4;
771 pub const LINUX_REBOOT_CMD_SW_SUSPEND
: ::c_int
= 0xD000FCE2;
772 pub const LINUX_REBOOT_CMD_KEXEC
: ::c_int
= 0x45584543;
774 pub const SYS_gettid
: ::c_long
= 236;
775 pub const SYS_perf_event_open
: ::c_long
= 331;
777 pub const CMSPAR
: ::tcflag_t
= 0o10000000000;
778 pub const VSWTC
: usize = 7;
779 pub const OLCUC
: ::tcflag_t
= 0o000002;
780 pub const NLDLY
: ::tcflag_t
= 0o000400;
781 pub const CRDLY
: ::tcflag_t
= 0o003000;
782 pub const CR1
: ::tcflag_t
= 0x00000200;
783 pub const CR2
: ::tcflag_t
= 0x00000400;
784 pub const CR3
: ::tcflag_t
= 0x00000600;
785 pub const TABDLY
: ::tcflag_t
= 0o014000;
786 pub const TAB1
: ::tcflag_t
= 0x00000800;
787 pub const TAB2
: ::tcflag_t
= 0x00001000;
788 pub const TAB3
: ::tcflag_t
= 0x00001800;
789 pub const BSDLY
: ::tcflag_t
= 0o020000;
790 pub const BS1
: ::tcflag_t
= 0x00002000;
791 pub const FFDLY
: ::tcflag_t
= 0o100000;
792 pub const FF1
: ::tcflag_t
= 0x00008000;
793 pub const VTDLY
: ::tcflag_t
= 0o040000;
794 pub const VT1
: ::tcflag_t
= 0x00004000;
795 pub const XTABS
: ::tcflag_t
= 0o014000;
797 pub const TIOCM_LE
: ::c_int
= 0x001;
798 pub const TIOCM_DTR
: ::c_int
= 0x002;
799 pub const TIOCM_RTS
: ::c_int
= 0x004;
800 pub const TIOCM_ST
: ::c_int
= 0x008;
801 pub const TIOCM_SR
: ::c_int
= 0x010;
802 pub const TIOCM_CTS
: ::c_int
= 0x020;
803 pub const TIOCM_CAR
: ::c_int
= 0x040;
804 pub const TIOCM_RNG
: ::c_int
= 0x080;
805 pub const TIOCM_DSR
: ::c_int
= 0x100;
806 pub const TIOCM_CD
: ::c_int
= TIOCM_CAR
;
807 pub const TIOCM_RI
: ::c_int
= TIOCM_RNG
;
809 #[link(name = "util")]
811 pub fn sysctl(name
: *mut ::c_int
,
814 oldlenp
: *mut ::size_t
,
818 pub fn ioctl(fd
: ::c_int
, request
: ::c_ulong
, ...) -> ::c_int
;
819 pub fn backtrace(buf
: *mut *mut ::c_void
,
820 sz
: ::c_int
) -> ::c_int
;
821 pub fn glob64(pattern
: *const ::c_char
,
823 errfunc
: ::dox
::Option
<extern fn(epath
: *const ::c_char
,
826 pglob
: *mut glob64_t
) -> ::c_int
;
827 pub fn globfree64(pglob
: *mut glob64_t
);
828 pub fn ptrace(request
: ::c_uint
, ...) -> ::c_long
;
829 pub fn pthread_attr_getaffinity_np(attr
: *const ::pthread_attr_t
,
830 cpusetsize
: ::size_t
,
831 cpuset
: *mut ::cpu_set_t
) -> ::c_int
;
832 pub fn pthread_attr_setaffinity_np(attr
: *mut ::pthread_attr_t
,
833 cpusetsize
: ::size_t
,
834 cpuset
: *const ::cpu_set_t
) -> ::c_int
;
835 pub fn getpriority(which
: ::__priority_which_t
, who
: ::id_t
) -> ::c_int
;
836 pub fn setpriority(which
: ::__priority_which_t
, who
: ::id_t
,
837 prio
: ::c_int
) -> ::c_int
;
838 pub fn pthread_getaffinity_np(thread
: ::pthread_t
,
839 cpusetsize
: ::size_t
,
840 cpuset
: *mut ::cpu_set_t
) -> ::c_int
;
841 pub fn pthread_setaffinity_np(thread
: ::pthread_t
,
842 cpusetsize
: ::size_t
,
843 cpuset
: *const ::cpu_set_t
) -> ::c_int
;
844 pub fn sched_getcpu() -> ::c_int
;
845 pub fn getcontext(ucp
: *mut ucontext_t
) -> ::c_int
;
846 pub fn setcontext(ucp
: *const ucontext_t
) -> ::c_int
;
847 pub fn makecontext(ucp
: *mut ucontext_t
,
850 pub fn swapcontext(uocp
: *mut ucontext_t
,
851 ucp
: *const ucontext_t
) -> ::c_int
;