summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/socketcall.S
blob: 4e8019ec2d116fd68e0016f3b89e5734a8376c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <syscalls.h>

.text
.global socketcall
.type	socketcall,@function
socketcall:
	leal 4(%esp), %ecx
	pushl %ecx
	movzbl %al,%eax
	pushl %eax
	movb $__NR_socketcall,%al
	call __unified_syscall
	popl %ecx
	popl %ecx
	retl
.Lende:
.size socketcall,.Lende-socketcall