diff options
author | jfh <jfh@imijmi.eu> | 2021-10-27 18:40:33 +0300 |
---|---|---|
committer | jfh <jfh@imijmi.eu> | 2021-10-27 18:40:33 +0300 |
commit | a5da2c281688df5db6347a29aaede198bb44039b (patch) | |
tree | 4d88affb20c4ebf7f00f233290dea4f777af7370 /src/unix/bsd/freebsdlike/mod.rs | |
parent | 89d8c5e7d08872dd21d55327731f0d72d2a34e58 (diff) | |
download | rust-libc-a5da2c281688df5db6347a29aaede198bb44039b.tar.gz |
Add AI_* constants to freebdslike platforms.
Diffstat (limited to 'src/unix/bsd/freebsdlike/mod.rs')
-rw-r--r-- | src/unix/bsd/freebsdlike/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index 41803ead02..382c47cede 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -724,6 +724,14 @@ pub const POLLSTANDARD: ::c_short = ::POLLIN | ::POLLHUP | ::POLLNVAL; +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 = 0x00000008; +pub const AI_ALL: ::c_int = 0x00000100; +pub const AI_ADDRCONFIG: ::c_int = 0x00000400; +pub const AI_V4MAPPED: ::c_int = 0x00000800; + pub const EAI_AGAIN: ::c_int = 2; pub const EAI_BADFLAGS: ::c_int = 3; pub const EAI_FAIL: ::c_int = 4; |