socketpair.S revision 5c2772f59d3b6f564897187324d8606f54423207
1/* autogenerated by gensyscalls.py */
2#include <linux/err.h>
3#include <machine/asm.h>
4#include <asm/unistd.h>
5
6ENTRY(socketpair)
7    pushl   %ebx
8    pushl   %ecx
9    mov     $8, %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(socketpair)
26