summaryrefslogtreecommitdiff
path: root/ntpshmmon.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicate definition of timespec_diff_ns()Gary E. Miller2015-06-041-5/+1
| | | | | Plus a logical reordering of things so more timespec stuff is in timespec.h
* Fix overflow issue on 32 bit binaries.Gary E. Miller2015-06-031-1/+1
| | | | | | | | | Timespec is a 62 bit number, it does not fit in the 32 bits of a long. Use 'long long' instead. 'long long' is always at least 64 bits long and is the same as a native int when compiled as 64 bit. Note that many 64 bit OS still run 32 bit binaries, and many small devices like RasPi's are 32 bit.
* ntpshmmon overflowed diff time on 32 bit hosts.Gary E. Miller2015-06-031-5/+11
| | | | Timespec is a 62 bit quantity that does not fit in a 32 bit long.
* Print ntpshmmon banner as comment to follow specMiroslav Lichvar2015-05-071-1/+1
| | | | Signed-off-by: Gary E. Miller <gem@rellim.com>
* More trailing whitespace fixups.Gary E. Miller2015-04-301-2/+2
|
* Line up the column headings betterGary E. Miller2015-04-011-1/+1
|
* Document ntpshmmon structure and add heading to outputGary E. Miller2015-04-011-0/+1
| | | | All the clocks look alike...
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-10/+0
| | | | | | | | | | | | | | | | | | | The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
* splint cleanup. Fixes for minor but real issues...Eric S. Raymond2015-03-281-1/+1
| | | | | ...no attempt to address the weird cross-platfprm variability we've seen lately. All regression tests pass.
* Rate-limit ntpshmmon properly, and make the limit settable.Eric S. Raymond2015-03-171-3/+12
|
* Appeasement cast for 32-bit maxhines.Eric S. Raymond2015-03-141-3/+3
|
* Fix minor bug in ntpshmmon uncovered by Coverity.Eric S. Raymond2015-03-131-19/+13
|
* Begin factoring out ntplib.Eric S. Raymond2015-03-071-4/+4
| | | | | | | All knowledge of the ntpd SHM format is now confined to the three files ntpshm.h, ntpshmread.c, and ntpshmwrite.c. No logic changes. All regression tests pass. PPS works on GR-601W.
* Tell ntpshhmon to merely snoop SHM updates, not consume them.Eric S. Raymond2015-03-031-1/+1
|
* splint cleanup. All regression tests pass.Eric S. Raymond2015-03-021-4/+4
|
* Added -n and -t termination options to ntpshmmon.Eric S. Raymond2015-03-021-7/+18
|
* Generqte -V messages in a uniform way.Eric S. Raymond2015-03-021-2/+2
| | | | All regression tests pass.
* Add -V option to ntpshmmon.Eric S. Raymond2015-03-021-2/+8
|
* ntpshm.c -> ntpshmwrite.c; ntpmon -> ntpshmmon.Eric S. Raymond2015-02-271-0/+127
All regression tests pass.