mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Kernel: Add explicit offset parameter to File::read etc
This commit is contained in:
parent
68c7ca7d3b
commit
a3edeb5868
45 changed files with 199 additions and 183 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue