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]
/
misc
/
setfsuid.shared.s
blob
19faa392862fac7cf424a3701a32b8483d75849c
1
.text
2
.globl setfsuid
3
.type setfsuid,@function
4
.align 1<<4
5
setfsuid
:
6
7
movl $
122
, %
eax
8
syscall
9
cmpq $
-
4095
, %
rax
10
jae
0
f
11
ret
12
0
:
movq __libc_errno@GOTTPOFF
(%
rip
), %
rcx
13
neg
%
eax
14
movl
%
eax
, %
fs
:(%
rcx
)
15
or
$
-
1
, %
rax
16
ret
17
.size setfsuid,.-setfsuid
18
.globl __GI_setfsuid
19
.set __GI_setfsuid,setfsuid