2 * fork() for Xtensa uClibc
4 * Copyright (C) 2007 Tensilica Inc.
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 /* Xtensa doesn't provide a 'fork' system call, so we use 'clone'. */
11 #include <sys/syscall.h>
13 #if defined __NR_clone && defined __ARCH_USE_MMU__
20 return (pid_t
) INLINE_SYSCALL(clone
, 2, SIGCHLD
, 0);
22 # ifdef __UCLIBC_HAS_THREADS__
23 strong_alias(fork
,__libc_fork
)
24 libc_hidden_weak(fork
)