blob: b06d934fb64c2444e79ae75740ff367090e65f27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* vi: set sw=4 ts=4: */
/*
* fork() for Xtensa uClibc
*
* Copyright (C) 2007 Tensilica Inc.
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include <unistd.h>
#include <sys/syscall.h>
#define _SIGNAL_H
#include <bits/signum.h>
/* Xtensa doesn't provide a 'fork' system call, so we use 'clone'. */
extern __typeof(fork) __libc_fork;
libc_hidden_proto (fork)
pid_t __libc_fork (void)
{
return (pid_t) INLINE_SYSCALL (clone, 2, SIGCHLD, 0);
}
weak_alias (__libc_fork, fork)
libc_hidden_weak (fork)
|