[PATCH] Update ADJ_* constants

Stefan Sørensen stefan.sorensen at spectralink.com
Fri Jan 31 11:01:02 UTC 2014


* time.c (adjtimex_modes): Add ADJ_TAI, ADJ_SETOFFSET, ADJ_MICRO,
ADJ_NANO, ADJ_OFFSET_SS_READ.

Signed-off-by: Stefan Sørensen <stefan.sorensen at spectralink.com>
---
 time.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/time.c b/time.c
index 2364281..78f9b78 100644
--- a/time.c
+++ b/time.c
@@ -422,12 +422,27 @@ static const struct xlat adjtimex_modes[] = {
 #ifdef ADJ_TIMECONST
 	{ ADJ_TIMECONST, "ADJ_TIMECONST"	},
 #endif
+#ifdef ADJ_TAI
+	{ ADJ_TAI, "ADJ_TAI"				},
+#endif
+#ifdef ADJ_SETOFFSET
+	{ ADJ_SETOFFSET, "ADJ_SETOFFSET"	},
+#endif
+#ifdef ADJ_MICRO
+	{ ADJ_MICRO, "ADJ_MICRO"			},
+#endif
+#ifdef ADJ_NANO
+	{ ADJ_NANO, "ADJ_NANO"				},
+#endif
 #ifdef ADJ_TICK
 	{ ADJ_TICK,	"ADJ_TICK"		},
 #endif
 #ifdef ADJ_OFFSET_SINGLESHOT
 	{ ADJ_OFFSET_SINGLESHOT, "ADJ_OFFSET_SINGLESHOT" },
 #endif
+#ifdef ADJ_OFFSET_SS_READ
+	{ ADJ_OFFSET_SS_READ, "ADJ_OFFSET_SS_READ" },
+#endif
 	{ 0,		NULL			}
 };
 
-- 
1.8.5.3





More information about the Strace-devel mailing list