bind.S revision 9aceab50155b17741faded1fb22e2daa51a07fb1
1591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian/* autogenerated by gensyscalls.py */
2591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian#include <linux/err.h>
3591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian#include <machine/asm.h>
4591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian#include <sys/linux-syscalls.h>
5591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian
6591018aaf9e95b9d2f6d9742194e940605b1bffaMathias AgopianENTRY(bind)
7591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    pushl   %ebx
8591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    pushl   %ecx
9591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    mov     $2, %ebx
10591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    mov     %esp, %ecx
11591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    addl    $12, %ecx
12591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    movl    $__NR_socketcall, %eax
13591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    int     $0x80
14591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    cmpl    $-MAX_ERRNO, %eax
15591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    jb      1f
16591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    negl    %eax
17591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    pushl   %eax
18591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    call    __set_errno
19591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    addl    $4, %esp
20591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    orl     $-1, %eax
21591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian1:
22591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    popl    %ecx
23591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    popl    %ebx
24591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian    ret
25591018aaf9e95b9d2f6d9742194e940605b1bffaMathias AgopianEND(bind)
26591018aaf9e95b9d2f6d9742194e940605b1bffaMathias Agopian