clarify the purpose of this project
[nyanglibc.git] / stdio-common / renameat2.shared.s
blob9a3ed25f03c9af8b6b40bef3642b67f7113fa9d7
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___renameat2
9 .hidden __GI___renameat2
10 .type __GI___renameat2, @function
11 __GI___renameat2:
12 testl %r8d, %r8d
13 je .L8
14 movq %rcx, %r10
15 movl $316, %ecx
16 movl %ecx, %eax
17 #APP
18 # 34 "../sysdeps/unix/sysv/linux/renameat2.c" 1
19 syscall
21 # 0 "" 2
22 #NO_APP
23 cmpq $-4096, %rax
24 movq %rax, %rdx
25 ja .L9
26 cmpl $-1, %eax
27 je .L10
28 .L1:
29 rep ret
30 .p2align 4,,10
31 .p2align 3
32 .L8:
33 jmp __GI___renameat
34 .p2align 4,,10
35 .p2align 3
36 .L10:
37 movq __libc_errno@gottpoff(%rip), %rcx
38 movl %fs:(%rcx), %edx
39 .L4:
40 cmpl $38, %edx
41 movl $-1, %eax
42 jne .L1
43 movl $22, %fs:(%rcx)
44 ret
45 .p2align 4,,10
46 .p2align 3
47 .L9:
48 movq __libc_errno@gottpoff(%rip), %rcx
49 negl %edx
50 movl %edx, %fs:(%rcx)
51 jmp .L4
52 .size __GI___renameat2, .-__GI___renameat2
53 .globl __renameat2
54 .set __renameat2,__GI___renameat2
55 .weak renameat2
56 .set renameat2,__renameat2