Skip to content

Commit 1c56046

Browse files
committed
libc: add _SC_* consts for non-mips linux too
They was previously missing
1 parent 6e67701 commit 1c56046

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

src/libstd/libc.rs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,63 @@ pub mod consts {
11171117
pub static MS_ASYNC : c_int = 0x0001;
11181118
pub static MS_INVALIDATE : c_int = 0x0002;
11191119
pub static MS_SYNC : c_int = 0x0004;
1120+
1121+
pub static _SC_ARG_MAX : c_int = 0;
1122+
pub static _SC_CHILD_MAX : c_int = 1;
1123+
pub static _SC_CLK_TCK : c_int = 2;
1124+
pub static _SC_NGROUPS_MAX : c_int = 3;
1125+
pub static _SC_OPEN_MAX : c_int = 4;
1126+
pub static _SC_STREAM_MAX : c_int = 5;
1127+
pub static _SC_TZNAME_MAX : c_int = 6;
1128+
pub static _SC_JOB_CONTROL : c_int = 7;
1129+
pub static _SC_SAVED_IDS : c_int = 8;
1130+
pub static _SC_REALTIME_SIGNALS : c_int = 9;
1131+
pub static _SC_PRIORITY_SCHEDULING : c_int = 10;
1132+
pub static _SC_TIMERS : c_int = 11;
1133+
pub static _SC_ASYNCHRONOUS_IO : c_int = 12;
1134+
pub static _SC_PRIORITIZED_IO : c_int = 13;
1135+
pub static _SC_SYNCHRONIZED_IO : c_int = 14;
1136+
pub static _SC_FSYNC : c_int = 15;
1137+
pub static _SC_MAPPED_FILES : c_int = 16;
1138+
pub static _SC_MEMLOCK : c_int = 17;
1139+
pub static _SC_MEMLOCK_RANGE : c_int = 18;
1140+
pub static _SC_MEMORY_PROTECTION : c_int = 19;
1141+
pub static _SC_MESSAGE_PASSING : c_int = 20;
1142+
pub static _SC_SEMAPHORES : c_int = 21;
1143+
pub static _SC_SHARED_MEMORY_OBJECTS : c_int = 22;
1144+
pub static _SC_AIO_LISTIO_MAX : c_int = 23;
1145+
pub static _SC_AIO_MAX : c_int = 24;
1146+
pub static _SC_AIO_PRIO_DELTA_MAX : c_int = 25;
1147+
pub static _SC_DELAYTIMER_MAX : c_int = 26;
1148+
pub static _SC_MQ_OPEN_MAX : c_int = 27;
1149+
pub static _SC_VERSION : c_int = 29;
1150+
pub static _SC_PAGESIZE : c_int = 30;
1151+
pub static _SC_RTSIG_MAX : c_int = 31;
1152+
pub static _SC_SEM_NSEMS_MAX : c_int = 32;
1153+
pub static _SC_SEM_VALUE_MAX : c_int = 33;
1154+
pub static _SC_SIGQUEUE_MAX : c_int = 34;
1155+
pub static _SC_TIMER_MAX : c_int = 35;
1156+
pub static _SC_BC_BASE_MAX : c_int = 36;
1157+
pub static _SC_BC_DIM_MAX : c_int = 37;
1158+
pub static _SC_BC_SCALE_MAX : c_int = 38;
1159+
pub static _SC_BC_STRING_MAX : c_int = 39;
1160+
pub static _SC_COLL_WEIGHTS_MAX : c_int = 40;
1161+
pub static _SC_EXPR_NEST_MAX : c_int = 42;
1162+
pub static _SC_LINE_MAX : c_int = 43;
1163+
pub static _SC_RE_DUP_MAX : c_int = 44;
1164+
pub static _SC_2_VERSION : c_int = 46;
1165+
pub static _SC_2_C_BIND : c_int = 47;
1166+
pub static _SC_2_C_DEV : c_int = 48;
1167+
pub static _SC_2_FORT_DEV : c_int = 49;
1168+
pub static _SC_2_FORT_RUN : c_int = 50;
1169+
pub static _SC_2_SW_DEV : c_int = 51;
1170+
pub static _SC_2_LOCALEDEF : c_int = 52;
1171+
pub static _SC_2_CHAR_TERM : c_int = 95;
1172+
pub static _SC_2_C_VERSION : c_int = 96;
1173+
pub static _SC_2_UPE : c_int = 97;
1174+
pub static _SC_XBS5_ILP32_OFF32 : c_int = 125;
1175+
pub static _SC_XBS5_ILP32_OFFBIG : c_int = 126;
1176+
pub static _SC_XBS5_LPBIG_OFFBIG : c_int = 128;
11201177
}
11211178
#[cfg(target_arch = "mips")]
11221179
pub mod posix88 {

0 commit comments

Comments
 (0)