clarify the purpose of this project
[nyanglibc.git] / io / pread64_nocancel.s
blobc10ab6489fab488f13ffc5e8eb06fb6627952a07
1 .text
2 .p2align 4,,15
3 .globl __pread64_nocancel
4 .hidden __pread64_nocancel
5 .type __pread64_nocancel, @function
6 __pread64_nocancel:
7 movq %rcx, %r10
8 movl $17, %eax
9 #APP
10 # 26 "../sysdeps/unix/sysv/linux/pread64_nocancel.c" 1
11 syscall
13 # 0 "" 2
14 #NO_APP
15 cmpq $-4096, %rax
16 ja .L4
17 rep ret
18 .p2align 4,,10
19 .p2align 3
20 .L4:
21 movq __libc_errno@gottpoff(%rip), %rdx
22 negl %eax
23 movl %eax, %fs:(%rdx)
24 movq $-1, %rax
25 ret
26 .size __pread64_nocancel, .-__pread64_nocancel