summaryrefslogtreecommitdiff
path: root/src/linux/stime.c
blob: ec3ba821bf2ca2bfbf46f8f1ae161845f28151bc (plain) (blame)
1
2
3
4
5
6
7
#include <sys/time.h>

int stime(time_t *t)
{
	struct timeval tv = { .tv_sec = *t, .tv_usec = 0 };
	return settimeofday(&tv, (void *)0);
}