Skip to content

Commit

Permalink
Auto merge of #799 - asomers:fdatasync, r=alexcrichton
Browse files Browse the repository at this point in the history
Define fdatasync on FreeBSD.  It was introduced in FreeBSD 11.1.
  • Loading branch information
bors committed Mar 17, 2018
2 parents 12bdc41 + 549da8a commit 3e9ccfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3e9ccfa

Please sign in to comment.