Skip to content

Commit

Permalink
Auto merge of rust-lang#602 - Razican:unistd_sync, r=alexcrichton
Browse files Browse the repository at this point in the history
Added the sync() function from unistd.h

This fixes rust-lang#601.
  • Loading branch information
bors committed May 26, 2017
2 parents 229bd66 + 406b01a commit 30b0ecc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ extern {
link_name = "recvmsg$UNIX2003")]
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
-> ::ssize_t;

pub fn sync();
}

cfg_if! {
Expand Down
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ extern {
flags: ::c_int) -> ::c_int;
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut mmsghdr, vlen: ::c_uint,
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
pub fn sync();
}

cfg_if! {
Expand Down

0 comments on commit 30b0ecc

Please sign in to comment.