[Git][NTPsec/ntpsec][master] All systems with sys/timex.h seem to have a subset of the STA_ symbols

Matt Selsky gitlab at mg.gitlab.com
Wed Dec 6 05:39:36 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
6ecd59ae by Matt Selsky at 2017-12-06T00:20:27-05:00
All systems with sys/timex.h seem to have a subset of the STA_ symbols

We therefore don't need to test for all of them.  Solaris, for example is
missing, STA_NANO, STA_CLK, and STA_MODE.

These 3 symbols were added to glibc in March 2008 per
https://sourceware.org/ml/libc-alpha/2008-03/msg00076.html

- - - - -


1 changed file:

- libntp/statestr.c


Changes:

=====================================
libntp/statestr.c
=====================================
--- a/libntp/statestr.c
+++ b/libntp/statestr.c
@@ -190,45 +190,19 @@ static const struct codestring res_access_bits[] = {
  * kernel discipline status bits
  */
 static const struct codestring k_st_bits[] = {
-# ifdef STA_PLL
 	{ STA_PLL,			"pll" },
-# endif
-# ifdef STA_PPSFREQ
 	{ STA_PPSFREQ,			"ppsfreq" },
-# endif
-# ifdef STA_PPSTIME
 	{ STA_PPSTIME,			"ppstime" },
-# endif
-# ifdef STA_FLL
 	{ STA_FLL,			"fll" },
-# endif
-# ifdef STA_INS
 	{ STA_INS,			"ins" },
-# endif
-# ifdef STA_DEL
 	{ STA_DEL,			"del" },
-# endif
-# ifdef STA_UNSYNC
 	{ STA_UNSYNC,			"unsync" },
-# endif
-# ifdef STA_FREQHOLD
 	{ STA_FREQHOLD,			"freqhold" },
-# endif
-# ifdef STA_PPSSIGNAL
 	{ STA_PPSSIGNAL,		"ppssignal" },
-# endif
-# ifdef STA_PPSJITTER
 	{ STA_PPSJITTER,		"ppsjitter" },
-# endif
-# ifdef STA_PPSWANDER
 	{ STA_PPSWANDER,		"ppswander" },
-# endif
-# ifdef STA_PPSERROR
 	{ STA_PPSERROR,			"ppserror" },
-# endif
-# ifdef STA_CLOCKERR
 	{ STA_CLOCKERR,			"clockerr" },
-# endif
 # ifdef STA_NANO
 	{ STA_NANO,			"nano" },
 # endif



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6ecd59ae262a4ea7cdbd8b48af6f9ef7cfa5e5d3

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6ecd59ae262a4ea7cdbd8b48af6f9ef7cfa5e5d3
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171206/e4532761/attachment.html>


More information about the vc mailing list