Skip to content

Commit cfde228

Browse files
committed
Add NI_* constants
1 parent 0b694e4 commit cfde228

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/unix/redox/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,13 @@ pub const O_NOFOLLOW: ::c_int = -0x8000_0000;
440440

441441
// netdb.h
442442
pub const EAI_SYSTEM: ::c_int = -11;
443+
pub const NI_MAXHOST: ::c_int = 1025;
444+
pub const NI_MAXSERV: ::c_int = 32;
445+
pub const NI_NUMERICHOST: ::c_int = 0x0001;
446+
pub const NI_NUMERICSERV: ::c_int = 0x0002;
447+
pub const NI_NOFQDN: ::c_int = 0x0004;
448+
pub const NI_NAMEREQD: ::c_int = 0x0008;
449+
pub const NI_DGRAM: ::c_int = 0x0010;
443450

444451
// netinet/in.h
445452
// FIXME: relibc {

0 commit comments

Comments
 (0)