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 specified file descriptor sets is invalid. One of these conditions
occurred:
• The invalid file descriptor set contains a file descriptor for a file that is
not open.
• The invalid file descriptor set contains a file descriptor that identifies an
AF_INET AF_INET6 socket, but the current processor is not running a
transport agent process to support the socket. The file descriptor can
only be closed.
[EINTR] A signal was delivered before the time limit specified by the timeout parameter
expired and before any of the selected events occurred.
[EINVAL] One of these conditions occurred:
• The value specified for the nfds parameter is less than 0 (zero) or greater
than FD_SETSIZE.
• The time limit specified by the timeout parameter is invalid. One of its
components is negative or too large.
[ENETDOWN]
One of the specified file descriptors specifies a file on a remote HP NonStop
node, but communication with the remote node has been lost.
[ENOTSUP] One of the specified file descriptors is a terminal device file descriptor that does
not support select() for terminal devices.
For all other error conditions, errno is set to the appropriate Guardian file-system error number.
See the Guardian Procedure Errors and Messages Manual for more information about a specific
Guardian file-system error.
RELATED INFORMATION
Functions: fcntl(2), read(2), write(2).
STANDARDS CONFORMANCE
HP extensions to the XPG4 Version 2 specification are:
• The errno value [ENOTSUP] can be returned for a call that attempts to select a terminal
device file.
• The errno value [ENETDOWN] can be returned.
• The time interval specified 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 specified, the maximum is used instead.
— If a specified interval is not a whole multiple of 10 milliseconds, the next highest
whole multiple is used instead.
527186-004 Hewlett-Packard Company 7−9