Auto merge of #628 - asomers:sysconf, r=alexcrichton
Add constants for sysconf(3) and pathconf(3)
This commit is contained in:
commit
4dd672704a
@ -414,6 +414,16 @@ pub const AT_SYMLINK_FOLLOW: ::c_int = 8;
|
||||
|
||||
pub const VCHECKPT: usize = 19;
|
||||
|
||||
pub const _PC_2_SYMLINKS: ::c_int = 22;
|
||||
pub const _PC_TIMESTAMP_RESOLUTION: ::c_int = 23;
|
||||
|
||||
pub const _SC_V7_ILP32_OFF32: ::c_int = 122;
|
||||
pub const _SC_V7_ILP32_OFFBIG: ::c_int = 123;
|
||||
pub const _SC_V7_LP64_OFF64: ::c_int = 124;
|
||||
pub const _SC_V7_LPBIG_OFFBIG: ::c_int = 125;
|
||||
pub const _SC_THREAD_ROBUST_PRIO_INHERIT: ::c_int = 126;
|
||||
pub const _SC_THREAD_ROBUST_PRIO_PROTECT: ::c_int = 127;
|
||||
|
||||
extern {
|
||||
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
|
||||
-> ::c_int;
|
||||
|
@ -521,6 +521,10 @@ pub const TABDLY: ::tcflag_t = 0x00000004;
|
||||
pub const TAB0: ::tcflag_t = 0x00000000;
|
||||
pub const TAB3: ::tcflag_t = 0x00000004;
|
||||
|
||||
pub const _PC_ACL_NFS4: ::c_int = 64;
|
||||
|
||||
pub const _SC_CPUSET_SIZE: ::c_int = 122;
|
||||
|
||||
extern {
|
||||
pub fn __error() -> *mut ::c_int;
|
||||
|
||||
|
@ -466,36 +466,6 @@ pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2;
|
||||
pub const POSIX_MADV_WILLNEED: ::c_int = 3;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
|
||||
pub const _SC_IOV_MAX: ::c_int = 56;
|
||||
pub const _SC_GETGR_R_SIZE_MAX: ::c_int = 70;
|
||||
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 71;
|
||||
pub const _SC_LOGIN_NAME_MAX: ::c_int = 73;
|
||||
pub const _SC_MQ_PRIO_MAX: ::c_int = 75;
|
||||
pub const _SC_NPROCESSORS_ONLN: ::c_int = 58;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR: ::c_int = 82;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE: ::c_int = 83;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: ::c_int = 85;
|
||||
pub const _SC_THREAD_KEYS_MAX: ::c_int = 86;
|
||||
pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 87;
|
||||
pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 88;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 89;
|
||||
pub const _SC_THREAD_PROCESS_SHARED: ::c_int = 90;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 91;
|
||||
pub const _SC_THREAD_STACK_MIN: ::c_int = 93;
|
||||
pub const _SC_THREAD_THREADS_MAX: ::c_int = 94;
|
||||
pub const _SC_THREADS: ::c_int = 96;
|
||||
pub const _SC_TTY_NAME_MAX: ::c_int = 101;
|
||||
pub const _SC_ATEXIT_MAX: ::c_int = 107;
|
||||
pub const _SC_XOPEN_CRYPT: ::c_int = 108;
|
||||
pub const _SC_XOPEN_ENH_I18N: ::c_int = 109;
|
||||
pub const _SC_XOPEN_LEGACY: ::c_int = 110;
|
||||
pub const _SC_XOPEN_REALTIME: ::c_int = 111;
|
||||
pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 112;
|
||||
pub const _SC_XOPEN_SHM: ::c_int = 113;
|
||||
pub const _SC_XOPEN_UNIX: ::c_int = 115;
|
||||
pub const _SC_XOPEN_VERSION: ::c_int = 116;
|
||||
pub const _SC_XOPEN_XCU_VERSION: ::c_int = 117;
|
||||
|
||||
pub const PTHREAD_CREATE_JOINABLE: ::c_int = 0;
|
||||
pub const PTHREAD_CREATE_DETACHED: ::c_int = 1;
|
||||
|
||||
@ -686,6 +656,32 @@ pub const MAP_NOCORE: ::c_int = 0x020000;
|
||||
|
||||
pub const IPPROTO_RAW: ::c_int = 255;
|
||||
|
||||
pub const _PC_LINK_MAX: ::c_int = 1;
|
||||
pub const _PC_MAX_CANON: ::c_int = 2;
|
||||
pub const _PC_MAX_INPUT: ::c_int = 3;
|
||||
pub const _PC_NAME_MAX: ::c_int = 4;
|
||||
pub const _PC_PATH_MAX: ::c_int = 5;
|
||||
pub const _PC_PIPE_BUF: ::c_int = 6;
|
||||
pub const _PC_CHOWN_RESTRICTED: ::c_int = 7;
|
||||
pub const _PC_NO_TRUNC: ::c_int = 8;
|
||||
pub const _PC_VDISABLE: ::c_int = 9;
|
||||
pub const _PC_ALLOC_SIZE_MIN: ::c_int = 10;
|
||||
pub const _PC_FILESIZEBITS: ::c_int = 12;
|
||||
pub const _PC_REC_INCR_XFER_SIZE: ::c_int = 14;
|
||||
pub const _PC_REC_MAX_XFER_SIZE: ::c_int = 15;
|
||||
pub const _PC_REC_MIN_XFER_SIZE: ::c_int = 16;
|
||||
pub const _PC_REC_XFER_ALIGN: ::c_int = 17;
|
||||
pub const _PC_SYMLINK_MAX: ::c_int = 18;
|
||||
pub const _PC_MIN_HOLE_SIZE: ::c_int = 21;
|
||||
pub const _PC_ASYNC_IO: ::c_int = 53;
|
||||
pub const _PC_PRIO_IO: ::c_int = 54;
|
||||
pub const _PC_SYNC_IO: ::c_int = 55;
|
||||
pub const _PC_ACL_EXTENDED: ::c_int = 59;
|
||||
pub const _PC_ACL_PATH_MAX: ::c_int = 60;
|
||||
pub const _PC_CAP_PRESENT: ::c_int = 61;
|
||||
pub const _PC_INF_PRESENT: ::c_int = 62;
|
||||
pub const _PC_MAC_PRESENT: ::c_int = 63;
|
||||
|
||||
pub const _SC_ARG_MAX: ::c_int = 1;
|
||||
pub const _SC_CHILD_MAX: ::c_int = 2;
|
||||
pub const _SC_CLK_TCK: ::c_int = 3;
|
||||
@ -739,7 +735,71 @@ pub const _SC_SEM_NSEMS_MAX: ::c_int = 49;
|
||||
pub const _SC_SEM_VALUE_MAX: ::c_int = 50;
|
||||
pub const _SC_SIGQUEUE_MAX: ::c_int = 51;
|
||||
pub const _SC_TIMER_MAX: ::c_int = 52;
|
||||
pub const _SC_IOV_MAX: ::c_int = 56;
|
||||
pub const _SC_NPROCESSORS_CONF: ::c_int = 57;
|
||||
pub const _SC_2_PBS: ::c_int = 59;
|
||||
pub const _SC_2_PBS_ACCOUNTING: ::c_int = 60;
|
||||
pub const _SC_2_PBS_CHECKPOINT: ::c_int = 61;
|
||||
pub const _SC_2_PBS_LOCATE: ::c_int = 62;
|
||||
pub const _SC_2_PBS_MESSAGE: ::c_int = 63;
|
||||
pub const _SC_2_PBS_TRACK: ::c_int = 64;
|
||||
pub const _SC_ADVISORY_INFO: ::c_int = 65;
|
||||
pub const _SC_BARRIERS: ::c_int = 66;
|
||||
pub const _SC_CLOCK_SELECTION: ::c_int = 67;
|
||||
pub const _SC_CPUTIME: ::c_int = 68;
|
||||
pub const _SC_FILE_LOCKING: ::c_int = 69;
|
||||
pub const _SC_NPROCESSORS_ONLN: ::c_int = 58;
|
||||
pub const _SC_GETGR_R_SIZE_MAX: ::c_int = 70;
|
||||
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 71;
|
||||
pub const _SC_HOST_NAME_MAX: ::c_int = 72;
|
||||
pub const _SC_LOGIN_NAME_MAX: ::c_int = 73;
|
||||
pub const _SC_MONOTONIC_CLOCK: ::c_int = 74;
|
||||
pub const _SC_MQ_PRIO_MAX: ::c_int = 75;
|
||||
pub const _SC_READER_WRITER_LOCKS: ::c_int = 76;
|
||||
pub const _SC_REGEXP: ::c_int = 77;
|
||||
pub const _SC_SHELL: ::c_int = 78;
|
||||
pub const _SC_SPAWN: ::c_int = 79;
|
||||
pub const _SC_SPIN_LOCKS: ::c_int = 80;
|
||||
pub const _SC_SPORADIC_SERVER: ::c_int = 81;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR: ::c_int = 82;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE: ::c_int = 83;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: ::c_int = 85;
|
||||
pub const _SC_THREAD_KEYS_MAX: ::c_int = 86;
|
||||
pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 87;
|
||||
pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 88;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 89;
|
||||
pub const _SC_THREAD_PROCESS_SHARED: ::c_int = 90;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 91;
|
||||
pub const _SC_THREAD_SPORADIC_SERVER: ::c_int = 92;
|
||||
pub const _SC_THREAD_STACK_MIN: ::c_int = 93;
|
||||
pub const _SC_THREAD_THREADS_MAX: ::c_int = 94;
|
||||
pub const _SC_TIMEOUTS: ::c_int = 95;
|
||||
pub const _SC_THREADS: ::c_int = 96;
|
||||
pub const _SC_TRACE: ::c_int = 97;
|
||||
pub const _SC_TRACE_EVENT_FILTER: ::c_int = 98;
|
||||
pub const _SC_TRACE_INHERIT: ::c_int = 99;
|
||||
pub const _SC_TRACE_LOG: ::c_int = 100;
|
||||
pub const _SC_TTY_NAME_MAX: ::c_int = 101;
|
||||
pub const _SC_TYPED_MEMORY_OBJECTS: ::c_int = 102;
|
||||
pub const _SC_V6_ILP32_OFF32: ::c_int = 103;
|
||||
pub const _SC_V6_ILP32_OFFBIG: ::c_int = 104;
|
||||
pub const _SC_V6_LP64_OFF64: ::c_int = 105;
|
||||
pub const _SC_V6_LPBIG_OFFBIG: ::c_int = 106;
|
||||
pub const _SC_ATEXIT_MAX: ::c_int = 107;
|
||||
pub const _SC_XOPEN_CRYPT: ::c_int = 108;
|
||||
pub const _SC_XOPEN_ENH_I18N: ::c_int = 109;
|
||||
pub const _SC_XOPEN_LEGACY: ::c_int = 110;
|
||||
pub const _SC_XOPEN_REALTIME: ::c_int = 111;
|
||||
pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 112;
|
||||
pub const _SC_XOPEN_SHM: ::c_int = 113;
|
||||
pub const _SC_XOPEN_STREAMS: ::c_int = 114;
|
||||
pub const _SC_XOPEN_UNIX: ::c_int = 115;
|
||||
pub const _SC_XOPEN_VERSION: ::c_int = 116;
|
||||
pub const _SC_XOPEN_XCU_VERSION: ::c_int = 117;
|
||||
pub const _SC_IPV6: ::c_int = 118;
|
||||
pub const _SC_RAW_SOCKETS: ::c_int = 119;
|
||||
pub const _SC_SYMLOOP_MAX: ::c_int = 120;
|
||||
pub const _SC_PHYS_PAGES: ::c_int = 121;
|
||||
|
||||
pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = 0 as *mut _;
|
||||
pub const PTHREAD_COND_INITIALIZER: pthread_cond_t = 0 as *mut _;
|
||||
|
@ -307,8 +307,6 @@ pub const POSIX_MADV_SEQUENTIAL : ::c_int = 2;
|
||||
pub const POSIX_MADV_WILLNEED : ::c_int = 3;
|
||||
pub const POSIX_MADV_DONTNEED : ::c_int = 4;
|
||||
|
||||
pub const _SC_XOPEN_SHM : ::c_int = 30;
|
||||
|
||||
pub const PTHREAD_CREATE_JOINABLE : ::c_int = 0;
|
||||
pub const PTHREAD_CREATE_DETACHED : ::c_int = 1;
|
||||
|
||||
@ -500,6 +498,7 @@ pub const _SC_TZNAME_MAX : ::c_int = 27;
|
||||
pub const _SC_PAGESIZE : ::c_int = 28;
|
||||
pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
|
||||
pub const _SC_FSYNC : ::c_int = 29;
|
||||
pub const _SC_XOPEN_SHM : ::c_int = 30;
|
||||
|
||||
pub const Q_GETQUOTA: ::c_int = 0x300;
|
||||
pub const Q_SETQUOTA: ::c_int = 0x400;
|
||||
|
@ -349,42 +349,91 @@ pub const MAP_NORESERVE : ::c_int = 0x40;
|
||||
pub const MAP_HASSEMAPHORE : ::c_int = 0x200;
|
||||
pub const MAP_WIRED: ::c_int = 0x800;
|
||||
|
||||
pub const _PC_LINK_MAX : ::c_int = 1;
|
||||
pub const _PC_MAX_CANON : ::c_int = 2;
|
||||
pub const _PC_MAX_INPUT : ::c_int = 3;
|
||||
pub const _PC_NAME_MAX : ::c_int = 4;
|
||||
pub const _PC_PATH_MAX : ::c_int = 5;
|
||||
pub const _PC_PIPE_BUF : ::c_int = 6;
|
||||
pub const _PC_CHOWN_RESTRICTED : ::c_int = 7;
|
||||
pub const _PC_NO_TRUNC : ::c_int = 8;
|
||||
pub const _PC_VDISABLE : ::c_int = 9;
|
||||
pub const _PC_SYNC_IO : ::c_int = 10;
|
||||
pub const _PC_FILESIZEBITS : ::c_int = 11;
|
||||
pub const _PC_SYMLINK_MAX : ::c_int = 12;
|
||||
pub const _PC_2_SYMLINKS : ::c_int = 13;
|
||||
pub const _PC_ACL_EXTENDED : ::c_int = 14;
|
||||
pub const _PC_MIN_HOLE_SIZE : ::c_int = 15;
|
||||
|
||||
pub const _SC_SYNCHRONIZED_IO : ::c_int = 31;
|
||||
pub const _SC_IOV_MAX : ::c_int = 32;
|
||||
pub const _SC_GETGR_R_SIZE_MAX : ::c_int = 47;
|
||||
pub const _SC_GETPW_R_SIZE_MAX : ::c_int = 48;
|
||||
pub const _SC_LOGIN_NAME_MAX : ::c_int = 37;
|
||||
pub const _SC_MQ_PRIO_MAX : ::c_int = 55;
|
||||
pub const _SC_NPROCESSORS_ONLN : ::c_int = 1002;
|
||||
pub const _SC_THREADS : ::c_int = 41;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR : ::c_int = 61;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE : ::c_int = 62;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : ::c_int = 57;
|
||||
pub const _SC_THREAD_KEYS_MAX : ::c_int = 58;
|
||||
pub const _SC_THREAD_PRIO_INHERIT : ::c_int = 64;
|
||||
pub const _SC_THREAD_PRIO_PROTECT : ::c_int = 65;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING : ::c_int = 63;
|
||||
pub const _SC_THREAD_PROCESS_SHARED : ::c_int = 66;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS : ::c_int = 67;
|
||||
pub const _SC_THREAD_STACK_MIN : ::c_int = 59;
|
||||
pub const _SC_THREAD_THREADS_MAX : ::c_int = 60;
|
||||
pub const _SC_TTY_NAME_MAX : ::c_int = 68;
|
||||
pub const _SC_ATEXIT_MAX : ::c_int = 40;
|
||||
pub const _SC_CLK_TCK : ::c_int = 39;
|
||||
pub const _SC_AIO_LISTIO_MAX : ::c_int = 51;
|
||||
pub const _SC_AIO_MAX : ::c_int = 52;
|
||||
pub const _SC_ASYNCHRONOUS_IO : ::c_int = 50;
|
||||
pub const _SC_MAPPED_FILES : ::c_int = 33;
|
||||
pub const _SC_MEMLOCK : ::c_int = 34;
|
||||
pub const _SC_MEMLOCK_RANGE : ::c_int = 35;
|
||||
pub const _SC_MEMORY_PROTECTION : ::c_int = 36;
|
||||
pub const _SC_LOGIN_NAME_MAX : ::c_int = 37;
|
||||
pub const _SC_MONOTONIC_CLOCK : ::c_int = 38;
|
||||
pub const _SC_CLK_TCK : ::c_int = 39;
|
||||
pub const _SC_ATEXIT_MAX : ::c_int = 40;
|
||||
pub const _SC_THREADS : ::c_int = 41;
|
||||
pub const _SC_SEMAPHORES : ::c_int = 42;
|
||||
pub const _SC_BARRIERS : ::c_int = 43;
|
||||
pub const _SC_TIMERS : ::c_int = 44;
|
||||
pub const _SC_SPIN_LOCKS : ::c_int = 45;
|
||||
pub const _SC_READER_WRITER_LOCKS : ::c_int = 46;
|
||||
pub const _SC_GETGR_R_SIZE_MAX : ::c_int = 47;
|
||||
pub const _SC_GETPW_R_SIZE_MAX : ::c_int = 48;
|
||||
pub const _SC_CLOCK_SELECTION : ::c_int = 49;
|
||||
pub const _SC_ASYNCHRONOUS_IO : ::c_int = 50;
|
||||
pub const _SC_AIO_LISTIO_MAX : ::c_int = 51;
|
||||
pub const _SC_AIO_MAX : ::c_int = 52;
|
||||
pub const _SC_MESSAGE_PASSING : ::c_int = 53;
|
||||
pub const _SC_MQ_OPEN_MAX : ::c_int = 54;
|
||||
pub const _SC_MQ_PRIO_MAX : ::c_int = 55;
|
||||
pub const _SC_PRIORITY_SCHEDULING : ::c_int = 56;
|
||||
pub const _SC_SEMAPHORES : ::c_int = 42;
|
||||
pub const _SC_SHARED_MEMORY_OBJECTS : ::c_int = 87;
|
||||
pub const _SC_SYNCHRONIZED_IO : ::c_int = 31;
|
||||
pub const _SC_TIMERS : ::c_int = 44;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : ::c_int = 57;
|
||||
pub const _SC_THREAD_KEYS_MAX : ::c_int = 58;
|
||||
pub const _SC_THREAD_STACK_MIN : ::c_int = 59;
|
||||
pub const _SC_THREAD_THREADS_MAX : ::c_int = 60;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR : ::c_int = 61;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE : ::c_int = 62;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING : ::c_int = 63;
|
||||
pub const _SC_THREAD_PRIO_INHERIT : ::c_int = 64;
|
||||
pub const _SC_THREAD_PRIO_PROTECT : ::c_int = 65;
|
||||
pub const _SC_THREAD_PROCESS_SHARED : ::c_int = 66;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS : ::c_int = 67;
|
||||
pub const _SC_TTY_NAME_MAX : ::c_int = 68;
|
||||
pub const _SC_HOST_NAME_MAX : ::c_int = 69;
|
||||
pub const _SC_PASS_MAX : ::c_int = 70;
|
||||
pub const _SC_REGEXP : ::c_int = 71;
|
||||
pub const _SC_SHELL : ::c_int = 72;
|
||||
pub const _SC_SYMLOOP_MAX : ::c_int = 73;
|
||||
pub const _SC_V6_ILP32_OFF32 : ::c_int = 74;
|
||||
pub const _SC_V6_ILP32_OFFBIG : ::c_int = 75;
|
||||
pub const _SC_V6_LP64_OFF64 : ::c_int = 76;
|
||||
pub const _SC_V6_LPBIG_OFFBIG : ::c_int = 77;
|
||||
pub const _SC_2_PBS : ::c_int = 80;
|
||||
pub const _SC_2_PBS_ACCOUNTING : ::c_int = 81;
|
||||
pub const _SC_2_PBS_CHECKPOINT : ::c_int = 82;
|
||||
pub const _SC_2_PBS_LOCATE : ::c_int = 83;
|
||||
pub const _SC_2_PBS_MESSAGE : ::c_int = 84;
|
||||
pub const _SC_2_PBS_TRACK : ::c_int = 85;
|
||||
pub const _SC_SPAWN : ::c_int = 86;
|
||||
pub const _SC_SHARED_MEMORY_OBJECTS : ::c_int = 87;
|
||||
pub const _SC_TIMER_MAX : ::c_int = 88;
|
||||
pub const _SC_SEM_NSEMS_MAX : ::c_int = 89;
|
||||
pub const _SC_CPUTIME : ::c_int = 90;
|
||||
pub const _SC_THREAD_CPUTIME : ::c_int = 91;
|
||||
pub const _SC_DELAYTIMER_MAX : ::c_int = 92;
|
||||
// These two variables will be supported in NetBSD 8.0
|
||||
// pub const _SC_SIGQUEUE_MAX : ::c_int = 93;
|
||||
// pub const _SC_REALTIME_SIGNALS : ::c_int = 94;
|
||||
pub const _SC_PHYS_PAGES : ::c_int = 121;
|
||||
pub const _SC_NPROCESSORS_CONF : ::c_int = 1001;
|
||||
pub const _SC_NPROCESSORS_ONLN : ::c_int = 1002;
|
||||
pub const _SC_SCHED_RT_TS : ::c_int = 2001;
|
||||
pub const _SC_SCHED_PRI_MIN : ::c_int = 2002;
|
||||
pub const _SC_SCHED_PRI_MAX : ::c_int = 2003;
|
||||
|
||||
pub const FD_SETSIZE: usize = 0x100;
|
||||
|
||||
|
@ -236,58 +236,128 @@ pub const RUSAGE_THREAD: ::c_int = 1;
|
||||
pub const MAP_COPY : ::c_int = 0x0002;
|
||||
pub const MAP_NOEXTEND : ::c_int = 0x0000;
|
||||
|
||||
pub const _PC_LINK_MAX : ::c_int = 1;
|
||||
pub const _PC_MAX_CANON : ::c_int = 2;
|
||||
pub const _PC_MAX_INPUT : ::c_int = 3;
|
||||
pub const _PC_NAME_MAX : ::c_int = 4;
|
||||
pub const _PC_PATH_MAX : ::c_int = 5;
|
||||
pub const _PC_PIPE_BUF : ::c_int = 6;
|
||||
pub const _PC_CHOWN_RESTRICTED : ::c_int = 7;
|
||||
pub const _PC_NO_TRUNC : ::c_int = 8;
|
||||
pub const _PC_VDISABLE : ::c_int = 9;
|
||||
pub const _PC_2_SYMLINKS : ::c_int = 10;
|
||||
pub const _PC_ALLOC_SIZE_MIN : ::c_int = 11;
|
||||
pub const _PC_ASYNC_IO : ::c_int = 12;
|
||||
pub const _PC_FILESIZEBITS : ::c_int = 13;
|
||||
pub const _PC_PRIO_IO : ::c_int = 14;
|
||||
pub const _PC_REC_INCR_XFER_SIZE : ::c_int = 15;
|
||||
pub const _PC_REC_MAX_XFER_SIZE : ::c_int = 16;
|
||||
pub const _PC_REC_MIN_XFER_SIZE : ::c_int = 17;
|
||||
pub const _PC_REC_XFER_ALIGN : ::c_int = 18;
|
||||
pub const _PC_SYMLINK_MAX : ::c_int = 19;
|
||||
pub const _PC_SYNC_IO : ::c_int = 20;
|
||||
pub const _PC_TIMESTAMP_RESOLUTION : ::c_int = 21;
|
||||
|
||||
pub const _SC_CLK_TCK : ::c_int = 3;
|
||||
pub const _SC_IOV_MAX : ::c_int = 51;
|
||||
pub const _SC_GETGR_R_SIZE_MAX : ::c_int = 100;
|
||||
pub const _SC_GETPW_R_SIZE_MAX : ::c_int = 101;
|
||||
pub const _SC_LOGIN_NAME_MAX : ::c_int = 102;
|
||||
pub const _SC_MQ_PRIO_MAX : ::c_int = 59;
|
||||
pub const _SC_NPROCESSORS_ONLN : ::c_int = 503;
|
||||
pub const _SC_THREADS : ::c_int = 91;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR : ::c_int = 77;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE : ::c_int = 78;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : ::c_int = 80;
|
||||
pub const _SC_THREAD_KEYS_MAX : ::c_int = 81;
|
||||
pub const _SC_THREAD_PRIO_INHERIT : ::c_int = 82;
|
||||
pub const _SC_THREAD_PRIO_PROTECT : ::c_int = 83;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING : ::c_int = 84;
|
||||
pub const _SC_THREAD_PROCESS_SHARED : ::c_int = 85;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS : ::c_int = 103;
|
||||
pub const _SC_THREAD_STACK_MIN : ::c_int = 89;
|
||||
pub const _SC_THREAD_THREADS_MAX : ::c_int = 90;
|
||||
pub const _SC_TTY_NAME_MAX : ::c_int = 107;
|
||||
pub const _SC_ATEXIT_MAX : ::c_int = 46;
|
||||
pub const _SC_SEM_NSEMS_MAX : ::c_int = 31;
|
||||
pub const _SC_SEM_VALUE_MAX : ::c_int = 32;
|
||||
pub const _SC_HOST_NAME_MAX : ::c_int = 33;
|
||||
pub const _SC_MONOTONIC_CLOCK : ::c_int = 34;
|
||||
pub const _SC_2_PBS : ::c_int = 35;
|
||||
pub const _SC_2_PBS_ACCOUNTING : ::c_int = 36;
|
||||
pub const _SC_2_PBS_CHECKPOINT : ::c_int = 37;
|
||||
pub const _SC_2_PBS_LOCATE : ::c_int = 38;
|
||||
pub const _SC_2_PBS_MESSAGE : ::c_int = 39;
|
||||
pub const _SC_2_PBS_TRACK : ::c_int = 40;
|
||||
pub const _SC_ADVISORY_INFO : ::c_int = 41;
|
||||
pub const _SC_AIO_LISTIO_MAX : ::c_int = 42;
|
||||
pub const _SC_AIO_MAX : ::c_int = 43;
|
||||
pub const _SC_AIO_PRIO_DELTA_MAX : ::c_int = 44;
|
||||
pub const _SC_ASYNCHRONOUS_IO : ::c_int = 45;
|
||||
pub const _SC_ATEXIT_MAX : ::c_int = 46;
|
||||
pub const _SC_BARRIERS : ::c_int = 47;
|
||||
pub const _SC_CLOCK_SELECTION : ::c_int = 48;
|
||||
pub const _SC_CPUTIME : ::c_int = 49;
|
||||
pub const _SC_DELAYTIMER_MAX : ::c_int = 50;
|
||||
pub const _SC_IOV_MAX : ::c_int = 51;
|
||||
pub const _SC_IPV6 : ::c_int = 52;
|
||||
pub const _SC_MAPPED_FILES : ::c_int = 53;
|
||||
pub const _SC_MEMLOCK : ::c_int = 54;
|
||||
pub const _SC_MEMLOCK_RANGE : ::c_int = 55;
|
||||
pub const _SC_MEMORY_PROTECTION : ::c_int = 56;
|
||||
pub const _SC_MESSAGE_PASSING : ::c_int = 57;
|
||||
pub const _SC_MQ_OPEN_MAX : ::c_int = 58;
|
||||
pub const _SC_MQ_PRIO_MAX : ::c_int = 59;
|
||||
pub const _SC_PRIORITIZED_IO : ::c_int = 60;
|
||||
pub const _SC_PRIORITY_SCHEDULING : ::c_int = 61;
|
||||
pub const _SC_RAW_SOCKETS : ::c_int = 62;
|
||||
pub const _SC_READER_WRITER_LOCKS : ::c_int = 63;
|
||||
pub const _SC_REALTIME_SIGNALS : ::c_int = 64;
|
||||
pub const _SC_REGEXP : ::c_int = 65;
|
||||
pub const _SC_RTSIG_MAX : ::c_int = 66;
|
||||
pub const _SC_SEMAPHORES : ::c_int = 67;
|
||||
pub const _SC_SHARED_MEMORY_OBJECTS : ::c_int = 68;
|
||||
pub const _SC_SHELL : ::c_int = 69;
|
||||
pub const _SC_SIGQUEUE_MAX : ::c_int = 70;
|
||||
pub const _SC_SPAWN : ::c_int = 71;
|
||||
pub const _SC_SPIN_LOCKS : ::c_int = 72;
|
||||
pub const _SC_SPORADIC_SERVER : ::c_int = 73;
|
||||
pub const _SC_SS_REPL_MAX : ::c_int = 74;
|
||||
pub const _SC_SYNCHRONIZED_IO : ::c_int = 75;
|
||||
pub const _SC_SYMLOOP_MAX : ::c_int = 76;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR : ::c_int = 77;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE : ::c_int = 78;
|
||||
pub const _SC_THREAD_CPUTIME : ::c_int = 79;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : ::c_int = 80;
|
||||
pub const _SC_THREAD_KEYS_MAX : ::c_int = 81;
|
||||
pub const _SC_THREAD_PRIO_INHERIT : ::c_int = 82;
|
||||
pub const _SC_THREAD_PRIO_PROTECT : ::c_int = 83;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING : ::c_int = 84;
|
||||
pub const _SC_THREAD_PROCESS_SHARED : ::c_int = 85;
|
||||
pub const _SC_THREAD_ROBUST_PRIO_INHERIT : ::c_int = 86;
|
||||
pub const _SC_THREAD_ROBUST_PRIO_PROTECT : ::c_int = 87;
|
||||
pub const _SC_THREAD_SPORADIC_SERVER : ::c_int = 88;
|
||||
pub const _SC_THREAD_STACK_MIN : ::c_int = 89;
|
||||
pub const _SC_THREAD_THREADS_MAX : ::c_int = 90;
|
||||
pub const _SC_THREADS : ::c_int = 91;
|
||||
pub const _SC_TIMEOUTS : ::c_int = 92;
|
||||
pub const _SC_TIMER_MAX : ::c_int = 93;
|
||||
pub const _SC_TIMERS : ::c_int = 94;
|
||||
pub const _SC_TRACE : ::c_int = 95;
|
||||
pub const _SC_TRACE_EVENT_FILTER : ::c_int = 96;
|
||||
pub const _SC_TRACE_EVENT_NAME_MAX : ::c_int = 97;
|
||||
pub const _SC_TRACE_INHERIT : ::c_int = 98;
|
||||
pub const _SC_TRACE_LOG : ::c_int = 99;
|
||||
pub const _SC_GETGR_R_SIZE_MAX : ::c_int = 100;
|
||||
pub const _SC_GETPW_R_SIZE_MAX : ::c_int = 101;
|
||||
pub const _SC_LOGIN_NAME_MAX : ::c_int = 102;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS : ::c_int = 103;
|
||||
pub const _SC_TRACE_NAME_MAX : ::c_int = 104;
|
||||
pub const _SC_TRACE_SYS_MAX : ::c_int = 105;
|
||||
pub const _SC_TRACE_USER_EVENT_MAX : ::c_int = 106;
|
||||
pub const _SC_TTY_NAME_MAX : ::c_int = 107;
|
||||
pub const _SC_TYPED_MEMORY_OBJECTS : ::c_int = 108;
|
||||
pub const _SC_V6_ILP32_OFF32 : ::c_int = 109;
|
||||
pub const _SC_V6_ILP32_OFFBIG : ::c_int = 110;
|
||||
pub const _SC_V6_LP64_OFF64 : ::c_int = 111;
|
||||
pub const _SC_V6_LPBIG_OFFBIG : ::c_int = 112;
|
||||
pub const _SC_V7_ILP32_OFF32 : ::c_int = 113;
|
||||
pub const _SC_V7_ILP32_OFFBIG : ::c_int = 114;
|
||||
pub const _SC_V7_LP64_OFF64 : ::c_int = 115;
|
||||
pub const _SC_V7_LPBIG_OFFBIG : ::c_int = 116;
|
||||
pub const _SC_XOPEN_CRYPT : ::c_int = 117;
|
||||
pub const _SC_XOPEN_ENH_I18N : ::c_int = 118;
|
||||
pub const _SC_XOPEN_LEGACY : ::c_int = 119;
|
||||
pub const _SC_XOPEN_REALTIME : ::c_int = 120;
|
||||
pub const _SC_XOPEN_REALTIME_THREADS : ::c_int = 121;
|
||||
pub const _SC_XOPEN_STREAMS : ::c_int = 122;
|
||||
pub const _SC_XOPEN_UNIX : ::c_int = 123;
|
||||
pub const _SC_XOPEN_UUCP : ::c_int = 124;
|
||||
pub const _SC_XOPEN_VERSION : ::c_int = 125;
|
||||
pub const _SC_SEM_NSEMS_MAX : ::c_int = 31;
|
||||
pub const _SC_SEM_VALUE_MAX : ::c_int = 32;
|
||||
pub const _SC_AIO_PRIO_DELTA_MAX : ::c_int = 44;
|
||||
pub const _SC_DELAYTIMER_MAX : ::c_int = 50;
|
||||
pub const _SC_PRIORITIZED_IO : ::c_int = 60;
|
||||
pub const _SC_REALTIME_SIGNALS : ::c_int = 64;
|
||||
pub const _SC_RTSIG_MAX : ::c_int = 66;
|
||||
pub const _SC_SIGQUEUE_MAX : ::c_int = 70;
|
||||
pub const _SC_TIMER_MAX : ::c_int = 93;
|
||||
pub const _SC_HOST_NAME_MAX : ::c_int = 33;
|
||||
pub const _SC_PHYS_PAGES : ::c_int = 500;
|
||||
pub const _SC_AVPHYS_PAGES : ::c_int = 501;
|
||||
pub const _SC_NPROCESSORS_CONF : ::c_int = 502;
|
||||
pub const _SC_NPROCESSORS_ONLN : ::c_int = 503;
|
||||
|
||||
pub const FD_SETSIZE: usize = 1024;
|
||||
|
||||
|
@ -191,9 +191,19 @@ pub const _PC_MAX_INPUT: ::c_int = 3;
|
||||
pub const _PC_NAME_MAX: ::c_int = 4;
|
||||
pub const _PC_PATH_MAX: ::c_int = 5;
|
||||
pub const _PC_PIPE_BUF: ::c_int = 6;
|
||||
pub const _PC_2_SYMLINKS: ::c_int = 7;
|
||||
pub const _PC_ALLOC_SIZE_MIN: ::c_int = 8;
|
||||
pub const _PC_REC_INCR_XFER_SIZE: ::c_int = 9;
|
||||
pub const _PC_REC_MAX_XFER_SIZE: ::c_int = 10;
|
||||
pub const _PC_REC_MIN_XFER_SIZE: ::c_int = 11;
|
||||
pub const _PC_REC_XFER_ALIGN: ::c_int = 12;
|
||||
pub const _PC_SYMLINK_MAX: ::c_int = 13;
|
||||
pub const _PC_CHOWN_RESTRICTED: ::c_int = 14;
|
||||
pub const _PC_NO_TRUNC: ::c_int = 15;
|
||||
pub const _PC_VDISABLE: ::c_int = 16;
|
||||
pub const _PC_ASYNC_IO: ::c_int = 17;
|
||||
pub const _PC_PRIO_IO: ::c_int = 18;
|
||||
pub const _PC_SYNC_IO: ::c_int = 19;
|
||||
|
||||
pub const FIONBIO: ::c_int = 0x5421;
|
||||
|
||||
@ -209,6 +219,7 @@ pub const _SC_EXPR_NEST_MAX: ::c_int = 8;
|
||||
pub const _SC_LINE_MAX: ::c_int = 9;
|
||||
pub const _SC_NGROUPS_MAX: ::c_int = 10;
|
||||
pub const _SC_OPEN_MAX: ::c_int = 11;
|
||||
pub const _SC_PASS_MAX: ::c_int = 12;
|
||||
pub const _SC_2_C_BIND: ::c_int = 13;
|
||||
pub const _SC_2_C_DEV: ::c_int = 14;
|
||||
pub const _SC_2_C_VERSION: ::c_int = 15;
|
||||
@ -238,7 +249,35 @@ pub const _SC_IOV_MAX: ::c_int = 38;
|
||||
pub const _SC_PAGESIZE: ::c_int = 39;
|
||||
pub const _SC_PAGE_SIZE: ::c_int = 40;
|
||||
pub const _SC_XOPEN_UNIX: ::c_int = 41;
|
||||
pub const _SC_XBS5_ILP32_OFF32: ::c_int = 42;
|
||||
pub const _SC_XBS5_ILP32_OFFBIG: ::c_int = 43;
|
||||
pub const _SC_XBS5_LP64_OFF64: ::c_int = 44;
|
||||
pub const _SC_XBS5_LPBIG_OFFBIG: ::c_int = 45;
|
||||
pub const _SC_AIO_LISTIO_MAX: ::c_int = 46;
|
||||
pub const _SC_AIO_MAX: ::c_int = 47;
|
||||
pub const _SC_AIO_PRIO_DELTA_MAX: ::c_int = 48;
|
||||
pub const _SC_DELAYTIMER_MAX: ::c_int = 49;
|
||||
pub const _SC_MQ_OPEN_MAX: ::c_int = 50;
|
||||
pub const _SC_MQ_PRIO_MAX: ::c_int = 51;
|
||||
pub const _SC_RTSIG_MAX: ::c_int = 52;
|
||||
pub const _SC_SEM_NSEMS_MAX: ::c_int = 53;
|
||||
pub const _SC_SEM_VALUE_MAX: ::c_int = 54;
|
||||
pub const _SC_SIGQUEUE_MAX: ::c_int = 55;
|
||||
pub const _SC_TIMER_MAX: ::c_int = 56;
|
||||
pub const _SC_ASYNCHRONOUS_IO: ::c_int = 57;
|
||||
pub const _SC_FSYNC: ::c_int = 58;
|
||||
pub const _SC_MAPPED_FILES: ::c_int = 59;
|
||||
pub const _SC_MEMLOCK: ::c_int = 60;
|
||||
pub const _SC_MEMLOCK_RANGE: ::c_int = 61;
|
||||
pub const _SC_MEMORY_PROTECTION: ::c_int = 62;
|
||||
pub const _SC_MESSAGE_PASSING: ::c_int = 63;
|
||||
pub const _SC_PRIORITIZED_IO: ::c_int = 64;
|
||||
pub const _SC_PRIORITY_SCHEDULING: ::c_int = 65;
|
||||
pub const _SC_REALTIME_SIGNALS: ::c_int = 66;
|
||||
pub const _SC_SEMAPHORES: ::c_int = 67;
|
||||
pub const _SC_SHARED_MEMORY_OBJECTS: ::c_int = 68;
|
||||
pub const _SC_SYNCHRONIZED_IO: ::c_int = 69;
|
||||
pub const _SC_TIMERS: ::c_int = 70;
|
||||
pub const _SC_GETGR_R_SIZE_MAX: ::c_int = 71;
|
||||
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 72;
|
||||
pub const _SC_LOGIN_NAME_MAX: ::c_int = 73;
|
||||
@ -256,6 +295,9 @@ pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 84;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 85;
|
||||
pub const _SC_NPROCESSORS_CONF: ::c_int = 96;
|
||||
pub const _SC_NPROCESSORS_ONLN: ::c_int = 97;
|
||||
pub const _SC_PHYS_PAGES: ::c_int = 98;
|
||||
pub const _SC_AVPHYS_PAGES: ::c_int = 99;
|
||||
pub const _SC_MONOTONIC_CLOCK: ::c_int = 100;
|
||||
|
||||
pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;
|
||||
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 1;
|
||||
|
@ -67,7 +67,81 @@ pub const FOPEN_MAX: ::c_uint = 16;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
pub const _SC_EQUIV_CLASS_MAX: ::c_int = 41;
|
||||
pub const _SC_CHARCLASS_NAME_MAX: ::c_int = 45;
|
||||
pub const _SC_PII: ::c_int = 53;
|
||||
pub const _SC_PII_XTI: ::c_int = 54;
|
||||
pub const _SC_PII_SOCKET: ::c_int = 55;
|
||||
pub const _SC_PII_INTERNET: ::c_int = 56;
|
||||
pub const _SC_PII_OSI: ::c_int = 57;
|
||||
pub const _SC_POLL: ::c_int = 58;
|
||||
pub const _SC_SELECT: ::c_int = 59;
|
||||
pub const _SC_PII_INTERNET_STREAM: ::c_int = 61;
|
||||
pub const _SC_PII_INTERNET_DGRAM: ::c_int = 62;
|
||||
pub const _SC_PII_OSI_COTS: ::c_int = 63;
|
||||
pub const _SC_PII_OSI_CLTS: ::c_int = 64;
|
||||
pub const _SC_PII_OSI_M: ::c_int = 65;
|
||||
pub const _SC_T_IOV_MAX: ::c_int = 66;
|
||||
pub const _SC_2_C_VERSION: ::c_int = 96;
|
||||
pub const _SC_CHAR_BIT: ::c_int = 101;
|
||||
pub const _SC_CHAR_MAX: ::c_int = 102;
|
||||
pub const _SC_CHAR_MIN: ::c_int = 103;
|
||||
pub const _SC_INT_MAX: ::c_int = 104;
|
||||
pub const _SC_INT_MIN: ::c_int = 105;
|
||||
pub const _SC_LONG_BIT: ::c_int = 106;
|
||||
pub const _SC_WORD_BIT: ::c_int = 107;
|
||||
pub const _SC_MB_LEN_MAX: ::c_int = 108;
|
||||
pub const _SC_SSIZE_MAX: ::c_int = 110;
|
||||
pub const _SC_SCHAR_MAX: ::c_int = 111;
|
||||
pub const _SC_SCHAR_MIN: ::c_int = 112;
|
||||
pub const _SC_SHRT_MAX: ::c_int = 113;
|
||||
pub const _SC_SHRT_MIN: ::c_int = 114;
|
||||
pub const _SC_UCHAR_MAX: ::c_int = 115;
|
||||
pub const _SC_UINT_MAX: ::c_int = 116;
|
||||
pub const _SC_ULONG_MAX: ::c_int = 117;
|
||||
pub const _SC_USHRT_MAX: ::c_int = 118;
|
||||
pub const _SC_NL_ARGMAX: ::c_int = 119;
|
||||
pub const _SC_NL_LANGMAX: ::c_int = 120;
|
||||
pub const _SC_NL_MSGMAX: ::c_int = 121;
|
||||
pub const _SC_NL_NMAX: ::c_int = 122;
|
||||
pub const _SC_NL_SETMAX: ::c_int = 123;
|
||||
pub const _SC_NL_TEXTMAX: ::c_int = 124;
|
||||
pub const _SC_BASE: ::c_int = 134;
|
||||
pub const _SC_C_LANG_SUPPORT: ::c_int = 135;
|
||||
pub const _SC_C_LANG_SUPPORT_R: ::c_int = 136;
|
||||
pub const _SC_DEVICE_IO: ::c_int = 140;
|
||||
pub const _SC_DEVICE_SPECIFIC: ::c_int = 141;
|
||||
pub const _SC_DEVICE_SPECIFIC_R: ::c_int = 142;
|
||||
pub const _SC_FD_MGMT: ::c_int = 143;
|
||||
pub const _SC_FIFO: ::c_int = 144;
|
||||
pub const _SC_PIPE: ::c_int = 145;
|
||||
pub const _SC_FILE_ATTRIBUTES: ::c_int = 146;
|
||||
pub const _SC_FILE_LOCKING: ::c_int = 147;
|
||||
pub const _SC_FILE_SYSTEM: ::c_int = 148;
|
||||
pub const _SC_MULTI_PROCESS: ::c_int = 150;
|
||||
pub const _SC_SINGLE_PROCESS: ::c_int = 151;
|
||||
pub const _SC_NETWORKING: ::c_int = 152;
|
||||
pub const _SC_REGEX_VERSION: ::c_int = 156;
|
||||
pub const _SC_SIGNALS: ::c_int = 158;
|
||||
pub const _SC_SYSTEM_DATABASE: ::c_int = 162;
|
||||
pub const _SC_SYSTEM_DATABASE_R: ::c_int = 163;
|
||||
pub const _SC_USER_GROUPS: ::c_int = 166;
|
||||
pub const _SC_USER_GROUPS_R: ::c_int = 167;
|
||||
pub const _SC_LEVEL1_ICACHE_SIZE: ::c_int = 185;
|
||||
pub const _SC_LEVEL1_ICACHE_ASSOC: ::c_int = 186;
|
||||
pub const _SC_LEVEL1_ICACHE_LINESIZE: ::c_int = 187;
|
||||
pub const _SC_LEVEL1_DCACHE_SIZE: ::c_int = 188;
|
||||
pub const _SC_LEVEL1_DCACHE_ASSOC: ::c_int = 189;
|
||||
pub const _SC_LEVEL1_DCACHE_LINESIZE: ::c_int = 190;
|
||||
pub const _SC_LEVEL2_CACHE_SIZE: ::c_int = 191;
|
||||
pub const _SC_LEVEL2_CACHE_ASSOC: ::c_int = 192;
|
||||
pub const _SC_LEVEL2_CACHE_LINESIZE: ::c_int = 193;
|
||||
pub const _SC_LEVEL3_CACHE_SIZE: ::c_int = 194;
|
||||
pub const _SC_LEVEL3_CACHE_ASSOC: ::c_int = 195;
|
||||
pub const _SC_LEVEL3_CACHE_LINESIZE: ::c_int = 196;
|
||||
pub const _SC_LEVEL4_CACHE_SIZE: ::c_int = 197;
|
||||
pub const _SC_LEVEL4_CACHE_ASSOC: ::c_int = 198;
|
||||
pub const _SC_LEVEL4_CACHE_LINESIZE: ::c_int = 199;
|
||||
pub const O_ACCMODE: ::c_int = 3;
|
||||
pub const O_DIRECT: ::c_int = 0x8000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x10000;
|
||||
|
@ -428,6 +428,18 @@ pub const _PC_PIPE_BUF: ::c_int = 5;
|
||||
pub const _PC_CHOWN_RESTRICTED: ::c_int = 6;
|
||||
pub const _PC_NO_TRUNC: ::c_int = 7;
|
||||
pub const _PC_VDISABLE: ::c_int = 8;
|
||||
pub const _PC_SYNC_IO: ::c_int = 9;
|
||||
pub const _PC_ASYNC_IO: ::c_int = 10;
|
||||
pub const _PC_PRIO_IO: ::c_int = 11;
|
||||
pub const _PC_SOCK_MAXBUF: ::c_int = 12;
|
||||
pub const _PC_FILESIZEBITS: ::c_int = 13;
|
||||
pub const _PC_REC_INCR_XFER_SIZE: ::c_int = 14;
|
||||
pub const _PC_REC_MAX_XFER_SIZE: ::c_int = 15;
|
||||
pub const _PC_REC_MIN_XFER_SIZE: ::c_int = 16;
|
||||
pub const _PC_REC_XFER_ALIGN: ::c_int = 17;
|
||||
pub const _PC_ALLOC_SIZE_MIN: ::c_int = 18;
|
||||
pub const _PC_SYMLINK_MAX: ::c_int = 19;
|
||||
pub const _PC_2_SYMLINKS: ::c_int = 20;
|
||||
|
||||
pub const _SC_ARG_MAX: ::c_int = 0;
|
||||
pub const _SC_CHILD_MAX: ::c_int = 1;
|
||||
@ -481,6 +493,7 @@ pub const _SC_2_FORT_DEV: ::c_int = 49;
|
||||
pub const _SC_2_FORT_RUN: ::c_int = 50;
|
||||
pub const _SC_2_SW_DEV: ::c_int = 51;
|
||||
pub const _SC_2_LOCALEDEF: ::c_int = 52;
|
||||
pub const _SC_UIO_MAXIOV: ::c_int = 60;
|
||||
pub const _SC_IOV_MAX: ::c_int = 60;
|
||||
pub const _SC_THREADS: ::c_int = 67;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 68;
|
||||
@ -497,9 +510,13 @@ pub const _SC_THREAD_ATTR_STACKSIZE: ::c_int = 78;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 79;
|
||||
pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 80;
|
||||
pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 81;
|
||||
pub const _SC_THREAD_PROCESS_SHARED: ::c_int = 82;
|
||||
pub const _SC_NPROCESSORS_CONF: ::c_int = 83;
|
||||
pub const _SC_NPROCESSORS_ONLN: ::c_int = 84;
|
||||
pub const _SC_PHYS_PAGES: ::c_int = 85;
|
||||
pub const _SC_AVPHYS_PAGES: ::c_int = 86;
|
||||
pub const _SC_ATEXIT_MAX: ::c_int = 87;
|
||||
pub const _SC_PASS_MAX: ::c_int = 88;
|
||||
pub const _SC_XOPEN_VERSION: ::c_int = 89;
|
||||
pub const _SC_XOPEN_XCU_VERSION: ::c_int = 90;
|
||||
pub const _SC_XOPEN_UNIX: ::c_int = 91;
|
||||
@ -508,13 +525,63 @@ pub const _SC_XOPEN_ENH_I18N: ::c_int = 93;
|
||||
pub const _SC_XOPEN_SHM: ::c_int = 94;
|
||||
pub const _SC_2_CHAR_TERM: ::c_int = 95;
|
||||
pub const _SC_2_UPE: ::c_int = 97;
|
||||
pub const _SC_XOPEN_XPG2: ::c_int = 98;
|
||||
pub const _SC_XOPEN_XPG3: ::c_int = 99;
|
||||
pub const _SC_XOPEN_XPG4: ::c_int = 100;
|
||||
pub const _SC_NZERO: ::c_int = 109;
|
||||
pub const _SC_XBS5_ILP32_OFF32: ::c_int = 125;
|
||||
pub const _SC_XBS5_ILP32_OFFBIG: ::c_int = 126;
|
||||
pub const _SC_XBS5_LP64_OFF64: ::c_int = 127;
|
||||
pub const _SC_XBS5_LPBIG_OFFBIG: ::c_int = 128;
|
||||
pub const _SC_XOPEN_LEGACY: ::c_int = 129;
|
||||
pub const _SC_XOPEN_REALTIME: ::c_int = 130;
|
||||
pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 131;
|
||||
pub const _SC_ADVISORY_INFO: ::c_int = 132;
|
||||
pub const _SC_BARRIERS: ::c_int = 133;
|
||||
pub const _SC_CLOCK_SELECTION: ::c_int = 137;
|
||||
pub const _SC_CPUTIME: ::c_int = 138;
|
||||
pub const _SC_THREAD_CPUTIME: ::c_int = 139;
|
||||
pub const _SC_MONOTONIC_CLOCK: ::c_int = 149;
|
||||
pub const _SC_READER_WRITER_LOCKS: ::c_int = 153;
|
||||
pub const _SC_SPIN_LOCKS: ::c_int = 154;
|
||||
pub const _SC_REGEXP: ::c_int = 155;
|
||||
pub const _SC_SHELL: ::c_int = 157;
|
||||
pub const _SC_SPAWN: ::c_int = 159;
|
||||
pub const _SC_SPORADIC_SERVER: ::c_int = 160;
|
||||
pub const _SC_THREAD_SPORADIC_SERVER: ::c_int = 161;
|
||||
pub const _SC_TIMEOUTS: ::c_int = 164;
|
||||
pub const _SC_TYPED_MEMORY_OBJECTS: ::c_int = 165;
|
||||
pub const _SC_2_PBS: ::c_int = 168;
|
||||
pub const _SC_2_PBS_ACCOUNTING: ::c_int = 169;
|
||||
pub const _SC_2_PBS_LOCATE: ::c_int = 170;
|
||||
pub const _SC_2_PBS_MESSAGE: ::c_int = 171;
|
||||
pub const _SC_2_PBS_TRACK: ::c_int = 172;
|
||||
pub const _SC_SYMLOOP_MAX: ::c_int = 173;
|
||||
pub const _SC_STREAMS: ::c_int = 174;
|
||||
pub const _SC_2_PBS_CHECKPOINT: ::c_int = 175;
|
||||
pub const _SC_V6_ILP32_OFF32: ::c_int = 176;
|
||||
pub const _SC_V6_ILP32_OFFBIG: ::c_int = 177;
|
||||
pub const _SC_V6_LP64_OFF64: ::c_int = 178;
|
||||
pub const _SC_V6_LPBIG_OFFBIG: ::c_int = 179;
|
||||
pub const _SC_HOST_NAME_MAX: ::c_int = 180;
|
||||
pub const _SC_TRACE: ::c_int = 181;
|
||||
pub const _SC_TRACE_EVENT_FILTER: ::c_int = 182;
|
||||
pub const _SC_TRACE_INHERIT: ::c_int = 183;
|
||||
pub const _SC_TRACE_LOG: ::c_int = 184;
|
||||
pub const _SC_IPV6: ::c_int = 235;
|
||||
pub const _SC_RAW_SOCKETS: ::c_int = 236;
|
||||
pub const _SC_V7_ILP32_OFF32: ::c_int = 237;
|
||||
pub const _SC_V7_ILP32_OFFBIG: ::c_int = 238;
|
||||
pub const _SC_V7_LP64_OFF64: ::c_int = 239;
|
||||
pub const _SC_V7_LPBIG_OFFBIG: ::c_int = 240;
|
||||
pub const _SC_SS_REPL_MAX: ::c_int = 241;
|
||||
pub const _SC_TRACE_EVENT_NAME_MAX: ::c_int = 242;
|
||||
pub const _SC_TRACE_NAME_MAX: ::c_int = 243;
|
||||
pub const _SC_TRACE_SYS_MAX: ::c_int = 244;
|
||||
pub const _SC_TRACE_USER_EVENT_MAX: ::c_int = 245;
|
||||
pub const _SC_XOPEN_STREAMS: ::c_int = 246;
|
||||
pub const _SC_THREAD_ROBUST_PRIO_INHERIT: ::c_int = 247;
|
||||
pub const _SC_THREAD_ROBUST_PRIO_PROTECT: ::c_int = 248;
|
||||
|
||||
pub const RLIM_SAVED_MAX: ::rlim_t = RLIM_INFINITY;
|
||||
pub const RLIM_SAVED_CUR: ::rlim_t = RLIM_INFINITY;
|
||||
|
@ -281,7 +281,81 @@ pub const FOPEN_MAX: ::c_uint = 16;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
pub const _SC_EQUIV_CLASS_MAX: ::c_int = 41;
|
||||
pub const _SC_CHARCLASS_NAME_MAX: ::c_int = 45;
|
||||
pub const _SC_PII: ::c_int = 53;
|
||||
pub const _SC_PII_XTI: ::c_int = 54;
|
||||
pub const _SC_PII_SOCKET: ::c_int = 55;
|
||||
pub const _SC_PII_INTERNET: ::c_int = 56;
|
||||
pub const _SC_PII_OSI: ::c_int = 57;
|
||||
pub const _SC_POLL: ::c_int = 58;
|
||||
pub const _SC_SELECT: ::c_int = 59;
|
||||
pub const _SC_PII_INTERNET_STREAM: ::c_int = 61;
|
||||
pub const _SC_PII_INTERNET_DGRAM: ::c_int = 62;
|
||||
pub const _SC_PII_OSI_COTS: ::c_int = 63;
|
||||
pub const _SC_PII_OSI_CLTS: ::c_int = 64;
|
||||
pub const _SC_PII_OSI_M: ::c_int = 65;
|
||||
pub const _SC_T_IOV_MAX: ::c_int = 66;
|
||||
pub const _SC_2_C_VERSION: ::c_int = 96;
|
||||
pub const _SC_CHAR_BIT: ::c_int = 101;
|
||||
pub const _SC_CHAR_MAX: ::c_int = 102;
|
||||
pub const _SC_CHAR_MIN: ::c_int = 103;
|
||||
pub const _SC_INT_MAX: ::c_int = 104;
|
||||
pub const _SC_INT_MIN: ::c_int = 105;
|
||||
pub const _SC_LONG_BIT: ::c_int = 106;
|
||||
pub const _SC_WORD_BIT: ::c_int = 107;
|
||||
pub const _SC_MB_LEN_MAX: ::c_int = 108;
|
||||
pub const _SC_SSIZE_MAX: ::c_int = 110;
|
||||
pub const _SC_SCHAR_MAX: ::c_int = 111;
|
||||
pub const _SC_SCHAR_MIN: ::c_int = 112;
|
||||
pub const _SC_SHRT_MAX: ::c_int = 113;
|
||||
pub const _SC_SHRT_MIN: ::c_int = 114;
|
||||
pub const _SC_UCHAR_MAX: ::c_int = 115;
|
||||
pub const _SC_UINT_MAX: ::c_int = 116;
|
||||
pub const _SC_ULONG_MAX: ::c_int = 117;
|
||||
pub const _SC_USHRT_MAX: ::c_int = 118;
|
||||
pub const _SC_NL_ARGMAX: ::c_int = 119;
|
||||
pub const _SC_NL_LANGMAX: ::c_int = 120;
|
||||
pub const _SC_NL_MSGMAX: ::c_int = 121;
|
||||
pub const _SC_NL_NMAX: ::c_int = 122;
|
||||
pub const _SC_NL_SETMAX: ::c_int = 123;
|
||||
pub const _SC_NL_TEXTMAX: ::c_int = 124;
|
||||
pub const _SC_BASE: ::c_int = 134;
|
||||
pub const _SC_C_LANG_SUPPORT: ::c_int = 135;
|
||||
pub const _SC_C_LANG_SUPPORT_R: ::c_int = 136;
|
||||
pub const _SC_DEVICE_IO: ::c_int = 140;
|
||||
pub const _SC_DEVICE_SPECIFIC: ::c_int = 141;
|
||||
pub const _SC_DEVICE_SPECIFIC_R: ::c_int = 142;
|
||||
pub const _SC_FD_MGMT: ::c_int = 143;
|
||||
pub const _SC_FIFO: ::c_int = 144;
|
||||
pub const _SC_PIPE: ::c_int = 145;
|
||||
pub const _SC_FILE_ATTRIBUTES: ::c_int = 146;
|
||||
pub const _SC_FILE_LOCKING: ::c_int = 147;
|
||||
pub const _SC_FILE_SYSTEM: ::c_int = 148;
|
||||
pub const _SC_MULTI_PROCESS: ::c_int = 150;
|
||||
pub const _SC_SINGLE_PROCESS: ::c_int = 151;
|
||||
pub const _SC_NETWORKING: ::c_int = 152;
|
||||
pub const _SC_REGEX_VERSION: ::c_int = 156;
|
||||
pub const _SC_SIGNALS: ::c_int = 158;
|
||||
pub const _SC_SYSTEM_DATABASE: ::c_int = 162;
|
||||
pub const _SC_SYSTEM_DATABASE_R: ::c_int = 163;
|
||||
pub const _SC_USER_GROUPS: ::c_int = 166;
|
||||
pub const _SC_USER_GROUPS_R: ::c_int = 167;
|
||||
pub const _SC_LEVEL1_ICACHE_SIZE: ::c_int = 185;
|
||||
pub const _SC_LEVEL1_ICACHE_ASSOC: ::c_int = 186;
|
||||
pub const _SC_LEVEL1_ICACHE_LINESIZE: ::c_int = 187;
|
||||
pub const _SC_LEVEL1_DCACHE_SIZE: ::c_int = 188;
|
||||
pub const _SC_LEVEL1_DCACHE_ASSOC: ::c_int = 189;
|
||||
pub const _SC_LEVEL1_DCACHE_LINESIZE: ::c_int = 190;
|
||||
pub const _SC_LEVEL2_CACHE_SIZE: ::c_int = 191;
|
||||
pub const _SC_LEVEL2_CACHE_ASSOC: ::c_int = 192;
|
||||
pub const _SC_LEVEL2_CACHE_LINESIZE: ::c_int = 193;
|
||||
pub const _SC_LEVEL3_CACHE_SIZE: ::c_int = 194;
|
||||
pub const _SC_LEVEL3_CACHE_ASSOC: ::c_int = 195;
|
||||
pub const _SC_LEVEL3_CACHE_LINESIZE: ::c_int = 196;
|
||||
pub const _SC_LEVEL4_CACHE_SIZE: ::c_int = 197;
|
||||
pub const _SC_LEVEL4_CACHE_ASSOC: ::c_int = 198;
|
||||
pub const _SC_LEVEL4_CACHE_LINESIZE: ::c_int = 199;
|
||||
pub const O_ACCMODE: ::c_int = 3;
|
||||
pub const ST_RELATIME: ::c_ulong = 4096;
|
||||
pub const NI_MAXHOST: ::socklen_t = 1025;
|
||||
|
@ -537,7 +537,81 @@ pub const BUFSIZ: ::c_uint = 8192;
|
||||
pub const TMP_MAX: ::c_uint = 238328;
|
||||
pub const FOPEN_MAX: ::c_uint = 16;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
pub const _SC_EQUIV_CLASS_MAX: ::c_int = 41;
|
||||
pub const _SC_CHARCLASS_NAME_MAX: ::c_int = 45;
|
||||
pub const _SC_PII: ::c_int = 53;
|
||||
pub const _SC_PII_XTI: ::c_int = 54;
|
||||
pub const _SC_PII_SOCKET: ::c_int = 55;
|
||||
pub const _SC_PII_INTERNET: ::c_int = 56;
|
||||
pub const _SC_PII_OSI: ::c_int = 57;
|
||||
pub const _SC_POLL: ::c_int = 58;
|
||||
pub const _SC_SELECT: ::c_int = 59;
|
||||
pub const _SC_PII_INTERNET_STREAM: ::c_int = 61;
|
||||
pub const _SC_PII_INTERNET_DGRAM: ::c_int = 62;
|
||||
pub const _SC_PII_OSI_COTS: ::c_int = 63;
|
||||
pub const _SC_PII_OSI_CLTS: ::c_int = 64;
|
||||
pub const _SC_PII_OSI_M: ::c_int = 65;
|
||||
pub const _SC_T_IOV_MAX: ::c_int = 66;
|
||||
pub const _SC_2_C_VERSION: ::c_int = 96;
|
||||
pub const _SC_CHAR_BIT: ::c_int = 101;
|
||||
pub const _SC_CHAR_MAX: ::c_int = 102;
|
||||
pub const _SC_CHAR_MIN: ::c_int = 103;
|
||||
pub const _SC_INT_MAX: ::c_int = 104;
|
||||
pub const _SC_INT_MIN: ::c_int = 105;
|
||||
pub const _SC_LONG_BIT: ::c_int = 106;
|
||||
pub const _SC_WORD_BIT: ::c_int = 107;
|
||||
pub const _SC_MB_LEN_MAX: ::c_int = 108;
|
||||
pub const _SC_SSIZE_MAX: ::c_int = 110;
|
||||
pub const _SC_SCHAR_MAX: ::c_int = 111;
|
||||
pub const _SC_SCHAR_MIN: ::c_int = 112;
|
||||
pub const _SC_SHRT_MAX: ::c_int = 113;
|
||||
pub const _SC_SHRT_MIN: ::c_int = 114;
|
||||
pub const _SC_UCHAR_MAX: ::c_int = 115;
|
||||
pub const _SC_UINT_MAX: ::c_int = 116;
|
||||
pub const _SC_ULONG_MAX: ::c_int = 117;
|
||||
pub const _SC_USHRT_MAX: ::c_int = 118;
|
||||
pub const _SC_NL_ARGMAX: ::c_int = 119;
|
||||
pub const _SC_NL_LANGMAX: ::c_int = 120;
|
||||
pub const _SC_NL_MSGMAX: ::c_int = 121;
|
||||
pub const _SC_NL_NMAX: ::c_int = 122;
|
||||
pub const _SC_NL_SETMAX: ::c_int = 123;
|
||||
pub const _SC_NL_TEXTMAX: ::c_int = 124;
|
||||
pub const _SC_BASE: ::c_int = 134;
|
||||
pub const _SC_C_LANG_SUPPORT: ::c_int = 135;
|
||||
pub const _SC_C_LANG_SUPPORT_R: ::c_int = 136;
|
||||
pub const _SC_DEVICE_IO: ::c_int = 140;
|
||||
pub const _SC_DEVICE_SPECIFIC: ::c_int = 141;
|
||||
pub const _SC_DEVICE_SPECIFIC_R: ::c_int = 142;
|
||||
pub const _SC_FD_MGMT: ::c_int = 143;
|
||||
pub const _SC_FIFO: ::c_int = 144;
|
||||
pub const _SC_PIPE: ::c_int = 145;
|
||||
pub const _SC_FILE_ATTRIBUTES: ::c_int = 146;
|
||||
pub const _SC_FILE_LOCKING: ::c_int = 147;
|
||||
pub const _SC_FILE_SYSTEM: ::c_int = 148;
|
||||
pub const _SC_MULTI_PROCESS: ::c_int = 150;
|
||||
pub const _SC_SINGLE_PROCESS: ::c_int = 151;
|
||||
pub const _SC_NETWORKING: ::c_int = 152;
|
||||
pub const _SC_REGEX_VERSION: ::c_int = 156;
|
||||
pub const _SC_SIGNALS: ::c_int = 158;
|
||||
pub const _SC_SYSTEM_DATABASE: ::c_int = 162;
|
||||
pub const _SC_SYSTEM_DATABASE_R: ::c_int = 163;
|
||||
pub const _SC_USER_GROUPS: ::c_int = 166;
|
||||
pub const _SC_USER_GROUPS_R: ::c_int = 167;
|
||||
pub const _SC_LEVEL1_ICACHE_SIZE: ::c_int = 185;
|
||||
pub const _SC_LEVEL1_ICACHE_ASSOC: ::c_int = 186;
|
||||
pub const _SC_LEVEL1_ICACHE_LINESIZE: ::c_int = 187;
|
||||
pub const _SC_LEVEL1_DCACHE_SIZE: ::c_int = 188;
|
||||
pub const _SC_LEVEL1_DCACHE_ASSOC: ::c_int = 189;
|
||||
pub const _SC_LEVEL1_DCACHE_LINESIZE: ::c_int = 190;
|
||||
pub const _SC_LEVEL2_CACHE_SIZE: ::c_int = 191;
|
||||
pub const _SC_LEVEL2_CACHE_ASSOC: ::c_int = 192;
|
||||
pub const _SC_LEVEL2_CACHE_LINESIZE: ::c_int = 193;
|
||||
pub const _SC_LEVEL3_CACHE_SIZE: ::c_int = 194;
|
||||
pub const _SC_LEVEL3_CACHE_ASSOC: ::c_int = 195;
|
||||
pub const _SC_LEVEL3_CACHE_LINESIZE: ::c_int = 196;
|
||||
pub const _SC_LEVEL4_CACHE_SIZE: ::c_int = 197;
|
||||
pub const _SC_LEVEL4_CACHE_ASSOC: ::c_int = 198;
|
||||
pub const _SC_LEVEL4_CACHE_LINESIZE: ::c_int = 199;
|
||||
pub const O_ASYNC: ::c_int = 0x2000;
|
||||
pub const O_NDELAY: ::c_int = 0x800;
|
||||
pub const ST_RELATIME: ::c_ulong = 4096;
|
||||
|
@ -766,35 +766,6 @@ pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2;
|
||||
pub const POSIX_MADV_WILLNEED: ::c_int = 3;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
|
||||
pub const _SC_IOV_MAX: ::c_int = 77;
|
||||
pub const _SC_GETGR_R_SIZE_MAX: ::c_int = 569;
|
||||
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 570;
|
||||
pub const _SC_LOGIN_NAME_MAX: ::c_int = 571;
|
||||
pub const _SC_MQ_PRIO_MAX: ::c_int = 30;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR: ::c_int = 577;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE: ::c_int = 578;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: ::c_int = 568;
|
||||
pub const _SC_THREAD_KEYS_MAX: ::c_int = 572;
|
||||
pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 580;
|
||||
pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 581;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 579;
|
||||
pub const _SC_THREAD_PROCESS_SHARED: ::c_int = 582;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 583;
|
||||
pub const _SC_THREAD_STACK_MIN: ::c_int = 573;
|
||||
pub const _SC_THREAD_THREADS_MAX: ::c_int = 574;
|
||||
pub const _SC_THREADS: ::c_int = 576;
|
||||
pub const _SC_TTY_NAME_MAX: ::c_int = 575;
|
||||
pub const _SC_ATEXIT_MAX: ::c_int = 76;
|
||||
pub const _SC_XOPEN_CRYPT: ::c_int = 62;
|
||||
pub const _SC_XOPEN_ENH_I18N: ::c_int = 63;
|
||||
pub const _SC_XOPEN_LEGACY: ::c_int = 717;
|
||||
pub const _SC_XOPEN_REALTIME: ::c_int = 718;
|
||||
pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 719;
|
||||
pub const _SC_XOPEN_SHM: ::c_int = 64;
|
||||
pub const _SC_XOPEN_UNIX: ::c_int = 78;
|
||||
pub const _SC_XOPEN_VERSION: ::c_int = 12;
|
||||
pub const _SC_XOPEN_XCU_VERSION: ::c_int = 67;
|
||||
|
||||
pub const PTHREAD_CREATE_JOINABLE: ::c_int = 0;
|
||||
pub const PTHREAD_CREATE_DETACHED: ::c_int = 0x40;
|
||||
pub const PTHREAD_PROCESS_SHARED: ::c_int = 1;
|
||||
@ -905,6 +876,37 @@ pub const O_NONBLOCK: ::c_int = 128;
|
||||
|
||||
pub const IPPROTO_RAW: ::c_int = 255;
|
||||
|
||||
pub const _PC_LINK_MAX: ::c_int = 1;
|
||||
pub const _PC_MAX_CANON: ::c_int = 2;
|
||||
pub const _PC_MAX_INPUT: ::c_int = 3;
|
||||
pub const _PC_NAME_MAX: ::c_int = 4;
|
||||
pub const _PC_PATH_MAX: ::c_int = 5;
|
||||
pub const _PC_PIPE_BUF: ::c_int = 6;
|
||||
pub const _PC_NO_TRUNC: ::c_int = 7;
|
||||
pub const _PC_VDISABLE: ::c_int = 8;
|
||||
pub const _PC_CHOWN_RESTRICTED: ::c_int = 9;
|
||||
pub const _PC_ASYNC_IO: ::c_int = 10;
|
||||
pub const _PC_PRIO_IO: ::c_int = 11;
|
||||
pub const _PC_SYNC_IO: ::c_int = 12;
|
||||
pub const _PC_ALLOC_SIZE_MIN: ::c_int = 13;
|
||||
pub const _PC_REC_INCR_XFER_SIZE: ::c_int = 14;
|
||||
pub const _PC_REC_MAX_XFER_SIZE: ::c_int = 15;
|
||||
pub const _PC_REC_MIN_XFER_SIZE: ::c_int = 16;
|
||||
pub const _PC_REC_XFER_ALIGN: ::c_int = 17;
|
||||
pub const _PC_SYMLINK_MAX: ::c_int = 18;
|
||||
pub const _PC_2_SYMLINKS: ::c_int = 19;
|
||||
pub const _PC_ACL_ENABLED: ::c_int = 20;
|
||||
pub const _PC_MIN_HOLE_SIZE: ::c_int = 21;
|
||||
pub const _PC_CASE_BEHAVIOR: ::c_int = 22;
|
||||
pub const _PC_SATTR_ENABLED: ::c_int = 23;
|
||||
pub const _PC_SATTR_EXISTS: ::c_int = 24;
|
||||
pub const _PC_ACCESS_FILTERING: ::c_int = 25;
|
||||
pub const _PC_TIMESTAMP_RESOLUTION: ::c_int = 26;
|
||||
pub const _PC_FILESIZEBITS: ::c_int = 67;
|
||||
pub const _PC_XATTR_ENABLED: ::c_int = 100;
|
||||
pub const _PC_LAST: ::c_int = 101;
|
||||
pub const _PC_XATTR_EXISTS: ::c_int = 101;
|
||||
|
||||
pub const _SC_ARG_MAX: ::c_int = 1;
|
||||
pub const _SC_CHILD_MAX: ::c_int = 2;
|
||||
pub const _SC_CLK_TCK: ::c_int = 3;
|
||||
@ -913,13 +915,51 @@ pub const _SC_OPEN_MAX: ::c_int = 5;
|
||||
pub const _SC_JOB_CONTROL: ::c_int = 6;
|
||||
pub const _SC_SAVED_IDS: ::c_int = 7;
|
||||
pub const _SC_VERSION: ::c_int = 8;
|
||||
pub const _SC_PASS_MAX: ::c_int = 9;
|
||||
pub const _SC_LOGNAME_MAX: ::c_int = 10;
|
||||
pub const _SC_PAGESIZE: ::c_int = 11;
|
||||
pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
|
||||
pub const _SC_XOPEN_VERSION: ::c_int = 12;
|
||||
pub const _SC_NPROCESSORS_CONF: ::c_int = 14;
|
||||
pub const _SC_NPROCESSORS_ONLN: ::c_int = 15;
|
||||
pub const _SC_STREAM_MAX: ::c_int = 16;
|
||||
pub const _SC_TZNAME_MAX: ::c_int = 17;
|
||||
pub const _SC_AIO_LISTIO_MAX: ::c_int = 18;
|
||||
pub const _SC_AIO_MAX: ::c_int = 19;
|
||||
pub const _SC_AIO_PRIO_DELTA_MAX: ::c_int = 20;
|
||||
pub const _SC_ASYNCHRONOUS_IO: ::c_int = 21;
|
||||
pub const _SC_DELAYTIMER_MAX: ::c_int = 22;
|
||||
pub const _SC_FSYNC: ::c_int = 23;
|
||||
pub const _SC_MAPPED_FILES: ::c_int = 24;
|
||||
pub const _SC_MEMLOCK: ::c_int = 25;
|
||||
pub const _SC_MEMLOCK_RANGE: ::c_int = 26;
|
||||
pub const _SC_MEMORY_PROTECTION: ::c_int = 27;
|
||||
pub const _SC_MESSAGE_PASSING: ::c_int = 28;
|
||||
pub const _SC_MQ_OPEN_MAX: ::c_int = 29;
|
||||
pub const _SC_MQ_PRIO_MAX: ::c_int = 30;
|
||||
pub const _SC_PRIORITIZED_IO: ::c_int = 31;
|
||||
pub const _SC_PRIORITY_SCHEDULING: ::c_int = 32;
|
||||
pub const _SC_REALTIME_SIGNALS: ::c_int = 33;
|
||||
pub const _SC_RTSIG_MAX: ::c_int = 34;
|
||||
pub const _SC_SEMAPHORES: ::c_int = 35;
|
||||
pub const _SC_SEM_NSEMS_MAX: ::c_int = 36;
|
||||
pub const _SC_SEM_VALUE_MAX: ::c_int = 37;
|
||||
pub const _SC_SHARED_MEMORY_OBJECTS: ::c_int = 38;
|
||||
pub const _SC_SIGQUEUE_MAX: ::c_int = 39;
|
||||
pub const _SC_SIGRT_MIN: ::c_int = 40;
|
||||
pub const _SC_SIGRT_MAX: ::c_int = 41;
|
||||
pub const _SC_SYNCHRONIZED_IO: ::c_int = 42;
|
||||
pub const _SC_TIMERS: ::c_int = 43;
|
||||
pub const _SC_TIMER_MAX: ::c_int = 44;
|
||||
pub const _SC_2_C_BIND: ::c_int = 45;
|
||||
pub const _SC_2_C_DEV: ::c_int = 46;
|
||||
pub const _SC_2_C_VERSION: ::c_int = 47;
|
||||
pub const _SC_2_FORT_DEV: ::c_int = 48;
|
||||
pub const _SC_2_FORT_RUN: ::c_int = 49;
|
||||
pub const _SC_2_LOCALEDEF: ::c_int = 50;
|
||||
pub const _SC_2_SW_DEV: ::c_int = 51;
|
||||
pub const _SC_2_UPE: ::c_int = 52;
|
||||
pub const _SC_2_VERSION: ::c_int = 53;
|
||||
pub const _SC_BC_BASE_MAX: ::c_int = 54;
|
||||
pub const _SC_BC_DIM_MAX: ::c_int = 55;
|
||||
pub const _SC_BC_SCALE_MAX: ::c_int = 56;
|
||||
@ -928,37 +968,95 @@ pub const _SC_COLL_WEIGHTS_MAX: ::c_int = 58;
|
||||
pub const _SC_EXPR_NEST_MAX: ::c_int = 59;
|
||||
pub const _SC_LINE_MAX: ::c_int = 60;
|
||||
pub const _SC_RE_DUP_MAX: ::c_int = 61;
|
||||
pub const _SC_2_VERSION: ::c_int = 53;
|
||||
pub const _SC_2_C_BIND: ::c_int = 45;
|
||||
pub const _SC_2_C_DEV: ::c_int = 46;
|
||||
pub const _SC_XOPEN_CRYPT: ::c_int = 62;
|
||||
pub const _SC_XOPEN_ENH_I18N: ::c_int = 63;
|
||||
pub const _SC_XOPEN_SHM: ::c_int = 64;
|
||||
pub const _SC_2_CHAR_TERM: ::c_int = 66;
|
||||
pub const _SC_2_FORT_DEV: ::c_int = 48;
|
||||
pub const _SC_2_FORT_RUN: ::c_int = 49;
|
||||
pub const _SC_2_LOCALEDEF: ::c_int = 50;
|
||||
pub const _SC_2_SW_DEV: ::c_int = 51;
|
||||
pub const _SC_2_UPE: ::c_int = 52;
|
||||
pub const _SC_ASYNCHRONOUS_IO: ::c_int = 21;
|
||||
pub const _SC_MAPPED_FILES: ::c_int = 24;
|
||||
pub const _SC_MEMLOCK: ::c_int = 25;
|
||||
pub const _SC_MEMLOCK_RANGE: ::c_int = 26;
|
||||
pub const _SC_MEMORY_PROTECTION: ::c_int = 27;
|
||||
pub const _SC_MESSAGE_PASSING: ::c_int = 28;
|
||||
pub const _SC_PRIORITIZED_IO: ::c_int = 31;
|
||||
pub const _SC_PRIORITY_SCHEDULING: ::c_int = 32;
|
||||
pub const _SC_REALTIME_SIGNALS: ::c_int = 33;
|
||||
pub const _SC_SEMAPHORES: ::c_int = 35;
|
||||
pub const _SC_FSYNC: ::c_int = 23;
|
||||
pub const _SC_SHARED_MEMORY_OBJECTS: ::c_int = 38;
|
||||
pub const _SC_SYNCHRONIZED_IO: ::c_int = 42;
|
||||
pub const _SC_TIMERS: ::c_int = 43;
|
||||
pub const _SC_AIO_PRIO_DELTA_MAX: ::c_int = 20;
|
||||
pub const _SC_DELAYTIMER_MAX: ::c_int = 22;
|
||||
pub const _SC_MQ_OPEN_MAX: ::c_int = 29;
|
||||
pub const _SC_RTSIG_MAX: ::c_int = 34;
|
||||
pub const _SC_SEM_NSEMS_MAX: ::c_int = 36;
|
||||
pub const _SC_SEM_VALUE_MAX: ::c_int = 37;
|
||||
pub const _SC_SIGQUEUE_MAX: ::c_int = 39;
|
||||
pub const _SC_TIMER_MAX: ::c_int = 44;
|
||||
pub const _SC_XOPEN_XCU_VERSION: ::c_int = 67;
|
||||
pub const _SC_ATEXIT_MAX: ::c_int = 76;
|
||||
pub const _SC_IOV_MAX: ::c_int = 77;
|
||||
pub const _SC_XOPEN_UNIX: ::c_int = 78;
|
||||
pub const _SC_T_IOV_MAX: ::c_int = 79;
|
||||
pub const _SC_PHYS_PAGES: ::c_int = 500;
|
||||
pub const _SC_AVPHYS_PAGES: ::c_int = 501;
|
||||
pub const _SC_COHER_BLKSZ: ::c_int = 503;
|
||||
pub const _SC_SPLIT_CACHE: ::c_int = 504;
|
||||
pub const _SC_ICACHE_SZ: ::c_int = 505;
|
||||
pub const _SC_DCACHE_SZ: ::c_int = 506;
|
||||
pub const _SC_ICACHE_LINESZ: ::c_int = 507;
|
||||
pub const _SC_DCACHE_LINESZ: ::c_int = 508;
|
||||
pub const _SC_ICACHE_BLKSZ: ::c_int = 509;
|
||||
pub const _SC_DCACHE_BLKSZ: ::c_int = 510;
|
||||
pub const _SC_DCACHE_TBLKSZ: ::c_int = 511;
|
||||
pub const _SC_ICACHE_ASSOC: ::c_int = 512;
|
||||
pub const _SC_DCACHE_ASSOC: ::c_int = 513;
|
||||
pub const _SC_MAXPID: ::c_int = 514;
|
||||
pub const _SC_STACK_PROT: ::c_int = 515;
|
||||
pub const _SC_NPROCESSORS_MAX: ::c_int = 516;
|
||||
pub const _SC_CPUID_MAX: ::c_int = 517;
|
||||
pub const _SC_EPHID_MAX: ::c_int = 518;
|
||||
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: ::c_int = 568;
|
||||
pub const _SC_GETGR_R_SIZE_MAX: ::c_int = 569;
|
||||
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 570;
|
||||
pub const _SC_LOGIN_NAME_MAX: ::c_int = 571;
|
||||
pub const _SC_THREAD_KEYS_MAX: ::c_int = 572;
|
||||
pub const _SC_THREAD_STACK_MIN: ::c_int = 573;
|
||||
pub const _SC_THREAD_THREADS_MAX: ::c_int = 574;
|
||||
pub const _SC_TTY_NAME_MAX: ::c_int = 575;
|
||||
pub const _SC_THREADS: ::c_int = 576;
|
||||
pub const _SC_THREAD_ATTR_STACKADDR: ::c_int = 577;
|
||||
pub const _SC_THREAD_ATTR_STACKSIZE: ::c_int = 578;
|
||||
pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 579;
|
||||
pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 580;
|
||||
pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 581;
|
||||
pub const _SC_THREAD_PROCESS_SHARED: ::c_int = 582;
|
||||
pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 583;
|
||||
pub const _SC_XOPEN_LEGACY: ::c_int = 717;
|
||||
pub const _SC_XOPEN_REALTIME: ::c_int = 718;
|
||||
pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 719;
|
||||
pub const _SC_XBS5_ILP32_OFF32: ::c_int = 720;
|
||||
pub const _SC_XBS5_ILP32_OFFBIG: ::c_int = 721;
|
||||
pub const _SC_XBS5_LP64_OFF64: ::c_int = 722;
|
||||
pub const _SC_XBS5_LPBIG_OFFBIG: ::c_int = 723;
|
||||
pub const _SC_2_PBS: ::c_int = 724;
|
||||
pub const _SC_2_PBS_ACCOUNTING: ::c_int = 725;
|
||||
pub const _SC_2_PBS_CHECKPOINT: ::c_int = 726;
|
||||
pub const _SC_2_PBS_LOCATE: ::c_int = 728;
|
||||
pub const _SC_2_PBS_MESSAGE: ::c_int = 729;
|
||||
pub const _SC_2_PBS_TRACK: ::c_int = 730;
|
||||
pub const _SC_ADVISORY_INFO: ::c_int = 731;
|
||||
pub const _SC_BARRIERS: ::c_int = 732;
|
||||
pub const _SC_CLOCK_SELECTION: ::c_int = 733;
|
||||
pub const _SC_CPUTIME: ::c_int = 734;
|
||||
pub const _SC_HOST_NAME_MAX: ::c_int = 735;
|
||||
pub const _SC_MONOTONIC_CLOCK: ::c_int = 736;
|
||||
pub const _SC_READER_WRITER_LOCKS: ::c_int = 737;
|
||||
pub const _SC_REGEXP: ::c_int = 738;
|
||||
pub const _SC_SHELL: ::c_int = 739;
|
||||
pub const _SC_SPAWN: ::c_int = 740;
|
||||
pub const _SC_SPIN_LOCKS: ::c_int = 741;
|
||||
pub const _SC_SPORADIC_SERVER: ::c_int = 742;
|
||||
pub const _SC_SS_REPL_MAX: ::c_int = 743;
|
||||
pub const _SC_SYMLOOP_MAX: ::c_int = 744;
|
||||
pub const _SC_THREAD_CPUTIME: ::c_int = 745;
|
||||
pub const _SC_THREAD_SPORADIC_SERVER: ::c_int = 746;
|
||||
pub const _SC_TIMEOUTS: ::c_int = 747;
|
||||
pub const _SC_TRACE: ::c_int = 748;
|
||||
pub const _SC_TRACE_EVENT_FILTER: ::c_int = 749;
|
||||
pub const _SC_TRACE_EVENT_NAME_MAX: ::c_int = 750;
|
||||
pub const _SC_TRACE_INHERIT: ::c_int = 751;
|
||||
pub const _SC_TRACE_LOG: ::c_int = 752;
|
||||
pub const _SC_TRACE_NAME_MAX: ::c_int = 753;
|
||||
pub const _SC_TRACE_SYS_MAX: ::c_int = 754;
|
||||
pub const _SC_TRACE_USER_EVENT_MAX: ::c_int = 755;
|
||||
pub const _SC_TYPED_MEMORY_OBJECTS: ::c_int = 756;
|
||||
pub const _SC_V6_ILP32_OFF32: ::c_int = 757;
|
||||
pub const _SC_V6_ILP32_OFFBIG: ::c_int = 758;
|
||||
pub const _SC_V6_LP64_OFF64: ::c_int = 759;
|
||||
pub const _SC_V6_LPBIG_OFFBIG: ::c_int = 760;
|
||||
pub const _SC_XOPEN_STREAMS: ::c_int = 761;
|
||||
pub const _SC_IPV6: ::c_int = 762;
|
||||
pub const _SC_RAW_SOCKETS: ::c_int = 763;
|
||||
|
||||
pub const _MUTEX_MAGIC: u16 = 0x4d58; // MX
|
||||
pub const _COND_MAGIC: u16 = 0x4356; // CV
|
||||
|
Loading…
x
Reference in New Issue
Block a user