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
move msghdr and cmsghdr out of bits/socket.h
[musl.git]
/
src
/
linux
/
stime.c
blob
7d0443ba3b668b80d0240964c784f8e78c1e6a84
1
#define _GNU_SOURCE
2
#include <time.h>
3
#include <sys/time.h>
4
5
int
stime
(
const time_t
*
t
)
6
{
7
struct
timeval tv
= { .
tv_sec
= *
t
, .
tv_usec
=
0
};
8
return
settimeofday
(&
tv
, (
void
*)
0
);
9
}