clarify the purpose of this project
[nyanglibc.git] / resource / setrlimit64.shared.s
blob479ced2afc6227108d42c7f5e93a83913bb2fe99
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 __setrlimit64
9 .type __setrlimit64, @function
10 __setrlimit64:
11 movq %rsi, %rdx
12 xorl %r10d, %r10d
13 movl %edi, %esi
14 movl $302, %eax
15 xorl %edi, %edi
16 #APP
17 # 40 "../sysdeps/unix/sysv/linux/setrlimit64.c" 1
18 syscall
20 # 0 "" 2
21 #NO_APP
22 cmpq $-4096, %rax
23 ja .L5
24 rep ret
25 .p2align 4,,10
26 .p2align 3
27 .L5:
28 movq __libc_errno@gottpoff(%rip), %rdx
29 negl %eax
30 movl %eax, %fs:(%rdx)
31 movl $-1, %eax
32 ret
33 .size __setrlimit64, .-__setrlimit64
34 .globl __GI___setrlimit
35 .set __GI___setrlimit,__setrlimit64
36 .weak setrlimit
37 .set setrlimit,__setrlimit64
38 .globl __setrlimit
39 .set __setrlimit,__setrlimit64
40 .weak setrlimit64
41 .set setrlimit64,__setrlimit64