1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

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.
This commit is contained in:
Andreas Kling 2020-08-04 16:27:52 +02:00
parent cb1fcd3eaf
commit 58feebeed2
9 changed files with 15 additions and 19 deletions

View file

@ -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; }