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 /Kernel/FileSystem/OpenFileDescription.h | |
parent | fd3735199b36e1b9a8776f377f8125bb5c93107f (diff) | |
download | serenity-a81b21c1a7f80e9e44c87e607049a23e7d9f33fd.zip |
Kernel+LibC: Implement fsync
Diffstat (limited to 'Kernel/FileSystem/OpenFileDescription.h')
-rw-r--r-- | Kernel/FileSystem/OpenFileDescription.h | 1 |
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; } |