Re: [PARPORT] ECP mode

From: shun (new.moon@jcom.home.ne.jp)
Date: Mon Oct 01 2001 - 10:30:23 EDT

  • Next message: Tim Waugh: "Re: [PARPORT] ECP mode"

    Thank you very much.
    Your help was really needed.
    Instantly, I run following program, however an error occured.

    fd = open ("/dev/parport0", O_RDWR);
    if (fd == -1)
      {
        return -1;
      }

    /* claim access to port */
    if (claim = ioctl (fd, PPCLAIM))
      {
        close (fd);
        return -1;
      }

    It became an error here.
    PPCLAIM return -1.
    PC is connected with a printer.
    kernel is 2.4.3.
    Why does not PPCLAIM return good?

    shun

    -- 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 : Mon Oct 01 2001 - 10:33:01 EDT