From 6dbe3af945a63f025561abb83275cee9ff06c57b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:32 +0100 Subject: Imported from util-linux-2.2 tarball. --- sys-utils/tunelp.c | 248 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 248 insertions(+) create mode 100644 sys-utils/tunelp.c (limited to 'sys-utils/tunelp.c') diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c new file mode 100644 index 000000000..9005b172d --- /dev/null +++ b/sys-utils/tunelp.c @@ -0,0 +1,248 @@ +/****************************************************************************\ +* Copyright (C) 1992 by Michael K. Johnson, johnsonm@nigel.vnet.net * +* * +* This file is placed under the conditions of the GNU public * +* license, version 2, or any later version. See file COPYING * +* for information on distribution conditions. * +\****************************************************************************/ + +/* tunelp.c,v 1.1.1.1 1995/02/22 19:09:12 faith Exp + * tunelp.c,v + * Revision 1.1.1.1 1995/02/22 19:09:12 faith + * Imported sources + * + * 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 +#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