Technical data

SunOS 5.5 STREAMS Modules tirdwr(7M)
The action taken on messages with control portions will be as follows:
Messages that represent expedited data generate an error. All
further system calls associated with the stream fail with errno
set to EPROTO.
Any data messages with control portions have the control
portions removed from the message before to passing the
message on to the upstream neighbor.
Messages that represent an orderly release indication from
the transport provider generate a zero lengthdata message,
indicating the end of file, which will be sent to the reader of
the stream. The orderly release message itself is freed by the
module.
Messages that represent an abortive disconnect indication
from the transport provider cause all further write and
putmsg system calls to fail with errno set to ENXIO. All
further read and getmsg system calls return zero lengthdata
(indicating end of file) once all previous data has beenread.
With the exception of the above rules, all other messages with
control portions generate an error and all further system calls
associated with the stream will fail with errno set to
EPROTO.
Any zero lengthdata messages are freed by the module and they are
not passed onto the module’s upstream neighbor.
pop When the module is popped off the stream or the stream is closed, the module
takes the following action:
If an orderly release indication has been previously received, then an
orderly release request will be sent to the remote side of the transport
connection.
SEE ALSO intro(2), getmsg(2), putmsg(2), read(2), write(2), intro(3), streamio(7I), timod(7M)
STREAMS Programming Guide
Transport Interfaces Programming Guide
modified 3 Jul 1990 7M-375