mlibc: sys_fsync stub

This commit is contained in:
Matheus
2023-07-09 18:12:56 -03:00
parent 4793f61708
commit f3a4d85ae6
+7 -2
View File
@@ -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 <bits/ensure.h>
+#include <mlibc/debug.hpp>
+#include <mlibc/all-sysdeps.hpp>
@@ -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);