In my programs that involve reading data from my own hardware connected to the serial port, I used the read() function.
I tried the unix command cat to read data from my hardware and the data is always correct.
when I look at the source code for the cat command (see
http://git.savannah.gnu.org/cgit/cor...lain/src/cat.c), I noticed it uses safe_read() instead of just read().
Is there some package I can install on kernel 2.4 that contains this functionality? so my code can then execute safe_read()?
because when I looked at safe_read.h (through more searching), It states that if an interrupt occurred during a read, safe_read() function will try again with reading. and I don't think a normal read() does this.
Any idea where I can get this package?
Currently I have a full-blown slackware 13 install on my machine and I do not see safe_read() anywhere in the man pages.