summaryrefslogtreecommitdiff
path: root/usr.sbin/lptcontrol
diff options
context:
space:
mode:
authorNicolas Souchu <nsouch@FreeBSD.org>1999-01-10 12:04:56 +0000
committerNicolas Souchu <nsouch@FreeBSD.org>1999-01-10 12:04:56 +0000
commitbc35c17446fab005a7e11b67b9004736f1c8498b (patch)
treeaadd909c09b2bf3995afe117f0ac1c21cf5b4163 /usr.sbin/lptcontrol
parentb7fe2b6dabbaaff554a8aab15e10f521d34894c4 (diff)
Notes
Diffstat (limited to 'usr.sbin/lptcontrol')
-rw-r--r--usr.sbin/lptcontrol/lptcontrol.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/lptcontrol/lptcontrol.c b/usr.sbin/lptcontrol/lptcontrol.c
index 73ea05cf459f..afd234ee5ba6 100644
--- a/usr.sbin/lptcontrol/lptcontrol.c
+++ b/usr.sbin/lptcontrol/lptcontrol.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id$";
+ "$Id: lptcontrol.c,v 1.6 1997/09/25 06:36:29 charnier Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -53,10 +53,12 @@ static const char rcsid[] =
#define IRQ_INVALID -1
#define DO_POLL 0
#define USE_IRQ 1
+#define USE_EXT_MODE 2
+#define USE_STD_MODE 3
static void usage()
{
- fprintf(stderr, "usage: lptcontrol -i | -p [-u <unit no.>]\n");
+ fprintf(stderr, "usage: lptcontrol -i | -p | -s | -e [-u <unit no.>]\n");
exit(1);
}
@@ -89,10 +91,12 @@ int main (int argc, char * argv[])
int irq_status = IRQ_INVALID;
char * unit = DEFAULT_UNIT;
- while((opt = getopt(argc, argv, "ipu:")) != -1)
+ while((opt = getopt(argc, argv, "ipesu:")) != -1)
switch(opt) {
case 'i': irq_status = USE_IRQ; break;
case 'p': irq_status = DO_POLL; break;
+ case 'e': irq_status = USE_EXT_MODE; break;
+ case 's': irq_status = USE_STD_MODE; break;
case 'u': unit = optarg;
if(!isdigit(*unit))
usage();