blob: 06bb13776738e08b80ad29dc5b857d35ae2db78f [file] [log] [blame]
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07001/* autogenerated by gensyscalls.py */
2#include <asm/unistd.h>
3#include <linux/err.h>
4#include <machine/asm.h>
5
6ENTRY(socketpair)
7 movq %rcx, %r10
8 movl $__NR_socketpair, %eax
9 syscall
10 cmpq $-MAX_ERRNO, %rax
11 jb 1f
12 negl %eax
13 movl %eax, %edi
14 call __set_errno
15 orq $-1, %rax
161:
17 ret
18END(socketpair)