summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Suppress a NetBSD compiler warning.Eric S. Raymond2015-03-311-1/+1
|
* Another small step to /dev/ppsX. ppsthread now looping fine, no time yet.Gary E. Miller2015-03-311-0/+4
|
* Fix munging of a return code, and fix an indent.Gary E. Miller2015-03-311-41/+43
|
* Comment /dev/ppsX open flow.Gary E. Miller2015-03-311-1/+7
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-72/+16
| | | | | | | | | | | | | | | | | | | 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.
* Clean up most spint errors. All regression tests pass.Eric S. Raymond2015-03-281-4/+4
|
* Fix 4 places: Line expects to suppress X errors, found 0 errorsGary E. Miller2015-03-251-5/+4
|
* Followup on the recommendation in Savannah bug #44603.Eric S. Raymond2015-03-221-1/+1
| | | | | That is, "probably LOG_SHOUT should be replaced with LOG_ERROR in assignments and comparison". Fix the only case of this.
* Use LOG_* symbol when setting/comparing log levelZbigniew Chyla2015-03-221-2/+2
| | | | | Currently, debug level 0 is actually LOG_SHOUT. This change doesn't affect generated binary code.
* Acccept doing synchronization logging at only 1s granularity to remove floats.Eric S. Raymond2015-03-201-2/+2
| | | | All regression tests pass.
* Float elimination. All regression tests pass.Eric S. Raymond2015-03-201-6/+6
|
* Narrow the driver-type-reversion logic a bit. All regression tests pass.Eric S. Raymond2015-03-191-1/+2
|
* Fix UBX-MON-VER so we get u-blox version string.Gary E. Miller2015-03-181-0/+1
| | | | | | gpsd sends a ton of strings to the GPS on change from NMEA -> UBX mode. Most of it gets lost. So move version request later in the initialization.
* Fix tiny error that might prevent speed computation.Eric S. Raymond2015-03-161-1/+1
| | | | All regression tests pass.
* splint/cppcheck/coverity prerelease cleanup.Eric S. Raymond2015-03-131-2/+3
|
* Simplify the thread-monitor interface.Eric S. Raymond2015-03-111-1/+1
| | | | PPS observed live on GR601W.
* Fixing broken build scons minimal=on in libgpsd_coreJon Schlueter2015-03-091-0/+2
| | | | Missing guard for PPS_ENABLED ifdef guard around ppsthread_log
* splint cleanup of new code.Eric S. Raymond2015-03-081-4/+4
|
* Eliminate timestamp-T use from PPS thread code.Eric S. Raymond2015-03-081-2/+1
| | | | PPS observed live on GR-601W. All regression yests pass.
* Decouple (mostly) the PPS thread-monitor from the session structure.Eric S. Raymond2015-03-081-3/+42
| | | | | | | | | | | | This is the big step towards ntplib. A couple of minor issues remain to be ironed out, the most significant of which is what to do about the timestamp_t type. This changes some field offsets of private fields in struct gps_device_t. Probably does not require a version bump as access to them is all through the libgpsd API. All regression tests pass. PPS observed live in gpsmon direct mode.
* Remove a bit of ancient driver-specific cruft.Eric S. Raymond2015-03-071-3/+0
|
* Remove a confusing duplication of a memset() call. All regression tests pass.Eric S. Raymond2015-03-071-6/+2
|
* Expose gpsd_vlog(), so ppsthread.c will be able to see it.Eric S. Raymond2015-03-071-1/+1
|
* gpsd-report() -> gpsd_log()Eric S. Raymond2015-03-071-187/+190
| | | | | | | | | | | | | | | | This change is done so we can add a "log" hook to the pps_thread_t structure (this is not done yet) and harmonize with the name of the outer logging function. If that name had been left as gpsd_report() there would have been scope for bad confusion with the report_hook member. Also, remove two stray duplicative printf calls from the NMEA2000 driver (drivers shouldn't have printfs!) and fix one typo. This is a step towards factoring out ntplib. For that to happen, the PPS thread code needs to be decoupled from the core session structure. No logic changes. Object compatibility preserved. All regression tests pass.
* Factor PPS-related members of struct gps_device_t into a pps_thread_t structure.Eric S. Raymond2015-03-071-12/+4
| | | | | | | | | | | No logic changes, though it looks like there are two because two guards that would always have failed when the code was compiled with pps=off are now conditioned out. Also, this code is offset-preserving so as not to break link-time compatibility of libgpsd. (This is the subtler approach...) All regression tests pass.
* BUG FIX: Potential buffer overrun in visibilize().Eric S. Raymond2015-03-071-17/+31
| | | | | | | Not exploitable, but could gave been trouble if the funcition was fed more data than exprected through a coding error. All regression tests pass.
* Revert "Another step in prying ntplib loose. Partly decouple ppsthread.c ↵Eric S. Raymond2015-03-071-16/+5
| | | | | | fom sessions." Previous approch was a bit too frontal.
* Revert "ntplib extraction requires libgpsd object format bump to 23."Eric S. Raymond2015-03-071-4/+10
| | | | We need to sneak up on this in a more subtle way.
* ntplib extraction requires libgpsd object format bump to 23.Eric S. Raymond2015-03-071-10/+4
| | | | | | The new struct ppsthread_t isolates the interface to the PPS monitor loop. It will need more members before we're done, including some reporting hooks.
* Another step in prying ntplib loose. Partly decouple ppsthread.c fom sessions.Eric S. Raymond2015-03-071-5/+16
| | | | All regression tests pass.
* Simplify context initialization so we don't have to know structure shapes.Eric S. Raymond2015-03-061-27/+4
|
* Use pselect unconditionally. We're assuming POSIX-2001.1 conformance.Eric S. Raymond2015-03-021-10/+1
| | | | All regression tests pass.
* Remove redundant code.Eric S. Raymond2015-03-021-3/+0
|
* Implement POSIX clock_gettime(3) for systems that lack it (like Mac OS X).Eric S. Raymond2015-03-011-6/+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.
* fix broken build scons minimal=on ntp=on in libgpsd_coreJon Schlueter2015-02-241-0/+3
| | | | | Missing ifdef guard TIMEHINT around usage of time_offset in libgpsd_core.c
* Restore correct screen painting for gpsmon error messages.Eric S. Raymond2015-02-241-0/+2
| | | | There's still some minor bug here - extra newlines at level LOG_PROG and above.
* TOFF JSON message implemented and documented.Eric S. Raymond2015-02-231-3/+3
| | | | | | All regression tests pass. PPS observed live with gosmon. gpsmon presently ignores this message, but shout display its contents near PPS.
* Abolish all confusing uses of the word 'drift' for a time delta.Eric S. Raymond2015-02-231-1/+1
| | | | No logic changes. All regression tesrs pass. Live PPS observed.
* warning hunting cleanup unused variables in libgpsd_core.cJon Schlueter2015-02-231-1/+5
| | | | | added dummy usage of parameters if function is conditionally compiled out
* Avoid overexposure of an internal mask. EOF_SET -> EOF_ISEric S. Raymond2015-02-201-2/+2
| | | | | | | | Also, use PPSDRIFT_SET as a client-side status flag for JSON PPS rather than the (not yet shipped) TIMEDRIFT_SET. Next release we're probably going to add a drift object for in-line time. No logic changes. All regression tests pass.
* Fixing broken build scons minimal=on ntpshm=onJon Schlueter2015-02-181-0/+2
| | | | missing ifdef guards around pps_thread_stash_fixtime()
* Simplify NTP SHM segment creation.Eric S. Raymond2015-02-151-1/+0
| | | | | | This will avoid an object file compatibility break later. All regression tetrs pass. SHM segments allocate successfully in live testing.
* splint cleanup. All regression tests pass.Eric S. Raymond2015-02-121-0/+2
|
* Namespace cleanup.Eric S. Raymond2015-02-121-1/+1
|
* Mutex-lock the update of last-fix time.Eric S. Raymond2015-02-121-3/+3
|
* BSD compiler waening and splint cleanup.Eric S. Raymond2015-02-111-4/+4
|
* Fix the gpsmon display-trashing problem; add some documentation and asserts.Eric S. Raymond2015-02-101-4/+3
| | | | All regression tests pass.
* splint cleanup. All regressiion tests pass.Eric S. Raymond2015-02-091-5/+4
|
* Remove some remnants of the adaptive-delay experiment.Eric S. Raymond2015-02-091-21/+0
| | | | All regression tests pass.
* Build fix for when pps=no.Eric S. Raymond2015-02-031-1/+1
| | | | All regression tests pass.