ref: 82985457cab187b4e4b2f6706cdea31a2f3fa879
parent: c09d58a66ff792a639ec64e51f658ef3277a7441
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue May 17 15:32:18 EDT 2022
libc: Add _fork() syscall This syscall is needed to implement system() in posix systems.
--- a/src/libc/objs/amd64-linux.mk
+++ b/src/libc/objs/amd64-linux.mk
@@ -7,6 +7,7 @@
arch/amd64/linux/_close.$O\
arch/amd64/linux/_execve.$O\
arch/amd64/linux/_exit.$O\
+ arch/amd64/linux/_fork.$O\
arch/amd64/linux/_getpid.$O\
arch/amd64/linux/_getrusage.$O\
arch/amd64/linux/_gettimeofday.$O\
--- a/src/libc/objs/amd64-netbsd.mk
+++ b/src/libc/objs/amd64-netbsd.mk
@@ -11,6 +11,7 @@
arch/amd64/netbsd/_brk.$O\
arch/amd64/netbsd/_close.$O\
arch/amd64/netbsd/_exit.$O\
+ arch/amd64/netbsd/_fork.$O\
arch/amd64/netbsd/_getpid.$O\
arch/amd64/netbsd/_kill.$O\
arch/amd64/netbsd/_lseek.$O\
--- a/src/libc/objs/amd64-openbsd.mk
+++ b/src/libc/objs/amd64-openbsd.mk
@@ -5,6 +5,7 @@
arch/amd64/openbsd/_brk.$O\
arch/amd64/openbsd/_close.$O\
arch/amd64/openbsd/_exit.$O\
+ arch/amd64/openbsd/_fork.$O\
arch/amd64/openbsd/_getpid.$O\
arch/amd64/openbsd/_gettimeofday.$O\
arch/amd64/openbsd/_kill.$O\