Skip to content

Commit de98422

Browse files
committed
Auto merge of #2176 - devnexen:netdb_constants, r=Amanieu
openbsd adding few more netdb constants
2 parents 97d3f0f + 0866ed9 commit de98422

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ NFSMNT_WANTRCV
496496
NFSMNT_WANTSND
497497
NFSMNT_WSIZE
498498
NFS_ARGSVERSION
499+
NI_NUMERICHOST
500+
NI_NUMERICSERV
501+
NI_NOFQDN
502+
NI_NAMEREQD
503+
NI_DGRAM
499504
NOEXPR
500505
NOKERNINFO
501506
NOSTR

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@ pub const NOTE_CHILD: u32 = 0x00000004;
11601160

11611161
pub const TMP_MAX: ::c_uint = 0x7fffffff;
11621162

1163+
pub const NI_NUMERICHOST: ::c_int = 1;
1164+
pub const NI_NUMERICSERV: ::c_int = 2;
1165+
pub const NI_NOFQDN: ::c_int = 4;
1166+
pub const NI_NAMEREQD: ::c_int = 8;
1167+
pub const NI_DGRAM: ::c_int = 16;
1168+
11631169
pub const NI_MAXHOST: ::size_t = 256;
11641170

11651171
pub const RTLD_LOCAL: ::c_int = 0;

0 commit comments

Comments
 (0)