relibc: add syncfs() syscall binding

Added syncfs(fd) which calls fsync(fd) — equivalent on Red Bear
since all filesystem I/O is synchronous. Cross-referenced with
Linux 7.1 fs/sync.c.
This commit is contained in:
Red Bear OS
2026-07-09 11:25:05 +03:00
parent 78d02e3f19
commit b0e4502b6e
+5
View File
@@ -1426,6 +1426,11 @@ impl Pal for Sys {
Ok(())
}
fn syncfs(fd: c_int) -> Result<()> {
// Red Bear filesystem I/O is synchronous — fsync(fd) is sufficient.
Self::fsync(fd)
}
fn timer_create(clock_id: clockid_t, evp: &sigevent, mut timerid: Out<timer_t>) -> Result<()> {
if evp.sigev_notify == SIGEV_THREAD {
if evp.sigev_notify_function.is_none() {