Skip to content

Commit eeb3318

Browse files
committed
Auto merge of #990 - lucab:ups/android-sysconf, r=alexcrichton
android: add POSIX sysconf constants Ref: https://android.googlesource.com/platform/bionic/+/1c19194c9d2518dbe86973cd313a277ecb70d75c%5E%21/libc/include/sys/sysconf.h
2 parents c5fb6db + 725608c commit eeb3318

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,49 @@ pub const _SC_PHYS_PAGES: ::c_int = 98;
391391
pub const _SC_AVPHYS_PAGES: ::c_int = 99;
392392
pub const _SC_MONOTONIC_CLOCK: ::c_int = 100;
393393

394+
pub const _SC_2_PBS: ::c_int = 101;
395+
pub const _SC_2_PBS_ACCOUNTING: ::c_int = 102;
396+
pub const _SC_2_PBS_CHECKPOINT: ::c_int = 103;
397+
pub const _SC_2_PBS_LOCATE: ::c_int = 104;
398+
pub const _SC_2_PBS_MESSAGE: ::c_int = 105;
399+
pub const _SC_2_PBS_TRACK: ::c_int = 106;
400+
pub const _SC_ADVISORY_INFO: ::c_int = 107;
401+
pub const _SC_BARRIERS: ::c_int = 108;
402+
pub const _SC_CLOCK_SELECTION: ::c_int = 109;
403+
pub const _SC_CPUTIME: ::c_int = 110;
404+
pub const _SC_HOST_NAME_MAX: ::c_int = 111;
405+
pub const _SC_IPV6: ::c_int = 112;
406+
pub const _SC_RAW_SOCKETS: ::c_int = 113;
407+
pub const _SC_READER_WRITER_LOCKS: ::c_int = 114;
408+
pub const _SC_REGEXP: ::c_int = 115;
409+
pub const _SC_SHELL: ::c_int = 116;
410+
pub const _SC_SPAWN: ::c_int = 117;
411+
pub const _SC_SPIN_LOCKS: ::c_int = 118;
412+
pub const _SC_SPORADIC_SERVER: ::c_int = 119;
413+
pub const _SC_SS_REPL_MAX: ::c_int = 120;
414+
pub const _SC_SYMLOOP_MAX: ::c_int = 121;
415+
pub const _SC_THREAD_CPUTIME: ::c_int = 122;
416+
pub const _SC_THREAD_PROCESS_SHARED: ::c_int = 123;
417+
pub const _SC_THREAD_ROBUST_PRIO_INHERIT: ::c_int = 124;
418+
pub const _SC_THREAD_ROBUST_PRIO_PROTECT: ::c_int = 125;
419+
pub const _SC_THREAD_SPORADIC_SERVER: ::c_int = 126;
420+
pub const _SC_TIMEOUTS: ::c_int = 127;
421+
pub const _SC_TRACE: ::c_int = 128;
422+
pub const _SC_TRACE_EVENT_FILTER: ::c_int = 129;
423+
pub const _SC_TRACE_EVENT_NAME_MAX: ::c_int = 130;
424+
pub const _SC_TRACE_INHERIT: ::c_int = 131;
425+
pub const _SC_TRACE_LOG: ::c_int = 132;
426+
pub const _SC_TRACE_NAME_MAX: ::c_int = 133;
427+
pub const _SC_TRACE_SYS_MAX: ::c_int = 134;
428+
pub const _SC_TRACE_USER_EVENT_MAX: ::c_int = 135;
429+
pub const _SC_TYPED_MEMORY_OBJECTS: ::c_int = 136;
430+
pub const _SC_V7_ILP32_OFF32: ::c_int = 137;
431+
pub const _SC_V7_ILP32_OFFBIG: ::c_int = 138;
432+
pub const _SC_V7_LP64_OFF64: ::c_int = 139;
433+
pub const _SC_V7_LPBIG_OFFBIG: ::c_int = 140;
434+
pub const _SC_XOPEN_STREAMS: ::c_int = 141;
435+
pub const _SC_XOPEN_UUCP: ::c_int = 142;
436+
394437
pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;
395438
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 1;
396439
pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;

0 commit comments

Comments
 (0)