Auto merge of #602 - Razican:unistd_sync, r=alexcrichton

Added the sync() function from unistd.h

This fixes #601.
This commit is contained in:
bors 2017-05-26 20:58:38 +00:00
commit 30b0ecc2e4
2 changed files with 3 additions and 0 deletions

View file

@ -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! {

View file

@ -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! {