clarify the purpose of this project
[nyanglibc.git] / posix / vfork.shared.s
blobe8e449f3a76023c5dc198fc4e887b1df428de92b
1 .globl __vfork
2 .type __vfork,@function
3 .align 1<<4
4 __vfork:
5 popq %rdi
6 movl $58, %eax
7 syscall
8 pushq %rdi
9 cmpl $-4095, %eax
10 jae 0f
11 ret
13 movq __libc_errno@GOTTPOFF(%rip), %rcx
14 neg %eax
15 movl %eax, %fs:(%rcx)
16 or $-1, %rax
17 ret
18 .size __vfork,.-__vfork
19 .globl __GI___vfork
20 .set __GI___vfork,__vfork
21 .weak vfork
22 vfork = __vfork
23 .globl __libc_vfork
24 .set __libc_vfork,__vfork