From 0eb788d6417670a251373c39c5e353e1cd69a5b6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 19 May 2019 19:54:20 +0200 Subject: [PATCH] LibC: Add stub for fsync(). --- LibC/unistd.cpp | 7 +++++++ LibC/unistd.h | 1 + 2 files changed, 8 insertions(+) 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();