summaryrefslogtreecommitdiff
path: root/gpsutils.c
Commit message (Collapse)AuthorAgeFilesLines
* Code is fully cppcheck, splint, and Coverity clean.Eric S. Raymond2013-11-061-2/+3
| | | | All regression tests pass. PPS is live.
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-2/+2
|
* fix building with clock_gettime and newer glibcMike Frysinger2012-05-211-2/+4
| | | | | | | | | | | | | | | | | Building with recent glibc versions fails in gpsutils.c due to missing definitions related to clock_gettime. This is because we define the _XOPEN_SOURCE macro, but not to a new enough value. So set it to a recent spec value that satisfies both strptime and clock_gettime. Example build failure with glibc-2.15: gpsutils.c: In function 'timestamp': gpsutils.c:299:22: error: storage size of 'ts' isn't known gpsutils.c:300:14: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration] gpsutils.c:300:34: error: 'CLOCK_REALTIME' undeclared (first use in this function) gpsutils.c:300:34: note: each undeclared identifier is reported only once for each function it appears in Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Comment out dead code. All regression tests pass.Eric S. Raymond2012-05-171-1/+1
|
* The strptime prototype is not provided unless explicitly requested.Gary E. Miller2012-04-061-0/+5
| | | | | | So add the define that POSIX says to to avoid. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Used clock_gettime() instead of gettimeofday() if possible.Michael Tatarinov2011-10-201-3/+9
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Tweak for time.Michael Tatarinov2011-10-201-9/+0
| | | | | | | | | 1. Tag "week" must be unsigned integer. gpsprof -f instrumented works again. 2. Removed tag "uxtime" duplication "time". 3. Used a more precise timestamp. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Break out prototypes for client library export methgods into a new heasder.Eric S. Raymond2011-09-281-0/+1
| | | | All regression tests pass. All three exports work in gpxlogger.
* Cycle-start detection by timing works on a SiRF at 9600bps.Eric S. Raymond2011-09-211-2/+2
| | | | All regression tests pass.
* splint cleanup.Eric S. Raymond2011-09-211-2/+2
|
* Remove the old latency-profiling machinery.Eric S. Raymond2011-09-201-0/+9
| | | | | | It hasn't actually worked since we switched protocols to JSON. This diff puts the framework in place for new machinery using timing attributes in the TPV sentence.
* Fix some compiler warnings.Eric S. Raymond2011-09-151-0/+1
|
* Typo fix.Eric S. Raymond2011-09-071-1/+1
|
* splint/pychecker cleanup of safe_atof().Eric S. Raymond2011-08-271-1/+3
|
* Avoid locale problems in the NMEA driver, too.Eric S. Raymond2011-08-271-0/+205
|
* Now that gpsd.h is safe to include in libgps, revert an earlier change.Eric S. Raymond2011-08-251-1/+1
|
* Remove an unneeded gpsd.h include.Eric S. Raymond2011-08-251-1/+1
|
* Enable another gcc error messsabe and fix a warning.Eric S. Raymond2011-08-111-1/+0
|
* Typo fixes and scan-build cleanup.Eric S. Raymond2011-08-111-0/+1
|
* Removed duplicate code.Michael Tatarinov2011-06-291-0/+6
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-11/+11
| | | | | | | | | | | Required so clients looking at flag masks in data exported via the shared-memory interface will see the right thing. These were separated originally in order to avoid pushing the reqyuired width of the gpsdata.set flag mask over 32 bits. It became 64 bits in the Version 5 API change, so that constraint went away. All regression tests pass.
* Emit "mode" before its dependent attributes in TPV, and timestamps with .3f.Eric S. Raymond2011-03-221-2/+7
| | | | Required a regression-test rebuild.
* Give timestamps their own typedef. No logic changes.Eric S. Raymond2011-03-101-6/+6
| | | | All regression tests pass, splint and cppcheck pass.
* More splint cleanup.Eric S. Raymond2011-02-211-1/+1
|
* splint cleanup.Eric S. Raymond2011-02-211-1/+1
|
* Bulletproof a formatting function against C library variations.Eric S. Raymond2011-02-191-1/+2
|
* Timestamps in TPV and SKY go from float seconds since Unix epoch to ISO8601.Eric S. Raymond2011-01-291-2/+2
| | | | | | | | Protocol version number is bumped. Python and C test clients are known to work; interfaces of the C and Python client bindings are unchanged. Third-party client-side bindings which rely on naively copying JSON members will break (implementers have been repeatedly warned not to do this).
* Document gpsd's assumption about the host system clock correctly.Eric S. Raymond2011-01-201-11/+0
| | | | | We're more dependent on it than I realized. At least all the dependencies are in one module now, and we may be able to do something about relaxing them.
* All the messy gpstime conversion stuff isin timebase.c now.Eric S. Raymond2011-01-201-33/+2
| | | | All regression tests pass.
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-0/+1
|
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-0/+2
|
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-4/+0
|
* Last thing we need is two different GPS_EPOCH values.Eric S. Raymond2010-12-201-1/+0
|
* Abolish gpsd_report.c. No more hardwired logging from the client libraries.Eric S. Raymond2010-12-161-315/+0
| | | | Only the daemon now uses this function.
* More partial splint cleanup.Eric S. Raymond2010-12-081-0/+2
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-4/+0
|
* Enhance the earth-distance() function to compute initial and final bearings...Gleb Smirnoff2010-10-231-2/+14
| | | | | | ...renaming it and still supporting the old entry point. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* gpsutil.c: fill_dop bug if sats < 4Jon Schlueter2010-10-061-0/+12
| | | | | | bug present where it would try to invert matrix with out enough data... added guard to prevent trying to calculate dop's if we don't have 4 sats with current code.
* Suppress logging of the satellite picture.Eric S. Raymond2010-04-151-1/+1
| | | | | All regression tests pass. flocktest on grelber and yazug passes, Codebase splints and cppchecks clean.
* Allow GNU indent to have its way with the last two files.Eric S. Raymond2010-04-141-2/+2
|
* Whitespace tweaks to pacify indent.Eric S. Raymond2010-04-141-2/+3
|
* Scatter GNU indent pragmas to tell it not to do stupid things.Eric S. Raymond2010-04-141-1/+3
| | | | All regression tests pass.
* Reindented some small utility modules. All regression tests pass.Eric S. Raymond2010-04-141-205/+206
|
* A longstanding bug in error modeling fixed.Eric S. Raymond2010-04-131-1/+1
| | | | | | The guard controllong DOP computation wasn't right. The result was that x/y error estimates were computed much less often than they should have been.
* Detect and scavenge unused daemon-side status-mask bit.Eric S. Raymond2010-04-101-2/+0
|
* Make the client library and daemon use different sets of state-flag masks.Eric S. Raymond2010-04-091-48/+13
| | | | | | | | | | | | | | | | | Large patch, no actual executable code changes except in three debug dumpers. Breaks up the *_SET status macros so the client side continues to use them, but the daemon uses a similarly-named set with an _IS suffix. This frees up two mask bits in both sets - the client side no longer needs to have REPORT_SET and CLEAR_SET bits, and the daemon side no longer needs to have VERSION_SET and POLICY_SET. The only actual code change is that the maskdump.c module, generated by maskaudit.py, splits in half - one child now dumps client-side flags, the other daemon-side flags. One other function call in a debug dumper in libgps_core.c changes. All regression tests pass.
* Internals of Qt support.Chris Browet2010-03-311-0/+20
| | | | | | | | | | | | | | | | | All regression tests pass. Note from esr: this feature cannot be announced yert, as it requires documentation in the INSTALL file. 1. What the target environments are (Linux? Windows? Both) 2. All build prerequisites (C++ compiler? Qt library? Other libraries?) 3. What the new files libQgpsmm_global.h and libQgpsmm.pro are for, and how the are used. We also need to know how to regression-test this code under Linux so we can verify that it's not broken as the client library evolves. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Dead-code removal.Eric S. Raymond2010-03-231-35/+0
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-2/+0
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-2/+7
|