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