mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Add explicit offset parameter to File::read etc
This commit is contained in:
parent
68c7ca7d3b
commit
a3edeb5868
Notes:
sideshowbarker
2024-07-19 07:45:06 +09:00
Author: https://github.com/deoxxa
Commit: a3edeb5868
Pull-request: https://github.com/SerenityOS/serenity/pull/1725
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