mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-04-19 22:58:11 -04:00
We currently implement `TCGETS`, `TCSETS` and `TCSETSW` which operate on a `Termios` struct. glibc uses the `Termios2` variants of these syscalls to additionally get the terminal baud rate. Use a `Termios2` as the main state of the tty. Return that struct verbatim for the newly implemented `Termios2` ioctls. Convert to/from the legacy `Termios` struct for the currently implemented ioctls.