chiark / gitweb /
more fixups
[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
12 #ifndef __NR_fork
13
14 extern pid_t __clone(unsigned long flags, void * newsp);
15
16 pid_t fork(void)
17 {
18   return __clone(SIGCHLD, 0);
19 }
20
21 #endif /* __NR_fork */