commit | ccacbe867b63aa1b8ff0d87fb73522c7cf1d0089 | [log] [tgz] |
---|---|---|
author | David Hotham <david.hotham@metaswitch.com> | Sat Nov 14 17:19:12 2015 +0000 |
committer | David Hotham <david.hotham@metaswitch.com> | Sat Nov 14 17:19:12 2015 +0000 |
tree | ec03d8b03f5dac22cdbe27267edc667c4830b97a | |
parent | 76587b15637769f749568fd49743cfac6578548a [diff] |
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;