: NOTE: ntp-4.1.1 should work right out of the box (does not need a patch)!
: However I suggested those goodies to the NTP folks. Maybe those are in the
: current development version.
Index: ntpd/ntp_control.c
===================================================================
RCS file: /usr/src/packages/SOURCES/PkgSrcRep/xntp/ntpd/ntp_control.c,v
retrieving revision 1.1.1.11
diff -u -r1.1.1.11 ntp_control.c
--- ntpd/ntp_control.c	8 Mar 2002 20:13:48 -0000	1.1.1.11
+++ ntpd/ntp_control.c	20 Apr 2002 20:45:10 -0000
@@ -1251,6 +1251,7 @@
 		    sizeof(str_system) - 1);
 #else
 		(void)strcpy(str, utsnamebuf.sysname);
+		(void)strcat(str, "-");
 		(void)strcat(str, utsnamebuf.release);
 		ctl_putstr(sys_var[CS_SYSTEM].text, str, strlen(str));
 #endif /* HAVE_UNAME */
Index: util/ntptime.c
===================================================================
RCS file: /usr/src/packages/SOURCES/PkgSrcRep/xntp/util/ntptime.c,v
retrieving revision 1.1.1.10
diff -u -r1.1.1.10 ntptime.c
--- util/ntptime.c	25 Jul 2001 17:48:52 -0000	1.1.1.10
+++ util/ntptime.c	20 Apr 2002 22:03:54 -0000
@@ -36,10 +36,9 @@
 #define tv_frac_sec tv_usec
 #endif
 
-
 #define TIMEX_MOD_BITS \
-"\20\1OFFSET\2FREQUENCY\3MAXERROR\4ESTERROR\5STATUS\6TIMECONST\
-\13PLL\14FLL\15MICRO\16NANO\17CLKB\20CLKA"
+"\20\1OFFSET\2FREQUENCY\3MAXERROR\4ESTERROR\5STATUS\6TIMECONST\7PPSMAX\
+\10TAI\13PLL\14FLL\15MICRO\16NANO\17CLKB\20CLKA"
  
 #define TIMEX_STA_BITS \
 "\20\1PLL\2PPSFREQ\3PPSTIME\4FLL\5INS\6DEL\7UNSYNC\10FREQHOLD\
@@ -68,7 +67,7 @@
 static volatile int status;	/* most recent status bits */
 static volatile int flash;	/* most recent ntp_adjtime() bits */
 char* progname;
-static char optargs[] = "MNT:cde:f:hm:o:rs:t:";
+static char optargs[] = "MNT:cde:f:hm:o:p:rs:t:";
 
 int
 main(
@@ -140,6 +139,12 @@
 		ntx.modes |= MOD_OFFSET;
 		ntx.offset = atoi(ntp_optarg);
 		break;
+#ifdef MOD_PPSMAX
+	    case 'p':
+		ntx.modes |= MOD_PPSMAX;
+		ntx.shift = atoi(ntp_optarg);
+		break;
+#endif
 	    case 'r':
 		rawtime++;
 		break;
@@ -165,8 +170,9 @@
 -h		display this help info\n\
 -m maxerror	max possible error (us)\n\
 -o offset	current offset (ms)\n\
+%s\
 -r		print the unix and NTP time raw\n\
--l leap		Set the leap bits\n\
+-s status	set status bits\n\
 -t timeconstant	log2 of PLL time constant (0 .. %d)\n",
 			       progname, optargs,
 #ifdef MOD_MICRO
@@ -188,6 +194,11 @@
 #else
 "",
 #endif
+#ifdef MOD_PPSMAX
+"-p limit	set maximum PPS averaging interval to 2^limit\n",
+#else
+"",
+#endif
 			       MAXTC);
 		exit(2);
 	}
@@ -305,7 +316,7 @@
 		    (int) ntv.time.tv_sec, fdigits, (int) time_frac,
 		    ctime((const time_t *) &ntv.time.tv_sec));
 #if NTP_API > 3
-		printf(", TAI offset %d\n", ntv.tai);
+		printf(", TAI offset %ld\n", ntv.tai);
 #else
 		printf("\n");
 #endif /* NTP_API */
