summaryrefslogtreecommitdiff
path: root/src/time/clock_getres.c
blob: e86a1ee45aaba6cf9fb57a68b6bc2454bf8e5a02 (plain)
1
2
3
4
5
6
7
8
#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"

int clock_getres(clockid_t clk, struct timespec *ts)
{
	return syscall2(__NR_clock_getres, clk, (long)ts);
}