Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef __ASM_GENERIC_POLL_H |
| 8 | #define __ASM_GENERIC_POLL_H |
| 9 | #define POLLIN 0x0001 |
| 10 | #define POLLPRI 0x0002 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define POLLOUT 0x0004 |
| 12 | #define POLLERR 0x0008 |
| 13 | #define POLLHUP 0x0010 |
| 14 | #define POLLNVAL 0x0020 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define POLLRDNORM 0x0040 |
| 16 | #define POLLRDBAND 0x0080 |
| 17 | #ifndef POLLWRNORM |
| 18 | #define POLLWRNORM 0x0100 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #endif |
| 20 | #ifndef POLLWRBAND |
| 21 | #define POLLWRBAND 0x0200 |
| 22 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #ifndef POLLMSG |
| 24 | #define POLLMSG 0x0400 |
| 25 | #endif |
| 26 | #ifndef POLLREMOVE |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define POLLREMOVE 0x1000 |
| 28 | #endif |
| 29 | #ifndef POLLRDHUP |
| 30 | #define POLLRDHUP 0x2000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #endif |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 32 | #define POLLFREE ( __poll_t) 0x4000 |
| 33 | #define POLL_BUSY_LOOP ( __poll_t) 0x8000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | struct pollfd { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | int fd; |
| 36 | short events; |
| 37 | short revents; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | }; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 39 | #endif |