HP-UX Reference (11i v2 03/08) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)

s
streamio(7) streamio(7)
[EAGAIN] A data structure to store the signal request could not be allocated.
I_SRDOPT
[EINVAL] arg contains an illegal value.
I_STR
[EINVAL] The
ic_len field is less than 0 (zero) bytes or larger than the maximum allowable
size of the data part of a message (
ic_dp).
[EINVAL] The
ic_timeout field is less than −1.
[EFAULT] arg points, or the buffer area specified by
ic_dp or ic_len is, outside the allo-
cated address space.
[ENOSR] Buffers could not be allocated for the
ioctl request because of a lack of STREAMS
memory resources.
[ENXIO] A hangup was received on the stream referred to by fildes.
[ETIME] The
ioctl request timed out before an acknowledgement was received.
The
I_STR ioctl can also fail if the stream head receives a message indicating an error
(M_ERROR) or a hangup (
M_HANGUP). In addition, an error can be returned in an M_IOCACK
or M_IOCNAK message. In these cases, the ioctl fails with errno set to the error value in
the message.
I_SWROPT
[EINVAL] The arg parameter is an illegal value.
I_UNLINK
[ENXIO] A hangup was received on fildes.
[ETIME] A timeout occurred before an acknowledgement message was received at the stream
head.
[EINVAL] arg is an invalid multiplexor ID number, or fildes is already linked under a multi-
plexing driver.
An
I_UNLINK ioctl can also fail if it is waiting for the multiplexor to acknowledge the
unlink request and an error (M_ERROR) message, or hangup (M_HANGUP) is received at the
stream head for fildes. In addition, an error can be returned in M_IOCACK or M_IOCNAK
message. When this occurs, the I_UNLINK ioctl fails with errno set to the value in the
message.
SEE ALSO
close(2), fcntl(2), getmsg(2), ioctl(2), open(2), poll(2), putmsg(2), read(2), write(2), signal(5).
HP-UX 11i Version 2: August 2003 − 10 − Hewlett-Packard Company Section 7−−163