Skip to content

Commit 30b0ecc

Browse files
committed
Auto merge of rust-lang#602 - Razican:unistd_sync, r=alexcrichton
Added the sync() function from unistd.h This fixes rust-lang#601.
2 parents 229bd66 + 406b01a commit 30b0ecc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/unix/bsd/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ extern {
432432
link_name = "recvmsg$UNIX2003")]
433433
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
434434
-> ::ssize_t;
435+
436+
pub fn sync();
435437
}
436438

437439
cfg_if! {

src/unix/notbsd/linux/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ extern {
10011001
flags: ::c_int) -> ::c_int;
10021002
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut mmsghdr, vlen: ::c_uint,
10031003
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
1004+
pub fn sync();
10041005
}
10051006

10061007
cfg_if! {

0 commit comments

Comments
 (0)