clarify the purpose of this project
[nyanglibc.git] / io / statvfs.shared.s
blob0b9f7b8a919fe8f68158583e20e17007fa63d19a
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 __statvfs
9 .type __statvfs, @function
10 __statvfs:
11 pushq %r12
12 pushq %rbp
13 movq %rsi, %r12
14 pushq %rbx
15 movq %rdi, %rbx
16 addq $-128, %rsp
17 movq %rsp, %rbp
18 movq %rbp, %rsi
19 call __GI___statfs
20 testl %eax, %eax
21 js .L3
22 movl $-1, %ecx
23 movq %rbp, %rdx
24 movq %r12, %rsi
25 movq %rbx, %rdi
26 call __internal_statvfs
27 xorl %eax, %eax
28 .L1:
29 subq $-128, %rsp
30 popq %rbx
31 popq %rbp
32 popq %r12
33 ret
34 .p2align 4,,10
35 .p2align 3
36 .L3:
37 movl $-1, %eax
38 jmp .L1
39 .size __statvfs, .-__statvfs
40 .weak statvfs64
41 .set statvfs64,__statvfs
42 .globl __statvfs64
43 .set __statvfs64,__statvfs
44 .weak __GI_statvfs
45 .hidden __GI_statvfs
46 .set __GI_statvfs,__statvfs
47 .weak statvfs
48 .set statvfs,__GI_statvfs
49 .hidden __internal_statvfs