summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-03-14 22:47:02 +0000
committerimp <imp@FreeBSD.org>2004-03-14 22:47:02 +0000
commite31a388840ad5635d8a38ac477289d1efae2f79c (patch)
treeaef4f738ef46a991988085e70a609dd2775b1e86 /usr.sbin
parentc93d58c4c3f756fa54f0cd9f1247c6dd0e1b786f (diff)
downloadFreeBSD-src-e31a388840ad5635d8a38ac477289d1efae2f79c.zip
FreeBSD-src-e31a388840ad5635d8a38ac477289d1efae2f79c.tar.gz
The gsc driver has been retired, so retire its control program.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/Makefile2
-rw-r--r--usr.sbin/sgsc/Makefile5
-rw-r--r--usr.sbin/sgsc/sgsc.1104
-rw-r--r--usr.sbin/sgsc/sgsc.c163
4 files changed, 0 insertions, 274 deletions
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index c325a5a24..b48a73b 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -145,7 +145,6 @@ SUBDIR= ac \
setfmac \
setkey \
setpmac \
- ${_sgsc} \
${_sicontrol} \
sliplogin \
slstat \
@@ -269,7 +268,6 @@ _pnpinfo= pnpinfo
.if !defined(NOLIBPTHREAD)
_pppctl= pppctl
.endif
-_sgsc= sgsc
_sicontrol= sicontrol
_spkrtest= spkrtest
_wlconfig= wlconfig
diff --git a/usr.sbin/sgsc/Makefile b/usr.sbin/sgsc/Makefile
deleted file mode 100644
index 5f14a66..0000000
--- a/usr.sbin/sgsc/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-# $FreeBSD$
-
-PROG= sgsc
-
-.include <bsd.prog.mk>
diff --git a/usr.sbin/sgsc/sgsc.1 b/usr.sbin/sgsc/sgsc.1
deleted file mode 100644
index 0b02f92..0000000
--- a/usr.sbin/sgsc/sgsc.1
+++ /dev/null
@@ -1,104 +0,0 @@
-.\" sgsc(1) - manual page for the `gsc' scanner device driver utility
-.\"
-.\"
-.\" Copyright (c) 1995 Gunther Schadow. All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by Gunther Schadow.
-.\" 4. The name of the author may not be used to endorse or promote products
-.\" derived from this software without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-.\"
-.\" $FreeBSD$
-.\"
-.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.Dd January 6, 1995
-.Dt SGSC 1
-.Os
-.Sh NAME
-.Nm sgsc
-.Nd set the options of the gsc scanner device
-.Sh SYNOPSIS
-.Nm
-.Op Fl sq
-.Op Fl b Ar len
-.Op Fl f Ar file
-.Op Fl h Ar height
-.Op Fl r Ar resolution
-.Op Fl t Ar timeout
-.Op Fl w Ar width
-.Sh DESCRIPTION
-The
-.Nm
-utility provides shell level access to the ioctl
-requests served by the handy scanner device driver gsc.
-Please see
-.Xr gsc 4
-for the exact meaning of the requests. Generally they modify
-the output and behaviour of the gsc scanner device.
-When
-.Nm
-is called with no option only the current settings are reported.
-.Pp
-The following options are available:
-.Bl -tag -width indent
-.It Fl s Bq Dv GSC_SRESSW
-Set the scanner with the values of the resolution selector switch.
-.It Fl q
-Operate in quiet mode, i.e. do not report any of the current settings.
-Normally the parameters are shown after the modifications have been
-performed.
-.It Fl f Ar file
-Operate on a different scanner device node given by filename.
-Note
-that even though there may exist more than one node of scanner device
-several of them will refer the same device unit.
-The modifications are
-performed od the unit regardless of the device node by which it is
-accessed.
-.It Fl r Ar resolution Bq Dv GSC_SRES
-Set the resolution in dpi.
-.It Fl w Ar width Bq Dv GSC_SWIDHT
-Set the width of the bitmap in pixels.
-.It Fl h Ar height Bq Dv GSC_SHEIGHT
-Set the height of the bitmap in lines of pixels.
-.It Fl b Ar len Bq Dv GSC_SBLEN
-Set the internal dma buffer to be
-.Ar len
-lines in size.
-.It Fl t Ar timeout Bq Dv GSC_SBTIME
-Set the timeout time for reading one dma buffer.
-.El
-.Sh FILES
-.Bl -tag -width /dev/gsc0p -compact
-.It Pa /dev/gsc0
-device node for
-.Em raw
-output
-.It Pa /dev/gsc0p
-device node for output in
-.Em pbm
-file format
-.El
-.Sh SEE ALSO
-.Xr gsc 4
-.Sh AUTHORS
-.An Gunther Schadow Aq gusw@fub46.zedat.fu-berlin.de
diff --git a/usr.sbin/sgsc/sgsc.c b/usr.sbin/sgsc/sgsc.c
deleted file mode 100644
index 94960a3..0000000
--- a/usr.sbin/sgsc/sgsc.c
+++ /dev/null
@@ -1,163 +0,0 @@
-/* sgsc(1) - utility for the `gsc' scanner device driver
- *
- *
- * Copyright (c) 1995 Gunther Schadow. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Gunther Schadow.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
-
-#include <err.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-#include <machine/gsc.h>
-
-#ifndef DEFAULT_FILE
-#define DEFAULT_FILE "/dev/gsc0"
-#endif
-#ifdef FAIL
-#undef FAIL
-#endif
-#define FAIL -1
-
-static void
-usage()
-{
- fprintf(stderr, "%s\n%s\n",
- "usage: sgsc [-sq] [-f file] [-r dpi] [-w width] [-h height]",
- " [-b len] [-t time]");
- exit(1);
-}
-
-int
-main(int argc, char **argv)
-{
- char c;
- int fd;
-
- char *file = DEFAULT_FILE;
-
- int show_dpi = 0;
- int show_width = 0;
- int show_height = 0;
- int show_blen = 0;
- int show_btime = 0;
- int show_all = 1;
-
- int set_blen = 0;
- int set_dpi = 0;
- int set_width = 0;
- int set_height = 0;
- int set_btime = 0;
- int set_switch = 0;
-
- if (argc == 0) usage();
-
- while( (c = getopt(argc, argv, "sqf:b:r:w:h:t:")) != FAIL)
- {
- switch(c) {
- case 'f': file = optarg; break;
- case 'r': set_dpi = atoi(optarg); break;
- case 'w': set_width = atoi(optarg); break;
- case 'h': set_height = atoi(optarg); break;
- case 'b': set_blen = atoi(optarg); break;
- case 't': set_btime = atoi(optarg); break;
- case 's': set_switch = 1; break;
- case 'q': show_all = 0; break;
- default: usage();
- }
- }
-
- fd = open(file, O_RDONLY);
- if ( fd == FAIL )
- err(1, "%s", file);
-
- if (set_switch != 0)
- {
- if(ioctl(fd, GSC_SRESSW) == FAIL)
- err(1, "GSC_SRESSW");
- }
-
- if (set_dpi != 0)
- {
- if(ioctl(fd, GSC_SRES, &set_dpi) == FAIL)
- err(1, "GSC_SRES");
- }
-
- if (set_width != 0)
- {
- if(ioctl(fd, GSC_SWIDTH, &set_width) == FAIL)
- err(1, "GSC_SWIDTH");
- }
-
- if (set_height != 0)
- {
- if(ioctl(fd, GSC_SHEIGHT, &set_height) == FAIL)
- err(1, "GSC_SHEIGHT");
- }
-
- if (set_blen != 0)
- {
- if(ioctl(fd, GSC_SBLEN, &set_blen) == FAIL)
- err(1, "GSC_SBLEN");
- }
-
- if (set_btime != 0)
- {
- if(ioctl(fd, GSC_SBTIME, &set_btime) == FAIL)
- err(1, "GSC_SBTIME");
- }
-
- if (show_all != 0)
- {
- if(ioctl(fd, GSC_GRES, &show_dpi) == FAIL)
- err(1, "GSC_GRES");
- if(ioctl(fd, GSC_GWIDTH, &show_width) == FAIL)
- err(1, "GSC_GWIDTH");
- if(ioctl(fd, GSC_GHEIGHT, &show_height) == FAIL)
- err(1, "GSC_GHEIGHT");
- if(ioctl(fd, GSC_GBLEN, &show_blen) == FAIL)
- err(1, "GSC_GBLEN");
- if(ioctl(fd, GSC_GBTIME, &show_btime) == FAIL)
- err(1, "GSC_GBTIME");
-
- printf("%s:\n", file);
- printf("resolution\t %d dpi\n", show_dpi);
- printf("width\t\t %d\n", show_width);
- printf("height\t\t %d\n",show_height);
- printf("buffer length\t %d\n", show_blen);
- printf("buffer timeout\t %d\n", show_btime);
- }
-
- return 0;
-}
OpenPOWER on IntegriCloud