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