Merge pull request #62 from dimbleby/hostent

Add hostent structure
This commit is contained in:
Alex Crichton 2015-11-15 16:04:28 -05:00
commit b375fae604

View File

@ -83,6 +83,14 @@ s! {
pub dli_sname: *const ::c_char,
pub dli_saddr: *mut ::c_void,
}
pub struct hostent {
pub h_name: *mut ::c_char,
pub h_aliases: *mut *mut ::c_char,
pub h_addrtype: ::c_int,
pub h_length: ::c_int,
pub h_addr_list: *mut *mut ::c_char,
}
}
pub const WNOHANG: ::c_int = 1;