| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
The fix to avoid writing into a read-only buffer copies a const char
pointer to a non-const char pointer, provoking a warning. For some
reason, the old code failed to get a similar warning from the cast,
which would have caught the original bug.
This fix just adds a const char variable to accept the pointer.
TESTED:
Now cgps builds without warning, and still works.
|
| |
|
|
|
|
|
| |
Also some cgps.c code cleanups. You need more lines than 80x24 to
see the new data.
|
|
|
|
|
|
| |
This reverts commit fb67eea6594bf9214e179ecc0c273e0fecb5bfda.
Whoops. I accidently pushed some work in progress with clock_gettime.
|
|
|
|
| |
This program measures the latency of the clock_gettime() system call.
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Probably only in RTK mode.
|
|
|
|
| |
I went to %.2f, but %.3f might be soon.
|
| |
|
|
|
|
| |
A cm level GPS needs decimal degrees to 0.0000001
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Allow user input every 1/2 second wwheil waiting.
|
|
|
|
| |
All regression tests pass.
|
|
|
|
|
|
|
| |
It's bad that this get past me. Anybody who tries writing a C client
with 3.12 is going to lose. Requires a release to fix.
All regression tests pass.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
...from a set of parallel arrays. This change flushed out a
longstanding bug in the computation of DOPs for estimated error bars.
Some test-load rebuilds were required:
geostar-geos1m-binary.log.chk: With this change error
estimates are computed and reported.
trimble-lassen_iq-3dfix.log, trimble-lassen_iq-3dfix.log: the
change revealed a bug in the computation of satellite-seen bits.
Error estimates did not change.
navcom.log: Error estimates changed.
With these rebuilds, all regression tests pass.
|
| |
|
|
|
|
|
| |
Signed-off-by: Beat Bolli <bbolli@ewanet.ch>
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This is a separate commit so we can revert it someday if making the
distinction again comes to seem more important than struct mingw
portability.
All regression tests pass.
|
|
|
|
| |
Note there are some exit(2) instances we bneed to decide what to do with.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tz has shown me that we had a point of brittleness where the size
of the client's data buffer was exposed in gps_data_t. Solution:
move it (and the data-waiting count) to the client's private-data
member. Requires a new but trivial client-library entry point to get
the buffer pointer when a client needs it.
Had to be done before API Version 5 froze, or we'd have been stuck breaking
a shipped API again.
No implications for the daemon or other tools, as this buffer is never
used there. (Except it gets rid of several K of never-used static
buffer space in the daemon, which is a good thing.)
All regression tests pass. Code splints clean. cgps (the only place
the API fix matters in our code) live-tests correctly.
|
|
|
|
|
|
|
| |
Exit()ing on timeout leaves the terminal in noecho state, so
we have to undo the curses initialization on timeout.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
| |
cgps and gpxlogger are live-tested and work. All regression tests pass.
|
| |
|
|
|
|
|
| |
The root cause was MAXCHANNELS getting bumped to 72. The old window size
computation relied on it being small.
|
| |
|
|
|
|
| |
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
| |
|
| |
|
| |
|
|
|
|
| |
<sys/time.h> is needed for select(2).
|
| |
|