blob: b56f487e9bcf56a062678ea03bcbdf08f55e0d3e [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07004
5ENTRY(sendfile)
6 movq %rcx, %r10
7 movl $__NR_sendfile, %eax
8 syscall
9 cmpq $-MAX_ERRNO, %rax
10 jb 1f
11 negl %eax
12 movl %eax, %edi
13 call __set_errno
14 orq $-1, %rax
151:
16 ret
17END(sendfile)
Elliott Hughesa6519d62013-10-17 16:56:40 -070018
19 .globl _C_LABEL(sendfile64)
20 .equ _C_LABEL(sendfile64), _C_LABEL(sendfile)