122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef _UAPI_LINUX_EVENTPOLL_H 2022851890Sopenharmony_ci#define _UAPI_LINUX_EVENTPOLL_H 2122851890Sopenharmony_ci 2222851890Sopenharmony_ci#include <linux/fcntl.h> 2322851890Sopenharmony_ci#include <linux/types.h> 2422851890Sopenharmony_ci#define EPOLL_CLOEXEC O_CLOEXEC 2522851890Sopenharmony_ci#define EPOLL_CTL_ADD 1 2622851890Sopenharmony_ci#define EPOLL_CTL_DEL 2 2722851890Sopenharmony_ci#define EPOLL_CTL_MOD 3 2822851890Sopenharmony_ci#define EPOLLIN (__force __poll_t) 0x00000001 2922851890Sopenharmony_ci#define EPOLLPRI (__force __poll_t) 0x00000002 3022851890Sopenharmony_ci#define EPOLLOUT (__force __poll_t) 0x00000004 3122851890Sopenharmony_ci#define EPOLLERR (__force __poll_t) 0x00000008 3222851890Sopenharmony_ci#define EPOLLHUP (__force __poll_t) 0x00000010 3322851890Sopenharmony_ci#define EPOLLNVAL (__force __poll_t) 0x00000020 3422851890Sopenharmony_ci#define EPOLLRDNORM (__force __poll_t) 0x00000040 3522851890Sopenharmony_ci#define EPOLLRDBAND (__force __poll_t) 0x00000080 3622851890Sopenharmony_ci#define EPOLLWRNORM (__force __poll_t) 0x00000100 3722851890Sopenharmony_ci#define EPOLLWRBAND (__force __poll_t) 0x00000200 3822851890Sopenharmony_ci#define EPOLLMSG (__force __poll_t) 0x00000400 3922851890Sopenharmony_ci#define EPOLLRDHUP (__force __poll_t) 0x00002000 4022851890Sopenharmony_ci#define EPOLLEXCLUSIVE ((__force __poll_t) (1U << 28)) 4122851890Sopenharmony_ci#define EPOLLWAKEUP ((__force __poll_t) (1U << 29)) 4222851890Sopenharmony_ci#define EPOLLONESHOT ((__force __poll_t) (1U << 30)) 4322851890Sopenharmony_ci#define EPOLLET ((__force __poll_t) (1U << 31)) 4422851890Sopenharmony_ci#ifdef __x86_64__ 4522851890Sopenharmony_ci#define EPOLL_PACKED __attribute__((packed)) 4622851890Sopenharmony_ci#else 4722851890Sopenharmony_ci#define EPOLL_PACKED 4822851890Sopenharmony_ci#endif 4922851890Sopenharmony_cistruct epoll_event { 5022851890Sopenharmony_ci __poll_t events; 5122851890Sopenharmony_ci __u64 data; 5222851890Sopenharmony_ci} EPOLL_PACKED; 5322851890Sopenharmony_ci#endif 54