We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae85db7 + ae6635f commit fd4a510Copy full SHA for fd4a510
src/fcntl.rs
@@ -46,6 +46,8 @@ pub enum FcntlArg<'a> {
46
F_ADD_SEALS(SealFlag),
47
#[cfg(target_os = "linux")]
48
F_GET_SEALS,
49
+ #[cfg(any(target_os = "macos", target_os = "ios"))]
50
+ F_FULLFSYNC,
51
52
// TODO: Rest of flags
53
}
@@ -69,6 +71,8 @@ pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
69
71
F_ADD_SEALS(flag) => libc::fcntl(fd, ffi::F_ADD_SEALS, flag.bits()),
70
72
73
F_GET_SEALS => libc::fcntl(fd, ffi::F_GET_SEALS),
74
75
+ F_FULLFSYNC => libc::fcntl(fd, libc::F_FULLFSYNC),
76
#[cfg(any(target_os = "linux", target_os = "android"))]
77
_ => unimplemented!()
78
0 commit comments