1 /* Generated by ./xlat/gen.sh from ./xlat/quotacmds.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(Q_V1_QUOTAON) || (defined(HAVE_DECL_Q_V1_QUOTAON) && HAVE_DECL_Q_V1_QUOTAON) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((Q_V1_QUOTAON) == (OLD_CMD(0x1)), "Q_V1_QUOTAON != OLD_CMD(0x1)"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define Q_V1_QUOTAON OLD_CMD(0x1) 12 #endif 13 #if defined(Q_V1_QUOTAOFF) || (defined(HAVE_DECL_Q_V1_QUOTAOFF) && HAVE_DECL_Q_V1_QUOTAOFF) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((Q_V1_QUOTAOFF) == (OLD_CMD(0x2)), "Q_V1_QUOTAOFF != OLD_CMD(0x2)"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define Q_V1_QUOTAOFF OLD_CMD(0x2) 19 #endif 20 #if defined(Q_V1_GETQUOTA) || (defined(HAVE_DECL_Q_V1_GETQUOTA) && HAVE_DECL_Q_V1_GETQUOTA) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((Q_V1_GETQUOTA) == (OLD_CMD(0x3)), "Q_V1_GETQUOTA != OLD_CMD(0x3)"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define Q_V1_GETQUOTA OLD_CMD(0x3) 26 #endif 27 #if defined(Q_V1_SETQUOTA) || (defined(HAVE_DECL_Q_V1_SETQUOTA) && HAVE_DECL_Q_V1_SETQUOTA) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((Q_V1_SETQUOTA) == (OLD_CMD(0x4)), "Q_V1_SETQUOTA != OLD_CMD(0x4)"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define Q_V1_SETQUOTA OLD_CMD(0x4) 33 #endif 34 #if defined(Q_V1_SETUSE) || (defined(HAVE_DECL_Q_V1_SETUSE) && HAVE_DECL_Q_V1_SETUSE) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((Q_V1_SETUSE) == (OLD_CMD(0x5)), "Q_V1_SETUSE != OLD_CMD(0x5)"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define Q_V1_SETUSE OLD_CMD(0x5) 40 #endif 41 #if defined(Q_V1_SYNC) || (defined(HAVE_DECL_Q_V1_SYNC) && HAVE_DECL_Q_V1_SYNC) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((Q_V1_SYNC) == (OLD_CMD(0x6)), "Q_V1_SYNC != OLD_CMD(0x6)"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define Q_V1_SYNC OLD_CMD(0x6) 47 #endif 48 #if defined(Q_SETQLIM) || (defined(HAVE_DECL_Q_SETQLIM) && HAVE_DECL_Q_SETQLIM) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((Q_SETQLIM) == (OLD_CMD(0x7)), "Q_SETQLIM != OLD_CMD(0x7)"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define Q_SETQLIM OLD_CMD(0x7) 54 #endif 55 #if defined(Q_V1_GETSTATS) || (defined(HAVE_DECL_Q_V1_GETSTATS) && HAVE_DECL_Q_V1_GETSTATS) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((Q_V1_GETSTATS) == (OLD_CMD(0x8)), "Q_V1_GETSTATS != OLD_CMD(0x8)"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define Q_V1_GETSTATS OLD_CMD(0x8) 61 #endif 62 #if defined(Q_V1_RSQUASH) || (defined(HAVE_DECL_Q_V1_RSQUASH) && HAVE_DECL_Q_V1_RSQUASH) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((Q_V1_RSQUASH) == (OLD_CMD(0x10)), "Q_V1_RSQUASH != OLD_CMD(0x10)"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define Q_V1_RSQUASH OLD_CMD(0x10) 68 #endif 69 #if defined(Q_V2_GETQUOTA) || (defined(HAVE_DECL_Q_V2_GETQUOTA) && HAVE_DECL_Q_V2_GETQUOTA) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((Q_V2_GETQUOTA) == (OLD_CMD(0xD)), "Q_V2_GETQUOTA != OLD_CMD(0xD)"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define Q_V2_GETQUOTA OLD_CMD(0xD) 75 #endif 76 #if defined(Q_V2_SETQUOTA) || (defined(HAVE_DECL_Q_V2_SETQUOTA) && HAVE_DECL_Q_V2_SETQUOTA) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((Q_V2_SETQUOTA) == (OLD_CMD(0xE)), "Q_V2_SETQUOTA != OLD_CMD(0xE)"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define Q_V2_SETQUOTA OLD_CMD(0xE) 82 #endif 83 #if defined(Q_V2_SETUSE) || (defined(HAVE_DECL_Q_V2_SETUSE) && HAVE_DECL_Q_V2_SETUSE) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((Q_V2_SETUSE) == (OLD_CMD(0xF)), "Q_V2_SETUSE != OLD_CMD(0xF)"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define Q_V2_SETUSE OLD_CMD(0xF) 89 #endif 90 #if defined(Q_V2_GETINFO) || (defined(HAVE_DECL_Q_V2_GETINFO) && HAVE_DECL_Q_V2_GETINFO) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((Q_V2_GETINFO) == (OLD_CMD(0x9)), "Q_V2_GETINFO != OLD_CMD(0x9)"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define Q_V2_GETINFO OLD_CMD(0x9) 96 #endif 97 #if defined(Q_V2_SETINFO) || (defined(HAVE_DECL_Q_V2_SETINFO) && HAVE_DECL_Q_V2_SETINFO) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((Q_V2_SETINFO) == (OLD_CMD(0xA)), "Q_V2_SETINFO != OLD_CMD(0xA)"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define Q_V2_SETINFO OLD_CMD(0xA) 103 #endif 104 #if defined(Q_V2_SETGRACE) || (defined(HAVE_DECL_Q_V2_SETGRACE) && HAVE_DECL_Q_V2_SETGRACE) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((Q_V2_SETGRACE) == (OLD_CMD(0xB)), "Q_V2_SETGRACE != OLD_CMD(0xB)"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define Q_V2_SETGRACE OLD_CMD(0xB) 110 #endif 111 #if defined(Q_V2_SETFLAGS) || (defined(HAVE_DECL_Q_V2_SETFLAGS) && HAVE_DECL_Q_V2_SETFLAGS) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((Q_V2_SETFLAGS) == (OLD_CMD(0xC)), "Q_V2_SETFLAGS != OLD_CMD(0xC)"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define Q_V2_SETFLAGS OLD_CMD(0xC) 117 #endif 118 #if defined(Q_V2_GETSTATS) || (defined(HAVE_DECL_Q_V2_GETSTATS) && HAVE_DECL_Q_V2_GETSTATS) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((Q_V2_GETSTATS) == (OLD_CMD(0x11)), "Q_V2_GETSTATS != OLD_CMD(0x11)"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define Q_V2_GETSTATS OLD_CMD(0x11) 124 #endif 125 #if defined(Q_SYNC) || (defined(HAVE_DECL_Q_SYNC) && HAVE_DECL_Q_SYNC) 126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 127 static_assert((Q_SYNC) == (NEW_CMD(0x1)), "Q_SYNC != NEW_CMD(0x1)"); 128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 129 #else 130 # define Q_SYNC NEW_CMD(0x1) 131 #endif 132 #if defined(Q_QUOTAON) || (defined(HAVE_DECL_Q_QUOTAON) && HAVE_DECL_Q_QUOTAON) 133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 134 static_assert((Q_QUOTAON) == (NEW_CMD(0x2)), "Q_QUOTAON != NEW_CMD(0x2)"); 135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 136 #else 137 # define Q_QUOTAON NEW_CMD(0x2) 138 #endif 139 #if defined(Q_QUOTAOFF) || (defined(HAVE_DECL_Q_QUOTAOFF) && HAVE_DECL_Q_QUOTAOFF) 140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 141 static_assert((Q_QUOTAOFF) == (NEW_CMD(0x3)), "Q_QUOTAOFF != NEW_CMD(0x3)"); 142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 143 #else 144 # define Q_QUOTAOFF NEW_CMD(0x3) 145 #endif 146 #if defined(Q_GETFMT) || (defined(HAVE_DECL_Q_GETFMT) && HAVE_DECL_Q_GETFMT) 147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 148 static_assert((Q_GETFMT) == (NEW_CMD(0x4)), "Q_GETFMT != NEW_CMD(0x4)"); 149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 150 #else 151 # define Q_GETFMT NEW_CMD(0x4) 152 #endif 153 #if defined(Q_GETINFO) || (defined(HAVE_DECL_Q_GETINFO) && HAVE_DECL_Q_GETINFO) 154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 155 static_assert((Q_GETINFO) == (NEW_CMD(0x5)), "Q_GETINFO != NEW_CMD(0x5)"); 156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 157 #else 158 # define Q_GETINFO NEW_CMD(0x5) 159 #endif 160 #if defined(Q_SETINFO) || (defined(HAVE_DECL_Q_SETINFO) && HAVE_DECL_Q_SETINFO) 161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 162 static_assert((Q_SETINFO) == (NEW_CMD(0x6)), "Q_SETINFO != NEW_CMD(0x6)"); 163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 164 #else 165 # define Q_SETINFO NEW_CMD(0x6) 166 #endif 167 #if defined(Q_GETQUOTA) || (defined(HAVE_DECL_Q_GETQUOTA) && HAVE_DECL_Q_GETQUOTA) 168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 169 static_assert((Q_GETQUOTA) == (NEW_CMD(0x7)), "Q_GETQUOTA != NEW_CMD(0x7)"); 170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 171 #else 172 # define Q_GETQUOTA NEW_CMD(0x7) 173 #endif 174 #if defined(Q_SETQUOTA) || (defined(HAVE_DECL_Q_SETQUOTA) && HAVE_DECL_Q_SETQUOTA) 175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 176 static_assert((Q_SETQUOTA) == (NEW_CMD(0x8)), "Q_SETQUOTA != NEW_CMD(0x8)"); 177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 178 #else 179 # define Q_SETQUOTA NEW_CMD(0x8) 180 #endif 181 #if defined(Q_GETNEXTQUOTA) || (defined(HAVE_DECL_Q_GETNEXTQUOTA) && HAVE_DECL_Q_GETNEXTQUOTA) 182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 183 static_assert((Q_GETNEXTQUOTA) == (NEW_CMD(0x9)), "Q_GETNEXTQUOTA != NEW_CMD(0x9)"); 184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 185 #else 186 # define Q_GETNEXTQUOTA NEW_CMD(0x9) 187 #endif 188 #if defined(Q_XQUOTAON) || (defined(HAVE_DECL_Q_XQUOTAON) && HAVE_DECL_Q_XQUOTAON) 189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 190 static_assert((Q_XQUOTAON) == (XQM_CMD(0x1)), "Q_XQUOTAON != XQM_CMD(0x1)"); 191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 192 #else 193 # define Q_XQUOTAON XQM_CMD(0x1) 194 #endif 195 #if defined(Q_XQUOTAOFF) || (defined(HAVE_DECL_Q_XQUOTAOFF) && HAVE_DECL_Q_XQUOTAOFF) 196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 197 static_assert((Q_XQUOTAOFF) == (XQM_CMD(0x2)), "Q_XQUOTAOFF != XQM_CMD(0x2)"); 198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 199 #else 200 # define Q_XQUOTAOFF XQM_CMD(0x2) 201 #endif 202 #if defined(Q_XGETQUOTA) || (defined(HAVE_DECL_Q_XGETQUOTA) && HAVE_DECL_Q_XGETQUOTA) 203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 204 static_assert((Q_XGETQUOTA) == (XQM_CMD(0x3)), "Q_XGETQUOTA != XQM_CMD(0x3)"); 205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 206 #else 207 # define Q_XGETQUOTA XQM_CMD(0x3) 208 #endif 209 #if defined(Q_XSETQLIM) || (defined(HAVE_DECL_Q_XSETQLIM) && HAVE_DECL_Q_XSETQLIM) 210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 211 static_assert((Q_XSETQLIM) == (XQM_CMD(0x4)), "Q_XSETQLIM != XQM_CMD(0x4)"); 212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 213 #else 214 # define Q_XSETQLIM XQM_CMD(0x4) 215 #endif 216 #if defined(Q_XGETQSTAT) || (defined(HAVE_DECL_Q_XGETQSTAT) && HAVE_DECL_Q_XGETQSTAT) 217 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 218 static_assert((Q_XGETQSTAT) == (XQM_CMD(0x5)), "Q_XGETQSTAT != XQM_CMD(0x5)"); 219 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 220 #else 221 # define Q_XGETQSTAT XQM_CMD(0x5) 222 #endif 223 #if defined(Q_XQUOTARM) || (defined(HAVE_DECL_Q_XQUOTARM) && HAVE_DECL_Q_XQUOTARM) 224 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 225 static_assert((Q_XQUOTARM) == (XQM_CMD(0x6)), "Q_XQUOTARM != XQM_CMD(0x6)"); 226 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 227 #else 228 # define Q_XQUOTARM XQM_CMD(0x6) 229 #endif 230 #if defined(Q_XQUOTASYNC) || (defined(HAVE_DECL_Q_XQUOTASYNC) && HAVE_DECL_Q_XQUOTASYNC) 231 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 232 static_assert((Q_XQUOTASYNC) == (XQM_CMD(0x7)), "Q_XQUOTASYNC != XQM_CMD(0x7)"); 233 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 234 #else 235 # define Q_XQUOTASYNC XQM_CMD(0x7) 236 #endif 237 #if defined(Q_XGETQSTATV) || (defined(HAVE_DECL_Q_XGETQSTATV) && HAVE_DECL_Q_XGETQSTATV) 238 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 239 static_assert((Q_XGETQSTATV) == (XQM_CMD(0x8)), "Q_XGETQSTATV != XQM_CMD(0x8)"); 240 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 241 #else 242 # define Q_XGETQSTATV XQM_CMD(0x8) 243 #endif 244 #if defined(Q_XGETNEXTQUOTA) || (defined(HAVE_DECL_Q_XGETNEXTQUOTA) && HAVE_DECL_Q_XGETNEXTQUOTA) 245 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 246 static_assert((Q_XGETNEXTQUOTA) == (XQM_CMD(0x9)), "Q_XGETNEXTQUOTA != XQM_CMD(0x9)"); 247 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 248 #else 249 # define Q_XGETNEXTQUOTA XQM_CMD(0x9) 250 #endif 251 252 #ifndef XLAT_MACROS_ONLY 253 254 # ifdef IN_MPERS 255 256 # error static const struct xlat quotacmds in mpers mode 257 258 # else 259 260 static 261 const struct xlat quotacmds[] = { 262 XLAT(Q_V1_QUOTAON), 263 XLAT(Q_V1_QUOTAOFF), 264 XLAT(Q_V1_GETQUOTA), 265 XLAT(Q_V1_SETQUOTA), 266 XLAT(Q_V1_SETUSE), 267 XLAT(Q_V1_SYNC), 268 XLAT(Q_SETQLIM), 269 XLAT(Q_V1_GETSTATS), 270 XLAT(Q_V1_RSQUASH), 271 272 XLAT(Q_V2_GETQUOTA), 273 XLAT(Q_V2_SETQUOTA), 274 XLAT(Q_V2_SETUSE), 275 XLAT(Q_V2_GETINFO), 276 XLAT(Q_V2_SETINFO), 277 XLAT(Q_V2_SETGRACE), 278 XLAT(Q_V2_SETFLAGS), 279 XLAT(Q_V2_GETSTATS), 280 281 XLAT(Q_SYNC), 282 XLAT(Q_QUOTAON), 283 XLAT(Q_QUOTAOFF), 284 XLAT(Q_GETFMT), 285 XLAT(Q_GETINFO), 286 XLAT(Q_SETINFO), 287 XLAT(Q_GETQUOTA), 288 XLAT(Q_SETQUOTA), 289 XLAT(Q_GETNEXTQUOTA), 290 291 XLAT(Q_XQUOTAON), 292 XLAT(Q_XQUOTAOFF), 293 XLAT(Q_XGETQUOTA), 294 XLAT(Q_XSETQLIM), 295 XLAT(Q_XGETQSTAT), 296 XLAT(Q_XQUOTARM), 297 XLAT(Q_XQUOTASYNC), 298 XLAT(Q_XGETQSTATV), 299 XLAT(Q_XGETNEXTQUOTA), 300 XLAT_END 301 }; 302 303 # endif /* !IN_MPERS */ 304 305 #endif /* !XLAT_MACROS_ONLY */ 306