aarch64: add hwcap header file
[uclibc-ng.git] / libc / sysdeps / linux / xtensa / fork.c
blob5b5d7bf34b6e137ed54e6762bbfb44f92314204a
1 /*
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.
7 */
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__
14 # include <unistd.h>
15 # include <signal.h>
16 # include <cancel.h>
18 pid_t fork(void)
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)
25 # else
26 libc_hidden_def(fork)
27 # endif
28 #endif