blob: de4c1f1c22189d75390f64ec0ee927f332da28e3 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI_LINUX_EVENTPOLL_H
20#define _UAPI_LINUX_EVENTPOLL_H
Elliott Hughes64f355f2017-08-30 16:10:24 -070021#include <bits/epoll_event.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022#include <linux/fcntl.h>
23#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070024#define EPOLL_CLOEXEC O_CLOEXEC
25#define EPOLL_CTL_ADD 1
26#define EPOLL_CTL_DEL 2
27#define EPOLL_CTL_MOD 3
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070028#define EPOLLIN ( __poll_t) 0x00000001
29#define EPOLLPRI ( __poll_t) 0x00000002
30#define EPOLLOUT ( __poll_t) 0x00000004
31#define EPOLLERR ( __poll_t) 0x00000008
32#define EPOLLHUP ( __poll_t) 0x00000010
33#define EPOLLNVAL ( __poll_t) 0x00000020
34#define EPOLLRDNORM ( __poll_t) 0x00000040
35#define EPOLLRDBAND ( __poll_t) 0x00000080
36#define EPOLLWRNORM ( __poll_t) 0x00000100
37#define EPOLLWRBAND ( __poll_t) 0x00000200
38#define EPOLLMSG ( __poll_t) 0x00000400
39#define EPOLLRDHUP ( __poll_t) 0x00002000
40#define EPOLL_URING_WAKE (( __poll_t) (1U << 27))
41#define EPOLLEXCLUSIVE (( __poll_t) (1U << 28))
42#define EPOLLWAKEUP (( __poll_t) (1U << 29))
43#define EPOLLONESHOT (( __poll_t) (1U << 30))
44#define EPOLLET (( __poll_t) (1U << 31))
Christopher Ferris106b3a82016-08-24 12:15:38 -070045#ifdef __x86_64__
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define EPOLL_PACKED __attribute__((packed))
47#else
48#define EPOLL_PACKED
Christopher Ferris106b3a82016-08-24 12:15:38 -070049#endif
Nick Kralevicha67e4de2013-01-14 11:28:26 -080050#endif