Skip to content

Commit 7b2ecc6

Browse files
committed
haiku: add missing sysconf constants.
1 parent 4729bc1 commit 7b2ecc6

File tree

1 file changed

+39
-5
lines changed

1 file changed

+39
-5
lines changed

src/unix/haiku/mod.rs

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,17 +614,51 @@ pub const _PC_NAME_MAX: ::c_int = 4;
614614

615615
pub const FIONBIO: ::c_int = 0xbe000000;
616616

617-
pub const _SC_IOV_MAX : ::c_int = 32;
617+
pub const _SC_ARG_MAX : ::c_int = 15;
618+
pub const _SC_CHILD_MAX : ::c_int = 16;
619+
pub const _SC_CLK_TCK : ::c_int = 17;
620+
pub const _SC_JOB_CONTROL : ::c_int = 18;
621+
pub const _SC_NGROUPS_MAX : ::c_int = 19;
622+
pub const _SC_OPEN_MAX : ::c_int = 20;
623+
pub const _SC_SAVED_IDS : ::c_int = 21;
624+
pub const _SC_STREAM_MAX : ::c_int = 22;
625+
pub const _SC_TZNAME_MAX : ::c_int = 23;
626+
pub const _SC_VERSION : ::c_int = 24;
618627
pub const _SC_GETGR_R_SIZE_MAX : ::c_int = 25;
619628
pub const _SC_GETPW_R_SIZE_MAX : ::c_int = 26;
620629
pub const _SC_PAGESIZE : ::c_int = 27;
630+
pub const _SC_PAGE_SIZE : ::c_int = 27;
631+
pub const _SC_SEM_NSEMS_MAX : ::c_int = 28;
632+
pub const _SC_SEM_VALUE_MAX : ::c_int = 29;
633+
pub const _SC_SEMAPHORES : ::c_int = 30;
634+
pub const _SC_THREADS : ::c_int = 31;
635+
pub const _SC_IOV_MAX : ::c_int = 32;
636+
pub const _SC_UIO_MAXIOV : ::c_int = 32;
637+
pub const _SC_NPROCESSORS_CONF : ::c_int = 34;
638+
pub const _SC_NPROCESSORS_ONLN : ::c_int = 35;
639+
pub const _SC_ATEXIT_MAX : ::c_int = 37;
640+
pub const _SC_PASS_MAX : ::c_int = 39;
641+
pub const _SC_PHYS_PAGES : ::c_int = 40;
642+
pub const _SC_AVPHYS_PAGES : ::c_int = 41;
643+
pub const _SC_PIPE : ::c_int = 42;
644+
pub const _SC_SELECT : ::c_int = 43;
645+
pub const _SC_POLL : ::c_int = 44;
646+
pub const _SC_MAPPED_FILES : ::c_int = 45;
647+
pub const _SC_THREAD_PROCESS_SHARED : ::c_int = 46;
648+
pub const _SC_THREAD_STACK_MIN : ::c_int = 47;
621649
pub const _SC_THREAD_ATTR_STACKADDR : ::c_int = 48;
622650
pub const _SC_THREAD_ATTR_STACKSIZE : ::c_int = 49;
623651
pub const _SC_THREAD_PRIORITY_SCHEDULING : ::c_int = 50;
624-
pub const _SC_THREAD_PROCESS_SHARED : ::c_int = 46;
625-
pub const _SC_THREAD_STACK_MIN : ::c_int = 47;
626-
pub const _SC_THREADS : ::c_int = 31;
627-
pub const _SC_ATEXIT_MAX : ::c_int = 37;
652+
pub const _SC_REALTIME_SIGNALS : ::c_int = 51;
653+
pub const _SC_MEMORY_PROTECTION : ::c_int = 52;
654+
pub const _SC_SIGQUEUE_MAX : ::c_int = 53;
655+
pub const _SC_RTSIG_MAX : ::c_int = 54;
656+
pub const _SC_MONOTONIC_CLOCK : ::c_int = 55;
657+
pub const _SC_DELAYTIMER_MAX : ::c_int = 56;
658+
pub const _SC_TIMER_MAX : ::c_int = 57;
659+
pub const _SC_TIMERS : ::c_int = 58;
660+
pub const _SC_CPUTIME : ::c_int = 59;
661+
pub const _SC_THREAD_CPUTIME : ::c_int = 60;
628662

629663
pub const PTHREAD_STACK_MIN: ::size_t = 8192;
630664

0 commit comments

Comments
 (0)