The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame^] | 2 | #include <machine/asm.h> |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 3 | #include <sys/linux-syscalls.h> |
| 4 | |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame^] | 5 | ENTRY(socketpair) |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 6 | pushl %ebx |
| 7 | pushl %ecx |
| 8 | mov $8, %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 |
| 20 | 1: |
| 21 | popl %ecx |
| 22 | popl %ebx |
| 23 | ret |
Elliott Hughes | 7582a9c | 2013-02-06 17:08:15 -0800 | [diff] [blame^] | 24 | END(socketpair) |