Skip to content

Commit 77d4cda

Browse files
committed
Auto merge of #3433 - adder32:define-getname-info-extensions, r=JohnTitor
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.
2 parents 244a68c + d351b3b commit 77d4cda

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3694,6 +3694,10 @@ fn test_linux(target: &str) {
36943694
if name.starts_with("RLIM64") {
36953695
return true;
36963696
}
3697+
// CI fails because musl targets use Linux v4 kernel
3698+
if name.starts_with("NI_IDN") {
3699+
return true;
3700+
}
36973701
}
36983702
match name {
36993703
// These constants are not available if gnu headers have been included

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,6 +2104,7 @@ pub const NI_NUMERICSERV: ::c_int = 2;
21042104
pub const NI_NOFQDN: ::c_int = 4;
21052105
pub const NI_NAMEREQD: ::c_int = 8;
21062106
pub const NI_DGRAM: ::c_int = 16;
2107+
pub const NI_IDN: ::c_int = 32;
21072108

21082109
pub const SYNC_FILE_RANGE_WAIT_BEFORE: ::c_uint = 1;
21092110
pub const SYNC_FILE_RANGE_WRITE: ::c_uint = 2;

0 commit comments

Comments
 (0)