mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:05:06 +00:00
Kernel: Support F_SETLKW in fcntl
This commit is contained in:
parent
9db10887a1
commit
3a80b25ed6
7 changed files with 133 additions and 29 deletions
|
@ -445,12 +445,12 @@ FileBlockerSet& OpenFileDescription::blocker_set()
|
|||
return m_file->blocker_set();
|
||||
}
|
||||
|
||||
ErrorOr<void> OpenFileDescription::apply_flock(Process const& process, Userspace<flock const*> lock)
|
||||
ErrorOr<void> OpenFileDescription::apply_flock(Process const& process, Userspace<flock const*> lock, ShouldBlock should_block)
|
||||
{
|
||||
if (!m_inode)
|
||||
return EBADF;
|
||||
|
||||
return m_inode->apply_flock(process, *this, lock);
|
||||
return m_inode->apply_flock(process, *this, lock, should_block);
|
||||
}
|
||||
|
||||
ErrorOr<void> OpenFileDescription::get_flock(Userspace<flock*> lock) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue