mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Kernel: Added TIOCSTI ioctl placeholder (#6037)
Added a dummy TIOCSTI ioctl placeholder. This is a dangerous ioctl that can be used to inject input into a tty. Added for compatibility. Always fails with EIO.
This commit is contained in:
parent
6718941715
commit
19c578024b
2 changed files with 4 additions and 0 deletions
|
@ -414,6 +414,8 @@ int TTY::ioctl(FileDescription&, unsigned request, FlatPtr arg)
|
|||
case TIOCSCTTY:
|
||||
current_process.set_tty(this);
|
||||
return 0;
|
||||
case TIOCSTI:
|
||||
return -EIO;
|
||||
case TIOCNOTTY:
|
||||
current_process.set_tty(nullptr);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue