blob: 37a7bcd91457c6b93da4cd0e6c3bf0ad03a68fd3 [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(sendfile)
7 movq %rcx, %r10
8 movl $__NR_sendfile, %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(sendfile)