core: Support fork, waitpid, execve.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 24 May 2018 17:54:42 +0000 (19:54 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 24 May 2018 17:54:42 +0000 (19:54 +0200)
commite4d0298d1bf0d8d8d0a5981011f7d3e4050dd2d1
tree10b295a964065c7fa01ec59ccf07fc326ed7b4c9
parent2d975951470ca4f408c66112eff675740c9ecfaf
core: Support fork, waitpid, execve.

* stage0/x86.M1 (SYS_fork, SYS_waitpid, SYS_execve): New define.
* lib/linux-gcc.c (fork, waitpid, execve): New function.
* lib/linux-mes.c (fork, waitpid, execve): New function.
* lib/libc.c (wait): New function.
* include/unistd.h (fork, execve): Declare.
* include/sys/wait.h (waitpid, wait): Declare.
* module/mes/posix.mes (search-path, execlp, system*, waitpid): New function.
* src/posix.c (primitive_fork, execl): New function.
include/sys/wait.h
include/unistd.h
lib/libc.c
lib/linux-gcc.c
lib/linux-mes.c
module/mes/posix.mes
src/posix.c
stage0/x86.M1