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]
/
libio
/
fileno.s
blob
025efcf890b8293fdcbd83cf97d04f81f6bc59a0
1
.text
2
.p2align 4,,15
3
.globl __fileno
4
.hidden __fileno
5
.type __fileno, @function
6
__fileno
:
7
testl $
8192
, (%
rdi
)
8
je
.L2
9
movl
112
(%
rdi
), %
eax
10
testl
%
eax
, %
eax
11
js
.L2
12
rep ret
13
.p2align 4,,10
14
.p2align 3
15
.L2:
16
movq __libc_errno@gottpoff
(%
rip
), %
rax
17
movl $
9
, %
fs
:(%
rax
)
18
movl $
-
1
, %
eax
19
ret
20
.size __fileno, .-__fileno
21
.weak fileno_unlocked
22
.set fileno_unlocked,__fileno
23
.weak fileno
24
.hidden fileno
25
.set fileno,__fileno