Open System Services System Calls Reference Manual (G06.28+, H06.05+)

read(2) OSS System Calls Reference Manual
[ETIMEDOUT]
Data transmission on the socket timed out.
[EWOULDBLOCK]
The process attempted an operation on a socket for which O_NONBLOCK is
set, there is no data, and no error has occurred.
[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.
The processor for the disk process of the specied le failed during an
input or output operation, and takeover by the backup process occurred.
The open le descriptor has migrated to a new processor, but the new
processor lacks a resource or system process needed for using the le
descriptor.
The le descriptor specied by the ledes parameter can only be closed.
For all other error conditions, errno is set to the appropriate Guardian le-system error number.
See the Guardian Procedure Errors and Messages Manual for more information about a specic
Guardian le-system error.
RELATED INFORMATION
Functions: creat(2), creat64(2), dup(2), fcntl(2), ioctl(2), lseek(2), lseek64(2), open(2),|
open64(2), opendir(3), pipe(2), socket(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. These features
are affected in the HP implementation:
The value of the le pointer returned for a device that is incapable of seeking is always 0
(zero).
When reading from a device special le, the return of EOF has no effect on subsequent
calls to the read() function.
Specifying a value for the nbytes parameter that is greater than SSIZE_MAX causes the
read() function to return -1 and set errno to [EINVAL].
errno can be set to [EIO] if a physical I/O error occurs.
HP extensions to the XPG4 Version 2 specication are:
The errno values [ECONNRESET], [EFAULT], [EFILEBAD], [EINVAL], [EISDIR],
[EISGUARDIAN], [ENETDOWN], [ENOTCONN], [ETIMEDOUT], and [EWRON-
GID] can be returned.
66 Hewlett-Packard Company 527186-007