Merge pull request #1768 from Erk-/freebsd-getnameinfo-flags
[FreeBSD] Add missing getnameinfo() flag values.
This commit is contained in:
commit
f8f9a8e6f6
@ -1747,6 +1747,7 @@ fn test_freebsd(target: &str) {
|
||||
| "IP_RECVORIGDSTADDR"
|
||||
| "IPV6_ORIGDSTADDR"
|
||||
| "IPV6_RECVORIGDSTADDR"
|
||||
| "NI_NUMERICSCOPE"
|
||||
if Some(11) == freebsd_ver =>
|
||||
{
|
||||
true
|
||||
@ -1772,6 +1773,7 @@ fn test_freebsd(target: &str) {
|
||||
| "PD_CLOEXEC"
|
||||
| "PD_ALLOWED_AT_FORK"
|
||||
| "IP_RSS_LISTEN_BUCKET"
|
||||
| "NI_NUMERICSCOPE"
|
||||
if Some(10) == freebsd_ver =>
|
||||
{
|
||||
true
|
||||
|
@ -349,6 +349,13 @@ pub const RLIMIT_UMTXP: ::c_int = 14;
|
||||
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
|
||||
pub const RLIM_NLIMITS: ::rlim_t = 15;
|
||||
|
||||
pub const NI_NOFQDN: ::c_int = 0x00000001;
|
||||
pub const NI_NUMERICHOST: ::c_int = 0x00000002;
|
||||
pub const NI_NAMEREQD: ::c_int = 0x00000004;
|
||||
pub const NI_NUMERICSERV: ::c_int = 0x00000008;
|
||||
pub const NI_DGRAM: ::c_int = 0x00000010;
|
||||
pub const NI_NUMERICSCOPE: ::c_int = 0x00000020;
|
||||
|
||||
pub const Q_GETQUOTA: ::c_int = 0x700;
|
||||
pub const Q_SETQUOTA: ::c_int = 0x800;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user