+* [Bug 1872] Remove legacy ppsclock fdpps, #ifdef PPS.
* [Bug 2075] Fix spelling of 'incompatible'.
* Clean up an exit status in ntpq.c.
(4.2.7p291) 2012/07/31 Released by Harlan Stenn <stenn@ntp.org>
#define FUDGEFAC .1 /* fudge correction factor */
#define LF 0x0a /* ASCII LF */
-#ifdef PPS /* fdpps still ref'd by refclock_zyfer.c */
-int fdpps; /* ppsclock legacy */
-#endif /* PPS */
int cal_enable; /* enable refclock calibrate */
/*
{
int i;
TTY ttyb, *ttyp;
-#ifdef PPS /* fdpps referenced by refclock_zyfer.c */
- fdpps = fd; /* ppsclock legacy */
-#endif /* PPS */
+
/*
* By default, the serial line port is initialized in canonical
* (line-oriented) mode at specified line speed, 8 bits and no
int tfom; /* Time Figure Of Merit */
int omode; /* Operation mode */
u_char *p;
-#ifdef PPS
- struct ppsclockev ppsev;
- int request;
-#ifdef HAVE_CIOGETEV
- request = CIOGETEV;
-#endif
-#ifdef HAVE_TIOCGPPSEV
- request = TIOCGPPSEV;
-#endif
-#endif /* PPS */
peer = rbufp->recv_peer;
pp = peer->procptr;
pp->leap = LEAP_NOTINSYNC;
return;
}
-#ifdef PPS
- if(ioctl(fdpps,request,(caddr_t) &ppsev) >=0) {
- ppsev.tv.tv_sec += (u_int32) JAN_1970;
- TVTOTS(&ppsev.tv,&up->tstamp);
- }
- /* record the last ppsclock event time stamp */
- pp->lastrec = up->tstamp;
-#endif /* PPS */
+
if (!refclock_process(pp)) {
refclock_report(peer, CEVNT_BADTIME);
return;