Data Structures for Drivers stroptions(9S)
NAME
stroptions - options structure for MSETOPTS message
SYNOPSIS
#include
#include
#include
#include
INTERFACE LEVEL
Architecture independent level 1 (DI/DKI)
DESCRIPTION
The MSETOPTS message contains a stroptions structure and is
used to control options in the stream head.
STRUCTURE MEMBERS
uintt soflags; /* options to set */
short soreadopt; /* read option */
ushortt sowroff; /* write offset */
ssizet sominpsz; /* minimum read packet size */
ssizet somaxpsz; /* maximum read packet size */
sizet sohiwat; /* read queue high water mark */
sizet solowat; /* read queue low water mark */
unsigned char soband; /* band for water marks */
ushortt soerropt; /* error option */
The following are the flags that can be set in the soflags
bit mask in the stroptions structure. Note that multiple
flags can be set.
SOREADOPT Set read option.
SOWROF Set write offset.
SOMINPSZ Set minimum packet size
SOMAXPSZ Set maximum packet size.
SOHIWAT Set high water mark.
SOLOWAT Set low water mark.
SunOS 5.11 Last change: 14 Nov 1996 1
Data Structures for Drivers stroptions(9S)
SOMREADON Set read notification ON.
SOMREADOF Set read notification OF.
SONDELON Old TY semantics for NDELAY reads and
writes.
SONDELOFSTREAMS Semantics for NDELAY reads and writes.
SOISTY The stream is acting as a terminal.
SOISNTY The stream is not acting as a terminal.
SOTOSTOP Stop on background writes to this
stream.
SOTONSTOP Do not stop on background writes to
this stream.
SOBAND Water marks affect band.
SOEROPT Set error option.
When SOREADOPT is set, the soreadopt field of the strop-
tions structure can take one of the following values. See
read(2).
RNORM Read message normal.
RMSGD Read message discard.
RMSGN Read message, no discard.
When SOBAND is set, soband determines to which band
sohiwat and solowat apply.
SunOS 5.11 Last change: 14 Nov 1996 2
Data Structures for Drivers stroptions(9S)
When SOEROPT is set, the soerropt field of the stroptions
structure can take a value that is either none or one of:
RERNORM Persistent read errors; default.
RERNONPERSIST Non-persistent read errors.
OR'ed with either none or one of:
WERNORM Persistent write errors; default.
WERNONPERSIST Non-persistent write errors.
SEE ALSO
read(2), streamio(7I)
STREAMS Programming Guide
SunOS 5.11 Last change: 14 Nov 1996 3
|