mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
Kernel: Use KResultOr<size_t> throughout the TTY subsystem
Previously the VirtualConsole::on_tty_write() method would return an incorrect value when an error had occurred. This prompted me to update the TTY subsystem to use KResultOr<size_t> everywhere.
This commit is contained in:
parent
a49a15cabf
commit
1c3346e3ce
9 changed files with 29 additions and 29 deletions
|
@ -53,7 +53,7 @@ public:
|
|||
virtual mode_t required_mode() const override { return 0620; }
|
||||
|
||||
protected:
|
||||
virtual ssize_t on_tty_write(const UserOrKernelBuffer&, ssize_t) = 0;
|
||||
virtual KResultOr<size_t> on_tty_write(const UserOrKernelBuffer&, size_t) = 0;
|
||||
void set_size(unsigned short columns, unsigned short rows);
|
||||
|
||||
TTY(unsigned major, unsigned minor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue