1 /* Generated by ./xlat/gen.sh from ./xlat/epollevents.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(EPOLLIN) || (defined(HAVE_DECL_EPOLLIN) && HAVE_DECL_EPOLLIN) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((EPOLLIN) == (0x00000001), "EPOLLIN != 0x00000001"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define EPOLLIN 0x00000001 12 #endif 13 #if defined(EPOLLPRI) || (defined(HAVE_DECL_EPOLLPRI) && HAVE_DECL_EPOLLPRI) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((EPOLLPRI) == (0x00000002), "EPOLLPRI != 0x00000002"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define EPOLLPRI 0x00000002 19 #endif 20 #if defined(EPOLLOUT) || (defined(HAVE_DECL_EPOLLOUT) && HAVE_DECL_EPOLLOUT) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((EPOLLOUT) == (0x00000004), "EPOLLOUT != 0x00000004"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define EPOLLOUT 0x00000004 26 #endif 27 #if defined(EPOLLERR) || (defined(HAVE_DECL_EPOLLERR) && HAVE_DECL_EPOLLERR) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((EPOLLERR) == (0x00000008), "EPOLLERR != 0x00000008"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define EPOLLERR 0x00000008 33 #endif 34 #if defined(EPOLLHUP) || (defined(HAVE_DECL_EPOLLHUP) && HAVE_DECL_EPOLLHUP) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((EPOLLHUP) == (0x00000010), "EPOLLHUP != 0x00000010"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define EPOLLHUP 0x00000010 40 #endif 41 #if defined(EPOLLNVAL) || (defined(HAVE_DECL_EPOLLNVAL) && HAVE_DECL_EPOLLNVAL) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((EPOLLNVAL) == (0x00000020), "EPOLLNVAL != 0x00000020"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define EPOLLNVAL 0x00000020 47 #endif 48 #if defined(EPOLLRDNORM) || (defined(HAVE_DECL_EPOLLRDNORM) && HAVE_DECL_EPOLLRDNORM) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((EPOLLRDNORM) == (0x00000040), "EPOLLRDNORM != 0x00000040"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define EPOLLRDNORM 0x00000040 54 #endif 55 #if defined(EPOLLRDBAND) || (defined(HAVE_DECL_EPOLLRDBAND) && HAVE_DECL_EPOLLRDBAND) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((EPOLLRDBAND) == (0x00000080), "EPOLLRDBAND != 0x00000080"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define EPOLLRDBAND 0x00000080 61 #endif 62 #if defined(EPOLLWRNORM) || (defined(HAVE_DECL_EPOLLWRNORM) && HAVE_DECL_EPOLLWRNORM) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((EPOLLWRNORM) == (0x00000100), "EPOLLWRNORM != 0x00000100"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define EPOLLWRNORM 0x00000100 68 #endif 69 #if defined(EPOLLWRBAND) || (defined(HAVE_DECL_EPOLLWRBAND) && HAVE_DECL_EPOLLWRBAND) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((EPOLLWRBAND) == (0x00000200), "EPOLLWRBAND != 0x00000200"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define EPOLLWRBAND 0x00000200 75 #endif 76 #if defined(EPOLLMSG) || (defined(HAVE_DECL_EPOLLMSG) && HAVE_DECL_EPOLLMSG) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((EPOLLMSG) == (0x00000400), "EPOLLMSG != 0x00000400"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define EPOLLMSG 0x00000400 82 #endif 83 #if defined(EPOLLRDHUP) || (defined(HAVE_DECL_EPOLLRDHUP) && HAVE_DECL_EPOLLRDHUP) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((EPOLLRDHUP) == (0x00002000), "EPOLLRDHUP != 0x00002000"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define EPOLLRDHUP 0x00002000 89 #endif 90 #if defined(EPOLLEXCLUSIVE) || (defined(HAVE_DECL_EPOLLEXCLUSIVE) && HAVE_DECL_EPOLLEXCLUSIVE) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((EPOLLEXCLUSIVE) == (0x10000000), "EPOLLEXCLUSIVE != 0x10000000"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define EPOLLEXCLUSIVE 0x10000000 96 #endif 97 #if defined(EPOLLWAKEUP) || (defined(HAVE_DECL_EPOLLWAKEUP) && HAVE_DECL_EPOLLWAKEUP) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((EPOLLWAKEUP) == (0x20000000), "EPOLLWAKEUP != 0x20000000"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define EPOLLWAKEUP 0x20000000 103 #endif 104 #if defined(EPOLLONESHOT) || (defined(HAVE_DECL_EPOLLONESHOT) && HAVE_DECL_EPOLLONESHOT) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((EPOLLONESHOT) == (0x40000000), "EPOLLONESHOT != 0x40000000"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define EPOLLONESHOT 0x40000000 110 #endif 111 #if defined(EPOLLET) || (defined(HAVE_DECL_EPOLLET) && HAVE_DECL_EPOLLET) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((EPOLLET) == (0x80000000), "EPOLLET != 0x80000000"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define EPOLLET 0x80000000 117 #endif 118 119 #ifndef XLAT_MACROS_ONLY 120 121 # ifdef IN_MPERS 122 123 # error static const struct xlat epollevents in mpers mode 124 125 # else 126 127 static 128 const struct xlat epollevents[] = { 129 XLAT(EPOLLIN), 130 XLAT(EPOLLPRI), 131 XLAT(EPOLLOUT), 132 XLAT(EPOLLERR), 133 XLAT(EPOLLHUP), 134 XLAT(EPOLLNVAL), 135 XLAT(EPOLLRDNORM), 136 XLAT(EPOLLRDBAND), 137 XLAT(EPOLLWRNORM), 138 XLAT(EPOLLWRBAND), 139 XLAT(EPOLLMSG), 140 XLAT(EPOLLRDHUP), 141 XLAT(EPOLLEXCLUSIVE), 142 XLAT(EPOLLWAKEUP), 143 XLAT(EPOLLONESHOT), 144 XLAT(EPOLLET), 145 XLAT_END 146 }; 147 148 # endif /* !IN_MPERS */ 149 150 #endif /* !XLAT_MACROS_ONLY */ 151