2000-09-23 Harlan Stenn <stenn@whimsy.udel.edu>
+ * include/ntp_refclock.h (stropts.h, sys/clkdefs.h): Harmful and
+ useless file include's turned off.
+ * libntp/iosignal.c (netinet/in.h, sys/sockio.h): Duplicate file
+ include's turned off.
+ * ntpd/ntp_refclock.c (ntp_tty.h): File included.
+ (refclock_open, refclock_ioctl): Use `TTY' from ntp_tty.h.
+ * ntpd/refclock_atom.c: Grab a few headers regardless; if we don't
+ CLOCK_ATOM we provide a stub pps_sample() routine wo the WHARTON
+ can be compiled/used.
+ * ntpq/ntpq_ops.c (dopeers, doopeers): Print the units for
+ each column header.
+ Tue Sep 12 16:25:51 2000 Philippe De Muyter <phdm@macqel.be>
+
* ntpd/refclock_atom.c (atom_start): Lose "temp", because we now
initially either CAPTUREASSERT or CAPTURECLEAR.
(atom_pps): pps_info_t is our friend. Update comments to reflect
#include <sys/modem.h>
#endif
+#if 0 /* If you need that, include ntp_io.h instead */
#if defined(STREAM)
#include <stropts.h>
-#if defined(CLK)
+#if defined(CLK) /* This is never defined, except perhaps by a system header file */
#include <sys/clkdefs.h>
#endif /* CLK */
#endif /* STREAM */
+#endif
#include "recvbuff.h"
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
+#if 0 /* Included by ntp_fp.h */
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
+#endif
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
+#if 0 /* Included by ntp_if.h below */
#ifdef HAVE_SYS_SOCKIO_H /* UXPV: SIOC* #defines (Frank Vance <fvance@waii.com>) */
# include <sys/sockio.h>
#endif
+#endif
#include <arpa/inet.h>
#if _BSDI_VERSION >= 199510
#include "ntpd.h"
#include "ntp_io.h"
#include "ntp_unixtime.h"
+#include "ntp_tty.h"
#include "ntp_refclock.h"
#include "ntp_stdlib.h"
#include <sys/ppsclock.h>
#endif /* HAVE_PPSCLOCK_H */
+/*#undef HAVE_PPSAPI /* !!! !!! !!! !!! fix me */
+
#ifdef HAVE_PPSAPI
# ifdef HAVE_TIMEPPS_H
# include <timepps.h>
{
int fd, i;
int flags;
-#ifdef HAVE_TERMIOS
- struct termios ttyb, *ttyp;
-#endif /* HAVE_TERMIOS */
-#ifdef HAVE_SYSV_TTYS
- struct termio ttyb, *ttyp;
-#endif /* HAVE_SYSV_TTYS */
-#ifdef HAVE_BSD_TTYS
- struct sgttyb ttyb, *ttyp;
-#endif /* HAVE_BSD_TTYS */
+ TTY ttyb, *ttyp;
#ifdef TIOCMGET
u_long ltemp;
#endif /* TIOCMGET */
#if defined(HAVE_TERMIOS) || defined(HAVE_SYSV_TTYS) || defined(HAVE_BSD_TTYS)
#ifdef TTYCLK
-#ifdef HAVE_TERMIOS
- struct termios ttyb, *ttyp;
-#endif /* HAVE_TERMIOS */
-#ifdef HAVE_SYSV_TTYS
- struct termio ttyb, *ttyp;
-#endif /* HAVE_SYSV_TTYS */
-#ifdef HAVE_BSD_TTYS
- struct sgttyb ttyb, *ttyp;
-#endif /* HAVE_BSD_TTYS */
+ TTY ttyb, *ttyp;
#endif /* TTYCLK */
#ifdef DEBUG
}
(void) fprintf(fp,
" remote refid st t when poll reach delay offset jitter\n");
+ (void) fprintf(fp,
+ " (s) (s) (ms) (ms) (ms) \n");
if (numhosts > 1)
for (i = 0; i <= maxhostlen; ++i)
(void) fprintf(fp, "=");
(void) fprintf(fp,
" remote local st t when poll reach delay offset disp\n");
+ (void) fprintf(fp,
+ " (s) (s) (ms) (ms) (ms)\n");
(void) fprintf(fp,
"==============================================================================\n");