about summary refs log tree commit diff
path: root/src/linux/clock_adjtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/clock_adjtime.c')
-rw-r--r--src/linux/clock_adjtime.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/linux/clock_adjtime.c b/src/linux/clock_adjtime.c
new file mode 100644
index 00000000..1fc9bef4
--- /dev/null
+++ b/src/linux/clock_adjtime.c
@@ -0,0 +1,9 @@
+#define _GNU_SOURCE
+#include <time.h>
+#include <sys/timex.h>
+#include "syscall.h"
+
+int clock_adjtime (clockid_t clock_id, struct timex *utx)
+{
+	return syscall(SYS_clock_adjtime, clock_id, utx);
+}