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