7 #if !defined(_FAKE_POLL_H) && !defined(HAVE_POLL) 
   17 #include <sys/select.h> 
   28 #if !defined(FD_SETSIZE) 
   29 # if !defined(OPEN_MAX) 
   30 # error cannot establish FD_SETSIZE 
   32 #define FD_SETSIZE OPEN_MAX 
   37 # define POLLIN  0x0001 
   38 # define POLLOUT 0x0004 
   39 # define POLLERR 0x0008 
   42 # define POLLNORM POLLIN 
   43 # define POLLPRI POLLIN 
   44 # define POLLRDNORM POLLIN 
   45 # define POLLRDBAND POLLIN 
   46 # define POLLWRNORM POLLOUT 
   47 # define POLLWRBAND POLLOUT 
   50 # define POLLHUP 0x0010 
   51 # define POLLNVAL 0x0020 
   63 # if !defined(POLLRDNORM) && !defined(POLLWRNORM) 
   64 #  define POLLIN  0x0300 
   65 #  define POLLOUT 0x0010 
   66 #  define POLLERR 0x0001 
   67 #  define POLLRDNORM 0x0100 
   68 #  define POLLWRNORM 0x0010 
   79 int fakepoll(
struct pollfd fds[], 
int nfds, 
int timeout);
 
Definition: fakepoll.h:52