commit | b375fae6041c9cac9844e851d7892aa6651a8b21 | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Sun Nov 15 16:04:28 2015 -0500 |
committer | Alex Crichton <alex@alexcrichton.com> | Sun Nov 15 16:04:28 2015 -0500 |
tree | ec03d8b03f5dac22cdbe27267edc667c4830b97a | |
parent | 76587b15637769f749568fd49743cfac6578548a [diff] | |
parent | ccacbe867b63aa1b8ff0d87fb73522c7cf1d0089 [diff] |
Merge pull request #62 from dimbleby/hostent Add hostent structure
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 488313f..93dd856 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs
@@ -83,6 +83,14 @@ 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;