summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/_Fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/unistd/_Fork.c')
-rw-r--r--lib/libc/unistd/_Fork.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/unistd/_Fork.c b/lib/libc/unistd/_Fork.c
new file mode 100644
index 00000000..080dd880
--- /dev/null
+++ b/lib/libc/unistd/_Fork.c
@@ -0,0 +1,8 @@
+#include <unistd.h>
+#include <syscall.h>
+#include <linux/signal.h>
+
+pid_t _Fork(void)
+{
+ return syscall(clone, SIGCHLD, 0);
+}