Skip to content

Commit

Permalink
Merge pull request rust-lang#35 from sfackler/socketpair
Browse files Browse the repository at this point in the history
Add socketpair
  • Loading branch information
alexcrichton committed Nov 4, 2015
2 parents 6d817ed + e6c00c2 commit 3bb2fef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ extern {
pub fn setsockopt(socket: ::c_int, level: ::c_int, name: ::c_int,
value: *const ::c_void,
option_len: socklen_t) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "socketpair$UNIX2003")]
pub fn socketpair(domain: ::c_int, type_: ::c_int, protocol: ::c_int,
socket_vector: *mut ::c_int) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "sendto$UNIX2003")]
pub fn sendto(socket: ::c_int, buf: *const ::c_void, len: ::size_t,
Expand Down

0 comments on commit 3bb2fef

Please sign in to comment.