diff options
author | Marcin Konicki <ahwayakchih@gmail.com> | 2020-07-03 22:09:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 22:09:46 +0200 |
commit | c17a4c1711dd00228e91ca6b63887a646da7d035 (patch) | |
tree | 25d4bef042da87254446723e566b86ee08222bd2 | |
parent | 7a507b64c26f6b32c0c7a638a2306e8a41e3e9d8 (diff) | |
download | rust-libc-c17a4c1711dd00228e91ca6b63887a646da7d035.tar.gz |
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
-rw-r--r-- | src/unix/haiku/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index e7b104e994..27f88f155f 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -962,6 +962,10 @@ pub const _SC_TIMER_MAX: ::c_int = 57; pub const _SC_TIMERS: ::c_int = 58; pub const _SC_CPUTIME: ::c_int = 59; pub const _SC_THREAD_CPUTIME: ::c_int = 60; +pub const _SC_HOST_NAME_MAX: ::c_int = 61; +pub const _SC_REGEXP: ::c_int = 62; +pub const _SC_SYMLOOP_MAX: ::c_int = 63; +pub const _SC_SHELL: ::c_int = 64; pub const PTHREAD_STACK_MIN: ::size_t = 8192; |