diff options
author | bors <bors@rust-lang.org> | 2018-03-17 17:45:29 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-03-17 17:45:29 +0000 |
commit | 3e9ccfa72f32b99185814371753664c5b8925dfb (patch) | |
tree | 81cb5afc3b8d108369c8b352acd7cd9d1b5831ce | |
parent | 12bdc41b8ee100b1578a51db0fa690ac0836cd39 (diff) | |
parent | 549da8a7af20362cb07145a3a92564c51c1dadb3 (diff) | |
download | rust-libc-3e9ccfa72f32b99185814371753664c5b8925dfb.tar.gz |
Auto merge of #799 - asomers:fdatasync, r=alexcrichton
Define fdatasync on FreeBSD. It was introduced in FreeBSD 11.1.
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index e7a312741c..a2a6d69375 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -881,6 +881,7 @@ extern { pub fn jail_set(iov: *mut ::iovec, niov: ::c_uint, flags: ::c_int) -> ::c_int; + pub fn fdatasync(fd: ::c_int) -> ::c_int; pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, |