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