Skip to content

Commit d5401c9

Browse files
committed
Auto merge of #2495 - devnexen:netbsd_ai_constants, r=JohnTitor
netbsd/openbsd add AI_* constants
2 parents 8f79f94 + 319aed0 commit d5401c9

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

libc-test/semver/netbsd.txt

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ AF_SNA
4949
AIO_ALLDONE
5050
AIO_CANCELED
5151
AIO_NOTCANCELED
52+
AI_ADDRCONFIG
53+
AI_CANONNAME
54+
AI_NUMERICHOST
55+
AI_NUMERICSERV
56+
AI_PASSIVE
57+
AI_SRV
5258
ALTWERASE
5359
ALT_DIGITS
5460
AM_STR

libc-test/semver/openbsd.txt

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ AF_PUP
4646
AF_ROUTE
4747
AF_SIP
4848
AF_SNA
49+
AI_ADDRCONFIG
50+
AI_CANONNAME
51+
AI_EXT
52+
AI_FQDN
53+
AI_NUMERICHOST
54+
AI_NUMERICSERV
55+
AI_PASSIVE
4956
ALTWERASE
5057
AM_STR
5158
ARPOP_REPLY

src/unix/bsd/netbsdlike/netbsd/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,13 @@ pub const NOTE_CHILD: u32 = 0x00000004;
17101710

17111711
pub const TMP_MAX: ::c_uint = 308915776;
17121712

1713+
pub const AI_PASSIVE: ::c_int = 0x00000001;
1714+
pub const AI_CANONNAME: ::c_int = 0x00000002;
1715+
pub const AI_NUMERICHOST: ::c_int = 0x00000004;
1716+
pub const AI_NUMERICSERV: ::c_int = 0x00000008;
1717+
pub const AI_ADDRCONFIG: ::c_int = 0x00000400;
1718+
pub const AI_SRV: ::c_int = 0x00000800;
1719+
17131720
pub const NI_MAXHOST: ::socklen_t = 1025;
17141721
pub const NI_MAXSERV: ::socklen_t = 32;
17151722

src/unix/bsd/netbsdlike/openbsd/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,14 @@ pub const NOTE_CHILD: u32 = 0x00000004;
11861186

11871187
pub const TMP_MAX: ::c_uint = 0x7fffffff;
11881188

1189+
pub const AI_PASSIVE: ::c_int = 1;
1190+
pub const AI_CANONNAME: ::c_int = 2;
1191+
pub const AI_NUMERICHOST: ::c_int = 4;
1192+
pub const AI_EXT: ::c_int = 8;
1193+
pub const AI_NUMERICSERV: ::c_int = 16;
1194+
pub const AI_FQDN: ::c_int = 32;
1195+
pub const AI_ADDRCONFIG: ::c_int = 64;
1196+
11891197
pub const NI_NUMERICHOST: ::c_int = 1;
11901198
pub const NI_NUMERICSERV: ::c_int = 2;
11911199
pub const NI_NOFQDN: ::c_int = 4;

0 commit comments

Comments
 (0)