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