diff options
author | Philipp Keller <philipp.keller@gmail.com> | 2016-09-16 07:14:29 +0200 |
---|---|---|
committer | Philipp Keller <philipp.keller@gmail.com> | 2016-09-16 07:14:29 +0200 |
commit | 631a27a545906f739e50393509e71fb847740c3a (patch) | |
tree | 1d3279093084c3f2b650bb3ff8b88c2df9c2d69c /src/fcntl.rs | |
parent | 23a7ea64938cc73d476e42b80a243fefbe7111b2 (diff) | |
parent | 7c0570d3ad3c8e5fdd45c7de745771a6be054c3c (diff) | |
download | nix-631a27a545906f739e50393509e71fb847740c3a.zip |
made it running with rust 1.2, added documentation to mkstemp
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!() } |