Path: blob/main/contrib/llvm-project/libc/include/llvm-libc-macros/linux/sys-epoll-macros.h
213799 views
//===-- Macros defined in sys/epoll.h header file -------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H9#define LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H1011#include "fcntl-macros.h"1213// These are also defined in <linux/eventpoll.h> but that also contains a14// different definition of the epoll_event struct that is different from the15// userspace version.1617#define EPOLL_CLOEXEC O_CLOEXEC1819#define EPOLL_CTL_ADD 120#define EPOLL_CTL_DEL 221#define EPOLL_CTL_MOD 32223#define EPOLLIN 0x124#define EPOLLPRI 0x225#define EPOLLOUT 0x426#define EPOLLERR 0x827#define EPOLLHUP 0x1028#define EPOLLRDNORM 0x4029#define EPOLLRDBAND 0x8030#define EPOLLWRNORM 0x10031#define EPOLLWRBAND 0x20032#define EPOLLMSG 0x40033#define EPOLLRDHUP 0x200034#define EPOLLEXCLUSIVE 0x1000000035#define EPOLLWAKEUP 0x2000000036#define EPOLLONESHOT 0x4000000037#define EPOLLET 0x800000003839#endif // LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H404142