Merge branch 'sync_impl' into 'master'

sync implementation

See merge request redox-os/relibc!375
This commit is contained in:
Jeremy Soller
2023-04-26 18:24:48 +00:00
4 changed files with 11 additions and 1 deletions
+4
View File
@@ -480,6 +480,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 }
}