1 /* Generated by ./xlat/gen.sh from ./xlat/pollflags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(POLLIN) || (defined(HAVE_DECL_POLLIN) && HAVE_DECL_POLLIN) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((POLLIN) == (0x0001), "POLLIN != 0x0001"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define POLLIN 0x0001 12 #endif 13 #if defined(POLLPRI) || (defined(HAVE_DECL_POLLPRI) && HAVE_DECL_POLLPRI) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((POLLPRI) == (0x0002), "POLLPRI != 0x0002"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define POLLPRI 0x0002 19 #endif 20 #if defined(POLLOUT) || (defined(HAVE_DECL_POLLOUT) && HAVE_DECL_POLLOUT) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((POLLOUT) == (0x0004), "POLLOUT != 0x0004"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define POLLOUT 0x0004 26 #endif 27 #if defined(POLLERR) || (defined(HAVE_DECL_POLLERR) && HAVE_DECL_POLLERR) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((POLLERR) == (0x0008), "POLLERR != 0x0008"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define POLLERR 0x0008 33 #endif 34 #if defined(POLLHUP) || (defined(HAVE_DECL_POLLHUP) && HAVE_DECL_POLLHUP) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((POLLHUP) == (0x0010), "POLLHUP != 0x0010"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define POLLHUP 0x0010 40 #endif 41 #if defined(POLLNVAL) || (defined(HAVE_DECL_POLLNVAL) && HAVE_DECL_POLLNVAL) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((POLLNVAL) == (0x0020), "POLLNVAL != 0x0020"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define POLLNVAL 0x0020 47 #endif 48 #if defined(POLLRDNORM) || (defined(HAVE_DECL_POLLRDNORM) && HAVE_DECL_POLLRDNORM) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((POLLRDNORM) == (0x0040), "POLLRDNORM != 0x0040"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define POLLRDNORM 0x0040 54 #endif 55 #if defined(POLLRDBAND) || (defined(HAVE_DECL_POLLRDBAND) && HAVE_DECL_POLLRDBAND) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((POLLRDBAND) == (0x0080), "POLLRDBAND != 0x0080"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define POLLRDBAND 0x0080 61 #endif 62 #if defined(__m68k__) || defined(__mips__) || defined(__sparc__) || defined(__xtensa__) 63 #else 64 #if defined(POLLWRNORM) || (defined(HAVE_DECL_POLLWRNORM) && HAVE_DECL_POLLWRNORM) 65 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 66 static_assert((POLLWRNORM) == (0x0100), "POLLWRNORM != 0x0100"); 67 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 68 #else 69 # define POLLWRNORM 0x0100 70 #endif 71 #endif 72 #if defined(__m68k__) || defined(__mips__) || defined(__sparc__) || defined(__xtensa__) 73 #if defined(POLLWRBAND) || (defined(HAVE_DECL_POLLWRBAND) && HAVE_DECL_POLLWRBAND) 74 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 75 static_assert((POLLWRBAND) == (0x0100), "POLLWRBAND != 0x0100"); 76 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 77 #else 78 # define POLLWRBAND 0x0100 79 #endif 80 #else 81 #if defined(POLLWRBAND) || (defined(HAVE_DECL_POLLWRBAND) && HAVE_DECL_POLLWRBAND) 82 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 83 static_assert((POLLWRBAND) == (0x0200), "POLLWRBAND != 0x0200"); 84 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 85 #else 86 # define POLLWRBAND 0x0200 87 #endif 88 #endif 89 #if defined(__sparc__) 90 #if defined(POLLMSG) || (defined(HAVE_DECL_POLLMSG) && HAVE_DECL_POLLMSG) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((POLLMSG) == (0x0200), "POLLMSG != 0x0200"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define POLLMSG 0x0200 96 #endif 97 #else 98 #if defined(POLLMSG) || (defined(HAVE_DECL_POLLMSG) && HAVE_DECL_POLLMSG) 99 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 100 static_assert((POLLMSG) == (0x0400), "POLLMSG != 0x0400"); 101 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 102 #else 103 # define POLLMSG 0x0400 104 #endif 105 #endif 106 #if defined(__sparc__) 107 #if defined(POLLREMOVE) || (defined(HAVE_DECL_POLLREMOVE) && HAVE_DECL_POLLREMOVE) 108 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 109 static_assert((POLLREMOVE) == (0x0400), "POLLREMOVE != 0x0400"); 110 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 111 #else 112 # define POLLREMOVE 0x0400 113 #endif 114 #elif defined(__xtensa__) 115 #if defined(POLLREMOVE) || (defined(HAVE_DECL_POLLREMOVE) && HAVE_DECL_POLLREMOVE) 116 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 117 static_assert((POLLREMOVE) == (0x0800), "POLLREMOVE != 0x0800"); 118 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 119 #else 120 # define POLLREMOVE 0x0800 121 #endif 122 #else 123 #if defined(POLLREMOVE) || (defined(HAVE_DECL_POLLREMOVE) && HAVE_DECL_POLLREMOVE) 124 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 125 static_assert((POLLREMOVE) == (0x1000), "POLLREMOVE != 0x1000"); 126 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 127 #else 128 # define POLLREMOVE 0x1000 129 #endif 130 #endif 131 #if defined(__sparc__) 132 #if defined(POLLRDHUP) || (defined(HAVE_DECL_POLLRDHUP) && HAVE_DECL_POLLRDHUP) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((POLLRDHUP) == (0x0800), "POLLRDHUP != 0x0800"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define POLLRDHUP 0x0800 138 #endif 139 #else 140 #if defined(POLLRDHUP) || (defined(HAVE_DECL_POLLRDHUP) && HAVE_DECL_POLLRDHUP) 141 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 142 static_assert((POLLRDHUP) == (0x2000), "POLLRDHUP != 0x2000"); 143 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 144 #else 145 # define POLLRDHUP 0x2000 146 #endif 147 #endif 148 #if defined(POLL_BUSY_LOOP) || (defined(HAVE_DECL_POLL_BUSY_LOOP) && HAVE_DECL_POLL_BUSY_LOOP) 149 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 150 static_assert((POLL_BUSY_LOOP) == (0x8000), "POLL_BUSY_LOOP != 0x8000"); 151 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 152 #else 153 # define POLL_BUSY_LOOP 0x8000 154 #endif 155 156 #ifndef XLAT_MACROS_ONLY 157 158 # ifdef IN_MPERS 159 160 # error static const struct xlat pollflags in mpers mode 161 162 # else 163 164 static 165 const struct xlat pollflags[] = { 166 XLAT(POLLIN), 167 XLAT(POLLPRI), 168 XLAT(POLLOUT), 169 XLAT(POLLERR), 170 XLAT(POLLHUP), 171 XLAT(POLLNVAL), 172 XLAT(POLLRDNORM), 173 XLAT(POLLRDBAND), 174 175 #if defined(__m68k__) || defined(__mips__) || defined(__sparc__) || defined(__xtensa__) 176 177 #else 178 XLAT(POLLWRNORM), 179 #endif 180 181 #if defined(__m68k__) || defined(__mips__) || defined(__sparc__) || defined(__xtensa__) 182 XLAT(POLLWRBAND), 183 #else 184 XLAT(POLLWRBAND), 185 #endif 186 187 #if defined(__sparc__) 188 XLAT(POLLMSG), 189 #else 190 XLAT(POLLMSG), 191 #endif 192 193 #if defined(__sparc__) 194 XLAT(POLLREMOVE), 195 #elif defined(__xtensa__) 196 XLAT(POLLREMOVE), 197 #else 198 XLAT(POLLREMOVE), 199 #endif 200 201 #if defined(__sparc__) 202 XLAT(POLLRDHUP), 203 #else 204 XLAT(POLLRDHUP), 205 #endif 206 207 XLAT(POLL_BUSY_LOOP), 208 XLAT_END 209 }; 210 211 # endif /* !IN_MPERS */ 212 213 #endif /* !XLAT_MACROS_ONLY */ 214