mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
mlibc: sys_fsync stub
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user