#ifndef _POLL_H
#define _POLL_H
#include <signal.h>
#include <sys/time.h>
typedef unsigned long nfds_t;
struct pollfd {
int fd;
short events;
short revents;
};
#define POLLIN 0x0001
#define POLLOUT 0x0002
#define POLLRDNORM POLLIN
#define POLLWRNORM POLLOUT
#define POLLRDBAND 0x0008
#define POLLWRBAND 0x0010
#define POLLPRI 0x0020
#define POLLERR 0x0004
#define POLLHUP 0x0080
#define POLLNVAL 0x1000
#ifdef __cplusplus
extern "C" {
#endif
extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
extern int ppoll(struct pollfd *fds, nfds_t numfds,
const struct timespec *timeout, const sigset_t *sigMask);
#ifdef __cplusplus
}
#endif
#endif