$search

poll_emu.c File Reference

#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <assert.h>
#include <string.h>
#include "poll_emu.h"
Include dependency graph for poll_emu.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAX(a, b)   ((a) > (b) ? (a) : (b))

Functions

static int map_poll_spec (struct pollfd *pArray, unsigned long n_fds, fd_set *pReadSet, fd_set *pWriteSet, fd_set *pExceptSet)
static void map_select_results (struct pollfd *pArray, unsigned long n_fds, fd_set *pReadSet, fd_set *pWriteSet, fd_set *pExceptSet)
static struct timeval * map_timeout (int poll_timeout, struct timeval *pSelTimeout)
int poll_emu (structpollfd *pArray, unsigned long n_fds, int timeout)

Define Documentation

#define MAX ( a,
 )     ((a) > (b) ? (a) : (b))

Definition at line 96 of file poll_emu.c.


Function Documentation

static int map_poll_spec ( struct pollfd pArray,
unsigned long  n_fds,
fd_set *  pReadSet,
fd_set *  pWriteSet,
fd_set *  pExceptSet 
) [static]

Definition at line 112 of file poll_emu.c.

static void map_select_results ( struct pollfd pArray,
unsigned long  n_fds,
fd_set *  pReadSet,
fd_set *  pWriteSet,
fd_set *  pExceptSet 
) [static]

Definition at line 230 of file poll_emu.c.

static struct timeval* map_timeout ( int  poll_timeout,
struct timeval *  pSelTimeout 
) [static, read]

Definition at line 166 of file poll_emu.c.

int poll_emu ( struct pollfd pArray,
unsigned long  n_fds,
int  timeout 
)

Definition at line 273 of file poll_emu.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


dashel
Author(s): Stéphane Magnenat
autogenerated on Sat Mar 2 12:31:30 2013