clarify the purpose of this project
[nyanglibc.git] / misc / ustat.shared.s
blobb15563411312bc5b149d3daca909ac3fcd93f36c
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __old_ustat,ustat@GLIBC_2.2.5
7 #NO_APP
8 .p2align 4,,15
9 .globl __old_ustat
10 .type __old_ustat, @function
11 __old_ustat:
12 movl %edi, %eax
13 cmpq %rax, %rdi
14 jne .L7
15 movl $136, %eax
16 #APP
17 # 51 "../sysdeps/unix/sysv/linux/ustat.c" 1
18 syscall
20 # 0 "" 2
21 #NO_APP
22 cmpq $-4096, %rax
23 ja .L8
24 rep ret
25 .p2align 4,,10
26 .p2align 3
27 .L8:
28 movq __libc_errno@gottpoff(%rip), %rdx
29 negl %eax
30 movl %eax, %fs:(%rdx)
31 movl $-1, %eax
32 ret
33 .p2align 4,,10
34 .p2align 3
35 .L7:
36 movq __libc_errno@gottpoff(%rip), %rax
37 movl $22, %fs:(%rax)
38 movl $-1, %eax
39 ret
40 .size __old_ustat, .-__old_ustat