summaryrefslogtreecommitdiff
path: root/ntpshmread.c
Commit message (Collapse)AuthorAgeFilesLines
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Only read the system clock for tvc is we are going to use it.Gary E. Miller2016-06-161-2/+0
| | | | Stop reading time that is just going to be thrown away.
* More trailing whitespace fixups.Gary E. Miller2015-04-301-2/+2
|
* Revert "Copy structs using assignment, not memcpy()."Gary E. Miller2015-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit d1965788249d7e22cdde4021d452cf0dc6c6b9bd. This breaks my build on Gentoo running gcc 4.9.2 libgps_shm.c: In function 'int gps_shm_read(gps_data_t*)': libgps_shm.c:122:12: error: no match for 'operator=' (operand types are 'gps_data_t' and 'volatile gps_data_t') noclobber = shared->gpsdata; ^ libgps_shm.c:122:12: note: candidate is: In file included from gpsd.h:350:0, from libgps_shm.c:30: gps.h:1918:8: note: gps_data_t& gps_data_t::operator=(const gps_data_t&) struct gps_data_t { ^ gps.h:1918:8: note: no known conversion for argument 1 from 'volatile gps_data_t' to 'const gps_data_t&'
* Copy structs using assignment, not memcpy().Zbigniew Chyla2015-04-281-1/+1
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-10/+2
| | | | | | | | | | | | | | | | | | | 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.
* Yet more: Line expects to suppress X error, found 0 errorsGary E. Miller2015-03-251-1/+1
|
* splint cleanup of new code.Eric S. Raymond2015-03-081-0/+1
|
* ppsthread.c is now fully decoupled from the libgpsd_core.c structures.Eric S. Raymond2015-03-081-1/+0
| | | | | | | | | | | | | | | | | The files ntpshm.h ntpshmread.c ntpshmwrite.c ppsthread.[ch] timespec_str.[ch] now form a standalone group which can be used for NTP communication and PPS thread monitoring. Separation is not yet perfect, as ppsthread.c requires gpsd_config.h for HAVE_SYS_TIMEPPS_H and npshmread.c/ntpshmwrite.c both require compiler.h. All regression tests pass. PPS is live on a GR-601W.
* Begin factoring out ntplib.Eric S. Raymond2015-03-071-2/+2
| | | | | | | 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.
* Comment and documentation polishing.Eric S. Raymond2015-03-061-3/+5
|
* Cmmment typo.Gary E. Miller2015-03-031-1/+1
| | | | ntp -> ntpd
* Tell ntpshhmon to merely snoop SHM updates, not consume them.Eric S. Raymond2015-03-031-2/+9
|
* Implement POSIX clock_gettime(3) for systems that lack it (like Mac OS X).Eric S. Raymond2015-03-011-9/+0
| | | | | | | On Mac OS X it will get proper nanosecond precision; elsewhere, only microseconds. Hides the conformance failure from the rest of the code. All regression tests pass.
* ntpshm.c -> ntpshmwrite.c; ntpmon -> ntpshmmon.Eric S. Raymond2015-02-271-1/+1
| | | | All regression tests pass.
* Whitespace & comment polishing.Eric S. Raymond2015-02-271-6/+5
|
* clock_gettime() port fix for OS X.Eric S. Raymond2015-02-271-0/+11
|
* Pre-release splint/cppcheck/coverity cleanup. All regression tests pass.Eric S. Raymond2015-02-261-5/+13
|
* Concurrency protection for ntpmon using memory barrier instructions.Eric S. Raymond2015-02-251-36/+49
|
* In gpmon, it was confusing to use 'mode' as a report field that wasn't SHM mode.Eric S. Raymond2015-02-251-10/+9
|
* Make ntpmon autoconfigure and do subsecond polling.Eric S. Raymond2015-02-251-2/+7
|
* In ntpmon, increase collection time precision and collect the precision field.Eric S. Raymond2015-02-251-2/+3
|
* ntpmon code polishing.Eric S. Raymond2015-02-251-1/+9
|
* In tpmon, timestamp reports properly and deal with bad status.Eric S. Raymond2015-02-251-0/+3
|
* First cut at an interface for the read side of an NTP SHM connection.Eric S. Raymond2015-02-251-0/+141
Not yet used or tested.