clarify the purpose of this project
[nyanglibc.git] / io / sendfile.s
blobf5c4cedc2fdbb580dfc50368ce36d26a8b1291eb
1 .text
2 .globl sendfile
3 .type sendfile,@function
4 .align 1<<4
5 sendfile:
6 movq %rcx, %r10
7 movl $40, %eax
8 syscall
9 cmpq $-4095, %rax
10 jae 0f
11 ret
13 movq __libc_errno@GOTTPOFF(%rip), %rcx
14 neg %eax
15 movl %eax, %fs:(%rcx)
16 or $-1, %rax
17 ret
18 .size sendfile,.-sendfile
19 .weak sendfile64
20 sendfile64 = sendfile