[PARPORT] ioctl: errno=5.

From: Luis LLN (letona79@yahoo.es)
Date: Tue Aug 19 2003 - 03:12:13 EDT

  • Next message: Tim Waugh: "Re: [PARPORT] ioctl: errno=5."

    I´ve 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 /
    Output error) and the third ioctl doesn't do anything
    and the program gets blocked. Any idea?

    ___________________________________________________
    Yahoo! Messenger - Nueva versión GRATIS
    Super Webcam, voz, caritas animadas, y más...
    http://messenger.yahoo.es

    -- 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 - 03:19:01 EDT