about summary refs log tree commit diff
path: root/src/time/clock_settime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/clock_settime.c')
-rw-r--r--src/time/clock_settime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/time/clock_settime.c b/src/time/clock_settime.c
new file mode 100644
index 00000000..e880fb33
--- /dev/null
+++ b/src/time/clock_settime.c
@@ -0,0 +1,8 @@
+#define SYSCALL_RETURN_ERRNO
+#include <time.h>
+#include "syscall.h"
+
+int clock_settime(clockid_t clk, const struct timespec *ts)
+{
+	return syscall2(__NR_clock_settime, clk, (long)ts);
+}