repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
select: overhaul for time64
[musl.git]
/
src
/
time
/
time.c
blob
ad0480f9ea942bcab3cd2257a61fbd4637e161d7
1
#include <time.h>
2
#include
"syscall.h"
3
4
time_t
time
(
time_t
*
t
)
5
{
6
struct
timespec ts
;
7
__clock_gettime
(
CLOCK_REALTIME
, &
ts
);
8
if
(
t
) *
t
=
ts
.
tv_sec
;
9
return
ts
.
tv_sec
;
10
}