summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/OpenFileDescription.h
diff options
context:
space:
mode:
authorTheFightingCatfish <seekingblues@gmail.com>2021-09-11 23:28:59 -0400
committerAndreas Kling <kling@serenityos.org>2021-09-12 11:24:02 +0200
commita81b21c1a7f80e9e44c87e607049a23e7d9f33fd (patch)
tree53e49882b19f6b409910e7f6aad81c6c4e4433ba /Kernel/FileSystem/OpenFileDescription.h
parentfd3735199b36e1b9a8776f377f8125bb5c93107f (diff)
downloadserenity-a81b21c1a7f80e9e44c87e607049a23e7d9f33fd.zip
Kernel+LibC: Implement fsync
Diffstat (limited to 'Kernel/FileSystem/OpenFileDescription.h')
-rw-r--r--Kernel/FileSystem/OpenFileDescription.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/FileSystem/OpenFileDescription.h b/Kernel/FileSystem/OpenFileDescription.h
index 2c3f1b1cfa..67413d4e74 100644
--- a/Kernel/FileSystem/OpenFileDescription.h
+++ b/Kernel/FileSystem/OpenFileDescription.h
@@ -122,6 +122,7 @@ public:
void set_original_custody(Badge<VirtualFileSystem>, Custody& custody);
KResult truncate(u64);
+ KResult sync();
off_t offset() const { return m_current_offset; }