.\" Copyright (c) 1983 Regents of the University of California. .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" .\" @(#)select.2 6.2 (Berkeley) %G% .\" .TH SELECT 2 "" .UC 5 .SH NAME select \- synchronous i/o multiplexing .SH SYNOPSIS .nf .ft B #include .PP .ft B nfound = select(nfds, readfds, writefds, exceptfds, timeout) int nfound, nfds, *readfds, *writefds, *exceptfds; struct timeval *timeout; .fi .SH DESCRIPTION .I Select examines the i/o descriptors specified by the bit masks .IR readfds , .IR writefds , and .I exceptfds to see if they are ready for reading, writing, or have an exceptional condition pending, respectively. File descriptor .I f is represented by the bit \*(lq1<