Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!sunybcs!bingvaxu!marge.math.binghamton.edu!sullivan From: sullivan@marge.math.binghamton.edu (fred sullivan) Newsgroups: comp.os.minix Subject: reading clock Message-ID: <674@bingvaxu.cc.binghamton.edu> Date: Wed, 26-Aug-87 22:36:33 EDT Article-I.D.: bingvaxu.674 Posted: Wed Aug 26 22:36:33 1987 Date-Received: Sat, 29-Aug-87 04:02:16 EDT Sender: news@bingvaxu.cc.binghamton.edu Reply-To: sullivan@marge.math.binghamton.edu (fred sullivan) Organization: Department of Mathematical Sciences, SUNY-Binghamton Lines: 14 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