1 /* Copyright 2002,2003 Nick Mathewson, Roger Dingledine. */
2 /* See LICENSE for licensing information */
12 #if defined(HAVE_POLL_H)
14 #elif defined(HAVE_SYS_POLL_H)
18 /* If _POLL_EMUL_H_ is defined, then poll is just a just a thin wrapper around
19 * select. On Mac OS 10.3, this wrapper is kinda flaky, and we should
22 #if !(defined(HAVE_POLL_H)||defined(HAVE_SYS_POLL_H))&&!defined(_POLL_EMUL_H_)
26 #if defined USE_FAKE_POLL && !defined(_POLL_EMUL_H_)
34 #define POLLPRI 0x0002
35 #define POLLOUT 0x0004
36 #define POLLERR 0x0008
37 #define POLLHUP 0x0010
38 #define POLLNVAL 0x0020
41 int tor_poll(struct pollfd
*ufds
, unsigned int nfds
, int timeout
);