mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 17:38:12 +00:00
Pass the process to CharacterDevice::read/write.
This is much nicer than grabbing directly at 'current' inside a read().
This commit is contained in:
parent
08bfe518f9
commit
bd3e77cc16
27 changed files with 63 additions and 62 deletions
|
@ -28,14 +28,14 @@ bool Console::can_read(Process&) const
|
|||
return false;
|
||||
}
|
||||
|
||||
ssize_t Console::read(byte*, size_t)
|
||||
ssize_t Console::read(Process&, byte*, size_t)
|
||||
{
|
||||
// FIXME: Implement reading from the console.
|
||||
// Maybe we could use a ring buffer for this device?
|
||||
return 0;
|
||||
}
|
||||
|
||||
ssize_t Console::write(const byte* data, size_t size)
|
||||
ssize_t Console::write(Process&, const byte* data, size_t size)
|
||||
{
|
||||
if (!size)
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue