mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
UserspaceEmulator: Implement ioctl FIONBIO
This commit is contained in:
parent
0c88a53d4c
commit
b393fe573d
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, Rummskartoffel <Rummskartoffel@protonmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -1151,6 +1152,11 @@ int Emulator::virt$ioctl([[maybe_unused]] int fd, unsigned request, [[maybe_unus
|
|||
}
|
||||
case FB_IOCTL_SET_HEAD_VERTICAL_OFFSET_BUFFER:
|
||||
return syscall(SC_ioctl, fd, request, arg);
|
||||
case FIONBIO: {
|
||||
int enabled;
|
||||
mmu().copy_from_vm(&enabled, arg, sizeof(int));
|
||||
return syscall(SC_ioctl, fd, request, &enabled);
|
||||
}
|
||||
default:
|
||||
reportln("Unsupported ioctl: {}", request);
|
||||
dump_backtrace();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue