summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
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);