Technical data

streamio(7I) Ioctl Requests SunOS 5.5
The return value is 1 if the mark condition is satisfied and 0 otherwise.
On failure, errno is set to the following value:
EINVAL Invalid arg value.
I_CKBAND Check if the message of a given priority band exists on the stream head
read queue. This returns 1 if a message of a given priority exists, 0 if
not, or -1 on error. arg should be an integer containing the value of the
priority band in question. On failure, errno is set to the following value:
EINVAL Invalid arg value.
I_GETBAND Returns the priority band of the first message on the stream head read
queue in the integer referenced by arg. On failure, errno is set to the fol-
lowing value:
ENODATA No message on the stream head read queue.
I_CANPUT Check if a certain band is writable. arg is set to the priority band in
question. The return value is 0 if the priority band arg is flow controlled,
1 if the band is writable, or -1 on error. On failure, errno is set to the fol-
lowing value:
EINVAL Invalid arg value.
I_SETCLTIME Allows the user to set the time the stream head will delay when a stream
is closing and there are data on the write queues. Before closing each
module and driver, the stream head will delay for the specified amount
of time to allow the data to drain. Note, however, that the module or
driver may itself delay in its close routine; this delay is independentof
the stream head’s delay and is not settable. If, after the delay, data are
still present, data will be flushed. arg is the number of milliseconds to
delay, rounded up to the nearest legal value on the system. The default
is fifteen seconds. On failure, errno is set to the following value:
EINVAL Invalid arg value.
I_GETCLTIME Returns the close time delay in the integer pointed by arg.
I_SERROPT Sets the error mode using the value of the argument arg.
Normally stream head errors are persistent i.e. once they are set due to
an M_ERROR or M_HANGUP the error condition will remain untilthe
stream is closed. This option can be used to set the stream head into
non-persistent error mode i.e. once the error has been returned in
response to a read(2), getmsg(2), ioctl(2), write(2), or putmsg(2) call the
error condition will be cleared. The error mode can be controlled
independently for read and write side errors. Legal arg values are either
none or one of:
RERRNORM Persistent read errors, the default.
RERRNONPERSIST
Non-persistent read errors.
OR’ed with either none or one of:
7I-336 modified 24 Jan 1995