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 _UAPI_LINUX_EVENTPOLL_H |
| 8 | #define _UAPI_LINUX_EVENTPOLL_H |
Elliott Hughes | 64f355f | 2017-08-30 16:10:24 -0700 | [diff] [blame] | 9 | #include <bits/epoll_event.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 10 | #include <linux/fcntl.h> |
| 11 | #include <linux/types.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #define EPOLL_CLOEXEC O_CLOEXEC |
| 13 | #define EPOLL_CTL_ADD 1 |
| 14 | #define EPOLL_CTL_DEL 2 |
| 15 | #define EPOLL_CTL_MOD 3 |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 16 | #define EPOLLIN ( __poll_t) 0x00000001 |
| 17 | #define EPOLLPRI ( __poll_t) 0x00000002 |
| 18 | #define EPOLLOUT ( __poll_t) 0x00000004 |
| 19 | #define EPOLLERR ( __poll_t) 0x00000008 |
| 20 | #define EPOLLHUP ( __poll_t) 0x00000010 |
| 21 | #define EPOLLNVAL ( __poll_t) 0x00000020 |
| 22 | #define EPOLLRDNORM ( __poll_t) 0x00000040 |
| 23 | #define EPOLLRDBAND ( __poll_t) 0x00000080 |
| 24 | #define EPOLLWRNORM ( __poll_t) 0x00000100 |
| 25 | #define EPOLLWRBAND ( __poll_t) 0x00000200 |
| 26 | #define EPOLLMSG ( __poll_t) 0x00000400 |
| 27 | #define EPOLLRDHUP ( __poll_t) 0x00002000 |
| 28 | #define EPOLL_URING_WAKE (( __poll_t) (1U << 27)) |
| 29 | #define EPOLLEXCLUSIVE (( __poll_t) (1U << 28)) |
| 30 | #define EPOLLWAKEUP (( __poll_t) (1U << 29)) |
| 31 | #define EPOLLONESHOT (( __poll_t) (1U << 30)) |
| 32 | #define EPOLLET (( __poll_t) (1U << 31)) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 33 | #ifdef __x86_64__ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | #define EPOLL_PACKED __attribute__((packed)) |
| 35 | #else |
| 36 | #define EPOLL_PACKED |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 37 | #endif |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 38 | #endif |