mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
Kernel: Support O_APPEND
As per the manpage, this acts as a transparent lseek() before write.
This commit is contained in:
parent
90dbf689c0
commit
c6e79bd53a
3 changed files with 13 additions and 2 deletions
|
@ -70,6 +70,8 @@ public:
|
|||
|
||||
bool is_blocking() const { return m_is_blocking; }
|
||||
void set_blocking(bool b) { m_is_blocking = b; }
|
||||
bool should_append() const { return m_should_append; }
|
||||
void set_should_append(bool s) { m_should_append = s; }
|
||||
|
||||
dword file_flags() const { return m_file_flags; }
|
||||
void set_file_flags(dword flags) { m_file_flags = flags; }
|
||||
|
@ -113,6 +115,7 @@ private:
|
|||
dword m_file_flags { 0 };
|
||||
|
||||
bool m_is_blocking { true };
|
||||
bool m_should_append { false };
|
||||
SocketRole m_socket_role { SocketRole::None };
|
||||
FIFO::Direction m_fifo_direction { FIFO::Direction::Neither };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue