UserspaceEmulator: Support ioctls TCSETSF and TCSETSW
This commit is contained in:
parent
1306fab711
commit
4eb5fdcfe0
Notes:
sideshowbarker
2024-07-17 20:20:37 +09:00
Author: https://github.com/Rummskartoffel Commit: https://github.com/SerenityOS/serenity/commit/4eb5fdcfe08
1 changed files with 1 additions and 1 deletions
|
@ -1126,7 +1126,7 @@ int Emulator::virt$ioctl([[maybe_unused]] int fd, unsigned request, [[maybe_unus
|
|||
mmu().copy_to_vm(arg, &termios, sizeof(termios));
|
||||
return rc;
|
||||
}
|
||||
if (request == TCSETS) {
|
||||
if (request == TCSETS || request == TCSETSF || request == TCSETSW) {
|
||||
struct termios termios;
|
||||
mmu().copy_from_vm(&termios, arg, sizeof(termios));
|
||||
return syscall(SC_ioctl, fd, request, &termios);
|
||||
|
|
Loading…
Add table
Reference in a new issue