Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
readv(2) OSS System Calls Reference Manual
ERRORS
If any of these conditions occurs, the readv() function sets errno to the corresponding value:
[EAGAIN] One of these conditions occurred:
• The O_NONBLOCK flag is set for the file descriptor, and the process
would be delayed in the read operation.
• The O_NONBLOCK flag is set for the file descriptor, and no data was
available.
[EALREADY] Operation already in progress. An I/O operation started by a thread-aware func-
tion is in progress on a regular file and a function that is process-blocking for
regular files attempts to begin an I/O operation on the same open file.
If the readv() function is thread-aware, the [EALREADY] value is not returned.
[EBADF] The filedes parameter is not a valid file descriptor open for reading.
[ECONNRESET]
One of these conditions occurred:
• The transport-provider process for this socket is no longer available.
• The TCP/IP subsystem for this socket is no longer available.
• The connection was forcibly closed by the peer socket.
The file descriptor specified by the filedes parameter can only be closed.
[EFAULT] The iov_base member of the iovec structure points to a location outside of the
allocated address space of the process.
[EFILEBAD] An attempt was made to read from a Guardian EDIT file (a file in /G with file
code 101) with a corrupted internal structure.
[EINTR] A readv() operation was interrupted by a signal before any data arrived.
[EINVAL] One of these conditions occurred:
• The sum of the iov_len values in the iov array was negative or
overflowed a data item of type ssize_t.
• The value of the iov_count parameter was less than or equal to 0 (zero)
or greater than IOV_MAX.
[EIO] One of these conditions occurred:
• The process is a member of a background process group attempting to
read from its controlling terminal, the process is ignoring or blocking the
SIGTTIN signal, or the process group is orphaned.
• A physical I/O error occurred. The device holding the file might be in
the down state, or both processors that provide access to the device
might have failed. Data might have been lost during a transfer.
6−18 Hewlett-Packard Company 527186-023