Skip to content

Commit

Permalink
Auto merge of #3433 - adder32:define-getname-info-extensions, r=JohnT…
Browse files Browse the repository at this point in the history
…itor

Add the NI_IDN getnameinfo() extension

This PR adds the `NI_IDN` getnameinfo extension.

I've also tried to add the other two extensions (see: https://man7.org/linux/man-pages/man3/getnameinfo.3.html), but the tests would fail (`-Werror`) because those two are deprecated.
  • Loading branch information
bors committed Nov 12, 2023
2 parents 8c65fd5 + 6b2beb8 commit 13ac2b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/mod.rs
Expand Up @@ -2103,6 +2103,7 @@ pub const NI_NUMERICSERV: ::c_int = 2;
pub const NI_NOFQDN: ::c_int = 4;
pub const NI_NAMEREQD: ::c_int = 8;
pub const NI_DGRAM: ::c_int = 16;
pub const NI_IDN: ::c_int = 32;

pub const SYNC_FILE_RANGE_WAIT_BEFORE: ::c_uint = 1;
pub const SYNC_FILE_RANGE_WRITE: ::c_uint = 2;
Expand Down

0 comments on commit 13ac2b9

Please sign in to comment.