Skip to content

Commit b375fae

Browse files
committed
Merge pull request rust-lang#62 from dimbleby/hostent
Add hostent structure
2 parents 76587b1 + ccacbe8 commit b375fae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unix/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ s! {
8383
pub dli_sname: *const ::c_char,
8484
pub dli_saddr: *mut ::c_void,
8585
}
86+
87+
pub struct hostent {
88+
pub h_name: *mut ::c_char,
89+
pub h_aliases: *mut *mut ::c_char,
90+
pub h_addrtype: ::c_int,
91+
pub h_length: ::c_int,
92+
pub h_addr_list: *mut *mut ::c_char,
93+
}
8694
}
8795

8896
pub const WNOHANG: ::c_int = 1;

0 commit comments

Comments
 (0)