Sign in
android
/
platform
/
external
/
musl
/
3ea3fcf78a5532e118856846df8adbf3f60ef716
/
.
/
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
);
}