Add NI_* constants

This commit is contained in:
Noah 2020-10-27 22:40:08 -05:00
parent 0b694e466b
commit cfde22846d
No known key found for this signature in database
GPG Key ID: E8C14146AE337195
1 changed files with 7 additions and 0 deletions

View File

@ -440,6 +440,13 @@ pub const O_NOFOLLOW: ::c_int = -0x8000_0000;
// netdb.h
pub const EAI_SYSTEM: ::c_int = -11;
pub const NI_MAXHOST: ::c_int = 1025;
pub const NI_MAXSERV: ::c_int = 32;
pub const NI_NUMERICHOST: ::c_int = 0x0001;
pub const NI_NUMERICSERV: ::c_int = 0x0002;
pub const NI_NOFQDN: ::c_int = 0x0004;
pub const NI_NAMEREQD: ::c_int = 0x0008;
pub const NI_DGRAM: ::c_int = 0x0010;
// netinet/in.h
// FIXME: relibc {