1502 Remove conversion cruft from manpages
[unleashed.git] / usr / src / man / man9s / stroptions.9s
blob91954e0a9a40a4f178fba5e79818966a17b8b351
1 '\" te
2 .\" Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved.
3 .\" Copyright 1989 AT&T
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 .\" 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 .\" 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 .TH STROPTIONS 9S "Nov 14, 1996"
8 .SH NAME
9 stroptions \- options structure for M_SETOPTS message
10 .SH SYNOPSIS
11 .LP
12 .nf
13 #include <sys/stream.h>
14 #include <sys/stropts.h>
15 #include <sys/ddi.h>
16 #include <sys/sunddi.h>
17 .fi
19 .SH INTERFACE LEVEL
20 .sp
21 .LP
22 Architecture independent level 1 (DDI/DKI)
23 .SH DESCRIPTION
24 .sp
25 .LP
26 The \fBM_SETOPTS\fR message contains a \fBstroptions\fR structure and is used
27 to control options in the stream head.
28 .SH STRUCTURE MEMBERS
29 .sp
30 .in +2
31 .nf
32 uint_t           so_flags;      /* options to set */
33 short            so_readopt;    /* read option */
34 ushort_t         so_wroff;      /* write offset */
35 ssize_t          so_minpsz;     /* minimum read packet size */
36 ssize_t          so_maxpsz;     /* maximum read packet size */
37 size_t           so_hiwat;      /* read queue high water mark */
38 size_t           so_lowat;      /* read queue low water mark */
39 unsigned char    so_band;       /* band for water marks */
40 ushort_t         so_erropt;     /* error option */
41 .fi
42 .in -2
44 .sp
45 .LP
46 The following are the flags that can be set in the \fBso_flags\fR bit mask in
47 the \fBstroptions\fR structure.  Note that multiple flags can be set.
48 .sp
49 .ne 2
50 .na
51 \fB\fBSO_READOPT\fR\fR
52 .ad
53 .RS 21n
54 Set read option.
55 .RE
57 .sp
58 .ne 2
59 .na
60 \fB\fBSO_WROFF\fR\fR
61 .ad
62 .RS 21n
63 Set write offset.
64 .RE
66 .sp
67 .ne 2
68 .na
69 \fB\fBSO_MINPSZ\fR\fR
70 .ad
71 .RS 21n
72 Set minimum packet size
73 .RE
75 .sp
76 .ne 2
77 .na
78 \fB\fBSO_MAXPSZ\fR\fR
79 .ad
80 .RS 21n
81 Set maximum packet size.
82 .RE
84 .sp
85 .ne 2
86 .na
87 \fB\fBSO_HIWAT\fR\fR
88 .ad
89 .RS 21n
90 Set high water mark.
91 .RE
93 .sp
94 .ne 2
95 .na
96 \fB\fBSO_LOWAT\fR\fR
97 .ad
98 .RS 21n
99 Set low water mark.
103 .ne 2
105 \fB\fBSO_MREADON\fR\fR
107 .RS 21n
108 Set read notification ON.
112 .ne 2
114 \fB\fBSO_MREADOFF\fR\fR
116 .RS 21n
117 Set read notification OFF.
121 .ne 2
123 \fB\fBSO_NDELON\fR\fR
125 .RS 21n
126 Old TTY semantics for NDELAY reads and writes.
130 .ne 2
132 \fB\fBSO_NDELOFFSTREAMS\fR\fR
134 .RS 21n
135 Semantics for NDELAY reads and writes.
139 .ne 2
141 \fB\fBSO_ISTTY\fR\fR
143 .RS 21n
144 The stream is acting as a terminal.
148 .ne 2
150 \fB\fBSO_ISNTTY\fR\fR
152 .RS 21n
153 The stream is not acting as a terminal.
157 .ne 2
159 \fB\fBSO_TOSTOP\fR\fR
161 .RS 21n
162 Stop on background writes to this stream.
166 .ne 2
168 \fB\fBSO_TONSTOP\fR\fR
170 .RS 21n
171 Do not stop on background writes to this stream.
175 .ne 2
177 \fB\fBSO_BAND\fR\fR
179 .RS 21n
180 Water marks affect band.
184 .ne 2
186 \fB\fBSO_ERROPT\fR\fR
188 .RS 21n
189 Set error option.
194 When \fBSO_READOPT\fR is set, the \fBso_readopt\fR field of the
195 \fBstroptions\fR structure can take one of the following values. See
196 \fBread\fR(2).
198 .ne 2
200 \fB\fBRNORM\fR\fR
202 .RS 9n
203 Read message normal.
207 .ne 2
209 \fB\fBRMSGD\fR\fR
211 .RS 9n
212 Read message discard.
216 .ne 2
218 \fB\fBRMSGN\fR\fR
220 .RS 9n
221 Read message, no discard.
226 When \fBSO_BAND\fR is set, \fBso_band\fR determines to which band
227 \fBso_hiwat\fR and \fBso_lowat\fR apply.
230 When \fBSO_ERROPT\fR is set, the \fBso_erropt\fR field of the \fBstroptions\fR
231 structure can take a value that is either none or one of:
233 .ne 2
235 \fB\fBRERRNORM\fR\fR
237 .RS 18n
238 Persistent read errors; default.
242 .ne 2
244 \fB\fBRERRNONPERSIST\fR\fR
246 .RS 18n
247 Non-persistent read errors.
252 \fBOR'ed \fRwith either none or one of:
254 .ne 2
256 \fB\fBWERRNORM\fR\fR
258 .RS 18n
259 Persistent write errors; default.
263 .ne 2
265 \fB\fBWERRNONPERSIST\fR\fR
267 .RS 18n
268 Non-persistent write errors.
271 .SH SEE ALSO
274 \fBread\fR(2), \fBstreamio\fR(7I)
277 \fISTREAMS Programming Guide\fR