Allow character devices to block write attempts until there is more space.

This commit is contained in:
Andreas Kling 2019-01-15 09:17:22 +01:00
commit e452303c66
Notes: sideshowbarker 2024-07-19 16:02:08 +09:00
21 changed files with 39 additions and 7 deletions

View file

@ -14,6 +14,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 bool is_master_pty() const override { return true; }
String pts_name() const;