diff options
author | Markus Reiter <me@reitermark.us> | 2018-12-16 13:44:39 +0100 |
---|---|---|
committer | Markus Reiter <me@reitermark.us> | 2018-12-17 16:44:24 +0100 |
commit | 2a9c0c305f7083c442b4810d616fec5edce21dcd (patch) | |
tree | e23965737ba8633a9f72ba741f21713e38641feb | |
parent | ed8309bc03ba32c9f407d1800ad6d51ade19cdb0 (diff) | |
download | rust-libc-2a9c0c305f7083c442b4810d616fec5edce21dcd.tar.gz |
Add `AI_*` constants from `netdb.h` for macOS.
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index bb07cc4872..af8017e1cd 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -2147,6 +2147,19 @@ pub const PRIO_DARWIN_NONUI: ::c_int = 0x1001; pub const SEM_FAILED: *mut sem_t = -1isize as *mut ::sem_t; +pub const AI_PASSIVE: ::c_int = 0x00000001; +pub const AI_CANONNAME: ::c_int = 0x00000002; +pub const AI_NUMERICHOST: ::c_int = 0x00000004; +pub const AI_NUMERICSERV: ::c_int = 0x00001000; +pub const AI_MASK: ::c_int = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | + AI_NUMERICSERV | AI_ADDRCONFIG; +pub const AI_ALL: ::c_int = 0x00000100; +pub const AI_V4MAPPED_CFG: ::c_int = 0x00000200; +pub const AI_ADDRCONFIG: ::c_int = 0x00000400; +pub const AI_V4MAPPED: ::c_int = 0x00000800; +pub const AI_DEFAULT: ::c_int = AI_V4MAPPED_CFG | AI_ADDRCONFIG; +pub const AI_UNUSABLE: ::c_int = 0x10000000; + pub const SIGEV_NONE: ::c_int = 0; pub const SIGEV_SIGNAL: ::c_int = 1; pub const SIGEV_THREAD: ::c_int = 3; |