Skip to content

Commit c17a4c1

Browse files
authored
Add missing sysconf constants for Haiku
Hi, Could you add some missing Haiku constants (i'm guessing they were added after Haiku port was last updated)? These are defined in `unistd.h`: https://github.com/haiku/haiku/blob/194a45c6b4183083afdc7fac7b9e85f9162cdeb2/headers/posix/unistd.h#L134-L137
1 parent 7a507b6 commit c17a4c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,10 @@ pub const _SC_TIMER_MAX: ::c_int = 57;
962962
pub const _SC_TIMERS: ::c_int = 58;
963963
pub const _SC_CPUTIME: ::c_int = 59;
964964
pub const _SC_THREAD_CPUTIME: ::c_int = 60;
965+
pub const _SC_HOST_NAME_MAX: ::c_int = 61;
966+
pub const _SC_REGEXP: ::c_int = 62;
967+
pub const _SC_SYMLOOP_MAX: ::c_int = 63;
968+
pub const _SC_SHELL: ::c_int = 64;
965969

966970
pub const PTHREAD_STACK_MIN: ::size_t = 8192;
967971

0 commit comments

Comments
 (0)