brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · d6724c5 Raw
66 lines · c
1//===-- Macros defined in poll.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_POLL_MACROS_H10#define LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H11 12// From asm-generic/poll.h, redefined here to avoid redeclaring struct pollfd.13#ifndef POLLIN14#define POLLIN 0x000115#endif16 17#ifndef POLLPRI18#define POLLPRI 0x000219#endif20 21#ifndef POLLOUT22#define POLLOUT 0x000423#endif24 25#ifndef POLLERR26#define POLLERR 0x000827#endif28 29#ifndef POLLHUP30#define POLLHUP 0x001031#endif32 33#ifndef POLLNVAL34#define POLLNVAL 0x002035#endif36 37#ifndef POLLRDNORM38#define POLLRDNORM 0x004039#endif40 41#ifndef POLLRDBAND42#define POLLRDBAND 0x008043#endif44 45#ifndef POLLWRNORM46#define POLLWRNORM 0x010047#endif48 49#ifndef POLLWRBAND50#define POLLWRBAND 0x020051#endif52 53#ifndef POLLMSG54#define POLLMSG 0x040055#endif56 57#ifndef POLLREMOVE58#define POLLREMOVE 0x100059#endif60 61#ifndef POLLRDHUP62#define POLLRDHUP 0x200063#endif64 65#endif // LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H66