summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/vfork.S
blob: 5775daee3e403f1a8533f791fbd3578ebb2142b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.text
	.align 4
.globl vfork
	.type	 vfork,@function
vfork:
	popl %ecx
	movl $190,%eax
#APP
	int $0x80
#NO_APP
	cmpl $-4095,%eax
	jae .L5
	jmp *%ecx
	.p2align 4,,7
.L5:
	pushl %ecx
	negl %eax
	movl %eax,errno
	movl $-1,%eax
	ret
.Lfe1:
	.size	 vfork,.Lfe1-vfork