diff options
author | midipix <writeonce@midipix.org> | 2018-01-11 17:25:14 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-01-11 17:25:14 -0500 |
commit | 5380056069790fa8b7ce120c8d5747accf970f58 (patch) | |
tree | 3c3a5dbe044de437bed08d1da6311ce280d8242b /src/process/nt32 | |
parent | 962692a1c7c1d534c2e2daa93de1db5933ae61bf (diff) | |
download | mmglue-5380056069790fa8b7ce120c8d5747accf970f58.tar.bz2 mmglue-5380056069790fa8b7ce120c8d5747accf970f58.tar.xz |
vfork(3) is now a wrapper around the assembly-based vfork(2).
Diffstat (limited to 'src/process/nt32')
-rw-r--r-- | src/process/nt32/vfork.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/process/nt32/vfork.c b/src/process/nt32/vfork.c new file mode 100644 index 0000000..b5fc74b --- /dev/null +++ b/src/process/nt32/vfork.c @@ -0,0 +1,11 @@ +#define _GNU_SOURCE +#include <unistd.h> +#include "syscall.h" +#include "libc.h" + +pid_t __vfork(void) +{ + return syscall(SYS_vfork); +} + +weak_alias(__vfork, vfork); |