Print this page
11622 clean up rarer mandoc lint warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man7i/prnio.7i
          +++ new/usr/src/man/man7i/prnio.7i
   1    1  '\" te
   2    2  .\"  Copyright (c) 20002 Sun Microsystems, Inc.
   3    3  .\"  All Rights Reserved.
   4    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5    5  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6    6  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7    7  .TH PRNIO 7I "Jan 2, 2002"
   8    8  .SH NAME
   9    9  prnio \- generic printer interface
  10   10  .SH SYNOPSIS
  11      -.LP
  12   11  .nf
  13   12  \fB#include <sys/prnio.h>\fR
  14   13  .fi
  15   14  
  16   15  .SH DESCRIPTION
  17      -.sp
  18      -.LP
  19   16  The \fBprnio\fR generic printer interface defines ioctl commands and data
  20   17  structures for printer device drivers.
  21   18  .sp
  22   19  .LP
  23   20  \fBprnio\fR defines and provides facilities for five basic phases of the
  24   21  printing process:
  25   22  .RS +4
  26   23  .TP
  27   24  .ie t \(bu
  28   25  .el o
↓ open down ↓ 48 lines elided ↑ open up ↑
  77   74  The Cleanup phase is accomplished by closing the device using \fBclose\fR(2).
  78   75  Device drivers supporting \fBprnio\fR may set non-zero error code as
  79   76  appropriate. Applications should explicitly \fBclose\fR(2) a device before
  80   77  exiting and check \fBerrno\fR value.
  81   78  .sp
  82   79  .LP
  83   80  The Abort phase is accomplished by interrupting the \fBwrite\fR(2) and
  84   81  \fBread\fR(2) system calls. The application can perform some additional cleanup
  85   82  during the Abort phase as described in \fBPRNIOC_GET_IFCAP\fR section.
  86   83  .SH IOCTLS
  87      -.sp
  88   84  .ne 2
  89   85  .na
  90   86  \fB\fBPRNIOC_GET_IFCAP\fR\fR
  91   87  .ad
  92   88  .RS 21n
  93   89  Application can retrieve printer interface capabilities using this command. The
  94   90  \fBioctl\fR(2) argument is a pointer to \fBuint_t\fR, a bit field representing
  95   91  a set of properties and services provided by a printer driver. Set bit means
  96   92  supported capability. The following values are defined:
  97   93  .br
↓ open down ↓ 166 lines elided ↑ open up ↑
 264  260  .ne 2
 265  261  .na
 266  262  \fBPRNIOC_GET_STATUS\fR
 267  263  .ad
 268  264  .RS 21n
 269  265  This command can be used by applications to retrieve current device status. The
 270  266  argument is a pointer to \fBuint_t\fR, where the status word is returned.
 271  267  Status is a combination of the following bits:
 272  268  .RE
 273  269  
 274      -.br
 275  270  .in +2
 276  271  \fBPRN_ONLINE\fR - For devices that support \fBPRN_HOTPLUG\fR capability,
 277  272  this bit is set when the device is online, otherwise the device is offline.
 278  273  Devices without \fBPRN_HOTPLUG\fR support should always have this bit set.
 279  274  .in -2
 280  275  .br
 281  276  .in +2
 282  277  \fBPRN_READY\fR - This bit indicates if the device is ready to receive/send
 283  278  data. Applications may use this bit for an outbound flow control
 284  279  .in -2
↓ open down ↓ 55 lines elided ↑ open up ↑
 340  335  \fB\fBPRNIOC_SET_TIMEOUTS\fR\fR
 341  336  .ad
 342  337  .RS 23n
 343  338  This command sets current transfer  timeout values for the driver. The
 344  339  argument is  a pointer to \fBstruct prn_timeouts\fR. See
 345  340  \fBPRNIOC_GET_TIMEOUTS\fR for description of  this structure. This  command is
 346  341  only valid for drivers that support \fBPRN_TIMEOUTS\fR capability.
 347  342  .RE
 348  343  
 349  344  .SH ATTRIBUTES
 350      -.sp
 351      -.LP
 352  345  See \fBattributes\fR(5) for descriptions of the following attributes:
 353  346  .sp
 354  347  
 355  348  .sp
 356  349  .TS
 357  350  box;
 358  351  c | c
 359  352  l | l .
 360  353  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 361  354  _
 362  355  Architecture     SPARC, IA
 363  356  _
 364  357  Interface Stability     Evolving
 365  358  .TE
 366  359  
 367  360  .SH SEE ALSO
 368      -.sp
 369      -.LP
 370  361  \fBclose\fR(2), \fBioctl\fR(2), \fBread\fR(2), \fBwrite\fR(2),
 371  362  \fBattributes\fR(5), \fBecpp\fR(7D), \fBusbprn\fR(7D), \fBlp\fR(7D)
 372  363  .sp
 373  364  .LP
 374  365  \fIIEEE Std 1284-1994\fR
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX