1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:35:07 +00:00

Kernel: Support O_APPEND

As per the manpage, this acts as a transparent lseek() before write.
This commit is contained in:
Robin Burchell 2019-05-26 01:18:04 +02:00 committed by Andreas Kling
parent 90dbf689c0
commit c6e79bd53a
3 changed files with 13 additions and 2 deletions

View file

@ -75,6 +75,7 @@ Retained<FileDescriptor> FileDescriptor::clone()
ASSERT(descriptor);
descriptor->m_current_offset = m_current_offset;
descriptor->m_is_blocking = m_is_blocking;
descriptor->m_should_append = m_should_append;
descriptor->m_file_flags = m_file_flags;
return *descriptor;
}