summaryrefslogtreecommitdiff
path: root/LibC
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-19 19:54:20 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-19 19:54:20 +0200
commit0eb788d6417670a251373c39c5e353e1cd69a5b6 (patch)
tree411bc6e9d903c52e65f10e71668bae16776c6e04 /LibC
parent189b342e6f372770395a764ffd88e96ab1ebc1a5 (diff)
downloadserenity-0eb788d6417670a251373c39c5e353e1cd69a5b6.zip
LibC: Add stub for fsync().
Diffstat (limited to 'LibC')
-rw-r--r--LibC/unistd.cpp7
-rw-r--r--LibC/unistd.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/LibC/unistd.cpp b/LibC/unistd.cpp
index a31600c97b..22a4204b8f 100644
--- a/LibC/unistd.cpp
+++ b/LibC/unistd.cpp
@@ -480,4 +480,11 @@ void sysbeep()
syscall(SC_beep);
}
+int fsync(int fd)
+{
+ UNUSED_PARAM(fd);
+ dbgprintf("FIXME: Implement fsync()\n");
+ return 0;
+}
+
}
diff --git a/LibC/unistd.h b/LibC/unistd.h
index c8cfa50086..a9cacca3a4 100644
--- a/LibC/unistd.h
+++ b/LibC/unistd.h
@@ -14,6 +14,7 @@ __BEGIN_DECLS
extern char** environ;
+int fsync(int fd);
void sysbeep();
int systrace(pid_t);
int gettid();