| 1 | /* -*- buffer-read-only: t -*- vi: set ro: |
| 2 | * |
| 3 | * DO NOT EDIT THIS FILE (fixincl.x) |
| 4 | * |
| 5 | * It has been AutoGen-ed July 10, 2024 at 02:49:05 PM by AutoGen 5.18.16 |
| 6 | * From the definitions inclhack.def |
| 7 | * and the template file fixincl |
| 8 | */ |
| 9 | /* DO NOT SVN-MERGE THIS FILE, EITHER Wed Jul 10 14:49:05 CEST 2024 |
| 10 | * |
| 11 | * You must regenerate it. Use the ./genfixes script. |
| 12 | * |
| 13 | * |
| 14 | * This is part of the fixincl program used to install modified versions of |
| 15 | * certain ANSI-incompatible system header files which are fixed to work |
| 16 | * correctly with ANSI C and placed in a directory that GNU C will search. |
| 17 | * |
| 18 | * This file contains 274 fixup descriptions. |
| 19 | * |
| 20 | * See README for more information. |
| 21 | * |
| 22 | * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
| 23 | * 2006, 2007, 2008 |
| 24 | * The Free Software Foundation, Inc. |
| 25 | * |
| 26 | * inclhack is free software: you can redistribute it and/or modify it |
| 27 | * under the terms of the GNU General Public License as published by the |
| 28 | * Free Software Foundation, either version 3 of the License, or |
| 29 | * (at your option) any later version. |
| 30 | * |
| 31 | * inclhack is distributed in the hope that it will be useful, but |
| 32 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 33 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 34 | * See the GNU General Public License for more details. |
| 35 | * |
| 36 | * You should have received a copy of the GNU General Public License along |
| 37 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 38 | */ |
| 39 | #ifndef SED_PROGRAM |
| 40 | #define SED_PROGRAM "/usr/bin/sed" |
| 41 | #endif |
| 42 | static char const sed_cmd_z[] = SED_PROGRAM; |
| 43 | |
| 44 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 45 | * |
| 46 | * Description of Aab_Aix_Stdio fix |
| 47 | */ |
| 48 | tSCC zAab_Aix_StdioName[] = |
| 49 | "AAB_aix_stdio" ; |
| 50 | |
| 51 | /* |
| 52 | * File name selection pattern |
| 53 | */ |
| 54 | tSCC zAab_Aix_StdioList[] = |
| 55 | "stdio.h\0" ; |
| 56 | /* |
| 57 | * Machine/OS name selection pattern |
| 58 | */ |
| 59 | tSCC* apzAab_Aix_StdioMachs[] = { |
| 60 | "*-*-aix*" , |
| 61 | (const char*)NULL }; |
| 62 | |
| 63 | /* |
| 64 | * content selection pattern - do fix if pattern found |
| 65 | */ |
| 66 | tSCC zAab_Aix_StdioSelect0[] = |
| 67 | "define fopen fopen64" ; |
| 68 | |
| 69 | #define AAB_AIX_STDIO_TEST_CT 1 |
| 70 | static tTestDesc aAab_Aix_StdioTests[] = { |
| 71 | { .type: TT_EGREP, .pz_test_text: zAab_Aix_StdioSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 72 | |
| 73 | /* |
| 74 | * Fix Command Arguments for Aab_Aix_Stdio |
| 75 | */ |
| 76 | static const char* apzAab_Aix_StdioPatch[] = { |
| 77 | "wrap" , |
| 78 | "" , |
| 79 | "\n\ |
| 80 | #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\ |
| 81 | #define __need__aix_stdio_h_fix\n\ |
| 82 | #ifdef __need__aix_stdio_h_fix\n\ |
| 83 | #undef fseeko\n\ |
| 84 | #undef ftello\n\ |
| 85 | #undef fgetpos\n\ |
| 86 | #undef fsetpos\n\ |
| 87 | #undef fopen\n\ |
| 88 | #undef freopen\n\ |
| 89 | /* Alias the symbols using asm */\n\ |
| 90 | extern \"C\" {\n\ |
| 91 | extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\ |
| 92 | extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\ |
| 93 | extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\ |
| 94 | extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\ |
| 95 | extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\ |
| 96 | extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\ |
| 97 | }\n\ |
| 98 | #endif\n\ |
| 99 | #endif\n" , |
| 100 | (char*)NULL }; |
| 101 | |
| 102 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 103 | * |
| 104 | * Description of Aab_Aix_Fcntl fix |
| 105 | */ |
| 106 | tSCC zAab_Aix_FcntlName[] = |
| 107 | "AAB_aix_fcntl" ; |
| 108 | |
| 109 | /* |
| 110 | * File name selection pattern |
| 111 | */ |
| 112 | tSCC zAab_Aix_FcntlList[] = |
| 113 | "fcntl.h\0" ; |
| 114 | /* |
| 115 | * Machine/OS name selection pattern |
| 116 | */ |
| 117 | tSCC* apzAab_Aix_FcntlMachs[] = { |
| 118 | "*-*-aix*" , |
| 119 | (const char*)NULL }; |
| 120 | |
| 121 | /* |
| 122 | * content selection pattern - do fix if pattern found |
| 123 | */ |
| 124 | tSCC zAab_Aix_FcntlSelect0[] = |
| 125 | "define open[ \t]open64" ; |
| 126 | |
| 127 | #define AAB_AIX_FCNTL_TEST_CT 1 |
| 128 | static tTestDesc aAab_Aix_FcntlTests[] = { |
| 129 | { .type: TT_EGREP, .pz_test_text: zAab_Aix_FcntlSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 130 | |
| 131 | /* |
| 132 | * Fix Command Arguments for Aab_Aix_Fcntl |
| 133 | */ |
| 134 | static const char* apzAab_Aix_FcntlPatch[] = { |
| 135 | "wrap" , |
| 136 | "" , |
| 137 | "\n\ |
| 138 | #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\ |
| 139 | #define __need__aix_fcntl_h_fix\n\ |
| 140 | #ifdef __need__aix_fcntl_h_fix\n\ |
| 141 | #undef open\n\ |
| 142 | #undef creat\n\ |
| 143 | #undef openat\n\ |
| 144 | /* Alias the symbols using asm */\n\ |
| 145 | extern \"C\" {\n\ |
| 146 | extern int open(const char *, int, ...) __asm__(\"open64\");\n\ |
| 147 | extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\ |
| 148 | #if (_XOPEN_SOURCE >= 700)\n\ |
| 149 | extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\ |
| 150 | #endif\n\ |
| 151 | }\n\ |
| 152 | #endif\n\ |
| 153 | #endif\n" , |
| 154 | (char*)NULL }; |
| 155 | |
| 156 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 157 | * |
| 158 | * Description of Aab_Darwin7_9_Long_Double_Funcs fix |
| 159 | */ |
| 160 | tSCC zAab_Darwin7_9_Long_Double_FuncsName[] = |
| 161 | "AAB_darwin7_9_long_double_funcs" ; |
| 162 | |
| 163 | /* |
| 164 | * File name selection pattern |
| 165 | */ |
| 166 | tSCC zAab_Darwin7_9_Long_Double_FuncsList[] = |
| 167 | "architecture/ppc/math.h\0" ; |
| 168 | /* |
| 169 | * Machine/OS name selection pattern |
| 170 | */ |
| 171 | tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = { |
| 172 | "*-*-darwin7.9*" , |
| 173 | (const char*)NULL }; |
| 174 | |
| 175 | /* |
| 176 | * content bypass pattern - skip fix if pattern found |
| 177 | */ |
| 178 | tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] = |
| 179 | "powl" ; |
| 180 | |
| 181 | #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1 |
| 182 | static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = { |
| 183 | { .type: TT_NEGREP, .pz_test_text: zAab_Darwin7_9_Long_Double_FuncsBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 184 | |
| 185 | /* |
| 186 | * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs |
| 187 | */ |
| 188 | static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = { |
| 189 | "/* This file prototypes the long double functions available on Mac OS\n\ |
| 190 | 10.3.9. */\n\ |
| 191 | #ifndef __MATH__\n\ |
| 192 | # undef __APPLE_CC__\n\ |
| 193 | # define __APPLE_CC__ 1345\n\ |
| 194 | # include_next <architecture/ppc/math.h>\n\ |
| 195 | # undef __APPLE_CC__\n\ |
| 196 | # define __APPLE_CC__ 1\n\ |
| 197 | # ifndef __LIBMLDBL_COMPAT\n\ |
| 198 | # ifdef __LONG_DOUBLE_128__\n\ |
| 199 | # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\ |
| 200 | # else\n\ |
| 201 | # define __LIBMLDBL_COMPAT(sym)\n\ |
| 202 | # endif /* __LONG_DOUBLE_128__ */\n\ |
| 203 | # endif /* __LIBMLDBL_COMPAT */\n\ |
| 204 | # ifdef __cplusplus\n\ |
| 205 | extern \"C\" {\n\ |
| 206 | # endif\n\ |
| 207 | extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\ |
| 208 | extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\ |
| 209 | extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\ |
| 210 | extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\ |
| 211 | extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\ |
| 212 | extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\ |
| 213 | extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\ |
| 214 | extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\ |
| 215 | extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\ |
| 216 | extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\ |
| 217 | extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\ |
| 218 | extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\ |
| 219 | extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\ |
| 220 | extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\ |
| 221 | extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\ |
| 222 | extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\ |
| 223 | extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\ |
| 224 | extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\ |
| 225 | extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\ |
| 226 | extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\ |
| 227 | extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\ |
| 228 | extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\ |
| 229 | extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\ |
| 230 | extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\ |
| 231 | extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\ |
| 232 | extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\ |
| 233 | extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\ |
| 234 | extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\ |
| 235 | extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\ |
| 236 | extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\ |
| 237 | extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\ |
| 238 | extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\ |
| 239 | extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\ |
| 240 | extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\ |
| 241 | extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\ |
| 242 | extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\ |
| 243 | extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\ |
| 244 | extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\ |
| 245 | extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\ |
| 246 | extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\ |
| 247 | extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\ |
| 248 | extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\ |
| 249 | extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\ |
| 250 | extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\ |
| 251 | extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\ |
| 252 | extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\ |
| 253 | extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\ |
| 254 | extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\ |
| 255 | extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\ |
| 256 | extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\ |
| 257 | extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\ |
| 258 | extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\ |
| 259 | extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\ |
| 260 | extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\ |
| 261 | extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\ |
| 262 | extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\ |
| 263 | extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\ |
| 264 | # ifdef __cplusplus\n\ |
| 265 | }\n\ |
| 266 | # endif\n\ |
| 267 | #endif /* __MATH__ */" , |
| 268 | (char*)NULL }; |
| 269 | |
| 270 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 271 | * |
| 272 | * Description of Darwin_Api_Availability fix |
| 273 | */ |
| 274 | tSCC zDarwin_Api_AvailabilityName[] = |
| 275 | "darwin_api_availability" ; |
| 276 | |
| 277 | /* |
| 278 | * File name selection pattern |
| 279 | */ |
| 280 | tSCC zDarwin_Api_AvailabilityList[] = |
| 281 | "os/availability.h\0" ; |
| 282 | /* |
| 283 | * Machine/OS name selection pattern |
| 284 | */ |
| 285 | tSCC* apzDarwin_Api_AvailabilityMachs[] = { |
| 286 | "*-*-darwin*" , |
| 287 | (const char*)NULL }; |
| 288 | |
| 289 | /* |
| 290 | * content selection pattern - do fix if pattern found |
| 291 | */ |
| 292 | tSCC zDarwin_Api_AvailabilitySelect0[] = |
| 293 | " *#define __API_AVAILABLE.*\n\ |
| 294 | *#define __API_DEPRECATED.*\n\ |
| 295 | *#define __API_DEPRECATED_WITH_REPLACEMENT.*\n\ |
| 296 | *#define __API_UNAVAILABLE.*\n" ; |
| 297 | |
| 298 | /* |
| 299 | * content bypass pattern - skip fix if pattern found |
| 300 | */ |
| 301 | tSCC zDarwin_Api_AvailabilityBypass0[] = |
| 302 | "__IPHONE_OS_VERSION_MIN_REQUIRED" ; |
| 303 | |
| 304 | #define DARWIN_API_AVAILABILITY_TEST_CT 2 |
| 305 | static tTestDesc aDarwin_Api_AvailabilityTests[] = { |
| 306 | { .type: TT_NEGREP, .pz_test_text: zDarwin_Api_AvailabilityBypass0, .p_test_regex: (regex_t*)NULL }, |
| 307 | { .type: TT_EGREP, .pz_test_text: zDarwin_Api_AvailabilitySelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 308 | |
| 309 | /* |
| 310 | * Fix Command Arguments for Darwin_Api_Availability |
| 311 | */ |
| 312 | static const char* apzDarwin_Api_AvailabilityPatch[] = { |
| 313 | "format" , |
| 314 | " #define API_AVAILABLE(...)\n\ |
| 315 | #define API_DEPRECATED(...)\n\ |
| 316 | #define API_DEPRECATED_WITH_REPLACEMENT(...)\n\ |
| 317 | #define API_UNAVAILABLE(...)\n" , |
| 318 | (char*)NULL }; |
| 319 | |
| 320 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 321 | * |
| 322 | * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix |
| 323 | */ |
| 324 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] = |
| 325 | "AAB_fd_zero_asm_posix_types_h" ; |
| 326 | |
| 327 | /* |
| 328 | * File name selection pattern |
| 329 | */ |
| 330 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] = |
| 331 | "asm/posix_types.h\0" ; |
| 332 | /* |
| 333 | * Machine/OS name selection pattern |
| 334 | */ |
| 335 | tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = { |
| 336 | "i[34567]86-*-linux*" , |
| 337 | (const char*)NULL }; |
| 338 | |
| 339 | /* |
| 340 | * content bypass pattern - skip fix if pattern found |
| 341 | */ |
| 342 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = |
| 343 | "} while" ; |
| 344 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] = |
| 345 | "x86_64" ; |
| 346 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] = |
| 347 | "posix_types_64" ; |
| 348 | |
| 349 | #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3 |
| 350 | static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { |
| 351 | { .type: TT_NEGREP, .pz_test_text: zAab_Fd_Zero_Asm_Posix_Types_HBypass0, .p_test_regex: (regex_t*)NULL }, |
| 352 | { .type: TT_NEGREP, .pz_test_text: zAab_Fd_Zero_Asm_Posix_Types_HBypass1, .p_test_regex: (regex_t*)NULL }, |
| 353 | { .type: TT_NEGREP, .pz_test_text: zAab_Fd_Zero_Asm_Posix_Types_HBypass2, .p_test_regex: (regex_t*)NULL }, }; |
| 354 | |
| 355 | /* |
| 356 | * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H |
| 357 | */ |
| 358 | static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = { |
| 359 | "/* This file fixes a bug in the __FD_ZERO macro\n\ |
| 360 | for older versions of the Linux kernel. */\n\ |
| 361 | #ifndef _POSIX_TYPES_H_WRAPPER\n\ |
| 362 | #include <features.h>\n\ |
| 363 | #include_next <asm/posix_types.h>\n\n\ |
| 364 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
| 365 | #undef __FD_ZERO\n\ |
| 366 | #define __FD_ZERO(fdsetp) \\\n\ |
| 367 | do { \\\n\ |
| 368 | int __d0, __d1; \\\n\ |
| 369 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ |
| 370 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ |
| 371 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ |
| 372 | \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\ |
| 373 | } while (0)\n\ |
| 374 | #endif\n\n\ |
| 375 | #define _POSIX_TYPES_H_WRAPPER\n\ |
| 376 | #endif /* _POSIX_TYPES_H_WRAPPER */" , |
| 377 | (char*)NULL }; |
| 378 | |
| 379 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 380 | * |
| 381 | * Description of Aab_Fd_Zero_Gnu_Types_H fix |
| 382 | */ |
| 383 | tSCC zAab_Fd_Zero_Gnu_Types_HName[] = |
| 384 | "AAB_fd_zero_gnu_types_h" ; |
| 385 | |
| 386 | /* |
| 387 | * File name selection pattern |
| 388 | */ |
| 389 | tSCC zAab_Fd_Zero_Gnu_Types_HList[] = |
| 390 | "gnu/types.h\0" ; |
| 391 | /* |
| 392 | * Machine/OS name selection pattern |
| 393 | */ |
| 394 | tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = { |
| 395 | "i[34567]86-*-linux*" , |
| 396 | (const char*)NULL }; |
| 397 | #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0 |
| 398 | #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL |
| 399 | |
| 400 | /* |
| 401 | * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H |
| 402 | */ |
| 403 | static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = { |
| 404 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\ |
| 405 | #ifndef _TYPES_H_WRAPPER\n\ |
| 406 | #include <features.h>\n\ |
| 407 | #include_next <gnu/types.h>\n\n\ |
| 408 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
| 409 | #undef __FD_ZERO\n\ |
| 410 | # define __FD_ZERO(fdsetp) \\\n\ |
| 411 | do { \\\n\ |
| 412 | int __d0, __d1; \\\n\ |
| 413 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ |
| 414 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ |
| 415 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ |
| 416 | \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\ |
| 417 | } while (0)\n\ |
| 418 | #endif\n\n\ |
| 419 | #define _TYPES_H_WRAPPER\n\ |
| 420 | #endif /* _TYPES_H_WRAPPER */" , |
| 421 | (char*)NULL }; |
| 422 | |
| 423 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 424 | * |
| 425 | * Description of Aab_Fd_Zero_Selectbits_H fix |
| 426 | */ |
| 427 | tSCC zAab_Fd_Zero_Selectbits_HName[] = |
| 428 | "AAB_fd_zero_selectbits_h" ; |
| 429 | |
| 430 | /* |
| 431 | * File name selection pattern |
| 432 | */ |
| 433 | tSCC zAab_Fd_Zero_Selectbits_HList[] = |
| 434 | "selectbits.h\0" ; |
| 435 | /* |
| 436 | * Machine/OS name selection pattern |
| 437 | */ |
| 438 | tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = { |
| 439 | "i[34567]86-*-linux*" , |
| 440 | (const char*)NULL }; |
| 441 | #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0 |
| 442 | #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL |
| 443 | |
| 444 | /* |
| 445 | * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H |
| 446 | */ |
| 447 | static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = { |
| 448 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\ |
| 449 | #ifndef _SELECTBITS_H_WRAPPER\n\ |
| 450 | #include <features.h>\n\ |
| 451 | #include_next <selectbits.h>\n\n\ |
| 452 | #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\ |
| 453 | && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\ |
| 454 | && __GLIBC_MINOR__ == 0\n\ |
| 455 | #undef __FD_ZERO\n\ |
| 456 | #define __FD_ZERO(fdsetp) \\\\\n\ |
| 457 | do { \\\\\n\ |
| 458 | int __d0, __d1; \\\\\n\ |
| 459 | __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\ |
| 460 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\ |
| 461 | : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\ |
| 462 | / sizeof (__fd_mask)), \\\\\n\ |
| 463 | \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\ |
| 464 | : \"memory\"); \\\\\n\ |
| 465 | } while (0)\n\ |
| 466 | #endif\n\n\ |
| 467 | #define _SELECTBITS_H_WRAPPER\n\ |
| 468 | #endif /* _SELECTBITS_H_WRAPPER */" , |
| 469 | (char*)NULL }; |
| 470 | |
| 471 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 472 | * |
| 473 | * Description of Aab_Solaris_Sys_Varargs_H fix |
| 474 | */ |
| 475 | tSCC zAab_Solaris_Sys_Varargs_HName[] = |
| 476 | "AAB_solaris_sys_varargs_h" ; |
| 477 | |
| 478 | /* |
| 479 | * File name selection pattern |
| 480 | */ |
| 481 | tSCC zAab_Solaris_Sys_Varargs_HList[] = |
| 482 | "sys/varargs.h\0" ; |
| 483 | /* |
| 484 | * Machine/OS name selection pattern |
| 485 | */ |
| 486 | tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = { |
| 487 | "*-*-solaris*" , |
| 488 | (const char*)NULL }; |
| 489 | #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0 |
| 490 | #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL |
| 491 | |
| 492 | /* |
| 493 | * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H |
| 494 | */ |
| 495 | static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = { |
| 496 | "#ifdef __STDC__\n\ |
| 497 | #include <stdarg.h>\n\ |
| 498 | #else\n\ |
| 499 | #include <varargs.h>\n\ |
| 500 | #endif" , |
| 501 | (char*)NULL }; |
| 502 | |
| 503 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 504 | * |
| 505 | * Description of Aab_Sun_Memcpy fix |
| 506 | */ |
| 507 | tSCC zAab_Sun_MemcpyName[] = |
| 508 | "AAB_sun_memcpy" ; |
| 509 | |
| 510 | /* |
| 511 | * File name selection pattern |
| 512 | */ |
| 513 | tSCC zAab_Sun_MemcpyList[] = |
| 514 | "memory.h\0" ; |
| 515 | /* |
| 516 | * Machine/OS name selection pattern |
| 517 | */ |
| 518 | #define apzAab_Sun_MemcpyMachs (const char**)NULL |
| 519 | |
| 520 | /* |
| 521 | * content selection pattern - do fix if pattern found |
| 522 | */ |
| 523 | tSCC zAab_Sun_MemcpySelect0[] = |
| 524 | "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/" ; |
| 525 | |
| 526 | #define AAB_SUN_MEMCPY_TEST_CT 1 |
| 527 | static tTestDesc aAab_Sun_MemcpyTests[] = { |
| 528 | { .type: TT_EGREP, .pz_test_text: zAab_Sun_MemcpySelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 529 | |
| 530 | /* |
| 531 | * Fix Command Arguments for Aab_Sun_Memcpy |
| 532 | */ |
| 533 | static const char* apzAab_Sun_MemcpyPatch[] = { |
| 534 | "/* This file was generated by fixincludes */\n\ |
| 535 | #ifndef __memory_h__\n\ |
| 536 | #define __memory_h__\n\n\ |
| 537 | #ifdef __STDC__\n\ |
| 538 | extern void *memccpy();\n\ |
| 539 | extern void *memchr();\n\ |
| 540 | extern void *memcpy();\n\ |
| 541 | extern void *memset();\n\ |
| 542 | #else\n\ |
| 543 | extern char *memccpy();\n\ |
| 544 | extern char *memchr();\n\ |
| 545 | extern char *memcpy();\n\ |
| 546 | extern char *memset();\n\ |
| 547 | #endif /* __STDC__ */\n\n\ |
| 548 | extern int memcmp();\n\n\ |
| 549 | #endif /* __memory_h__ */" , |
| 550 | (char*)NULL }; |
| 551 | |
| 552 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 553 | * |
| 554 | * Description of Aab_Vxworks_Assert fix |
| 555 | */ |
| 556 | tSCC zAab_Vxworks_AssertName[] = |
| 557 | "AAB_vxworks_assert" ; |
| 558 | |
| 559 | /* |
| 560 | * File name selection pattern |
| 561 | */ |
| 562 | tSCC zAab_Vxworks_AssertList[] = |
| 563 | "assert.h\0" ; |
| 564 | /* |
| 565 | * Machine/OS name selection pattern |
| 566 | */ |
| 567 | tSCC* apzAab_Vxworks_AssertMachs[] = { |
| 568 | "*-*-vxworks*" , |
| 569 | (const char*)NULL }; |
| 570 | #define AAB_VXWORKS_ASSERT_TEST_CT 0 |
| 571 | #define aAab_Vxworks_AssertTests (tTestDesc*)NULL |
| 572 | |
| 573 | /* |
| 574 | * Fix Command Arguments for Aab_Vxworks_Assert |
| 575 | */ |
| 576 | static const char* apzAab_Vxworks_AssertPatch[] = { |
| 577 | "#ifdef _ASSERT_H\n\ |
| 578 | #undef _ASSERT_H\n\ |
| 579 | #undef assert\n\ |
| 580 | #endif\n\n\ |
| 581 | #define _ASSERT_H\n\n\ |
| 582 | #ifdef __cplusplus\n\ |
| 583 | extern \"C\" {\n\ |
| 584 | #endif\n\n\ |
| 585 | #if defined(__STDC__) || defined(__cplusplus)\n\ |
| 586 | extern void __assert (const char*);\n\ |
| 587 | #else\n\ |
| 588 | extern void __assert ();\n\ |
| 589 | #endif\n\n\ |
| 590 | #ifdef NDEBUG\n\ |
| 591 | #define assert(ign) ((void)0)\n\ |
| 592 | #else\n\n\ |
| 593 | #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\ |
| 594 | #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\ |
| 595 | #define assert(test) ((void) \\\n\ |
| 596 | ((test) ? ((void)0) : \\\n\ |
| 597 | __assert(\"Assertion failed: \" #test \", file \" \\\n\ |
| 598 | __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\ |
| 599 | #endif\n\n\ |
| 600 | #ifdef __cplusplus\n\ |
| 601 | }\n\ |
| 602 | #endif" , |
| 603 | (char*)NULL }; |
| 604 | |
| 605 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 606 | * |
| 607 | * Description of Aab_Vxworks_Regs_Vxtypes fix |
| 608 | */ |
| 609 | tSCC zAab_Vxworks_Regs_VxtypesName[] = |
| 610 | "AAB_vxworks_regs_vxtypes" ; |
| 611 | |
| 612 | /* |
| 613 | * File name selection pattern |
| 614 | */ |
| 615 | tSCC zAab_Vxworks_Regs_VxtypesList[] = |
| 616 | "regs.h\0" ; |
| 617 | /* |
| 618 | * Machine/OS name selection pattern |
| 619 | */ |
| 620 | tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = { |
| 621 | "*-*-vxworks*" , |
| 622 | (const char*)NULL }; |
| 623 | #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT 0 |
| 624 | #define aAab_Vxworks_Regs_VxtypesTests (tTestDesc*)NULL |
| 625 | |
| 626 | /* |
| 627 | * Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes |
| 628 | */ |
| 629 | static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = { |
| 630 | "#ifndef _REGS_H\n\ |
| 631 | #define _REGS_H\n\ |
| 632 | /* regs.h depends on CPU_FAMILY being properly defined, which\n\ |
| 633 | is done by vxCpu.h. */\n\ |
| 634 | #include <types/vxCpu.h>\n\ |
| 635 | /* regs.h includes a CPU_FAMILY-specific header that requires\n\ |
| 636 | vxTypesOld.h to already have been included. Those headers\n\ |
| 637 | contain proper _ASMLANGUAGE guards around their typedefs,\n\ |
| 638 | but vxTypesOld.h itself does not. So we avoid including\n\ |
| 639 | vxTypesOld.h from assembly. */\n\ |
| 640 | #ifndef _ASMLANGUAGE\n\ |
| 641 | #include <types/vxTypesOld.h>\n\ |
| 642 | #endif\n\ |
| 643 | #include_next <arch/../regs.h>\n\ |
| 644 | #endif" , |
| 645 | (char*)NULL }; |
| 646 | |
| 647 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 648 | * |
| 649 | * Description of Aab_Vxworks_Unistd fix |
| 650 | */ |
| 651 | tSCC zAab_Vxworks_UnistdName[] = |
| 652 | "AAB_vxworks_unistd" ; |
| 653 | |
| 654 | /* |
| 655 | * File name selection pattern |
| 656 | */ |
| 657 | tSCC zAab_Vxworks_UnistdList[] = |
| 658 | "unistd.h\0" ; |
| 659 | /* |
| 660 | * Machine/OS name selection pattern |
| 661 | */ |
| 662 | tSCC* apzAab_Vxworks_UnistdMachs[] = { |
| 663 | "*-*-vxworks*" , |
| 664 | (const char*)NULL }; |
| 665 | #define AAB_VXWORKS_UNISTD_TEST_CT 0 |
| 666 | #define aAab_Vxworks_UnistdTests (tTestDesc*)NULL |
| 667 | |
| 668 | /* |
| 669 | * Fix Command Arguments for Aab_Vxworks_Unistd |
| 670 | */ |
| 671 | static const char* apzAab_Vxworks_UnistdPatch[] = { |
| 672 | "#ifndef _UNISTD_H\n\ |
| 673 | #define _UNISTD_H\n\ |
| 674 | #include_next <unistd.h>\n\ |
| 675 | #include <ioLib.h>\n\ |
| 676 | #ifndef STDIN_FILENO\n\ |
| 677 | #define STDIN_FILENO 0\n\ |
| 678 | #endif\n\ |
| 679 | #ifndef STDOUT_FILENO\n\ |
| 680 | #define STDOUT_FILENO 1\n\ |
| 681 | #endif\n\ |
| 682 | #ifndef STDERR_FILENO\n\ |
| 683 | #define STDERR_FILENO 2\n\ |
| 684 | #endif\n\ |
| 685 | #endif /* _UNISTD_H */" , |
| 686 | (char*)NULL }; |
| 687 | |
| 688 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 689 | * |
| 690 | * Description of Aix_Assert fix |
| 691 | */ |
| 692 | tSCC zAix_AssertName[] = |
| 693 | "aix_assert" ; |
| 694 | |
| 695 | /* |
| 696 | * File name selection pattern |
| 697 | */ |
| 698 | tSCC zAix_AssertList[] = |
| 699 | "assert.h\0" ; |
| 700 | /* |
| 701 | * Machine/OS name selection pattern |
| 702 | */ |
| 703 | tSCC* apzAix_AssertMachs[] = { |
| 704 | "*-*-aix*" , |
| 705 | (const char*)NULL }; |
| 706 | |
| 707 | /* |
| 708 | * content selection pattern - do fix if pattern found |
| 709 | */ |
| 710 | tSCC zAix_AssertSelect0[] = |
| 711 | "#define[ \t]static_assert[ \t]_Static_assert" ; |
| 712 | |
| 713 | #define AIX_ASSERT_TEST_CT 1 |
| 714 | static tTestDesc aAix_AssertTests[] = { |
| 715 | { .type: TT_EGREP, .pz_test_text: zAix_AssertSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 716 | |
| 717 | /* |
| 718 | * Fix Command Arguments for Aix_Assert |
| 719 | */ |
| 720 | static const char* apzAix_AssertPatch[] = { |
| 721 | "format" , |
| 722 | "#ifndef __cplusplus\n\ |
| 723 | %0\n\ |
| 724 | #endif" , |
| 725 | (char*)NULL }; |
| 726 | |
| 727 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 728 | * |
| 729 | * Description of Aix_Complex fix |
| 730 | */ |
| 731 | tSCC zAix_ComplexName[] = |
| 732 | "aix_complex" ; |
| 733 | |
| 734 | /* |
| 735 | * File name selection pattern |
| 736 | */ |
| 737 | tSCC zAix_ComplexList[] = |
| 738 | "complex.h\0" ; |
| 739 | /* |
| 740 | * Machine/OS name selection pattern |
| 741 | */ |
| 742 | tSCC* apzAix_ComplexMachs[] = { |
| 743 | "*-*-aix*" , |
| 744 | (const char*)NULL }; |
| 745 | |
| 746 | /* |
| 747 | * content selection pattern - do fix if pattern found |
| 748 | */ |
| 749 | tSCC zAix_ComplexSelect0[] = |
| 750 | "#define[ \t]_Complex_I[ \t]__I" ; |
| 751 | |
| 752 | #define AIX_COMPLEX_TEST_CT 1 |
| 753 | static tTestDesc aAix_ComplexTests[] = { |
| 754 | { .type: TT_EGREP, .pz_test_text: zAix_ComplexSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 755 | |
| 756 | /* |
| 757 | * Fix Command Arguments for Aix_Complex |
| 758 | */ |
| 759 | static const char* apzAix_ComplexPatch[] = { |
| 760 | "format" , |
| 761 | "#define _Complex_I (__extension__ 1.0iF)" , |
| 762 | (char*)NULL }; |
| 763 | |
| 764 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 765 | * |
| 766 | * Description of Aix_Externc fix |
| 767 | */ |
| 768 | tSCC zAix_ExterncName[] = |
| 769 | "aix_externc" ; |
| 770 | |
| 771 | /* |
| 772 | * File name selection pattern |
| 773 | */ |
| 774 | tSCC zAix_ExterncList[] = |
| 775 | "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0" ; |
| 776 | /* |
| 777 | * Machine/OS name selection pattern |
| 778 | */ |
| 779 | tSCC* apzAix_ExterncMachs[] = { |
| 780 | "*-*-aix*" , |
| 781 | (const char*)NULL }; |
| 782 | |
| 783 | /* |
| 784 | * content bypass pattern - skip fix if pattern found |
| 785 | */ |
| 786 | tSCC zAix_ExterncBypass0[] = |
| 787 | "extern \"C\"" ; |
| 788 | |
| 789 | #define AIX_EXTERNC_TEST_CT 1 |
| 790 | static tTestDesc aAix_ExterncTests[] = { |
| 791 | { .type: TT_NEGREP, .pz_test_text: zAix_ExterncBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 792 | |
| 793 | /* |
| 794 | * Fix Command Arguments for Aix_Externc |
| 795 | */ |
| 796 | static const char* apzAix_ExterncPatch[] = { |
| 797 | "wrap" , |
| 798 | "#ifdef __cplusplus\n\ |
| 799 | extern \"C\" {\n\ |
| 800 | #endif\n" , |
| 801 | "#ifdef __cplusplus\n\ |
| 802 | }\n\ |
| 803 | #endif\n" , |
| 804 | (char*)NULL }; |
| 805 | |
| 806 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 807 | * |
| 808 | * Description of Aix_Externcpp1 fix |
| 809 | */ |
| 810 | tSCC zAix_Externcpp1Name[] = |
| 811 | "aix_externcpp1" ; |
| 812 | |
| 813 | /* |
| 814 | * File name selection pattern |
| 815 | */ |
| 816 | tSCC zAix_Externcpp1List[] = |
| 817 | "sys/socket.h\0" ; |
| 818 | /* |
| 819 | * Machine/OS name selection pattern |
| 820 | */ |
| 821 | tSCC* apzAix_Externcpp1Machs[] = { |
| 822 | "*-*-aix*" , |
| 823 | (const char*)NULL }; |
| 824 | |
| 825 | /* |
| 826 | * content selection pattern - do fix if pattern found |
| 827 | */ |
| 828 | tSCC zAix_Externcpp1Select0[] = |
| 829 | "#ifndef _KERNEL\n\ |
| 830 | #ifdef __cplusplus\n\ |
| 831 | extern \"C\" int naccept\\(int, struct sockaddr \\*, socklen_t \\*\\);" ; |
| 832 | |
| 833 | #define AIX_EXTERNCPP1_TEST_CT 1 |
| 834 | static tTestDesc aAix_Externcpp1Tests[] = { |
| 835 | { .type: TT_EGREP, .pz_test_text: zAix_Externcpp1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 836 | |
| 837 | /* |
| 838 | * Fix Command Arguments for Aix_Externcpp1 |
| 839 | */ |
| 840 | static const char* apzAix_Externcpp1Patch[] = { |
| 841 | "format" , |
| 842 | "#ifndef _KERNEL\n\ |
| 843 | #ifdef __cplusplus\n\ |
| 844 | extern \"C++\" {\n\ |
| 845 | extern \"C\" int naccept(int, struct sockaddr *, socklen_t *);" , |
| 846 | (char*)NULL }; |
| 847 | |
| 848 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 849 | * |
| 850 | * Description of Aix_Externcpp2 fix |
| 851 | */ |
| 852 | tSCC zAix_Externcpp2Name[] = |
| 853 | "aix_externcpp2" ; |
| 854 | |
| 855 | /* |
| 856 | * File name selection pattern |
| 857 | */ |
| 858 | tSCC zAix_Externcpp2List[] = |
| 859 | "sys/socket.h\0" ; |
| 860 | /* |
| 861 | * Machine/OS name selection pattern |
| 862 | */ |
| 863 | tSCC* apzAix_Externcpp2Machs[] = { |
| 864 | "*-*-aix*" , |
| 865 | (const char*)NULL }; |
| 866 | |
| 867 | /* |
| 868 | * content selection pattern - do fix if pattern found |
| 869 | */ |
| 870 | tSCC zAix_Externcpp2Select0[] = |
| 871 | "#endif /\\* COMPAT_43 \\*/\n\ |
| 872 | #else /\\* __cplusplus \\*/" ; |
| 873 | |
| 874 | #define AIX_EXTERNCPP2_TEST_CT 1 |
| 875 | static tTestDesc aAix_Externcpp2Tests[] = { |
| 876 | { .type: TT_EGREP, .pz_test_text: zAix_Externcpp2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 877 | |
| 878 | /* |
| 879 | * Fix Command Arguments for Aix_Externcpp2 |
| 880 | */ |
| 881 | static const char* apzAix_Externcpp2Patch[] = { |
| 882 | "format" , |
| 883 | "#endif /* COMPAT_43 */\n\ |
| 884 | } /* extern \"C++\" */\n\ |
| 885 | #else /* __cplusplus */" , |
| 886 | (char*)NULL }; |
| 887 | |
| 888 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 889 | * |
| 890 | * Description of Aix_Inttypes fix |
| 891 | */ |
| 892 | tSCC zAix_InttypesName[] = |
| 893 | "aix_inttypes" ; |
| 894 | |
| 895 | /* |
| 896 | * File name selection pattern |
| 897 | */ |
| 898 | tSCC zAix_InttypesList[] = |
| 899 | "sys/inttypes.h\0" ; |
| 900 | /* |
| 901 | * Machine/OS name selection pattern |
| 902 | */ |
| 903 | tSCC* apzAix_InttypesMachs[] = { |
| 904 | "*-*-aix*" , |
| 905 | (const char*)NULL }; |
| 906 | |
| 907 | /* |
| 908 | * content selection pattern - do fix if pattern found |
| 909 | */ |
| 910 | tSCC zAix_InttypesSelect0[] = |
| 911 | "#if !defined\\(__cplusplus\\) \\|\\| defined\\(__STDC_FORMAT_MACROS\\)" ; |
| 912 | |
| 913 | #define AIX_INTTYPES_TEST_CT 1 |
| 914 | static tTestDesc aAix_InttypesTests[] = { |
| 915 | { .type: TT_EGREP, .pz_test_text: zAix_InttypesSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 916 | |
| 917 | /* |
| 918 | * Fix Command Arguments for Aix_Inttypes |
| 919 | */ |
| 920 | static const char* apzAix_InttypesPatch[] = { |
| 921 | "format" , |
| 922 | "#if 1" , |
| 923 | (char*)NULL }; |
| 924 | |
| 925 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 926 | * |
| 927 | * Description of Aix_Malloc fix |
| 928 | */ |
| 929 | tSCC zAix_MallocName[] = |
| 930 | "aix_malloc" ; |
| 931 | |
| 932 | /* |
| 933 | * File name selection pattern |
| 934 | */ |
| 935 | tSCC zAix_MallocList[] = |
| 936 | "malloc.h\0" ; |
| 937 | /* |
| 938 | * Machine/OS name selection pattern |
| 939 | */ |
| 940 | tSCC* apzAix_MallocMachs[] = { |
| 941 | "*-*-aix*" , |
| 942 | (const char*)NULL }; |
| 943 | |
| 944 | /* |
| 945 | * content selection pattern - do fix if pattern found |
| 946 | */ |
| 947 | tSCC zAix_MallocSelect0[] = |
| 948 | "#ifdef __cplusplus\n\ |
| 949 | extern \"C\" \\{\n\ |
| 950 | [ \t]extern \"builtin\" char \\*__alloca \\(size_t\\);" ; |
| 951 | |
| 952 | #define AIX_MALLOC_TEST_CT 1 |
| 953 | static tTestDesc aAix_MallocTests[] = { |
| 954 | { .type: TT_EGREP, .pz_test_text: zAix_MallocSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 955 | |
| 956 | /* |
| 957 | * Fix Command Arguments for Aix_Malloc |
| 958 | */ |
| 959 | static const char* apzAix_MallocPatch[] = { |
| 960 | "format" , |
| 961 | "#if (defined(__cplusplus) && defined(__IBMCPP__))\n\ |
| 962 | extern \"C\" {\n\ |
| 963 | \textern \"builtin\" char *__alloca (size_t);" , |
| 964 | (char*)NULL }; |
| 965 | |
| 966 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 967 | * |
| 968 | * Description of Aix_Net_If_Arp fix |
| 969 | */ |
| 970 | tSCC zAix_Net_If_ArpName[] = |
| 971 | "aix_net_if_arp" ; |
| 972 | |
| 973 | /* |
| 974 | * File name selection pattern |
| 975 | */ |
| 976 | tSCC zAix_Net_If_ArpList[] = |
| 977 | "net/if_arp.h\0" ; |
| 978 | /* |
| 979 | * Machine/OS name selection pattern |
| 980 | */ |
| 981 | tSCC* apzAix_Net_If_ArpMachs[] = { |
| 982 | "*-*-aix*" , |
| 983 | (const char*)NULL }; |
| 984 | |
| 985 | /* |
| 986 | * content selection pattern - do fix if pattern found |
| 987 | */ |
| 988 | tSCC zAix_Net_If_ArpSelect0[] = |
| 989 | "^struct fc_softc \\{" ; |
| 990 | |
| 991 | #define AIX_NET_IF_ARP_TEST_CT 1 |
| 992 | static tTestDesc aAix_Net_If_ArpTests[] = { |
| 993 | { .type: TT_EGREP, .pz_test_text: zAix_Net_If_ArpSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 994 | |
| 995 | /* |
| 996 | * Fix Command Arguments for Aix_Net_If_Arp |
| 997 | */ |
| 998 | static const char* apzAix_Net_If_ArpPatch[] = { |
| 999 | "format" , |
| 1000 | "typedef struct _fc_softc {" , |
| 1001 | (char*)NULL }; |
| 1002 | |
| 1003 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1004 | * |
| 1005 | * Description of Aix_Null fix |
| 1006 | */ |
| 1007 | tSCC zAix_NullName[] = |
| 1008 | "aix_null" ; |
| 1009 | |
| 1010 | /* |
| 1011 | * File name selection pattern |
| 1012 | */ |
| 1013 | tSCC zAix_NullList[] = |
| 1014 | "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/dir.h\0sys/param.h\0sys/types.h\0" ; |
| 1015 | /* |
| 1016 | * Machine/OS name selection pattern |
| 1017 | */ |
| 1018 | tSCC* apzAix_NullMachs[] = { |
| 1019 | "*-*-aix*" , |
| 1020 | (const char*)NULL }; |
| 1021 | |
| 1022 | /* |
| 1023 | * content selection pattern - do fix if pattern found |
| 1024 | */ |
| 1025 | tSCC zAix_NullSelect0[] = |
| 1026 | "#define[ \t]+NULL[ \t]+\\(*0L*\\)*" ; |
| 1027 | |
| 1028 | /* |
| 1029 | * content bypass pattern - skip fix if pattern found |
| 1030 | */ |
| 1031 | tSCC zAix_NullBypass0[] = |
| 1032 | "__null" ; |
| 1033 | |
| 1034 | #define AIX_NULL_TEST_CT 2 |
| 1035 | static tTestDesc aAix_NullTests[] = { |
| 1036 | { .type: TT_NEGREP, .pz_test_text: zAix_NullBypass0, .p_test_regex: (regex_t*)NULL }, |
| 1037 | { .type: TT_EGREP, .pz_test_text: zAix_NullSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1038 | |
| 1039 | /* |
| 1040 | * Fix Command Arguments for Aix_Null |
| 1041 | */ |
| 1042 | static const char* apzAix_NullPatch[] = { |
| 1043 | "format" , |
| 1044 | "#ifndef NULL\n\ |
| 1045 | #ifdef __cplusplus\n\ |
| 1046 | #ifdef __GNUG__\n\ |
| 1047 | #define NULL __null\n\ |
| 1048 | #else /* ! __GNUG__ */\n\ |
| 1049 | #define NULL 0L\n\ |
| 1050 | #endif /* __GNUG__ */\n\ |
| 1051 | #else /* ! __cplusplus */\n\ |
| 1052 | #define NULL ((void *)0)\n\ |
| 1053 | #endif /* __cplusplus */\n\ |
| 1054 | #endif /* !NULL */" , |
| 1055 | (char*)NULL }; |
| 1056 | |
| 1057 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1058 | * |
| 1059 | * Description of Aix_Once_Init_1 fix |
| 1060 | */ |
| 1061 | tSCC zAix_Once_Init_1Name[] = |
| 1062 | "aix_once_init_1" ; |
| 1063 | |
| 1064 | /* |
| 1065 | * File name selection pattern |
| 1066 | */ |
| 1067 | tSCC zAix_Once_Init_1List[] = |
| 1068 | "pthread.h\0" ; |
| 1069 | /* |
| 1070 | * Machine/OS name selection pattern |
| 1071 | */ |
| 1072 | tSCC* apzAix_Once_Init_1Machs[] = { |
| 1073 | "*-*-aix*" , |
| 1074 | (const char*)NULL }; |
| 1075 | |
| 1076 | /* |
| 1077 | * content selection pattern - do fix if pattern found |
| 1078 | */ |
| 1079 | tSCC zAix_Once_Init_1Select0[] = |
| 1080 | "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\ |
| 1081 | \\{ \\\\\n" ; |
| 1082 | |
| 1083 | #define AIX_ONCE_INIT_1_TEST_CT 1 |
| 1084 | static tTestDesc aAix_Once_Init_1Tests[] = { |
| 1085 | { .type: TT_EGREP, .pz_test_text: zAix_Once_Init_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1086 | |
| 1087 | /* |
| 1088 | * Fix Command Arguments for Aix_Once_Init_1 |
| 1089 | */ |
| 1090 | static const char* apzAix_Once_Init_1Patch[] = { |
| 1091 | "format" , |
| 1092 | "#define PTHREAD_ONCE_INIT \\\n\ |
| 1093 | {{ \\\n" , |
| 1094 | (char*)NULL }; |
| 1095 | |
| 1096 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1097 | * |
| 1098 | * Description of Aix_Once_Init_2 fix |
| 1099 | */ |
| 1100 | tSCC zAix_Once_Init_2Name[] = |
| 1101 | "aix_once_init_2" ; |
| 1102 | |
| 1103 | /* |
| 1104 | * File name selection pattern |
| 1105 | */ |
| 1106 | tSCC zAix_Once_Init_2List[] = |
| 1107 | "pthread.h\0" ; |
| 1108 | /* |
| 1109 | * Machine/OS name selection pattern |
| 1110 | */ |
| 1111 | tSCC* apzAix_Once_Init_2Machs[] = { |
| 1112 | "*-*-aix*" , |
| 1113 | (const char*)NULL }; |
| 1114 | |
| 1115 | /* |
| 1116 | * content selection pattern - do fix if pattern found |
| 1117 | */ |
| 1118 | tSCC zAix_Once_Init_2Select0[] = |
| 1119 | "[ \t]0 \\\\\n\ |
| 1120 | \\}\n" ; |
| 1121 | |
| 1122 | #define AIX_ONCE_INIT_2_TEST_CT 1 |
| 1123 | static tTestDesc aAix_Once_Init_2Tests[] = { |
| 1124 | { .type: TT_EGREP, .pz_test_text: zAix_Once_Init_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1125 | |
| 1126 | /* |
| 1127 | * Fix Command Arguments for Aix_Once_Init_2 |
| 1128 | */ |
| 1129 | static const char* apzAix_Once_Init_2Patch[] = { |
| 1130 | "format" , |
| 1131 | "\t0 \\\n\ |
| 1132 | }}\n" , |
| 1133 | (char*)NULL }; |
| 1134 | |
| 1135 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1136 | * |
| 1137 | * Description of Aix_Mutex_Initializer_1 fix |
| 1138 | */ |
| 1139 | tSCC zAix_Mutex_Initializer_1Name[] = |
| 1140 | "aix_mutex_initializer_1" ; |
| 1141 | |
| 1142 | /* |
| 1143 | * File name selection pattern |
| 1144 | */ |
| 1145 | tSCC zAix_Mutex_Initializer_1List[] = |
| 1146 | "pthread.h\0" ; |
| 1147 | /* |
| 1148 | * Machine/OS name selection pattern |
| 1149 | */ |
| 1150 | tSCC* apzAix_Mutex_Initializer_1Machs[] = { |
| 1151 | "*-*-aix*" , |
| 1152 | (const char*)NULL }; |
| 1153 | |
| 1154 | /* |
| 1155 | * content selection pattern - do fix if pattern found |
| 1156 | */ |
| 1157 | tSCC zAix_Mutex_Initializer_1Select0[] = |
| 1158 | "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\ |
| 1159 | \\{ \\\\\n" ; |
| 1160 | |
| 1161 | #define AIX_MUTEX_INITIALIZER_1_TEST_CT 1 |
| 1162 | static tTestDesc aAix_Mutex_Initializer_1Tests[] = { |
| 1163 | { .type: TT_EGREP, .pz_test_text: zAix_Mutex_Initializer_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1164 | |
| 1165 | /* |
| 1166 | * Fix Command Arguments for Aix_Mutex_Initializer_1 |
| 1167 | */ |
| 1168 | static const char* apzAix_Mutex_Initializer_1Patch[] = { |
| 1169 | "format" , |
| 1170 | "#define PTHREAD_MUTEX_INITIALIZER \\\n\ |
| 1171 | {{ \\\n" , |
| 1172 | (char*)NULL }; |
| 1173 | |
| 1174 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1175 | * |
| 1176 | * Description of Aix_Cond_Initializer_1 fix |
| 1177 | */ |
| 1178 | tSCC zAix_Cond_Initializer_1Name[] = |
| 1179 | "aix_cond_initializer_1" ; |
| 1180 | |
| 1181 | /* |
| 1182 | * File name selection pattern |
| 1183 | */ |
| 1184 | tSCC zAix_Cond_Initializer_1List[] = |
| 1185 | "pthread.h\0" ; |
| 1186 | /* |
| 1187 | * Machine/OS name selection pattern |
| 1188 | */ |
| 1189 | tSCC* apzAix_Cond_Initializer_1Machs[] = { |
| 1190 | "*-*-aix*" , |
| 1191 | (const char*)NULL }; |
| 1192 | |
| 1193 | /* |
| 1194 | * content selection pattern - do fix if pattern found |
| 1195 | */ |
| 1196 | tSCC zAix_Cond_Initializer_1Select0[] = |
| 1197 | "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\ |
| 1198 | \\{ \\\\\n" ; |
| 1199 | |
| 1200 | #define AIX_COND_INITIALIZER_1_TEST_CT 1 |
| 1201 | static tTestDesc aAix_Cond_Initializer_1Tests[] = { |
| 1202 | { .type: TT_EGREP, .pz_test_text: zAix_Cond_Initializer_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1203 | |
| 1204 | /* |
| 1205 | * Fix Command Arguments for Aix_Cond_Initializer_1 |
| 1206 | */ |
| 1207 | static const char* apzAix_Cond_Initializer_1Patch[] = { |
| 1208 | "format" , |
| 1209 | "#define PTHREAD_COND_INITIALIZER \\\n\ |
| 1210 | {{ \\\n" , |
| 1211 | (char*)NULL }; |
| 1212 | |
| 1213 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1214 | * |
| 1215 | * Description of Aix_Rwlock_Initializer_1 fix |
| 1216 | */ |
| 1217 | tSCC zAix_Rwlock_Initializer_1Name[] = |
| 1218 | "aix_rwlock_initializer_1" ; |
| 1219 | |
| 1220 | /* |
| 1221 | * File name selection pattern |
| 1222 | */ |
| 1223 | tSCC zAix_Rwlock_Initializer_1List[] = |
| 1224 | "pthread.h\0" ; |
| 1225 | /* |
| 1226 | * Machine/OS name selection pattern |
| 1227 | */ |
| 1228 | tSCC* apzAix_Rwlock_Initializer_1Machs[] = { |
| 1229 | "*-*-aix*" , |
| 1230 | (const char*)NULL }; |
| 1231 | |
| 1232 | /* |
| 1233 | * content selection pattern - do fix if pattern found |
| 1234 | */ |
| 1235 | tSCC zAix_Rwlock_Initializer_1Select0[] = |
| 1236 | "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\ |
| 1237 | \\{ \\\\\n" ; |
| 1238 | |
| 1239 | #define AIX_RWLOCK_INITIALIZER_1_TEST_CT 1 |
| 1240 | static tTestDesc aAix_Rwlock_Initializer_1Tests[] = { |
| 1241 | { .type: TT_EGREP, .pz_test_text: zAix_Rwlock_Initializer_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1242 | |
| 1243 | /* |
| 1244 | * Fix Command Arguments for Aix_Rwlock_Initializer_1 |
| 1245 | */ |
| 1246 | static const char* apzAix_Rwlock_Initializer_1Patch[] = { |
| 1247 | "format" , |
| 1248 | "#define PTHREAD_RWLOCK_INITIALIZER \\\n\ |
| 1249 | {{ \\\n" , |
| 1250 | (char*)NULL }; |
| 1251 | |
| 1252 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1253 | * |
| 1254 | * Description of Aix_Physadr_T fix |
| 1255 | */ |
| 1256 | tSCC zAix_Physadr_TName[] = |
| 1257 | "aix_physadr_t" ; |
| 1258 | |
| 1259 | /* |
| 1260 | * File name selection pattern |
| 1261 | */ |
| 1262 | tSCC zAix_Physadr_TList[] = |
| 1263 | "sys/types.h\0" ; |
| 1264 | /* |
| 1265 | * Machine/OS name selection pattern |
| 1266 | */ |
| 1267 | tSCC* apzAix_Physadr_TMachs[] = { |
| 1268 | "*-*-aix*" , |
| 1269 | (const char*)NULL }; |
| 1270 | |
| 1271 | /* |
| 1272 | * content selection pattern - do fix if pattern found |
| 1273 | */ |
| 1274 | tSCC zAix_Physadr_TSelect0[] = |
| 1275 | "typedef[ \t]*struct[ \t]*([{][^}]*[}][ \t]*\\*[ \t]*physadr_t;)" ; |
| 1276 | |
| 1277 | #define AIX_PHYSADR_T_TEST_CT 1 |
| 1278 | static tTestDesc aAix_Physadr_TTests[] = { |
| 1279 | { .type: TT_EGREP, .pz_test_text: zAix_Physadr_TSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1280 | |
| 1281 | /* |
| 1282 | * Fix Command Arguments for Aix_Physadr_T |
| 1283 | */ |
| 1284 | static const char* apzAix_Physadr_TPatch[] = { |
| 1285 | "format" , |
| 1286 | "typedef struct __physadr_s %1" , |
| 1287 | (char*)NULL }; |
| 1288 | |
| 1289 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1290 | * |
| 1291 | * Description of Aix_Pthread fix |
| 1292 | */ |
| 1293 | tSCC zAix_PthreadName[] = |
| 1294 | "aix_pthread" ; |
| 1295 | |
| 1296 | /* |
| 1297 | * File name selection pattern |
| 1298 | */ |
| 1299 | tSCC zAix_PthreadList[] = |
| 1300 | "pthread.h\0" ; |
| 1301 | /* |
| 1302 | * Machine/OS name selection pattern |
| 1303 | */ |
| 1304 | #define apzAix_PthreadMachs (const char**)NULL |
| 1305 | |
| 1306 | /* |
| 1307 | * content selection pattern - do fix if pattern found |
| 1308 | */ |
| 1309 | tSCC zAix_PthreadSelect0[] = |
| 1310 | "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\ |
| 1311 | [^A-Za-z_0-9 \t\n\ |
| 1312 | (])" ; |
| 1313 | |
| 1314 | #define AIX_PTHREAD_TEST_CT 1 |
| 1315 | static tTestDesc aAix_PthreadTests[] = { |
| 1316 | { .type: TT_EGREP, .pz_test_text: zAix_PthreadSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1317 | |
| 1318 | /* |
| 1319 | * Fix Command Arguments for Aix_Pthread |
| 1320 | */ |
| 1321 | static const char* apzAix_PthreadPatch[] = { |
| 1322 | "format" , |
| 1323 | "%1 %2" , |
| 1324 | (char*)NULL }; |
| 1325 | |
| 1326 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1327 | * |
| 1328 | * Description of Aix_Stdint_1 fix |
| 1329 | */ |
| 1330 | tSCC zAix_Stdint_1Name[] = |
| 1331 | "aix_stdint_1" ; |
| 1332 | |
| 1333 | /* |
| 1334 | * File name selection pattern |
| 1335 | */ |
| 1336 | tSCC zAix_Stdint_1List[] = |
| 1337 | "stdint-aix.h\0stdint.h\0" ; |
| 1338 | /* |
| 1339 | * Machine/OS name selection pattern |
| 1340 | */ |
| 1341 | tSCC* apzAix_Stdint_1Machs[] = { |
| 1342 | "*-*-aix*" , |
| 1343 | (const char*)NULL }; |
| 1344 | |
| 1345 | /* |
| 1346 | * content selection pattern - do fix if pattern found |
| 1347 | */ |
| 1348 | tSCC zAix_Stdint_1Select0[] = |
| 1349 | "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\ |
| 1350 | #define[ \t]UINT16_MAX[ \t]\\(65535U\\)" ; |
| 1351 | |
| 1352 | #define AIX_STDINT_1_TEST_CT 1 |
| 1353 | static tTestDesc aAix_Stdint_1Tests[] = { |
| 1354 | { .type: TT_EGREP, .pz_test_text: zAix_Stdint_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1355 | |
| 1356 | /* |
| 1357 | * Fix Command Arguments for Aix_Stdint_1 |
| 1358 | */ |
| 1359 | static const char* apzAix_Stdint_1Patch[] = { |
| 1360 | "format" , |
| 1361 | "#define UINT8_MAX\t(255)\n\ |
| 1362 | #define UINT16_MAX\t(65535)" , |
| 1363 | (char*)NULL }; |
| 1364 | |
| 1365 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1366 | * |
| 1367 | * Description of Aix_Stdint_2 fix |
| 1368 | */ |
| 1369 | tSCC zAix_Stdint_2Name[] = |
| 1370 | "aix_stdint_2" ; |
| 1371 | |
| 1372 | /* |
| 1373 | * File name selection pattern |
| 1374 | */ |
| 1375 | tSCC zAix_Stdint_2List[] = |
| 1376 | "stdint-aix.h\0stdint.h\0" ; |
| 1377 | /* |
| 1378 | * Machine/OS name selection pattern |
| 1379 | */ |
| 1380 | tSCC* apzAix_Stdint_2Machs[] = { |
| 1381 | "*-*-aix*" , |
| 1382 | (const char*)NULL }; |
| 1383 | |
| 1384 | /* |
| 1385 | * content selection pattern - do fix if pattern found |
| 1386 | */ |
| 1387 | tSCC zAix_Stdint_2Select0[] = |
| 1388 | "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\ |
| 1389 | #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\ |
| 1390 | #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\ |
| 1391 | #else\n\ |
| 1392 | #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\ |
| 1393 | #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\ |
| 1394 | #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX" ; |
| 1395 | |
| 1396 | #define AIX_STDINT_2_TEST_CT 1 |
| 1397 | static tTestDesc aAix_Stdint_2Tests[] = { |
| 1398 | { .type: TT_EGREP, .pz_test_text: zAix_Stdint_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1399 | |
| 1400 | /* |
| 1401 | * Fix Command Arguments for Aix_Stdint_2 |
| 1402 | */ |
| 1403 | static const char* apzAix_Stdint_2Patch[] = { |
| 1404 | "format" , |
| 1405 | "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\ |
| 1406 | #define INTPTR_MAX\t9223372036854775807L\n\ |
| 1407 | #define UINTPTR_MAX\t18446744073709551615UL\n\ |
| 1408 | #else\n\ |
| 1409 | #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\ |
| 1410 | #define INTPTR_MAX\t2147483647L\n\ |
| 1411 | #define UINTPTR_MAX\t4294967295UL" , |
| 1412 | (char*)NULL }; |
| 1413 | |
| 1414 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1415 | * |
| 1416 | * Description of Aix_Stdint_3 fix |
| 1417 | */ |
| 1418 | tSCC zAix_Stdint_3Name[] = |
| 1419 | "aix_stdint_3" ; |
| 1420 | |
| 1421 | /* |
| 1422 | * File name selection pattern |
| 1423 | */ |
| 1424 | tSCC zAix_Stdint_3List[] = |
| 1425 | "stdint-aix.h\0stdint.h\0" ; |
| 1426 | /* |
| 1427 | * Machine/OS name selection pattern |
| 1428 | */ |
| 1429 | tSCC* apzAix_Stdint_3Machs[] = { |
| 1430 | "*-*-aix*" , |
| 1431 | (const char*)NULL }; |
| 1432 | |
| 1433 | /* |
| 1434 | * content selection pattern - do fix if pattern found |
| 1435 | */ |
| 1436 | tSCC zAix_Stdint_3Select0[] = |
| 1437 | "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\ |
| 1438 | #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\ |
| 1439 | #else\n\ |
| 1440 | #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\ |
| 1441 | #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX" ; |
| 1442 | |
| 1443 | #define AIX_STDINT_3_TEST_CT 1 |
| 1444 | static tTestDesc aAix_Stdint_3Tests[] = { |
| 1445 | { .type: TT_EGREP, .pz_test_text: zAix_Stdint_3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1446 | |
| 1447 | /* |
| 1448 | * Fix Command Arguments for Aix_Stdint_3 |
| 1449 | */ |
| 1450 | static const char* apzAix_Stdint_3Patch[] = { |
| 1451 | "format" , |
| 1452 | "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\ |
| 1453 | #define PTRDIFF_MAX\t9223372036854775807L\n\ |
| 1454 | #else\n\ |
| 1455 | #define PTRDIFF_MIN\t(-2147483647L - 1)\n\ |
| 1456 | #define PTRDIFF_MAX\t2147483647L" , |
| 1457 | (char*)NULL }; |
| 1458 | |
| 1459 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1460 | * |
| 1461 | * Description of Aix_Stdint_4 fix |
| 1462 | */ |
| 1463 | tSCC zAix_Stdint_4Name[] = |
| 1464 | "aix_stdint_4" ; |
| 1465 | |
| 1466 | /* |
| 1467 | * File name selection pattern |
| 1468 | */ |
| 1469 | tSCC zAix_Stdint_4List[] = |
| 1470 | "stdint-aix.h\0stdint.h\0" ; |
| 1471 | /* |
| 1472 | * Machine/OS name selection pattern |
| 1473 | */ |
| 1474 | tSCC* apzAix_Stdint_4Machs[] = { |
| 1475 | "*-*-aix*" , |
| 1476 | (const char*)NULL }; |
| 1477 | |
| 1478 | /* |
| 1479 | * content selection pattern - do fix if pattern found |
| 1480 | */ |
| 1481 | tSCC zAix_Stdint_4Select0[] = |
| 1482 | "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\ |
| 1483 | #else\n\ |
| 1484 | #define[ \t]SIZE_MAX[ \t]*UINT32_MAX" ; |
| 1485 | |
| 1486 | #define AIX_STDINT_4_TEST_CT 1 |
| 1487 | static tTestDesc aAix_Stdint_4Tests[] = { |
| 1488 | { .type: TT_EGREP, .pz_test_text: zAix_Stdint_4Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1489 | |
| 1490 | /* |
| 1491 | * Fix Command Arguments for Aix_Stdint_4 |
| 1492 | */ |
| 1493 | static const char* apzAix_Stdint_4Patch[] = { |
| 1494 | "format" , |
| 1495 | "#define SIZE_MAX\t18446744073709551615UL\n\ |
| 1496 | #else\n\ |
| 1497 | #define SIZE_MAX\t4294967295UL" , |
| 1498 | (char*)NULL }; |
| 1499 | |
| 1500 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1501 | * |
| 1502 | * Description of Aix_Stdint_5 fix |
| 1503 | */ |
| 1504 | tSCC zAix_Stdint_5Name[] = |
| 1505 | "aix_stdint_5" ; |
| 1506 | |
| 1507 | /* |
| 1508 | * File name selection pattern |
| 1509 | */ |
| 1510 | tSCC zAix_Stdint_5List[] = |
| 1511 | "stdint-aix.h\0stdint.h\0" ; |
| 1512 | /* |
| 1513 | * Machine/OS name selection pattern |
| 1514 | */ |
| 1515 | tSCC* apzAix_Stdint_5Machs[] = { |
| 1516 | "*-*-aix*" , |
| 1517 | (const char*)NULL }; |
| 1518 | |
| 1519 | /* |
| 1520 | * content selection pattern - do fix if pattern found |
| 1521 | */ |
| 1522 | tSCC zAix_Stdint_5Select0[] = |
| 1523 | "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\ |
| 1524 | #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)" ; |
| 1525 | |
| 1526 | #define AIX_STDINT_5_TEST_CT 1 |
| 1527 | static tTestDesc aAix_Stdint_5Tests[] = { |
| 1528 | { .type: TT_EGREP, .pz_test_text: zAix_Stdint_5Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1529 | |
| 1530 | /* |
| 1531 | * Fix Command Arguments for Aix_Stdint_5 |
| 1532 | */ |
| 1533 | static const char* apzAix_Stdint_5Patch[] = { |
| 1534 | "format" , |
| 1535 | "#define UINT8_C(c)\tc\n\ |
| 1536 | #define UINT16_C(c)\tc" , |
| 1537 | (char*)NULL }; |
| 1538 | |
| 1539 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1540 | * |
| 1541 | * Description of Aix_Stdio_Inline fix |
| 1542 | */ |
| 1543 | tSCC zAix_Stdio_InlineName[] = |
| 1544 | "aix_stdio_inline" ; |
| 1545 | |
| 1546 | /* |
| 1547 | * File name selection pattern |
| 1548 | */ |
| 1549 | tSCC zAix_Stdio_InlineList[] = |
| 1550 | "stdio.h\0" ; |
| 1551 | /* |
| 1552 | * Machine/OS name selection pattern |
| 1553 | */ |
| 1554 | tSCC* apzAix_Stdio_InlineMachs[] = { |
| 1555 | "*-*-aix*" , |
| 1556 | (const char*)NULL }; |
| 1557 | |
| 1558 | /* |
| 1559 | * content selection pattern - do fix if pattern found |
| 1560 | */ |
| 1561 | tSCC zAix_Stdio_InlineSelect0[] = |
| 1562 | "#ifdef __cplusplus\\\n\ |
| 1563 | }\\\n\ |
| 1564 | \\\n\ |
| 1565 | #ifdef ferror\\\n" ; |
| 1566 | |
| 1567 | #define AIX_STDIO_INLINE_TEST_CT 1 |
| 1568 | static tTestDesc aAix_Stdio_InlineTests[] = { |
| 1569 | { .type: TT_EGREP, .pz_test_text: zAix_Stdio_InlineSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1570 | |
| 1571 | /* |
| 1572 | * Fix Command Arguments for Aix_Stdio_Inline |
| 1573 | */ |
| 1574 | static const char* apzAix_Stdio_InlinePatch[] = { |
| 1575 | "format" , |
| 1576 | "#ifdef __cplusplus\n\ |
| 1577 | }\n\ |
| 1578 | #endif\n\n\ |
| 1579 | #if (defined(__cplusplus) && defined(__IBMCPP__))\n\ |
| 1580 | #ifdef ferror\n" , |
| 1581 | (char*)NULL }; |
| 1582 | |
| 1583 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1584 | * |
| 1585 | * Description of Aix_Stdlib_Malloc fix |
| 1586 | */ |
| 1587 | tSCC zAix_Stdlib_MallocName[] = |
| 1588 | "aix_stdlib_malloc" ; |
| 1589 | |
| 1590 | /* |
| 1591 | * File name selection pattern |
| 1592 | */ |
| 1593 | tSCC zAix_Stdlib_MallocList[] = |
| 1594 | "stdlib.h\0" ; |
| 1595 | /* |
| 1596 | * Machine/OS name selection pattern |
| 1597 | */ |
| 1598 | tSCC* apzAix_Stdlib_MallocMachs[] = { |
| 1599 | "*-*-aix*" , |
| 1600 | (const char*)NULL }; |
| 1601 | |
| 1602 | /* |
| 1603 | * content selection pattern - do fix if pattern found |
| 1604 | */ |
| 1605 | tSCC zAix_Stdlib_MallocSelect0[] = |
| 1606 | "#define[ \t]+malloc[ \t]+__linux_malloc" ; |
| 1607 | |
| 1608 | #define AIX_STDLIB_MALLOC_TEST_CT 1 |
| 1609 | static tTestDesc aAix_Stdlib_MallocTests[] = { |
| 1610 | { .type: TT_EGREP, .pz_test_text: zAix_Stdlib_MallocSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1611 | |
| 1612 | /* |
| 1613 | * Fix Command Arguments for Aix_Stdlib_Malloc |
| 1614 | */ |
| 1615 | static const char* apzAix_Stdlib_MallocPatch[] = { |
| 1616 | "format" , |
| 1617 | "extern void *malloc(size_t) __asm__(\"__linux_malloc\");" , |
| 1618 | (char*)NULL }; |
| 1619 | |
| 1620 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1621 | * |
| 1622 | * Description of Aix_Stdlib_Realloc fix |
| 1623 | */ |
| 1624 | tSCC zAix_Stdlib_ReallocName[] = |
| 1625 | "aix_stdlib_realloc" ; |
| 1626 | |
| 1627 | /* |
| 1628 | * File name selection pattern |
| 1629 | */ |
| 1630 | tSCC zAix_Stdlib_ReallocList[] = |
| 1631 | "stdlib.h\0" ; |
| 1632 | /* |
| 1633 | * Machine/OS name selection pattern |
| 1634 | */ |
| 1635 | tSCC* apzAix_Stdlib_ReallocMachs[] = { |
| 1636 | "*-*-aix*" , |
| 1637 | (const char*)NULL }; |
| 1638 | |
| 1639 | /* |
| 1640 | * content selection pattern - do fix if pattern found |
| 1641 | */ |
| 1642 | tSCC zAix_Stdlib_ReallocSelect0[] = |
| 1643 | "#define[ \t]+realloc[ \t]+__linux_realloc" ; |
| 1644 | |
| 1645 | #define AIX_STDLIB_REALLOC_TEST_CT 1 |
| 1646 | static tTestDesc aAix_Stdlib_ReallocTests[] = { |
| 1647 | { .type: TT_EGREP, .pz_test_text: zAix_Stdlib_ReallocSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1648 | |
| 1649 | /* |
| 1650 | * Fix Command Arguments for Aix_Stdlib_Realloc |
| 1651 | */ |
| 1652 | static const char* apzAix_Stdlib_ReallocPatch[] = { |
| 1653 | "format" , |
| 1654 | "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");" , |
| 1655 | (char*)NULL }; |
| 1656 | |
| 1657 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1658 | * |
| 1659 | * Description of Aix_Stdlib_Calloc fix |
| 1660 | */ |
| 1661 | tSCC zAix_Stdlib_CallocName[] = |
| 1662 | "aix_stdlib_calloc" ; |
| 1663 | |
| 1664 | /* |
| 1665 | * File name selection pattern |
| 1666 | */ |
| 1667 | tSCC zAix_Stdlib_CallocList[] = |
| 1668 | "stdlib.h\0" ; |
| 1669 | /* |
| 1670 | * Machine/OS name selection pattern |
| 1671 | */ |
| 1672 | tSCC* apzAix_Stdlib_CallocMachs[] = { |
| 1673 | "*-*-aix*" , |
| 1674 | (const char*)NULL }; |
| 1675 | |
| 1676 | /* |
| 1677 | * content selection pattern - do fix if pattern found |
| 1678 | */ |
| 1679 | tSCC zAix_Stdlib_CallocSelect0[] = |
| 1680 | "#define[ \t]+calloc[ \t]+__linux_calloc" ; |
| 1681 | |
| 1682 | #define AIX_STDLIB_CALLOC_TEST_CT 1 |
| 1683 | static tTestDesc aAix_Stdlib_CallocTests[] = { |
| 1684 | { .type: TT_EGREP, .pz_test_text: zAix_Stdlib_CallocSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1685 | |
| 1686 | /* |
| 1687 | * Fix Command Arguments for Aix_Stdlib_Calloc |
| 1688 | */ |
| 1689 | static const char* apzAix_Stdlib_CallocPatch[] = { |
| 1690 | "format" , |
| 1691 | "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");" , |
| 1692 | (char*)NULL }; |
| 1693 | |
| 1694 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1695 | * |
| 1696 | * Description of Aix_Stdlib_Valloc fix |
| 1697 | */ |
| 1698 | tSCC zAix_Stdlib_VallocName[] = |
| 1699 | "aix_stdlib_valloc" ; |
| 1700 | |
| 1701 | /* |
| 1702 | * File name selection pattern |
| 1703 | */ |
| 1704 | tSCC zAix_Stdlib_VallocList[] = |
| 1705 | "stdlib.h\0" ; |
| 1706 | /* |
| 1707 | * Machine/OS name selection pattern |
| 1708 | */ |
| 1709 | tSCC* apzAix_Stdlib_VallocMachs[] = { |
| 1710 | "*-*-aix*" , |
| 1711 | (const char*)NULL }; |
| 1712 | |
| 1713 | /* |
| 1714 | * content selection pattern - do fix if pattern found |
| 1715 | */ |
| 1716 | tSCC zAix_Stdlib_VallocSelect0[] = |
| 1717 | "#define[ \t]+valloc[ \t]+__linux_valloc" ; |
| 1718 | |
| 1719 | #define AIX_STDLIB_VALLOC_TEST_CT 1 |
| 1720 | static tTestDesc aAix_Stdlib_VallocTests[] = { |
| 1721 | { .type: TT_EGREP, .pz_test_text: zAix_Stdlib_VallocSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1722 | |
| 1723 | /* |
| 1724 | * Fix Command Arguments for Aix_Stdlib_Valloc |
| 1725 | */ |
| 1726 | static const char* apzAix_Stdlib_VallocPatch[] = { |
| 1727 | "format" , |
| 1728 | "extern void *valloc(size_t) __asm__(\"__linux_valloc\");" , |
| 1729 | (char*)NULL }; |
| 1730 | |
| 1731 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1732 | * |
| 1733 | * Description of Aix_Stdlib_Vec_Malloc fix |
| 1734 | */ |
| 1735 | tSCC zAix_Stdlib_Vec_MallocName[] = |
| 1736 | "aix_stdlib_vec_malloc" ; |
| 1737 | |
| 1738 | /* |
| 1739 | * File name selection pattern |
| 1740 | */ |
| 1741 | tSCC zAix_Stdlib_Vec_MallocList[] = |
| 1742 | "stdlib.h\0" ; |
| 1743 | /* |
| 1744 | * Machine/OS name selection pattern |
| 1745 | */ |
| 1746 | tSCC* apzAix_Stdlib_Vec_MallocMachs[] = { |
| 1747 | "*-*-aix*" , |
| 1748 | (const char*)NULL }; |
| 1749 | |
| 1750 | /* |
| 1751 | * content selection pattern - do fix if pattern found |
| 1752 | */ |
| 1753 | tSCC zAix_Stdlib_Vec_MallocSelect0[] = |
| 1754 | "#define[ \t]+malloc[ \t]+vec_malloc" ; |
| 1755 | |
| 1756 | #define AIX_STDLIB_VEC_MALLOC_TEST_CT 1 |
| 1757 | static tTestDesc aAix_Stdlib_Vec_MallocTests[] = { |
| 1758 | { .type: TT_EGREP, .pz_test_text: zAix_Stdlib_Vec_MallocSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1759 | |
| 1760 | /* |
| 1761 | * Fix Command Arguments for Aix_Stdlib_Vec_Malloc |
| 1762 | */ |
| 1763 | static const char* apzAix_Stdlib_Vec_MallocPatch[] = { |
| 1764 | "format" , |
| 1765 | "extern void *malloc(size_t) __asm__(\"vec_malloc\");" , |
| 1766 | (char*)NULL }; |
| 1767 | |
| 1768 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1769 | * |
| 1770 | * Description of Aix_Stdlib_Vec_Calloc fix |
| 1771 | */ |
| 1772 | tSCC zAix_Stdlib_Vec_CallocName[] = |
| 1773 | "aix_stdlib_vec_calloc" ; |
| 1774 | |
| 1775 | /* |
| 1776 | * File name selection pattern |
| 1777 | */ |
| 1778 | tSCC zAix_Stdlib_Vec_CallocList[] = |
| 1779 | "stdlib.h\0" ; |
| 1780 | /* |
| 1781 | * Machine/OS name selection pattern |
| 1782 | */ |
| 1783 | tSCC* apzAix_Stdlib_Vec_CallocMachs[] = { |
| 1784 | "*-*-aix*" , |
| 1785 | (const char*)NULL }; |
| 1786 | |
| 1787 | /* |
| 1788 | * content selection pattern - do fix if pattern found |
| 1789 | */ |
| 1790 | tSCC zAix_Stdlib_Vec_CallocSelect0[] = |
| 1791 | "#define[ \t]+calloc[ \t]+vec_calloc" ; |
| 1792 | |
| 1793 | #define AIX_STDLIB_VEC_CALLOC_TEST_CT 1 |
| 1794 | static tTestDesc aAix_Stdlib_Vec_CallocTests[] = { |
| 1795 | { .type: TT_EGREP, .pz_test_text: zAix_Stdlib_Vec_CallocSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1796 | |
| 1797 | /* |
| 1798 | * Fix Command Arguments for Aix_Stdlib_Vec_Calloc |
| 1799 | */ |
| 1800 | static const char* apzAix_Stdlib_Vec_CallocPatch[] = { |
| 1801 | "format" , |
| 1802 | "extern void *calloc(size_t, size_t) __asm__(\"vec_calloc\");" , |
| 1803 | (char*)NULL }; |
| 1804 | |
| 1805 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1806 | * |
| 1807 | * Description of Aix_Strtof_Const fix |
| 1808 | */ |
| 1809 | tSCC zAix_Strtof_ConstName[] = |
| 1810 | "aix_strtof_const" ; |
| 1811 | |
| 1812 | /* |
| 1813 | * File name selection pattern |
| 1814 | */ |
| 1815 | tSCC zAix_Strtof_ConstList[] = |
| 1816 | "stdlib.h\0" ; |
| 1817 | /* |
| 1818 | * Machine/OS name selection pattern |
| 1819 | */ |
| 1820 | tSCC* apzAix_Strtof_ConstMachs[] = { |
| 1821 | "*-*-aix*" , |
| 1822 | (const char*)NULL }; |
| 1823 | |
| 1824 | /* |
| 1825 | * content selection pattern - do fix if pattern found |
| 1826 | */ |
| 1827 | tSCC zAix_Strtof_ConstSelect0[] = |
| 1828 | "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);" ; |
| 1829 | |
| 1830 | #define AIX_STRTOF_CONST_TEST_CT 1 |
| 1831 | static tTestDesc aAix_Strtof_ConstTests[] = { |
| 1832 | { .type: TT_EGREP, .pz_test_text: zAix_Strtof_ConstSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1833 | |
| 1834 | /* |
| 1835 | * Fix Command Arguments for Aix_Strtof_Const |
| 1836 | */ |
| 1837 | static const char* apzAix_Strtof_ConstPatch[] = { |
| 1838 | "format" , |
| 1839 | "%1(const char *, char **);" , |
| 1840 | (char*)NULL }; |
| 1841 | |
| 1842 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1843 | * |
| 1844 | * Description of Aix_Sysmachine fix |
| 1845 | */ |
| 1846 | tSCC zAix_SysmachineName[] = |
| 1847 | "aix_sysmachine" ; |
| 1848 | |
| 1849 | /* |
| 1850 | * File name selection pattern |
| 1851 | */ |
| 1852 | tSCC zAix_SysmachineList[] = |
| 1853 | "sys/machine.h\0" ; |
| 1854 | /* |
| 1855 | * Machine/OS name selection pattern |
| 1856 | */ |
| 1857 | tSCC* apzAix_SysmachineMachs[] = { |
| 1858 | "*-*-aix*" , |
| 1859 | (const char*)NULL }; |
| 1860 | |
| 1861 | /* |
| 1862 | * content selection pattern - do fix if pattern found |
| 1863 | */ |
| 1864 | tSCC zAix_SysmachineSelect0[] = |
| 1865 | "\\\\ +\n" ; |
| 1866 | |
| 1867 | #define AIX_SYSMACHINE_TEST_CT 1 |
| 1868 | static tTestDesc aAix_SysmachineTests[] = { |
| 1869 | { .type: TT_EGREP, .pz_test_text: zAix_SysmachineSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1870 | |
| 1871 | /* |
| 1872 | * Fix Command Arguments for Aix_Sysmachine |
| 1873 | */ |
| 1874 | static const char* apzAix_SysmachinePatch[] = { |
| 1875 | "format" , |
| 1876 | "\\\n" , |
| 1877 | (char*)NULL }; |
| 1878 | |
| 1879 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1880 | * |
| 1881 | * Description of Aix_Syswait_2 fix |
| 1882 | */ |
| 1883 | tSCC zAix_Syswait_2Name[] = |
| 1884 | "aix_syswait_2" ; |
| 1885 | |
| 1886 | /* |
| 1887 | * File name selection pattern |
| 1888 | */ |
| 1889 | tSCC zAix_Syswait_2List[] = |
| 1890 | "sys/wait.h\0" ; |
| 1891 | /* |
| 1892 | * Machine/OS name selection pattern |
| 1893 | */ |
| 1894 | tSCC* apzAix_Syswait_2Machs[] = { |
| 1895 | "*-*-aix*" , |
| 1896 | (const char*)NULL }; |
| 1897 | |
| 1898 | /* |
| 1899 | * content selection pattern - do fix if pattern found |
| 1900 | */ |
| 1901 | tSCC zAix_Syswait_2Select0[] = |
| 1902 | "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)" ; |
| 1903 | |
| 1904 | #define AIX_SYSWAIT_2_TEST_CT 1 |
| 1905 | static tTestDesc aAix_Syswait_2Tests[] = { |
| 1906 | { .type: TT_EGREP, .pz_test_text: zAix_Syswait_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 1907 | |
| 1908 | /* |
| 1909 | * Fix Command Arguments for Aix_Syswait_2 |
| 1910 | */ |
| 1911 | static const char* apzAix_Syswait_2Patch[] = { |
| 1912 | "format" , |
| 1913 | "? (int)%1" , |
| 1914 | (char*)NULL }; |
| 1915 | |
| 1916 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1917 | * |
| 1918 | * Description of Aix_Volatile fix |
| 1919 | */ |
| 1920 | tSCC zAix_VolatileName[] = |
| 1921 | "aix_volatile" ; |
| 1922 | |
| 1923 | /* |
| 1924 | * File name selection pattern |
| 1925 | */ |
| 1926 | tSCC zAix_VolatileList[] = |
| 1927 | "sys/signal.h\0" ; |
| 1928 | /* |
| 1929 | * Machine/OS name selection pattern |
| 1930 | */ |
| 1931 | tSCC* apzAix_VolatileMachs[] = { |
| 1932 | "*-*-aix*" , |
| 1933 | (const char*)NULL }; |
| 1934 | |
| 1935 | /* |
| 1936 | * content selection pattern - do fix if pattern found |
| 1937 | */ |
| 1938 | tSCC zAix_VolatileSelect0[] = |
| 1939 | "typedef volatile int sig_atomic_t" ; |
| 1940 | |
| 1941 | #define AIX_VOLATILE_TEST_CT 1 |
| 1942 | static tTestDesc aAix_VolatileTests[] = { |
| 1943 | { .type: TT_EGREP, .pz_test_text: zAix_VolatileSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1944 | |
| 1945 | /* |
| 1946 | * Fix Command Arguments for Aix_Volatile |
| 1947 | */ |
| 1948 | static const char* apzAix_VolatilePatch[] = { |
| 1949 | "format" , |
| 1950 | "typedef int sig_atomic_t" , |
| 1951 | (char*)NULL }; |
| 1952 | |
| 1953 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1954 | * |
| 1955 | * Description of Aix_Unistd fix |
| 1956 | */ |
| 1957 | tSCC zAix_UnistdName[] = |
| 1958 | "aix_unistd" ; |
| 1959 | |
| 1960 | /* |
| 1961 | * File name selection pattern |
| 1962 | */ |
| 1963 | tSCC zAix_UnistdList[] = |
| 1964 | "unistd.h\0" ; |
| 1965 | /* |
| 1966 | * Machine/OS name selection pattern |
| 1967 | */ |
| 1968 | tSCC* apzAix_UnistdMachs[] = { |
| 1969 | "*-*-aix*" , |
| 1970 | (const char*)NULL }; |
| 1971 | |
| 1972 | /* |
| 1973 | * content selection pattern - do fix if pattern found |
| 1974 | */ |
| 1975 | tSCC zAix_UnistdSelect0[] = |
| 1976 | "[ \t]+static[ \t]+int[ \t]+getdtablesize\\(\\)" ; |
| 1977 | |
| 1978 | #define AIX_UNISTD_TEST_CT 1 |
| 1979 | static tTestDesc aAix_UnistdTests[] = { |
| 1980 | { .type: TT_EGREP, .pz_test_text: zAix_UnistdSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 1981 | |
| 1982 | /* |
| 1983 | * Fix Command Arguments for Aix_Unistd |
| 1984 | */ |
| 1985 | static const char* apzAix_UnistdPatch[] = { |
| 1986 | "format" , |
| 1987 | "\tstatic int\t\tgetdtablesize(void)" , |
| 1988 | (char*)NULL }; |
| 1989 | |
| 1990 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 1991 | * |
| 1992 | * Description of Alpha___Assert fix |
| 1993 | */ |
| 1994 | tSCC zAlpha___AssertName[] = |
| 1995 | "alpha___assert" ; |
| 1996 | |
| 1997 | /* |
| 1998 | * File name selection pattern |
| 1999 | */ |
| 2000 | tSCC zAlpha___AssertList[] = |
| 2001 | "assert.h\0" ; |
| 2002 | /* |
| 2003 | * Machine/OS name selection pattern |
| 2004 | */ |
| 2005 | #define apzAlpha___AssertMachs (const char**)NULL |
| 2006 | |
| 2007 | /* |
| 2008 | * content selection pattern - do fix if pattern found |
| 2009 | */ |
| 2010 | tSCC zAlpha___AssertSelect0[] = |
| 2011 | "__assert\\(char \\*, char \\*, int\\)" ; |
| 2012 | |
| 2013 | #define ALPHA___ASSERT_TEST_CT 1 |
| 2014 | static tTestDesc aAlpha___AssertTests[] = { |
| 2015 | { .type: TT_EGREP, .pz_test_text: zAlpha___AssertSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2016 | |
| 2017 | /* |
| 2018 | * Fix Command Arguments for Alpha___Assert |
| 2019 | */ |
| 2020 | static const char* apzAlpha___AssertPatch[] = { |
| 2021 | "format" , |
| 2022 | "__assert(const char *, const char *, int)" , |
| 2023 | (char*)NULL }; |
| 2024 | |
| 2025 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2026 | * |
| 2027 | * Description of Alpha_Assert fix |
| 2028 | */ |
| 2029 | tSCC zAlpha_AssertName[] = |
| 2030 | "alpha_assert" ; |
| 2031 | |
| 2032 | /* |
| 2033 | * File name selection pattern |
| 2034 | */ |
| 2035 | tSCC zAlpha_AssertList[] = |
| 2036 | "assert.h\0" ; |
| 2037 | /* |
| 2038 | * Machine/OS name selection pattern |
| 2039 | */ |
| 2040 | #define apzAlpha_AssertMachs (const char**)NULL |
| 2041 | |
| 2042 | /* |
| 2043 | * content selection pattern - do fix if pattern found |
| 2044 | */ |
| 2045 | tSCC zAlpha_AssertSelect0[] = |
| 2046 | "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)" ; |
| 2047 | |
| 2048 | #define ALPHA_ASSERT_TEST_CT 1 |
| 2049 | static tTestDesc aAlpha_AssertTests[] = { |
| 2050 | { .type: TT_EGREP, .pz_test_text: zAlpha_AssertSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2051 | |
| 2052 | /* |
| 2053 | * Fix Command Arguments for Alpha_Assert |
| 2054 | */ |
| 2055 | static const char* apzAlpha_AssertPatch[] = { |
| 2056 | "format" , |
| 2057 | "%1(EX)" , |
| 2058 | (char*)NULL }; |
| 2059 | |
| 2060 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2061 | * |
| 2062 | * Description of Alpha_Getopt fix |
| 2063 | */ |
| 2064 | tSCC zAlpha_GetoptName[] = |
| 2065 | "alpha_getopt" ; |
| 2066 | |
| 2067 | /* |
| 2068 | * File name selection pattern |
| 2069 | */ |
| 2070 | tSCC zAlpha_GetoptList[] = |
| 2071 | "stdio.h\0stdlib.h\0" ; |
| 2072 | /* |
| 2073 | * Machine/OS name selection pattern |
| 2074 | */ |
| 2075 | #define apzAlpha_GetoptMachs (const char**)NULL |
| 2076 | |
| 2077 | /* |
| 2078 | * content selection pattern - do fix if pattern found |
| 2079 | */ |
| 2080 | tSCC zAlpha_GetoptSelect0[] = |
| 2081 | "getopt\\(int, char \\*\\[\\], *char \\*\\)" ; |
| 2082 | |
| 2083 | #define ALPHA_GETOPT_TEST_CT 1 |
| 2084 | static tTestDesc aAlpha_GetoptTests[] = { |
| 2085 | { .type: TT_EGREP, .pz_test_text: zAlpha_GetoptSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2086 | |
| 2087 | /* |
| 2088 | * Fix Command Arguments for Alpha_Getopt |
| 2089 | */ |
| 2090 | static const char* apzAlpha_GetoptPatch[] = { |
| 2091 | "format" , |
| 2092 | "getopt(int, char *const[], const char *)" , |
| 2093 | (char*)NULL }; |
| 2094 | |
| 2095 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2096 | * |
| 2097 | * Description of Alpha_If_Semicolon fix |
| 2098 | */ |
| 2099 | tSCC zAlpha_If_SemicolonName[] = |
| 2100 | "alpha_if_semicolon" ; |
| 2101 | |
| 2102 | /* |
| 2103 | * File name selection pattern |
| 2104 | */ |
| 2105 | tSCC zAlpha_If_SemicolonList[] = |
| 2106 | "net/if.h\0" ; |
| 2107 | /* |
| 2108 | * Machine/OS name selection pattern |
| 2109 | */ |
| 2110 | #define apzAlpha_If_SemicolonMachs (const char**)NULL |
| 2111 | |
| 2112 | /* |
| 2113 | * content selection pattern - do fix if pattern found |
| 2114 | */ |
| 2115 | tSCC zAlpha_If_SemicolonSelect0[] = |
| 2116 | "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*" ; |
| 2117 | |
| 2118 | #define ALPHA_IF_SEMICOLON_TEST_CT 1 |
| 2119 | static tTestDesc aAlpha_If_SemicolonTests[] = { |
| 2120 | { .type: TT_EGREP, .pz_test_text: zAlpha_If_SemicolonSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2121 | |
| 2122 | /* |
| 2123 | * Fix Command Arguments for Alpha_If_Semicolon |
| 2124 | */ |
| 2125 | static const char* apzAlpha_If_SemicolonPatch[] = { |
| 2126 | "format" , |
| 2127 | "struct sockaddr vmif_paddr;\t/*" , |
| 2128 | (char*)NULL }; |
| 2129 | |
| 2130 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2131 | * |
| 2132 | * Description of Alpha_Parens fix |
| 2133 | */ |
| 2134 | tSCC zAlpha_ParensName[] = |
| 2135 | "alpha_parens" ; |
| 2136 | |
| 2137 | /* |
| 2138 | * File name selection pattern |
| 2139 | */ |
| 2140 | tSCC zAlpha_ParensList[] = |
| 2141 | "sym.h\0" ; |
| 2142 | /* |
| 2143 | * Machine/OS name selection pattern |
| 2144 | */ |
| 2145 | #define apzAlpha_ParensMachs (const char**)NULL |
| 2146 | |
| 2147 | /* |
| 2148 | * content selection pattern - do fix if pattern found |
| 2149 | */ |
| 2150 | tSCC zAlpha_ParensSelect0[] = |
| 2151 | "#ifndef\\(__mips64\\)" ; |
| 2152 | |
| 2153 | #define ALPHA_PARENS_TEST_CT 1 |
| 2154 | static tTestDesc aAlpha_ParensTests[] = { |
| 2155 | { .type: TT_EGREP, .pz_test_text: zAlpha_ParensSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2156 | |
| 2157 | /* |
| 2158 | * Fix Command Arguments for Alpha_Parens |
| 2159 | */ |
| 2160 | static const char* apzAlpha_ParensPatch[] = { |
| 2161 | "format" , |
| 2162 | "#ifndef __mips64" , |
| 2163 | (char*)NULL }; |
| 2164 | |
| 2165 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2166 | * |
| 2167 | * Description of Alpha_Sbrk fix |
| 2168 | */ |
| 2169 | tSCC zAlpha_SbrkName[] = |
| 2170 | "alpha_sbrk" ; |
| 2171 | |
| 2172 | /* |
| 2173 | * File name selection pattern |
| 2174 | */ |
| 2175 | tSCC zAlpha_SbrkList[] = |
| 2176 | "unistd.h\0" ; |
| 2177 | /* |
| 2178 | * Machine/OS name selection pattern |
| 2179 | */ |
| 2180 | #define apzAlpha_SbrkMachs (const char**)NULL |
| 2181 | |
| 2182 | /* |
| 2183 | * content selection pattern - do fix if pattern found |
| 2184 | */ |
| 2185 | tSCC zAlpha_SbrkSelect0[] = |
| 2186 | "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(" ; |
| 2187 | |
| 2188 | #define ALPHA_SBRK_TEST_CT 1 |
| 2189 | static tTestDesc aAlpha_SbrkTests[] = { |
| 2190 | { .type: TT_EGREP, .pz_test_text: zAlpha_SbrkSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2191 | |
| 2192 | /* |
| 2193 | * Fix Command Arguments for Alpha_Sbrk |
| 2194 | */ |
| 2195 | static const char* apzAlpha_SbrkPatch[] = { |
| 2196 | "format" , |
| 2197 | "void *sbrk(" , |
| 2198 | (char*)NULL }; |
| 2199 | |
| 2200 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2201 | * |
| 2202 | * Description of Avoid_Bool_Define fix |
| 2203 | */ |
| 2204 | tSCC zAvoid_Bool_DefineName[] = |
| 2205 | "avoid_bool_define" ; |
| 2206 | |
| 2207 | /* |
| 2208 | * File name selection pattern |
| 2209 | */ |
| 2210 | tSCC zAvoid_Bool_DefineList[] = |
| 2211 | "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0" ; |
| 2212 | /* |
| 2213 | * Machine/OS name selection pattern |
| 2214 | */ |
| 2215 | #define apzAvoid_Bool_DefineMachs (const char**)NULL |
| 2216 | |
| 2217 | /* |
| 2218 | * content selection pattern - do fix if pattern found |
| 2219 | */ |
| 2220 | tSCC zAvoid_Bool_DefineSelect0[] = |
| 2221 | "#[ \t]*define[ \t]+bool[ \t]" ; |
| 2222 | |
| 2223 | /* |
| 2224 | * content bypass pattern - skip fix if pattern found |
| 2225 | */ |
| 2226 | tSCC zAvoid_Bool_DefineBypass0[] = |
| 2227 | "__cplusplus" ; |
| 2228 | |
| 2229 | #define AVOID_BOOL_DEFINE_TEST_CT 2 |
| 2230 | static tTestDesc aAvoid_Bool_DefineTests[] = { |
| 2231 | { .type: TT_NEGREP, .pz_test_text: zAvoid_Bool_DefineBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2232 | { .type: TT_EGREP, .pz_test_text: zAvoid_Bool_DefineSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2233 | |
| 2234 | /* |
| 2235 | * Fix Command Arguments for Avoid_Bool_Define |
| 2236 | */ |
| 2237 | static const char* apzAvoid_Bool_DefinePatch[] = { |
| 2238 | "format" , |
| 2239 | "#ifndef __cplusplus\n\ |
| 2240 | %0\n\ |
| 2241 | #endif" , |
| 2242 | "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*" , |
| 2243 | (char*)NULL }; |
| 2244 | |
| 2245 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2246 | * |
| 2247 | * Description of Avoid_Bool_Type fix |
| 2248 | */ |
| 2249 | tSCC zAvoid_Bool_TypeName[] = |
| 2250 | "avoid_bool_type" ; |
| 2251 | |
| 2252 | /* |
| 2253 | * File name selection pattern |
| 2254 | */ |
| 2255 | tSCC zAvoid_Bool_TypeList[] = |
| 2256 | "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0" ; |
| 2257 | /* |
| 2258 | * Machine/OS name selection pattern |
| 2259 | */ |
| 2260 | #define apzAvoid_Bool_TypeMachs (const char**)NULL |
| 2261 | |
| 2262 | /* |
| 2263 | * content selection pattern - do fix if pattern found |
| 2264 | */ |
| 2265 | tSCC zAvoid_Bool_TypeSelect0[] = |
| 2266 | "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;" ; |
| 2267 | |
| 2268 | /* |
| 2269 | * content bypass pattern - skip fix if pattern found |
| 2270 | */ |
| 2271 | tSCC zAvoid_Bool_TypeBypass0[] = |
| 2272 | "__cplusplus" ; |
| 2273 | |
| 2274 | #define AVOID_BOOL_TYPE_TEST_CT 2 |
| 2275 | static tTestDesc aAvoid_Bool_TypeTests[] = { |
| 2276 | { .type: TT_NEGREP, .pz_test_text: zAvoid_Bool_TypeBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2277 | { .type: TT_EGREP, .pz_test_text: zAvoid_Bool_TypeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2278 | |
| 2279 | /* |
| 2280 | * Fix Command Arguments for Avoid_Bool_Type |
| 2281 | */ |
| 2282 | static const char* apzAvoid_Bool_TypePatch[] = { |
| 2283 | "format" , |
| 2284 | "#ifndef __cplusplus\n\ |
| 2285 | %0\n\ |
| 2286 | #endif" , |
| 2287 | (char*)NULL }; |
| 2288 | |
| 2289 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2290 | * |
| 2291 | * Description of Avoid_Wchar_T_Type fix |
| 2292 | */ |
| 2293 | tSCC zAvoid_Wchar_T_TypeName[] = |
| 2294 | "avoid_wchar_t_type" ; |
| 2295 | |
| 2296 | /* |
| 2297 | * File name selection pattern |
| 2298 | */ |
| 2299 | #define zAvoid_Wchar_T_TypeList (char*)NULL |
| 2300 | /* |
| 2301 | * Machine/OS name selection pattern |
| 2302 | */ |
| 2303 | #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL |
| 2304 | |
| 2305 | /* |
| 2306 | * content selection pattern - do fix if pattern found |
| 2307 | */ |
| 2308 | tSCC zAvoid_Wchar_T_TypeSelect0[] = |
| 2309 | "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;" ; |
| 2310 | |
| 2311 | /* |
| 2312 | * content bypass pattern - skip fix if pattern found |
| 2313 | */ |
| 2314 | tSCC zAvoid_Wchar_T_TypeBypass0[] = |
| 2315 | "__cplusplus" ; |
| 2316 | tSCC zAvoid_Wchar_T_TypeBypass1[] = |
| 2317 | "_LINUX_NLS_H" ; |
| 2318 | tSCC zAvoid_Wchar_T_TypeBypass2[] = |
| 2319 | "XFree86: xc/lib/X11/Xlib\\.h" ; |
| 2320 | |
| 2321 | #define AVOID_WCHAR_T_TYPE_TEST_CT 4 |
| 2322 | static tTestDesc aAvoid_Wchar_T_TypeTests[] = { |
| 2323 | { .type: TT_NEGREP, .pz_test_text: zAvoid_Wchar_T_TypeBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2324 | { .type: TT_NEGREP, .pz_test_text: zAvoid_Wchar_T_TypeBypass1, .p_test_regex: (regex_t*)NULL }, |
| 2325 | { .type: TT_NEGREP, .pz_test_text: zAvoid_Wchar_T_TypeBypass2, .p_test_regex: (regex_t*)NULL }, |
| 2326 | { .type: TT_EGREP, .pz_test_text: zAvoid_Wchar_T_TypeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2327 | |
| 2328 | /* |
| 2329 | * Fix Command Arguments for Avoid_Wchar_T_Type |
| 2330 | */ |
| 2331 | static const char* apzAvoid_Wchar_T_TypePatch[] = { |
| 2332 | "format" , |
| 2333 | "#ifndef __cplusplus\n\ |
| 2334 | %0\n\ |
| 2335 | #endif" , |
| 2336 | (char*)NULL }; |
| 2337 | |
| 2338 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2339 | * |
| 2340 | * Description of Bad_Struct_Term fix |
| 2341 | */ |
| 2342 | tSCC zBad_Struct_TermName[] = |
| 2343 | "bad_struct_term" ; |
| 2344 | |
| 2345 | /* |
| 2346 | * File name selection pattern |
| 2347 | */ |
| 2348 | tSCC zBad_Struct_TermList[] = |
| 2349 | "curses.h\0" ; |
| 2350 | /* |
| 2351 | * Machine/OS name selection pattern |
| 2352 | */ |
| 2353 | #define apzBad_Struct_TermMachs (const char**)NULL |
| 2354 | |
| 2355 | /* |
| 2356 | * content selection pattern - do fix if pattern found |
| 2357 | */ |
| 2358 | tSCC zBad_Struct_TermSelect0[] = |
| 2359 | "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;" ; |
| 2360 | |
| 2361 | #define BAD_STRUCT_TERM_TEST_CT 1 |
| 2362 | static tTestDesc aBad_Struct_TermTests[] = { |
| 2363 | { .type: TT_EGREP, .pz_test_text: zBad_Struct_TermSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2364 | |
| 2365 | /* |
| 2366 | * Fix Command Arguments for Bad_Struct_Term |
| 2367 | */ |
| 2368 | static const char* apzBad_Struct_TermPatch[] = { |
| 2369 | "format" , |
| 2370 | "struct term;" , |
| 2371 | (char*)NULL }; |
| 2372 | |
| 2373 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2374 | * |
| 2375 | * Description of Badquote fix |
| 2376 | */ |
| 2377 | tSCC zBadquoteName[] = |
| 2378 | "badquote" ; |
| 2379 | |
| 2380 | /* |
| 2381 | * File name selection pattern |
| 2382 | */ |
| 2383 | tSCC zBadquoteList[] = |
| 2384 | "sundev/vuid_event.h\0" ; |
| 2385 | /* |
| 2386 | * Machine/OS name selection pattern |
| 2387 | */ |
| 2388 | #define apzBadquoteMachs (const char**)NULL |
| 2389 | |
| 2390 | /* |
| 2391 | * content selection pattern - do fix if pattern found |
| 2392 | */ |
| 2393 | tSCC zBadquoteSelect0[] = |
| 2394 | "doesn't" ; |
| 2395 | |
| 2396 | #define BADQUOTE_TEST_CT 1 |
| 2397 | static tTestDesc aBadquoteTests[] = { |
| 2398 | { .type: TT_EGREP, .pz_test_text: zBadquoteSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2399 | |
| 2400 | /* |
| 2401 | * Fix Command Arguments for Badquote |
| 2402 | */ |
| 2403 | static const char* apzBadquotePatch[] = { |
| 2404 | "format" , |
| 2405 | "does not" , |
| 2406 | (char*)NULL }; |
| 2407 | |
| 2408 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2409 | * |
| 2410 | * Description of Broken_Assert_Stdio fix |
| 2411 | */ |
| 2412 | tSCC zBroken_Assert_StdioName[] = |
| 2413 | "broken_assert_stdio" ; |
| 2414 | |
| 2415 | /* |
| 2416 | * File name selection pattern |
| 2417 | */ |
| 2418 | tSCC zBroken_Assert_StdioList[] = |
| 2419 | "assert.h\0" ; |
| 2420 | /* |
| 2421 | * Machine/OS name selection pattern |
| 2422 | */ |
| 2423 | #define apzBroken_Assert_StdioMachs (const char**)NULL |
| 2424 | |
| 2425 | /* |
| 2426 | * content selection pattern - do fix if pattern found |
| 2427 | */ |
| 2428 | tSCC zBroken_Assert_StdioSelect0[] = |
| 2429 | "stderr" ; |
| 2430 | |
| 2431 | /* |
| 2432 | * content bypass pattern - skip fix if pattern found |
| 2433 | */ |
| 2434 | tSCC zBroken_Assert_StdioBypass0[] = |
| 2435 | "include.*stdio\\.h" ; |
| 2436 | |
| 2437 | #define BROKEN_ASSERT_STDIO_TEST_CT 2 |
| 2438 | static tTestDesc aBroken_Assert_StdioTests[] = { |
| 2439 | { .type: TT_NEGREP, .pz_test_text: zBroken_Assert_StdioBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2440 | { .type: TT_EGREP, .pz_test_text: zBroken_Assert_StdioSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2441 | |
| 2442 | /* |
| 2443 | * Fix Command Arguments for Broken_Assert_Stdio |
| 2444 | */ |
| 2445 | static const char* apzBroken_Assert_StdioPatch[] = { |
| 2446 | "wrap" , |
| 2447 | "#include <stdio.h>\n" , |
| 2448 | (char*)NULL }; |
| 2449 | |
| 2450 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2451 | * |
| 2452 | * Description of Broken_Assert_Stdlib fix |
| 2453 | */ |
| 2454 | tSCC zBroken_Assert_StdlibName[] = |
| 2455 | "broken_assert_stdlib" ; |
| 2456 | |
| 2457 | /* |
| 2458 | * File name selection pattern |
| 2459 | */ |
| 2460 | tSCC zBroken_Assert_StdlibList[] = |
| 2461 | "assert.h\0" ; |
| 2462 | /* |
| 2463 | * Machine/OS name selection pattern |
| 2464 | */ |
| 2465 | #define apzBroken_Assert_StdlibMachs (const char**)NULL |
| 2466 | |
| 2467 | /* |
| 2468 | * content selection pattern - do fix if pattern found |
| 2469 | */ |
| 2470 | tSCC zBroken_Assert_StdlibSelect0[] = |
| 2471 | "exit *\\(|abort *\\(" ; |
| 2472 | |
| 2473 | /* |
| 2474 | * content bypass pattern - skip fix if pattern found |
| 2475 | */ |
| 2476 | tSCC zBroken_Assert_StdlibBypass0[] = |
| 2477 | "include.*stdlib\\.h" ; |
| 2478 | |
| 2479 | #define BROKEN_ASSERT_STDLIB_TEST_CT 2 |
| 2480 | static tTestDesc aBroken_Assert_StdlibTests[] = { |
| 2481 | { .type: TT_NEGREP, .pz_test_text: zBroken_Assert_StdlibBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2482 | { .type: TT_EGREP, .pz_test_text: zBroken_Assert_StdlibSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2483 | |
| 2484 | /* |
| 2485 | * Fix Command Arguments for Broken_Assert_Stdlib |
| 2486 | */ |
| 2487 | static const char* apzBroken_Assert_StdlibPatch[] = { |
| 2488 | "wrap" , |
| 2489 | "#ifdef __cplusplus\n\ |
| 2490 | #include <stdlib.h>\n\ |
| 2491 | #endif\n" , |
| 2492 | (char*)NULL }; |
| 2493 | |
| 2494 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2495 | * |
| 2496 | * Description of Broken_Cabs fix |
| 2497 | */ |
| 2498 | tSCC zBroken_CabsName[] = |
| 2499 | "broken_cabs" ; |
| 2500 | |
| 2501 | /* |
| 2502 | * File name selection pattern |
| 2503 | */ |
| 2504 | tSCC zBroken_CabsList[] = |
| 2505 | "math.h\0architecture/*/math.h\0" ; |
| 2506 | /* |
| 2507 | * Machine/OS name selection pattern |
| 2508 | */ |
| 2509 | #define apzBroken_CabsMachs (const char**)NULL |
| 2510 | |
| 2511 | /* |
| 2512 | * content selection pattern - do fix if pattern found |
| 2513 | */ |
| 2514 | tSCC zBroken_CabsSelect0[] = |
| 2515 | "^extern[ \t]+double[ \t]+cabs" ; |
| 2516 | |
| 2517 | #define BROKEN_CABS_TEST_CT 1 |
| 2518 | static tTestDesc aBroken_CabsTests[] = { |
| 2519 | { .type: TT_EGREP, .pz_test_text: zBroken_CabsSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2520 | |
| 2521 | /* |
| 2522 | * Fix Command Arguments for Broken_Cabs |
| 2523 | */ |
| 2524 | static const char* apzBroken_CabsPatch[] = { sed_cmd_z, |
| 2525 | "-e" , "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//" , |
| 2526 | "-e" , "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//" , |
| 2527 | (char*)NULL }; |
| 2528 | |
| 2529 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2530 | * |
| 2531 | * Description of Broken_Nan fix |
| 2532 | */ |
| 2533 | tSCC zBroken_NanName[] = |
| 2534 | "broken_nan" ; |
| 2535 | |
| 2536 | /* |
| 2537 | * File name selection pattern |
| 2538 | */ |
| 2539 | tSCC zBroken_NanList[] = |
| 2540 | "architecture/ppc/math.h\0architecture/*/math.h\0" ; |
| 2541 | /* |
| 2542 | * Machine/OS name selection pattern |
| 2543 | */ |
| 2544 | #define apzBroken_NanMachs (const char**)NULL |
| 2545 | |
| 2546 | /* |
| 2547 | * content selection pattern - do fix if pattern found |
| 2548 | */ |
| 2549 | tSCC zBroken_NanSelect0[] = |
| 2550 | "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)" ; |
| 2551 | |
| 2552 | /* |
| 2553 | * content bypass pattern - skip fix if pattern found |
| 2554 | */ |
| 2555 | tSCC zBroken_NanBypass0[] = |
| 2556 | "powl" ; |
| 2557 | |
| 2558 | #define BROKEN_NAN_TEST_CT 2 |
| 2559 | static tTestDesc aBroken_NanTests[] = { |
| 2560 | { .type: TT_NEGREP, .pz_test_text: zBroken_NanBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2561 | { .type: TT_EGREP, .pz_test_text: zBroken_NanSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2562 | |
| 2563 | /* |
| 2564 | * Fix Command Arguments for Broken_Nan |
| 2565 | */ |
| 2566 | static const char* apzBroken_NanPatch[] = { |
| 2567 | "format" , |
| 2568 | "#if 1" , |
| 2569 | (char*)NULL }; |
| 2570 | |
| 2571 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2572 | * |
| 2573 | * Description of Bsd_Stdio_Attrs_Conflict fix |
| 2574 | */ |
| 2575 | tSCC zBsd_Stdio_Attrs_ConflictName[] = |
| 2576 | "bsd_stdio_attrs_conflict" ; |
| 2577 | |
| 2578 | /* |
| 2579 | * File name selection pattern |
| 2580 | */ |
| 2581 | tSCC zBsd_Stdio_Attrs_ConflictList[] = |
| 2582 | "stdio.h\0" ; |
| 2583 | /* |
| 2584 | * Machine/OS name selection pattern |
| 2585 | */ |
| 2586 | tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = { |
| 2587 | "*-*-*bsd*" , |
| 2588 | "*-*-*darwin*" , |
| 2589 | (const char*)NULL }; |
| 2590 | |
| 2591 | /* |
| 2592 | * content selection pattern - do fix if pattern found |
| 2593 | */ |
| 2594 | tSCC zBsd_Stdio_Attrs_ConflictSelect0[] = |
| 2595 | "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$" ; |
| 2596 | |
| 2597 | #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1 |
| 2598 | static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = { |
| 2599 | { .type: TT_EGREP, .pz_test_text: zBsd_Stdio_Attrs_ConflictSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2600 | |
| 2601 | /* |
| 2602 | * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict |
| 2603 | */ |
| 2604 | static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = { |
| 2605 | "format" , |
| 2606 | "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\ |
| 2607 | #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\ |
| 2608 | int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");" , |
| 2609 | (char*)NULL }; |
| 2610 | |
| 2611 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2612 | * |
| 2613 | * Description of Apple_Local_Stdio_Fn_Deprecation fix |
| 2614 | */ |
| 2615 | tSCC zApple_Local_Stdio_Fn_DeprecationName[] = |
| 2616 | "apple_local_stdio_fn_deprecation" ; |
| 2617 | |
| 2618 | /* |
| 2619 | * File name selection pattern |
| 2620 | */ |
| 2621 | tSCC zApple_Local_Stdio_Fn_DeprecationList[] = |
| 2622 | "stdio.h\0_stdio.h\0" ; |
| 2623 | /* |
| 2624 | * Machine/OS name selection pattern |
| 2625 | */ |
| 2626 | tSCC* apzApple_Local_Stdio_Fn_DeprecationMachs[] = { |
| 2627 | "*-*-*darwin2*" , |
| 2628 | (const char*)NULL }; |
| 2629 | |
| 2630 | /* |
| 2631 | * content selection pattern - do fix if pattern found |
| 2632 | */ |
| 2633 | tSCC zApple_Local_Stdio_Fn_DeprecationSelect0[] = |
| 2634 | "__deprecated_msg([^\n\ |
| 2635 | ]*)$" ; |
| 2636 | |
| 2637 | #define APPLE_LOCAL_STDIO_FN_DEPRECATION_TEST_CT 1 |
| 2638 | static tTestDesc aApple_Local_Stdio_Fn_DeprecationTests[] = { |
| 2639 | { .type: TT_EGREP, .pz_test_text: zApple_Local_Stdio_Fn_DeprecationSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2640 | |
| 2641 | /* |
| 2642 | * Fix Command Arguments for Apple_Local_Stdio_Fn_Deprecation |
| 2643 | */ |
| 2644 | static const char* apzApple_Local_Stdio_Fn_DeprecationPatch[] = { |
| 2645 | "format" , |
| 2646 | "#if defined(__APPLE_LOCAL_DEPRECATIONS)\n\ |
| 2647 | %0\n\ |
| 2648 | #endif" , |
| 2649 | (char*)NULL }; |
| 2650 | |
| 2651 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2652 | * |
| 2653 | * Description of Ctrl_Quotes_Def fix |
| 2654 | */ |
| 2655 | tSCC zCtrl_Quotes_DefName[] = |
| 2656 | "ctrl_quotes_def" ; |
| 2657 | |
| 2658 | /* |
| 2659 | * File name selection pattern |
| 2660 | */ |
| 2661 | #define zCtrl_Quotes_DefList (char*)NULL |
| 2662 | /* |
| 2663 | * Machine/OS name selection pattern |
| 2664 | */ |
| 2665 | #define apzCtrl_Quotes_DefMachs (const char**)NULL |
| 2666 | |
| 2667 | /* |
| 2668 | * content selection pattern - do fix if pattern found |
| 2669 | */ |
| 2670 | tSCC zCtrl_Quotes_DefSelect0[] = |
| 2671 | "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]" ; |
| 2672 | |
| 2673 | #define CTRL_QUOTES_DEF_TEST_CT 1 |
| 2674 | static tTestDesc aCtrl_Quotes_DefTests[] = { |
| 2675 | { .type: TT_EGREP, .pz_test_text: zCtrl_Quotes_DefSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2676 | |
| 2677 | /* |
| 2678 | * Fix Command Arguments for Ctrl_Quotes_Def |
| 2679 | */ |
| 2680 | static const char* apzCtrl_Quotes_DefPatch[] = { |
| 2681 | "char_macro_def" , |
| 2682 | "CTRL" , |
| 2683 | (char*)NULL }; |
| 2684 | |
| 2685 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2686 | * |
| 2687 | * Description of Ctrl_Quotes_Use fix |
| 2688 | */ |
| 2689 | tSCC zCtrl_Quotes_UseName[] = |
| 2690 | "ctrl_quotes_use" ; |
| 2691 | |
| 2692 | /* |
| 2693 | * File name selection pattern |
| 2694 | */ |
| 2695 | #define zCtrl_Quotes_UseList (char*)NULL |
| 2696 | /* |
| 2697 | * Machine/OS name selection pattern |
| 2698 | */ |
| 2699 | #define apzCtrl_Quotes_UseMachs (const char**)NULL |
| 2700 | |
| 2701 | /* |
| 2702 | * content selection pattern - do fix if pattern found |
| 2703 | */ |
| 2704 | tSCC zCtrl_Quotes_UseSelect0[] = |
| 2705 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']" ; |
| 2706 | |
| 2707 | #define CTRL_QUOTES_USE_TEST_CT 1 |
| 2708 | static tTestDesc aCtrl_Quotes_UseTests[] = { |
| 2709 | { .type: TT_EGREP, .pz_test_text: zCtrl_Quotes_UseSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2710 | |
| 2711 | /* |
| 2712 | * Fix Command Arguments for Ctrl_Quotes_Use |
| 2713 | */ |
| 2714 | static const char* apzCtrl_Quotes_UsePatch[] = { |
| 2715 | "char_macro_use" , |
| 2716 | "CTRL" , |
| 2717 | (char*)NULL }; |
| 2718 | |
| 2719 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2720 | * |
| 2721 | * Description of Cxx_Unready fix |
| 2722 | */ |
| 2723 | tSCC zCxx_UnreadyName[] = |
| 2724 | "cxx_unready" ; |
| 2725 | |
| 2726 | /* |
| 2727 | * File name selection pattern |
| 2728 | */ |
| 2729 | tSCC zCxx_UnreadyList[] = |
| 2730 | "sys/mman.h\0rpc/types.h\0" ; |
| 2731 | /* |
| 2732 | * Machine/OS name selection pattern |
| 2733 | */ |
| 2734 | #define apzCxx_UnreadyMachs (const char**)NULL |
| 2735 | |
| 2736 | /* |
| 2737 | * content selection pattern - do fix if pattern found |
| 2738 | */ |
| 2739 | tSCC zCxx_UnreadySelect0[] = |
| 2740 | "[^#]+malloc.*;" ; |
| 2741 | |
| 2742 | /* |
| 2743 | * content bypass pattern - skip fix if pattern found |
| 2744 | */ |
| 2745 | tSCC zCxx_UnreadyBypass0[] = |
| 2746 | "\"C\"|__BEGIN_DECLS" ; |
| 2747 | |
| 2748 | #define CXX_UNREADY_TEST_CT 2 |
| 2749 | static tTestDesc aCxx_UnreadyTests[] = { |
| 2750 | { .type: TT_NEGREP, .pz_test_text: zCxx_UnreadyBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2751 | { .type: TT_EGREP, .pz_test_text: zCxx_UnreadySelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2752 | |
| 2753 | /* |
| 2754 | * Fix Command Arguments for Cxx_Unready |
| 2755 | */ |
| 2756 | static const char* apzCxx_UnreadyPatch[] = { |
| 2757 | "wrap" , |
| 2758 | "#ifdef __cplusplus\n\ |
| 2759 | extern \"C\" {\n\ |
| 2760 | #endif\n" , |
| 2761 | "#ifdef __cplusplus\n\ |
| 2762 | }\n\ |
| 2763 | #endif\n" , |
| 2764 | (char*)NULL }; |
| 2765 | |
| 2766 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2767 | * |
| 2768 | * Description of Darwin_Availabilityinternal fix |
| 2769 | */ |
| 2770 | tSCC zDarwin_AvailabilityinternalName[] = |
| 2771 | "darwin_availabilityinternal" ; |
| 2772 | |
| 2773 | /* |
| 2774 | * File name selection pattern |
| 2775 | */ |
| 2776 | tSCC zDarwin_AvailabilityinternalList[] = |
| 2777 | "AvailabilityInternal.h\0" ; |
| 2778 | /* |
| 2779 | * Machine/OS name selection pattern |
| 2780 | */ |
| 2781 | tSCC* apzDarwin_AvailabilityinternalMachs[] = { |
| 2782 | "*-*-darwin*" , |
| 2783 | (const char*)NULL }; |
| 2784 | |
| 2785 | /* |
| 2786 | * content selection pattern - do fix if pattern found |
| 2787 | */ |
| 2788 | tSCC zDarwin_AvailabilityinternalSelect0[] = |
| 2789 | "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*" ; |
| 2790 | |
| 2791 | #define DARWIN_AVAILABILITYINTERNAL_TEST_CT 1 |
| 2792 | static tTestDesc aDarwin_AvailabilityinternalTests[] = { |
| 2793 | { .type: TT_EGREP, .pz_test_text: zDarwin_AvailabilityinternalSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2794 | |
| 2795 | /* |
| 2796 | * Fix Command Arguments for Darwin_Availabilityinternal |
| 2797 | */ |
| 2798 | static const char* apzDarwin_AvailabilityinternalPatch[] = { |
| 2799 | "format" , |
| 2800 | "#if defined(__has_attribute)\n\ |
| 2801 | #if __has_attribute(availability)\n\ |
| 2802 | %0\n\ |
| 2803 | #else\n\ |
| 2804 | #define %1\n\ |
| 2805 | #endif\n\ |
| 2806 | #else\n\ |
| 2807 | #define %1\n\ |
| 2808 | #endif" , |
| 2809 | (char*)NULL }; |
| 2810 | |
| 2811 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2812 | * |
| 2813 | * Description of Darwin_9_Long_Double_Funcs_2 fix |
| 2814 | */ |
| 2815 | tSCC zDarwin_9_Long_Double_Funcs_2Name[] = |
| 2816 | "darwin_9_long_double_funcs_2" ; |
| 2817 | |
| 2818 | /* |
| 2819 | * File name selection pattern |
| 2820 | */ |
| 2821 | tSCC zDarwin_9_Long_Double_Funcs_2List[] = |
| 2822 | "math.h\0" ; |
| 2823 | /* |
| 2824 | * Machine/OS name selection pattern |
| 2825 | */ |
| 2826 | tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = { |
| 2827 | "*-*-darwin*" , |
| 2828 | (const char*)NULL }; |
| 2829 | |
| 2830 | /* |
| 2831 | * content selection pattern - do fix if pattern found |
| 2832 | */ |
| 2833 | tSCC zDarwin_9_Long_Double_Funcs_2Select0[] = |
| 2834 | "#include[ \\t]+\\\"" ; |
| 2835 | |
| 2836 | #define DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1 |
| 2837 | static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = { |
| 2838 | { .type: TT_EGREP, .pz_test_text: zDarwin_9_Long_Double_Funcs_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 2839 | |
| 2840 | /* |
| 2841 | * Fix Command Arguments for Darwin_9_Long_Double_Funcs_2 |
| 2842 | */ |
| 2843 | static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = { |
| 2844 | "format" , |
| 2845 | "%1<%2.h>" , |
| 2846 | "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"" , |
| 2847 | (char*)NULL }; |
| 2848 | |
| 2849 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2850 | * |
| 2851 | * Description of Darwin_Externc fix |
| 2852 | */ |
| 2853 | tSCC zDarwin_ExterncName[] = |
| 2854 | "darwin_externc" ; |
| 2855 | |
| 2856 | /* |
| 2857 | * File name selection pattern |
| 2858 | */ |
| 2859 | tSCC zDarwin_ExterncList[] = |
| 2860 | "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0" ; |
| 2861 | /* |
| 2862 | * Machine/OS name selection pattern |
| 2863 | */ |
| 2864 | tSCC* apzDarwin_ExterncMachs[] = { |
| 2865 | "*-*-darwin*" , |
| 2866 | (const char*)NULL }; |
| 2867 | |
| 2868 | /* |
| 2869 | * content bypass pattern - skip fix if pattern found |
| 2870 | */ |
| 2871 | tSCC zDarwin_ExterncBypass0[] = |
| 2872 | "extern \"C\"" ; |
| 2873 | tSCC zDarwin_ExterncBypass1[] = |
| 2874 | "__BEGIN_DECLS" ; |
| 2875 | |
| 2876 | #define DARWIN_EXTERNC_TEST_CT 2 |
| 2877 | static tTestDesc aDarwin_ExterncTests[] = { |
| 2878 | { .type: TT_NEGREP, .pz_test_text: zDarwin_ExterncBypass0, .p_test_regex: (regex_t*)NULL }, |
| 2879 | { .type: TT_NEGREP, .pz_test_text: zDarwin_ExterncBypass1, .p_test_regex: (regex_t*)NULL }, }; |
| 2880 | |
| 2881 | /* |
| 2882 | * Fix Command Arguments for Darwin_Externc |
| 2883 | */ |
| 2884 | static const char* apzDarwin_ExterncPatch[] = { |
| 2885 | "wrap" , |
| 2886 | "#ifdef __cplusplus\n\ |
| 2887 | extern \"C\" {\n\ |
| 2888 | #endif\n" , |
| 2889 | "#ifdef __cplusplus\n\ |
| 2890 | }\n\ |
| 2891 | #endif\n" , |
| 2892 | (char*)NULL }; |
| 2893 | |
| 2894 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2895 | * |
| 2896 | * Description of Darwin_Gcc4_Breakage fix |
| 2897 | */ |
| 2898 | tSCC zDarwin_Gcc4_BreakageName[] = |
| 2899 | "darwin_gcc4_breakage" ; |
| 2900 | |
| 2901 | /* |
| 2902 | * File name selection pattern |
| 2903 | */ |
| 2904 | tSCC zDarwin_Gcc4_BreakageList[] = |
| 2905 | "AvailabilityMacros.h\0" ; |
| 2906 | /* |
| 2907 | * Machine/OS name selection pattern |
| 2908 | */ |
| 2909 | tSCC* apzDarwin_Gcc4_BreakageMachs[] = { |
| 2910 | "*-*-darwin*" , |
| 2911 | (const char*)NULL }; |
| 2912 | |
| 2913 | /* |
| 2914 | * content selection pattern - do fix if pattern found |
| 2915 | */ |
| 2916 | tSCC zDarwin_Gcc4_BreakageSelect0[] = |
| 2917 | "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)" ; |
| 2918 | |
| 2919 | #define DARWIN_GCC4_BREAKAGE_TEST_CT 1 |
| 2920 | static tTestDesc aDarwin_Gcc4_BreakageTests[] = { |
| 2921 | { .type: TT_EGREP, .pz_test_text: zDarwin_Gcc4_BreakageSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2922 | |
| 2923 | /* |
| 2924 | * Fix Command Arguments for Darwin_Gcc4_Breakage |
| 2925 | */ |
| 2926 | static const char* apzDarwin_Gcc4_BreakagePatch[] = { |
| 2927 | "format" , |
| 2928 | "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))" , |
| 2929 | (char*)NULL }; |
| 2930 | |
| 2931 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2932 | * |
| 2933 | * Description of Darwin_Ll_Funcs_Avail fix |
| 2934 | */ |
| 2935 | tSCC zDarwin_Ll_Funcs_AvailName[] = |
| 2936 | "darwin_ll_funcs_avail" ; |
| 2937 | |
| 2938 | /* |
| 2939 | * File name selection pattern |
| 2940 | */ |
| 2941 | tSCC zDarwin_Ll_Funcs_AvailList[] = |
| 2942 | "architecture/ppc/math.h\0architecture/i386/math.h\0" ; |
| 2943 | /* |
| 2944 | * Machine/OS name selection pattern |
| 2945 | */ |
| 2946 | tSCC* apzDarwin_Ll_Funcs_AvailMachs[] = { |
| 2947 | "*-*-darwin*" , |
| 2948 | (const char*)NULL }; |
| 2949 | |
| 2950 | /* |
| 2951 | * content selection pattern - do fix if pattern found |
| 2952 | */ |
| 2953 | tSCC zDarwin_Ll_Funcs_AvailSelect0[] = |
| 2954 | "#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^1]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^)]*" ; |
| 2955 | |
| 2956 | #define DARWIN_LL_FUNCS_AVAIL_TEST_CT 1 |
| 2957 | static tTestDesc aDarwin_Ll_Funcs_AvailTests[] = { |
| 2958 | { .type: TT_EGREP, .pz_test_text: zDarwin_Ll_Funcs_AvailSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 2959 | |
| 2960 | /* |
| 2961 | * Fix Command Arguments for Darwin_Ll_Funcs_Avail |
| 2962 | */ |
| 2963 | static const char* apzDarwin_Ll_Funcs_AvailPatch[] = { sed_cmd_z, |
| 2964 | "-e" , "s/#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^_]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^\\)]*)/#if !(__DARWIN_NO_LONG_LONG)/" , |
| 2965 | (char*)NULL }; |
| 2966 | |
| 2967 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2968 | * |
| 2969 | * Description of Darwin_Longjmp_Noreturn fix |
| 2970 | */ |
| 2971 | tSCC zDarwin_Longjmp_NoreturnName[] = |
| 2972 | "darwin_longjmp_noreturn" ; |
| 2973 | |
| 2974 | /* |
| 2975 | * File name selection pattern |
| 2976 | */ |
| 2977 | tSCC zDarwin_Longjmp_NoreturnList[] = |
| 2978 | "i386/setjmp.h\0" ; |
| 2979 | /* |
| 2980 | * Machine/OS name selection pattern |
| 2981 | */ |
| 2982 | tSCC* apzDarwin_Longjmp_NoreturnMachs[] = { |
| 2983 | "*-*-darwin*" , |
| 2984 | (const char*)NULL }; |
| 2985 | |
| 2986 | /* |
| 2987 | * content selection pattern - do fix if pattern found |
| 2988 | */ |
| 2989 | tSCC zDarwin_Longjmp_NoreturnSelect0[] = |
| 2990 | "(.*longjmp\\(.*jmp_buf.*[^)]+\\));" ; |
| 2991 | |
| 2992 | /* |
| 2993 | * content bypass pattern - skip fix if pattern found |
| 2994 | */ |
| 2995 | tSCC zDarwin_Longjmp_NoreturnBypass0[] = |
| 2996 | "__dead2" ; |
| 2997 | |
| 2998 | #define DARWIN_LONGJMP_NORETURN_TEST_CT 2 |
| 2999 | static tTestDesc aDarwin_Longjmp_NoreturnTests[] = { |
| 3000 | { .type: TT_NEGREP, .pz_test_text: zDarwin_Longjmp_NoreturnBypass0, .p_test_regex: (regex_t*)NULL }, |
| 3001 | { .type: TT_EGREP, .pz_test_text: zDarwin_Longjmp_NoreturnSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3002 | |
| 3003 | /* |
| 3004 | * Fix Command Arguments for Darwin_Longjmp_Noreturn |
| 3005 | */ |
| 3006 | static const char* apzDarwin_Longjmp_NoreturnPatch[] = { |
| 3007 | "format" , |
| 3008 | "%1 __attribute__ ((__noreturn__));" , |
| 3009 | (char*)NULL }; |
| 3010 | |
| 3011 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3012 | * |
| 3013 | * Description of Darwin_Os_Trace_1 fix |
| 3014 | */ |
| 3015 | tSCC zDarwin_Os_Trace_1Name[] = |
| 3016 | "darwin_os_trace_1" ; |
| 3017 | |
| 3018 | /* |
| 3019 | * File name selection pattern |
| 3020 | */ |
| 3021 | tSCC zDarwin_Os_Trace_1List[] = |
| 3022 | "os/trace.h\0" ; |
| 3023 | /* |
| 3024 | * Machine/OS name selection pattern |
| 3025 | */ |
| 3026 | tSCC* apzDarwin_Os_Trace_1Machs[] = { |
| 3027 | "*-*-darwin*" , |
| 3028 | (const char*)NULL }; |
| 3029 | |
| 3030 | /* |
| 3031 | * content selection pattern - do fix if pattern found |
| 3032 | */ |
| 3033 | tSCC zDarwin_Os_Trace_1Select0[] = |
| 3034 | "^(_os_trace_verify_printf.*) (__attribute__.*)" ; |
| 3035 | |
| 3036 | #define DARWIN_OS_TRACE_1_TEST_CT 1 |
| 3037 | static tTestDesc aDarwin_Os_Trace_1Tests[] = { |
| 3038 | { .type: TT_EGREP, .pz_test_text: zDarwin_Os_Trace_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3039 | |
| 3040 | /* |
| 3041 | * Fix Command Arguments for Darwin_Os_Trace_1 |
| 3042 | */ |
| 3043 | static const char* apzDarwin_Os_Trace_1Patch[] = { |
| 3044 | "format" , |
| 3045 | "%1" , |
| 3046 | (char*)NULL }; |
| 3047 | |
| 3048 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3049 | * |
| 3050 | * Description of Darwin_Os_Trace_2 fix |
| 3051 | */ |
| 3052 | tSCC zDarwin_Os_Trace_2Name[] = |
| 3053 | "darwin_os_trace_2" ; |
| 3054 | |
| 3055 | /* |
| 3056 | * File name selection pattern |
| 3057 | */ |
| 3058 | tSCC zDarwin_Os_Trace_2List[] = |
| 3059 | "os/trace.h\0" ; |
| 3060 | /* |
| 3061 | * Machine/OS name selection pattern |
| 3062 | */ |
| 3063 | tSCC* apzDarwin_Os_Trace_2Machs[] = { |
| 3064 | "*-*-darwin*" , |
| 3065 | (const char*)NULL }; |
| 3066 | |
| 3067 | /* |
| 3068 | * content selection pattern - do fix if pattern found |
| 3069 | */ |
| 3070 | tSCC zDarwin_Os_Trace_2Select0[] = |
| 3071 | "typedef.*\\^os_trace_payload_t.*" ; |
| 3072 | |
| 3073 | /* |
| 3074 | * content bypass pattern - skip fix if pattern found |
| 3075 | */ |
| 3076 | tSCC zDarwin_Os_Trace_2Bypass0[] = |
| 3077 | "#ifdef __BLOCKS__" ; |
| 3078 | |
| 3079 | #define DARWIN_OS_TRACE_2_TEST_CT 2 |
| 3080 | static tTestDesc aDarwin_Os_Trace_2Tests[] = { |
| 3081 | { .type: TT_NEGREP, .pz_test_text: zDarwin_Os_Trace_2Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 3082 | { .type: TT_EGREP, .pz_test_text: zDarwin_Os_Trace_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3083 | |
| 3084 | /* |
| 3085 | * Fix Command Arguments for Darwin_Os_Trace_2 |
| 3086 | */ |
| 3087 | static const char* apzDarwin_Os_Trace_2Patch[] = { |
| 3088 | "format" , |
| 3089 | "#if __BLOCKS__\n\ |
| 3090 | %0\n\ |
| 3091 | #endif" , |
| 3092 | (char*)NULL }; |
| 3093 | |
| 3094 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3095 | * |
| 3096 | * Description of Darwin_Objc_Runtime_1 fix |
| 3097 | */ |
| 3098 | tSCC zDarwin_Objc_Runtime_1Name[] = |
| 3099 | "darwin_objc_runtime_1" ; |
| 3100 | |
| 3101 | /* |
| 3102 | * File name selection pattern |
| 3103 | */ |
| 3104 | tSCC zDarwin_Objc_Runtime_1List[] = |
| 3105 | "objc/runtime.h\0" ; |
| 3106 | /* |
| 3107 | * Machine/OS name selection pattern |
| 3108 | */ |
| 3109 | tSCC* apzDarwin_Objc_Runtime_1Machs[] = { |
| 3110 | "*-*-darwin2*" , |
| 3111 | (const char*)NULL }; |
| 3112 | |
| 3113 | /* |
| 3114 | * content selection pattern - do fix if pattern found |
| 3115 | */ |
| 3116 | tSCC zDarwin_Objc_Runtime_1Select0[] = |
| 3117 | "OBJC_EXPORT void.*\n\ |
| 3118 | objc_enumerateClasses.*\n\ |
| 3119 | .*\n\ |
| 3120 | .*\n\ |
| 3121 | .*\n\ |
| 3122 | .*void \\(\\^ _Nonnull block.*\n\ |
| 3123 | .*\n\ |
| 3124 | .*\n\ |
| 3125 | .*OBJC_REFINED_FOR_SWIFT.*" ; |
| 3126 | |
| 3127 | /* |
| 3128 | * content bypass pattern - skip fix if pattern found |
| 3129 | */ |
| 3130 | tSCC zDarwin_Objc_Runtime_1Bypass0[] = |
| 3131 | "#ifdef __BLOCKS__" ; |
| 3132 | |
| 3133 | #define DARWIN_OBJC_RUNTIME_1_TEST_CT 2 |
| 3134 | static tTestDesc aDarwin_Objc_Runtime_1Tests[] = { |
| 3135 | { .type: TT_NEGREP, .pz_test_text: zDarwin_Objc_Runtime_1Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 3136 | { .type: TT_EGREP, .pz_test_text: zDarwin_Objc_Runtime_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3137 | |
| 3138 | /* |
| 3139 | * Fix Command Arguments for Darwin_Objc_Runtime_1 |
| 3140 | */ |
| 3141 | static const char* apzDarwin_Objc_Runtime_1Patch[] = { |
| 3142 | "format" , |
| 3143 | "#if __BLOCKS__\n\ |
| 3144 | %0\n\ |
| 3145 | #endif" , |
| 3146 | (char*)NULL }; |
| 3147 | |
| 3148 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3149 | * |
| 3150 | * Description of Darwin_Os_Trace_3 fix |
| 3151 | */ |
| 3152 | tSCC zDarwin_Os_Trace_3Name[] = |
| 3153 | "darwin_os_trace_3" ; |
| 3154 | |
| 3155 | /* |
| 3156 | * File name selection pattern |
| 3157 | */ |
| 3158 | tSCC zDarwin_Os_Trace_3List[] = |
| 3159 | "os/trace.h\0" ; |
| 3160 | /* |
| 3161 | * Machine/OS name selection pattern |
| 3162 | */ |
| 3163 | tSCC* apzDarwin_Os_Trace_3Machs[] = { |
| 3164 | "*-*-darwin*" , |
| 3165 | (const char*)NULL }; |
| 3166 | |
| 3167 | /* |
| 3168 | * content selection pattern - do fix if pattern found |
| 3169 | */ |
| 3170 | tSCC zDarwin_Os_Trace_3Select0[] = |
| 3171 | "__(API|OSX)_.*\n\ |
| 3172 | OS_EXPORT.*\n\ |
| 3173 | .*\n\ |
| 3174 | _os_trace.*os_trace_payload_t payload);" ; |
| 3175 | |
| 3176 | #define DARWIN_OS_TRACE_3_TEST_CT 1 |
| 3177 | static tTestDesc aDarwin_Os_Trace_3Tests[] = { |
| 3178 | { .type: TT_EGREP, .pz_test_text: zDarwin_Os_Trace_3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3179 | |
| 3180 | /* |
| 3181 | * Fix Command Arguments for Darwin_Os_Trace_3 |
| 3182 | */ |
| 3183 | static const char* apzDarwin_Os_Trace_3Patch[] = { |
| 3184 | "format" , |
| 3185 | "#if __BLOCKS__\n\ |
| 3186 | %0\n\ |
| 3187 | #endif" , |
| 3188 | (char*)NULL }; |
| 3189 | |
| 3190 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3191 | * |
| 3192 | * Description of Darwin_Os_Base_1 fix |
| 3193 | */ |
| 3194 | tSCC zDarwin_Os_Base_1Name[] = |
| 3195 | "darwin_os_base_1" ; |
| 3196 | |
| 3197 | /* |
| 3198 | * File name selection pattern |
| 3199 | */ |
| 3200 | tSCC zDarwin_Os_Base_1List[] = |
| 3201 | "os/base.h\0" ; |
| 3202 | /* |
| 3203 | * Machine/OS name selection pattern |
| 3204 | */ |
| 3205 | tSCC* apzDarwin_Os_Base_1Machs[] = { |
| 3206 | "*-*-darwin*" , |
| 3207 | (const char*)NULL }; |
| 3208 | |
| 3209 | /* |
| 3210 | * content selection pattern - do fix if pattern found |
| 3211 | */ |
| 3212 | tSCC zDarwin_Os_Base_1Select0[] = |
| 3213 | "#define __has_attribute.*\n\ |
| 3214 | #endif" ; |
| 3215 | |
| 3216 | /* |
| 3217 | * content bypass pattern - skip fix if pattern found |
| 3218 | */ |
| 3219 | tSCC zDarwin_Os_Base_1Bypass0[] = |
| 3220 | "#define __has_extension" ; |
| 3221 | |
| 3222 | #define DARWIN_OS_BASE_1_TEST_CT 2 |
| 3223 | static tTestDesc aDarwin_Os_Base_1Tests[] = { |
| 3224 | { .type: TT_NEGREP, .pz_test_text: zDarwin_Os_Base_1Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 3225 | { .type: TT_EGREP, .pz_test_text: zDarwin_Os_Base_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3226 | |
| 3227 | /* |
| 3228 | * Fix Command Arguments for Darwin_Os_Base_1 |
| 3229 | */ |
| 3230 | static const char* apzDarwin_Os_Base_1Patch[] = { |
| 3231 | "format" , |
| 3232 | "%0\n\ |
| 3233 | #ifndef __has_extension\n\ |
| 3234 | #define __has_extension(x) 0\n\ |
| 3235 | #endif" , |
| 3236 | (char*)NULL }; |
| 3237 | |
| 3238 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3239 | * |
| 3240 | * Description of Darwin_Dispatch_Object_1 fix |
| 3241 | */ |
| 3242 | tSCC zDarwin_Dispatch_Object_1Name[] = |
| 3243 | "darwin_dispatch_object_1" ; |
| 3244 | |
| 3245 | /* |
| 3246 | * File name selection pattern |
| 3247 | */ |
| 3248 | tSCC zDarwin_Dispatch_Object_1List[] = |
| 3249 | "dispatch/object.h\0" ; |
| 3250 | /* |
| 3251 | * Machine/OS name selection pattern |
| 3252 | */ |
| 3253 | tSCC* apzDarwin_Dispatch_Object_1Machs[] = { |
| 3254 | "*-*-darwin*" , |
| 3255 | (const char*)NULL }; |
| 3256 | |
| 3257 | /* |
| 3258 | * content selection pattern - do fix if pattern found |
| 3259 | */ |
| 3260 | tSCC zDarwin_Dispatch_Object_1Select0[] = |
| 3261 | "typedef void.*\\^dispatch_block_t.*" ; |
| 3262 | |
| 3263 | /* |
| 3264 | * content bypass pattern - skip fix if pattern found |
| 3265 | */ |
| 3266 | tSCC zDarwin_Dispatch_Object_1Bypass0[] = |
| 3267 | "#ifdef __BLOCKS__" ; |
| 3268 | |
| 3269 | #define DARWIN_DISPATCH_OBJECT_1_TEST_CT 2 |
| 3270 | static tTestDesc aDarwin_Dispatch_Object_1Tests[] = { |
| 3271 | { .type: TT_NEGREP, .pz_test_text: zDarwin_Dispatch_Object_1Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 3272 | { .type: TT_EGREP, .pz_test_text: zDarwin_Dispatch_Object_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3273 | |
| 3274 | /* |
| 3275 | * Fix Command Arguments for Darwin_Dispatch_Object_1 |
| 3276 | */ |
| 3277 | static const char* apzDarwin_Dispatch_Object_1Patch[] = { |
| 3278 | "format" , |
| 3279 | "#if __BLOCKS__\n\ |
| 3280 | %0\n\ |
| 3281 | #endif" , |
| 3282 | (char*)NULL }; |
| 3283 | |
| 3284 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3285 | * |
| 3286 | * Description of Darwin_Private_Extern fix |
| 3287 | */ |
| 3288 | tSCC zDarwin_Private_ExternName[] = |
| 3289 | "darwin_private_extern" ; |
| 3290 | |
| 3291 | /* |
| 3292 | * File name selection pattern |
| 3293 | */ |
| 3294 | tSCC zDarwin_Private_ExternList[] = |
| 3295 | "mach-o/dyld.h\0" ; |
| 3296 | /* |
| 3297 | * Machine/OS name selection pattern |
| 3298 | */ |
| 3299 | tSCC* apzDarwin_Private_ExternMachs[] = { |
| 3300 | "*-*-darwin*" , |
| 3301 | (const char*)NULL }; |
| 3302 | |
| 3303 | /* |
| 3304 | * content selection pattern - do fix if pattern found |
| 3305 | */ |
| 3306 | tSCC zDarwin_Private_ExternSelect0[] = |
| 3307 | "__private_extern__ [a-z_]+ _dyld_" ; |
| 3308 | |
| 3309 | #define DARWIN_PRIVATE_EXTERN_TEST_CT 1 |
| 3310 | static tTestDesc aDarwin_Private_ExternTests[] = { |
| 3311 | { .type: TT_EGREP, .pz_test_text: zDarwin_Private_ExternSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3312 | |
| 3313 | /* |
| 3314 | * Fix Command Arguments for Darwin_Private_Extern |
| 3315 | */ |
| 3316 | static const char* apzDarwin_Private_ExternPatch[] = { |
| 3317 | "format" , |
| 3318 | "extern" , |
| 3319 | "__private_extern__" , |
| 3320 | (char*)NULL }; |
| 3321 | |
| 3322 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3323 | * |
| 3324 | * Description of Darwin_Stdint_1 fix |
| 3325 | */ |
| 3326 | tSCC zDarwin_Stdint_1Name[] = |
| 3327 | "darwin_stdint_1" ; |
| 3328 | |
| 3329 | /* |
| 3330 | * File name selection pattern |
| 3331 | */ |
| 3332 | tSCC zDarwin_Stdint_1List[] = |
| 3333 | "stdint-darwin.h\0stdint.h\0" ; |
| 3334 | /* |
| 3335 | * Machine/OS name selection pattern |
| 3336 | */ |
| 3337 | tSCC* apzDarwin_Stdint_1Machs[] = { |
| 3338 | "*-*-darwin*" , |
| 3339 | (const char*)NULL }; |
| 3340 | |
| 3341 | /* |
| 3342 | * content selection pattern - do fix if pattern found |
| 3343 | */ |
| 3344 | tSCC zDarwin_Stdint_1Select0[] = |
| 3345 | "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\ |
| 3346 | #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)" ; |
| 3347 | |
| 3348 | #define DARWIN_STDINT_1_TEST_CT 1 |
| 3349 | static tTestDesc aDarwin_Stdint_1Tests[] = { |
| 3350 | { .type: TT_EGREP, .pz_test_text: zDarwin_Stdint_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3351 | |
| 3352 | /* |
| 3353 | * Fix Command Arguments for Darwin_Stdint_1 |
| 3354 | */ |
| 3355 | static const char* apzDarwin_Stdint_1Patch[] = { |
| 3356 | "format" , |
| 3357 | "#define UINT8_C(v)\tv\n\ |
| 3358 | #define UINT16_C(v)\tv" , |
| 3359 | (char*)NULL }; |
| 3360 | |
| 3361 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3362 | * |
| 3363 | * Description of Darwin_Stdint_2 fix |
| 3364 | */ |
| 3365 | tSCC zDarwin_Stdint_2Name[] = |
| 3366 | "darwin_stdint_2" ; |
| 3367 | |
| 3368 | /* |
| 3369 | * File name selection pattern |
| 3370 | */ |
| 3371 | tSCC zDarwin_Stdint_2List[] = |
| 3372 | "stdint-darwin.h\0stdint.h\0" ; |
| 3373 | /* |
| 3374 | * Machine/OS name selection pattern |
| 3375 | */ |
| 3376 | tSCC* apzDarwin_Stdint_2Machs[] = { |
| 3377 | "*-*-darwin*" , |
| 3378 | (const char*)NULL }; |
| 3379 | |
| 3380 | /* |
| 3381 | * content selection pattern - do fix if pattern found |
| 3382 | */ |
| 3383 | tSCC zDarwin_Stdint_2Select0[] = |
| 3384 | "#if __WORDSIZE == 64\n\ |
| 3385 | #define INTPTR_MIN[ \t]+INT64_MIN\n\ |
| 3386 | #define INTPTR_MAX[ \t]+INT64_MAX\n\ |
| 3387 | #else\n\ |
| 3388 | #define INTPTR_MIN[ \t]+INT32_MIN\n\ |
| 3389 | #define INTPTR_MAX[ \t]+INT32_MAX\n\ |
| 3390 | #endif" ; |
| 3391 | |
| 3392 | #define DARWIN_STDINT_2_TEST_CT 1 |
| 3393 | static tTestDesc aDarwin_Stdint_2Tests[] = { |
| 3394 | { .type: TT_EGREP, .pz_test_text: zDarwin_Stdint_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3395 | |
| 3396 | /* |
| 3397 | * Fix Command Arguments for Darwin_Stdint_2 |
| 3398 | */ |
| 3399 | static const char* apzDarwin_Stdint_2Patch[] = { |
| 3400 | "format" , |
| 3401 | "#if __WORDSIZE == 64\n\ |
| 3402 | #define INTPTR_MAX 9223372036854775807L\n\ |
| 3403 | #define INTPTR_MIN (-INTPTR_MAX-1)\n\ |
| 3404 | #else\n\ |
| 3405 | #define INTPTR_MAX 2147483647L\n\ |
| 3406 | #define INTPTR_MIN (-INTPTR_MAX-1)\n\ |
| 3407 | #endif" , |
| 3408 | (char*)NULL }; |
| 3409 | |
| 3410 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3411 | * |
| 3412 | * Description of Darwin_Stdint_3 fix |
| 3413 | */ |
| 3414 | tSCC zDarwin_Stdint_3Name[] = |
| 3415 | "darwin_stdint_3" ; |
| 3416 | |
| 3417 | /* |
| 3418 | * File name selection pattern |
| 3419 | */ |
| 3420 | tSCC zDarwin_Stdint_3List[] = |
| 3421 | "stdint-darwin.h\0stdint.h\0" ; |
| 3422 | /* |
| 3423 | * Machine/OS name selection pattern |
| 3424 | */ |
| 3425 | tSCC* apzDarwin_Stdint_3Machs[] = { |
| 3426 | "*-*-darwin*" , |
| 3427 | (const char*)NULL }; |
| 3428 | |
| 3429 | /* |
| 3430 | * content selection pattern - do fix if pattern found |
| 3431 | */ |
| 3432 | tSCC zDarwin_Stdint_3Select0[] = |
| 3433 | "#if __WORDSIZE == 64\n\ |
| 3434 | #define UINTPTR_MAX[ \t]+UINT64_MAX\n\ |
| 3435 | #else\n\ |
| 3436 | #define UINTPTR_MAX[ \t]+UINT32_MAX\n\ |
| 3437 | #endif" ; |
| 3438 | |
| 3439 | #define DARWIN_STDINT_3_TEST_CT 1 |
| 3440 | static tTestDesc aDarwin_Stdint_3Tests[] = { |
| 3441 | { .type: TT_EGREP, .pz_test_text: zDarwin_Stdint_3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3442 | |
| 3443 | /* |
| 3444 | * Fix Command Arguments for Darwin_Stdint_3 |
| 3445 | */ |
| 3446 | static const char* apzDarwin_Stdint_3Patch[] = { |
| 3447 | "format" , |
| 3448 | "#if __WORDSIZE == 64\n\ |
| 3449 | #define UINTPTR_MAX 18446744073709551615UL\n\ |
| 3450 | #else\n\ |
| 3451 | #define UINTPTR_MAX 4294967295UL\n\ |
| 3452 | #endif" , |
| 3453 | (char*)NULL }; |
| 3454 | |
| 3455 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3456 | * |
| 3457 | * Description of Darwin_Stdint_4 fix |
| 3458 | */ |
| 3459 | tSCC zDarwin_Stdint_4Name[] = |
| 3460 | "darwin_stdint_4" ; |
| 3461 | |
| 3462 | /* |
| 3463 | * File name selection pattern |
| 3464 | */ |
| 3465 | tSCC zDarwin_Stdint_4List[] = |
| 3466 | "stdint-darwin.h\0stdint.h\0" ; |
| 3467 | /* |
| 3468 | * Machine/OS name selection pattern |
| 3469 | */ |
| 3470 | tSCC* apzDarwin_Stdint_4Machs[] = { |
| 3471 | "*-*-darwin*" , |
| 3472 | (const char*)NULL }; |
| 3473 | |
| 3474 | /* |
| 3475 | * content selection pattern - do fix if pattern found |
| 3476 | */ |
| 3477 | tSCC zDarwin_Stdint_4Select0[] = |
| 3478 | "#if __WORDSIZE == 64\n\ |
| 3479 | #define SIZE_MAX[ \t]+UINT64_MAX\n\ |
| 3480 | #else\n\ |
| 3481 | #define SIZE_MAX[ \t]+UINT32_MAX\n\ |
| 3482 | #endif" ; |
| 3483 | |
| 3484 | #define DARWIN_STDINT_4_TEST_CT 1 |
| 3485 | static tTestDesc aDarwin_Stdint_4Tests[] = { |
| 3486 | { .type: TT_EGREP, .pz_test_text: zDarwin_Stdint_4Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3487 | |
| 3488 | /* |
| 3489 | * Fix Command Arguments for Darwin_Stdint_4 |
| 3490 | */ |
| 3491 | static const char* apzDarwin_Stdint_4Patch[] = { |
| 3492 | "format" , |
| 3493 | "#if __WORDSIZE == 64\n\ |
| 3494 | #define SIZE_MAX 18446744073709551615UL\n\ |
| 3495 | #else\n\ |
| 3496 | #define SIZE_MAX 4294967295UL\n\ |
| 3497 | #endif" , |
| 3498 | (char*)NULL }; |
| 3499 | |
| 3500 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3501 | * |
| 3502 | * Description of Darwin_Stdint_5 fix |
| 3503 | */ |
| 3504 | tSCC zDarwin_Stdint_5Name[] = |
| 3505 | "darwin_stdint_5" ; |
| 3506 | |
| 3507 | /* |
| 3508 | * File name selection pattern |
| 3509 | */ |
| 3510 | tSCC zDarwin_Stdint_5List[] = |
| 3511 | "stdint-darwin.h\0stdint.h\0" ; |
| 3512 | /* |
| 3513 | * Machine/OS name selection pattern |
| 3514 | */ |
| 3515 | tSCC* apzDarwin_Stdint_5Machs[] = { |
| 3516 | "*-*-darwin*" , |
| 3517 | (const char*)NULL }; |
| 3518 | |
| 3519 | /* |
| 3520 | * content selection pattern - do fix if pattern found |
| 3521 | */ |
| 3522 | tSCC zDarwin_Stdint_5Select0[] = |
| 3523 | "#define INTMAX_MIN[ \t]+INT64_MIN\n\ |
| 3524 | #define INTMAX_MAX[ \t]+INT64_MAX\n\n\ |
| 3525 | #define UINTMAX_MAX[ \t]+UINT64_MAX" ; |
| 3526 | |
| 3527 | #define DARWIN_STDINT_5_TEST_CT 1 |
| 3528 | static tTestDesc aDarwin_Stdint_5Tests[] = { |
| 3529 | { .type: TT_EGREP, .pz_test_text: zDarwin_Stdint_5Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3530 | |
| 3531 | /* |
| 3532 | * Fix Command Arguments for Darwin_Stdint_5 |
| 3533 | */ |
| 3534 | static const char* apzDarwin_Stdint_5Patch[] = { |
| 3535 | "format" , |
| 3536 | "#if __WORDSIZE == 64\n\ |
| 3537 | #define INTMAX_MIN (-9223372036854775807L - 1)\n\ |
| 3538 | #define INTMAX_MAX 9223372036854775807L\n\ |
| 3539 | #define UINTMAX_MAX 18446744073709551615UL\n\ |
| 3540 | #else\n\ |
| 3541 | #define INTMAX_MIN (-9223372036854775807LL - 1)\n\ |
| 3542 | #define INTMAX_MAX 9223372036854775807LL\n\ |
| 3543 | #define UINTMAX_MAX 18446744073709551615ULL\n\ |
| 3544 | #endif" , |
| 3545 | (char*)NULL }; |
| 3546 | |
| 3547 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3548 | * |
| 3549 | * Description of Darwin_Stdint_6 fix |
| 3550 | */ |
| 3551 | tSCC zDarwin_Stdint_6Name[] = |
| 3552 | "darwin_stdint_6" ; |
| 3553 | |
| 3554 | /* |
| 3555 | * File name selection pattern |
| 3556 | */ |
| 3557 | tSCC zDarwin_Stdint_6List[] = |
| 3558 | "stdint-darwin.h\0stdint.h\0" ; |
| 3559 | /* |
| 3560 | * Machine/OS name selection pattern |
| 3561 | */ |
| 3562 | tSCC* apzDarwin_Stdint_6Machs[] = { |
| 3563 | "*-*-darwin*" , |
| 3564 | (const char*)NULL }; |
| 3565 | |
| 3566 | /* |
| 3567 | * content selection pattern - do fix if pattern found |
| 3568 | */ |
| 3569 | tSCC zDarwin_Stdint_6Select0[] = |
| 3570 | "#if __WORDSIZE == 64\n\ |
| 3571 | #define PTRDIFF_MIN[ \t]+INT64_MIN\n\ |
| 3572 | #define PTRDIFF_MAX[ \t]+INT64_MAX\n\ |
| 3573 | #else\n\ |
| 3574 | #define PTRDIFF_MIN[ \t]+INT32_MIN\n\ |
| 3575 | #define PTRDIFF_MAX[ \t]+INT32_MAX\n\ |
| 3576 | #endif" ; |
| 3577 | |
| 3578 | #define DARWIN_STDINT_6_TEST_CT 1 |
| 3579 | static tTestDesc aDarwin_Stdint_6Tests[] = { |
| 3580 | { .type: TT_EGREP, .pz_test_text: zDarwin_Stdint_6Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3581 | |
| 3582 | /* |
| 3583 | * Fix Command Arguments for Darwin_Stdint_6 |
| 3584 | */ |
| 3585 | static const char* apzDarwin_Stdint_6Patch[] = { |
| 3586 | "format" , |
| 3587 | "#if __WORDSIZE == 64\n\ |
| 3588 | #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\ |
| 3589 | #define PTRDIFF_MAX 9223372036854775807L\n\ |
| 3590 | #else\n\ |
| 3591 | #define PTRDIFF_MIN (-2147483647 - 1)\n\ |
| 3592 | #define PTRDIFF_MAX 2147483647\n\ |
| 3593 | #endif" , |
| 3594 | (char*)NULL }; |
| 3595 | |
| 3596 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3597 | * |
| 3598 | * Description of Darwin_Stdint_7 fix |
| 3599 | */ |
| 3600 | tSCC zDarwin_Stdint_7Name[] = |
| 3601 | "darwin_stdint_7" ; |
| 3602 | |
| 3603 | /* |
| 3604 | * File name selection pattern |
| 3605 | */ |
| 3606 | tSCC zDarwin_Stdint_7List[] = |
| 3607 | "stdint-darwin.h\0stdint.h\0" ; |
| 3608 | /* |
| 3609 | * Machine/OS name selection pattern |
| 3610 | */ |
| 3611 | tSCC* apzDarwin_Stdint_7Machs[] = { |
| 3612 | "*-*-darwin*" , |
| 3613 | (const char*)NULL }; |
| 3614 | |
| 3615 | /* |
| 3616 | * content selection pattern - do fix if pattern found |
| 3617 | */ |
| 3618 | tSCC zDarwin_Stdint_7Select0[] = |
| 3619 | "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\ |
| 3620 | #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)" ; |
| 3621 | |
| 3622 | /* |
| 3623 | * content bypass pattern - skip fix if pattern found |
| 3624 | */ |
| 3625 | tSCC zDarwin_Stdint_7Bypass0[] = |
| 3626 | "#ifdef __LP64__" ; |
| 3627 | |
| 3628 | #define DARWIN_STDINT_7_TEST_CT 2 |
| 3629 | static tTestDesc aDarwin_Stdint_7Tests[] = { |
| 3630 | { .type: TT_NEGREP, .pz_test_text: zDarwin_Stdint_7Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 3631 | { .type: TT_EGREP, .pz_test_text: zDarwin_Stdint_7Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 3632 | |
| 3633 | /* |
| 3634 | * Fix Command Arguments for Darwin_Stdint_7 |
| 3635 | */ |
| 3636 | static const char* apzDarwin_Stdint_7Patch[] = { |
| 3637 | "format" , |
| 3638 | "#if __WORDSIZE == 64\n\ |
| 3639 | #define INTMAX_C(v) (v ## L)\n\ |
| 3640 | #define UINTMAX_C(v) (v ## UL)\n\ |
| 3641 | #else\n\ |
| 3642 | #define INTMAX_C(v) (v ## LL)\n\ |
| 3643 | #define UINTMAX_C(v) (v ## ULL)\n\ |
| 3644 | #endif" , |
| 3645 | (char*)NULL }; |
| 3646 | |
| 3647 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3648 | * |
| 3649 | * Description of Darwin_Ucred__Atomic fix |
| 3650 | */ |
| 3651 | tSCC zDarwin_Ucred__AtomicName[] = |
| 3652 | "darwin_ucred__Atomic" ; |
| 3653 | |
| 3654 | /* |
| 3655 | * File name selection pattern |
| 3656 | */ |
| 3657 | tSCC zDarwin_Ucred__AtomicList[] = |
| 3658 | "sys/ucred.h\0" ; |
| 3659 | /* |
| 3660 | * Machine/OS name selection pattern |
| 3661 | */ |
| 3662 | tSCC* apzDarwin_Ucred__AtomicMachs[] = { |
| 3663 | "*-*-darwin*" , |
| 3664 | (const char*)NULL }; |
| 3665 | |
| 3666 | /* |
| 3667 | * content selection pattern - do fix if pattern found |
| 3668 | */ |
| 3669 | tSCC zDarwin_Ucred__AtomicSelect0[] = |
| 3670 | "_Atomic" ; |
| 3671 | |
| 3672 | #define DARWIN_UCRED__ATOMIC_TEST_CT 1 |
| 3673 | static tTestDesc aDarwin_Ucred__AtomicTests[] = { |
| 3674 | { .type: TT_EGREP, .pz_test_text: zDarwin_Ucred__AtomicSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3675 | |
| 3676 | /* |
| 3677 | * Fix Command Arguments for Darwin_Ucred__Atomic |
| 3678 | */ |
| 3679 | static const char* apzDarwin_Ucred__AtomicPatch[] = { |
| 3680 | "wrap" , |
| 3681 | "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\ |
| 3682 | # define _Atomic volatile\n\ |
| 3683 | #endif\n" , |
| 3684 | "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\ |
| 3685 | # undef _Atomic\n\ |
| 3686 | #endif\n" , |
| 3687 | (char*)NULL }; |
| 3688 | |
| 3689 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3690 | * |
| 3691 | * Description of Darwin_Flt_Eval_Method fix |
| 3692 | */ |
| 3693 | tSCC zDarwin_Flt_Eval_MethodName[] = |
| 3694 | "darwin_flt_eval_method" ; |
| 3695 | |
| 3696 | /* |
| 3697 | * File name selection pattern |
| 3698 | */ |
| 3699 | tSCC zDarwin_Flt_Eval_MethodList[] = |
| 3700 | "math.h\0" ; |
| 3701 | /* |
| 3702 | * Machine/OS name selection pattern |
| 3703 | */ |
| 3704 | tSCC* apzDarwin_Flt_Eval_MethodMachs[] = { |
| 3705 | "*-*-darwin*" , |
| 3706 | (const char*)NULL }; |
| 3707 | |
| 3708 | /* |
| 3709 | * content selection pattern - do fix if pattern found |
| 3710 | */ |
| 3711 | tSCC zDarwin_Flt_Eval_MethodSelect0[] = |
| 3712 | "^#if __FLT_EVAL_METHOD__ == 0( \\|\\| __FLT_EVAL_METHOD__ == -1)?$" ; |
| 3713 | |
| 3714 | #define DARWIN_FLT_EVAL_METHOD_TEST_CT 1 |
| 3715 | static tTestDesc aDarwin_Flt_Eval_MethodTests[] = { |
| 3716 | { .type: TT_EGREP, .pz_test_text: zDarwin_Flt_Eval_MethodSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3717 | |
| 3718 | /* |
| 3719 | * Fix Command Arguments for Darwin_Flt_Eval_Method |
| 3720 | */ |
| 3721 | static const char* apzDarwin_Flt_Eval_MethodPatch[] = { |
| 3722 | "format" , |
| 3723 | "%0 || __FLT_EVAL_METHOD__ == 16" , |
| 3724 | (char*)NULL }; |
| 3725 | |
| 3726 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3727 | * |
| 3728 | * Description of Dec_Intern_Asm fix |
| 3729 | */ |
| 3730 | tSCC zDec_Intern_AsmName[] = |
| 3731 | "dec_intern_asm" ; |
| 3732 | |
| 3733 | /* |
| 3734 | * File name selection pattern |
| 3735 | */ |
| 3736 | tSCC zDec_Intern_AsmList[] = |
| 3737 | "c_asm.h\0" ; |
| 3738 | /* |
| 3739 | * Machine/OS name selection pattern |
| 3740 | */ |
| 3741 | #define apzDec_Intern_AsmMachs (const char**)NULL |
| 3742 | #define DEC_INTERN_ASM_TEST_CT 0 |
| 3743 | #define aDec_Intern_AsmTests (tTestDesc*)NULL |
| 3744 | |
| 3745 | /* |
| 3746 | * Fix Command Arguments for Dec_Intern_Asm |
| 3747 | */ |
| 3748 | static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z, |
| 3749 | "-e" , "/^[ \t]*float[ \t]*fasm/i\\\n\ |
| 3750 | #ifdef __DECC\n" , |
| 3751 | "-e" , "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ |
| 3752 | #endif\n" , |
| 3753 | (char*)NULL }; |
| 3754 | |
| 3755 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3756 | * |
| 3757 | * Description of Djgpp_Wchar_H fix |
| 3758 | */ |
| 3759 | tSCC zDjgpp_Wchar_HName[] = |
| 3760 | "djgpp_wchar_h" ; |
| 3761 | |
| 3762 | /* |
| 3763 | * File name selection pattern |
| 3764 | */ |
| 3765 | #define zDjgpp_Wchar_HList (char*)NULL |
| 3766 | /* |
| 3767 | * Machine/OS name selection pattern |
| 3768 | */ |
| 3769 | #define apzDjgpp_Wchar_HMachs (const char**)NULL |
| 3770 | |
| 3771 | /* |
| 3772 | * content selection pattern - do fix if pattern found |
| 3773 | */ |
| 3774 | tSCC zDjgpp_Wchar_HSelect0[] = |
| 3775 | "__DJ_wint_t" ; |
| 3776 | |
| 3777 | /* |
| 3778 | * content bypass pattern - skip fix if pattern found |
| 3779 | */ |
| 3780 | tSCC zDjgpp_Wchar_HBypass0[] = |
| 3781 | "sys/djtypes.h" ; |
| 3782 | |
| 3783 | #define DJGPP_WCHAR_H_TEST_CT 2 |
| 3784 | static tTestDesc aDjgpp_Wchar_HTests[] = { |
| 3785 | { .type: TT_NEGREP, .pz_test_text: zDjgpp_Wchar_HBypass0, .p_test_regex: (regex_t*)NULL }, |
| 3786 | { .type: TT_EGREP, .pz_test_text: zDjgpp_Wchar_HSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3787 | |
| 3788 | /* |
| 3789 | * Fix Command Arguments for Djgpp_Wchar_H |
| 3790 | */ |
| 3791 | static const char* apzDjgpp_Wchar_HPatch[] = { |
| 3792 | "format" , |
| 3793 | "%0\n\ |
| 3794 | #include <sys/djtypes.h>" , |
| 3795 | "#include <stddef.h>" , |
| 3796 | (char*)NULL }; |
| 3797 | |
| 3798 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3799 | * |
| 3800 | * Description of Ecd_Cursor fix |
| 3801 | */ |
| 3802 | tSCC zEcd_CursorName[] = |
| 3803 | "ecd_cursor" ; |
| 3804 | |
| 3805 | /* |
| 3806 | * File name selection pattern |
| 3807 | */ |
| 3808 | tSCC zEcd_CursorList[] = |
| 3809 | "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0" ; |
| 3810 | /* |
| 3811 | * Machine/OS name selection pattern |
| 3812 | */ |
| 3813 | #define apzEcd_CursorMachs (const char**)NULL |
| 3814 | |
| 3815 | /* |
| 3816 | * content selection pattern - do fix if pattern found |
| 3817 | */ |
| 3818 | tSCC zEcd_CursorSelect0[] = |
| 3819 | "ecd\\.cursor" ; |
| 3820 | |
| 3821 | #define ECD_CURSOR_TEST_CT 1 |
| 3822 | static tTestDesc aEcd_CursorTests[] = { |
| 3823 | { .type: TT_EGREP, .pz_test_text: zEcd_CursorSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3824 | |
| 3825 | /* |
| 3826 | * Fix Command Arguments for Ecd_Cursor |
| 3827 | */ |
| 3828 | static const char* apzEcd_CursorPatch[] = { |
| 3829 | "format" , |
| 3830 | "ecd_cursor" , |
| 3831 | (char*)NULL }; |
| 3832 | |
| 3833 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3834 | * |
| 3835 | * Description of Feraiseexcept_Nosse_Divbyzero fix |
| 3836 | */ |
| 3837 | tSCC zFeraiseexcept_Nosse_DivbyzeroName[] = |
| 3838 | "feraiseexcept_nosse_divbyzero" ; |
| 3839 | |
| 3840 | /* |
| 3841 | * File name selection pattern |
| 3842 | */ |
| 3843 | tSCC zFeraiseexcept_Nosse_DivbyzeroList[] = |
| 3844 | "bits/fenv.h\0*/bits/fenv.h\0" ; |
| 3845 | /* |
| 3846 | * Machine/OS name selection pattern |
| 3847 | */ |
| 3848 | tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = { |
| 3849 | "i[34567]86-*-linux*" , |
| 3850 | "x86*-linux*" , |
| 3851 | "amd64-*-linux*" , |
| 3852 | (const char*)NULL }; |
| 3853 | |
| 3854 | /* |
| 3855 | * content selection pattern - do fix if pattern found |
| 3856 | */ |
| 3857 | tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] = |
| 3858 | "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$" ; |
| 3859 | |
| 3860 | /* |
| 3861 | * content bypass pattern - skip fix if pattern found |
| 3862 | */ |
| 3863 | tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] = |
| 3864 | "\"fdivp .*; fwait\"" ; |
| 3865 | |
| 3866 | #define FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT 2 |
| 3867 | static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = { |
| 3868 | { .type: TT_NEGREP, .pz_test_text: zFeraiseexcept_Nosse_DivbyzeroBypass0, .p_test_regex: (regex_t*)NULL }, |
| 3869 | { .type: TT_EGREP, .pz_test_text: zFeraiseexcept_Nosse_DivbyzeroSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3870 | |
| 3871 | /* |
| 3872 | * Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero |
| 3873 | */ |
| 3874 | static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = { |
| 3875 | "format" , |
| 3876 | "# ifdef __SSE_MATH__\n\ |
| 3877 | %0\n\ |
| 3878 | # else\n\ |
| 3879 | %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\ |
| 3880 | %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\ |
| 3881 | # endif" , |
| 3882 | (char*)NULL }; |
| 3883 | |
| 3884 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3885 | * |
| 3886 | * Description of Feraiseexcept_Nosse_Invalid fix |
| 3887 | */ |
| 3888 | tSCC zFeraiseexcept_Nosse_InvalidName[] = |
| 3889 | "feraiseexcept_nosse_invalid" ; |
| 3890 | |
| 3891 | /* |
| 3892 | * File name selection pattern |
| 3893 | */ |
| 3894 | tSCC zFeraiseexcept_Nosse_InvalidList[] = |
| 3895 | "bits/fenv.h\0*/bits/fenv.h\0" ; |
| 3896 | /* |
| 3897 | * Machine/OS name selection pattern |
| 3898 | */ |
| 3899 | tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = { |
| 3900 | "i[34567]86-*-linux*" , |
| 3901 | "x86*-linux*" , |
| 3902 | "amd64-*-linux*" , |
| 3903 | (const char*)NULL }; |
| 3904 | |
| 3905 | /* |
| 3906 | * content selection pattern - do fix if pattern found |
| 3907 | */ |
| 3908 | tSCC zFeraiseexcept_Nosse_InvalidSelect0[] = |
| 3909 | "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$" ; |
| 3910 | |
| 3911 | /* |
| 3912 | * content bypass pattern - skip fix if pattern found |
| 3913 | */ |
| 3914 | tSCC zFeraiseexcept_Nosse_InvalidBypass0[] = |
| 3915 | "\"fdiv .*; fwait\"" ; |
| 3916 | |
| 3917 | #define FERAISEEXCEPT_NOSSE_INVALID_TEST_CT 2 |
| 3918 | static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = { |
| 3919 | { .type: TT_NEGREP, .pz_test_text: zFeraiseexcept_Nosse_InvalidBypass0, .p_test_regex: (regex_t*)NULL }, |
| 3920 | { .type: TT_EGREP, .pz_test_text: zFeraiseexcept_Nosse_InvalidSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3921 | |
| 3922 | /* |
| 3923 | * Fix Command Arguments for Feraiseexcept_Nosse_Invalid |
| 3924 | */ |
| 3925 | static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = { |
| 3926 | "format" , |
| 3927 | "# ifdef __SSE_MATH__\n\ |
| 3928 | %0\n\ |
| 3929 | # else\n\ |
| 3930 | %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\ |
| 3931 | %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\ |
| 3932 | # endif" , |
| 3933 | (char*)NULL }; |
| 3934 | |
| 3935 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3936 | * |
| 3937 | * Description of Freebsd_Gcc3_Breakage fix |
| 3938 | */ |
| 3939 | tSCC zFreebsd_Gcc3_BreakageName[] = |
| 3940 | "freebsd_gcc3_breakage" ; |
| 3941 | |
| 3942 | /* |
| 3943 | * File name selection pattern |
| 3944 | */ |
| 3945 | tSCC zFreebsd_Gcc3_BreakageList[] = |
| 3946 | "sys/cdefs.h\0" ; |
| 3947 | /* |
| 3948 | * Machine/OS name selection pattern |
| 3949 | */ |
| 3950 | tSCC* apzFreebsd_Gcc3_BreakageMachs[] = { |
| 3951 | "*-*-freebsd*" , |
| 3952 | (const char*)NULL }; |
| 3953 | |
| 3954 | /* |
| 3955 | * content selection pattern - do fix if pattern found |
| 3956 | */ |
| 3957 | tSCC zFreebsd_Gcc3_BreakageSelect0[] = |
| 3958 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$" ; |
| 3959 | |
| 3960 | /* |
| 3961 | * content bypass pattern - skip fix if pattern found |
| 3962 | */ |
| 3963 | tSCC zFreebsd_Gcc3_BreakageBypass0[] = |
| 3964 | "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)" ; |
| 3965 | |
| 3966 | #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2 |
| 3967 | static tTestDesc aFreebsd_Gcc3_BreakageTests[] = { |
| 3968 | { .type: TT_NEGREP, .pz_test_text: zFreebsd_Gcc3_BreakageBypass0, .p_test_regex: (regex_t*)NULL }, |
| 3969 | { .type: TT_EGREP, .pz_test_text: zFreebsd_Gcc3_BreakageSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 3970 | |
| 3971 | /* |
| 3972 | * Fix Command Arguments for Freebsd_Gcc3_Breakage |
| 3973 | */ |
| 3974 | static const char* apzFreebsd_Gcc3_BreakagePatch[] = { |
| 3975 | "format" , |
| 3976 | "%0 || __GNUC__ >= 3" , |
| 3977 | (char*)NULL }; |
| 3978 | |
| 3979 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 3980 | * |
| 3981 | * Description of Freebsd_Gcc4_Breakage fix |
| 3982 | */ |
| 3983 | tSCC zFreebsd_Gcc4_BreakageName[] = |
| 3984 | "freebsd_gcc4_breakage" ; |
| 3985 | |
| 3986 | /* |
| 3987 | * File name selection pattern |
| 3988 | */ |
| 3989 | tSCC zFreebsd_Gcc4_BreakageList[] = |
| 3990 | "sys/cdefs.h\0" ; |
| 3991 | /* |
| 3992 | * Machine/OS name selection pattern |
| 3993 | */ |
| 3994 | tSCC* apzFreebsd_Gcc4_BreakageMachs[] = { |
| 3995 | "*-*-freebsd*" , |
| 3996 | (const char*)NULL }; |
| 3997 | |
| 3998 | /* |
| 3999 | * content selection pattern - do fix if pattern found |
| 4000 | */ |
| 4001 | tSCC zFreebsd_Gcc4_BreakageSelect0[] = |
| 4002 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$" ; |
| 4003 | |
| 4004 | #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1 |
| 4005 | static tTestDesc aFreebsd_Gcc4_BreakageTests[] = { |
| 4006 | { .type: TT_EGREP, .pz_test_text: zFreebsd_Gcc4_BreakageSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4007 | |
| 4008 | /* |
| 4009 | * Fix Command Arguments for Freebsd_Gcc4_Breakage |
| 4010 | */ |
| 4011 | static const char* apzFreebsd_Gcc4_BreakagePatch[] = { |
| 4012 | "format" , |
| 4013 | "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3" , |
| 4014 | (char*)NULL }; |
| 4015 | |
| 4016 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4017 | * |
| 4018 | * Description of Glibc_C99_Inline_1 fix |
| 4019 | */ |
| 4020 | tSCC zGlibc_C99_Inline_1Name[] = |
| 4021 | "glibc_c99_inline_1" ; |
| 4022 | |
| 4023 | /* |
| 4024 | * File name selection pattern |
| 4025 | */ |
| 4026 | tSCC zGlibc_C99_Inline_1List[] = |
| 4027 | "features.h\0*/features.h\0" ; |
| 4028 | /* |
| 4029 | * Machine/OS name selection pattern |
| 4030 | */ |
| 4031 | #define apzGlibc_C99_Inline_1Machs (const char**)NULL |
| 4032 | |
| 4033 | /* |
| 4034 | * content selection pattern - do fix if pattern found |
| 4035 | */ |
| 4036 | tSCC zGlibc_C99_Inline_1Select0[] = |
| 4037 | "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$" ; |
| 4038 | |
| 4039 | #define GLIBC_C99_INLINE_1_TEST_CT 1 |
| 4040 | static tTestDesc aGlibc_C99_Inline_1Tests[] = { |
| 4041 | { .type: TT_EGREP, .pz_test_text: zGlibc_C99_Inline_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4042 | |
| 4043 | /* |
| 4044 | * Fix Command Arguments for Glibc_C99_Inline_1 |
| 4045 | */ |
| 4046 | static const char* apzGlibc_C99_Inline_1Patch[] = { |
| 4047 | "format" , |
| 4048 | "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)" , |
| 4049 | (char*)NULL }; |
| 4050 | |
| 4051 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4052 | * |
| 4053 | * Description of Glibc_C99_Inline_1a fix |
| 4054 | */ |
| 4055 | tSCC zGlibc_C99_Inline_1aName[] = |
| 4056 | "glibc_c99_inline_1a" ; |
| 4057 | |
| 4058 | /* |
| 4059 | * File name selection pattern |
| 4060 | */ |
| 4061 | tSCC zGlibc_C99_Inline_1aList[] = |
| 4062 | "features.h\0*/features.h\0" ; |
| 4063 | /* |
| 4064 | * Machine/OS name selection pattern |
| 4065 | */ |
| 4066 | #define apzGlibc_C99_Inline_1aMachs (const char**)NULL |
| 4067 | |
| 4068 | /* |
| 4069 | * content selection pattern - do fix if pattern found |
| 4070 | */ |
| 4071 | tSCC zGlibc_C99_Inline_1aSelect0[] = |
| 4072 | "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\ |
| 4073 | (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)" ; |
| 4074 | |
| 4075 | #define GLIBC_C99_INLINE_1A_TEST_CT 1 |
| 4076 | static tTestDesc aGlibc_C99_Inline_1aTests[] = { |
| 4077 | { .type: TT_EGREP, .pz_test_text: zGlibc_C99_Inline_1aSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4078 | |
| 4079 | /* |
| 4080 | * Fix Command Arguments for Glibc_C99_Inline_1a |
| 4081 | */ |
| 4082 | static const char* apzGlibc_C99_Inline_1aPatch[] = { |
| 4083 | "format" , |
| 4084 | "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\ |
| 4085 | %2" , |
| 4086 | (char*)NULL }; |
| 4087 | |
| 4088 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4089 | * |
| 4090 | * Description of Glibc_C99_Inline_2 fix |
| 4091 | */ |
| 4092 | tSCC zGlibc_C99_Inline_2Name[] = |
| 4093 | "glibc_c99_inline_2" ; |
| 4094 | |
| 4095 | /* |
| 4096 | * File name selection pattern |
| 4097 | */ |
| 4098 | tSCC zGlibc_C99_Inline_2List[] = |
| 4099 | "sys/stat.h\0*/sys/stat.h\0" ; |
| 4100 | /* |
| 4101 | * Machine/OS name selection pattern |
| 4102 | */ |
| 4103 | #define apzGlibc_C99_Inline_2Machs (const char**)NULL |
| 4104 | |
| 4105 | /* |
| 4106 | * content selection pattern - do fix if pattern found |
| 4107 | */ |
| 4108 | tSCC zGlibc_C99_Inline_2Select0[] = |
| 4109 | "extern __inline__ int" ; |
| 4110 | |
| 4111 | #define GLIBC_C99_INLINE_2_TEST_CT 1 |
| 4112 | static tTestDesc aGlibc_C99_Inline_2Tests[] = { |
| 4113 | { .type: TT_EGREP, .pz_test_text: zGlibc_C99_Inline_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4114 | |
| 4115 | /* |
| 4116 | * Fix Command Arguments for Glibc_C99_Inline_2 |
| 4117 | */ |
| 4118 | static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z, |
| 4119 | "-e" , "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
| 4120 | extern\\\n\ |
| 4121 | #endif\\\n\ |
| 4122 | __inline__ int \\1/" , |
| 4123 | "-e" , "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
| 4124 | extern\\\n\ |
| 4125 | #endif\\\n\ |
| 4126 | __inline__ int \\1/" , |
| 4127 | "-e" , "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
| 4128 | extern\\\n\ |
| 4129 | #endif\\\n\ |
| 4130 | __inline__ int \\1/" , |
| 4131 | "-e" , "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
| 4132 | extern\\\n\ |
| 4133 | #endif\\\n\ |
| 4134 | __inline__ int __REDIRECT\\1 (\\2/" , |
| 4135 | "-e" , "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ |
| 4136 | extern\\\n\ |
| 4137 | #endif\\\n\ |
| 4138 | __inline__ int __REDIRECT\\1 (\\2/" , |
| 4139 | "-e" , "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\ |
| 4140 | extern\\\n\ |
| 4141 | #endif\\\n\ |
| 4142 | __inline__ int/" , |
| 4143 | (char*)NULL }; |
| 4144 | |
| 4145 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4146 | * |
| 4147 | * Description of Glibc_C99_Inline_3 fix |
| 4148 | */ |
| 4149 | tSCC zGlibc_C99_Inline_3Name[] = |
| 4150 | "glibc_c99_inline_3" ; |
| 4151 | |
| 4152 | /* |
| 4153 | * File name selection pattern |
| 4154 | */ |
| 4155 | tSCC zGlibc_C99_Inline_3List[] = |
| 4156 | "bits/string2.h\0*/bits/string2.h\0" ; |
| 4157 | /* |
| 4158 | * Machine/OS name selection pattern |
| 4159 | */ |
| 4160 | #define apzGlibc_C99_Inline_3Machs (const char**)NULL |
| 4161 | |
| 4162 | /* |
| 4163 | * content selection pattern - do fix if pattern found |
| 4164 | */ |
| 4165 | tSCC zGlibc_C99_Inline_3Select0[] = |
| 4166 | "extern __inline" ; |
| 4167 | |
| 4168 | /* |
| 4169 | * content bypass pattern - skip fix if pattern found |
| 4170 | */ |
| 4171 | tSCC zGlibc_C99_Inline_3Bypass0[] = |
| 4172 | "__extern_inline|__GNU_STDC_INLINE__" ; |
| 4173 | |
| 4174 | #define GLIBC_C99_INLINE_3_TEST_CT 2 |
| 4175 | static tTestDesc aGlibc_C99_Inline_3Tests[] = { |
| 4176 | { .type: TT_NEGREP, .pz_test_text: zGlibc_C99_Inline_3Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 4177 | { .type: TT_EGREP, .pz_test_text: zGlibc_C99_Inline_3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4178 | |
| 4179 | /* |
| 4180 | * Fix Command Arguments for Glibc_C99_Inline_3 |
| 4181 | */ |
| 4182 | static const char* apzGlibc_C99_Inline_3Patch[] = { |
| 4183 | "format" , |
| 4184 | "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)" , |
| 4185 | "^# ifdef __cplusplus$" , |
| 4186 | (char*)NULL }; |
| 4187 | |
| 4188 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4189 | * |
| 4190 | * Description of Glibc_C99_Inline_4 fix |
| 4191 | */ |
| 4192 | tSCC zGlibc_C99_Inline_4Name[] = |
| 4193 | "glibc_c99_inline_4" ; |
| 4194 | |
| 4195 | /* |
| 4196 | * File name selection pattern |
| 4197 | */ |
| 4198 | tSCC zGlibc_C99_Inline_4List[] = |
| 4199 | "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0" ; |
| 4200 | /* |
| 4201 | * Machine/OS name selection pattern |
| 4202 | */ |
| 4203 | #define apzGlibc_C99_Inline_4Machs (const char**)NULL |
| 4204 | |
| 4205 | /* |
| 4206 | * content selection pattern - do fix if pattern found |
| 4207 | */ |
| 4208 | tSCC zGlibc_C99_Inline_4Select0[] = |
| 4209 | "(^| )extern __inline" ; |
| 4210 | |
| 4211 | /* |
| 4212 | * content bypass pattern - skip fix if pattern found |
| 4213 | */ |
| 4214 | tSCC zGlibc_C99_Inline_4Bypass0[] = |
| 4215 | "__extern_inline|__gnu_inline__" ; |
| 4216 | |
| 4217 | #define GLIBC_C99_INLINE_4_TEST_CT 2 |
| 4218 | static tTestDesc aGlibc_C99_Inline_4Tests[] = { |
| 4219 | { .type: TT_NEGREP, .pz_test_text: zGlibc_C99_Inline_4Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 4220 | { .type: TT_EGREP, .pz_test_text: zGlibc_C99_Inline_4Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4221 | |
| 4222 | /* |
| 4223 | * Fix Command Arguments for Glibc_C99_Inline_4 |
| 4224 | */ |
| 4225 | static const char* apzGlibc_C99_Inline_4Patch[] = { |
| 4226 | "format" , |
| 4227 | "%0 __attribute__ ((__gnu_inline__))" , |
| 4228 | (char*)NULL }; |
| 4229 | |
| 4230 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4231 | * |
| 4232 | * Description of Glibc_Cxx_Floatn_1 fix |
| 4233 | */ |
| 4234 | tSCC zGlibc_Cxx_Floatn_1Name[] = |
| 4235 | "glibc_cxx_floatn_1" ; |
| 4236 | |
| 4237 | /* |
| 4238 | * File name selection pattern |
| 4239 | */ |
| 4240 | tSCC zGlibc_Cxx_Floatn_1List[] = |
| 4241 | "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0" ; |
| 4242 | /* |
| 4243 | * Machine/OS name selection pattern |
| 4244 | */ |
| 4245 | #define apzGlibc_Cxx_Floatn_1Machs (const char**)NULL |
| 4246 | |
| 4247 | /* |
| 4248 | * content selection pattern - do fix if pattern found |
| 4249 | */ |
| 4250 | tSCC zGlibc_Cxx_Floatn_1Select0[] = |
| 4251 | "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\ |
| 4252 | (([ \t]*/\\*[^\n\ |
| 4253 | ]*\\*/\n\ |
| 4254 | )?([ \t]*#[ \t]*if[^\n\ |
| 4255 | ]*\n\ |
| 4256 | )?[ \t]*#[ \t]*define __f(16|32|64|128)x?\\()" ; |
| 4257 | |
| 4258 | #define GLIBC_CXX_FLOATN_1_TEST_CT 1 |
| 4259 | static tTestDesc aGlibc_Cxx_Floatn_1Tests[] = { |
| 4260 | { .type: TT_EGREP, .pz_test_text: zGlibc_Cxx_Floatn_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4261 | |
| 4262 | /* |
| 4263 | * Fix Command Arguments for Glibc_Cxx_Floatn_1 |
| 4264 | */ |
| 4265 | static const char* apzGlibc_Cxx_Floatn_1Patch[] = { |
| 4266 | "format" , |
| 4267 | "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\ |
| 4268 | %2" , |
| 4269 | (char*)NULL }; |
| 4270 | |
| 4271 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4272 | * |
| 4273 | * Description of Glibc_Cxx_Floatn_2 fix |
| 4274 | */ |
| 4275 | tSCC zGlibc_Cxx_Floatn_2Name[] = |
| 4276 | "glibc_cxx_floatn_2" ; |
| 4277 | |
| 4278 | /* |
| 4279 | * File name selection pattern |
| 4280 | */ |
| 4281 | tSCC zGlibc_Cxx_Floatn_2List[] = |
| 4282 | "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0" ; |
| 4283 | /* |
| 4284 | * Machine/OS name selection pattern |
| 4285 | */ |
| 4286 | #define apzGlibc_Cxx_Floatn_2Machs (const char**)NULL |
| 4287 | |
| 4288 | /* |
| 4289 | * content selection pattern - do fix if pattern found |
| 4290 | */ |
| 4291 | tSCC zGlibc_Cxx_Floatn_2Select0[] = |
| 4292 | "^([ \t]*#[ \t]*(el)?if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\ |
| 4293 | (([ \t]*/\\*[^\n\ |
| 4294 | ]*\\*/\n\ |
| 4295 | )?[ \t]*typedef[ \t]+[^\n\ |
| 4296 | ]*[ \t]+_Float(16|32|64|128)x?([ \t]+__attribute__ \\(\\(__mode__ \\(__HF__\\)\\)\\))?;)" ; |
| 4297 | |
| 4298 | #define GLIBC_CXX_FLOATN_2_TEST_CT 1 |
| 4299 | static tTestDesc aGlibc_Cxx_Floatn_2Tests[] = { |
| 4300 | { .type: TT_EGREP, .pz_test_text: zGlibc_Cxx_Floatn_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4301 | |
| 4302 | /* |
| 4303 | * Fix Command Arguments for Glibc_Cxx_Floatn_2 |
| 4304 | */ |
| 4305 | static const char* apzGlibc_Cxx_Floatn_2Patch[] = { |
| 4306 | "format" , |
| 4307 | "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\ |
| 4308 | %3" , |
| 4309 | (char*)NULL }; |
| 4310 | |
| 4311 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4312 | * |
| 4313 | * Description of Glibc_Cxx_Floatn_3 fix |
| 4314 | */ |
| 4315 | tSCC zGlibc_Cxx_Floatn_3Name[] = |
| 4316 | "glibc_cxx_floatn_3" ; |
| 4317 | |
| 4318 | /* |
| 4319 | * File name selection pattern |
| 4320 | */ |
| 4321 | tSCC zGlibc_Cxx_Floatn_3List[] = |
| 4322 | "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0" ; |
| 4323 | /* |
| 4324 | * Machine/OS name selection pattern |
| 4325 | */ |
| 4326 | #define apzGlibc_Cxx_Floatn_3Machs (const char**)NULL |
| 4327 | |
| 4328 | /* |
| 4329 | * content selection pattern - do fix if pattern found |
| 4330 | */ |
| 4331 | tSCC zGlibc_Cxx_Floatn_3Select0[] = |
| 4332 | "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\ |
| 4333 | (([ \t]*/\\*[^\n\ |
| 4334 | ]*\n\ |
| 4335 | ?[^\n\ |
| 4336 | ]*\\*/\n\ |
| 4337 | )?([ \t]*#[ \t]*if[^\n\ |
| 4338 | ]*\n\ |
| 4339 | )?([ \t]*typedef[ \t]+[^\n\ |
| 4340 | ]*;\n\ |
| 4341 | )?[ \t]*#[ \t]*define __CFLOAT(16|32|64|128)X?[ \t]+)" ; |
| 4342 | |
| 4343 | #define GLIBC_CXX_FLOATN_3_TEST_CT 1 |
| 4344 | static tTestDesc aGlibc_Cxx_Floatn_3Tests[] = { |
| 4345 | { .type: TT_EGREP, .pz_test_text: zGlibc_Cxx_Floatn_3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4346 | |
| 4347 | /* |
| 4348 | * Fix Command Arguments for Glibc_Cxx_Floatn_3 |
| 4349 | */ |
| 4350 | static const char* apzGlibc_Cxx_Floatn_3Patch[] = { |
| 4351 | "format" , |
| 4352 | "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\ |
| 4353 | %2" , |
| 4354 | (char*)NULL }; |
| 4355 | |
| 4356 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4357 | * |
| 4358 | * Description of Glibc_Cxx_Floatn_4 fix |
| 4359 | */ |
| 4360 | tSCC zGlibc_Cxx_Floatn_4Name[] = |
| 4361 | "glibc_cxx_floatn_4" ; |
| 4362 | |
| 4363 | /* |
| 4364 | * File name selection pattern |
| 4365 | */ |
| 4366 | tSCC zGlibc_Cxx_Floatn_4List[] = |
| 4367 | "bits/floatn.h\0*/bits/floatn.h\0" ; |
| 4368 | /* |
| 4369 | * Machine/OS name selection pattern |
| 4370 | */ |
| 4371 | #define apzGlibc_Cxx_Floatn_4Machs (const char**)NULL |
| 4372 | |
| 4373 | /* |
| 4374 | * content selection pattern - do fix if pattern found |
| 4375 | */ |
| 4376 | tSCC zGlibc_Cxx_Floatn_4Select0[] = |
| 4377 | "^([ \t]*#[ \t]*if __LDBL_MANT_DIG__ == 113 && )defined __cplusplus\n\ |
| 4378 | (([ \t]*/\\*[^\n\ |
| 4379 | ]*\\*/\n\ |
| 4380 | )?[ \t]*typedef[ \t]+[^\n\ |
| 4381 | ]*[ \t]+_Float128;)" ; |
| 4382 | |
| 4383 | #define GLIBC_CXX_FLOATN_4_TEST_CT 1 |
| 4384 | static tTestDesc aGlibc_Cxx_Floatn_4Tests[] = { |
| 4385 | { .type: TT_EGREP, .pz_test_text: zGlibc_Cxx_Floatn_4Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4386 | |
| 4387 | /* |
| 4388 | * Fix Command Arguments for Glibc_Cxx_Floatn_4 |
| 4389 | */ |
| 4390 | static const char* apzGlibc_Cxx_Floatn_4Patch[] = { |
| 4391 | "format" , |
| 4392 | "%1defined __cplusplus && !__GNUC_PREREQ (13, 0)\n\ |
| 4393 | %2" , |
| 4394 | (char*)NULL }; |
| 4395 | |
| 4396 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4397 | * |
| 4398 | * Description of Glibc_Cxx_Floatn_5 fix |
| 4399 | */ |
| 4400 | tSCC zGlibc_Cxx_Floatn_5Name[] = |
| 4401 | "glibc_cxx_floatn_5" ; |
| 4402 | |
| 4403 | /* |
| 4404 | * File name selection pattern |
| 4405 | */ |
| 4406 | tSCC zGlibc_Cxx_Floatn_5List[] = |
| 4407 | "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0" ; |
| 4408 | /* |
| 4409 | * Machine/OS name selection pattern |
| 4410 | */ |
| 4411 | #define apzGlibc_Cxx_Floatn_5Machs (const char**)NULL |
| 4412 | |
| 4413 | /* |
| 4414 | * content selection pattern - do fix if pattern found |
| 4415 | */ |
| 4416 | tSCC zGlibc_Cxx_Floatn_5Select0[] = |
| 4417 | "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\ |
| 4418 | ([ \t]*#[ \t]+error \"_Float128[xX] supported but no )" ; |
| 4419 | |
| 4420 | #define GLIBC_CXX_FLOATN_5_TEST_CT 1 |
| 4421 | static tTestDesc aGlibc_Cxx_Floatn_5Tests[] = { |
| 4422 | { .type: TT_EGREP, .pz_test_text: zGlibc_Cxx_Floatn_5Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4423 | |
| 4424 | /* |
| 4425 | * Fix Command Arguments for Glibc_Cxx_Floatn_5 |
| 4426 | */ |
| 4427 | static const char* apzGlibc_Cxx_Floatn_5Patch[] = { |
| 4428 | "format" , |
| 4429 | "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\ |
| 4430 | %2" , |
| 4431 | (char*)NULL }; |
| 4432 | |
| 4433 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4434 | * |
| 4435 | * Description of Glibc_Mutex_Init fix |
| 4436 | */ |
| 4437 | tSCC zGlibc_Mutex_InitName[] = |
| 4438 | "glibc_mutex_init" ; |
| 4439 | |
| 4440 | /* |
| 4441 | * File name selection pattern |
| 4442 | */ |
| 4443 | tSCC zGlibc_Mutex_InitList[] = |
| 4444 | "pthread.h\0" ; |
| 4445 | /* |
| 4446 | * Machine/OS name selection pattern |
| 4447 | */ |
| 4448 | #define apzGlibc_Mutex_InitMachs (const char**)NULL |
| 4449 | |
| 4450 | /* |
| 4451 | * content selection pattern - do fix if pattern found |
| 4452 | */ |
| 4453 | tSCC zGlibc_Mutex_InitSelect0[] = |
| 4454 | "\\{ *\\{ *0, *\\} *\\}" ; |
| 4455 | |
| 4456 | #define GLIBC_MUTEX_INIT_TEST_CT 1 |
| 4457 | static tTestDesc aGlibc_Mutex_InitTests[] = { |
| 4458 | { .type: TT_EGREP, .pz_test_text: zGlibc_Mutex_InitSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4459 | |
| 4460 | /* |
| 4461 | * Fix Command Arguments for Glibc_Mutex_Init |
| 4462 | */ |
| 4463 | static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z, |
| 4464 | "-e" , "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\ |
| 4465 | N\n\ |
| 4466 | s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\ |
| 4467 | }" , |
| 4468 | "-e" , "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/" , |
| 4469 | "-e" , "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/" , |
| 4470 | "-e" , "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/" , |
| 4471 | "-e" , "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/" , |
| 4472 | "-e" , "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/" , |
| 4473 | "-e" , "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/" , |
| 4474 | "-e" , "/define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\\n\ |
| 4475 | # \\1\\\n\ |
| 4476 | { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\ |
| 4477 | # else\\\n\ |
| 4478 | # \\1\\\n\ |
| 4479 | { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\ |
| 4480 | # endif/" , |
| 4481 | "-e" , "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/" , |
| 4482 | "-e" , "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/" , |
| 4483 | (char*)NULL }; |
| 4484 | |
| 4485 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4486 | * |
| 4487 | * Description of Glibc_Stdint fix |
| 4488 | */ |
| 4489 | tSCC zGlibc_StdintName[] = |
| 4490 | "glibc_stdint" ; |
| 4491 | |
| 4492 | /* |
| 4493 | * File name selection pattern |
| 4494 | */ |
| 4495 | tSCC zGlibc_StdintList[] = |
| 4496 | "stdint.h\0" ; |
| 4497 | /* |
| 4498 | * Machine/OS name selection pattern |
| 4499 | */ |
| 4500 | #define apzGlibc_StdintMachs (const char**)NULL |
| 4501 | |
| 4502 | /* |
| 4503 | * content selection pattern - do fix if pattern found |
| 4504 | */ |
| 4505 | tSCC zGlibc_StdintSelect0[] = |
| 4506 | "GNU C Library" ; |
| 4507 | |
| 4508 | #define GLIBC_STDINT_TEST_CT 1 |
| 4509 | static tTestDesc aGlibc_StdintTests[] = { |
| 4510 | { .type: TT_EGREP, .pz_test_text: zGlibc_StdintSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4511 | |
| 4512 | /* |
| 4513 | * Fix Command Arguments for Glibc_Stdint |
| 4514 | */ |
| 4515 | static const char* apzGlibc_StdintPatch[] = { |
| 4516 | "format" , |
| 4517 | "# define UINT8_C(c)\tc\n\ |
| 4518 | # define UINT16_C(c)\tc" , |
| 4519 | "# define UINT8_C\\(c\\)\tc ## U\n\ |
| 4520 | # define UINT16_C\\(c\\)\tc ## U" , |
| 4521 | (char*)NULL }; |
| 4522 | |
| 4523 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4524 | * |
| 4525 | * Description of Glibc_Strncpy fix |
| 4526 | */ |
| 4527 | tSCC zGlibc_StrncpyName[] = |
| 4528 | "glibc_strncpy" ; |
| 4529 | |
| 4530 | /* |
| 4531 | * File name selection pattern |
| 4532 | */ |
| 4533 | tSCC zGlibc_StrncpyList[] = |
| 4534 | "bits/string2.h\0*/bits/string2.h\0" ; |
| 4535 | /* |
| 4536 | * Machine/OS name selection pattern |
| 4537 | */ |
| 4538 | #define apzGlibc_StrncpyMachs (const char**)NULL |
| 4539 | |
| 4540 | /* |
| 4541 | * content bypass pattern - skip fix if pattern found |
| 4542 | */ |
| 4543 | tSCC zGlibc_StrncpyBypass0[] = |
| 4544 | "__builtin_strncpy" ; |
| 4545 | |
| 4546 | #define GLIBC_STRNCPY_TEST_CT 1 |
| 4547 | static tTestDesc aGlibc_StrncpyTests[] = { |
| 4548 | { .type: TT_NEGREP, .pz_test_text: zGlibc_StrncpyBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 4549 | |
| 4550 | /* |
| 4551 | * Fix Command Arguments for Glibc_Strncpy |
| 4552 | */ |
| 4553 | static const char* apzGlibc_StrncpyPatch[] = { |
| 4554 | "format" , |
| 4555 | "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)" , |
| 4556 | "# define strncpy([^\n\ |
| 4557 | ]*\\\\\n\ |
| 4558 | )*[^\n\ |
| 4559 | ]*" , |
| 4560 | (char*)NULL }; |
| 4561 | |
| 4562 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4563 | * |
| 4564 | * Description of Glibc_Tgmath fix |
| 4565 | */ |
| 4566 | tSCC zGlibc_TgmathName[] = |
| 4567 | "glibc_tgmath" ; |
| 4568 | |
| 4569 | /* |
| 4570 | * File name selection pattern |
| 4571 | */ |
| 4572 | tSCC zGlibc_TgmathList[] = |
| 4573 | "tgmath.h\0" ; |
| 4574 | /* |
| 4575 | * Machine/OS name selection pattern |
| 4576 | */ |
| 4577 | #define apzGlibc_TgmathMachs (const char**)NULL |
| 4578 | |
| 4579 | /* |
| 4580 | * content selection pattern - do fix if pattern found |
| 4581 | */ |
| 4582 | tSCC zGlibc_TgmathSelect0[] = |
| 4583 | "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)" ; |
| 4584 | |
| 4585 | /* |
| 4586 | * content bypass pattern - skip fix if pattern found |
| 4587 | */ |
| 4588 | tSCC zGlibc_TgmathBypass0[] = |
| 4589 | "__floating_type\\(type\\) \\\\\n\ |
| 4590 | .*__builtin_classify_type" ; |
| 4591 | |
| 4592 | #define GLIBC_TGMATH_TEST_CT 2 |
| 4593 | static tTestDesc aGlibc_TgmathTests[] = { |
| 4594 | { .type: TT_NEGREP, .pz_test_text: zGlibc_TgmathBypass0, .p_test_regex: (regex_t*)NULL }, |
| 4595 | { .type: TT_EGREP, .pz_test_text: zGlibc_TgmathSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4596 | |
| 4597 | /* |
| 4598 | * Fix Command Arguments for Glibc_Tgmath |
| 4599 | */ |
| 4600 | static const char* apzGlibc_TgmathPatch[] = { |
| 4601 | "format" , |
| 4602 | "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))" , |
| 4603 | (char*)NULL }; |
| 4604 | |
| 4605 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4606 | * |
| 4607 | * Description of Gnu_Types fix |
| 4608 | */ |
| 4609 | tSCC zGnu_TypesName[] = |
| 4610 | "gnu_types" ; |
| 4611 | |
| 4612 | /* |
| 4613 | * File name selection pattern |
| 4614 | */ |
| 4615 | tSCC zGnu_TypesList[] = |
| 4616 | "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0" ; |
| 4617 | /* |
| 4618 | * Machine/OS name selection pattern |
| 4619 | */ |
| 4620 | tSCC* apzGnu_TypesMachs[] = { |
| 4621 | "*-*-solaris2.1[0-9]*" , |
| 4622 | (const char*)NULL }; |
| 4623 | |
| 4624 | /* |
| 4625 | * content selection pattern - do fix if pattern found |
| 4626 | */ |
| 4627 | tSCC zGnu_TypesSelect0[] = |
| 4628 | "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;" ; |
| 4629 | |
| 4630 | /* |
| 4631 | * content bypass pattern - skip fix if pattern found |
| 4632 | */ |
| 4633 | tSCC zGnu_TypesBypass0[] = |
| 4634 | "_GCC_(PTRDIFF|SIZE|WCHAR)_T" ; |
| 4635 | |
| 4636 | #define GNU_TYPES_TEST_CT 2 |
| 4637 | static tTestDesc aGnu_TypesTests[] = { |
| 4638 | { .type: TT_NEGREP, .pz_test_text: zGnu_TypesBypass0, .p_test_regex: (regex_t*)NULL }, |
| 4639 | { .type: TT_EGREP, .pz_test_text: zGnu_TypesSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4640 | |
| 4641 | /* |
| 4642 | * Fix Command Arguments for Gnu_Types |
| 4643 | */ |
| 4644 | static const char* apzGnu_TypesPatch[] = { |
| 4645 | "gnu_type" , |
| 4646 | (char*)NULL }; |
| 4647 | |
| 4648 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4649 | * |
| 4650 | * Description of Hp_Inline fix |
| 4651 | */ |
| 4652 | tSCC zHp_InlineName[] = |
| 4653 | "hp_inline" ; |
| 4654 | |
| 4655 | /* |
| 4656 | * File name selection pattern |
| 4657 | */ |
| 4658 | tSCC zHp_InlineList[] = |
| 4659 | "sys/spinlock.h\0machine/machparam.h\0" ; |
| 4660 | /* |
| 4661 | * Machine/OS name selection pattern |
| 4662 | */ |
| 4663 | #define apzHp_InlineMachs (const char**)NULL |
| 4664 | |
| 4665 | /* |
| 4666 | * content selection pattern - do fix if pattern found |
| 4667 | */ |
| 4668 | tSCC zHp_InlineSelect0[] = |
| 4669 | "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/" ; |
| 4670 | |
| 4671 | #define HP_INLINE_TEST_CT 1 |
| 4672 | static tTestDesc aHp_InlineTests[] = { |
| 4673 | { .type: TT_EGREP, .pz_test_text: zHp_InlineSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4674 | |
| 4675 | /* |
| 4676 | * Fix Command Arguments for Hp_Inline |
| 4677 | */ |
| 4678 | static const char* apzHp_InlinePatch[] = { |
| 4679 | "format" , |
| 4680 | "%1<machine/%2.h>" , |
| 4681 | "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"" , |
| 4682 | (char*)NULL }; |
| 4683 | |
| 4684 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4685 | * |
| 4686 | * Description of Hp_Sysfile fix |
| 4687 | */ |
| 4688 | tSCC zHp_SysfileName[] = |
| 4689 | "hp_sysfile" ; |
| 4690 | |
| 4691 | /* |
| 4692 | * File name selection pattern |
| 4693 | */ |
| 4694 | tSCC zHp_SysfileList[] = |
| 4695 | "sys/file.h\0" ; |
| 4696 | /* |
| 4697 | * Machine/OS name selection pattern |
| 4698 | */ |
| 4699 | #define apzHp_SysfileMachs (const char**)NULL |
| 4700 | |
| 4701 | /* |
| 4702 | * content selection pattern - do fix if pattern found |
| 4703 | */ |
| 4704 | tSCC zHp_SysfileSelect0[] = |
| 4705 | "HPUX_SOURCE" ; |
| 4706 | |
| 4707 | #define HP_SYSFILE_TEST_CT 1 |
| 4708 | static tTestDesc aHp_SysfileTests[] = { |
| 4709 | { .type: TT_EGREP, .pz_test_text: zHp_SysfileSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4710 | |
| 4711 | /* |
| 4712 | * Fix Command Arguments for Hp_Sysfile |
| 4713 | */ |
| 4714 | static const char* apzHp_SysfilePatch[] = { |
| 4715 | "format" , |
| 4716 | "(struct file *, ...)" , |
| 4717 | "\\(\\.\\.\\.\\)" , |
| 4718 | (char*)NULL }; |
| 4719 | |
| 4720 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4721 | * |
| 4722 | * Description of Hppa_Hpux_Fp_Macros fix |
| 4723 | */ |
| 4724 | tSCC zHppa_Hpux_Fp_MacrosName[] = |
| 4725 | "hppa_hpux_fp_macros" ; |
| 4726 | |
| 4727 | /* |
| 4728 | * File name selection pattern |
| 4729 | */ |
| 4730 | tSCC zHppa_Hpux_Fp_MacrosList[] = |
| 4731 | "math.h\0" ; |
| 4732 | /* |
| 4733 | * Machine/OS name selection pattern |
| 4734 | */ |
| 4735 | tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = { |
| 4736 | "hppa*-hp-hpux11*" , |
| 4737 | (const char*)NULL }; |
| 4738 | |
| 4739 | /* |
| 4740 | * content selection pattern - do fix if pattern found |
| 4741 | */ |
| 4742 | tSCC zHppa_Hpux_Fp_MacrosSelect0[] = |
| 4743 | "#[ \t]*define[ \t]*FP_NORMAL.*\n\ |
| 4744 | #[ \t]*define[ \t]*FP_ZERO.*\n\ |
| 4745 | #[ \t]*define[ \t]*FP_INFINITE.*\n\ |
| 4746 | #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\ |
| 4747 | #[ \t]*define[ \t]*FP_NAN.*\n" ; |
| 4748 | |
| 4749 | #define HPPA_HPUX_FP_MACROS_TEST_CT 1 |
| 4750 | static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = { |
| 4751 | { .type: TT_EGREP, .pz_test_text: zHppa_Hpux_Fp_MacrosSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4752 | |
| 4753 | /* |
| 4754 | * Fix Command Arguments for Hppa_Hpux_Fp_Macros |
| 4755 | */ |
| 4756 | static const char* apzHppa_Hpux_Fp_MacrosPatch[] = { |
| 4757 | "format" , |
| 4758 | "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\ |
| 4759 | #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\ |
| 4760 | (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\ |
| 4761 | %0#endif\n\n\ |
| 4762 | #ifdef _INCLUDE_HPUX_SOURCE\n" , |
| 4763 | (char*)NULL }; |
| 4764 | |
| 4765 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4766 | * |
| 4767 | * Description of Hpux10_Cpp_Pow_Inline fix |
| 4768 | */ |
| 4769 | tSCC zHpux10_Cpp_Pow_InlineName[] = |
| 4770 | "hpux10_cpp_pow_inline" ; |
| 4771 | |
| 4772 | /* |
| 4773 | * File name selection pattern |
| 4774 | */ |
| 4775 | tSCC zHpux10_Cpp_Pow_InlineList[] = |
| 4776 | "fixinc-test-limits.h\0math.h\0" ; |
| 4777 | /* |
| 4778 | * Machine/OS name selection pattern |
| 4779 | */ |
| 4780 | #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL |
| 4781 | |
| 4782 | /* |
| 4783 | * content selection pattern - do fix if pattern found |
| 4784 | */ |
| 4785 | tSCC zHpux10_Cpp_Pow_InlineSelect0[] = |
| 4786 | "^# +ifdef +__cplusplus\n\ |
| 4787 | +\\}\n\ |
| 4788 | +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\ |
| 4789 | [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\ |
| 4790 | +\\}\n\ |
| 4791 | +extern +\"C\" +\\{\n\ |
| 4792 | #else\n\ |
| 4793 | # +endif" ; |
| 4794 | |
| 4795 | #define HPUX10_CPP_POW_INLINE_TEST_CT 1 |
| 4796 | static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = { |
| 4797 | { .type: TT_EGREP, .pz_test_text: zHpux10_Cpp_Pow_InlineSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4798 | |
| 4799 | /* |
| 4800 | * Fix Command Arguments for Hpux10_Cpp_Pow_Inline |
| 4801 | */ |
| 4802 | static const char* apzHpux10_Cpp_Pow_InlinePatch[] = { |
| 4803 | "format" , |
| 4804 | "" , |
| 4805 | (char*)NULL }; |
| 4806 | |
| 4807 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4808 | * |
| 4809 | * Description of Hpux11_Cpp_Pow_Inline fix |
| 4810 | */ |
| 4811 | tSCC zHpux11_Cpp_Pow_InlineName[] = |
| 4812 | "hpux11_cpp_pow_inline" ; |
| 4813 | |
| 4814 | /* |
| 4815 | * File name selection pattern |
| 4816 | */ |
| 4817 | tSCC zHpux11_Cpp_Pow_InlineList[] = |
| 4818 | "math.h\0" ; |
| 4819 | /* |
| 4820 | * Machine/OS name selection pattern |
| 4821 | */ |
| 4822 | #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL |
| 4823 | |
| 4824 | /* |
| 4825 | * content selection pattern - do fix if pattern found |
| 4826 | */ |
| 4827 | tSCC zHpux11_Cpp_Pow_InlineSelect0[] = |
| 4828 | " +inline double pow\\(double d,int expon\\) \\{\n\ |
| 4829 | +return pow\\(d, \\(double\\)expon\\);\n\ |
| 4830 | +\\}\n" ; |
| 4831 | |
| 4832 | #define HPUX11_CPP_POW_INLINE_TEST_CT 1 |
| 4833 | static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = { |
| 4834 | { .type: TT_EGREP, .pz_test_text: zHpux11_Cpp_Pow_InlineSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 4835 | |
| 4836 | /* |
| 4837 | * Fix Command Arguments for Hpux11_Cpp_Pow_Inline |
| 4838 | */ |
| 4839 | static const char* apzHpux11_Cpp_Pow_InlinePatch[] = { |
| 4840 | "format" , |
| 4841 | "" , |
| 4842 | (char*)NULL }; |
| 4843 | |
| 4844 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4845 | * |
| 4846 | * Description of Hpux_Math_Constexpr fix |
| 4847 | */ |
| 4848 | tSCC zHpux_Math_ConstexprName[] = |
| 4849 | "hpux_math_constexpr" ; |
| 4850 | |
| 4851 | /* |
| 4852 | * File name selection pattern |
| 4853 | */ |
| 4854 | tSCC zHpux_Math_ConstexprList[] = |
| 4855 | "math.h\0" ; |
| 4856 | /* |
| 4857 | * Machine/OS name selection pattern |
| 4858 | */ |
| 4859 | tSCC* apzHpux_Math_ConstexprMachs[] = { |
| 4860 | "*-hp-hpux11*" , |
| 4861 | (const char*)NULL }; |
| 4862 | #define HPUX_MATH_CONSTEXPR_TEST_CT 0 |
| 4863 | #define aHpux_Math_ConstexprTests (tTestDesc*)NULL |
| 4864 | |
| 4865 | /* |
| 4866 | * Fix Command Arguments for Hpux_Math_Constexpr |
| 4867 | */ |
| 4868 | static const char* apzHpux_Math_ConstexprPatch[] = { sed_cmd_z, |
| 4869 | "-e" , "s@^[ \t]*extern[ \t]*const[ \t]*double[ \t]*_DINFINITY;[ \t]*$@# define _DINFINITY (__builtin_inf ())@" , |
| 4870 | "-e" , "s@^[ \t]*extern[ \t]*const[ \t]*float[ \t]*_SINFINITY;[ \t]*$@# define _SINFINITY (__builtin_inff ())@" , |
| 4871 | "-e" , "s@^[ \t]*extern[ \t]*const[ \t]*float[ \t]*_SQNAN;[ \t]*$@# define _SQNAN (__builtin_nanf (\\\"\\\"))@" , |
| 4872 | (char*)NULL }; |
| 4873 | |
| 4874 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4875 | * |
| 4876 | * Description of Hpux10_Ctype_Declarations1 fix |
| 4877 | */ |
| 4878 | tSCC zHpux10_Ctype_Declarations1Name[] = |
| 4879 | "hpux10_ctype_declarations1" ; |
| 4880 | |
| 4881 | /* |
| 4882 | * File name selection pattern |
| 4883 | */ |
| 4884 | tSCC zHpux10_Ctype_Declarations1List[] = |
| 4885 | "ctype.h\0" ; |
| 4886 | /* |
| 4887 | * Machine/OS name selection pattern |
| 4888 | */ |
| 4889 | #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL |
| 4890 | |
| 4891 | /* |
| 4892 | * content selection pattern - do fix if pattern found |
| 4893 | */ |
| 4894 | tSCC zHpux10_Ctype_Declarations1Select0[] = |
| 4895 | "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)" ; |
| 4896 | |
| 4897 | /* |
| 4898 | * content bypass pattern - skip fix if pattern found |
| 4899 | */ |
| 4900 | tSCC zHpux10_Ctype_Declarations1Bypass0[] = |
| 4901 | "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(" ; |
| 4902 | |
| 4903 | #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2 |
| 4904 | static tTestDesc aHpux10_Ctype_Declarations1Tests[] = { |
| 4905 | { .type: TT_NEGREP, .pz_test_text: zHpux10_Ctype_Declarations1Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 4906 | { .type: TT_EGREP, .pz_test_text: zHpux10_Ctype_Declarations1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4907 | |
| 4908 | /* |
| 4909 | * Fix Command Arguments for Hpux10_Ctype_Declarations1 |
| 4910 | */ |
| 4911 | static const char* apzHpux10_Ctype_Declarations1Patch[] = { |
| 4912 | "format" , |
| 4913 | "#ifdef _PROTOTYPES\n\ |
| 4914 | extern int __tolower(int);\n\ |
| 4915 | extern int __toupper(int);\n\ |
| 4916 | #else /* NOT _PROTOTYPES */\n\ |
| 4917 | extern int __tolower();\n\ |
| 4918 | extern int __toupper();\n\ |
| 4919 | #endif /* _PROTOTYPES */\n\n\ |
| 4920 | %0\n" , |
| 4921 | (char*)NULL }; |
| 4922 | |
| 4923 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4924 | * |
| 4925 | * Description of Hpux10_Ctype_Declarations2 fix |
| 4926 | */ |
| 4927 | tSCC zHpux10_Ctype_Declarations2Name[] = |
| 4928 | "hpux10_ctype_declarations2" ; |
| 4929 | |
| 4930 | /* |
| 4931 | * File name selection pattern |
| 4932 | */ |
| 4933 | tSCC zHpux10_Ctype_Declarations2List[] = |
| 4934 | "ctype.h\0" ; |
| 4935 | /* |
| 4936 | * Machine/OS name selection pattern |
| 4937 | */ |
| 4938 | #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL |
| 4939 | |
| 4940 | /* |
| 4941 | * content selection pattern - do fix if pattern found |
| 4942 | */ |
| 4943 | tSCC zHpux10_Ctype_Declarations2Select0[] = |
| 4944 | "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)" ; |
| 4945 | |
| 4946 | /* |
| 4947 | * content bypass pattern - skip fix if pattern found |
| 4948 | */ |
| 4949 | tSCC zHpux10_Ctype_Declarations2Bypass0[] = |
| 4950 | "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(" ; |
| 4951 | |
| 4952 | #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2 |
| 4953 | static tTestDesc aHpux10_Ctype_Declarations2Tests[] = { |
| 4954 | { .type: TT_NEGREP, .pz_test_text: zHpux10_Ctype_Declarations2Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 4955 | { .type: TT_EGREP, .pz_test_text: zHpux10_Ctype_Declarations2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 4956 | |
| 4957 | /* |
| 4958 | * Fix Command Arguments for Hpux10_Ctype_Declarations2 |
| 4959 | */ |
| 4960 | static const char* apzHpux10_Ctype_Declarations2Patch[] = { |
| 4961 | "format" , |
| 4962 | "%0\n\n\ |
| 4963 | #ifdef _PROTOTYPES\n\ |
| 4964 | extern int _isalnum(int);\n\ |
| 4965 | extern int _isalpha(int);\n\ |
| 4966 | extern int _iscntrl(int);\n\ |
| 4967 | extern int _isdigit(int);\n\ |
| 4968 | extern int _isgraph(int);\n\ |
| 4969 | extern int _islower(int);\n\ |
| 4970 | extern int _isprint(int);\n\ |
| 4971 | extern int _ispunct(int);\n\ |
| 4972 | extern int _isspace(int);\n\ |
| 4973 | extern int _isupper(int);\n\ |
| 4974 | extern int _isxdigit(int);\n\ |
| 4975 | # else /* not _PROTOTYPES */\n\ |
| 4976 | extern int _isalnum();\n\ |
| 4977 | extern int _isalpha();\n\ |
| 4978 | extern int _iscntrl();\n\ |
| 4979 | extern int _isdigit();\n\ |
| 4980 | extern int _isgraph();\n\ |
| 4981 | extern int _islower();\n\ |
| 4982 | extern int _isprint();\n\ |
| 4983 | extern int _ispunct();\n\ |
| 4984 | extern int _isspace();\n\ |
| 4985 | extern int _isupper();\n\ |
| 4986 | extern int _isxdigit();\n\ |
| 4987 | #endif /* _PROTOTYPES */\n" , |
| 4988 | (char*)NULL }; |
| 4989 | |
| 4990 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 4991 | * |
| 4992 | * Description of Hpux10_Stdio_Declarations fix |
| 4993 | */ |
| 4994 | tSCC zHpux10_Stdio_DeclarationsName[] = |
| 4995 | "hpux10_stdio_declarations" ; |
| 4996 | |
| 4997 | /* |
| 4998 | * File name selection pattern |
| 4999 | */ |
| 5000 | tSCC zHpux10_Stdio_DeclarationsList[] = |
| 5001 | "stdio.h\0" ; |
| 5002 | /* |
| 5003 | * Machine/OS name selection pattern |
| 5004 | */ |
| 5005 | #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL |
| 5006 | |
| 5007 | /* |
| 5008 | * content selection pattern - do fix if pattern found |
| 5009 | */ |
| 5010 | tSCC zHpux10_Stdio_DeclarationsSelect0[] = |
| 5011 | "^#[ \t]*define _iob[ \t]*__iob" ; |
| 5012 | |
| 5013 | /* |
| 5014 | * content bypass pattern - skip fix if pattern found |
| 5015 | */ |
| 5016 | tSCC zHpux10_Stdio_DeclarationsBypass0[] = |
| 5017 | "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(" ; |
| 5018 | |
| 5019 | #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2 |
| 5020 | static tTestDesc aHpux10_Stdio_DeclarationsTests[] = { |
| 5021 | { .type: TT_NEGREP, .pz_test_text: zHpux10_Stdio_DeclarationsBypass0, .p_test_regex: (regex_t*)NULL }, |
| 5022 | { .type: TT_EGREP, .pz_test_text: zHpux10_Stdio_DeclarationsSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5023 | |
| 5024 | /* |
| 5025 | * Fix Command Arguments for Hpux10_Stdio_Declarations |
| 5026 | */ |
| 5027 | static const char* apzHpux10_Stdio_DeclarationsPatch[] = { |
| 5028 | "format" , |
| 5029 | "%0\n\n\ |
| 5030 | # if defined(__STDC__) || defined(__cplusplus)\n\ |
| 5031 | extern int snprintf(char *, size_t, const char *, ...);\n\ |
| 5032 | extern int vsnprintf(char *, size_t, const char *, __va_list);\n\ |
| 5033 | # else /* not __STDC__) || __cplusplus */\n\ |
| 5034 | extern int snprintf();\n\ |
| 5035 | extern int vsnprintf();\n\ |
| 5036 | # endif /* __STDC__) || __cplusplus */\n" , |
| 5037 | (char*)NULL }; |
| 5038 | |
| 5039 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5040 | * |
| 5041 | * Description of Hppa_Hpux11_Alloca fix |
| 5042 | */ |
| 5043 | tSCC zHppa_Hpux11_AllocaName[] = |
| 5044 | "hppa_hpux11_alloca" ; |
| 5045 | |
| 5046 | /* |
| 5047 | * File name selection pattern |
| 5048 | */ |
| 5049 | tSCC zHppa_Hpux11_AllocaList[] = |
| 5050 | "alloca.h\0" ; |
| 5051 | /* |
| 5052 | * Machine/OS name selection pattern |
| 5053 | */ |
| 5054 | tSCC* apzHppa_Hpux11_AllocaMachs[] = { |
| 5055 | "hppa*-*-hpux11*" , |
| 5056 | (const char*)NULL }; |
| 5057 | |
| 5058 | /* |
| 5059 | * content selection pattern - do fix if pattern found |
| 5060 | */ |
| 5061 | tSCC zHppa_Hpux11_AllocaSelect0[] = |
| 5062 | "#ifndef _STDDEF_INCLUDED" ; |
| 5063 | |
| 5064 | #define HPPA_HPUX11_ALLOCA_TEST_CT 1 |
| 5065 | static tTestDesc aHppa_Hpux11_AllocaTests[] = { |
| 5066 | { .type: TT_EGREP, .pz_test_text: zHppa_Hpux11_AllocaSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5067 | |
| 5068 | /* |
| 5069 | * Fix Command Arguments for Hppa_Hpux11_Alloca |
| 5070 | */ |
| 5071 | static const char* apzHppa_Hpux11_AllocaPatch[] = { |
| 5072 | "format" , |
| 5073 | "#ifndef _SYS_STDSYMS_INCLUDED\n\ |
| 5074 | # include <sys/stdsyms.h>\n\ |
| 5075 | #endif /* _SYS_STDSYMS_INCLUDED */\n\n\ |
| 5076 | %0" , |
| 5077 | (char*)NULL }; |
| 5078 | |
| 5079 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5080 | * |
| 5081 | * Description of Hpux11_Abs fix |
| 5082 | */ |
| 5083 | tSCC zHpux11_AbsName[] = |
| 5084 | "hpux11_abs" ; |
| 5085 | |
| 5086 | /* |
| 5087 | * File name selection pattern |
| 5088 | */ |
| 5089 | tSCC zHpux11_AbsList[] = |
| 5090 | "stdlib.h\0" ; |
| 5091 | /* |
| 5092 | * Machine/OS name selection pattern |
| 5093 | */ |
| 5094 | tSCC* apzHpux11_AbsMachs[] = { |
| 5095 | "*-hp-hpux11*" , |
| 5096 | (const char*)NULL }; |
| 5097 | |
| 5098 | /* |
| 5099 | * content selection pattern - do fix if pattern found |
| 5100 | */ |
| 5101 | tSCC zHpux11_AbsSelect0[] = |
| 5102 | "ifndef _MATH_INCLUDED" ; |
| 5103 | |
| 5104 | #define HPUX11_ABS_TEST_CT 1 |
| 5105 | static tTestDesc aHpux11_AbsTests[] = { |
| 5106 | { .type: TT_EGREP, .pz_test_text: zHpux11_AbsSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5107 | |
| 5108 | /* |
| 5109 | * Fix Command Arguments for Hpux11_Abs |
| 5110 | */ |
| 5111 | static const char* apzHpux11_AbsPatch[] = { |
| 5112 | "format" , |
| 5113 | "if !defined(_MATH_INCLUDED) || defined(__GNUG__)" , |
| 5114 | (char*)NULL }; |
| 5115 | |
| 5116 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5117 | * |
| 5118 | * Description of Hpux11_Lwp_Rwlock_Valid fix |
| 5119 | */ |
| 5120 | tSCC zHpux11_Lwp_Rwlock_ValidName[] = |
| 5121 | "hpux11_lwp_rwlock_valid" ; |
| 5122 | |
| 5123 | /* |
| 5124 | * File name selection pattern |
| 5125 | */ |
| 5126 | tSCC zHpux11_Lwp_Rwlock_ValidList[] = |
| 5127 | "sys/pthread.h\0" ; |
| 5128 | /* |
| 5129 | * Machine/OS name selection pattern |
| 5130 | */ |
| 5131 | tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = { |
| 5132 | "*-hp-hpux11*" , |
| 5133 | (const char*)NULL }; |
| 5134 | |
| 5135 | /* |
| 5136 | * content selection pattern - do fix if pattern found |
| 5137 | */ |
| 5138 | tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] = |
| 5139 | "#define __LWP_RWLOCK_VALID[ \t]*0x8c91" ; |
| 5140 | |
| 5141 | #define HPUX11_LWP_RWLOCK_VALID_TEST_CT 1 |
| 5142 | static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = { |
| 5143 | { .type: TT_EGREP, .pz_test_text: zHpux11_Lwp_Rwlock_ValidSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5144 | |
| 5145 | /* |
| 5146 | * Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid |
| 5147 | */ |
| 5148 | static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = { |
| 5149 | "format" , |
| 5150 | "#define __LWP_RWLOCK_VALID -29551" , |
| 5151 | (char*)NULL }; |
| 5152 | |
| 5153 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5154 | * |
| 5155 | * Description of Hpux11_Extern_Sendfile fix |
| 5156 | */ |
| 5157 | tSCC zHpux11_Extern_SendfileName[] = |
| 5158 | "hpux11_extern_sendfile" ; |
| 5159 | |
| 5160 | /* |
| 5161 | * File name selection pattern |
| 5162 | */ |
| 5163 | tSCC zHpux11_Extern_SendfileList[] = |
| 5164 | "sys/socket.h\0" ; |
| 5165 | /* |
| 5166 | * Machine/OS name selection pattern |
| 5167 | */ |
| 5168 | tSCC* apzHpux11_Extern_SendfileMachs[] = { |
| 5169 | "*-hp-hpux11.[12]*" , |
| 5170 | (const char*)NULL }; |
| 5171 | |
| 5172 | /* |
| 5173 | * content selection pattern - do fix if pattern found |
| 5174 | */ |
| 5175 | tSCC zHpux11_Extern_SendfileSelect0[] = |
| 5176 | "^[ \t]*extern sbsize_t sendfile.*\n\ |
| 5177 | .*, int\\)\\);\n" ; |
| 5178 | |
| 5179 | #define HPUX11_EXTERN_SENDFILE_TEST_CT 1 |
| 5180 | static tTestDesc aHpux11_Extern_SendfileTests[] = { |
| 5181 | { .type: TT_EGREP, .pz_test_text: zHpux11_Extern_SendfileSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5182 | |
| 5183 | /* |
| 5184 | * Fix Command Arguments for Hpux11_Extern_Sendfile |
| 5185 | */ |
| 5186 | static const char* apzHpux11_Extern_SendfilePatch[] = { |
| 5187 | "format" , |
| 5188 | "#ifndef _APP32_64BIT_OFF_T\n\ |
| 5189 | %0#endif\n" , |
| 5190 | (char*)NULL }; |
| 5191 | |
| 5192 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5193 | * |
| 5194 | * Description of Hpux11_Extern_Sendpath fix |
| 5195 | */ |
| 5196 | tSCC zHpux11_Extern_SendpathName[] = |
| 5197 | "hpux11_extern_sendpath" ; |
| 5198 | |
| 5199 | /* |
| 5200 | * File name selection pattern |
| 5201 | */ |
| 5202 | tSCC zHpux11_Extern_SendpathList[] = |
| 5203 | "sys/socket.h\0" ; |
| 5204 | /* |
| 5205 | * Machine/OS name selection pattern |
| 5206 | */ |
| 5207 | tSCC* apzHpux11_Extern_SendpathMachs[] = { |
| 5208 | "*-hp-hpux11.[12]*" , |
| 5209 | (const char*)NULL }; |
| 5210 | |
| 5211 | /* |
| 5212 | * content selection pattern - do fix if pattern found |
| 5213 | */ |
| 5214 | tSCC zHpux11_Extern_SendpathSelect0[] = |
| 5215 | "^[ \t]*extern sbsize_t sendpath.*\n\ |
| 5216 | .*, int\\)\\);\n" ; |
| 5217 | |
| 5218 | #define HPUX11_EXTERN_SENDPATH_TEST_CT 1 |
| 5219 | static tTestDesc aHpux11_Extern_SendpathTests[] = { |
| 5220 | { .type: TT_EGREP, .pz_test_text: zHpux11_Extern_SendpathSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5221 | |
| 5222 | /* |
| 5223 | * Fix Command Arguments for Hpux11_Extern_Sendpath |
| 5224 | */ |
| 5225 | static const char* apzHpux11_Extern_SendpathPatch[] = { |
| 5226 | "format" , |
| 5227 | "#ifndef _APP32_64BIT_OFF_T\n\ |
| 5228 | %0#endif\n" , |
| 5229 | (char*)NULL }; |
| 5230 | |
| 5231 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5232 | * |
| 5233 | * Description of Hpux11_Fabsf fix |
| 5234 | */ |
| 5235 | tSCC zHpux11_FabsfName[] = |
| 5236 | "hpux11_fabsf" ; |
| 5237 | |
| 5238 | /* |
| 5239 | * File name selection pattern |
| 5240 | */ |
| 5241 | tSCC zHpux11_FabsfList[] = |
| 5242 | "math.h\0" ; |
| 5243 | /* |
| 5244 | * Machine/OS name selection pattern |
| 5245 | */ |
| 5246 | tSCC* apzHpux11_FabsfMachs[] = { |
| 5247 | "*-hp-hpux11*" , |
| 5248 | (const char*)NULL }; |
| 5249 | |
| 5250 | /* |
| 5251 | * content selection pattern - do fix if pattern found |
| 5252 | */ |
| 5253 | tSCC zHpux11_FabsfSelect0[] = |
| 5254 | "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*" ; |
| 5255 | |
| 5256 | #define HPUX11_FABSF_TEST_CT 1 |
| 5257 | static tTestDesc aHpux11_FabsfTests[] = { |
| 5258 | { .type: TT_EGREP, .pz_test_text: zHpux11_FabsfSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5259 | |
| 5260 | /* |
| 5261 | * Fix Command Arguments for Hpux11_Fabsf |
| 5262 | */ |
| 5263 | static const char* apzHpux11_FabsfPatch[] = { |
| 5264 | "format" , |
| 5265 | "#ifndef __cplusplus\n\ |
| 5266 | %0\n\ |
| 5267 | #endif" , |
| 5268 | (char*)NULL }; |
| 5269 | |
| 5270 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5271 | * |
| 5272 | * Description of Hpux11_Pthread_Pointer fix |
| 5273 | */ |
| 5274 | tSCC zHpux11_Pthread_PointerName[] = |
| 5275 | "hpux11_pthread_pointer" ; |
| 5276 | |
| 5277 | /* |
| 5278 | * File name selection pattern |
| 5279 | */ |
| 5280 | tSCC zHpux11_Pthread_PointerList[] = |
| 5281 | "sys/pthread.h\0" ; |
| 5282 | /* |
| 5283 | * Machine/OS name selection pattern |
| 5284 | */ |
| 5285 | tSCC* apzHpux11_Pthread_PointerMachs[] = { |
| 5286 | "*-hp-hpux11.[0-3]*" , |
| 5287 | (const char*)NULL }; |
| 5288 | |
| 5289 | /* |
| 5290 | * content selection pattern - do fix if pattern found |
| 5291 | */ |
| 5292 | tSCC zHpux11_Pthread_PointerSelect0[] = |
| 5293 | "(void[ \t]*\\*)(m|c|rw)(_ptr)" ; |
| 5294 | |
| 5295 | #define HPUX11_PTHREAD_POINTER_TEST_CT 1 |
| 5296 | static tTestDesc aHpux11_Pthread_PointerTests[] = { |
| 5297 | { .type: TT_EGREP, .pz_test_text: zHpux11_Pthread_PointerSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5298 | |
| 5299 | /* |
| 5300 | * Fix Command Arguments for Hpux11_Pthread_Pointer |
| 5301 | */ |
| 5302 | static const char* apzHpux11_Pthread_PointerPatch[] = { |
| 5303 | "format" , |
| 5304 | "long\t%2%3" , |
| 5305 | (char*)NULL }; |
| 5306 | |
| 5307 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5308 | * |
| 5309 | * Description of Hpux11_Pthread_Const fix |
| 5310 | */ |
| 5311 | tSCC zHpux11_Pthread_ConstName[] = |
| 5312 | "hpux11_pthread_const" ; |
| 5313 | |
| 5314 | /* |
| 5315 | * File name selection pattern |
| 5316 | */ |
| 5317 | tSCC zHpux11_Pthread_ConstList[] = |
| 5318 | "sys/pthread.h\0" ; |
| 5319 | /* |
| 5320 | * Machine/OS name selection pattern |
| 5321 | */ |
| 5322 | tSCC* apzHpux11_Pthread_ConstMachs[] = { |
| 5323 | "*-hp-hpux11.[0-3]*" , |
| 5324 | (const char*)NULL }; |
| 5325 | |
| 5326 | /* |
| 5327 | * content selection pattern - do fix if pattern found |
| 5328 | */ |
| 5329 | tSCC zHpux11_Pthread_ConstSelect0[] = |
| 5330 | "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))" ; |
| 5331 | |
| 5332 | #define HPUX11_PTHREAD_CONST_TEST_CT 1 |
| 5333 | static tTestDesc aHpux11_Pthread_ConstTests[] = { |
| 5334 | { .type: TT_EGREP, .pz_test_text: zHpux11_Pthread_ConstSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5335 | |
| 5336 | /* |
| 5337 | * Fix Command Arguments for Hpux11_Pthread_Const |
| 5338 | */ |
| 5339 | static const char* apzHpux11_Pthread_ConstPatch[] = { |
| 5340 | "format" , |
| 5341 | "%11" , |
| 5342 | (char*)NULL }; |
| 5343 | |
| 5344 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5345 | * |
| 5346 | * Description of Hpux11_Size_T fix |
| 5347 | */ |
| 5348 | tSCC zHpux11_Size_TName[] = |
| 5349 | "hpux11_size_t" ; |
| 5350 | |
| 5351 | /* |
| 5352 | * File name selection pattern |
| 5353 | */ |
| 5354 | #define zHpux11_Size_TList (char*)NULL |
| 5355 | /* |
| 5356 | * Machine/OS name selection pattern |
| 5357 | */ |
| 5358 | tSCC* apzHpux11_Size_TMachs[] = { |
| 5359 | "*-hp-hpux11*" , |
| 5360 | (const char*)NULL }; |
| 5361 | |
| 5362 | /* |
| 5363 | * content selection pattern - do fix if pattern found |
| 5364 | */ |
| 5365 | tSCC zHpux11_Size_TSelect0[] = |
| 5366 | "__size_t" ; |
| 5367 | |
| 5368 | #define HPUX11_SIZE_T_TEST_CT 1 |
| 5369 | static tTestDesc aHpux11_Size_TTests[] = { |
| 5370 | { .type: TT_EGREP, .pz_test_text: zHpux11_Size_TSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5371 | |
| 5372 | /* |
| 5373 | * Fix Command Arguments for Hpux11_Size_T |
| 5374 | */ |
| 5375 | static const char* apzHpux11_Size_TPatch[] = { |
| 5376 | "format" , |
| 5377 | "_hpux_size_t" , |
| 5378 | (char*)NULL }; |
| 5379 | |
| 5380 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5381 | * |
| 5382 | * Description of Hpux11_Snprintf fix |
| 5383 | */ |
| 5384 | tSCC zHpux11_SnprintfName[] = |
| 5385 | "hpux11_snprintf" ; |
| 5386 | |
| 5387 | /* |
| 5388 | * File name selection pattern |
| 5389 | */ |
| 5390 | tSCC zHpux11_SnprintfList[] = |
| 5391 | "stdio.h\0" ; |
| 5392 | /* |
| 5393 | * Machine/OS name selection pattern |
| 5394 | */ |
| 5395 | #define apzHpux11_SnprintfMachs (const char**)NULL |
| 5396 | |
| 5397 | /* |
| 5398 | * content selection pattern - do fix if pattern found |
| 5399 | */ |
| 5400 | tSCC zHpux11_SnprintfSelect0[] = |
| 5401 | "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)" ; |
| 5402 | |
| 5403 | #define HPUX11_SNPRINTF_TEST_CT 1 |
| 5404 | static tTestDesc aHpux11_SnprintfTests[] = { |
| 5405 | { .type: TT_EGREP, .pz_test_text: zHpux11_SnprintfSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5406 | |
| 5407 | /* |
| 5408 | * Fix Command Arguments for Hpux11_Snprintf |
| 5409 | */ |
| 5410 | static const char* apzHpux11_SnprintfPatch[] = { |
| 5411 | "format" , |
| 5412 | "%1 const %3" , |
| 5413 | (char*)NULL }; |
| 5414 | |
| 5415 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5416 | * |
| 5417 | * Description of Hpux11_Vsnprintf fix |
| 5418 | */ |
| 5419 | tSCC zHpux11_VsnprintfName[] = |
| 5420 | "hpux11_vsnprintf" ; |
| 5421 | |
| 5422 | /* |
| 5423 | * File name selection pattern |
| 5424 | */ |
| 5425 | tSCC zHpux11_VsnprintfList[] = |
| 5426 | "stdio.h\0" ; |
| 5427 | /* |
| 5428 | * Machine/OS name selection pattern |
| 5429 | */ |
| 5430 | #define apzHpux11_VsnprintfMachs (const char**)NULL |
| 5431 | |
| 5432 | /* |
| 5433 | * content selection pattern - do fix if pattern found |
| 5434 | */ |
| 5435 | tSCC zHpux11_VsnprintfSelect0[] = |
| 5436 | "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);" ; |
| 5437 | |
| 5438 | #define HPUX11_VSNPRINTF_TEST_CT 1 |
| 5439 | static tTestDesc aHpux11_VsnprintfTests[] = { |
| 5440 | { .type: TT_EGREP, .pz_test_text: zHpux11_VsnprintfSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5441 | |
| 5442 | /* |
| 5443 | * Fix Command Arguments for Hpux11_Vsnprintf |
| 5444 | */ |
| 5445 | static const char* apzHpux11_VsnprintfPatch[] = { |
| 5446 | "format" , |
| 5447 | "%1 __va_list);" , |
| 5448 | (char*)NULL }; |
| 5449 | |
| 5450 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5451 | * |
| 5452 | * Description of Hpux_Vsscanf fix |
| 5453 | */ |
| 5454 | tSCC zHpux_VsscanfName[] = |
| 5455 | "hpux_vsscanf" ; |
| 5456 | |
| 5457 | /* |
| 5458 | * File name selection pattern |
| 5459 | */ |
| 5460 | tSCC zHpux_VsscanfList[] = |
| 5461 | "stdio.h\0" ; |
| 5462 | /* |
| 5463 | * Machine/OS name selection pattern |
| 5464 | */ |
| 5465 | tSCC* apzHpux_VsscanfMachs[] = { |
| 5466 | "*-*-hpux*" , |
| 5467 | (const char*)NULL }; |
| 5468 | |
| 5469 | /* |
| 5470 | * content selection pattern - do fix if pattern found |
| 5471 | */ |
| 5472 | tSCC zHpux_VsscanfSelect0[] = |
| 5473 | "(extern int vsscanf\\()char" ; |
| 5474 | |
| 5475 | #define HPUX_VSSCANF_TEST_CT 1 |
| 5476 | static tTestDesc aHpux_VsscanfTests[] = { |
| 5477 | { .type: TT_EGREP, .pz_test_text: zHpux_VsscanfSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5478 | |
| 5479 | /* |
| 5480 | * Fix Command Arguments for Hpux_Vsscanf |
| 5481 | */ |
| 5482 | static const char* apzHpux_VsscanfPatch[] = { |
| 5483 | "format" , |
| 5484 | "%1const char" , |
| 5485 | (char*)NULL }; |
| 5486 | |
| 5487 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5488 | * |
| 5489 | * Description of Hpux8_Bogus_Inlines fix |
| 5490 | */ |
| 5491 | tSCC zHpux8_Bogus_InlinesName[] = |
| 5492 | "hpux8_bogus_inlines" ; |
| 5493 | |
| 5494 | /* |
| 5495 | * File name selection pattern |
| 5496 | */ |
| 5497 | tSCC zHpux8_Bogus_InlinesList[] = |
| 5498 | "math.h\0" ; |
| 5499 | /* |
| 5500 | * Machine/OS name selection pattern |
| 5501 | */ |
| 5502 | #define apzHpux8_Bogus_InlinesMachs (const char**)NULL |
| 5503 | |
| 5504 | /* |
| 5505 | * content selection pattern - do fix if pattern found |
| 5506 | */ |
| 5507 | tSCC zHpux8_Bogus_InlinesSelect0[] = |
| 5508 | "inline" ; |
| 5509 | |
| 5510 | /* |
| 5511 | * content bypass pattern - skip fix if pattern found |
| 5512 | */ |
| 5513 | tSCC zHpux8_Bogus_InlinesBypass0[] = |
| 5514 | "__GNUG__" ; |
| 5515 | |
| 5516 | #define HPUX8_BOGUS_INLINES_TEST_CT 2 |
| 5517 | static tTestDesc aHpux8_Bogus_InlinesTests[] = { |
| 5518 | { .type: TT_NEGREP, .pz_test_text: zHpux8_Bogus_InlinesBypass0, .p_test_regex: (regex_t*)NULL }, |
| 5519 | { .type: TT_EGREP, .pz_test_text: zHpux8_Bogus_InlinesSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5520 | |
| 5521 | /* |
| 5522 | * Fix Command Arguments for Hpux8_Bogus_Inlines |
| 5523 | */ |
| 5524 | static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z, |
| 5525 | "-e" , "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@" , |
| 5526 | "-e" , "s@inline double abs(double [a-z][a-z]*) {.*}@@" , |
| 5527 | "-e" , "s@inline int sqr(int [a-z][a-z]*) {.*}@@" , |
| 5528 | "-e" , "s@inline double sqr(double [a-z][a-z]*) {.*}@@" , |
| 5529 | (char*)NULL }; |
| 5530 | |
| 5531 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5532 | * |
| 5533 | * Description of Hpux_C99_Intptr fix |
| 5534 | */ |
| 5535 | tSCC zHpux_C99_IntptrName[] = |
| 5536 | "hpux_c99_intptr" ; |
| 5537 | |
| 5538 | /* |
| 5539 | * File name selection pattern |
| 5540 | */ |
| 5541 | tSCC zHpux_C99_IntptrList[] = |
| 5542 | "stdint-hpux11.h\0stdint.h\0" ; |
| 5543 | /* |
| 5544 | * Machine/OS name selection pattern |
| 5545 | */ |
| 5546 | tSCC* apzHpux_C99_IntptrMachs[] = { |
| 5547 | "*-hp-hpux11.3*" , |
| 5548 | (const char*)NULL }; |
| 5549 | #define HPUX_C99_INTPTR_TEST_CT 0 |
| 5550 | #define aHpux_C99_IntptrTests (tTestDesc*)NULL |
| 5551 | |
| 5552 | /* |
| 5553 | * Fix Command Arguments for Hpux_C99_Intptr |
| 5554 | */ |
| 5555 | static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z, |
| 5556 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@" , |
| 5557 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@" , |
| 5558 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@" , |
| 5559 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@" , |
| 5560 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@" , |
| 5561 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@" , |
| 5562 | (char*)NULL }; |
| 5563 | |
| 5564 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5565 | * |
| 5566 | * Description of Hpux_C99_Inttypes fix |
| 5567 | */ |
| 5568 | tSCC zHpux_C99_InttypesName[] = |
| 5569 | "hpux_c99_inttypes" ; |
| 5570 | |
| 5571 | /* |
| 5572 | * File name selection pattern |
| 5573 | */ |
| 5574 | tSCC zHpux_C99_InttypesList[] = |
| 5575 | "inttypes.h\0stdint-hpux11.h\0stdint.h\0" ; |
| 5576 | /* |
| 5577 | * Machine/OS name selection pattern |
| 5578 | */ |
| 5579 | tSCC* apzHpux_C99_InttypesMachs[] = { |
| 5580 | "*-hp-hpux11.[23]*" , |
| 5581 | (const char*)NULL }; |
| 5582 | #define HPUX_C99_INTTYPES_TEST_CT 0 |
| 5583 | #define aHpux_C99_InttypesTests (tTestDesc*)NULL |
| 5584 | |
| 5585 | /* |
| 5586 | * Fix Command Arguments for Hpux_C99_Inttypes |
| 5587 | */ |
| 5588 | static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z, |
| 5589 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@" , |
| 5590 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@" , |
| 5591 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@" , |
| 5592 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@" , |
| 5593 | (char*)NULL }; |
| 5594 | |
| 5595 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5596 | * |
| 5597 | * Description of Hpux_C99_Inttypes2 fix |
| 5598 | */ |
| 5599 | tSCC zHpux_C99_Inttypes2Name[] = |
| 5600 | "hpux_c99_inttypes2" ; |
| 5601 | |
| 5602 | /* |
| 5603 | * File name selection pattern |
| 5604 | */ |
| 5605 | tSCC zHpux_C99_Inttypes2List[] = |
| 5606 | "stdint-hpux11.h\0stdint.h\0" ; |
| 5607 | /* |
| 5608 | * Machine/OS name selection pattern |
| 5609 | */ |
| 5610 | tSCC* apzHpux_C99_Inttypes2Machs[] = { |
| 5611 | "*-hp-hpux11.2*" , |
| 5612 | (const char*)NULL }; |
| 5613 | #define HPUX_C99_INTTYPES2_TEST_CT 0 |
| 5614 | #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL |
| 5615 | |
| 5616 | /* |
| 5617 | * Fix Command Arguments for Hpux_C99_Inttypes2 |
| 5618 | */ |
| 5619 | static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z, |
| 5620 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@" , |
| 5621 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@" , |
| 5622 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@" , |
| 5623 | "-e" , "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@" , |
| 5624 | (char*)NULL }; |
| 5625 | |
| 5626 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5627 | * |
| 5628 | * Description of Hpux_C99_Inttypes3 fix |
| 5629 | */ |
| 5630 | tSCC zHpux_C99_Inttypes3Name[] = |
| 5631 | "hpux_c99_inttypes3" ; |
| 5632 | |
| 5633 | /* |
| 5634 | * File name selection pattern |
| 5635 | */ |
| 5636 | tSCC zHpux_C99_Inttypes3List[] = |
| 5637 | "inttypes.h\0" ; |
| 5638 | /* |
| 5639 | * Machine/OS name selection pattern |
| 5640 | */ |
| 5641 | tSCC* apzHpux_C99_Inttypes3Machs[] = { |
| 5642 | "hppa*-hp-hpux11*" , |
| 5643 | (const char*)NULL }; |
| 5644 | |
| 5645 | /* |
| 5646 | * content selection pattern - do fix if pattern found |
| 5647 | */ |
| 5648 | tSCC zHpux_C99_Inttypes3Select0[] = |
| 5649 | "#define[ \t]INTPTR_MAX[ \t]*\n\ |
| 5650 | #define[ \t]UINTPTR_MAX[ \t]*\n" ; |
| 5651 | |
| 5652 | #define HPUX_C99_INTTYPES3_TEST_CT 1 |
| 5653 | static tTestDesc aHpux_C99_Inttypes3Tests[] = { |
| 5654 | { .type: TT_EGREP, .pz_test_text: zHpux_C99_Inttypes3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 5655 | |
| 5656 | /* |
| 5657 | * Fix Command Arguments for Hpux_C99_Inttypes3 |
| 5658 | */ |
| 5659 | static const char* apzHpux_C99_Inttypes3Patch[] = { |
| 5660 | "format" , |
| 5661 | "#undef SIZE_MAX\n\ |
| 5662 | #define SIZE_MAX __SIZE_MAX__\n\ |
| 5663 | #ifdef __INTPTR_MAX__\n\ |
| 5664 | # undef INTPTR_MAX\n\ |
| 5665 | # define INTPTR_MAX __INTPTR_MAX__\n\ |
| 5666 | # undef INTPTR_MIN\n\ |
| 5667 | # define INTPTR_MIN (-INTPTR_MAX - 1)\n\ |
| 5668 | #endif\n\ |
| 5669 | #ifdef __UINTPTR_MAX__\n\ |
| 5670 | # undef UINTPTR_MAX\n\ |
| 5671 | # define UINTPTR_MAX __UINTPTR_MAX__\n\ |
| 5672 | #endif\n" , |
| 5673 | (char*)NULL }; |
| 5674 | |
| 5675 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5676 | * |
| 5677 | * Description of Hpux_C99_Inttypes4 fix |
| 5678 | */ |
| 5679 | tSCC zHpux_C99_Inttypes4Name[] = |
| 5680 | "hpux_c99_inttypes4" ; |
| 5681 | |
| 5682 | /* |
| 5683 | * File name selection pattern |
| 5684 | */ |
| 5685 | tSCC zHpux_C99_Inttypes4List[] = |
| 5686 | "inttypes.h\0" ; |
| 5687 | /* |
| 5688 | * Machine/OS name selection pattern |
| 5689 | */ |
| 5690 | tSCC* apzHpux_C99_Inttypes4Machs[] = { |
| 5691 | "hppa*-hp-hpux11.[01]*" , |
| 5692 | (const char*)NULL }; |
| 5693 | #define HPUX_C99_INTTYPES4_TEST_CT 0 |
| 5694 | #define aHpux_C99_Inttypes4Tests (tTestDesc*)NULL |
| 5695 | |
| 5696 | /* |
| 5697 | * Fix Command Arguments for Hpux_C99_Inttypes4 |
| 5698 | */ |
| 5699 | static const char* apzHpux_C99_Inttypes4Patch[] = { sed_cmd_z, |
| 5700 | "-e" , "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx64/a\\\n\ |
| 5701 | #define SCNuMAX \t SCNu64\n" , |
| 5702 | "-e" , "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx32/a\\\n\ |
| 5703 | #define SCNuMAX \t SCNu32\n" , |
| 5704 | (char*)NULL }; |
| 5705 | |
| 5706 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5707 | * |
| 5708 | * Description of Hpux_C99_Inttypes5 fix |
| 5709 | */ |
| 5710 | tSCC zHpux_C99_Inttypes5Name[] = |
| 5711 | "hpux_c99_inttypes5" ; |
| 5712 | |
| 5713 | /* |
| 5714 | * File name selection pattern |
| 5715 | */ |
| 5716 | tSCC zHpux_C99_Inttypes5List[] = |
| 5717 | "inttypes.h\0" ; |
| 5718 | /* |
| 5719 | * Machine/OS name selection pattern |
| 5720 | */ |
| 5721 | tSCC* apzHpux_C99_Inttypes5Machs[] = { |
| 5722 | "hppa*-hp-hpux11.[01]*" , |
| 5723 | (const char*)NULL }; |
| 5724 | |
| 5725 | /* |
| 5726 | * content selection pattern - do fix if pattern found |
| 5727 | */ |
| 5728 | tSCC zHpux_C99_Inttypes5Select0[] = |
| 5729 | "#ifndef[ \t]_KERNEL[ \t]*\n" ; |
| 5730 | |
| 5731 | #define HPUX_C99_INTTYPES5_TEST_CT 1 |
| 5732 | static tTestDesc aHpux_C99_Inttypes5Tests[] = { |
| 5733 | { .type: TT_EGREP, .pz_test_text: zHpux_C99_Inttypes5Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 5734 | |
| 5735 | /* |
| 5736 | * Fix Command Arguments for Hpux_C99_Inttypes5 |
| 5737 | */ |
| 5738 | static const char* apzHpux_C99_Inttypes5Patch[] = { |
| 5739 | "format" , |
| 5740 | "#ifndef __LP64__\n\ |
| 5741 | #define PRIdPTR\t\tPRId32\n\ |
| 5742 | #define PRIiPTR\t\tPRIi32\n\ |
| 5743 | #define PRIoPTR\t\tPRIo32\n\ |
| 5744 | #define PRIuPTR\t\tPRIu32\n\ |
| 5745 | #define PRIxPTR\t\tPRIx32\n\ |
| 5746 | #define PRIXPTR\t\tPRIX32\n\ |
| 5747 | #else\n\ |
| 5748 | #define PRIdPTR\t\tPRId64\n\ |
| 5749 | #define PRIiPTR\t\tPRIi64\n\ |
| 5750 | #define PRIoPTR\t\tPRIo64\n\ |
| 5751 | #define PRIuPTR\t\tPRIu64\n\ |
| 5752 | #define PRIxPTR\t\tPRIx64\n\ |
| 5753 | #define PRIXPTR\t\tPRIX64\n\ |
| 5754 | #endif\n\n\ |
| 5755 | #ifndef _KERNEL\n" , |
| 5756 | (char*)NULL }; |
| 5757 | |
| 5758 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5759 | * |
| 5760 | * Description of Hpux_Ctype_Macros fix |
| 5761 | */ |
| 5762 | tSCC zHpux_Ctype_MacrosName[] = |
| 5763 | "hpux_ctype_macros" ; |
| 5764 | |
| 5765 | /* |
| 5766 | * File name selection pattern |
| 5767 | */ |
| 5768 | tSCC zHpux_Ctype_MacrosList[] = |
| 5769 | "ctype.h\0" ; |
| 5770 | /* |
| 5771 | * Machine/OS name selection pattern |
| 5772 | */ |
| 5773 | #define apzHpux_Ctype_MacrosMachs (const char**)NULL |
| 5774 | |
| 5775 | /* |
| 5776 | * content selection pattern - do fix if pattern found |
| 5777 | */ |
| 5778 | tSCC zHpux_Ctype_MacrosSelect0[] = |
| 5779 | "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)" ; |
| 5780 | |
| 5781 | #define HPUX_CTYPE_MACROS_TEST_CT 1 |
| 5782 | static tTestDesc aHpux_Ctype_MacrosTests[] = { |
| 5783 | { .type: TT_EGREP, .pz_test_text: zHpux_Ctype_MacrosSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5784 | |
| 5785 | /* |
| 5786 | * Fix Command Arguments for Hpux_Ctype_Macros |
| 5787 | */ |
| 5788 | static const char* apzHpux_Ctype_MacrosPatch[] = { |
| 5789 | "format" , |
| 5790 | "%1(int)%3" , |
| 5791 | (char*)NULL }; |
| 5792 | |
| 5793 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5794 | * |
| 5795 | * Description of Hpux_Extern_Errno fix |
| 5796 | */ |
| 5797 | tSCC zHpux_Extern_ErrnoName[] = |
| 5798 | "hpux_extern_errno" ; |
| 5799 | |
| 5800 | /* |
| 5801 | * File name selection pattern |
| 5802 | */ |
| 5803 | tSCC zHpux_Extern_ErrnoList[] = |
| 5804 | "errno.h\0" ; |
| 5805 | /* |
| 5806 | * Machine/OS name selection pattern |
| 5807 | */ |
| 5808 | tSCC* apzHpux_Extern_ErrnoMachs[] = { |
| 5809 | "*-hp-hpux10.*" , |
| 5810 | "*-hp-hpux11.[0-2]*" , |
| 5811 | (const char*)NULL }; |
| 5812 | |
| 5813 | /* |
| 5814 | * content selection pattern - do fix if pattern found |
| 5815 | */ |
| 5816 | tSCC zHpux_Extern_ErrnoSelect0[] = |
| 5817 | "^[ \t]*extern int errno;$" ; |
| 5818 | |
| 5819 | #define HPUX_EXTERN_ERRNO_TEST_CT 1 |
| 5820 | static tTestDesc aHpux_Extern_ErrnoTests[] = { |
| 5821 | { .type: TT_EGREP, .pz_test_text: zHpux_Extern_ErrnoSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5822 | |
| 5823 | /* |
| 5824 | * Fix Command Arguments for Hpux_Extern_Errno |
| 5825 | */ |
| 5826 | static const char* apzHpux_Extern_ErrnoPatch[] = { |
| 5827 | "format" , |
| 5828 | "#ifdef __cplusplus\n\ |
| 5829 | extern \"C\" {\n\ |
| 5830 | #endif\n\ |
| 5831 | %0\n\ |
| 5832 | #ifdef __cplusplus\n\ |
| 5833 | }\n\ |
| 5834 | #endif" , |
| 5835 | (char*)NULL }; |
| 5836 | |
| 5837 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5838 | * |
| 5839 | * Description of Hpux_Htonl fix |
| 5840 | */ |
| 5841 | tSCC zHpux_HtonlName[] = |
| 5842 | "hpux_htonl" ; |
| 5843 | |
| 5844 | /* |
| 5845 | * File name selection pattern |
| 5846 | */ |
| 5847 | tSCC zHpux_HtonlList[] = |
| 5848 | "netinet/in.h\0" ; |
| 5849 | /* |
| 5850 | * Machine/OS name selection pattern |
| 5851 | */ |
| 5852 | #define apzHpux_HtonlMachs (const char**)NULL |
| 5853 | |
| 5854 | /* |
| 5855 | * content selection pattern - do fix if pattern found |
| 5856 | */ |
| 5857 | tSCC zHpux_HtonlSelect0[] = |
| 5858 | "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\ |
| 5859 | (/\\*\n\ |
| 5860 | \\* Macros for number representation conversion\\.\n\ |
| 5861 | \\*/\n\ |
| 5862 | #ifndef ntohl)" ; |
| 5863 | |
| 5864 | #define HPUX_HTONL_TEST_CT 1 |
| 5865 | static tTestDesc aHpux_HtonlTests[] = { |
| 5866 | { .type: TT_EGREP, .pz_test_text: zHpux_HtonlSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5867 | |
| 5868 | /* |
| 5869 | * Fix Command Arguments for Hpux_Htonl |
| 5870 | */ |
| 5871 | static const char* apzHpux_HtonlPatch[] = { |
| 5872 | "format" , |
| 5873 | "#if 1\n\ |
| 5874 | %1" , |
| 5875 | (char*)NULL }; |
| 5876 | |
| 5877 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5878 | * |
| 5879 | * Description of Hpux_Imaginary_I fix |
| 5880 | */ |
| 5881 | tSCC zHpux_Imaginary_IName[] = |
| 5882 | "hpux_imaginary_i" ; |
| 5883 | |
| 5884 | /* |
| 5885 | * File name selection pattern |
| 5886 | */ |
| 5887 | tSCC zHpux_Imaginary_IList[] = |
| 5888 | "complex.h\0" ; |
| 5889 | /* |
| 5890 | * Machine/OS name selection pattern |
| 5891 | */ |
| 5892 | tSCC* apzHpux_Imaginary_IMachs[] = { |
| 5893 | "ia64-hp-hpux11.*" , |
| 5894 | (const char*)NULL }; |
| 5895 | |
| 5896 | /* |
| 5897 | * content selection pattern - do fix if pattern found |
| 5898 | */ |
| 5899 | tSCC zHpux_Imaginary_ISelect0[] = |
| 5900 | "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*" ; |
| 5901 | |
| 5902 | #define HPUX_IMAGINARY_I_TEST_CT 1 |
| 5903 | static tTestDesc aHpux_Imaginary_ITests[] = { |
| 5904 | { .type: TT_EGREP, .pz_test_text: zHpux_Imaginary_ISelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5905 | |
| 5906 | /* |
| 5907 | * Fix Command Arguments for Hpux_Imaginary_I |
| 5908 | */ |
| 5909 | static const char* apzHpux_Imaginary_IPatch[] = { |
| 5910 | "format" , |
| 5911 | "#define _Complex_I (__extension__ 1.0iF)" , |
| 5912 | (char*)NULL }; |
| 5913 | |
| 5914 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5915 | * |
| 5916 | * Description of Hpux_Inttype_Int8_T fix |
| 5917 | */ |
| 5918 | tSCC zHpux_Inttype_Int8_TName[] = |
| 5919 | "hpux_inttype_int8_t" ; |
| 5920 | |
| 5921 | /* |
| 5922 | * File name selection pattern |
| 5923 | */ |
| 5924 | tSCC zHpux_Inttype_Int8_TList[] = |
| 5925 | "sys/_inttypes.h\0" ; |
| 5926 | /* |
| 5927 | * Machine/OS name selection pattern |
| 5928 | */ |
| 5929 | tSCC* apzHpux_Inttype_Int8_TMachs[] = { |
| 5930 | "*-hp-hpux1[01].*" , |
| 5931 | (const char*)NULL }; |
| 5932 | |
| 5933 | /* |
| 5934 | * content selection pattern - do fix if pattern found |
| 5935 | */ |
| 5936 | tSCC zHpux_Inttype_Int8_TSelect0[] = |
| 5937 | "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*" ; |
| 5938 | |
| 5939 | #define HPUX_INTTYPE_INT8_T_TEST_CT 1 |
| 5940 | static tTestDesc aHpux_Inttype_Int8_TTests[] = { |
| 5941 | { .type: TT_EGREP, .pz_test_text: zHpux_Inttype_Int8_TSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5942 | |
| 5943 | /* |
| 5944 | * Fix Command Arguments for Hpux_Inttype_Int8_T |
| 5945 | */ |
| 5946 | static const char* apzHpux_Inttype_Int8_TPatch[] = { |
| 5947 | "format" , |
| 5948 | "typedef signed char int%18_t;" , |
| 5949 | (char*)NULL }; |
| 5950 | |
| 5951 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5952 | * |
| 5953 | * Description of Hpux_Long_Double fix |
| 5954 | */ |
| 5955 | tSCC zHpux_Long_DoubleName[] = |
| 5956 | "hpux_long_double" ; |
| 5957 | |
| 5958 | /* |
| 5959 | * File name selection pattern |
| 5960 | */ |
| 5961 | tSCC zHpux_Long_DoubleList[] = |
| 5962 | "stdlib.h\0" ; |
| 5963 | /* |
| 5964 | * Machine/OS name selection pattern |
| 5965 | */ |
| 5966 | tSCC* apzHpux_Long_DoubleMachs[] = { |
| 5967 | "*-*-hpux10*" , |
| 5968 | "*-*-hpux11.[012]*" , |
| 5969 | (const char*)NULL }; |
| 5970 | |
| 5971 | /* |
| 5972 | * content selection pattern - do fix if pattern found |
| 5973 | */ |
| 5974 | tSCC zHpux_Long_DoubleSelect0[] = |
| 5975 | "extern[ \t]long_double[ \t]strtold" ; |
| 5976 | |
| 5977 | /* |
| 5978 | * content bypass pattern - skip fix if pattern found |
| 5979 | */ |
| 5980 | tSCC zHpux_Long_DoubleBypass0[] = |
| 5981 | "long_double_t" ; |
| 5982 | |
| 5983 | #define HPUX_LONG_DOUBLE_TEST_CT 2 |
| 5984 | static tTestDesc aHpux_Long_DoubleTests[] = { |
| 5985 | { .type: TT_NEGREP, .pz_test_text: zHpux_Long_DoubleBypass0, .p_test_regex: (regex_t*)NULL }, |
| 5986 | { .type: TT_EGREP, .pz_test_text: zHpux_Long_DoubleSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 5987 | |
| 5988 | /* |
| 5989 | * Fix Command Arguments for Hpux_Long_Double |
| 5990 | */ |
| 5991 | static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z, |
| 5992 | "-e" , "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D" , |
| 5993 | "-e" , "s/long_double/long double/g" , |
| 5994 | (char*)NULL }; |
| 5995 | |
| 5996 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 5997 | * |
| 5998 | * Description of Hpux_Long_Double_2 fix |
| 5999 | */ |
| 6000 | tSCC zHpux_Long_Double_2Name[] = |
| 6001 | "hpux_long_double_2" ; |
| 6002 | |
| 6003 | /* |
| 6004 | * File name selection pattern |
| 6005 | */ |
| 6006 | tSCC zHpux_Long_Double_2List[] = |
| 6007 | "stdlib.h\0" ; |
| 6008 | /* |
| 6009 | * Machine/OS name selection pattern |
| 6010 | */ |
| 6011 | tSCC* apzHpux_Long_Double_2Machs[] = { |
| 6012 | "hppa*-*-hpux11.3*" , |
| 6013 | (const char*)NULL }; |
| 6014 | |
| 6015 | /* |
| 6016 | * content selection pattern - do fix if pattern found |
| 6017 | */ |
| 6018 | tSCC zHpux_Long_Double_2Select0[] = |
| 6019 | "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)" ; |
| 6020 | |
| 6021 | #define HPUX_LONG_DOUBLE_2_TEST_CT 1 |
| 6022 | static tTestDesc aHpux_Long_Double_2Tests[] = { |
| 6023 | { .type: TT_EGREP, .pz_test_text: zHpux_Long_Double_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 6024 | |
| 6025 | /* |
| 6026 | * Fix Command Arguments for Hpux_Long_Double_2 |
| 6027 | */ |
| 6028 | static const char* apzHpux_Long_Double_2Patch[] = { |
| 6029 | "format" , |
| 6030 | "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)" , |
| 6031 | (char*)NULL }; |
| 6032 | |
| 6033 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6034 | * |
| 6035 | * Description of Hpux_Pthread_Initializers fix |
| 6036 | */ |
| 6037 | tSCC zHpux_Pthread_InitializersName[] = |
| 6038 | "hpux_pthread_initializers" ; |
| 6039 | |
| 6040 | /* |
| 6041 | * File name selection pattern |
| 6042 | */ |
| 6043 | tSCC zHpux_Pthread_InitializersList[] = |
| 6044 | "sys/pthread.h\0" ; |
| 6045 | /* |
| 6046 | * Machine/OS name selection pattern |
| 6047 | */ |
| 6048 | tSCC* apzHpux_Pthread_InitializersMachs[] = { |
| 6049 | "*-hp-hpux11.[0-3]*" , |
| 6050 | (const char*)NULL }; |
| 6051 | #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0 |
| 6052 | #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL |
| 6053 | |
| 6054 | /* |
| 6055 | * Fix Command Arguments for Hpux_Pthread_Initializers |
| 6056 | */ |
| 6057 | static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z, |
| 6058 | "-e" , "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@" , |
| 6059 | "-e" , "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@" , |
| 6060 | "-e" , "/^[ \t]*0$/d" , |
| 6061 | "-e" , "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@" , |
| 6062 | "-e" , "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@" , |
| 6063 | "-e" , "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@" , |
| 6064 | "-e" , "s@^[ \t]*__LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@\t{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@" , |
| 6065 | "-e" , "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@" , |
| 6066 | "-e" , "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@" , |
| 6067 | "-e" , "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@" , |
| 6068 | "-e" , "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@" , |
| 6069 | "-e" , "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@" , |
| 6070 | "-e" , "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@" , |
| 6071 | (char*)NULL }; |
| 6072 | |
| 6073 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6074 | * |
| 6075 | * Description of Hpux_Spu_Info fix |
| 6076 | */ |
| 6077 | tSCC zHpux_Spu_InfoName[] = |
| 6078 | "hpux_spu_info" ; |
| 6079 | |
| 6080 | /* |
| 6081 | * File name selection pattern |
| 6082 | */ |
| 6083 | tSCC zHpux_Spu_InfoList[] = |
| 6084 | "ia64/sys/getppdp.h\0*/sys/getppdp.h\0" ; |
| 6085 | /* |
| 6086 | * Machine/OS name selection pattern |
| 6087 | */ |
| 6088 | tSCC* apzHpux_Spu_InfoMachs[] = { |
| 6089 | "*-hp-hpux*" , |
| 6090 | (const char*)NULL }; |
| 6091 | |
| 6092 | /* |
| 6093 | * content selection pattern - do fix if pattern found |
| 6094 | */ |
| 6095 | tSCC zHpux_Spu_InfoSelect0[] = |
| 6096 | "^.*extern.*spu_info.*" ; |
| 6097 | |
| 6098 | #define HPUX_SPU_INFO_TEST_CT 1 |
| 6099 | static tTestDesc aHpux_Spu_InfoTests[] = { |
| 6100 | { .type: TT_EGREP, .pz_test_text: zHpux_Spu_InfoSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6101 | |
| 6102 | /* |
| 6103 | * Fix Command Arguments for Hpux_Spu_Info |
| 6104 | */ |
| 6105 | static const char* apzHpux_Spu_InfoPatch[] = { |
| 6106 | "format" , |
| 6107 | "#ifdef _KERNEL\n\ |
| 6108 | %0\n\ |
| 6109 | #endif" , |
| 6110 | (char*)NULL }; |
| 6111 | |
| 6112 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6113 | * |
| 6114 | * Description of Hpux_Stdint_Least_Fast fix |
| 6115 | */ |
| 6116 | tSCC zHpux_Stdint_Least_FastName[] = |
| 6117 | "hpux_stdint_least_fast" ; |
| 6118 | |
| 6119 | /* |
| 6120 | * File name selection pattern |
| 6121 | */ |
| 6122 | tSCC zHpux_Stdint_Least_FastList[] = |
| 6123 | "stdint-hpux11.h\0stdint.h\0" ; |
| 6124 | /* |
| 6125 | * Machine/OS name selection pattern |
| 6126 | */ |
| 6127 | tSCC* apzHpux_Stdint_Least_FastMachs[] = { |
| 6128 | "*-hp-hpux11.2*" , |
| 6129 | (const char*)NULL }; |
| 6130 | |
| 6131 | /* |
| 6132 | * content selection pattern - do fix if pattern found |
| 6133 | */ |
| 6134 | tSCC zHpux_Stdint_Least_FastSelect0[] = |
| 6135 | "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX" ; |
| 6136 | |
| 6137 | #define HPUX_STDINT_LEAST_FAST_TEST_CT 1 |
| 6138 | static tTestDesc aHpux_Stdint_Least_FastTests[] = { |
| 6139 | { .type: TT_EGREP, .pz_test_text: zHpux_Stdint_Least_FastSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6140 | |
| 6141 | /* |
| 6142 | * Fix Command Arguments for Hpux_Stdint_Least_Fast |
| 6143 | */ |
| 6144 | static const char* apzHpux_Stdint_Least_FastPatch[] = { |
| 6145 | "format" , |
| 6146 | "# define\tUINT_%164_MAX\t__UINT64_MAX__" , |
| 6147 | (char*)NULL }; |
| 6148 | |
| 6149 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6150 | * |
| 6151 | * Description of Hpux_Longjmp fix |
| 6152 | */ |
| 6153 | tSCC zHpux_LongjmpName[] = |
| 6154 | "hpux_longjmp" ; |
| 6155 | |
| 6156 | /* |
| 6157 | * File name selection pattern |
| 6158 | */ |
| 6159 | tSCC zHpux_LongjmpList[] = |
| 6160 | "setjmp.h\0" ; |
| 6161 | /* |
| 6162 | * Machine/OS name selection pattern |
| 6163 | */ |
| 6164 | tSCC* apzHpux_LongjmpMachs[] = { |
| 6165 | "*-hp-hpux*" , |
| 6166 | (const char*)NULL }; |
| 6167 | |
| 6168 | /* |
| 6169 | * content selection pattern - do fix if pattern found |
| 6170 | */ |
| 6171 | tSCC zHpux_LongjmpSelect0[] = |
| 6172 | "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))" ; |
| 6173 | |
| 6174 | #define HPUX_LONGJMP_TEST_CT 1 |
| 6175 | static tTestDesc aHpux_LongjmpTests[] = { |
| 6176 | { .type: TT_EGREP, .pz_test_text: zHpux_LongjmpSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6177 | |
| 6178 | /* |
| 6179 | * Fix Command Arguments for Hpux_Longjmp |
| 6180 | */ |
| 6181 | static const char* apzHpux_LongjmpPatch[] = { |
| 6182 | "format" , |
| 6183 | "%0 __attribute__ ((__noreturn__))" , |
| 6184 | (char*)NULL }; |
| 6185 | |
| 6186 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6187 | * |
| 6188 | * Description of Hpux_Systime fix |
| 6189 | */ |
| 6190 | tSCC zHpux_SystimeName[] = |
| 6191 | "hpux_systime" ; |
| 6192 | |
| 6193 | /* |
| 6194 | * File name selection pattern |
| 6195 | */ |
| 6196 | tSCC zHpux_SystimeList[] = |
| 6197 | "sys/time.h\0" ; |
| 6198 | /* |
| 6199 | * Machine/OS name selection pattern |
| 6200 | */ |
| 6201 | #define apzHpux_SystimeMachs (const char**)NULL |
| 6202 | |
| 6203 | /* |
| 6204 | * content selection pattern - do fix if pattern found |
| 6205 | */ |
| 6206 | tSCC zHpux_SystimeSelect0[] = |
| 6207 | "^extern struct sigevent;" ; |
| 6208 | |
| 6209 | #define HPUX_SYSTIME_TEST_CT 1 |
| 6210 | static tTestDesc aHpux_SystimeTests[] = { |
| 6211 | { .type: TT_EGREP, .pz_test_text: zHpux_SystimeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6212 | |
| 6213 | /* |
| 6214 | * Fix Command Arguments for Hpux_Systime |
| 6215 | */ |
| 6216 | static const char* apzHpux_SystimePatch[] = { |
| 6217 | "format" , |
| 6218 | "struct sigevent;" , |
| 6219 | (char*)NULL }; |
| 6220 | |
| 6221 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6222 | * |
| 6223 | * Description of Huge_Val_Hex fix |
| 6224 | */ |
| 6225 | tSCC zHuge_Val_HexName[] = |
| 6226 | "huge_val_hex" ; |
| 6227 | |
| 6228 | /* |
| 6229 | * File name selection pattern |
| 6230 | */ |
| 6231 | tSCC zHuge_Val_HexList[] = |
| 6232 | "bits/huge_val.h\0*/bits/huge_val.h\0" ; |
| 6233 | /* |
| 6234 | * Machine/OS name selection pattern |
| 6235 | */ |
| 6236 | #define apzHuge_Val_HexMachs (const char**)NULL |
| 6237 | |
| 6238 | /* |
| 6239 | * content selection pattern - do fix if pattern found |
| 6240 | */ |
| 6241 | tSCC zHuge_Val_HexSelect0[] = |
| 6242 | "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*" ; |
| 6243 | |
| 6244 | /* |
| 6245 | * content bypass pattern - skip fix if pattern found |
| 6246 | */ |
| 6247 | tSCC zHuge_Val_HexBypass0[] = |
| 6248 | "__builtin_huge_val" ; |
| 6249 | |
| 6250 | #define HUGE_VAL_HEX_TEST_CT 2 |
| 6251 | static tTestDesc aHuge_Val_HexTests[] = { |
| 6252 | { .type: TT_NEGREP, .pz_test_text: zHuge_Val_HexBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6253 | { .type: TT_EGREP, .pz_test_text: zHuge_Val_HexSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6254 | |
| 6255 | /* |
| 6256 | * Fix Command Arguments for Huge_Val_Hex |
| 6257 | */ |
| 6258 | static const char* apzHuge_Val_HexPatch[] = { |
| 6259 | "format" , |
| 6260 | "#define HUGE_VAL (__builtin_huge_val())\n" , |
| 6261 | (char*)NULL }; |
| 6262 | |
| 6263 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6264 | * |
| 6265 | * Description of Huge_Valf_Hex fix |
| 6266 | */ |
| 6267 | tSCC zHuge_Valf_HexName[] = |
| 6268 | "huge_valf_hex" ; |
| 6269 | |
| 6270 | /* |
| 6271 | * File name selection pattern |
| 6272 | */ |
| 6273 | tSCC zHuge_Valf_HexList[] = |
| 6274 | "bits/huge_val.h\0*/bits/huge_val.h\0" ; |
| 6275 | /* |
| 6276 | * Machine/OS name selection pattern |
| 6277 | */ |
| 6278 | #define apzHuge_Valf_HexMachs (const char**)NULL |
| 6279 | |
| 6280 | /* |
| 6281 | * content selection pattern - do fix if pattern found |
| 6282 | */ |
| 6283 | tSCC zHuge_Valf_HexSelect0[] = |
| 6284 | "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*" ; |
| 6285 | |
| 6286 | /* |
| 6287 | * content bypass pattern - skip fix if pattern found |
| 6288 | */ |
| 6289 | tSCC zHuge_Valf_HexBypass0[] = |
| 6290 | "__builtin_huge_valf" ; |
| 6291 | |
| 6292 | #define HUGE_VALF_HEX_TEST_CT 2 |
| 6293 | static tTestDesc aHuge_Valf_HexTests[] = { |
| 6294 | { .type: TT_NEGREP, .pz_test_text: zHuge_Valf_HexBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6295 | { .type: TT_EGREP, .pz_test_text: zHuge_Valf_HexSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6296 | |
| 6297 | /* |
| 6298 | * Fix Command Arguments for Huge_Valf_Hex |
| 6299 | */ |
| 6300 | static const char* apzHuge_Valf_HexPatch[] = { |
| 6301 | "format" , |
| 6302 | "#define HUGE_VALF (__builtin_huge_valf())\n" , |
| 6303 | (char*)NULL }; |
| 6304 | |
| 6305 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6306 | * |
| 6307 | * Description of Huge_Vall_Hex fix |
| 6308 | */ |
| 6309 | tSCC zHuge_Vall_HexName[] = |
| 6310 | "huge_vall_hex" ; |
| 6311 | |
| 6312 | /* |
| 6313 | * File name selection pattern |
| 6314 | */ |
| 6315 | tSCC zHuge_Vall_HexList[] = |
| 6316 | "bits/huge_val.h\0*/bits/huge_val.h\0" ; |
| 6317 | /* |
| 6318 | * Machine/OS name selection pattern |
| 6319 | */ |
| 6320 | #define apzHuge_Vall_HexMachs (const char**)NULL |
| 6321 | |
| 6322 | /* |
| 6323 | * content selection pattern - do fix if pattern found |
| 6324 | */ |
| 6325 | tSCC zHuge_Vall_HexSelect0[] = |
| 6326 | "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*" ; |
| 6327 | |
| 6328 | /* |
| 6329 | * content bypass pattern - skip fix if pattern found |
| 6330 | */ |
| 6331 | tSCC zHuge_Vall_HexBypass0[] = |
| 6332 | "__builtin_huge_vall" ; |
| 6333 | |
| 6334 | #define HUGE_VALL_HEX_TEST_CT 2 |
| 6335 | static tTestDesc aHuge_Vall_HexTests[] = { |
| 6336 | { .type: TT_NEGREP, .pz_test_text: zHuge_Vall_HexBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6337 | { .type: TT_EGREP, .pz_test_text: zHuge_Vall_HexSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6338 | |
| 6339 | /* |
| 6340 | * Fix Command Arguments for Huge_Vall_Hex |
| 6341 | */ |
| 6342 | static const char* apzHuge_Vall_HexPatch[] = { |
| 6343 | "format" , |
| 6344 | "#define HUGE_VALL (__builtin_huge_vall())\n" , |
| 6345 | (char*)NULL }; |
| 6346 | |
| 6347 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6348 | * |
| 6349 | * Description of Int_Abort_Free_And_Exit fix |
| 6350 | */ |
| 6351 | tSCC zInt_Abort_Free_And_ExitName[] = |
| 6352 | "int_abort_free_and_exit" ; |
| 6353 | |
| 6354 | /* |
| 6355 | * File name selection pattern |
| 6356 | */ |
| 6357 | tSCC zInt_Abort_Free_And_ExitList[] = |
| 6358 | "stdlib.h\0" ; |
| 6359 | /* |
| 6360 | * Machine/OS name selection pattern |
| 6361 | */ |
| 6362 | #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL |
| 6363 | |
| 6364 | /* |
| 6365 | * content selection pattern - do fix if pattern found |
| 6366 | */ |
| 6367 | tSCC zInt_Abort_Free_And_ExitSelect0[] = |
| 6368 | "int[ \t]+(abort|free|exit)[ \t]*\\(" ; |
| 6369 | |
| 6370 | /* |
| 6371 | * content bypass pattern - skip fix if pattern found |
| 6372 | */ |
| 6373 | tSCC zInt_Abort_Free_And_ExitBypass0[] = |
| 6374 | "_CLASSIC_ANSI_TYPES" ; |
| 6375 | |
| 6376 | #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2 |
| 6377 | static tTestDesc aInt_Abort_Free_And_ExitTests[] = { |
| 6378 | { .type: TT_NEGREP, .pz_test_text: zInt_Abort_Free_And_ExitBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6379 | { .type: TT_EGREP, .pz_test_text: zInt_Abort_Free_And_ExitSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6380 | |
| 6381 | /* |
| 6382 | * Fix Command Arguments for Int_Abort_Free_And_Exit |
| 6383 | */ |
| 6384 | static const char* apzInt_Abort_Free_And_ExitPatch[] = { |
| 6385 | "format" , |
| 6386 | "void\t%1(" , |
| 6387 | (char*)NULL }; |
| 6388 | |
| 6389 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6390 | * |
| 6391 | * Description of Io_Quotes_Def fix |
| 6392 | */ |
| 6393 | tSCC zIo_Quotes_DefName[] = |
| 6394 | "io_quotes_def" ; |
| 6395 | |
| 6396 | /* |
| 6397 | * File name selection pattern |
| 6398 | */ |
| 6399 | #define zIo_Quotes_DefList (char*)NULL |
| 6400 | /* |
| 6401 | * Machine/OS name selection pattern |
| 6402 | */ |
| 6403 | #define apzIo_Quotes_DefMachs (const char**)NULL |
| 6404 | |
| 6405 | /* |
| 6406 | * content selection pattern - do fix if pattern found |
| 6407 | */ |
| 6408 | tSCC zIo_Quotes_DefSelect0[] = |
| 6409 | "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]" ; |
| 6410 | |
| 6411 | #define IO_QUOTES_DEF_TEST_CT 1 |
| 6412 | static tTestDesc aIo_Quotes_DefTests[] = { |
| 6413 | { .type: TT_EGREP, .pz_test_text: zIo_Quotes_DefSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6414 | |
| 6415 | /* |
| 6416 | * Fix Command Arguments for Io_Quotes_Def |
| 6417 | */ |
| 6418 | static const char* apzIo_Quotes_DefPatch[] = { |
| 6419 | "char_macro_def" , |
| 6420 | "IO" , |
| 6421 | (char*)NULL }; |
| 6422 | |
| 6423 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6424 | * |
| 6425 | * Description of Io_Quotes_Use fix |
| 6426 | */ |
| 6427 | tSCC zIo_Quotes_UseName[] = |
| 6428 | "io_quotes_use" ; |
| 6429 | |
| 6430 | /* |
| 6431 | * File name selection pattern |
| 6432 | */ |
| 6433 | #define zIo_Quotes_UseList (char*)NULL |
| 6434 | /* |
| 6435 | * Machine/OS name selection pattern |
| 6436 | */ |
| 6437 | #define apzIo_Quotes_UseMachs (const char**)NULL |
| 6438 | |
| 6439 | /* |
| 6440 | * content selection pattern - do fix if pattern found |
| 6441 | */ |
| 6442 | tSCC zIo_Quotes_UseSelect0[] = |
| 6443 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']" ; |
| 6444 | |
| 6445 | #define IO_QUOTES_USE_TEST_CT 1 |
| 6446 | static tTestDesc aIo_Quotes_UseTests[] = { |
| 6447 | { .type: TT_EGREP, .pz_test_text: zIo_Quotes_UseSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6448 | |
| 6449 | /* |
| 6450 | * Fix Command Arguments for Io_Quotes_Use |
| 6451 | */ |
| 6452 | static const char* apzIo_Quotes_UsePatch[] = { |
| 6453 | "char_macro_use" , |
| 6454 | "IO" , |
| 6455 | (char*)NULL }; |
| 6456 | |
| 6457 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6458 | * |
| 6459 | * Description of Ip_Missing_Semi fix |
| 6460 | */ |
| 6461 | tSCC zIp_Missing_SemiName[] = |
| 6462 | "ip_missing_semi" ; |
| 6463 | |
| 6464 | /* |
| 6465 | * File name selection pattern |
| 6466 | */ |
| 6467 | tSCC zIp_Missing_SemiList[] = |
| 6468 | "netinet/ip.h\0" ; |
| 6469 | /* |
| 6470 | * Machine/OS name selection pattern |
| 6471 | */ |
| 6472 | #define apzIp_Missing_SemiMachs (const char**)NULL |
| 6473 | |
| 6474 | /* |
| 6475 | * content selection pattern - do fix if pattern found |
| 6476 | */ |
| 6477 | tSCC zIp_Missing_SemiSelect0[] = |
| 6478 | "}$" ; |
| 6479 | |
| 6480 | #define IP_MISSING_SEMI_TEST_CT 1 |
| 6481 | static tTestDesc aIp_Missing_SemiTests[] = { |
| 6482 | { .type: TT_EGREP, .pz_test_text: zIp_Missing_SemiSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6483 | |
| 6484 | /* |
| 6485 | * Fix Command Arguments for Ip_Missing_Semi |
| 6486 | */ |
| 6487 | static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z, |
| 6488 | "-e" , "/^struct/,/^};/s/}$/};/" , |
| 6489 | (char*)NULL }; |
| 6490 | |
| 6491 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6492 | * |
| 6493 | * Description of Irix_Limits_Const fix |
| 6494 | */ |
| 6495 | tSCC zIrix_Limits_ConstName[] = |
| 6496 | "irix_limits_const" ; |
| 6497 | |
| 6498 | /* |
| 6499 | * File name selection pattern |
| 6500 | */ |
| 6501 | tSCC zIrix_Limits_ConstList[] = |
| 6502 | "fixinc-test-limits.h\0limits.h\0" ; |
| 6503 | /* |
| 6504 | * Machine/OS name selection pattern |
| 6505 | */ |
| 6506 | #define apzIrix_Limits_ConstMachs (const char**)NULL |
| 6507 | |
| 6508 | /* |
| 6509 | * content selection pattern - do fix if pattern found |
| 6510 | */ |
| 6511 | tSCC zIrix_Limits_ConstSelect0[] = |
| 6512 | "^extern const " ; |
| 6513 | |
| 6514 | #define IRIX_LIMITS_CONST_TEST_CT 1 |
| 6515 | static tTestDesc aIrix_Limits_ConstTests[] = { |
| 6516 | { .type: TT_EGREP, .pz_test_text: zIrix_Limits_ConstSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6517 | |
| 6518 | /* |
| 6519 | * Fix Command Arguments for Irix_Limits_Const |
| 6520 | */ |
| 6521 | static const char* apzIrix_Limits_ConstPatch[] = { |
| 6522 | "format" , |
| 6523 | "extern __const " , |
| 6524 | (char*)NULL }; |
| 6525 | |
| 6526 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6527 | * |
| 6528 | * Description of Irix_Stdio_Va_List fix |
| 6529 | */ |
| 6530 | tSCC zIrix_Stdio_Va_ListName[] = |
| 6531 | "irix_stdio_va_list" ; |
| 6532 | |
| 6533 | /* |
| 6534 | * File name selection pattern |
| 6535 | */ |
| 6536 | tSCC zIrix_Stdio_Va_ListList[] = |
| 6537 | "stdio.h\0" ; |
| 6538 | /* |
| 6539 | * Machine/OS name selection pattern |
| 6540 | */ |
| 6541 | #define apzIrix_Stdio_Va_ListMachs (const char**)NULL |
| 6542 | |
| 6543 | /* |
| 6544 | * content selection pattern - do fix if pattern found |
| 6545 | */ |
| 6546 | tSCC zIrix_Stdio_Va_ListSelect0[] = |
| 6547 | "/\\* va_list \\*/ char \\*" ; |
| 6548 | |
| 6549 | #define IRIX_STDIO_VA_LIST_TEST_CT 1 |
| 6550 | static tTestDesc aIrix_Stdio_Va_ListTests[] = { |
| 6551 | { .type: TT_EGREP, .pz_test_text: zIrix_Stdio_Va_ListSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6552 | |
| 6553 | /* |
| 6554 | * Fix Command Arguments for Irix_Stdio_Va_List |
| 6555 | */ |
| 6556 | static const char* apzIrix_Stdio_Va_ListPatch[] = { |
| 6557 | "format" , |
| 6558 | "__gnuc_va_list" , |
| 6559 | (char*)NULL }; |
| 6560 | |
| 6561 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6562 | * |
| 6563 | * Description of Kandr_Concat fix |
| 6564 | */ |
| 6565 | tSCC zKandr_ConcatName[] = |
| 6566 | "kandr_concat" ; |
| 6567 | |
| 6568 | /* |
| 6569 | * File name selection pattern |
| 6570 | */ |
| 6571 | tSCC zKandr_ConcatList[] = |
| 6572 | "sparc/asm_linkage.h\0sun*/asm_linkage.h\0arm/as_support.h\0arm/mc_type.h\0arm/xcb.h\0dev/chardefmac.h\0dev/ps_irq.h\0dev/screen.h\0dev/scsi.h\0sys/tty.h\0Xm.acorn/XmP.h\0bsd43/bsd43_.h\0" ; |
| 6573 | /* |
| 6574 | * Machine/OS name selection pattern |
| 6575 | */ |
| 6576 | #define apzKandr_ConcatMachs (const char**)NULL |
| 6577 | |
| 6578 | /* |
| 6579 | * content selection pattern - do fix if pattern found |
| 6580 | */ |
| 6581 | tSCC zKandr_ConcatSelect0[] = |
| 6582 | "/\\*\\*/" ; |
| 6583 | |
| 6584 | #define KANDR_CONCAT_TEST_CT 1 |
| 6585 | static tTestDesc aKandr_ConcatTests[] = { |
| 6586 | { .type: TT_EGREP, .pz_test_text: zKandr_ConcatSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6587 | |
| 6588 | /* |
| 6589 | * Fix Command Arguments for Kandr_Concat |
| 6590 | */ |
| 6591 | static const char* apzKandr_ConcatPatch[] = { |
| 6592 | "format" , |
| 6593 | "##" , |
| 6594 | (char*)NULL }; |
| 6595 | |
| 6596 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6597 | * |
| 6598 | * Description of Linux_Ia64_Ucontext fix |
| 6599 | */ |
| 6600 | tSCC zLinux_Ia64_UcontextName[] = |
| 6601 | "linux_ia64_ucontext" ; |
| 6602 | |
| 6603 | /* |
| 6604 | * File name selection pattern |
| 6605 | */ |
| 6606 | tSCC zLinux_Ia64_UcontextList[] = |
| 6607 | "sys/ucontext.h\0" ; |
| 6608 | /* |
| 6609 | * Machine/OS name selection pattern |
| 6610 | */ |
| 6611 | tSCC* apzLinux_Ia64_UcontextMachs[] = { |
| 6612 | "ia64-*-linux*" , |
| 6613 | (const char*)NULL }; |
| 6614 | |
| 6615 | /* |
| 6616 | * content selection pattern - do fix if pattern found |
| 6617 | */ |
| 6618 | tSCC zLinux_Ia64_UcontextSelect0[] = |
| 6619 | "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)" ; |
| 6620 | |
| 6621 | #define LINUX_IA64_UCONTEXT_TEST_CT 1 |
| 6622 | static tTestDesc aLinux_Ia64_UcontextTests[] = { |
| 6623 | { .type: TT_EGREP, .pz_test_text: zLinux_Ia64_UcontextSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6624 | |
| 6625 | /* |
| 6626 | * Fix Command Arguments for Linux_Ia64_Ucontext |
| 6627 | */ |
| 6628 | static const char* apzLinux_Ia64_UcontextPatch[] = { |
| 6629 | "format" , |
| 6630 | "__builtin_offsetof (struct sigcontext, sc_gr[0])" , |
| 6631 | (char*)NULL }; |
| 6632 | |
| 6633 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6634 | * |
| 6635 | * Description of Lynxos_No_Warning_In_Sys_Time_H fix |
| 6636 | */ |
| 6637 | tSCC zLynxos_No_Warning_In_Sys_Time_HName[] = |
| 6638 | "lynxos_no_warning_in_sys_time_h" ; |
| 6639 | |
| 6640 | /* |
| 6641 | * File name selection pattern |
| 6642 | */ |
| 6643 | tSCC zLynxos_No_Warning_In_Sys_Time_HList[] = |
| 6644 | "sys/time.h\0" ; |
| 6645 | /* |
| 6646 | * Machine/OS name selection pattern |
| 6647 | */ |
| 6648 | #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL |
| 6649 | |
| 6650 | /* |
| 6651 | * content selection pattern - do fix if pattern found |
| 6652 | */ |
| 6653 | tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] = |
| 6654 | "#warning[ \t]+Using <time.h> instead of <sys/time.h>" ; |
| 6655 | |
| 6656 | #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1 |
| 6657 | static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = { |
| 6658 | { .type: TT_EGREP, .pz_test_text: zLynxos_No_Warning_In_Sys_Time_HSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6659 | |
| 6660 | /* |
| 6661 | * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H |
| 6662 | */ |
| 6663 | static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = { |
| 6664 | "format" , |
| 6665 | "" , |
| 6666 | (char*)NULL }; |
| 6667 | |
| 6668 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6669 | * |
| 6670 | * Description of Lynxos_Missing_Putenv fix |
| 6671 | */ |
| 6672 | tSCC zLynxos_Missing_PutenvName[] = |
| 6673 | "lynxos_missing_putenv" ; |
| 6674 | |
| 6675 | /* |
| 6676 | * File name selection pattern |
| 6677 | */ |
| 6678 | tSCC zLynxos_Missing_PutenvList[] = |
| 6679 | "stdlib.h\0" ; |
| 6680 | /* |
| 6681 | * Machine/OS name selection pattern |
| 6682 | */ |
| 6683 | tSCC* apzLynxos_Missing_PutenvMachs[] = { |
| 6684 | "*-*-lynxos*" , |
| 6685 | (const char*)NULL }; |
| 6686 | |
| 6687 | /* |
| 6688 | * content selection pattern - do fix if pattern found |
| 6689 | */ |
| 6690 | tSCC zLynxos_Missing_PutenvSelect0[] = |
| 6691 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);" ; |
| 6692 | |
| 6693 | /* |
| 6694 | * content bypass pattern - skip fix if pattern found |
| 6695 | */ |
| 6696 | tSCC zLynxos_Missing_PutenvBypass0[] = |
| 6697 | "putenv[ \\t]*\\(" ; |
| 6698 | |
| 6699 | #define LYNXOS_MISSING_PUTENV_TEST_CT 2 |
| 6700 | static tTestDesc aLynxos_Missing_PutenvTests[] = { |
| 6701 | { .type: TT_NEGREP, .pz_test_text: zLynxos_Missing_PutenvBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6702 | { .type: TT_EGREP, .pz_test_text: zLynxos_Missing_PutenvSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6703 | |
| 6704 | /* |
| 6705 | * Fix Command Arguments for Lynxos_Missing_Putenv |
| 6706 | */ |
| 6707 | static const char* apzLynxos_Missing_PutenvPatch[] = { |
| 6708 | "format" , |
| 6709 | "%0\n\ |
| 6710 | extern int putenv\t\t\t\t_AP((char *));" , |
| 6711 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);" , |
| 6712 | (char*)NULL }; |
| 6713 | |
| 6714 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6715 | * |
| 6716 | * Description of Machine_Ansi_H_Va_List fix |
| 6717 | */ |
| 6718 | tSCC zMachine_Ansi_H_Va_ListName[] = |
| 6719 | "machine_ansi_h_va_list" ; |
| 6720 | |
| 6721 | /* |
| 6722 | * File name selection pattern |
| 6723 | */ |
| 6724 | #define zMachine_Ansi_H_Va_ListList (char*)NULL |
| 6725 | /* |
| 6726 | * Machine/OS name selection pattern |
| 6727 | */ |
| 6728 | #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL |
| 6729 | |
| 6730 | /* |
| 6731 | * content selection pattern - do fix if pattern found |
| 6732 | */ |
| 6733 | tSCC zMachine_Ansi_H_Va_ListSelect0[] = |
| 6734 | "define[ \t]+_BSD_VA_LIST_[ \t]" ; |
| 6735 | |
| 6736 | /* |
| 6737 | * content bypass pattern - skip fix if pattern found |
| 6738 | */ |
| 6739 | tSCC zMachine_Ansi_H_Va_ListBypass0[] = |
| 6740 | "__builtin_va_list" ; |
| 6741 | |
| 6742 | #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2 |
| 6743 | static tTestDesc aMachine_Ansi_H_Va_ListTests[] = { |
| 6744 | { .type: TT_NEGREP, .pz_test_text: zMachine_Ansi_H_Va_ListBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6745 | { .type: TT_EGREP, .pz_test_text: zMachine_Ansi_H_Va_ListSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6746 | |
| 6747 | /* |
| 6748 | * Fix Command Arguments for Machine_Ansi_H_Va_List |
| 6749 | */ |
| 6750 | static const char* apzMachine_Ansi_H_Va_ListPatch[] = { |
| 6751 | "format" , |
| 6752 | "%1__builtin_va_list" , |
| 6753 | "(define[ \t]+_BSD_VA_LIST_[ \t]+).*" , |
| 6754 | (char*)NULL }; |
| 6755 | |
| 6756 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6757 | * |
| 6758 | * Description of Machine_Name fix |
| 6759 | */ |
| 6760 | tSCC zMachine_NameName[] = |
| 6761 | "machine_name" ; |
| 6762 | |
| 6763 | /* |
| 6764 | * File name selection pattern |
| 6765 | */ |
| 6766 | #define zMachine_NameList (char*)NULL |
| 6767 | /* |
| 6768 | * Machine/OS name selection pattern |
| 6769 | */ |
| 6770 | #define apzMachine_NameMachs (const char**)NULL |
| 6771 | |
| 6772 | /* |
| 6773 | * perform the C function call test |
| 6774 | */ |
| 6775 | tSCC zMachine_NameFTst0[] = "machine_name" ; |
| 6776 | |
| 6777 | #define MACHINE_NAME_TEST_CT 1 |
| 6778 | static tTestDesc aMachine_NameTests[] = { |
| 6779 | { .type: TT_FUNCTION, .pz_test_text: zMachine_NameFTst0, .p_test_regex: 0 /* unused */ }, }; |
| 6780 | |
| 6781 | /* |
| 6782 | * Fix Command Arguments for Machine_Name |
| 6783 | */ |
| 6784 | static const char* apzMachine_NamePatch[] = { |
| 6785 | "machine_name" , |
| 6786 | (char*)NULL }; |
| 6787 | |
| 6788 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6789 | * |
| 6790 | * Description of Math_Exception fix |
| 6791 | */ |
| 6792 | tSCC zMath_ExceptionName[] = |
| 6793 | "math_exception" ; |
| 6794 | |
| 6795 | /* |
| 6796 | * File name selection pattern |
| 6797 | */ |
| 6798 | tSCC zMath_ExceptionList[] = |
| 6799 | "math.h\0" ; |
| 6800 | /* |
| 6801 | * Machine/OS name selection pattern |
| 6802 | */ |
| 6803 | #define apzMath_ExceptionMachs (const char**)NULL |
| 6804 | |
| 6805 | /* |
| 6806 | * content selection pattern - do fix if pattern found |
| 6807 | */ |
| 6808 | tSCC zMath_ExceptionSelect0[] = |
| 6809 | "struct exception" ; |
| 6810 | |
| 6811 | /* |
| 6812 | * content bypass pattern - skip fix if pattern found |
| 6813 | */ |
| 6814 | tSCC zMath_ExceptionBypass0[] = |
| 6815 | "__cplusplus" ; |
| 6816 | |
| 6817 | #define MATH_EXCEPTION_TEST_CT 2 |
| 6818 | static tTestDesc aMath_ExceptionTests[] = { |
| 6819 | { .type: TT_NEGREP, .pz_test_text: zMath_ExceptionBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6820 | { .type: TT_EGREP, .pz_test_text: zMath_ExceptionSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6821 | |
| 6822 | /* |
| 6823 | * Fix Command Arguments for Math_Exception |
| 6824 | */ |
| 6825 | static const char* apzMath_ExceptionPatch[] = { |
| 6826 | "wrap" , |
| 6827 | "#ifdef __cplusplus\n\ |
| 6828 | #define exception __math_exception\n\ |
| 6829 | #endif\n" , |
| 6830 | "#ifdef __cplusplus\n\ |
| 6831 | #undef exception\n\ |
| 6832 | #endif\n" , |
| 6833 | (char*)NULL }; |
| 6834 | |
| 6835 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6836 | * |
| 6837 | * Description of Math_Huge_Val_From_Dbl_Max fix |
| 6838 | */ |
| 6839 | tSCC zMath_Huge_Val_From_Dbl_MaxName[] = |
| 6840 | "math_huge_val_from_dbl_max" ; |
| 6841 | |
| 6842 | /* |
| 6843 | * File name selection pattern |
| 6844 | */ |
| 6845 | tSCC zMath_Huge_Val_From_Dbl_MaxList[] = |
| 6846 | "math.h\0" ; |
| 6847 | /* |
| 6848 | * Machine/OS name selection pattern |
| 6849 | */ |
| 6850 | #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL |
| 6851 | |
| 6852 | /* |
| 6853 | * content selection pattern - do fix if pattern found |
| 6854 | */ |
| 6855 | tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] = |
| 6856 | "define[ \t]+HUGE_VAL[ \t]+DBL_MAX" ; |
| 6857 | |
| 6858 | /* |
| 6859 | * content bypass pattern - skip fix if pattern found |
| 6860 | */ |
| 6861 | tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = |
| 6862 | "define[ \t]+DBL_MAX" ; |
| 6863 | |
| 6864 | #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 |
| 6865 | static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { |
| 6866 | { .type: TT_NEGREP, .pz_test_text: zMath_Huge_Val_From_Dbl_MaxBypass0, .p_test_regex: (regex_t*)NULL }, |
| 6867 | { .type: TT_EGREP, .pz_test_text: zMath_Huge_Val_From_Dbl_MaxSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6868 | |
| 6869 | /* |
| 6870 | * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max |
| 6871 | */ |
| 6872 | static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh" , "-c" , |
| 6873 | "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\ |
| 6874 | \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\ |
| 6875 | \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\ |
| 6876 | \telse cat\n\ |
| 6877 | \tfi" , |
| 6878 | (char*)NULL }; |
| 6879 | |
| 6880 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6881 | * |
| 6882 | * Description of Nested_Auth_Des fix |
| 6883 | */ |
| 6884 | tSCC zNested_Auth_DesName[] = |
| 6885 | "nested_auth_des" ; |
| 6886 | |
| 6887 | /* |
| 6888 | * File name selection pattern |
| 6889 | */ |
| 6890 | tSCC zNested_Auth_DesList[] = |
| 6891 | "rpc/rpc.h\0" ; |
| 6892 | /* |
| 6893 | * Machine/OS name selection pattern |
| 6894 | */ |
| 6895 | #define apzNested_Auth_DesMachs (const char**)NULL |
| 6896 | |
| 6897 | /* |
| 6898 | * content selection pattern - do fix if pattern found |
| 6899 | */ |
| 6900 | tSCC zNested_Auth_DesSelect0[] = |
| 6901 | "(/\\*.*rpc/auth_des\\.h>.*)/\\*" ; |
| 6902 | |
| 6903 | #define NESTED_AUTH_DES_TEST_CT 1 |
| 6904 | static tTestDesc aNested_Auth_DesTests[] = { |
| 6905 | { .type: TT_EGREP, .pz_test_text: zNested_Auth_DesSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 6906 | |
| 6907 | /* |
| 6908 | * Fix Command Arguments for Nested_Auth_Des |
| 6909 | */ |
| 6910 | static const char* apzNested_Auth_DesPatch[] = { |
| 6911 | "format" , |
| 6912 | "%1*/ /*" , |
| 6913 | (char*)NULL }; |
| 6914 | |
| 6915 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6916 | * |
| 6917 | * Description of Netbsd_C99_Inline_1 fix |
| 6918 | */ |
| 6919 | tSCC zNetbsd_C99_Inline_1Name[] = |
| 6920 | "netbsd_c99_inline_1" ; |
| 6921 | |
| 6922 | /* |
| 6923 | * File name selection pattern |
| 6924 | */ |
| 6925 | tSCC zNetbsd_C99_Inline_1List[] = |
| 6926 | "signal.h\0" ; |
| 6927 | /* |
| 6928 | * Machine/OS name selection pattern |
| 6929 | */ |
| 6930 | tSCC* apzNetbsd_C99_Inline_1Machs[] = { |
| 6931 | "*-*-netbsd*" , |
| 6932 | (const char*)NULL }; |
| 6933 | |
| 6934 | /* |
| 6935 | * content selection pattern - do fix if pattern found |
| 6936 | */ |
| 6937 | tSCC zNetbsd_C99_Inline_1Select0[] = |
| 6938 | "extern __inline int" ; |
| 6939 | |
| 6940 | #define NETBSD_C99_INLINE_1_TEST_CT 1 |
| 6941 | static tTestDesc aNetbsd_C99_Inline_1Tests[] = { |
| 6942 | { .type: TT_EGREP, .pz_test_text: zNetbsd_C99_Inline_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 6943 | |
| 6944 | /* |
| 6945 | * Fix Command Arguments for Netbsd_C99_Inline_1 |
| 6946 | */ |
| 6947 | static const char* apzNetbsd_C99_Inline_1Patch[] = { |
| 6948 | "format" , |
| 6949 | "extern\n\ |
| 6950 | #ifdef __GNUC_STDC_INLINE__\n\ |
| 6951 | __attribute__((__gnu_inline__))\n\ |
| 6952 | #endif\n\ |
| 6953 | __inline int" , |
| 6954 | (char*)NULL }; |
| 6955 | |
| 6956 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6957 | * |
| 6958 | * Description of Netbsd_C99_Inline_2 fix |
| 6959 | */ |
| 6960 | tSCC zNetbsd_C99_Inline_2Name[] = |
| 6961 | "netbsd_c99_inline_2" ; |
| 6962 | |
| 6963 | /* |
| 6964 | * File name selection pattern |
| 6965 | */ |
| 6966 | tSCC zNetbsd_C99_Inline_2List[] = |
| 6967 | "signal.h\0" ; |
| 6968 | /* |
| 6969 | * Machine/OS name selection pattern |
| 6970 | */ |
| 6971 | tSCC* apzNetbsd_C99_Inline_2Machs[] = { |
| 6972 | "*-*-netbsd*" , |
| 6973 | (const char*)NULL }; |
| 6974 | |
| 6975 | /* |
| 6976 | * content selection pattern - do fix if pattern found |
| 6977 | */ |
| 6978 | tSCC zNetbsd_C99_Inline_2Select0[] = |
| 6979 | "#define _SIGINLINE extern __inline" ; |
| 6980 | |
| 6981 | #define NETBSD_C99_INLINE_2_TEST_CT 1 |
| 6982 | static tTestDesc aNetbsd_C99_Inline_2Tests[] = { |
| 6983 | { .type: TT_EGREP, .pz_test_text: zNetbsd_C99_Inline_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 6984 | |
| 6985 | /* |
| 6986 | * Fix Command Arguments for Netbsd_C99_Inline_2 |
| 6987 | */ |
| 6988 | static const char* apzNetbsd_C99_Inline_2Patch[] = { |
| 6989 | "format" , |
| 6990 | "#ifdef __GNUC_STDC_INLINE__\n\ |
| 6991 | #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\ |
| 6992 | #else\n\ |
| 6993 | %0\n\ |
| 6994 | #endif" , |
| 6995 | (char*)NULL }; |
| 6996 | |
| 6997 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6998 | * |
| 6999 | * Description of Netbsd_Extra_Semicolon fix |
| 7000 | */ |
| 7001 | tSCC [] = |
| 7002 | "netbsd_extra_semicolon" ; |
| 7003 | |
| 7004 | /* |
| 7005 | * File name selection pattern |
| 7006 | */ |
| 7007 | tSCC [] = |
| 7008 | "sys/cdefs.h\0" ; |
| 7009 | /* |
| 7010 | * Machine/OS name selection pattern |
| 7011 | */ |
| 7012 | tSCC* [] = { |
| 7013 | "*-*-netbsd*" , |
| 7014 | (const char*)NULL }; |
| 7015 | |
| 7016 | /* |
| 7017 | * content selection pattern - do fix if pattern found |
| 7018 | */ |
| 7019 | tSCC [] = |
| 7020 | "#define[ \t]*__END_DECLS[ \t]*};" ; |
| 7021 | |
| 7022 | #define 1 |
| 7023 | static tTestDesc [] = { |
| 7024 | { .type: TT_EGREP, .pz_test_text: zNetbsd_Extra_SemicolonSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7025 | |
| 7026 | /* |
| 7027 | * Fix Command Arguments for Netbsd_Extra_Semicolon |
| 7028 | */ |
| 7029 | static const char* [] = { |
| 7030 | "format" , |
| 7031 | "#define __END_DECLS }" , |
| 7032 | (char*)NULL }; |
| 7033 | |
| 7034 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7035 | * |
| 7036 | * Description of Newlib_Stdint_1 fix |
| 7037 | */ |
| 7038 | tSCC zNewlib_Stdint_1Name[] = |
| 7039 | "newlib_stdint_1" ; |
| 7040 | |
| 7041 | /* |
| 7042 | * File name selection pattern |
| 7043 | */ |
| 7044 | tSCC zNewlib_Stdint_1List[] = |
| 7045 | "stdint-newlib.h\0stdint.h\0" ; |
| 7046 | /* |
| 7047 | * Machine/OS name selection pattern |
| 7048 | */ |
| 7049 | #define apzNewlib_Stdint_1Machs (const char**)NULL |
| 7050 | |
| 7051 | /* |
| 7052 | * content selection pattern - do fix if pattern found |
| 7053 | */ |
| 7054 | tSCC zNewlib_Stdint_1Select0[] = |
| 7055 | "@todo - Add support for wint_t types" ; |
| 7056 | |
| 7057 | #define NEWLIB_STDINT_1_TEST_CT 1 |
| 7058 | static tTestDesc aNewlib_Stdint_1Tests[] = { |
| 7059 | { .type: TT_EGREP, .pz_test_text: zNewlib_Stdint_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 7060 | |
| 7061 | /* |
| 7062 | * Fix Command Arguments for Newlib_Stdint_1 |
| 7063 | */ |
| 7064 | static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z, |
| 7065 | "-e" , "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@" , |
| 7066 | "-e" , "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@" , |
| 7067 | "-e" , "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@" , |
| 7068 | "-e" , "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@" , |
| 7069 | "-e" , "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@" , |
| 7070 | "-e" , "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@" , |
| 7071 | "-e" , "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@" , |
| 7072 | "-e" , "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@" , |
| 7073 | "-e" , "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@" , |
| 7074 | "-e" , "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@" , |
| 7075 | "-e" , "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@" , |
| 7076 | "-e" , "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@" , |
| 7077 | "-e" , "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@" , |
| 7078 | "-e" , "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@" , |
| 7079 | (char*)NULL }; |
| 7080 | |
| 7081 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7082 | * |
| 7083 | * Description of Newlib_Stdint_2 fix |
| 7084 | */ |
| 7085 | tSCC zNewlib_Stdint_2Name[] = |
| 7086 | "newlib_stdint_2" ; |
| 7087 | |
| 7088 | /* |
| 7089 | * File name selection pattern |
| 7090 | */ |
| 7091 | tSCC zNewlib_Stdint_2List[] = |
| 7092 | "stdint-newlib.h\0stdint.h\0" ; |
| 7093 | /* |
| 7094 | * Machine/OS name selection pattern |
| 7095 | */ |
| 7096 | #define apzNewlib_Stdint_2Machs (const char**)NULL |
| 7097 | |
| 7098 | /* |
| 7099 | * content selection pattern - do fix if pattern found |
| 7100 | */ |
| 7101 | tSCC zNewlib_Stdint_2Select0[] = |
| 7102 | "@todo - Add support for wint_t types" ; |
| 7103 | |
| 7104 | #define NEWLIB_STDINT_2_TEST_CT 1 |
| 7105 | static tTestDesc aNewlib_Stdint_2Tests[] = { |
| 7106 | { .type: TT_EGREP, .pz_test_text: zNewlib_Stdint_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 7107 | |
| 7108 | /* |
| 7109 | * Fix Command Arguments for Newlib_Stdint_2 |
| 7110 | */ |
| 7111 | static const char* apzNewlib_Stdint_2Patch[] = { |
| 7112 | "format" , |
| 7113 | "#define INTMAX_MAX __INTMAX_MAX__\n\ |
| 7114 | #define INTMAX_MIN (-INTMAX_MAX - 1)\n\ |
| 7115 | #define UINTMAX_MAX __UINTMAX_MAX__\n\ |
| 7116 | #define WCHAR_MAX __WCHAR_MAX__\n\ |
| 7117 | #define WCHAR_MIN __WCHAR_MIN__\n\ |
| 7118 | #define WINT_MAX __WINT_MAX__\n\ |
| 7119 | #define WINT_MIN __WINT_MIN__\n\n\ |
| 7120 | %0" , |
| 7121 | "/\\*\\* Macros for minimum-width integer constant expressions \\*/" , |
| 7122 | (char*)NULL }; |
| 7123 | |
| 7124 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7125 | * |
| 7126 | * Description of Next_Math_Prefix fix |
| 7127 | */ |
| 7128 | tSCC zNext_Math_PrefixName[] = |
| 7129 | "next_math_prefix" ; |
| 7130 | |
| 7131 | /* |
| 7132 | * File name selection pattern |
| 7133 | */ |
| 7134 | tSCC zNext_Math_PrefixList[] = |
| 7135 | "ansi/math.h\0" ; |
| 7136 | /* |
| 7137 | * Machine/OS name selection pattern |
| 7138 | */ |
| 7139 | #define apzNext_Math_PrefixMachs (const char**)NULL |
| 7140 | |
| 7141 | /* |
| 7142 | * content selection pattern - do fix if pattern found |
| 7143 | */ |
| 7144 | tSCC zNext_Math_PrefixSelect0[] = |
| 7145 | "^extern[ \t]+double[ \t]+__const__[ \t]" ; |
| 7146 | |
| 7147 | #define NEXT_MATH_PREFIX_TEST_CT 1 |
| 7148 | static tTestDesc aNext_Math_PrefixTests[] = { |
| 7149 | { .type: TT_EGREP, .pz_test_text: zNext_Math_PrefixSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7150 | |
| 7151 | /* |
| 7152 | * Fix Command Arguments for Next_Math_Prefix |
| 7153 | */ |
| 7154 | static const char* apzNext_Math_PrefixPatch[] = { |
| 7155 | "format" , |
| 7156 | "extern double %1(" , |
| 7157 | "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(" , |
| 7158 | (char*)NULL }; |
| 7159 | |
| 7160 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7161 | * |
| 7162 | * Description of Next_Template fix |
| 7163 | */ |
| 7164 | tSCC zNext_TemplateName[] = |
| 7165 | "next_template" ; |
| 7166 | |
| 7167 | /* |
| 7168 | * File name selection pattern |
| 7169 | */ |
| 7170 | tSCC zNext_TemplateList[] = |
| 7171 | "bsd/libc.h\0" ; |
| 7172 | /* |
| 7173 | * Machine/OS name selection pattern |
| 7174 | */ |
| 7175 | #define apzNext_TemplateMachs (const char**)NULL |
| 7176 | |
| 7177 | /* |
| 7178 | * content selection pattern - do fix if pattern found |
| 7179 | */ |
| 7180 | tSCC zNext_TemplateSelect0[] = |
| 7181 | "[ \t]template\\)" ; |
| 7182 | |
| 7183 | #define NEXT_TEMPLATE_TEST_CT 1 |
| 7184 | static tTestDesc aNext_TemplateTests[] = { |
| 7185 | { .type: TT_EGREP, .pz_test_text: zNext_TemplateSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7186 | |
| 7187 | /* |
| 7188 | * Fix Command Arguments for Next_Template |
| 7189 | */ |
| 7190 | static const char* apzNext_TemplatePatch[] = { |
| 7191 | "format" , |
| 7192 | "(%1)" , |
| 7193 | "\\(([^)]*)[ \t]template\\)" , |
| 7194 | (char*)NULL }; |
| 7195 | |
| 7196 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7197 | * |
| 7198 | * Description of Next_Volitile fix |
| 7199 | */ |
| 7200 | tSCC zNext_VolitileName[] = |
| 7201 | "next_volitile" ; |
| 7202 | |
| 7203 | /* |
| 7204 | * File name selection pattern |
| 7205 | */ |
| 7206 | tSCC zNext_VolitileList[] = |
| 7207 | "ansi/stdlib.h\0" ; |
| 7208 | /* |
| 7209 | * Machine/OS name selection pattern |
| 7210 | */ |
| 7211 | #define apzNext_VolitileMachs (const char**)NULL |
| 7212 | |
| 7213 | /* |
| 7214 | * content selection pattern - do fix if pattern found |
| 7215 | */ |
| 7216 | tSCC zNext_VolitileSelect0[] = |
| 7217 | "^extern[ \t]+volatile[ \t]+void[ \t]" ; |
| 7218 | |
| 7219 | #define NEXT_VOLITILE_TEST_CT 1 |
| 7220 | static tTestDesc aNext_VolitileTests[] = { |
| 7221 | { .type: TT_EGREP, .pz_test_text: zNext_VolitileSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7222 | |
| 7223 | /* |
| 7224 | * Fix Command Arguments for Next_Volitile |
| 7225 | */ |
| 7226 | static const char* apzNext_VolitilePatch[] = { |
| 7227 | "format" , |
| 7228 | "extern void %1(" , |
| 7229 | "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(" , |
| 7230 | (char*)NULL }; |
| 7231 | |
| 7232 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7233 | * |
| 7234 | * Description of Next_Wait_Union fix |
| 7235 | */ |
| 7236 | tSCC zNext_Wait_UnionName[] = |
| 7237 | "next_wait_union" ; |
| 7238 | |
| 7239 | /* |
| 7240 | * File name selection pattern |
| 7241 | */ |
| 7242 | tSCC zNext_Wait_UnionList[] = |
| 7243 | "sys/wait.h\0" ; |
| 7244 | /* |
| 7245 | * Machine/OS name selection pattern |
| 7246 | */ |
| 7247 | #define apzNext_Wait_UnionMachs (const char**)NULL |
| 7248 | |
| 7249 | /* |
| 7250 | * content selection pattern - do fix if pattern found |
| 7251 | */ |
| 7252 | tSCC zNext_Wait_UnionSelect0[] = |
| 7253 | "wait\\(union wait" ; |
| 7254 | |
| 7255 | #define NEXT_WAIT_UNION_TEST_CT 1 |
| 7256 | static tTestDesc aNext_Wait_UnionTests[] = { |
| 7257 | { .type: TT_EGREP, .pz_test_text: zNext_Wait_UnionSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7258 | |
| 7259 | /* |
| 7260 | * Fix Command Arguments for Next_Wait_Union |
| 7261 | */ |
| 7262 | static const char* apzNext_Wait_UnionPatch[] = { |
| 7263 | "format" , |
| 7264 | "wait(void" , |
| 7265 | (char*)NULL }; |
| 7266 | |
| 7267 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7268 | * |
| 7269 | * Description of Nodeent_Syntax fix |
| 7270 | */ |
| 7271 | tSCC zNodeent_SyntaxName[] = |
| 7272 | "nodeent_syntax" ; |
| 7273 | |
| 7274 | /* |
| 7275 | * File name selection pattern |
| 7276 | */ |
| 7277 | tSCC zNodeent_SyntaxList[] = |
| 7278 | "netdnet/dnetdb.h\0" ; |
| 7279 | /* |
| 7280 | * Machine/OS name selection pattern |
| 7281 | */ |
| 7282 | #define apzNodeent_SyntaxMachs (const char**)NULL |
| 7283 | |
| 7284 | /* |
| 7285 | * content selection pattern - do fix if pattern found |
| 7286 | */ |
| 7287 | tSCC zNodeent_SyntaxSelect0[] = |
| 7288 | "char[ \t]*\\*na_addr[ \t]*$" ; |
| 7289 | |
| 7290 | #define NODEENT_SYNTAX_TEST_CT 1 |
| 7291 | static tTestDesc aNodeent_SyntaxTests[] = { |
| 7292 | { .type: TT_EGREP, .pz_test_text: zNodeent_SyntaxSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7293 | |
| 7294 | /* |
| 7295 | * Fix Command Arguments for Nodeent_Syntax |
| 7296 | */ |
| 7297 | static const char* apzNodeent_SyntaxPatch[] = { |
| 7298 | "format" , |
| 7299 | "%0;" , |
| 7300 | (char*)NULL }; |
| 7301 | |
| 7302 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7303 | * |
| 7304 | * Description of Openbsd_Null_Definition fix |
| 7305 | */ |
| 7306 | tSCC zOpenbsd_Null_DefinitionName[] = |
| 7307 | "openbsd_null_definition" ; |
| 7308 | |
| 7309 | /* |
| 7310 | * File name selection pattern |
| 7311 | */ |
| 7312 | tSCC zOpenbsd_Null_DefinitionList[] = |
| 7313 | "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0" ; |
| 7314 | /* |
| 7315 | * Machine/OS name selection pattern |
| 7316 | */ |
| 7317 | tSCC* apzOpenbsd_Null_DefinitionMachs[] = { |
| 7318 | "*-*-openbsd*" , |
| 7319 | (const char*)NULL }; |
| 7320 | |
| 7321 | /* |
| 7322 | * content selection pattern - do fix if pattern found |
| 7323 | */ |
| 7324 | tSCC zOpenbsd_Null_DefinitionSelect0[] = |
| 7325 | "__GNUG__" ; |
| 7326 | |
| 7327 | #define OPENBSD_NULL_DEFINITION_TEST_CT 1 |
| 7328 | static tTestDesc aOpenbsd_Null_DefinitionTests[] = { |
| 7329 | { .type: TT_EGREP, .pz_test_text: zOpenbsd_Null_DefinitionSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7330 | |
| 7331 | /* |
| 7332 | * Fix Command Arguments for Openbsd_Null_Definition |
| 7333 | */ |
| 7334 | static const char* apzOpenbsd_Null_DefinitionPatch[] = { |
| 7335 | "format" , |
| 7336 | "#ifndef NULL\n\ |
| 7337 | #ifdef __cplusplus\n\ |
| 7338 | #ifdef __GNUG__\n\ |
| 7339 | #define NULL\t__null\n\ |
| 7340 | #else\t /* ! __GNUG__ */\n\ |
| 7341 | #define NULL\t0L\n\ |
| 7342 | #endif\t /* __GNUG__ */\n\ |
| 7343 | #else\t /* ! __cplusplus */\n\ |
| 7344 | #define NULL\t((void *)0)\n\ |
| 7345 | #endif\t /* __cplusplus */\n\ |
| 7346 | #endif\t /* !NULL */" , |
| 7347 | "^#ifndef[ \t]*NULL\n\ |
| 7348 | ^#ifdef[ \t]*__GNUG__\n\ |
| 7349 | ^#define[ \t]*NULL[ \t]*__null\n\ |
| 7350 | ^#else\n\ |
| 7351 | ^#define[ \t]*NULL[ \t]*0L\n\ |
| 7352 | ^#endif\n\ |
| 7353 | ^#endif" , |
| 7354 | (char*)NULL }; |
| 7355 | |
| 7356 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7357 | * |
| 7358 | * Description of Obstack_Lvalue_Cast fix |
| 7359 | */ |
| 7360 | tSCC zObstack_Lvalue_CastName[] = |
| 7361 | "obstack_lvalue_cast" ; |
| 7362 | |
| 7363 | /* |
| 7364 | * File name selection pattern |
| 7365 | */ |
| 7366 | tSCC zObstack_Lvalue_CastList[] = |
| 7367 | "obstack.h\0" ; |
| 7368 | /* |
| 7369 | * Machine/OS name selection pattern |
| 7370 | */ |
| 7371 | #define apzObstack_Lvalue_CastMachs (const char**)NULL |
| 7372 | |
| 7373 | /* |
| 7374 | * content selection pattern - do fix if pattern found |
| 7375 | */ |
| 7376 | tSCC zObstack_Lvalue_CastSelect0[] = |
| 7377 | "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)" ; |
| 7378 | |
| 7379 | #define OBSTACK_LVALUE_CAST_TEST_CT 1 |
| 7380 | static tTestDesc aObstack_Lvalue_CastTests[] = { |
| 7381 | { .type: TT_EGREP, .pz_test_text: zObstack_Lvalue_CastSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7382 | |
| 7383 | /* |
| 7384 | * Fix Command Arguments for Obstack_Lvalue_Cast |
| 7385 | */ |
| 7386 | static const char* apzObstack_Lvalue_CastPatch[] = { |
| 7387 | "format" , |
| 7388 | "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))" , |
| 7389 | (char*)NULL }; |
| 7390 | |
| 7391 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7392 | * |
| 7393 | * Description of Openbsd_Va_Start fix |
| 7394 | */ |
| 7395 | tSCC zOpenbsd_Va_StartName[] = |
| 7396 | "openbsd_va_start" ; |
| 7397 | |
| 7398 | /* |
| 7399 | * File name selection pattern |
| 7400 | */ |
| 7401 | tSCC zOpenbsd_Va_StartList[] = |
| 7402 | "stdarg.h\0" ; |
| 7403 | /* |
| 7404 | * Machine/OS name selection pattern |
| 7405 | */ |
| 7406 | tSCC* apzOpenbsd_Va_StartMachs[] = { |
| 7407 | "*-*-openbsd*" , |
| 7408 | (const char*)NULL }; |
| 7409 | |
| 7410 | /* |
| 7411 | * content selection pattern - do fix if pattern found |
| 7412 | */ |
| 7413 | tSCC zOpenbsd_Va_StartSelect0[] = |
| 7414 | "__builtin_stdarg_start" ; |
| 7415 | |
| 7416 | #define OPENBSD_VA_START_TEST_CT 1 |
| 7417 | static tTestDesc aOpenbsd_Va_StartTests[] = { |
| 7418 | { .type: TT_EGREP, .pz_test_text: zOpenbsd_Va_StartSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7419 | |
| 7420 | /* |
| 7421 | * Fix Command Arguments for Openbsd_Va_Start |
| 7422 | */ |
| 7423 | static const char* apzOpenbsd_Va_StartPatch[] = { |
| 7424 | "format" , |
| 7425 | "__builtin_va_start" , |
| 7426 | (char*)NULL }; |
| 7427 | |
| 7428 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7429 | * |
| 7430 | * Description of Osf_Namespace_A fix |
| 7431 | */ |
| 7432 | tSCC zOsf_Namespace_AName[] = |
| 7433 | "osf_namespace_a" ; |
| 7434 | |
| 7435 | /* |
| 7436 | * File name selection pattern |
| 7437 | */ |
| 7438 | tSCC zOsf_Namespace_AList[] = |
| 7439 | "reg_types.h\0sys/lc_core.h\0" ; |
| 7440 | /* |
| 7441 | * Machine/OS name selection pattern |
| 7442 | */ |
| 7443 | #define apzOsf_Namespace_AMachs (const char**)NULL |
| 7444 | |
| 7445 | /* |
| 7446 | * perform the 'test' shell command - do fix on success |
| 7447 | */ |
| 7448 | tSCC zOsf_Namespace_ATest0[] = |
| 7449 | " -r reg_types.h" ; |
| 7450 | tSCC zOsf_Namespace_ATest1[] = |
| 7451 | " -r sys/lc_core.h" ; |
| 7452 | tSCC zOsf_Namespace_ATest2[] = |
| 7453 | " -n \"`grep '} regex_t;' reg_types.h`\"" ; |
| 7454 | tSCC zOsf_Namespace_ATest3[] = |
| 7455 | " -z \"`grep __regex_t regex.h`\"" ; |
| 7456 | |
| 7457 | #define OSF_NAMESPACE_A_TEST_CT 4 |
| 7458 | static tTestDesc aOsf_Namespace_ATests[] = { |
| 7459 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_ATest0, .p_test_regex: 0 /* unused */ }, |
| 7460 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_ATest1, .p_test_regex: 0 /* unused */ }, |
| 7461 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_ATest2, .p_test_regex: 0 /* unused */ }, |
| 7462 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_ATest3, .p_test_regex: 0 /* unused */ }, }; |
| 7463 | |
| 7464 | /* |
| 7465 | * Fix Command Arguments for Osf_Namespace_A |
| 7466 | */ |
| 7467 | static const char* apzOsf_Namespace_APatch[] = { |
| 7468 | "format" , |
| 7469 | "__%0" , |
| 7470 | "reg(ex|off|match)_t" , |
| 7471 | (char*)NULL }; |
| 7472 | |
| 7473 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7474 | * |
| 7475 | * Description of Osf_Namespace_C fix |
| 7476 | */ |
| 7477 | tSCC zOsf_Namespace_CName[] = |
| 7478 | "osf_namespace_c" ; |
| 7479 | |
| 7480 | /* |
| 7481 | * File name selection pattern |
| 7482 | */ |
| 7483 | tSCC zOsf_Namespace_CList[] = |
| 7484 | "regex.h\0" ; |
| 7485 | /* |
| 7486 | * Machine/OS name selection pattern |
| 7487 | */ |
| 7488 | #define apzOsf_Namespace_CMachs (const char**)NULL |
| 7489 | |
| 7490 | /* |
| 7491 | * content selection pattern - do fix if pattern found |
| 7492 | */ |
| 7493 | tSCC zOsf_Namespace_CSelect0[] = |
| 7494 | "#include <reg_types.h>.*" ; |
| 7495 | |
| 7496 | /* |
| 7497 | * perform the 'test' shell command - do fix on success |
| 7498 | */ |
| 7499 | tSCC zOsf_Namespace_CTest0[] = |
| 7500 | " -r reg_types.h" ; |
| 7501 | tSCC zOsf_Namespace_CTest1[] = |
| 7502 | " -r sys/lc_core.h" ; |
| 7503 | tSCC zOsf_Namespace_CTest2[] = |
| 7504 | " -n \"`grep '} regex_t;' reg_types.h`\"" ; |
| 7505 | tSCC zOsf_Namespace_CTest3[] = |
| 7506 | " -z \"`grep __regex_t regex.h`\"" ; |
| 7507 | |
| 7508 | #define OSF_NAMESPACE_C_TEST_CT 5 |
| 7509 | static tTestDesc aOsf_Namespace_CTests[] = { |
| 7510 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_CTest0, .p_test_regex: 0 /* unused */ }, |
| 7511 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_CTest1, .p_test_regex: 0 /* unused */ }, |
| 7512 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_CTest2, .p_test_regex: 0 /* unused */ }, |
| 7513 | { .type: TT_TEST, .pz_test_text: zOsf_Namespace_CTest3, .p_test_regex: 0 /* unused */ }, |
| 7514 | { .type: TT_EGREP, .pz_test_text: zOsf_Namespace_CSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7515 | |
| 7516 | /* |
| 7517 | * Fix Command Arguments for Osf_Namespace_C |
| 7518 | */ |
| 7519 | static const char* apzOsf_Namespace_CPatch[] = { |
| 7520 | "format" , |
| 7521 | "%0\n\ |
| 7522 | typedef __regex_t\tregex_t;\n\ |
| 7523 | typedef __regoff_t\tregoff_t;\n\ |
| 7524 | typedef __regmatch_t\tregmatch_t;" , |
| 7525 | (char*)NULL }; |
| 7526 | |
| 7527 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7528 | * |
| 7529 | * Description of Pthread_Incomplete_Struct_Argument fix |
| 7530 | */ |
| 7531 | tSCC zPthread_Incomplete_Struct_ArgumentName[] = |
| 7532 | "pthread_incomplete_struct_argument" ; |
| 7533 | |
| 7534 | /* |
| 7535 | * File name selection pattern |
| 7536 | */ |
| 7537 | tSCC zPthread_Incomplete_Struct_ArgumentList[] = |
| 7538 | "pthread.h\0" ; |
| 7539 | /* |
| 7540 | * Machine/OS name selection pattern |
| 7541 | */ |
| 7542 | #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL |
| 7543 | |
| 7544 | /* |
| 7545 | * content selection pattern - do fix if pattern found |
| 7546 | */ |
| 7547 | tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] = |
| 7548 | "struct __jmp_buf_tag" ; |
| 7549 | |
| 7550 | #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1 |
| 7551 | static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = { |
| 7552 | { .type: TT_EGREP, .pz_test_text: zPthread_Incomplete_Struct_ArgumentSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7553 | |
| 7554 | /* |
| 7555 | * Fix Command Arguments for Pthread_Incomplete_Struct_Argument |
| 7556 | */ |
| 7557 | static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = { |
| 7558 | "format" , |
| 7559 | "%1 *%2%3" , |
| 7560 | "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$" , |
| 7561 | (char*)NULL }; |
| 7562 | |
| 7563 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7564 | * |
| 7565 | * Description of Read_Ret_Type fix |
| 7566 | */ |
| 7567 | tSCC zRead_Ret_TypeName[] = |
| 7568 | "read_ret_type" ; |
| 7569 | |
| 7570 | /* |
| 7571 | * File name selection pattern |
| 7572 | */ |
| 7573 | tSCC zRead_Ret_TypeList[] = |
| 7574 | "stdio.h\0" ; |
| 7575 | /* |
| 7576 | * Machine/OS name selection pattern |
| 7577 | */ |
| 7578 | #define apzRead_Ret_TypeMachs (const char**)NULL |
| 7579 | |
| 7580 | /* |
| 7581 | * content selection pattern - do fix if pattern found |
| 7582 | */ |
| 7583 | tSCC zRead_Ret_TypeSelect0[] = |
| 7584 | "extern int\t.*, fread\\(\\), fwrite\\(\\)" ; |
| 7585 | |
| 7586 | #define READ_RET_TYPE_TEST_CT 1 |
| 7587 | static tTestDesc aRead_Ret_TypeTests[] = { |
| 7588 | { .type: TT_EGREP, .pz_test_text: zRead_Ret_TypeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7589 | |
| 7590 | /* |
| 7591 | * Fix Command Arguments for Read_Ret_Type |
| 7592 | */ |
| 7593 | static const char* apzRead_Ret_TypePatch[] = { |
| 7594 | "format" , |
| 7595 | "extern unsigned int fread(), fwrite();\n\ |
| 7596 | %1%2" , |
| 7597 | "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)" , |
| 7598 | (char*)NULL }; |
| 7599 | |
| 7600 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7601 | * |
| 7602 | * Description of Rpc_Xdr_Lvalue_Cast_A fix |
| 7603 | */ |
| 7604 | tSCC zRpc_Xdr_Lvalue_Cast_AName[] = |
| 7605 | "rpc_xdr_lvalue_cast_a" ; |
| 7606 | |
| 7607 | /* |
| 7608 | * File name selection pattern |
| 7609 | */ |
| 7610 | tSCC zRpc_Xdr_Lvalue_Cast_AList[] = |
| 7611 | "rpc/xdr.h\0" ; |
| 7612 | /* |
| 7613 | * Machine/OS name selection pattern |
| 7614 | */ |
| 7615 | #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL |
| 7616 | |
| 7617 | /* |
| 7618 | * content selection pattern - do fix if pattern found |
| 7619 | */ |
| 7620 | tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] = |
| 7621 | "#define[ \t]*IXDR_GET_LONG.*\\\\\n\ |
| 7622 | .*__extension__.*" ; |
| 7623 | |
| 7624 | #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1 |
| 7625 | static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = { |
| 7626 | { .type: TT_EGREP, .pz_test_text: zRpc_Xdr_Lvalue_Cast_ASelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7627 | |
| 7628 | /* |
| 7629 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A |
| 7630 | */ |
| 7631 | static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = { |
| 7632 | "format" , |
| 7633 | "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))" , |
| 7634 | (char*)NULL }; |
| 7635 | |
| 7636 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7637 | * |
| 7638 | * Description of Rpc_Xdr_Lvalue_Cast_B fix |
| 7639 | */ |
| 7640 | tSCC zRpc_Xdr_Lvalue_Cast_BName[] = |
| 7641 | "rpc_xdr_lvalue_cast_b" ; |
| 7642 | |
| 7643 | /* |
| 7644 | * File name selection pattern |
| 7645 | */ |
| 7646 | tSCC zRpc_Xdr_Lvalue_Cast_BList[] = |
| 7647 | "rpc/xdr.h\0" ; |
| 7648 | /* |
| 7649 | * Machine/OS name selection pattern |
| 7650 | */ |
| 7651 | #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL |
| 7652 | |
| 7653 | /* |
| 7654 | * content selection pattern - do fix if pattern found |
| 7655 | */ |
| 7656 | tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] = |
| 7657 | "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\ |
| 7658 | .*__extension__.*" ; |
| 7659 | |
| 7660 | #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1 |
| 7661 | static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = { |
| 7662 | { .type: TT_EGREP, .pz_test_text: zRpc_Xdr_Lvalue_Cast_BSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7663 | |
| 7664 | /* |
| 7665 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B |
| 7666 | */ |
| 7667 | static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = { |
| 7668 | "format" , |
| 7669 | "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))" , |
| 7670 | (char*)NULL }; |
| 7671 | |
| 7672 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7673 | * |
| 7674 | * Description of Rs6000_Double fix |
| 7675 | */ |
| 7676 | tSCC zRs6000_DoubleName[] = |
| 7677 | "rs6000_double" ; |
| 7678 | |
| 7679 | /* |
| 7680 | * File name selection pattern |
| 7681 | */ |
| 7682 | tSCC zRs6000_DoubleList[] = |
| 7683 | "math.h\0" ; |
| 7684 | /* |
| 7685 | * Machine/OS name selection pattern |
| 7686 | */ |
| 7687 | #define apzRs6000_DoubleMachs (const char**)NULL |
| 7688 | |
| 7689 | /* |
| 7690 | * content selection pattern - do fix if pattern found |
| 7691 | */ |
| 7692 | tSCC zRs6000_DoubleSelect0[] = |
| 7693 | "[^a-zA-Z_]class\\(" ; |
| 7694 | |
| 7695 | #define RS6000_DOUBLE_TEST_CT 1 |
| 7696 | static tTestDesc aRs6000_DoubleTests[] = { |
| 7697 | { .type: TT_EGREP, .pz_test_text: zRs6000_DoubleSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7698 | |
| 7699 | /* |
| 7700 | * Fix Command Arguments for Rs6000_Double |
| 7701 | */ |
| 7702 | static const char* apzRs6000_DoublePatch[] = { |
| 7703 | "format" , |
| 7704 | "#ifndef __cplusplus\n\ |
| 7705 | %0\n\ |
| 7706 | #endif" , |
| 7707 | "^.*[^a-zA-Z_]class\\(.*" , |
| 7708 | (char*)NULL }; |
| 7709 | |
| 7710 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7711 | * |
| 7712 | * Description of Rs6000_Fchmod fix |
| 7713 | */ |
| 7714 | tSCC zRs6000_FchmodName[] = |
| 7715 | "rs6000_fchmod" ; |
| 7716 | |
| 7717 | /* |
| 7718 | * File name selection pattern |
| 7719 | */ |
| 7720 | tSCC zRs6000_FchmodList[] = |
| 7721 | "sys/stat.h\0" ; |
| 7722 | /* |
| 7723 | * Machine/OS name selection pattern |
| 7724 | */ |
| 7725 | #define apzRs6000_FchmodMachs (const char**)NULL |
| 7726 | |
| 7727 | /* |
| 7728 | * content selection pattern - do fix if pattern found |
| 7729 | */ |
| 7730 | tSCC zRs6000_FchmodSelect0[] = |
| 7731 | "fchmod\\(char \\*" ; |
| 7732 | |
| 7733 | #define RS6000_FCHMOD_TEST_CT 1 |
| 7734 | static tTestDesc aRs6000_FchmodTests[] = { |
| 7735 | { .type: TT_EGREP, .pz_test_text: zRs6000_FchmodSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7736 | |
| 7737 | /* |
| 7738 | * Fix Command Arguments for Rs6000_Fchmod |
| 7739 | */ |
| 7740 | static const char* apzRs6000_FchmodPatch[] = { |
| 7741 | "format" , |
| 7742 | "fchmod(int" , |
| 7743 | (char*)NULL }; |
| 7744 | |
| 7745 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7746 | * |
| 7747 | * Description of Rs6000_Param fix |
| 7748 | */ |
| 7749 | tSCC zRs6000_ParamName[] = |
| 7750 | "rs6000_param" ; |
| 7751 | |
| 7752 | /* |
| 7753 | * File name selection pattern |
| 7754 | */ |
| 7755 | tSCC zRs6000_ParamList[] = |
| 7756 | "stdio.h\0unistd.h\0" ; |
| 7757 | /* |
| 7758 | * Machine/OS name selection pattern |
| 7759 | */ |
| 7760 | #define apzRs6000_ParamMachs (const char**)NULL |
| 7761 | |
| 7762 | /* |
| 7763 | * content selection pattern - do fix if pattern found |
| 7764 | */ |
| 7765 | tSCC zRs6000_ParamSelect0[] = |
| 7766 | "rename\\(const char \\*old, const char \\*new\\)" ; |
| 7767 | |
| 7768 | #define RS6000_PARAM_TEST_CT 1 |
| 7769 | static tTestDesc aRs6000_ParamTests[] = { |
| 7770 | { .type: TT_EGREP, .pz_test_text: zRs6000_ParamSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7771 | |
| 7772 | /* |
| 7773 | * Fix Command Arguments for Rs6000_Param |
| 7774 | */ |
| 7775 | static const char* apzRs6000_ParamPatch[] = { |
| 7776 | "format" , |
| 7777 | "rename(const char *_old, const char *_new)" , |
| 7778 | (char*)NULL }; |
| 7779 | |
| 7780 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7781 | * |
| 7782 | * Description of Solaris___Restrict fix |
| 7783 | */ |
| 7784 | tSCC zSolaris___RestrictName[] = |
| 7785 | "solaris___restrict" ; |
| 7786 | |
| 7787 | /* |
| 7788 | * File name selection pattern |
| 7789 | */ |
| 7790 | tSCC zSolaris___RestrictList[] = |
| 7791 | "sys/feature_tests.h\0" ; |
| 7792 | /* |
| 7793 | * Machine/OS name selection pattern |
| 7794 | */ |
| 7795 | tSCC* apzSolaris___RestrictMachs[] = { |
| 7796 | "*-*-solaris2*" , |
| 7797 | (const char*)NULL }; |
| 7798 | |
| 7799 | /* |
| 7800 | * content selection pattern - do fix if pattern found |
| 7801 | */ |
| 7802 | tSCC zSolaris___RestrictSelect0[] = |
| 7803 | "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict" ; |
| 7804 | |
| 7805 | #define SOLARIS___RESTRICT_TEST_CT 1 |
| 7806 | static tTestDesc aSolaris___RestrictTests[] = { |
| 7807 | { .type: TT_EGREP, .pz_test_text: zSolaris___RestrictSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7808 | |
| 7809 | /* |
| 7810 | * Fix Command Arguments for Solaris___Restrict |
| 7811 | */ |
| 7812 | static const char* apzSolaris___RestrictPatch[] = { |
| 7813 | "format" , |
| 7814 | "#ifdef __cplusplus\n\ |
| 7815 | #define\t_RESTRICT_KYWD\t__restrict\n\ |
| 7816 | #else\n\ |
| 7817 | %0\n\ |
| 7818 | #endif" , |
| 7819 | (char*)NULL }; |
| 7820 | |
| 7821 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7822 | * |
| 7823 | * Description of Solaris_Complex fix |
| 7824 | */ |
| 7825 | tSCC zSolaris_ComplexName[] = |
| 7826 | "solaris_complex" ; |
| 7827 | |
| 7828 | /* |
| 7829 | * File name selection pattern |
| 7830 | */ |
| 7831 | tSCC zSolaris_ComplexList[] = |
| 7832 | "complex.h\0" ; |
| 7833 | /* |
| 7834 | * Machine/OS name selection pattern |
| 7835 | */ |
| 7836 | tSCC* apzSolaris_ComplexMachs[] = { |
| 7837 | "*-*-solaris2.*" , |
| 7838 | (const char*)NULL }; |
| 7839 | |
| 7840 | /* |
| 7841 | * content selection pattern - do fix if pattern found |
| 7842 | */ |
| 7843 | tSCC zSolaris_ComplexSelect0[] = |
| 7844 | "#define[ \t]_Complex_I[ \t]_Complex_I" ; |
| 7845 | |
| 7846 | #define SOLARIS_COMPLEX_TEST_CT 1 |
| 7847 | static tTestDesc aSolaris_ComplexTests[] = { |
| 7848 | { .type: TT_EGREP, .pz_test_text: zSolaris_ComplexSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7849 | |
| 7850 | /* |
| 7851 | * Fix Command Arguments for Solaris_Complex |
| 7852 | */ |
| 7853 | static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z, |
| 7854 | "-e" , "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/" , |
| 7855 | "-e" , "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d" , |
| 7856 | "-e" , "/#define[ \t]imaginary[ \t]_Imaginary/d" , |
| 7857 | "-e" , "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/" , |
| 7858 | (char*)NULL }; |
| 7859 | |
| 7860 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7861 | * |
| 7862 | * Description of Solaris_Complex_Cxx fix |
| 7863 | */ |
| 7864 | tSCC zSolaris_Complex_CxxName[] = |
| 7865 | "solaris_complex_cxx" ; |
| 7866 | |
| 7867 | /* |
| 7868 | * File name selection pattern |
| 7869 | */ |
| 7870 | tSCC zSolaris_Complex_CxxList[] = |
| 7871 | "complex.h\0" ; |
| 7872 | /* |
| 7873 | * Machine/OS name selection pattern |
| 7874 | */ |
| 7875 | tSCC* apzSolaris_Complex_CxxMachs[] = { |
| 7876 | "*-*-solaris2.*" , |
| 7877 | (const char*)NULL }; |
| 7878 | #define SOLARIS_COMPLEX_CXX_TEST_CT 0 |
| 7879 | #define aSolaris_Complex_CxxTests (tTestDesc*)NULL |
| 7880 | |
| 7881 | /* |
| 7882 | * Fix Command Arguments for Solaris_Complex_Cxx |
| 7883 | */ |
| 7884 | static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z, |
| 7885 | "-e" , "/#if[ \t]*!defined(__cplusplus)/c\\\n\ |
| 7886 | #ifdef\t__cplusplus\\\n\ |
| 7887 | extern \"C\" {\\\n\ |
| 7888 | #endif" , |
| 7889 | "-e" , "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\ |
| 7890 | #ifdef\t__cplusplus\\\n\ |
| 7891 | }\\\n\ |
| 7892 | #endif" , |
| 7893 | (char*)NULL }; |
| 7894 | |
| 7895 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7896 | * |
| 7897 | * Description of Solaris_Cxx_Linkage fix |
| 7898 | */ |
| 7899 | tSCC zSolaris_Cxx_LinkageName[] = |
| 7900 | "solaris_cxx_linkage" ; |
| 7901 | |
| 7902 | /* |
| 7903 | * File name selection pattern |
| 7904 | */ |
| 7905 | tSCC zSolaris_Cxx_LinkageList[] = |
| 7906 | "iso/stdlib_iso.h\0" ; |
| 7907 | /* |
| 7908 | * Machine/OS name selection pattern |
| 7909 | */ |
| 7910 | tSCC* apzSolaris_Cxx_LinkageMachs[] = { |
| 7911 | "*-*-solaris2*" , |
| 7912 | (const char*)NULL }; |
| 7913 | |
| 7914 | /* |
| 7915 | * content selection pattern - do fix if pattern found |
| 7916 | */ |
| 7917 | tSCC zSolaris_Cxx_LinkageSelect0[] = |
| 7918 | "(#if __cplusplus >= 199711L)\n\ |
| 7919 | (extern \"C\\+\\+\" \\{\n\ |
| 7920 | )(.*(bsearch|qsort).*)" ; |
| 7921 | |
| 7922 | #define SOLARIS_CXX_LINKAGE_TEST_CT 1 |
| 7923 | static tTestDesc aSolaris_Cxx_LinkageTests[] = { |
| 7924 | { .type: TT_EGREP, .pz_test_text: zSolaris_Cxx_LinkageSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7925 | |
| 7926 | /* |
| 7927 | * Fix Command Arguments for Solaris_Cxx_Linkage |
| 7928 | */ |
| 7929 | static const char* apzSolaris_Cxx_LinkagePatch[] = { |
| 7930 | "format" , |
| 7931 | "%1 && !__GNUG__\n\ |
| 7932 | %2%3" , |
| 7933 | (char*)NULL }; |
| 7934 | |
| 7935 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7936 | * |
| 7937 | * Description of Solaris_Getc_Strict_Stdc fix |
| 7938 | */ |
| 7939 | tSCC zSolaris_Getc_Strict_StdcName[] = |
| 7940 | "solaris_getc_strict_stdc" ; |
| 7941 | |
| 7942 | /* |
| 7943 | * File name selection pattern |
| 7944 | */ |
| 7945 | tSCC zSolaris_Getc_Strict_StdcList[] = |
| 7946 | "iso/stdio_iso.h\0" ; |
| 7947 | /* |
| 7948 | * Machine/OS name selection pattern |
| 7949 | */ |
| 7950 | tSCC* apzSolaris_Getc_Strict_StdcMachs[] = { |
| 7951 | "*-*-solaris2*" , |
| 7952 | (const char*)NULL }; |
| 7953 | |
| 7954 | /* |
| 7955 | * content selection pattern - do fix if pattern found |
| 7956 | */ |
| 7957 | tSCC zSolaris_Getc_Strict_StdcSelect0[] = |
| 7958 | "(.*&& )!defined\\(_STRICT_STDC\\)(.*)" ; |
| 7959 | |
| 7960 | #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1 |
| 7961 | static tTestDesc aSolaris_Getc_Strict_StdcTests[] = { |
| 7962 | { .type: TT_EGREP, .pz_test_text: zSolaris_Getc_Strict_StdcSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 7963 | |
| 7964 | /* |
| 7965 | * Fix Command Arguments for Solaris_Getc_Strict_Stdc |
| 7966 | */ |
| 7967 | static const char* apzSolaris_Getc_Strict_StdcPatch[] = { |
| 7968 | "format" , |
| 7969 | "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2" , |
| 7970 | (char*)NULL }; |
| 7971 | |
| 7972 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 7973 | * |
| 7974 | * Description of Solaris_Gets_C11 fix |
| 7975 | */ |
| 7976 | tSCC zSolaris_Gets_C11Name[] = |
| 7977 | "solaris_gets_c11" ; |
| 7978 | |
| 7979 | /* |
| 7980 | * File name selection pattern |
| 7981 | */ |
| 7982 | tSCC zSolaris_Gets_C11List[] = |
| 7983 | "iso/stdio_iso.h\0" ; |
| 7984 | /* |
| 7985 | * Machine/OS name selection pattern |
| 7986 | */ |
| 7987 | tSCC* apzSolaris_Gets_C11Machs[] = { |
| 7988 | "*-*-solaris2*" , |
| 7989 | (const char*)NULL }; |
| 7990 | |
| 7991 | /* |
| 7992 | * content selection pattern - do fix if pattern found |
| 7993 | */ |
| 7994 | tSCC zSolaris_Gets_C11Select0[] = |
| 7995 | "(extern char[ \t]*\\*gets\\(char \\*\\));" ; |
| 7996 | |
| 7997 | #define SOLARIS_GETS_C11_TEST_CT 1 |
| 7998 | static tTestDesc aSolaris_Gets_C11Tests[] = { |
| 7999 | { .type: TT_EGREP, .pz_test_text: zSolaris_Gets_C11Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8000 | |
| 8001 | /* |
| 8002 | * Fix Command Arguments for Solaris_Gets_C11 |
| 8003 | */ |
| 8004 | static const char* apzSolaris_Gets_C11Patch[] = { |
| 8005 | "format" , |
| 8006 | "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\ |
| 8007 | %1 __attribute__((__deprecated__));\n\ |
| 8008 | #endif" , |
| 8009 | (char*)NULL }; |
| 8010 | |
| 8011 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8012 | * |
| 8013 | * Description of Solaris_Gets_Cxx14 fix |
| 8014 | */ |
| 8015 | tSCC zSolaris_Gets_Cxx14Name[] = |
| 8016 | "solaris_gets_cxx14" ; |
| 8017 | |
| 8018 | /* |
| 8019 | * File name selection pattern |
| 8020 | */ |
| 8021 | tSCC zSolaris_Gets_Cxx14List[] = |
| 8022 | "iso/stdio_iso.h\0" ; |
| 8023 | /* |
| 8024 | * Machine/OS name selection pattern |
| 8025 | */ |
| 8026 | tSCC* apzSolaris_Gets_Cxx14Machs[] = { |
| 8027 | "*-*-solaris2*" , |
| 8028 | (const char*)NULL }; |
| 8029 | |
| 8030 | /* |
| 8031 | * content selection pattern - do fix if pattern found |
| 8032 | */ |
| 8033 | tSCC zSolaris_Gets_Cxx14Select0[] = |
| 8034 | "(#if __STDC_VERSION__ < 201112L)\n\ |
| 8035 | (extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)" ; |
| 8036 | |
| 8037 | #define SOLARIS_GETS_CXX14_TEST_CT 1 |
| 8038 | static tTestDesc aSolaris_Gets_Cxx14Tests[] = { |
| 8039 | { .type: TT_EGREP, .pz_test_text: zSolaris_Gets_Cxx14Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8040 | |
| 8041 | /* |
| 8042 | * Fix Command Arguments for Solaris_Gets_Cxx14 |
| 8043 | */ |
| 8044 | static const char* apzSolaris_Gets_Cxx14Patch[] = { |
| 8045 | "format" , |
| 8046 | "%1 && __cplusplus < 201402L\n\ |
| 8047 | %2" , |
| 8048 | (char*)NULL }; |
| 8049 | |
| 8050 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8051 | * |
| 8052 | * Description of Solaris_Int_Const fix |
| 8053 | */ |
| 8054 | tSCC zSolaris_Int_ConstName[] = |
| 8055 | "solaris_int_const" ; |
| 8056 | |
| 8057 | /* |
| 8058 | * File name selection pattern |
| 8059 | */ |
| 8060 | tSCC zSolaris_Int_ConstList[] = |
| 8061 | "sys/int_const.h\0" ; |
| 8062 | /* |
| 8063 | * Machine/OS name selection pattern |
| 8064 | */ |
| 8065 | tSCC* apzSolaris_Int_ConstMachs[] = { |
| 8066 | "*-*-solaris2*" , |
| 8067 | (const char*)NULL }; |
| 8068 | |
| 8069 | /* |
| 8070 | * content selection pattern - do fix if pattern found |
| 8071 | */ |
| 8072 | tSCC zSolaris_Int_ConstSelect0[] = |
| 8073 | "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\ |
| 8074 | (/*.**/)\n\ |
| 8075 | #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*" ; |
| 8076 | |
| 8077 | #define SOLARIS_INT_CONST_TEST_CT 1 |
| 8078 | static tTestDesc aSolaris_Int_ConstTests[] = { |
| 8079 | { .type: TT_EGREP, .pz_test_text: zSolaris_Int_ConstSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 8080 | |
| 8081 | /* |
| 8082 | * Fix Command Arguments for Solaris_Int_Const |
| 8083 | */ |
| 8084 | static const char* apzSolaris_Int_ConstPatch[] = { |
| 8085 | "format" , |
| 8086 | "#define\tUINT8_C(c)\t(c)\n\ |
| 8087 | %1\n\ |
| 8088 | #define\tUINT16_C(c)\t(c)" , |
| 8089 | (char*)NULL }; |
| 8090 | |
| 8091 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8092 | * |
| 8093 | * Description of Solaris_Int_Limits_1 fix |
| 8094 | */ |
| 8095 | tSCC zSolaris_Int_Limits_1Name[] = |
| 8096 | "solaris_int_limits_1" ; |
| 8097 | |
| 8098 | /* |
| 8099 | * File name selection pattern |
| 8100 | */ |
| 8101 | tSCC zSolaris_Int_Limits_1List[] = |
| 8102 | "sys/int_limits.h\0" ; |
| 8103 | /* |
| 8104 | * Machine/OS name selection pattern |
| 8105 | */ |
| 8106 | tSCC* apzSolaris_Int_Limits_1Machs[] = { |
| 8107 | "*-*-solaris2*" , |
| 8108 | (const char*)NULL }; |
| 8109 | |
| 8110 | /* |
| 8111 | * content selection pattern - do fix if pattern found |
| 8112 | */ |
| 8113 | tSCC zSolaris_Int_Limits_1Select0[] = |
| 8114 | "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\ |
| 8115 | #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)" ; |
| 8116 | |
| 8117 | #define SOLARIS_INT_LIMITS_1_TEST_CT 1 |
| 8118 | static tTestDesc aSolaris_Int_Limits_1Tests[] = { |
| 8119 | { .type: TT_EGREP, .pz_test_text: zSolaris_Int_Limits_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8120 | |
| 8121 | /* |
| 8122 | * Fix Command Arguments for Solaris_Int_Limits_1 |
| 8123 | */ |
| 8124 | static const char* apzSolaris_Int_Limits_1Patch[] = { |
| 8125 | "format" , |
| 8126 | "#define\tUINT8_MAX\t(255)\n\ |
| 8127 | #define\tUINT16_MAX\t(65535)" , |
| 8128 | (char*)NULL }; |
| 8129 | |
| 8130 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8131 | * |
| 8132 | * Description of Solaris_Int_Limits_2 fix |
| 8133 | */ |
| 8134 | tSCC zSolaris_Int_Limits_2Name[] = |
| 8135 | "solaris_int_limits_2" ; |
| 8136 | |
| 8137 | /* |
| 8138 | * File name selection pattern |
| 8139 | */ |
| 8140 | tSCC zSolaris_Int_Limits_2List[] = |
| 8141 | "sys/int_limits.h\0" ; |
| 8142 | /* |
| 8143 | * Machine/OS name selection pattern |
| 8144 | */ |
| 8145 | tSCC* apzSolaris_Int_Limits_2Machs[] = { |
| 8146 | "*-*-solaris2*" , |
| 8147 | (const char*)NULL }; |
| 8148 | |
| 8149 | /* |
| 8150 | * content selection pattern - do fix if pattern found |
| 8151 | */ |
| 8152 | tSCC zSolaris_Int_Limits_2Select0[] = |
| 8153 | "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*" ; |
| 8154 | |
| 8155 | #define SOLARIS_INT_LIMITS_2_TEST_CT 1 |
| 8156 | static tTestDesc aSolaris_Int_Limits_2Tests[] = { |
| 8157 | { .type: TT_EGREP, .pz_test_text: zSolaris_Int_Limits_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8158 | |
| 8159 | /* |
| 8160 | * Fix Command Arguments for Solaris_Int_Limits_2 |
| 8161 | */ |
| 8162 | static const char* apzSolaris_Int_Limits_2Patch[] = { |
| 8163 | "format" , |
| 8164 | "#define\t%1_FAST16_%2 %132_%2" , |
| 8165 | (char*)NULL }; |
| 8166 | |
| 8167 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8168 | * |
| 8169 | * Description of Solaris_Int_Limits_3 fix |
| 8170 | */ |
| 8171 | tSCC zSolaris_Int_Limits_3Name[] = |
| 8172 | "solaris_int_limits_3" ; |
| 8173 | |
| 8174 | /* |
| 8175 | * File name selection pattern |
| 8176 | */ |
| 8177 | tSCC zSolaris_Int_Limits_3List[] = |
| 8178 | "sys/int_limits.h\0" ; |
| 8179 | /* |
| 8180 | * Machine/OS name selection pattern |
| 8181 | */ |
| 8182 | tSCC* apzSolaris_Int_Limits_3Machs[] = { |
| 8183 | "*-*-solaris2*" , |
| 8184 | (const char*)NULL }; |
| 8185 | |
| 8186 | /* |
| 8187 | * content selection pattern - do fix if pattern found |
| 8188 | */ |
| 8189 | tSCC zSolaris_Int_Limits_3Select0[] = |
| 8190 | "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL" ; |
| 8191 | |
| 8192 | #define SOLARIS_INT_LIMITS_3_TEST_CT 1 |
| 8193 | static tTestDesc aSolaris_Int_Limits_3Tests[] = { |
| 8194 | { .type: TT_EGREP, .pz_test_text: zSolaris_Int_Limits_3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8195 | |
| 8196 | /* |
| 8197 | * Fix Command Arguments for Solaris_Int_Limits_3 |
| 8198 | */ |
| 8199 | static const char* apzSolaris_Int_Limits_3Patch[] = { |
| 8200 | "format" , |
| 8201 | "#define\tSIZE_MAX\t4294967295U" , |
| 8202 | (char*)NULL }; |
| 8203 | |
| 8204 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8205 | * |
| 8206 | * Description of Solaris_Math_1 fix |
| 8207 | */ |
| 8208 | tSCC zSolaris_Math_1Name[] = |
| 8209 | "solaris_math_1" ; |
| 8210 | |
| 8211 | /* |
| 8212 | * File name selection pattern |
| 8213 | */ |
| 8214 | tSCC zSolaris_Math_1List[] = |
| 8215 | "iso/math_c99.h\0" ; |
| 8216 | /* |
| 8217 | * Machine/OS name selection pattern |
| 8218 | */ |
| 8219 | #define apzSolaris_Math_1Machs (const char**)NULL |
| 8220 | |
| 8221 | /* |
| 8222 | * content selection pattern - do fix if pattern found |
| 8223 | */ |
| 8224 | tSCC zSolaris_Math_1Select0[] = |
| 8225 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8226 | |
| 8227 | /* |
| 8228 | * content bypass pattern - skip fix if pattern found |
| 8229 | */ |
| 8230 | tSCC zSolaris_Math_1Bypass0[] = |
| 8231 | "__GNUC__" ; |
| 8232 | |
| 8233 | #define SOLARIS_MATH_1_TEST_CT 2 |
| 8234 | static tTestDesc aSolaris_Math_1Tests[] = { |
| 8235 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Math_1Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 8236 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8237 | |
| 8238 | /* |
| 8239 | * Fix Command Arguments for Solaris_Math_1 |
| 8240 | */ |
| 8241 | static const char* apzSolaris_Math_1Patch[] = { |
| 8242 | "format" , |
| 8243 | "#define\tHUGE_VA%1\t(__builtin_huge_va%2())" , |
| 8244 | "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)" , |
| 8245 | (char*)NULL }; |
| 8246 | |
| 8247 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8248 | * |
| 8249 | * Description of Solaris_Math_10 fix |
| 8250 | */ |
| 8251 | tSCC zSolaris_Math_10Name[] = |
| 8252 | "solaris_math_10" ; |
| 8253 | |
| 8254 | /* |
| 8255 | * File name selection pattern |
| 8256 | */ |
| 8257 | tSCC zSolaris_Math_10List[] = |
| 8258 | "iso/math_c99.h\0" ; |
| 8259 | /* |
| 8260 | * Machine/OS name selection pattern |
| 8261 | */ |
| 8262 | #define apzSolaris_Math_10Machs (const char**)NULL |
| 8263 | |
| 8264 | /* |
| 8265 | * content selection pattern - do fix if pattern found |
| 8266 | */ |
| 8267 | tSCC zSolaris_Math_10Select0[] = |
| 8268 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8269 | |
| 8270 | #define SOLARIS_MATH_10_TEST_CT 1 |
| 8271 | static tTestDesc aSolaris_Math_10Tests[] = { |
| 8272 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_10Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8273 | |
| 8274 | /* |
| 8275 | * Fix Command Arguments for Solaris_Math_10 |
| 8276 | */ |
| 8277 | static const char* apzSolaris_Math_10Patch[] = { |
| 8278 | "format" , |
| 8279 | "#define\tisinf(x) __builtin_isinf(x)" , |
| 8280 | "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\ |
| 8281 | [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\ |
| 8282 | [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\ |
| 8283 | [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)" , |
| 8284 | (char*)NULL }; |
| 8285 | |
| 8286 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8287 | * |
| 8288 | * Description of Solaris_Math_2 fix |
| 8289 | */ |
| 8290 | tSCC zSolaris_Math_2Name[] = |
| 8291 | "solaris_math_2" ; |
| 8292 | |
| 8293 | /* |
| 8294 | * File name selection pattern |
| 8295 | */ |
| 8296 | tSCC zSolaris_Math_2List[] = |
| 8297 | "iso/math_c99.h\0" ; |
| 8298 | /* |
| 8299 | * Machine/OS name selection pattern |
| 8300 | */ |
| 8301 | #define apzSolaris_Math_2Machs (const char**)NULL |
| 8302 | |
| 8303 | /* |
| 8304 | * content selection pattern - do fix if pattern found |
| 8305 | */ |
| 8306 | tSCC zSolaris_Math_2Select0[] = |
| 8307 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8308 | |
| 8309 | /* |
| 8310 | * content bypass pattern - skip fix if pattern found |
| 8311 | */ |
| 8312 | tSCC zSolaris_Math_2Bypass0[] = |
| 8313 | "__GNUC__" ; |
| 8314 | |
| 8315 | #define SOLARIS_MATH_2_TEST_CT 2 |
| 8316 | static tTestDesc aSolaris_Math_2Tests[] = { |
| 8317 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Math_2Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 8318 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8319 | |
| 8320 | /* |
| 8321 | * Fix Command Arguments for Solaris_Math_2 |
| 8322 | */ |
| 8323 | static const char* apzSolaris_Math_2Patch[] = { |
| 8324 | "format" , |
| 8325 | "#define\tINFINITY\t(__builtin_inff())" , |
| 8326 | "^#define[ \t]+INFINITY[ \t]+__builtin_infinity" , |
| 8327 | (char*)NULL }; |
| 8328 | |
| 8329 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8330 | * |
| 8331 | * Description of Solaris_Math_3 fix |
| 8332 | */ |
| 8333 | tSCC zSolaris_Math_3Name[] = |
| 8334 | "solaris_math_3" ; |
| 8335 | |
| 8336 | /* |
| 8337 | * File name selection pattern |
| 8338 | */ |
| 8339 | tSCC zSolaris_Math_3List[] = |
| 8340 | "iso/math_c99.h\0" ; |
| 8341 | /* |
| 8342 | * Machine/OS name selection pattern |
| 8343 | */ |
| 8344 | #define apzSolaris_Math_3Machs (const char**)NULL |
| 8345 | |
| 8346 | /* |
| 8347 | * content selection pattern - do fix if pattern found |
| 8348 | */ |
| 8349 | tSCC zSolaris_Math_3Select0[] = |
| 8350 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8351 | |
| 8352 | /* |
| 8353 | * content bypass pattern - skip fix if pattern found |
| 8354 | */ |
| 8355 | tSCC zSolaris_Math_3Bypass0[] = |
| 8356 | "__GNUC__" ; |
| 8357 | |
| 8358 | #define SOLARIS_MATH_3_TEST_CT 2 |
| 8359 | static tTestDesc aSolaris_Math_3Tests[] = { |
| 8360 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Math_3Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 8361 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_3Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8362 | |
| 8363 | /* |
| 8364 | * Fix Command Arguments for Solaris_Math_3 |
| 8365 | */ |
| 8366 | static const char* apzSolaris_Math_3Patch[] = { |
| 8367 | "format" , |
| 8368 | "#define\tNAN\t\t(__builtin_nanf(\"\"))" , |
| 8369 | "^#define[ \t]+NAN[ \t]+__builtin_nan" , |
| 8370 | (char*)NULL }; |
| 8371 | |
| 8372 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8373 | * |
| 8374 | * Description of Solaris_Math_4 fix |
| 8375 | */ |
| 8376 | tSCC zSolaris_Math_4Name[] = |
| 8377 | "solaris_math_4" ; |
| 8378 | |
| 8379 | /* |
| 8380 | * File name selection pattern |
| 8381 | */ |
| 8382 | tSCC zSolaris_Math_4List[] = |
| 8383 | "iso/math_c99.h\0" ; |
| 8384 | /* |
| 8385 | * Machine/OS name selection pattern |
| 8386 | */ |
| 8387 | #define apzSolaris_Math_4Machs (const char**)NULL |
| 8388 | |
| 8389 | /* |
| 8390 | * content selection pattern - do fix if pattern found |
| 8391 | */ |
| 8392 | tSCC zSolaris_Math_4Select0[] = |
| 8393 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8394 | |
| 8395 | /* |
| 8396 | * content bypass pattern - skip fix if pattern found |
| 8397 | */ |
| 8398 | tSCC zSolaris_Math_4Bypass0[] = |
| 8399 | "__GNUC__" ; |
| 8400 | |
| 8401 | #define SOLARIS_MATH_4_TEST_CT 2 |
| 8402 | static tTestDesc aSolaris_Math_4Tests[] = { |
| 8403 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Math_4Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 8404 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_4Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8405 | |
| 8406 | /* |
| 8407 | * Fix Command Arguments for Solaris_Math_4 |
| 8408 | */ |
| 8409 | static const char* apzSolaris_Math_4Patch[] = { |
| 8410 | "format" , |
| 8411 | "#define\tfpclassify(x) \\\n\ |
| 8412 | __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))" , |
| 8413 | "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)" , |
| 8414 | (char*)NULL }; |
| 8415 | |
| 8416 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8417 | * |
| 8418 | * Description of Solaris_Math_8 fix |
| 8419 | */ |
| 8420 | tSCC zSolaris_Math_8Name[] = |
| 8421 | "solaris_math_8" ; |
| 8422 | |
| 8423 | /* |
| 8424 | * File name selection pattern |
| 8425 | */ |
| 8426 | tSCC zSolaris_Math_8List[] = |
| 8427 | "iso/math_c99.h\0" ; |
| 8428 | /* |
| 8429 | * Machine/OS name selection pattern |
| 8430 | */ |
| 8431 | #define apzSolaris_Math_8Machs (const char**)NULL |
| 8432 | |
| 8433 | /* |
| 8434 | * content selection pattern - do fix if pattern found |
| 8435 | */ |
| 8436 | tSCC zSolaris_Math_8Select0[] = |
| 8437 | "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8438 | |
| 8439 | /* |
| 8440 | * content bypass pattern - skip fix if pattern found |
| 8441 | */ |
| 8442 | tSCC zSolaris_Math_8Bypass0[] = |
| 8443 | "__GNUC__" ; |
| 8444 | |
| 8445 | #define SOLARIS_MATH_8_TEST_CT 2 |
| 8446 | static tTestDesc aSolaris_Math_8Tests[] = { |
| 8447 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Math_8Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 8448 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_8Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8449 | |
| 8450 | /* |
| 8451 | * Fix Command Arguments for Solaris_Math_8 |
| 8452 | */ |
| 8453 | static const char* apzSolaris_Math_8Patch[] = { |
| 8454 | "format" , |
| 8455 | "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ |
| 8456 | \t\t\t ? __builtin_signbitf(x) \\\n\ |
| 8457 | \t\t\t : sizeof(x) == sizeof(long double) \\\n\ |
| 8458 | \t\t\t ? __builtin_signbitl(x) \\\n\ |
| 8459 | \t\t\t : __builtin_signbit(x))" , |
| 8460 | "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)" , |
| 8461 | (char*)NULL }; |
| 8462 | |
| 8463 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8464 | * |
| 8465 | * Description of Solaris_Math_9 fix |
| 8466 | */ |
| 8467 | tSCC zSolaris_Math_9Name[] = |
| 8468 | "solaris_math_9" ; |
| 8469 | |
| 8470 | /* |
| 8471 | * File name selection pattern |
| 8472 | */ |
| 8473 | tSCC zSolaris_Math_9List[] = |
| 8474 | "iso/math_c99.h\0" ; |
| 8475 | /* |
| 8476 | * Machine/OS name selection pattern |
| 8477 | */ |
| 8478 | #define apzSolaris_Math_9Machs (const char**)NULL |
| 8479 | |
| 8480 | /* |
| 8481 | * content selection pattern - do fix if pattern found |
| 8482 | */ |
| 8483 | tSCC zSolaris_Math_9Select0[] = |
| 8484 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8485 | |
| 8486 | /* |
| 8487 | * content bypass pattern - skip fix if pattern found |
| 8488 | */ |
| 8489 | tSCC zSolaris_Math_9Bypass0[] = |
| 8490 | "__GNUC__" ; |
| 8491 | |
| 8492 | #define SOLARIS_MATH_9_TEST_CT 2 |
| 8493 | static tTestDesc aSolaris_Math_9Tests[] = { |
| 8494 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Math_9Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 8495 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_9Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8496 | |
| 8497 | /* |
| 8498 | * Fix Command Arguments for Solaris_Math_9 |
| 8499 | */ |
| 8500 | static const char* apzSolaris_Math_9Patch[] = { |
| 8501 | "format" , |
| 8502 | "#define\t%1(x, y)%2__builtin_%1(x, y)" , |
| 8503 | "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)" , |
| 8504 | (char*)NULL }; |
| 8505 | |
| 8506 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8507 | * |
| 8508 | * Description of Solaris_Math_11 fix |
| 8509 | */ |
| 8510 | tSCC zSolaris_Math_11Name[] = |
| 8511 | "solaris_math_11" ; |
| 8512 | |
| 8513 | /* |
| 8514 | * File name selection pattern |
| 8515 | */ |
| 8516 | tSCC zSolaris_Math_11List[] = |
| 8517 | "iso/math_c99.h\0" ; |
| 8518 | /* |
| 8519 | * Machine/OS name selection pattern |
| 8520 | */ |
| 8521 | #define apzSolaris_Math_11Machs (const char**)NULL |
| 8522 | |
| 8523 | /* |
| 8524 | * content selection pattern - do fix if pattern found |
| 8525 | */ |
| 8526 | tSCC zSolaris_Math_11Select0[] = |
| 8527 | "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ " ; |
| 8528 | |
| 8529 | #define SOLARIS_MATH_11_TEST_CT 1 |
| 8530 | static tTestDesc aSolaris_Math_11Tests[] = { |
| 8531 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_11Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8532 | |
| 8533 | /* |
| 8534 | * Fix Command Arguments for Solaris_Math_11 |
| 8535 | */ |
| 8536 | static const char* apzSolaris_Math_11Patch[] = { |
| 8537 | "format" , |
| 8538 | "#undef\tsignbit\n\ |
| 8539 | #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ |
| 8540 | \t\t\t ? __builtin_signbitf(x) \\\n\ |
| 8541 | \t\t\t : sizeof(x) == sizeof(long double) \\\n\ |
| 8542 | \t\t\t ? __builtin_signbitl(x) \\\n\ |
| 8543 | \t\t\t : __builtin_signbit(x))" , |
| 8544 | "^#undef[ \t]+signbit\n\ |
| 8545 | #if defined\\(__sparc\\)\n\ |
| 8546 | #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\ |
| 8547 | [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\ |
| 8548 | [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\ |
| 8549 | #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\ |
| 8550 | #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\ |
| 8551 | [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\ |
| 8552 | [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\ |
| 8553 | [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\ |
| 8554 | [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\ |
| 8555 | [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\ |
| 8556 | [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\ |
| 8557 | #endif" , |
| 8558 | (char*)NULL }; |
| 8559 | |
| 8560 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8561 | * |
| 8562 | * Description of Solaris_Math_12 fix |
| 8563 | */ |
| 8564 | tSCC zSolaris_Math_12Name[] = |
| 8565 | "solaris_math_12" ; |
| 8566 | |
| 8567 | /* |
| 8568 | * File name selection pattern |
| 8569 | */ |
| 8570 | tSCC zSolaris_Math_12List[] = |
| 8571 | "math.h\0" ; |
| 8572 | /* |
| 8573 | * Machine/OS name selection pattern |
| 8574 | */ |
| 8575 | tSCC* apzSolaris_Math_12Machs[] = { |
| 8576 | "*-*-solaris2*" , |
| 8577 | (const char*)NULL }; |
| 8578 | |
| 8579 | /* |
| 8580 | * content selection pattern - do fix if pattern found |
| 8581 | */ |
| 8582 | tSCC zSolaris_Math_12Select0[] = |
| 8583 | "#undef.*_GLIBCXX_USE_C99_MATH" ; |
| 8584 | |
| 8585 | /* |
| 8586 | * content bypass pattern - skip fix if pattern found |
| 8587 | */ |
| 8588 | tSCC zSolaris_Math_12Bypass0[] = |
| 8589 | "__MATH_PREEMPTS_GLIBCXX_C99_MATH" ; |
| 8590 | |
| 8591 | #define SOLARIS_MATH_12_TEST_CT 2 |
| 8592 | static tTestDesc aSolaris_Math_12Tests[] = { |
| 8593 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Math_12Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 8594 | { .type: TT_EGREP, .pz_test_text: zSolaris_Math_12Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8595 | |
| 8596 | /* |
| 8597 | * Fix Command Arguments for Solaris_Math_12 |
| 8598 | */ |
| 8599 | static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z, |
| 8600 | "-e" , "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d" , |
| 8601 | (char*)NULL }; |
| 8602 | |
| 8603 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8604 | * |
| 8605 | * Description of Solaris_Once_Init_1 fix |
| 8606 | */ |
| 8607 | tSCC zSolaris_Once_Init_1Name[] = |
| 8608 | "solaris_once_init_1" ; |
| 8609 | |
| 8610 | /* |
| 8611 | * File name selection pattern |
| 8612 | */ |
| 8613 | tSCC zSolaris_Once_Init_1List[] = |
| 8614 | "pthread.h\0" ; |
| 8615 | /* |
| 8616 | * Machine/OS name selection pattern |
| 8617 | */ |
| 8618 | tSCC* apzSolaris_Once_Init_1Machs[] = { |
| 8619 | "*-*-solaris*" , |
| 8620 | (const char*)NULL }; |
| 8621 | |
| 8622 | /* |
| 8623 | * content selection pattern - do fix if pattern found |
| 8624 | */ |
| 8625 | tSCC zSolaris_Once_Init_1Select0[] = |
| 8626 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8627 | |
| 8628 | #define SOLARIS_ONCE_INIT_1_TEST_CT 1 |
| 8629 | static tTestDesc aSolaris_Once_Init_1Tests[] = { |
| 8630 | { .type: TT_EGREP, .pz_test_text: zSolaris_Once_Init_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8631 | |
| 8632 | /* |
| 8633 | * Fix Command Arguments for Solaris_Once_Init_1 |
| 8634 | */ |
| 8635 | static const char* apzSolaris_Once_Init_1Patch[] = { |
| 8636 | "format" , |
| 8637 | "%1{%2}%3" , |
| 8638 | "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$" , |
| 8639 | (char*)NULL }; |
| 8640 | |
| 8641 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8642 | * |
| 8643 | * Description of Solaris_Posix_Spawn_Restrict fix |
| 8644 | */ |
| 8645 | tSCC zSolaris_Posix_Spawn_RestrictName[] = |
| 8646 | "solaris_posix_spawn_restrict" ; |
| 8647 | |
| 8648 | /* |
| 8649 | * File name selection pattern |
| 8650 | */ |
| 8651 | tSCC zSolaris_Posix_Spawn_RestrictList[] = |
| 8652 | "spawn.h\0" ; |
| 8653 | /* |
| 8654 | * Machine/OS name selection pattern |
| 8655 | */ |
| 8656 | tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = { |
| 8657 | "*-*-solaris2*" , |
| 8658 | (const char*)NULL }; |
| 8659 | |
| 8660 | /* |
| 8661 | * content selection pattern - do fix if pattern found |
| 8662 | */ |
| 8663 | tSCC zSolaris_Posix_Spawn_RestrictSelect0[] = |
| 8664 | "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)" ; |
| 8665 | |
| 8666 | #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1 |
| 8667 | static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = { |
| 8668 | { .type: TT_EGREP, .pz_test_text: zSolaris_Posix_Spawn_RestrictSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 8669 | |
| 8670 | /* |
| 8671 | * Fix Command Arguments for Solaris_Posix_Spawn_Restrict |
| 8672 | */ |
| 8673 | static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = { |
| 8674 | "format" , |
| 8675 | "%1*_RESTRICT_KYWD %2%3" , |
| 8676 | (char*)NULL }; |
| 8677 | |
| 8678 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8679 | * |
| 8680 | * Description of Solaris_Pow_Int_Overload fix |
| 8681 | */ |
| 8682 | tSCC zSolaris_Pow_Int_OverloadName[] = |
| 8683 | "solaris_pow_int_overload" ; |
| 8684 | |
| 8685 | /* |
| 8686 | * File name selection pattern |
| 8687 | */ |
| 8688 | tSCC zSolaris_Pow_Int_OverloadList[] = |
| 8689 | "iso/math_iso.h\0" ; |
| 8690 | /* |
| 8691 | * Machine/OS name selection pattern |
| 8692 | */ |
| 8693 | tSCC* apzSolaris_Pow_Int_OverloadMachs[] = { |
| 8694 | "*-*-solaris2*" , |
| 8695 | (const char*)NULL }; |
| 8696 | |
| 8697 | /* |
| 8698 | * content selection pattern - do fix if pattern found |
| 8699 | */ |
| 8700 | tSCC zSolaris_Pow_Int_OverloadSelect0[] = |
| 8701 | "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\ |
| 8702 | [^{}]*\\}" ; |
| 8703 | |
| 8704 | #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1 |
| 8705 | static tTestDesc aSolaris_Pow_Int_OverloadTests[] = { |
| 8706 | { .type: TT_EGREP, .pz_test_text: zSolaris_Pow_Int_OverloadSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 8707 | |
| 8708 | /* |
| 8709 | * Fix Command Arguments for Solaris_Pow_Int_Overload |
| 8710 | */ |
| 8711 | static const char* apzSolaris_Pow_Int_OverloadPatch[] = { |
| 8712 | "format" , |
| 8713 | "#if __cplusplus < 201103L\n\ |
| 8714 | %0\n\ |
| 8715 | #endif" , |
| 8716 | (char*)NULL }; |
| 8717 | |
| 8718 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8719 | * |
| 8720 | * Description of Solaris_Rwlock_Init_1 fix |
| 8721 | */ |
| 8722 | tSCC zSolaris_Rwlock_Init_1Name[] = |
| 8723 | "solaris_rwlock_init_1" ; |
| 8724 | |
| 8725 | /* |
| 8726 | * File name selection pattern |
| 8727 | */ |
| 8728 | tSCC zSolaris_Rwlock_Init_1List[] = |
| 8729 | "pthread.h\0" ; |
| 8730 | /* |
| 8731 | * Machine/OS name selection pattern |
| 8732 | */ |
| 8733 | tSCC* apzSolaris_Rwlock_Init_1Machs[] = { |
| 8734 | "*-*-solaris*" , |
| 8735 | (const char*)NULL }; |
| 8736 | |
| 8737 | /* |
| 8738 | * content selection pattern - do fix if pattern found |
| 8739 | */ |
| 8740 | tSCC zSolaris_Rwlock_Init_1Select0[] = |
| 8741 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI" ; |
| 8742 | |
| 8743 | #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1 |
| 8744 | static tTestDesc aSolaris_Rwlock_Init_1Tests[] = { |
| 8745 | { .type: TT_EGREP, .pz_test_text: zSolaris_Rwlock_Init_1Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8746 | |
| 8747 | /* |
| 8748 | * Fix Command Arguments for Solaris_Rwlock_Init_1 |
| 8749 | */ |
| 8750 | static const char* apzSolaris_Rwlock_Init_1Patch[] = { |
| 8751 | "format" , |
| 8752 | "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ |
| 8753 | %0\n\ |
| 8754 | #else\n\ |
| 8755 | %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\ |
| 8756 | #endif" , |
| 8757 | "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$" , |
| 8758 | (char*)NULL }; |
| 8759 | |
| 8760 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8761 | * |
| 8762 | * Description of Solaris_Std___Filbuf fix |
| 8763 | */ |
| 8764 | tSCC zSolaris_Std___FilbufName[] = |
| 8765 | "solaris_std___filbuf" ; |
| 8766 | |
| 8767 | /* |
| 8768 | * File name selection pattern |
| 8769 | */ |
| 8770 | tSCC zSolaris_Std___FilbufList[] = |
| 8771 | "stdio.h\0" ; |
| 8772 | /* |
| 8773 | * Machine/OS name selection pattern |
| 8774 | */ |
| 8775 | tSCC* apzSolaris_Std___FilbufMachs[] = { |
| 8776 | "*-*-solaris2*" , |
| 8777 | (const char*)NULL }; |
| 8778 | |
| 8779 | /* |
| 8780 | * content selection pattern - do fix if pattern found |
| 8781 | */ |
| 8782 | tSCC zSolaris_Std___FilbufSelect0[] = |
| 8783 | "(using std::perror;\n\ |
| 8784 | )(#endif)" ; |
| 8785 | |
| 8786 | /* |
| 8787 | * content bypass pattern - skip fix if pattern found |
| 8788 | */ |
| 8789 | tSCC zSolaris_Std___FilbufBypass0[] = |
| 8790 | "using std::__filbuf" ; |
| 8791 | |
| 8792 | #define SOLARIS_STD___FILBUF_TEST_CT 2 |
| 8793 | static tTestDesc aSolaris_Std___FilbufTests[] = { |
| 8794 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Std___FilbufBypass0, .p_test_regex: (regex_t*)NULL }, |
| 8795 | { .type: TT_EGREP, .pz_test_text: zSolaris_Std___FilbufSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 8796 | |
| 8797 | /* |
| 8798 | * Fix Command Arguments for Solaris_Std___Filbuf |
| 8799 | */ |
| 8800 | static const char* apzSolaris_Std___FilbufPatch[] = { |
| 8801 | "format" , |
| 8802 | "%1#ifndef _LP64\n\ |
| 8803 | using std::__filbuf;\n\ |
| 8804 | using std::__flsbuf;\n\ |
| 8805 | #endif\n\ |
| 8806 | %2" , |
| 8807 | (char*)NULL }; |
| 8808 | |
| 8809 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8810 | * |
| 8811 | * Description of Solaris_Std_Gets_Cxx14 fix |
| 8812 | */ |
| 8813 | tSCC zSolaris_Std_Gets_Cxx14Name[] = |
| 8814 | "solaris_std_gets_cxx14" ; |
| 8815 | |
| 8816 | /* |
| 8817 | * File name selection pattern |
| 8818 | */ |
| 8819 | tSCC zSolaris_Std_Gets_Cxx14List[] = |
| 8820 | "stdio.h\0" ; |
| 8821 | /* |
| 8822 | * Machine/OS name selection pattern |
| 8823 | */ |
| 8824 | tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = { |
| 8825 | "*-*-solaris2*" , |
| 8826 | (const char*)NULL }; |
| 8827 | |
| 8828 | /* |
| 8829 | * content selection pattern - do fix if pattern found |
| 8830 | */ |
| 8831 | tSCC zSolaris_Std_Gets_Cxx14Select0[] = |
| 8832 | "using std::gets;" ; |
| 8833 | |
| 8834 | #define SOLARIS_STD_GETS_CXX14_TEST_CT 1 |
| 8835 | static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = { |
| 8836 | { .type: TT_EGREP, .pz_test_text: zSolaris_Std_Gets_Cxx14Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 8837 | |
| 8838 | /* |
| 8839 | * Fix Command Arguments for Solaris_Std_Gets_Cxx14 |
| 8840 | */ |
| 8841 | static const char* apzSolaris_Std_Gets_Cxx14Patch[] = { |
| 8842 | "format" , |
| 8843 | "#if __cplusplus < 201402L\n\ |
| 8844 | %0\n\ |
| 8845 | #endif" , |
| 8846 | (char*)NULL }; |
| 8847 | |
| 8848 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8849 | * |
| 8850 | * Description of Solaris_Stdio_Tag fix |
| 8851 | */ |
| 8852 | tSCC zSolaris_Stdio_TagName[] = |
| 8853 | "solaris_stdio_tag" ; |
| 8854 | |
| 8855 | /* |
| 8856 | * File name selection pattern |
| 8857 | */ |
| 8858 | tSCC zSolaris_Stdio_TagList[] = |
| 8859 | "stdio_tag.h\0" ; |
| 8860 | /* |
| 8861 | * Machine/OS name selection pattern |
| 8862 | */ |
| 8863 | #define apzSolaris_Stdio_TagMachs (const char**)NULL |
| 8864 | |
| 8865 | /* |
| 8866 | * content selection pattern - do fix if pattern found |
| 8867 | */ |
| 8868 | tSCC zSolaris_Stdio_TagSelect0[] = |
| 8869 | "__cplusplus < 54321L" ; |
| 8870 | |
| 8871 | /* |
| 8872 | * content bypass pattern - skip fix if pattern found |
| 8873 | */ |
| 8874 | tSCC zSolaris_Stdio_TagBypass0[] = |
| 8875 | "__GNUC__" ; |
| 8876 | |
| 8877 | #define SOLARIS_STDIO_TAG_TEST_CT 2 |
| 8878 | static tTestDesc aSolaris_Stdio_TagTests[] = { |
| 8879 | { .type: TT_NEGREP, .pz_test_text: zSolaris_Stdio_TagBypass0, .p_test_regex: (regex_t*)NULL }, |
| 8880 | { .type: TT_EGREP, .pz_test_text: zSolaris_Stdio_TagSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 8881 | |
| 8882 | /* |
| 8883 | * Fix Command Arguments for Solaris_Stdio_Tag |
| 8884 | */ |
| 8885 | static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z, |
| 8886 | "-e" , "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/" , |
| 8887 | (char*)NULL }; |
| 8888 | |
| 8889 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8890 | * |
| 8891 | * Description of Solaris_Stdlib_Noreturn fix |
| 8892 | */ |
| 8893 | tSCC zSolaris_Stdlib_NoreturnName[] = |
| 8894 | "solaris_stdlib_noreturn" ; |
| 8895 | |
| 8896 | /* |
| 8897 | * File name selection pattern |
| 8898 | */ |
| 8899 | tSCC zSolaris_Stdlib_NoreturnList[] = |
| 8900 | "iso/stdlib_c99.h\0" ; |
| 8901 | /* |
| 8902 | * Machine/OS name selection pattern |
| 8903 | */ |
| 8904 | tSCC* apzSolaris_Stdlib_NoreturnMachs[] = { |
| 8905 | "*-*-solaris2*" , |
| 8906 | (const char*)NULL }; |
| 8907 | |
| 8908 | /* |
| 8909 | * content selection pattern - do fix if pattern found |
| 8910 | */ |
| 8911 | tSCC zSolaris_Stdlib_NoreturnSelect0[] = |
| 8912 | "(extern) _Noreturn (void quick_exit\\(int\\));" ; |
| 8913 | |
| 8914 | #define SOLARIS_STDLIB_NORETURN_TEST_CT 1 |
| 8915 | static tTestDesc aSolaris_Stdlib_NoreturnTests[] = { |
| 8916 | { .type: TT_EGREP, .pz_test_text: zSolaris_Stdlib_NoreturnSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 8917 | |
| 8918 | /* |
| 8919 | * Fix Command Arguments for Solaris_Stdlib_Noreturn |
| 8920 | */ |
| 8921 | static const char* apzSolaris_Stdlib_NoreturnPatch[] = { |
| 8922 | "format" , |
| 8923 | "%1 %2 __attribute__((__noreturn__));" , |
| 8924 | (char*)NULL }; |
| 8925 | |
| 8926 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8927 | * |
| 8928 | * Description of Statsswtch fix |
| 8929 | */ |
| 8930 | tSCC zStatsswtchName[] = |
| 8931 | "statsswtch" ; |
| 8932 | |
| 8933 | /* |
| 8934 | * File name selection pattern |
| 8935 | */ |
| 8936 | tSCC zStatsswtchList[] = |
| 8937 | "rpcsvc/rstat.h\0" ; |
| 8938 | /* |
| 8939 | * Machine/OS name selection pattern |
| 8940 | */ |
| 8941 | #define apzStatsswtchMachs (const char**)NULL |
| 8942 | |
| 8943 | /* |
| 8944 | * content selection pattern - do fix if pattern found |
| 8945 | */ |
| 8946 | tSCC zStatsswtchSelect0[] = |
| 8947 | "boottime$" ; |
| 8948 | |
| 8949 | #define STATSSWTCH_TEST_CT 1 |
| 8950 | static tTestDesc aStatsswtchTests[] = { |
| 8951 | { .type: TT_EGREP, .pz_test_text: zStatsswtchSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 8952 | |
| 8953 | /* |
| 8954 | * Fix Command Arguments for Statsswtch |
| 8955 | */ |
| 8956 | static const char* apzStatsswtchPatch[] = { |
| 8957 | "format" , |
| 8958 | "boottime;" , |
| 8959 | (char*)NULL }; |
| 8960 | |
| 8961 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 8962 | * |
| 8963 | * Description of Stdio_Stdarg_H fix |
| 8964 | */ |
| 8965 | tSCC zStdio_Stdarg_HName[] = |
| 8966 | "stdio_stdarg_h" ; |
| 8967 | |
| 8968 | /* |
| 8969 | * File name selection pattern |
| 8970 | */ |
| 8971 | tSCC zStdio_Stdarg_HList[] = |
| 8972 | "stdio.h\0" ; |
| 8973 | /* |
| 8974 | * Machine/OS name selection pattern |
| 8975 | */ |
| 8976 | tSCC* apzStdio_Stdarg_HMachs[] = { |
| 8977 | "*-*-solaris2.1[0-9]*" , |
| 8978 | (const char*)NULL }; |
| 8979 | |
| 8980 | /* |
| 8981 | * content bypass pattern - skip fix if pattern found |
| 8982 | */ |
| 8983 | tSCC zStdio_Stdarg_HBypass0[] = |
| 8984 | "include.*(stdarg.h|machine/ansi.h)" ; |
| 8985 | |
| 8986 | #define STDIO_STDARG_H_TEST_CT 1 |
| 8987 | static tTestDesc aStdio_Stdarg_HTests[] = { |
| 8988 | { .type: TT_NEGREP, .pz_test_text: zStdio_Stdarg_HBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 8989 | |
| 8990 | /* |
| 8991 | * Fix Command Arguments for Stdio_Stdarg_H |
| 8992 | */ |
| 8993 | static const char* apzStdio_Stdarg_HPatch[] = { |
| 8994 | "wrap" , |
| 8995 | "#define __need___va_list\n\ |
| 8996 | #include <stdarg.h>\n" , |
| 8997 | (char*)NULL }; |
| 8998 | |
| 8999 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9000 | * |
| 9001 | * Description of Stdio_Va_List fix |
| 9002 | */ |
| 9003 | tSCC zStdio_Va_ListName[] = |
| 9004 | "stdio_va_list" ; |
| 9005 | |
| 9006 | /* |
| 9007 | * File name selection pattern |
| 9008 | */ |
| 9009 | tSCC zStdio_Va_ListList[] = |
| 9010 | "stdio.h\0" ; |
| 9011 | /* |
| 9012 | * Machine/OS name selection pattern |
| 9013 | */ |
| 9014 | tSCC* apzStdio_Va_ListMachs[] = { |
| 9015 | "*-*-solaris2.1[0-9]*" , |
| 9016 | (const char*)NULL }; |
| 9017 | |
| 9018 | /* |
| 9019 | * content bypass pattern - skip fix if pattern found |
| 9020 | */ |
| 9021 | tSCC zStdio_Va_ListBypass0[] = |
| 9022 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list" ; |
| 9023 | |
| 9024 | #define STDIO_VA_LIST_TEST_CT 1 |
| 9025 | static tTestDesc aStdio_Va_ListTests[] = { |
| 9026 | { .type: TT_NEGREP, .pz_test_text: zStdio_Va_ListBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 9027 | |
| 9028 | /* |
| 9029 | * Fix Command Arguments for Stdio_Va_List |
| 9030 | */ |
| 9031 | static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z, |
| 9032 | "-e" , "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ |
| 9033 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ |
| 9034 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ |
| 9035 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ |
| 9036 | s@ va_list@ __not_va_list__@\n\ |
| 9037 | s@\\*va_list@*__not_va_list__@\n\ |
| 9038 | s@ __va_list)@ __gnuc_va_list)@\n\ |
| 9039 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ |
| 9040 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ |
| 9041 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ |
| 9042 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ |
| 9043 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ |
| 9044 | s@VA_LIST@DUMMY_VA_LIST@\n\ |
| 9045 | s@_Va_LIST@_VA_LIST@" , |
| 9046 | (char*)NULL }; |
| 9047 | |
| 9048 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9049 | * |
| 9050 | * Description of Stdio_Va_List_Clients fix |
| 9051 | */ |
| 9052 | tSCC zStdio_Va_List_ClientsName[] = |
| 9053 | "stdio_va_list_clients" ; |
| 9054 | |
| 9055 | /* |
| 9056 | * File name selection pattern |
| 9057 | */ |
| 9058 | tSCC zStdio_Va_List_ClientsList[] = |
| 9059 | "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0" ; |
| 9060 | /* |
| 9061 | * Machine/OS name selection pattern |
| 9062 | */ |
| 9063 | #define apzStdio_Va_List_ClientsMachs (const char**)NULL |
| 9064 | |
| 9065 | /* |
| 9066 | * content bypass pattern - skip fix if pattern found |
| 9067 | */ |
| 9068 | tSCC zStdio_Va_List_ClientsBypass0[] = |
| 9069 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list" ; |
| 9070 | tSCC zStdio_Va_List_ClientsBypass1[] = |
| 9071 | "include <stdarg\\.h>|#ifdef va_start" ; |
| 9072 | |
| 9073 | #define STDIO_VA_LIST_CLIENTS_TEST_CT 2 |
| 9074 | static tTestDesc aStdio_Va_List_ClientsTests[] = { |
| 9075 | { .type: TT_NEGREP, .pz_test_text: zStdio_Va_List_ClientsBypass0, .p_test_regex: (regex_t*)NULL }, |
| 9076 | { .type: TT_NEGREP, .pz_test_text: zStdio_Va_List_ClientsBypass1, .p_test_regex: (regex_t*)NULL }, }; |
| 9077 | |
| 9078 | /* |
| 9079 | * Fix Command Arguments for Stdio_Va_List_Clients |
| 9080 | */ |
| 9081 | static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z, |
| 9082 | "-e" , "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ |
| 9083 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ |
| 9084 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ |
| 9085 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ |
| 9086 | s@ va_list@ __not_va_list__@\n\ |
| 9087 | s@\\*va_list@*__not_va_list__@\n\ |
| 9088 | s@ __va_list)@ __gnuc_va_list)@\n\ |
| 9089 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ |
| 9090 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ |
| 9091 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ |
| 9092 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ |
| 9093 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ |
| 9094 | s@VA_LIST@DUMMY_VA_LIST@\n\ |
| 9095 | s@_Va_LIST@_VA_LIST@" , |
| 9096 | (char*)NULL }; |
| 9097 | |
| 9098 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9099 | * |
| 9100 | * Description of Strict_Ansi_Not fix |
| 9101 | */ |
| 9102 | tSCC zStrict_Ansi_NotName[] = |
| 9103 | "strict_ansi_not" ; |
| 9104 | |
| 9105 | /* |
| 9106 | * File name selection pattern |
| 9107 | */ |
| 9108 | #define zStrict_Ansi_NotList (char*)NULL |
| 9109 | /* |
| 9110 | * Machine/OS name selection pattern |
| 9111 | */ |
| 9112 | #define apzStrict_Ansi_NotMachs (const char**)NULL |
| 9113 | |
| 9114 | /* |
| 9115 | * content selection pattern - do fix if pattern found |
| 9116 | */ |
| 9117 | tSCC zStrict_Ansi_NotSelect0[] = |
| 9118 | "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)" ; |
| 9119 | |
| 9120 | /* |
| 9121 | * content bypass pattern - skip fix if pattern found |
| 9122 | */ |
| 9123 | tSCC zStrict_Ansi_NotBypass0[] = |
| 9124 | "GNU and MIPS C compilers define __STDC__ differently" ; |
| 9125 | tSCC zStrict_Ansi_NotBypass1[] = |
| 9126 | "__SCO_VERSION__.*__STDC__ != 1" ; |
| 9127 | |
| 9128 | /* |
| 9129 | * perform the C function call test |
| 9130 | */ |
| 9131 | tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers" ; |
| 9132 | |
| 9133 | #define STRICT_ANSI_NOT_TEST_CT 4 |
| 9134 | static tTestDesc aStrict_Ansi_NotTests[] = { |
| 9135 | { .type: TT_FUNCTION, .pz_test_text: zStrict_Ansi_NotFTst0, .p_test_regex: 0 /* unused */ }, |
| 9136 | { .type: TT_NEGREP, .pz_test_text: zStrict_Ansi_NotBypass0, .p_test_regex: (regex_t*)NULL }, |
| 9137 | { .type: TT_NEGREP, .pz_test_text: zStrict_Ansi_NotBypass1, .p_test_regex: (regex_t*)NULL }, |
| 9138 | { .type: TT_EGREP, .pz_test_text: zStrict_Ansi_NotSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9139 | |
| 9140 | /* |
| 9141 | * Fix Command Arguments for Strict_Ansi_Not |
| 9142 | */ |
| 9143 | static const char* apzStrict_Ansi_NotPatch[] = { |
| 9144 | "format" , |
| 9145 | "%1 !defined(__STRICT_ANSI__)" , |
| 9146 | (char*)NULL }; |
| 9147 | |
| 9148 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9149 | * |
| 9150 | * Description of Strict_Ansi_Not_Ctd fix |
| 9151 | */ |
| 9152 | tSCC zStrict_Ansi_Not_CtdName[] = |
| 9153 | "strict_ansi_not_ctd" ; |
| 9154 | |
| 9155 | /* |
| 9156 | * File name selection pattern |
| 9157 | */ |
| 9158 | tSCC zStrict_Ansi_Not_CtdList[] = |
| 9159 | "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0" ; |
| 9160 | /* |
| 9161 | * Machine/OS name selection pattern |
| 9162 | */ |
| 9163 | #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL |
| 9164 | |
| 9165 | /* |
| 9166 | * content selection pattern - do fix if pattern found |
| 9167 | */ |
| 9168 | tSCC zStrict_Ansi_Not_CtdSelect0[] = |
| 9169 | "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)" ; |
| 9170 | |
| 9171 | /* |
| 9172 | * perform the C function call test |
| 9173 | */ |
| 9174 | tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers" ; |
| 9175 | |
| 9176 | #define STRICT_ANSI_NOT_CTD_TEST_CT 2 |
| 9177 | static tTestDesc aStrict_Ansi_Not_CtdTests[] = { |
| 9178 | { .type: TT_FUNCTION, .pz_test_text: zStrict_Ansi_Not_CtdFTst0, .p_test_regex: 0 /* unused */ }, |
| 9179 | { .type: TT_EGREP, .pz_test_text: zStrict_Ansi_Not_CtdSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9180 | |
| 9181 | /* |
| 9182 | * Fix Command Arguments for Strict_Ansi_Not_Ctd |
| 9183 | */ |
| 9184 | static const char* apzStrict_Ansi_Not_CtdPatch[] = { |
| 9185 | "format" , |
| 9186 | "%1 !defined(__STRICT_ANSI__)" , |
| 9187 | (char*)NULL }; |
| 9188 | |
| 9189 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9190 | * |
| 9191 | * Description of Strict_Ansi_Only fix |
| 9192 | */ |
| 9193 | tSCC zStrict_Ansi_OnlyName[] = |
| 9194 | "strict_ansi_only" ; |
| 9195 | |
| 9196 | /* |
| 9197 | * File name selection pattern |
| 9198 | */ |
| 9199 | #define zStrict_Ansi_OnlyList (char*)NULL |
| 9200 | /* |
| 9201 | * Machine/OS name selection pattern |
| 9202 | */ |
| 9203 | #define apzStrict_Ansi_OnlyMachs (const char**)NULL |
| 9204 | |
| 9205 | /* |
| 9206 | * content selection pattern - do fix if pattern found |
| 9207 | */ |
| 9208 | tSCC zStrict_Ansi_OnlySelect0[] = |
| 9209 | "^([ \t]*#[ \t]*if.*)(__STDC__[ \t]*!=[ \t]*0|__STDC__[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*!=[ \t]*0)" ; |
| 9210 | |
| 9211 | /* |
| 9212 | * perform the C function call test |
| 9213 | */ |
| 9214 | tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers" ; |
| 9215 | |
| 9216 | #define STRICT_ANSI_ONLY_TEST_CT 2 |
| 9217 | static tTestDesc aStrict_Ansi_OnlyTests[] = { |
| 9218 | { .type: TT_FUNCTION, .pz_test_text: zStrict_Ansi_OnlyFTst0, .p_test_regex: 0 /* unused */ }, |
| 9219 | { .type: TT_EGREP, .pz_test_text: zStrict_Ansi_OnlySelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9220 | |
| 9221 | /* |
| 9222 | * Fix Command Arguments for Strict_Ansi_Only |
| 9223 | */ |
| 9224 | static const char* apzStrict_Ansi_OnlyPatch[] = { |
| 9225 | "format" , |
| 9226 | "%1 defined(__STRICT_ANSI__)" , |
| 9227 | (char*)NULL }; |
| 9228 | |
| 9229 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9230 | * |
| 9231 | * Description of Struct_File fix |
| 9232 | */ |
| 9233 | tSCC zStruct_FileName[] = |
| 9234 | "struct_file" ; |
| 9235 | |
| 9236 | /* |
| 9237 | * File name selection pattern |
| 9238 | */ |
| 9239 | tSCC zStruct_FileList[] = |
| 9240 | "rpc/xdr.h\0" ; |
| 9241 | /* |
| 9242 | * Machine/OS name selection pattern |
| 9243 | */ |
| 9244 | #define apzStruct_FileMachs (const char**)NULL |
| 9245 | |
| 9246 | /* |
| 9247 | * content selection pattern - do fix if pattern found |
| 9248 | */ |
| 9249 | tSCC zStruct_FileSelect0[] = |
| 9250 | "^.*xdrstdio_create.*struct __file_s" ; |
| 9251 | |
| 9252 | #define STRUCT_FILE_TEST_CT 1 |
| 9253 | static tTestDesc aStruct_FileTests[] = { |
| 9254 | { .type: TT_EGREP, .pz_test_text: zStruct_FileSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9255 | |
| 9256 | /* |
| 9257 | * Fix Command Arguments for Struct_File |
| 9258 | */ |
| 9259 | static const char* apzStruct_FilePatch[] = { |
| 9260 | "format" , |
| 9261 | "struct __file_s;\n\ |
| 9262 | %0" , |
| 9263 | (char*)NULL }; |
| 9264 | |
| 9265 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9266 | * |
| 9267 | * Description of Struct_Sockaddr fix |
| 9268 | */ |
| 9269 | tSCC zStruct_SockaddrName[] = |
| 9270 | "struct_sockaddr" ; |
| 9271 | |
| 9272 | /* |
| 9273 | * File name selection pattern |
| 9274 | */ |
| 9275 | tSCC zStruct_SockaddrList[] = |
| 9276 | "rpc/auth.h\0" ; |
| 9277 | /* |
| 9278 | * Machine/OS name selection pattern |
| 9279 | */ |
| 9280 | #define apzStruct_SockaddrMachs (const char**)NULL |
| 9281 | |
| 9282 | /* |
| 9283 | * content selection pattern - do fix if pattern found |
| 9284 | */ |
| 9285 | tSCC zStruct_SockaddrSelect0[] = |
| 9286 | "^.*authdes_create.*struct sockaddr[^_]" ; |
| 9287 | |
| 9288 | /* |
| 9289 | * content bypass pattern - skip fix if pattern found |
| 9290 | */ |
| 9291 | tSCC zStruct_SockaddrBypass0[] = |
| 9292 | "<sys/socket.h>" ; |
| 9293 | tSCC zStruct_SockaddrBypass1[] = |
| 9294 | "struct sockaddr;\n" ; |
| 9295 | |
| 9296 | #define STRUCT_SOCKADDR_TEST_CT 3 |
| 9297 | static tTestDesc aStruct_SockaddrTests[] = { |
| 9298 | { .type: TT_NEGREP, .pz_test_text: zStruct_SockaddrBypass0, .p_test_regex: (regex_t*)NULL }, |
| 9299 | { .type: TT_NEGREP, .pz_test_text: zStruct_SockaddrBypass1, .p_test_regex: (regex_t*)NULL }, |
| 9300 | { .type: TT_EGREP, .pz_test_text: zStruct_SockaddrSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9301 | |
| 9302 | /* |
| 9303 | * Fix Command Arguments for Struct_Sockaddr |
| 9304 | */ |
| 9305 | static const char* apzStruct_SockaddrPatch[] = { |
| 9306 | "format" , |
| 9307 | "struct sockaddr;\n\ |
| 9308 | %0" , |
| 9309 | (char*)NULL }; |
| 9310 | |
| 9311 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9312 | * |
| 9313 | * Description of Sun_Auth_Proto fix |
| 9314 | */ |
| 9315 | tSCC zSun_Auth_ProtoName[] = |
| 9316 | "sun_auth_proto" ; |
| 9317 | |
| 9318 | /* |
| 9319 | * File name selection pattern |
| 9320 | */ |
| 9321 | tSCC zSun_Auth_ProtoList[] = |
| 9322 | "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0" ; |
| 9323 | /* |
| 9324 | * Machine/OS name selection pattern |
| 9325 | */ |
| 9326 | #define apzSun_Auth_ProtoMachs (const char**)NULL |
| 9327 | |
| 9328 | /* |
| 9329 | * content selection pattern - do fix if pattern found |
| 9330 | */ |
| 9331 | tSCC zSun_Auth_ProtoSelect0[] = |
| 9332 | "\\(\\*[a-z][a-z_]*\\)\\(\\)" ; |
| 9333 | |
| 9334 | /* |
| 9335 | * content bypass pattern - skip fix if pattern found |
| 9336 | */ |
| 9337 | tSCC zSun_Auth_ProtoBypass0[] = |
| 9338 | "__cplusplus" ; |
| 9339 | |
| 9340 | #define SUN_AUTH_PROTO_TEST_CT 2 |
| 9341 | static tTestDesc aSun_Auth_ProtoTests[] = { |
| 9342 | { .type: TT_NEGREP, .pz_test_text: zSun_Auth_ProtoBypass0, .p_test_regex: (regex_t*)NULL }, |
| 9343 | { .type: TT_EGREP, .pz_test_text: zSun_Auth_ProtoSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9344 | |
| 9345 | /* |
| 9346 | * Fix Command Arguments for Sun_Auth_Proto |
| 9347 | */ |
| 9348 | static const char* apzSun_Auth_ProtoPatch[] = { |
| 9349 | "format" , |
| 9350 | "#ifdef __cplusplus\n\ |
| 9351 | %1(...);%2\n\ |
| 9352 | #else\n\ |
| 9353 | %1();%2\n\ |
| 9354 | #endif" , |
| 9355 | "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)" , |
| 9356 | (char*)NULL }; |
| 9357 | |
| 9358 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9359 | * |
| 9360 | * Description of Sun_Bogus_Ifdef fix |
| 9361 | */ |
| 9362 | tSCC zSun_Bogus_IfdefName[] = |
| 9363 | "sun_bogus_ifdef" ; |
| 9364 | |
| 9365 | /* |
| 9366 | * File name selection pattern |
| 9367 | */ |
| 9368 | tSCC zSun_Bogus_IfdefList[] = |
| 9369 | "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0" ; |
| 9370 | /* |
| 9371 | * Machine/OS name selection pattern |
| 9372 | */ |
| 9373 | #define apzSun_Bogus_IfdefMachs (const char**)NULL |
| 9374 | |
| 9375 | /* |
| 9376 | * content selection pattern - do fix if pattern found |
| 9377 | */ |
| 9378 | tSCC zSun_Bogus_IfdefSelect0[] = |
| 9379 | "#ifdef(.*\\|\\|.*)" ; |
| 9380 | |
| 9381 | #define SUN_BOGUS_IFDEF_TEST_CT 1 |
| 9382 | static tTestDesc aSun_Bogus_IfdefTests[] = { |
| 9383 | { .type: TT_EGREP, .pz_test_text: zSun_Bogus_IfdefSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9384 | |
| 9385 | /* |
| 9386 | * Fix Command Arguments for Sun_Bogus_Ifdef |
| 9387 | */ |
| 9388 | static const char* apzSun_Bogus_IfdefPatch[] = { |
| 9389 | "format" , |
| 9390 | "#if%1" , |
| 9391 | (char*)NULL }; |
| 9392 | |
| 9393 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9394 | * |
| 9395 | * Description of Sun_Catmacro fix |
| 9396 | */ |
| 9397 | tSCC zSun_CatmacroName[] = |
| 9398 | "sun_catmacro" ; |
| 9399 | |
| 9400 | /* |
| 9401 | * File name selection pattern |
| 9402 | */ |
| 9403 | tSCC zSun_CatmacroList[] = |
| 9404 | "pixrect/memvar.h\0" ; |
| 9405 | /* |
| 9406 | * Machine/OS name selection pattern |
| 9407 | */ |
| 9408 | #define apzSun_CatmacroMachs (const char**)NULL |
| 9409 | |
| 9410 | /* |
| 9411 | * content selection pattern - do fix if pattern found |
| 9412 | */ |
| 9413 | tSCC zSun_CatmacroSelect0[] = |
| 9414 | "^#define[ \t]+CAT\\(a,b\\).*" ; |
| 9415 | |
| 9416 | #define SUN_CATMACRO_TEST_CT 1 |
| 9417 | static tTestDesc aSun_CatmacroTests[] = { |
| 9418 | { .type: TT_EGREP, .pz_test_text: zSun_CatmacroSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9419 | |
| 9420 | /* |
| 9421 | * Fix Command Arguments for Sun_Catmacro |
| 9422 | */ |
| 9423 | static const char* apzSun_CatmacroPatch[] = { |
| 9424 | "format" , |
| 9425 | "#ifdef __STDC__\n\ |
| 9426 | # define CAT(a,b) a##b\n\ |
| 9427 | #else\n\ |
| 9428 | %0\n\ |
| 9429 | #endif" , |
| 9430 | (char*)NULL }; |
| 9431 | |
| 9432 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9433 | * |
| 9434 | * Description of Sun_Malloc fix |
| 9435 | */ |
| 9436 | tSCC zSun_MallocName[] = |
| 9437 | "sun_malloc" ; |
| 9438 | |
| 9439 | /* |
| 9440 | * File name selection pattern |
| 9441 | */ |
| 9442 | tSCC zSun_MallocList[] = |
| 9443 | "malloc.h\0" ; |
| 9444 | /* |
| 9445 | * Machine/OS name selection pattern |
| 9446 | */ |
| 9447 | #define apzSun_MallocMachs (const char**)NULL |
| 9448 | |
| 9449 | /* |
| 9450 | * content bypass pattern - skip fix if pattern found |
| 9451 | */ |
| 9452 | tSCC zSun_MallocBypass0[] = |
| 9453 | "_CLASSIC_ANSI_TYPES" ; |
| 9454 | |
| 9455 | #define SUN_MALLOC_TEST_CT 1 |
| 9456 | static tTestDesc aSun_MallocTests[] = { |
| 9457 | { .type: TT_NEGREP, .pz_test_text: zSun_MallocBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 9458 | |
| 9459 | /* |
| 9460 | * Fix Command Arguments for Sun_Malloc |
| 9461 | */ |
| 9462 | static const char* apzSun_MallocPatch[] = { sed_cmd_z, |
| 9463 | "-e" , "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g" , |
| 9464 | "-e" , "s/int[ \t][ \t]*free/void\tfree/g" , |
| 9465 | "-e" , "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g" , |
| 9466 | "-e" , "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g" , |
| 9467 | "-e" , "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g" , |
| 9468 | (char*)NULL }; |
| 9469 | |
| 9470 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9471 | * |
| 9472 | * Description of Sun_Rusers_Semi fix |
| 9473 | */ |
| 9474 | tSCC zSun_Rusers_SemiName[] = |
| 9475 | "sun_rusers_semi" ; |
| 9476 | |
| 9477 | /* |
| 9478 | * File name selection pattern |
| 9479 | */ |
| 9480 | tSCC zSun_Rusers_SemiList[] = |
| 9481 | "rpcsvc/rusers.h\0" ; |
| 9482 | /* |
| 9483 | * Machine/OS name selection pattern |
| 9484 | */ |
| 9485 | #define apzSun_Rusers_SemiMachs (const char**)NULL |
| 9486 | |
| 9487 | /* |
| 9488 | * content selection pattern - do fix if pattern found |
| 9489 | */ |
| 9490 | tSCC zSun_Rusers_SemiSelect0[] = |
| 9491 | "_cnt$" ; |
| 9492 | |
| 9493 | #define SUN_RUSERS_SEMI_TEST_CT 1 |
| 9494 | static tTestDesc aSun_Rusers_SemiTests[] = { |
| 9495 | { .type: TT_EGREP, .pz_test_text: zSun_Rusers_SemiSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9496 | |
| 9497 | /* |
| 9498 | * Fix Command Arguments for Sun_Rusers_Semi |
| 9499 | */ |
| 9500 | static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z, |
| 9501 | "-e" , "/^struct/,/^};/s/_cnt$/_cnt;/" , |
| 9502 | (char*)NULL }; |
| 9503 | |
| 9504 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9505 | * |
| 9506 | * Description of Sun_Signal fix |
| 9507 | */ |
| 9508 | tSCC zSun_SignalName[] = |
| 9509 | "sun_signal" ; |
| 9510 | |
| 9511 | /* |
| 9512 | * File name selection pattern |
| 9513 | */ |
| 9514 | tSCC zSun_SignalList[] = |
| 9515 | "sys/signal.h\0signal.h\0" ; |
| 9516 | /* |
| 9517 | * Machine/OS name selection pattern |
| 9518 | */ |
| 9519 | #define apzSun_SignalMachs (const char**)NULL |
| 9520 | |
| 9521 | /* |
| 9522 | * content selection pattern - do fix if pattern found |
| 9523 | */ |
| 9524 | tSCC zSun_SignalSelect0[] = |
| 9525 | "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*" ; |
| 9526 | |
| 9527 | #define SUN_SIGNAL_TEST_CT 1 |
| 9528 | static tTestDesc aSun_SignalTests[] = { |
| 9529 | { .type: TT_EGREP, .pz_test_text: zSun_SignalSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9530 | |
| 9531 | /* |
| 9532 | * Fix Command Arguments for Sun_Signal |
| 9533 | */ |
| 9534 | static const char* apzSun_SignalPatch[] = { |
| 9535 | "format" , |
| 9536 | "#ifdef __cplusplus\n\ |
| 9537 | void\t(*signal(...))(...);\n\ |
| 9538 | #else\n\ |
| 9539 | %0\n\ |
| 9540 | #endif" , |
| 9541 | (char*)NULL }; |
| 9542 | |
| 9543 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9544 | * |
| 9545 | * Description of Sunos_Strlen fix |
| 9546 | */ |
| 9547 | tSCC zSunos_StrlenName[] = |
| 9548 | "sunos_strlen" ; |
| 9549 | |
| 9550 | /* |
| 9551 | * File name selection pattern |
| 9552 | */ |
| 9553 | tSCC zSunos_StrlenList[] = |
| 9554 | "strings.h\0" ; |
| 9555 | /* |
| 9556 | * Machine/OS name selection pattern |
| 9557 | */ |
| 9558 | #define apzSunos_StrlenMachs (const char**)NULL |
| 9559 | |
| 9560 | /* |
| 9561 | * content selection pattern - do fix if pattern found |
| 9562 | */ |
| 9563 | tSCC zSunos_StrlenSelect0[] = |
| 9564 | "int[ \t]*strlen\\(\\);(.*)" ; |
| 9565 | |
| 9566 | #define SUNOS_STRLEN_TEST_CT 1 |
| 9567 | static tTestDesc aSunos_StrlenTests[] = { |
| 9568 | { .type: TT_EGREP, .pz_test_text: zSunos_StrlenSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9569 | |
| 9570 | /* |
| 9571 | * Fix Command Arguments for Sunos_Strlen |
| 9572 | */ |
| 9573 | static const char* apzSunos_StrlenPatch[] = { |
| 9574 | "format" , |
| 9575 | "__SIZE_TYPE__ strlen();%1" , |
| 9576 | (char*)NULL }; |
| 9577 | |
| 9578 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9579 | * |
| 9580 | * Description of Suse_Linux_Vt_Cxx fix |
| 9581 | */ |
| 9582 | tSCC zSuse_Linux_Vt_CxxName[] = |
| 9583 | "suse_linux_vt_cxx" ; |
| 9584 | |
| 9585 | /* |
| 9586 | * File name selection pattern |
| 9587 | */ |
| 9588 | tSCC zSuse_Linux_Vt_CxxList[] = |
| 9589 | "linux/vt.h\0" ; |
| 9590 | /* |
| 9591 | * Machine/OS name selection pattern |
| 9592 | */ |
| 9593 | #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL |
| 9594 | |
| 9595 | /* |
| 9596 | * content selection pattern - do fix if pattern found |
| 9597 | */ |
| 9598 | tSCC zSuse_Linux_Vt_CxxSelect0[] = |
| 9599 | "^[ \t]*unsigned int new;" ; |
| 9600 | |
| 9601 | #define SUSE_LINUX_VT_CXX_TEST_CT 1 |
| 9602 | static tTestDesc aSuse_Linux_Vt_CxxTests[] = { |
| 9603 | { .type: TT_EGREP, .pz_test_text: zSuse_Linux_Vt_CxxSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9604 | |
| 9605 | /* |
| 9606 | * Fix Command Arguments for Suse_Linux_Vt_Cxx |
| 9607 | */ |
| 9608 | static const char* apzSuse_Linux_Vt_CxxPatch[] = { |
| 9609 | "format" , |
| 9610 | "unsigned int newev;" , |
| 9611 | (char*)NULL }; |
| 9612 | |
| 9613 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9614 | * |
| 9615 | * Description of Svr4_Disable_Opt fix |
| 9616 | */ |
| 9617 | tSCC zSvr4_Disable_OptName[] = |
| 9618 | "svr4_disable_opt" ; |
| 9619 | |
| 9620 | /* |
| 9621 | * File name selection pattern |
| 9622 | */ |
| 9623 | tSCC zSvr4_Disable_OptList[] = |
| 9624 | "string.h\0" ; |
| 9625 | /* |
| 9626 | * Machine/OS name selection pattern |
| 9627 | */ |
| 9628 | #define apzSvr4_Disable_OptMachs (const char**)NULL |
| 9629 | |
| 9630 | /* |
| 9631 | * content selection pattern - do fix if pattern found |
| 9632 | */ |
| 9633 | tSCC zSvr4_Disable_OptSelect0[] = |
| 9634 | "#define.*__std_hdr_" ; |
| 9635 | |
| 9636 | #define SVR4_DISABLE_OPT_TEST_CT 1 |
| 9637 | static tTestDesc aSvr4_Disable_OptTests[] = { |
| 9638 | { .type: TT_EGREP, .pz_test_text: zSvr4_Disable_OptSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9639 | |
| 9640 | /* |
| 9641 | * Fix Command Arguments for Svr4_Disable_Opt |
| 9642 | */ |
| 9643 | static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z, |
| 9644 | "-e" , "/#define.*__std_hdr_/d" , |
| 9645 | (char*)NULL }; |
| 9646 | |
| 9647 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9648 | * |
| 9649 | * Description of Svr4_Getcwd fix |
| 9650 | */ |
| 9651 | tSCC zSvr4_GetcwdName[] = |
| 9652 | "svr4_getcwd" ; |
| 9653 | |
| 9654 | /* |
| 9655 | * File name selection pattern |
| 9656 | */ |
| 9657 | tSCC zSvr4_GetcwdList[] = |
| 9658 | "stdlib.h\0unistd.h\0prototypes.h\0" ; |
| 9659 | /* |
| 9660 | * Machine/OS name selection pattern |
| 9661 | */ |
| 9662 | #define apzSvr4_GetcwdMachs (const char**)NULL |
| 9663 | |
| 9664 | /* |
| 9665 | * content selection pattern - do fix if pattern found |
| 9666 | */ |
| 9667 | tSCC zSvr4_GetcwdSelect0[] = |
| 9668 | "getcwd\\(char \\*, int\\)" ; |
| 9669 | |
| 9670 | #define SVR4_GETCWD_TEST_CT 1 |
| 9671 | static tTestDesc aSvr4_GetcwdTests[] = { |
| 9672 | { .type: TT_EGREP, .pz_test_text: zSvr4_GetcwdSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9673 | |
| 9674 | /* |
| 9675 | * Fix Command Arguments for Svr4_Getcwd |
| 9676 | */ |
| 9677 | static const char* apzSvr4_GetcwdPatch[] = { |
| 9678 | "format" , |
| 9679 | "getcwd(char *, size_t)" , |
| 9680 | (char*)NULL }; |
| 9681 | |
| 9682 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9683 | * |
| 9684 | * Description of Svr4_Profil fix |
| 9685 | */ |
| 9686 | tSCC zSvr4_ProfilName[] = |
| 9687 | "svr4_profil" ; |
| 9688 | |
| 9689 | /* |
| 9690 | * File name selection pattern |
| 9691 | */ |
| 9692 | tSCC zSvr4_ProfilList[] = |
| 9693 | "stdlib.h\0unistd.h\0" ; |
| 9694 | /* |
| 9695 | * Machine/OS name selection pattern |
| 9696 | */ |
| 9697 | #define apzSvr4_ProfilMachs (const char**)NULL |
| 9698 | |
| 9699 | /* |
| 9700 | * content selection pattern - do fix if pattern found |
| 9701 | */ |
| 9702 | tSCC zSvr4_ProfilSelect0[] = |
| 9703 | "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)" ; |
| 9704 | |
| 9705 | #define SVR4_PROFIL_TEST_CT 1 |
| 9706 | static tTestDesc aSvr4_ProfilTests[] = { |
| 9707 | { .type: TT_EGREP, .pz_test_text: zSvr4_ProfilSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9708 | |
| 9709 | /* |
| 9710 | * Fix Command Arguments for Svr4_Profil |
| 9711 | */ |
| 9712 | static const char* apzSvr4_ProfilPatch[] = { |
| 9713 | "format" , |
| 9714 | "profil(unsigned short *, size_t, int, unsigned int)" , |
| 9715 | (char*)NULL }; |
| 9716 | |
| 9717 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9718 | * |
| 9719 | * Description of Svr4_Sighandler_Type fix |
| 9720 | */ |
| 9721 | tSCC zSvr4_Sighandler_TypeName[] = |
| 9722 | "svr4_sighandler_type" ; |
| 9723 | |
| 9724 | /* |
| 9725 | * File name selection pattern |
| 9726 | */ |
| 9727 | tSCC zSvr4_Sighandler_TypeList[] = |
| 9728 | "sys/signal.h\0" ; |
| 9729 | /* |
| 9730 | * Machine/OS name selection pattern |
| 9731 | */ |
| 9732 | #define apzSvr4_Sighandler_TypeMachs (const char**)NULL |
| 9733 | |
| 9734 | /* |
| 9735 | * content selection pattern - do fix if pattern found |
| 9736 | */ |
| 9737 | tSCC zSvr4_Sighandler_TypeSelect0[] = |
| 9738 | "void *\\(\\*\\)\\(\\)" ; |
| 9739 | |
| 9740 | #define SVR4_SIGHANDLER_TYPE_TEST_CT 1 |
| 9741 | static tTestDesc aSvr4_Sighandler_TypeTests[] = { |
| 9742 | { .type: TT_EGREP, .pz_test_text: zSvr4_Sighandler_TypeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9743 | |
| 9744 | /* |
| 9745 | * Fix Command Arguments for Svr4_Sighandler_Type |
| 9746 | */ |
| 9747 | static const char* apzSvr4_Sighandler_TypePatch[] = { |
| 9748 | "format" , |
| 9749 | "void (*)(int)" , |
| 9750 | (char*)NULL }; |
| 9751 | |
| 9752 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9753 | * |
| 9754 | * Description of Svr4_Undeclared_Getrnge fix |
| 9755 | */ |
| 9756 | tSCC zSvr4_Undeclared_GetrngeName[] = |
| 9757 | "svr4_undeclared_getrnge" ; |
| 9758 | |
| 9759 | /* |
| 9760 | * File name selection pattern |
| 9761 | */ |
| 9762 | tSCC zSvr4_Undeclared_GetrngeList[] = |
| 9763 | "regexp.h\0" ; |
| 9764 | /* |
| 9765 | * Machine/OS name selection pattern |
| 9766 | */ |
| 9767 | #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL |
| 9768 | |
| 9769 | /* |
| 9770 | * content selection pattern - do fix if pattern found |
| 9771 | */ |
| 9772 | tSCC zSvr4_Undeclared_GetrngeSelect0[] = |
| 9773 | "getrnge" ; |
| 9774 | |
| 9775 | /* |
| 9776 | * content bypass pattern - skip fix if pattern found |
| 9777 | */ |
| 9778 | tSCC zSvr4_Undeclared_GetrngeBypass0[] = |
| 9779 | "static void getrnge" ; |
| 9780 | |
| 9781 | #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2 |
| 9782 | static tTestDesc aSvr4_Undeclared_GetrngeTests[] = { |
| 9783 | { .type: TT_NEGREP, .pz_test_text: zSvr4_Undeclared_GetrngeBypass0, .p_test_regex: (regex_t*)NULL }, |
| 9784 | { .type: TT_EGREP, .pz_test_text: zSvr4_Undeclared_GetrngeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9785 | |
| 9786 | /* |
| 9787 | * Fix Command Arguments for Svr4_Undeclared_Getrnge |
| 9788 | */ |
| 9789 | static const char* apzSvr4_Undeclared_GetrngePatch[] = { |
| 9790 | "format" , |
| 9791 | "%0\n\ |
| 9792 | static int getrnge ();" , |
| 9793 | "^static int[ \t]+size;" , |
| 9794 | (char*)NULL }; |
| 9795 | |
| 9796 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9797 | * |
| 9798 | * Description of Sysv68_String fix |
| 9799 | */ |
| 9800 | tSCC zSysv68_StringName[] = |
| 9801 | "sysv68_string" ; |
| 9802 | |
| 9803 | /* |
| 9804 | * File name selection pattern |
| 9805 | */ |
| 9806 | tSCC zSysv68_StringList[] = |
| 9807 | "testing.h\0string.h\0" ; |
| 9808 | /* |
| 9809 | * Machine/OS name selection pattern |
| 9810 | */ |
| 9811 | #define apzSysv68_StringMachs (const char**)NULL |
| 9812 | |
| 9813 | /* |
| 9814 | * content bypass pattern - skip fix if pattern found |
| 9815 | */ |
| 9816 | tSCC zSysv68_StringBypass0[] = |
| 9817 | "_CLASSIC_ANSI_TYPES" ; |
| 9818 | |
| 9819 | #define SYSV68_STRING_TEST_CT 1 |
| 9820 | static tTestDesc aSysv68_StringTests[] = { |
| 9821 | { .type: TT_NEGREP, .pz_test_text: zSysv68_StringBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 9822 | |
| 9823 | /* |
| 9824 | * Fix Command Arguments for Sysv68_String |
| 9825 | */ |
| 9826 | static const char* apzSysv68_StringPatch[] = { sed_cmd_z, |
| 9827 | "-e" , "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/" , |
| 9828 | "-e" , "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/" , |
| 9829 | "-e" , "s/strdup(char \\*s1);/strdup(const char *s1);/" , |
| 9830 | "-e" , "/^extern char$/N" , |
| 9831 | "-e" , "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/" , |
| 9832 | "-e" , "/^extern int$/N" , |
| 9833 | "-e" , "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/" , |
| 9834 | "-e" , "/^\tstrncmp(),$/N" , |
| 9835 | "-e" , "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ |
| 9836 | extern unsigned int\\\n\ |
| 9837 | \\2/" , |
| 9838 | (char*)NULL }; |
| 9839 | |
| 9840 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9841 | * |
| 9842 | * Description of Sysz_Stdlib_For_Sun fix |
| 9843 | */ |
| 9844 | tSCC zSysz_Stdlib_For_SunName[] = |
| 9845 | "sysz_stdlib_for_sun" ; |
| 9846 | |
| 9847 | /* |
| 9848 | * File name selection pattern |
| 9849 | */ |
| 9850 | tSCC zSysz_Stdlib_For_SunList[] = |
| 9851 | "stdlib.h\0" ; |
| 9852 | /* |
| 9853 | * Machine/OS name selection pattern |
| 9854 | */ |
| 9855 | #define apzSysz_Stdlib_For_SunMachs (const char**)NULL |
| 9856 | |
| 9857 | /* |
| 9858 | * content selection pattern - do fix if pattern found |
| 9859 | */ |
| 9860 | tSCC zSysz_Stdlib_For_SunSelect0[] = |
| 9861 | "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(" ; |
| 9862 | |
| 9863 | /* |
| 9864 | * content bypass pattern - skip fix if pattern found |
| 9865 | */ |
| 9866 | tSCC zSysz_Stdlib_For_SunBypass0[] = |
| 9867 | "_CLASSIC_ANSI_TYPES" ; |
| 9868 | |
| 9869 | #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2 |
| 9870 | static tTestDesc aSysz_Stdlib_For_SunTests[] = { |
| 9871 | { .type: TT_NEGREP, .pz_test_text: zSysz_Stdlib_For_SunBypass0, .p_test_regex: (regex_t*)NULL }, |
| 9872 | { .type: TT_EGREP, .pz_test_text: zSysz_Stdlib_For_SunSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9873 | |
| 9874 | /* |
| 9875 | * Fix Command Arguments for Sysz_Stdlib_For_Sun |
| 9876 | */ |
| 9877 | static const char* apzSysz_Stdlib_For_SunPatch[] = { |
| 9878 | "format" , |
| 9879 | "void *\t%1(" , |
| 9880 | (char*)NULL }; |
| 9881 | |
| 9882 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9883 | * |
| 9884 | * Description of Thread_Keyword fix |
| 9885 | */ |
| 9886 | tSCC zThread_KeywordName[] = |
| 9887 | "thread_keyword" ; |
| 9888 | |
| 9889 | /* |
| 9890 | * File name selection pattern |
| 9891 | */ |
| 9892 | tSCC zThread_KeywordList[] = |
| 9893 | "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0" ; |
| 9894 | /* |
| 9895 | * Machine/OS name selection pattern |
| 9896 | */ |
| 9897 | #define apzThread_KeywordMachs (const char**)NULL |
| 9898 | |
| 9899 | /* |
| 9900 | * content selection pattern - do fix if pattern found |
| 9901 | */ |
| 9902 | tSCC zThread_KeywordSelect0[] = |
| 9903 | "([* ])__thread([,)])" ; |
| 9904 | |
| 9905 | #define THREAD_KEYWORD_TEST_CT 1 |
| 9906 | static tTestDesc aThread_KeywordTests[] = { |
| 9907 | { .type: TT_EGREP, .pz_test_text: zThread_KeywordSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9908 | |
| 9909 | /* |
| 9910 | * Fix Command Arguments for Thread_Keyword |
| 9911 | */ |
| 9912 | static const char* apzThread_KeywordPatch[] = { |
| 9913 | "format" , |
| 9914 | "%1__thr%2" , |
| 9915 | (char*)NULL }; |
| 9916 | |
| 9917 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9918 | * |
| 9919 | * Description of Tinfo_Cplusplus fix |
| 9920 | */ |
| 9921 | tSCC zTinfo_CplusplusName[] = |
| 9922 | "tinfo_cplusplus" ; |
| 9923 | |
| 9924 | /* |
| 9925 | * File name selection pattern |
| 9926 | */ |
| 9927 | tSCC zTinfo_CplusplusList[] = |
| 9928 | "tinfo.h\0" ; |
| 9929 | /* |
| 9930 | * Machine/OS name selection pattern |
| 9931 | */ |
| 9932 | #define apzTinfo_CplusplusMachs (const char**)NULL |
| 9933 | |
| 9934 | /* |
| 9935 | * content selection pattern - do fix if pattern found |
| 9936 | */ |
| 9937 | tSCC zTinfo_CplusplusSelect0[] = |
| 9938 | "[ \t]_cplusplus" ; |
| 9939 | |
| 9940 | #define TINFO_CPLUSPLUS_TEST_CT 1 |
| 9941 | static tTestDesc aTinfo_CplusplusTests[] = { |
| 9942 | { .type: TT_EGREP, .pz_test_text: zTinfo_CplusplusSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9943 | |
| 9944 | /* |
| 9945 | * Fix Command Arguments for Tinfo_Cplusplus |
| 9946 | */ |
| 9947 | static const char* apzTinfo_CplusplusPatch[] = { |
| 9948 | "format" , |
| 9949 | " __cplusplus" , |
| 9950 | (char*)NULL }; |
| 9951 | |
| 9952 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9953 | * |
| 9954 | * Description of Ultrix_Const fix |
| 9955 | */ |
| 9956 | tSCC zUltrix_ConstName[] = |
| 9957 | "ultrix_const" ; |
| 9958 | |
| 9959 | /* |
| 9960 | * File name selection pattern |
| 9961 | */ |
| 9962 | tSCC zUltrix_ConstList[] = |
| 9963 | "stdio.h\0" ; |
| 9964 | /* |
| 9965 | * Machine/OS name selection pattern |
| 9966 | */ |
| 9967 | #define apzUltrix_ConstMachs (const char**)NULL |
| 9968 | |
| 9969 | /* |
| 9970 | * content selection pattern - do fix if pattern found |
| 9971 | */ |
| 9972 | tSCC zUltrix_ConstSelect0[] = |
| 9973 | "perror\\( char \\*" ; |
| 9974 | |
| 9975 | #define ULTRIX_CONST_TEST_CT 1 |
| 9976 | static tTestDesc aUltrix_ConstTests[] = { |
| 9977 | { .type: TT_EGREP, .pz_test_text: zUltrix_ConstSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 9978 | |
| 9979 | /* |
| 9980 | * Fix Command Arguments for Ultrix_Const |
| 9981 | */ |
| 9982 | static const char* apzUltrix_ConstPatch[] = { |
| 9983 | "format" , |
| 9984 | "%1 const %3 *__" , |
| 9985 | "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__" , |
| 9986 | (char*)NULL }; |
| 9987 | |
| 9988 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 9989 | * |
| 9990 | * Description of Ultrix_Const2 fix |
| 9991 | */ |
| 9992 | tSCC zUltrix_Const2Name[] = |
| 9993 | "ultrix_const2" ; |
| 9994 | |
| 9995 | /* |
| 9996 | * File name selection pattern |
| 9997 | */ |
| 9998 | tSCC zUltrix_Const2List[] = |
| 9999 | "stdio.h\0" ; |
| 10000 | /* |
| 10001 | * Machine/OS name selection pattern |
| 10002 | */ |
| 10003 | #define apzUltrix_Const2Machs (const char**)NULL |
| 10004 | |
| 10005 | /* |
| 10006 | * content selection pattern - do fix if pattern found |
| 10007 | */ |
| 10008 | tSCC zUltrix_Const2Select0[] = |
| 10009 | "\\*fopen\\( char \\*" ; |
| 10010 | |
| 10011 | #define ULTRIX_CONST2_TEST_CT 1 |
| 10012 | static tTestDesc aUltrix_Const2Tests[] = { |
| 10013 | { .type: TT_EGREP, .pz_test_text: zUltrix_Const2Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 10014 | |
| 10015 | /* |
| 10016 | * Fix Command Arguments for Ultrix_Const2 |
| 10017 | */ |
| 10018 | static const char* apzUltrix_Const2Patch[] = { |
| 10019 | "format" , |
| 10020 | "%1( const char *%3, const char *" , |
| 10021 | "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*" , |
| 10022 | (char*)NULL }; |
| 10023 | |
| 10024 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10025 | * |
| 10026 | * Description of Va_I960_Macro fix |
| 10027 | */ |
| 10028 | tSCC zVa_I960_MacroName[] = |
| 10029 | "va_i960_macro" ; |
| 10030 | |
| 10031 | /* |
| 10032 | * File name selection pattern |
| 10033 | */ |
| 10034 | tSCC zVa_I960_MacroList[] = |
| 10035 | "arch/i960/archI960.h\0" ; |
| 10036 | /* |
| 10037 | * Machine/OS name selection pattern |
| 10038 | */ |
| 10039 | #define apzVa_I960_MacroMachs (const char**)NULL |
| 10040 | |
| 10041 | /* |
| 10042 | * content selection pattern - do fix if pattern found |
| 10043 | */ |
| 10044 | tSCC zVa_I960_MacroSelect0[] = |
| 10045 | "__(vsiz|vali|vpad|alignof__)" ; |
| 10046 | |
| 10047 | #define VA_I960_MACRO_TEST_CT 1 |
| 10048 | static tTestDesc aVa_I960_MacroTests[] = { |
| 10049 | { .type: TT_EGREP, .pz_test_text: zVa_I960_MacroSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10050 | |
| 10051 | /* |
| 10052 | * Fix Command Arguments for Va_I960_Macro |
| 10053 | */ |
| 10054 | static const char* apzVa_I960_MacroPatch[] = { |
| 10055 | "format" , |
| 10056 | "__vx%1" , |
| 10057 | (char*)NULL }; |
| 10058 | |
| 10059 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10060 | * |
| 10061 | * Description of Vms_Add_Missing_Braces fix |
| 10062 | */ |
| 10063 | tSCC zVms_Add_Missing_BracesName[] = |
| 10064 | "vms_add_missing_braces" ; |
| 10065 | |
| 10066 | /* |
| 10067 | * File name selection pattern |
| 10068 | */ |
| 10069 | tSCC zVms_Add_Missing_BracesList[] = |
| 10070 | "rtldef/signal.h\0" ; |
| 10071 | /* |
| 10072 | * Machine/OS name selection pattern |
| 10073 | */ |
| 10074 | tSCC* apzVms_Add_Missing_BracesMachs[] = { |
| 10075 | "*-*-*vms*" , |
| 10076 | (const char*)NULL }; |
| 10077 | |
| 10078 | /* |
| 10079 | * content selection pattern - do fix if pattern found |
| 10080 | */ |
| 10081 | tSCC zVms_Add_Missing_BracesSelect0[] = |
| 10082 | "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)" ; |
| 10083 | |
| 10084 | #define VMS_ADD_MISSING_BRACES_TEST_CT 1 |
| 10085 | static tTestDesc aVms_Add_Missing_BracesTests[] = { |
| 10086 | { .type: TT_EGREP, .pz_test_text: zVms_Add_Missing_BracesSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10087 | |
| 10088 | /* |
| 10089 | * Fix Command Arguments for Vms_Add_Missing_Braces |
| 10090 | */ |
| 10091 | static const char* apzVms_Add_Missing_BracesPatch[] = { |
| 10092 | "format" , |
| 10093 | "%1 {%2} " , |
| 10094 | (char*)NULL }; |
| 10095 | |
| 10096 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10097 | * |
| 10098 | * Description of Vms_Decc_Builtin fix |
| 10099 | */ |
| 10100 | tSCC zVms_Decc_BuiltinName[] = |
| 10101 | "vms_decc_builtin" ; |
| 10102 | |
| 10103 | /* |
| 10104 | * File name selection pattern |
| 10105 | */ |
| 10106 | tSCC zVms_Decc_BuiltinList[] = |
| 10107 | "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0" ; |
| 10108 | /* |
| 10109 | * Machine/OS name selection pattern |
| 10110 | */ |
| 10111 | tSCC* apzVms_Decc_BuiltinMachs[] = { |
| 10112 | "*-*-*vms*" , |
| 10113 | (const char*)NULL }; |
| 10114 | |
| 10115 | /* |
| 10116 | * content selection pattern - do fix if pattern found |
| 10117 | */ |
| 10118 | tSCC zVms_Decc_BuiltinSelect0[] = |
| 10119 | "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)" ; |
| 10120 | |
| 10121 | #define VMS_DECC_BUILTIN_TEST_CT 1 |
| 10122 | static tTestDesc aVms_Decc_BuiltinTests[] = { |
| 10123 | { .type: TT_EGREP, .pz_test_text: zVms_Decc_BuiltinSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10124 | |
| 10125 | /* |
| 10126 | * Fix Command Arguments for Vms_Decc_Builtin |
| 10127 | */ |
| 10128 | static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z, |
| 10129 | "-e" , "s@__MEMSET@memset@" , |
| 10130 | "-e" , "s@__MEMMOVE@memmove@" , |
| 10131 | "-e" , "s@__MEMCPY@memcpy@" , |
| 10132 | "-e" , "s@__STRLEN@strlen@" , |
| 10133 | "-e" , "s@__STRCPY@strcpy@" , |
| 10134 | (char*)NULL }; |
| 10135 | |
| 10136 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10137 | * |
| 10138 | * Description of Vms_Define_Can_Use_Extern_Prefix fix |
| 10139 | */ |
| 10140 | tSCC zVms_Define_Can_Use_Extern_PrefixName[] = |
| 10141 | "vms_define_can_use_extern_prefix" ; |
| 10142 | |
| 10143 | /* |
| 10144 | * File name selection pattern |
| 10145 | */ |
| 10146 | tSCC zVms_Define_Can_Use_Extern_PrefixList[] = |
| 10147 | "rtldef/decc$types.h\0" ; |
| 10148 | /* |
| 10149 | * Machine/OS name selection pattern |
| 10150 | */ |
| 10151 | tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = { |
| 10152 | "*-*-*vms*" , |
| 10153 | (const char*)NULL }; |
| 10154 | |
| 10155 | /* |
| 10156 | * content selection pattern - do fix if pattern found |
| 10157 | */ |
| 10158 | tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] = |
| 10159 | "#[ \t]*else\n\ |
| 10160 | #[ \t]*if defined\\(__DECCXX\\)\n\ |
| 10161 | #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n" ; |
| 10162 | |
| 10163 | #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1 |
| 10164 | static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = { |
| 10165 | { .type: TT_EGREP, .pz_test_text: zVms_Define_Can_Use_Extern_PrefixSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10166 | |
| 10167 | /* |
| 10168 | * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix |
| 10169 | */ |
| 10170 | static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = { |
| 10171 | "format" , |
| 10172 | "%0# elif defined (__GNUC__)\n\ |
| 10173 | #\tdefine __CAN_USE_EXTERN_PREFIX 1\n" , |
| 10174 | (char*)NULL }; |
| 10175 | |
| 10176 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10177 | * |
| 10178 | * Description of Vms_Disable_Decc_String_Builtins fix |
| 10179 | */ |
| 10180 | tSCC zVms_Disable_Decc_String_BuiltinsName[] = |
| 10181 | "vms_disable_decc_string_builtins" ; |
| 10182 | |
| 10183 | /* |
| 10184 | * File name selection pattern |
| 10185 | */ |
| 10186 | tSCC zVms_Disable_Decc_String_BuiltinsList[] = |
| 10187 | "rtldef/string.h\0" ; |
| 10188 | /* |
| 10189 | * Machine/OS name selection pattern |
| 10190 | */ |
| 10191 | tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = { |
| 10192 | "*-*-*vms*" , |
| 10193 | (const char*)NULL }; |
| 10194 | |
| 10195 | /* |
| 10196 | * content selection pattern - do fix if pattern found |
| 10197 | */ |
| 10198 | tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] = |
| 10199 | "#if !defined\\(__VAX\\)\n" ; |
| 10200 | |
| 10201 | #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1 |
| 10202 | static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = { |
| 10203 | { .type: TT_EGREP, .pz_test_text: zVms_Disable_Decc_String_BuiltinsSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10204 | |
| 10205 | /* |
| 10206 | * Fix Command Arguments for Vms_Disable_Decc_String_Builtins |
| 10207 | */ |
| 10208 | static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = { |
| 10209 | "format" , |
| 10210 | "#if !defined(__VAX) && !defined(__GNUC__)\n" , |
| 10211 | (char*)NULL }; |
| 10212 | |
| 10213 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10214 | * |
| 10215 | * Description of Vms_Do_Not_Redeclare_Hostalias fix |
| 10216 | */ |
| 10217 | tSCC zVms_Do_Not_Redeclare_HostaliasName[] = |
| 10218 | "vms_do_not_redeclare_hostalias" ; |
| 10219 | |
| 10220 | /* |
| 10221 | * File name selection pattern |
| 10222 | */ |
| 10223 | tSCC zVms_Do_Not_Redeclare_HostaliasList[] = |
| 10224 | "rtldef/resolv.h\0" ; |
| 10225 | /* |
| 10226 | * Machine/OS name selection pattern |
| 10227 | */ |
| 10228 | tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = { |
| 10229 | "*-*-*vms*" , |
| 10230 | (const char*)NULL }; |
| 10231 | |
| 10232 | /* |
| 10233 | * content selection pattern - do fix if pattern found |
| 10234 | */ |
| 10235 | tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] = |
| 10236 | "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\ |
| 10237 | (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)" ; |
| 10238 | |
| 10239 | #define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1 |
| 10240 | static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = { |
| 10241 | { .type: TT_EGREP, .pz_test_text: zVms_Do_Not_Redeclare_HostaliasSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10242 | |
| 10243 | /* |
| 10244 | * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias |
| 10245 | */ |
| 10246 | static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = { |
| 10247 | "format" , |
| 10248 | "%1\n\ |
| 10249 | /* %2 */" , |
| 10250 | (char*)NULL }; |
| 10251 | |
| 10252 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10253 | * |
| 10254 | * Description of Vms_Forward_Declare_Struct fix |
| 10255 | */ |
| 10256 | tSCC zVms_Forward_Declare_StructName[] = |
| 10257 | "vms_forward_declare_struct" ; |
| 10258 | |
| 10259 | /* |
| 10260 | * File name selection pattern |
| 10261 | */ |
| 10262 | tSCC zVms_Forward_Declare_StructList[] = |
| 10263 | "rtldef/if.h\0" ; |
| 10264 | /* |
| 10265 | * Machine/OS name selection pattern |
| 10266 | */ |
| 10267 | tSCC* apzVms_Forward_Declare_StructMachs[] = { |
| 10268 | "*-*-*vms*" , |
| 10269 | (const char*)NULL }; |
| 10270 | |
| 10271 | /* |
| 10272 | * content selection pattern - do fix if pattern found |
| 10273 | */ |
| 10274 | tSCC zVms_Forward_Declare_StructSelect0[] = |
| 10275 | "(/\\* forward decls for C\\+\\+ \\*/\n\ |
| 10276 | )#ifdef __cplusplus\n" ; |
| 10277 | |
| 10278 | #define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1 |
| 10279 | static tTestDesc aVms_Forward_Declare_StructTests[] = { |
| 10280 | { .type: TT_EGREP, .pz_test_text: zVms_Forward_Declare_StructSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10281 | |
| 10282 | /* |
| 10283 | * Fix Command Arguments for Vms_Forward_Declare_Struct |
| 10284 | */ |
| 10285 | static const char* apzVms_Forward_Declare_StructPatch[] = { |
| 10286 | "format" , |
| 10287 | "%1#if defined (__cplusplus) || defined (__GNUC__)\n" , |
| 10288 | (char*)NULL }; |
| 10289 | |
| 10290 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10291 | * |
| 10292 | * Description of Vms_No_64bit_Getopt fix |
| 10293 | */ |
| 10294 | tSCC zVms_No_64bit_GetoptName[] = |
| 10295 | "vms_no_64bit_getopt" ; |
| 10296 | |
| 10297 | /* |
| 10298 | * File name selection pattern |
| 10299 | */ |
| 10300 | tSCC zVms_No_64bit_GetoptList[] = |
| 10301 | "rtldef/stdio.h\0rtldef/unistd.h\0" ; |
| 10302 | /* |
| 10303 | * Machine/OS name selection pattern |
| 10304 | */ |
| 10305 | tSCC* apzVms_No_64bit_GetoptMachs[] = { |
| 10306 | "*-*-*vms*" , |
| 10307 | (const char*)NULL }; |
| 10308 | |
| 10309 | /* |
| 10310 | * content selection pattern - do fix if pattern found |
| 10311 | */ |
| 10312 | tSCC zVms_No_64bit_GetoptSelect0[] = |
| 10313 | "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n" ; |
| 10314 | |
| 10315 | #define VMS_NO_64BIT_GETOPT_TEST_CT 1 |
| 10316 | static tTestDesc aVms_No_64bit_GetoptTests[] = { |
| 10317 | { .type: TT_EGREP, .pz_test_text: zVms_No_64bit_GetoptSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10318 | |
| 10319 | /* |
| 10320 | * Fix Command Arguments for Vms_No_64bit_Getopt |
| 10321 | */ |
| 10322 | static const char* apzVms_No_64bit_GetoptPatch[] = { |
| 10323 | "format" , |
| 10324 | "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\ |
| 10325 | %0#endif\n" , |
| 10326 | (char*)NULL }; |
| 10327 | |
| 10328 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10329 | * |
| 10330 | * Description of Vms_Use_Fast_Setjmp fix |
| 10331 | */ |
| 10332 | tSCC zVms_Use_Fast_SetjmpName[] = |
| 10333 | "vms_use_fast_setjmp" ; |
| 10334 | |
| 10335 | /* |
| 10336 | * File name selection pattern |
| 10337 | */ |
| 10338 | tSCC zVms_Use_Fast_SetjmpList[] = |
| 10339 | "rtldef/setjmp.h\0" ; |
| 10340 | /* |
| 10341 | * Machine/OS name selection pattern |
| 10342 | */ |
| 10343 | tSCC* apzVms_Use_Fast_SetjmpMachs[] = { |
| 10344 | "*-*-*vms*" , |
| 10345 | (const char*)NULL }; |
| 10346 | |
| 10347 | /* |
| 10348 | * content selection pattern - do fix if pattern found |
| 10349 | */ |
| 10350 | tSCC zVms_Use_Fast_SetjmpSelect0[] = |
| 10351 | "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)" ; |
| 10352 | |
| 10353 | #define VMS_USE_FAST_SETJMP_TEST_CT 1 |
| 10354 | static tTestDesc aVms_Use_Fast_SetjmpTests[] = { |
| 10355 | { .type: TT_EGREP, .pz_test_text: zVms_Use_Fast_SetjmpSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10356 | |
| 10357 | /* |
| 10358 | * Fix Command Arguments for Vms_Use_Fast_Setjmp |
| 10359 | */ |
| 10360 | static const char* apzVms_Use_Fast_SetjmpPatch[] = { |
| 10361 | "format" , |
| 10362 | "%0 defined (__GNUC__) ||" , |
| 10363 | (char*)NULL }; |
| 10364 | |
| 10365 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10366 | * |
| 10367 | * Description of Vms_Use_Pragma_Extern_Model fix |
| 10368 | */ |
| 10369 | tSCC zVms_Use_Pragma_Extern_ModelName[] = |
| 10370 | "vms_use_pragma_extern_model" ; |
| 10371 | |
| 10372 | /* |
| 10373 | * File name selection pattern |
| 10374 | */ |
| 10375 | #define zVms_Use_Pragma_Extern_ModelList (char*)NULL |
| 10376 | /* |
| 10377 | * Machine/OS name selection pattern |
| 10378 | */ |
| 10379 | tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = { |
| 10380 | "*-*-*vms*" , |
| 10381 | (const char*)NULL }; |
| 10382 | |
| 10383 | /* |
| 10384 | * content selection pattern - do fix if pattern found |
| 10385 | */ |
| 10386 | tSCC zVms_Use_Pragma_Extern_ModelSelect0[] = |
| 10387 | "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\ |
| 10388 | # pragma extern_model __save\n" ; |
| 10389 | |
| 10390 | #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1 |
| 10391 | static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = { |
| 10392 | { .type: TT_EGREP, .pz_test_text: zVms_Use_Pragma_Extern_ModelSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10393 | |
| 10394 | /* |
| 10395 | * Fix Command Arguments for Vms_Use_Pragma_Extern_Model |
| 10396 | */ |
| 10397 | static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = { |
| 10398 | "format" , |
| 10399 | "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\ |
| 10400 | # pragma extern_model __save\n" , |
| 10401 | (char*)NULL }; |
| 10402 | |
| 10403 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10404 | * |
| 10405 | * Description of Vms_Use_Quoted_Include fix |
| 10406 | */ |
| 10407 | tSCC zVms_Use_Quoted_IncludeName[] = |
| 10408 | "vms_use_quoted_include" ; |
| 10409 | |
| 10410 | /* |
| 10411 | * File name selection pattern |
| 10412 | */ |
| 10413 | tSCC zVms_Use_Quoted_IncludeList[] = |
| 10414 | "rtldef/wait.h\0starlet_c/pthread.h\0" ; |
| 10415 | /* |
| 10416 | * Machine/OS name selection pattern |
| 10417 | */ |
| 10418 | tSCC* apzVms_Use_Quoted_IncludeMachs[] = { |
| 10419 | "*-*-*vms*" , |
| 10420 | (const char*)NULL }; |
| 10421 | |
| 10422 | /* |
| 10423 | * content selection pattern - do fix if pattern found |
| 10424 | */ |
| 10425 | tSCC zVms_Use_Quoted_IncludeSelect0[] = |
| 10426 | "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>" ; |
| 10427 | |
| 10428 | #define VMS_USE_QUOTED_INCLUDE_TEST_CT 1 |
| 10429 | static tTestDesc aVms_Use_Quoted_IncludeTests[] = { |
| 10430 | { .type: TT_EGREP, .pz_test_text: zVms_Use_Quoted_IncludeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10431 | |
| 10432 | /* |
| 10433 | * Fix Command Arguments for Vms_Use_Quoted_Include |
| 10434 | */ |
| 10435 | static const char* apzVms_Use_Quoted_IncludePatch[] = { |
| 10436 | "format" , |
| 10437 | "%1<sys/%2.h>" , |
| 10438 | (char*)NULL }; |
| 10439 | |
| 10440 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10441 | * |
| 10442 | * Description of Void_Null fix |
| 10443 | */ |
| 10444 | tSCC zVoid_NullName[] = |
| 10445 | "void_null" ; |
| 10446 | |
| 10447 | /* |
| 10448 | * File name selection pattern |
| 10449 | */ |
| 10450 | tSCC zVoid_NullList[] = |
| 10451 | "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0sys/dir.h\0sys/param.h\0sys/types.h\0" ; |
| 10452 | /* |
| 10453 | * Machine/OS name selection pattern |
| 10454 | */ |
| 10455 | #define apzVoid_NullMachs (const char**)NULL |
| 10456 | |
| 10457 | /* |
| 10458 | * content selection pattern - do fix if pattern found |
| 10459 | */ |
| 10460 | tSCC zVoid_NullSelect0[] = |
| 10461 | "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)" ; |
| 10462 | |
| 10463 | /* |
| 10464 | * content bypass pattern - skip fix if pattern found |
| 10465 | */ |
| 10466 | tSCC zVoid_NullBypass0[] = |
| 10467 | "__cplusplus" ; |
| 10468 | tSCC zVoid_NullBypass1[] = |
| 10469 | "__null" ; |
| 10470 | |
| 10471 | #define VOID_NULL_TEST_CT 3 |
| 10472 | static tTestDesc aVoid_NullTests[] = { |
| 10473 | { .type: TT_NEGREP, .pz_test_text: zVoid_NullBypass0, .p_test_regex: (regex_t*)NULL }, |
| 10474 | { .type: TT_NEGREP, .pz_test_text: zVoid_NullBypass1, .p_test_regex: (regex_t*)NULL }, |
| 10475 | { .type: TT_EGREP, .pz_test_text: zVoid_NullSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10476 | |
| 10477 | /* |
| 10478 | * Fix Command Arguments for Void_Null |
| 10479 | */ |
| 10480 | static const char* apzVoid_NullPatch[] = { |
| 10481 | "format" , |
| 10482 | "#ifndef NULL\n\ |
| 10483 | #ifdef __cplusplus\n\ |
| 10484 | #ifdef __GNUG__\n\ |
| 10485 | #define NULL __null\n\ |
| 10486 | #else /* ! __GNUG__ */\n\ |
| 10487 | #define NULL 0L\n\ |
| 10488 | #endif /* __GNUG__ */\n\ |
| 10489 | #else /* ! __cplusplus */\n\ |
| 10490 | #define NULL ((void *)0)\n\ |
| 10491 | #endif /* __cplusplus */\n\ |
| 10492 | #endif /* !NULL */" , |
| 10493 | (char*)NULL }; |
| 10494 | |
| 10495 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10496 | * |
| 10497 | * Description of Vxworks_Gcc_Problem fix |
| 10498 | */ |
| 10499 | tSCC zVxworks_Gcc_ProblemName[] = |
| 10500 | "vxworks_gcc_problem" ; |
| 10501 | |
| 10502 | /* |
| 10503 | * File name selection pattern |
| 10504 | */ |
| 10505 | tSCC zVxworks_Gcc_ProblemList[] = |
| 10506 | "types/vxTypesBase.h\0" ; |
| 10507 | /* |
| 10508 | * Machine/OS name selection pattern |
| 10509 | */ |
| 10510 | #define apzVxworks_Gcc_ProblemMachs (const char**)NULL |
| 10511 | |
| 10512 | /* |
| 10513 | * content selection pattern - do fix if pattern found |
| 10514 | */ |
| 10515 | tSCC zVxworks_Gcc_ProblemSelect0[] = |
| 10516 | "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__" ; |
| 10517 | |
| 10518 | #define VXWORKS_GCC_PROBLEM_TEST_CT 1 |
| 10519 | static tTestDesc aVxworks_Gcc_ProblemTests[] = { |
| 10520 | { .type: TT_EGREP, .pz_test_text: zVxworks_Gcc_ProblemSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10521 | |
| 10522 | /* |
| 10523 | * Fix Command Arguments for Vxworks_Gcc_Problem |
| 10524 | */ |
| 10525 | static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z, |
| 10526 | "-e" , "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/" , |
| 10527 | "-e" , "/[ \t]size_t/i\\\n\ |
| 10528 | #ifndef _GCC_SIZE_T\\\n\ |
| 10529 | #define _GCC_SIZE_T\n" , |
| 10530 | "-e" , "/[ \t]size_t/a\\\n\ |
| 10531 | #endif\n" , |
| 10532 | "-e" , "/[ \t]ptrdiff_t/i\\\n\ |
| 10533 | #ifndef _GCC_PTRDIFF_T\\\n\ |
| 10534 | #define _GCC_PTRDIFF_T\n" , |
| 10535 | "-e" , "/[ \t]ptrdiff_t/a\\\n\ |
| 10536 | #endif\n" , |
| 10537 | "-e" , "/[ \t]wchar_t/i\\\n\ |
| 10538 | #ifndef _GCC_WCHAR_T\\\n\ |
| 10539 | #define _GCC_WCHAR_T\n" , |
| 10540 | "-e" , "/[ \t]wchar_t/a\\\n\ |
| 10541 | #endif\n" , |
| 10542 | (char*)NULL }; |
| 10543 | |
| 10544 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10545 | * |
| 10546 | * Description of Vxworks_Ioctl_Macro fix |
| 10547 | */ |
| 10548 | tSCC zVxworks_Ioctl_MacroName[] = |
| 10549 | "vxworks_ioctl_macro" ; |
| 10550 | |
| 10551 | /* |
| 10552 | * File name selection pattern |
| 10553 | */ |
| 10554 | tSCC zVxworks_Ioctl_MacroList[] = |
| 10555 | "ioLib.h\0" ; |
| 10556 | /* |
| 10557 | * Machine/OS name selection pattern |
| 10558 | */ |
| 10559 | tSCC* apzVxworks_Ioctl_MacroMachs[] = { |
| 10560 | "*-*-vxworks*" , |
| 10561 | (const char*)NULL }; |
| 10562 | #define VXWORKS_IOCTL_MACRO_TEST_CT 0 |
| 10563 | #define aVxworks_Ioctl_MacroTests (tTestDesc*)NULL |
| 10564 | |
| 10565 | /* |
| 10566 | * Fix Command Arguments for Vxworks_Ioctl_Macro |
| 10567 | */ |
| 10568 | static const char* apzVxworks_Ioctl_MacroPatch[] = { |
| 10569 | "format" , |
| 10570 | "%0\n\ |
| 10571 | #define ioctl(fd, func, arg) ioctl(fd, func, (int)(arg))\n" , |
| 10572 | "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);" , |
| 10573 | (char*)NULL }; |
| 10574 | |
| 10575 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10576 | * |
| 10577 | * Description of Vxworks_Math_H_Fp_C99 fix |
| 10578 | */ |
| 10579 | tSCC zVxworks_Math_H_Fp_C99Name[] = |
| 10580 | "vxworks_math_h_fp_c99" ; |
| 10581 | |
| 10582 | /* |
| 10583 | * File name selection pattern |
| 10584 | */ |
| 10585 | tSCC zVxworks_Math_H_Fp_C99List[] = |
| 10586 | "math.h\0" ; |
| 10587 | /* |
| 10588 | * Machine/OS name selection pattern |
| 10589 | */ |
| 10590 | tSCC* apzVxworks_Math_H_Fp_C99Machs[] = { |
| 10591 | "*-*-vxworks*" , |
| 10592 | (const char*)NULL }; |
| 10593 | |
| 10594 | /* |
| 10595 | * content selection pattern - do fix if pattern found |
| 10596 | */ |
| 10597 | tSCC zVxworks_Math_H_Fp_C99Select0[] = |
| 10598 | "#define HUGE_VAL[ \t]*_ARCH.*" ; |
| 10599 | |
| 10600 | /* |
| 10601 | * content bypass pattern - skip fix if pattern found |
| 10602 | */ |
| 10603 | tSCC zVxworks_Math_H_Fp_C99Bypass0[] = |
| 10604 | "#define[ \t]+FP_INFINITE" ; |
| 10605 | |
| 10606 | #define VXWORKS_MATH_H_FP_C99_TEST_CT 2 |
| 10607 | static tTestDesc aVxworks_Math_H_Fp_C99Tests[] = { |
| 10608 | { .type: TT_NEGREP, .pz_test_text: zVxworks_Math_H_Fp_C99Bypass0, .p_test_regex: (regex_t*)NULL }, |
| 10609 | { .type: TT_EGREP, .pz_test_text: zVxworks_Math_H_Fp_C99Select0, .p_test_regex: (regex_t*)NULL }, }; |
| 10610 | |
| 10611 | /* |
| 10612 | * Fix Command Arguments for Vxworks_Math_H_Fp_C99 |
| 10613 | */ |
| 10614 | static const char* apzVxworks_Math_H_Fp_C99Patch[] = { |
| 10615 | "format" , |
| 10616 | "\n\ |
| 10617 | %0\n\n\ |
| 10618 | #if _C99\n\n\ |
| 10619 | #define FP_INFINITE 1\n\ |
| 10620 | #define FP_NAN 2\n\ |
| 10621 | #define FP_NORMAL (-1)\n\ |
| 10622 | #define FP_SUBNORMAL (-2)\n\ |
| 10623 | #define FP_ZERO 0\n\n\ |
| 10624 | #define fpclassify(x) \\\n\ |
| 10625 | __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, \\\n\ |
| 10626 | \t\t FP_SUBNORMAL, FP_ZERO, (x))\n\n\ |
| 10627 | #define signbit(x) __builtin_signbit(x)\n\ |
| 10628 | #define isfinite(x) __builtin_isfinite(x)\n\ |
| 10629 | #define isnormal(x) __builtin_isnormal(x)\n\ |
| 10630 | #define isnan(x) __builtin_isnan(x)\n\ |
| 10631 | #define isinf(x) __builtin_isinf(x)\n\n\ |
| 10632 | #define isgreater(x, y) __builtin_isgreater((x),(y))\n\ |
| 10633 | #define isgreaterequal(x, y) __builtin_isgreaterequal((x),(y))\n\ |
| 10634 | #define isless(x, y) __builtin_isless((x),(y))\n\ |
| 10635 | #define islessequal(x, y) __builtin_islessequal((x),(y))\n\ |
| 10636 | #define islessgreater(x, y) __builtin_islessgreater((x),(y))\n\ |
| 10637 | #define isunordered(x, y) __builtin_isunordered((x),(y))\n\n\ |
| 10638 | #endif /* _C99 */\n" , |
| 10639 | (char*)NULL }; |
| 10640 | |
| 10641 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10642 | * |
| 10643 | * Description of Vxworks_Posix_Mkdir fix |
| 10644 | */ |
| 10645 | tSCC zVxworks_Posix_MkdirName[] = |
| 10646 | "vxworks_posix_mkdir" ; |
| 10647 | |
| 10648 | /* |
| 10649 | * File name selection pattern |
| 10650 | */ |
| 10651 | tSCC zVxworks_Posix_MkdirList[] = |
| 10652 | "sys/stat.h\0" ; |
| 10653 | /* |
| 10654 | * Machine/OS name selection pattern |
| 10655 | */ |
| 10656 | tSCC* apzVxworks_Posix_MkdirMachs[] = { |
| 10657 | "*-*-vxworks*" , |
| 10658 | (const char*)NULL }; |
| 10659 | #define VXWORKS_POSIX_MKDIR_TEST_CT 0 |
| 10660 | #define aVxworks_Posix_MkdirTests (tTestDesc*)NULL |
| 10661 | |
| 10662 | /* |
| 10663 | * Fix Command Arguments for Vxworks_Posix_Mkdir |
| 10664 | */ |
| 10665 | static const char* apzVxworks_Posix_MkdirPatch[] = { |
| 10666 | "format" , |
| 10667 | "extern STATUS mkdir(const char *dir, ...);" , |
| 10668 | "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;" , |
| 10669 | (char*)NULL }; |
| 10670 | |
| 10671 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10672 | * |
| 10673 | * Description of Vxworks_Needs_Vxtypes fix |
| 10674 | */ |
| 10675 | tSCC zVxworks_Needs_VxtypesName[] = |
| 10676 | "vxworks_needs_vxtypes" ; |
| 10677 | |
| 10678 | /* |
| 10679 | * File name selection pattern |
| 10680 | */ |
| 10681 | tSCC zVxworks_Needs_VxtypesList[] = |
| 10682 | "time.h\0" ; |
| 10683 | /* |
| 10684 | * Machine/OS name selection pattern |
| 10685 | */ |
| 10686 | #define apzVxworks_Needs_VxtypesMachs (const char**)NULL |
| 10687 | |
| 10688 | /* |
| 10689 | * content selection pattern - do fix if pattern found |
| 10690 | */ |
| 10691 | tSCC zVxworks_Needs_VxtypesSelect0[] = |
| 10692 | "uint_t([ \t]+_clocks_per_sec)" ; |
| 10693 | |
| 10694 | #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 |
| 10695 | static tTestDesc aVxworks_Needs_VxtypesTests[] = { |
| 10696 | { .type: TT_EGREP, .pz_test_text: zVxworks_Needs_VxtypesSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10697 | |
| 10698 | /* |
| 10699 | * Fix Command Arguments for Vxworks_Needs_Vxtypes |
| 10700 | */ |
| 10701 | static const char* apzVxworks_Needs_VxtypesPatch[] = { |
| 10702 | "format" , |
| 10703 | "unsigned int%1" , |
| 10704 | (char*)NULL }; |
| 10705 | |
| 10706 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10707 | * |
| 10708 | * Description of Vxworks_Needs_Vxworks fix |
| 10709 | */ |
| 10710 | tSCC zVxworks_Needs_VxworksName[] = |
| 10711 | "vxworks_needs_vxworks" ; |
| 10712 | |
| 10713 | /* |
| 10714 | * File name selection pattern |
| 10715 | */ |
| 10716 | tSCC zVxworks_Needs_VxworksList[] = |
| 10717 | "sys/stat.h\0" ; |
| 10718 | /* |
| 10719 | * Machine/OS name selection pattern |
| 10720 | */ |
| 10721 | #define apzVxworks_Needs_VxworksMachs (const char**)NULL |
| 10722 | |
| 10723 | /* |
| 10724 | * content selection pattern - do fix if pattern found |
| 10725 | */ |
| 10726 | tSCC zVxworks_Needs_VxworksSelect0[] = |
| 10727 | "#[ \t]define[ \t]+__INCstath" ; |
| 10728 | |
| 10729 | /* |
| 10730 | * perform the 'test' shell command - do fix on success |
| 10731 | */ |
| 10732 | tSCC zVxworks_Needs_VxworksTest0[] = |
| 10733 | " -r types/vxTypesOld.h" ; |
| 10734 | tSCC zVxworks_Needs_VxworksTest1[] = |
| 10735 | " -n \"`egrep '#include' $file`\"" ; |
| 10736 | tSCC zVxworks_Needs_VxworksTest2[] = |
| 10737 | " -n \"`egrep ULONG $file`\"" ; |
| 10738 | |
| 10739 | #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 |
| 10740 | static tTestDesc aVxworks_Needs_VxworksTests[] = { |
| 10741 | { .type: TT_TEST, .pz_test_text: zVxworks_Needs_VxworksTest0, .p_test_regex: 0 /* unused */ }, |
| 10742 | { .type: TT_TEST, .pz_test_text: zVxworks_Needs_VxworksTest1, .p_test_regex: 0 /* unused */ }, |
| 10743 | { .type: TT_TEST, .pz_test_text: zVxworks_Needs_VxworksTest2, .p_test_regex: 0 /* unused */ }, |
| 10744 | { .type: TT_EGREP, .pz_test_text: zVxworks_Needs_VxworksSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10745 | |
| 10746 | /* |
| 10747 | * Fix Command Arguments for Vxworks_Needs_Vxworks |
| 10748 | */ |
| 10749 | static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z, |
| 10750 | "-e" , "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ |
| 10751 | #include <types/vxTypesOld.h>\n" , |
| 10752 | (char*)NULL }; |
| 10753 | |
| 10754 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10755 | * |
| 10756 | * Description of Vxworks_Next_Yvals fix |
| 10757 | */ |
| 10758 | tSCC zVxworks_Next_YvalsName[] = |
| 10759 | "vxworks_next_yvals" ; |
| 10760 | |
| 10761 | /* |
| 10762 | * File name selection pattern |
| 10763 | */ |
| 10764 | tSCC zVxworks_Next_YvalsList[] = |
| 10765 | "yvals.h\0" ; |
| 10766 | /* |
| 10767 | * Machine/OS name selection pattern |
| 10768 | */ |
| 10769 | tSCC* apzVxworks_Next_YvalsMachs[] = { |
| 10770 | "*-*-vxworks*" , |
| 10771 | (const char*)NULL }; |
| 10772 | |
| 10773 | /* |
| 10774 | * content selection pattern - do fix if pattern found |
| 10775 | */ |
| 10776 | tSCC zVxworks_Next_YvalsSelect0[] = |
| 10777 | "#include_next <yvals.h>" ; |
| 10778 | |
| 10779 | #define VXWORKS_NEXT_YVALS_TEST_CT 1 |
| 10780 | static tTestDesc aVxworks_Next_YvalsTests[] = { |
| 10781 | { .type: TT_EGREP, .pz_test_text: zVxworks_Next_YvalsSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10782 | |
| 10783 | /* |
| 10784 | * Fix Command Arguments for Vxworks_Next_Yvals |
| 10785 | */ |
| 10786 | static const char* apzVxworks_Next_YvalsPatch[] = { |
| 10787 | "format" , |
| 10788 | "#if 0 /* GCC does not provide yvals.h. */\n\ |
| 10789 | %1" , |
| 10790 | "#if .*\n\ |
| 10791 | /\\* .*\n\ |
| 10792 | (#include_next <yvals.h>\n\ |
| 10793 | )" , |
| 10794 | (char*)NULL }; |
| 10795 | |
| 10796 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10797 | * |
| 10798 | * Description of Vxworks_Regs fix |
| 10799 | */ |
| 10800 | tSCC zVxworks_RegsName[] = |
| 10801 | "vxworks_regs" ; |
| 10802 | |
| 10803 | /* |
| 10804 | * File name selection pattern |
| 10805 | */ |
| 10806 | #define zVxworks_RegsList (char*)NULL |
| 10807 | /* |
| 10808 | * Machine/OS name selection pattern |
| 10809 | */ |
| 10810 | tSCC* apzVxworks_RegsMachs[] = { |
| 10811 | "*-*-vxworks*" , |
| 10812 | (const char*)NULL }; |
| 10813 | |
| 10814 | /* |
| 10815 | * content selection pattern - do fix if pattern found |
| 10816 | */ |
| 10817 | tSCC zVxworks_RegsSelect0[] = |
| 10818 | "#[\t ]*include[\t ]+[<\"]regs.h[>\"]" ; |
| 10819 | |
| 10820 | #define VXWORKS_REGS_TEST_CT 1 |
| 10821 | static tTestDesc aVxworks_RegsTests[] = { |
| 10822 | { .type: TT_EGREP, .pz_test_text: zVxworks_RegsSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10823 | |
| 10824 | /* |
| 10825 | * Fix Command Arguments for Vxworks_Regs |
| 10826 | */ |
| 10827 | static const char* apzVxworks_RegsPatch[] = { |
| 10828 | "format" , |
| 10829 | "#include <arch/../regs.h>" , |
| 10830 | (char*)NULL }; |
| 10831 | |
| 10832 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10833 | * |
| 10834 | * Description of Vxworks_Posix_Open fix |
| 10835 | */ |
| 10836 | tSCC zVxworks_Posix_OpenName[] = |
| 10837 | "vxworks_posix_open" ; |
| 10838 | |
| 10839 | /* |
| 10840 | * File name selection pattern |
| 10841 | */ |
| 10842 | tSCC zVxworks_Posix_OpenList[] = |
| 10843 | "fcntl.h\0" ; |
| 10844 | /* |
| 10845 | * Machine/OS name selection pattern |
| 10846 | */ |
| 10847 | tSCC* apzVxworks_Posix_OpenMachs[] = { |
| 10848 | "*-*-vxworks*" , |
| 10849 | (const char*)NULL }; |
| 10850 | |
| 10851 | /* |
| 10852 | * content selection pattern - do fix if pattern found |
| 10853 | */ |
| 10854 | tSCC zVxworks_Posix_OpenSelect0[] = |
| 10855 | "extern int.*open \\(const char \\*[ a-z]*, int[ a-z]*, int[ a-z]*\\);" ; |
| 10856 | |
| 10857 | #define VXWORKS_POSIX_OPEN_TEST_CT 1 |
| 10858 | static tTestDesc aVxworks_Posix_OpenTests[] = { |
| 10859 | { .type: TT_EGREP, .pz_test_text: zVxworks_Posix_OpenSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10860 | |
| 10861 | /* |
| 10862 | * Fix Command Arguments for Vxworks_Posix_Open |
| 10863 | */ |
| 10864 | static const char* apzVxworks_Posix_OpenPatch[] = { |
| 10865 | "format" , |
| 10866 | "%0\n\n\ |
| 10867 | #if defined(__cplusplus)\n\ |
| 10868 | extern \"C++\" {\n\ |
| 10869 | inline int open (const char *, int) __attribute__((__always_inline__));\n\n\ |
| 10870 | inline int\n\ |
| 10871 | open (const char *name, int flags)\n\ |
| 10872 | {\n\ |
| 10873 | return open (name, flags, 0);\n\ |
| 10874 | }\n\ |
| 10875 | }\n\ |
| 10876 | #endif\n" , |
| 10877 | (char*)NULL }; |
| 10878 | |
| 10879 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10880 | * |
| 10881 | * Description of Vxworks_Time fix |
| 10882 | */ |
| 10883 | tSCC zVxworks_TimeName[] = |
| 10884 | "vxworks_time" ; |
| 10885 | |
| 10886 | /* |
| 10887 | * File name selection pattern |
| 10888 | */ |
| 10889 | tSCC zVxworks_TimeList[] = |
| 10890 | "time.h\0" ; |
| 10891 | /* |
| 10892 | * Machine/OS name selection pattern |
| 10893 | */ |
| 10894 | #define apzVxworks_TimeMachs (const char**)NULL |
| 10895 | |
| 10896 | /* |
| 10897 | * content selection pattern - do fix if pattern found |
| 10898 | */ |
| 10899 | tSCC zVxworks_TimeSelect0[] = |
| 10900 | "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*" ; |
| 10901 | |
| 10902 | /* |
| 10903 | * perform the 'test' shell command - do fix on success |
| 10904 | */ |
| 10905 | tSCC zVxworks_TimeTest0[] = |
| 10906 | " -r vxWorks.h" ; |
| 10907 | |
| 10908 | #define VXWORKS_TIME_TEST_CT 2 |
| 10909 | static tTestDesc aVxworks_TimeTests[] = { |
| 10910 | { .type: TT_TEST, .pz_test_text: zVxworks_TimeTest0, .p_test_regex: 0 /* unused */ }, |
| 10911 | { .type: TT_EGREP, .pz_test_text: zVxworks_TimeSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10912 | |
| 10913 | /* |
| 10914 | * Fix Command Arguments for Vxworks_Time |
| 10915 | */ |
| 10916 | static const char* apzVxworks_TimePatch[] = { |
| 10917 | "format" , |
| 10918 | "#ifndef __gcc_VOIDFUNCPTR_defined\n\ |
| 10919 | #ifdef __cplusplus\n\ |
| 10920 | typedef void (*__gcc_VOIDFUNCPTR) (...);\n\ |
| 10921 | #else\n\ |
| 10922 | typedef void (*__gcc_VOIDFUNCPTR) ();\n\ |
| 10923 | #endif\n\ |
| 10924 | #define __gcc_VOIDFUNCPTR_defined\n\ |
| 10925 | #endif\n\ |
| 10926 | #define VOIDFUNCPTR __gcc_VOIDFUNCPTR" , |
| 10927 | (char*)NULL }; |
| 10928 | |
| 10929 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10930 | * |
| 10931 | * Description of Vxworks_Write_Const fix |
| 10932 | */ |
| 10933 | tSCC zVxworks_Write_ConstName[] = |
| 10934 | "vxworks_write_const" ; |
| 10935 | |
| 10936 | /* |
| 10937 | * File name selection pattern |
| 10938 | */ |
| 10939 | tSCC zVxworks_Write_ConstList[] = |
| 10940 | "ioLib.h\0" ; |
| 10941 | /* |
| 10942 | * Machine/OS name selection pattern |
| 10943 | */ |
| 10944 | tSCC* apzVxworks_Write_ConstMachs[] = { |
| 10945 | "*-*-vxworks*" , |
| 10946 | (const char*)NULL }; |
| 10947 | #define VXWORKS_WRITE_CONST_TEST_CT 0 |
| 10948 | #define aVxworks_Write_ConstTests (tTestDesc*)NULL |
| 10949 | |
| 10950 | /* |
| 10951 | * Fix Command Arguments for Vxworks_Write_Const |
| 10952 | */ |
| 10953 | static const char* apzVxworks_Write_ConstPatch[] = { |
| 10954 | "format" , |
| 10955 | "extern int write (int, const char*, size_t);" , |
| 10956 | "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;" , |
| 10957 | (char*)NULL }; |
| 10958 | |
| 10959 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10960 | * |
| 10961 | * Description of Vxworks_Iolib_Include_Unistd fix |
| 10962 | */ |
| 10963 | tSCC zVxworks_Iolib_Include_UnistdName[] = |
| 10964 | "vxworks_iolib_include_unistd" ; |
| 10965 | |
| 10966 | /* |
| 10967 | * File name selection pattern |
| 10968 | */ |
| 10969 | tSCC zVxworks_Iolib_Include_UnistdList[] = |
| 10970 | "ioLib.h\0" ; |
| 10971 | /* |
| 10972 | * Machine/OS name selection pattern |
| 10973 | */ |
| 10974 | tSCC* apzVxworks_Iolib_Include_UnistdMachs[] = { |
| 10975 | "*-*-vxworks*" , |
| 10976 | (const char*)NULL }; |
| 10977 | |
| 10978 | /* |
| 10979 | * content selection pattern - do fix if pattern found |
| 10980 | */ |
| 10981 | tSCC zVxworks_Iolib_Include_UnistdSelect0[] = |
| 10982 | "#include \"unistd.h\"" ; |
| 10983 | |
| 10984 | #define VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT 1 |
| 10985 | static tTestDesc aVxworks_Iolib_Include_UnistdTests[] = { |
| 10986 | { .type: TT_EGREP, .pz_test_text: zVxworks_Iolib_Include_UnistdSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 10987 | |
| 10988 | /* |
| 10989 | * Fix Command Arguments for Vxworks_Iolib_Include_Unistd |
| 10990 | */ |
| 10991 | static const char* apzVxworks_Iolib_Include_UnistdPatch[] = { |
| 10992 | "format" , |
| 10993 | "#include <unistd.h>" , |
| 10994 | (char*)NULL }; |
| 10995 | |
| 10996 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 10997 | * |
| 10998 | * Description of Vxworks_Time_H_Syslib fix |
| 10999 | */ |
| 11000 | tSCC zVxworks_Time_H_SyslibName[] = |
| 11001 | "vxworks_time_h_syslib" ; |
| 11002 | |
| 11003 | /* |
| 11004 | * File name selection pattern |
| 11005 | */ |
| 11006 | tSCC zVxworks_Time_H_SyslibList[] = |
| 11007 | "time.h\0" ; |
| 11008 | /* |
| 11009 | * Machine/OS name selection pattern |
| 11010 | */ |
| 11011 | tSCC* apzVxworks_Time_H_SyslibMachs[] = { |
| 11012 | "*-*-vxworks*" , |
| 11013 | (const char*)NULL }; |
| 11014 | |
| 11015 | /* |
| 11016 | * content selection pattern - do fix if pattern found |
| 11017 | */ |
| 11018 | tSCC zVxworks_Time_H_SyslibSelect0[] = |
| 11019 | "[ \t]*#define[ \t]+CLOCKS_PER_SEC[ \t]+sysClkRateGet.*" ; |
| 11020 | |
| 11021 | #define VXWORKS_TIME_H_SYSLIB_TEST_CT 1 |
| 11022 | static tTestDesc aVxworks_Time_H_SyslibTests[] = { |
| 11023 | { .type: TT_EGREP, .pz_test_text: zVxworks_Time_H_SyslibSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 11024 | |
| 11025 | /* |
| 11026 | * Fix Command Arguments for Vxworks_Time_H_Syslib |
| 11027 | */ |
| 11028 | static const char* apzVxworks_Time_H_SyslibPatch[] = { |
| 11029 | "format" , |
| 11030 | "%0\n\ |
| 11031 | #include <sysLib.h>" , |
| 11032 | "#include <vxWorks.h>|#endif.* _YVALS.*" , |
| 11033 | (char*)NULL }; |
| 11034 | |
| 11035 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 11036 | * |
| 11037 | * Description of X11_Class fix |
| 11038 | */ |
| 11039 | tSCC zX11_ClassName[] = |
| 11040 | "x11_class" ; |
| 11041 | |
| 11042 | /* |
| 11043 | * File name selection pattern |
| 11044 | */ |
| 11045 | tSCC zX11_ClassList[] = |
| 11046 | "X11/ShellP.h\0" ; |
| 11047 | /* |
| 11048 | * Machine/OS name selection pattern |
| 11049 | */ |
| 11050 | #define apzX11_ClassMachs (const char**)NULL |
| 11051 | |
| 11052 | /* |
| 11053 | * content selection pattern - do fix if pattern found |
| 11054 | */ |
| 11055 | tSCC zX11_ClassSelect0[] = |
| 11056 | "^([ \t]*char \\*)class;(.*)" ; |
| 11057 | |
| 11058 | /* |
| 11059 | * content bypass pattern - skip fix if pattern found |
| 11060 | */ |
| 11061 | tSCC zX11_ClassBypass0[] = |
| 11062 | "__cplusplus" ; |
| 11063 | |
| 11064 | #define X11_CLASS_TEST_CT 2 |
| 11065 | static tTestDesc aX11_ClassTests[] = { |
| 11066 | { .type: TT_NEGREP, .pz_test_text: zX11_ClassBypass0, .p_test_regex: (regex_t*)NULL }, |
| 11067 | { .type: TT_EGREP, .pz_test_text: zX11_ClassSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 11068 | |
| 11069 | /* |
| 11070 | * Fix Command Arguments for X11_Class |
| 11071 | */ |
| 11072 | static const char* apzX11_ClassPatch[] = { |
| 11073 | "format" , |
| 11074 | "#ifdef __cplusplus\n\ |
| 11075 | %1c_class;%2\n\ |
| 11076 | #else\n\ |
| 11077 | %1class;%2\n\ |
| 11078 | #endif" , |
| 11079 | (char*)NULL }; |
| 11080 | |
| 11081 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 11082 | * |
| 11083 | * Description of X11_Class_Usage fix |
| 11084 | */ |
| 11085 | tSCC zX11_Class_UsageName[] = |
| 11086 | "x11_class_usage" ; |
| 11087 | |
| 11088 | /* |
| 11089 | * File name selection pattern |
| 11090 | */ |
| 11091 | tSCC zX11_Class_UsageList[] = |
| 11092 | "Xm/BaseClassI.h\0" ; |
| 11093 | /* |
| 11094 | * Machine/OS name selection pattern |
| 11095 | */ |
| 11096 | #define apzX11_Class_UsageMachs (const char**)NULL |
| 11097 | |
| 11098 | /* |
| 11099 | * content selection pattern - do fix if pattern found |
| 11100 | */ |
| 11101 | tSCC zX11_Class_UsageSelect0[] = |
| 11102 | " class\\)" ; |
| 11103 | |
| 11104 | /* |
| 11105 | * content bypass pattern - skip fix if pattern found |
| 11106 | */ |
| 11107 | tSCC zX11_Class_UsageBypass0[] = |
| 11108 | "__cplusplus" ; |
| 11109 | |
| 11110 | #define X11_CLASS_USAGE_TEST_CT 2 |
| 11111 | static tTestDesc aX11_Class_UsageTests[] = { |
| 11112 | { .type: TT_NEGREP, .pz_test_text: zX11_Class_UsageBypass0, .p_test_regex: (regex_t*)NULL }, |
| 11113 | { .type: TT_EGREP, .pz_test_text: zX11_Class_UsageSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 11114 | |
| 11115 | /* |
| 11116 | * Fix Command Arguments for X11_Class_Usage |
| 11117 | */ |
| 11118 | static const char* apzX11_Class_UsagePatch[] = { |
| 11119 | "format" , |
| 11120 | " c_class)" , |
| 11121 | (char*)NULL }; |
| 11122 | |
| 11123 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 11124 | * |
| 11125 | * Description of X11_New fix |
| 11126 | */ |
| 11127 | tSCC zX11_NewName[] = |
| 11128 | "x11_new" ; |
| 11129 | |
| 11130 | /* |
| 11131 | * File name selection pattern |
| 11132 | */ |
| 11133 | tSCC zX11_NewList[] = |
| 11134 | "Xm/Traversal.h\0" ; |
| 11135 | /* |
| 11136 | * Machine/OS name selection pattern |
| 11137 | */ |
| 11138 | #define apzX11_NewMachs (const char**)NULL |
| 11139 | |
| 11140 | /* |
| 11141 | * content bypass pattern - skip fix if pattern found |
| 11142 | */ |
| 11143 | tSCC zX11_NewBypass0[] = |
| 11144 | "__cplusplus" ; |
| 11145 | |
| 11146 | #define X11_NEW_TEST_CT 1 |
| 11147 | static tTestDesc aX11_NewTests[] = { |
| 11148 | { .type: TT_NEGREP, .pz_test_text: zX11_NewBypass0, .p_test_regex: (regex_t*)NULL }, }; |
| 11149 | |
| 11150 | /* |
| 11151 | * Fix Command Arguments for X11_New |
| 11152 | */ |
| 11153 | static const char* apzX11_NewPatch[] = { sed_cmd_z, |
| 11154 | "-e" , "/Widget\told, new;/i\\\n\ |
| 11155 | #ifdef __cplusplus\\\n\ |
| 11156 | \\\tWidget\told, c_new;\\\n\ |
| 11157 | #else\n" , |
| 11158 | "-e" , "/Widget\told, new;/a\\\n\ |
| 11159 | #endif\n" , |
| 11160 | "-e" , "s/Widget new,/Widget c_new,/g" , |
| 11161 | (char*)NULL }; |
| 11162 | |
| 11163 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 11164 | * |
| 11165 | * Description of X11_Sprintf fix |
| 11166 | */ |
| 11167 | tSCC zX11_SprintfName[] = |
| 11168 | "x11_sprintf" ; |
| 11169 | |
| 11170 | /* |
| 11171 | * File name selection pattern |
| 11172 | */ |
| 11173 | tSCC zX11_SprintfList[] = |
| 11174 | "X11/Xmu.h\0X11/Xmu/Xmu.h\0" ; |
| 11175 | /* |
| 11176 | * Machine/OS name selection pattern |
| 11177 | */ |
| 11178 | #define apzX11_SprintfMachs (const char**)NULL |
| 11179 | |
| 11180 | /* |
| 11181 | * content selection pattern - do fix if pattern found |
| 11182 | */ |
| 11183 | tSCC zX11_SprintfSelect0[] = |
| 11184 | "^extern char \\*\tsprintf\\(\\);$" ; |
| 11185 | |
| 11186 | #define X11_SPRINTF_TEST_CT 1 |
| 11187 | static tTestDesc aX11_SprintfTests[] = { |
| 11188 | { .type: TT_EGREP, .pz_test_text: zX11_SprintfSelect0, .p_test_regex: (regex_t*)NULL }, }; |
| 11189 | |
| 11190 | /* |
| 11191 | * Fix Command Arguments for X11_Sprintf |
| 11192 | */ |
| 11193 | static const char* apzX11_SprintfPatch[] = { |
| 11194 | "format" , |
| 11195 | "#ifndef __STDC__\n\ |
| 11196 | %0\n\ |
| 11197 | #endif /* !defined __STDC__ */" , |
| 11198 | (char*)NULL }; |
| 11199 | |
| 11200 | |
| 11201 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
| 11202 | * |
| 11203 | * List of all fixes |
| 11204 | */ |
| 11205 | #define REGEX_COUNT 318 |
| 11206 | #define MACH_LIST_SIZE_LIMIT 187 |
| 11207 | #define FIX_COUNT 274 |
| 11208 | |
| 11209 | /* |
| 11210 | * Enumerate the fixes |
| 11211 | */ |
| 11212 | typedef enum { |
| 11213 | AAB_AIX_STDIO_FIXIDX, |
| 11214 | AAB_AIX_FCNTL_FIXIDX, |
| 11215 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX, |
| 11216 | DARWIN_API_AVAILABILITY_FIXIDX, |
| 11217 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX, |
| 11218 | AAB_FD_ZERO_GNU_TYPES_H_FIXIDX, |
| 11219 | AAB_FD_ZERO_SELECTBITS_H_FIXIDX, |
| 11220 | AAB_SOLARIS_SYS_VARARGS_H_FIXIDX, |
| 11221 | AAB_SUN_MEMCPY_FIXIDX, |
| 11222 | AAB_VXWORKS_ASSERT_FIXIDX, |
| 11223 | AAB_VXWORKS_REGS_VXTYPES_FIXIDX, |
| 11224 | AAB_VXWORKS_UNISTD_FIXIDX, |
| 11225 | AIX_ASSERT_FIXIDX, |
| 11226 | AIX_COMPLEX_FIXIDX, |
| 11227 | AIX_EXTERNC_FIXIDX, |
| 11228 | AIX_EXTERNCPP1_FIXIDX, |
| 11229 | AIX_EXTERNCPP2_FIXIDX, |
| 11230 | AIX_INTTYPES_FIXIDX, |
| 11231 | AIX_MALLOC_FIXIDX, |
| 11232 | AIX_NET_IF_ARP_FIXIDX, |
| 11233 | AIX_NULL_FIXIDX, |
| 11234 | AIX_ONCE_INIT_1_FIXIDX, |
| 11235 | AIX_ONCE_INIT_2_FIXIDX, |
| 11236 | AIX_MUTEX_INITIALIZER_1_FIXIDX, |
| 11237 | AIX_COND_INITIALIZER_1_FIXIDX, |
| 11238 | AIX_RWLOCK_INITIALIZER_1_FIXIDX, |
| 11239 | AIX_PHYSADR_T_FIXIDX, |
| 11240 | AIX_PTHREAD_FIXIDX, |
| 11241 | AIX_STDINT_1_FIXIDX, |
| 11242 | AIX_STDINT_2_FIXIDX, |
| 11243 | AIX_STDINT_3_FIXIDX, |
| 11244 | AIX_STDINT_4_FIXIDX, |
| 11245 | AIX_STDINT_5_FIXIDX, |
| 11246 | AIX_STDIO_INLINE_FIXIDX, |
| 11247 | AIX_STDLIB_MALLOC_FIXIDX, |
| 11248 | AIX_STDLIB_REALLOC_FIXIDX, |
| 11249 | AIX_STDLIB_CALLOC_FIXIDX, |
| 11250 | AIX_STDLIB_VALLOC_FIXIDX, |
| 11251 | AIX_STDLIB_VEC_MALLOC_FIXIDX, |
| 11252 | AIX_STDLIB_VEC_CALLOC_FIXIDX, |
| 11253 | AIX_STRTOF_CONST_FIXIDX, |
| 11254 | AIX_SYSMACHINE_FIXIDX, |
| 11255 | AIX_SYSWAIT_2_FIXIDX, |
| 11256 | AIX_VOLATILE_FIXIDX, |
| 11257 | AIX_UNISTD_FIXIDX, |
| 11258 | ALPHA___ASSERT_FIXIDX, |
| 11259 | ALPHA_ASSERT_FIXIDX, |
| 11260 | ALPHA_GETOPT_FIXIDX, |
| 11261 | ALPHA_IF_SEMICOLON_FIXIDX, |
| 11262 | ALPHA_PARENS_FIXIDX, |
| 11263 | ALPHA_SBRK_FIXIDX, |
| 11264 | AVOID_BOOL_DEFINE_FIXIDX, |
| 11265 | AVOID_BOOL_TYPE_FIXIDX, |
| 11266 | AVOID_WCHAR_T_TYPE_FIXIDX, |
| 11267 | BAD_STRUCT_TERM_FIXIDX, |
| 11268 | BADQUOTE_FIXIDX, |
| 11269 | BROKEN_ASSERT_STDIO_FIXIDX, |
| 11270 | BROKEN_ASSERT_STDLIB_FIXIDX, |
| 11271 | BROKEN_CABS_FIXIDX, |
| 11272 | BROKEN_NAN_FIXIDX, |
| 11273 | BSD_STDIO_ATTRS_CONFLICT_FIXIDX, |
| 11274 | APPLE_LOCAL_STDIO_FN_DEPRECATION_FIXIDX, |
| 11275 | CTRL_QUOTES_DEF_FIXIDX, |
| 11276 | CTRL_QUOTES_USE_FIXIDX, |
| 11277 | CXX_UNREADY_FIXIDX, |
| 11278 | DARWIN_AVAILABILITYINTERNAL_FIXIDX, |
| 11279 | DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX, |
| 11280 | DARWIN_EXTERNC_FIXIDX, |
| 11281 | DARWIN_GCC4_BREAKAGE_FIXIDX, |
| 11282 | DARWIN_LL_FUNCS_AVAIL_FIXIDX, |
| 11283 | DARWIN_LONGJMP_NORETURN_FIXIDX, |
| 11284 | DARWIN_OS_TRACE_1_FIXIDX, |
| 11285 | DARWIN_OS_TRACE_2_FIXIDX, |
| 11286 | DARWIN_OBJC_RUNTIME_1_FIXIDX, |
| 11287 | DARWIN_OS_TRACE_3_FIXIDX, |
| 11288 | DARWIN_OS_BASE_1_FIXIDX, |
| 11289 | DARWIN_DISPATCH_OBJECT_1_FIXIDX, |
| 11290 | DARWIN_PRIVATE_EXTERN_FIXIDX, |
| 11291 | DARWIN_STDINT_1_FIXIDX, |
| 11292 | DARWIN_STDINT_2_FIXIDX, |
| 11293 | DARWIN_STDINT_3_FIXIDX, |
| 11294 | DARWIN_STDINT_4_FIXIDX, |
| 11295 | DARWIN_STDINT_5_FIXIDX, |
| 11296 | DARWIN_STDINT_6_FIXIDX, |
| 11297 | DARWIN_STDINT_7_FIXIDX, |
| 11298 | DARWIN_UCRED__ATOMIC_FIXIDX, |
| 11299 | DARWIN_FLT_EVAL_METHOD_FIXIDX, |
| 11300 | DEC_INTERN_ASM_FIXIDX, |
| 11301 | DJGPP_WCHAR_H_FIXIDX, |
| 11302 | ECD_CURSOR_FIXIDX, |
| 11303 | FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX, |
| 11304 | FERAISEEXCEPT_NOSSE_INVALID_FIXIDX, |
| 11305 | FREEBSD_GCC3_BREAKAGE_FIXIDX, |
| 11306 | FREEBSD_GCC4_BREAKAGE_FIXIDX, |
| 11307 | GLIBC_C99_INLINE_1_FIXIDX, |
| 11308 | GLIBC_C99_INLINE_1A_FIXIDX, |
| 11309 | GLIBC_C99_INLINE_2_FIXIDX, |
| 11310 | GLIBC_C99_INLINE_3_FIXIDX, |
| 11311 | GLIBC_C99_INLINE_4_FIXIDX, |
| 11312 | GLIBC_CXX_FLOATN_1_FIXIDX, |
| 11313 | GLIBC_CXX_FLOATN_2_FIXIDX, |
| 11314 | GLIBC_CXX_FLOATN_3_FIXIDX, |
| 11315 | GLIBC_CXX_FLOATN_4_FIXIDX, |
| 11316 | GLIBC_CXX_FLOATN_5_FIXIDX, |
| 11317 | GLIBC_MUTEX_INIT_FIXIDX, |
| 11318 | GLIBC_STDINT_FIXIDX, |
| 11319 | GLIBC_STRNCPY_FIXIDX, |
| 11320 | GLIBC_TGMATH_FIXIDX, |
| 11321 | GNU_TYPES_FIXIDX, |
| 11322 | HP_INLINE_FIXIDX, |
| 11323 | HP_SYSFILE_FIXIDX, |
| 11324 | HPPA_HPUX_FP_MACROS_FIXIDX, |
| 11325 | HPUX10_CPP_POW_INLINE_FIXIDX, |
| 11326 | HPUX11_CPP_POW_INLINE_FIXIDX, |
| 11327 | HPUX_MATH_CONSTEXPR_FIXIDX, |
| 11328 | HPUX10_CTYPE_DECLARATIONS1_FIXIDX, |
| 11329 | HPUX10_CTYPE_DECLARATIONS2_FIXIDX, |
| 11330 | HPUX10_STDIO_DECLARATIONS_FIXIDX, |
| 11331 | HPPA_HPUX11_ALLOCA_FIXIDX, |
| 11332 | HPUX11_ABS_FIXIDX, |
| 11333 | HPUX11_LWP_RWLOCK_VALID_FIXIDX, |
| 11334 | HPUX11_EXTERN_SENDFILE_FIXIDX, |
| 11335 | HPUX11_EXTERN_SENDPATH_FIXIDX, |
| 11336 | HPUX11_FABSF_FIXIDX, |
| 11337 | HPUX11_PTHREAD_POINTER_FIXIDX, |
| 11338 | HPUX11_PTHREAD_CONST_FIXIDX, |
| 11339 | HPUX11_SIZE_T_FIXIDX, |
| 11340 | HPUX11_SNPRINTF_FIXIDX, |
| 11341 | HPUX11_VSNPRINTF_FIXIDX, |
| 11342 | HPUX_VSSCANF_FIXIDX, |
| 11343 | HPUX8_BOGUS_INLINES_FIXIDX, |
| 11344 | HPUX_C99_INTPTR_FIXIDX, |
| 11345 | HPUX_C99_INTTYPES_FIXIDX, |
| 11346 | HPUX_C99_INTTYPES2_FIXIDX, |
| 11347 | HPUX_C99_INTTYPES3_FIXIDX, |
| 11348 | HPUX_C99_INTTYPES4_FIXIDX, |
| 11349 | HPUX_C99_INTTYPES5_FIXIDX, |
| 11350 | HPUX_CTYPE_MACROS_FIXIDX, |
| 11351 | HPUX_EXTERN_ERRNO_FIXIDX, |
| 11352 | HPUX_HTONL_FIXIDX, |
| 11353 | HPUX_IMAGINARY_I_FIXIDX, |
| 11354 | HPUX_INTTYPE_INT8_T_FIXIDX, |
| 11355 | HPUX_LONG_DOUBLE_FIXIDX, |
| 11356 | HPUX_LONG_DOUBLE_2_FIXIDX, |
| 11357 | HPUX_PTHREAD_INITIALIZERS_FIXIDX, |
| 11358 | HPUX_SPU_INFO_FIXIDX, |
| 11359 | HPUX_STDINT_LEAST_FAST_FIXIDX, |
| 11360 | HPUX_LONGJMP_FIXIDX, |
| 11361 | HPUX_SYSTIME_FIXIDX, |
| 11362 | HUGE_VAL_HEX_FIXIDX, |
| 11363 | HUGE_VALF_HEX_FIXIDX, |
| 11364 | HUGE_VALL_HEX_FIXIDX, |
| 11365 | INT_ABORT_FREE_AND_EXIT_FIXIDX, |
| 11366 | IO_QUOTES_DEF_FIXIDX, |
| 11367 | IO_QUOTES_USE_FIXIDX, |
| 11368 | IP_MISSING_SEMI_FIXIDX, |
| 11369 | IRIX_LIMITS_CONST_FIXIDX, |
| 11370 | IRIX_STDIO_VA_LIST_FIXIDX, |
| 11371 | KANDR_CONCAT_FIXIDX, |
| 11372 | LINUX_IA64_UCONTEXT_FIXIDX, |
| 11373 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX, |
| 11374 | LYNXOS_MISSING_PUTENV_FIXIDX, |
| 11375 | MACHINE_ANSI_H_VA_LIST_FIXIDX, |
| 11376 | MACHINE_NAME_FIXIDX, |
| 11377 | MATH_EXCEPTION_FIXIDX, |
| 11378 | MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX, |
| 11379 | NESTED_AUTH_DES_FIXIDX, |
| 11380 | NETBSD_C99_INLINE_1_FIXIDX, |
| 11381 | NETBSD_C99_INLINE_2_FIXIDX, |
| 11382 | , |
| 11383 | NEWLIB_STDINT_1_FIXIDX, |
| 11384 | NEWLIB_STDINT_2_FIXIDX, |
| 11385 | NEXT_MATH_PREFIX_FIXIDX, |
| 11386 | NEXT_TEMPLATE_FIXIDX, |
| 11387 | NEXT_VOLITILE_FIXIDX, |
| 11388 | NEXT_WAIT_UNION_FIXIDX, |
| 11389 | NODEENT_SYNTAX_FIXIDX, |
| 11390 | OPENBSD_NULL_DEFINITION_FIXIDX, |
| 11391 | OBSTACK_LVALUE_CAST_FIXIDX, |
| 11392 | OPENBSD_VA_START_FIXIDX, |
| 11393 | OSF_NAMESPACE_A_FIXIDX, |
| 11394 | OSF_NAMESPACE_C_FIXIDX, |
| 11395 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX, |
| 11396 | READ_RET_TYPE_FIXIDX, |
| 11397 | RPC_XDR_LVALUE_CAST_A_FIXIDX, |
| 11398 | RPC_XDR_LVALUE_CAST_B_FIXIDX, |
| 11399 | RS6000_DOUBLE_FIXIDX, |
| 11400 | RS6000_FCHMOD_FIXIDX, |
| 11401 | RS6000_PARAM_FIXIDX, |
| 11402 | SOLARIS___RESTRICT_FIXIDX, |
| 11403 | SOLARIS_COMPLEX_FIXIDX, |
| 11404 | SOLARIS_COMPLEX_CXX_FIXIDX, |
| 11405 | SOLARIS_CXX_LINKAGE_FIXIDX, |
| 11406 | SOLARIS_GETC_STRICT_STDC_FIXIDX, |
| 11407 | SOLARIS_GETS_C11_FIXIDX, |
| 11408 | SOLARIS_GETS_CXX14_FIXIDX, |
| 11409 | SOLARIS_INT_CONST_FIXIDX, |
| 11410 | SOLARIS_INT_LIMITS_1_FIXIDX, |
| 11411 | SOLARIS_INT_LIMITS_2_FIXIDX, |
| 11412 | SOLARIS_INT_LIMITS_3_FIXIDX, |
| 11413 | SOLARIS_MATH_1_FIXIDX, |
| 11414 | SOLARIS_MATH_10_FIXIDX, |
| 11415 | SOLARIS_MATH_2_FIXIDX, |
| 11416 | SOLARIS_MATH_3_FIXIDX, |
| 11417 | SOLARIS_MATH_4_FIXIDX, |
| 11418 | SOLARIS_MATH_8_FIXIDX, |
| 11419 | SOLARIS_MATH_9_FIXIDX, |
| 11420 | SOLARIS_MATH_11_FIXIDX, |
| 11421 | SOLARIS_MATH_12_FIXIDX, |
| 11422 | SOLARIS_ONCE_INIT_1_FIXIDX, |
| 11423 | SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX, |
| 11424 | SOLARIS_POW_INT_OVERLOAD_FIXIDX, |
| 11425 | SOLARIS_RWLOCK_INIT_1_FIXIDX, |
| 11426 | SOLARIS_STD___FILBUF_FIXIDX, |
| 11427 | SOLARIS_STD_GETS_CXX14_FIXIDX, |
| 11428 | SOLARIS_STDIO_TAG_FIXIDX, |
| 11429 | SOLARIS_STDLIB_NORETURN_FIXIDX, |
| 11430 | STATSSWTCH_FIXIDX, |
| 11431 | STDIO_STDARG_H_FIXIDX, |
| 11432 | STDIO_VA_LIST_FIXIDX, |
| 11433 | STDIO_VA_LIST_CLIENTS_FIXIDX, |
| 11434 | STRICT_ANSI_NOT_FIXIDX, |
| 11435 | STRICT_ANSI_NOT_CTD_FIXIDX, |
| 11436 | STRICT_ANSI_ONLY_FIXIDX, |
| 11437 | STRUCT_FILE_FIXIDX, |
| 11438 | STRUCT_SOCKADDR_FIXIDX, |
| 11439 | SUN_AUTH_PROTO_FIXIDX, |
| 11440 | SUN_BOGUS_IFDEF_FIXIDX, |
| 11441 | SUN_CATMACRO_FIXIDX, |
| 11442 | SUN_MALLOC_FIXIDX, |
| 11443 | SUN_RUSERS_SEMI_FIXIDX, |
| 11444 | SUN_SIGNAL_FIXIDX, |
| 11445 | SUNOS_STRLEN_FIXIDX, |
| 11446 | SUSE_LINUX_VT_CXX_FIXIDX, |
| 11447 | SVR4_DISABLE_OPT_FIXIDX, |
| 11448 | SVR4_GETCWD_FIXIDX, |
| 11449 | SVR4_PROFIL_FIXIDX, |
| 11450 | SVR4_SIGHANDLER_TYPE_FIXIDX, |
| 11451 | SVR4_UNDECLARED_GETRNGE_FIXIDX, |
| 11452 | SYSV68_STRING_FIXIDX, |
| 11453 | SYSZ_STDLIB_FOR_SUN_FIXIDX, |
| 11454 | THREAD_KEYWORD_FIXIDX, |
| 11455 | TINFO_CPLUSPLUS_FIXIDX, |
| 11456 | ULTRIX_CONST_FIXIDX, |
| 11457 | ULTRIX_CONST2_FIXIDX, |
| 11458 | VA_I960_MACRO_FIXIDX, |
| 11459 | VMS_ADD_MISSING_BRACES_FIXIDX, |
| 11460 | VMS_DECC_BUILTIN_FIXIDX, |
| 11461 | VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX, |
| 11462 | VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX, |
| 11463 | VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX, |
| 11464 | VMS_FORWARD_DECLARE_STRUCT_FIXIDX, |
| 11465 | VMS_NO_64BIT_GETOPT_FIXIDX, |
| 11466 | VMS_USE_FAST_SETJMP_FIXIDX, |
| 11467 | VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX, |
| 11468 | VMS_USE_QUOTED_INCLUDE_FIXIDX, |
| 11469 | VOID_NULL_FIXIDX, |
| 11470 | VXWORKS_GCC_PROBLEM_FIXIDX, |
| 11471 | VXWORKS_IOCTL_MACRO_FIXIDX, |
| 11472 | VXWORKS_MATH_H_FP_C99_FIXIDX, |
| 11473 | VXWORKS_POSIX_MKDIR_FIXIDX, |
| 11474 | VXWORKS_NEEDS_VXTYPES_FIXIDX, |
| 11475 | VXWORKS_NEEDS_VXWORKS_FIXIDX, |
| 11476 | VXWORKS_NEXT_YVALS_FIXIDX, |
| 11477 | VXWORKS_REGS_FIXIDX, |
| 11478 | VXWORKS_POSIX_OPEN_FIXIDX, |
| 11479 | VXWORKS_TIME_FIXIDX, |
| 11480 | VXWORKS_WRITE_CONST_FIXIDX, |
| 11481 | VXWORKS_IOLIB_INCLUDE_UNISTD_FIXIDX, |
| 11482 | VXWORKS_TIME_H_SYSLIB_FIXIDX, |
| 11483 | X11_CLASS_FIXIDX, |
| 11484 | X11_CLASS_USAGE_FIXIDX, |
| 11485 | X11_NEW_FIXIDX, |
| 11486 | X11_SPRINTF_FIXIDX |
| 11487 | } t_fixinc_idx; |
| 11488 | |
| 11489 | tFixDesc fixDescList[ FIX_COUNT ] = { |
| 11490 | { .fix_name: zAab_Aix_StdioName, .file_list: zAab_Aix_StdioList, |
| 11491 | .papz_machs: apzAab_Aix_StdioMachs, |
| 11492 | AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11493 | .p_test_desc: aAab_Aix_StdioTests, .patch_args: apzAab_Aix_StdioPatch, .unused: 0 }, |
| 11494 | |
| 11495 | { .fix_name: zAab_Aix_FcntlName, .file_list: zAab_Aix_FcntlList, |
| 11496 | .papz_machs: apzAab_Aix_FcntlMachs, |
| 11497 | AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11498 | .p_test_desc: aAab_Aix_FcntlTests, .patch_args: apzAab_Aix_FcntlPatch, .unused: 0 }, |
| 11499 | |
| 11500 | { .fix_name: zAab_Darwin7_9_Long_Double_FuncsName, .file_list: zAab_Darwin7_9_Long_Double_FuncsList, |
| 11501 | .papz_machs: apzAab_Darwin7_9_Long_Double_FuncsMachs, |
| 11502 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11503 | .p_test_desc: aAab_Darwin7_9_Long_Double_FuncsTests, .patch_args: apzAab_Darwin7_9_Long_Double_FuncsPatch, .unused: 0 }, |
| 11504 | |
| 11505 | { .fix_name: zDarwin_Api_AvailabilityName, .file_list: zDarwin_Api_AvailabilityList, |
| 11506 | .papz_machs: apzDarwin_Api_AvailabilityMachs, |
| 11507 | DARWIN_API_AVAILABILITY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11508 | .p_test_desc: aDarwin_Api_AvailabilityTests, .patch_args: apzDarwin_Api_AvailabilityPatch, .unused: 0 }, |
| 11509 | |
| 11510 | { .fix_name: zAab_Fd_Zero_Asm_Posix_Types_HName, .file_list: zAab_Fd_Zero_Asm_Posix_Types_HList, |
| 11511 | .papz_machs: apzAab_Fd_Zero_Asm_Posix_Types_HMachs, |
| 11512 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11513 | .p_test_desc: aAab_Fd_Zero_Asm_Posix_Types_HTests, .patch_args: apzAab_Fd_Zero_Asm_Posix_Types_HPatch, .unused: 0 }, |
| 11514 | |
| 11515 | { .fix_name: zAab_Fd_Zero_Gnu_Types_HName, .file_list: zAab_Fd_Zero_Gnu_Types_HList, |
| 11516 | .papz_machs: apzAab_Fd_Zero_Gnu_Types_HMachs, |
| 11517 | AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11518 | aAab_Fd_Zero_Gnu_Types_HTests, .patch_args: apzAab_Fd_Zero_Gnu_Types_HPatch, .unused: 0 }, |
| 11519 | |
| 11520 | { .fix_name: zAab_Fd_Zero_Selectbits_HName, .file_list: zAab_Fd_Zero_Selectbits_HList, |
| 11521 | .papz_machs: apzAab_Fd_Zero_Selectbits_HMachs, |
| 11522 | AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11523 | aAab_Fd_Zero_Selectbits_HTests, .patch_args: apzAab_Fd_Zero_Selectbits_HPatch, .unused: 0 }, |
| 11524 | |
| 11525 | { .fix_name: zAab_Solaris_Sys_Varargs_HName, .file_list: zAab_Solaris_Sys_Varargs_HList, |
| 11526 | .papz_machs: apzAab_Solaris_Sys_Varargs_HMachs, |
| 11527 | AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11528 | aAab_Solaris_Sys_Varargs_HTests, .patch_args: apzAab_Solaris_Sys_Varargs_HPatch, .unused: 0 }, |
| 11529 | |
| 11530 | { .fix_name: zAab_Sun_MemcpyName, .file_list: zAab_Sun_MemcpyList, |
| 11531 | apzAab_Sun_MemcpyMachs, |
| 11532 | AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11533 | .p_test_desc: aAab_Sun_MemcpyTests, .patch_args: apzAab_Sun_MemcpyPatch, .unused: 0 }, |
| 11534 | |
| 11535 | { .fix_name: zAab_Vxworks_AssertName, .file_list: zAab_Vxworks_AssertList, |
| 11536 | .papz_machs: apzAab_Vxworks_AssertMachs, |
| 11537 | AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11538 | aAab_Vxworks_AssertTests, .patch_args: apzAab_Vxworks_AssertPatch, .unused: 0 }, |
| 11539 | |
| 11540 | { .fix_name: zAab_Vxworks_Regs_VxtypesName, .file_list: zAab_Vxworks_Regs_VxtypesList, |
| 11541 | .papz_machs: apzAab_Vxworks_Regs_VxtypesMachs, |
| 11542 | AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11543 | aAab_Vxworks_Regs_VxtypesTests, .patch_args: apzAab_Vxworks_Regs_VxtypesPatch, .unused: 0 }, |
| 11544 | |
| 11545 | { .fix_name: zAab_Vxworks_UnistdName, .file_list: zAab_Vxworks_UnistdList, |
| 11546 | .papz_machs: apzAab_Vxworks_UnistdMachs, |
| 11547 | AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
| 11548 | aAab_Vxworks_UnistdTests, .patch_args: apzAab_Vxworks_UnistdPatch, .unused: 0 }, |
| 11549 | |
| 11550 | { .fix_name: zAix_AssertName, .file_list: zAix_AssertList, |
| 11551 | .papz_machs: apzAix_AssertMachs, |
| 11552 | AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11553 | .p_test_desc: aAix_AssertTests, .patch_args: apzAix_AssertPatch, .unused: 0 }, |
| 11554 | |
| 11555 | { .fix_name: zAix_ComplexName, .file_list: zAix_ComplexList, |
| 11556 | .papz_machs: apzAix_ComplexMachs, |
| 11557 | AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11558 | .p_test_desc: aAix_ComplexTests, .patch_args: apzAix_ComplexPatch, .unused: 0 }, |
| 11559 | |
| 11560 | { .fix_name: zAix_ExterncName, .file_list: zAix_ExterncList, |
| 11561 | .papz_machs: apzAix_ExterncMachs, |
| 11562 | AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11563 | .p_test_desc: aAix_ExterncTests, .patch_args: apzAix_ExterncPatch, .unused: 0 }, |
| 11564 | |
| 11565 | { .fix_name: zAix_Externcpp1Name, .file_list: zAix_Externcpp1List, |
| 11566 | .papz_machs: apzAix_Externcpp1Machs, |
| 11567 | AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11568 | .p_test_desc: aAix_Externcpp1Tests, .patch_args: apzAix_Externcpp1Patch, .unused: 0 }, |
| 11569 | |
| 11570 | { .fix_name: zAix_Externcpp2Name, .file_list: zAix_Externcpp2List, |
| 11571 | .papz_machs: apzAix_Externcpp2Machs, |
| 11572 | AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11573 | .p_test_desc: aAix_Externcpp2Tests, .patch_args: apzAix_Externcpp2Patch, .unused: 0 }, |
| 11574 | |
| 11575 | { .fix_name: zAix_InttypesName, .file_list: zAix_InttypesList, |
| 11576 | .papz_machs: apzAix_InttypesMachs, |
| 11577 | AIX_INTTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11578 | .p_test_desc: aAix_InttypesTests, .patch_args: apzAix_InttypesPatch, .unused: 0 }, |
| 11579 | |
| 11580 | { .fix_name: zAix_MallocName, .file_list: zAix_MallocList, |
| 11581 | .papz_machs: apzAix_MallocMachs, |
| 11582 | AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11583 | .p_test_desc: aAix_MallocTests, .patch_args: apzAix_MallocPatch, .unused: 0 }, |
| 11584 | |
| 11585 | { .fix_name: zAix_Net_If_ArpName, .file_list: zAix_Net_If_ArpList, |
| 11586 | .papz_machs: apzAix_Net_If_ArpMachs, |
| 11587 | AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11588 | .p_test_desc: aAix_Net_If_ArpTests, .patch_args: apzAix_Net_If_ArpPatch, .unused: 0 }, |
| 11589 | |
| 11590 | { .fix_name: zAix_NullName, .file_list: zAix_NullList, |
| 11591 | .papz_machs: apzAix_NullMachs, |
| 11592 | AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11593 | .p_test_desc: aAix_NullTests, .patch_args: apzAix_NullPatch, .unused: 0 }, |
| 11594 | |
| 11595 | { .fix_name: zAix_Once_Init_1Name, .file_list: zAix_Once_Init_1List, |
| 11596 | .papz_machs: apzAix_Once_Init_1Machs, |
| 11597 | AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11598 | .p_test_desc: aAix_Once_Init_1Tests, .patch_args: apzAix_Once_Init_1Patch, .unused: 0 }, |
| 11599 | |
| 11600 | { .fix_name: zAix_Once_Init_2Name, .file_list: zAix_Once_Init_2List, |
| 11601 | .papz_machs: apzAix_Once_Init_2Machs, |
| 11602 | AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11603 | .p_test_desc: aAix_Once_Init_2Tests, .patch_args: apzAix_Once_Init_2Patch, .unused: 0 }, |
| 11604 | |
| 11605 | { .fix_name: zAix_Mutex_Initializer_1Name, .file_list: zAix_Mutex_Initializer_1List, |
| 11606 | .papz_machs: apzAix_Mutex_Initializer_1Machs, |
| 11607 | AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11608 | .p_test_desc: aAix_Mutex_Initializer_1Tests, .patch_args: apzAix_Mutex_Initializer_1Patch, .unused: 0 }, |
| 11609 | |
| 11610 | { .fix_name: zAix_Cond_Initializer_1Name, .file_list: zAix_Cond_Initializer_1List, |
| 11611 | .papz_machs: apzAix_Cond_Initializer_1Machs, |
| 11612 | AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11613 | .p_test_desc: aAix_Cond_Initializer_1Tests, .patch_args: apzAix_Cond_Initializer_1Patch, .unused: 0 }, |
| 11614 | |
| 11615 | { .fix_name: zAix_Rwlock_Initializer_1Name, .file_list: zAix_Rwlock_Initializer_1List, |
| 11616 | .papz_machs: apzAix_Rwlock_Initializer_1Machs, |
| 11617 | AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11618 | .p_test_desc: aAix_Rwlock_Initializer_1Tests, .patch_args: apzAix_Rwlock_Initializer_1Patch, .unused: 0 }, |
| 11619 | |
| 11620 | { .fix_name: zAix_Physadr_TName, .file_list: zAix_Physadr_TList, |
| 11621 | .papz_machs: apzAix_Physadr_TMachs, |
| 11622 | AIX_PHYSADR_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11623 | .p_test_desc: aAix_Physadr_TTests, .patch_args: apzAix_Physadr_TPatch, .unused: 0 }, |
| 11624 | |
| 11625 | { .fix_name: zAix_PthreadName, .file_list: zAix_PthreadList, |
| 11626 | apzAix_PthreadMachs, |
| 11627 | AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11628 | .p_test_desc: aAix_PthreadTests, .patch_args: apzAix_PthreadPatch, .unused: 0 }, |
| 11629 | |
| 11630 | { .fix_name: zAix_Stdint_1Name, .file_list: zAix_Stdint_1List, |
| 11631 | .papz_machs: apzAix_Stdint_1Machs, |
| 11632 | AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11633 | .p_test_desc: aAix_Stdint_1Tests, .patch_args: apzAix_Stdint_1Patch, .unused: 0 }, |
| 11634 | |
| 11635 | { .fix_name: zAix_Stdint_2Name, .file_list: zAix_Stdint_2List, |
| 11636 | .papz_machs: apzAix_Stdint_2Machs, |
| 11637 | AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11638 | .p_test_desc: aAix_Stdint_2Tests, .patch_args: apzAix_Stdint_2Patch, .unused: 0 }, |
| 11639 | |
| 11640 | { .fix_name: zAix_Stdint_3Name, .file_list: zAix_Stdint_3List, |
| 11641 | .papz_machs: apzAix_Stdint_3Machs, |
| 11642 | AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11643 | .p_test_desc: aAix_Stdint_3Tests, .patch_args: apzAix_Stdint_3Patch, .unused: 0 }, |
| 11644 | |
| 11645 | { .fix_name: zAix_Stdint_4Name, .file_list: zAix_Stdint_4List, |
| 11646 | .papz_machs: apzAix_Stdint_4Machs, |
| 11647 | AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11648 | .p_test_desc: aAix_Stdint_4Tests, .patch_args: apzAix_Stdint_4Patch, .unused: 0 }, |
| 11649 | |
| 11650 | { .fix_name: zAix_Stdint_5Name, .file_list: zAix_Stdint_5List, |
| 11651 | .papz_machs: apzAix_Stdint_5Machs, |
| 11652 | AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11653 | .p_test_desc: aAix_Stdint_5Tests, .patch_args: apzAix_Stdint_5Patch, .unused: 0 }, |
| 11654 | |
| 11655 | { .fix_name: zAix_Stdio_InlineName, .file_list: zAix_Stdio_InlineList, |
| 11656 | .papz_machs: apzAix_Stdio_InlineMachs, |
| 11657 | AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11658 | .p_test_desc: aAix_Stdio_InlineTests, .patch_args: apzAix_Stdio_InlinePatch, .unused: 0 }, |
| 11659 | |
| 11660 | { .fix_name: zAix_Stdlib_MallocName, .file_list: zAix_Stdlib_MallocList, |
| 11661 | .papz_machs: apzAix_Stdlib_MallocMachs, |
| 11662 | AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11663 | .p_test_desc: aAix_Stdlib_MallocTests, .patch_args: apzAix_Stdlib_MallocPatch, .unused: 0 }, |
| 11664 | |
| 11665 | { .fix_name: zAix_Stdlib_ReallocName, .file_list: zAix_Stdlib_ReallocList, |
| 11666 | .papz_machs: apzAix_Stdlib_ReallocMachs, |
| 11667 | AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11668 | .p_test_desc: aAix_Stdlib_ReallocTests, .patch_args: apzAix_Stdlib_ReallocPatch, .unused: 0 }, |
| 11669 | |
| 11670 | { .fix_name: zAix_Stdlib_CallocName, .file_list: zAix_Stdlib_CallocList, |
| 11671 | .papz_machs: apzAix_Stdlib_CallocMachs, |
| 11672 | AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11673 | .p_test_desc: aAix_Stdlib_CallocTests, .patch_args: apzAix_Stdlib_CallocPatch, .unused: 0 }, |
| 11674 | |
| 11675 | { .fix_name: zAix_Stdlib_VallocName, .file_list: zAix_Stdlib_VallocList, |
| 11676 | .papz_machs: apzAix_Stdlib_VallocMachs, |
| 11677 | AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11678 | .p_test_desc: aAix_Stdlib_VallocTests, .patch_args: apzAix_Stdlib_VallocPatch, .unused: 0 }, |
| 11679 | |
| 11680 | { .fix_name: zAix_Stdlib_Vec_MallocName, .file_list: zAix_Stdlib_Vec_MallocList, |
| 11681 | .papz_machs: apzAix_Stdlib_Vec_MallocMachs, |
| 11682 | AIX_STDLIB_VEC_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11683 | .p_test_desc: aAix_Stdlib_Vec_MallocTests, .patch_args: apzAix_Stdlib_Vec_MallocPatch, .unused: 0 }, |
| 11684 | |
| 11685 | { .fix_name: zAix_Stdlib_Vec_CallocName, .file_list: zAix_Stdlib_Vec_CallocList, |
| 11686 | .papz_machs: apzAix_Stdlib_Vec_CallocMachs, |
| 11687 | AIX_STDLIB_VEC_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11688 | .p_test_desc: aAix_Stdlib_Vec_CallocTests, .patch_args: apzAix_Stdlib_Vec_CallocPatch, .unused: 0 }, |
| 11689 | |
| 11690 | { .fix_name: zAix_Strtof_ConstName, .file_list: zAix_Strtof_ConstList, |
| 11691 | .papz_machs: apzAix_Strtof_ConstMachs, |
| 11692 | AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11693 | .p_test_desc: aAix_Strtof_ConstTests, .patch_args: apzAix_Strtof_ConstPatch, .unused: 0 }, |
| 11694 | |
| 11695 | { .fix_name: zAix_SysmachineName, .file_list: zAix_SysmachineList, |
| 11696 | .papz_machs: apzAix_SysmachineMachs, |
| 11697 | AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11698 | .p_test_desc: aAix_SysmachineTests, .patch_args: apzAix_SysmachinePatch, .unused: 0 }, |
| 11699 | |
| 11700 | { .fix_name: zAix_Syswait_2Name, .file_list: zAix_Syswait_2List, |
| 11701 | .papz_machs: apzAix_Syswait_2Machs, |
| 11702 | AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11703 | .p_test_desc: aAix_Syswait_2Tests, .patch_args: apzAix_Syswait_2Patch, .unused: 0 }, |
| 11704 | |
| 11705 | { .fix_name: zAix_VolatileName, .file_list: zAix_VolatileList, |
| 11706 | .papz_machs: apzAix_VolatileMachs, |
| 11707 | AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11708 | .p_test_desc: aAix_VolatileTests, .patch_args: apzAix_VolatilePatch, .unused: 0 }, |
| 11709 | |
| 11710 | { .fix_name: zAix_UnistdName, .file_list: zAix_UnistdList, |
| 11711 | .papz_machs: apzAix_UnistdMachs, |
| 11712 | AIX_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11713 | .p_test_desc: aAix_UnistdTests, .patch_args: apzAix_UnistdPatch, .unused: 0 }, |
| 11714 | |
| 11715 | { .fix_name: zAlpha___AssertName, .file_list: zAlpha___AssertList, |
| 11716 | apzAlpha___AssertMachs, |
| 11717 | ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11718 | .p_test_desc: aAlpha___AssertTests, .patch_args: apzAlpha___AssertPatch, .unused: 0 }, |
| 11719 | |
| 11720 | { .fix_name: zAlpha_AssertName, .file_list: zAlpha_AssertList, |
| 11721 | apzAlpha_AssertMachs, |
| 11722 | ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11723 | .p_test_desc: aAlpha_AssertTests, .patch_args: apzAlpha_AssertPatch, .unused: 0 }, |
| 11724 | |
| 11725 | { .fix_name: zAlpha_GetoptName, .file_list: zAlpha_GetoptList, |
| 11726 | apzAlpha_GetoptMachs, |
| 11727 | ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11728 | .p_test_desc: aAlpha_GetoptTests, .patch_args: apzAlpha_GetoptPatch, .unused: 0 }, |
| 11729 | |
| 11730 | { .fix_name: zAlpha_If_SemicolonName, .file_list: zAlpha_If_SemicolonList, |
| 11731 | apzAlpha_If_SemicolonMachs, |
| 11732 | ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11733 | .p_test_desc: aAlpha_If_SemicolonTests, .patch_args: apzAlpha_If_SemicolonPatch, .unused: 0 }, |
| 11734 | |
| 11735 | { .fix_name: zAlpha_ParensName, .file_list: zAlpha_ParensList, |
| 11736 | apzAlpha_ParensMachs, |
| 11737 | ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11738 | .p_test_desc: aAlpha_ParensTests, .patch_args: apzAlpha_ParensPatch, .unused: 0 }, |
| 11739 | |
| 11740 | { .fix_name: zAlpha_SbrkName, .file_list: zAlpha_SbrkList, |
| 11741 | apzAlpha_SbrkMachs, |
| 11742 | ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11743 | .p_test_desc: aAlpha_SbrkTests, .patch_args: apzAlpha_SbrkPatch, .unused: 0 }, |
| 11744 | |
| 11745 | { .fix_name: zAvoid_Bool_DefineName, .file_list: zAvoid_Bool_DefineList, |
| 11746 | apzAvoid_Bool_DefineMachs, |
| 11747 | AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11748 | .p_test_desc: aAvoid_Bool_DefineTests, .patch_args: apzAvoid_Bool_DefinePatch, .unused: 0 }, |
| 11749 | |
| 11750 | { .fix_name: zAvoid_Bool_TypeName, .file_list: zAvoid_Bool_TypeList, |
| 11751 | apzAvoid_Bool_TypeMachs, |
| 11752 | AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11753 | .p_test_desc: aAvoid_Bool_TypeTests, .patch_args: apzAvoid_Bool_TypePatch, .unused: 0 }, |
| 11754 | |
| 11755 | { .fix_name: zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList, |
| 11756 | apzAvoid_Wchar_T_TypeMachs, |
| 11757 | AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11758 | .p_test_desc: aAvoid_Wchar_T_TypeTests, .patch_args: apzAvoid_Wchar_T_TypePatch, .unused: 0 }, |
| 11759 | |
| 11760 | { .fix_name: zBad_Struct_TermName, .file_list: zBad_Struct_TermList, |
| 11761 | apzBad_Struct_TermMachs, |
| 11762 | BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11763 | .p_test_desc: aBad_Struct_TermTests, .patch_args: apzBad_Struct_TermPatch, .unused: 0 }, |
| 11764 | |
| 11765 | { .fix_name: zBadquoteName, .file_list: zBadquoteList, |
| 11766 | apzBadquoteMachs, |
| 11767 | BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11768 | .p_test_desc: aBadquoteTests, .patch_args: apzBadquotePatch, .unused: 0 }, |
| 11769 | |
| 11770 | { .fix_name: zBroken_Assert_StdioName, .file_list: zBroken_Assert_StdioList, |
| 11771 | apzBroken_Assert_StdioMachs, |
| 11772 | BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11773 | .p_test_desc: aBroken_Assert_StdioTests, .patch_args: apzBroken_Assert_StdioPatch, .unused: 0 }, |
| 11774 | |
| 11775 | { .fix_name: zBroken_Assert_StdlibName, .file_list: zBroken_Assert_StdlibList, |
| 11776 | apzBroken_Assert_StdlibMachs, |
| 11777 | BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11778 | .p_test_desc: aBroken_Assert_StdlibTests, .patch_args: apzBroken_Assert_StdlibPatch, .unused: 0 }, |
| 11779 | |
| 11780 | { .fix_name: zBroken_CabsName, .file_list: zBroken_CabsList, |
| 11781 | apzBroken_CabsMachs, |
| 11782 | BROKEN_CABS_TEST_CT, FD_MACH_ONLY, |
| 11783 | .p_test_desc: aBroken_CabsTests, .patch_args: apzBroken_CabsPatch, .unused: 0 }, |
| 11784 | |
| 11785 | { .fix_name: zBroken_NanName, .file_list: zBroken_NanList, |
| 11786 | apzBroken_NanMachs, |
| 11787 | BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11788 | .p_test_desc: aBroken_NanTests, .patch_args: apzBroken_NanPatch, .unused: 0 }, |
| 11789 | |
| 11790 | { .fix_name: zBsd_Stdio_Attrs_ConflictName, .file_list: zBsd_Stdio_Attrs_ConflictList, |
| 11791 | .papz_machs: apzBsd_Stdio_Attrs_ConflictMachs, |
| 11792 | BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11793 | .p_test_desc: aBsd_Stdio_Attrs_ConflictTests, .patch_args: apzBsd_Stdio_Attrs_ConflictPatch, .unused: 0 }, |
| 11794 | |
| 11795 | { .fix_name: zApple_Local_Stdio_Fn_DeprecationName, .file_list: zApple_Local_Stdio_Fn_DeprecationList, |
| 11796 | .papz_machs: apzApple_Local_Stdio_Fn_DeprecationMachs, |
| 11797 | APPLE_LOCAL_STDIO_FN_DEPRECATION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11798 | .p_test_desc: aApple_Local_Stdio_Fn_DeprecationTests, .patch_args: apzApple_Local_Stdio_Fn_DeprecationPatch, .unused: 0 }, |
| 11799 | |
| 11800 | { .fix_name: zCtrl_Quotes_DefName, zCtrl_Quotes_DefList, |
| 11801 | apzCtrl_Quotes_DefMachs, |
| 11802 | CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11803 | .p_test_desc: aCtrl_Quotes_DefTests, .patch_args: apzCtrl_Quotes_DefPatch, .unused: 0 }, |
| 11804 | |
| 11805 | { .fix_name: zCtrl_Quotes_UseName, zCtrl_Quotes_UseList, |
| 11806 | apzCtrl_Quotes_UseMachs, |
| 11807 | CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11808 | .p_test_desc: aCtrl_Quotes_UseTests, .patch_args: apzCtrl_Quotes_UsePatch, .unused: 0 }, |
| 11809 | |
| 11810 | { .fix_name: zCxx_UnreadyName, .file_list: zCxx_UnreadyList, |
| 11811 | apzCxx_UnreadyMachs, |
| 11812 | CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11813 | .p_test_desc: aCxx_UnreadyTests, .patch_args: apzCxx_UnreadyPatch, .unused: 0 }, |
| 11814 | |
| 11815 | { .fix_name: zDarwin_AvailabilityinternalName, .file_list: zDarwin_AvailabilityinternalList, |
| 11816 | .papz_machs: apzDarwin_AvailabilityinternalMachs, |
| 11817 | DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11818 | .p_test_desc: aDarwin_AvailabilityinternalTests, .patch_args: apzDarwin_AvailabilityinternalPatch, .unused: 0 }, |
| 11819 | |
| 11820 | { .fix_name: zDarwin_9_Long_Double_Funcs_2Name, .file_list: zDarwin_9_Long_Double_Funcs_2List, |
| 11821 | .papz_machs: apzDarwin_9_Long_Double_Funcs_2Machs, |
| 11822 | DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11823 | .p_test_desc: aDarwin_9_Long_Double_Funcs_2Tests, .patch_args: apzDarwin_9_Long_Double_Funcs_2Patch, .unused: 0 }, |
| 11824 | |
| 11825 | { .fix_name: zDarwin_ExterncName, .file_list: zDarwin_ExterncList, |
| 11826 | .papz_machs: apzDarwin_ExterncMachs, |
| 11827 | DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11828 | .p_test_desc: aDarwin_ExterncTests, .patch_args: apzDarwin_ExterncPatch, .unused: 0 }, |
| 11829 | |
| 11830 | { .fix_name: zDarwin_Gcc4_BreakageName, .file_list: zDarwin_Gcc4_BreakageList, |
| 11831 | .papz_machs: apzDarwin_Gcc4_BreakageMachs, |
| 11832 | DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11833 | .p_test_desc: aDarwin_Gcc4_BreakageTests, .patch_args: apzDarwin_Gcc4_BreakagePatch, .unused: 0 }, |
| 11834 | |
| 11835 | { .fix_name: zDarwin_Ll_Funcs_AvailName, .file_list: zDarwin_Ll_Funcs_AvailList, |
| 11836 | .papz_machs: apzDarwin_Ll_Funcs_AvailMachs, |
| 11837 | DARWIN_LL_FUNCS_AVAIL_TEST_CT, FD_MACH_ONLY, |
| 11838 | .p_test_desc: aDarwin_Ll_Funcs_AvailTests, .patch_args: apzDarwin_Ll_Funcs_AvailPatch, .unused: 0 }, |
| 11839 | |
| 11840 | { .fix_name: zDarwin_Longjmp_NoreturnName, .file_list: zDarwin_Longjmp_NoreturnList, |
| 11841 | .papz_machs: apzDarwin_Longjmp_NoreturnMachs, |
| 11842 | DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11843 | .p_test_desc: aDarwin_Longjmp_NoreturnTests, .patch_args: apzDarwin_Longjmp_NoreturnPatch, .unused: 0 }, |
| 11844 | |
| 11845 | { .fix_name: zDarwin_Os_Trace_1Name, .file_list: zDarwin_Os_Trace_1List, |
| 11846 | .papz_machs: apzDarwin_Os_Trace_1Machs, |
| 11847 | DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11848 | .p_test_desc: aDarwin_Os_Trace_1Tests, .patch_args: apzDarwin_Os_Trace_1Patch, .unused: 0 }, |
| 11849 | |
| 11850 | { .fix_name: zDarwin_Os_Trace_2Name, .file_list: zDarwin_Os_Trace_2List, |
| 11851 | .papz_machs: apzDarwin_Os_Trace_2Machs, |
| 11852 | DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11853 | .p_test_desc: aDarwin_Os_Trace_2Tests, .patch_args: apzDarwin_Os_Trace_2Patch, .unused: 0 }, |
| 11854 | |
| 11855 | { .fix_name: zDarwin_Objc_Runtime_1Name, .file_list: zDarwin_Objc_Runtime_1List, |
| 11856 | .papz_machs: apzDarwin_Objc_Runtime_1Machs, |
| 11857 | DARWIN_OBJC_RUNTIME_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11858 | .p_test_desc: aDarwin_Objc_Runtime_1Tests, .patch_args: apzDarwin_Objc_Runtime_1Patch, .unused: 0 }, |
| 11859 | |
| 11860 | { .fix_name: zDarwin_Os_Trace_3Name, .file_list: zDarwin_Os_Trace_3List, |
| 11861 | .papz_machs: apzDarwin_Os_Trace_3Machs, |
| 11862 | DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11863 | .p_test_desc: aDarwin_Os_Trace_3Tests, .patch_args: apzDarwin_Os_Trace_3Patch, .unused: 0 }, |
| 11864 | |
| 11865 | { .fix_name: zDarwin_Os_Base_1Name, .file_list: zDarwin_Os_Base_1List, |
| 11866 | .papz_machs: apzDarwin_Os_Base_1Machs, |
| 11867 | DARWIN_OS_BASE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11868 | .p_test_desc: aDarwin_Os_Base_1Tests, .patch_args: apzDarwin_Os_Base_1Patch, .unused: 0 }, |
| 11869 | |
| 11870 | { .fix_name: zDarwin_Dispatch_Object_1Name, .file_list: zDarwin_Dispatch_Object_1List, |
| 11871 | .papz_machs: apzDarwin_Dispatch_Object_1Machs, |
| 11872 | DARWIN_DISPATCH_OBJECT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11873 | .p_test_desc: aDarwin_Dispatch_Object_1Tests, .patch_args: apzDarwin_Dispatch_Object_1Patch, .unused: 0 }, |
| 11874 | |
| 11875 | { .fix_name: zDarwin_Private_ExternName, .file_list: zDarwin_Private_ExternList, |
| 11876 | .papz_machs: apzDarwin_Private_ExternMachs, |
| 11877 | DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11878 | .p_test_desc: aDarwin_Private_ExternTests, .patch_args: apzDarwin_Private_ExternPatch, .unused: 0 }, |
| 11879 | |
| 11880 | { .fix_name: zDarwin_Stdint_1Name, .file_list: zDarwin_Stdint_1List, |
| 11881 | .papz_machs: apzDarwin_Stdint_1Machs, |
| 11882 | DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11883 | .p_test_desc: aDarwin_Stdint_1Tests, .patch_args: apzDarwin_Stdint_1Patch, .unused: 0 }, |
| 11884 | |
| 11885 | { .fix_name: zDarwin_Stdint_2Name, .file_list: zDarwin_Stdint_2List, |
| 11886 | .papz_machs: apzDarwin_Stdint_2Machs, |
| 11887 | DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11888 | .p_test_desc: aDarwin_Stdint_2Tests, .patch_args: apzDarwin_Stdint_2Patch, .unused: 0 }, |
| 11889 | |
| 11890 | { .fix_name: zDarwin_Stdint_3Name, .file_list: zDarwin_Stdint_3List, |
| 11891 | .papz_machs: apzDarwin_Stdint_3Machs, |
| 11892 | DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11893 | .p_test_desc: aDarwin_Stdint_3Tests, .patch_args: apzDarwin_Stdint_3Patch, .unused: 0 }, |
| 11894 | |
| 11895 | { .fix_name: zDarwin_Stdint_4Name, .file_list: zDarwin_Stdint_4List, |
| 11896 | .papz_machs: apzDarwin_Stdint_4Machs, |
| 11897 | DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11898 | .p_test_desc: aDarwin_Stdint_4Tests, .patch_args: apzDarwin_Stdint_4Patch, .unused: 0 }, |
| 11899 | |
| 11900 | { .fix_name: zDarwin_Stdint_5Name, .file_list: zDarwin_Stdint_5List, |
| 11901 | .papz_machs: apzDarwin_Stdint_5Machs, |
| 11902 | DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11903 | .p_test_desc: aDarwin_Stdint_5Tests, .patch_args: apzDarwin_Stdint_5Patch, .unused: 0 }, |
| 11904 | |
| 11905 | { .fix_name: zDarwin_Stdint_6Name, .file_list: zDarwin_Stdint_6List, |
| 11906 | .papz_machs: apzDarwin_Stdint_6Machs, |
| 11907 | DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11908 | .p_test_desc: aDarwin_Stdint_6Tests, .patch_args: apzDarwin_Stdint_6Patch, .unused: 0 }, |
| 11909 | |
| 11910 | { .fix_name: zDarwin_Stdint_7Name, .file_list: zDarwin_Stdint_7List, |
| 11911 | .papz_machs: apzDarwin_Stdint_7Machs, |
| 11912 | DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11913 | .p_test_desc: aDarwin_Stdint_7Tests, .patch_args: apzDarwin_Stdint_7Patch, .unused: 0 }, |
| 11914 | |
| 11915 | { .fix_name: zDarwin_Ucred__AtomicName, .file_list: zDarwin_Ucred__AtomicList, |
| 11916 | .papz_machs: apzDarwin_Ucred__AtomicMachs, |
| 11917 | DARWIN_UCRED__ATOMIC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11918 | .p_test_desc: aDarwin_Ucred__AtomicTests, .patch_args: apzDarwin_Ucred__AtomicPatch, .unused: 0 }, |
| 11919 | |
| 11920 | { .fix_name: zDarwin_Flt_Eval_MethodName, .file_list: zDarwin_Flt_Eval_MethodList, |
| 11921 | .papz_machs: apzDarwin_Flt_Eval_MethodMachs, |
| 11922 | DARWIN_FLT_EVAL_METHOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11923 | .p_test_desc: aDarwin_Flt_Eval_MethodTests, .patch_args: apzDarwin_Flt_Eval_MethodPatch, .unused: 0 }, |
| 11924 | |
| 11925 | { .fix_name: zDec_Intern_AsmName, .file_list: zDec_Intern_AsmList, |
| 11926 | apzDec_Intern_AsmMachs, |
| 11927 | DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY, |
| 11928 | aDec_Intern_AsmTests, .patch_args: apzDec_Intern_AsmPatch, .unused: 0 }, |
| 11929 | |
| 11930 | { .fix_name: zDjgpp_Wchar_HName, zDjgpp_Wchar_HList, |
| 11931 | apzDjgpp_Wchar_HMachs, |
| 11932 | DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11933 | .p_test_desc: aDjgpp_Wchar_HTests, .patch_args: apzDjgpp_Wchar_HPatch, .unused: 0 }, |
| 11934 | |
| 11935 | { .fix_name: zEcd_CursorName, .file_list: zEcd_CursorList, |
| 11936 | apzEcd_CursorMachs, |
| 11937 | ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11938 | .p_test_desc: aEcd_CursorTests, .patch_args: apzEcd_CursorPatch, .unused: 0 }, |
| 11939 | |
| 11940 | { .fix_name: zFeraiseexcept_Nosse_DivbyzeroName, .file_list: zFeraiseexcept_Nosse_DivbyzeroList, |
| 11941 | .papz_machs: apzFeraiseexcept_Nosse_DivbyzeroMachs, |
| 11942 | FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11943 | .p_test_desc: aFeraiseexcept_Nosse_DivbyzeroTests, .patch_args: apzFeraiseexcept_Nosse_DivbyzeroPatch, .unused: 0 }, |
| 11944 | |
| 11945 | { .fix_name: zFeraiseexcept_Nosse_InvalidName, .file_list: zFeraiseexcept_Nosse_InvalidList, |
| 11946 | .papz_machs: apzFeraiseexcept_Nosse_InvalidMachs, |
| 11947 | FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11948 | .p_test_desc: aFeraiseexcept_Nosse_InvalidTests, .patch_args: apzFeraiseexcept_Nosse_InvalidPatch, .unused: 0 }, |
| 11949 | |
| 11950 | { .fix_name: zFreebsd_Gcc3_BreakageName, .file_list: zFreebsd_Gcc3_BreakageList, |
| 11951 | .papz_machs: apzFreebsd_Gcc3_BreakageMachs, |
| 11952 | FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11953 | .p_test_desc: aFreebsd_Gcc3_BreakageTests, .patch_args: apzFreebsd_Gcc3_BreakagePatch, .unused: 0 }, |
| 11954 | |
| 11955 | { .fix_name: zFreebsd_Gcc4_BreakageName, .file_list: zFreebsd_Gcc4_BreakageList, |
| 11956 | .papz_machs: apzFreebsd_Gcc4_BreakageMachs, |
| 11957 | FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11958 | .p_test_desc: aFreebsd_Gcc4_BreakageTests, .patch_args: apzFreebsd_Gcc4_BreakagePatch, .unused: 0 }, |
| 11959 | |
| 11960 | { .fix_name: zGlibc_C99_Inline_1Name, .file_list: zGlibc_C99_Inline_1List, |
| 11961 | apzGlibc_C99_Inline_1Machs, |
| 11962 | GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11963 | .p_test_desc: aGlibc_C99_Inline_1Tests, .patch_args: apzGlibc_C99_Inline_1Patch, .unused: 0 }, |
| 11964 | |
| 11965 | { .fix_name: zGlibc_C99_Inline_1aName, .file_list: zGlibc_C99_Inline_1aList, |
| 11966 | apzGlibc_C99_Inline_1aMachs, |
| 11967 | GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11968 | .p_test_desc: aGlibc_C99_Inline_1aTests, .patch_args: apzGlibc_C99_Inline_1aPatch, .unused: 0 }, |
| 11969 | |
| 11970 | { .fix_name: zGlibc_C99_Inline_2Name, .file_list: zGlibc_C99_Inline_2List, |
| 11971 | apzGlibc_C99_Inline_2Machs, |
| 11972 | GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY, |
| 11973 | .p_test_desc: aGlibc_C99_Inline_2Tests, .patch_args: apzGlibc_C99_Inline_2Patch, .unused: 0 }, |
| 11974 | |
| 11975 | { .fix_name: zGlibc_C99_Inline_3Name, .file_list: zGlibc_C99_Inline_3List, |
| 11976 | apzGlibc_C99_Inline_3Machs, |
| 11977 | GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11978 | .p_test_desc: aGlibc_C99_Inline_3Tests, .patch_args: apzGlibc_C99_Inline_3Patch, .unused: 0 }, |
| 11979 | |
| 11980 | { .fix_name: zGlibc_C99_Inline_4Name, .file_list: zGlibc_C99_Inline_4List, |
| 11981 | apzGlibc_C99_Inline_4Machs, |
| 11982 | GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11983 | .p_test_desc: aGlibc_C99_Inline_4Tests, .patch_args: apzGlibc_C99_Inline_4Patch, .unused: 0 }, |
| 11984 | |
| 11985 | { .fix_name: zGlibc_Cxx_Floatn_1Name, .file_list: zGlibc_Cxx_Floatn_1List, |
| 11986 | apzGlibc_Cxx_Floatn_1Machs, |
| 11987 | GLIBC_CXX_FLOATN_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11988 | .p_test_desc: aGlibc_Cxx_Floatn_1Tests, .patch_args: apzGlibc_Cxx_Floatn_1Patch, .unused: 0 }, |
| 11989 | |
| 11990 | { .fix_name: zGlibc_Cxx_Floatn_2Name, .file_list: zGlibc_Cxx_Floatn_2List, |
| 11991 | apzGlibc_Cxx_Floatn_2Machs, |
| 11992 | GLIBC_CXX_FLOATN_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11993 | .p_test_desc: aGlibc_Cxx_Floatn_2Tests, .patch_args: apzGlibc_Cxx_Floatn_2Patch, .unused: 0 }, |
| 11994 | |
| 11995 | { .fix_name: zGlibc_Cxx_Floatn_3Name, .file_list: zGlibc_Cxx_Floatn_3List, |
| 11996 | apzGlibc_Cxx_Floatn_3Machs, |
| 11997 | GLIBC_CXX_FLOATN_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 11998 | .p_test_desc: aGlibc_Cxx_Floatn_3Tests, .patch_args: apzGlibc_Cxx_Floatn_3Patch, .unused: 0 }, |
| 11999 | |
| 12000 | { .fix_name: zGlibc_Cxx_Floatn_4Name, .file_list: zGlibc_Cxx_Floatn_4List, |
| 12001 | apzGlibc_Cxx_Floatn_4Machs, |
| 12002 | GLIBC_CXX_FLOATN_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12003 | .p_test_desc: aGlibc_Cxx_Floatn_4Tests, .patch_args: apzGlibc_Cxx_Floatn_4Patch, .unused: 0 }, |
| 12004 | |
| 12005 | { .fix_name: zGlibc_Cxx_Floatn_5Name, .file_list: zGlibc_Cxx_Floatn_5List, |
| 12006 | apzGlibc_Cxx_Floatn_5Machs, |
| 12007 | GLIBC_CXX_FLOATN_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12008 | .p_test_desc: aGlibc_Cxx_Floatn_5Tests, .patch_args: apzGlibc_Cxx_Floatn_5Patch, .unused: 0 }, |
| 12009 | |
| 12010 | { .fix_name: zGlibc_Mutex_InitName, .file_list: zGlibc_Mutex_InitList, |
| 12011 | apzGlibc_Mutex_InitMachs, |
| 12012 | GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY, |
| 12013 | .p_test_desc: aGlibc_Mutex_InitTests, .patch_args: apzGlibc_Mutex_InitPatch, .unused: 0 }, |
| 12014 | |
| 12015 | { .fix_name: zGlibc_StdintName, .file_list: zGlibc_StdintList, |
| 12016 | apzGlibc_StdintMachs, |
| 12017 | GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12018 | .p_test_desc: aGlibc_StdintTests, .patch_args: apzGlibc_StdintPatch, .unused: 0 }, |
| 12019 | |
| 12020 | { .fix_name: zGlibc_StrncpyName, .file_list: zGlibc_StrncpyList, |
| 12021 | apzGlibc_StrncpyMachs, |
| 12022 | GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12023 | .p_test_desc: aGlibc_StrncpyTests, .patch_args: apzGlibc_StrncpyPatch, .unused: 0 }, |
| 12024 | |
| 12025 | { .fix_name: zGlibc_TgmathName, .file_list: zGlibc_TgmathList, |
| 12026 | apzGlibc_TgmathMachs, |
| 12027 | GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12028 | .p_test_desc: aGlibc_TgmathTests, .patch_args: apzGlibc_TgmathPatch, .unused: 0 }, |
| 12029 | |
| 12030 | { .fix_name: zGnu_TypesName, .file_list: zGnu_TypesList, |
| 12031 | .papz_machs: apzGnu_TypesMachs, |
| 12032 | GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
| 12033 | .p_test_desc: aGnu_TypesTests, .patch_args: apzGnu_TypesPatch, .unused: 0 }, |
| 12034 | |
| 12035 | { .fix_name: zHp_InlineName, .file_list: zHp_InlineList, |
| 12036 | apzHp_InlineMachs, |
| 12037 | HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12038 | .p_test_desc: aHp_InlineTests, .patch_args: apzHp_InlinePatch, .unused: 0 }, |
| 12039 | |
| 12040 | { .fix_name: zHp_SysfileName, .file_list: zHp_SysfileList, |
| 12041 | apzHp_SysfileMachs, |
| 12042 | HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12043 | .p_test_desc: aHp_SysfileTests, .patch_args: apzHp_SysfilePatch, .unused: 0 }, |
| 12044 | |
| 12045 | { .fix_name: zHppa_Hpux_Fp_MacrosName, .file_list: zHppa_Hpux_Fp_MacrosList, |
| 12046 | .papz_machs: apzHppa_Hpux_Fp_MacrosMachs, |
| 12047 | HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12048 | .p_test_desc: aHppa_Hpux_Fp_MacrosTests, .patch_args: apzHppa_Hpux_Fp_MacrosPatch, .unused: 0 }, |
| 12049 | |
| 12050 | { .fix_name: zHpux10_Cpp_Pow_InlineName, .file_list: zHpux10_Cpp_Pow_InlineList, |
| 12051 | apzHpux10_Cpp_Pow_InlineMachs, |
| 12052 | HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12053 | .p_test_desc: aHpux10_Cpp_Pow_InlineTests, .patch_args: apzHpux10_Cpp_Pow_InlinePatch, .unused: 0 }, |
| 12054 | |
| 12055 | { .fix_name: zHpux11_Cpp_Pow_InlineName, .file_list: zHpux11_Cpp_Pow_InlineList, |
| 12056 | apzHpux11_Cpp_Pow_InlineMachs, |
| 12057 | HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12058 | .p_test_desc: aHpux11_Cpp_Pow_InlineTests, .patch_args: apzHpux11_Cpp_Pow_InlinePatch, .unused: 0 }, |
| 12059 | |
| 12060 | { .fix_name: zHpux_Math_ConstexprName, .file_list: zHpux_Math_ConstexprList, |
| 12061 | .papz_machs: apzHpux_Math_ConstexprMachs, |
| 12062 | HPUX_MATH_CONSTEXPR_TEST_CT, FD_MACH_ONLY, |
| 12063 | aHpux_Math_ConstexprTests, .patch_args: apzHpux_Math_ConstexprPatch, .unused: 0 }, |
| 12064 | |
| 12065 | { .fix_name: zHpux10_Ctype_Declarations1Name, .file_list: zHpux10_Ctype_Declarations1List, |
| 12066 | apzHpux10_Ctype_Declarations1Machs, |
| 12067 | HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12068 | .p_test_desc: aHpux10_Ctype_Declarations1Tests, .patch_args: apzHpux10_Ctype_Declarations1Patch, .unused: 0 }, |
| 12069 | |
| 12070 | { .fix_name: zHpux10_Ctype_Declarations2Name, .file_list: zHpux10_Ctype_Declarations2List, |
| 12071 | apzHpux10_Ctype_Declarations2Machs, |
| 12072 | HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12073 | .p_test_desc: aHpux10_Ctype_Declarations2Tests, .patch_args: apzHpux10_Ctype_Declarations2Patch, .unused: 0 }, |
| 12074 | |
| 12075 | { .fix_name: zHpux10_Stdio_DeclarationsName, .file_list: zHpux10_Stdio_DeclarationsList, |
| 12076 | apzHpux10_Stdio_DeclarationsMachs, |
| 12077 | HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12078 | .p_test_desc: aHpux10_Stdio_DeclarationsTests, .patch_args: apzHpux10_Stdio_DeclarationsPatch, .unused: 0 }, |
| 12079 | |
| 12080 | { .fix_name: zHppa_Hpux11_AllocaName, .file_list: zHppa_Hpux11_AllocaList, |
| 12081 | .papz_machs: apzHppa_Hpux11_AllocaMachs, |
| 12082 | HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12083 | .p_test_desc: aHppa_Hpux11_AllocaTests, .patch_args: apzHppa_Hpux11_AllocaPatch, .unused: 0 }, |
| 12084 | |
| 12085 | { .fix_name: zHpux11_AbsName, .file_list: zHpux11_AbsList, |
| 12086 | .papz_machs: apzHpux11_AbsMachs, |
| 12087 | HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12088 | .p_test_desc: aHpux11_AbsTests, .patch_args: apzHpux11_AbsPatch, .unused: 0 }, |
| 12089 | |
| 12090 | { .fix_name: zHpux11_Lwp_Rwlock_ValidName, .file_list: zHpux11_Lwp_Rwlock_ValidList, |
| 12091 | .papz_machs: apzHpux11_Lwp_Rwlock_ValidMachs, |
| 12092 | HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12093 | .p_test_desc: aHpux11_Lwp_Rwlock_ValidTests, .patch_args: apzHpux11_Lwp_Rwlock_ValidPatch, .unused: 0 }, |
| 12094 | |
| 12095 | { .fix_name: zHpux11_Extern_SendfileName, .file_list: zHpux11_Extern_SendfileList, |
| 12096 | .papz_machs: apzHpux11_Extern_SendfileMachs, |
| 12097 | HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12098 | .p_test_desc: aHpux11_Extern_SendfileTests, .patch_args: apzHpux11_Extern_SendfilePatch, .unused: 0 }, |
| 12099 | |
| 12100 | { .fix_name: zHpux11_Extern_SendpathName, .file_list: zHpux11_Extern_SendpathList, |
| 12101 | .papz_machs: apzHpux11_Extern_SendpathMachs, |
| 12102 | HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12103 | .p_test_desc: aHpux11_Extern_SendpathTests, .patch_args: apzHpux11_Extern_SendpathPatch, .unused: 0 }, |
| 12104 | |
| 12105 | { .fix_name: zHpux11_FabsfName, .file_list: zHpux11_FabsfList, |
| 12106 | .papz_machs: apzHpux11_FabsfMachs, |
| 12107 | HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12108 | .p_test_desc: aHpux11_FabsfTests, .patch_args: apzHpux11_FabsfPatch, .unused: 0 }, |
| 12109 | |
| 12110 | { .fix_name: zHpux11_Pthread_PointerName, .file_list: zHpux11_Pthread_PointerList, |
| 12111 | .papz_machs: apzHpux11_Pthread_PointerMachs, |
| 12112 | HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12113 | .p_test_desc: aHpux11_Pthread_PointerTests, .patch_args: apzHpux11_Pthread_PointerPatch, .unused: 0 }, |
| 12114 | |
| 12115 | { .fix_name: zHpux11_Pthread_ConstName, .file_list: zHpux11_Pthread_ConstList, |
| 12116 | .papz_machs: apzHpux11_Pthread_ConstMachs, |
| 12117 | HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12118 | .p_test_desc: aHpux11_Pthread_ConstTests, .patch_args: apzHpux11_Pthread_ConstPatch, .unused: 0 }, |
| 12119 | |
| 12120 | { .fix_name: zHpux11_Size_TName, zHpux11_Size_TList, |
| 12121 | .papz_machs: apzHpux11_Size_TMachs, |
| 12122 | HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12123 | .p_test_desc: aHpux11_Size_TTests, .patch_args: apzHpux11_Size_TPatch, .unused: 0 }, |
| 12124 | |
| 12125 | { .fix_name: zHpux11_SnprintfName, .file_list: zHpux11_SnprintfList, |
| 12126 | apzHpux11_SnprintfMachs, |
| 12127 | HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12128 | .p_test_desc: aHpux11_SnprintfTests, .patch_args: apzHpux11_SnprintfPatch, .unused: 0 }, |
| 12129 | |
| 12130 | { .fix_name: zHpux11_VsnprintfName, .file_list: zHpux11_VsnprintfList, |
| 12131 | apzHpux11_VsnprintfMachs, |
| 12132 | HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12133 | .p_test_desc: aHpux11_VsnprintfTests, .patch_args: apzHpux11_VsnprintfPatch, .unused: 0 }, |
| 12134 | |
| 12135 | { .fix_name: zHpux_VsscanfName, .file_list: zHpux_VsscanfList, |
| 12136 | .papz_machs: apzHpux_VsscanfMachs, |
| 12137 | HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12138 | .p_test_desc: aHpux_VsscanfTests, .patch_args: apzHpux_VsscanfPatch, .unused: 0 }, |
| 12139 | |
| 12140 | { .fix_name: zHpux8_Bogus_InlinesName, .file_list: zHpux8_Bogus_InlinesList, |
| 12141 | apzHpux8_Bogus_InlinesMachs, |
| 12142 | HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY, |
| 12143 | .p_test_desc: aHpux8_Bogus_InlinesTests, .patch_args: apzHpux8_Bogus_InlinesPatch, .unused: 0 }, |
| 12144 | |
| 12145 | { .fix_name: zHpux_C99_IntptrName, .file_list: zHpux_C99_IntptrList, |
| 12146 | .papz_machs: apzHpux_C99_IntptrMachs, |
| 12147 | HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY, |
| 12148 | aHpux_C99_IntptrTests, .patch_args: apzHpux_C99_IntptrPatch, .unused: 0 }, |
| 12149 | |
| 12150 | { .fix_name: zHpux_C99_InttypesName, .file_list: zHpux_C99_InttypesList, |
| 12151 | .papz_machs: apzHpux_C99_InttypesMachs, |
| 12152 | HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY, |
| 12153 | aHpux_C99_InttypesTests, .patch_args: apzHpux_C99_InttypesPatch, .unused: 0 }, |
| 12154 | |
| 12155 | { .fix_name: zHpux_C99_Inttypes2Name, .file_list: zHpux_C99_Inttypes2List, |
| 12156 | .papz_machs: apzHpux_C99_Inttypes2Machs, |
| 12157 | HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY, |
| 12158 | aHpux_C99_Inttypes2Tests, .patch_args: apzHpux_C99_Inttypes2Patch, .unused: 0 }, |
| 12159 | |
| 12160 | { .fix_name: zHpux_C99_Inttypes3Name, .file_list: zHpux_C99_Inttypes3List, |
| 12161 | .papz_machs: apzHpux_C99_Inttypes3Machs, |
| 12162 | HPUX_C99_INTTYPES3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12163 | .p_test_desc: aHpux_C99_Inttypes3Tests, .patch_args: apzHpux_C99_Inttypes3Patch, .unused: 0 }, |
| 12164 | |
| 12165 | { .fix_name: zHpux_C99_Inttypes4Name, .file_list: zHpux_C99_Inttypes4List, |
| 12166 | .papz_machs: apzHpux_C99_Inttypes4Machs, |
| 12167 | HPUX_C99_INTTYPES4_TEST_CT, FD_MACH_ONLY, |
| 12168 | aHpux_C99_Inttypes4Tests, .patch_args: apzHpux_C99_Inttypes4Patch, .unused: 0 }, |
| 12169 | |
| 12170 | { .fix_name: zHpux_C99_Inttypes5Name, .file_list: zHpux_C99_Inttypes5List, |
| 12171 | .papz_machs: apzHpux_C99_Inttypes5Machs, |
| 12172 | HPUX_C99_INTTYPES5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12173 | .p_test_desc: aHpux_C99_Inttypes5Tests, .patch_args: apzHpux_C99_Inttypes5Patch, .unused: 0 }, |
| 12174 | |
| 12175 | { .fix_name: zHpux_Ctype_MacrosName, .file_list: zHpux_Ctype_MacrosList, |
| 12176 | apzHpux_Ctype_MacrosMachs, |
| 12177 | HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12178 | .p_test_desc: aHpux_Ctype_MacrosTests, .patch_args: apzHpux_Ctype_MacrosPatch, .unused: 0 }, |
| 12179 | |
| 12180 | { .fix_name: zHpux_Extern_ErrnoName, .file_list: zHpux_Extern_ErrnoList, |
| 12181 | .papz_machs: apzHpux_Extern_ErrnoMachs, |
| 12182 | HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12183 | .p_test_desc: aHpux_Extern_ErrnoTests, .patch_args: apzHpux_Extern_ErrnoPatch, .unused: 0 }, |
| 12184 | |
| 12185 | { .fix_name: zHpux_HtonlName, .file_list: zHpux_HtonlList, |
| 12186 | apzHpux_HtonlMachs, |
| 12187 | HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12188 | .p_test_desc: aHpux_HtonlTests, .patch_args: apzHpux_HtonlPatch, .unused: 0 }, |
| 12189 | |
| 12190 | { .fix_name: zHpux_Imaginary_IName, .file_list: zHpux_Imaginary_IList, |
| 12191 | .papz_machs: apzHpux_Imaginary_IMachs, |
| 12192 | HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12193 | .p_test_desc: aHpux_Imaginary_ITests, .patch_args: apzHpux_Imaginary_IPatch, .unused: 0 }, |
| 12194 | |
| 12195 | { .fix_name: zHpux_Inttype_Int8_TName, .file_list: zHpux_Inttype_Int8_TList, |
| 12196 | .papz_machs: apzHpux_Inttype_Int8_TMachs, |
| 12197 | HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12198 | .p_test_desc: aHpux_Inttype_Int8_TTests, .patch_args: apzHpux_Inttype_Int8_TPatch, .unused: 0 }, |
| 12199 | |
| 12200 | { .fix_name: zHpux_Long_DoubleName, .file_list: zHpux_Long_DoubleList, |
| 12201 | .papz_machs: apzHpux_Long_DoubleMachs, |
| 12202 | HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY, |
| 12203 | .p_test_desc: aHpux_Long_DoubleTests, .patch_args: apzHpux_Long_DoublePatch, .unused: 0 }, |
| 12204 | |
| 12205 | { .fix_name: zHpux_Long_Double_2Name, .file_list: zHpux_Long_Double_2List, |
| 12206 | .papz_machs: apzHpux_Long_Double_2Machs, |
| 12207 | HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12208 | .p_test_desc: aHpux_Long_Double_2Tests, .patch_args: apzHpux_Long_Double_2Patch, .unused: 0 }, |
| 12209 | |
| 12210 | { .fix_name: zHpux_Pthread_InitializersName, .file_list: zHpux_Pthread_InitializersList, |
| 12211 | .papz_machs: apzHpux_Pthread_InitializersMachs, |
| 12212 | HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY, |
| 12213 | aHpux_Pthread_InitializersTests, .patch_args: apzHpux_Pthread_InitializersPatch, .unused: 0 }, |
| 12214 | |
| 12215 | { .fix_name: zHpux_Spu_InfoName, .file_list: zHpux_Spu_InfoList, |
| 12216 | .papz_machs: apzHpux_Spu_InfoMachs, |
| 12217 | HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12218 | .p_test_desc: aHpux_Spu_InfoTests, .patch_args: apzHpux_Spu_InfoPatch, .unused: 0 }, |
| 12219 | |
| 12220 | { .fix_name: zHpux_Stdint_Least_FastName, .file_list: zHpux_Stdint_Least_FastList, |
| 12221 | .papz_machs: apzHpux_Stdint_Least_FastMachs, |
| 12222 | HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12223 | .p_test_desc: aHpux_Stdint_Least_FastTests, .patch_args: apzHpux_Stdint_Least_FastPatch, .unused: 0 }, |
| 12224 | |
| 12225 | { .fix_name: zHpux_LongjmpName, .file_list: zHpux_LongjmpList, |
| 12226 | .papz_machs: apzHpux_LongjmpMachs, |
| 12227 | HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12228 | .p_test_desc: aHpux_LongjmpTests, .patch_args: apzHpux_LongjmpPatch, .unused: 0 }, |
| 12229 | |
| 12230 | { .fix_name: zHpux_SystimeName, .file_list: zHpux_SystimeList, |
| 12231 | apzHpux_SystimeMachs, |
| 12232 | HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12233 | .p_test_desc: aHpux_SystimeTests, .patch_args: apzHpux_SystimePatch, .unused: 0 }, |
| 12234 | |
| 12235 | { .fix_name: zHuge_Val_HexName, .file_list: zHuge_Val_HexList, |
| 12236 | apzHuge_Val_HexMachs, |
| 12237 | HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12238 | .p_test_desc: aHuge_Val_HexTests, .patch_args: apzHuge_Val_HexPatch, .unused: 0 }, |
| 12239 | |
| 12240 | { .fix_name: zHuge_Valf_HexName, .file_list: zHuge_Valf_HexList, |
| 12241 | apzHuge_Valf_HexMachs, |
| 12242 | HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12243 | .p_test_desc: aHuge_Valf_HexTests, .patch_args: apzHuge_Valf_HexPatch, .unused: 0 }, |
| 12244 | |
| 12245 | { .fix_name: zHuge_Vall_HexName, .file_list: zHuge_Vall_HexList, |
| 12246 | apzHuge_Vall_HexMachs, |
| 12247 | HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12248 | .p_test_desc: aHuge_Vall_HexTests, .patch_args: apzHuge_Vall_HexPatch, .unused: 0 }, |
| 12249 | |
| 12250 | { .fix_name: zInt_Abort_Free_And_ExitName, .file_list: zInt_Abort_Free_And_ExitList, |
| 12251 | apzInt_Abort_Free_And_ExitMachs, |
| 12252 | INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12253 | .p_test_desc: aInt_Abort_Free_And_ExitTests, .patch_args: apzInt_Abort_Free_And_ExitPatch, .unused: 0 }, |
| 12254 | |
| 12255 | { .fix_name: zIo_Quotes_DefName, zIo_Quotes_DefList, |
| 12256 | apzIo_Quotes_DefMachs, |
| 12257 | IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12258 | .p_test_desc: aIo_Quotes_DefTests, .patch_args: apzIo_Quotes_DefPatch, .unused: 0 }, |
| 12259 | |
| 12260 | { .fix_name: zIo_Quotes_UseName, zIo_Quotes_UseList, |
| 12261 | apzIo_Quotes_UseMachs, |
| 12262 | IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12263 | .p_test_desc: aIo_Quotes_UseTests, .patch_args: apzIo_Quotes_UsePatch, .unused: 0 }, |
| 12264 | |
| 12265 | { .fix_name: zIp_Missing_SemiName, .file_list: zIp_Missing_SemiList, |
| 12266 | apzIp_Missing_SemiMachs, |
| 12267 | IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY, |
| 12268 | .p_test_desc: aIp_Missing_SemiTests, .patch_args: apzIp_Missing_SemiPatch, .unused: 0 }, |
| 12269 | |
| 12270 | { .fix_name: zIrix_Limits_ConstName, .file_list: zIrix_Limits_ConstList, |
| 12271 | apzIrix_Limits_ConstMachs, |
| 12272 | IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12273 | .p_test_desc: aIrix_Limits_ConstTests, .patch_args: apzIrix_Limits_ConstPatch, .unused: 0 }, |
| 12274 | |
| 12275 | { .fix_name: zIrix_Stdio_Va_ListName, .file_list: zIrix_Stdio_Va_ListList, |
| 12276 | apzIrix_Stdio_Va_ListMachs, |
| 12277 | IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12278 | .p_test_desc: aIrix_Stdio_Va_ListTests, .patch_args: apzIrix_Stdio_Va_ListPatch, .unused: 0 }, |
| 12279 | |
| 12280 | { .fix_name: zKandr_ConcatName, .file_list: zKandr_ConcatList, |
| 12281 | apzKandr_ConcatMachs, |
| 12282 | KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12283 | .p_test_desc: aKandr_ConcatTests, .patch_args: apzKandr_ConcatPatch, .unused: 0 }, |
| 12284 | |
| 12285 | { .fix_name: zLinux_Ia64_UcontextName, .file_list: zLinux_Ia64_UcontextList, |
| 12286 | .papz_machs: apzLinux_Ia64_UcontextMachs, |
| 12287 | LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12288 | .p_test_desc: aLinux_Ia64_UcontextTests, .patch_args: apzLinux_Ia64_UcontextPatch, .unused: 0 }, |
| 12289 | |
| 12290 | { .fix_name: zLynxos_No_Warning_In_Sys_Time_HName, .file_list: zLynxos_No_Warning_In_Sys_Time_HList, |
| 12291 | apzLynxos_No_Warning_In_Sys_Time_HMachs, |
| 12292 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12293 | .p_test_desc: aLynxos_No_Warning_In_Sys_Time_HTests, .patch_args: apzLynxos_No_Warning_In_Sys_Time_HPatch, .unused: 0 }, |
| 12294 | |
| 12295 | { .fix_name: zLynxos_Missing_PutenvName, .file_list: zLynxos_Missing_PutenvList, |
| 12296 | .papz_machs: apzLynxos_Missing_PutenvMachs, |
| 12297 | LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12298 | .p_test_desc: aLynxos_Missing_PutenvTests, .patch_args: apzLynxos_Missing_PutenvPatch, .unused: 0 }, |
| 12299 | |
| 12300 | { .fix_name: zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, |
| 12301 | apzMachine_Ansi_H_Va_ListMachs, |
| 12302 | MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12303 | .p_test_desc: aMachine_Ansi_H_Va_ListTests, .patch_args: apzMachine_Ansi_H_Va_ListPatch, .unused: 0 }, |
| 12304 | |
| 12305 | { .fix_name: zMachine_NameName, zMachine_NameList, |
| 12306 | apzMachine_NameMachs, |
| 12307 | MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12308 | .p_test_desc: aMachine_NameTests, .patch_args: apzMachine_NamePatch, .unused: 0 }, |
| 12309 | |
| 12310 | { .fix_name: zMath_ExceptionName, .file_list: zMath_ExceptionList, |
| 12311 | apzMath_ExceptionMachs, |
| 12312 | MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12313 | .p_test_desc: aMath_ExceptionTests, .patch_args: apzMath_ExceptionPatch, .unused: 0 }, |
| 12314 | |
| 12315 | { .fix_name: zMath_Huge_Val_From_Dbl_MaxName, .file_list: zMath_Huge_Val_From_Dbl_MaxList, |
| 12316 | apzMath_Huge_Val_From_Dbl_MaxMachs, |
| 12317 | MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, |
| 12318 | .p_test_desc: aMath_Huge_Val_From_Dbl_MaxTests, .patch_args: apzMath_Huge_Val_From_Dbl_MaxPatch, .unused: 0 }, |
| 12319 | |
| 12320 | { .fix_name: zNested_Auth_DesName, .file_list: zNested_Auth_DesList, |
| 12321 | apzNested_Auth_DesMachs, |
| 12322 | NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12323 | .p_test_desc: aNested_Auth_DesTests, .patch_args: apzNested_Auth_DesPatch, .unused: 0 }, |
| 12324 | |
| 12325 | { .fix_name: zNetbsd_C99_Inline_1Name, .file_list: zNetbsd_C99_Inline_1List, |
| 12326 | .papz_machs: apzNetbsd_C99_Inline_1Machs, |
| 12327 | NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12328 | .p_test_desc: aNetbsd_C99_Inline_1Tests, .patch_args: apzNetbsd_C99_Inline_1Patch, .unused: 0 }, |
| 12329 | |
| 12330 | { .fix_name: zNetbsd_C99_Inline_2Name, .file_list: zNetbsd_C99_Inline_2List, |
| 12331 | .papz_machs: apzNetbsd_C99_Inline_2Machs, |
| 12332 | NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12333 | .p_test_desc: aNetbsd_C99_Inline_2Tests, .patch_args: apzNetbsd_C99_Inline_2Patch, .unused: 0 }, |
| 12334 | |
| 12335 | { .fix_name: zNetbsd_Extra_SemicolonName, .file_list: zNetbsd_Extra_SemicolonList, |
| 12336 | .papz_machs: apzNetbsd_Extra_SemicolonMachs, |
| 12337 | NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12338 | .p_test_desc: aNetbsd_Extra_SemicolonTests, .patch_args: apzNetbsd_Extra_SemicolonPatch, .unused: 0 }, |
| 12339 | |
| 12340 | { .fix_name: zNewlib_Stdint_1Name, .file_list: zNewlib_Stdint_1List, |
| 12341 | apzNewlib_Stdint_1Machs, |
| 12342 | NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY, |
| 12343 | .p_test_desc: aNewlib_Stdint_1Tests, .patch_args: apzNewlib_Stdint_1Patch, .unused: 0 }, |
| 12344 | |
| 12345 | { .fix_name: zNewlib_Stdint_2Name, .file_list: zNewlib_Stdint_2List, |
| 12346 | apzNewlib_Stdint_2Machs, |
| 12347 | NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12348 | .p_test_desc: aNewlib_Stdint_2Tests, .patch_args: apzNewlib_Stdint_2Patch, .unused: 0 }, |
| 12349 | |
| 12350 | { .fix_name: zNext_Math_PrefixName, .file_list: zNext_Math_PrefixList, |
| 12351 | apzNext_Math_PrefixMachs, |
| 12352 | NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12353 | .p_test_desc: aNext_Math_PrefixTests, .patch_args: apzNext_Math_PrefixPatch, .unused: 0 }, |
| 12354 | |
| 12355 | { .fix_name: zNext_TemplateName, .file_list: zNext_TemplateList, |
| 12356 | apzNext_TemplateMachs, |
| 12357 | NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12358 | .p_test_desc: aNext_TemplateTests, .patch_args: apzNext_TemplatePatch, .unused: 0 }, |
| 12359 | |
| 12360 | { .fix_name: zNext_VolitileName, .file_list: zNext_VolitileList, |
| 12361 | apzNext_VolitileMachs, |
| 12362 | NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12363 | .p_test_desc: aNext_VolitileTests, .patch_args: apzNext_VolitilePatch, .unused: 0 }, |
| 12364 | |
| 12365 | { .fix_name: zNext_Wait_UnionName, .file_list: zNext_Wait_UnionList, |
| 12366 | apzNext_Wait_UnionMachs, |
| 12367 | NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12368 | .p_test_desc: aNext_Wait_UnionTests, .patch_args: apzNext_Wait_UnionPatch, .unused: 0 }, |
| 12369 | |
| 12370 | { .fix_name: zNodeent_SyntaxName, .file_list: zNodeent_SyntaxList, |
| 12371 | apzNodeent_SyntaxMachs, |
| 12372 | NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12373 | .p_test_desc: aNodeent_SyntaxTests, .patch_args: apzNodeent_SyntaxPatch, .unused: 0 }, |
| 12374 | |
| 12375 | { .fix_name: zOpenbsd_Null_DefinitionName, .file_list: zOpenbsd_Null_DefinitionList, |
| 12376 | .papz_machs: apzOpenbsd_Null_DefinitionMachs, |
| 12377 | OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12378 | .p_test_desc: aOpenbsd_Null_DefinitionTests, .patch_args: apzOpenbsd_Null_DefinitionPatch, .unused: 0 }, |
| 12379 | |
| 12380 | { .fix_name: zObstack_Lvalue_CastName, .file_list: zObstack_Lvalue_CastList, |
| 12381 | apzObstack_Lvalue_CastMachs, |
| 12382 | OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12383 | .p_test_desc: aObstack_Lvalue_CastTests, .patch_args: apzObstack_Lvalue_CastPatch, .unused: 0 }, |
| 12384 | |
| 12385 | { .fix_name: zOpenbsd_Va_StartName, .file_list: zOpenbsd_Va_StartList, |
| 12386 | .papz_machs: apzOpenbsd_Va_StartMachs, |
| 12387 | OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12388 | .p_test_desc: aOpenbsd_Va_StartTests, .patch_args: apzOpenbsd_Va_StartPatch, .unused: 0 }, |
| 12389 | |
| 12390 | { .fix_name: zOsf_Namespace_AName, .file_list: zOsf_Namespace_AList, |
| 12391 | apzOsf_Namespace_AMachs, |
| 12392 | OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12393 | .p_test_desc: aOsf_Namespace_ATests, .patch_args: apzOsf_Namespace_APatch, .unused: 0 }, |
| 12394 | |
| 12395 | { .fix_name: zOsf_Namespace_CName, .file_list: zOsf_Namespace_CList, |
| 12396 | apzOsf_Namespace_CMachs, |
| 12397 | OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12398 | .p_test_desc: aOsf_Namespace_CTests, .patch_args: apzOsf_Namespace_CPatch, .unused: 0 }, |
| 12399 | |
| 12400 | { .fix_name: zPthread_Incomplete_Struct_ArgumentName, .file_list: zPthread_Incomplete_Struct_ArgumentList, |
| 12401 | apzPthread_Incomplete_Struct_ArgumentMachs, |
| 12402 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12403 | .p_test_desc: aPthread_Incomplete_Struct_ArgumentTests, .patch_args: apzPthread_Incomplete_Struct_ArgumentPatch, .unused: 0 }, |
| 12404 | |
| 12405 | { .fix_name: zRead_Ret_TypeName, .file_list: zRead_Ret_TypeList, |
| 12406 | apzRead_Ret_TypeMachs, |
| 12407 | READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12408 | .p_test_desc: aRead_Ret_TypeTests, .patch_args: apzRead_Ret_TypePatch, .unused: 0 }, |
| 12409 | |
| 12410 | { .fix_name: zRpc_Xdr_Lvalue_Cast_AName, .file_list: zRpc_Xdr_Lvalue_Cast_AList, |
| 12411 | apzRpc_Xdr_Lvalue_Cast_AMachs, |
| 12412 | RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12413 | .p_test_desc: aRpc_Xdr_Lvalue_Cast_ATests, .patch_args: apzRpc_Xdr_Lvalue_Cast_APatch, .unused: 0 }, |
| 12414 | |
| 12415 | { .fix_name: zRpc_Xdr_Lvalue_Cast_BName, .file_list: zRpc_Xdr_Lvalue_Cast_BList, |
| 12416 | apzRpc_Xdr_Lvalue_Cast_BMachs, |
| 12417 | RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12418 | .p_test_desc: aRpc_Xdr_Lvalue_Cast_BTests, .patch_args: apzRpc_Xdr_Lvalue_Cast_BPatch, .unused: 0 }, |
| 12419 | |
| 12420 | { .fix_name: zRs6000_DoubleName, .file_list: zRs6000_DoubleList, |
| 12421 | apzRs6000_DoubleMachs, |
| 12422 | RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12423 | .p_test_desc: aRs6000_DoubleTests, .patch_args: apzRs6000_DoublePatch, .unused: 0 }, |
| 12424 | |
| 12425 | { .fix_name: zRs6000_FchmodName, .file_list: zRs6000_FchmodList, |
| 12426 | apzRs6000_FchmodMachs, |
| 12427 | RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12428 | .p_test_desc: aRs6000_FchmodTests, .patch_args: apzRs6000_FchmodPatch, .unused: 0 }, |
| 12429 | |
| 12430 | { .fix_name: zRs6000_ParamName, .file_list: zRs6000_ParamList, |
| 12431 | apzRs6000_ParamMachs, |
| 12432 | RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12433 | .p_test_desc: aRs6000_ParamTests, .patch_args: apzRs6000_ParamPatch, .unused: 0 }, |
| 12434 | |
| 12435 | { .fix_name: zSolaris___RestrictName, .file_list: zSolaris___RestrictList, |
| 12436 | .papz_machs: apzSolaris___RestrictMachs, |
| 12437 | SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12438 | .p_test_desc: aSolaris___RestrictTests, .patch_args: apzSolaris___RestrictPatch, .unused: 0 }, |
| 12439 | |
| 12440 | { .fix_name: zSolaris_ComplexName, .file_list: zSolaris_ComplexList, |
| 12441 | .papz_machs: apzSolaris_ComplexMachs, |
| 12442 | SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY, |
| 12443 | .p_test_desc: aSolaris_ComplexTests, .patch_args: apzSolaris_ComplexPatch, .unused: 0 }, |
| 12444 | |
| 12445 | { .fix_name: zSolaris_Complex_CxxName, .file_list: zSolaris_Complex_CxxList, |
| 12446 | .papz_machs: apzSolaris_Complex_CxxMachs, |
| 12447 | SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY, |
| 12448 | aSolaris_Complex_CxxTests, .patch_args: apzSolaris_Complex_CxxPatch, .unused: 0 }, |
| 12449 | |
| 12450 | { .fix_name: zSolaris_Cxx_LinkageName, .file_list: zSolaris_Cxx_LinkageList, |
| 12451 | .papz_machs: apzSolaris_Cxx_LinkageMachs, |
| 12452 | SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12453 | .p_test_desc: aSolaris_Cxx_LinkageTests, .patch_args: apzSolaris_Cxx_LinkagePatch, .unused: 0 }, |
| 12454 | |
| 12455 | { .fix_name: zSolaris_Getc_Strict_StdcName, .file_list: zSolaris_Getc_Strict_StdcList, |
| 12456 | .papz_machs: apzSolaris_Getc_Strict_StdcMachs, |
| 12457 | SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12458 | .p_test_desc: aSolaris_Getc_Strict_StdcTests, .patch_args: apzSolaris_Getc_Strict_StdcPatch, .unused: 0 }, |
| 12459 | |
| 12460 | { .fix_name: zSolaris_Gets_C11Name, .file_list: zSolaris_Gets_C11List, |
| 12461 | .papz_machs: apzSolaris_Gets_C11Machs, |
| 12462 | SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12463 | .p_test_desc: aSolaris_Gets_C11Tests, .patch_args: apzSolaris_Gets_C11Patch, .unused: 0 }, |
| 12464 | |
| 12465 | { .fix_name: zSolaris_Gets_Cxx14Name, .file_list: zSolaris_Gets_Cxx14List, |
| 12466 | .papz_machs: apzSolaris_Gets_Cxx14Machs, |
| 12467 | SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12468 | .p_test_desc: aSolaris_Gets_Cxx14Tests, .patch_args: apzSolaris_Gets_Cxx14Patch, .unused: 0 }, |
| 12469 | |
| 12470 | { .fix_name: zSolaris_Int_ConstName, .file_list: zSolaris_Int_ConstList, |
| 12471 | .papz_machs: apzSolaris_Int_ConstMachs, |
| 12472 | SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12473 | .p_test_desc: aSolaris_Int_ConstTests, .patch_args: apzSolaris_Int_ConstPatch, .unused: 0 }, |
| 12474 | |
| 12475 | { .fix_name: zSolaris_Int_Limits_1Name, .file_list: zSolaris_Int_Limits_1List, |
| 12476 | .papz_machs: apzSolaris_Int_Limits_1Machs, |
| 12477 | SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12478 | .p_test_desc: aSolaris_Int_Limits_1Tests, .patch_args: apzSolaris_Int_Limits_1Patch, .unused: 0 }, |
| 12479 | |
| 12480 | { .fix_name: zSolaris_Int_Limits_2Name, .file_list: zSolaris_Int_Limits_2List, |
| 12481 | .papz_machs: apzSolaris_Int_Limits_2Machs, |
| 12482 | SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12483 | .p_test_desc: aSolaris_Int_Limits_2Tests, .patch_args: apzSolaris_Int_Limits_2Patch, .unused: 0 }, |
| 12484 | |
| 12485 | { .fix_name: zSolaris_Int_Limits_3Name, .file_list: zSolaris_Int_Limits_3List, |
| 12486 | .papz_machs: apzSolaris_Int_Limits_3Machs, |
| 12487 | SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12488 | .p_test_desc: aSolaris_Int_Limits_3Tests, .patch_args: apzSolaris_Int_Limits_3Patch, .unused: 0 }, |
| 12489 | |
| 12490 | { .fix_name: zSolaris_Math_1Name, .file_list: zSolaris_Math_1List, |
| 12491 | apzSolaris_Math_1Machs, |
| 12492 | SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12493 | .p_test_desc: aSolaris_Math_1Tests, .patch_args: apzSolaris_Math_1Patch, .unused: 0 }, |
| 12494 | |
| 12495 | { .fix_name: zSolaris_Math_10Name, .file_list: zSolaris_Math_10List, |
| 12496 | apzSolaris_Math_10Machs, |
| 12497 | SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12498 | .p_test_desc: aSolaris_Math_10Tests, .patch_args: apzSolaris_Math_10Patch, .unused: 0 }, |
| 12499 | |
| 12500 | { .fix_name: zSolaris_Math_2Name, .file_list: zSolaris_Math_2List, |
| 12501 | apzSolaris_Math_2Machs, |
| 12502 | SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12503 | .p_test_desc: aSolaris_Math_2Tests, .patch_args: apzSolaris_Math_2Patch, .unused: 0 }, |
| 12504 | |
| 12505 | { .fix_name: zSolaris_Math_3Name, .file_list: zSolaris_Math_3List, |
| 12506 | apzSolaris_Math_3Machs, |
| 12507 | SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12508 | .p_test_desc: aSolaris_Math_3Tests, .patch_args: apzSolaris_Math_3Patch, .unused: 0 }, |
| 12509 | |
| 12510 | { .fix_name: zSolaris_Math_4Name, .file_list: zSolaris_Math_4List, |
| 12511 | apzSolaris_Math_4Machs, |
| 12512 | SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12513 | .p_test_desc: aSolaris_Math_4Tests, .patch_args: apzSolaris_Math_4Patch, .unused: 0 }, |
| 12514 | |
| 12515 | { .fix_name: zSolaris_Math_8Name, .file_list: zSolaris_Math_8List, |
| 12516 | apzSolaris_Math_8Machs, |
| 12517 | SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12518 | .p_test_desc: aSolaris_Math_8Tests, .patch_args: apzSolaris_Math_8Patch, .unused: 0 }, |
| 12519 | |
| 12520 | { .fix_name: zSolaris_Math_9Name, .file_list: zSolaris_Math_9List, |
| 12521 | apzSolaris_Math_9Machs, |
| 12522 | SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12523 | .p_test_desc: aSolaris_Math_9Tests, .patch_args: apzSolaris_Math_9Patch, .unused: 0 }, |
| 12524 | |
| 12525 | { .fix_name: zSolaris_Math_11Name, .file_list: zSolaris_Math_11List, |
| 12526 | apzSolaris_Math_11Machs, |
| 12527 | SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12528 | .p_test_desc: aSolaris_Math_11Tests, .patch_args: apzSolaris_Math_11Patch, .unused: 0 }, |
| 12529 | |
| 12530 | { .fix_name: zSolaris_Math_12Name, .file_list: zSolaris_Math_12List, |
| 12531 | .papz_machs: apzSolaris_Math_12Machs, |
| 12532 | SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY, |
| 12533 | .p_test_desc: aSolaris_Math_12Tests, .patch_args: apzSolaris_Math_12Patch, .unused: 0 }, |
| 12534 | |
| 12535 | { .fix_name: zSolaris_Once_Init_1Name, .file_list: zSolaris_Once_Init_1List, |
| 12536 | .papz_machs: apzSolaris_Once_Init_1Machs, |
| 12537 | SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12538 | .p_test_desc: aSolaris_Once_Init_1Tests, .patch_args: apzSolaris_Once_Init_1Patch, .unused: 0 }, |
| 12539 | |
| 12540 | { .fix_name: zSolaris_Posix_Spawn_RestrictName, .file_list: zSolaris_Posix_Spawn_RestrictList, |
| 12541 | .papz_machs: apzSolaris_Posix_Spawn_RestrictMachs, |
| 12542 | SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12543 | .p_test_desc: aSolaris_Posix_Spawn_RestrictTests, .patch_args: apzSolaris_Posix_Spawn_RestrictPatch, .unused: 0 }, |
| 12544 | |
| 12545 | { .fix_name: zSolaris_Pow_Int_OverloadName, .file_list: zSolaris_Pow_Int_OverloadList, |
| 12546 | .papz_machs: apzSolaris_Pow_Int_OverloadMachs, |
| 12547 | SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12548 | .p_test_desc: aSolaris_Pow_Int_OverloadTests, .patch_args: apzSolaris_Pow_Int_OverloadPatch, .unused: 0 }, |
| 12549 | |
| 12550 | { .fix_name: zSolaris_Rwlock_Init_1Name, .file_list: zSolaris_Rwlock_Init_1List, |
| 12551 | .papz_machs: apzSolaris_Rwlock_Init_1Machs, |
| 12552 | SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12553 | .p_test_desc: aSolaris_Rwlock_Init_1Tests, .patch_args: apzSolaris_Rwlock_Init_1Patch, .unused: 0 }, |
| 12554 | |
| 12555 | { .fix_name: zSolaris_Std___FilbufName, .file_list: zSolaris_Std___FilbufList, |
| 12556 | .papz_machs: apzSolaris_Std___FilbufMachs, |
| 12557 | SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12558 | .p_test_desc: aSolaris_Std___FilbufTests, .patch_args: apzSolaris_Std___FilbufPatch, .unused: 0 }, |
| 12559 | |
| 12560 | { .fix_name: zSolaris_Std_Gets_Cxx14Name, .file_list: zSolaris_Std_Gets_Cxx14List, |
| 12561 | .papz_machs: apzSolaris_Std_Gets_Cxx14Machs, |
| 12562 | SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12563 | .p_test_desc: aSolaris_Std_Gets_Cxx14Tests, .patch_args: apzSolaris_Std_Gets_Cxx14Patch, .unused: 0 }, |
| 12564 | |
| 12565 | { .fix_name: zSolaris_Stdio_TagName, .file_list: zSolaris_Stdio_TagList, |
| 12566 | apzSolaris_Stdio_TagMachs, |
| 12567 | SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY, |
| 12568 | .p_test_desc: aSolaris_Stdio_TagTests, .patch_args: apzSolaris_Stdio_TagPatch, .unused: 0 }, |
| 12569 | |
| 12570 | { .fix_name: zSolaris_Stdlib_NoreturnName, .file_list: zSolaris_Stdlib_NoreturnList, |
| 12571 | .papz_machs: apzSolaris_Stdlib_NoreturnMachs, |
| 12572 | SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12573 | .p_test_desc: aSolaris_Stdlib_NoreturnTests, .patch_args: apzSolaris_Stdlib_NoreturnPatch, .unused: 0 }, |
| 12574 | |
| 12575 | { .fix_name: zStatsswtchName, .file_list: zStatsswtchList, |
| 12576 | apzStatsswtchMachs, |
| 12577 | STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12578 | .p_test_desc: aStatsswtchTests, .patch_args: apzStatsswtchPatch, .unused: 0 }, |
| 12579 | |
| 12580 | { .fix_name: zStdio_Stdarg_HName, .file_list: zStdio_Stdarg_HList, |
| 12581 | .papz_machs: apzStdio_Stdarg_HMachs, |
| 12582 | STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
| 12583 | .p_test_desc: aStdio_Stdarg_HTests, .patch_args: apzStdio_Stdarg_HPatch, .unused: 0 }, |
| 12584 | |
| 12585 | { .fix_name: zStdio_Va_ListName, .file_list: zStdio_Va_ListList, |
| 12586 | .papz_machs: apzStdio_Va_ListMachs, |
| 12587 | STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT, |
| 12588 | .p_test_desc: aStdio_Va_ListTests, .patch_args: apzStdio_Va_ListPatch, .unused: 0 }, |
| 12589 | |
| 12590 | { .fix_name: zStdio_Va_List_ClientsName, .file_list: zStdio_Va_List_ClientsList, |
| 12591 | apzStdio_Va_List_ClientsMachs, |
| 12592 | STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY, |
| 12593 | .p_test_desc: aStdio_Va_List_ClientsTests, .patch_args: apzStdio_Va_List_ClientsPatch, .unused: 0 }, |
| 12594 | |
| 12595 | { .fix_name: zStrict_Ansi_NotName, zStrict_Ansi_NotList, |
| 12596 | apzStrict_Ansi_NotMachs, |
| 12597 | STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12598 | .p_test_desc: aStrict_Ansi_NotTests, .patch_args: apzStrict_Ansi_NotPatch, .unused: 0 }, |
| 12599 | |
| 12600 | { .fix_name: zStrict_Ansi_Not_CtdName, .file_list: zStrict_Ansi_Not_CtdList, |
| 12601 | apzStrict_Ansi_Not_CtdMachs, |
| 12602 | STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12603 | .p_test_desc: aStrict_Ansi_Not_CtdTests, .patch_args: apzStrict_Ansi_Not_CtdPatch, .unused: 0 }, |
| 12604 | |
| 12605 | { .fix_name: zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList, |
| 12606 | apzStrict_Ansi_OnlyMachs, |
| 12607 | STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12608 | .p_test_desc: aStrict_Ansi_OnlyTests, .patch_args: apzStrict_Ansi_OnlyPatch, .unused: 0 }, |
| 12609 | |
| 12610 | { .fix_name: zStruct_FileName, .file_list: zStruct_FileList, |
| 12611 | apzStruct_FileMachs, |
| 12612 | STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12613 | .p_test_desc: aStruct_FileTests, .patch_args: apzStruct_FilePatch, .unused: 0 }, |
| 12614 | |
| 12615 | { .fix_name: zStruct_SockaddrName, .file_list: zStruct_SockaddrList, |
| 12616 | apzStruct_SockaddrMachs, |
| 12617 | STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12618 | .p_test_desc: aStruct_SockaddrTests, .patch_args: apzStruct_SockaddrPatch, .unused: 0 }, |
| 12619 | |
| 12620 | { .fix_name: zSun_Auth_ProtoName, .file_list: zSun_Auth_ProtoList, |
| 12621 | apzSun_Auth_ProtoMachs, |
| 12622 | SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12623 | .p_test_desc: aSun_Auth_ProtoTests, .patch_args: apzSun_Auth_ProtoPatch, .unused: 0 }, |
| 12624 | |
| 12625 | { .fix_name: zSun_Bogus_IfdefName, .file_list: zSun_Bogus_IfdefList, |
| 12626 | apzSun_Bogus_IfdefMachs, |
| 12627 | SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12628 | .p_test_desc: aSun_Bogus_IfdefTests, .patch_args: apzSun_Bogus_IfdefPatch, .unused: 0 }, |
| 12629 | |
| 12630 | { .fix_name: zSun_CatmacroName, .file_list: zSun_CatmacroList, |
| 12631 | apzSun_CatmacroMachs, |
| 12632 | SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12633 | .p_test_desc: aSun_CatmacroTests, .patch_args: apzSun_CatmacroPatch, .unused: 0 }, |
| 12634 | |
| 12635 | { .fix_name: zSun_MallocName, .file_list: zSun_MallocList, |
| 12636 | apzSun_MallocMachs, |
| 12637 | SUN_MALLOC_TEST_CT, FD_MACH_ONLY, |
| 12638 | .p_test_desc: aSun_MallocTests, .patch_args: apzSun_MallocPatch, .unused: 0 }, |
| 12639 | |
| 12640 | { .fix_name: zSun_Rusers_SemiName, .file_list: zSun_Rusers_SemiList, |
| 12641 | apzSun_Rusers_SemiMachs, |
| 12642 | SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY, |
| 12643 | .p_test_desc: aSun_Rusers_SemiTests, .patch_args: apzSun_Rusers_SemiPatch, .unused: 0 }, |
| 12644 | |
| 12645 | { .fix_name: zSun_SignalName, .file_list: zSun_SignalList, |
| 12646 | apzSun_SignalMachs, |
| 12647 | SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12648 | .p_test_desc: aSun_SignalTests, .patch_args: apzSun_SignalPatch, .unused: 0 }, |
| 12649 | |
| 12650 | { .fix_name: zSunos_StrlenName, .file_list: zSunos_StrlenList, |
| 12651 | apzSunos_StrlenMachs, |
| 12652 | SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12653 | .p_test_desc: aSunos_StrlenTests, .patch_args: apzSunos_StrlenPatch, .unused: 0 }, |
| 12654 | |
| 12655 | { .fix_name: zSuse_Linux_Vt_CxxName, .file_list: zSuse_Linux_Vt_CxxList, |
| 12656 | apzSuse_Linux_Vt_CxxMachs, |
| 12657 | SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12658 | .p_test_desc: aSuse_Linux_Vt_CxxTests, .patch_args: apzSuse_Linux_Vt_CxxPatch, .unused: 0 }, |
| 12659 | |
| 12660 | { .fix_name: zSvr4_Disable_OptName, .file_list: zSvr4_Disable_OptList, |
| 12661 | apzSvr4_Disable_OptMachs, |
| 12662 | SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY, |
| 12663 | .p_test_desc: aSvr4_Disable_OptTests, .patch_args: apzSvr4_Disable_OptPatch, .unused: 0 }, |
| 12664 | |
| 12665 | { .fix_name: zSvr4_GetcwdName, .file_list: zSvr4_GetcwdList, |
| 12666 | apzSvr4_GetcwdMachs, |
| 12667 | SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12668 | .p_test_desc: aSvr4_GetcwdTests, .patch_args: apzSvr4_GetcwdPatch, .unused: 0 }, |
| 12669 | |
| 12670 | { .fix_name: zSvr4_ProfilName, .file_list: zSvr4_ProfilList, |
| 12671 | apzSvr4_ProfilMachs, |
| 12672 | SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12673 | .p_test_desc: aSvr4_ProfilTests, .patch_args: apzSvr4_ProfilPatch, .unused: 0 }, |
| 12674 | |
| 12675 | { .fix_name: zSvr4_Sighandler_TypeName, .file_list: zSvr4_Sighandler_TypeList, |
| 12676 | apzSvr4_Sighandler_TypeMachs, |
| 12677 | SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12678 | .p_test_desc: aSvr4_Sighandler_TypeTests, .patch_args: apzSvr4_Sighandler_TypePatch, .unused: 0 }, |
| 12679 | |
| 12680 | { .fix_name: zSvr4_Undeclared_GetrngeName, .file_list: zSvr4_Undeclared_GetrngeList, |
| 12681 | apzSvr4_Undeclared_GetrngeMachs, |
| 12682 | SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12683 | .p_test_desc: aSvr4_Undeclared_GetrngeTests, .patch_args: apzSvr4_Undeclared_GetrngePatch, .unused: 0 }, |
| 12684 | |
| 12685 | { .fix_name: zSysv68_StringName, .file_list: zSysv68_StringList, |
| 12686 | apzSysv68_StringMachs, |
| 12687 | SYSV68_STRING_TEST_CT, FD_MACH_ONLY, |
| 12688 | .p_test_desc: aSysv68_StringTests, .patch_args: apzSysv68_StringPatch, .unused: 0 }, |
| 12689 | |
| 12690 | { .fix_name: zSysz_Stdlib_For_SunName, .file_list: zSysz_Stdlib_For_SunList, |
| 12691 | apzSysz_Stdlib_For_SunMachs, |
| 12692 | SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12693 | .p_test_desc: aSysz_Stdlib_For_SunTests, .patch_args: apzSysz_Stdlib_For_SunPatch, .unused: 0 }, |
| 12694 | |
| 12695 | { .fix_name: zThread_KeywordName, .file_list: zThread_KeywordList, |
| 12696 | apzThread_KeywordMachs, |
| 12697 | THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12698 | .p_test_desc: aThread_KeywordTests, .patch_args: apzThread_KeywordPatch, .unused: 0 }, |
| 12699 | |
| 12700 | { .fix_name: zTinfo_CplusplusName, .file_list: zTinfo_CplusplusList, |
| 12701 | apzTinfo_CplusplusMachs, |
| 12702 | TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12703 | .p_test_desc: aTinfo_CplusplusTests, .patch_args: apzTinfo_CplusplusPatch, .unused: 0 }, |
| 12704 | |
| 12705 | { .fix_name: zUltrix_ConstName, .file_list: zUltrix_ConstList, |
| 12706 | apzUltrix_ConstMachs, |
| 12707 | ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12708 | .p_test_desc: aUltrix_ConstTests, .patch_args: apzUltrix_ConstPatch, .unused: 0 }, |
| 12709 | |
| 12710 | { .fix_name: zUltrix_Const2Name, .file_list: zUltrix_Const2List, |
| 12711 | apzUltrix_Const2Machs, |
| 12712 | ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12713 | .p_test_desc: aUltrix_Const2Tests, .patch_args: apzUltrix_Const2Patch, .unused: 0 }, |
| 12714 | |
| 12715 | { .fix_name: zVa_I960_MacroName, .file_list: zVa_I960_MacroList, |
| 12716 | apzVa_I960_MacroMachs, |
| 12717 | VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12718 | .p_test_desc: aVa_I960_MacroTests, .patch_args: apzVa_I960_MacroPatch, .unused: 0 }, |
| 12719 | |
| 12720 | { .fix_name: zVms_Add_Missing_BracesName, .file_list: zVms_Add_Missing_BracesList, |
| 12721 | .papz_machs: apzVms_Add_Missing_BracesMachs, |
| 12722 | VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12723 | .p_test_desc: aVms_Add_Missing_BracesTests, .patch_args: apzVms_Add_Missing_BracesPatch, .unused: 0 }, |
| 12724 | |
| 12725 | { .fix_name: zVms_Decc_BuiltinName, .file_list: zVms_Decc_BuiltinList, |
| 12726 | .papz_machs: apzVms_Decc_BuiltinMachs, |
| 12727 | VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY, |
| 12728 | .p_test_desc: aVms_Decc_BuiltinTests, .patch_args: apzVms_Decc_BuiltinPatch, .unused: 0 }, |
| 12729 | |
| 12730 | { .fix_name: zVms_Define_Can_Use_Extern_PrefixName, .file_list: zVms_Define_Can_Use_Extern_PrefixList, |
| 12731 | .papz_machs: apzVms_Define_Can_Use_Extern_PrefixMachs, |
| 12732 | VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12733 | .p_test_desc: aVms_Define_Can_Use_Extern_PrefixTests, .patch_args: apzVms_Define_Can_Use_Extern_PrefixPatch, .unused: 0 }, |
| 12734 | |
| 12735 | { .fix_name: zVms_Disable_Decc_String_BuiltinsName, .file_list: zVms_Disable_Decc_String_BuiltinsList, |
| 12736 | .papz_machs: apzVms_Disable_Decc_String_BuiltinsMachs, |
| 12737 | VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12738 | .p_test_desc: aVms_Disable_Decc_String_BuiltinsTests, .patch_args: apzVms_Disable_Decc_String_BuiltinsPatch, .unused: 0 }, |
| 12739 | |
| 12740 | { .fix_name: zVms_Do_Not_Redeclare_HostaliasName, .file_list: zVms_Do_Not_Redeclare_HostaliasList, |
| 12741 | .papz_machs: apzVms_Do_Not_Redeclare_HostaliasMachs, |
| 12742 | VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12743 | .p_test_desc: aVms_Do_Not_Redeclare_HostaliasTests, .patch_args: apzVms_Do_Not_Redeclare_HostaliasPatch, .unused: 0 }, |
| 12744 | |
| 12745 | { .fix_name: zVms_Forward_Declare_StructName, .file_list: zVms_Forward_Declare_StructList, |
| 12746 | .papz_machs: apzVms_Forward_Declare_StructMachs, |
| 12747 | VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12748 | .p_test_desc: aVms_Forward_Declare_StructTests, .patch_args: apzVms_Forward_Declare_StructPatch, .unused: 0 }, |
| 12749 | |
| 12750 | { .fix_name: zVms_No_64bit_GetoptName, .file_list: zVms_No_64bit_GetoptList, |
| 12751 | .papz_machs: apzVms_No_64bit_GetoptMachs, |
| 12752 | VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12753 | .p_test_desc: aVms_No_64bit_GetoptTests, .patch_args: apzVms_No_64bit_GetoptPatch, .unused: 0 }, |
| 12754 | |
| 12755 | { .fix_name: zVms_Use_Fast_SetjmpName, .file_list: zVms_Use_Fast_SetjmpList, |
| 12756 | .papz_machs: apzVms_Use_Fast_SetjmpMachs, |
| 12757 | VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12758 | .p_test_desc: aVms_Use_Fast_SetjmpTests, .patch_args: apzVms_Use_Fast_SetjmpPatch, .unused: 0 }, |
| 12759 | |
| 12760 | { .fix_name: zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList, |
| 12761 | .papz_machs: apzVms_Use_Pragma_Extern_ModelMachs, |
| 12762 | VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12763 | .p_test_desc: aVms_Use_Pragma_Extern_ModelTests, .patch_args: apzVms_Use_Pragma_Extern_ModelPatch, .unused: 0 }, |
| 12764 | |
| 12765 | { .fix_name: zVms_Use_Quoted_IncludeName, .file_list: zVms_Use_Quoted_IncludeList, |
| 12766 | .papz_machs: apzVms_Use_Quoted_IncludeMachs, |
| 12767 | VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12768 | .p_test_desc: aVms_Use_Quoted_IncludeTests, .patch_args: apzVms_Use_Quoted_IncludePatch, .unused: 0 }, |
| 12769 | |
| 12770 | { .fix_name: zVoid_NullName, .file_list: zVoid_NullList, |
| 12771 | apzVoid_NullMachs, |
| 12772 | VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12773 | .p_test_desc: aVoid_NullTests, .patch_args: apzVoid_NullPatch, .unused: 0 }, |
| 12774 | |
| 12775 | { .fix_name: zVxworks_Gcc_ProblemName, .file_list: zVxworks_Gcc_ProblemList, |
| 12776 | apzVxworks_Gcc_ProblemMachs, |
| 12777 | VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY, |
| 12778 | .p_test_desc: aVxworks_Gcc_ProblemTests, .patch_args: apzVxworks_Gcc_ProblemPatch, .unused: 0 }, |
| 12779 | |
| 12780 | { .fix_name: zVxworks_Ioctl_MacroName, .file_list: zVxworks_Ioctl_MacroList, |
| 12781 | .papz_machs: apzVxworks_Ioctl_MacroMachs, |
| 12782 | VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12783 | aVxworks_Ioctl_MacroTests, .patch_args: apzVxworks_Ioctl_MacroPatch, .unused: 0 }, |
| 12784 | |
| 12785 | { .fix_name: zVxworks_Math_H_Fp_C99Name, .file_list: zVxworks_Math_H_Fp_C99List, |
| 12786 | .papz_machs: apzVxworks_Math_H_Fp_C99Machs, |
| 12787 | VXWORKS_MATH_H_FP_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12788 | .p_test_desc: aVxworks_Math_H_Fp_C99Tests, .patch_args: apzVxworks_Math_H_Fp_C99Patch, .unused: 0 }, |
| 12789 | |
| 12790 | { .fix_name: zVxworks_Posix_MkdirName, .file_list: zVxworks_Posix_MkdirList, |
| 12791 | .papz_machs: apzVxworks_Posix_MkdirMachs, |
| 12792 | VXWORKS_POSIX_MKDIR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12793 | aVxworks_Posix_MkdirTests, .patch_args: apzVxworks_Posix_MkdirPatch, .unused: 0 }, |
| 12794 | |
| 12795 | { .fix_name: zVxworks_Needs_VxtypesName, .file_list: zVxworks_Needs_VxtypesList, |
| 12796 | apzVxworks_Needs_VxtypesMachs, |
| 12797 | VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12798 | .p_test_desc: aVxworks_Needs_VxtypesTests, .patch_args: apzVxworks_Needs_VxtypesPatch, .unused: 0 }, |
| 12799 | |
| 12800 | { .fix_name: zVxworks_Needs_VxworksName, .file_list: zVxworks_Needs_VxworksList, |
| 12801 | apzVxworks_Needs_VxworksMachs, |
| 12802 | VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY, |
| 12803 | .p_test_desc: aVxworks_Needs_VxworksTests, .patch_args: apzVxworks_Needs_VxworksPatch, .unused: 0 }, |
| 12804 | |
| 12805 | { .fix_name: zVxworks_Next_YvalsName, .file_list: zVxworks_Next_YvalsList, |
| 12806 | .papz_machs: apzVxworks_Next_YvalsMachs, |
| 12807 | VXWORKS_NEXT_YVALS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12808 | .p_test_desc: aVxworks_Next_YvalsTests, .patch_args: apzVxworks_Next_YvalsPatch, .unused: 0 }, |
| 12809 | |
| 12810 | { .fix_name: zVxworks_RegsName, zVxworks_RegsList, |
| 12811 | .papz_machs: apzVxworks_RegsMachs, |
| 12812 | VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12813 | .p_test_desc: aVxworks_RegsTests, .patch_args: apzVxworks_RegsPatch, .unused: 0 }, |
| 12814 | |
| 12815 | { .fix_name: zVxworks_Posix_OpenName, .file_list: zVxworks_Posix_OpenList, |
| 12816 | .papz_machs: apzVxworks_Posix_OpenMachs, |
| 12817 | VXWORKS_POSIX_OPEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12818 | .p_test_desc: aVxworks_Posix_OpenTests, .patch_args: apzVxworks_Posix_OpenPatch, .unused: 0 }, |
| 12819 | |
| 12820 | { .fix_name: zVxworks_TimeName, .file_list: zVxworks_TimeList, |
| 12821 | apzVxworks_TimeMachs, |
| 12822 | VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12823 | .p_test_desc: aVxworks_TimeTests, .patch_args: apzVxworks_TimePatch, .unused: 0 }, |
| 12824 | |
| 12825 | { .fix_name: zVxworks_Write_ConstName, .file_list: zVxworks_Write_ConstList, |
| 12826 | .papz_machs: apzVxworks_Write_ConstMachs, |
| 12827 | VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12828 | aVxworks_Write_ConstTests, .patch_args: apzVxworks_Write_ConstPatch, .unused: 0 }, |
| 12829 | |
| 12830 | { .fix_name: zVxworks_Iolib_Include_UnistdName, .file_list: zVxworks_Iolib_Include_UnistdList, |
| 12831 | .papz_machs: apzVxworks_Iolib_Include_UnistdMachs, |
| 12832 | VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12833 | .p_test_desc: aVxworks_Iolib_Include_UnistdTests, .patch_args: apzVxworks_Iolib_Include_UnistdPatch, .unused: 0 }, |
| 12834 | |
| 12835 | { .fix_name: zVxworks_Time_H_SyslibName, .file_list: zVxworks_Time_H_SyslibList, |
| 12836 | .papz_machs: apzVxworks_Time_H_SyslibMachs, |
| 12837 | VXWORKS_TIME_H_SYSLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12838 | .p_test_desc: aVxworks_Time_H_SyslibTests, .patch_args: apzVxworks_Time_H_SyslibPatch, .unused: 0 }, |
| 12839 | |
| 12840 | { .fix_name: zX11_ClassName, .file_list: zX11_ClassList, |
| 12841 | apzX11_ClassMachs, |
| 12842 | X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12843 | .p_test_desc: aX11_ClassTests, .patch_args: apzX11_ClassPatch, .unused: 0 }, |
| 12844 | |
| 12845 | { .fix_name: zX11_Class_UsageName, .file_list: zX11_Class_UsageList, |
| 12846 | apzX11_Class_UsageMachs, |
| 12847 | X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12848 | .p_test_desc: aX11_Class_UsageTests, .patch_args: apzX11_Class_UsagePatch, .unused: 0 }, |
| 12849 | |
| 12850 | { .fix_name: zX11_NewName, .file_list: zX11_NewList, |
| 12851 | apzX11_NewMachs, |
| 12852 | X11_NEW_TEST_CT, FD_MACH_ONLY, |
| 12853 | .p_test_desc: aX11_NewTests, .patch_args: apzX11_NewPatch, .unused: 0 }, |
| 12854 | |
| 12855 | { .fix_name: zX11_SprintfName, .file_list: zX11_SprintfList, |
| 12856 | apzX11_SprintfMachs, |
| 12857 | X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
| 12858 | .p_test_desc: aX11_SprintfTests, .patch_args: apzX11_SprintfPatch, .unused: 0 } |
| 12859 | }; |
| 12860 | |