blob: 8f63945d7a810e394e788355ce3f06319ffb4f1f [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/* autogenerated by gensyscalls.py */
Elliott Hughes7582a9c2013-02-06 17:08:15 -08002#include <machine/asm.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08003#include <sys/linux-syscalls.h>
4
Elliott Hughes7582a9c2013-02-06 17:08:15 -08005ENTRY(listen)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08006 pushl %ebx
7 pushl %ecx
8 mov $4, %ebx
9 mov %esp, %ecx
10 addl $12, %ecx
11 movl $__NR_socketcall, %eax
12 int $0x80
13 cmpl $-129, %eax
14 jb 1f
15 negl %eax
16 pushl %eax
17 call __set_errno
18 addl $4, %esp
19 orl $-1, %eax
201:
21 popl %ecx
22 popl %ebx
23 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080024END(listen)