Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/libc/include/llvm-libc-macros/linux/poll-macros.h
213799 views
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-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H
10
#define LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H
11
12
// From asm-generic/poll.h, redefined here to avoid redeclaring struct pollfd.
13
#ifndef POLLIN
14
#define POLLIN 0x0001
15
#endif
16
17
#ifndef POLLPRI
18
#define POLLPRI 0x0002
19
#endif
20
21
#ifndef POLLOUT
22
#define POLLOUT 0x0004
23
#endif
24
25
#ifndef POLLERR
26
#define POLLERR 0x0008
27
#endif
28
29
#ifndef POLLHUP
30
#define POLLHUP 0x0010
31
#endif
32
33
#ifndef POLLNVAL
34
#define POLLNVAL 0x0020
35
#endif
36
37
#ifndef POLLRDNORM
38
#define POLLRDNORM 0x0040
39
#endif
40
41
#ifndef POLLRDBAND
42
#define POLLRDBAND 0x0080
43
#endif
44
45
#ifndef POLLWRNORM
46
#define POLLWRNORM 0x0100
47
#endif
48
49
#ifndef POLLWRBAND
50
#define POLLWRBAND 0x0200
51
#endif
52
53
#ifndef POLLMSG
54
#define POLLMSG 0x0400
55
#endif
56
57
#ifndef POLLREMOVE
58
#define POLLREMOVE 0x1000
59
#endif
60
61
#ifndef POLLRDHUP
62
#define POLLRDHUP 0x2000
63
#endif
64
65
#endif // LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H
66
67