Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1322862 > unrolled thread
| Started by | "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> |
|---|---|
| First post | 2016-02-01 08:40 +0100 |
| Last post | 2016-02-01 09:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
<sys/timex.h> and NTP incompatibility (MOD_NANO) "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> - 2016-02-01 08:40 +0100
Re: <sys/timex.h> and NTP incompatibility (MOD_NANO) Vitezslav Samel <vitezslav@samel.cz> - 2016-02-01 09:30 +0100
| From | "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> |
|---|---|
| Date | 2016-02-01 08:40 +0100 |
| Subject | <sys/timex.h> and NTP incompatibility (MOD_NANO) |
| Message-ID | <qXhfz-7Jc-7@gated-at.bofh.it> |
Hi folks! I'd wish ntp_loopfilter.c would compile without problems. The mess is (I had fixed it about 15 years ago (keyword "PPSkit")) that Linux uses ADJ_* flags to do traditional adjtime() things, as well as NTP kernel-related things (That's why the Linux syscall is named adjtimex()). NTP however expects the flags to have names like MOD_* to modify settings, and STA_* for status bits to test. When <sys/timex.h>lacks a MOD_NANO, but has a STA_NANO, compilation of ntpd/ntp_loopfilter.c fails. I'd wish this to be fixed. I don't know which "Bonehead weakener" is needed to get the fix permanently into Linux. My proposal many years ago was to use ADJ_* style flags only for the Linux specialities (the adjtime() part of adjtimex()), and use the MOD_* style flags for the NTP part of adjtimex(). Regards, Ulrich --- Appendix: Linux has only these: /* xntp 3.4 compatibility names */ #define MOD_OFFSET ADJ_OFFSET #define MOD_FREQUENCY ADJ_FREQUENCY #define MOD_MAXERROR ADJ_MAXERROR #define MOD_ESTERROR ADJ_ESTERROR #define MOD_STATUS ADJ_STATUS #define MOD_TIMECONST ADJ_TIMECONST #define MOD_CLKB ADJ_TICK #define MOD_CLKA ADJ_OFFSET_SINGLESHOT /* 0x8000 in original */
[toc] | [next] | [standalone]
| From | Vitezslav Samel <vitezslav@samel.cz> |
|---|---|
| Date | 2016-02-01 09:30 +0100 |
| Message-ID | <qXi1Y-8lp-13@gated-at.bofh.it> |
| In reply to | #1322862 |
Hi! On Mon, Feb 01, 2016 at 08:38:09AM +0100, Ulrich Windl wrote: > Hi folks! > > I'd wish ntp_loopfilter.c would compile without problems. The mess is > (I had fixed it about 15 years ago (keyword "PPSkit")) that Linux uses > ADJ_* flags to do traditional adjtime() things, as well as NTP > kernel-related things (That's why the Linux syscall is named > adjtimex()). > NTP however expects the flags to have names like MOD_* to modify > settings, and STA_* for status bits to test. > > When <sys/timex.h> lacks a MOD_NANO, but has a STA_NANO, compilation > of ntpd/ntp_loopfilter.c fails. This (userspace) header from glibc package was fixed back in Nov 2009 and was included in glibc-2.12 release dated May 2010. Seems like you are using very old glibc package. Upgrade first and check again. Cheers, Vita
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web