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 shmatt_t
= ::c_ulong
;
18 pub type msgqnum_t
= ::c_ulong
;
19 pub type msglen_t
= ::c_ulong
;
20 pub type __fsword_t
= ::c_long
;
21 pub type __priority_which_t
= ::c_uint
;
26 pub aio_fildes
: ::c_int
,
27 pub aio_lio_opcode
: ::c_int
,
28 pub aio_reqprio
: ::c_int
,
29 pub aio_buf
: *mut ::c_void
,
30 pub aio_nbytes
: ::size_t
,
31 pub aio_sigevent
: ::sigevent
,
32 __next_prio
: *mut aiocb
,
35 __error_code
: ::c_int
,
36 __return_value
: ::ssize_t
,
37 pub aio_offset
: off_t
,
38 #[cfg(target_pointer_width = "32")]
39 __unused1
: [::c_char
; 4],
40 __glibc_reserved
: [::c_char
; 32]
46 pub st_nlink
: ::nlink_t
,
47 pub st_mode
: ::mode_t
,
53 pub st_atime
: ::time_t
,
54 pub st_atime_nsec
: ::c_long
,
55 pub st_mtime
: ::time_t
,
56 pub st_mtime_nsec
: ::c_long
,
57 pub st_ctime
: ::time_t
,
58 pub st_ctime_nsec
: ::c_long
,
59 pub st_blksize
: ::blksize_t
,
60 pub st_blocks
: ::blkcnt_t
,
61 __glibc_reserved
: [::c_long
; 3],
66 pub st_ino
: ::ino64_t
,
67 pub st_nlink
: ::nlink_t
,
68 pub st_mode
: ::mode_t
,
74 pub st_atime
: ::time_t
,
75 pub st_atime_nsec
: ::c_long
,
76 pub st_mtime
: ::time_t
,
77 pub st_mtime_nsec
: ::c_long
,
78 pub st_ctime
: ::time_t
,
79 pub st_ctime_nsec
: ::c_long
,
80 pub st_blksize
: ::blksize_t
,
81 pub st_blocks
: ::blkcnt64_t
,
82 __glibc_reserved
: [::c_long
; 3],
85 pub struct pthread_attr_t
{
86 __size
: [::c_ulong
; 7]
89 pub struct sigaction
{
90 pub sa_sigaction
: ::sighandler_t
,
91 __glibc_reserved0
: ::c_int
,
92 pub sa_flags
: ::c_int
,
93 pub sa_restorer
: ::dox
::Option
<extern fn()>,
94 pub sa_mask
: sigset_t
,
98 pub ss_sp
: *mut ::c_void
,
99 pub ss_flags
: ::c_int
,
100 pub ss_size
: ::size_t
,
103 pub struct sigset_t
{
104 __size
: [::c_ulong
; 16],
107 pub struct siginfo_t
{
108 pub si_signo
: ::c_int
,
109 pub si_errno
: ::c_int
,
110 pub si_code
: ::c_int
,
112 _pad2
: [::c_long
; 14],
115 pub struct ipc_perm
{
122 pub __seq
: ::c_ushort
,
124 __unused1
: ::c_ulong
,
128 pub struct shmid_ds
{
129 pub shm_perm
: ::ipc_perm
,
130 pub shm_segsz
: ::size_t
,
131 pub shm_atime
: ::time_t
,
132 pub shm_dtime
: ::time_t
,
133 pub shm_ctime
: ::time_t
,
134 pub shm_cpid
: ::pid_t
,
135 pub shm_lpid
: ::pid_t
,
136 pub shm_nattch
: ::shmatt_t
,
137 __unused4
: ::c_ulong
,
142 pub f_type
: ::c_uint
,
143 pub f_bsize
: ::c_uint
,
144 pub f_blocks
: ::fsblkcnt_t
,
145 pub f_bfree
: ::fsblkcnt_t
,
146 pub f_bavail
: ::fsblkcnt_t
,
147 pub f_files
: ::fsfilcnt_t
,
148 pub f_ffree
: ::fsfilcnt_t
,
149 pub f_fsid
: ::fsid_t
,
150 pub f_namelen
: ::c_uint
,
151 pub f_frsize
: ::c_uint
,
152 pub f_flags
: ::c_uint
,
153 f_spare
: [::c_uint
; 4],
157 pub msg_name
: *mut ::c_void
,
158 pub msg_namelen
: ::socklen_t
,
159 pub msg_iov
: *mut ::iovec
,
160 pub msg_iovlen
: ::size_t
,
161 pub msg_control
: *mut ::c_void
,
162 pub msg_controllen
: ::size_t
,
163 pub msg_flags
: ::c_int
,
167 pub cmsg_len
: ::size_t
,
168 pub cmsg_level
: ::c_int
,
169 pub cmsg_type
: ::c_int
,
173 pub c_iflag
: ::tcflag_t
,
174 pub c_oflag
: ::tcflag_t
,
175 pub c_cflag
: ::tcflag_t
,
176 pub c_lflag
: ::tcflag_t
,
178 pub c_cc
: [::cc_t
; ::NCCS
],
179 pub c_ispeed
: ::speed_t
,
180 pub c_ospeed
: ::speed_t
,
183 pub struct termios2
{
184 pub c_iflag
: ::tcflag_t
,
185 pub c_oflag
: ::tcflag_t
,
186 pub c_cflag
: ::tcflag_t
,
187 pub c_lflag
: ::tcflag_t
,
189 pub c_cc
: [::cc_t
; 19],
190 pub c_ispeed
: ::speed_t
,
191 pub c_ospeed
: ::speed_t
,
195 pub uptime
: ::c_long
,
196 pub loads
: [::c_ulong
; 3],
197 pub totalram
: ::c_ulong
,
198 pub freeram
: ::c_ulong
,
199 pub sharedram
: ::c_ulong
,
200 pub bufferram
: ::c_ulong
,
201 pub totalswap
: ::c_ulong
,
202 pub freeswap
: ::c_ulong
,
203 pub procs
: ::c_ushort
,
205 pub totalhigh
: ::c_ulong
,
206 pub freehigh
: ::c_ulong
,
207 pub mem_unit
: ::c_uint
,
208 pub _f
: [::c_char
; 0],
211 pub struct glob64_t
{
212 pub gl_pathc
: ::size_t
,
213 pub gl_pathv
: *mut *mut ::c_char
,
214 pub gl_offs
: ::size_t
,
215 pub gl_flags
: ::c_int
,
217 __unused1
: *mut ::c_void
,
218 __unused2
: *mut ::c_void
,
219 __unused3
: *mut ::c_void
,
220 __unused4
: *mut ::c_void
,
221 __unused5
: *mut ::c_void
,
231 pub l_type
: ::c_short
,
232 pub l_whence
: ::c_short
,
233 pub l_start
: ::off_t
,
238 // FIXME this is actually a union
240 __size
: [::c_char
; 32],
241 __align
: [::c_long
; 0],
249 // FIXME: This is actually a union.
255 pub struct fpregset_t
{
258 pub fprs
: [fpreg_t
; 16],
261 pub struct mcontext_t
{
263 pub gregs
: [u64; 16],
264 pub aregs
: [u32; 16],
265 pub fpregs
: fpregset_t
,
268 pub struct ucontext_t
{
269 pub uc_flags
: ::c_ulong
,
270 pub uc_link
: *mut ucontext_t
,
271 pub uc_stack
: ::stack_t
,
272 pub uc_mcontext
: mcontext_t
,
273 pub uc_sigmask
: ::sigset_t
,
276 pub struct msqid_ds
{
277 pub msg_perm
: ::ipc_perm
,
278 pub msg_stime
: ::time_t
,
279 pub msg_rtime
: ::time_t
,
280 pub msg_ctime
: ::time_t
,
281 __msg_cbytes
: ::c_ulong
,
282 pub msg_qnum
: ::msgqnum_t
,
283 pub msg_qbytes
: ::msglen_t
,
284 pub msg_lspid
: ::pid_t
,
285 pub msg_lrpid
: ::pid_t
,
286 __glibc_reserved4
: ::c_ulong
,
287 __glibc_reserved5
: ::c_ulong
,
290 pub struct statfs64
{
291 pub f_type
: ::c_uint
,
292 pub f_bsize
: ::c_uint
,
298 pub f_fsid
: ::fsid_t
,
299 pub f_namelen
: ::c_uint
,
300 pub f_frsize
: ::c_uint
,
301 pub f_flags
: ::c_uint
,
302 pub f_spare
: [::c_uint
; 4],
305 pub struct statvfs64
{
306 pub f_bsize
: ::c_ulong
,
307 pub f_frsize
: ::c_ulong
,
314 pub f_fsid
: ::c_ulong
,
315 pub f_flag
: ::c_ulong
,
316 pub f_namemax
: ::c_ulong
,
317 __f_spare
: [::c_int
; 6],
321 pub const SFD_CLOEXEC
: ::c_int
= 0x080000;
323 pub const NCCS
: usize = 32;
325 pub const O_TRUNC
: ::c_int
= 512;
326 pub const O_LARGEFILE
: ::c_int
= 0o0100000;
327 pub const O_NOATIME
: ::c_int
= 0o1000000;
328 pub const O_CLOEXEC
: ::c_int
= 0x80000;
329 pub const O_PATH
: ::c_int
= 0o10000000;
331 pub const EBFONT
: ::c_int
= 59;
332 pub const ENOSTR
: ::c_int
= 60;
333 pub const ENODATA
: ::c_int
= 61;
334 pub const ETIME
: ::c_int
= 62;
335 pub const ENOSR
: ::c_int
= 63;
336 pub const ENONET
: ::c_int
= 64;
337 pub const ENOPKG
: ::c_int
= 65;
338 pub const EREMOTE
: ::c_int
= 66;
339 pub const ENOLINK
: ::c_int
= 67;
340 pub const EADV
: ::c_int
= 68;
341 pub const ESRMNT
: ::c_int
= 69;
342 pub const ECOMM
: ::c_int
= 70;
343 pub const EPROTO
: ::c_int
= 71;
344 pub const EDOTDOT
: ::c_int
= 73;
346 pub const SA_NODEFER
: ::c_int
= 0x40000000;
347 pub const SA_RESETHAND
: ::c_int
= 0x80000000;
348 pub const SA_RESTART
: ::c_int
= 0x10000000;
349 pub const SA_NOCLDSTOP
: ::c_int
= 0x00000001;
351 pub const EPOLL_CLOEXEC
: ::c_int
= 0x80000;
353 pub const EFD_CLOEXEC
: ::c_int
= 0x80000;
355 pub const POSIX_FADV_DONTNEED
: ::c_int
= 6;
356 pub const POSIX_FADV_NOREUSE
: ::c_int
= 7;
358 pub const __SIZEOF_PTHREAD_CONDATTR_T
: usize = 4;
359 pub const __SIZEOF_PTHREAD_MUTEXATTR_T
: usize = 4;
360 pub const __SIZEOF_PTHREAD_MUTEX_T
: usize = 40;
361 pub const __SIZEOF_PTHREAD_RWLOCK_T
: usize = 56;
362 pub const __SIZEOF_PTHREAD_RWLOCKATTR_T
: usize = 8;
364 pub const EADDRINUSE
: ::c_int
= 98;
365 pub const EADDRNOTAVAIL
: ::c_int
= 99;
366 pub const ECONNABORTED
: ::c_int
= 103;
367 pub const ECONNREFUSED
: ::c_int
= 111;
368 pub const ECONNRESET
: ::c_int
= 104;
369 pub const EDEADLK
: ::c_int
= 35;
370 pub const ENOSYS
: ::c_int
= 38;
371 pub const ENOTCONN
: ::c_int
= 107;
372 pub const ETIMEDOUT
: ::c_int
= 110;
373 pub const FIOCLEX
: ::c_ulong
= 0x5451;
374 pub const FIONBIO
: ::c_ulong
= 0x5421;
375 pub const MAP_ANON
: ::c_int
= 0x20;
376 pub const O_ACCMODE
: ::c_int
= 3;
377 pub const O_APPEND
: ::c_int
= 1024;
378 pub const O_CREAT
: ::c_int
= 64;
379 pub const O_EXCL
: ::c_int
= 128;
380 pub const O_NONBLOCK
: ::c_int
= 2048;
381 pub const PTHREAD_STACK_MIN
: ::size_t
= 16384;
382 pub const RLIM_INFINITY
: ::rlim_t
= 0xffffffffffffffff;
383 pub const SA_NOCLDWAIT
: ::c_int
= 2;
384 pub const SA_ONSTACK
: ::c_int
= 0x08000000;
385 pub const SA_SIGINFO
: ::c_int
= 4;
386 pub const SIGBUS
: ::c_int
= 7;
387 pub const SIGSTKSZ
: ::size_t
= 0x2000;
388 pub const MINSIGSTKSZ
: ::size_t
= 2048;
389 pub const SIG_SETMASK
: ::c_int
= 2;
390 pub const SOCK_DGRAM
: ::c_int
= 2;
391 pub const SOCK_STREAM
: ::c_int
= 1;
392 pub const SOL_SOCKET
: ::c_int
= 1;
393 pub const SO_BROADCAST
: ::c_int
= 6;
394 pub const SO_ERROR
: ::c_int
= 4;
395 pub const SO_RCVTIMEO
: ::c_int
= 20;
396 pub const SO_REUSEADDR
: ::c_int
= 2;
397 pub const SO_SNDTIMEO
: ::c_int
= 21;
398 pub const SO_BINDTODEVICE
: ::c_int
= 25;
399 pub const SO_TIMESTAMP
: ::c_int
= 29;
400 pub const SO_MARK
: ::c_int
= 36;
401 pub const SO_PROTOCOL
: ::c_int
= 38;
402 pub const SO_DOMAIN
: ::c_int
= 39;
403 pub const SO_RXQ_OVFL
: ::c_int
= 40;
404 pub const SO_PEEK_OFF
: ::c_int
= 42;
405 pub const SO_BUSY_POLL
: ::c_int
= 46;
407 pub const RLIMIT_RSS
: ::c_int
= 5;
408 pub const RLIMIT_NOFILE
: ::c_int
= 7;
409 pub const RLIMIT_AS
: ::c_int
= 9;
410 pub const RLIMIT_NPROC
: ::c_int
= 6;
411 pub const RLIMIT_MEMLOCK
: ::c_int
= 8;
412 pub const RLIMIT_RTTIME
: ::c_int
= 15;
413 pub const RLIMIT_NLIMITS
: ::c_int
= 16;
415 pub const O_NOCTTY
: ::c_int
= 256;
416 pub const O_SYNC
: ::c_int
= 1052672;
417 pub const O_RSYNC
: ::c_int
= 1052672;
418 pub const O_DSYNC
: ::c_int
= 4096;
419 pub const O_FSYNC
: ::c_int
= 0x101000;
420 pub const O_DIRECT
: ::c_int
= 0x4000;
421 pub const O_DIRECTORY
: ::c_int
= 0x10000;
422 pub const O_NOFOLLOW
: ::c_int
= 0x20000;
424 pub const SOCK_NONBLOCK
: ::c_int
= O_NONBLOCK
;
426 pub const LC_PAPER
: ::c_int
= 7;
427 pub const LC_NAME
: ::c_int
= 8;
428 pub const LC_ADDRESS
: ::c_int
= 9;
429 pub const LC_TELEPHONE
: ::c_int
= 10;
430 pub const LC_MEASUREMENT
: ::c_int
= 11;
431 pub const LC_IDENTIFICATION
: ::c_int
= 12;
432 pub const LC_PAPER_MASK
: ::c_int
= (1 << LC_PAPER
);
433 pub const LC_NAME_MASK
: ::c_int
= (1 << LC_NAME
);
434 pub const LC_ADDRESS_MASK
: ::c_int
= (1 << LC_ADDRESS
);
435 pub const LC_TELEPHONE_MASK
: ::c_int
= (1 << LC_TELEPHONE
);
436 pub const LC_MEASUREMENT_MASK
: ::c_int
= (1 << LC_MEASUREMENT
);
437 pub const LC_IDENTIFICATION_MASK
: ::c_int
= (1 << LC_IDENTIFICATION
);
438 pub const LC_ALL_MASK
: ::c_int
= ::LC_CTYPE_MASK
448 | LC_MEASUREMENT_MASK
449 | LC_IDENTIFICATION_MASK
;
451 pub const MAP_ANONYMOUS
: ::c_int
= 0x0020;
452 pub const MAP_GROWSDOWN
: ::c_int
= 0x0100;
453 pub const MAP_DENYWRITE
: ::c_int
= 0x0800;
454 pub const MAP_EXECUTABLE
: ::c_int
= 0x01000;
455 pub const MAP_LOCKED
: ::c_int
= 0x02000;
456 pub const MAP_NORESERVE
: ::c_int
= 0x04000;
457 pub const MAP_POPULATE
: ::c_int
= 0x08000;
458 pub const MAP_NONBLOCK
: ::c_int
= 0x010000;
459 pub const MAP_STACK
: ::c_int
= 0x020000;
461 pub const EDEADLOCK
: ::c_int
= 35;
462 pub const ENAMETOOLONG
: ::c_int
= 36;
463 pub const ENOLCK
: ::c_int
= 37;
464 pub const ENOTEMPTY
: ::c_int
= 39;
465 pub const ELOOP
: ::c_int
= 40;
466 pub const ENOMSG
: ::c_int
= 42;
467 pub const EIDRM
: ::c_int
= 43;
468 pub const ECHRNG
: ::c_int
= 44;
469 pub const EL2NSYNC
: ::c_int
= 45;
470 pub const EL3HLT
: ::c_int
= 46;
471 pub const EL3RST
: ::c_int
= 47;
472 pub const ELNRNG
: ::c_int
= 48;
473 pub const EUNATCH
: ::c_int
= 49;
474 pub const ENOCSI
: ::c_int
= 50;
475 pub const EL2HLT
: ::c_int
= 51;
476 pub const EBADE
: ::c_int
= 52;
477 pub const EBADR
: ::c_int
= 53;
478 pub const EXFULL
: ::c_int
= 54;
479 pub const ENOANO
: ::c_int
= 55;
480 pub const EBADRQC
: ::c_int
= 56;
481 pub const EBADSLT
: ::c_int
= 57;
482 pub const EMULTIHOP
: ::c_int
= 72;
483 pub const EOVERFLOW
: ::c_int
= 75;
484 pub const ENOTUNIQ
: ::c_int
= 76;
485 pub const EBADFD
: ::c_int
= 77;
486 pub const EBADMSG
: ::c_int
= 74;
487 pub const EREMCHG
: ::c_int
= 78;
488 pub const ELIBACC
: ::c_int
= 79;
489 pub const ELIBBAD
: ::c_int
= 80;
490 pub const ELIBSCN
: ::c_int
= 81;
491 pub const ELIBMAX
: ::c_int
= 82;
492 pub const ELIBEXEC
: ::c_int
= 83;
493 pub const EILSEQ
: ::c_int
= 84;
494 pub const ERESTART
: ::c_int
= 85;
495 pub const ESTRPIPE
: ::c_int
= 86;
496 pub const EUSERS
: ::c_int
= 87;
497 pub const ENOTSOCK
: ::c_int
= 88;
498 pub const EDESTADDRREQ
: ::c_int
= 89;
499 pub const EMSGSIZE
: ::c_int
= 90;
500 pub const EPROTOTYPE
: ::c_int
= 91;
501 pub const ENOPROTOOPT
: ::c_int
= 92;
502 pub const EPROTONOSUPPORT
: ::c_int
= 93;
503 pub const ESOCKTNOSUPPORT
: ::c_int
= 94;
504 pub const EOPNOTSUPP
: ::c_int
= 95;
505 pub const ENOTSUP
: ::c_int
= EOPNOTSUPP
;
506 pub const EPFNOSUPPORT
: ::c_int
= 96;
507 pub const EAFNOSUPPORT
: ::c_int
= 97;
508 pub const ENETDOWN
: ::c_int
= 100;
509 pub const ENETUNREACH
: ::c_int
= 101;
510 pub const ENETRESET
: ::c_int
= 102;
511 pub const ENOBUFS
: ::c_int
= 105;
512 pub const EISCONN
: ::c_int
= 106;
513 pub const ESHUTDOWN
: ::c_int
= 108;
514 pub const ETOOMANYREFS
: ::c_int
= 109;
515 pub const EHOSTDOWN
: ::c_int
= 112;
516 pub const EHOSTUNREACH
: ::c_int
= 113;
517 pub const EALREADY
: ::c_int
= 114;
518 pub const EINPROGRESS
: ::c_int
= 115;
519 pub const ESTALE
: ::c_int
= 116;
520 pub const EUCLEAN
: ::c_int
= 117;
521 pub const ENOTNAM
: ::c_int
= 118;
522 pub const ENAVAIL
: ::c_int
= 119;
523 pub const EISNAM
: ::c_int
= 120;
524 pub const EREMOTEIO
: ::c_int
= 121;
525 pub const EDQUOT
: ::c_int
= 122;
526 pub const ENOMEDIUM
: ::c_int
= 123;
527 pub const EMEDIUMTYPE
: ::c_int
= 124;
528 pub const ECANCELED
: ::c_int
= 125;
529 pub const ENOKEY
: ::c_int
= 126;
530 pub const EKEYEXPIRED
: ::c_int
= 127;
531 pub const EKEYREVOKED
: ::c_int
= 128;
532 pub const EKEYREJECTED
: ::c_int
= 129;
533 pub const EOWNERDEAD
: ::c_int
= 130;
534 pub const ENOTRECOVERABLE
: ::c_int
= 131;
535 pub const EHWPOISON
: ::c_int
= 133;
536 pub const ERFKILL
: ::c_int
= 132;
538 pub const SOCK_SEQPACKET
: ::c_int
= 5;
540 pub const SO_TYPE
: ::c_int
= 3;
541 pub const SO_DONTROUTE
: ::c_int
= 5;
542 pub const SO_SNDBUF
: ::c_int
= 7;
543 pub const SO_RCVBUF
: ::c_int
= 8;
544 pub const SO_KEEPALIVE
: ::c_int
= 9;
545 pub const SO_OOBINLINE
: ::c_int
= 10;
546 pub const SO_PRIORITY
: ::c_int
= 12;
547 pub const SO_LINGER
: ::c_int
= 13;
548 pub const SO_BSDCOMPAT
: ::c_int
= 14;
549 pub const SO_REUSEPORT
: ::c_int
= 15;
550 pub const SO_PASSCRED
: ::c_int
= 16;
551 pub const SO_PEERCRED
: ::c_int
= 17;
552 pub const SO_RCVLOWAT
: ::c_int
= 18;
553 pub const SO_SNDLOWAT
: ::c_int
= 19;
554 pub const SO_ACCEPTCONN
: ::c_int
= 30;
555 pub const SO_SNDBUFFORCE
: ::c_int
= 32;
556 pub const SO_RCVBUFFORCE
: ::c_int
= 33;
558 pub const TCP_COOKIE_TRANSACTIONS
: ::c_int
= 15;
559 pub const TCP_THIN_LINEAR_TIMEOUTS
: ::c_int
= 16;
560 pub const TCP_THIN_DUPACK
: ::c_int
= 17;
561 pub const TCP_USER_TIMEOUT
: ::c_int
= 18;
562 pub const TCP_REPAIR
: ::c_int
= 19;
563 pub const TCP_REPAIR_QUEUE
: ::c_int
= 20;
564 pub const TCP_QUEUE_SEQ
: ::c_int
= 21;
565 pub const TCP_REPAIR_OPTIONS
: ::c_int
= 22;
566 pub const TCP_FASTOPEN
: ::c_int
= 23;
567 pub const TCP_TIMESTAMP
: ::c_int
= 24;
569 pub const SIGCHLD
: ::c_int
= 17;
570 pub const SIGUSR1
: ::c_int
= 10;
571 pub const SIGUSR2
: ::c_int
= 12;
572 pub const SIGCONT
: ::c_int
= 18;
573 pub const SIGSTOP
: ::c_int
= 19;
574 pub const SIGTSTP
: ::c_int
= 20;
575 pub const SIGURG
: ::c_int
= 23;
576 pub const SIGIO
: ::c_int
= 29;
577 pub const SIGSYS
: ::c_int
= 31;
578 pub const SIGSTKFLT
: ::c_int
= 16;
579 pub const SIGUNUSED
: ::c_int
= 31;
580 pub const SIGTTIN
: ::c_int
= 21;
581 pub const SIGTTOU
: ::c_int
= 22;
582 pub const SIGXCPU
: ::c_int
= 24;
583 pub const SIGXFSZ
: ::c_int
= 25;
584 pub const SIGVTALRM
: ::c_int
= 26;
585 pub const SIGPROF
: ::c_int
= 27;
586 pub const SIGWINCH
: ::c_int
= 28;
587 pub const SIGPOLL
: ::c_int
= 29;
588 pub const SIGPWR
: ::c_int
= 30;
589 pub const SIG_BLOCK
: ::c_int
= 0x000000;
590 pub const SIG_UNBLOCK
: ::c_int
= 0x01;
592 pub const BUFSIZ
: ::c_uint
= 8192;
593 pub const TMP_MAX
: ::c_uint
= 238328;
594 pub const FOPEN_MAX
: ::c_uint
= 16;
595 pub const POSIX_MADV_DONTNEED
: ::c_int
= 4;
596 pub const _SC_EQUIV_CLASS_MAX
: ::c_int
= 41;
597 pub const _SC_CHARCLASS_NAME_MAX
: ::c_int
= 45;
598 pub const _SC_PII
: ::c_int
= 53;
599 pub const _SC_PII_XTI
: ::c_int
= 54;
600 pub const _SC_PII_SOCKET
: ::c_int
= 55;
601 pub const _SC_PII_INTERNET
: ::c_int
= 56;
602 pub const _SC_PII_OSI
: ::c_int
= 57;
603 pub const _SC_POLL
: ::c_int
= 58;
604 pub const _SC_SELECT
: ::c_int
= 59;
605 pub const _SC_PII_INTERNET_STREAM
: ::c_int
= 61;
606 pub const _SC_PII_INTERNET_DGRAM
: ::c_int
= 62;
607 pub const _SC_PII_OSI_COTS
: ::c_int
= 63;
608 pub const _SC_PII_OSI_CLTS
: ::c_int
= 64;
609 pub const _SC_PII_OSI_M
: ::c_int
= 65;
610 pub const _SC_T_IOV_MAX
: ::c_int
= 66;
611 pub const _SC_2_C_VERSION
: ::c_int
= 96;
612 pub const _SC_CHAR_BIT
: ::c_int
= 101;
613 pub const _SC_CHAR_MAX
: ::c_int
= 102;
614 pub const _SC_CHAR_MIN
: ::c_int
= 103;
615 pub const _SC_INT_MAX
: ::c_int
= 104;
616 pub const _SC_INT_MIN
: ::c_int
= 105;
617 pub const _SC_LONG_BIT
: ::c_int
= 106;
618 pub const _SC_WORD_BIT
: ::c_int
= 107;
619 pub const _SC_MB_LEN_MAX
: ::c_int
= 108;
620 pub const _SC_SSIZE_MAX
: ::c_int
= 110;
621 pub const _SC_SCHAR_MAX
: ::c_int
= 111;
622 pub const _SC_SCHAR_MIN
: ::c_int
= 112;
623 pub const _SC_SHRT_MAX
: ::c_int
= 113;
624 pub const _SC_SHRT_MIN
: ::c_int
= 114;
625 pub const _SC_UCHAR_MAX
: ::c_int
= 115;
626 pub const _SC_UINT_MAX
: ::c_int
= 116;
627 pub const _SC_ULONG_MAX
: ::c_int
= 117;
628 pub const _SC_USHRT_MAX
: ::c_int
= 118;
629 pub const _SC_NL_ARGMAX
: ::c_int
= 119;
630 pub const _SC_NL_LANGMAX
: ::c_int
= 120;
631 pub const _SC_NL_MSGMAX
: ::c_int
= 121;
632 pub const _SC_NL_NMAX
: ::c_int
= 122;
633 pub const _SC_NL_SETMAX
: ::c_int
= 123;
634 pub const _SC_NL_TEXTMAX
: ::c_int
= 124;
635 pub const _SC_BASE
: ::c_int
= 134;
636 pub const _SC_C_LANG_SUPPORT
: ::c_int
= 135;
637 pub const _SC_C_LANG_SUPPORT_R
: ::c_int
= 136;
638 pub const _SC_DEVICE_IO
: ::c_int
= 140;
639 pub const _SC_DEVICE_SPECIFIC
: ::c_int
= 141;
640 pub const _SC_DEVICE_SPECIFIC_R
: ::c_int
= 142;
641 pub const _SC_FD_MGMT
: ::c_int
= 143;
642 pub const _SC_FIFO
: ::c_int
= 144;
643 pub const _SC_PIPE
: ::c_int
= 145;
644 pub const _SC_FILE_ATTRIBUTES
: ::c_int
= 146;
645 pub const _SC_FILE_LOCKING
: ::c_int
= 147;
646 pub const _SC_FILE_SYSTEM
: ::c_int
= 148;
647 pub const _SC_MULTI_PROCESS
: ::c_int
= 150;
648 pub const _SC_SINGLE_PROCESS
: ::c_int
= 151;
649 pub const _SC_NETWORKING
: ::c_int
= 152;
650 pub const _SC_REGEX_VERSION
: ::c_int
= 156;
651 pub const _SC_SIGNALS
: ::c_int
= 158;
652 pub const _SC_SYSTEM_DATABASE
: ::c_int
= 162;
653 pub const _SC_SYSTEM_DATABASE_R
: ::c_int
= 163;
654 pub const _SC_USER_GROUPS
: ::c_int
= 166;
655 pub const _SC_USER_GROUPS_R
: ::c_int
= 167;
656 pub const _SC_LEVEL1_ICACHE_SIZE
: ::c_int
= 185;
657 pub const _SC_LEVEL1_ICACHE_ASSOC
: ::c_int
= 186;
658 pub const _SC_LEVEL1_ICACHE_LINESIZE
: ::c_int
= 187;
659 pub const _SC_LEVEL1_DCACHE_SIZE
: ::c_int
= 188;
660 pub const _SC_LEVEL1_DCACHE_ASSOC
: ::c_int
= 189;
661 pub const _SC_LEVEL1_DCACHE_LINESIZE
: ::c_int
= 190;
662 pub const _SC_LEVEL2_CACHE_SIZE
: ::c_int
= 191;
663 pub const _SC_LEVEL2_CACHE_ASSOC
: ::c_int
= 192;
664 pub const _SC_LEVEL2_CACHE_LINESIZE
: ::c_int
= 193;
665 pub const _SC_LEVEL3_CACHE_SIZE
: ::c_int
= 194;
666 pub const _SC_LEVEL3_CACHE_ASSOC
: ::c_int
= 195;
667 pub const _SC_LEVEL3_CACHE_LINESIZE
: ::c_int
= 196;
668 pub const _SC_LEVEL4_CACHE_SIZE
: ::c_int
= 197;
669 pub const _SC_LEVEL4_CACHE_ASSOC
: ::c_int
= 198;
670 pub const _SC_LEVEL4_CACHE_LINESIZE
: ::c_int
= 199;
671 pub const O_ASYNC
: ::c_int
= 0x2000;
672 pub const O_NDELAY
: ::c_int
= 0x800;
673 pub const ST_RELATIME
: ::c_ulong
= 4096;
674 pub const NI_MAXHOST
: ::socklen_t
= 1025;
676 pub const ADFS_SUPER_MAGIC
: ::c_int
= 0x0000adf5;
677 pub const AFFS_SUPER_MAGIC
: ::c_int
= 0x0000adff;
678 pub const CODA_SUPER_MAGIC
: ::c_int
= 0x73757245;
679 pub const CRAMFS_MAGIC
: ::c_int
= 0x28cd3d45;
680 pub const EFS_SUPER_MAGIC
: ::c_int
= 0x00414a53;
681 pub const EXT2_SUPER_MAGIC
: ::c_int
= 0x0000ef53;
682 pub const EXT3_SUPER_MAGIC
: ::c_int
= 0x0000ef53;
683 pub const EXT4_SUPER_MAGIC
: ::c_int
= 0x0000ef53;
684 pub const HPFS_SUPER_MAGIC
: ::c_int
= 0xf995e849;
685 pub const HUGETLBFS_MAGIC
: ::c_int
= 0x958458f6;
686 pub const ISOFS_SUPER_MAGIC
: ::c_int
= 0x00009660;
687 pub const JFFS2_SUPER_MAGIC
: ::c_int
= 0x000072b6;
688 pub const MINIX_SUPER_MAGIC
: ::c_int
= 0x0000137f;
689 pub const MINIX_SUPER_MAGIC2
: ::c_int
= 0x0000138f;
690 pub const MINIX2_SUPER_MAGIC
: ::c_int
= 0x00002468;
691 pub const MINIX2_SUPER_MAGIC2
: ::c_int
= 0x00002478;
692 pub const MSDOS_SUPER_MAGIC
: ::c_int
= 0x00004d44;
693 pub const NCP_SUPER_MAGIC
: ::c_int
= 0x0000564c;
694 pub const NFS_SUPER_MAGIC
: ::c_int
= 0x00006969;
695 pub const OPENPROM_SUPER_MAGIC
: ::c_int
= 0x00009fa1;
696 pub const PROC_SUPER_MAGIC
: ::c_int
= 0x00009fa0;
697 pub const QNX4_SUPER_MAGIC
: ::c_int
= 0x0000002f;
698 pub const REISERFS_SUPER_MAGIC
: ::c_int
= 0x52654973;
699 pub const SMB_SUPER_MAGIC
: ::c_int
= 0x0000517b;
700 pub const TMPFS_MAGIC
: ::c_int
= 0x01021994;
701 pub const USBDEVICE_SUPER_MAGIC
: ::c_int
= 0x00009fa2;
703 pub const VEOF
: usize = 4;
704 pub const VEOL
: usize = 11;
705 pub const VEOL2
: usize = 16;
706 pub const VMIN
: usize = 6;
707 pub const IEXTEN
: ::tcflag_t
= 0x00008000;
708 pub const TOSTOP
: ::tcflag_t
= 0x00000100;
709 pub const FLUSHO
: ::tcflag_t
= 0x00001000;
711 pub const CPU_SETSIZE
: ::c_int
= 0x400;
713 pub const EXTPROC
: ::tcflag_t
= 0x00010000;
715 pub const PTRACE_TRACEME
: ::c_uint
= 0;
716 pub const PTRACE_PEEKTEXT
: ::c_uint
= 1;
717 pub const PTRACE_PEEKDATA
: ::c_uint
= 2;
718 pub const PTRACE_PEEKUSER
: ::c_uint
= 3;
719 pub const PTRACE_POKETEXT
: ::c_uint
= 4;
720 pub const PTRACE_POKEDATA
: ::c_uint
= 5;
721 pub const PTRACE_POKEUSER
: ::c_uint
= 6;
722 pub const PTRACE_CONT
: ::c_uint
= 7;
723 pub const PTRACE_KILL
: ::c_uint
= 8;
724 pub const PTRACE_SINGLESTEP
: ::c_uint
= 9;
725 pub const PTRACE_GETREGS
: ::c_uint
= 12;
726 pub const PTRACE_SETREGS
: ::c_uint
= 13;
727 pub const PTRACE_GETFPREGS
: ::c_uint
= 14;
728 pub const PTRACE_SETFPREGS
: ::c_uint
= 15;
729 pub const PTRACE_ATTACH
: ::c_uint
= 16;
730 pub const PTRACE_DETACH
: ::c_uint
= 17;
731 pub const PTRACE_SYSCALL
: ::c_uint
= 24;
732 pub const PTRACE_SETOPTIONS
: ::c_uint
= 0x4200;
733 pub const PTRACE_GETEVENTMSG
: ::c_uint
= 0x4201;
734 pub const PTRACE_GETSIGINFO
: ::c_uint
= 0x4202;
735 pub const PTRACE_SETSIGINFO
: ::c_uint
= 0x4203;
736 pub const PTRACE_GETREGSET
: ::c_uint
= 0x4204;
737 pub const PTRACE_SETREGSET
: ::c_uint
= 0x4205;
738 pub const PTRACE_SEIZE
: ::c_uint
= 0x4206;
739 pub const PTRACE_INTERRUPT
: ::c_uint
= 0x4207;
740 pub const PTRACE_LISTEN
: ::c_uint
= 0x4208;
741 pub const PTRACE_PEEKSIGINFO
: ::c_uint
= 0x4209;
743 pub const EPOLLWAKEUP
: ::c_int
= 0x20000000;
745 pub const MAP_HUGETLB
: ::c_int
= 0x040000;
747 pub const EFD_NONBLOCK
: ::c_int
= 0x800;
749 pub const F_GETLK
: ::c_int
= 5;
750 pub const F_GETOWN
: ::c_int
= 9;
751 pub const F_SETOWN
: ::c_int
= 8;
752 pub const F_SETLK
: ::c_int
= 6;
753 pub const F_SETLKW
: ::c_int
= 7;
755 pub const SEEK_DATA
: ::c_int
= 3;
756 pub const SEEK_HOLE
: ::c_int
= 4;
758 pub const SFD_NONBLOCK
: ::c_int
= 0x0800;
760 pub const TCSANOW
: ::c_int
= 0;
761 pub const TCSADRAIN
: ::c_int
= 1;
762 pub const TCSAFLUSH
: ::c_int
= 2;
764 pub const TCGETS
: ::c_ulong
= 0x5401;
765 pub const TCSETS
: ::c_ulong
= 0x5402;
766 pub const TCSETSW
: ::c_ulong
= 0x5403;
767 pub const TCSETSF
: ::c_ulong
= 0x5404;
768 pub const TCGETA
: ::c_ulong
= 0x5405;
769 pub const TCSETA
: ::c_ulong
= 0x5406;
770 pub const TCSETAW
: ::c_ulong
= 0x5407;
771 pub const TCSETAF
: ::c_ulong
= 0x5408;
772 pub const TCSBRK
: ::c_ulong
= 0x5409;
773 pub const TCXONC
: ::c_ulong
= 0x540A;
774 pub const TCFLSH
: ::c_ulong
= 0x540B;
775 pub const TIOCGSOFTCAR
: ::c_ulong
= 0x5419;
776 pub const TIOCSSOFTCAR
: ::c_ulong
= 0x541A;
777 pub const TIOCINQ
: ::c_ulong
= 0x541B;
778 pub const TIOCLINUX
: ::c_ulong
= 0x541C;
779 pub const TIOCGSERIAL
: ::c_ulong
= 0x541E;
780 pub const TIOCEXCL
: ::c_ulong
= 0x540C;
781 pub const TIOCNXCL
: ::c_ulong
= 0x540D;
782 pub const TIOCSCTTY
: ::c_ulong
= 0x540E;
783 pub const TIOCGPGRP
: ::c_ulong
= 0x540F;
784 pub const TIOCSPGRP
: ::c_ulong
= 0x5410;
785 pub const TIOCOUTQ
: ::c_ulong
= 0x5411;
786 pub const TIOCSTI
: ::c_ulong
= 0x5412;
787 pub const TIOCGWINSZ
: ::c_ulong
= 0x5413;
788 pub const TIOCSWINSZ
: ::c_ulong
= 0x5414;
789 pub const TIOCMGET
: ::c_ulong
= 0x5415;
790 pub const TIOCMBIS
: ::c_ulong
= 0x5416;
791 pub const TIOCMBIC
: ::c_ulong
= 0x5417;
792 pub const TIOCMSET
: ::c_ulong
= 0x5418;
793 pub const FIONREAD
: ::c_ulong
= 0x541B;
794 pub const TIOCCONS
: ::c_ulong
= 0x541D;
796 pub const RTLD_DEEPBIND
: ::c_int
= 0x8;
797 pub const RTLD_GLOBAL
: ::c_int
= 0x100;
798 pub const RTLD_NOLOAD
: ::c_int
= 0x4;
800 pub const LINUX_REBOOT_MAGIC1
: ::c_int
= 0xfee1dead;
801 pub const LINUX_REBOOT_MAGIC2
: ::c_int
= 672274793;
802 pub const LINUX_REBOOT_MAGIC2A
: ::c_int
= 85072278;
803 pub const LINUX_REBOOT_MAGIC2B
: ::c_int
= 369367448;
804 pub const LINUX_REBOOT_MAGIC2C
: ::c_int
= 537993216;
806 pub const LINUX_REBOOT_CMD_RESTART
: ::c_int
= 0x01234567;
807 pub const LINUX_REBOOT_CMD_HALT
: ::c_int
= 0xCDEF0123;
808 pub const LINUX_REBOOT_CMD_CAD_ON
: ::c_int
= 0x89ABCDEF;
809 pub const LINUX_REBOOT_CMD_CAD_OFF
: ::c_int
= 0x00000000;
810 pub const LINUX_REBOOT_CMD_POWER_OFF
: ::c_int
= 0x4321FEDC;
811 pub const LINUX_REBOOT_CMD_RESTART2
: ::c_int
= 0xA1B2C3D4;
812 pub const LINUX_REBOOT_CMD_SW_SUSPEND
: ::c_int
= 0xD000FCE2;
813 pub const LINUX_REBOOT_CMD_KEXEC
: ::c_int
= 0x45584543;
815 pub const VTIME
: usize = 5;
816 pub const VSWTC
: usize = 7;
817 pub const VSTART
: usize = 8;
818 pub const VSTOP
: usize = 9;
819 pub const VSUSP
: usize = 10;
820 pub const VREPRINT
: usize = 12;
821 pub const VDISCARD
: usize = 13;
822 pub const VWERASE
: usize = 14;
823 pub const OLCUC
: ::tcflag_t
= 0o000002;
824 pub const ONLCR
: ::tcflag_t
= 0o000004;
825 pub const NLDLY
: ::tcflag_t
= 0o000400;
826 pub const CRDLY
: ::tcflag_t
= 0o003000;
827 pub const CR1
: ::tcflag_t
= 0x00000200;
828 pub const CR2
: ::tcflag_t
= 0x00000400;
829 pub const CR3
: ::tcflag_t
= 0x00000600;
830 pub const TABDLY
: ::tcflag_t
= 0o014000;
831 pub const TAB1
: ::tcflag_t
= 0x00000800;
832 pub const TAB2
: ::tcflag_t
= 0x00001000;
833 pub const TAB3
: ::tcflag_t
= 0x00001800;
834 pub const BSDLY
: ::tcflag_t
= 0o020000;
835 pub const BS1
: ::tcflag_t
= 0x00002000;
836 pub const FFDLY
: ::tcflag_t
= 0o100000;
837 pub const FF1
: ::tcflag_t
= 0x00008000;
838 pub const VTDLY
: ::tcflag_t
= 0o040000;
839 pub const VT1
: ::tcflag_t
= 0x00004000;
840 pub const XTABS
: ::tcflag_t
= 0o014000;
842 pub const TIOCM_LE
: ::c_int
= 0x001;
843 pub const TIOCM_DTR
: ::c_int
= 0x002;
844 pub const TIOCM_RTS
: ::c_int
= 0x004;
845 pub const TIOCM_ST
: ::c_int
= 0x008;
846 pub const TIOCM_SR
: ::c_int
= 0x010;
847 pub const TIOCM_CTS
: ::c_int
= 0x020;
848 pub const TIOCM_CAR
: ::c_int
= 0x040;
849 pub const TIOCM_RNG
: ::c_int
= 0x080;
850 pub const TIOCM_DSR
: ::c_int
= 0x100;
851 pub const TIOCM_CD
: ::c_int
= TIOCM_CAR
;
852 pub const TIOCM_RI
: ::c_int
= TIOCM_RNG
;
854 pub const SIGEV_THREAD_ID
: ::c_int
= 4;
856 pub const CBAUD
: ::speed_t
= 0o010017;
857 pub const B0
: ::speed_t
= 0o000000;
858 pub const B50
: ::speed_t
= 0o000001;
859 pub const B75
: ::speed_t
= 0o000002;
860 pub const B110
: ::speed_t
= 0o000003;
861 pub const B134
: ::speed_t
= 0o000004;
862 pub const B150
: ::speed_t
= 0o000005;
863 pub const B200
: ::speed_t
= 0o000006;
864 pub const B300
: ::speed_t
= 0o000007;
865 pub const B600
: ::speed_t
= 0o000010;
866 pub const B1200
: ::speed_t
= 0o000011;
867 pub const B1800
: ::speed_t
= 0o000012;
868 pub const B2400
: ::speed_t
= 0o000013;
869 pub const B4800
: ::speed_t
= 0o000014;
870 pub const B9600
: ::speed_t
= 0o000015;
871 pub const B19200
: ::speed_t
= 0o000016;
872 pub const B38400
: ::speed_t
= 0o000017;
873 pub const EXTA
: ::speed_t
= B19200
;
874 pub const EXTB
: ::speed_t
= B38400
;
875 pub const CSIZE
: ::tcflag_t
= 0o000060;
876 pub const CS6
: ::tcflag_t
= 0o000020;
877 pub const CS7
: ::tcflag_t
= 0o000040;
878 pub const CS8
: ::tcflag_t
= 0o000060;
879 pub const CSTOPB
: ::tcflag_t
= 0o000100;
880 pub const CREAD
: ::tcflag_t
= 0o000200;
881 pub const PARENB
: ::tcflag_t
= 0o000400;
882 pub const PARODD
: ::tcflag_t
= 0o001000;
883 pub const HUPCL
: ::tcflag_t
= 0o002000;
884 pub const CLOCAL
: ::tcflag_t
= 0o004000;
885 pub const CBAUDEX
: ::tcflag_t
= 0o010000;
886 pub const BOTHER
: ::speed_t
= 0o010000;
887 pub const B57600
: ::speed_t
= 0o010001;
888 pub const B115200
: ::speed_t
= 0o010002;
889 pub const B230400
: ::speed_t
= 0o010003;
890 pub const B460800
: ::speed_t
= 0o010004;
891 pub const B500000
: ::speed_t
= 0o010005;
892 pub const B576000
: ::speed_t
= 0o010006;
893 pub const B921600
: ::speed_t
= 0o010007;
894 pub const B1000000
: ::speed_t
= 0o010010;
895 pub const B1152000
: ::speed_t
= 0o010011;
896 pub const B1500000
: ::speed_t
= 0o010012;
897 pub const B2000000
: ::speed_t
= 0o010013;
898 pub const B2500000
: ::speed_t
= 0o010014;
899 pub const B3000000
: ::speed_t
= 0o010015;
900 pub const B3500000
: ::speed_t
= 0o010016;
901 pub const B4000000
: ::speed_t
= 0o010017;
902 pub const CIBAUD
: ::tcflag_t
= 0o02003600000;
904 pub const ISIG
: ::tcflag_t
= 0o000001;
905 pub const ICANON
: ::tcflag_t
= 0o000002;
906 pub const XCASE
: ::tcflag_t
= 0o000004;
907 pub const ECHOE
: ::tcflag_t
= 0o000020;
908 pub const ECHOK
: ::tcflag_t
= 0o000040;
909 pub const ECHONL
: ::tcflag_t
= 0o000100;
910 pub const NOFLSH
: ::tcflag_t
= 0o000200;
911 pub const ECHOCTL
: ::tcflag_t
= 0o001000;
912 pub const ECHOPRT
: ::tcflag_t
= 0o002000;
913 pub const ECHOKE
: ::tcflag_t
= 0o004000;
914 pub const PENDIN
: ::tcflag_t
= 0o040000;
916 pub const POLLWRNORM
: ::c_short
= 0x004;
917 pub const POLLWRBAND
: ::c_short
= 0x100;
919 pub const IXON
: ::tcflag_t
= 0o002000;
920 pub const IXOFF
: ::tcflag_t
= 0o010000;
922 pub const SYS_exit
: ::c_long
= 1;
923 pub const SYS_fork
: ::c_long
= 2;
924 pub const SYS_read
: ::c_long
= 3;
925 pub const SYS_write
: ::c_long
= 4;
926 pub const SYS_open
: ::c_long
= 5;
927 pub const SYS_close
: ::c_long
= 6;
928 pub const SYS_restart_syscall
: ::c_long
= 7;
929 pub const SYS_creat
: ::c_long
= 8;
930 pub const SYS_link
: ::c_long
= 9;
931 pub const SYS_unlink
: ::c_long
= 10;
932 pub const SYS_execve
: ::c_long
= 11;
933 pub const SYS_chdir
: ::c_long
= 12;
934 pub const SYS_mknod
: ::c_long
= 14;
935 pub const SYS_chmod
: ::c_long
= 15;
936 pub const SYS_lseek
: ::c_long
= 19;
937 pub const SYS_getpid
: ::c_long
= 20;
938 pub const SYS_mount
: ::c_long
= 21;
939 pub const SYS_umount
: ::c_long
= 22;
940 pub const SYS_ptrace
: ::c_long
= 26;
941 pub const SYS_alarm
: ::c_long
= 27;
942 pub const SYS_pause
: ::c_long
= 29;
943 pub const SYS_utime
: ::c_long
= 30;
944 pub const SYS_access
: ::c_long
= 33;
945 pub const SYS_nice
: ::c_long
= 34;
946 pub const SYS_sync
: ::c_long
= 36;
947 pub const SYS_kill
: ::c_long
= 37;
948 pub const SYS_rename
: ::c_long
= 38;
949 pub const SYS_mkdir
: ::c_long
= 39;
950 pub const SYS_rmdir
: ::c_long
= 40;
951 pub const SYS_dup
: ::c_long
= 41;
952 pub const SYS_pipe
: ::c_long
= 42;
953 pub const SYS_times
: ::c_long
= 43;
954 pub const SYS_brk
: ::c_long
= 45;
955 pub const SYS_signal
: ::c_long
= 48;
956 pub const SYS_acct
: ::c_long
= 51;
957 pub const SYS_umount2
: ::c_long
= 52;
958 pub const SYS_ioctl
: ::c_long
= 54;
959 pub const SYS_fcntl
: ::c_long
= 55;
960 pub const SYS_setpgid
: ::c_long
= 57;
961 pub const SYS_umask
: ::c_long
= 60;
962 pub const SYS_chroot
: ::c_long
= 61;
963 pub const SYS_ustat
: ::c_long
= 62;
964 pub const SYS_dup2
: ::c_long
= 63;
965 pub const SYS_getppid
: ::c_long
= 64;
966 pub const SYS_getpgrp
: ::c_long
= 65;
967 pub const SYS_setsid
: ::c_long
= 66;
968 pub const SYS_sigaction
: ::c_long
= 67;
969 pub const SYS_sigsuspend
: ::c_long
= 72;
970 pub const SYS_sigpending
: ::c_long
= 73;
971 pub const SYS_sethostname
: ::c_long
= 74;
972 pub const SYS_setrlimit
: ::c_long
= 75;
973 pub const SYS_getrusage
: ::c_long
= 77;
974 pub const SYS_gettimeofday
: ::c_long
= 78;
975 pub const SYS_settimeofday
: ::c_long
= 79;
976 pub const SYS_symlink
: ::c_long
= 83;
977 pub const SYS_readlink
: ::c_long
= 85;
978 pub const SYS_uselib
: ::c_long
= 86;
979 pub const SYS_swapon
: ::c_long
= 87;
980 pub const SYS_reboot
: ::c_long
= 88;
981 pub const SYS_readdir
: ::c_long
= 89;
982 pub const SYS_mmap
: ::c_long
= 90;
983 pub const SYS_munmap
: ::c_long
= 91;
984 pub const SYS_truncate
: ::c_long
= 92;
985 pub const SYS_ftruncate
: ::c_long
= 93;
986 pub const SYS_fchmod
: ::c_long
= 94;
987 pub const SYS_getpriority
: ::c_long
= 96;
988 pub const SYS_setpriority
: ::c_long
= 97;
989 pub const SYS_statfs
: ::c_long
= 99;
990 pub const SYS_fstatfs
: ::c_long
= 100;
991 pub const SYS_socketcall
: ::c_long
= 102;
992 pub const SYS_syslog
: ::c_long
= 103;
993 pub const SYS_setitimer
: ::c_long
= 104;
994 pub const SYS_getitimer
: ::c_long
= 105;
995 pub const SYS_stat
: ::c_long
= 106;
996 pub const SYS_lstat
: ::c_long
= 107;
997 pub const SYS_fstat
: ::c_long
= 108;
998 pub const SYS_lookup_dcookie
: ::c_long
= 110;
999 pub const SYS_vhangup
: ::c_long
= 111;
1000 pub const SYS_idle
: ::c_long
= 112;
1001 pub const SYS_wait4
: ::c_long
= 114;
1002 pub const SYS_swapoff
: ::c_long
= 115;
1003 pub const SYS_sysinfo
: ::c_long
= 116;
1004 pub const SYS_ipc
: ::c_long
= 117;
1005 pub const SYS_fsync
: ::c_long
= 118;
1006 pub const SYS_sigreturn
: ::c_long
= 119;
1007 pub const SYS_clone
: ::c_long
= 120;
1008 pub const SYS_setdomainname
: ::c_long
= 121;
1009 pub const SYS_uname
: ::c_long
= 122;
1010 pub const SYS_adjtimex
: ::c_long
= 124;
1011 pub const SYS_mprotect
: ::c_long
= 125;
1012 pub const SYS_sigprocmask
: ::c_long
= 126;
1013 pub const SYS_create_module
: ::c_long
= 127;
1014 pub const SYS_init_module
: ::c_long
= 128;
1015 pub const SYS_delete_module
: ::c_long
= 129;
1016 pub const SYS_get_kernel_syms
: ::c_long
= 130;
1017 pub const SYS_quotactl
: ::c_long
= 131;
1018 pub const SYS_getpgid
: ::c_long
= 132;
1019 pub const SYS_fchdir
: ::c_long
= 133;
1020 pub const SYS_bdflush
: ::c_long
= 134;
1021 pub const SYS_sysfs
: ::c_long
= 135;
1022 pub const SYS_personality
: ::c_long
= 136;
1023 pub const SYS_afs_syscall
: ::c_long
= 137; /* Syscall for Andrew File System */
1024 pub const SYS_getdents
: ::c_long
= 141;
1025 pub const SYS_flock
: ::c_long
= 143;
1026 pub const SYS_msync
: ::c_long
= 144;
1027 pub const SYS_readv
: ::c_long
= 145;
1028 pub const SYS_writev
: ::c_long
= 146;
1029 pub const SYS_getsid
: ::c_long
= 147;
1030 pub const SYS_fdatasync
: ::c_long
= 148;
1031 pub const SYS__sysctl
: ::c_long
= 149;
1032 pub const SYS_mlock
: ::c_long
= 150;
1033 pub const SYS_munlock
: ::c_long
= 151;
1034 pub const SYS_mlockall
: ::c_long
= 152;
1035 pub const SYS_munlockall
: ::c_long
= 153;
1036 pub const SYS_sched_setparam
: ::c_long
= 154;
1037 pub const SYS_sched_getparam
: ::c_long
= 155;
1038 pub const SYS_sched_setscheduler
: ::c_long
= 156;
1039 pub const SYS_sched_getscheduler
: ::c_long
= 157;
1040 pub const SYS_sched_yield
: ::c_long
= 158;
1041 pub const SYS_sched_get_priority_max
: ::c_long
= 159;
1042 pub const SYS_sched_get_priority_min
: ::c_long
= 160;
1043 pub const SYS_sched_rr_get_interval
: ::c_long
= 161;
1044 pub const SYS_nanosleep
: ::c_long
= 162;
1045 pub const SYS_mremap
: ::c_long
= 163;
1046 pub const SYS_query_module
: ::c_long
= 167;
1047 pub const SYS_poll
: ::c_long
= 168;
1048 pub const SYS_nfsservctl
: ::c_long
= 169;
1049 pub const SYS_prctl
: ::c_long
= 172;
1050 pub const SYS_rt_sigreturn
: ::c_long
= 173;
1051 pub const SYS_rt_sigaction
: ::c_long
= 174;
1052 pub const SYS_rt_sigprocmask
: ::c_long
= 175;
1053 pub const SYS_rt_sigpending
: ::c_long
= 176;
1054 pub const SYS_rt_sigtimedwait
: ::c_long
= 177;
1055 pub const SYS_rt_sigqueueinfo
: ::c_long
= 178;
1056 pub const SYS_rt_sigsuspend
: ::c_long
= 179;
1057 pub const SYS_pread64
: ::c_long
= 180;
1058 pub const SYS_pwrite64
: ::c_long
= 181;
1059 pub const SYS_getcwd
: ::c_long
= 183;
1060 pub const SYS_capget
: ::c_long
= 184;
1061 pub const SYS_capset
: ::c_long
= 185;
1062 pub const SYS_sigaltstack
: ::c_long
= 186;
1063 pub const SYS_sendfile
: ::c_long
= 187;
1064 pub const SYS_getpmsg
: ::c_long
= 188;
1065 pub const SYS_putpmsg
: ::c_long
= 189;
1066 pub const SYS_vfork
: ::c_long
= 190;
1067 pub const SYS_pivot_root
: ::c_long
= 217;
1068 pub const SYS_mincore
: ::c_long
= 218;
1069 pub const SYS_madvise
: ::c_long
= 219;
1070 pub const SYS_getdents64
: ::c_long
= 220;
1071 pub const SYS_readahead
: ::c_long
= 222;
1072 pub const SYS_setxattr
: ::c_long
= 224;
1073 pub const SYS_lsetxattr
: ::c_long
= 225;
1074 pub const SYS_fsetxattr
: ::c_long
= 226;
1075 pub const SYS_getxattr
: ::c_long
= 227;
1076 pub const SYS_lgetxattr
: ::c_long
= 228;
1077 pub const SYS_fgetxattr
: ::c_long
= 229;
1078 pub const SYS_listxattr
: ::c_long
= 230;
1079 pub const SYS_llistxattr
: ::c_long
= 231;
1080 pub const SYS_flistxattr
: ::c_long
= 232;
1081 pub const SYS_removexattr
: ::c_long
= 233;
1082 pub const SYS_lremovexattr
: ::c_long
= 234;
1083 pub const SYS_fremovexattr
: ::c_long
= 235;
1084 pub const SYS_gettid
: ::c_long
= 236;
1085 pub const SYS_tkill
: ::c_long
= 237;
1086 pub const SYS_futex
: ::c_long
= 238;
1087 pub const SYS_sched_setaffinity
: ::c_long
= 239;
1088 pub const SYS_sched_getaffinity
: ::c_long
= 240;
1089 pub const SYS_tgkill
: ::c_long
= 241;
1090 pub const SYS_io_setup
: ::c_long
= 243;
1091 pub const SYS_io_destroy
: ::c_long
= 244;
1092 pub const SYS_io_getevents
: ::c_long
= 245;
1093 pub const SYS_io_submit
: ::c_long
= 246;
1094 pub const SYS_io_cancel
: ::c_long
= 247;
1095 pub const SYS_exit_group
: ::c_long
= 248;
1096 pub const SYS_epoll_create
: ::c_long
= 249;
1097 pub const SYS_epoll_ctl
: ::c_long
= 250;
1098 pub const SYS_epoll_wait
: ::c_long
= 251;
1099 pub const SYS_set_tid_address
: ::c_long
= 252;
1100 pub const SYS_fadvise64
: ::c_long
= 253;
1101 pub const SYS_timer_create
: ::c_long
= 254;
1102 pub const SYS_timer_settime
: ::c_long
= 255;
1103 pub const SYS_timer_gettime
: ::c_long
= 256;
1104 pub const SYS_timer_getoverrun
: ::c_long
= 257;
1105 pub const SYS_timer_delete
: ::c_long
= 258;
1106 pub const SYS_clock_settime
: ::c_long
= 259;
1107 pub const SYS_clock_gettime
: ::c_long
= 260;
1108 pub const SYS_clock_getres
: ::c_long
= 261;
1109 pub const SYS_clock_nanosleep
: ::c_long
= 262;
1110 pub const SYS_statfs64
: ::c_long
= 265;
1111 pub const SYS_fstatfs64
: ::c_long
= 266;
1112 pub const SYS_remap_file_pages
: ::c_long
= 267;
1113 pub const SYS_mbind
: ::c_long
= 268;
1114 pub const SYS_get_mempolicy
: ::c_long
= 269;
1115 pub const SYS_set_mempolicy
: ::c_long
= 270;
1116 pub const SYS_mq_open
: ::c_long
= 271;
1117 pub const SYS_mq_unlink
: ::c_long
= 272;
1118 pub const SYS_mq_timedsend
: ::c_long
= 273;
1119 pub const SYS_mq_timedreceive
: ::c_long
= 274;
1120 pub const SYS_mq_notify
: ::c_long
= 275;
1121 pub const SYS_mq_getsetattr
: ::c_long
= 276;
1122 pub const SYS_kexec_load
: ::c_long
= 277;
1123 pub const SYS_add_key
: ::c_long
= 278;
1124 pub const SYS_request_key
: ::c_long
= 279;
1125 pub const SYS_keyctl
: ::c_long
= 280;
1126 pub const SYS_waitid
: ::c_long
= 281;
1127 pub const SYS_ioprio_set
: ::c_long
= 282;
1128 pub const SYS_ioprio_get
: ::c_long
= 283;
1129 pub const SYS_inotify_init
: ::c_long
= 284;
1130 pub const SYS_inotify_add_watch
: ::c_long
= 285;
1131 pub const SYS_inotify_rm_watch
: ::c_long
= 286;
1132 pub const SYS_migrate_pages
: ::c_long
= 287;
1133 pub const SYS_openat
: ::c_long
= 288;
1134 pub const SYS_mkdirat
: ::c_long
= 289;
1135 pub const SYS_mknodat
: ::c_long
= 290;
1136 pub const SYS_fchownat
: ::c_long
= 291;
1137 pub const SYS_futimesat
: ::c_long
= 292;
1138 pub const SYS_unlinkat
: ::c_long
= 294;
1139 pub const SYS_renameat
: ::c_long
= 295;
1140 pub const SYS_linkat
: ::c_long
= 296;
1141 pub const SYS_symlinkat
: ::c_long
= 297;
1142 pub const SYS_readlinkat
: ::c_long
= 298;
1143 pub const SYS_fchmodat
: ::c_long
= 299;
1144 pub const SYS_faccessat
: ::c_long
= 300;
1145 pub const SYS_pselect6
: ::c_long
= 301;
1146 pub const SYS_ppoll
: ::c_long
= 302;
1147 pub const SYS_unshare
: ::c_long
= 303;
1148 pub const SYS_set_robust_list
: ::c_long
= 304;
1149 pub const SYS_get_robust_list
: ::c_long
= 305;
1150 pub const SYS_splice
: ::c_long
= 306;
1151 pub const SYS_sync_file_range
: ::c_long
= 307;
1152 pub const SYS_tee
: ::c_long
= 308;
1153 pub const SYS_vmsplice
: ::c_long
= 309;
1154 pub const SYS_move_pages
: ::c_long
= 310;
1155 pub const SYS_getcpu
: ::c_long
= 311;
1156 pub const SYS_epoll_pwait
: ::c_long
= 312;
1157 pub const SYS_utimes
: ::c_long
= 313;
1158 pub const SYS_fallocate
: ::c_long
= 314;
1159 pub const SYS_utimensat
: ::c_long
= 315;
1160 pub const SYS_signalfd
: ::c_long
= 316;
1161 pub const SYS_timerfd
: ::c_long
= 317;
1162 pub const SYS_eventfd
: ::c_long
= 318;
1163 pub const SYS_timerfd_create
: ::c_long
= 319;
1164 pub const SYS_timerfd_settime
: ::c_long
= 320;
1165 pub const SYS_timerfd_gettime
: ::c_long
= 321;
1166 pub const SYS_signalfd4
: ::c_long
= 322;
1167 pub const SYS_eventfd2
: ::c_long
= 323;
1168 pub const SYS_inotify_init1
: ::c_long
= 324;
1169 pub const SYS_pipe2
: ::c_long
= 325;
1170 pub const SYS_dup3
: ::c_long
= 326;
1171 pub const SYS_epoll_create1
: ::c_long
= 327;
1172 pub const SYS_preadv
: ::c_long
= 328;
1173 pub const SYS_pwritev
: ::c_long
= 329;
1174 pub const SYS_rt_tgsigqueueinfo
: ::c_long
= 330;
1175 pub const SYS_perf_event_open
: ::c_long
= 331;
1176 pub const SYS_fanotify_init
: ::c_long
= 332;
1177 pub const SYS_fanotify_mark
: ::c_long
= 333;
1178 pub const SYS_prlimit64
: ::c_long
= 334;
1179 pub const SYS_name_to_handle_at
: ::c_long
= 335;
1180 pub const SYS_open_by_handle_at
: ::c_long
= 336;
1181 pub const SYS_clock_adjtime
: ::c_long
= 337;
1182 pub const SYS_syncfs
: ::c_long
= 338;
1183 pub const SYS_setns
: ::c_long
= 339;
1184 pub const SYS_process_vm_readv
: ::c_long
= 340;
1185 pub const SYS_process_vm_writev
: ::c_long
= 341;
1186 pub const SYS_s390_runtime_instr
: ::c_long
= 342;
1187 pub const SYS_kcmp
: ::c_long
= 343;
1188 pub const SYS_finit_module
: ::c_long
= 344;
1189 pub const SYS_sched_setattr
: ::c_long
= 345;
1190 pub const SYS_sched_getattr
: ::c_long
= 346;
1191 pub const SYS_renameat2
: ::c_long
= 347;
1192 pub const SYS_seccomp
: ::c_long
= 348;
1193 pub const SYS_getrandom
: ::c_long
= 349;
1194 pub const SYS_memfd_create
: ::c_long
= 350;
1195 pub const SYS_bpf
: ::c_long
= 351;
1196 pub const SYS_s390_pci_mmio_write
: ::c_long
= 352;
1197 pub const SYS_s390_pci_mmio_read
: ::c_long
= 353;
1198 pub const SYS_execveat
: ::c_long
= 354;
1199 pub const SYS_userfaultfd
: ::c_long
= 355;
1200 pub const SYS_membarrier
: ::c_long
= 356;
1201 pub const SYS_recvmmsg
: ::c_long
= 357;
1202 pub const SYS_sendmmsg
: ::c_long
= 358;
1203 pub const SYS_socket
: ::c_long
= 359;
1204 pub const SYS_socketpair
: ::c_long
= 360;
1205 pub const SYS_bind
: ::c_long
= 361;
1206 pub const SYS_connect
: ::c_long
= 362;
1207 pub const SYS_listen
: ::c_long
= 363;
1208 pub const SYS_accept4
: ::c_long
= 364;
1209 pub const SYS_getsockopt
: ::c_long
= 365;
1210 pub const SYS_setsockopt
: ::c_long
= 366;
1211 pub const SYS_getsockname
: ::c_long
= 367;
1212 pub const SYS_getpeername
: ::c_long
= 368;
1213 pub const SYS_sendto
: ::c_long
= 369;
1214 pub const SYS_sendmsg
: ::c_long
= 370;
1215 pub const SYS_recvfrom
: ::c_long
= 371;
1216 pub const SYS_recvmsg
: ::c_long
= 372;
1217 pub const SYS_shutdown
: ::c_long
= 373;
1218 pub const SYS_mlock2
: ::c_long
= 374;
1219 pub const SYS_copy_file_range
: ::c_long
= 375;
1220 pub const SYS_preadv2
: ::c_long
= 376;
1221 pub const SYS_pwritev2
: ::c_long
= 377;
1222 pub const SYS_lchown
: ::c_long
= 16;
1223 pub const SYS_setuid
: ::c_long
= 23;
1224 pub const SYS_getuid
: ::c_long
= 24;
1225 pub const SYS_setgid
: ::c_long
= 46;
1226 pub const SYS_getgid
: ::c_long
= 47;
1227 pub const SYS_geteuid
: ::c_long
= 49;
1228 pub const SYS_setreuid
: ::c_long
= 70;
1229 pub const SYS_setregid
: ::c_long
= 71;
1230 pub const SYS_getrlimit
: ::c_long
= 76;
1231 pub const SYS_getgroups
: ::c_long
= 80;
1232 pub const SYS_fchown
: ::c_long
= 95;
1233 pub const SYS_setresuid
: ::c_long
= 164;
1234 pub const SYS_setresgid
: ::c_long
= 170;
1235 pub const SYS_getresgid
: ::c_long
= 171;
1236 pub const SYS_select
: ::c_long
= 142;
1237 pub const SYS_getegid
: ::c_long
= 202;
1238 pub const SYS_setgroups
: ::c_long
= 206;
1239 pub const SYS_getresuid
: ::c_long
= 209;
1240 pub const SYS_chown
: ::c_long
= 212;
1241 pub const SYS_setfsuid
: ::c_long
= 215;
1242 pub const SYS_setfsgid
: ::c_long
= 216;
1243 pub const SYS_newfstatat
: ::c_long
= 293;
1245 #[link(name = "util")]
1247 pub fn sysctl(name
: *mut ::c_int
,
1249 oldp
: *mut ::c_void
,
1250 oldlenp
: *mut ::size_t
,
1251 newp
: *mut ::c_void
,
1254 pub fn ioctl(fd
: ::c_int
, request
: ::c_ulong
, ...) -> ::c_int
;
1255 pub fn backtrace(buf
: *mut *mut ::c_void
,
1256 sz
: ::c_int
) -> ::c_int
;
1257 pub fn glob64(pattern
: *const ::c_char
,
1259 errfunc
: ::dox
::Option
<extern fn(epath
: *const ::c_char
,
1262 pglob
: *mut glob64_t
) -> ::c_int
;
1263 pub fn globfree64(pglob
: *mut glob64_t
);
1264 pub fn ptrace(request
: ::c_uint
, ...) -> ::c_long
;
1265 pub fn pthread_attr_getaffinity_np(attr
: *const ::pthread_attr_t
,
1266 cpusetsize
: ::size_t
,
1267 cpuset
: *mut ::cpu_set_t
) -> ::c_int
;
1268 pub fn pthread_attr_setaffinity_np(attr
: *mut ::pthread_attr_t
,
1269 cpusetsize
: ::size_t
,
1270 cpuset
: *const ::cpu_set_t
) -> ::c_int
;
1271 pub fn getpriority(which
: ::__priority_which_t
, who
: ::id_t
) -> ::c_int
;
1272 pub fn setpriority(which
: ::__priority_which_t
, who
: ::id_t
,
1273 prio
: ::c_int
) -> ::c_int
;
1274 pub fn pthread_getaffinity_np(thread
: ::pthread_t
,
1275 cpusetsize
: ::size_t
,
1276 cpuset
: *mut ::cpu_set_t
) -> ::c_int
;
1277 pub fn pthread_setaffinity_np(thread
: ::pthread_t
,
1278 cpusetsize
: ::size_t
,
1279 cpuset
: *const ::cpu_set_t
) -> ::c_int
;
1280 pub fn sched_getcpu() -> ::c_int
;
1281 pub fn getcontext(ucp
: *mut ucontext_t
) -> ::c_int
;
1282 pub fn setcontext(ucp
: *const ucontext_t
) -> ::c_int
;
1283 pub fn makecontext(ucp
: *mut ucontext_t
,
1285 argc
: ::c_int
, ...);
1286 pub fn swapcontext(uocp
: *mut ucontext_t
,
1287 ucp
: *const ucontext_t
) -> ::c_int
;