Skip to content

Commit

Permalink
Auto merge of #2495 - devnexen:netbsd_ai_constants, r=JohnTitor
Browse files Browse the repository at this point in the history
netbsd/openbsd add AI_* constants
  • Loading branch information
bors committed Nov 3, 2021
2 parents 8f79f94 + 319aed0 commit d5401c9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ AF_SNA
AIO_ALLDONE
AIO_CANCELED
AIO_NOTCANCELED
AI_ADDRCONFIG
AI_CANONNAME
AI_NUMERICHOST
AI_NUMERICSERV
AI_PASSIVE
AI_SRV
ALTWERASE
ALT_DIGITS
AM_STR
Expand Down
7 changes: 7 additions & 0 deletions libc-test/semver/openbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ AF_PUP
AF_ROUTE
AF_SIP
AF_SNA
AI_ADDRCONFIG
AI_CANONNAME
AI_EXT
AI_FQDN
AI_NUMERICHOST
AI_NUMERICSERV
AI_PASSIVE
ALTWERASE
AM_STR
ARPOP_REPLY
Expand Down
7 changes: 7 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,13 @@ pub const NOTE_CHILD: u32 = 0x00000004;

pub const TMP_MAX: ::c_uint = 308915776;

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_ADDRCONFIG: ::c_int = 0x00000400;
pub const AI_SRV: ::c_int = 0x00000800;

pub const NI_MAXHOST: ::socklen_t = 1025;
pub const NI_MAXSERV: ::socklen_t = 32;

Expand Down
8 changes: 8 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,14 @@ pub const NOTE_CHILD: u32 = 0x00000004;

pub const TMP_MAX: ::c_uint = 0x7fffffff;

pub const AI_PASSIVE: ::c_int = 1;
pub const AI_CANONNAME: ::c_int = 2;
pub const AI_NUMERICHOST: ::c_int = 4;
pub const AI_EXT: ::c_int = 8;
pub const AI_NUMERICSERV: ::c_int = 16;
pub const AI_FQDN: ::c_int = 32;
pub const AI_ADDRCONFIG: ::c_int = 64;

pub const NI_NUMERICHOST: ::c_int = 1;
pub const NI_NUMERICSERV: ::c_int = 2;
pub const NI_NOFQDN: ::c_int = 4;
Expand Down

0 comments on commit d5401c9

Please sign in to comment.