All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Functions
as_poll.h File Reference
#include <sys/select.h>
+ Include dependency graph for as_poll.h:

Go to the source code of this file.

Data Structures

struct  as_poll
 

Macros

#define as_poll_init(_poll, _fd)
 
#define AS_STACK_LIMIT   (16 * 1024)
 

Functions

static void as_poll_destroy (as_poll *poll)
 
static int as_poll_socket (as_poll *poll, as_socket_fd fd, uint32_t timeout, bool read)
 

Macro Definition Documentation

#define as_poll_init (   _poll,
  _fd 
)
Value:
(_poll)->size = (((_fd) / FD_SETSIZE) + 1) * FD_SETSIZE / 8;\
(_poll)->set = ((_poll)->size > AS_STACK_LIMIT)? cf_malloc((_poll)->size) : alloca((_poll)->size);
#define AS_STACK_LIMIT
Definition: as_poll.h:46

Definition at line 57 of file as_poll.h.

#define AS_STACK_LIMIT   (16 * 1024)

Definition at line 46 of file as_poll.h.

Function Documentation

static void as_poll_destroy ( as_poll poll)
inlinestatic

Definition at line 104 of file as_poll.h.

References AS_STACK_LIMIT, as_poll::set, and as_poll::size.

static int as_poll_socket ( as_poll poll,
as_socket_fd  fd,
uint32_t  timeout,
bool  read 
)
inlinestatic

Definition at line 62 of file as_poll.h.

References as_poll::set, and as_poll::size.