07e9d63b
0b44a031
1
2 3 4 5 6 7 8
#define _GNU_SOURCE #include <sys/time.h> int stime(time_t *t) { struct timeval tv = { .tv_sec = *t, .tv_usec = 0 }; return settimeofday(&tv, (void *)0); }