getsockopt.S revision e35fd48a832cddbedcf84773fd1922f735ae7829
1/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5    .hidden __set_errno
6
7ENTRY(getsockopt)
8    pushl   %ebx
9    .cfi_def_cfa_offset 8
10    .cfi_rel_offset ebx, 0
11    pushl   %ecx
12    .cfi_adjust_cfa_offset 4
13    .cfi_rel_offset ecx, 0
14    mov     $15, %ebx
15    mov     %esp, %ecx
16    addl    $12, %ecx
17    movl    $__NR_socketcall, %eax
18    int     $0x80
19    cmpl    $-MAX_ERRNO, %eax
20    jb      1f
21    negl    %eax
22    pushl   %eax
23    call    __set_errno
24    addl    $4, %esp
251:
26    popl    %ecx
27    popl    %ebx
28    ret
29END(getsockopt)
30