minix/lib/nbsd_libc/sys-minix/vfork.c
Arun Thomas f9ccc501f8 Add vfork() system call
-Same semantics as fork() as it's really just a stub
-Eases porting of BSD utilities
2011-07-22 10:55:30 +02:00

16 lines
222 B
C

#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
#include <unistd.h>
#ifdef __weak_alias
__weak_alias(vfork, _vfork)
#endif
PUBLIC pid_t vfork()
{
message m;
return(_syscall(PM_PROC_NR, FORK, &m));
}