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