I am trying to use ppdev to ensure that my printer and my scanner share
correctly the parallel port. From the tests I done, it seems that ppdev lets you
claim the port even if it is used by lp.
For instance, the following program may be ran successfully when a printing
is in progress, while I expected it to fail with 'tp: cannot claim port':
int main (int argc, char *argv)
int compat = IEEE1284_MODE_COMPAT;
fd = open (argv, O_RDONLY | O_NOCTTY);
if (fd == -1)
if (ioctl (fd, PPCLAIM))
fprintf (stderr, "tp: cannot claim port\n");
ioctl (fd, PPRELEASE);
I certainly misunderstood something, but what ?
-- To unsubscribe, send mail to: email@example.com --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Thu Mar 01 2001 - 10:00:13 EST