[comp.protocols.time.ntp] STREAM modification to tty_chu.c

mrapple@quack.sac.ca.us (Nick Sayer) (04/27/91)

Ok, I've figured one thing out, at least, about making CHU work under
SunOS. I've figured out the way tty_chu.c needs to be patched to
(eventually) run with a STREAM version of the CHU line discipline.

Basically the ioctl that placed the CHULDISC on the file needs
to be replaced with an ioctl( ... , I_PUSH, "chu" );. In addition,
you need to include <stropts.h>. Once this is done, you can build
an xntpd that works just fine, except of course that peering to
127.127.7.* fails until the CHU STREAM is in the kernel.

The same thing could be done to the rest of the refclock_*.c
files for the CLKDISC discipline.

The easy part is done...

-- 
Nick Sayer              | Think of me as a recombinant    | RIP: Mel Blanc
mrapple@quack.sac.ca.us | Simpson: Homer's looks, Lisa's  |   1908-1989
N6QQQ  [44.2.1.17]      | brains, Bart's manners, and     |  May he never
209-952-5347 (Telebit)  | Maggie's appetite for TV.  --Me |  be silenced.

mrapple@quack.sac.ca.us (Nick Sayer) (04/27/91)

Whoops. In all that "tty_chu.c" should be replaced with
"refclock_chu.c".