From 56cdea1aa1a4948a5e85c4037194ccdc6267dd70 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Tue, 24 May 2011 12:32:43 +0430 Subject: [PATCH] poll.h: added --- poll.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 poll.h diff --git a/poll.h b/poll.h new file mode 100644 index 0000000..e7cdd22 --- /dev/null +++ b/poll.h @@ -0,0 +1,21 @@ +#define POLLIN 0x0001 +#define POLLPRI 0x0002 +#define POLLOUT 0x0004 +#define POLLERR 0x0008 +#define POLLHUP 0x0010 +#define POLLNVAL 0x0020 +#define POLLRDNORM 0x0040 +#define POLLRDBAND 0x0080 +#define POLLWRBAND 0x0200 +#define POLLMSG 0x0400 +#define POLLREMOVE 0x1000 + +struct pollfd { + int fd; + short events; + short revents; +}; + +typedef unsigned int nfds_t; + +extern int poll(struct pollfd *ufds, nfds_t nfds, int timeout); -- 2.11.4.GIT