1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef __ASM_GENERIC_POLL_H
8 #define __ASM_GENERIC_POLL_H
9 #define POLLIN 0x0001
10 #define POLLPRI 0x0002
11 #define POLLOUT 0x0004
12 #define POLLERR 0x0008
13 #define POLLHUP 0x0010
14 #define POLLNVAL 0x0020
15 #define POLLRDNORM 0x0040
16 #define POLLRDBAND 0x0080
17 #ifndef POLLWRNORM
18 #define POLLWRNORM 0x0100
19 #endif
20 #ifndef POLLWRBAND
21 #define POLLWRBAND 0x0200
22 #endif
23 #ifndef POLLMSG
24 #define POLLMSG 0x0400
25 #endif
26 #ifndef POLLREMOVE
27 #define POLLREMOVE 0x1000
28 #endif
29 #ifndef POLLRDHUP
30 #define POLLRDHUP 0x2000
31 #endif
32 #define POLLFREE ( __poll_t) 0x4000
33 #define POLL_BUSY_LOOP ( __poll_t) 0x8000
34 struct pollfd {
35   int fd;
36   short events;
37   short revents;
38 };
39 #endif
40