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