diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-19 12:43:56 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-19 12:43:56 -0500 |
commit | 4b1244a0bfec55bc4cad91ff157997929f106215 (patch) | |
tree | 62c43bf546b567ceaefede18d860721bdc52bb6a /src/time/clock_getres.c | |
parent | 19eb13b9a4cf2f787f60b6e2a6d26a6cd7d3ffd2 (diff) | |
download | musl-4b1244a0bfec55bc4cad91ff157997929f106215.tar.gz musl-4b1244a0bfec55bc4cad91ff157997929f106215.tar.bz2 musl-4b1244a0bfec55bc4cad91ff157997929f106215.tar.xz musl-4b1244a0bfec55bc4cad91ff157997929f106215.zip |
implement the remaining clock_* interfaces
Diffstat (limited to 'src/time/clock_getres.c')
-rw-r--r-- | src/time/clock_getres.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/time/clock_getres.c b/src/time/clock_getres.c new file mode 100644 index 00000000..e86a1ee4 --- /dev/null +++ b/src/time/clock_getres.c @@ -0,0 +1,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); +} |