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 ****************************************************************************/ 19#ifndef _UAPI_LINUX_EVENTPOLL_H 20#define _UAPI_LINUX_EVENTPOLL_H 21#include <bits/epoll_event.h> 22#include <linux/fcntl.h> 23#include <linux/types.h> 24#define EPOLL_CLOEXEC O_CLOEXEC 25#define EPOLL_CTL_ADD 1 26#define EPOLL_CTL_DEL 2 27#define EPOLL_CTL_MOD 3 28#define EPOLLIN 0x00000001 29#define EPOLLPRI 0x00000002 30#define EPOLLOUT 0x00000004 31#define EPOLLERR 0x00000008 32#define EPOLLHUP 0x00000010 33#define EPOLLRDNORM 0x00000040 34#define EPOLLRDBAND 0x00000080 35#define EPOLLWRNORM 0x00000100 36#define EPOLLWRBAND 0x00000200 37#define EPOLLMSG 0x00000400 38#define EPOLLRDHUP 0x00002000 39#define EPOLLEXCLUSIVE (1U << 28) 40#define EPOLLWAKEUP (1U << 29) 41#define EPOLLONESHOT (1U << 30) 42#define EPOLLET (1U << 31) 43#ifdef __x86_64__ 44#define EPOLL_PACKED __attribute__((packed)) 45#else 46#define EPOLL_PACKED 47#endif 48#endif 49