clarify the purpose of this project
[nyanglibc.git] / io / statfs.shared.s
blob2ef021f439500b7b84727883dfd1ebf206a5f00c
1 .text
2 .globl __statfs
3 .type __statfs,@function
4 .align 1<<4
5 __statfs:
6 movl $137, %eax
7 syscall
8 cmpq $-4095, %rax
9 jae 0f
10 ret
12 movq __libc_errno@GOTTPOFF(%rip), %rcx
13 neg %eax
14 movl %eax, %fs:(%rcx)
15 or $-1, %rax
16 ret
17 .size __statfs,.-__statfs
18 .globl __GI___statfs
19 .set __GI___statfs,__statfs
20 .weak statfs
21 statfs = __statfs
22 .globl __GI_statfs
23 .set __GI_statfs,statfs
24 .weak statfs64
25 statfs64 = __statfs
26 .globl __GI_statfs64
27 .set __GI_statfs64,statfs64