clarify the purpose of this project
[nyanglibc.git] / stdio-common / renameat.shared.s
blob722caa0fc9aa3fa2f3a7142b85dbd2ce0ee89fb6
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __GI___renameat
9 .hidden __GI___renameat
10 .type __GI___renameat, @function
11 __GI___renameat:
12 movq %rcx, %r10
13 movl $264, %eax
14 #APP
15 # 28 "../sysdeps/unix/sysv/linux/renameat.c" 1
16 syscall
18 # 0 "" 2
19 #NO_APP
20 cmpq $-4096, %rax
21 ja .L5
22 rep ret
23 .p2align 4,,10
24 .p2align 3
25 .L5:
26 movq __libc_errno@gottpoff(%rip), %rdx
27 negl %eax
28 movl %eax, %fs:(%rdx)
29 movl $-1, %eax
30 ret
31 .size __GI___renameat, .-__GI___renameat
32 .globl __renameat
33 .set __renameat,__GI___renameat
34 .weak renameat
35 .set renameat,__renameat