summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
Commit message (Collapse)AuthorAgeFilesLines
* More refactoring of rollover checking.Eric S. Raymond2011-01-171-41/+0
|
* Narrow a variable scope to eliminate a warning.Eric S. Raymond2011-01-161-2/+1
|
* GPS week rollover check extends to the rollover equivalent of now.Eric S. Raymond2011-01-151-1/+2
|
* Detect week-counter overruns using the leap second.Eric S. Raymond2011-01-151-6/+30
|
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-0/+1
|
* deheader cleanup.Eric S. Raymond2011-01-121-3/+2
|
* It seems sys/wait.h gives splint fits. All regression tests pass.Eric S. Raymond2011-01-121-1/+1
|
* pull in sys/wait.h for WEXITSTATUSChris Kuethe2011-01-111-0/+1
|
* Followup top Paul Fertser's device-hook patch.Eric S. Raymond2011-01-111-1/+3
| | | | | Arrange for the deactivate hook to be called when a device is not recognized. Add a disclaimer to the docs.
* Add device activation/deactivation hookPaul Fertser2011-01-111-0/+27
| | | | | | | | | | | | | | | | This adds possibility for a system integrator to define custom hooks that are executed on device activation and deactivation. Since there's no standard way to control power consumption of different gps devices out there, the designers of embedded appliances usually provide a system-specific way to do power management of a GPS module. This might be e.g. a power_on sysfs node. This patch adds an opportunity for a system integrator to transparently enable power for device as soon as any client starts requesting data from it and to disable power on deactivation (which normally happens 60 seconds after the last client who needed it disconnected). Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Correct the test for GPS week rollover.Eric S. Raymond2010-12-301-2/+12
|
* Message cleanup following gem's notification-level change.Eric S. Raymond2010-12-301-2/+2
|
* Move the speed warning so each autobaud test does not give the warning.Gary E. Miller2010-12-291-1/+6
|
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-2/+0
|
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-1/+0
|
* Partial splint cleanup.Eric S. Raymond2010-12-201-1/+1
|
* Insert GPS week rollover checks everywhere we rely on GPS time.Eric S. Raymond2010-12-201-0/+6
| | | | All regression tests pass.
* Clients are no longer required to define a gpsd_report() hook.Eric S. Raymond2010-12-191-0/+2
|
* More logging tweaks for PPSGary E. Miller2010-12-171-2/+4
|
* Missing newline in PPS logging.Gary E. Miller2010-12-171-1/+1
|
* Tweaks to PPS logging.Gary E. Miller2010-12-171-4/+5
|
* Tweak some PPS logging.Gary E. Miller2010-12-171-1/+3
|
* Remove splint override of potential errors that are not there.Gary E. Miller2010-12-171-1/+1
|
* Retore definition of TIOCMIWAIT so the PPS stuff will work.Eric S. Raymond2010-12-161-3/+15
|
* Abolish gpsd_report.c. No more hardwired logging from the client libraries.Eric S. Raymond2010-12-161-0/+316
| | | | Only the daemon now uses this function.
* Refactor to turf all uses of gpsd_report() out of netlib.cEric S. Raymond2010-12-161-2/+4
| | | | | | A recent bug report makes it clear that all such uses have to be removed from the client libraries. Otherwise a GUI client might dummp log messages uselessly in the X session error log. This is a start.
* Add explanatory comment.Eric S. Raymond2010-12-161-1/+4
|
* Suppress spurious offline messages.Eric S. Raymond2010-12-161-4/+7
|
* Add info to the Hacking Guyide on the GPS Week rollover problem.Eric S. Raymond2010-12-161-1/+1
| | | | | Also, downgrade gpsd's "this is the far future" message from error to warning so it will play nice with test logs exhibiting the rollover.
* Work around a splint bug.Eric S. Raymond2010-12-151-1/+1
|
* Taking SuS seriously some more.Eric S. Raymond2010-12-141-17/+2
|
* More header simplification. All regression tests pass.Eric S. Raymond2010-12-141-7/+10
|
* Fix stupid error in timeval/timespec rounding macros.Gary E. Miller2010-12-111-2/+2
|
* Merge branch 'master' of ssh://git.berlios.de/gitroot/gpsdEric S. Raymond2010-12-111-34/+92
|\ | | | | | | Take gem's version of the chrony path handling.
| * When PPS is built, try to use, but do not require, librt.Gary E. Miller2010-12-111-1/+1
| | | | | | | | | | librt lets gpsd use clock_gettime() which is better than gettimeofday().
| * A half step moving from gettimeofday() to clock_gettime()Gary E. Miller2010-12-111-3/+16
| | | | | | | | | | The advantage is that clock_gettime() is nSec, while gettimeofday() is only uSec. Still need to add a configure test for librt.
| * Move more time variables from timeval to timespec.Gary E. Miller2010-12-111-17/+22
| | | | | | | | | | | | In case you have not been following along, timeval is uSec precision and timespec is nSec precision. Since PPS is supposed to be uSec or better accuracy this is important.
| * Cleanup timespec and timeval normalization code with macros.Gary E. Miller2010-12-111-15/+33
| | | | | | | | Now you can almost see what the PPS code is doing.
| * More macro madness to clean up timeval/timespec handling.Gary E. Miller2010-12-111-7/+9
| | | | | | | | | | | | Add TVTOD() and TVTOD() to convert timeval and timespec to double. Any one without an FPU will hate the code with or without the macros. FP code should be removed someday.
| * Improve conversion of timespec to timevalGary E. Miller2010-12-101-8/+15
| | | | | | | | | | | | ntpd uses rounding to convert timespec (nSec) to timeval (nSec). When using PPS that last little bit is important, and the code is cleaner.
| * Allow for multiple chrony sockets.Gary E. Miller2010-12-101-6/+14
| | | | | | | | | | | | | | | | Some people want to run more than one GPS at a time for time keeping purposes. This creates a unique chrony socket file name for each GPS. When run as root, the socket is: /var/run/chrony.ttyXX.sock When non root the socket is: /tmp/chrony.ttyXX.sock
| * Use a better path for chrony.sockGary E. Miller2010-12-101-1/+7
| | | | | | | | | | | | | | | | When gpsd is running as root expect the chrony.sock file in /var/run. When gpsd is not, put it in /tmp/ Only root can use /var/run, but some folks do not like to run gpsd or chronyd as root, so allow them to use /tmp. Conforms to the LFSSTD.
* | Merge branch 'master' of ssh://git.berlios.de/gitroot/gpsdEric S. Raymond2010-12-111-7/+8
|\ \ | |/
| * Looks for timepps.h in the right place.Gary E. Miller2010-12-101-7/+8
| | | | | | | | | | RFC2783 says that <sys/timepps.h> is the right place for timepps.h Thanks to Michael Tatarinov <kukabu@gmail.com> for setting me straight.
* | Code splints clean except for endiabbess stuff in driver_garmin.c.Eric S. Raymond2010-12-081-2/+1
|/
* More partial splint cleanup.Eric S. Raymond2010-12-081-18/+16
|
* Old position odf struct sample was giving splint indigestion.Eric S. Raymond2010-12-081-9/+8
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2010-12-081-2/+2
|
* Take programmed oncore PPS offset into account. Name correction delay -> offset.Haakan Johansson2010-12-031-0/+12
| | | | Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
* Allow oncore devices in postion hold mode to deliver PPS data to ntpshm.Haakan Johansson2010-12-031-2/+16
| | | | Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>