summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/vfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/vfork.c')
-rw-r--r--libc/sysdeps/linux/common/vfork.c13
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