clarify the purpose of this project
[nyanglibc.git] / misc / lxstat64.s
blobf7018ccb4e15ceb7671087020d73a9301f79efb6
1 .text
2 .p2align 4,,15
3 .globl ___lxstat64
4 .type ___lxstat64, @function
5 ___lxstat64:
6 cmpl $1, %edi
7 movq %rsi, %rax
8 ja .L2
9 movq %rax, %rdi
10 movq %rdx, %rsi
11 movl $6, %eax
12 #APP
13 # 50 "../sysdeps/unix/sysv/linux/lxstat64.c" 1
14 syscall
16 # 0 "" 2
17 #NO_APP
18 cmpq $-4096, %rax
19 ja .L7
20 rep ret
21 .p2align 4,,10
22 .p2align 3
23 .L7:
24 movq __libc_errno@gottpoff(%rip), %rdx
25 negl %eax
26 movl %eax, %fs:(%rdx)
27 movl $-1, %eax
28 ret
29 .p2align 4,,10
30 .p2align 3
31 .L2:
32 movq __libc_errno@gottpoff(%rip), %rax
33 movl $22, %fs:(%rax)
34 movl $-1, %eax
35 ret
36 .size ___lxstat64, .-___lxstat64
37 .globl __lxstat
38 .set __lxstat,___lxstat64
39 .globl __lxstat64
40 .set __lxstat64,___lxstat64