1 #ifndef __wasilibc___header_poll_h
2 #define __wasilibc___header_poll_h
3 
4 #include <__struct_pollfd.h>
5 #include <__typedef_nfds_t.h>
6 
7 #define POLLRDNORM 0x1
8 #define POLLWRNORM 0x2
9 
10 #define POLLIN POLLRDNORM
11 #define POLLOUT POLLWRNORM
12 
13 #define POLLERR 0x1000
14 #define POLLHUP 0x2000
15 #define POLLNVAL 0x4000
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 int poll(struct pollfd[], nfds_t, int);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif
28