Skip to content

Commit d14c7c5

Browse files
committed
Add getnameinfo on redox
1 parent 9309fd9 commit d14c7c5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/unix/redox/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,17 @@ extern "C" {
963963
// malloc.h
964964
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
965965

966+
// netdb.h
967+
pub fn getnameinfo(
968+
addr: *const ::sockaddr,
969+
addrlen: ::socklen_t,
970+
host: *mut ::c_char,
971+
hostlen: ::socklen_t,
972+
serv: *mut ::c_char,
973+
servlen: ::socklen_t,
974+
flags: ::c_int,
975+
) -> ::c_int;
976+
966977
// pthread.h
967978
pub fn pthread_atfork(
968979
prepare: ::Option<unsafe extern "C" fn()>,

0 commit comments

Comments
 (0)