man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: July 2014
 
 

select(3HEAD)

Name

select.h, select - select types

Synopsis

#include <sys/select.h>

Description

The <sys/select.h> header defines the timeval structure, which includes the following members:

time_t      tv_sec      /* seconds */
suseconds_t tv_usec     /* microseconds */

The time_t and suseconds_t types are defined as described in <sys/types.h>. See types.h(3HEAD).

The sigset_t type is defined as described in signal.h(3HEAD).

The timespec structure is defined as described in <time.h>. See time.h(3HEAD).

The <sys/select.h> header defines the fd_set type as a structure.

The following is defined as a macro:

FD_SETSIZE

Maximum number of file descriptors in an fd_set structure.

Inclusion of the <sys/select.h> header can make visible all symbols from the headers <signal.h>, <sys/time.h>, and <time.h>.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See also

select(3C), signal.h(3HEAD), time.h(3HEAD), types.h(3HEAD), attributes(5), standards(5)