summaryrefslogtreecommitdiff
path: root/gpspipe.c
Commit message (Collapse)AuthorAgeFilesLines
* A gaggle of whitespace gaffs.Gary E. Miller2015-04-301-3/+3
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-17/+3
| | | | | | | | | | | | | | | | | | | 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-2/+4
|
* The last of: Line expects to suppress X errors, found 0 errorsGary E. Miller2015-03-251-1/+1
| | | | gpsd is now splint clean again.
* OS X needs a lot of time.hGary E. Miller2015-03-081-1/+1
| | | | | | gpsd_config.h needs time_t which is in time.h OS X builds now. Untested.
* splint cleanup. All regression tests pass.Eric S. Raymond2015-03-021-1/+2
|
* In gpspipe.c, polish some error messages.Eric S. Raymond2015-03-021-4/+4
|
* More splint cleanup.Eric S. Raymond2015-03-021-0/+2
|
* Complete port of clock_gettime(3) and teach gpsipe to use it.Eric S. Raymond2015-03-021-5/+6
| | | | | | | This eliminates the last gettimeofday(3) from the code. POSIX.1-2008 marked it obsolete. All regression tests pass.
* Assume POSIX-conformant termios.h.Eric S. Raymond2015-03-011-2/+0
| | | | | | | HAVE_TERMIOS_H was some sort of relic, apparently always on. I don't think the code would have compiled without it. All regression tests pass.
* BSD compiler waening and splint cleanup.Eric S. Raymond2015-02-111-2/+4
|
* Guard includes of termios.h with #ifdef HAVE_TERMIOS_HMatt2015-01-231-0/+4
| | | | | | | | | | | | Guard includes of termios.h with #ifdef HAVE_TERMIOS_H. Test for termios.h in scons, and define/undefine HAVE_TERMIOS_H accordingly. Fixes the below error seen on cygwin, which lacks termios.h: In file included from gpsutils.c:22:0: gpsd.h:349:21: fatal error: termios.h: No such file or directory #include <termios.h> ^
* Include <sys/select.h> everywhere fd_set us used.Eric S. Raymond2014-08-181-2/+3
| | | | | | | | 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.
* Use the gps_errstr() to handle gps_open() errors.Michael Tatarinov2013-11-281-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Add -P option to gpspipe for including PPS drift JSON in NMEA or raw dumps.Eric S. Raymond2013-11-131-1/+5
|
* Add -2 flag to set split24 flag.Reinhard Arlt2013-11-081-1/+5
|
* Fix static-checker warnings. All regression tests pass.Eric S. Raymond2013-04-301-8/+11
| | | | | cppchecker now finds variables that could have reduced scope; that's most of these.
* gpspipe -u time-stamps with sub-second resolutionAndreas Merz2013-04-301-5/+26
| | | | | | | | | | | | | | | | | | | | | For simple logging of NMEA data or system performance analysis it is often desirable to have high resolution time-stamps. This implementation affects only the client-side, namely gpspipe. Option -u was added to enable usec-resolution time output. Furthermore, the default time format has been changed because it is more desirable to have a standardized and sortable time-tag default format instead of a locale-dependent one. Also, the new option -u appends decimal digits to the seconds which does not make sense for the some %c formats. A future desirable feature might be to have usec resolution timestamps on the gpsd protocol messages. modified: gpspipe.c modified: gpspipe.xml Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Add -S (for scaled flag) option to gpspipe.Reinhard Arlt2012-09-261-1/+5
|
* Fix a misleading error message.Eric S. Raymond2012-09-181-1/+1
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-4/+4
|
* Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE})Eric S. Raymond2012-09-071-20/+20
| | | | Note there are some exit(2) instances we bneed to decide what to do with.
* Cleanup motivated by new cppcheck with more tests. All regression tests pass.Eric S. Raymond2012-05-161-2/+2
|
* Asdd a gpspipe option to enable profiling.Eric S. Raymond2011-09-221-1/+8
|
* Fix a help string.Eric S. Raymond2011-06-081-2/+4
|
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-1/+1
|
* deheader cleanup.Eric S. Raymond2011-01-121-1/+0
|
* Correct a help string.Eric S. Raymond2011-01-101-1/+1
|
* Remove subframesflag so they're omitted uncinditionally.Eric S. Raymond2011-01-101-9/+3
|
* More changes to gpspipe for subframes, no joy, yet.Gary E. Miller2011-01-041-3/+6
|
* Enable gpspipe to start subframe reporting.Eric S. Raymond2011-01-041-1/+4
|
* Partial splint cleanup.Eric S. Raymond2011-01-011-0/+2
|
* We don't need yet another copy of the daemon() code in gpspipe.c.Eric S. Raymond2010-12-271-48/+10
|
* use select(2) rather than blindly reading fdChris Kuethe2010-12-271-5/+20
| | | | | Another Commit from the Caribbean. Observed while reading a remote gpsd instance over slow, high latency network.
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-0/+4
|
* More header simplification. All regression tests pass.Eric S. Raymond2010-12-141-9/+4
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2010-12-081-1/+1
|
* Attempt to address #17564: gpspipe terminates because of non-blocking socket.Eric S. Raymond2010-12-031-1/+5
|
* 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-5/+0
|
* -f was replaced by -o, follow through.Eric S. Raymond2010-09-151-1/+1
|
* 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().
* Use re-entrant open in the C examples.Eric S. Raymond2010-06-071-5/+4
| | | | | | In the next mahor API change the non-re-rentrant call will go away. All regression tests passm, code splints clean.
* splint cleanup.Eric S. Raymond2010-05-121-0/+2
|
* Allow to set the gpspipe timestamp formatBeat Bolli2010-05-101-3/+13
| | | | | | | | | This patch is backwards-compatible by adding a new option -T (note capital case) for the timestamp format. All tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* More reindenting. All regression tests pass.Eric S. Raymond2010-04-141-66/+70
|
* Address Debian bug #576377: gpspipe can't connect to external gpsdEric S. Raymond2010-04-041-3/+2
|
* Address Debian bug #576378.Eric S. Raymond2010-04-031-1/+1
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-7/+5
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-2/+5
|