HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
s
select(2) select(2)
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).
HP-UX Release 11i: December 2000 3 Section 2277
___
___