diff options
author | Noah <33094578+coolreader18@users.noreply.github.com> | 2021-05-03 15:53:26 -0500 |
---|---|---|
committer | Noah <33094578+coolreader18@users.noreply.github.com> | 2021-05-03 16:45:44 -0500 |
commit | 9309fd94984423115d33fff4d094d0b1095dfe79 (patch) | |
tree | 7ee250c34a4ca9f2502f15d3db0f4d6f14f954a0 /src/unix/redox | |
parent | 66d82737f3d256b30fc0461fb44514a3a03db09e (diff) | |
download | rust-libc-9309fd94984423115d33fff4d094d0b1095dfe79.tar.gz |
Add more netdb constants for redox
Diffstat (limited to 'src/unix/redox')
-rw-r--r-- | src/unix/redox/mod.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index 45615a5498..f14b39f5dd 100644 --- a/src/unix/redox/mod.rs +++ b/src/unix/redox/mod.rs @@ -439,7 +439,25 @@ pub const O_SYMLINK: ::c_int = 0x4000_0000; pub const O_NOFOLLOW: ::c_int = -0x8000_0000; // netdb.h +pub const AI_PASSIVE: ::c_int = 0x0001; +pub const AI_CANONNAME: ::c_int = 0x0002; +pub const AI_NUMERICHOST: ::c_int = 0x0004; +pub const AI_V4MAPPED: ::c_int = 0x0008; +pub const AI_ALL: ::c_int = 0x0010; +pub const AI_ADDRCONFIG: ::c_int = 0x0020; +pub const AI_NUMERICSERV: ::c_int = 0x0400; +pub const EAI_BADFLAGS: ::c_int = -1; +pub const EAI_NONAME: ::c_int = -2; +pub const EAI_AGAIN: ::c_int = -3; +pub const EAI_FAIL: ::c_int = -4; +pub const EAI_NODATA: ::c_int = -5; +pub const EAI_FAMILY: ::c_int = -6; +pub const EAI_SOCKTYPE: ::c_int = -7; +pub const EAI_SERVICE: ::c_int = -8; +pub const EAI_ADDRFAMILY: ::c_int = -9; +pub const EAI_MEMORY: ::c_int = -10; pub const EAI_SYSTEM: ::c_int = -11; +pub const EAI_OVERFLOW: ::c_int = -12; pub const NI_MAXHOST: ::c_int = 1025; pub const NI_MAXSERV: ::c_int = 32; pub const NI_NUMERICHOST: ::c_int = 0x0001; |