mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
UserspaceEmulator: Add the getpgrp syscall
This commit is contained in:
parent
8dea25d974
commit
3717a00290
Notes:
sideshowbarker
2024-07-19 04:15:23 +09:00
Author: https://github.com/awesomekling
Commit: 3717a00290
2 changed files with 8 additions and 0 deletions
|
@ -250,6 +250,8 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
|
|||
dbgprintf("Syscall: %s (%x)\n", Syscall::to_string((Syscall::Function)function), function);
|
||||
#endif
|
||||
switch (function) {
|
||||
case SC_getpgrp:
|
||||
return virt$getpgrp();
|
||||
case SC_execve:
|
||||
return virt$execve(arg1);
|
||||
case SC_sleep:
|
||||
|
@ -1234,4 +1236,9 @@ void Emulator::setup_signal_trampoline()
|
|||
mmu().add_region(move(trampoline_region));
|
||||
}
|
||||
|
||||
int Emulator::virt$getpgrp()
|
||||
{
|
||||
return syscall(SC_getpgrp);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue