summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorRummskartoffel <Rummskartoffel@protonmail.com>2022-01-26 15:00:58 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-29 11:22:43 +0100
commitef151afac87d4c3c22ac561bf8c66e8c0c070281 (patch)
treed1e38447c54dc24bfe3b10808cdd31bbad60bc68 /Userland/DevTools
parentb393fe573d8108ed8f61bb1ceed06628b8c5ec49 (diff)
downloadserenity-ef151afac87d4c3c22ac561bf8c66e8c0c070281.zip
UserspaceEmulator: Implement ioctl TIOCSWINSZ
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp5
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: {