diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-16 00:20:38 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-16 00:20:38 +0100 |
commit | bd3e77cc167bbbaf294c2309511f42315ee6ad6a (patch) | |
tree | d21e3b87b7648cba129c09490b6fd87342593959 /Kernel/TTY.h | |
parent | 08bfe518f909bcf0c241d910da16754cf97c4078 (diff) | |
download | serenity-bd3e77cc167bbbaf294c2309511f42315ee6ad6a.zip |
Pass the process to CharacterDevice::read/write.
This is much nicer than grabbing directly at 'current' inside a read().
Diffstat (limited to 'Kernel/TTY.h')
-rw-r--r-- | Kernel/TTY.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/TTY.h b/Kernel/TTY.h index b708bed1d9..abe06a9141 100644 --- a/Kernel/TTY.h +++ b/Kernel/TTY.h @@ -10,8 +10,8 @@ class TTY : public CharacterDevice { public: virtual ~TTY() override; - virtual ssize_t read(byte*, size_t) override; - virtual ssize_t write(const byte*, size_t) override; + virtual ssize_t read(Process&, byte*, size_t) override; + virtual ssize_t write(Process&, const byte*, size_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; |