⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 65

📁 Unix/Linux 网络时间协议版本3 Network Time Protocol Version 3 (NTP) distribution for Unix systems
💻
字号:
Replied: Mon, 20 Jan 1997 21:50:58 -0500Replied: "Ulrich Windl <ulrich.windl@rz.uni-regensburg.de> "Replied: Sat, 18 Jan 1997 03:16:46 -0500Replied: "Ulrich Windl <ulrich.windl@rz.uni-regensburg.de> "Received: from snow-white.ee.udel.edu by whimsy.udel.edu id aa21342;          16 Jan 97 7:05 GMTReceived: from ngate.ngate.uni-regensburg.de (ngate.rz.uni-regensburg.de) by comsun.rz.uni-regensburg.de with SMTP id AA18132  (5.65c/IDA-1.4.4 for <stenn@whimsy.udel.edu>); Thu, 16 Jan 1997 08:02:19 +0100Received: from rkdvmks1.ngate.uni-regensburg.de by ngate.ngate.uni-regensburg.de; Thu, 16 Jan 97 08:01 GMTReceived: from rkdvmks1.ngate.uni-regensburg.de by kgate.ngate.uni-regensburg.de; Thu, 16 Jan 97 07:00 GMTReceived: from RKDVMKS1/SpoolDir by rkdvmks1.ngate.uni-regensburg.de (Mercury 1.21);    16 Jan 97 08:02:07 +0100Received: from SpoolDir by RKDVMKS1 (Mercury 1.21); 16 Jan 97 08:02:04 +0100From: Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>Organization: Universitaet Regensburg, KlinikumTo: Harlan Stenn <stenn@whimsy.udel.edu>Date: Thu, 16 Jan 1997 08:02:01 +0100Mime-Version: 1.0Content-Length: 7712Content-Type: Multipart/Mixed; boundary=Message-Boundary-30966Subject: xntp3-5.88Priority: normalX-Mailer: Pegasus Mail for Windows (v2.23)Message-Id: <867B0DE375A@rkdvmks1.ngate.uni-regensburg.de>--Message-Boundary-30966Content-type: text/plain; charset=US-ASCIIContent-transfer-encoding: 7BITContent-description: Mail message bodyHello,first of all good news: With my Linux distribution (S.u.S.E. 4.4.0 with kernel 2.0.26) the following things worked (after minor work):- KERNEL PLL- POWERING the DCF77 from the RS232I'll attach another file with some fixes, because this mailing system runs within MS-Windows; who knows what happens with long lines or tabs...UlrichFirst here are some HTML fixes; some "</code>" were misspelled, "<" has to be "&lt;" even within "<pre> ... </pre>". The file is gzipped and uuencoded.begin 644 /tmp/xntp3-5.88-HTML-patch.gzM'XL(`"A&W3("`ZU8;7/;N!'^?)KI?]CZPYUE2:0E6;$L\SAV;*=QX[>QU:1IMI^.!2$C""21X`"B=+I?\]NZ"E$S+=C.YAJ,Q7X#%[C[[[&+A5JL%OZ4VZ[9ZM7K_OGUS??+P]_]O;X9<?ACF'4QY!>Q=VNX/=SJ"W#^V#@U>U1J/QK,@/'W@,M?V<IM'O0:0^ZG<&ND]BO'1U!J]WL0J/=W(.CHUHC^.OI]<GPX\T9O!U>7L#-M/UY?G)_`5LOWS\^&;WS_='A:C-Q9+2+K^V=76V$-@JE-9!A,.8O#P`HK.7X\M4=E2B\G4PI6R(N(XS2_&`K^8.5+Q$J6ZH3.DTV_N0Z-S@'_1%(`=6#"M66J7M'OSY:X=6^BZ77X-:*_`SC<XUBGN0H9\U&$XYC)64:B'2"8@T%G,1YTP:B%2*M0(URBQ$0*61,6[`*+`I<<;M0>@9#D2`T-UI9%2D)I\(4$D*E\)YK0_<]8&D,M3'-@T2Q5"\GC":[(#+#<3I4VH,:XJ#`.R.XK`K*[7P*)N"L9.N.S,)`BO&2HM]CB--5\8V$[PC1V99>S%B?$B([3R6%Z'"RYL-`5F52(BB*2*9NCV_R5>P(%`M<>W,&FEGSWNAV2_PF@E<;C["VU'"A$Q8VO9$:KGT(I74FW`BV=(B&.^$GBV4MBFNMQRGRX?SJ:MBZ/3L^O3SSB)!?'/&/\PD`\KTSP-_N[K.I\D1T,V5Z@^ZWMI\R'[DDE8[I>!TXU&Y=)\Q?TG[[3@WM&Y?B\X1/9XH]R(>/2H[L\A>O(0F<?M=E\-.KU!K_.L1QN"&_[L=?%7\0=3KX\>N5M)F2R\X]P1-8A4S$//-Y$6F34^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S`**9R\']Y?75^=':Z'/@.76$D>;"JMPMZS+".T.ZA'J%,MFCF[6I6CM0V"X==MORK%?,4PO82S9Q(2':_,?'/CJ\BL7&A4-)/B"$II^6*N>9"H>7[^KM#JT]?F'VF^/SBS_HX?7QZ9O+X6&Y9?:++7-UWGI*QEJQ9'XO%>;;]D[AHJUOMUP\))W\'*DYK9)U(.;2(BKKRNL$RP'-4XYN$GW"0ED"[YDK$#_YN[YAE&O%YM81XX#:MU*$&FV#5)JANW=YUN!V@R\#GN)GCH<#1#UB>9J:/2W.#932[=G/MRMNRY4KJ&@H0QGHZZBE'3PT(6EI(.GKH=24DY'3.]GG&>'CT^F:&#9FS@#$QX+MK)Z8P18;%V00B91ZR^OQ%*R^+.'X9-!FDRB%!T#41MVAYK\4S3=5B1&+5XIJMCBT.2)&.U;__X\I*R^5R,U"N7RW*9-BD],:13Q`407E0%\+G)L60A"@X53F*MCQ-MD"B-;DJ[".("JY($@>]*J$.QUV_V$,7>`=[6!Y$;R;&-+7JTV/6\6)F1MJC$OCB3.SQ2F6/:=KF(#I,,UENYMX9IT*8QK&5#O</@1$JPIV-86_8,I&PC<MR]SI7-@F(F@R/+M@;+`@<6P,XZ)?I!;*K5]'=(*IIM8'_[I_!`0,IIJ/?]Z:M6IL-?'^Q6.QYA#,EDYAY>2I:7$N63GCJQ=S_,F,ZYG(K?*,9GGC>N;?`9V'M)OZ@6SE[]$0```end--Message-Boundary-30966Content-type: text/plain; charset=US-ASCIIContent-transfer-encoding: 7BITContent-description: Text from file 'xntp3-~1.txt'Harlan,here are some random notes on the 5.88 release on Linux:If gcc (GNU C) and gas (GNU assembler) are present it would be worth totest option "-pipe" (works then). This increases compilation speed whenthere is some RAM and computing power.The following was wrong for Linux (i586-pc-linux-gnu):	checking for a fallback value for HZ... 66The correct value is 100 Hz for Linux on Intel 80x86.For the DAWDCF driver (DCF77) the following define should be enabled:/* Does DTR power the DCF77 (Linux)? */#undef RAWDCF_SETDTRConfigure command waself:/old/xntp3-5.88 # ./configure --disable-all-clocks --enable-MEINBERG --enable-RAWDCF --enable-LOCAL-CLOCKI found a bug in xntpd at debugging level 4:Output was	peer_config: addr 127.127.8.1 mode 3 version 3 minpoll 6 maxpoll 10 flags 0 ttl 5 key 0but the /etc/ntp.conf was----server 127.127.8.1 mode 5  # generic DCF77 clock on serial port (Conrad DCF77)server 127.127.1.0		# local clockfudge 127.127.1.0 stratum 10	# run local clock at a low stratumdriftfile /etc/ntp.drift# server xx.xx.xx.xx		# IP address of another serverlogconfig =sysall +syncstatus# logfile /dev/null----The fix is not very easy (need a debugger and a recompile -- not today).When compiling I got some warnings:...gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -g -O2 -Wall refclock_parse.crefclock_parse.c:3136: warning: `parse_leap' defined but not usedparse_leap is a static function....make[2]: Entering directory `/old/xntp3-5.88/util'gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -g -O2 -Wall tickadj.ctickadj.c: In function `main':tickadj.c:37: warning: implicit declaration of function `atoi'This might be fixed by #include <stdlib.h> if present. I did not know howto do that properly.And I got an error:gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -g -O2 -Wall ntptime.cntptime.c: In function `main':ntptime.c:175: warning: implicit declaration of function `syscall'ntptime.c:230: warning: implicit declaration of function `__adjtimed'ntptime.c:262: warning: passing arg 1 of `ctime' from incompatible pointer typentptime.c:262: warning: unsigned int format, u_long arg (arg 2)ntptime.c:262: warning: unsigned int format, u_long arg (arg 3)ntptime.c: In function `pll_trap':ntptime.c:317: `env' undeclared (first use this function)ntptime.c:317: (Each undeclared identifier is reported only oncentptime.c:317: for each function it appears in.)make[2]: *** [ntptime.o] Error 1For line 175 the solution seems to #include <syscall.h> /* Linux 2.0.26 */230 is due to a typo (already fixed)262 can be eliminated by a cast317 needs a #ifdef SIGSYS ... #endifFinally, a patch:# The syscall include is ugly and possibly wrong. Please fix it properly.--- util/ntptime.c~	Wed Dec 11 05:34:32 1996+++ util/ntptime.c	Wed Jan 15 22:55:06 1997@@ -31,6 +31,7 @@  #ifdef KERNEL_PLL # include <sys/timex.h>+# include <syscall.h>	/* for Linux 2.0; should <timex.h> include that? */ # ifdef NTP_SYSCALLS_STD #  define ntp_gettime(t)  syscall(SYS_ntp_gettime, (t)) #  define ntp_adjtime(t)  syscall(SYS_ntp_adjtime, (t))@@ -39,7 +40,7 @@ #   define ntp_gettime(t)  __ntp_gettime((t)) #  endif #  ifdef HAVE___ADJTIMEX-#   define ntp_adjtime(t)  __adjtimed((t))+#   define ntp_adjtime(t)  __adjtimex((t)) #  endif # endif /* NOT NTP_SYSCALLS_STD */ #endif /* KERNEL_PLL */@@ -257,9 +258,10 @@ 	   prettydate(&ts), (int) ntv.time.tv_usec);     printf("  maximum error %ld us, estimated error %ld us.\n", 	   ntv.maxerror, ntv.esterror);-    if (rawtime) printf("  ntptime=%x.%x unixtime=%x.%06d %s",+    if (rawtime) printf("  ntptime=%lx.%lx unixtime=%x.%06d %s", 			ts.l_ui, ts.l_uf, (int) ntv.time.tv_sec,-			(int) ntv.time.tv_usec, ctime(&ntv.time.tv_sec));+			(int) ntv.time.tv_usec,+			ctime((time_t *) &ntv.time.tv_sec));   }   status = ntp_adjtime(&ntx);   if (status < 0)@@ -306,6 +308,7 @@   exit(0); } +#ifdef	SIGSYS /*  * pll1_trap - trap processor for undefined syscalls  */@@ -316,6 +319,7 @@   pll_control--;   siglongjmp(env, 1); }+#endif  /*  * Print a value a la the %b format of the kernel's printf--Message-Boundary-30966--

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -