Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel!munnari.oz.au!mips!mips!think.com!yale.edu!ira.uka.de!math.fu-berlin.de!hrz.tu-chemnitz.de!wutcd From: wutcd@hrz.tu-chemnitz.de (Joerg Wunsch) Subject: lp driver, patch 1.1 Message-ID: <wutcd.710795694@hrz.tu-chemnitz.de> Summary: Patch for release 1.1 of lp driver Keywords: lp driver Sender: bin@hrz.tu-chemnitz.de (Owner of all binaries) Organization: tu-chemnitz Date: Fri, 10 Jul 1992 19:14:54 GMT Lines: 114 Hi netfolks, here's my version 1.1 of line printer driver i posted here some weeks ago. I was foolish enough to keep out the length and i/o direction info from the ioctl command bytes. With this version, all the ioctl's are okay. enjoy, J"org *** /tmp/T0000528 Mon Jul 6 08:49:39 1992 --- lp.c Sat Jul 4 23:17:32 1992 *************** *** 12,19 **** * */ ! #ident "$Header: /usr/joerg/lp.drv/RCS/lp.c,v 1.1 1992/06/07 21:45:38 j Exp $" /* * lp (parallel) output driver */ --- 12,31 ---- * */ ! /* ! * revision history: ! * ! * 1992/07/04 Joerg Wunsch v 1.2 ! * What a fool, totally discarded the byte count and IO direction bits ! * whithin ioctl commands. Have seen to much AT.. code before. Now, the ! * ioctls are okay. ! * ! * 1992/06/07 Joerg Wunsch v 1.1 ! * basic release, printing okay but still smaller bugs suspected ! */ + #ident "$Header: /usr/joerg/lp.drv/RCS/lp.c,v 1.2 1992/07/04 21:16:52 j Exp $" + /* * lp (parallel) output driver */ *************** *** 344,347 **** } #endif /* NLP > 1 */ - --- 356,358 ---- *** /tmp/T0000528 Mon Jul 6 08:49:41 1992 --- lpreg.h Sat Jul 4 23:17:36 1992 *************** *** 11,19 **** * */ /* ! * $Header: /usr/joerg/lp.drv/RCS/lpreg.h,v 1.1 1992/06/07 21:45:38 j Exp $ * * definitions for (parallel) line printer driver */ --- 11,30 ---- * */ + /* + * revision history: + * + * 1992/07/04 Joerg Wunsch v 1.2 + * What a fool, totally discarded the byte count and IO direction bits + * whithin ioctl commands. Have seen to much AT.. code before. Now, the + * ioctls are okay. + * + * 1992/06/07 Joerg Wunsch v 1.1 + * basic release, printing okay but still smaller bugs suspected + */ /* ! * $Header: /usr/joerg/lp.drv/RCS/lpreg.h,v 1.2 1992/07/04 21:16:52 j Exp $ * * definitions for (parallel) line printer driver */ *************** *** 35,46 **** /* * ioctl's for lp */ ! ! #define LP_IOCTL ('L' << 8) ! ! #define LPI_RESET (LP_IOCTL + 1) /* hdwr reset printer */ ! #define LPI_STATUS (LP_IOCTL + 2) /* fetch status port */ /* --- 46,55 ---- /* * ioctl's for lp */ ! #include <sys/ioctl.h> /* some useful macros being there */ + #define LPI_RESET _IO('L', 1) /* hdwr reset printer */ + #define LPI_STATUS _IOR('L', 2, int) /* fetch status port */ /* -- J"org Wunsch joerg_wunsch%bonnie@hadrian.hrz.tu-chemnitz.de Textil Computer Design GmbH R"ahnitzgasse 18, D-O-8060 Dresden If anything can go wrong, it will. (Murphy's Law)