Someone please help! I'm looking for an efficient way to write a program
that reads an IO port once every five or so seconds and updates a few files
before sleeping for the alloted time period and then repeat the process.
What I need help is with reading the /dev/port device--need something to
do the same job as Borland C's inp() command. I've tried opening /dev/port
with fopen and then using getc with a loop to get all 1024 port values, but
this causes some unexpected trouble with the network cards. I'm new to
programming C for unix devices so any help will really be appreciated.
Thanks!
-jason.