Path: blob/main/contrib/llvm-project/libc/include/llvm-libc-macros/linux/poll-macros.h
213799 views
//===-- Macros defined in poll.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_POLL_MACROS_H9#define LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H1011// From asm-generic/poll.h, redefined here to avoid redeclaring struct pollfd.12#ifndef POLLIN13#define POLLIN 0x000114#endif1516#ifndef POLLPRI17#define POLLPRI 0x000218#endif1920#ifndef POLLOUT21#define POLLOUT 0x000422#endif2324#ifndef POLLERR25#define POLLERR 0x000826#endif2728#ifndef POLLHUP29#define POLLHUP 0x001030#endif3132#ifndef POLLNVAL33#define POLLNVAL 0x002034#endif3536#ifndef POLLRDNORM37#define POLLRDNORM 0x004038#endif3940#ifndef POLLRDBAND41#define POLLRDBAND 0x008042#endif4344#ifndef POLLWRNORM45#define POLLWRNORM 0x010046#endif4748#ifndef POLLWRBAND49#define POLLWRBAND 0x020050#endif5152#ifndef POLLMSG53#define POLLMSG 0x040054#endif5556#ifndef POLLREMOVE57#define POLLREMOVE 0x100058#endif5960#ifndef POLLRDHUP61#define POLLRDHUP 0x200062#endif6364#endif // LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H656667