diff options
author | Rummskartoffel <Rummskartoffel@protonmail.com> | 2022-01-26 15:00:58 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-29 11:22:43 +0100 |
commit | ef151afac87d4c3c22ac561bf8c66e8c0c070281 (patch) | |
tree | d1e38447c54dc24bfe3b10808cdd31bbad60bc68 /Userland/DevTools | |
parent | b393fe573d8108ed8f61bb1ceed06628b8c5ec49 (diff) | |
download | serenity-ef151afac87d4c3c22ac561bf8c66e8c0c070281.zip |
UserspaceEmulator: Implement ioctl TIOCSWINSZ
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp index a0418c3fdd..eae8470506 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp +++ b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp @@ -1117,6 +1117,11 @@ int Emulator::virt$ioctl([[maybe_unused]] int fd, unsigned request, [[maybe_unus mmu().copy_to_vm(arg, &ws, sizeof(winsize)); return 0; } + case TIOCSWINSZ: { + struct winsize ws; + mmu().copy_from_vm(&ws, arg, sizeof(winsize)); + return syscall(SC_ioctl, fd, request, &ws); + } case TIOCSPGRP: return syscall(SC_ioctl, fd, request, arg); case TCGETS: { |