diff options
author | TheFightingCatfish <seekingblues@gmail.com> | 2021-09-11 23:28:59 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 11:24:02 +0200 |
commit | a81b21c1a7f80e9e44c87e607049a23e7d9f33fd (patch) | |
tree | 53e49882b19f6b409910e7f6aad81c6c4e4433ba /Userland | |
parent | fd3735199b36e1b9a8776f377f8125bb5c93107f (diff) | |
download | serenity-a81b21c1a7f80e9e44c87e607049a23e7d9f33fd.zip |
Kernel+LibC: Implement fsync
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibC/unistd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibC/unistd.cpp b/Userland/Libraries/LibC/unistd.cpp index b4f7c76e36..7f7aa566c4 100644 --- a/Userland/Libraries/LibC/unistd.cpp +++ b/Userland/Libraries/LibC/unistd.cpp @@ -709,10 +709,10 @@ void sysbeep() syscall(SC_beep); } -int fsync([[maybe_unused]] int fd) +int fsync(int fd) { - dbgln("FIXME: Implement fsync()"); - return 0; + int rc = syscall(SC_fsync, fd); + __RETURN_WITH_ERRNO(rc, rc, -1); } int halt() |