summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/vfork.c
blob: 9a3523b36361cbdea3994e98b792d96b36962fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>

#include <string.h>
#include <unistd.h>

#ifdef __weak_alias
__weak_alias(vfork, __vfork14)
#endif

pid_t vfork(void)
{
  message m;

  memset(&m, 0, sizeof(m));
  return(_syscall(PM_PROC_NR, PM_FORK, &m));
}