OSDN Git Service

Last portion of libc_hidden_proto removal.
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / vfork.c
1 /*
2  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
3  *
4  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5  */
6
7 /* Trivial implementation for arches that lack vfork */
8 #include <unistd.h>
9 #include <sys/types.h>
10 #include <sys/syscall.h>
11
12 #ifdef __ARCH_USE_MMU__
13
14 #ifdef __NR_fork
15 /* libc_hidden_proto(fork) */
16
17 extern __typeof(vfork) __vfork attribute_hidden;
18 pid_t __vfork(void)
19 {
20     return fork();
21 }
22 /* libc_hidden_proto(vfork) */
23 weak_alias(__vfork,vfork)
24 libc_hidden_weak(vfork)
25 #endif
26
27 #endif