Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
linux
/
stime.c
blob: 7d0443ba3b668b80d0240964c784f8e78c1e6a84 [
file
] [
log
] [
blame
]
#define
_GNU_SOURCE
#include
<time.h>
#include
<sys/time.h>
int
stime
(
const
time_t
*
t
)
{
struct
timeval tv
=
{
.
tv_sec
=
*
t
,
.
tv_usec
=
0
};
return
settimeofday
(&
tv
,
(
void
*)
0
);
}