2013-09-20 01:27:24 +02:00
|
|
|
/* autogenerated by gensyscalls.py */
|
2013-10-01 22:29:43 +02:00
|
|
|
#include <asm/unistd.h>
|
2013-09-20 01:27:24 +02:00
|
|
|
#include <linux/err.h>
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
|
|
|
ENTRY(sendfile64)
|
|
|
|
pushl %ebx
|
|
|
|
pushl %ecx
|
|
|
|
pushl %edx
|
|
|
|
pushl %esi
|
|
|
|
mov 20(%esp), %ebx
|
|
|
|
mov 24(%esp), %ecx
|
|
|
|
mov 28(%esp), %edx
|
|
|
|
mov 32(%esp), %esi
|
|
|
|
movl $__NR_sendfile64, %eax
|
|
|
|
int $0x80
|
|
|
|
cmpl $-MAX_ERRNO, %eax
|
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
pushl %eax
|
|
|
|
call __set_errno
|
|
|
|
addl $4, %esp
|
|
|
|
orl $-1, %eax
|
|
|
|
1:
|
|
|
|
popl %esi
|
|
|
|
popl %edx
|
|
|
|
popl %ecx
|
|
|
|
popl %ebx
|
|
|
|
ret
|
|
|
|
END(sendfile64)
|