]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - subst_poll.h
[svn-inject] Installing original source of spamass-milter
[deb_pkgs/spamass-milter.git] / subst_poll.h
1 #ifndef _SUBST_POLL_H
2 #define _SUBST_POLL_H
3
4 /* $Id: subst_poll.h,v 1.2 2003/03/06 21:40:49 dnelson Exp $ */
5
6 struct pollfd {
7   int fd;
8   short int events;
9   short int revents;
10 };
11
12 enum { POLLIN = 1, POLLPRI = 2, POLLOUT = 4,
13        POLLERR = 8, POLLHUP = 16, POLLNVAL = 32 };
14
15 #ifdef  __cplusplus
16 extern "C" {
17 #endif
18 int poll(struct pollfd *fds, unsigned long nfds, int timeout);
19 #ifdef  __cplusplus
20 }
21 #endif
22
23 #endif