Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-13 | from sthen: handle msgbuf_write() returning EAGAIN | Sebastian Benoit | |
ok krw | |||
2013-10-16 | tidy up the "modifier" list a little and sync usage(); | Jason McIntyre | |
NB: this utility has only one option, and it's not optional! i haven;t marked -s as being mandatory, since hopefully someone will make ntpctl run without arguments do something useful; | |||
2013-10-11 | improve ntpctl argv parsing | Theo de Raadt | |
2013-10-09 | shorten output; ok henning phessler | Theo de Raadt | |
2013-10-04 | Tweak previous: | Ingo Schwarze | |
* For time_t values, use the printf("%lld", (long long)t) idiom. * Don't print "Invalid program name" in usage() when main() just runs ntpd. * Make "Show/Shows" consistent in the manual, sort .Xr and correct .Ox. OK phessler@ | |||
2013-10-04 | Add ntpctl(8), which allows us to query the locally running ntpd(8) process | Peter Hessler | |
diff from Mike Miller <mmiller mgm51 com> (many thanks!) OK phessler@, henning@, todd@ | |||
2011-03-19 | use timerclear macro | Okan Demirmen | |
ok henning@ | |||
2010-07-01 | don't need to setup the resolver early now that dns lookups are done | Eric Faurot | |
by the dns engine. ok henning@ | |||
2010-05-26 | Rename some imsg bits to make namespace collisions less likely buf to | Nicholas Marriott | |
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt | |||
2009-06-06 | make ntpd imsg-in-a-lib ready as well. extensive testing done, no | Pierre-Yves Ritschard | |
behavior change. ok eric@ | |||
2009-06-01 | no we don't need endpwent | Henning Brauer | |
i remember we already had the confusion and bgpd doesn't have the endpwent | |||
2009-02-10 | log tiny frequency adjustments at debug only. | Kevin Steves | |
ok henning@, 'I think I agree' otto@ | |||
2009-02-06 | rename a #define to be clearer; no binary change | Kevin Steves | |
ok henning@ | |||
2009-01-29 | log warning when can't read drift file; allows detection of | Kevin Steves | |
corrupt contents. ok henning@ | |||
2008-07-19 | Use errx instead of fprintf, exit combo. | Claudio Jeker | |
Diff from Gleydson Soares gsoares (at) gmail (dot) com OK henning@ | |||
2008-05-16 | Allow ntpd to step the time at startup, now matter how large or small the | Chris Kuethe | |
offset. The 180s limit doesn't help very much these days. ok otto@ mbalmer@ | |||
2008-05-14 | ntpd missed the argument check sweep. | Pierre-Yves Ritschard | |
2007-12-31 | we must reset the poll timeout to INFTIM when receiving the IMSG_SETTIME | Henning Brauer | |
because otherwise the poll timeout will stay at SETTIME_TIMEOUT (15s) forever unless we time out waiting for the first reply with -s spotted by Aaron Riekenberg <aaron.riekenberg@gmail.com> | |||
2007-12-23 | log a warning one time when we can't open or write the drift file; | Kevin Steves | |
also add "(no drift file)" to the adjfreq log message on failure; ok henning@ | |||
2007-12-22 | just call getpwnam(NTPD_USER) once; ok henning@ | Kevin Steves | |
2007-12-04 | revert SIGQUIT catching; requested by deraadt | Federico G. Schwindt | |
2007-12-04 | catch SIGQUIT too. ckuethe@ and henning@ ok. | Federico G. Schwindt | |
2007-11-22 | if the drift file is missing, reset adjfreq to zero; iirc diff from Glaser | Otto Moerbeek | |
from a long time ago. ok ckuethe@ | |||
2007-09-13 | add -n to usage(); | Jason McIntyre | |
2007-09-13 | Provide the -n switch like in the other imsg daemons for testing | Pierre-Yves Ritschard | |
the configuration file. "yes please, ok" henning@ | |||
2007-08-22 | Allow ntpd to log sensor offsets and adjtime calls to syslog at LOG_DEBUG | Chris Kuethe | |
priority. ok gwk, mbalmer, weingart "explicit non-ok from" henning | |||
2007-01-15 | Although Unix compilers accept more than one definition of a global | Otto Moerbeek | |
symbol, follow the guidelines from K&R: only one definition of a global symbol (and possibly more declarations). Rename some vars here and there to avoid shadowing. ok henning@ | |||
2006-06-30 | spaces | Theo de Raadt | |
2006-06-30 | don't write anything to log until we are daemonized. spotted by | Otto Moerbeek | |
david@; ok henning@ | |||
2006-06-26 | Reset adjtime() on startup; having an adjtime() active while starting | Otto Moerbeek | |
up causes overcompensation and confusing debug log entries; noticed by dtucker@ | |||
2006-06-22 | Save the computed clock drift and use it on startup. ok deraadt@ | Otto Moerbeek | |
henning@ | |||
2006-06-21 | avoid a race by installing SIGCHLD handler before fork() is called. | Otto Moerbeek | |
ok henning@ ckuethe@ | |||
2006-06-17 | Import frequency conrrection code from dragonfly, whith some changes: | Otto Moerbeek | |
only do frequency compensation if the clock is synced, and a slightly diffent way of computing the linear regression. You'll need a recent kernel and libc to use this. Testing by naddy@ and ckuethe@ and others, thanks! ok henning@ | |||
2006-06-07 | Compensate old offsets with the amount of adjustment done, avoiding | Otto Moerbeek | |
overcompensating. From DragonFly, uses recent adjtime(2) changes, so you'll need a recent kernel. ok henning@ | |||
2006-02-21 | handle -1 return from host_dns(); ok henning@ | Kevin Steves | |
2005-09-06 | when running ntpd with "-s" as it's argument from /etc/rc.conf, make sure the | Wim Vandeputte | |
output goes to syslog and not console by moving around log_init OK henning@, markus@ and mblamer@ | |||
2005-07-11 | More descriptive error if a signal causes the child to exit; ok henning@ | Darren Tucker | |
2005-06-19 | use a #define for the time to wait on -s and clarify a log msg | Henning Brauer | |
2005-06-19 | use a little state engine to keep track of delayed dns lookups and such, | Henning Brauer | |
eases things tested by Jason Ackley <jason@ackley.net> Matthias Kilian <kili@outback.escape.de> Stephen Marley <stephen@marley.org.uk> sturm@ theo ok | |||
2005-05-26 | Ensure previous adjust has completed before clearing alarm flag; ok henning@ | Darren Tucker | |
2005-04-18 | extra paranoia, from a discussion with joerg | Henning Brauer | |
2005-03-31 | zap includes, grunk | Henning Brauer | |
2005-03-24 | fatal vs fatalx, Alexander von Gernler | Henning Brauer | |
2005-03-13 | Fixes in ntpd_settime (ie ntpd -s): | Darren Tucker | |
- Handle errors from syscalls better - Prevent curtime.tv_usec from being negative for negative offsets. - Don't claim to have done settimeofday if it fails. ok henning@ | |||
2005-03-09 | nasty: host_dns used to run before forking and chrooting etc, so it was | Henning Brauer | |
guaranteed that its res_init() call was done once before fork etc... that is no longer the case. call res_init() in main() early. | |||
2005-03-08 | from the "shut the fuck up, ntpd" department: | Henning Brauer | |
move log_debug call to tell about skipping the settime due to lack of answers down slightly below the 2nd (and final) log_init call so it becomes a -d only thing. tested by dlg and me | |||
2005-02-02 | usage() is __dead | Henning Brauer | |
pt out by Alexander v Gernler | |||
2005-01-28 | fatal() if daemon() fails, Alexander von Gernler <grunk@pestilenz.org> | Henning Brauer | |
2004-12-22 | d can be negative, take that into account when comparing to the logging | Henning Brauer | |
threshold. spotted by Constantine Murenin <mureninc@gmail.com>, mickey ok | |||
2004-12-20 | some typos in log messages. | Moritz Jodeit | |
ok henning@ |