Lines Matching +full:sync +full:- +full:update +full:- +full:mask

2  * ntp_util.c - stuff I didn't have any other place for
63 static double wander_resid; /* last frequency update */
64 double wander_threshold = 1e-7; /* initial frequency threshold */
97 static double prev_drift_comp; /* last frequency update */
114 * uninit_util - free memory allocated by init_util
154 * init_util - initialize the util module of ntpd
179 * hourly_stats - print some interesting stats
199 * soft clock is kept in sync with the battery clock. If it
207 * battery clock sync up to system time. The way to do THAT is
219 * (prr) getpriority returns -1 on error, but -1 is also a valid
221 * call and check it for non-zero afterwards.
234 * us in the real-time scheduling class which setpriority
235 * doesn't know about. Being in the real-time class is better
239 if ((errno == 0) && (setpriority(PRIO_PROCESS,0,-20) == 0))
250 msyslog(LOG_ERR, "can't sync battery time: %m");
264 * drift_comp is less than the wander_resid, update
269 (prev_drift_comp - drift_comp) * 1e6, wander_resid *
272 if (fabs(prev_drift_comp - drift_comp) < wander_resid) {
312 $DESCRIPTOR(oldvers,";-1");
326 * precedence over the configuration file, as command-line options
339 u_int mask;
343 DEBUG_REQUIRE(option < sizeof(mask) * 8);
344 mask = 1u << option;
345 retv = !(seen & mask);
346 seen |= mask;
355 * stats_config - configure the stats operation
374 static const char temp_ext[] = "-TEMP";
485 /* - 2 since value may be missing the DIR_SEP. */
487 if (len > sizeof(statsdir) - 2) {
490 (u_int)sizeof(statsdir) - 2);
494 if (0 == len || DIR_SEP == value[len - 1]) {
568 * record_peer_stats - write peer statistics to file
612 * record_loop_stats - write loop filter statistics to file
652 * record_clock_stats - write clock statistics to file
685 * mprintf_clock_stats - write clock statistics to file with
686 * msnprintf-style formatting.
709 * record_raw_stats - write raw timestamps to file
761 srcadr ? stoa(srcadr) : "-",
762 dstadr ? stoa(dstadr) : "-",
782 * record_sys_stats - write system statistics to file
815 day, ulfptoa(&now, 3), current_time - sys_stattime,
827 * record_proto_stats - write system statistics to file
859 * record_crypto_stats - write crypto statistics to file
898 * record_timing_stats - write timing statistics to file
932 * check_leap_file - See if the leapseconds file has been updated.
989 logPrefix, leapfile_name, -rc, (rc == -1 ? "" : "s"));
999 * getauthkeys - read the authentication keys from the specified file
1034 * rereadkeys - read the authentication key file over again.
1046 * ntp_exit - document explicitly that ntpd has exited
1057 * fstostr - prettyprint NTP seconds
1080 * to do any one-time processing necessitated by the step.