summaryrefslogtreecommitdiff
path: root/ntpshm.c
Commit message (Collapse)AuthorAgeFilesLines
* Sigh...avoid harmless but *annoying* name collision...Eric S. Raymond2006-11-021-2/+2
| | | | | between our LOG_ERR and the syslog() macro by changing ours to LOG_ERROR.
* Define uniform log level macros.Eric S. Raymond2006-11-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | This patch defines a uniform set of log levels and changes all gpsd_report() instances to use them. In most cases (I'd say about 80%) this will make no observable difference, as the numeric log levels the code was using were not too badly inconsistent anyway. The new log level macros are defined and described in gpsd.h. The main thing I wanted was to be able to consistently force dumping of all I/O to devices and clients with -D 4. Some drivers didn't honor this. One or two still may not through lack of an internal write() wrapper that does logging; there will need to be some followup changes. Level 0 messages are always displayed, but to make the semantics clearer there are two defines LOG_ERR and LOG_SHOUT. Level 5 is still super-raw I/O reporting. Level 6 and 7 messages are tagged RAW_LOG+1 and RAW_LOG+2; I was particularly careful about these because we have one report of a user who is getting good results from Garmin serial only at -D 7 or up, and perish forbid I should interfere with that bug being found.
* Revert an overzealous search/replace.Gary E. Miller2006-11-011-1/+1
|
* Add some more PPS logging.Gary E. Miller2006-11-011-1/+3
|
* Fix libgpsd(3) so it's usable when ntpshm_init() has not been called.Eric S. Raymond2006-10-301-3/+2
| | | | | While investigating this I discovered that part of a previous cange (moving an ntpshm_put() call out of the NMEA driver) was incorrect and reverted it.
* Clean up some unfortunate nomenclature discovered while working on gpscntrl.Eric S. Raymond2006-10-301-5/+5
|
* Rename config.h so it can be installed as gpsd_config.h...Chris Kuethe2006-10-261-0/+1
| | | | | | ...for those who want to build their own apps linked against libgps and want the headers to work. Works on OpenBSD, tested by Jeff Francis on OS X and Linux
* Add subversion ID tags near the beginning of every file.Chris Kuethe2006-09-211-0/+1
| | | | First line where possible, second line for scripts called with #!
* Add a bit more logging to ntpshm_init.Gary E. Miller2006-08-301-0/+1
|
* Splint pacification, minor documentation fixes.Eric S. Raymond2006-05-191-2/+7
|
* Merge in a permission fix by Rob Janssen...Eric S. Raymond2006-02-181-1/+1
| | | | ..and a type fix that unbreaks the TSIP build.
* Remove stupid typo.Gary E. Miller2005-08-051-1/+1
|
* Back out 'precision' addition to ntpshm_put().Gary E. Miller2005-08-051-7/+6
| | | | ntpd did not care or notice, so no point to the extra calculation.
* Steal ntpshm_pps() computation of ntp precision, use it in ntpshm_put().Gary E. Miller2005-08-041-0/+6
|
* Improve PPS logging a tad. Widen the max lock range a tad. Now GPS-18LVC ↵Gary E. Miller2005-08-041-4/+9
| | | | works w/PPS.
* Splint warning suppression.Eric S. Raymond2005-06-221-1/+1
|
* Prep work for 16-channel receivers; silence a warning about PPS initialization.Eric S. Raymond2005-06-221-2/+1
|
* 41 splint warnings.Eric S. Raymond2005-06-071-8/+12
| | | | | gps_mask_t type introduced so we won't wire in a bunch of dependencies on the size of the flag mask.
* 78 splint warnings.Eric S. Raymond2005-06-071-5/+5
|
* 104 split errors. Some iffy changes to the TSIP driver.Eric S. Raymond2005-06-021-2/+3
|
* 698 splint warnings.Eric S. Raymond2005-05-271-11/+9
|
* Down to 1543 splint warnings.Eric S. Raymond2005-05-261-2/+2
|
* Rob Janssen's fix for PPS threading.Eric S. Raymond2005-05-251-1/+4
|
* Dynamic SHM segment allocation.Eric S. Raymond2005-05-201-20/+42
|
* Rob Janssen's second big timekeeping patch.Eric S. Raymond2005-05-161-25/+32
|
* Fixes for the Zodiac driver. Beginning of PPS patch (conditioned out).Eric S. Raymond2005-05-091-10/+70
| | | | These changes from Rob Janssen.
* Open the shared-memory segment to talk to ntpd only once.Eric S. Raymond2005-04-281-14/+14
| | | | | | | | | | Instead of opening the shared-memory segment to talk to ntpd each time gpsd_init is called and having it be part of the GPS device state, open it once at daemon startup time and move the pointer into the shared-context structure. This is a good cleanup on general principles. It will also let us drop root privs after startup.
* Change gps_session_t to gps_device_t.Eric S. Raymond2005-03-281-2/+2
|
* Don't crap out when the shared-memory grab fails (show up under gpsfake.Eric S. Raymond2005-03-261-7/+6
|
* Rob Janssen's updates for the NTP interface.Eric S. Raymond2005-03-181-0/+1
|
* First cut at NTPD notifications.Eric S. Raymond2005-03-181-0/+96