| Andrei Emeltchenko | 8f2a30a | 2014-03-26 15:50:01 +0200 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |||||
| 3 | #include <private/bionic_asm.h> | ||||
| 4 | |||||
| 5 | ENTRY(accept4) | ||||
| 6 | pushl %ebx | ||||
| 7 | pushl %ecx | ||||
| 8 | .cfi_def_cfa_offset 8 | ||||
| 9 | .cfi_rel_offset ebx, 0 | ||||
| 10 | .cfi_rel_offset ecx, 4 | ||||
| 11 | mov $18, %ebx | ||||
| 12 | mov %esp, %ecx | ||||
| 13 | addl $12, %ecx | ||||
| 14 | movl $__NR_socketcall, %eax | ||||
| 15 | int $0x80 | ||||
| 16 | cmpl $-MAX_ERRNO, %eax | ||||
| 17 | jb 1f | ||||
| 18 | negl %eax | ||||
| 19 | pushl %eax | ||||
| 20 | call __set_errno | ||||
| 21 | addl $4, %esp | ||||
| 22 | orl $-1, %eax | ||||
| 23 | 1: | ||||
| 24 | popl %ecx | ||||
| 25 | popl %ebx | ||||
| 26 | ret | ||||
| 27 | END(accept4) | ||||