summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed variable length arrays, added -Wvla compiler option.vla-removalIan Bruene2018-11-261-3/+3
|
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* gps.h: remove wrong SBAS_PRN()Gary E. Miller2018-09-191-2/+2
| | | | | This macro was wrong, and causing valid sats to not be included in the COP calculations.
* ATT: centralize clearing of the attitude data.Gary E. Miller2018-09-111-1/+6
| | | | | This showed up a bug where rtcm3_unpack() was not clearing its rtcm3 data, which is a union with the attitude data.
* libgpsd_core.c: Better initial sanitization of skyview[]Gary E. Miller2018-07-141-16/+44
| | | | Thanks to Virgin Orbit for their support on this patch.
* libgpsd_core.c: isnan() -> isfinite()Gary E. Miller2018-07-141-24/+27
| | | | Thanks to Virgin Orbit for their support on this patch.
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Add ECEF support to u-blocx driver, data comes out in json.Gary E. Miller2018-02-081-2/+3
| | | | More work to do so cgps, xgps, etc. see the new data.
* Clean up C and Python code-checker warnings.Eric S. Raymond2017-09-061-1/+1
|
* Removes obsolete flag tweak related to alloca().Fred Wright2016-09-221-4/+0
| | | | | | | | | | There's no longer any need for an alloca() prototype, now that alloca() is gone. TESTED: Ran "scons build-all check" on OSX 10.9, Ubuntu 14.04, and CentOS 7. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Shield FreeBSD from standards compliance.Gary E. Miller2016-09-071-0/+4
| | | | | gpsd now compiles, and runs scons check, with no warnings on FreeBSD.
* Eliminate the one use of the portability-challenged alloca()Fred Wright2016-09-061-12/+13
| | | | | | | | | | | | | | | | In general, the use of alloca() is discouraged. Here, there was only one use, with a maximum size determinable at compile time, so the code has been reworked to use an ordinary array (without relying on the C99 variable-length array feature). This always allows for a GPS_PATH_MAX-sized device_name, but the amount of space needed for that is relatively modest, and the behavior is more reproducible with a fixed allocation. TESTED: Ran "scons build-all check" on OSX. This code shouldn't be OS-dependent. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Fixups for NetBSDGary E. Miller2016-08-161-1/+4
|
* __DARWIN_C_LEVEL and _DARWIN_C_SOURCE to silence some warnings.Gary E. Miller2016-08-161-0/+3
| | | | vsnprintf() and strlcmp() are happier now.
* If you specify XOPEN version, you must specify POSIX version.Gary E. Miller2016-08-161-0/+2
| | | | | | This fixes 32-bit Gentoo on RasPi. All regression tests pass.
* In POSIX 2001, getsid() needs _XOPEN_SOURCE >= 500Gary E. Miller2016-08-151-0/+4
|
* alloca() needs alloca.hGary E. Miller2016-08-151-0/+1
| | | | Not in POSIX, so a little undefined.
* Replace a malloc() with an alloca()Gary E. Miller2016-05-251-22/+17
| | | | This is to confrm with gpsd hacking standards which discourage malloc().
* Fix log message to show real count of stas used.Gary E. Miller2016-04-081-1/+3
|
* Add another gross sanity check for climb/speedGary E. Miller2016-04-061-0/+13
| | | | I would rather find where the bad data is coming from...
* libgpsd-core: Fix issue with ACTIVATE hook not being called.Moritz Fischer2016-01-051-1/+1
| | | | | | | | | | In the current system session->mode seemed to ignore the O_OPTIMIZE flag, leading to the ACTIVATE hook being ignored. Another way to fix this would be to keep the session->mode condition pull up the check for O_CONTINUE. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* Address bug #46495: gpsd_poll may crash due to unitialized pointer.Fred Wright2016-01-041-0/+3
|
* Address Savannah bug #46082 - Can't explicitly build with NMEA drivers.Eric S. Raymond2015-10-011-2/+2
|
* Copy structs using assignment, not memcpy().Zbigniew Chyla2015-05-311-2/+2
|
* Still more whitespace fixupsGary E. Miller2015-04-301-16/+16
|
* Revert "Copy structs using assignment, not memcpy()."Gary E. Miller2015-04-281-2/+2
| | | | | | | | | | | | | | | | | | | | This reverts commit d1965788249d7e22cdde4021d452cf0dc6c6b9bd. This breaks my build on Gentoo running gcc 4.9.2 libgps_shm.c: In function 'int gps_shm_read(gps_data_t*)': libgps_shm.c:122:12: error: no match for 'operator=' (operand types are 'gps_data_t' and 'volatile gps_data_t') noclobber = shared->gpsdata; ^ libgps_shm.c:122:12: note: candidate is: In file included from gpsd.h:350:0, from libgps_shm.c:30: gps.h:1918:8: note: gps_data_t& gps_data_t::operator=(const gps_data_t&) struct gps_data_t { ^ gps.h:1918:8: note: no known conversion for argument 1 from 'volatile gps_data_t' to 'const gps_data_t&'
* Copy structs using assignment, not memcpy().Zbigniew Chyla2015-04-281-2/+2
|
* Revert weirdness caused by d302a714f3b3735062ce9c9fc6cdd9d0e74f43f6Gary E. Miller2015-04-131-1/+1
| | | | netlib_connectsock() lost the underscore.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/gpsdEric S. Raymond2015-04-131-1/+1
| | | | | Conflicts: gpscap.ini
* Remove an impossible FIXME and an ill-specified TODO. No code changes.Eric S. Raymond2015-04-011-3/+8
|
* Increase consistency of names. No code changes.Eric S. Raymond2015-04-011-1/+1
|
* Clean up PPS monitor interface with renames, and additional documentation.Eric S. Raymond2015-04-011-1/+1
|
* Thread monitor interface simplification.Eric S. Raymond2015-04-011-1/+0
| | | | | | With a bit of refactoring we can eliminate one of the hooks. PPS observed live, telnetting to localhost:2947 with gpsd running.
* Suppress a NetBSD compiler warning.Eric S. Raymond2015-03-311-1/+1
|
* Another small step to /dev/ppsX. ppsthread now looping fine, no time yet.Gary E. Miller2015-03-311-0/+4
|
* Fix munging of a return code, and fix an indent.Gary E. Miller2015-03-311-41/+43
|
* Comment /dev/ppsX open flow.Gary E. Miller2015-03-311-1/+7
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-72/+16
| | | | | | | | | | | | | | | | | | | 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-4/+4
|
* Fix 4 places: Line expects to suppress X errors, found 0 errorsGary E. Miller2015-03-251-5/+4
|
* Followup on the recommendation in Savannah bug #44603.Eric S. Raymond2015-03-221-1/+1
| | | | | That is, "probably LOG_SHOUT should be replaced with LOG_ERROR in assignments and comparison". Fix the only case of this.
* Use LOG_* symbol when setting/comparing log levelZbigniew Chyla2015-03-221-2/+2
| | | | | Currently, debug level 0 is actually LOG_SHOUT. This change doesn't affect generated binary code.
* Acccept doing synchronization logging at only 1s granularity to remove floats.Eric S. Raymond2015-03-201-2/+2
| | | | All regression tests pass.
* Float elimination. All regression tests pass.Eric S. Raymond2015-03-201-6/+6
|
* Narrow the driver-type-reversion logic a bit. All regression tests pass.Eric S. Raymond2015-03-191-1/+2
|
* Fix UBX-MON-VER so we get u-blox version string.Gary E. Miller2015-03-181-0/+1
| | | | | | gpsd sends a ton of strings to the GPS on change from NMEA -> UBX mode. Most of it gets lost. So move version request later in the initialization.
* Fix tiny error that might prevent speed computation.Eric S. Raymond2015-03-161-1/+1
| | | | All regression tests pass.
* splint/cppcheck/coverity prerelease cleanup.Eric S. Raymond2015-03-131-2/+3
|
* Simplify the thread-monitor interface.Eric S. Raymond2015-03-111-1/+1
| | | | PPS observed live on GR601W.
* Fixing broken build scons minimal=on in libgpsd_coreJon Schlueter2015-03-091-0/+2
| | | | Missing guard for PPS_ENABLED ifdef guard around ppsthread_log