summaryrefslogtreecommitdiff
path: root/src/linux/stime.c
blob: 6a7e9e813cea207257e6241c1a8469ef8b8c8bdb (plain)
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);
}