diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-07 09:36:51 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-07 09:36:51 +0200 |
commit | 08cd75ac4baa2814bb6154c3ad127957b3b03b7c (patch) | |
tree | 87d8bcc40d4bd536c02cbef49c91e5520a44594a /Kernel/TTY/TTY.h | |
parent | 69a6ce90df7e0f074a714e0938cfd526076e38a3 (diff) | |
download | serenity-08cd75ac4baa2814bb6154c3ad127957b3b03b7c.zip |
Kernel: Rename FileDescriptor to FileDescription.
After reading a bunch of POSIX specs, I've learned that a file descriptor
is the number that refers to a file description, not the description itself.
So this patch renames FileDescriptor to FileDescription, and Process now has
FileDescription* file_description(int fd).
Diffstat (limited to 'Kernel/TTY/TTY.h')
-rw-r--r-- | Kernel/TTY/TTY.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Kernel/TTY/TTY.h b/Kernel/TTY/TTY.h index 150b7c3761..78c7762829 100644 --- a/Kernel/TTY/TTY.h +++ b/Kernel/TTY/TTY.h @@ -10,12 +10,12 @@ class TTY : public CharacterDevice { public: virtual ~TTY() override; - 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 FileDescriptor&) const override { return tty_name(); } + virtual ssize_t read(FileDescription&, byte*, ssize_t) override; + virtual ssize_t write(FileDescription&, const byte*, ssize_t) override; + virtual bool can_read(FileDescription&) const override; + virtual bool can_write(FileDescription&) const override; + virtual int ioctl(FileDescription&, unsigned request, unsigned arg) override final; + virtual String absolute_path(const FileDescription&) const override { return tty_name(); } virtual String tty_name() const = 0; |