mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
|
@ -573,12 +573,12 @@ KeyboardDevice::~KeyboardDevice()
|
|||
{
|
||||
}
|
||||
|
||||
bool KeyboardDevice::can_read(const FileDescription&) const
|
||||
bool KeyboardDevice::can_read(const FileDescription&, size_t) const
|
||||
{
|
||||
return !m_queue.is_empty();
|
||||
}
|
||||
|
||||
ssize_t KeyboardDevice::read(FileDescription&, u8* buffer, ssize_t size)
|
||||
ssize_t KeyboardDevice::read(FileDescription&, size_t, u8* buffer, ssize_t size)
|
||||
{
|
||||
ssize_t nread = 0;
|
||||
while (nread < size) {
|
||||
|
@ -594,7 +594,7 @@ ssize_t KeyboardDevice::read(FileDescription&, u8* buffer, ssize_t size)
|
|||
return nread;
|
||||
}
|
||||
|
||||
ssize_t KeyboardDevice::write(FileDescription&, const u8*, ssize_t)
|
||||
ssize_t KeyboardDevice::write(FileDescription&, size_t, const u8*, ssize_t)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue