Kernel: add is_tty() to inode

This commit is contained in:
Bananymous 2023-07-24 22:19:59 +03:00
parent f76d921e25
commit cd64c1cfec
2 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,7 @@ namespace Kernel
virtual bool is_device() const { return false; } virtual bool is_device() const { return false; }
virtual bool is_pipe() const { return false; } virtual bool is_pipe() const { return false; }
virtual bool is_tty() const { return false; }
virtual BAN::ErrorOr<BAN::String> link_target() { ASSERT_NOT_REACHED(); } virtual BAN::ErrorOr<BAN::String> link_target() { ASSERT_NOT_REACHED(); }

View File

@ -109,6 +109,7 @@ namespace Kernel
public: public:
virtual dev_t rdev() const override { return m_rdev; } virtual dev_t rdev() const override { return m_rdev; }
virtual bool is_tty() const override { return true; }
private: private:
dev_t m_rdev; dev_t m_rdev;