sync implementation

This commit is contained in:
David Carlier
2023-04-22 13:20:18 +01:00
parent 673c1e3adc
commit a561e682a3
4 changed files with 11 additions and 1 deletions
+4
View File
@@ -476,6 +476,10 @@ impl Pal for Sys {
e(unsafe { syscall!(SYMLINKAT, path1.as_ptr(), AT_FDCWD, path2.as_ptr()) }) as c_int
}
fn sync() -> c_int {
e(unsafe { syscall!(SYNC) }) as c_int
}
fn umask(mask: mode_t) -> mode_t {
unsafe { syscall!(UMASK, mask) as mode_t }
}