summaryrefslogtreecommitdiff
path: root/cgps.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactor representation of satellite data into an array of structs...Eric S. Raymond2014-09-221-19/+12
| | | | | | | | | | | | | | | | | | ...from a set of parallel arrays. This change flushed out a longstanding bug in the computation of DOPs for estimated error bars. Some test-load rebuilds were required: geostar-geos1m-binary.log.chk: With this change error estimates are computed and reported. trimble-lassen_iq-3dfix.log, trimble-lassen_iq-3dfix.log: the change revealed a bug in the computation of satellite-seen bits. Error estimates did not change. navcom.log: Error estimates changed. With these rebuilds, all regression tests pass.
* Full splint cleanup.Eric S. Raymond2013-11-121-0/+2
|
* cgps: don't overwrite partial lines in the message dump.Beat Bolli2013-11-101-1/+5
| | | | | Signed-off-by: Beat Bolli <bbolli@ewanet.ch> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Full splint cleanup. Partial cppcheck cleanup.Eric S. Raymond2013-11-051-3/+4
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-7/+7
|
* Replace exit(2) with exit(EXIT_FAILURE). None of these were documented.Eric S. Raymond2012-09-071-1/+1
| | | | | | | | This is a separate commit so we can revert it someday if making the distinction again comes to seem more important than struct mingw portability. All regression tests pass.
* Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE})Eric S. Raymond2012-09-071-3/+3
| | | | Note there are some exit(2) instances we bneed to decide what to do with.
* Display time offset (system time - GPS time) in cgps.Eric S. Raymond2011-10-101-4/+13
|
* Stop trying to display a single device type in cgps. Might be > 1 attached.Eric S. Raymond2011-10-041-22/+13
|
* Refactoring and splint cleanup.Eric S. Raymond2011-09-291-73/+7
|
* splint cleanup.Eric S. Raymond2011-09-291-1/+1
|
* splint cleanup.Eric S. Raymond2011-09-281-3/+5
|
* Defensive programming.Eric S. Raymond2011-09-171-3/+3
|
* Add a sanoty check.Eric S. Raymond2011-09-161-6/+8
|
* Make the Maidenhead convrter available in Python.Eric S. Raymond2011-03-291-1/+1
|
* Add Maidehead grid square to cgps optional fields.Eric S. Raymond2011-03-291-5/+15
|
* In the client API, take the data buffer out of the gpsdata_t structure.Eric S. Raymond2011-03-181-1/+1
| | | | | | | | | | | | | | | | | | tz has shown me that we had a point of brittleness where the size of the client's data buffer was exposed in gps_data_t. Solution: move it (and the data-waiting count) to the client's private-data member. Requires a new but trivial client-library entry point to get the buffer pointer when a client needs it. Had to be done before API Version 5 froze, or we'd have been stuck breaking a shipped API again. No implications for the daemon or other tools, as this buffer is never used there. (Except it gets rid of several K of never-used static buffer space in the daemon, which is a good thing.) All regression tests pass. Code splints clean. cgps (the only place the API fix matters in our code) live-tests correctly.
* Don't let cgps leave the terminal in a bad state on timeout.Beat Bolli2011-03-121-2/+5
| | | | | | | Exit()ing on timeout leaves the terminal in noecho state, so we have to undo the curses initialization on timeout. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Give gps_waiting() a timeout argument. Use it systematically in test clients.Eric S. Raymond2011-03-091-26/+3
| | | | cgps and gpxlogger are live-tested and work. All regression tests pass.
* Fix an explanatory comment.Eric S. Raymond2011-02-251-3/+4
|
* Vertical window size computation had to be redone to fix a display bug.Eric S. Raymond2011-02-231-16/+15
| | | | | The root cause was MAXCHANNELS getting bumped to 72. The old window size computation relied on it being small.
* Splint cleanup. All regression tests pass.Eric S. Raymond2011-02-161-1/+1
|
* In gpxlogger, filter for device on the server rather than client side,Michael Tatarinov2011-02-141-22/+9
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* The raw_hook mwember and set_raw_hook are gone; client API cleanup is done.Eric S. Raymond2011-01-251-15/+11
|
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-0/+1
|
* Insert SuS headers required for portablity, as revealed by deheader.Eric S. Raymond2010-12-221-0/+3
|
* Correct a previous commit changing <time.h> to <sys/time.h> eceywhere.Eric S. Raymond2010-12-211-1/+1
| | | | <sys/time.h> is needed for select(2).
* cgps now handles resize signals.Eric S. Raymond2010-12-161-16/+28
|
* The difference between curses.h and ncurses shouldn't matter to gpsd.Eric S. Raymond2010-12-141-6/+1
|
* Another pass at removing unneeded headers.Eric S. Raymond2010-12-141-2/+0
|
* More header cleanup.Eric S. Raymond2010-12-141-1/+1
|
* Taking SuS seriously some more.Eric S. Raymond2010-12-141-3/+3
|
* More header simplification. All regression tests pass.Eric S. Raymond2010-12-141-1/+0
|
* Simplification through taking SuS seriously.Eric S. Raymond2010-12-131-3/+0
|
* SuS conformance.Eric S. Raymond2010-12-131-0/+1
|
* Duplicate-inclusion and portability cleanup. All regression tests pass.Eric S. Raymond2010-12-111-0/+1
|
* sys/types.h doesn't belong here...Chris Kuethe2010-12-081-1/+1
| | | | | ... in a test for SYS_SELECT_H. And sys/types.h probably exists and is needed everywhere. Fixes compile on openbsd.
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2010-12-081-1/+3
|
* Clean up the code base and add switches so deheader runs clean.Eric S. Raymond2010-12-031-0/+2
|
* Put back missing headers that break the buildChris Kuethe2010-12-021-0/+2
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-7/+0
|
* Bug gpsd:17494 fix: cgps don't exit if interruptedTimo Juhani Lindfors2010-11-061-0/+3
| | | | Do not exit if select is interrupted by a signal. Since we have signal handlers for INT and HUP they still work but WINCH does not. Closes gpsd:17494.
* Fixing a segfault in cgps.Bernd Zeimetz2010-10-041-1/+1
| | | | | | As reported in <alpine.LNX.2.01.1010041235310.18045@catbert.rellim.com> cgps segfaults when used with -u m as options. getopt did not expect that -u takes additional options.
* First round of changes for API major version 5:Eric S. Raymond2010-07-131-1/+1
| | | | | * gps_open() becomes reentrant, what gps_open_r() used to be. * gps_poll() is removed in favor of gps_read().
* Introduce the gps_read() entry point and use it internally.Eric S. Raymond2010-06-081-1/+1
| | | | | | This is as per the roadmap. Clients can still use gps_poll(). All regression tests pass. Clients run correectly live.
* Use re-entrant open in the C examples.Eric S. Raymond2010-06-071-10/+9
| | | | | | In the next mahor API change the non-re-rentrant call will go away. All regression tests passm, code splints clean.
* Reindent. All regression tests pass.Eric S. Raymond2010-04-261-4/+2
| | | | | Most of the bulk of this one is the xgpsspeed code, which was not formerly incldecd in reindenting.
* Display expx and epy rather than eph.Eric S. Raymond2010-04-251-18/+22
|
* Reindent some things again, needed due to new controls. Eric S. Raymond2010-04-141-36/+35
| | | | All regression tests pass.
* cgps.c reindented. Live and gpsfake tests both pass.Eric S. Raymond2010-04-141-144/+192
|