clarify the purpose of this project
[nyanglibc.git] / io / lseek64.s
blob6872acd2b1651b1a96d94d9d452d0b23a68cd1aa
1 .text
2 .p2align 4,,15
3 .globl __lseek64
4 .hidden __lseek64
5 .type __lseek64, @function
6 __lseek64:
7 movl $8, %eax
8 #APP
9 # 36 "../sysdeps/unix/sysv/linux/lseek64.c" 1
10 syscall
12 # 0 "" 2
13 #NO_APP
14 cmpq $-4096, %rax
15 ja .L4
16 rep ret
17 .p2align 4,,10
18 .p2align 3
19 .L4:
20 movq __libc_errno@gottpoff(%rip), %rdx
21 negl %eax
22 movl %eax, %fs:(%rdx)
23 movq $-1, %rax
24 ret
25 .size __lseek64, .-__lseek64
26 .weak lseek64
27 .set lseek64,__lseek64
28 .globl __libc_lseek64
29 .set __libc_lseek64,__lseek64
30 .globl __libc_lseek
31 .set __libc_lseek,__lseek64
32 .weak __lseek
33 .hidden __lseek
34 .set __lseek,__lseek64
35 .weak lseek
36 .set lseek,__lseek64