clarify the purpose of this project
[nyanglibc.git] / resource / getrlimit64.shared.s
blob459fb5fb0218921a17ca82a98a7e85dea5d5cc79
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___getrlimit64
9 .hidden __GI___getrlimit64
10 .type __GI___getrlimit64, @function
11 __GI___getrlimit64:
12 movq %rsi, %r10
13 xorl %edx, %edx
14 movl %edi, %esi
15 movl $302, %eax
16 xorl %edi, %edi
17 #APP
18 # 39 "../sysdeps/unix/sysv/linux/getrlimit64.c" 1
19 syscall
21 # 0 "" 2
22 #NO_APP
23 cmpq $-4096, %rax
24 ja .L5
25 rep 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___getrlimit64, .-__GI___getrlimit64
35 .globl __getrlimit64
36 .set __getrlimit64,__GI___getrlimit64
37 .weak __GI_getrlimit64
38 .hidden __GI_getrlimit64
39 .set __GI_getrlimit64,__getrlimit64
40 .weak getrlimit64
41 .set getrlimit64,__GI_getrlimit64
42 .weak getrlimit
43 .set getrlimit,__getrlimit64
44 .globl __getrlimit
45 .set __getrlimit,__getrlimit64
46 .globl __GI___getrlimit
47 .set __GI___getrlimit,__getrlimit64
48 .globl __GI_getrlimit
49 .set __GI_getrlimit,__getrlimit64