blob: 9731806a2f306a4007c32bdafc79641c745a6fe0 [file] [log] [blame]
Elliott Hughesb4f76162013-09-19 16:27:24 -07001/* autogenerated by gensyscalls.py */
2#include <linux/err.h>
3#include <machine/asm.h>
4#include <asm/unistd.h>
5
6ENTRY(sendfile64)
7 pushl %ebx
8 pushl %ecx
9 pushl %edx
10 pushl %esi
11 mov 20(%esp), %ebx
12 mov 24(%esp), %ecx
13 mov 28(%esp), %edx
14 mov 32(%esp), %esi
15 movl $__NR_sendfile64, %eax
16 int $0x80
17 cmpl $-MAX_ERRNO, %eax
18 jb 1f
19 negl %eax
20 pushl %eax
21 call __set_errno
22 addl $4, %esp
23 orl $-1, %eax
241:
25 popl %esi
26 popl %edx
27 popl %ecx
28 popl %ebx
29 ret
30END(sendfile64)