clarify the purpose of this project
[nyanglibc.git] / misc / tgkill.shared.s
blob9b3f8a35b40d35b1cee08d8987109e3fa81b4274
1 .text
2 .globl __tgkill
3 .type __tgkill,@function
4 .align 1<<4
5 __tgkill:
7 movl $234, %eax
8 syscall
9 cmpq $-4095, %rax
10 jae 0f
11 ret
12 0: movq __libc_errno@GOTTPOFF(%rip), %rcx
13 neg %eax
14 movl %eax, %fs:(%rcx)
15 or $-1, %rax
16 ret
17 .size __tgkill,.-__tgkill
18 .globl __GI___tgkill
19 .set __GI___tgkill,__tgkill
20 .weak tgkill
21 tgkill = __tgkill
22 .globl __GI_tgkill
23 .set __GI_tgkill,tgkill