[comp.os.minix] reading clock

sullivan@marge.math.binghamton.edu (fred sullivan) (08/27/87)

I just wrote a program to get the time and date from my permanent clock and
write it to standard output in the form needed by date -q.  I glommed
port_in from klib88.asm and called it to read the clock ports.
1. Does anyone want this?
2. Is there a more elegant way to do such things, without writing a device
driver for every card?  How about a driver similar to /dev/mem, which reads
and writes i/o ports rather than ordinary memory?  Has anyone done anything
like this?

Fred Sullivan
Department of Mathematical Sciences
State University of New York at Binghamton
Binghamton, New York  13903
Email: sullivan@marge.math.binghamton.edu