]> granicus.if.org Git - strace/commitdiff
Update STA_* constants
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 1 May 2012 21:17:51 +0000 (21:17 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 1 May 2012 21:17:51 +0000 (21:17 +0000)
* time.c (adjtimex_status): Add STA_NANO, STA_MODE, and STA_CLK.
* NEWS (Improvements): Mention it.

NEWS
time.c

diff --git a/NEWS b/NEWS
index 7fdb17231c999edcea295684647560113de7a73d..1f3de086bd0d25447d0fc82ecbe96445848e3f22 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -28,7 +28,7 @@ Noteworthy changes in release 4.7
   * Added syscall entries for new linux syscalls.
   * Added syscall entries for direct socket system calls on powerpc.
   * Updated the list of errno constants.
-  * Updated lists of MSG_* and TCP_* constants.
+  * Updated lists of MSG_*, STA_*, and TCP_* constants.
   * Regenerated the list of ioctl names from Linux 3.3.
   * Enhanced switching between processes with different personalities.
   * Enhanced signals reporting by using short signal names.
diff --git a/time.c b/time.c
index 537265e048765eab66fbde58119c10096e2ab8ae..e457a5ff06a14cce29aa37b4646c8e64e0cb4f57 100644 (file)
--- a/time.c
+++ b/time.c
@@ -460,6 +460,15 @@ static const struct xlat adjtimex_status[] = {
 #endif
 #ifdef STA_CLOCKERR
        { STA_CLOCKERR, "STA_CLOCKERR"  },
+#endif
+#ifdef STA_NANO
+       { STA_NANO,     "STA_NANO"      },
+#endif
+#ifdef STA_MODE
+       { STA_MODE,     "STA_MODE"      },
+#endif
+#ifdef STA_CLK
+       { STA_CLK,      "STA_CLK"       },
 #endif
        { 0,            NULL            }
 };