blob: 67a05ba2a0dd69af788846bd36ffeb13288988f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <time.h>
#include "syscall.h"
int clock_gettime(clockid_t clk, struct timespec *ts)
{
return syscall2(__NR_clock_gettime, clk, (long)ts);
}
int clock_settime(clockid_t clk, const struct timespec *ts)
{
return syscall2(__NR_clock_settime, clk, (long)ts);
}
|