aboutsummaryrefslogtreecommitdiff
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
parentadd getmntent_r interface (all of mntent is nonstandard anyway) (diff)
downloadgrovel-f209440bcfb5bee2386f00392f00f68c716850ce.tar.gz
grovel-f209440bcfb5bee2386f00392f00f68c716850ce.tar.xz
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);
+}