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

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