Re: [PARPORT] ioctl: errno=5.

From: Tim Waugh (twaugh@redhat.com)
Date: Tue Aug 19 2003 - 04:55:06 EDT

  • Next message: Luis LLN: "Re: [PARPORT] ioctl: errno=5."

    On Tue, Aug 19, 2003 at 09:12:13AM +0200, Luis LLN wrote:

    > Ive installed a kernel 2.4.x. Now, I try to open and
    > read the parallel port but it fails.
    >
    > fd=open("/dev/parport0", O_RDONLY|O_NOCTTY);
    > mode=IEEE1284_MODE_ECP;
    >
    > ioctl(fd,PPCLAIM);
    >
    > ioctl(fd,PPNEGOT,&mode);
    >
    > ioctl(fd,PPSETMODE,&mode);
    >
    > The second ioctl (PPNEGOT) returns errno=5 (Input /

    Well, does your device actually support the IEEE 1284 negotation
    phase?

    Tim.
    */



    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Tue Aug 19 2003 - 05:00:42 EDT