summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/vfork.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/i386/vfork.S')
-rw-r--r--libc/sysdeps/linux/i386/vfork.S19
1 files changed, 9 insertions, 10 deletions
diff --git a/libc/sysdeps/linux/i386/vfork.S b/libc/sysdeps/linux/i386/vfork.S
index 1f0e9d8ab..02c049faa 100644
--- a/libc/sysdeps/linux/i386/vfork.S
+++ b/libc/sysdeps/linux/i386/vfork.S
@@ -1,25 +1,23 @@
/*
- * June 3, 2003 Erik Andersen
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include <features.h>
#include <sys/syscall.h>
#ifndef __NR_vfork
-
/* No vfork so use fork instead */
-strong_alias(fork,vfork)
-strong_alias(vfork,__libc_fork)
-
+hidden_strong_alias(__libc_fork,__vfork)
#else
-
.text
-.global vfork
-.type vfork,%function
+.global __vfork
+.hidden __vfork
+.type __vfork,%function
.align 1<<4
-vfork:
+__vfork:
popl %ecx
movl $__NR_vfork,%eax
int $0x80
@@ -28,6 +26,7 @@ vfork:
jae __syscall_error
ret
-.size vfork,.-vfork
+.size __vfork,.-__vfork
#endif
+weak_alias(__vfork,vfork)
libc_hidden_def(vfork)