BSD 4_4 release
[unix-history] / usr / src / usr.sbin / lpr / SMM.doc / 5.t
index de45d23..137a342 100644 (file)
@@ -1,13 +1,40 @@
-.\" Copyright (c) 1983 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1983, 1993
+.\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\"
-.\"    @(#)5.t 6.1 (Berkeley) %G%
+.\" 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 the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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.
+.\"
+.\"    @(#)5.t 8.1 (Berkeley) 6/8/93
 .\"
 .NH 1
 Output filter specifications
 .PP
 .\"
 .NH 1
 Output filter specifications
 .PP
-The filters supplied with 4.2BSD
+The filters supplied with 4.3BSD
 handle printing and accounting for most common
 line printers, the Benson-Varian, the wide (36") and
 narrow (11") Versatec printer/plotters. For other devices or accounting
 handle printing and accounting for most common
 line printers, the Benson-Varian, the wide (36") and
 narrow (11") Versatec printer/plotters. For other devices or accounting
@@ -17,15 +44,16 @@ Filters are spawned by \fIlpd\fP
 with their standard input the data to be printed, and standard output
 the printer.  The standard error is attached to the
 .B lf
 with their standard input the data to be printed, and standard output
 the printer.  The standard error is attached to the
 .B lf
-file for logging errors.  A filter must return a 0 exit
+file for logging errors or \fIsyslogd\fP may be used for logging errors.
+A filter must return a 0 exit
 code if there were no errors, 1 if the job should be reprinted,
 and 2 if the job should be thrown away.
 When \fIlprm\fP
 sends a kill signal to the \fIlpd\fP process controlling
 printing, it sends a SIGINT signal 
 to all filters and descendents of filters.
 code if there were no errors, 1 if the job should be reprinted,
 and 2 if the job should be thrown away.
 When \fIlprm\fP
 sends a kill signal to the \fIlpd\fP process controlling
 printing, it sends a SIGINT signal 
 to all filters and descendents of filters.
-This signal can be trapped by filters which need
-to perform cleanup operations such as
+This signal can be trapped by filters that need
+to do cleanup operations such as
 deleting temporary files.
 .PP
 Arguments passed to a filter depend on its type.
 deleting temporary files.
 .PP
 Arguments passed to a filter depend on its type.
@@ -33,7 +61,7 @@ The
 .B of
 filter is called with the following arguments.
 .DS
 .B of
 filter is called with the following arguments.
 .DS
-\fIofiler\fP \fB\-w\fPwidth \fB\-l\fPlength
+\fIfilter\fP \fB\-w\fPwidth \fB\-l\fPlength
 .DE
 The \fIwidth\fP and \fIlength\fP values come from the
 .B pw
 .DE
 The \fIwidth\fP and \fIlength\fP values come from the
 .B pw
@@ -49,11 +77,11 @@ filter is passed the following parameters.
 The
 .B \-c
 flag is optional, and only supplied when control characters
 The
 .B \-c
 flag is optional, and only supplied when control characters
-are to be passed uninterpreted to the printer (when the
+are to be passed uninterpreted to the printer (when using the
 .B \-l
 option of
 .I lpr
 .B \-l
 option of
 .I lpr
-is used to print the file).
+to print the file).
 The
 .B \-w
 and
 The
 .B \-w
 and