summaryrefslogtreecommitdiff
path: root/Kernel/TTY/TTY.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-29 13:58:40 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-29 13:58:40 +0200
commit8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11 (patch)
tree75257c71c207ff7910aafd89517c0e31aa970e32 /Kernel/TTY/TTY.h
parent3761bc3ed7bc245e5ba4119136e6e33698b30300 (diff)
downloadserenity-8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11.zip
Kernel: Have File virtuals take a FileDescriptor& rather than a Process&.
This will allow us to implement different behaviors depending on the role of the descriptor a File is being accessed through.
Diffstat (limited to 'Kernel/TTY/TTY.h')
-rw-r--r--Kernel/TTY/TTY.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/TTY/TTY.h b/Kernel/TTY/TTY.h
index bcd2146b49..ffda96f967 100644
--- a/Kernel/TTY/TTY.h
+++ b/Kernel/TTY/TTY.h
@@ -10,11 +10,11 @@ class TTY : public CharacterDevice {
public:
virtual ~TTY() override;
- virtual ssize_t read(Process&, byte*, ssize_t) override;
- virtual ssize_t write(Process&, const byte*, ssize_t) override;
- virtual bool can_read(Process&) const override;
- virtual bool can_write(Process&) const override;
- virtual int ioctl(Process&, unsigned request, unsigned arg) override final;
+ virtual ssize_t read(FileDescriptor&, byte*, ssize_t) override;
+ virtual ssize_t write(FileDescriptor&, const byte*, ssize_t) override;
+ virtual bool can_read(FileDescriptor&) const override;
+ virtual bool can_write(FileDescriptor&) const override;
+ virtual int ioctl(FileDescriptor&, unsigned request, unsigned arg) override final;
virtual String absolute_path() const override { return tty_name(); }
virtual String tty_name() const = 0;