brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · f73d690 Raw
41 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H10#define LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H11 12#include "fcntl-macros.h"13 14// These are also defined in <linux/eventpoll.h> but that also contains a15// different definition of the epoll_event struct that is different from the16// userspace version.17 18#define EPOLL_CLOEXEC O_CLOEXEC19 20#define EPOLL_CTL_ADD 121#define EPOLL_CTL_DEL 222#define EPOLL_CTL_MOD 323 24#define EPOLLIN 0x125#define EPOLLPRI 0x226#define EPOLLOUT 0x427#define EPOLLERR 0x828#define EPOLLHUP 0x1029#define EPOLLRDNORM 0x4030#define EPOLLRDBAND 0x8031#define EPOLLWRNORM 0x10032#define EPOLLWRBAND 0x20033#define EPOLLMSG 0x40034#define EPOLLRDHUP 0x200035#define EPOLLEXCLUSIVE 0x1000000036#define EPOLLWAKEUP 0x2000000037#define EPOLLONESHOT 0x4000000038#define EPOLLET 0x8000000039 40#endif // LLVM_LIBC_MACROS_LINUX_SYS_EPOLL_MACROS_H41