aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-11-22 10:23:12 -0800
committerUlrich Drepper <drepper@redhat.com>2009-11-22 10:23:12 -0800
commit89b432d7a5befb85048c97e881b2106e8df58e43 (patch)
tree2f35d7ea883394baa8107647fdc99cec93b202e0 /sysdeps
parent66221417957963c1d2df8d79f43573e328df2275 (diff)
downloadglibc-89b432d7a5befb85048c97e881b2106e8df58e43.tar
glibc-89b432d7a5befb85048c97e881b2106e8df58e43.tar.gz
glibc-89b432d7a5befb85048c97e881b2106e8df58e43.tar.bz2
glibc-89b432d7a5befb85048c97e881b2106e8df58e43.zip
Fix up <sys/timex.h> a bit more for recent API changes.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/sys/timex.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/timex.h b/sysdeps/unix/sysv/linux/sys/timex.h
index 5f10c7fa4c..88b87f1089 100644
--- a/sysdeps/unix/sysv/linux/sys/timex.h
+++ b/sysdeps/unix/sysv/linux/sys/timex.h
@@ -85,6 +85,9 @@ struct timex
#define MOD_TIMECONST ADJ_TIMECONST
#define MOD_CLKB ADJ_TICK
#define MOD_CLKA ADJ_OFFSET_SINGLESHOT /* 0x8000 in original */
+#define MOD_TAI ADJ_TAI
+#define MOD_MICRO ADJ_MICRO
+#define MOD_NANO ADJ_NANO
/* Status codes (timex.status) */
@@ -108,8 +111,9 @@ struct timex
#define STA_MODE 0x4000 /* mode (0 = PLL, 1 = FLL) (ro) */
#define STA_CLK 0x8000 /* clock source (0 = A, 1 = B) (ro) */
+/* Read-only bits */
#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \
- STA_PPSERROR | STA_CLOCKERR) /* read-only bits */
+ STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK)
/* Clock states (time_state) */
#define TIME_OK 0 /* clock synchronized, no leap second */