Open System Services System Calls Reference Manual (G06.25+, H06.03+)

read(2) OSS System Calls Reference Manual
ERRORS
If any of these conditions occurs, the read() function sets errno to the corresponding value:
[EAGAIN] The O_NONBLOCK ag is set for the le descriptor, and the process would be
delayed in the read operation.
The O_NONBLOCK ag is set, and no data was available.
[EBADF] The ledes parameter is not a valid le 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 le descriptor specied by the ledes parameter can only be closed.
[EFAULT] The buffer parameter points to a location outside of the allocated address space
of the process.
[EFILEBAD] An attempt was made to read from a Guardian EDIT le (a le in /G with le
code 101) with a corrupted internal structure.
[EINTR] A read() operation was interrupted by a signal before any data arrived.
[EINVAL] The value of the nbytes parameter is greater than SSIZE_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. Data might have been lost during a
transfer.
[EISDIR] A read() operation was attempted against a directory.
[EISGUARDIAN]
The value used for the ledes parameter is appropriate only in the Guardian
environment.
[ENETDOWN]
The ledes parameter species a le on a remote HP NonStop node, but com-
munication with the remote node has been lost.
[ENOTCONN] The socket is no longer connected to a peer socket.
[ETIMEDOUT]
Data transmission on the socket timed out.
[EWRONGID] One of these conditions occurred:
The process attempted an operation through an operating system
input/output process (such as a terminal server process) that has failed or
is in the down state.
64 Hewlett-Packard Company 527186-003