From 5128015145c5d25a8ea66af38abbb45b6c3e8c99 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 15 Mar 2014 09:32:20 -0700 Subject: Add clock_adjtime syscall Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer --- include/sys/timex.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/sys') diff --git a/include/sys/timex.h b/include/sys/timex.h index 621afce62..9082a28fd 100644 --- a/include/sys/timex.h +++ b/include/sys/timex.h @@ -20,6 +20,7 @@ #include #include +#include /* These definitions from linux/timex.h as of 2.2.0. */ @@ -125,7 +126,9 @@ libc_hidden_proto(adjtimex) extern int ntp_gettime (struct ntptimeval *__ntv) __THROW; extern int ntp_adjtime (struct timex *__tntx) __THROW; #endif - +#if defined __UCLIBC_HAS_REALTIME__ +extern int clock_adjtime (clockid_t __clock_id, struct timex *__ntx) __THROW; +#endif __END_DECLS #endif /* sys/timex.h */ -- cgit v1.2.3 From c6e8f34a358f846aa15cb9f53251da3d6668abd1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 25 Aug 2014 16:58:13 -0700 Subject: timex: Sync with glibc Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer --- include/sys/timex.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/sys') diff --git a/include/sys/timex.h b/include/sys/timex.h index 9082a28fd..57059bd14 100644 --- a/include/sys/timex.h +++ b/include/sys/timex.h @@ -67,8 +67,12 @@ struct timex #define ADJ_ESTERROR 0x0008 /* estimated time error */ #define ADJ_STATUS 0x0010 /* clock status */ #define ADJ_TIMECONST 0x0020 /* pll time constant */ -#define ADJ_TICK 0x4000 /* tick value */ -#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */ +#define ADJ_TAI 0x0080 /* set TAI offset */ +#define ADJ_MICRO 0x1000 /* select microsecond resolution */ +#define ADJ_NANO 0x2000 /* select nanosecond resolution */ +#define ADJ_TICK 0x4000 /* tick value */ +#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */ +#define ADJ_OFFSET_SS_READ 0xa001 /* read-only adjtime */ /* xntp 3.4 compatibility names */ #define MOD_OFFSET ADJ_OFFSET -- cgit v1.2.3