diff options
author | jD91mZM2 <me@krake.one> | 2018-05-24 16:05:25 +0200 |
---|---|---|
committer | jD91mZM2 <me@krake.one> | 2018-05-24 16:05:25 +0200 |
commit | 24cf502f59527322a919dbf54aa4834e0bac8db2 (patch) | |
tree | 13965cafd00924ef7025b386da004e9801e54312 | |
parent | 7d64d5a545f0b3f4b41cc195d2bed62b7ae4caa4 (diff) | |
download | rust-libc-24cf502f59527322a919dbf54aa4834e0bac8db2.tar.gz |
Add a bunch of functions on redox and hope for the best
-rw-r--r-- | src/redox/net.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/redox/net.rs b/src/redox/net.rs index 0916916430..a545ba4795 100644 --- a/src/redox/net.rs +++ b/src/redox/net.rs @@ -107,4 +107,16 @@ extern { pub fn setsockopt(socket: ::c_int, level: ::c_int, name: ::c_int, value: *const ::c_void, option_len: socklen_t) -> ::c_int; + pub fn getpeername(socket: ::c_int, address: *mut sockaddr, + address_len: *mut socklen_t) -> ::c_int; + pub fn sendto(socket: ::c_int, buf: *const ::c_void, len: ::size_t, + flags: ::c_int, addr: *const sockaddr, + addrlen: socklen_t) -> ::ssize_t; + pub fn send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, + flags: ::c_int) -> ::ssize_t; + pub fn recvfrom(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, + flags: ::c_int, addr: *mut ::sockaddr, + addrlen: *mut ::socklen_t) -> ::ssize_t; + pub fn recv(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, + flags: ::c_int) -> ::ssize_t; } |