We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5401c9 commit e89701dCopy full SHA for e89701d
src/unix/haiku/mod.rs
@@ -102,6 +102,16 @@ s! {
102
pub ai_next: *mut addrinfo,
103
}
104
105
+ pub struct ifaddrs {
106
+ pub ifa_next: *mut ifaddrs,
107
+ pub ifa_name: *mut ::c_char,
108
+ pub ifa_flags: ::c_uint,
109
+ pub ifa_addr: *mut ::sockaddr,
110
+ pub ifa_netmask: *mut ::sockaddr,
111
+ pub ifa_dstaddr: *mut ::sockaddr,
112
+ pub ida_data: *mut ::c_void,
113
+ }
114
+
115
pub struct fd_set {
116
// size for 1024 bits, and a fd_mask with size u32
117
fds_bits: [fd_mask; 32],
@@ -1465,6 +1475,8 @@ extern "C" {
1465
1475
pub fn labs(i: ::c_long) -> ::c_long;
1466
1476
pub fn rand() -> ::c_int;
1467
1477
pub fn srand(seed: ::c_uint);
1478
+ pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int;
1479
+ pub fn freeifaddrs(ifa: *mut ::ifaddrs);
1468
1480
1469
1481
1470
1482
#[link(name = "bsd")]
0 commit comments