chiark / gitweb /
[PATCH] klibc: update to version 0.196
[elogind.git] / klibc / klibc / fork.c
1 /*
2  * fork.c
3  *
4  * This is normally just a syscall stub, but at least one system
5  * doesn't have sys_fork, only sys_clone...
6  */
7
8 #include <sys/syscall.h>
9 #include <signal.h>
10 #include <unistd.h>
11 #include <sched.h>
12
13 #ifndef __NR_fork
14
15 pid_t fork(void)
16 {
17   return __clone(SIGCHLD, 0);
18 }
19
20 #endif /* __NR_fork */