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); +}