1
/* Copyright 2002,2003 Nick Mathewson, Roger Dingledine. */
2
/* See LICENSE for licensing information */
3
/* $Id: fakepoll.h,v 1.10 2004/05/10 07:54:13 arma Exp $ */
10
* \brief Headers for fakepoll.c
17
#if defined(HAVE_POLL_H)
19
#elif defined(HAVE_SYS_POLL_H)
23
/* If _POLL_EMUL_H_ is defined, then poll is just a just a thin wrapper around
24
* select. On Mac OS 10.3, this wrapper is kinda flaky, and we should
27
#if !(defined(HAVE_POLL_H)||defined(HAVE_SYS_POLL_H))&&!defined(_POLL_EMUL_H_)
31
#if defined USE_FAKE_POLL && !defined(_POLL_EMUL_H_)
39
#define POLLPRI 0x0002
40
#define POLLOUT 0x0004
41
#define POLLERR 0x0008
42
#define POLLHUP 0x0010
43
#define POLLNVAL 0x0020
46
int tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout);