Skip to content

Commit ec79792

Browse files
committed
Add socketpair
1 parent 6d817ed commit ec79792

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ extern {
132132
pub fn setsockopt(socket: ::c_int, level: ::c_int, name: ::c_int,
133133
value: *const ::c_void,
134134
option_len: socklen_t) -> ::c_int;
135+
pub fn socketpair(domain: ::c_int, type_: ::c_int, protocol: ::c_int,
136+
socket_vector: *mut [::c_int; 2]) -> ::c_int;
135137
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
136138
link_name = "sendto$UNIX2003")]
137139
pub fn sendto(socket: ::c_int, buf: *const ::c_void, len: ::size_t,

0 commit comments

Comments
 (0)