8 #include <mono/utils/mono-publib.h>
11 #ifdef HAVE_SYS_TIME_H
14 #include <sys/types.h>
22 #elif defined(HAVE_SYS_POLL_H)
26 #define MONO_POLLIN POLLIN
27 #define MONO_POLLPRI POLLPRI
28 #define MONO_POLLOUT POLLOUT
29 #define MONO_POLLERR POLLERR
30 #define MONO_POLLHUP POLLHUP
31 #define MONO_POLLNVAL POLLNVAL
33 typedef struct pollfd mono_pollfd
;
41 #define MONO_POLLPRI 2
42 #define MONO_POLLOUT 4
43 #define MONO_POLLERR 8
44 #define MONO_POLLHUP 0x10
45 #define MONO_POLLNVAL 0x20
55 MONO_API
int mono_poll (mono_pollfd
*ufds
, unsigned int nfds
, int timeout
);
57 #endif /* MONO_POLL_H */