diff options
author | bors <bors@rust-lang.org> | 2017-05-26 20:58:38 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2017-05-26 20:58:38 +0000 |
commit | 30b0ecc2e417b5da77a0dd2e69d552add1049701 (patch) | |
tree | 6bf961a15d856f2983d2d2aa9b6f496a467b2cba /src | |
parent | 229bd66d9cc0cda8e91c18c38a2fa02f62e85a92 (diff) | |
parent | 406b01a811a00bbb831e28d3f563774cde4bfa23 (diff) | |
download | rust-libc-30b0ecc2e417b5da77a0dd2e69d552add1049701.tar.gz |
Auto merge of #602 - Razican:unistd_sync, r=alexcrichton
Added the sync() function from unistd.h
This fixes #601.
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/bsd/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/notbsd/linux/mod.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index 96b0f22a10..deddca042d 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -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! { diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index b9375a36fa..c50c78ae29 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -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! { |