mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
UserspaceEmulator: Support ioctls TCSETSF and TCSETSW
This commit is contained in:
parent
1306fab711
commit
4eb5fdcfe0
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));
|
mmu().copy_to_vm(arg, &termios, sizeof(termios));
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
if (request == TCSETS) {
|
if (request == TCSETS || request == TCSETSF || request == TCSETSW) {
|
||||||
struct termios termios;
|
struct termios termios;
|
||||||
mmu().copy_from_vm(&termios, arg, sizeof(termios));
|
mmu().copy_from_vm(&termios, arg, sizeof(termios));
|
||||||
return syscall(SC_ioctl, fd, request, &termios);
|
return syscall(SC_ioctl, fd, request, &termios);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue