mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
UserspaceEmulator: Add the getpgrp syscall
This commit is contained in:
parent
8dea25d974
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