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]
/
time
/
settimeofday.s
blob
075ec6eaa2d8c791e00ab9e6920ce5d2591b479a
1
.text
2
.p2align 4,,15
3
.globl __settimeofday
4
.type __settimeofday, @function
5
__settimeofday
:
6
subq $
24
, %
rsp
7
testq
%
rsi
, %
rsi
8
jne
.L7
9
imulq $
1000
,
8
(%
rdi
), %
rax
10
movq
(%
rdi
), %
rdx
11
movq
%
rsp
, %
rsi
12
xorl
%
edi
, %
edi
13
movq
%
rdx
, (%
rsp
)
14
movq
%
rax
,
8
(%
rsp
)
15
call __clock_settime
16
.L1:
17
addq $
24
, %
rsp
18
ret
19
.p2align 4,,10
20
.p2align 3
21
.L7:
22
testq
%
rdi
, %
rdi
23
jne
.L8
24
movq
%
rsi
, %
rdi
25
call __settimezone
26
jmp
.L1
27
.L8:
28
movq __libc_errno@gottpoff
(%
rip
), %
rax
29
movl $
22
, %
fs
:(%
rax
)
30
movl $
-
1
, %
eax
31
jmp
.L1
32
.size __settimeofday, .-__settimeofday
33
.weak settimeofday
34
.set settimeofday,__settimeofday
35
.hidden __settimezone
36
.hidden __clock_settime