summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-01-11 17:25:14 -0500
committermidipix <writeonce@midipix.org>2018-01-11 17:25:14 -0500
commit5380056069790fa8b7ce120c8d5747accf970f58 (patch)
tree3c3a5dbe044de437bed08d1da6311ce280d8242b /src/process
parent962692a1c7c1d534c2e2daa93de1db5933ae61bf (diff)
downloadmmglue-5380056069790fa8b7ce120c8d5747accf970f58.tar.bz2
mmglue-5380056069790fa8b7ce120c8d5747accf970f58.tar.xz
vfork(3) is now a wrapper around the assembly-based vfork(2).
Diffstat (limited to 'src/process')
-rw-r--r--src/process/nt32/vfork.c11
-rw-r--r--src/process/nt64/vfork.c11
2 files changed, 22 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);
diff --git a/src/process/nt64/vfork.c b/src/process/nt64/vfork.c
new file mode 100644
index 0000000..b5fc74b
--- /dev/null
+++ b/src/process/nt64/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);