repo.or.cz
/
nyanglibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
clarify the purpose of this project
[nyanglibc.git]
/
stdio-common
/
renameat2.s
blob
397c60a1b455cf943f9d79eda3b2cb696b8a1795
1
.text
2
.p2align 4,,15
3
.globl __renameat2
4
.hidden __renameat2
5
.type __renameat2, @function
6
__renameat2
:
7
testl
%
r8d
, %
r8d
8
je
.L8
9
movq
%
rcx
, %
r10
10
movl $
316
, %
ecx
11
movl
%
ecx
, %
eax
12
#APP
13
# 34 "../sysdeps/unix/sysv/linux/renameat2.c" 1
14
syscall
15
16
# 0 "" 2
17
#NO_APP
18
cmpq $
-
4096
, %
rax
19
movq
%
rax
, %
rdx
20
ja
.L9
21
cmpl
$
-
1
, %
eax
22
je
.L10
23
.L1:
24
rep ret
25
.p2align 4,,10
26
.p2align 3
27
.L8:
28
jmp __renameat
29
.p2align 4,,10
30
.p2align 3
31
.L10:
32
movq __libc_errno@gottpoff
(%
rip
), %
rcx
33
movl
%
fs
:(%
rcx
), %
edx
34
.L4:
35
cmpl
$
38
, %
edx
36
movl $
-
1
, %
eax
37
jne
.L1
38
movl $
22
, %
fs
:(%
rcx
)
39
ret
40
.p2align 4,,10
41
.p2align 3
42
.L9:
43
movq __libc_errno@gottpoff
(%
rip
), %
rcx
44
negl
%
edx
45
movl
%
edx
, %
fs
:(%
rcx
)
46
jmp
.L4
47
.size __renameat2, .-__renameat2
48
.weak renameat2
49
.set renameat2,__renameat2
50
.hidden __renameat