diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-19 19:54:20 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-19 19:54:20 +0200 |
commit | 0eb788d6417670a251373c39c5e353e1cd69a5b6 (patch) | |
tree | 411bc6e9d903c52e65f10e71668bae16776c6e04 /LibC | |
parent | 189b342e6f372770395a764ffd88e96ab1ebc1a5 (diff) | |
download | serenity-0eb788d6417670a251373c39c5e353e1cd69a5b6.zip |
LibC: Add stub for fsync().
Diffstat (limited to 'LibC')
-rw-r--r-- | LibC/unistd.cpp | 7 | ||||
-rw-r--r-- | LibC/unistd.h | 1 |
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(); |