mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
UserspaceEmulator: Implement ioctl FIONBIO
This commit is contained in:
parent
0c88a53d4c
commit
b393fe573d
Notes:
sideshowbarker
2024-07-17 20:03:15 +09:00
Author: https://github.com/Rummskartoffel Commit: https://github.com/SerenityOS/serenity/commit/b393fe573d8 Pull-request: https://github.com/SerenityOS/serenity/pull/12180
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…
Reference in a new issue