+1999-10-09 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * ntpd/refclock_oncore.c:
+ * ntpd/refclock_atom.c:
+ * ntpd/ntp_refclock.c:
+ PPS API code updated to the current spec
+ From: Dave Mills
+
+ * configure.in (ac_cv_make_tickadj): Don't make tickadj starting
+ with solaris2.5
+ Requested by: Dave Mills
+
1999-10-04 Harlan Stenn <stenn@whimsy.udel.edu>
* configure.in: We might need -lsocket for the -lnsl check.
;;
esac
-# tickadj is pretty useless on newer versions of ReliantUNIX
-# Do not bother
case "$target" in
mips-sni-sysv4*)
+ # tickadj is pretty useless on newer versions of ReliantUNIX
+ # Do not bother
ac_cv_make_tickadj=no
;;
+ *-*-solaris2*)
+ # DLM says tickadj is a no-no starting with solaris2.5
+ case "$target" in
+ *-*-solaris2.0-4*) ;;
+ *) ac_cv_make_tickadj=no ;;
+ esac
+ ;;
esac
echo $ac_n "checking if we want and can make the tickadj utility""... $ac_c" 1>&6
-echo "configure:9534: checking if we want and can make the tickadj utility" >&5
+echo "configure:9541: checking if we want and can make the tickadj utility" >&5
if eval "test \"\${ac_cv_make_tickadj+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking if we want and can make the ntptime utility""... $ac_c" 1>&6
-echo "configure:9550: checking if we want and can make the ntptime utility" >&5
+echo "configure:9557: checking if we want and can make the ntptime utility" >&5
if eval "test \"\${ac_cv_make_ntptime+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we want UDP wildcard delivery""... $ac_c" 1>&6
-echo "configure:9579: checking if we want UDP wildcard delivery" >&5
+echo "configure:9586: checking if we want UDP wildcard delivery" >&5
if eval "test \"\${ac_cv_var_udp_wildcard_delivery+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should always slew the time""... $ac_c" 1>&6
-echo "configure:9658: checking if we should always slew the time" >&5
+echo "configure:9665: checking if we should always slew the time" >&5
if eval "test \"\${ac_cv_var_slew_always+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should step and slew the time""... $ac_c" 1>&6
-echo "configure:9698: checking if we should step and slew the time" >&5
+echo "configure:9705: checking if we should step and slew the time" >&5
if eval "test \"\${ac_cv_var_step_slew+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if ntpdate should step the time""... $ac_c" 1>&6
-echo "configure:9741: checking if ntpdate should step the time" >&5
+echo "configure:9748: checking if ntpdate should step the time" >&5
if eval "test \"\${ac_cv_var_ntpdate_step+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should sync TODR clock every hour""... $ac_c" 1>&6
-echo "configure:9772: checking if we should sync TODR clock every hour" >&5
+echo "configure:9779: checking if we should sync TODR clock every hour" >&5
if eval "test \"\${ac_cv_var_sync_todr+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should avoid kernel FLL bug""... $ac_c" 1>&6
-echo "configure:9805: checking if we should avoid kernel FLL bug" >&5
+echo "configure:9812: checking if we should avoid kernel FLL bug" >&5
if eval "test \"\${ac_cv_var_kernel_fll_bug+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
;;
esac
-# tickadj is pretty useless on newer versions of ReliantUNIX
-# Do not bother
case "$target" in
mips-sni-sysv4*)
+ # tickadj is pretty useless on newer versions of ReliantUNIX
+ # Do not bother
ac_cv_make_tickadj=no
;;
+ *-*-solaris2*)
+ # DLM says tickadj is a no-no starting with solaris2.5
+ case "$target" in
+ *-*-solaris2.[0-4]*) ;;
+ *) ac_cv_make_tickadj=no ;;
+ esac
+ ;;
esac
AC_SUBST(MAKE_TICKADJ)
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
+AMTAR = @AMTAR@
+AMTARFLAGS = @AMTARFLAGS@
AWK = @AWK@
CC = @CC@
CFLAGS = @CFLAGS@
trtmp = rbufp->recv_time;
#ifdef HAVE_PPSAPI
- if ((rbufp->fd == fdpps) && (time_pps_fetch(fdpps, &pi) >= 0)) {
+ if (rbufp->fd == fdpps && time_pps_fetch(fdpps, 0, &pi, 0) >= 0) {
if(pps_assert)
tsp = &pi.assert_timestamp;
else
fdpps = 0;
return (0);
}
- pp.mode = PPS_TSFMT_TSPEC;
if (pps_assert)
- pp.mode |= PPS_CAPTUREASSERT;
+ pp.mode = PPS_CAPTUREASSERT;
else
- pp.mode |= PPS_CAPTURECLEAR;
+ pp.mode = PPS_CAPTURECLEAR;
+ if (time_pps_setparams(fdpps, &pp) < 0) {
+ msyslog(LOG_ERR,
+ "refclock_ioctl: time_pps_setparams failed");
+ fdpps = 0;
+ return (0);
+ }
if (pps_hardpps) {
if (pps_assert)
- pp.mode |= PPS_HARDPPSONASSERT;
+ mode |= PPS_CAPTUREASSERT;
else
- pp.mode |= PPS_HARDPPSONCLEAR;
+ mode |= PPS_CAPTURECLEAR;
}
- if (time_pps_setparams(fdpps, &pp) < 0) {
+ if (time_pps_kcbind(fdpps, 0, mode, 0) < 0) {
msyslog(LOG_ERR,
- "refclock_ioctl: time_pps_setparams failed");
+ "refclock_ioctl: time_pps_kpcbind failed");
fdpps = 0;
return (0);
}
i = up->pps_info.assert_sequence;
if (fdpps <= 0)
return (1);
- if (time_pps_fetch(fdpps, &up->pps_info) < 0)
+ if (time_pps_fetch(fdpps, 0, &up->pps_info, 0) < 0)
return (1);
if (i == up->pps_info.assert_sequence)
return (2);
}
if (instance->assert) {
- instance->pps_p.mode = PPS_CAPTUREASSERT | PPS_OFFSETASSERT | PPS_HARDPPSONASSERT;
+ instance->pps_p.mode = PPS_CAPTUREASSERT | PPS_OFFSETASSERT;
instance->pps_p.assert_offset.tv_sec = 0;
instance->pps_p.assert_offset.tv_nsec = 0;
} else {
- instance->pps_p.mode = PPS_CAPTURECLEAR | PPS_OFFSETCLEAR | PPS_HARDPPSONCLEAR;
+ instance->pps_p.mode = PPS_CAPTURECLEAR | PPS_OFFSETCLEAR;
instance->pps_p.clear_offset.tv_sec = 0;
instance->pps_p.clear_offset.tv_nsec = 0;
}
+/*
if (time_pps_setparams(instance->pps_h, &instance->pps_p) < 0)
instance->pps_p.mode &= ~(PPS_HARDPPSONCLEAR|PPS_HARDPPSONASSERT);
+*/
if (time_pps_setparams(instance->pps_h, &instance->pps_p) < 0) {
perror("time_pps_setparams");
exit(1);
#ifdef HAVE_PPSAPI
j = instance->ev_serial;
- if (time_pps_fetch(instance->pps_h, &pps_i) < 0) {
+ if (time_pps_fetch(instance->pps_h, 0, &pps_i, 0) < 0) {
printf("ONCORE: time_pps_fetch failed\n");
return;
}
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
+AMTAR = @AMTAR@
+AMTARFLAGS = @AMTARFLAGS@
AWK = @AWK@
CC = @CC@
CFLAGS = @CFLAGS@