Go to the documentation of this file.    5 #if !defined(_REPLACEMENTS_POLL_H) && !defined(HAVE_POLL)     6 #define _REPLACEMENTS_POLL_H    15 #include <sys/select.h>    26 #if !defined(FD_SETSIZE)    27 # if !defined(OPEN_MAX)    28 # error cannot establish FD_SETSIZE    30 #define FD_SETSIZE OPEN_MAX    33 #include <freetds/pushvis.h>    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    75 typedef struct pollfd pollfd_t;
    80 int tds_poll(
struct pollfd fds[], 
int nfds, 
int timeout);
    81 #define poll(fds, nfds, timeout) tds_poll(fds, nfds, timeout)    83 #include <freetds/popvis.h>