summaryrefslogtreecommitdiff
path: root/gpxlogger.c
Commit message (Collapse)AuthorAgeFilesLines
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* gpxlogger: Move buffer extension below the strftime call.Bernhard Übelacker2018-10-021-2/+6
| | | | | | | Bug-Debian: https://bugs.debian.org/909082 Last-Update: 2018-09-18 Signed-off-by: Gary E. Miller <gem@rellim.com>
* gpxlogger: isnan() -> isfinite()Gary E. Miller2018-07-141-4/+4
| | | | Thanks to Virgin Orbit for their support on this patch.
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Address Savannah bug #50930: gpxlogger track timeout cannot be changedEric S. Raymond2017-09-051-3/+2
|
* OS syslog compatibility fallback.Robert Norris2017-03-051-1/+0
| | | | | | | | | | | | | | | | Mainly for Windows systems which doesn't have syslog(). Implement simple fallback to print to stderr, rather than a more complicated use of Windows Event Log. Also basic fallbacks for openlog() and closelog() which don't really do anything. TESTED: Functions build on Windows cross build 'scons build-all check' passes on Linux Signed-off-by: Fred Wright <fw@fwright.net>
* Fixes spelling of "daemonization".Fred Wright2017-03-041-1/+1
| | | | | | | | Error messages related to daemonization failures had incorrect spelling. TESTED: Ran "scons build-all" on OSX.
* Usage text correction in gpxlogger.Fred Wright2017-02-201-1/+2
| | | | | This adds the missing dash for the recent update, and also breaks up the long line.
* Add missing options in gpxlogger usageRobert Norris2017-02-201-1/+1
| | | | | | Options '-l' and '-D' now mentioned. Signed-off-by: Fred Wright <fw@fwright.net>
* Ensure gpxlogger doesn't crash on bad filenameRobert Norris2017-02-201-1/+3
| | | | | | | | | | | | Need to ensure logfile is reset to 'stdout' when the specified output file is not available (e.g. no permission to write it) otherwise it is continued to be used when it is NULL and bad things happen. TESTED: Running as a normal user it doesn't crash with a bad filename: ./gpxlogger -f /root/CannotWriteHere.gpx Signed-off-by: Fred Wright <fw@fwright.net>
* Explicit marking of ignoring fprintf() resultRobert Norris2017-02-201-7/+7
| | | | | | | | | Ensure consistent marking of '(void)' for most normal usage of fprintf() TESTED: 'scons build-all check' passes Signed-off-by: Fred Wright <fw@fwright.net>
* Centralizes daemon() calls.Fred Wright2017-01-221-4/+2
| | | | | | | | | | | | | | | | This defines a new function os_daemon() (in os_compat.c), which is either the old replacement daemon() renamed, or a wrapper around the actual daemon() call. This allows any issues related to daemon() (which exist on some platforms) to be dealt with in one place. No such changes are present yet, so platforms giving warnings for the use of daemon() continue to do so, but now only in the compilation of os_compat.c. Unfortunately, the current build procedure typically compiles os_compat.c multiple times, so the warnings still appear multiple times. TESTED: Ran "scons build-all check" on OSX 10.9, OSX 10.12, Ubuntu 14, and FreeBSD 10.3.
* daemon() needs _DEFAULT_SOURCEGary E. Miller2016-08-151-0/+4
|
* gpxlogger: add option -r to reconnect after fix loss.Beat Bolli2016-02-091-3/+15
| | | | Signed-off-by: Beat Bolli <dev@drbeat.li>
* gpxlogger: fix a typo.Beat Bolli2016-02-061-1/+1
| | | | Signed-off-by: Beat Bolli <dev@drbeat.li>
* By popular demand, restore STATUS_DGPS_FIX to public interface.Eric S. Raymond2016-01-291-14/+17
|
* A gaggle of whitespace gaffs.Gary E. Miller2015-04-301-1/+1
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-15/+0
| | | | | | | | | | | | | | | | | | | 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.
* Generqte -V messages in a uniform way.Eric S. Raymond2015-03-021-1/+2
| | | | All regression tests pass.
* Clean STATUS_DGPS_FIX out of the public interface. All regression tests pass.Eric S. Raymond2015-01-131-17/+14
|
* Drop the obsolete tag field from JSON output. Bump the minor protocol number.Eric S. Raymond2014-08-241-1/+0
| | | | | | | Required a regression-test rebuild, of course. The field is still set by the TSIP and SiRF drivers; the SiRF driver actually uses it. It may be possible to eliminate the TSIP uses, but so far attempting this has produced odd regression-test failures.
* Partial splint cleanup. All regression tests pass. PPS is live.Eric S. Raymond2013-11-051-0/+2
|
* Fixed the choice of method in gpxlogger.Michael Tatarinov2013-11-011-8/+13
| | | | | | But at this point shm method is still broken. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-2/+2
|
* Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE})Eric S. Raymond2012-09-071-9/+9
| | | | Note there are some exit(2) instances we bneed to decide what to do with.
* Fix a bad cast.Gary E. Miller2012-05-031-1/+1
| | | | Thanks to: Beat Bolli <bbolli@ewanet.ch>
* Shut up, splint!.Eric S. Raymond2012-01-121-0/+2
|
* Fix glitch found by cppcheck.Eric S. Raymond2012-01-111-7/+13
|
* Include needed header.Eric S. Raymond2012-01-101-0/+1
|
* Hurd patch to support ulimited-length filenames, with a splint fix.Eric S. Raymond2012-01-101-7/+11
|
* Actual code changes to get rid of Berlios URLs.Eric S. Raymond2011-10-011-1/+1
|
* Remove duplicate code.Michael Tatarinov2011-09-301-7/+0
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* splint cleanup.Eric S. Raymond2011-09-301-1/+0
|
* Re-do runtime dispatch in the client library.Eric S. Raymond2011-09-301-0/+1
|
* Refactoring and splint cleanup.Eric S. Raymond2011-09-291-7/+9
|
* Refactor to create shared code useful for clockwatcher.Eric S. Raymond2011-09-291-35/+6
|
* splint cleanup.Eric S. Raymond2011-09-291-5/+1
|
* Remove an unncessary inclusion.Eric S. Raymond2011-09-291-3/+2
|
* More gpxlogger simplification. All transports work.Eric S. Raymond2011-09-281-52/+27
|
* Simplify gpxlogger. All three exports work.Eric S. Raymond2011-09-281-55/+21
|
* Simplify gpxlogger.Eric S. Raymond2011-09-281-9/+3
|
* First step in runtime export dispatch for the client library.Eric S. Raymond2011-09-281-1/+1
|
* splint cleanup.Eric S. Raymond2011-09-281-1/+2
|
* Abstract out the shm export main loop.Eric S. Raymond2011-09-281-8/+1
|
* Get back to a state where the shm export works.Eric S. Raymond2011-09-271-9/+22
|
* More API convergence.Eric S. Raymond2011-09-271-9/+3
|
* Converge the library APIs for different transports more closely.Eric S. Raymond2011-09-271-14/+7
|
* More refactoring.Eric S. Raymond2011-09-271-3/+2
| | | | | gpxlogger currently works with socket and DBUS methods but fails with a segfault in the shm code.
* More refactoring. Bring DBUS API closer to the generic one.Eric S. Raymond2011-09-271-1/+7
|
* Refactoring step and minor fixes.Eric S. Raymond2011-09-271-2/+1
|