2011-07-22 10:55:30 +02:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
#include <lib.h>
|
|
|
|
|
2013-11-04 22:48:08 +01:00
|
|
|
#include <string.h>
|
2011-07-22 10:55:30 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#ifdef __weak_alias
|
2012-06-28 14:56:50 +02:00
|
|
|
__weak_alias(vfork, __vfork14)
|
2011-07-22 10:55:30 +02:00
|
|
|
#endif
|
|
|
|
|
2013-11-04 22:48:08 +01:00
|
|
|
pid_t vfork(void)
|
2011-07-22 10:55:30 +02:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2013-11-04 22:48:08 +01:00
|
|
|
memset(&m, 0, sizeof(m));
|
|
|
|
return(_syscall(PM_PROC_NR, PM_FORK, &m));
|
2011-07-22 10:55:30 +02:00
|
|
|
}
|