Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #ifndef _UAPI_LINUX_EVENTPOLL_H |
| 20 | #define _UAPI_LINUX_EVENTPOLL_H |
Elliott Hughes | 64f355f | 2017-08-30 16:10:24 -0700 | [diff] [blame] | 21 | #include <bits/epoll_event.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 22 | #include <linux/fcntl.h> |
| 23 | #include <linux/types.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | #define EPOLL_CLOEXEC O_CLOEXEC |
| 25 | #define EPOLL_CTL_ADD 1 |
| 26 | #define EPOLL_CTL_DEL 2 |
| 27 | #define EPOLL_CTL_MOD 3 |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 28 | #define EPOLLIN (__force __poll_t) 0x00000001 |
| 29 | #define EPOLLPRI (__force __poll_t) 0x00000002 |
| 30 | #define EPOLLOUT (__force __poll_t) 0x00000004 |
| 31 | #define EPOLLERR (__force __poll_t) 0x00000008 |
| 32 | #define EPOLLHUP (__force __poll_t) 0x00000010 |
| 33 | #define EPOLLNVAL (__force __poll_t) 0x00000020 |
| 34 | #define EPOLLRDNORM (__force __poll_t) 0x00000040 |
| 35 | #define EPOLLRDBAND (__force __poll_t) 0x00000080 |
| 36 | #define EPOLLWRNORM (__force __poll_t) 0x00000100 |
| 37 | #define EPOLLWRBAND (__force __poll_t) 0x00000200 |
| 38 | #define EPOLLMSG (__force __poll_t) 0x00000400 |
| 39 | #define EPOLLRDHUP (__force __poll_t) 0x00002000 |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 40 | #define EPOLLEXCLUSIVE ((__force __poll_t) (1U << 28)) |
| 41 | #define EPOLLWAKEUP ((__force __poll_t) (1U << 29)) |
| 42 | #define EPOLLONESHOT ((__force __poll_t) (1U << 30)) |
| 43 | #define EPOLLET ((__force __poll_t) (1U << 31)) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 44 | #ifdef __x86_64__ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | #define EPOLL_PACKED __attribute__((packed)) |
| 46 | #else |
| 47 | #define EPOLL_PACKED |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 48 | #endif |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 49 | #endif |