clarify the purpose of this project
[nyanglibc.git] / posix / get_child_max.s
blobfa2e3847202e46f18b52201e15d925bfe7650cd7
1 .text
2 .p2align 4,,15
3 .globl __get_child_max
4 .hidden __get_child_max
5 .type __get_child_max, @function
6 __get_child_max:
7 subq $24, %rsp
8 movl $6, %edi
9 movq %rsp, %rsi
10 call __getrlimit
11 testl %eax, %eax
12 jne .L3
13 movq (%rsp), %rax
14 .L1:
15 addq $24, %rsp
16 ret
17 .p2align 4,,10
18 .p2align 3
19 .L3:
20 movq $-1, %rax
21 jmp .L1
22 .size __get_child_max, .-__get_child_max
23 .hidden __getrlimit