| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
All regression tests pass.
|
|
|
|
|
|
|
| |
We're now back to no logic changes since code freeze. If SHM(1) still fails
as Gray reported on the dev list, something else is going on.
All regression tests pass.
|
| |
|
|
|
|
|
|
|
| |
All callers ignore value returned by timespec_str. Additionally, the
function returns simply the result of snprintf(), which is not
necessarily the number of chars written to the buffer (if the buffer
provided by the caller was too small).
|
|
|
|
|
|
| |
This will avoid an object file compatibility break later.
All regression tetrs pass. SHM segments allocate successfully in live testing.
|
|
|
|
| |
All regression tests pass.
|
| |
|
|
|
|
|
| |
timespec_diff_ns() should not be used is the delta is more than
about 2 seconds.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This is a first step towards removing the NTPSHMSEGS limit.
Instead of devices holding two indices into the segment array in
the context structure, give them copies of the actual segment pointers
and allow ntpshm_put() to take a pointer limit.
All regression tests pass.
|
|
|
|
| |
All regression tests pass.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
...with calls to gps_notify(), which indirects to its output method
through a slot in an errout structure. Usually the errout structure
lives inside the session context, but because struct errout_t is its
own thing this does not have to be the case. One large clique of
gpsd_notify() calls, in packet.c and isgps.c, looks at a struct
errout_t copy in a lexer control block
This change is not complete. Remnant gpsd_report calls need to be changed,
and gpsmon needs to be tweaked so that the struct_error_t in its context
is a non-defaukt hook updating the cuses display rather than simply
dumping to stderr. Also the report label functionality needs to be added.
All regression tests pass.
|
|
|
|
|
|
| |
A major step towards eliminating reverse linkage.
All regression tests pass.
|
| |
|
|
|
|
|
| |
ntpshm.c was still using PATH_MAX, resulting in a build failure on
architectures like hurd-i386.
|
| |
|
|
|
|
|
|
|
|
| |
The tv field should be the local time when was the sample received, not
the reference time. Otherwise the sample could be ignored as coming from
future.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
| |
|
|
|
|
| |
All regression tests pass. PPS is live.
|
|
|
|
|
|
| |
Coverity found a potential overrun bug.
All regression tests pass. PPS is live.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
| |
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
| |
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
|
| |
Should be no functional change.
Thanks to: Michael Tatarinov <kukabu@gmail.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix per Harlan Stenn <stenn@ntp.org>
|
| |
|
| |
|
|
|
|
| |
ntpshm uses the same sec for usec and nsec, so do not round.
|
| |
|
|
|
|
|
|
|
|
|
| |
No logic changes in this commit. We push naosecond precision closer to
where time hints are shipped. Changes to ppsthread.c are kept minimal;
it needs a cleanup but that will be done in another change that can be
separately reviewed.
All regression tests pass. PPS is live in gpsmon and reported by gpsd.
|
|
|
|
| |
All regression tests pass. PPS is live.
|
| |
|
|
|
|
| |
Also, further contain the latter.
|
|
|
|
|
|
|
|
|
| |
The previous change (ntpd_link_activate() moving to after device-open
time) made it possible to lift the attempts at KPPS initialization out
of the PPS-watcher thread, because it no longer has to await the device
open. This also greatly simplifies the generic thread-watcher interface.
All regression tests pass, PPS is live.
|
|
|
|
|
|
|
|
|
| |
This had been breaking the regression tests for a while (since
"Unconditionally enable PPS at startup." to be exact) but I didn't
realize it because an unrelated bug in the build system was usually
turning PPS off for me. Live tests were unaffected.
All regression tests pass with pps either on or off. Live PPS works.
|
|
|
|
| |
We'll have to sneak up on this change more slowly.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ntp_offset becomes time_offset. There is a new config symbol CHRONY_ENABLE;
most time service code is npw controlled by TIMESERVICE_ENABLE. The
file ntpshm.c becomes timeexport.c
This change is not complete. More disentanglement has to be done inside
timeexport.c itself; at the moment enabling one but not both of
ntpshm or chrony will probably break its compile. The point of getting
this commit out is so Gary will see the new baseline code ASAP.
All regression tests pass.
|