projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implement the remaining clock_* interfaces
[musl]
/
src
/
time
/
clock_getres.c
diff --git a/src/time/clock_getres.c
b/src/time/clock_getres.c
new file mode 100644
(file)
index 0000000..
e86a1ee
--- /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);
+}