unistd: fdatasync implementation.

This commit is contained in:
David Carlier
2023-04-19 21:48:54 +01:00
parent 673c1e3adc
commit 3456b4f30e
4 changed files with 12 additions and 1 deletions
+4
View File
@@ -145,6 +145,10 @@ impl Pal for Sys {
e(unsafe { syscall!(FCHOWN, fildes, owner, group) }) as c_int
}
fn fdatasync(fildes: c_int) -> c_int {
e(unsafe { syscall!(FDATASYNC, fildes) }) as c_int
}
fn flock(fd: c_int, operation: c_int) -> c_int {
e(unsafe { syscall!(FLOCK, fd, operation) }) as c_int
}