Skip to content

Commit bce927b

Browse files
committed
Auto merge of rust-lang#502 - oconnor663:pipe2_bsd, r=alexcrichton
add pipe2 to non-OSX BSD's rust-lang/libc#500
2 parents 4eb6bf9 + 7c06730 commit bce927b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ extern {
907907
abstime: *const ::timespec) -> ::c_int;
908908
pub fn pthread_mutex_timedlock(lock: *mut pthread_mutex_t,
909909
abstime: *const ::timespec) -> ::c_int;
910+
pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int;
910911
}
911912

912913
cfg_if! {

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ extern {
535535
pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
536536
pub fn pthread_mutex_timedlock(lock: *mut pthread_mutex_t,
537537
abstime: *const ::timespec) -> ::c_int;
538+
pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int;
538539
}
539540

540541
cfg_if! {

0 commit comments

Comments
 (0)