recvfrom.S revision 9aceab50155b17741faded1fb22e2daa51a07fb1
1/* autogenerated by gensyscalls.py */
2#include <linux/err.h>
3#include <machine/asm.h>
4#include <sys/linux-syscalls.h>
5
6ENTRY(recvfrom)
7    pushl   %ebx
8    pushl   %ecx
9    mov     $12, %ebx
10    mov     %esp, %ecx
11    addl    $12, %ecx
12    movl    $__NR_socketcall, %eax
13    int     $0x80
14    cmpl    $-MAX_ERRNO, %eax
15    jb      1f
16    negl    %eax
17    pushl   %eax
18    call    __set_errno
19    addl    $4, %esp
20    orl     $-1, %eax
211:
22    popl    %ecx
23    popl    %ebx
24    ret
25END(recvfrom)
26