Re: [PARPORT] trustirq patch for 2.1.127

Andrea Arcangeli (andrea@e-mind.com)
Thu, 12 Nov 1998 01:45:22 +0100 (CET)


On Wed, 11 Nov 1998, Andrea Arcangeli wrote:

>Here the new patch against 2.1.127, it adds also some docs, remove the

Oops, a little incremental patch that fix the little proggy (that should
be removed from lp.c as soon as tunelp will handle the -T option):

This doc-proggy was not very important though...

Index: linux/drivers/char/lp.c
diff -u linux/drivers/char/lp.c:1.1.1.1.12.19 linux/drivers/char/lp.c:1.1.1.1.12.20
--- linux/drivers/char/lp.c:1.1.1.1.12.19 Wed Nov 11 17:00:52 1998
+++ linux/drivers/char/lp.c Thu Nov 12 01:42:00 1998
@@ -91,11 +91,14 @@
* C lazy proggy to set the flag in the lp driver:

-------------------------- cut here -------------------------------------
+#include <fcntl.h>
+#include <sys/ioctl.h>
+
#define LPTRUSTIRQ 0x060f

int main(int argc, char **argv)
{
- int fd = open("/dev/lp0");
+ int fd = open("/dev/lp0", O_RDONLY);
ioctl(fd, LPTRUSTIRQ, argc - 1);
if (argc - 1)
printf("trusting the irq\n");

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/