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