TizenRT Libs&Environment  v2.0 M2

Provides APIs for Select. More...

Collaboration diagram for SELECT:

Files

file  select.h
 synchronous I/O multiplexing APIs
 

Data Structures

struct  fd_set
 

Macros

#define __SELECT_NDESCRIPTORS   (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS)
 
#define __SELECT_NUINT32   1
 
#define FD_CLR(fd, set)   ((set)->fd_bits[(fd)/8]) &= ~(1 << ((fd) & 7))
 
#define FD_SET(fd, set)   ((set)->fd_bits[(fd)/8]) |= (1 << ((fd) & 7))
 
#define FD_ISSET(fd, set)   ((set)->fd_bits[(fd)/8]) & (1 << ((fd) & 7))
 
#define FD_ZERO(set)   memset(set, 0, sizeof(fd_set))
 
#define EXTERN   extern
 

Typedefs

typedef struct fd_set fd_set
 

Functions

EXTERN int select (int nfds, FAR fd_set *readfds, FAR fd_set *writefds, FAR fd_set *exceptfds, FAR struct timeval *timeout)
 synchronous I/O multiplexing More...
 

Detailed Description

Provides APIs for Select.

Macro Definition Documentation

#define __SELECT_NDESCRIPTORS   (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS)

Definition at line 83 of file select.h.

#define __SELECT_NUINT32   1

Definition at line 90 of file select.h.

#define EXTERN   extern

Definition at line 155 of file select.h.

#define FD_CLR (   fd,
  set 
)    ((set)->fd_bits[(fd)/8]) &= ~(1 << ((fd) & 7))

Definition at line 139 of file select.h.

#define FD_ISSET (   fd,
  set 
)    ((set)->fd_bits[(fd)/8]) & (1 << ((fd) & 7))

Definition at line 141 of file select.h.

#define FD_SET (   fd,
  set 
)    ((set)->fd_bits[(fd)/8]) |= (1 << ((fd) & 7))

Definition at line 140 of file select.h.

#define FD_ZERO (   set)    memset(set, 0, sizeof(fd_set))

Definition at line 142 of file select.h.

Typedef Documentation

typedef struct fd_set fd_set

Function Documentation

EXTERN int select ( int  nfds,
FAR fd_set readfds,
FAR fd_set writefds,
FAR fd_set exceptfds,
FAR struct timeval timeout 
)

synchronous I/O multiplexing

#include <sys/select.h>
SYSTEM CALL API
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0