4 * Copyright (c) 1997-8 Graham Barr <gbarr@pobox.com>. All rights reserved.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the same terms as Perl itself.
13 #if defined(I_POLL) || defined(POLLWRBAND)
22 /* We shall emulate poll using select */
24 #define EMULATE_POLL_WITH_SELECT
26 typedef struct pollfd {
33 #define POLLPRI 0x0002
34 #define POLLOUT 0x0004
35 #define POLLRDNORM 0x0040
36 #define POLLWRNORM POLLOUT
37 #define POLLRDBAND 0x0080
38 #define POLLWRBAND 0x0100
39 #define POLLNORM POLLRDNORM
41 /* Return ONLY events (NON testable) */
43 #define POLLERR 0x0008
44 #define POLLHUP 0x0010
45 #define POLLNVAL 0x0020
47 int poll _((struct pollfd *, unsigned long, int));
53 #endif /* HAS_SELECT */