#ifndef ___POLL #define __POLL #pragma lib "/$M/lib/ape/libpoll.a" typedef unsigned int nfds_t; typedef struct pollfd { int fd; short events; short revents; } pollfd_t; #define POLLIN 0x0001 #define POLLOUT 0x0004 #define POLLERR 0x0008 #define POLLPRI 0x0002 #define POLLHUP 0x0010 #define POLLNVAL 0x0020 #define POLLRDNORM 0x0040 #define POLLNORM POLLRDNORM #define POLLWRNORM POLLOUT #define POLLRDBAND 0x0080 #define POLLWRBAND 0x0100 extern int poll(struct pollfd *, nfds_t, int); #endif /* __POLL */