summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.c
AgeCommit message (Expand)Author
2011-03-19use timerclear macroOkan Demirmen
2010-07-01don't need to setup the resolver early now that dns lookups are doneEric Faurot
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
2009-06-06make ntpd imsg-in-a-lib ready as well. extensive testing done, noPierre-Yves Ritschard
2009-06-01no we don't need endpwentHenning Brauer
2009-02-10log tiny frequency adjustments at debug only.Kevin Steves
2009-02-06rename a #define to be clearer; no binary changeKevin Steves
2009-01-29log warning when can't read drift file; allows detection ofKevin Steves
2008-07-19Use errx instead of fprintf, exit combo.Claudio Jeker
2008-05-16Allow ntpd to step the time at startup, now matter how large or small theChris Kuethe
2008-05-14ntpd missed the argument check sweep.Pierre-Yves Ritschard
2007-12-31we must reset the poll timeout to INFTIM when receiving the IMSG_SETTIMEHenning Brauer
2007-12-23log a warning one time when we can't open or write the drift file;Kevin Steves
2007-12-22just call getpwnam(NTPD_USER) once; ok henning@Kevin Steves
2007-12-04revert SIGQUIT catching; requested by deraadtFederico G. Schwindt
2007-12-04catch SIGQUIT too. ckuethe@ and henning@ ok.Federico G. Schwindt
2007-11-22if the drift file is missing, reset adjfreq to zero; iirc diff from GlaserOtto Moerbeek
2007-09-13add -n to usage();Jason McIntyre
2007-09-13Provide the -n switch like in the other imsg daemons for testingPierre-Yves Ritschard
2007-08-22Allow ntpd to log sensor offsets and adjtime calls to syslog at LOG_DEBUGChris Kuethe
2007-01-15Although Unix compilers accept more than one definition of a globalOtto Moerbeek
2006-06-30spacesTheo de Raadt
2006-06-30don't write anything to log until we are daemonized. spotted byOtto Moerbeek
2006-06-26Reset adjtime() on startup; having an adjtime() active while startingOtto Moerbeek
2006-06-22Save the computed clock drift and use it on startup. ok deraadt@Otto Moerbeek
2006-06-21avoid a race by installing SIGCHLD handler before fork() is called.Otto Moerbeek
2006-06-17Import frequency conrrection code from dragonfly, whith some changes:Otto Moerbeek
2006-06-07Compensate old offsets with the amount of adjustment done, avoidingOtto Moerbeek
2006-02-21handle -1 return from host_dns(); ok henning@Kevin Steves
2005-09-06when running ntpd with "-s" as it's argument from /etc/rc.conf, make sure theWim Vandeputte
2005-07-11More descriptive error if a signal causes the child to exit; ok henning@Darren Tucker
2005-06-19use a #define for the time to wait on -s and clarify a log msgHenning Brauer
2005-06-19use a little state engine to keep track of delayed dns lookups and such,Henning Brauer
2005-05-26Ensure previous adjust has completed before clearing alarm flag; ok henning@Darren Tucker
2005-04-18extra paranoia, from a discussion with joergHenning Brauer
2005-03-31zap includes, grunkHenning Brauer
2005-03-24fatal vs fatalx, Alexander von GernlerHenning Brauer
2005-03-13Fixes in ntpd_settime (ie ntpd -s):Darren Tucker
2005-03-09nasty: host_dns used to run before forking and chrooting etc, so it wasHenning Brauer
2005-03-08from the "shut the fuck up, ntpd" department:Henning Brauer
2005-02-02usage() is __deadHenning Brauer
2005-01-28fatal() if daemon() fails, Alexander von Gernler <grunk@pestilenz.org>Henning Brauer
2004-12-22d can be negative, take that into account when comparing to the loggingHenning Brauer
2004-12-20some typos in log messages.Moritz Jodeit
2004-12-06do not log tiny local clock drifts; w/ help from Joerg Sonnenberger <joerg@br...Michael Shalayeff
2004-11-10const'ify conffileHenning Brauer
2004-11-04use SIG_DFL instead of SIG_IGN when we are not interested in SIG_CHILDHenning Brauer
2004-09-23reset chld_pid to 0 when acting upon a SIGCHLD so we don't try to send itHenning Brauer
2004-09-18jmc says S before s and not s before S, sssssssso we do.Henning Brauer
2004-09-18implement -S to override earlier -s, requested by theoHenning Brauer