Tim Waugh <email@example.com> wrote:
On Wed, Oct 22, 2003 at 02:19:26AM -0700, Cherry Cortes wrote:
> We're having problem making the read() to /dev/parport0 work. The
> function always returns -1. We have tried recompiling the kernel
> (we're using 2.4.18-14) with CONFIG_PARPORT enabled but it does not
> seem to work. We also set the mode to ECP and direction to
> reverse. Could you help us with this?
You'll need to check errno to see what the actual error is. read()
from that device can return several errors, including:
If you're getting EINVAL, make sure you have actually claimed the port
errno was EAGAIN and call to PPCLAIM was successful.
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
-- To unsubscribe, send mail to: firstname.lastname@example.org --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Wed Oct 22 2003 - 06:26:10 EDT