clarify the purpose of this project
[nyanglibc.git] / io / lseek64.shared.s
blobdd5359a14c661be03bc12060179d5125c2d44786
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __compat_llseek,llseek@GLIBC_2.2.5
7 #NO_APP
8 .p2align 4,,15
9 .globl __lseek64
10 .hidden __lseek64
11 .type __lseek64, @function
12 __lseek64:
13 movl $8, %eax
14 #APP
15 # 36 "../sysdeps/unix/sysv/linux/lseek64.c" 1
16 syscall
18 # 0 "" 2
19 #NO_APP
20 cmpq $-4096, %rax
21 ja .L4
22 rep ret
23 .p2align 4,,10
24 .p2align 3
25 .L4:
26 movq __libc_errno@gottpoff(%rip), %rdx
27 negl %eax
28 movl %eax, %fs:(%rdx)
29 movq $-1, %rax
30 ret
31 .size __lseek64, .-__lseek64
32 .globl __compat_llseek
33 .set __compat_llseek,__lseek64
34 .weak lseek64
35 .set lseek64,__lseek64
36 .globl __libc_lseek64
37 .set __libc_lseek64,__lseek64
38 .globl __libc_lseek
39 .set __libc_lseek,__lseek64
40 .weak __GI___lseek
41 .hidden __GI___lseek
42 .set __GI___lseek,__lseek64
43 .globl __lseek
44 .set __lseek,__GI___lseek
45 .weak lseek
46 .set lseek,__lseek64