summaryrefslogtreecommitdiff
path: root/gpsctl.c
Commit message (Collapse)AuthorAgeFilesLines
* BSD compiler waening and splint cleanup.Eric S. Raymond2015-02-111-1/+1
|
* Implement and document GPSD_SHM_KEY environment variable.Eric S. Raymond2015-02-091-1/+1
|
* splint cleanup. All regressiion tests pass.Eric S. Raymond2015-02-091-1/+2
|
* Add -R option to gpsctl to remove SHM export segment, use in SConstruct.Eric S. Raymond2015-02-091-2/+26
| | | | All regression tests pass.
* Easy splint cleanups. All regression tests pass.Eric S. Raymond2015-01-211-0/+4
|
* Always use sizeof to get array sizeZbigniew Chyla2015-01-131-1/+1
| | | | | | Don't use constant/expression from an array's definition when referring to its size. Eliminates redundancy and avoids problems when array size changes. The change doesn't affect generated code.
* Permit error messages from gpsctl again.Eric S. Raymond2014-09-201-0/+2
|
* Minimal option requires conditionalization of some code.Eric S. Raymond2014-09-061-0/+2
| | | | | All regression tests pass with default options (GPS tests are disabled with minimal on, because socket_export is off).
* splint/cppcheck cleanuo after the gpsd_report change.Eric S. Raymond2014-08-271-4/+2
| | | | All regression tests pass.
* Now that the transition is done we can restore the gpsd_report name.Eric S. Raymond2014-08-271-59/+59
| | | | All regression tests pass.
* Reverse linkage of gpsd_report() is abolished. All regression tests pass.Eric S. Raymond2014-08-271-11/+2
| | | | Some cleanup and testing is still required.
* More gpsd_report removal. All regression tests pass.Eric S. Raymond2014-08-271-1/+1
|
* The big leap. Most instances of gpsd_report are replaced...Eric S. Raymond2014-08-271-59/+59
| | | | | | | | | | | | | | | | ...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.
* Introduce struct errout_t to encapsulate error-reporting hooks.Eric S. Raymond2014-08-271-62/+62
| | | | | | A major step towards eliminating reverse linkage. All regression tests pass.
* Eliminate reverse linkage of gpsd_write. All regression tests pass.Eric S. Raymond2014-08-261-8/+0
|
* Fix trivial but fatal errors introduced by last commit.Eric S. Raymond2014-08-241-1/+1
| | | | All regtession tests pass. gpsmon works live on GR601-W (with PPS).
* Properly free devices when select() sees bad fds for them.Eric S. Raymond2014-08-241-4/+0
|
* Include <sys/select.h> everywhere fd_set us used.Eric S. Raymond2014-08-181-0/+1
| | | | | | | | This came up in connection with Android. According to SuS this shouln't be necessary if sys/time.h was included, but oh well. While we;re at it, rearrange some includes for more consistent order. All regression tests pass.
* Attempt to recover from EBADF in the main select.Eric S. Raymond2014-08-181-0/+8
| | | | All regression tests pass.
* Use the gps_errstr() to handle gps_open() errors.Michael Tatarinov2013-11-281-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Investigating ways to get rid of CLOSE_DELAY in the test framework...Eric S. Raymond2013-11-271-0/+4
| | | | | | | | ...actually revealed a bug - device-shutdown messages getting lost on the way out to the test clients. This set of changes mostly fixes it. Some glitches remain; this state of things passes all regression tests but attempting to get rid of what now ought to be unnecessary code in fake.py does not pass. To be continued...
* Typo fix.Eric S. Raymond2013-11-131-6/+6
|
* In gpsctl, make client mode ID operation report the device subtype.Eric S. Raymond2013-11-131-5/+10
|
* Teach gpsctl to extract subtype information.Eric S. Raymond2013-11-131-13/+3
| | | | This degree of linger after packet sync is sufficient on a BU355 (SiRF-III).
* Rename and rationalize driver table instances. No logic changes.Eric S. Raymond2013-11-121-1/+1
|
* Fix more build breakage. Partial splint cleanup.Eric S. Raymond2013-11-121-2/+0
|
* I don't know how the previous commit compiled...Eric S. Raymond2013-11-121-1/+1
| | | | | | Now I do. scons check doesn't build gpsctl. All regression tests pass. PPS is live.
* Polish the modified gpsmon timeout logic.Eric S. Raymond2013-11-121-3/+4
|
* Nuke short timeout on gpsctl sync, it was producing spurious failure messages.Eric S. Raymond2013-11-111-1/+15
|
* Explain some code.Eric S. Raymond2013-11-111-1/+2
|
* Deal more gracefully with a zero timeout.Eric S. Raymond2013-11-111-3/+5
|
* Full splint cleanup. Partial cppcheck cleanup.Eric S. Raymond2013-11-051-1/+1
|
* Fix a very minor bug reported by Trellisware.Eric S. Raymond2013-10-101-1/+1
|
* splint cleanup.Eric S. Raymond2013-10-101-4/+0
|
* Handle error returns from gpsd_await_data() a bit more gracefully.Eric S. Raymond2013-10-101-0/+11
|
* Typo fix.Eric S. Raymond2013-10-101-1/+1
|
* Make mode-switching from gpsctl work when going through the daemon.Eric S. Raymond2013-10-101-5/+20
|
* Add some new mechanism.Eric S. Raymond2013-10-091-1/+8
|
* Make a 0 rewake time meaningful.Eric S. Raymond2013-10-091-1/+1
|
* splint cleanup. All regression tests pass.Eric S. Raymond2013-10-091-4/+4
|
* Restore gpsctl's ID function and update docs.Eric S. Raymond2013-10-091-0/+4
|
* UBX mode-switching from gpsctl finally works.Eric S. Raymond2013-10-091-95/+65
|
* Introduce a mode option so gpscotl can be less intrusive than gpsd.Eric S. Raymond2013-10-091-1/+1
|
* We can now monitor low-level string sends through gpsmon.Eric S. Raymond2013-10-041-0/+8
| | | | Now we'll know exactly what's being sent on a UBX mode change.
* splint and cppcheck cleanup. All regression tests pass.Eric S. Raymond2013-09-291-1/+0
|
* Properly label debug reports from different programs.Eric S. Raymond2013-09-291-0/+11
| | | | All regression tests pass.
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-70/+109
| | | | | | | | This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.
* Move gpsd_report from gpsctl.c into libgpsd_core.c.Bernd Zeimetz2013-08-311-46/+0
| | | | | Making ldd happy by fixing undefined symbol: gpsd_report (./libgpsd.so.21.0.0)
* Fix static-checker warnings. All regression tests pass.Eric S. Raymond2013-04-301-1/+1
| | | | | cppchecker now finds variables that could have reduced scope; that's most of these.
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-30/+30
|