summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/clone.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-09 20:06:30 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-09 20:06:30 +0000
commitc1fe19d4c1db610692365472a90f4661e48449c1 (patch)
treed0b0219ffca3c4c4256f55c4aea4513e43d6aecd /libc/sysdeps/linux/i386/clone.S
parent9efafb8bbc7408b04643dcd53825d971577b4d9d (diff)
Bug ugly formatting update
Diffstat (limited to 'libc/sysdeps/linux/i386/clone.S')
-rw-r--r--libc/sysdeps/linux/i386/clone.S11
1 files changed, 4 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/i386/clone.S b/libc/sysdeps/linux/i386/clone.S
index 7a2025b53..5db30b8e3 100644
--- a/libc/sysdeps/linux/i386/clone.S
+++ b/libc/sysdeps/linux/i386/clone.S
@@ -21,9 +21,8 @@
and invokes a function in the right context after its all over. */
#include <sysdep.h>
-#define _ERRNO_H 1
-#include <bits/errno.h>
-#include <asm-syntax.h>
+#include <asm/errno.h>
+
/* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */
@@ -59,7 +58,7 @@ ENTRY(__clone)
/* Do the system call */
pushl %ebx
movl 16(%esp),%ebx
- movl $SYS_ify(clone),%eax
+ movl $__NR_clone,%eax
int $0x80
popl %ebx
@@ -80,8 +79,6 @@ L(here):
addl $_GLOBAL_OFFSET_TABLE_+[.-L(here)], %ebx
#endif
pushl %eax
- call JUMPTARGET (_exit)
+ call _exit
-PSEUDO_END (__clone)
-weak_alias (__clone, clone)