Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | //===-- Macros defined in sys/epoll.h header file -------------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H |
| 10 | #define LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H |
| 11 | |
| 12 | #include "fcntl-macros.h" |
| 13 | |
| 14 | // These are also defined in <linux/eventpoll.h> but that also contains a |
| 15 | // different definition of the epoll_event struct that is different from the |
| 16 | // userspace version. |
| 17 | |
| 18 | #define EPOLL_CLOEXEC O_CLOEXEC |
| 19 | |
| 20 | #define EPOLL_CTL_ADD 1 |
| 21 | #define EPOLL_CTL_DEL 2 |
| 22 | #define EPOLL_CTL_MOD 3 |
| 23 | |
| 24 | #define EPOLLIN 0x1 |
| 25 | #define EPOLLPRI 0x2 |
| 26 | #define EPOLLOUT 0x4 |
| 27 | #define EPOLLERR 0x8 |
| 28 | #define EPOLLHUP 0x10 |
| 29 | #define EPOLLRDNORM 0x40 |
| 30 | #define EPOLLRDBAND 0x80 |
| 31 | #define EPOLLWRNORM 0x100 |
| 32 | #define EPOLLWRBAND 0x200 |
| 33 | #define EPOLLMSG 0x400 |
| 34 | #define EPOLLRDHUP 0x2000 |
| 35 | #define EPOLLEXCLUSIVE 0x10000000 |
| 36 | #define EPOLLWAKEUP 0x20000000 |
| 37 | #define EPOLLONESHOT 0x40000000 |
| 38 | #define EPOLLET 0x80000000 |
| 39 | |
| 40 | #endif // LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H |
| 41 |
Warning: This file is not a C or C++ file. It does not have highlighting.
