diff options
author | Alan Somers <asomers@gmail.com> | 2016-10-13 21:26:43 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2016-10-13 21:26:43 -0600 |
commit | 3ccb3130eb3a73bebc875e77bae562d7367c641c (patch) | |
tree | feef93cbeb399db191eac7ba91e9214ae7650d08 /src/fcntl.rs | |
parent | be9c1ff4844ae3bcdf48180b6c1600ab539ca971 (diff) | |
parent | bf00bf2db5401ca4deeabefac4388cf5cd75abb0 (diff) | |
download | nix-3ccb3130eb3a73bebc875e77bae562d7367c641c.zip |
Merge github.com:nix-rust/nix into evfilt
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs index 75e12549..1d9ba499 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -46,6 +46,8 @@ pub enum FcntlArg<'a> { F_ADD_SEALS(SealFlag), #[cfg(target_os = "linux")] F_GET_SEALS, + #[cfg(any(target_os = "macos", target_os = "ios"))] + F_FULLFSYNC, // TODO: Rest of flags } @@ -69,6 +71,8 @@ pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> { F_ADD_SEALS(flag) => libc::fcntl(fd, ffi::F_ADD_SEALS, flag.bits()), #[cfg(target_os = "linux")] F_GET_SEALS => libc::fcntl(fd, ffi::F_GET_SEALS), + #[cfg(any(target_os = "macos", target_os = "ios"))] + F_FULLFSYNC => libc::fcntl(fd, libc::F_FULLFSYNC), #[cfg(any(target_os = "linux", target_os = "android"))] _ => unimplemented!() } |