/****************************************************************************\ * Copyright (C) 1992-1997 Michael K. Johnson, johnsonm@redhat.com * * * * This file is licensed under the terms of the GNU General * * Public License, version 2, or any later version. See file COPYING * * for information on distribution conditions. * \****************************************************************************/ /* $Id: tunelp.c,v 1.9 1998/06/08 19:37:11 janl Exp $ * $Log: tunelp.c,v $ * Revision 1.9 1998/06/08 19:37:11 janl * Thus compiles tunelp with 2.1.103 kernels * * Revision 1.8 1997/07/06 00:14:06 aebr * Fixes to silence -Wall. * * Revision 1.7 1997/06/20 16:10:38 janl * tunelp refreshed from authors archive. * * Revision 1.9 1997/06/20 12:56:43 johnsonm * Finished fixing license terms. * * Revision 1.8 1997/06/20 12:34:59 johnsonm * Fixed copyright and license. * * Revision 1.7 1995/03/29 11:16:23 johnsonm * TYPO fixed... * * Revision 1.6 1995/03/29 11:12:15 johnsonm * Added third argument to ioctl needed with new kernels * * Revision 1.5 1995/01/13 10:33:43 johnsonm * Chris's changes for new ioctl numbers and backwards compatibility * and the reset ioctl. * * Revision 1.4 1995/01/03 17:42:14 johnsonm * -s isn't supposed to take an argument; removed : after s in getopt... * * Revision 1.3 1995/01/03 07:36:49 johnsonm * Fixed typo * * Revision 1.2 1995/01/03 07:33:44 johnsonm * revisions for lp driver updates in Linux 1.1.76 * * */ #include #include #include /* This is for (some) 2.1 kernels */ #define LP_NEED_CAREFUL #include #include #include #include #include #include #include #include struct command { long op; long val; struct command *next; }; void print_usage(char *progname) { printf("Usage: %s [ -i | -t