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

System Functions (s and S) select(2)
ERRORS
If any of these conditions occur, 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 node, but com-
munication with the remote node has been lost.
[ENOTSUP] One of the specied le descriptors species a terminal device that does not sup-
port select(). Only terminal devices on systems running G06.27 and later G-
series RVUs and H06.05 and later H-series RVUs support the select() function.
[ETHNOTRUNNING]
One of the specied le descriptors is a terminal device le descriptor and the
OSS terminal helper process is not running in the same processor as the applica-
tion. Under normal conditions, the OSS terminal helper process runs in all pro-
cessors. If this error is returned, contact your service provider and provide a
copy of the Event Management Service (EMS) log. If your local operating pro-
cedures require contacting the Global Customer Support Center (GCSC), supply
your system number and the numbers and versions of all related products as well.
For all other error conditions, errno is set to the appropriate Guardian le-system error number.
For more information about a specic Guardian le-system error, see the Guardian Procedure
Errors and Messages Manual.
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 for a terminal process that does not support select(). Only terminal devices on
systems running G06.27 and later G-series RVUs and H06.05 and later H-series RVUs
support the select() function.
527186-007 Hewlett-Packard Company 79