summaryrefslogtreecommitdiff
path: root/ntpshm.c
Commit message (Collapse)AuthorAgeFilesLines
* Small refactoring step and optimization.Eric S. Raymond2011-09-221-11/+17
|
* Fix typo in log message.Gary E. Miller2011-08-221-1/+1
|
* Try to open the right chrony socket...Eric S. Raymond2011-08-221-13/+7
| | | | ...now that command-line devices are opened vefore privilege-dropping.
* Add more explanation.Eric S. Raymond2011-08-121-1/+3
|
* Improved explanation of the priv-dropping problem. All regression tests pass.Eric S. Raymond2011-08-111-4/+4
|
* Revert to old -N behavior of dripping privileges, and explain why.Eric S. Raymond2011-08-111-0/+5
|
* Typo fixes and scan-build cleanup.Eric S. Raymond2011-08-111-0/+1
|
* splint and cppcheck cleanup. All regression tests pass.Eric S. Raymond2011-06-271-1/+1
|
* Removed duplicate code.Michael Tatarinov2011-06-271-24/+18
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* splint cleanup.Eric S. Raymond2011-04-061-2/+3
|
* PPS_ON_CTS -> PPS_ON_CTS_ENABLE in the autoconf build.Eric S. Raymond2011-04-041-1/+1
| | | | | | The uniform way we treat optioons in the scons build requires this. All regression tests pass.
* Squeeze more code out of the minimal build.Eric S. Raymond2011-03-291-5/+2
|
* Try to move NTP link activation and deactivation up to the disparcher layer.Eric S. Raymond2011-03-241-4/+2
|
* Refactoring step. Hide the internals of NTPD communication better.Eric S. Raymond2011-03-231-4/+17
|
* Add some explanatory comments about where root privs are needed.Eric S. Raymond2011-03-231-3/+15
| | | | | Add conditioned-out code as a demonstration of how to spin the thread inexpensively until a device is open.
* Add missing include file needed for open().Gary E. Miller2011-03-231-0/+4
| | | | A side effect of the recent PPS restructuring.
* Move as much of the PPS support as possible to ntpshm.c.Eric S. Raymond2011-03-231-1/+553
| | | | All regression tests pass.
* Move a declaration so it doesn't follow executable code.Eric S. Raymond2011-03-211-1/+2
|
* Silence compiler warning about inconsistent use of volatile in ntp SHM.Gary E. Miller2011-03-211-13/+19
| | | | | | Since the ntp SHM is multithreaded we need to tell the C compiler not to optimize out our the SHM handshake. Still needs a memory barrier to be totally correct.
* thomas@mich.com pointed out that ntpd SHM needs to be volatile.Gary E. Miller2011-03-181-3/+3
| | | | | | I checked the ntpd source code and mirrored how they marked the SHM as volatile. This could prevent potential misoptimization by the C compile.
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-0/+1
|
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-1/+0
|
* More configure simplification.Eric S. Raymond2010-12-141-12/+3
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-2/+0
|
* Good news and bad news about kernel PPS.Gary E. Miller2010-07-201-2/+5
|
* FIXME -> FIX-ME, so I can walk through these without tripping over autotools.Eric S. Raymond2010-04-261-2/+2
|
* ntpshm.c reindented. Requires live testing.Eric S. Raymond2010-04-141-66/+68
|
* Dial back logging a tadGary E. Miller2010-04-121-1/+1
|
* More ntpshm_put() changes.Gary E. Miller2010-04-121-0/+1
|
* Add some debugging and fixes to new ntpshm_pps() wrapper.Gary E. Miller2010-04-121-1/+3
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-1/+0
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-0/+3
|
* A bit more shared memory debug info in the comments.Gary E. Miller2010-02-191-0/+3
|
* Add a bit more shm debug info in the commentsGary E. Miller2010-02-191-1/+11
|
* Use %zd to print size_t value rather than assuming size_t is long.Greg Troxel2010-02-011-2/+2
| | | | | Adapted from report/patch by Hakan Johansson (sorry, no UTF-8 in commit messages it seems).
* Patch to allow gpsd to reliably work with ntpd when gpsd is not run as root. Gary E. Miller2010-01-251-18/+44
| | | | | | Plus doc improvements. >From Hakan Johansson.
* David Ludlow's housekeeping and type-cleanup patch.Eric S. Raymond2010-01-021-3/+8
| | | | All regression tests pass,
* Get rid of u_char, and some splint cleanup.Eric S. Raymond2009-12-311-1/+1
|
* Add a good comment that gpsd CAN talk to ntpd as non-root.Gary E. Miller2009-12-231-2/+14
|
* Try to be smarter about SHM permissions when starting as non-root.Gary E. Miller2009-12-231-3/+19
| | | | Improve the error message.
* WHoops, make last patch compile.Gary E. Miller2009-12-221-1/+1
|
* Remove unneccessary root test. Gary E. Miller2009-12-221-3/+10
| | | | | gpsd should be able to attach to SHM as a simple user if the perms are correct.
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-1/+0
| | | | | | | That is, instead of sectioning out two little config defines and putting them in. This makes gpsd.h self-copntained (e.g. in case it gets installed as a library header) and means we can get rid of most inclusions of it.
* Sorry, make the last patch compile.Gary E. Miller2009-11-181-2/+3
|
* Fix PPS precision at -16.Gary E. Miller2009-11-181-4/+7
| | | | | ntpd ignores it anyway and it saves a lot of floating point calculation.
* Make fudge explicit in ntpshm_put(), and log it..Gary E. Miller2009-11-171-3/+9
|
* Splint cleanup.Eric S. Raymond2009-11-161-1/+3
|
* Tweak a log message.Gary E. Miller2009-11-151-1/+1
|
* Shut up splint. Per Hakan Johansson.Gary E. Miller2009-11-151-2/+3
|
* Get current second from the last GPS timestamp.Gary E. Miller2009-11-141-13/+24
| | | | | | | | | ntpshm_pps was guessing the current second for the PPS from the system clock, yet we have zero trust in the system clock. So instead grab the current second from the last GPS serial timestamp. A radical change for the better, but someone will surely find improvements with experience on the code.