Technical data

SunOS 5.5 Ioctl Requests streamio(7I)
WERRNORM Persistentwrite errors, the default.
WERRNONPERSIST
Non-persistent write errors.
When no value is specified e.g. for the read side error behavior then the
behavior for that side will be left unchanged.
On failure, errno is set to the following value:
EINVAL arg is not one of the above legal values.
I_GERROPT Returns the current error mode setting in an int pointed to by the argu-
ment arg. Error modes are described above for I_SERROPT. On failure,
errno is set to the following value:
EFAULT arg points outside the allocated address space.
The following four commands are used for connecting and disconnecting multiplexed
STREAMS configurations.
I_LINK Connects two streams, where fildes is the file descriptor of the stream
connected to the multiplexingdriver, and arg is the file descriptor of the
stream connected to another driver. The stream designated by arg gets
connected below the multiplexingdriver. I_LINK requires the multi-
plexing driver to send an acknowledgement message to the stream head
regarding the linking operation. This call returns a multiplexorID
number (an identifier used to disconnect the multiplexor, see I_UNLINK)
on success, and -1 on failure. On failure, errno is set to one of the fol-
lowing values:
ENXIO Hangup received on fildes.
ETIME Time out before acknowledgement message was
received at stream head.
EAGAIN Temporarily unable to allocate storage to perform the
I_LINK.
ENOSR Unable to allocate storage to perform the I_LINK due to
insufficientSTREAMS memory resources.
EBADF arg is not a valid, open file descriptor.
EINVAL fildes stream does not support multiplexing.
EINVAL arg is not a stream, or is already linked under a multi-
plexor.
EINVAL The specified linkoperation would cause a ‘‘cycle’’ in
the resulting configuration; that is, a driver would be
linked into the multiplexing configuration in more than
one place.
EINVAL fildes is the file descriptor of a pipe or FIFO.
modified 24 Jan 1995 7I-337