Kernel: Add explicit offset parameter to File::read etc

This commit is contained in:
Conrad Pankoff 2020-04-10 19:44:42 +10:00 committed by Andreas Kling
commit a3edeb5868
Notes: sideshowbarker 2024-07-19 07:45:06 +09:00
45 changed files with 199 additions and 183 deletions

View file

@ -168,7 +168,7 @@ void IPv4Socket::detach(FileDescription&)
{
}
bool IPv4Socket::can_read(const FileDescription&) const
bool IPv4Socket::can_read(const FileDescription&, size_t) const
{
if (m_role == Role::Listener)
return can_accept();
@ -177,7 +177,7 @@ bool IPv4Socket::can_read(const FileDescription&) const
return m_can_read;
}
bool IPv4Socket::can_write(const FileDescription&) const
bool IPv4Socket::can_write(const FileDescription&, size_t) const
{
return is_connected();
}