summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/arm/vfork.S1
-rw-r--r--libc/sysdeps/linux/e1/vfork.c2
-rw-r--r--libc/sysdeps/linux/frv/vfork.S9
-rw-r--r--libc/sysdeps/linux/m68k/vfork.S3
4 files changed, 4 insertions, 11 deletions
diff --git a/libc/sysdeps/linux/arm/vfork.S b/libc/sysdeps/linux/arm/vfork.S
index fbceab367..9d18945d1 100644
--- a/libc/sysdeps/linux/arm/vfork.S
+++ b/libc/sysdeps/linux/arm/vfork.S
@@ -68,3 +68,4 @@ __syscall_error:
.L4: .word errno
+
diff --git a/libc/sysdeps/linux/e1/vfork.c b/libc/sysdeps/linux/e1/vfork.c
index 98421147c..f7dfb10ba 100644
--- a/libc/sysdeps/linux/e1/vfork.c
+++ b/libc/sysdeps/linux/e1/vfork.c
@@ -2,6 +2,4 @@
#include <sys/syscall.h>
#include <sys/errno.h>
-#define __NR___libc_vfork __NR_vfork
-_syscall0(pid_t, __libc_vfork);
_syscall0(pid_t, vfork);
diff --git a/libc/sysdeps/linux/frv/vfork.S b/libc/sysdeps/linux/frv/vfork.S
index 2f97b2a47..0d5d6ea8d 100644
--- a/libc/sysdeps/linux/frv/vfork.S
+++ b/libc/sysdeps/linux/frv/vfork.S
@@ -22,10 +22,10 @@
#include <bits/errno.h>
.text
- .globl __libc_vfork
- .type __libc_vfork,@function
+ .globl vfork
+ .type vfork,@function
/* int vfork(void) */
-__libc_vfork:
+vfork:
setlos #__NR_vfork, gr7
tira gr0, #0
@@ -39,6 +39,3 @@ __libc_vfork:
.size vfork,.-vfork
-.weak vfork
-.global vfork
-.set vfork, __libc_vfork
diff --git a/libc/sysdeps/linux/m68k/vfork.S b/libc/sysdeps/linux/m68k/vfork.S
index 132c10989..5db163bf5 100644
--- a/libc/sysdeps/linux/m68k/vfork.S
+++ b/libc/sysdeps/linux/m68k/vfork.S
@@ -11,13 +11,10 @@
.align 2
.globl errno
.globl vfork
- .globl __libc_vfork
#if defined __HAVE_ELF__
.type vfork,@function
- .type __libc_vfork,@function
#endif
vfork:
-__libc_vfork:
movl %sp@+, %a1 /* save the return address for later */
movl IMM __NR_vfork,%d0
trap #0