home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.claremont.edu!ucivax!orion.oac.uci.edu!nntpsrv
- From: iglesias@draco.acs.uci.edu (Mike Iglesias)
- Subject: Changes to allow tick and tickadj to be set from Config files
- Nntp-Posting-Host: draco.acs.uci.edu
- Message-ID: <2A9BAB74.19419@orion.oac.uci.edu>
- Newsgroups: comp.protocols.time.ntp
- Organization: University of California, Irvine
- Lines: 48
- Date: 26 Aug 92 16:04:05 GMT
-
-
- As I promised, here are the changes to make xntpd/ntp_unixclock.c accept
- tick and tickadj from the Config files. Just put -DTICK=xx and
- -DTICKADJ=xx on the DEFS line and ntp_unixclock.c will pick up those
- values. For example:
-
- DEFS= -DREFCLOCK -DNOKMEM -DDEBUG -D_BSD_SIGNALS -DTICK=100 -DTICKADJ=1
-
- Note that this only works for systems that need -DNOKMEM in the Config
- file. If either (or both) TICK and TICKADJ are not specified in the Config
- file, the old way of setting them will still work.
-
-
- Mike Iglesias Internet: iglesias@draco.acs.uci.edu
- University of California, Irvine BITNET: iglesias@uci
- Office of Academic Computing uucp: ...!ucbvax!ucivax!iglesias
- Distributed Computing Support phone: (714) 856-6926
-
-
- Feed this to patch:
-
- *** ntp_unixclock.c.dist Wed Aug 19 19:27:31 1992
- --- ntp_unixclock.c Tue Aug 25 13:02:09 1992
- ***************
- *** 600,611 ****
- --- 600,621 ----
- #ifndef HZ
- #define HZ 60
- #endif
- + #ifdef TICKADJ
- + *tickadj = TICKADJ;
- + #else
- #ifdef RS6000
- *tickadj = 1000;
- #else
- *tickadj = 500 / HZ;
- #endif /*RS6000*/
- + #endif /*TICKADJ*/
- +
- + #ifdef TICK
- + *tick = TICK;
- + #else
- *tick = 1000000L / HZ;
- + #endif /*TICK*/
- +
- #ifdef DEBUG
- if (debug)
- printf("NOTE: Using preset values for tick and tickadj !!\n");
-