]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog, ntp_proto.c, ntp_refclock.c:
authorHarlan Stenn <stenn@ntp.org>
Mon, 13 Sep 1999 04:00:08 +0000 (04:00 -0000)
committerHarlan Stenn <stenn@ntp.org>
Mon, 13 Sep 1999 04:00:08 +0000 (04:00 -0000)
  * ntpd/ntp_refclock.c (refclock_ioctl): Declaration cleanup.
  Dave patched some PPS stuff in this one, too.
  * ntpd/ntp_proto.c (init_proto): msyslog kern_enable at LOG_DEBUG.

bk: 37dc76c84aMAhgMG0PRi3NCpd9W00Q

ChangeLog
ntpd/ntp_proto.c
ntpd/ntp_refclock.c

index bc6d4e63dad5873bdd22987bd732ff2861a83c4f..47ecc291d8e0e4e837e13a85ba1f0a3b1aafc152 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1999-09-12  Harlan Stenn  <stenn@whimsy.udel.edu>
 
+       * ntpd/ntp_refclock.c (refclock_ioctl): Declaration cleanup.
+
+       * ntpd/ntp_proto.c (init_proto): msyslog kern_enable at LOG_DEBUG.
+
        * ntpd/refclock_atom.c: Add missing declaration.
 
 1999-09-11  Harlan Stenn  <stenn@whimsy.udel.edu>
index 6fec8e30c85a4b6d8ad04343efd910dce1593ba7..ff006fe82d2099161a2481fac357d7ec8bfecc1f 100644 (file)
@@ -2025,6 +2025,7 @@ init_proto(void)
 #ifndef KERNEL_FLL_BUG
        kern_enable = 1;
 #endif
+       msyslog(LOG_DEBUG, "kern_enable is %d", kern_enable);
        stats_control = 1;
 #if defined SCO5_CLOCK
        if ((int) sys_precision < -10) {
index 5cd58b0d6aa0a00088fbe6295fe54ddd17928f5d..bfdfdce3a4eb6df8cd2b4ac2f81a14d142327c76 100644 (file)
 
 #ifdef REFCLOCK
 
+#ifdef HAVE_PPSAPI
+#undef STREAM
+#undef TTYCLK
+#endif
+
 #ifdef TTYCLK
 #include <sys/clkdefs.h>
 #endif /* TTYCLK */
@@ -1034,7 +1039,9 @@ refclock_ioctl(
         * support.
         */
        if (flags & LDISC_PPS) {
+#ifdef HAVE_TIOCSPPS           /* Solaris */
                int one = 1;
+#endif
 
                if (fdpps > 0) {
                        msyslog(LOG_ERR,
@@ -1093,7 +1100,7 @@ refclock_ioctl(
         * requires ppsclock compiled into the kernel on non STREAMS
         * systems.
         */
-       if (flags & LDISC_PPS) {
+       if (flags & (LDISC_PPS | LDISC_CLKPPS)) {
                pps_params_t    pp;
                int mode;