diff options
author | Niels Sascha Reedijk <niels.reedijk@gmail.com> | 2021-08-19 09:34:43 +0000 |
---|---|---|
committer | Niels Sascha Reedijk <niels.reedijk@gmail.com> | 2021-08-19 09:38:52 +0000 |
commit | 85e79991a07fff1c984f5e02863f1e8567777012 (patch) | |
tree | 52a9469fc93001853be6fdf36f789fa99610d2b4 | |
parent | 200345c97b929d72030ff21afc3c03fd17abf505 (diff) | |
download | rust-libc-85e79991a07fff1c984f5e02863f1e8567777012.tar.gz |
Haiku: add missing constants from socket.h and unistd.h
-rw-r--r-- | src/unix/haiku/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 611cf2fef5..09c95097c1 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -817,6 +817,15 @@ pub const AF_LOCAL: ::c_int = 9; pub const AF_UNIX: ::c_int = AF_LOCAL; pub const AF_BLUETOOTH: ::c_int = 10; +pub const PF_UNSPEC: ::c_int = AF_UNSPEC; +pub const PF_INET: ::c_int = AF_INET; +pub const PF_ROUTE: ::c_int = AF_ROUTE; +pub const PF_LINK: ::c_int = AF_LINK; +pub const PF_INET6: ::c_int = AF_INET6; +pub const PF_LOCAL: ::c_int = AF_LOCAL; +pub const PF_UNIX: ::c_int = AF_UNIX; +pub const PF_BLUETOOTH: ::c_int = AF_BLUETOOTH; + pub const IP_OPTIONS: ::c_int = 1; pub const IP_HDRINCL: ::c_int = 2; pub const IP_TOS: ::c_int = 3; @@ -987,6 +996,7 @@ 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 _SC_TTY_NAME_MAX: ::c_int = 65; pub const PTHREAD_STACK_MIN: ::size_t = 8192; |