about summary refs log tree commit diff
path: root/src/time/clock_settime.c
blob: e880fb33fb28d07533fdc2d45243560280e1868b (plain) (blame)
1
2
3
4
5
6
7
8
#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"

int clock_settime(clockid_t clk, const struct timespec *ts)
{
	return syscall2(__NR_clock_settime, clk, (long)ts);
}