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