Open System Services System Calls Reference Manual (G06.27+, H06.04+)

System Functions (s and S) select(2)
ERRORS
If any of these conditions occurs, the select() function sets errno to the corresponding value:
[EBADF] One of the specied le descriptor sets is invalid. One of these conditions
occurred:
The invalid le descriptor set contains a le descriptor for a le that is
not open.
The invalid le descriptor set contains a le descriptor that identies an
AF_INET AF_INET6 socket, but the current processor is not running a
transport agent process to support the socket. The le descriptor can
only be closed.
[EINTR] A signal was delivered before the time limit specied by the timeout parameter
expired and before any of the selected events occurred.
[EINVAL] One of these conditions occurred:
The value specied for the nfds parameter is less than 0 (zero) or greater
than FD_SETSIZE.
The time limit specied by the timeout parameter is invalid. One of its
components is negative or too large.
[ENETDOWN]
One of the specied le descriptors species a le on a remote HP NonStop
node, but communication with the remote node has been lost.
[ENOTSUP] One of the specied le descriptors is a terminal device le descriptor that does
not support select() for terminal devices.
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: fcntl(2), read(2), write(2).
STANDARDS CONFORMANCE
HP extensions to the XPG4 Version 2 specication are:
The errno value [ENOTSUP] can be returned for a call that attempts to select a terminal
device le.
The errno value [ENETDOWN] can be returned.
The time interval specied by the timeout parameter must meet these criteria:
The maximum interval is 2**31 seconds plus 2**31 microseconds. If a value
greater than this is specied, the maximum is used instead.
If a specied interval is not a whole multiple of 10 milliseconds, the next highest
whole multiple is used instead.
527186-004 Hewlett-Packard Company 79