diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2020-04-10 19:44:42 +1000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-10 11:59:30 +0200 |
commit | a3edeb5868abbd642d55d25f84c6ef83a7c7c9a2 (patch) | |
tree | dca1fe766c20f592e45a28b77563cb3e9f40d7e4 /Kernel/FileSystem/InodeWatcher.cpp | |
parent | 68c7ca7d3b246c5233dc6c93fa04f731beadafaa (diff) | |
download | serenity-a3edeb5868abbd642d55d25f84c6ef83a7c7c9a2.zip |
Kernel: Add explicit offset parameter to File::read etc
Diffstat (limited to 'Kernel/FileSystem/InodeWatcher.cpp')
-rw-r--r-- | Kernel/FileSystem/InodeWatcher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/FileSystem/InodeWatcher.cpp b/Kernel/FileSystem/InodeWatcher.cpp index e8c5ffd540..85a6e751bc 100644 --- a/Kernel/FileSystem/InodeWatcher.cpp +++ b/Kernel/FileSystem/InodeWatcher.cpp @@ -47,17 +47,17 @@ InodeWatcher::~InodeWatcher() safe_inode->unregister_watcher({}, *this); } -bool InodeWatcher::can_read(const FileDescription&) const +bool InodeWatcher::can_read(const FileDescription&, size_t) const { return !m_queue.is_empty() || !m_inode; } -bool InodeWatcher::can_write(const FileDescription&) const +bool InodeWatcher::can_write(const FileDescription&, size_t) const { return true; } -ssize_t InodeWatcher::read(FileDescription&, u8* buffer, ssize_t buffer_size) +ssize_t InodeWatcher::read(FileDescription&, size_t, u8* buffer, ssize_t buffer_size) { ASSERT(!m_queue.is_empty() || !m_inode); @@ -71,7 +71,7 @@ ssize_t InodeWatcher::read(FileDescription&, u8* buffer, ssize_t buffer_size) return sizeof(event); } -ssize_t InodeWatcher::write(FileDescription&, const u8*, ssize_t) +ssize_t InodeWatcher::write(FileDescription&, size_t, const u8*, ssize_t) { return -EIO; } |