summaryrefslogtreecommitdiff
path: root/gpsdclient.c
Commit message (Collapse)AuthorAgeFilesLines
* deg_to_str(): Change 'nan' to 'n/a'.Gary E. Miller2019-02-221-3/+3
| | | | To be compatible with existing cgps, etc.
* deg_to_str2(): Add new function. Thread safe, handles suffix.Gary E. Miller2019-02-221-21/+65
|
* deg_to_s(): Add check, and regression test, for not a NaN.Gary E. Miller2019-02-221-1/+1
|
* deg_to_s() and calls to it: Allow negative degrees, use fabs().Gary E. Miller2019-02-221-1/+2
| | | | | Every call to deg_to_s() was preceded by a fabs(deg). So move the fabs() into deg_to_s().
* deg_to_s(): Add rounding for dd, ddmm, and ddmmss. Update tests.Gary E. Miller2019-02-221-4/+33
|
* deg_to_s(): Change test to yoda test. Comment need for rounding.Gary E. Miller2019-02-211-1/+2
|
* deg_to_s(): Add more tests. Not all 'good'.Gary E. Miller2019-02-211-0/+4
| | | | deg_to_s() needs to do better rounding.
* deg_to_s(): Fix bad conversion. Add test cases.Gary E. Miller2019-02-211-1/+1
| | | | Bug and test case by: Stephen Moshier <steve@moshier.net>
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* gpsdclient.c: isnan() -> isfinite()Gary E. Miller2018-07-141-1/+1
| | | | Thanks to Virgin Orbit for their support on this patch.
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Clean up C and Python code-checker warnings.Eric S. Raymond2017-09-061-2/+1
|
* Fix comment to correct the name of the fileRobert Norris2017-02-091-1/+1
|
* Initial creation of os_compat.h.Fred Wright2017-01-221-1/+1
| | | | | | | | | | | | | | | | | This creates a header for os_compat.c, and moves the related prototypes into it from gpsd_config.h (as created by SConstruct), after adding references to it to gpsd.h (via gpsd.h-tail) and a few other sources that need it but don't include gpsd.h. It also removes includes of <time.h> in the places where they were only needed for the code now removed from gpsd_config.h. TESTED: Ran "scons build-all check" on OSX 10.9 (with strlcat/strlcpy but no clock_gettime), OSX 10.12 (with strlcat/strlcpy and clock_gettime), and Ubuntu 14 (with clock_gettime but no strlcat/strlcpy). Also verified that fallback versions were not being included where unnecessary.
* Show a bit more precision in deg_to_str()Gary E. Miller2016-07-211-7/+7
| | | | cm accuracy need a bit more than 7 digits of decimal degrees.
* use more precision when outputting lat/lon.Gary E. Miller2016-03-281-10/+14
| | | | A cm level GPS needs decimal degrees to 0.0000001
* Fix small memory leak in gpsd client programs.Rob Norris2016-02-231-1/+1
| | | | Allocation is otherwise never freed and is in fact unnecessary.
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-15/+5
| | | | | | | | | | | | | | | | | | | 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.
* OS X needs a lot of time.hGary E. Miller2015-03-081-0/+1
| | | | | | gpsd_config.h needs time_t which is in time.h OS X builds now. Untested.
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-7/+7
|
* Attempt to head off a compiler warning.Eric S. Raymond2012-04-211-2/+3
|
* Refactoring and splint cleanup.Eric S. Raymond2011-09-291-2/+72
|
* Refactor to create shared code useful for clockwatcher.Eric S. Raymond2011-09-291-0/+43
|
* No need to use setlocale(NUMERIC) any more, so lose the code overhead.Eric S. Raymond2011-08-271-2/+0
| | | | All regression tests pass.
* Fixes for the Maidehead locator code, and a better regression test.Eric S. Raymond2011-05-061-7/+24
|
* Attempt fix for Maidenhead off-by-one rrror.Eric S. Raymond2011-05-061-6/+6
| | | | All regression tests pass.
* Make the Maidenhead convrter available in Python.Eric S. Raymond2011-03-291-1/+1
|
* Get the case of the subsquare letters right in the grid sqare.Eric S. Raymond2011-03-291-2/+2
|
* splint-clean the Maidenhead translator and make it available for cgps.Eric S. Raymond2011-03-291-0/+28
| | | | All regression tests pass.
* Magic-number and strncpy elimination. All regression tests passEric S. Raymond2011-03-291-1/+1
|
* Insert SuS headers required for portablity, as revealed by deheader.Eric S. Raymond2010-12-221-0/+2
|
* Remove a few more unneeded headers.Eric S. Raymond2010-12-201-3/+0
|
* Not having setlocale(3) is so ten years ago...Eric S. Raymond2010-12-141-9/+4
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-4/+0
|
* Reindent two small modules.Eric S. Raymond2010-04-141-39/+38
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-3/+2
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-2/+7
|
* IPv6 support is working.Eric S. Raymond2010-01-131-1/+11
|
* Improved client argument parsing to recognize IPv6 addresses... Eric S. Raymond2010-01-131-2/+9
| | | | | ...and do the right thing with suffixes. Teach the client library to connect using IPv6 when appropriate.
* Internal IPv6 support, derived from a support patch by Olivier Mehani.Eric S. Raymond2010-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The patch original is at: https://lists.berlios.de/pipermail/gpsd-dev/attachments/20100111/85ad4e15/attachment.bin This revision changes netlib_connectsock() to take a first argument that is an address family and can specify IPv4, IPv6, or either. It also changes gpsd.c to open two client sockets, one IPv4 and one IPv6, and listen on both. As a required cleanup, a number of defaults to "127.0.0.1" become defaults to "localhost" so we're not hardwiring in IPv4 assumptions anymore. I've omitted a significant portion of the Mehani patch that changed the interface of the client library in an incompatible way. Currently there is no way to make gpsd listen to IPv4 or IPv6 only, and no way to make a client query over IPV4 or IPv6 only. Also, we'd really like to be able to condition out IPv6 or (someday) IPv4 support for a leaner runtime, and there's no way to do that yet, either. Under IPv4, regression tests pass; live operation with a GPS mouse and the aishub feed both work. However, the resulting code does not splint clean; this will need to be fixed, and that's going to be tricky due to the new sockaddr_t struct.
* en_US.UTF-8 (normal for Ubuntu) should be treated as en_US... Eric S. Raymond2009-12-141-1/+1
| | | | ...for purposes of chosing client units.
* Guard some inclusions that splint doesn't like. Eric S. Raymond2009-09-101-0/+2
| | | | No effect on compilation. All regression tests pass.
* splint cleanup.Eric S. Raymond2009-03-041-2/+4
|
* Introduce gpsdclient.h header, not shipped. Eric S. Raymond2009-03-021-1/+2
| | | | So we can move stuff used internally by GPSD clients out of gps.h.
* Split up libps.c so the code overhead for users' clients will be lower.Eric S. Raymond2009-03-021-0/+163