HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)
s
select(2) select(2)
printf ("select timed out \n");
else for (i=0, k=0; i < NTTYS && k < NWORDS; k++)
for (j=0; j < NFDBITS && i < NTTYS; j++, i++)
if (ttymask[i] & readfds.fds_bits[k])
/* Read from tty[i]. The code for reading
* is not shown here.
*/
else printf ("tty[%d] is not ready for reading \n",i);
WARNINGS
Check all references to signal(5) for appropriateness on systems that support
sigvector() . sigvec-
tor()
can affect the behavior described on this manpage.
The file descriptor masks are always modified on return, even if the call returns as the result of a timeout.
DEPENDENCIES
select() supports the following devices and file types:
• pipes
• fifo special files (named pipes)
• all serial devices
• All ITEs (internal terminal emulators) and HP-HIL input devices
• lan(7) special files
• pty(7) special files
• sockets
AUTHOR
select() was developed by HP and the University of California, Berkeley.
SEE ALSO
fcntl(2), read(2), write(2), thread_safety(5).
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 2−−299