From f3a4d85ae64e4a4d89f3cae89397409b7047b995 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 9 Jul 2023 18:12:56 -0300 Subject: [PATCH] mlibc: sys_fsync stub --- patches/mlibc/jinx-working-patch.patch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/patches/mlibc/jinx-working-patch.patch b/patches/mlibc/jinx-working-patch.patch index 78e78262..ec41d469 100644 --- a/patches/mlibc/jinx-working-patch.patch +++ b/patches/mlibc/jinx-working-patch.patch @@ -133,10 +133,10 @@ index 0000000..e5b087a + diff --git mlibc-workdir/sysdeps/astral/generic/generic.cpp mlibc-workdir/sysdeps/astral/generic/generic.cpp new file mode 100644 -index 0000000..023c581 +index 0000000..d233630 --- /dev/null +++ mlibc-workdir/sysdeps/astral/generic/generic.cpp -@@ -0,0 +1,422 @@ +@@ -0,0 +1,427 @@ +#include +#include +#include @@ -211,6 +211,11 @@ index 0000000..023c581 + return 0; + } + ++ int sys_fsync(int fd) { ++ // TODO as the VFS does not do caching as of yet, this system call is stubbed and should be implemented once caching is done ++ return 0; ++ } ++ + int sys_tcgetattr(int fd, struct termios *attr){ + int res; + return sys_ioctl(fd, TCGETS, (void *)attr, &res);