BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / commit / 03048a95d88cc7a78171393371f5c22a0250a014 / unistd / fork.c

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)
diff --git a/unistd/fork.c b/unistd/fork.c
new file mode 100644
index 0000000..f827758
--- /dev/null
+++ b/unistd/fork.c
@@ -0,0 +1,11 @@
+#include <stddef.h>
+#include <sys/syscall.h>
+#include <sys/types.h>
+#include <sys/sched.h>
+
+/* Fork the current process */
+pid_t
+fork(void)
+{
+	return clone(CLONE_NONE);
+}