Watt-32 tcp/ip  2.2 dev-rel.10
poll.h
Go to the documentation of this file.
1 
4 #ifndef __SYS_POLL_H
5 #define __SYS_POLL_H
6 
7 #define POLLIN 0x0001
8 #define POLLPRI 0x0002 /* not used */
9 #define POLLOUT 0x0004
10 #define POLLERR 0x0008
11 #define POLLHUP 0x0010 /* not used */
12 #define POLLNVAL 0x0020 /* not used */
13 
14 struct pollfd {
15  int fd;
16  int events; /* in param: what to poll for */
17  int revents; /* out param: what events occured */
18  };
19 
20 extern int poll (struct pollfd *p, int num, int timeout);
21 
22 #endif
Definition: poll.h:14