1 use dox
::{mem, Option}
;
4 pub type wchar_t
= i32;
5 pub type useconds_t
= u32;
7 pub type socklen_t
= u32;
8 pub type pthread_t
= c_ulong
;
10 pub type ino64_t
= u32;
11 pub type off64_t
= i32;
12 pub type blkcnt64_t
= i32;
13 pub type rlim64_t
= u64;
14 pub type shmatt_t
= ::c_ulong
;
15 pub type mqd_t
= ::c_int
;
16 pub type msgqnum_t
= ::c_ulong
;
17 pub type msglen_t
= ::c_ulong
;
18 pub type nfds_t
= ::c_ulong
;
19 pub type nl_item
= ::c_int
;
20 pub type idtype_t
= ::c_uint
;
21 pub type loff_t
= i32;
23 pub type clock_t
= c_long
;
24 pub type time_t
= c_long
;
25 pub type suseconds_t
= c_long
;
28 pub type blkcnt_t
= i32;
30 pub type blksize_t
= c_long
;
31 pub type fsblkcnt_t
= u32;
32 pub type fsfilcnt_t
= u32;
33 pub type rlim_t
= ::c_ulonglong
;
34 pub type c_long
= i32;
35 pub type c_ulong
= u32;
36 pub type nlink_t
= u32;
38 pub enum fpos64_t {}
// TODO: fill this out with a struct
44 pub d_reclen
: ::c_ushort
,
45 pub d_type
: ::c_uchar
,
46 pub d_name
: [::c_char
; 256],
52 pub d_reclen
: ::c_ushort
,
53 pub d_type
: ::c_uchar
,
54 pub d_name
: [::c_char
; 256],
58 pub rlim_cur
: rlim64_t
,
59 pub rlim_max
: rlim64_t
,
63 pub gl_pathc
: ::size_t
,
64 pub gl_pathv
: *mut *mut c_char
,
65 pub gl_offs
: ::size_t
,
66 pub gl_flags
: ::c_int
,
68 __unused1
: *mut ::c_void
,
69 __unused2
: *mut ::c_void
,
70 __unused3
: *mut ::c_void
,
71 __unused4
: *mut ::c_void
,
72 __unused5
: *mut ::c_void
,
76 pub ifa_next
: *mut ifaddrs
,
77 pub ifa_name
: *mut c_char
,
78 pub ifa_flags
: ::c_uint
,
79 pub ifa_addr
: *mut ::sockaddr
,
80 pub ifa_netmask
: *mut ::sockaddr
,
81 pub ifa_ifu
: *mut ::sockaddr
, // FIXME This should be a union
82 pub ifa_data
: *mut ::c_void
85 pub struct pthread_mutex_t
{
86 __align
: [::c_long
; 0],
87 size
: [u8; __SIZEOF_PTHREAD_MUTEX_T
],
90 pub struct pthread_rwlock_t
{
91 __align
: [::c_long
; 0],
92 size
: [u8; __SIZEOF_PTHREAD_RWLOCK_T
],
95 pub struct pthread_mutexattr_t
{
96 __align
: [::c_int
; 0],
97 size
: [u8; __SIZEOF_PTHREAD_MUTEXATTR_T
],
100 pub struct pthread_rwlockattr_t
{
101 __align
: [::c_int
; 0],
102 size
: [u8; __SIZEOF_PTHREAD_RWLOCKATTR_T
],
105 pub struct pthread_cond_t
{
106 __align
: [*const ::c_void
; 0],
107 size
: [u8; __SIZEOF_PTHREAD_COND_T
],
110 pub struct pthread_condattr_t
{
111 __align
: [::c_int
; 0],
112 size
: [u8; __SIZEOF_PTHREAD_CONDATTR_T
],
116 pub pw_name
: *mut ::c_char
,
117 pub pw_passwd
: *mut ::c_char
,
120 pub pw_gecos
: *mut ::c_char
,
121 pub pw_dir
: *mut ::c_char
,
122 pub pw_shell
: *mut ::c_char
,
126 pub sp_namp
: *mut ::c_char
,
127 pub sp_pwdp
: *mut ::c_char
,
128 pub sp_lstchg
: ::c_long
,
129 pub sp_min
: ::c_long
,
130 pub sp_max
: ::c_long
,
131 pub sp_warn
: ::c_long
,
132 pub sp_inact
: ::c_long
,
133 pub sp_expire
: ::c_long
,
134 pub sp_flag
: ::c_ulong
,
138 pub f_bsize
: ::c_ulong
,
139 pub f_frsize
: ::c_ulong
,
140 pub f_blocks
: ::fsblkcnt_t
,
141 pub f_bfree
: ::fsblkcnt_t
,
142 pub f_bavail
: ::fsblkcnt_t
,
143 pub f_files
: ::fsfilcnt_t
,
144 pub f_ffree
: ::fsfilcnt_t
,
145 pub f_favail
: ::fsfilcnt_t
,
146 pub f_fsid
: ::c_ulong
,
148 pub f_flag
: ::c_ulong
,
149 pub f_namemax
: ::c_ulong
,
150 __f_spare
: [::c_int
; 6],
154 pub dqb_bhardlimit
: ::uint64_t
,
155 pub dqb_bsoftlimit
: ::uint64_t
,
156 pub dqb_curspace
: ::uint64_t
,
157 pub dqb_ihardlimit
: ::uint64_t
,
158 pub dqb_isoftlimit
: ::uint64_t
,
159 pub dqb_curinodes
: ::uint64_t
,
160 pub dqb_btime
: ::uint64_t
,
161 pub dqb_itime
: ::uint64_t
,
162 pub dqb_valid
: ::uint32_t
,
165 pub struct signalfd_siginfo
{
166 pub ssi_signo
: ::uint32_t
,
167 pub ssi_errno
: ::int32_t
,
168 pub ssi_code
: ::int32_t
,
169 pub ssi_pid
: ::uint32_t
,
170 pub ssi_uid
: ::uint32_t
,
171 pub ssi_fd
: ::int32_t
,
172 pub ssi_tid
: ::uint32_t
,
173 pub ssi_band
: ::uint32_t
,
174 pub ssi_overrun
: ::uint32_t
,
175 pub ssi_trapno
: ::uint32_t
,
176 pub ssi_status
: ::int32_t
,
177 pub ssi_int
: ::int32_t
,
178 pub ssi_ptr
: ::uint64_t
,
179 pub ssi_utime
: ::uint64_t
,
180 pub ssi_stime
: ::uint64_t
,
181 pub ssi_addr
: ::uint64_t
,
182 _pad
: [::uint8_t
; 48],
190 pub mq_flags
: ::c_long
,
191 pub mq_maxmsg
: ::c_long
,
192 pub mq_msgsize
: ::c_long
,
193 pub mq_curmsgs
: ::c_long
,
197 pub struct cpu_set_t
{
201 pub struct if_nameindex
{
202 pub if_index
: ::c_uint
,
203 pub if_name
: *mut ::c_char
,
208 pub msgpool
: ::c_int
,
215 pub msgseg
: ::c_ushort
,
219 pub msg_hdr
: ::msghdr
,
220 pub msg_len
: ::c_uint
,
224 pub sem_num
: ::c_ushort
,
225 pub sem_op
: ::c_short
,
226 pub sem_flg
: ::c_short
,
230 pub aio_fildes
: ::c_int
,
231 pub aio_lio_opcode
: ::c_int
,
232 pub aio_reqprio
: ::c_int
,
233 pub aio_buf
: *mut ::c_void
,
234 pub aio_nbytes
: ::size_t
,
235 pub aio_sigevent
: ::sigevent
,
237 __lock
: [::c_int
; 2],
240 pub aio_offset
: off_t
,
241 __next
: *mut ::c_void
,
242 __prev
: *mut ::c_void
,
243 __dummy4
: [::c_char
; 24],
246 pub struct sigaction
{
247 pub sa_sigaction
: ::sighandler_t
,
248 pub sa_mask
: ::sigset_t
,
249 pub sa_flags
: ::c_int
,
250 pub sa_restorer
: ::dox
::Option
<extern fn()>,
253 pub struct ipc_perm
{
254 pub __ipc_perm_key
: ::key_t
,
266 pub c_iflag
: ::tcflag_t
,
267 pub c_oflag
: ::tcflag_t
,
268 pub c_cflag
: ::tcflag_t
,
269 pub c_lflag
: ::tcflag_t
,
271 pub c_cc
: [::cc_t
; ::NCCS
],
272 pub __c_ispeed
: ::speed_t
,
273 pub __c_ospeed
: ::speed_t
,
277 pub l_type
: ::c_short
,
278 pub l_whence
: ::c_short
,
279 pub l_start
: ::off_t
,
285 pub uptime
: ::c_ulong
,
286 pub loads
: [::c_ulong
; 3],
287 pub totalram
: ::c_ulong
,
288 pub freeram
: ::c_ulong
,
289 pub sharedram
: ::c_ulong
,
290 pub bufferram
: ::c_ulong
,
291 pub totalswap
: ::c_ulong
,
292 pub freeswap
: ::c_ulong
,
293 pub procs
: ::c_ushort
,
295 pub totalhigh
: ::c_ulong
,
296 pub freehigh
: ::c_ulong
,
297 pub mem_unit
: ::c_uint
,
298 pub __reserved
: [::c_char
; 256],
301 pub struct pthread_attr_t
{
305 pub struct sigset_t
{
306 __val
: [::c_ulong
; 32],
310 pub msg_name
: *mut ::c_void
,
311 pub msg_namelen
: ::socklen_t
,
312 pub msg_iov
: *mut ::iovec
,
313 pub msg_iovlen
: ::c_int
,
314 pub msg_control
: *mut ::c_void
,
315 pub msg_controllen
: ::socklen_t
,
316 pub msg_flags
: ::c_int
,
320 pub cmsg_len
: ::socklen_t
,
321 pub cmsg_level
: ::c_int
,
322 pub cmsg_type
: ::c_int
,
330 __st_dev_padding
: ::c_int
,
331 __st_ino_truncated
: ::c_long
,
332 pub st_mode
: ::mode_t
,
333 pub st_nlink
: ::nlink_t
,
336 pub st_rdev
: ::dev_t
,
337 __st_rdev_padding
: ::c_int
,
338 pub st_size
: ::off_t
,
339 pub st_blksize
: ::blksize_t
,
340 pub st_blocks
: ::blkcnt_t
,
341 pub st_atime
: ::time_t
,
342 pub st_atime_nsec
: ::c_long
,
343 pub st_mtime
: ::time_t
,
344 pub st_mtime_nsec
: ::c_long
,
345 pub st_ctime
: ::time_t
,
346 pub st_ctime_nsec
: ::c_long
,
352 __st_dev_padding
: ::c_int
,
353 __st_ino_truncated
: ::c_long
,
354 pub st_mode
: ::mode_t
,
355 pub st_nlink
: ::nlink_t
,
358 pub st_rdev
: ::dev_t
,
359 __st_rdev_padding
: ::c_int
,
360 pub st_size
: ::off_t
,
361 pub st_blksize
: ::blksize_t
,
362 pub st_blocks
: ::blkcnt_t
,
363 pub st_atime
: ::time_t
,
364 pub st_atime_nsec
: ::c_long
,
365 pub st_mtime
: ::time_t
,
366 pub st_mtime_nsec
: ::c_long
,
367 pub st_ctime
: ::time_t
,
368 pub st_ctime_nsec
: ::c_long
,
373 pub ss_sp
: *mut ::c_void
,
374 pub ss_flags
: ::c_int
,
375 pub ss_size
: ::size_t
378 pub struct shmid_ds
{
379 pub shm_perm
: ::ipc_perm
,
380 pub shm_segsz
: ::size_t
,
381 pub shm_atime
: ::time_t
,
383 pub shm_dtime
: ::time_t
,
385 pub shm_ctime
: ::time_t
,
387 pub shm_cpid
: ::pid_t
,
388 pub shm_lpid
: ::pid_t
,
389 pub shm_nattch
: ::c_ulong
,
394 pub struct msqid_ds
{
395 pub msg_perm
: ::ipc_perm
,
396 pub msg_stime
: ::time_t
,
398 pub msg_rtime
: ::time_t
,
400 pub msg_ctime
: ::time_t
,
402 __msg_cbytes
: ::c_ulong
,
403 pub msg_qnum
: ::msgqnum_t
,
404 pub msg_qbytes
: ::msglen_t
,
405 pub msg_lspid
: ::pid_t
,
406 pub msg_lrpid
: ::pid_t
,
412 pub f_type
: ::c_ulong
,
413 pub f_bsize
: ::c_ulong
,
414 pub f_blocks
: ::fsblkcnt_t
,
415 pub f_bfree
: ::fsblkcnt_t
,
416 pub f_bavail
: ::fsblkcnt_t
,
417 pub f_files
: ::fsfilcnt_t
,
418 pub f_ffree
: ::fsfilcnt_t
,
419 pub f_fsid
: ::fsid_t
,
420 pub f_namelen
: ::c_ulong
,
421 pub f_frsize
: ::c_ulong
,
422 pub f_flags
: ::c_ulong
,
423 pub f_spare
: [::c_ulong
; 4],
426 pub struct siginfo_t
{
427 pub si_signo
: ::c_int
,
428 pub si_errno
: ::c_int
,
429 pub si_code
: ::c_int
,
430 pub _pad
: [::c_int
; 29],
434 pub struct statfs64
{
435 pub f_type
: ::c_ulong
,
436 pub f_bsize
: ::c_ulong
,
437 pub f_blocks
: ::fsblkcnt_t
,
438 pub f_bfree
: ::fsblkcnt_t
,
439 pub f_bavail
: ::fsblkcnt_t
,
440 pub f_files
: ::fsfilcnt_t
,
441 pub f_ffree
: ::fsfilcnt_t
,
442 pub f_fsid
: ::fsid_t
,
443 pub f_namelen
: ::c_ulong
,
444 pub f_frsize
: ::c_ulong
,
445 pub f_flags
: ::c_ulong
,
446 pub f_spare
: [::c_ulong
; 4],
449 pub struct statvfs64
{
450 pub f_bsize
: ::c_ulong
,
451 pub f_frsize
: ::c_ulong
,
458 pub f_fsid
: ::c_ulong
,
460 pub f_flag
: ::c_ulong
,
461 pub f_namemax
: ::c_ulong
,
462 __f_spare
: [::c_int
; 6],
466 pub const ABDAY_1
: ::nl_item
= 0x20000;
467 pub const ABDAY_2
: ::nl_item
= 0x20001;
468 pub const ABDAY_3
: ::nl_item
= 0x20002;
469 pub const ABDAY_4
: ::nl_item
= 0x20003;
470 pub const ABDAY_5
: ::nl_item
= 0x20004;
471 pub const ABDAY_6
: ::nl_item
= 0x20005;
472 pub const ABDAY_7
: ::nl_item
= 0x20006;
474 pub const DAY_1
: ::nl_item
= 0x20007;
475 pub const DAY_2
: ::nl_item
= 0x20008;
476 pub const DAY_3
: ::nl_item
= 0x20009;
477 pub const DAY_4
: ::nl_item
= 0x2000A;
478 pub const DAY_5
: ::nl_item
= 0x2000B;
479 pub const DAY_6
: ::nl_item
= 0x2000C;
480 pub const DAY_7
: ::nl_item
= 0x2000D;
482 pub const ABMON_1
: ::nl_item
= 0x2000E;
483 pub const ABMON_2
: ::nl_item
= 0x2000F;
484 pub const ABMON_3
: ::nl_item
= 0x20010;
485 pub const ABMON_4
: ::nl_item
= 0x20011;
486 pub const ABMON_5
: ::nl_item
= 0x20012;
487 pub const ABMON_6
: ::nl_item
= 0x20013;
488 pub const ABMON_7
: ::nl_item
= 0x20014;
489 pub const ABMON_8
: ::nl_item
= 0x20015;
490 pub const ABMON_9
: ::nl_item
= 0x20016;
491 pub const ABMON_10
: ::nl_item
= 0x20017;
492 pub const ABMON_11
: ::nl_item
= 0x20018;
493 pub const ABMON_12
: ::nl_item
= 0x20019;
495 pub const MON_1
: ::nl_item
= 0x2001A;
496 pub const MON_2
: ::nl_item
= 0x2001B;
497 pub const MON_3
: ::nl_item
= 0x2001C;
498 pub const MON_4
: ::nl_item
= 0x2001D;
499 pub const MON_5
: ::nl_item
= 0x2001E;
500 pub const MON_6
: ::nl_item
= 0x2001F;
501 pub const MON_7
: ::nl_item
= 0x20020;
502 pub const MON_8
: ::nl_item
= 0x20021;
503 pub const MON_9
: ::nl_item
= 0x20022;
504 pub const MON_10
: ::nl_item
= 0x20023;
505 pub const MON_11
: ::nl_item
= 0x20024;
506 pub const MON_12
: ::nl_item
= 0x20025;
508 pub const AM_STR
: ::nl_item
= 0x20026;
509 pub const PM_STR
: ::nl_item
= 0x20027;
511 pub const D_T_FMT
: ::nl_item
= 0x20028;
512 pub const D_FMT
: ::nl_item
= 0x20029;
513 pub const T_FMT
: ::nl_item
= 0x2002A;
514 pub const T_FMT_AMPM
: ::nl_item
= 0x2002B;
516 pub const ERA
: ::nl_item
= 0x2002C;
517 pub const ERA_D_FMT
: ::nl_item
= 0x2002E;
518 pub const ALT_DIGITS
: ::nl_item
= 0x2002F;
519 pub const ERA_D_T_FMT
: ::nl_item
= 0x20030;
520 pub const ERA_T_FMT
: ::nl_item
= 0x20031;
522 pub const CODESET
: ::nl_item
= 14;
524 pub const CRNCYSTR
: ::nl_item
= 0x4000F;
526 pub const RUSAGE_THREAD
: ::c_int
= 1;
527 pub const RUSAGE_CHILDREN
: ::c_int
= -1;
529 pub const RADIXCHAR
: ::nl_item
= 0x10000;
530 pub const THOUSEP
: ::nl_item
= 0x10001;
532 pub const YESEXPR
: ::nl_item
= 0x50000;
533 pub const NOEXPR
: ::nl_item
= 0x50001;
534 pub const YESSTR
: ::nl_item
= 0x50002;
535 pub const NOSTR
: ::nl_item
= 0x50003;
537 pub const FILENAME_MAX
: ::c_uint
= 4096;
538 pub const L_tmpnam
: ::c_uint
= 20;
539 pub const _PC_LINK_MAX
: ::c_int
= 0;
540 pub const _PC_MAX_CANON
: ::c_int
= 1;
541 pub const _PC_MAX_INPUT
: ::c_int
= 2;
542 pub const _PC_NAME_MAX
: ::c_int
= 3;
543 pub const _PC_PATH_MAX
: ::c_int
= 4;
544 pub const _PC_PIPE_BUF
: ::c_int
= 5;
545 pub const _PC_CHOWN_RESTRICTED
: ::c_int
= 6;
546 pub const _PC_NO_TRUNC
: ::c_int
= 7;
547 pub const _PC_VDISABLE
: ::c_int
= 8;
548 pub const _PC_SYNC_IO
: ::c_int
= 9;
549 pub const _PC_ASYNC_IO
: ::c_int
= 10;
550 pub const _PC_PRIO_IO
: ::c_int
= 11;
551 pub const _PC_SOCK_MAXBUF
: ::c_int
= 12;
552 pub const _PC_FILESIZEBITS
: ::c_int
= 13;
553 pub const _PC_REC_INCR_XFER_SIZE
: ::c_int
= 14;
554 pub const _PC_REC_MAX_XFER_SIZE
: ::c_int
= 15;
555 pub const _PC_REC_MIN_XFER_SIZE
: ::c_int
= 16;
556 pub const _PC_REC_XFER_ALIGN
: ::c_int
= 17;
557 pub const _PC_ALLOC_SIZE_MIN
: ::c_int
= 18;
558 pub const _PC_SYMLINK_MAX
: ::c_int
= 19;
559 pub const _PC_2_SYMLINKS
: ::c_int
= 20;
561 pub const _SC_ARG_MAX
: ::c_int
= 0;
562 pub const _SC_CHILD_MAX
: ::c_int
= 1;
563 pub const _SC_CLK_TCK
: ::c_int
= 2;
564 pub const _SC_NGROUPS_MAX
: ::c_int
= 3;
565 pub const _SC_OPEN_MAX
: ::c_int
= 4;
566 pub const _SC_STREAM_MAX
: ::c_int
= 5;
567 pub const _SC_TZNAME_MAX
: ::c_int
= 6;
568 pub const _SC_JOB_CONTROL
: ::c_int
= 7;
569 pub const _SC_SAVED_IDS
: ::c_int
= 8;
570 pub const _SC_REALTIME_SIGNALS
: ::c_int
= 9;
571 pub const _SC_PRIORITY_SCHEDULING
: ::c_int
= 10;
572 pub const _SC_TIMERS
: ::c_int
= 11;
573 pub const _SC_ASYNCHRONOUS_IO
: ::c_int
= 12;
574 pub const _SC_PRIORITIZED_IO
: ::c_int
= 13;
575 pub const _SC_SYNCHRONIZED_IO
: ::c_int
= 14;
576 pub const _SC_FSYNC
: ::c_int
= 15;
577 pub const _SC_MAPPED_FILES
: ::c_int
= 16;
578 pub const _SC_MEMLOCK
: ::c_int
= 17;
579 pub const _SC_MEMLOCK_RANGE
: ::c_int
= 18;
580 pub const _SC_MEMORY_PROTECTION
: ::c_int
= 19;
581 pub const _SC_MESSAGE_PASSING
: ::c_int
= 20;
582 pub const _SC_SEMAPHORES
: ::c_int
= 21;
583 pub const _SC_SHARED_MEMORY_OBJECTS
: ::c_int
= 22;
584 pub const _SC_AIO_LISTIO_MAX
: ::c_int
= 23;
585 pub const _SC_AIO_MAX
: ::c_int
= 24;
586 pub const _SC_AIO_PRIO_DELTA_MAX
: ::c_int
= 25;
587 pub const _SC_DELAYTIMER_MAX
: ::c_int
= 26;
588 pub const _SC_MQ_OPEN_MAX
: ::c_int
= 27;
589 pub const _SC_MQ_PRIO_MAX
: ::c_int
= 28;
590 pub const _SC_VERSION
: ::c_int
= 29;
591 pub const _SC_PAGESIZE
: ::c_int
= 30;
592 pub const _SC_PAGE_SIZE
: ::c_int
= _SC_PAGESIZE
;
593 pub const _SC_RTSIG_MAX
: ::c_int
= 31;
594 pub const _SC_SEM_NSEMS_MAX
: ::c_int
= 32;
595 pub const _SC_SEM_VALUE_MAX
: ::c_int
= 33;
596 pub const _SC_SIGQUEUE_MAX
: ::c_int
= 34;
597 pub const _SC_TIMER_MAX
: ::c_int
= 35;
598 pub const _SC_BC_BASE_MAX
: ::c_int
= 36;
599 pub const _SC_BC_DIM_MAX
: ::c_int
= 37;
600 pub const _SC_BC_SCALE_MAX
: ::c_int
= 38;
601 pub const _SC_BC_STRING_MAX
: ::c_int
= 39;
602 pub const _SC_COLL_WEIGHTS_MAX
: ::c_int
= 40;
603 pub const _SC_EXPR_NEST_MAX
: ::c_int
= 42;
604 pub const _SC_LINE_MAX
: ::c_int
= 43;
605 pub const _SC_RE_DUP_MAX
: ::c_int
= 44;
606 pub const _SC_2_VERSION
: ::c_int
= 46;
607 pub const _SC_2_C_BIND
: ::c_int
= 47;
608 pub const _SC_2_C_DEV
: ::c_int
= 48;
609 pub const _SC_2_FORT_DEV
: ::c_int
= 49;
610 pub const _SC_2_FORT_RUN
: ::c_int
= 50;
611 pub const _SC_2_SW_DEV
: ::c_int
= 51;
612 pub const _SC_2_LOCALEDEF
: ::c_int
= 52;
613 pub const _SC_UIO_MAXIOV
: ::c_int
= 60;
614 pub const _SC_IOV_MAX
: ::c_int
= 60;
615 pub const _SC_THREADS
: ::c_int
= 67;
616 pub const _SC_THREAD_SAFE_FUNCTIONS
: ::c_int
= 68;
617 pub const _SC_GETGR_R_SIZE_MAX
: ::c_int
= 69;
618 pub const _SC_GETPW_R_SIZE_MAX
: ::c_int
= 70;
619 pub const _SC_LOGIN_NAME_MAX
: ::c_int
= 71;
620 pub const _SC_TTY_NAME_MAX
: ::c_int
= 72;
621 pub const _SC_THREAD_DESTRUCTOR_ITERATIONS
: ::c_int
= 73;
622 pub const _SC_THREAD_KEYS_MAX
: ::c_int
= 74;
623 pub const _SC_THREAD_STACK_MIN
: ::c_int
= 75;
624 pub const _SC_THREAD_THREADS_MAX
: ::c_int
= 76;
625 pub const _SC_THREAD_ATTR_STACKADDR
: ::c_int
= 77;
626 pub const _SC_THREAD_ATTR_STACKSIZE
: ::c_int
= 78;
627 pub const _SC_THREAD_PRIORITY_SCHEDULING
: ::c_int
= 79;
628 pub const _SC_THREAD_PRIO_INHERIT
: ::c_int
= 80;
629 pub const _SC_THREAD_PRIO_PROTECT
: ::c_int
= 81;
630 pub const _SC_THREAD_PROCESS_SHARED
: ::c_int
= 82;
631 pub const _SC_NPROCESSORS_CONF
: ::c_int
= 83;
632 pub const _SC_NPROCESSORS_ONLN
: ::c_int
= 84;
633 pub const _SC_PHYS_PAGES
: ::c_int
= 85;
634 pub const _SC_AVPHYS_PAGES
: ::c_int
= 86;
635 pub const _SC_ATEXIT_MAX
: ::c_int
= 87;
636 pub const _SC_PASS_MAX
: ::c_int
= 88;
637 pub const _SC_XOPEN_VERSION
: ::c_int
= 89;
638 pub const _SC_XOPEN_XCU_VERSION
: ::c_int
= 90;
639 pub const _SC_XOPEN_UNIX
: ::c_int
= 91;
640 pub const _SC_XOPEN_CRYPT
: ::c_int
= 92;
641 pub const _SC_XOPEN_ENH_I18N
: ::c_int
= 93;
642 pub const _SC_XOPEN_SHM
: ::c_int
= 94;
643 pub const _SC_2_CHAR_TERM
: ::c_int
= 95;
644 pub const _SC_2_UPE
: ::c_int
= 97;
645 pub const _SC_XOPEN_XPG2
: ::c_int
= 98;
646 pub const _SC_XOPEN_XPG3
: ::c_int
= 99;
647 pub const _SC_XOPEN_XPG4
: ::c_int
= 100;
648 pub const _SC_NZERO
: ::c_int
= 109;
649 pub const _SC_XBS5_ILP32_OFF32
: ::c_int
= 125;
650 pub const _SC_XBS5_ILP32_OFFBIG
: ::c_int
= 126;
651 pub const _SC_XBS5_LP64_OFF64
: ::c_int
= 127;
652 pub const _SC_XBS5_LPBIG_OFFBIG
: ::c_int
= 128;
653 pub const _SC_XOPEN_LEGACY
: ::c_int
= 129;
654 pub const _SC_XOPEN_REALTIME
: ::c_int
= 130;
655 pub const _SC_XOPEN_REALTIME_THREADS
: ::c_int
= 131;
656 pub const _SC_ADVISORY_INFO
: ::c_int
= 132;
657 pub const _SC_BARRIERS
: ::c_int
= 133;
658 pub const _SC_CLOCK_SELECTION
: ::c_int
= 137;
659 pub const _SC_CPUTIME
: ::c_int
= 138;
660 pub const _SC_THREAD_CPUTIME
: ::c_int
= 139;
661 pub const _SC_MONOTONIC_CLOCK
: ::c_int
= 149;
662 pub const _SC_READER_WRITER_LOCKS
: ::c_int
= 153;
663 pub const _SC_SPIN_LOCKS
: ::c_int
= 154;
664 pub const _SC_REGEXP
: ::c_int
= 155;
665 pub const _SC_SHELL
: ::c_int
= 157;
666 pub const _SC_SPAWN
: ::c_int
= 159;
667 pub const _SC_SPORADIC_SERVER
: ::c_int
= 160;
668 pub const _SC_THREAD_SPORADIC_SERVER
: ::c_int
= 161;
669 pub const _SC_TIMEOUTS
: ::c_int
= 164;
670 pub const _SC_TYPED_MEMORY_OBJECTS
: ::c_int
= 165;
671 pub const _SC_2_PBS
: ::c_int
= 168;
672 pub const _SC_2_PBS_ACCOUNTING
: ::c_int
= 169;
673 pub const _SC_2_PBS_LOCATE
: ::c_int
= 170;
674 pub const _SC_2_PBS_MESSAGE
: ::c_int
= 171;
675 pub const _SC_2_PBS_TRACK
: ::c_int
= 172;
676 pub const _SC_SYMLOOP_MAX
: ::c_int
= 173;
677 pub const _SC_STREAMS
: ::c_int
= 174;
678 pub const _SC_2_PBS_CHECKPOINT
: ::c_int
= 175;
679 pub const _SC_V6_ILP32_OFF32
: ::c_int
= 176;
680 pub const _SC_V6_ILP32_OFFBIG
: ::c_int
= 177;
681 pub const _SC_V6_LP64_OFF64
: ::c_int
= 178;
682 pub const _SC_V6_LPBIG_OFFBIG
: ::c_int
= 179;
683 pub const _SC_HOST_NAME_MAX
: ::c_int
= 180;
684 pub const _SC_TRACE
: ::c_int
= 181;
685 pub const _SC_TRACE_EVENT_FILTER
: ::c_int
= 182;
686 pub const _SC_TRACE_INHERIT
: ::c_int
= 183;
687 pub const _SC_TRACE_LOG
: ::c_int
= 184;
688 pub const _SC_IPV6
: ::c_int
= 235;
689 pub const _SC_RAW_SOCKETS
: ::c_int
= 236;
690 pub const _SC_V7_ILP32_OFF32
: ::c_int
= 237;
691 pub const _SC_V7_ILP32_OFFBIG
: ::c_int
= 238;
692 pub const _SC_V7_LP64_OFF64
: ::c_int
= 239;
693 pub const _SC_V7_LPBIG_OFFBIG
: ::c_int
= 240;
694 pub const _SC_SS_REPL_MAX
: ::c_int
= 241;
695 pub const _SC_TRACE_EVENT_NAME_MAX
: ::c_int
= 242;
696 pub const _SC_TRACE_NAME_MAX
: ::c_int
= 243;
697 pub const _SC_TRACE_SYS_MAX
: ::c_int
= 244;
698 pub const _SC_TRACE_USER_EVENT_MAX
: ::c_int
= 245;
699 pub const _SC_XOPEN_STREAMS
: ::c_int
= 246;
700 pub const _SC_THREAD_ROBUST_PRIO_INHERIT
: ::c_int
= 247;
701 pub const _SC_THREAD_ROBUST_PRIO_PROTECT
: ::c_int
= 248;
703 pub const RLIM_SAVED_MAX
: ::rlim_t
= RLIM_INFINITY
;
704 pub const RLIM_SAVED_CUR
: ::rlim_t
= RLIM_INFINITY
;
706 pub const GLOB_ERR
: ::c_int
= 1 << 0;
707 pub const GLOB_MARK
: ::c_int
= 1 << 1;
708 pub const GLOB_NOSORT
: ::c_int
= 1 << 2;
709 pub const GLOB_DOOFFS
: ::c_int
= 1 << 3;
710 pub const GLOB_NOCHECK
: ::c_int
= 1 << 4;
711 pub const GLOB_APPEND
: ::c_int
= 1 << 5;
712 pub const GLOB_NOESCAPE
: ::c_int
= 1 << 6;
714 pub const GLOB_NOSPACE
: ::c_int
= 1;
715 pub const GLOB_ABORTED
: ::c_int
= 2;
716 pub const GLOB_NOMATCH
: ::c_int
= 3;
718 pub const POSIX_MADV_NORMAL
: ::c_int
= 0;
719 pub const POSIX_MADV_RANDOM
: ::c_int
= 1;
720 pub const POSIX_MADV_SEQUENTIAL
: ::c_int
= 2;
721 pub const POSIX_MADV_WILLNEED
: ::c_int
= 3;
723 pub const S_IEXEC
: mode_t
= 64;
724 pub const S_IWRITE
: mode_t
= 128;
725 pub const S_IREAD
: mode_t
= 256;
727 pub const F_LOCK
: ::c_int
= 1;
728 pub const F_TEST
: ::c_int
= 3;
729 pub const F_TLOCK
: ::c_int
= 2;
730 pub const F_ULOCK
: ::c_int
= 0;
732 pub const ST_RDONLY
: ::c_ulong
= 1;
733 pub const ST_NOSUID
: ::c_ulong
= 2;
734 pub const ST_NODEV
: ::c_ulong
= 4;
735 pub const ST_NOEXEC
: ::c_ulong
= 8;
736 pub const ST_SYNCHRONOUS
: ::c_ulong
= 16;
737 pub const ST_MANDLOCK
: ::c_ulong
= 64;
738 pub const ST_WRITE
: ::c_ulong
= 128;
739 pub const ST_APPEND
: ::c_ulong
= 256;
740 pub const ST_IMMUTABLE
: ::c_ulong
= 512;
741 pub const ST_NOATIME
: ::c_ulong
= 1024;
742 pub const ST_NODIRATIME
: ::c_ulong
= 2048;
744 pub const RTLD_NEXT
: *mut ::c_void
= -1i64 as *mut ::c_void
;
745 pub const RTLD_DEFAULT
: *mut ::c_void
= 0i64 as *mut ::c_void
;
746 pub const RTLD_NODELETE
: ::c_int
= 0x1000;
747 pub const RTLD_NOW
: ::c_int
= 0x2;
749 pub const TCP_MD5SIG
: ::c_int
= 14;
751 pub const PTHREAD_MUTEX_INITIALIZER
: pthread_mutex_t
= pthread_mutex_t
{
753 size
: [0; __SIZEOF_PTHREAD_MUTEX_T
],
755 pub const PTHREAD_COND_INITIALIZER
: pthread_cond_t
= pthread_cond_t
{
757 size
: [0; __SIZEOF_PTHREAD_COND_T
],
759 pub const PTHREAD_RWLOCK_INITIALIZER
: pthread_rwlock_t
= pthread_rwlock_t
{
761 size
: [0; __SIZEOF_PTHREAD_RWLOCK_T
],
763 pub const PTHREAD_MUTEX_NORMAL
: ::c_int
= 0;
764 pub const PTHREAD_MUTEX_RECURSIVE
: ::c_int
= 1;
765 pub const PTHREAD_MUTEX_ERRORCHECK
: ::c_int
= 2;
766 pub const PTHREAD_MUTEX_DEFAULT
: ::c_int
= PTHREAD_MUTEX_NORMAL
;
767 pub const PTHREAD_PROCESS_PRIVATE
: ::c_int
= 0;
768 pub const PTHREAD_PROCESS_SHARED
: ::c_int
= 1;
769 pub const __SIZEOF_PTHREAD_COND_T
: usize = 48;
771 pub const SCHED_OTHER
: ::c_int
= 0;
772 pub const SCHED_FIFO
: ::c_int
= 1;
773 pub const SCHED_RR
: ::c_int
= 2;
774 pub const SCHED_BATCH
: ::c_int
= 3;
775 pub const SCHED_IDLE
: ::c_int
= 5;
777 pub const AF_IB
: ::c_int
= 27;
778 pub const AF_MPLS
: ::c_int
= 28;
779 pub const AF_NFC
: ::c_int
= 39;
780 pub const AF_VSOCK
: ::c_int
= 40;
782 pub const AF_MAX
: ::c_int
= 42;
783 pub const PF_IB
: ::c_int
= AF_IB
;
784 pub const PF_MPLS
: ::c_int
= AF_MPLS
;
785 pub const PF_NFC
: ::c_int
= AF_NFC
;
786 pub const PF_VSOCK
: ::c_int
= AF_VSOCK
;
788 pub const PF_MAX
: ::c_int
= AF_MAX
;
791 pub const IPC_PRIVATE
: ::key_t
= 0;
793 pub const IPC_CREAT
: ::c_int
= 0o1000;
794 pub const IPC_EXCL
: ::c_int
= 0o2000;
795 pub const IPC_NOWAIT
: ::c_int
= 0o4000;
797 pub const IPC_RMID
: ::c_int
= 0;
798 pub const IPC_SET
: ::c_int
= 1;
799 pub const IPC_STAT
: ::c_int
= 2;
800 pub const IPC_INFO
: ::c_int
= 3;
801 pub const MSG_STAT
: ::c_int
= 11;
802 pub const MSG_INFO
: ::c_int
= 12;
804 pub const MSG_NOERROR
: ::c_int
= 0o10000;
805 pub const MSG_EXCEPT
: ::c_int
= 0o20000;
806 pub const MSG_COPY
: ::c_int
= 0o40000;
808 pub const SHM_R
: ::c_int
= 0o400;
809 pub const SHM_W
: ::c_int
= 0o200;
811 pub const SHM_RDONLY
: ::c_int
= 0o10000;
812 pub const SHM_RND
: ::c_int
= 0o20000;
813 pub const SHM_REMAP
: ::c_int
= 0o40000;
814 pub const SHM_EXEC
: ::c_int
= 0o100000;
816 pub const SHM_LOCK
: ::c_int
= 11;
817 pub const SHM_UNLOCK
: ::c_int
= 12;
819 pub const SHM_HUGETLB
: ::c_int
= 0o4000;
820 pub const SHM_NORESERVE
: ::c_int
= 0o10000;
822 pub const EPOLLRDHUP
: ::c_int
= 0x2000;
823 pub const EPOLLEXCLUSIVE
: ::c_int
= 0x10000000;
824 pub const EPOLLONESHOT
: ::c_int
= 0x40000000;
826 pub const QFMT_VFS_OLD
: ::c_int
= 1;
827 pub const QFMT_VFS_V0
: ::c_int
= 2;
829 pub const EFD_SEMAPHORE
: ::c_int
= 0x1;
831 pub const LOG_NFACILITIES
: ::c_int
= 24;
833 pub const SEM_FAILED
: *mut ::sem_t
= 0 as *mut sem_t
;
835 pub const RB_AUTOBOOT
: ::c_int
= 0x01234567u32 as i32;
836 pub const RB_HALT_SYSTEM
: ::c_int
= 0xcdef0123u32 as i32;
837 pub const RB_ENABLE_CAD
: ::c_int
= 0x89abcdefu32 as i32;
838 pub const RB_DISABLE_CAD
: ::c_int
= 0x00000000u32 as i32;
839 pub const RB_POWER_OFF
: ::c_int
= 0x4321fedcu32 as i32;
840 pub const RB_SW_SUSPEND
: ::c_int
= 0xd000fce2u32 as i32;
841 pub const RB_KEXEC
: ::c_int
= 0x45584543u32 as i32;
843 pub const AI_PASSIVE
: ::c_int
= 0x0001;
844 pub const AI_CANONNAME
: ::c_int
= 0x0002;
845 pub const AI_NUMERICHOST
: ::c_int
= 0x0004;
846 pub const AI_V4MAPPED
: ::c_int
= 0x0008;
847 pub const AI_ALL
: ::c_int
= 0x0010;
848 pub const AI_ADDRCONFIG
: ::c_int
= 0x0020;
850 pub const AI_NUMERICSERV
: ::c_int
= 0x0400;
852 pub const EAI_BADFLAGS
: ::c_int
= -1;
853 pub const EAI_NONAME
: ::c_int
= -2;
854 pub const EAI_AGAIN
: ::c_int
= -3;
855 pub const EAI_FAIL
: ::c_int
= -4;
856 pub const EAI_FAMILY
: ::c_int
= -6;
857 pub const EAI_SOCKTYPE
: ::c_int
= -7;
858 pub const EAI_SERVICE
: ::c_int
= -8;
859 pub const EAI_MEMORY
: ::c_int
= -10;
860 pub const EAI_OVERFLOW
: ::c_int
= -12;
862 pub const NI_NUMERICHOST
: ::c_int
= 1;
863 pub const NI_NUMERICSERV
: ::c_int
= 2;
864 pub const NI_NOFQDN
: ::c_int
= 4;
865 pub const NI_NAMEREQD
: ::c_int
= 8;
866 pub const NI_DGRAM
: ::c_int
= 16;
868 pub const SYNC_FILE_RANGE_WAIT_BEFORE
: ::c_uint
= 1;
869 pub const SYNC_FILE_RANGE_WRITE
: ::c_uint
= 2;
870 pub const SYNC_FILE_RANGE_WAIT_AFTER
: ::c_uint
= 4;
872 pub const EAI_SYSTEM
: ::c_int
= -11;
874 pub const AIO_CANCELED
: ::c_int
= 0;
875 pub const AIO_NOTCANCELED
: ::c_int
= 1;
876 pub const AIO_ALLDONE
: ::c_int
= 2;
877 pub const LIO_READ
: ::c_int
= 0;
878 pub const LIO_WRITE
: ::c_int
= 1;
879 pub const LIO_NOP
: ::c_int
= 2;
880 pub const LIO_WAIT
: ::c_int
= 0;
881 pub const LIO_NOWAIT
: ::c_int
= 1;
883 pub const MREMAP_MAYMOVE
: ::c_int
= 1;
884 pub const MREMAP_FIXED
: ::c_int
= 2;
886 pub const PR_SET_PDEATHSIG
: ::c_int
= 1;
887 pub const PR_GET_PDEATHSIG
: ::c_int
= 2;
889 pub const PR_GET_DUMPABLE
: ::c_int
= 3;
890 pub const PR_SET_DUMPABLE
: ::c_int
= 4;
892 pub const PR_GET_UNALIGN
: ::c_int
= 5;
893 pub const PR_SET_UNALIGN
: ::c_int
= 6;
894 pub const PR_UNALIGN_NOPRINT
: ::c_int
= 1;
895 pub const PR_UNALIGN_SIGBUS
: ::c_int
= 2;
897 pub const PR_GET_KEEPCAPS
: ::c_int
= 7;
898 pub const PR_SET_KEEPCAPS
: ::c_int
= 8;
900 pub const PR_GET_FPEMU
: ::c_int
= 9;
901 pub const PR_SET_FPEMU
: ::c_int
= 10;
902 pub const PR_FPEMU_NOPRINT
: ::c_int
= 1;
903 pub const PR_FPEMU_SIGFPE
: ::c_int
= 2;
905 pub const PR_GET_FPEXC
: ::c_int
= 11;
906 pub const PR_SET_FPEXC
: ::c_int
= 12;
907 pub const PR_FP_EXC_SW_ENABLE
: ::c_int
= 0x80;
908 pub const PR_FP_EXC_DIV
: ::c_int
= 0x010000;
909 pub const PR_FP_EXC_OVF
: ::c_int
= 0x020000;
910 pub const PR_FP_EXC_UND
: ::c_int
= 0x040000;
911 pub const PR_FP_EXC_RES
: ::c_int
= 0x080000;
912 pub const PR_FP_EXC_INV
: ::c_int
= 0x100000;
913 pub const PR_FP_EXC_DISABLED
: ::c_int
= 0;
914 pub const PR_FP_EXC_NONRECOV
: ::c_int
= 1;
915 pub const PR_FP_EXC_ASYNC
: ::c_int
= 2;
916 pub const PR_FP_EXC_PRECISE
: ::c_int
= 3;
918 pub const PR_GET_TIMING
: ::c_int
= 13;
919 pub const PR_SET_TIMING
: ::c_int
= 14;
920 pub const PR_TIMING_STATISTICAL
: ::c_int
= 0;
921 pub const PR_TIMING_TIMESTAMP
: ::c_int
= 1;
923 pub const PR_SET_NAME
: ::c_int
= 15;
924 pub const PR_GET_NAME
: ::c_int
= 16;
926 pub const PR_GET_ENDIAN
: ::c_int
= 19;
927 pub const PR_SET_ENDIAN
: ::c_int
= 20;
928 pub const PR_ENDIAN_BIG
: ::c_int
= 0;
929 pub const PR_ENDIAN_LITTLE
: ::c_int
= 1;
930 pub const PR_ENDIAN_PPC_LITTLE
: ::c_int
= 2;
932 pub const PR_GET_SECCOMP
: ::c_int
= 21;
933 pub const PR_SET_SECCOMP
: ::c_int
= 22;
935 pub const PR_CAPBSET_READ
: ::c_int
= 23;
936 pub const PR_CAPBSET_DROP
: ::c_int
= 24;
938 pub const PR_GET_TSC
: ::c_int
= 25;
939 pub const PR_SET_TSC
: ::c_int
= 26;
940 pub const PR_TSC_ENABLE
: ::c_int
= 1;
941 pub const PR_TSC_SIGSEGV
: ::c_int
= 2;
943 pub const PR_GET_SECUREBITS
: ::c_int
= 27;
944 pub const PR_SET_SECUREBITS
: ::c_int
= 28;
946 pub const PR_SET_TIMERSLACK
: ::c_int
= 29;
947 pub const PR_GET_TIMERSLACK
: ::c_int
= 30;
949 pub const PR_TASK_PERF_EVENTS_DISABLE
: ::c_int
= 31;
950 pub const PR_TASK_PERF_EVENTS_ENABLE
: ::c_int
= 32;
952 pub const PR_MCE_KILL
: ::c_int
= 33;
953 pub const PR_MCE_KILL_CLEAR
: ::c_int
= 0;
954 pub const PR_MCE_KILL_SET
: ::c_int
= 1;
956 pub const PR_MCE_KILL_LATE
: ::c_int
= 0;
957 pub const PR_MCE_KILL_EARLY
: ::c_int
= 1;
958 pub const PR_MCE_KILL_DEFAULT
: ::c_int
= 2;
960 pub const PR_MCE_KILL_GET
: ::c_int
= 34;
962 pub const PR_SET_MM
: ::c_int
= 35;
963 pub const PR_SET_MM_START_CODE
: ::c_int
= 1;
964 pub const PR_SET_MM_END_CODE
: ::c_int
= 2;
965 pub const PR_SET_MM_START_DATA
: ::c_int
= 3;
966 pub const PR_SET_MM_END_DATA
: ::c_int
= 4;
967 pub const PR_SET_MM_START_STACK
: ::c_int
= 5;
968 pub const PR_SET_MM_START_BRK
: ::c_int
= 6;
969 pub const PR_SET_MM_BRK
: ::c_int
= 7;
970 pub const PR_SET_MM_ARG_START
: ::c_int
= 8;
971 pub const PR_SET_MM_ARG_END
: ::c_int
= 9;
972 pub const PR_SET_MM_ENV_START
: ::c_int
= 10;
973 pub const PR_SET_MM_ENV_END
: ::c_int
= 11;
974 pub const PR_SET_MM_AUXV
: ::c_int
= 12;
975 pub const PR_SET_MM_EXE_FILE
: ::c_int
= 13;
976 pub const PR_SET_MM_MAP
: ::c_int
= 14;
977 pub const PR_SET_MM_MAP_SIZE
: ::c_int
= 15;
979 pub const PR_SET_PTRACER
: ::c_int
= 0x59616d61;
981 pub const PR_SET_CHILD_SUBREAPER
: ::c_int
= 36;
982 pub const PR_GET_CHILD_SUBREAPER
: ::c_int
= 37;
984 pub const PR_SET_NO_NEW_PRIVS
: ::c_int
= 38;
985 pub const PR_GET_NO_NEW_PRIVS
: ::c_int
= 39;
987 pub const PR_GET_TID_ADDRESS
: ::c_int
= 40;
989 pub const PR_SET_THP_DISABLE
: ::c_int
= 41;
990 pub const PR_GET_THP_DISABLE
: ::c_int
= 42;
992 pub const PR_MPX_ENABLE_MANAGEMENT
: ::c_int
= 43;
993 pub const PR_MPX_DISABLE_MANAGEMENT
: ::c_int
= 44;
995 pub const PR_SET_FP_MODE
: ::c_int
= 45;
996 pub const PR_GET_FP_MODE
: ::c_int
= 46;
997 pub const PR_FP_MODE_FR
: ::c_int
= 1 << 0;
998 pub const PR_FP_MODE_FRE
: ::c_int
= 1 << 1;
1000 pub const PR_CAP_AMBIENT
: ::c_int
= 47;
1001 pub const PR_CAP_AMBIENT_IS_SET
: ::c_int
= 1;
1002 pub const PR_CAP_AMBIENT_RAISE
: ::c_int
= 2;
1003 pub const PR_CAP_AMBIENT_LOWER
: ::c_int
= 3;
1004 pub const PR_CAP_AMBIENT_CLEAR_ALL
: ::c_int
= 4;
1006 pub const ITIMER_REAL
: ::c_int
= 0;
1007 pub const ITIMER_VIRTUAL
: ::c_int
= 1;
1008 pub const ITIMER_PROF
: ::c_int
= 2;
1010 pub const XATTR_CREATE
: ::c_int
= 0x1;
1011 pub const XATTR_REPLACE
: ::c_int
= 0x2;
1013 pub const _POSIX_VDISABLE
: ::cc_t
= 0;
1015 pub const FALLOC_FL_KEEP_SIZE
: ::c_int
= 0x01;
1016 pub const FALLOC_FL_PUNCH_HOLE
: ::c_int
= 0x02;
1017 pub const FALLOC_FL_COLLAPSE_RANGE
: ::c_int
= 0x08;
1018 pub const FALLOC_FL_ZERO_RANGE
: ::c_int
= 0x10;
1019 pub const FALLOC_FL_INSERT_RANGE
: ::c_int
= 0x20;
1020 pub const FALLOC_FL_UNSHARE_RANGE
: ::c_int
= 0x40;
1022 // On Linux, libc doesn't define this constant, libattr does instead.
1023 // We still define it for Linux as it's defined by libc on other platforms,
1024 // and it's mentioned in the man pages for getxattr and setxattr.
1025 pub const SFD_CLOEXEC
: ::c_int
= 0x080000;
1027 pub const NCCS
: usize = 32;
1029 pub const O_TRUNC
: ::c_int
= 512;
1030 pub const O_NOATIME
: ::c_int
= 0o1000000;
1031 pub const O_CLOEXEC
: ::c_int
= 0x80000;
1033 pub const EBFONT
: ::c_int
= 59;
1034 pub const ENOSTR
: ::c_int
= 60;
1035 pub const ENODATA
: ::c_int
= 61;
1036 pub const ETIME
: ::c_int
= 62;
1037 pub const ENOSR
: ::c_int
= 63;
1038 pub const ENONET
: ::c_int
= 64;
1039 pub const ENOPKG
: ::c_int
= 65;
1040 pub const EREMOTE
: ::c_int
= 66;
1041 pub const ENOLINK
: ::c_int
= 67;
1042 pub const EADV
: ::c_int
= 68;
1043 pub const ESRMNT
: ::c_int
= 69;
1044 pub const ECOMM
: ::c_int
= 70;
1045 pub const EPROTO
: ::c_int
= 71;
1046 pub const EDOTDOT
: ::c_int
= 73;
1048 pub const SA_NODEFER
: ::c_int
= 0x40000000;
1049 pub const SA_RESETHAND
: ::c_int
= 0x80000000;
1050 pub const SA_RESTART
: ::c_int
= 0x10000000;
1051 pub const SA_NOCLDSTOP
: ::c_int
= 0x00000001;
1053 pub const EPOLL_CLOEXEC
: ::c_int
= 0x80000;
1055 pub const EFD_CLOEXEC
: ::c_int
= 0x80000;
1057 pub const BUFSIZ
: ::c_uint
= 1024;
1058 pub const TMP_MAX
: ::c_uint
= 10000;
1059 pub const FOPEN_MAX
: ::c_uint
= 1000;
1060 pub const O_PATH
: ::c_int
= 0o10000000;
1061 pub const O_EXEC
: ::c_int
= 0o10000000;
1062 pub const O_SEARCH
: ::c_int
= 0o10000000;
1063 pub const O_ACCMODE
: ::c_int
= 0o10000003;
1064 pub const O_NDELAY
: ::c_int
= O_NONBLOCK
;
1065 pub const NI_MAXHOST
: ::socklen_t
= 255;
1066 pub const PTHREAD_STACK_MIN
: ::size_t
= 2048;
1067 pub const POSIX_FADV_DONTNEED
: ::c_int
= 4;
1068 pub const POSIX_FADV_NOREUSE
: ::c_int
= 5;
1070 pub const POSIX_MADV_DONTNEED
: ::c_int
= 0;
1072 pub const RLIM_INFINITY
: ::rlim_t
= !0;
1073 pub const RLIMIT_RTTIME
: ::c_int
= 15;
1074 pub const RLIMIT_NLIMITS
: ::c_int
= 16;
1076 pub const MAP_ANONYMOUS
: ::c_int
= MAP_ANON
;
1078 pub const TCP_COOKIE_TRANSACTIONS
: ::c_int
= 15;
1079 pub const TCP_THIN_LINEAR_TIMEOUTS
: ::c_int
= 16;
1080 pub const TCP_THIN_DUPACK
: ::c_int
= 17;
1081 pub const TCP_USER_TIMEOUT
: ::c_int
= 18;
1082 pub const TCP_REPAIR
: ::c_int
= 19;
1083 pub const TCP_REPAIR_QUEUE
: ::c_int
= 20;
1084 pub const TCP_QUEUE_SEQ
: ::c_int
= 21;
1085 pub const TCP_REPAIR_OPTIONS
: ::c_int
= 22;
1086 pub const TCP_FASTOPEN
: ::c_int
= 23;
1087 pub const TCP_TIMESTAMP
: ::c_int
= 24;
1089 pub const SIGUNUSED
: ::c_int
= ::SIGSYS
;
1091 pub const __SIZEOF_PTHREAD_CONDATTR_T
: usize = 4;
1092 pub const __SIZEOF_PTHREAD_MUTEXATTR_T
: usize = 4;
1093 pub const __SIZEOF_PTHREAD_RWLOCKATTR_T
: usize = 8;
1095 pub const CPU_SETSIZE
: ::c_int
= 128;
1097 pub const QFMT_VFS_V1
: ::c_int
= 4;
1099 pub const PTRACE_TRACEME
: ::c_int
= 0;
1100 pub const PTRACE_PEEKTEXT
: ::c_int
= 1;
1101 pub const PTRACE_PEEKDATA
: ::c_int
= 2;
1102 pub const PTRACE_PEEKUSER
: ::c_int
= 3;
1103 pub const PTRACE_POKETEXT
: ::c_int
= 4;
1104 pub const PTRACE_POKEDATA
: ::c_int
= 5;
1105 pub const PTRACE_POKEUSER
: ::c_int
= 6;
1106 pub const PTRACE_CONT
: ::c_int
= 7;
1107 pub const PTRACE_KILL
: ::c_int
= 8;
1108 pub const PTRACE_SINGLESTEP
: ::c_int
= 9;
1109 pub const PTRACE_ATTACH
: ::c_int
= 16;
1110 pub const PTRACE_DETACH
: ::c_int
= 17;
1111 pub const PTRACE_SYSCALL
: ::c_int
= 24;
1112 pub const PTRACE_SETOPTIONS
: ::c_int
= 0x4200;
1113 pub const PTRACE_GETEVENTMSG
: ::c_int
= 0x4201;
1114 pub const PTRACE_GETSIGINFO
: ::c_int
= 0x4202;
1115 pub const PTRACE_SETSIGINFO
: ::c_int
= 0x4203;
1116 pub const PTRACE_GETREGSET
: ::c_int
= 0x4204;
1117 pub const PTRACE_SETREGSET
: ::c_int
= 0x4205;
1118 pub const PTRACE_SEIZE
: ::c_int
= 0x4206;
1119 pub const PTRACE_INTERRUPT
: ::c_int
= 0x4207;
1120 pub const PTRACE_LISTEN
: ::c_int
= 0x4208;
1121 pub const PTRACE_PEEKSIGINFO
: ::c_int
= 0x4209;
1123 pub const EPOLLWAKEUP
: ::c_int
= 0x20000000;
1125 pub const PTRACE_GETFPREGS
: ::c_uint
= 14;
1126 pub const PTRACE_SETFPREGS
: ::c_uint
= 15;
1127 pub const PTRACE_GETFPXREGS
: ::c_uint
= 18;
1128 pub const PTRACE_SETFPXREGS
: ::c_uint
= 19;
1129 pub const PTRACE_GETREGS
: ::c_uint
= 12;
1130 pub const PTRACE_SETREGS
: ::c_uint
= 13;
1132 pub const EFD_NONBLOCK
: ::c_int
= ::O_NONBLOCK
;
1134 pub const SFD_NONBLOCK
: ::c_int
= ::O_NONBLOCK
;
1136 pub const TCSANOW
: ::c_int
= 0;
1137 pub const TCSADRAIN
: ::c_int
= 1;
1138 pub const TCSAFLUSH
: ::c_int
= 2;
1140 pub const TIOCINQ
: ::c_int
= ::FIONREAD
;
1142 pub const RTLD_GLOBAL
: ::c_int
= 0x100;
1143 pub const RTLD_NOLOAD
: ::c_int
= 0x4;
1145 // TODO(#247) Temporarily musl-specific (available since musl 0.9.12 / Linux
1146 // kernel 3.10). See also notbsd/mod.rs
1147 pub const CLOCK_SGI_CYCLE
: ::clockid_t
= 10;
1148 pub const CLOCK_TAI
: ::clockid_t
= 11;
1150 pub const MCL_CURRENT
: ::c_int
= 0x0001;
1151 pub const MCL_FUTURE
: ::c_int
= 0x0002;
1153 pub const SIGSTKSZ
: ::size_t
= 8192;
1154 pub const MINSIGSTKSZ
: ::size_t
= 2048;
1155 pub const CBAUD
: ::tcflag_t
= 0o0010017;
1156 pub const TAB1
: ::c_int
= 0x00000800;
1157 pub const TAB2
: ::c_int
= 0x00001000;
1158 pub const TAB3
: ::c_int
= 0x00001800;
1159 pub const CR1
: ::c_int
= 0x00000200;
1160 pub const CR2
: ::c_int
= 0x00000400;
1161 pub const CR3
: ::c_int
= 0x00000600;
1162 pub const FF1
: ::c_int
= 0x00008000;
1163 pub const BS1
: ::c_int
= 0x00002000;
1164 pub const VT1
: ::c_int
= 0x00004000;
1165 pub const VWERASE
: usize = 14;
1166 pub const VREPRINT
: usize = 12;
1167 pub const VSUSP
: usize = 10;
1168 pub const VSTART
: usize = 8;
1169 pub const VSTOP
: usize = 9;
1170 pub const VDISCARD
: usize = 13;
1171 pub const VTIME
: usize = 5;
1172 pub const IXON
: ::tcflag_t
= 0x00000400;
1173 pub const IXOFF
: ::tcflag_t
= 0x00001000;
1174 pub const ONLCR
: ::tcflag_t
= 0x4;
1175 pub const CSIZE
: ::tcflag_t
= 0x00000030;
1176 pub const CS6
: ::tcflag_t
= 0x00000010;
1177 pub const CS7
: ::tcflag_t
= 0x00000020;
1178 pub const CS8
: ::tcflag_t
= 0x00000030;
1179 pub const CSTOPB
: ::tcflag_t
= 0x00000040;
1180 pub const CREAD
: ::tcflag_t
= 0x00000080;
1181 pub const PARENB
: ::tcflag_t
= 0x00000100;
1182 pub const PARODD
: ::tcflag_t
= 0x00000200;
1183 pub const HUPCL
: ::tcflag_t
= 0x00000400;
1184 pub const CLOCAL
: ::tcflag_t
= 0x00000800;
1185 pub const ECHOKE
: ::tcflag_t
= 0x00000800;
1186 pub const ECHOE
: ::tcflag_t
= 0x00000010;
1187 pub const ECHOK
: ::tcflag_t
= 0x00000020;
1188 pub const ECHONL
: ::tcflag_t
= 0x00000040;
1189 pub const ECHOPRT
: ::tcflag_t
= 0x00000400;
1190 pub const ECHOCTL
: ::tcflag_t
= 0x00000200;
1191 pub const ISIG
: ::tcflag_t
= 0x00000001;
1192 pub const ICANON
: ::tcflag_t
= 0x00000002;
1193 pub const PENDIN
: ::tcflag_t
= 0x00004000;
1194 pub const NOFLSH
: ::tcflag_t
= 0x00000080;
1195 pub const CBAUDEX
: ::tcflag_t
= 0o010000;
1196 pub const VSWTC
: usize = 7;
1197 pub const OLCUC
: ::tcflag_t
= 0o000002;
1198 pub const NLDLY
: ::tcflag_t
= 0o000400;
1199 pub const CRDLY
: ::tcflag_t
= 0o003000;
1200 pub const TABDLY
: ::tcflag_t
= 0o014000;
1201 pub const BSDLY
: ::tcflag_t
= 0o020000;
1202 pub const FFDLY
: ::tcflag_t
= 0o100000;
1203 pub const VTDLY
: ::tcflag_t
= 0o040000;
1204 pub const XTABS
: ::tcflag_t
= 0o014000;
1206 pub const B0
: ::speed_t
= 0o000000;
1207 pub const B50
: ::speed_t
= 0o000001;
1208 pub const B75
: ::speed_t
= 0o000002;
1209 pub const B110
: ::speed_t
= 0o000003;
1210 pub const B134
: ::speed_t
= 0o000004;
1211 pub const B150
: ::speed_t
= 0o000005;
1212 pub const B200
: ::speed_t
= 0o000006;
1213 pub const B300
: ::speed_t
= 0o000007;
1214 pub const B600
: ::speed_t
= 0o000010;
1215 pub const B1200
: ::speed_t
= 0o000011;
1216 pub const B1800
: ::speed_t
= 0o000012;
1217 pub const B2400
: ::speed_t
= 0o000013;
1218 pub const B4800
: ::speed_t
= 0o000014;
1219 pub const B9600
: ::speed_t
= 0o000015;
1220 pub const B19200
: ::speed_t
= 0o000016;
1221 pub const B38400
: ::speed_t
= 0o000017;
1222 pub const B57600
: ::speed_t
= 0o010001;
1223 pub const B115200
: ::speed_t
= 0o010002;
1224 pub const B230400
: ::speed_t
= 0o010003;
1225 pub const B460800
: ::speed_t
= 0o010004;
1226 pub const B500000
: ::speed_t
= 0o010005;
1227 pub const B576000
: ::speed_t
= 0o010006;
1228 pub const B921600
: ::speed_t
= 0o010007;
1229 pub const B1000000
: ::speed_t
= 0o010010;
1230 pub const B1152000
: ::speed_t
= 0o010011;
1231 pub const B1500000
: ::speed_t
= 0o010012;
1232 pub const B2000000
: ::speed_t
= 0o010013;
1233 pub const B2500000
: ::speed_t
= 0o010014;
1234 pub const B3000000
: ::speed_t
= 0o010015;
1235 pub const B3500000
: ::speed_t
= 0o010016;
1236 pub const B4000000
: ::speed_t
= 0o010017;
1238 pub const SO_BINDTODEVICE
: ::c_int
= 25;
1239 pub const SO_TIMESTAMP
: ::c_int
= 29;
1240 pub const SO_MARK
: ::c_int
= 36;
1241 pub const SO_RXQ_OVFL
: ::c_int
= 40;
1242 pub const SO_PEEK_OFF
: ::c_int
= 42;
1243 pub const SO_BUSY_POLL
: ::c_int
= 46;
1245 pub const __SIZEOF_PTHREAD_RWLOCK_T
: usize = 32;
1246 pub const __SIZEOF_PTHREAD_MUTEX_T
: usize = 28;
1248 pub const O_DIRECT
: ::c_int
= 0x4000;
1249 pub const O_DIRECTORY
: ::c_int
= 0x10000;
1250 pub const O_NOFOLLOW
: ::c_int
= 0x20000;
1251 pub const O_ASYNC
: ::c_int
= 0x2000;
1253 pub const FIOCLEX
: ::c_int
= 0x5451;
1254 pub const FIONBIO
: ::c_int
= 0x5421;
1256 pub const RLIMIT_RSS
: ::c_int
= 5;
1257 pub const RLIMIT_NOFILE
: ::c_int
= 7;
1258 pub const RLIMIT_AS
: ::c_int
= 9;
1259 pub const RLIMIT_NPROC
: ::c_int
= 6;
1260 pub const RLIMIT_MEMLOCK
: ::c_int
= 8;
1262 pub const O_APPEND
: ::c_int
= 1024;
1263 pub const O_CREAT
: ::c_int
= 64;
1264 pub const O_EXCL
: ::c_int
= 128;
1265 pub const O_NOCTTY
: ::c_int
= 256;
1266 pub const O_NONBLOCK
: ::c_int
= 2048;
1267 pub const O_SYNC
: ::c_int
= 1052672;
1268 pub const O_RSYNC
: ::c_int
= 1052672;
1269 pub const O_DSYNC
: ::c_int
= 4096;
1271 pub const SOCK_NONBLOCK
: ::c_int
= 2048;
1273 pub const MAP_ANON
: ::c_int
= 0x0020;
1274 pub const MAP_GROWSDOWN
: ::c_int
= 0x0100;
1275 pub const MAP_DENYWRITE
: ::c_int
= 0x0800;
1276 pub const MAP_EXECUTABLE
: ::c_int
= 0x01000;
1277 pub const MAP_LOCKED
: ::c_int
= 0x02000;
1278 pub const MAP_NORESERVE
: ::c_int
= 0x04000;
1279 pub const MAP_POPULATE
: ::c_int
= 0x08000;
1280 pub const MAP_NONBLOCK
: ::c_int
= 0x010000;
1281 pub const MAP_STACK
: ::c_int
= 0x020000;
1283 pub const SOCK_STREAM
: ::c_int
= 1;
1284 pub const SOCK_DGRAM
: ::c_int
= 2;
1285 pub const SOCK_SEQPACKET
: ::c_int
= 5;
1287 pub const SOL_SOCKET
: ::c_int
= 1;
1289 pub const EDEADLK
: ::c_int
= 35;
1290 pub const ENAMETOOLONG
: ::c_int
= 36;
1291 pub const ENOLCK
: ::c_int
= 37;
1292 pub const ENOSYS
: ::c_int
= 38;
1293 pub const ENOTEMPTY
: ::c_int
= 39;
1294 pub const ELOOP
: ::c_int
= 40;
1295 pub const ENOMSG
: ::c_int
= 42;
1296 pub const EIDRM
: ::c_int
= 43;
1297 pub const ECHRNG
: ::c_int
= 44;
1298 pub const EL2NSYNC
: ::c_int
= 45;
1299 pub const EL3HLT
: ::c_int
= 46;
1300 pub const EL3RST
: ::c_int
= 47;
1301 pub const ELNRNG
: ::c_int
= 48;
1302 pub const EUNATCH
: ::c_int
= 49;
1303 pub const ENOCSI
: ::c_int
= 50;
1304 pub const EL2HLT
: ::c_int
= 51;
1305 pub const EBADE
: ::c_int
= 52;
1306 pub const EBADR
: ::c_int
= 53;
1307 pub const EXFULL
: ::c_int
= 54;
1308 pub const ENOANO
: ::c_int
= 55;
1309 pub const EBADRQC
: ::c_int
= 56;
1310 pub const EBADSLT
: ::c_int
= 57;
1311 pub const EDEADLOCK
: ::c_int
= EDEADLK
;
1312 pub const EMULTIHOP
: ::c_int
= 72;
1313 pub const EBADMSG
: ::c_int
= 74;
1314 pub const EOVERFLOW
: ::c_int
= 75;
1315 pub const ENOTUNIQ
: ::c_int
= 76;
1316 pub const EBADFD
: ::c_int
= 77;
1317 pub const EREMCHG
: ::c_int
= 78;
1318 pub const ELIBACC
: ::c_int
= 79;
1319 pub const ELIBBAD
: ::c_int
= 80;
1320 pub const ELIBSCN
: ::c_int
= 81;
1321 pub const ELIBMAX
: ::c_int
= 82;
1322 pub const ELIBEXEC
: ::c_int
= 83;
1323 pub const EILSEQ
: ::c_int
= 84;
1324 pub const ERESTART
: ::c_int
= 85;
1325 pub const ESTRPIPE
: ::c_int
= 86;
1326 pub const EUSERS
: ::c_int
= 87;
1327 pub const ENOTSOCK
: ::c_int
= 88;
1328 pub const EDESTADDRREQ
: ::c_int
= 89;
1329 pub const EMSGSIZE
: ::c_int
= 90;
1330 pub const EPROTOTYPE
: ::c_int
= 91;
1331 pub const ENOPROTOOPT
: ::c_int
= 92;
1332 pub const EPROTONOSUPPORT
: ::c_int
= 93;
1333 pub const ESOCKTNOSUPPORT
: ::c_int
= 94;
1334 pub const EOPNOTSUPP
: ::c_int
= 95;
1335 pub const ENOTSUP
: ::c_int
= EOPNOTSUPP
;
1336 pub const EPFNOSUPPORT
: ::c_int
= 96;
1337 pub const EAFNOSUPPORT
: ::c_int
= 97;
1338 pub const EADDRINUSE
: ::c_int
= 98;
1339 pub const EADDRNOTAVAIL
: ::c_int
= 99;
1340 pub const ENETDOWN
: ::c_int
= 100;
1341 pub const ENETUNREACH
: ::c_int
= 101;
1342 pub const ENETRESET
: ::c_int
= 102;
1343 pub const ECONNABORTED
: ::c_int
= 103;
1344 pub const ECONNRESET
: ::c_int
= 104;
1345 pub const ENOBUFS
: ::c_int
= 105;
1346 pub const EISCONN
: ::c_int
= 106;
1347 pub const ENOTCONN
: ::c_int
= 107;
1348 pub const ESHUTDOWN
: ::c_int
= 108;
1349 pub const ETOOMANYREFS
: ::c_int
= 109;
1350 pub const ETIMEDOUT
: ::c_int
= 110;
1351 pub const ECONNREFUSED
: ::c_int
= 111;
1352 pub const EHOSTDOWN
: ::c_int
= 112;
1353 pub const EHOSTUNREACH
: ::c_int
= 113;
1354 pub const EALREADY
: ::c_int
= 114;
1355 pub const EINPROGRESS
: ::c_int
= 115;
1356 pub const ESTALE
: ::c_int
= 116;
1357 pub const EUCLEAN
: ::c_int
= 117;
1358 pub const ENOTNAM
: ::c_int
= 118;
1359 pub const ENAVAIL
: ::c_int
= 119;
1360 pub const EISNAM
: ::c_int
= 120;
1361 pub const EREMOTEIO
: ::c_int
= 121;
1362 pub const EDQUOT
: ::c_int
= 122;
1363 pub const ENOMEDIUM
: ::c_int
= 123;
1364 pub const EMEDIUMTYPE
: ::c_int
= 124;
1365 pub const ECANCELED
: ::c_int
= 125;
1366 pub const ENOKEY
: ::c_int
= 126;
1367 pub const EKEYEXPIRED
: ::c_int
= 127;
1368 pub const EKEYREVOKED
: ::c_int
= 128;
1369 pub const EKEYREJECTED
: ::c_int
= 129;
1370 pub const EOWNERDEAD
: ::c_int
= 130;
1371 pub const ENOTRECOVERABLE
: ::c_int
= 131;
1372 pub const ERFKILL
: ::c_int
= 132;
1373 pub const EHWPOISON
: ::c_int
= 133;
1375 pub const SO_REUSEADDR
: ::c_int
= 2;
1376 pub const SO_TYPE
: ::c_int
= 3;
1377 pub const SO_ERROR
: ::c_int
= 4;
1378 pub const SO_DONTROUTE
: ::c_int
= 5;
1379 pub const SO_BROADCAST
: ::c_int
= 6;
1380 pub const SO_SNDBUF
: ::c_int
= 7;
1381 pub const SO_RCVBUF
: ::c_int
= 8;
1382 pub const SO_KEEPALIVE
: ::c_int
= 9;
1383 pub const SO_OOBINLINE
: ::c_int
= 10;
1384 pub const SO_LINGER
: ::c_int
= 13;
1385 pub const SO_REUSEPORT
: ::c_int
= 15;
1386 pub const SO_RCVLOWAT
: ::c_int
= 18;
1387 pub const SO_SNDLOWAT
: ::c_int
= 19;
1388 pub const SO_RCVTIMEO
: ::c_int
= 20;
1389 pub const SO_SNDTIMEO
: ::c_int
= 21;
1390 pub const SO_ACCEPTCONN
: ::c_int
= 30;
1392 pub const SA_ONSTACK
: ::c_int
= 0x08000000;
1393 pub const SA_SIGINFO
: ::c_int
= 0x00000004;
1394 pub const SA_NOCLDWAIT
: ::c_int
= 0x00000002;
1396 pub const SIGCHLD
: ::c_int
= 17;
1397 pub const SIGBUS
: ::c_int
= 7;
1398 pub const SIGTTIN
: ::c_int
= 21;
1399 pub const SIGTTOU
: ::c_int
= 22;
1400 pub const SIGXCPU
: ::c_int
= 24;
1401 pub const SIGXFSZ
: ::c_int
= 25;
1402 pub const SIGVTALRM
: ::c_int
= 26;
1403 pub const SIGPROF
: ::c_int
= 27;
1404 pub const SIGWINCH
: ::c_int
= 28;
1405 pub const SIGUSR1
: ::c_int
= 10;
1406 pub const SIGUSR2
: ::c_int
= 12;
1407 pub const SIGCONT
: ::c_int
= 18;
1408 pub const SIGSTOP
: ::c_int
= 19;
1409 pub const SIGTSTP
: ::c_int
= 20;
1410 pub const SIGURG
: ::c_int
= 23;
1411 pub const SIGIO
: ::c_int
= 29;
1412 pub const SIGSYS
: ::c_int
= 31;
1413 pub const SIGSTKFLT
: ::c_int
= 16;
1414 pub const SIGPOLL
: ::c_int
= 29;
1415 pub const SIGPWR
: ::c_int
= 30;
1416 pub const SIG_SETMASK
: ::c_int
= 2;
1417 pub const SIG_BLOCK
: ::c_int
= 0x000000;
1418 pub const SIG_UNBLOCK
: ::c_int
= 0x01;
1420 pub const EXTPROC
: ::tcflag_t
= 0x00010000;
1422 pub const MAP_HUGETLB
: ::c_int
= 0x040000;
1424 pub const F_GETLK
: ::c_int
= 12;
1425 pub const F_GETOWN
: ::c_int
= 9;
1426 pub const F_SETLK
: ::c_int
= 13;
1427 pub const F_SETLKW
: ::c_int
= 14;
1428 pub const F_SETOWN
: ::c_int
= 8;
1430 pub const VEOF
: usize = 4;
1431 pub const VEOL
: usize = 11;
1432 pub const VEOL2
: usize = 16;
1433 pub const VMIN
: usize = 6;
1434 pub const IEXTEN
: ::tcflag_t
= 0x00008000;
1435 pub const TOSTOP
: ::tcflag_t
= 0x00000100;
1436 pub const FLUSHO
: ::tcflag_t
= 0x00001000;
1438 pub const TCGETS
: ::c_int
= 0x5401;
1439 pub const TCSETS
: ::c_int
= 0x5402;
1440 pub const TCSETSW
: ::c_int
= 0x5403;
1441 pub const TCSETSF
: ::c_int
= 0x5404;
1442 pub const TCGETA
: ::c_int
= 0x5405;
1443 pub const TCSETA
: ::c_int
= 0x5406;
1444 pub const TCSETAW
: ::c_int
= 0x5407;
1445 pub const TCSETAF
: ::c_int
= 0x5408;
1446 pub const TCSBRK
: ::c_int
= 0x5409;
1447 pub const TCXONC
: ::c_int
= 0x540A;
1448 pub const TCFLSH
: ::c_int
= 0x540B;
1449 pub const TIOCGSOFTCAR
: ::c_int
= 0x5419;
1450 pub const TIOCSSOFTCAR
: ::c_int
= 0x541A;
1451 pub const TIOCLINUX
: ::c_int
= 0x541C;
1452 pub const TIOCGSERIAL
: ::c_int
= 0x541E;
1453 pub const TIOCEXCL
: ::c_int
= 0x540C;
1454 pub const TIOCNXCL
: ::c_int
= 0x540D;
1455 pub const TIOCSCTTY
: ::c_int
= 0x540E;
1456 pub const TIOCGPGRP
: ::c_int
= 0x540F;
1457 pub const TIOCSPGRP
: ::c_int
= 0x5410;
1458 pub const TIOCOUTQ
: ::c_int
= 0x5411;
1459 pub const TIOCSTI
: ::c_int
= 0x5412;
1460 pub const TIOCGWINSZ
: ::c_int
= 0x5413;
1461 pub const TIOCSWINSZ
: ::c_int
= 0x5414;
1462 pub const TIOCMGET
: ::c_int
= 0x5415;
1463 pub const TIOCMBIS
: ::c_int
= 0x5416;
1464 pub const TIOCMBIC
: ::c_int
= 0x5417;
1465 pub const TIOCMSET
: ::c_int
= 0x5418;
1466 pub const FIONREAD
: ::c_int
= 0x541B;
1467 pub const TIOCCONS
: ::c_int
= 0x541D;
1469 pub const SYS_gettid
: ::c_long
= 224; // Valid for arm (32-bit) and x86 (32-bit)
1471 pub const POLLWRNORM
: ::c_short
= 0x100;
1472 pub const POLLWRBAND
: ::c_short
= 0x200;
1474 pub const TIOCM_LE
: ::c_int
= 0x001;
1475 pub const TIOCM_DTR
: ::c_int
= 0x002;
1476 pub const TIOCM_RTS
: ::c_int
= 0x004;
1477 pub const TIOCM_ST
: ::c_int
= 0x008;
1478 pub const TIOCM_SR
: ::c_int
= 0x010;
1479 pub const TIOCM_CTS
: ::c_int
= 0x020;
1480 pub const TIOCM_CAR
: ::c_int
= 0x040;
1481 pub const TIOCM_RNG
: ::c_int
= 0x080;
1482 pub const TIOCM_DSR
: ::c_int
= 0x100;
1483 pub const TIOCM_CD
: ::c_int
= TIOCM_CAR
;
1484 pub const TIOCM_RI
: ::c_int
= TIOCM_RNG
;
1485 pub const O_TMPFILE
: ::c_int
= 0x400000;
1488 pub fn CPU_ZERO(cpuset
: &mut cpu_set_t
) -> () {
1489 for slot
in cpuset
.bits
.iter_mut() {
1494 pub fn CPU_SET(cpu
: usize, cpuset
: &mut cpu_set_t
) -> () {
1495 let size_in_bits
= 8 * mem
::size_of_val(&cpuset
.bits
[0]); // 32, 64 etc
1496 let (idx
, offset
) = (cpu
/ size_in_bits
, cpu
% size_in_bits
);
1497 cpuset
.bits
[idx
] |= 1 << offset
;
1501 pub fn CPU_CLR(cpu
: usize, cpuset
: &mut cpu_set_t
) -> () {
1502 let size_in_bits
= 8 * mem
::size_of_val(&cpuset
.bits
[0]); // 32, 64 etc
1503 let (idx
, offset
) = (cpu
/ size_in_bits
, cpu
% size_in_bits
);
1504 cpuset
.bits
[idx
] &= !(1 << offset
);
1508 pub fn CPU_ISSET(cpu
: usize, cpuset
: &cpu_set_t
) -> bool
{
1509 let size_in_bits
= 8 * mem
::size_of_val(&cpuset
.bits
[0]);
1510 let (idx
, offset
) = (cpu
/ size_in_bits
, cpu
% size_in_bits
);
1511 0 != (cpuset
.bits
[idx
] & (1 << offset
))
1514 pub fn CPU_EQUAL(set1
: &cpu_set_t
, set2
: &cpu_set_t
) -> bool
{
1515 set1
.bits
== set2
.bits
1518 pub fn major(dev
: ::dev_t
) -> ::c_uint
{
1520 // https://github.com/kripken/emscripten/blob/
1521 // master/system/include/libc/sys/sysmacros.h
1523 major
|= (dev
& 0x00000fff) >> 8;
1524 major
|= (dev
& 0xfffff000) >> 31 >> 1;
1528 pub fn minor(dev
: ::dev_t
) -> ::c_uint
{
1530 // https://github.com/kripken/emscripten/blob/
1531 // master/system/include/libc/sys/sysmacros.h
1533 minor
|= (dev
& 0x000000ff) >> 0;
1534 minor
|= (dev
& 0xffffff00) >> 12;
1538 pub fn makedev(major
: ::c_uint
, minor
: ::c_uint
) -> ::dev_t
{
1539 let major
= major
as ::dev_t
;
1540 let minor
= minor
as ::dev_t
;
1542 dev
|= (major
& 0x00000fff) << 8;
1543 dev
|= (major
& 0xfffff000) << 31 << 1;
1544 dev
|= (minor
& 0x000000ff) << 0;
1545 dev
|= (minor
& 0xffffff00) << 12;
1553 pub fn getpwent() -> *mut passwd
;
1555 pub fn shm_open(name
: *const c_char
, oflag
: ::c_int
,
1556 mode
: mode_t
) -> ::c_int
;
1558 pub fn mprotect(addr
: *mut ::c_void
, len
: ::size_t
, prot
: ::c_int
)
1560 pub fn __errno_location() -> *mut ::c_int
;
1562 pub fn fopen64(filename
: *const c_char
,
1563 mode
: *const c_char
) -> *mut ::FILE
;
1564 pub fn freopen64(filename
: *const c_char
, mode
: *const c_char
,
1565 file
: *mut ::FILE
) -> *mut ::FILE
;
1566 pub fn tmpfile64() -> *mut ::FILE
;
1567 pub fn fgetpos64(stream
: *mut ::FILE
, ptr
: *mut fpos64_t
) -> ::c_int
;
1568 pub fn fsetpos64(stream
: *mut ::FILE
, ptr
: *const fpos64_t
) -> ::c_int
;
1569 pub fn fseeko64(stream
: *mut ::FILE
,
1571 whence
: ::c_int
) -> ::c_int
;
1572 pub fn ftello64(stream
: *mut ::FILE
) -> ::off64_t
;
1573 pub fn posix_fallocate(fd
: ::c_int
, offset
: ::off_t
,
1574 len
: ::off_t
) -> ::c_int
;
1575 pub fn pwritev(fd
: ::c_int
,
1576 iov
: *const ::iovec
,
1578 offset
: ::off_t
) -> ::ssize_t
;
1579 pub fn preadv(fd
: ::c_int
,
1580 iov
: *const ::iovec
,
1582 offset
: ::off_t
) -> ::ssize_t
;
1583 pub fn dup3(oldfd
: ::c_int
, newfd
: ::c_int
, flags
: ::c_int
) -> ::c_int
;
1584 pub fn mkostemp(template
: *mut ::c_char
, flags
: ::c_int
) -> ::c_int
;
1585 pub fn mkostemps(template
: *mut ::c_char
,
1587 flags
: ::c_int
) -> ::c_int
;
1588 pub fn nl_langinfo_l(item
: ::nl_item
, locale
: ::locale_t
) -> *mut ::c_char
;
1589 pub fn getnameinfo(sa
: *const ::sockaddr
,
1591 host
: *mut ::c_char
,
1592 hostlen
: ::socklen_t
,
1593 serv
: *mut ::c_char
,
1594 sevlen
: ::socklen_t
,
1595 flags
: ::c_int
) -> ::c_int
;
1596 pub fn getloadavg(loadavg
: *mut ::c_double
, nelem
: ::c_int
) -> ::c_int
;
1598 // Not available now on Android
1599 pub fn mkfifoat(dirfd
: ::c_int
, pathname
: *const ::c_char
,
1600 mode
: ::mode_t
) -> ::c_int
;
1601 pub fn if_nameindex() -> *mut if_nameindex
;
1602 pub fn if_freenameindex(ptr
: *mut if_nameindex
);
1603 pub fn getifaddrs(ifap
: *mut *mut ::ifaddrs
) -> ::c_int
;
1604 pub fn freeifaddrs(ifa
: *mut ::ifaddrs
);
1606 pub fn mremap(addr
: *mut ::c_void
,
1610 ...) -> *mut ::c_void
;
1612 pub fn glob(pattern
: *const c_char
,
1614 errfunc
: Option
<extern fn(epath
: *const c_char
,
1615 errno
: ::c_int
) -> ::c_int
>,
1616 pglob
: *mut ::glob_t
) -> ::c_int
;
1617 pub fn globfree(pglob
: *mut ::glob_t
);
1619 pub fn posix_madvise(addr
: *mut ::c_void
, len
: ::size_t
, advice
: ::c_int
)
1622 pub fn shm_unlink(name
: *const ::c_char
) -> ::c_int
;
1624 pub fn seekdir(dirp
: *mut ::DIR
, loc
: ::c_long
);
1626 pub fn telldir(dirp
: *mut ::DIR
) -> ::c_long
;
1627 pub fn madvise(addr
: *mut ::c_void
, len
: ::size_t
, advice
: ::c_int
)
1630 pub fn msync(addr
: *mut ::c_void
, len
: ::size_t
, flags
: ::c_int
) -> ::c_int
;
1632 pub fn recvfrom(socket
: ::c_int
, buf
: *mut ::c_void
, len
: ::size_t
,
1633 flags
: ::c_int
, addr
: *mut ::sockaddr
,
1634 addrlen
: *mut ::socklen_t
) -> ::ssize_t
;
1635 pub fn mkstemps(template
: *mut ::c_char
, suffixlen
: ::c_int
) -> ::c_int
;
1636 pub fn nl_langinfo(item
: ::nl_item
) -> *mut ::c_char
;
1638 pub fn bind(socket
: ::c_int
, address
: *const ::sockaddr
,
1639 address_len
: ::socklen_t
) -> ::c_int
;
1641 pub fn writev(fd
: ::c_int
,
1642 iov
: *const ::iovec
,
1643 iovcnt
: ::c_int
) -> ::ssize_t
;
1644 pub fn readv(fd
: ::c_int
,
1645 iov
: *const ::iovec
,
1646 iovcnt
: ::c_int
) -> ::ssize_t
;
1648 pub fn sendmsg(fd
: ::c_int
,
1649 msg
: *const ::msghdr
,
1650 flags
: ::c_int
) -> ::ssize_t
;
1651 pub fn recvmsg(fd
: ::c_int
, msg
: *mut ::msghdr
, flags
: ::c_int
)
1653 pub fn getdomainname(name
: *mut ::c_char
, len
: ::size_t
) -> ::c_int
;
1654 pub fn setdomainname(name
: *const ::c_char
, len
: ::size_t
) -> ::c_int
;
1655 pub fn sendmmsg(sockfd
: ::c_int
, msgvec
: *mut mmsghdr
, vlen
: ::c_uint
,
1656 flags
: ::c_int
) -> ::c_int
;
1657 pub fn recvmmsg(sockfd
: ::c_int
, msgvec
: *mut mmsghdr
, vlen
: ::c_uint
,
1658 flags
: ::c_int
, timeout
: *mut ::timespec
) -> ::c_int
;
1660 pub fn ioctl(fd
: ::c_int
, request
: ::c_int
, ...) -> ::c_int
;
1661 pub fn getpriority(which
: ::c_int
, who
: ::id_t
) -> ::c_int
;
1662 pub fn setpriority(which
: ::c_int
, who
: ::id_t
, prio
: ::c_int
) -> ::c_int
;
1663 pub fn pthread_create(native
: *mut ::pthread_t
,
1664 attr
: *const ::pthread_attr_t
,
1665 f
: extern fn(*mut ::c_void
) -> *mut ::c_void
,
1666 value
: *mut ::c_void
) -> ::c_int
;