diff --git a/src/libstd/libc.rs b/src/libstd/libc.rs index 2aaeda69326b6..9d6755fc22d32 100644 --- a/src/libstd/libc.rs +++ b/src/libstd/libc.rs @@ -1176,6 +1176,63 @@ pub mod consts { pub static MS_ASYNC : int = 0x0001; pub static MS_INVALIDATE : int = 0x0002; pub static MS_SYNC : int = 0x0004; + + pub static _SC_ARG_MAX : int = 0; + pub static _SC_CHILD_MAX : int = 1; + pub static _SC_CLK_TCK : int = 2; + pub static _SC_NGROUPS_MAX : int = 3; + pub static _SC_OPEN_MAX : int = 4; + pub static _SC_STREAM_MAX : int = 5; + pub static _SC_TZNAME_MAX : int = 6; + pub static _SC_JOB_CONTROL : int = 7; + pub static _SC_SAVED_IDS : int = 8; + pub static _SC_REALTIME_SIGNALS : int = 9; + pub static _SC_PRIORITY_SCHEDULING : int = 10; + pub static _SC_TIMERS : int = 11; + pub static _SC_ASYNCHRONOUS_IO : int = 12; + pub static _SC_PRIORITIZED_IO : int = 13; + pub static _SC_SYNCHRONIZED_IO : int = 14; + pub static _SC_FSYNC : int = 15; + pub static _SC_MAPPED_FILES : int = 16; + pub static _SC_MEMLOCK : int = 17; + pub static _SC_MEMLOCK_RANGE : int = 18; + pub static _SC_MEMORY_PROTECTION : int = 19; + pub static _SC_MESSAGE_PASSING : int = 20; + pub static _SC_SEMAPHORES : int = 21; + pub static _SC_SHARED_MEMORY_OBJECTS : int = 22; + pub static _SC_AIO_LISTIO_MAX : int = 23; + pub static _SC_AIO_MAX : int = 24; + pub static _SC_AIO_PRIO_DELTA_MAX : int = 25; + pub static _SC_DELAYTIMER_MAX : int = 26; + pub static _SC_MQ_OPEN_MAX : int = 27; + pub static _SC_VERSION : int = 29; + pub static _SC_PAGESIZE : int = 30; + pub static _SC_RTSIG_MAX : int = 31; + pub static _SC_SEM_NSEMS_MAX : int = 32; + pub static _SC_SEM_VALUE_MAX : int = 33; + pub static _SC_SIGQUEUE_MAX : int = 34; + pub static _SC_TIMER_MAX : int = 35; + pub static _SC_BC_BASE_MAX : int = 36; + pub static _SC_BC_DIM_MAX : int = 37; + pub static _SC_BC_SCALE_MAX : int = 38; + pub static _SC_BC_STRING_MAX : int = 39; + pub static _SC_COLL_WEIGHTS_MAX : int = 40; + pub static _SC_EXPR_NEST_MAX : int = 42; + pub static _SC_LINE_MAX : int = 43; + pub static _SC_RE_DUP_MAX : int = 44; + pub static _SC_2_VERSION : int = 46; + pub static _SC_2_C_BIND : int = 47; + pub static _SC_2_C_DEV : int = 48; + pub static _SC_2_FORT_DEV : int = 49; + pub static _SC_2_FORT_RUN : int = 50; + pub static _SC_2_SW_DEV : int = 51; + pub static _SC_2_LOCALEDEF : int = 52; + pub static _SC_2_CHAR_TERM : int = 95; + pub static _SC_2_C_VERSION : int = 96; + pub static _SC_2_UPE : int = 97; + pub static _SC_XBS5_ILP32_OFF32 : int = 125; + pub static _SC_XBS5_ILP32_OFFBIG : int = 126; + pub static _SC_XBS5_LPBIG_OFFBIG : int = 128; } pub mod posix01 { pub static SIGTRAP : int = 5; @@ -1197,6 +1254,35 @@ pub mod consts { pub static POSIX_MADV_SEQUENTIAL : int = 2; pub static POSIX_MADV_WILLNEED : int = 3; pub static POSIX_MADV_DONTNEED : int = 4; + + pub static _SC_MQ_PRIO_MAX : int = 28; + pub static _SC_IOV_MAX : int = 60; + pub static _SC_GETGR_R_SIZE_MAX : int = 69; + pub static _SC_GETPW_R_SIZE_MAX : int = 70; + pub static _SC_LOGIN_NAME_MAX : int = 71; + pub static _SC_TTY_NAME_MAX : int = 72; + pub static _SC_THREADS : int = 67; + pub static _SC_THREAD_SAFE_FUNCTIONS : int = 68; + pub static _SC_THREAD_DESTRUCTOR_ITERATIONS : int = 73; + pub static _SC_THREAD_KEYS_MAX : int = 74; + pub static _SC_THREAD_STACK_MIN : int = 75; + pub static _SC_THREAD_THREADS_MAX : int = 76; + pub static _SC_THREAD_ATTR_STACKADDR : int = 77; + pub static _SC_THREAD_ATTR_STACKSIZE : int = 78; + pub static _SC_THREAD_PRIORITY_SCHEDULING : int = 79; + pub static _SC_THREAD_PRIO_INHERIT : int = 80; + pub static _SC_THREAD_PRIO_PROTECT : int = 81; + pub static _SC_THREAD_PROCESS_SHARED : int = 82; + pub static _SC_ATEXIT_MAX : int = 87; + pub static _SC_XOPEN_VERSION : int = 89; + pub static _SC_XOPEN_XCU_VERSION : int = 90; + pub static _SC_XOPEN_UNIX : int = 91; + pub static _SC_XOPEN_CRYPT : int = 92; + pub static _SC_XOPEN_ENH_I18N : int = 93; + pub static _SC_XOPEN_SHM : int = 94; + pub static _SC_XOPEN_LEGACY : int = 129; + pub static _SC_XOPEN_REALTIME : int = 130; + pub static _SC_XOPEN_REALTIME_THREADS : int = 131; } pub mod posix08 { } @@ -1345,6 +1431,59 @@ pub mod consts { pub static MS_SYNC : int = 0x0000; pub static MS_ASYNC : int = 0x0001; pub static MS_INVALIDATE : int = 0x0002; + + pub static _SC_ARG_MAX : int = 1; + pub static _SC_CHILD_MAX : int = 2; + pub static _SC_CLK_TCK : int = 3; + pub static _SC_NGROUPS_MAX : int = 4; + pub static _SC_OPEN_MAX : int = 5; + pub static _SC_JOB_CONTROL : int = 6; + pub static _SC_SAVED_IDS : int = 7; + pub static _SC_VERSION : int = 8; + pub static _SC_BC_BASE_MAX : int = 9; + pub static _SC_BC_DIM_MAX : int = 10; + pub static _SC_BC_SCALE_MAX : int = 11; + pub static _SC_BC_STRING_MAX : int = 12; + pub static _SC_COLL_WEIGHTS_MAX : int = 13; + pub static _SC_EXPR_NEST_MAX : int = 14; + pub static _SC_LINE_MAX : int = 15; + pub static _SC_RE_DUP_MAX : int = 16; + pub static _SC_2_VERSION : int = 17; + pub static _SC_2_C_BIND : int = 18; + pub static _SC_2_C_DEV : int = 19; + pub static _SC_2_CHAR_TERM : int = 20; + pub static _SC_2_FORT_DEV : int = 21; + pub static _SC_2_FORT_RUN : int = 22; + pub static _SC_2_LOCALEDEF : int = 23; + pub static _SC_2_SW_DEV : int = 24; + pub static _SC_2_UPE : int = 25; + pub static _SC_STREAM_MAX : int = 26; + pub static _SC_TZNAME_MAX : int = 27; + pub static _SC_ASYNCHRONOUS_IO : int = 28; + pub static _SC_MAPPED_FILES : int = 29; + pub static _SC_MEMLOCK : int = 30; + pub static _SC_MEMLOCK_RANGE : int = 31; + pub static _SC_MEMORY_PROTECTION : int = 32; + pub static _SC_MESSAGE_PASSING : int = 33; + pub static _SC_PRIORITIZED_IO : int = 34; + pub static _SC_PRIORITY_SCHEDULING : int = 35; + pub static _SC_REALTIME_SIGNALS : int = 36; + pub static _SC_SEMAPHORES : int = 37; + pub static _SC_FSYNC : int = 38; + pub static _SC_SHARED_MEMORY_OBJECTS : int = 39; + pub static _SC_SYNCHRONIZED_IO : int = 40; + pub static _SC_TIMERS : int = 41; + pub static _SC_AIO_LISTIO_MAX : int = 42; + pub static _SC_AIO_MAX : int = 43; + pub static _SC_AIO_PRIO_DELTA_MAX : int = 44; + pub static _SC_DELAYTIMER_MAX : int = 45; + pub static _SC_MQ_OPEN_MAX : int = 46; + pub static _SC_PAGESIZE : int = 47; + pub static _SC_RTSIG_MAX : int = 48; + pub static _SC_SEM_NSEMS_MAX : int = 49; + pub static _SC_SEM_VALUE_MAX : int = 50; + pub static _SC_SIGQUEUE_MAX : int = 51; + pub static _SC_TIMER_MAX : int = 52; } pub mod posix01 { pub static SIGTRAP : int = 5; @@ -1366,6 +1505,35 @@ pub mod consts { pub static POSIX_MADV_SEQUENTIAL : int = 2; pub static POSIX_MADV_WILLNEED : int = 3; pub static POSIX_MADV_DONTNEED : int = 4; + + pub static _SC_IOV_MAX : int = 56; + pub static _SC_GETGR_R_SIZE_MAX : int = 70; + pub static _SC_GETPW_R_SIZE_MAX : int = 71; + pub static _SC_LOGIN_NAME_MAX : int = 73; + pub static _SC_MQ_PRIO_MAX : int = 75; + pub static _SC_THREAD_ATTR_STACKADDR : int = 82; + pub static _SC_THREAD_ATTR_STACKSIZE : int = 83; + pub static _SC_THREAD_DESTRUCTOR_ITERATIONS : int = 85; + pub static _SC_THREAD_KEYS_MAX : int = 86; + pub static _SC_THREAD_PRIO_INHERIT : int = 87; + pub static _SC_THREAD_PRIO_PROTECT : int = 88; + pub static _SC_THREAD_PRIORITY_SCHEDULING : int = 89; + pub static _SC_THREAD_PROCESS_SHARED : int = 90; + pub static _SC_THREAD_SAFE_FUNCTIONS : int = 91; + pub static _SC_THREAD_STACK_MIN : int = 93; + pub static _SC_THREAD_THREADS_MAX : int = 94; + pub static _SC_THREADS : int = 96; + pub static _SC_TTY_NAME_MAX : int = 101; + pub static _SC_ATEXIT_MAX : int = 107; + pub static _SC_XOPEN_CRYPT : int = 108; + pub static _SC_XOPEN_ENH_I18N : int = 109; + pub static _SC_XOPEN_LEGACY : int = 110; + pub static _SC_XOPEN_REALTIME : int = 111; + pub static _SC_XOPEN_REALTIME_THREADS : int = 112; + pub static _SC_XOPEN_SHM : int = 113; + pub static _SC_XOPEN_UNIX : int = 115; + pub static _SC_XOPEN_VERSION : int = 116; + pub static _SC_XOPEN_XCU_VERSION : int = 117; } pub mod posix08 { } @@ -1494,6 +1662,63 @@ pub mod consts { pub static MS_KILLPAGES : int = 0x0004; pub static MS_DEACTIVATE : int = 0x0008; + + pub static _SC_ARG_MAX : int = 1; + pub static _SC_CHILD_MAX : int = 2; + pub static _SC_CLK_TCK : int = 3; + pub static _SC_NGROUPS_MAX : int = 4; + pub static _SC_OPEN_MAX : int = 5; + pub static _SC_JOB_CONTROL : int = 6; + pub static _SC_SAVED_IDS : int = 7; + pub static _SC_VERSION : int = 8; + pub static _SC_BC_BASE_MAX : int = 9; + pub static _SC_BC_DIM_MAX : int = 10; + pub static _SC_BC_SCALE_MAX : int = 11; + pub static _SC_BC_STRING_MAX : int = 12; + pub static _SC_COLL_WEIGHTS_MAX : int = 13; + pub static _SC_EXPR_NEST_MAX : int = 14; + pub static _SC_LINE_MAX : int = 15; + pub static _SC_RE_DUP_MAX : int = 16; + pub static _SC_2_VERSION : int = 17; + pub static _SC_2_C_BIND : int = 18; + pub static _SC_2_C_DEV : int = 19; + pub static _SC_2_CHAR_TERM : int = 20; + pub static _SC_2_FORT_DEV : int = 21; + pub static _SC_2_FORT_RUN : int = 22; + pub static _SC_2_LOCALEDEF : int = 23; + pub static _SC_2_SW_DEV : int = 24; + pub static _SC_2_UPE : int = 25; + pub static _SC_STREAM_MAX : int = 26; + pub static _SC_TZNAME_MAX : int = 27; + pub static _SC_ASYNCHRONOUS_IO : int = 28; + pub static _SC_PAGESIZE : int = 29; + pub static _SC_MEMLOCK : int = 30; + pub static _SC_MEMLOCK_RANGE : int = 31; + pub static _SC_MEMORY_PROTECTION : int = 32; + pub static _SC_MESSAGE_PASSING : int = 33; + pub static _SC_PRIORITIZED_IO : int = 34; + pub static _SC_PRIORITY_SCHEDULING : int = 35; + pub static _SC_REALTIME_SIGNALS : int = 36; + pub static _SC_SEMAPHORES : int = 37; + pub static _SC_FSYNC : int = 38; + pub static _SC_SHARED_MEMORY_OBJECTS : int = 39; + pub static _SC_SYNCHRONIZED_IO : int = 40; + pub static _SC_TIMERS : int = 41; + pub static _SC_AIO_LISTIO_MAX : int = 42; + pub static _SC_AIO_MAX : int = 43; + pub static _SC_AIO_PRIO_DELTA_MAX : int = 44; + pub static _SC_DELAYTIMER_MAX : int = 45; + pub static _SC_MQ_OPEN_MAX : int = 46; + pub static _SC_MAPPED_FILES : int = 47; + pub static _SC_RTSIG_MAX : int = 48; + pub static _SC_SEM_NSEMS_MAX : int = 49; + pub static _SC_SEM_VALUE_MAX : int = 50; + pub static _SC_SIGQUEUE_MAX : int = 51; + pub static _SC_TIMER_MAX : int = 52; + pub static _SC_XBS5_ILP32_OFF32 : int = 122; + pub static _SC_XBS5_ILP32_OFFBIG : int = 123; + pub static _SC_XBS5_LP64_OFF64 : int = 124; + pub static _SC_XBS5_LPBIG_OFFBIG : int = 125; } pub mod posix01 { pub static SIGTRAP : int = 5; @@ -1515,6 +1740,35 @@ pub mod consts { pub static POSIX_MADV_SEQUENTIAL : int = 2; pub static POSIX_MADV_WILLNEED : int = 3; pub static POSIX_MADV_DONTNEED : int = 4; + + pub static _SC_IOV_MAX : int = 56; + pub static _SC_GETGR_R_SIZE_MAX : int = 70; + pub static _SC_GETPW_R_SIZE_MAX : int = 71; + pub static _SC_LOGIN_NAME_MAX : int = 73; + pub static _SC_MQ_PRIO_MAX : int = 75; + pub static _SC_THREAD_ATTR_STACKADDR : int = 82; + pub static _SC_THREAD_ATTR_STACKSIZE : int = 83; + pub static _SC_THREAD_DESTRUCTOR_ITERATIONS : int = 85; + pub static _SC_THREAD_KEYS_MAX : int = 86; + pub static _SC_THREAD_PRIO_INHERIT : int = 87; + pub static _SC_THREAD_PRIO_PROTECT : int = 88; + pub static _SC_THREAD_PRIORITY_SCHEDULING : int = 89; + pub static _SC_THREAD_PROCESS_SHARED : int = 90; + pub static _SC_THREAD_SAFE_FUNCTIONS : int = 91; + pub static _SC_THREAD_STACK_MIN : int = 93; + pub static _SC_THREAD_THREADS_MAX : int = 94; + pub static _SC_THREADS : int = 96; + pub static _SC_TTY_NAME_MAX : int = 101; + pub static _SC_ATEXIT_MAX : int = 107; + pub static _SC_XOPEN_CRYPT : int = 108; + pub static _SC_XOPEN_ENH_I18N : int = 109; + pub static _SC_XOPEN_LEGACY : int = 110; + pub static _SC_XOPEN_REALTIME : int = 111; + pub static _SC_XOPEN_REALTIME_THREADS : int = 112; + pub static _SC_XOPEN_SHM : int = 113; + pub static _SC_XOPEN_UNIX : int = 115; + pub static _SC_XOPEN_VERSION : int = 116; + pub static _SC_XOPEN_XCU_VERSION : int = 121; } pub mod posix08 { }