Defines | Functions
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:

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.



dashel
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:32