2013-10-16 14:27:59 -07:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-11-07 10:31:05 -08:00
|
|
|
#include <private/bionic_asm.h>
|
2009-03-03 19:28:35 -08:00
|
|
|
|
2013-02-06 17:08:15 -08:00
|
|
|
ENTRY(socketpair)
|
2009-03-03 19:28:35 -08:00
|
|
|
pushl %ebx
|
|
|
|
pushl %ecx
|
|
|
|
mov $8, %ebx
|
|
|
|
mov %esp, %ecx
|
|
|
|
addl $12, %ecx
|
|
|
|
movl $__NR_socketcall, %eax
|
|
|
|
int $0x80
|
2013-03-12 14:57:30 -07:00
|
|
|
cmpl $-MAX_ERRNO, %eax
|
2009-03-03 19:28:35 -08:00
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
pushl %eax
|
|
|
|
call __set_errno
|
|
|
|
addl $4, %esp
|
|
|
|
orl $-1, %eax
|
|
|
|
1:
|
|
|
|
popl %ecx
|
|
|
|
popl %ebx
|
|
|
|
ret
|
2013-02-06 17:08:15 -08:00
|
|
|
END(socketpair)
|