clarify the purpose of this project
[nyanglibc.git] / io / rtld-write_nocancel.shared.s
blob73c3fb0dcda1d9b8f80a2f87a512315edf599f4c
1 .text
2 .p2align 4,,15
3 .globl __GI___write_nocancel
4 .hidden __GI___write_nocancel
5 .type __GI___write_nocancel, @function
6 __GI___write_nocancel:
7 movl $1, %eax
8 #APP
9 # 26 "../sysdeps/unix/sysv/linux/write_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 negl %eax
21 movl %eax, rtld_errno(%rip)
22 movq $-1, %rax
23 ret
24 .size __GI___write_nocancel, .-__GI___write_nocancel
25 .globl __write_nocancel
26 .set __write_nocancel,__GI___write_nocancel
27 .hidden rtld_errno