Re: Various cleanups: threads, STA_NANO

2019-01-22 Thread Eric S. Raymond via devel
Matthew Selsky via devel : > We added the STA_NANO checks to support systems that have some STA_ > symbols, but not all. See > https://lists.ntpsec.org/pipermail/vc/2017-December/003604.html In particular, some of our targets (some BSDs, I don't remember which) have only microsecond, not nanoseco

Re: lockclock runtime option

2019-01-22 Thread Eric S. Raymond via devel
Hal Murray : > Perhaps we should review this area. What will we want to see when NTS is > deployed. You and Achim are probably the best judges of that we have. So write a strawman and put it in nts.adoc. -- http://www.catb.org/~esr/";>Eric S. Raymond My work is funded by the I

Re: Various cleanups: threads, STA_NANO

2019-01-22 Thread Hal Murray via devel
> The C code has no #ifdefs for HAVE_PTHREAD or HAVE_PTHREAD_H, so we're only > talking about cleaning up some waf python code, correct? Yes, or eliminating it. Simplifying "little" things like this often allows simplification in some other area. > libthr is a FreeBSD thing... Than

AttributeError: 'AnsiTerm' object has no attribute 'buffer'

2019-01-22 Thread Hal Murray via devel
Anybody recognize this? I've seen it on NetBSD and FreeBSD I haven't figure out what I'm doing to make it happen. Waf: Leaving directory `/home/murray/ntpsec/foo/build/main' Traceback (most recent call last): File "/home/murray/ntpsec/foo/.waf3-1.9.15-7481b2b5d90177d4bb747dbff06bef90/w aflib/S

Re: Various cleanups: threads, STA_NANO

2019-01-22 Thread Matthew Selsky via devel
On Tue, Jan 22, 2019 at 07:37:18PM -0800, Hal Murray via devel wrote: > > We have various cruft associated with threads. Can we add POSIX threads to > our list of requirements? Or is it already included in POSIX.1-2001 and > ISO/IEC 9899:1999 (C99)? POSIX threads are optional for POSIX.1-2001

Various cleanups: threads, STA_NANO

2019-01-22 Thread Hal Murray via devel
We have various cruft associated with threads. Can we add POSIX threads to our list of requirements? Or is it already included in POSIX.1-2001 and ISO/IEC 9899:1999 (C99)? The idea is to remove HAVE_PTHREAD_H and HAVE_PTHREAD from config.h and remove most of wafhelpers/check_pthread.py waf

Re: lockclock runtime option

2019-01-22 Thread Hal Murray via devel
Eric said: > It's never been an an *ntpq* "system variable" that can be queried through > that interface, I meant. It's easy to add new variables. Old ntpq may not show them in any of its packaged printout like peers or kerninfo, but you can get them by asking explicityly. There are also 2

Re: lockclock runtime option

2019-01-22 Thread Eric S. Raymond via devel
Hal Murray : > > Alas, it's not a system variable. > > Looks like it is: > include/ntpd.h:extern bool lockclock; /* lock to the system > clock? */ It's never been an an *ntpq* "system variable" that can be queried through that interface, I meant. -- http://www

Re: lockclock runtime option

2019-01-22 Thread Hal Murray via devel
> Alas, it's not a system variable. Looks like it is: include/ntpd.h:extern bool lockclock; /* lock to the system clock? */ -- These are my opinions. I hate spam. ___ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/

Re: ntpq change in behaviour

2019-01-22 Thread Eric S. Raymond via devel
Achim Gratz via devel : > Before I forget: I really don't care about when I've configured the > project. Can that date please be the date of the corresponding commit > (if it's there at all) and the version string something that git > describe puts out, like NTPsec_1_1_3-35-g6c029ef4c (which is wa

Re: lockclock runtime option

2019-01-22 Thread Eric S. Raymond via devel
Achim Gratz via devel : > It would be nice if lockclock mode would get displayed in the system > variables in ntpq if it was on, however. Alas, it's not a system variable. I could, I suppose, make it one. But you can get the same effect by querying the driver tyoe and flag1. -- h

Re: ntpq change in behaviour

2019-01-22 Thread Achim Gratz via devel
Hal Murray via devel writes: > I think there are 2 cases for the version string I'd like. > > If I have made local edits, I want the build date. That's the best summary > of > the edits I've made. Git describe already tells you if you have uncommited local edits, by adding "-dirty" at the end.

Re: ntpq change in behaviour

2019-01-22 Thread Hal Murray via devel
> Before I forget: I really don't care about when I've configured the project. > Can that date please be the date of the corresponding commit (if it's there > at all) and the version string something that git describe puts out, like > NTPsec_1_1_3-35-g6c029ef4c (which is way more helpful to me in

Re: ntpq change in behaviour

2019-01-22 Thread Achim Gratz via devel
Achim Gratz via devel writes: > Hal Murray via devel writes: >> A likely candidate is a call to loop_config() > > Yes, I think you've got the bug there. I'll still have to watch the > statistics to see if there's something else amiss, but for the short > while I've run with the new code it looks l

Re: lockclock runtime option

2019-01-22 Thread Achim Gratz via devel
Eric S. Raymond via devel writes: > I don't either, and I think there is no functional point in trying to cope > with that. So I'm going to deal with this by adding to the documentation a > line that says changing this flag at runtime may produce undefined behavior. Works for me. It would be nice