diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-04 16:27:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-04 18:17:16 +0200 |
commit | 58feebeed28bab04e7b462f7cd3beb81984f116e (patch) | |
tree | 7bfbab024632cb8174cdf7e61813598dcd115b77 /Kernel/TTY/TTY.h | |
parent | cb1fcd3eaf964832417cafd4df981f77be3697ad (diff) | |
download | serenity-58feebeed28bab04e7b462f7cd3beb81984f116e.zip |
Kernel+LibC: Tidy up sys$ttyname() and sys$ptsname()
- Remove goofy _r suffix from syscall names.
- Don't take a signed buffer size.
- Use Userspace<T>.
- Make TTY::tty_name() return a String instead of a StringView.
Diffstat (limited to 'Kernel/TTY/TTY.h')
-rw-r--r-- | Kernel/TTY/TTY.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/TTY.h b/Kernel/TTY/TTY.h index 7e7470fa8e..46268000ce 100644 --- a/Kernel/TTY/TTY.h +++ b/Kernel/TTY/TTY.h @@ -46,7 +46,7 @@ public: virtual int ioctl(FileDescription&, unsigned request, FlatPtr arg) override final; virtual String absolute_path(const FileDescription&) const override { return tty_name(); } - virtual StringView tty_name() const = 0; + virtual String tty_name() const = 0; unsigned short rows() const { return m_rows; } unsigned short columns() const { return m_columns; } |