From: Matthias Kruk Date: Sun, 17 May 2020 05:45:08 +0000 (+0900) Subject: libc: Add implementation for _exit(), add vfork() dummy implementation X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=0241d1ab4b66ccf08c4a8b5a87bdd74c86bd005c;p=corax libc: Add implementation for _exit(), add vfork() dummy implementation --- diff --git a/libc/syscall.S b/libc/syscall.S index 804527a..d662ea4 100644 --- a/libc/syscall.S +++ b/libc/syscall.S @@ -67,6 +67,7 @@ debug: ret fork: +vfork: pushl %ebx movl $SYS_FORK, %eax @@ -75,6 +76,16 @@ fork: popl %ebx ret +_exit: + pushl %ebx + + movl $SYS_EXIT, %eax + movl 8(%esp), %ebx + int $SYSCALL_POSIX + + popl %ebx + ret + execeve: pushl %ebx