1 /* vi: set sw=4 ts=4: */
5 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
7 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 #include <sys/syscall.h>
12 #if defined __ARCH_USE_MMU__
14 extern __typeof(fork) __libc_fork;
15 # if defined __NR_fork
17 # define __NR___libc_fork __NR_fork
18 _syscall0(pid_t, fork)
20 # elif defined __NR_clone && !defined __NR_fork
21 # include <sys/types.h>
26 pid_t pid = INLINE_SYSCALL(clone, 4, SIGCHLD, NULL, NULL, NULL);
35 # ifdef __UCLIBC_HAS_THREADS__
36 strong_alias(fork,__libc_fork)
37 libc_hidden_weak(fork)