diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-24 17:18:19 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-24 17:18:19 +0000 |
commit | 48143d8a8f92fd69d95564516fd1b7cf122511b1 (patch) | |
tree | 60b6a07f9836b7885e6ee2cc2bfead197b554e2b /libc/sysdeps/linux/common/vfork.c | |
parent | c3f6501060987d967a28495b009cd0da9da25252 (diff) |
fork/vfork weak in libc, strong in libpthread
Diffstat (limited to 'libc/sysdeps/linux/common/vfork.c')
-rw-r--r-- | libc/sysdeps/linux/common/vfork.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/vfork.c b/libc/sysdeps/linux/common/vfork.c index b3543a616..f668a020f 100644 --- a/libc/sysdeps/linux/common/vfork.c +++ b/libc/sysdeps/linux/common/vfork.c @@ -1,18 +1,21 @@ +/* + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ /* Trivial implementation for arches that lack vfork */ #include <unistd.h> #include <sys/types.h> #include <sys/syscall.h> #ifdef __NR_fork - -libc_hidden_proto(vfork) - libc_hidden_proto(fork) -pid_t vfork(void) +pid_t attribute_hidden __vfork(void) { return fork(); } +libc_hidden_proto(vfork) +weak_alias(__vfork,vfork) libc_hidden_def(vfork) - #endif |