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 14, 2023
2 parents 244a68c + d351b3b commit 77d4cda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libc-test/build.rs
Expand Up @@ -3694,6 +3694,10 @@ fn test_linux(target: &str) {
if name.starts_with("RLIM64") {
return true;
}
// CI fails because musl targets use Linux v4 kernel
if name.starts_with("NI_IDN") {
return true;
}
}
match name {
// These constants are not available if gnu headers have been included
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/mod.rs
Expand Up @@ -2104,6 +2104,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 77d4cda

Please sign in to comment.