mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Kernel+LibC: Implement fsync
This commit is contained in:
committed by
Andreas Kling
parent
fd3735199b
commit
a81b21c1a7
Notes:
sideshowbarker
2024-07-18 04:12:18 +09:00
Author: https://github.com/SeekingBlues Commit: https://github.com/SerenityOS/serenity/commit/a81b21c1a7f Pull-request: https://github.com/SerenityOS/serenity/pull/9983
@@ -383,6 +383,12 @@ KResult OpenFileDescription::truncate(u64 length)
|
||||
return m_file->truncate(length);
|
||||
}
|
||||
|
||||
KResult OpenFileDescription::sync()
|
||||
{
|
||||
MutexLocker locker(m_lock);
|
||||
return m_file->sync();
|
||||
}
|
||||
|
||||
bool OpenFileDescription::is_fifo() const
|
||||
{
|
||||
return m_file->is_fifo();
|
||||
|
||||
Reference in New Issue
Block a user