Skip to content

Commit

Permalink
libc: add _SC_* consts for non-mips linux too
Browse files Browse the repository at this point in the history
They was previously missing
  • Loading branch information
indutny committed Jul 8, 2013
1 parent 6e67701 commit 1c56046
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions src/libstd/libc.rs
Expand Up @@ -1117,6 +1117,63 @@ pub mod consts {
pub static MS_ASYNC : c_int = 0x0001;
pub static MS_INVALIDATE : c_int = 0x0002;
pub static MS_SYNC : c_int = 0x0004;

pub static _SC_ARG_MAX : c_int = 0;
pub static _SC_CHILD_MAX : c_int = 1;
pub static _SC_CLK_TCK : c_int = 2;
pub static _SC_NGROUPS_MAX : c_int = 3;
pub static _SC_OPEN_MAX : c_int = 4;
pub static _SC_STREAM_MAX : c_int = 5;
pub static _SC_TZNAME_MAX : c_int = 6;
pub static _SC_JOB_CONTROL : c_int = 7;
pub static _SC_SAVED_IDS : c_int = 8;
pub static _SC_REALTIME_SIGNALS : c_int = 9;
pub static _SC_PRIORITY_SCHEDULING : c_int = 10;
pub static _SC_TIMERS : c_int = 11;
pub static _SC_ASYNCHRONOUS_IO : c_int = 12;
pub static _SC_PRIORITIZED_IO : c_int = 13;
pub static _SC_SYNCHRONIZED_IO : c_int = 14;
pub static _SC_FSYNC : c_int = 15;
pub static _SC_MAPPED_FILES : c_int = 16;
pub static _SC_MEMLOCK : c_int = 17;
pub static _SC_MEMLOCK_RANGE : c_int = 18;
pub static _SC_MEMORY_PROTECTION : c_int = 19;
pub static _SC_MESSAGE_PASSING : c_int = 20;
pub static _SC_SEMAPHORES : c_int = 21;
pub static _SC_SHARED_MEMORY_OBJECTS : c_int = 22;
pub static _SC_AIO_LISTIO_MAX : c_int = 23;
pub static _SC_AIO_MAX : c_int = 24;
pub static _SC_AIO_PRIO_DELTA_MAX : c_int = 25;
pub static _SC_DELAYTIMER_MAX : c_int = 26;
pub static _SC_MQ_OPEN_MAX : c_int = 27;
pub static _SC_VERSION : c_int = 29;
pub static _SC_PAGESIZE : c_int = 30;
pub static _SC_RTSIG_MAX : c_int = 31;
pub static _SC_SEM_NSEMS_MAX : c_int = 32;
pub static _SC_SEM_VALUE_MAX : c_int = 33;
pub static _SC_SIGQUEUE_MAX : c_int = 34;
pub static _SC_TIMER_MAX : c_int = 35;
pub static _SC_BC_BASE_MAX : c_int = 36;
pub static _SC_BC_DIM_MAX : c_int = 37;
pub static _SC_BC_SCALE_MAX : c_int = 38;
pub static _SC_BC_STRING_MAX : c_int = 39;
pub static _SC_COLL_WEIGHTS_MAX : c_int = 40;
pub static _SC_EXPR_NEST_MAX : c_int = 42;
pub static _SC_LINE_MAX : c_int = 43;
pub static _SC_RE_DUP_MAX : c_int = 44;
pub static _SC_2_VERSION : c_int = 46;
pub static _SC_2_C_BIND : c_int = 47;
pub static _SC_2_C_DEV : c_int = 48;
pub static _SC_2_FORT_DEV : c_int = 49;
pub static _SC_2_FORT_RUN : c_int = 50;
pub static _SC_2_SW_DEV : c_int = 51;
pub static _SC_2_LOCALEDEF : c_int = 52;
pub static _SC_2_CHAR_TERM : c_int = 95;
pub static _SC_2_C_VERSION : c_int = 96;
pub static _SC_2_UPE : c_int = 97;
pub static _SC_XBS5_ILP32_OFF32 : c_int = 125;
pub static _SC_XBS5_ILP32_OFFBIG : c_int = 126;
pub static _SC_XBS5_LPBIG_OFFBIG : c_int = 128;
}
#[cfg(target_arch = "mips")]
pub mod posix88 {
Expand Down

0 comments on commit 1c56046

Please sign in to comment.