summaryrefslogtreecommitdiff
path: root/src/linux/adjtimex.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-05 15:38:20 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-05 15:38:20 -0400
commitf209440bcfb5bee2386f00392f00f68c716850ce (patch)
treed65931cea9bcfec75a326655e966e9bf2ec021d2 /src/linux/adjtimex.c
parent2c4e9e6e4b570f4dbbcc5f2402b0257a3b43380a (diff)
downloadmusl-f209440bcfb5bee2386f00392f00f68c716850ce.tar.gz
implement the adjtime and adjtimex functions (nonstandard)
Diffstat (limited to 'src/linux/adjtimex.c')
-rw-r--r--src/linux/adjtimex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/linux/adjtimex.c b/src/linux/adjtimex.c
new file mode 100644
index 00000000..91de6824
--- /dev/null
+++ b/src/linux/adjtimex.c
@@ -0,0 +1,7 @@
+#include <sys/timex.h>
+#include "syscall.h"
+
+int adjtimex(struct timex *tx)
+{
+ return syscall(SYS_adjtimex, tx);
+}