clarify the purpose of this project
[nyanglibc.git] / resource / getpriority.shared.s
blobceba02a9ff935a815a5960da2522d9d7cddccb77
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___getpriority
9 .hidden __GI___getpriority
10 .type __GI___getpriority, @function
11 __GI___getpriority:
12 movl $140, %eax
13 #APP
14 # 39 "../sysdeps/unix/sysv/linux/getpriority.c" 1
15 syscall
17 # 0 "" 2
18 #NO_APP
19 cmpq $-4096, %rax
20 ja .L5
21 movl $20, %edx
22 subl %eax, %edx
23 testl %eax, %eax
24 cmovns %edx, %eax
25 ret
26 .p2align 4,,10
27 .p2align 3
28 .L5:
29 movq __libc_errno@gottpoff(%rip), %rdx
30 negl %eax
31 movl %eax, %fs:(%rdx)
32 movl $-1, %eax
33 ret
34 .size __GI___getpriority, .-__GI___getpriority
35 .globl __getpriority
36 .set __getpriority,__GI___getpriority
37 .weak getpriority
38 .set getpriority,__getpriority