1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Implemented sys$execve().

It's really crufty, but it basically works!
This commit is contained in:
Andreas Kling 2018-11-03 01:49:40 +01:00
parent b59ce22fc5
commit 202bdb553c
9 changed files with 215 additions and 21 deletions

View file

@ -130,6 +130,8 @@ static DWORD handle(RegisterDump& regs, DWORD function, DWORD arg1, DWORD arg2,
return current->sys$tcsetpgrp((int)arg1, (pid_t)arg2);
case Syscall::PosixFork:
return current->sys$fork(regs);
case Syscall::PosixExecve:
return current->sys$execve((const char*)arg1, (const char**)arg2, (const char**)arg3);
default:
kprintf("<%u> int0x80: Unknown function %x requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
break;