select.h File Reference

Select types. More...

Detailed Description

#include <string.h>
#include <sys/time.h>
#include "bitfield.h"
+ Include dependency graph for select.h:

Go to the source code of this file.

Data Structures

struct  fd_set
 The fd_set structure. More...
 

Macros

#define CONFIG_POSIX_FD_SET_SIZE   (16)
 Maximum number of file descriptors in an fd_set structure. More...
 
#define POSIX_SELECT_THREAD_FLAG   (1U << 3)
 Thread Flags for POSIX select
 
#define FD_SETSIZE   (CONFIG_POSIX_FD_SET_SIZE)
 Maximum number of file descriptors in an fd_set structure. More...
 

Functions

static void FD_CLR (int fd, fd_set *fdsetp)
 Removes a file descriptor from an fd_set if it is a member. More...
 
static int FD_ISSET (int fd, fd_set *fdsetp)
 Checks if a file descriptor is a member of an fd_set More...
 
static void FD_SET (int fd, fd_set *fdsetp)
 Adds a file descriptor from an fd_set if it is not already a member. More...
 
static void FD_ZERO (fd_set *fdsetp)
 Initializes the descriptor set as an empty set. More...
 
int select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)
 Examines the given file descriptor sets if they are ready for their respective operation. More...