mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
Kernel: Don't assume paths of TTYs and pseudo terminals anymore
The obsolete ttyname and ptsname syscalls are removed. LibC doesn't rely on these anymore, and it helps simplifying the Kernel in many places, so it's an overall an improvement. In addition to that, /proc/PID/tty node is removed too as it is not needed anymore by userspace to get the attached TTY of a process, as /dev/tty (which is already a character device) represents that as well.
This commit is contained in:
parent
de7566c2c4
commit
b5ef900ccd
19 changed files with 13 additions and 141 deletions
|
@ -84,13 +84,12 @@ public:
|
|||
void emit_char(char);
|
||||
|
||||
private:
|
||||
explicit VirtualConsole(const unsigned index, NonnullOwnPtr<KString> tty_name);
|
||||
explicit VirtualConsole(const unsigned index);
|
||||
// ^KeyboardClient
|
||||
virtual void on_key_pressed(KeyEvent) override;
|
||||
|
||||
// ^TTY
|
||||
virtual ErrorOr<size_t> on_tty_write(const UserOrKernelBuffer&, size_t) override;
|
||||
virtual KString const& tty_name() const override { return *m_tty_name; }
|
||||
virtual void echo(u8) override;
|
||||
|
||||
// ^TerminalClient
|
||||
|
@ -112,8 +111,6 @@ private:
|
|||
bool m_active { false };
|
||||
bool m_graphical { false };
|
||||
|
||||
NonnullOwnPtr<KString> m_tty_name;
|
||||
|
||||
private:
|
||||
void initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue