source: trunk/minix/man/man2/select.2@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.2 KB
RevLine 
[9]1.TH SELECT 2 "Jun 9, 2005"
2.UC 4
3.SH NAME
4select, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- synchronous I/O multiplexing
5.SH SYNOPSIS
6.nf
7.ft B
8#include <sys/select.h>
9
10int select(int \fInfds\fP, fd_set *\fIreadfds\fP, fd_set *\fIwritefds\fP, fd_set *\fIerrorfds\fP, struct timeval *\fItimeout\fP)
11
12void FD_CLR(int \fIfd\fP, fd_set *\fIfdset\fP)
13int FD_ISSET(int \fIfd\fP, fd_set *\fIfdset\fP)
14void FD_SET(int \fIfd\fP, fd_set *\fIfdset\fP)
15void FD_ZERO(fd_set *\fIfdset\fP)
16.ft R
17.fi
18.SH DESCRIPTION
19.B Select
20examines the file descriptors given in the sets
21.IR readfds ,
22.IR writefds ,
23and
24.IR errorfds ,
25up to and including file descriptor
26.IR nfds -1
27, for reading, writing, or exceptional conditions, respectively.
28.B Select
29currently supports regular files, pipes, named pipes,
30inet, and tty file descriptors (including pty).
31
32If the
33.I readfds
34argument is not a null pointer, it points to an object of type fd_set
35that on input specifies the file descriptors to be checked for being
36ready to read, and on output indicates which file descriptors are ready
37to read.
38.I Writefds
39and
40.I errorfds
41have an analogous meaning for file descriptors to be checked for being
42ready to read, respectively have pending exceptional (error) conditions.
43
Note: See TracBrowser for help on using the repository browser.