diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 09:17:22 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 09:17:22 +0100 |
commit | e452303c664c3facfebe39539da0d796029bc603 (patch) | |
tree | 3e2ac04f858d480843606b3000cc4e5e7ac57c09 /Kernel/TTY.h | |
parent | 49b63281a09b61ab608f51a771f124f14c1ee1ad (diff) | |
download | serenity-e452303c664c3facfebe39539da0d796029bc603.zip |
Allow character devices to block write attempts until there is more space.
Diffstat (limited to 'Kernel/TTY.h')
-rw-r--r-- | Kernel/TTY.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/TTY.h b/Kernel/TTY.h index 8d92f89391..b739d55e17 100644 --- a/Kernel/TTY.h +++ b/Kernel/TTY.h @@ -13,6 +13,7 @@ public: virtual ssize_t read(byte*, size_t) override; virtual ssize_t write(const byte*, size_t) override; virtual bool has_data_available_for_reading(Process&) const override; + virtual bool can_write(Process&) const override; virtual int ioctl(Process&, unsigned request, unsigned arg) override final; virtual String tty_name() const = 0; |