Skip to content

Commit b94d772

Browse files
committed
haiku realhostname api
1 parent c029ff7 commit b94d772

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,14 @@ extern "C" {
17471747

17481748
pub fn login_tty(_fd: ::c_int) -> ::c_int;
17491749
pub fn fgetln(stream: *mut ::FILE, _length: *mut ::size_t) -> *mut ::c_char;
1750+
1751+
pub fn realhostname(host: *mut ::c_char, hsize: ::size_t, ip: *const in_addr) -> ::c_int;
1752+
pub fn realhostname_sa(
1753+
host: *mut ::c_char,
1754+
hsize: ::size_t,
1755+
addr: *mut sockaddr,
1756+
addrlen: ::c_int,
1757+
) -> ::c_int;
17501758
}
17511759

17521760
cfg_if! {

0 commit comments

Comments
 (0)