fixincl.x revision 1.1.1.12
1/* -*- buffer-read-only: t -*- vi: set ro: 2 * 3 * DO NOT EDIT THIS FILE (fixincl.x) 4 * 5 * It has been AutoGen-ed August 29, 2019 at 12:25:44 AM by AutoGen 5.17.4 6 * From the definitions inclhack.def 7 * and the template file fixincl 8 */ 9/* DO NOT SVN-MERGE THIS FILE, EITHER Thu Aug 29 00:25:44 BST 2019 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 253 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 42static char const sed_cmd_z[] = SED_PROGRAM; 43 44/* * * * * * * * * * * * * * * * * * * * * * * * * * 45 * 46 * Description of Aab_Aix_Stdio fix 47 */ 48tSCC zAab_Aix_StdioName[] = 49 "AAB_aix_stdio"; 50 51/* 52 * File name selection pattern 53 */ 54tSCC zAab_Aix_StdioList[] = 55 "stdio.h\0"; 56/* 57 * Machine/OS name selection pattern 58 */ 59tSCC* apzAab_Aix_StdioMachs[] = { 60 "*-*-aix*", 61 (const char*)NULL }; 62 63/* 64 * content selection pattern - do fix if pattern found 65 */ 66tSCC zAab_Aix_StdioSelect0[] = 67 "define fopen fopen64"; 68 69#define AAB_AIX_STDIO_TEST_CT 1 70static tTestDesc aAab_Aix_StdioTests[] = { 71 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, }; 72 73/* 74 * Fix Command Arguments for Aab_Aix_Stdio 75 */ 76static 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\ 90extern \"C\" {\n\ 91extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\ 92extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\ 93extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\ 94extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\ 95extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\ 96extern 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 */ 106tSCC zAab_Aix_FcntlName[] = 107 "AAB_aix_fcntl"; 108 109/* 110 * File name selection pattern 111 */ 112tSCC zAab_Aix_FcntlList[] = 113 "fcntl.h\0"; 114/* 115 * Machine/OS name selection pattern 116 */ 117tSCC* apzAab_Aix_FcntlMachs[] = { 118 "*-*-aix*", 119 (const char*)NULL }; 120 121/* 122 * content selection pattern - do fix if pattern found 123 */ 124tSCC zAab_Aix_FcntlSelect0[] = 125 "define open[ \t]open64"; 126 127#define AAB_AIX_FCNTL_TEST_CT 1 128static tTestDesc aAab_Aix_FcntlTests[] = { 129 { TT_EGREP, zAab_Aix_FcntlSelect0, (regex_t*)NULL }, }; 130 131/* 132 * Fix Command Arguments for Aab_Aix_Fcntl 133 */ 134static 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\ 145extern \"C\" {\n\ 146extern int open(const char *, int, ...) __asm__(\"open64\");\n\ 147extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\ 148#if (_XOPEN_SOURCE >= 700)\n\ 149extern 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 */ 160tSCC zAab_Darwin7_9_Long_Double_FuncsName[] = 161 "AAB_darwin7_9_long_double_funcs"; 162 163/* 164 * File name selection pattern 165 */ 166tSCC zAab_Darwin7_9_Long_Double_FuncsList[] = 167 "architecture/ppc/math.h\0"; 168/* 169 * Machine/OS name selection pattern 170 */ 171tSCC* 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 */ 178tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] = 179 "powl"; 180 181#define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1 182static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = { 183 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, }; 184 185/* 186 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs 187 */ 188static 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 */ 274tSCC zDarwin_Api_AvailabilityName[] = 275 "darwin_api_availability"; 276 277/* 278 * File name selection pattern 279 */ 280tSCC zDarwin_Api_AvailabilityList[] = 281 "os/availability.h\0"; 282/* 283 * Machine/OS name selection pattern 284 */ 285tSCC* apzDarwin_Api_AvailabilityMachs[] = { 286 "*-*-darwin*", 287 (const char*)NULL }; 288 289/* 290 * content selection pattern - do fix if pattern found 291 */ 292tSCC 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 */ 301tSCC zDarwin_Api_AvailabilityBypass0[] = 302 "__IPHONE_OS_VERSION_MIN_REQUIRED"; 303 304#define DARWIN_API_AVAILABILITY_TEST_CT 2 305static tTestDesc aDarwin_Api_AvailabilityTests[] = { 306 { TT_NEGREP, zDarwin_Api_AvailabilityBypass0, (regex_t*)NULL }, 307 { TT_EGREP, zDarwin_Api_AvailabilitySelect0, (regex_t*)NULL }, }; 308 309/* 310 * Fix Command Arguments for Darwin_Api_Availability 311 */ 312static 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 */ 324tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] = 325 "AAB_fd_zero_asm_posix_types_h"; 326 327/* 328 * File name selection pattern 329 */ 330tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] = 331 "asm/posix_types.h\0"; 332/* 333 * Machine/OS name selection pattern 334 */ 335tSCC* 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 */ 342tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = 343 "} while"; 344tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] = 345 "x86_64"; 346tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] = 347 "posix_types_64"; 348 349#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3 350static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { 351 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, 352 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, 353 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, }; 354 355/* 356 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H 357 */ 358static 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 */ 383tSCC zAab_Fd_Zero_Gnu_Types_HName[] = 384 "AAB_fd_zero_gnu_types_h"; 385 386/* 387 * File name selection pattern 388 */ 389tSCC zAab_Fd_Zero_Gnu_Types_HList[] = 390 "gnu/types.h\0"; 391/* 392 * Machine/OS name selection pattern 393 */ 394tSCC* 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 */ 403static 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 */ 427tSCC zAab_Fd_Zero_Selectbits_HName[] = 428 "AAB_fd_zero_selectbits_h"; 429 430/* 431 * File name selection pattern 432 */ 433tSCC zAab_Fd_Zero_Selectbits_HList[] = 434 "selectbits.h\0"; 435/* 436 * Machine/OS name selection pattern 437 */ 438tSCC* 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 */ 447static 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 */ 475tSCC zAab_Solaris_Sys_Varargs_HName[] = 476 "AAB_solaris_sys_varargs_h"; 477 478/* 479 * File name selection pattern 480 */ 481tSCC zAab_Solaris_Sys_Varargs_HList[] = 482 "sys/varargs.h\0"; 483/* 484 * Machine/OS name selection pattern 485 */ 486tSCC* 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 */ 495static 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 */ 507tSCC zAab_Sun_MemcpyName[] = 508 "AAB_sun_memcpy"; 509 510/* 511 * File name selection pattern 512 */ 513tSCC 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 */ 523tSCC 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 527static tTestDesc aAab_Sun_MemcpyTests[] = { 528 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, }; 529 530/* 531 * Fix Command Arguments for Aab_Sun_Memcpy 532 */ 533static 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 */ 556tSCC zAab_Vxworks_AssertName[] = 557 "AAB_vxworks_assert"; 558 559/* 560 * File name selection pattern 561 */ 562tSCC zAab_Vxworks_AssertList[] = 563 "assert.h\0"; 564/* 565 * Machine/OS name selection pattern 566 */ 567tSCC* 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 */ 576static const char* apzAab_Vxworks_AssertPatch[] = { 577"#ifndef _ASSERT_H\n\ 578#define _ASSERT_H\n\n\ 579#ifdef assert\n\ 580#undef assert\n\ 581#endif\n\n\ 582#if defined(__STDC__) || defined(__cplusplus)\n\ 583extern void __assert (const char*);\n\ 584#else\n\ 585extern void __assert ();\n\ 586#endif\n\n\ 587#ifdef NDEBUG\n\ 588#define assert(ign) ((void)0)\n\ 589#else\n\n\ 590#define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\ 591#define ASSERT_STRINGIFY_HELPER(str) #str\n\n\ 592#define assert(test) ((void) \\\n\ 593 ((test) ? ((void)0) : \\\n\ 594 __assert(\"Assertion failed: \" ASSERT_STRINGIFY(test) \", file \" \\\n\ 595 __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\ 596#endif\n\n\ 597#endif", 598 (char*)NULL }; 599 600/* * * * * * * * * * * * * * * * * * * * * * * * * * 601 * 602 * Description of Aab_Vxworks_Regs_Vxtypes fix 603 */ 604tSCC zAab_Vxworks_Regs_VxtypesName[] = 605 "AAB_vxworks_regs_vxtypes"; 606 607/* 608 * File name selection pattern 609 */ 610tSCC zAab_Vxworks_Regs_VxtypesList[] = 611 "regs.h\0"; 612/* 613 * Machine/OS name selection pattern 614 */ 615tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = { 616 "*-*-vxworks*", 617 (const char*)NULL }; 618#define AAB_VXWORKS_REGS_VXTYPES_TEST_CT 0 619#define aAab_Vxworks_Regs_VxtypesTests (tTestDesc*)NULL 620 621/* 622 * Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes 623 */ 624static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = { 625"#ifndef _REGS_H\n\ 626#define _REGS_H\n\ 627#include <types/vxTypesOld.h>\n\ 628#include_next <arch/../regs.h>\n\ 629#endif", 630 (char*)NULL }; 631 632/* * * * * * * * * * * * * * * * * * * * * * * * * * 633 * 634 * Description of Aab_Vxworks_Stdint fix 635 */ 636tSCC zAab_Vxworks_StdintName[] = 637 "AAB_vxworks_stdint"; 638 639/* 640 * File name selection pattern 641 */ 642tSCC zAab_Vxworks_StdintList[] = 643 "stdint.h\0"; 644/* 645 * Machine/OS name selection pattern 646 */ 647tSCC* apzAab_Vxworks_StdintMachs[] = { 648 "*-*-vxworks*", 649 (const char*)NULL }; 650#define AAB_VXWORKS_STDINT_TEST_CT 0 651#define aAab_Vxworks_StdintTests (tTestDesc*)NULL 652 653/* 654 * Fix Command Arguments for Aab_Vxworks_Stdint 655 */ 656static const char* apzAab_Vxworks_StdintPatch[] = { 657"#ifndef _STDINT_H\n\ 658#define _STDINT_H\n\ 659/* get int*_t, uint*_t */\n\ 660#include <types/vxTypes.h>\n\n\ 661/* get legacy vxworks types for compatibility */\n\ 662#include <types/vxTypesOld.h>\n\n\ 663typedef long intptr_t;\n\ 664typedef unsigned long uintptr_t;\n\n\ 665typedef int64_t intmax_t;\n\ 666typedef uint64_t uintmax_t;\n\n\ 667typedef int8_t int_least8_t;\n\ 668typedef int16_t int_least16_t;\n\ 669typedef int32_t int_least32_t;\n\ 670typedef int64_t int_least64_t;\n\n\ 671typedef uint8_t uint_least8_t;\n\ 672typedef uint16_t uint_least16_t;\n\ 673typedef uint32_t uint_least32_t;\n\ 674typedef uint64_t uint_least64_t;\n\n\ 675typedef int8_t int_fast8_t;\n\ 676typedef int int_fast16_t;\n\ 677typedef int32_t int_fast32_t;\n\ 678typedef int64_t int_fast64_t;\n\n\ 679typedef uint8_t uint_fast8_t;\n\ 680typedef unsigned int uint_fast16_t;\n\ 681typedef uint32_t uint_fast32_t;\n\ 682typedef uint64_t uint_fast64_t;\n\n\ 683/* Ranges */\n\ 684#define UINT8_MAX (~(uint8_t)0)\n\ 685#define UINT8_MIN 0\n\ 686#define UINT16_MAX (~(uint16_t)0)\n\ 687#define UINT16_MIN 0\n\ 688#define UINT32_MAX (~(uint32_t)0)\n\ 689#define UINT32_MIN 0\n\ 690#define UINT64_MAX (~(uint64_t)0)\n\ 691#define UINT64_MIN 0\n\n\ 692#define UINTPTR_MAX (~(uintptr_t)0)\n\ 693#define UINTPTR_MIN 0\n\n\ 694/* Need to do int_fast16_t as well, as type\n\ 695 size may be architecture dependent */\n\ 696#define UINT_FAST16_MAX (~(uint_fast16_t)0)\n\ 697#define UINT_FAST16_MAX 0\n\n\ 698#define INT8_MAX (UINT8_MAX>>1)\n\ 699#define INT8_MIN (INT8_MAX+1)\n\ 700#define INT16_MAX (UINT16_MAX>>1)\n\ 701#define INT16_MIN (INT16_MAX+1)\n\ 702#define INT32_MAX (UINT32_MAX>>1)\n\ 703#define INT32_MIN (INT32_MAX+1)\n\ 704#define INT64_MAX (UINT64_MAX>>1)\n\ 705#define INT64_MIN (INT64_MAX+1)\n\n\ 706#define INTPTR_MAX (UINTPTR_MAX>>1)\n\ 707#define INTPTR_MIN (INTPTR_MAX+1)\t\n\n\ 708#define INT_FAST16_MAX (UINT_FAST16_MAX>>1)\n\ 709#define INT_FAST16_MIN (INT_FAST16_MAX+1)\n\n\ 710/* now define equiv. constants */\n\ 711#define UINT_FAST8_MAX UINT8_MAX\n\ 712#define UINT_FAST8_MIN UINT_FAST8_MIN\n\ 713#define INT_FAST8_MAX INT8_MAX\n\ 714#define INT_FAST8_MIN INT8_MIN\n\ 715#define UINT_FAST32_MAX UINT32_MAX\n\ 716#define UINT_FAST32_MIN UINT32_MIN\n\ 717#define INT_FAST32_MAX INT32_MAX\n\ 718#define INT_FAST32_MIN INT32_MIN\n\ 719#define UINT_FAST64_MAX UINT64_MAX\n\ 720#define UINT_FAST64_MIN UINT64_MIN\n\ 721#define INT_FAST64_MAX INT64_MAX\n\ 722#define INT_FAST64_MIN INT64_MIN\n\n\ 723#define UINT_LEAST8_MAX UINT8_MAX\n\ 724#define UINT_LEAST8_MIN UINT8_MIN\n\ 725#define INT_LEAST8_MAX INT8_MAX\n\ 726#define INT_LEAST8_MIN INT8_MIN\n\ 727#define UINT_LEAST16_MAX UINT16_MAX\n\ 728#define UINT_LEAST16_MIN UINT16_MIN\n\ 729#define INT_LEAST16_MAX INT16_MAX\n\ 730#define INT_LEAST16_MIN INT16_MIN\n\ 731#define UINT_LEAST32_MAX UINT32_MAX\n\ 732#define UINT_LEAST32_MIN UINT32_MIN\n\ 733#define INT_LEAST32_MAX INT32_MAX\n\ 734#define INT_LEAST32_MIN INT32_MIN\n\ 735#define UINT_LEAST64_MAX UINT64_MAX\n\ 736#define UINT_LEAST64_MIN UINT64_MIN\n\ 737#define INT_LEAST64_MAX INT64_MAX\n\ 738#define INT_LEAST64_MIN INT64_MIN\n\n\ 739#define UINTMAX_MAX UINT64_MAX\n\ 740#define UINTMAX_MIN UINT64_MIN\n\ 741#define INTMAX_MAX INT64_MAX\n\ 742#define INTMAX_MIN INT64_MIN\n\n\ 743#endif", 744 (char*)NULL }; 745 746/* * * * * * * * * * * * * * * * * * * * * * * * * * 747 * 748 * Description of Aab_Vxworks_Unistd fix 749 */ 750tSCC zAab_Vxworks_UnistdName[] = 751 "AAB_vxworks_unistd"; 752 753/* 754 * File name selection pattern 755 */ 756tSCC zAab_Vxworks_UnistdList[] = 757 "unistd.h\0"; 758/* 759 * Machine/OS name selection pattern 760 */ 761tSCC* apzAab_Vxworks_UnistdMachs[] = { 762 "*-*-vxworks*", 763 (const char*)NULL }; 764#define AAB_VXWORKS_UNISTD_TEST_CT 0 765#define aAab_Vxworks_UnistdTests (tTestDesc*)NULL 766 767/* 768 * Fix Command Arguments for Aab_Vxworks_Unistd 769 */ 770static const char* apzAab_Vxworks_UnistdPatch[] = { 771"#ifndef _UNISTD_H\n\ 772#define _UNISTD_H\n\ 773#include_next <unistd.h>\n\ 774#include <ioLib.h>\n\ 775#ifndef STDIN_FILENO\n\ 776#define STDIN_FILENO 0\n\ 777#endif\n\ 778#ifndef STDOUT_FILENO\n\ 779#define STDOUT_FILENO 1\n\ 780#endif\n\ 781#ifndef STDERR_FILENO\n\ 782#define STDERR_FILENO 2\n\ 783#endif\n\ 784#endif /* _UNISTD_H */", 785 (char*)NULL }; 786 787/* * * * * * * * * * * * * * * * * * * * * * * * * * 788 * 789 * Description of Aix_Assert fix 790 */ 791tSCC zAix_AssertName[] = 792 "aix_assert"; 793 794/* 795 * File name selection pattern 796 */ 797tSCC zAix_AssertList[] = 798 "assert.h\0"; 799/* 800 * Machine/OS name selection pattern 801 */ 802tSCC* apzAix_AssertMachs[] = { 803 "*-*-aix*", 804 (const char*)NULL }; 805 806/* 807 * content selection pattern - do fix if pattern found 808 */ 809tSCC zAix_AssertSelect0[] = 810 "#define[ \t]static_assert[ \t]_Static_assert"; 811 812#define AIX_ASSERT_TEST_CT 1 813static tTestDesc aAix_AssertTests[] = { 814 { TT_EGREP, zAix_AssertSelect0, (regex_t*)NULL }, }; 815 816/* 817 * Fix Command Arguments for Aix_Assert 818 */ 819static const char* apzAix_AssertPatch[] = { 820 "format", 821 "#ifndef __cplusplus\n\ 822%0\n\ 823#endif", 824 (char*)NULL }; 825 826/* * * * * * * * * * * * * * * * * * * * * * * * * * 827 * 828 * Description of Aix_Complex fix 829 */ 830tSCC zAix_ComplexName[] = 831 "aix_complex"; 832 833/* 834 * File name selection pattern 835 */ 836tSCC zAix_ComplexList[] = 837 "complex.h\0"; 838/* 839 * Machine/OS name selection pattern 840 */ 841tSCC* apzAix_ComplexMachs[] = { 842 "*-*-aix*", 843 (const char*)NULL }; 844 845/* 846 * content selection pattern - do fix if pattern found 847 */ 848tSCC zAix_ComplexSelect0[] = 849 "#define[ \t]_Complex_I[ \t]__I"; 850 851#define AIX_COMPLEX_TEST_CT 1 852static tTestDesc aAix_ComplexTests[] = { 853 { TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, }; 854 855/* 856 * Fix Command Arguments for Aix_Complex 857 */ 858static const char* apzAix_ComplexPatch[] = { 859 "format", 860 "#define _Complex_I (__extension__ 1.0iF)", 861 (char*)NULL }; 862 863/* * * * * * * * * * * * * * * * * * * * * * * * * * 864 * 865 * Description of Aix_Externc fix 866 */ 867tSCC zAix_ExterncName[] = 868 "aix_externc"; 869 870/* 871 * File name selection pattern 872 */ 873tSCC zAix_ExterncList[] = 874 "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0"; 875/* 876 * Machine/OS name selection pattern 877 */ 878tSCC* apzAix_ExterncMachs[] = { 879 "*-*-aix*", 880 (const char*)NULL }; 881 882/* 883 * content bypass pattern - skip fix if pattern found 884 */ 885tSCC zAix_ExterncBypass0[] = 886 "extern \"C\""; 887 888#define AIX_EXTERNC_TEST_CT 1 889static tTestDesc aAix_ExterncTests[] = { 890 { TT_NEGREP, zAix_ExterncBypass0, (regex_t*)NULL }, }; 891 892/* 893 * Fix Command Arguments for Aix_Externc 894 */ 895static const char* apzAix_ExterncPatch[] = { 896 "wrap", 897 "#ifdef __cplusplus\n\ 898extern \"C\" {\n\ 899#endif\n", 900 "#ifdef __cplusplus\n\ 901}\n\ 902#endif\n", 903 (char*)NULL }; 904 905/* * * * * * * * * * * * * * * * * * * * * * * * * * 906 * 907 * Description of Aix_Externcpp1 fix 908 */ 909tSCC zAix_Externcpp1Name[] = 910 "aix_externcpp1"; 911 912/* 913 * File name selection pattern 914 */ 915tSCC zAix_Externcpp1List[] = 916 "sys/socket.h\0"; 917/* 918 * Machine/OS name selection pattern 919 */ 920tSCC* apzAix_Externcpp1Machs[] = { 921 "*-*-aix*", 922 (const char*)NULL }; 923 924/* 925 * content selection pattern - do fix if pattern found 926 */ 927tSCC zAix_Externcpp1Select0[] = 928 "#ifdef __cplusplus"; 929 930#define AIX_EXTERNCPP1_TEST_CT 1 931static tTestDesc aAix_Externcpp1Tests[] = { 932 { TT_EGREP, zAix_Externcpp1Select0, (regex_t*)NULL }, }; 933 934/* 935 * Fix Command Arguments for Aix_Externcpp1 936 */ 937static const char* apzAix_Externcpp1Patch[] = { 938 "format", 939 "#ifdef __cplusplus\n\ 940extern \"C++\" {", 941 (char*)NULL }; 942 943/* * * * * * * * * * * * * * * * * * * * * * * * * * 944 * 945 * Description of Aix_Externcpp2 fix 946 */ 947tSCC zAix_Externcpp2Name[] = 948 "aix_externcpp2"; 949 950/* 951 * File name selection pattern 952 */ 953tSCC zAix_Externcpp2List[] = 954 "sys/socket.h\0"; 955/* 956 * Machine/OS name selection pattern 957 */ 958tSCC* apzAix_Externcpp2Machs[] = { 959 "*-*-aix*", 960 (const char*)NULL }; 961 962/* 963 * content selection pattern - do fix if pattern found 964 */ 965tSCC zAix_Externcpp2Select0[] = 966 "#else /\\* __cplusplus \\*/"; 967 968#define AIX_EXTERNCPP2_TEST_CT 1 969static tTestDesc aAix_Externcpp2Tests[] = { 970 { TT_EGREP, zAix_Externcpp2Select0, (regex_t*)NULL }, }; 971 972/* 973 * Fix Command Arguments for Aix_Externcpp2 974 */ 975static const char* apzAix_Externcpp2Patch[] = { 976 "format", 977 "} /* extern \"C++\" */\n\ 978#else /* __cplusplus */", 979 (char*)NULL }; 980 981/* * * * * * * * * * * * * * * * * * * * * * * * * * 982 * 983 * Description of Aix_Malloc fix 984 */ 985tSCC zAix_MallocName[] = 986 "aix_malloc"; 987 988/* 989 * File name selection pattern 990 */ 991tSCC zAix_MallocList[] = 992 "malloc.h\0"; 993/* 994 * Machine/OS name selection pattern 995 */ 996tSCC* apzAix_MallocMachs[] = { 997 "*-*-aix*", 998 (const char*)NULL }; 999 1000/* 1001 * content selection pattern - do fix if pattern found 1002 */ 1003tSCC zAix_MallocSelect0[] = 1004 "#ifdef __cplusplus"; 1005 1006#define AIX_MALLOC_TEST_CT 1 1007static tTestDesc aAix_MallocTests[] = { 1008 { TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, }; 1009 1010/* 1011 * Fix Command Arguments for Aix_Malloc 1012 */ 1013static const char* apzAix_MallocPatch[] = { 1014 "format", 1015 "#if (defined(__cplusplus) && defined(__IBMCPP__))", 1016 (char*)NULL }; 1017 1018/* * * * * * * * * * * * * * * * * * * * * * * * * * 1019 * 1020 * Description of Aix_Net_If_Arp fix 1021 */ 1022tSCC zAix_Net_If_ArpName[] = 1023 "aix_net_if_arp"; 1024 1025/* 1026 * File name selection pattern 1027 */ 1028tSCC zAix_Net_If_ArpList[] = 1029 "net/if_arp.h\0"; 1030/* 1031 * Machine/OS name selection pattern 1032 */ 1033tSCC* apzAix_Net_If_ArpMachs[] = { 1034 "*-*-aix*", 1035 (const char*)NULL }; 1036 1037/* 1038 * content selection pattern - do fix if pattern found 1039 */ 1040tSCC zAix_Net_If_ArpSelect0[] = 1041 "^struct fc_softc \\{"; 1042 1043#define AIX_NET_IF_ARP_TEST_CT 1 1044static tTestDesc aAix_Net_If_ArpTests[] = { 1045 { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, }; 1046 1047/* 1048 * Fix Command Arguments for Aix_Net_If_Arp 1049 */ 1050static const char* apzAix_Net_If_ArpPatch[] = { 1051 "format", 1052 "typedef struct _fc_softc {", 1053 (char*)NULL }; 1054 1055/* * * * * * * * * * * * * * * * * * * * * * * * * * 1056 * 1057 * Description of Aix_Null fix 1058 */ 1059tSCC zAix_NullName[] = 1060 "aix_null"; 1061 1062/* 1063 * File name selection pattern 1064 */ 1065tSCC zAix_NullList[] = 1066 "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"; 1067/* 1068 * Machine/OS name selection pattern 1069 */ 1070tSCC* apzAix_NullMachs[] = { 1071 "*-*-aix*", 1072 (const char*)NULL }; 1073 1074/* 1075 * content selection pattern - do fix if pattern found 1076 */ 1077tSCC zAix_NullSelect0[] = 1078 "#define[ \t]+NULL[ \t]+\\(*0L*\\)*"; 1079 1080/* 1081 * content bypass pattern - skip fix if pattern found 1082 */ 1083tSCC zAix_NullBypass0[] = 1084 "__null"; 1085 1086#define AIX_NULL_TEST_CT 2 1087static tTestDesc aAix_NullTests[] = { 1088 { TT_NEGREP, zAix_NullBypass0, (regex_t*)NULL }, 1089 { TT_EGREP, zAix_NullSelect0, (regex_t*)NULL }, }; 1090 1091/* 1092 * Fix Command Arguments for Aix_Null 1093 */ 1094static const char* apzAix_NullPatch[] = { 1095 "format", 1096 "#ifndef NULL\n\ 1097#ifdef __cplusplus\n\ 1098#ifdef __GNUG__\n\ 1099#define NULL __null\n\ 1100#else /* ! __GNUG__ */\n\ 1101#define NULL 0L\n\ 1102#endif /* __GNUG__ */\n\ 1103#else /* ! __cplusplus */\n\ 1104#define NULL ((void *)0)\n\ 1105#endif /* __cplusplus */\n\ 1106#endif /* !NULL */", 1107 (char*)NULL }; 1108 1109/* * * * * * * * * * * * * * * * * * * * * * * * * * 1110 * 1111 * Description of Aix_Once_Init_1 fix 1112 */ 1113tSCC zAix_Once_Init_1Name[] = 1114 "aix_once_init_1"; 1115 1116/* 1117 * File name selection pattern 1118 */ 1119tSCC zAix_Once_Init_1List[] = 1120 "pthread.h\0"; 1121/* 1122 * Machine/OS name selection pattern 1123 */ 1124tSCC* apzAix_Once_Init_1Machs[] = { 1125 "*-*-aix*", 1126 (const char*)NULL }; 1127 1128/* 1129 * content selection pattern - do fix if pattern found 1130 */ 1131tSCC zAix_Once_Init_1Select0[] = 1132 "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\ 1133\\{ \\\\\n"; 1134 1135#define AIX_ONCE_INIT_1_TEST_CT 1 1136static tTestDesc aAix_Once_Init_1Tests[] = { 1137 { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, }; 1138 1139/* 1140 * Fix Command Arguments for Aix_Once_Init_1 1141 */ 1142static const char* apzAix_Once_Init_1Patch[] = { 1143 "format", 1144 "#define PTHREAD_ONCE_INIT \\\n\ 1145{{ \\\n", 1146 (char*)NULL }; 1147 1148/* * * * * * * * * * * * * * * * * * * * * * * * * * 1149 * 1150 * Description of Aix_Once_Init_2 fix 1151 */ 1152tSCC zAix_Once_Init_2Name[] = 1153 "aix_once_init_2"; 1154 1155/* 1156 * File name selection pattern 1157 */ 1158tSCC zAix_Once_Init_2List[] = 1159 "pthread.h\0"; 1160/* 1161 * Machine/OS name selection pattern 1162 */ 1163tSCC* apzAix_Once_Init_2Machs[] = { 1164 "*-*-aix*", 1165 (const char*)NULL }; 1166 1167/* 1168 * content selection pattern - do fix if pattern found 1169 */ 1170tSCC zAix_Once_Init_2Select0[] = 1171 "[ \t]0 \\\\\n\ 1172\\}\n"; 1173 1174#define AIX_ONCE_INIT_2_TEST_CT 1 1175static tTestDesc aAix_Once_Init_2Tests[] = { 1176 { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, }; 1177 1178/* 1179 * Fix Command Arguments for Aix_Once_Init_2 1180 */ 1181static const char* apzAix_Once_Init_2Patch[] = { 1182 "format", 1183 "\t0 \\\n\ 1184}}\n", 1185 (char*)NULL }; 1186 1187/* * * * * * * * * * * * * * * * * * * * * * * * * * 1188 * 1189 * Description of Aix_Mutex_Initializer_1 fix 1190 */ 1191tSCC zAix_Mutex_Initializer_1Name[] = 1192 "aix_mutex_initializer_1"; 1193 1194/* 1195 * File name selection pattern 1196 */ 1197tSCC zAix_Mutex_Initializer_1List[] = 1198 "pthread.h\0"; 1199/* 1200 * Machine/OS name selection pattern 1201 */ 1202tSCC* apzAix_Mutex_Initializer_1Machs[] = { 1203 "*-*-aix*", 1204 (const char*)NULL }; 1205 1206/* 1207 * content selection pattern - do fix if pattern found 1208 */ 1209tSCC zAix_Mutex_Initializer_1Select0[] = 1210 "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\ 1211\\{ \\\\\n"; 1212 1213#define AIX_MUTEX_INITIALIZER_1_TEST_CT 1 1214static tTestDesc aAix_Mutex_Initializer_1Tests[] = { 1215 { TT_EGREP, zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, }; 1216 1217/* 1218 * Fix Command Arguments for Aix_Mutex_Initializer_1 1219 */ 1220static const char* apzAix_Mutex_Initializer_1Patch[] = { 1221 "format", 1222 "#define PTHREAD_MUTEX_INITIALIZER \\\n\ 1223{{ \\\n", 1224 (char*)NULL }; 1225 1226/* * * * * * * * * * * * * * * * * * * * * * * * * * 1227 * 1228 * Description of Aix_Cond_Initializer_1 fix 1229 */ 1230tSCC zAix_Cond_Initializer_1Name[] = 1231 "aix_cond_initializer_1"; 1232 1233/* 1234 * File name selection pattern 1235 */ 1236tSCC zAix_Cond_Initializer_1List[] = 1237 "pthread.h\0"; 1238/* 1239 * Machine/OS name selection pattern 1240 */ 1241tSCC* apzAix_Cond_Initializer_1Machs[] = { 1242 "*-*-aix*", 1243 (const char*)NULL }; 1244 1245/* 1246 * content selection pattern - do fix if pattern found 1247 */ 1248tSCC zAix_Cond_Initializer_1Select0[] = 1249 "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\ 1250\\{ \\\\\n"; 1251 1252#define AIX_COND_INITIALIZER_1_TEST_CT 1 1253static tTestDesc aAix_Cond_Initializer_1Tests[] = { 1254 { TT_EGREP, zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, }; 1255 1256/* 1257 * Fix Command Arguments for Aix_Cond_Initializer_1 1258 */ 1259static const char* apzAix_Cond_Initializer_1Patch[] = { 1260 "format", 1261 "#define PTHREAD_COND_INITIALIZER \\\n\ 1262{{ \\\n", 1263 (char*)NULL }; 1264 1265/* * * * * * * * * * * * * * * * * * * * * * * * * * 1266 * 1267 * Description of Aix_Rwlock_Initializer_1 fix 1268 */ 1269tSCC zAix_Rwlock_Initializer_1Name[] = 1270 "aix_rwlock_initializer_1"; 1271 1272/* 1273 * File name selection pattern 1274 */ 1275tSCC zAix_Rwlock_Initializer_1List[] = 1276 "pthread.h\0"; 1277/* 1278 * Machine/OS name selection pattern 1279 */ 1280tSCC* apzAix_Rwlock_Initializer_1Machs[] = { 1281 "*-*-aix*", 1282 (const char*)NULL }; 1283 1284/* 1285 * content selection pattern - do fix if pattern found 1286 */ 1287tSCC zAix_Rwlock_Initializer_1Select0[] = 1288 "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\ 1289\\{ \\\\\n"; 1290 1291#define AIX_RWLOCK_INITIALIZER_1_TEST_CT 1 1292static tTestDesc aAix_Rwlock_Initializer_1Tests[] = { 1293 { TT_EGREP, zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, }; 1294 1295/* 1296 * Fix Command Arguments for Aix_Rwlock_Initializer_1 1297 */ 1298static const char* apzAix_Rwlock_Initializer_1Patch[] = { 1299 "format", 1300 "#define PTHREAD_RWLOCK_INITIALIZER \\\n\ 1301{{ \\\n", 1302 (char*)NULL }; 1303 1304/* * * * * * * * * * * * * * * * * * * * * * * * * * 1305 * 1306 * Description of Aix_Pthread fix 1307 */ 1308tSCC zAix_PthreadName[] = 1309 "aix_pthread"; 1310 1311/* 1312 * File name selection pattern 1313 */ 1314tSCC zAix_PthreadList[] = 1315 "pthread.h\0"; 1316/* 1317 * Machine/OS name selection pattern 1318 */ 1319#define apzAix_PthreadMachs (const char**)NULL 1320 1321/* 1322 * content selection pattern - do fix if pattern found 1323 */ 1324tSCC zAix_PthreadSelect0[] = 1325 "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\ 1326[^A-Za-z_0-9 \t\n\ 1327(])"; 1328 1329#define AIX_PTHREAD_TEST_CT 1 1330static tTestDesc aAix_PthreadTests[] = { 1331 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, }; 1332 1333/* 1334 * Fix Command Arguments for Aix_Pthread 1335 */ 1336static const char* apzAix_PthreadPatch[] = { 1337 "format", 1338 "%1 %2", 1339 (char*)NULL }; 1340 1341/* * * * * * * * * * * * * * * * * * * * * * * * * * 1342 * 1343 * Description of Aix_Stdint_1 fix 1344 */ 1345tSCC zAix_Stdint_1Name[] = 1346 "aix_stdint_1"; 1347 1348/* 1349 * File name selection pattern 1350 */ 1351tSCC zAix_Stdint_1List[] = 1352 "stdint-aix.h\0stdint.h\0"; 1353/* 1354 * Machine/OS name selection pattern 1355 */ 1356tSCC* apzAix_Stdint_1Machs[] = { 1357 "*-*-aix*", 1358 (const char*)NULL }; 1359 1360/* 1361 * content selection pattern - do fix if pattern found 1362 */ 1363tSCC zAix_Stdint_1Select0[] = 1364 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\ 1365#define[ \t]UINT16_MAX[ \t]\\(65535U\\)"; 1366 1367#define AIX_STDINT_1_TEST_CT 1 1368static tTestDesc aAix_Stdint_1Tests[] = { 1369 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, }; 1370 1371/* 1372 * Fix Command Arguments for Aix_Stdint_1 1373 */ 1374static const char* apzAix_Stdint_1Patch[] = { 1375 "format", 1376 "#define UINT8_MAX\t(255)\n\ 1377#define UINT16_MAX\t(65535)", 1378 (char*)NULL }; 1379 1380/* * * * * * * * * * * * * * * * * * * * * * * * * * 1381 * 1382 * Description of Aix_Stdint_2 fix 1383 */ 1384tSCC zAix_Stdint_2Name[] = 1385 "aix_stdint_2"; 1386 1387/* 1388 * File name selection pattern 1389 */ 1390tSCC zAix_Stdint_2List[] = 1391 "stdint-aix.h\0stdint.h\0"; 1392/* 1393 * Machine/OS name selection pattern 1394 */ 1395tSCC* apzAix_Stdint_2Machs[] = { 1396 "*-*-aix*", 1397 (const char*)NULL }; 1398 1399/* 1400 * content selection pattern - do fix if pattern found 1401 */ 1402tSCC zAix_Stdint_2Select0[] = 1403 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\ 1404#define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\ 1405#define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\ 1406#else\n\ 1407#define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\ 1408#define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\ 1409#define[ \t]UINTPTR_MAX[ \t]UINT32_MAX"; 1410 1411#define AIX_STDINT_2_TEST_CT 1 1412static tTestDesc aAix_Stdint_2Tests[] = { 1413 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, }; 1414 1415/* 1416 * Fix Command Arguments for Aix_Stdint_2 1417 */ 1418static const char* apzAix_Stdint_2Patch[] = { 1419 "format", 1420 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\ 1421#define INTPTR_MAX\t9223372036854775807L\n\ 1422#define UINTPTR_MAX\t18446744073709551615UL\n\ 1423#else\n\ 1424#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\ 1425#define INTPTR_MAX\t2147483647L\n\ 1426#define UINTPTR_MAX\t4294967295UL", 1427 (char*)NULL }; 1428 1429/* * * * * * * * * * * * * * * * * * * * * * * * * * 1430 * 1431 * Description of Aix_Stdint_3 fix 1432 */ 1433tSCC zAix_Stdint_3Name[] = 1434 "aix_stdint_3"; 1435 1436/* 1437 * File name selection pattern 1438 */ 1439tSCC zAix_Stdint_3List[] = 1440 "stdint-aix.h\0stdint.h\0"; 1441/* 1442 * Machine/OS name selection pattern 1443 */ 1444tSCC* apzAix_Stdint_3Machs[] = { 1445 "*-*-aix*", 1446 (const char*)NULL }; 1447 1448/* 1449 * content selection pattern - do fix if pattern found 1450 */ 1451tSCC zAix_Stdint_3Select0[] = 1452 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\ 1453#define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\ 1454#else\n\ 1455#define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\ 1456#define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX"; 1457 1458#define AIX_STDINT_3_TEST_CT 1 1459static tTestDesc aAix_Stdint_3Tests[] = { 1460 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, }; 1461 1462/* 1463 * Fix Command Arguments for Aix_Stdint_3 1464 */ 1465static const char* apzAix_Stdint_3Patch[] = { 1466 "format", 1467 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\ 1468#define PTRDIFF_MAX\t9223372036854775807L\n\ 1469#else\n\ 1470#define PTRDIFF_MIN\t(-2147483647L - 1)\n\ 1471#define PTRDIFF_MAX\t2147483647L", 1472 (char*)NULL }; 1473 1474/* * * * * * * * * * * * * * * * * * * * * * * * * * 1475 * 1476 * Description of Aix_Stdint_4 fix 1477 */ 1478tSCC zAix_Stdint_4Name[] = 1479 "aix_stdint_4"; 1480 1481/* 1482 * File name selection pattern 1483 */ 1484tSCC zAix_Stdint_4List[] = 1485 "stdint-aix.h\0stdint.h\0"; 1486/* 1487 * Machine/OS name selection pattern 1488 */ 1489tSCC* apzAix_Stdint_4Machs[] = { 1490 "*-*-aix*", 1491 (const char*)NULL }; 1492 1493/* 1494 * content selection pattern - do fix if pattern found 1495 */ 1496tSCC zAix_Stdint_4Select0[] = 1497 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\ 1498#else\n\ 1499#define[ \t]SIZE_MAX[ \t]*UINT32_MAX"; 1500 1501#define AIX_STDINT_4_TEST_CT 1 1502static tTestDesc aAix_Stdint_4Tests[] = { 1503 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, }; 1504 1505/* 1506 * Fix Command Arguments for Aix_Stdint_4 1507 */ 1508static const char* apzAix_Stdint_4Patch[] = { 1509 "format", 1510 "#define SIZE_MAX\t18446744073709551615UL\n\ 1511#else\n\ 1512#define SIZE_MAX\t4294967295UL", 1513 (char*)NULL }; 1514 1515/* * * * * * * * * * * * * * * * * * * * * * * * * * 1516 * 1517 * Description of Aix_Stdint_5 fix 1518 */ 1519tSCC zAix_Stdint_5Name[] = 1520 "aix_stdint_5"; 1521 1522/* 1523 * File name selection pattern 1524 */ 1525tSCC zAix_Stdint_5List[] = 1526 "stdint-aix.h\0stdint.h\0"; 1527/* 1528 * Machine/OS name selection pattern 1529 */ 1530tSCC* apzAix_Stdint_5Machs[] = { 1531 "*-*-aix*", 1532 (const char*)NULL }; 1533 1534/* 1535 * content selection pattern - do fix if pattern found 1536 */ 1537tSCC zAix_Stdint_5Select0[] = 1538 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\ 1539#define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)"; 1540 1541#define AIX_STDINT_5_TEST_CT 1 1542static tTestDesc aAix_Stdint_5Tests[] = { 1543 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, }; 1544 1545/* 1546 * Fix Command Arguments for Aix_Stdint_5 1547 */ 1548static const char* apzAix_Stdint_5Patch[] = { 1549 "format", 1550 "#define UINT8_C(c)\tc\n\ 1551#define UINT16_C(c)\tc", 1552 (char*)NULL }; 1553 1554/* * * * * * * * * * * * * * * * * * * * * * * * * * 1555 * 1556 * Description of Aix_Stdio_Inline fix 1557 */ 1558tSCC zAix_Stdio_InlineName[] = 1559 "aix_stdio_inline"; 1560 1561/* 1562 * File name selection pattern 1563 */ 1564tSCC zAix_Stdio_InlineList[] = 1565 "stdio.h\0"; 1566/* 1567 * Machine/OS name selection pattern 1568 */ 1569tSCC* apzAix_Stdio_InlineMachs[] = { 1570 "*-*-aix*", 1571 (const char*)NULL }; 1572 1573/* 1574 * content selection pattern - do fix if pattern found 1575 */ 1576tSCC zAix_Stdio_InlineSelect0[] = 1577 "#ifdef __cplusplus\\\n\ 1578}\\\n\ 1579\\\n\ 1580#ifdef ferror\\\n"; 1581 1582#define AIX_STDIO_INLINE_TEST_CT 1 1583static tTestDesc aAix_Stdio_InlineTests[] = { 1584 { TT_EGREP, zAix_Stdio_InlineSelect0, (regex_t*)NULL }, }; 1585 1586/* 1587 * Fix Command Arguments for Aix_Stdio_Inline 1588 */ 1589static const char* apzAix_Stdio_InlinePatch[] = { 1590 "format", 1591 "#ifdef __cplusplus\n\ 1592}\n\ 1593#endif\n\n\ 1594#if (defined(__cplusplus) && defined(__IBMCPP__))\n\ 1595#ifdef ferror\n", 1596 (char*)NULL }; 1597 1598/* * * * * * * * * * * * * * * * * * * * * * * * * * 1599 * 1600 * Description of Aix_Stdlib_Malloc fix 1601 */ 1602tSCC zAix_Stdlib_MallocName[] = 1603 "aix_stdlib_malloc"; 1604 1605/* 1606 * File name selection pattern 1607 */ 1608tSCC zAix_Stdlib_MallocList[] = 1609 "stdlib.h\0"; 1610/* 1611 * Machine/OS name selection pattern 1612 */ 1613tSCC* apzAix_Stdlib_MallocMachs[] = { 1614 "*-*-aix*", 1615 (const char*)NULL }; 1616 1617/* 1618 * content selection pattern - do fix if pattern found 1619 */ 1620tSCC zAix_Stdlib_MallocSelect0[] = 1621 "#define[ \t]+malloc[ \t]+__linux_malloc"; 1622 1623#define AIX_STDLIB_MALLOC_TEST_CT 1 1624static tTestDesc aAix_Stdlib_MallocTests[] = { 1625 { TT_EGREP, zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, }; 1626 1627/* 1628 * Fix Command Arguments for Aix_Stdlib_Malloc 1629 */ 1630static const char* apzAix_Stdlib_MallocPatch[] = { 1631 "format", 1632 "extern void *malloc(size_t) __asm__(\"__linux_malloc\");", 1633 (char*)NULL }; 1634 1635/* * * * * * * * * * * * * * * * * * * * * * * * * * 1636 * 1637 * Description of Aix_Stdlib_Realloc fix 1638 */ 1639tSCC zAix_Stdlib_ReallocName[] = 1640 "aix_stdlib_realloc"; 1641 1642/* 1643 * File name selection pattern 1644 */ 1645tSCC zAix_Stdlib_ReallocList[] = 1646 "stdlib.h\0"; 1647/* 1648 * Machine/OS name selection pattern 1649 */ 1650tSCC* apzAix_Stdlib_ReallocMachs[] = { 1651 "*-*-aix*", 1652 (const char*)NULL }; 1653 1654/* 1655 * content selection pattern - do fix if pattern found 1656 */ 1657tSCC zAix_Stdlib_ReallocSelect0[] = 1658 "#define[ \t]+realloc[ \t]+__linux_realloc"; 1659 1660#define AIX_STDLIB_REALLOC_TEST_CT 1 1661static tTestDesc aAix_Stdlib_ReallocTests[] = { 1662 { TT_EGREP, zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, }; 1663 1664/* 1665 * Fix Command Arguments for Aix_Stdlib_Realloc 1666 */ 1667static const char* apzAix_Stdlib_ReallocPatch[] = { 1668 "format", 1669 "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");", 1670 (char*)NULL }; 1671 1672/* * * * * * * * * * * * * * * * * * * * * * * * * * 1673 * 1674 * Description of Aix_Stdlib_Calloc fix 1675 */ 1676tSCC zAix_Stdlib_CallocName[] = 1677 "aix_stdlib_calloc"; 1678 1679/* 1680 * File name selection pattern 1681 */ 1682tSCC zAix_Stdlib_CallocList[] = 1683 "stdlib.h\0"; 1684/* 1685 * Machine/OS name selection pattern 1686 */ 1687tSCC* apzAix_Stdlib_CallocMachs[] = { 1688 "*-*-aix*", 1689 (const char*)NULL }; 1690 1691/* 1692 * content selection pattern - do fix if pattern found 1693 */ 1694tSCC zAix_Stdlib_CallocSelect0[] = 1695 "#define[ \t]+calloc[ \t]+__linux_calloc"; 1696 1697#define AIX_STDLIB_CALLOC_TEST_CT 1 1698static tTestDesc aAix_Stdlib_CallocTests[] = { 1699 { TT_EGREP, zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, }; 1700 1701/* 1702 * Fix Command Arguments for Aix_Stdlib_Calloc 1703 */ 1704static const char* apzAix_Stdlib_CallocPatch[] = { 1705 "format", 1706 "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");", 1707 (char*)NULL }; 1708 1709/* * * * * * * * * * * * * * * * * * * * * * * * * * 1710 * 1711 * Description of Aix_Stdlib_Valloc fix 1712 */ 1713tSCC zAix_Stdlib_VallocName[] = 1714 "aix_stdlib_valloc"; 1715 1716/* 1717 * File name selection pattern 1718 */ 1719tSCC zAix_Stdlib_VallocList[] = 1720 "stdlib.h\0"; 1721/* 1722 * Machine/OS name selection pattern 1723 */ 1724tSCC* apzAix_Stdlib_VallocMachs[] = { 1725 "*-*-aix*", 1726 (const char*)NULL }; 1727 1728/* 1729 * content selection pattern - do fix if pattern found 1730 */ 1731tSCC zAix_Stdlib_VallocSelect0[] = 1732 "#define[ \t]+valloc[ \t]+__linux_valloc"; 1733 1734#define AIX_STDLIB_VALLOC_TEST_CT 1 1735static tTestDesc aAix_Stdlib_VallocTests[] = { 1736 { TT_EGREP, zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, }; 1737 1738/* 1739 * Fix Command Arguments for Aix_Stdlib_Valloc 1740 */ 1741static const char* apzAix_Stdlib_VallocPatch[] = { 1742 "format", 1743 "extern void *valloc(size_t) __asm__(\"__linux_valloc\");", 1744 (char*)NULL }; 1745 1746/* * * * * * * * * * * * * * * * * * * * * * * * * * 1747 * 1748 * Description of Aix_Strtof_Const fix 1749 */ 1750tSCC zAix_Strtof_ConstName[] = 1751 "aix_strtof_const"; 1752 1753/* 1754 * File name selection pattern 1755 */ 1756tSCC zAix_Strtof_ConstList[] = 1757 "stdlib.h\0"; 1758/* 1759 * Machine/OS name selection pattern 1760 */ 1761tSCC* apzAix_Strtof_ConstMachs[] = { 1762 "*-*-aix*", 1763 (const char*)NULL }; 1764 1765/* 1766 * content selection pattern - do fix if pattern found 1767 */ 1768tSCC zAix_Strtof_ConstSelect0[] = 1769 "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);"; 1770 1771#define AIX_STRTOF_CONST_TEST_CT 1 1772static tTestDesc aAix_Strtof_ConstTests[] = { 1773 { TT_EGREP, zAix_Strtof_ConstSelect0, (regex_t*)NULL }, }; 1774 1775/* 1776 * Fix Command Arguments for Aix_Strtof_Const 1777 */ 1778static const char* apzAix_Strtof_ConstPatch[] = { 1779 "format", 1780 "%1(const char *, char **);", 1781 (char*)NULL }; 1782 1783/* * * * * * * * * * * * * * * * * * * * * * * * * * 1784 * 1785 * Description of Aix_Sysmachine fix 1786 */ 1787tSCC zAix_SysmachineName[] = 1788 "aix_sysmachine"; 1789 1790/* 1791 * File name selection pattern 1792 */ 1793tSCC zAix_SysmachineList[] = 1794 "sys/machine.h\0"; 1795/* 1796 * Machine/OS name selection pattern 1797 */ 1798tSCC* apzAix_SysmachineMachs[] = { 1799 "*-*-aix*", 1800 (const char*)NULL }; 1801 1802/* 1803 * content selection pattern - do fix if pattern found 1804 */ 1805tSCC zAix_SysmachineSelect0[] = 1806 "\\\\ +\n"; 1807 1808#define AIX_SYSMACHINE_TEST_CT 1 1809static tTestDesc aAix_SysmachineTests[] = { 1810 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, }; 1811 1812/* 1813 * Fix Command Arguments for Aix_Sysmachine 1814 */ 1815static const char* apzAix_SysmachinePatch[] = { 1816 "format", 1817 "\\\n", 1818 (char*)NULL }; 1819 1820/* * * * * * * * * * * * * * * * * * * * * * * * * * 1821 * 1822 * Description of Aix_Syswait_2 fix 1823 */ 1824tSCC zAix_Syswait_2Name[] = 1825 "aix_syswait_2"; 1826 1827/* 1828 * File name selection pattern 1829 */ 1830tSCC zAix_Syswait_2List[] = 1831 "sys/wait.h\0"; 1832/* 1833 * Machine/OS name selection pattern 1834 */ 1835tSCC* apzAix_Syswait_2Machs[] = { 1836 "*-*-aix*", 1837 (const char*)NULL }; 1838 1839/* 1840 * content selection pattern - do fix if pattern found 1841 */ 1842tSCC zAix_Syswait_2Select0[] = 1843 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)"; 1844 1845#define AIX_SYSWAIT_2_TEST_CT 1 1846static tTestDesc aAix_Syswait_2Tests[] = { 1847 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, }; 1848 1849/* 1850 * Fix Command Arguments for Aix_Syswait_2 1851 */ 1852static const char* apzAix_Syswait_2Patch[] = { 1853 "format", 1854 "? (int)%1", 1855 (char*)NULL }; 1856 1857/* * * * * * * * * * * * * * * * * * * * * * * * * * 1858 * 1859 * Description of Aix_Volatile fix 1860 */ 1861tSCC zAix_VolatileName[] = 1862 "aix_volatile"; 1863 1864/* 1865 * File name selection pattern 1866 */ 1867tSCC zAix_VolatileList[] = 1868 "sys/signal.h\0"; 1869/* 1870 * Machine/OS name selection pattern 1871 */ 1872tSCC* apzAix_VolatileMachs[] = { 1873 "*-*-aix*", 1874 (const char*)NULL }; 1875 1876/* 1877 * content selection pattern - do fix if pattern found 1878 */ 1879tSCC zAix_VolatileSelect0[] = 1880 "typedef volatile int sig_atomic_t"; 1881 1882#define AIX_VOLATILE_TEST_CT 1 1883static tTestDesc aAix_VolatileTests[] = { 1884 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, }; 1885 1886/* 1887 * Fix Command Arguments for Aix_Volatile 1888 */ 1889static const char* apzAix_VolatilePatch[] = { 1890 "format", 1891 "typedef int sig_atomic_t", 1892 (char*)NULL }; 1893 1894/* * * * * * * * * * * * * * * * * * * * * * * * * * 1895 * 1896 * Description of Alpha___Assert fix 1897 */ 1898tSCC zAlpha___AssertName[] = 1899 "alpha___assert"; 1900 1901/* 1902 * File name selection pattern 1903 */ 1904tSCC zAlpha___AssertList[] = 1905 "assert.h\0"; 1906/* 1907 * Machine/OS name selection pattern 1908 */ 1909#define apzAlpha___AssertMachs (const char**)NULL 1910 1911/* 1912 * content selection pattern - do fix if pattern found 1913 */ 1914tSCC zAlpha___AssertSelect0[] = 1915 "__assert\\(char \\*, char \\*, int\\)"; 1916 1917#define ALPHA___ASSERT_TEST_CT 1 1918static tTestDesc aAlpha___AssertTests[] = { 1919 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, }; 1920 1921/* 1922 * Fix Command Arguments for Alpha___Assert 1923 */ 1924static const char* apzAlpha___AssertPatch[] = { 1925 "format", 1926 "__assert(const char *, const char *, int)", 1927 (char*)NULL }; 1928 1929/* * * * * * * * * * * * * * * * * * * * * * * * * * 1930 * 1931 * Description of Alpha_Assert fix 1932 */ 1933tSCC zAlpha_AssertName[] = 1934 "alpha_assert"; 1935 1936/* 1937 * File name selection pattern 1938 */ 1939tSCC zAlpha_AssertList[] = 1940 "assert.h\0"; 1941/* 1942 * Machine/OS name selection pattern 1943 */ 1944#define apzAlpha_AssertMachs (const char**)NULL 1945 1946/* 1947 * content selection pattern - do fix if pattern found 1948 */ 1949tSCC zAlpha_AssertSelect0[] = 1950 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)"; 1951 1952#define ALPHA_ASSERT_TEST_CT 1 1953static tTestDesc aAlpha_AssertTests[] = { 1954 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, }; 1955 1956/* 1957 * Fix Command Arguments for Alpha_Assert 1958 */ 1959static const char* apzAlpha_AssertPatch[] = { 1960 "format", 1961 "%1(EX)", 1962 (char*)NULL }; 1963 1964/* * * * * * * * * * * * * * * * * * * * * * * * * * 1965 * 1966 * Description of Alpha_Getopt fix 1967 */ 1968tSCC zAlpha_GetoptName[] = 1969 "alpha_getopt"; 1970 1971/* 1972 * File name selection pattern 1973 */ 1974tSCC zAlpha_GetoptList[] = 1975 "stdio.h\0stdlib.h\0"; 1976/* 1977 * Machine/OS name selection pattern 1978 */ 1979#define apzAlpha_GetoptMachs (const char**)NULL 1980 1981/* 1982 * content selection pattern - do fix if pattern found 1983 */ 1984tSCC zAlpha_GetoptSelect0[] = 1985 "getopt\\(int, char \\*\\[\\], *char \\*\\)"; 1986 1987#define ALPHA_GETOPT_TEST_CT 1 1988static tTestDesc aAlpha_GetoptTests[] = { 1989 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, }; 1990 1991/* 1992 * Fix Command Arguments for Alpha_Getopt 1993 */ 1994static const char* apzAlpha_GetoptPatch[] = { 1995 "format", 1996 "getopt(int, char *const[], const char *)", 1997 (char*)NULL }; 1998 1999/* * * * * * * * * * * * * * * * * * * * * * * * * * 2000 * 2001 * Description of Alpha_If_Semicolon fix 2002 */ 2003tSCC zAlpha_If_SemicolonName[] = 2004 "alpha_if_semicolon"; 2005 2006/* 2007 * File name selection pattern 2008 */ 2009tSCC zAlpha_If_SemicolonList[] = 2010 "net/if.h\0"; 2011/* 2012 * Machine/OS name selection pattern 2013 */ 2014#define apzAlpha_If_SemicolonMachs (const char**)NULL 2015 2016/* 2017 * content selection pattern - do fix if pattern found 2018 */ 2019tSCC zAlpha_If_SemicolonSelect0[] = 2020 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*"; 2021 2022#define ALPHA_IF_SEMICOLON_TEST_CT 1 2023static tTestDesc aAlpha_If_SemicolonTests[] = { 2024 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, }; 2025 2026/* 2027 * Fix Command Arguments for Alpha_If_Semicolon 2028 */ 2029static const char* apzAlpha_If_SemicolonPatch[] = { 2030 "format", 2031 "struct sockaddr vmif_paddr;\t/*", 2032 (char*)NULL }; 2033 2034/* * * * * * * * * * * * * * * * * * * * * * * * * * 2035 * 2036 * Description of Alpha_Parens fix 2037 */ 2038tSCC zAlpha_ParensName[] = 2039 "alpha_parens"; 2040 2041/* 2042 * File name selection pattern 2043 */ 2044tSCC zAlpha_ParensList[] = 2045 "sym.h\0"; 2046/* 2047 * Machine/OS name selection pattern 2048 */ 2049#define apzAlpha_ParensMachs (const char**)NULL 2050 2051/* 2052 * content selection pattern - do fix if pattern found 2053 */ 2054tSCC zAlpha_ParensSelect0[] = 2055 "#ifndef\\(__mips64\\)"; 2056 2057#define ALPHA_PARENS_TEST_CT 1 2058static tTestDesc aAlpha_ParensTests[] = { 2059 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, }; 2060 2061/* 2062 * Fix Command Arguments for Alpha_Parens 2063 */ 2064static const char* apzAlpha_ParensPatch[] = { 2065 "format", 2066 "#ifndef __mips64", 2067 (char*)NULL }; 2068 2069/* * * * * * * * * * * * * * * * * * * * * * * * * * 2070 * 2071 * Description of Alpha_Sbrk fix 2072 */ 2073tSCC zAlpha_SbrkName[] = 2074 "alpha_sbrk"; 2075 2076/* 2077 * File name selection pattern 2078 */ 2079tSCC zAlpha_SbrkList[] = 2080 "unistd.h\0"; 2081/* 2082 * Machine/OS name selection pattern 2083 */ 2084#define apzAlpha_SbrkMachs (const char**)NULL 2085 2086/* 2087 * content selection pattern - do fix if pattern found 2088 */ 2089tSCC zAlpha_SbrkSelect0[] = 2090 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\("; 2091 2092#define ALPHA_SBRK_TEST_CT 1 2093static tTestDesc aAlpha_SbrkTests[] = { 2094 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, }; 2095 2096/* 2097 * Fix Command Arguments for Alpha_Sbrk 2098 */ 2099static const char* apzAlpha_SbrkPatch[] = { 2100 "format", 2101 "void *sbrk(", 2102 (char*)NULL }; 2103 2104/* * * * * * * * * * * * * * * * * * * * * * * * * * 2105 * 2106 * Description of Avoid_Bool_Define fix 2107 */ 2108tSCC zAvoid_Bool_DefineName[] = 2109 "avoid_bool_define"; 2110 2111/* 2112 * File name selection pattern 2113 */ 2114tSCC zAvoid_Bool_DefineList[] = 2115 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0"; 2116/* 2117 * Machine/OS name selection pattern 2118 */ 2119#define apzAvoid_Bool_DefineMachs (const char**)NULL 2120 2121/* 2122 * content selection pattern - do fix if pattern found 2123 */ 2124tSCC zAvoid_Bool_DefineSelect0[] = 2125 "#[ \t]*define[ \t]+bool[ \t]"; 2126 2127/* 2128 * content bypass pattern - skip fix if pattern found 2129 */ 2130tSCC zAvoid_Bool_DefineBypass0[] = 2131 "__cplusplus"; 2132 2133#define AVOID_BOOL_DEFINE_TEST_CT 2 2134static tTestDesc aAvoid_Bool_DefineTests[] = { 2135 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL }, 2136 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, }; 2137 2138/* 2139 * Fix Command Arguments for Avoid_Bool_Define 2140 */ 2141static const char* apzAvoid_Bool_DefinePatch[] = { 2142 "format", 2143 "#ifndef __cplusplus\n\ 2144%0\n\ 2145#endif", 2146 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*", 2147 (char*)NULL }; 2148 2149/* * * * * * * * * * * * * * * * * * * * * * * * * * 2150 * 2151 * Description of Avoid_Bool_Type fix 2152 */ 2153tSCC zAvoid_Bool_TypeName[] = 2154 "avoid_bool_type"; 2155 2156/* 2157 * File name selection pattern 2158 */ 2159tSCC zAvoid_Bool_TypeList[] = 2160 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0"; 2161/* 2162 * Machine/OS name selection pattern 2163 */ 2164#define apzAvoid_Bool_TypeMachs (const char**)NULL 2165 2166/* 2167 * content selection pattern - do fix if pattern found 2168 */ 2169tSCC zAvoid_Bool_TypeSelect0[] = 2170 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;"; 2171 2172/* 2173 * content bypass pattern - skip fix if pattern found 2174 */ 2175tSCC zAvoid_Bool_TypeBypass0[] = 2176 "__cplusplus"; 2177 2178#define AVOID_BOOL_TYPE_TEST_CT 2 2179static tTestDesc aAvoid_Bool_TypeTests[] = { 2180 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL }, 2181 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, }; 2182 2183/* 2184 * Fix Command Arguments for Avoid_Bool_Type 2185 */ 2186static const char* apzAvoid_Bool_TypePatch[] = { 2187 "format", 2188 "#ifndef __cplusplus\n\ 2189%0\n\ 2190#endif", 2191 (char*)NULL }; 2192 2193/* * * * * * * * * * * * * * * * * * * * * * * * * * 2194 * 2195 * Description of Avoid_Wchar_T_Type fix 2196 */ 2197tSCC zAvoid_Wchar_T_TypeName[] = 2198 "avoid_wchar_t_type"; 2199 2200/* 2201 * File name selection pattern 2202 */ 2203#define zAvoid_Wchar_T_TypeList (char*)NULL 2204/* 2205 * Machine/OS name selection pattern 2206 */ 2207#define apzAvoid_Wchar_T_TypeMachs (const char**)NULL 2208 2209/* 2210 * content selection pattern - do fix if pattern found 2211 */ 2212tSCC zAvoid_Wchar_T_TypeSelect0[] = 2213 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;"; 2214 2215/* 2216 * content bypass pattern - skip fix if pattern found 2217 */ 2218tSCC zAvoid_Wchar_T_TypeBypass0[] = 2219 "__cplusplus"; 2220tSCC zAvoid_Wchar_T_TypeBypass1[] = 2221 "_LINUX_NLS_H"; 2222tSCC zAvoid_Wchar_T_TypeBypass2[] = 2223 "XFree86: xc/lib/X11/Xlib\\.h"; 2224 2225#define AVOID_WCHAR_T_TYPE_TEST_CT 4 2226static tTestDesc aAvoid_Wchar_T_TypeTests[] = { 2227 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL }, 2228 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL }, 2229 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL }, 2230 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, }; 2231 2232/* 2233 * Fix Command Arguments for Avoid_Wchar_T_Type 2234 */ 2235static const char* apzAvoid_Wchar_T_TypePatch[] = { 2236 "format", 2237 "#ifndef __cplusplus\n\ 2238%0\n\ 2239#endif", 2240 (char*)NULL }; 2241 2242/* * * * * * * * * * * * * * * * * * * * * * * * * * 2243 * 2244 * Description of Bad_Struct_Term fix 2245 */ 2246tSCC zBad_Struct_TermName[] = 2247 "bad_struct_term"; 2248 2249/* 2250 * File name selection pattern 2251 */ 2252tSCC zBad_Struct_TermList[] = 2253 "curses.h\0"; 2254/* 2255 * Machine/OS name selection pattern 2256 */ 2257#define apzBad_Struct_TermMachs (const char**)NULL 2258 2259/* 2260 * content selection pattern - do fix if pattern found 2261 */ 2262tSCC zBad_Struct_TermSelect0[] = 2263 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;"; 2264 2265#define BAD_STRUCT_TERM_TEST_CT 1 2266static tTestDesc aBad_Struct_TermTests[] = { 2267 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, }; 2268 2269/* 2270 * Fix Command Arguments for Bad_Struct_Term 2271 */ 2272static const char* apzBad_Struct_TermPatch[] = { 2273 "format", 2274 "struct term;", 2275 (char*)NULL }; 2276 2277/* * * * * * * * * * * * * * * * * * * * * * * * * * 2278 * 2279 * Description of Badquote fix 2280 */ 2281tSCC zBadquoteName[] = 2282 "badquote"; 2283 2284/* 2285 * File name selection pattern 2286 */ 2287tSCC zBadquoteList[] = 2288 "sundev/vuid_event.h\0"; 2289/* 2290 * Machine/OS name selection pattern 2291 */ 2292#define apzBadquoteMachs (const char**)NULL 2293 2294/* 2295 * content selection pattern - do fix if pattern found 2296 */ 2297tSCC zBadquoteSelect0[] = 2298 "doesn't"; 2299 2300#define BADQUOTE_TEST_CT 1 2301static tTestDesc aBadquoteTests[] = { 2302 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, }; 2303 2304/* 2305 * Fix Command Arguments for Badquote 2306 */ 2307static const char* apzBadquotePatch[] = { 2308 "format", 2309 "does not", 2310 (char*)NULL }; 2311 2312/* * * * * * * * * * * * * * * * * * * * * * * * * * 2313 * 2314 * Description of Broken_Assert_Stdio fix 2315 */ 2316tSCC zBroken_Assert_StdioName[] = 2317 "broken_assert_stdio"; 2318 2319/* 2320 * File name selection pattern 2321 */ 2322tSCC zBroken_Assert_StdioList[] = 2323 "assert.h\0"; 2324/* 2325 * Machine/OS name selection pattern 2326 */ 2327#define apzBroken_Assert_StdioMachs (const char**)NULL 2328 2329/* 2330 * content selection pattern - do fix if pattern found 2331 */ 2332tSCC zBroken_Assert_StdioSelect0[] = 2333 "stderr"; 2334 2335/* 2336 * content bypass pattern - skip fix if pattern found 2337 */ 2338tSCC zBroken_Assert_StdioBypass0[] = 2339 "include.*stdio\\.h"; 2340 2341#define BROKEN_ASSERT_STDIO_TEST_CT 2 2342static tTestDesc aBroken_Assert_StdioTests[] = { 2343 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL }, 2344 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, }; 2345 2346/* 2347 * Fix Command Arguments for Broken_Assert_Stdio 2348 */ 2349static const char* apzBroken_Assert_StdioPatch[] = { 2350 "wrap", 2351 "#include <stdio.h>\n", 2352 (char*)NULL }; 2353 2354/* * * * * * * * * * * * * * * * * * * * * * * * * * 2355 * 2356 * Description of Broken_Assert_Stdlib fix 2357 */ 2358tSCC zBroken_Assert_StdlibName[] = 2359 "broken_assert_stdlib"; 2360 2361/* 2362 * File name selection pattern 2363 */ 2364tSCC zBroken_Assert_StdlibList[] = 2365 "assert.h\0"; 2366/* 2367 * Machine/OS name selection pattern 2368 */ 2369#define apzBroken_Assert_StdlibMachs (const char**)NULL 2370 2371/* 2372 * content selection pattern - do fix if pattern found 2373 */ 2374tSCC zBroken_Assert_StdlibSelect0[] = 2375 "exit *\\(|abort *\\("; 2376 2377/* 2378 * content bypass pattern - skip fix if pattern found 2379 */ 2380tSCC zBroken_Assert_StdlibBypass0[] = 2381 "include.*stdlib\\.h"; 2382 2383#define BROKEN_ASSERT_STDLIB_TEST_CT 2 2384static tTestDesc aBroken_Assert_StdlibTests[] = { 2385 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL }, 2386 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, }; 2387 2388/* 2389 * Fix Command Arguments for Broken_Assert_Stdlib 2390 */ 2391static const char* apzBroken_Assert_StdlibPatch[] = { 2392 "wrap", 2393 "#ifdef __cplusplus\n\ 2394#include <stdlib.h>\n\ 2395#endif\n", 2396 (char*)NULL }; 2397 2398/* * * * * * * * * * * * * * * * * * * * * * * * * * 2399 * 2400 * Description of Broken_Cabs fix 2401 */ 2402tSCC zBroken_CabsName[] = 2403 "broken_cabs"; 2404 2405/* 2406 * File name selection pattern 2407 */ 2408tSCC zBroken_CabsList[] = 2409 "math.h\0architecture/*/math.h\0"; 2410/* 2411 * Machine/OS name selection pattern 2412 */ 2413#define apzBroken_CabsMachs (const char**)NULL 2414 2415/* 2416 * content selection pattern - do fix if pattern found 2417 */ 2418tSCC zBroken_CabsSelect0[] = 2419 "^extern[ \t]+double[ \t]+cabs"; 2420 2421#define BROKEN_CABS_TEST_CT 1 2422static tTestDesc aBroken_CabsTests[] = { 2423 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, }; 2424 2425/* 2426 * Fix Command Arguments for Broken_Cabs 2427 */ 2428static const char* apzBroken_CabsPatch[] = { sed_cmd_z, 2429 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//", 2430 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//", 2431 (char*)NULL }; 2432 2433/* * * * * * * * * * * * * * * * * * * * * * * * * * 2434 * 2435 * Description of Broken_Nan fix 2436 */ 2437tSCC zBroken_NanName[] = 2438 "broken_nan"; 2439 2440/* 2441 * File name selection pattern 2442 */ 2443tSCC zBroken_NanList[] = 2444 "architecture/ppc/math.h\0architecture/*/math.h\0"; 2445/* 2446 * Machine/OS name selection pattern 2447 */ 2448#define apzBroken_NanMachs (const char**)NULL 2449 2450/* 2451 * content selection pattern - do fix if pattern found 2452 */ 2453tSCC zBroken_NanSelect0[] = 2454 "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)"; 2455 2456/* 2457 * content bypass pattern - skip fix if pattern found 2458 */ 2459tSCC zBroken_NanBypass0[] = 2460 "powl"; 2461 2462#define BROKEN_NAN_TEST_CT 2 2463static tTestDesc aBroken_NanTests[] = { 2464 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL }, 2465 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, }; 2466 2467/* 2468 * Fix Command Arguments for Broken_Nan 2469 */ 2470static const char* apzBroken_NanPatch[] = { 2471 "format", 2472 "#if 1", 2473 (char*)NULL }; 2474 2475/* * * * * * * * * * * * * * * * * * * * * * * * * * 2476 * 2477 * Description of Bsd_Stdio_Attrs_Conflict fix 2478 */ 2479tSCC zBsd_Stdio_Attrs_ConflictName[] = 2480 "bsd_stdio_attrs_conflict"; 2481 2482/* 2483 * File name selection pattern 2484 */ 2485tSCC zBsd_Stdio_Attrs_ConflictList[] = 2486 "stdio.h\0"; 2487/* 2488 * Machine/OS name selection pattern 2489 */ 2490tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = { 2491 "*-*-*bsd*", 2492 "*-*-*darwin*", 2493 (const char*)NULL }; 2494 2495/* 2496 * content selection pattern - do fix if pattern found 2497 */ 2498tSCC zBsd_Stdio_Attrs_ConflictSelect0[] = 2499 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$"; 2500 2501#define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1 2502static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = { 2503 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, }; 2504 2505/* 2506 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict 2507 */ 2508static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = { 2509 "format", 2510 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\ 2511#define _BSD_STRINGX(_BSD_X) #_BSD_X\n\ 2512int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");", 2513 (char*)NULL }; 2514 2515/* * * * * * * * * * * * * * * * * * * * * * * * * * 2516 * 2517 * Description of Ctrl_Quotes_Def fix 2518 */ 2519tSCC zCtrl_Quotes_DefName[] = 2520 "ctrl_quotes_def"; 2521 2522/* 2523 * File name selection pattern 2524 */ 2525#define zCtrl_Quotes_DefList (char*)NULL 2526/* 2527 * Machine/OS name selection pattern 2528 */ 2529#define apzCtrl_Quotes_DefMachs (const char**)NULL 2530 2531/* 2532 * content selection pattern - do fix if pattern found 2533 */ 2534tSCC zCtrl_Quotes_DefSelect0[] = 2535 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]"; 2536 2537#define CTRL_QUOTES_DEF_TEST_CT 1 2538static tTestDesc aCtrl_Quotes_DefTests[] = { 2539 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, }; 2540 2541/* 2542 * Fix Command Arguments for Ctrl_Quotes_Def 2543 */ 2544static const char* apzCtrl_Quotes_DefPatch[] = { 2545 "char_macro_def", 2546 "CTRL", 2547 (char*)NULL }; 2548 2549/* * * * * * * * * * * * * * * * * * * * * * * * * * 2550 * 2551 * Description of Ctrl_Quotes_Use fix 2552 */ 2553tSCC zCtrl_Quotes_UseName[] = 2554 "ctrl_quotes_use"; 2555 2556/* 2557 * File name selection pattern 2558 */ 2559#define zCtrl_Quotes_UseList (char*)NULL 2560/* 2561 * Machine/OS name selection pattern 2562 */ 2563#define apzCtrl_Quotes_UseMachs (const char**)NULL 2564 2565/* 2566 * content selection pattern - do fix if pattern found 2567 */ 2568tSCC zCtrl_Quotes_UseSelect0[] = 2569 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']"; 2570 2571#define CTRL_QUOTES_USE_TEST_CT 1 2572static tTestDesc aCtrl_Quotes_UseTests[] = { 2573 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, }; 2574 2575/* 2576 * Fix Command Arguments for Ctrl_Quotes_Use 2577 */ 2578static const char* apzCtrl_Quotes_UsePatch[] = { 2579 "char_macro_use", 2580 "CTRL", 2581 (char*)NULL }; 2582 2583/* * * * * * * * * * * * * * * * * * * * * * * * * * 2584 * 2585 * Description of Cxx_Unready fix 2586 */ 2587tSCC zCxx_UnreadyName[] = 2588 "cxx_unready"; 2589 2590/* 2591 * File name selection pattern 2592 */ 2593tSCC zCxx_UnreadyList[] = 2594 "sys/mman.h\0rpc/types.h\0"; 2595/* 2596 * Machine/OS name selection pattern 2597 */ 2598#define apzCxx_UnreadyMachs (const char**)NULL 2599 2600/* 2601 * content selection pattern - do fix if pattern found 2602 */ 2603tSCC zCxx_UnreadySelect0[] = 2604 "[^#]+malloc.*;"; 2605 2606/* 2607 * content bypass pattern - skip fix if pattern found 2608 */ 2609tSCC zCxx_UnreadyBypass0[] = 2610 "\"C\"|__BEGIN_DECLS"; 2611 2612#define CXX_UNREADY_TEST_CT 2 2613static tTestDesc aCxx_UnreadyTests[] = { 2614 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, 2615 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, }; 2616 2617/* 2618 * Fix Command Arguments for Cxx_Unready 2619 */ 2620static const char* apzCxx_UnreadyPatch[] = { 2621 "wrap", 2622 "#ifdef __cplusplus\n\ 2623extern \"C\" {\n\ 2624#endif\n", 2625 "#ifdef __cplusplus\n\ 2626}\n\ 2627#endif\n", 2628 (char*)NULL }; 2629 2630/* * * * * * * * * * * * * * * * * * * * * * * * * * 2631 * 2632 * Description of Darwin_Availabilityinternal fix 2633 */ 2634tSCC zDarwin_AvailabilityinternalName[] = 2635 "darwin_availabilityinternal"; 2636 2637/* 2638 * File name selection pattern 2639 */ 2640tSCC zDarwin_AvailabilityinternalList[] = 2641 "AvailabilityInternal.h\0"; 2642/* 2643 * Machine/OS name selection pattern 2644 */ 2645tSCC* apzDarwin_AvailabilityinternalMachs[] = { 2646 "*-*-darwin*", 2647 (const char*)NULL }; 2648 2649/* 2650 * content selection pattern - do fix if pattern found 2651 */ 2652tSCC zDarwin_AvailabilityinternalSelect0[] = 2653 "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*"; 2654 2655#define DARWIN_AVAILABILITYINTERNAL_TEST_CT 1 2656static tTestDesc aDarwin_AvailabilityinternalTests[] = { 2657 { TT_EGREP, zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, }; 2658 2659/* 2660 * Fix Command Arguments for Darwin_Availabilityinternal 2661 */ 2662static const char* apzDarwin_AvailabilityinternalPatch[] = { 2663 "format", 2664 "#if defined(__has_attribute)\n\ 2665 #if __has_attribute(availability)\n\ 2666%0\n\ 2667 #else\n\ 2668 #define %1\n\ 2669 #endif\n\ 2670#else\n\ 2671 #define %1\n\ 2672#endif", 2673 (char*)NULL }; 2674 2675/* * * * * * * * * * * * * * * * * * * * * * * * * * 2676 * 2677 * Description of Darwin_9_Long_Double_Funcs_2 fix 2678 */ 2679tSCC zDarwin_9_Long_Double_Funcs_2Name[] = 2680 "darwin_9_long_double_funcs_2"; 2681 2682/* 2683 * File name selection pattern 2684 */ 2685tSCC zDarwin_9_Long_Double_Funcs_2List[] = 2686 "math.h\0"; 2687/* 2688 * Machine/OS name selection pattern 2689 */ 2690tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = { 2691 "*-*-darwin*", 2692 (const char*)NULL }; 2693 2694/* 2695 * content selection pattern - do fix if pattern found 2696 */ 2697tSCC zDarwin_9_Long_Double_Funcs_2Select0[] = 2698 "#include[ \\t]+\\\""; 2699 2700#define DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1 2701static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = { 2702 { TT_EGREP, zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, }; 2703 2704/* 2705 * Fix Command Arguments for Darwin_9_Long_Double_Funcs_2 2706 */ 2707static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = { 2708 "format", 2709 "%1<%2.h>", 2710 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"", 2711 (char*)NULL }; 2712 2713/* * * * * * * * * * * * * * * * * * * * * * * * * * 2714 * 2715 * Description of Darwin_Externc fix 2716 */ 2717tSCC zDarwin_ExterncName[] = 2718 "darwin_externc"; 2719 2720/* 2721 * File name selection pattern 2722 */ 2723tSCC zDarwin_ExterncList[] = 2724 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0"; 2725/* 2726 * Machine/OS name selection pattern 2727 */ 2728tSCC* apzDarwin_ExterncMachs[] = { 2729 "*-*-darwin*", 2730 (const char*)NULL }; 2731 2732/* 2733 * content bypass pattern - skip fix if pattern found 2734 */ 2735tSCC zDarwin_ExterncBypass0[] = 2736 "extern \"C\""; 2737tSCC zDarwin_ExterncBypass1[] = 2738 "__BEGIN_DECLS"; 2739 2740#define DARWIN_EXTERNC_TEST_CT 2 2741static tTestDesc aDarwin_ExterncTests[] = { 2742 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL }, 2743 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, }; 2744 2745/* 2746 * Fix Command Arguments for Darwin_Externc 2747 */ 2748static const char* apzDarwin_ExterncPatch[] = { 2749 "wrap", 2750 "#ifdef __cplusplus\n\ 2751extern \"C\" {\n\ 2752#endif\n", 2753 "#ifdef __cplusplus\n\ 2754}\n\ 2755#endif\n", 2756 (char*)NULL }; 2757 2758/* * * * * * * * * * * * * * * * * * * * * * * * * * 2759 * 2760 * Description of Darwin_Gcc4_Breakage fix 2761 */ 2762tSCC zDarwin_Gcc4_BreakageName[] = 2763 "darwin_gcc4_breakage"; 2764 2765/* 2766 * File name selection pattern 2767 */ 2768tSCC zDarwin_Gcc4_BreakageList[] = 2769 "AvailabilityMacros.h\0"; 2770/* 2771 * Machine/OS name selection pattern 2772 */ 2773tSCC* apzDarwin_Gcc4_BreakageMachs[] = { 2774 "*-*-darwin*", 2775 (const char*)NULL }; 2776 2777/* 2778 * content selection pattern - do fix if pattern found 2779 */ 2780tSCC zDarwin_Gcc4_BreakageSelect0[] = 2781 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)"; 2782 2783#define DARWIN_GCC4_BREAKAGE_TEST_CT 1 2784static tTestDesc aDarwin_Gcc4_BreakageTests[] = { 2785 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; 2786 2787/* 2788 * Fix Command Arguments for Darwin_Gcc4_Breakage 2789 */ 2790static const char* apzDarwin_Gcc4_BreakagePatch[] = { 2791 "format", 2792 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))", 2793 (char*)NULL }; 2794 2795/* * * * * * * * * * * * * * * * * * * * * * * * * * 2796 * 2797 * Description of Darwin_Ll_Funcs_Avail fix 2798 */ 2799tSCC zDarwin_Ll_Funcs_AvailName[] = 2800 "darwin_ll_funcs_avail"; 2801 2802/* 2803 * File name selection pattern 2804 */ 2805tSCC zDarwin_Ll_Funcs_AvailList[] = 2806 "architecture/ppc/math.h\0architecture/i386/math.h\0"; 2807/* 2808 * Machine/OS name selection pattern 2809 */ 2810tSCC* apzDarwin_Ll_Funcs_AvailMachs[] = { 2811 "*-*-darwin*", 2812 (const char*)NULL }; 2813 2814/* 2815 * content selection pattern - do fix if pattern found 2816 */ 2817tSCC zDarwin_Ll_Funcs_AvailSelect0[] = 2818 "#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^1]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^)]*"; 2819 2820#define DARWIN_LL_FUNCS_AVAIL_TEST_CT 1 2821static tTestDesc aDarwin_Ll_Funcs_AvailTests[] = { 2822 { TT_EGREP, zDarwin_Ll_Funcs_AvailSelect0, (regex_t*)NULL }, }; 2823 2824/* 2825 * Fix Command Arguments for Darwin_Ll_Funcs_Avail 2826 */ 2827static const char* apzDarwin_Ll_Funcs_AvailPatch[] = { sed_cmd_z, 2828 "-e", "s/#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^_]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^\\)]*)/#if !(__DARWIN_NO_LONG_LONG)/", 2829 (char*)NULL }; 2830 2831/* * * * * * * * * * * * * * * * * * * * * * * * * * 2832 * 2833 * Description of Darwin_Longjmp_Noreturn fix 2834 */ 2835tSCC zDarwin_Longjmp_NoreturnName[] = 2836 "darwin_longjmp_noreturn"; 2837 2838/* 2839 * File name selection pattern 2840 */ 2841tSCC zDarwin_Longjmp_NoreturnList[] = 2842 "i386/setjmp.h\0"; 2843/* 2844 * Machine/OS name selection pattern 2845 */ 2846tSCC* apzDarwin_Longjmp_NoreturnMachs[] = { 2847 "*-*-darwin*", 2848 (const char*)NULL }; 2849 2850/* 2851 * content selection pattern - do fix if pattern found 2852 */ 2853tSCC zDarwin_Longjmp_NoreturnSelect0[] = 2854 "(.*longjmp\\(.*jmp_buf.*[^)]+\\));"; 2855 2856/* 2857 * content bypass pattern - skip fix if pattern found 2858 */ 2859tSCC zDarwin_Longjmp_NoreturnBypass0[] = 2860 "__dead2"; 2861 2862#define DARWIN_LONGJMP_NORETURN_TEST_CT 2 2863static tTestDesc aDarwin_Longjmp_NoreturnTests[] = { 2864 { TT_NEGREP, zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL }, 2865 { TT_EGREP, zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, }; 2866 2867/* 2868 * Fix Command Arguments for Darwin_Longjmp_Noreturn 2869 */ 2870static const char* apzDarwin_Longjmp_NoreturnPatch[] = { 2871 "format", 2872 "%1 __attribute__ ((__noreturn__));", 2873 (char*)NULL }; 2874 2875/* * * * * * * * * * * * * * * * * * * * * * * * * * 2876 * 2877 * Description of Darwin_Os_Trace_1 fix 2878 */ 2879tSCC zDarwin_Os_Trace_1Name[] = 2880 "darwin_os_trace_1"; 2881 2882/* 2883 * File name selection pattern 2884 */ 2885tSCC zDarwin_Os_Trace_1List[] = 2886 "os/trace.h\0"; 2887/* 2888 * Machine/OS name selection pattern 2889 */ 2890tSCC* apzDarwin_Os_Trace_1Machs[] = { 2891 "*-*-darwin*", 2892 (const char*)NULL }; 2893 2894/* 2895 * content selection pattern - do fix if pattern found 2896 */ 2897tSCC zDarwin_Os_Trace_1Select0[] = 2898 "^(_os_trace_verify_printf.*) (__attribute__.*)"; 2899 2900#define DARWIN_OS_TRACE_1_TEST_CT 1 2901static tTestDesc aDarwin_Os_Trace_1Tests[] = { 2902 { TT_EGREP, zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, }; 2903 2904/* 2905 * Fix Command Arguments for Darwin_Os_Trace_1 2906 */ 2907static const char* apzDarwin_Os_Trace_1Patch[] = { 2908 "format", 2909 "%1", 2910 (char*)NULL }; 2911 2912/* * * * * * * * * * * * * * * * * * * * * * * * * * 2913 * 2914 * Description of Darwin_Os_Trace_2 fix 2915 */ 2916tSCC zDarwin_Os_Trace_2Name[] = 2917 "darwin_os_trace_2"; 2918 2919/* 2920 * File name selection pattern 2921 */ 2922tSCC zDarwin_Os_Trace_2List[] = 2923 "os/trace.h\0"; 2924/* 2925 * Machine/OS name selection pattern 2926 */ 2927tSCC* apzDarwin_Os_Trace_2Machs[] = { 2928 "*-*-darwin*", 2929 (const char*)NULL }; 2930 2931/* 2932 * content selection pattern - do fix if pattern found 2933 */ 2934tSCC zDarwin_Os_Trace_2Select0[] = 2935 "typedef.*\\^os_trace_payload_t.*"; 2936 2937#define DARWIN_OS_TRACE_2_TEST_CT 1 2938static tTestDesc aDarwin_Os_Trace_2Tests[] = { 2939 { TT_EGREP, zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, }; 2940 2941/* 2942 * Fix Command Arguments for Darwin_Os_Trace_2 2943 */ 2944static const char* apzDarwin_Os_Trace_2Patch[] = { 2945 "format", 2946 "#if __BLOCKS__\n\ 2947%0\n\ 2948#endif", 2949 (char*)NULL }; 2950 2951/* * * * * * * * * * * * * * * * * * * * * * * * * * 2952 * 2953 * Description of Darwin_Os_Trace_3 fix 2954 */ 2955tSCC zDarwin_Os_Trace_3Name[] = 2956 "darwin_os_trace_3"; 2957 2958/* 2959 * File name selection pattern 2960 */ 2961tSCC zDarwin_Os_Trace_3List[] = 2962 "os/trace.h\0"; 2963/* 2964 * Machine/OS name selection pattern 2965 */ 2966tSCC* apzDarwin_Os_Trace_3Machs[] = { 2967 "*-*-darwin*", 2968 (const char*)NULL }; 2969 2970/* 2971 * content selection pattern - do fix if pattern found 2972 */ 2973tSCC zDarwin_Os_Trace_3Select0[] = 2974 "__(API|OSX)_.*\n\ 2975OS_EXPORT.*\n\ 2976.*\n\ 2977_os_trace.*os_trace_payload_t payload);"; 2978 2979#define DARWIN_OS_TRACE_3_TEST_CT 1 2980static tTestDesc aDarwin_Os_Trace_3Tests[] = { 2981 { TT_EGREP, zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, }; 2982 2983/* 2984 * Fix Command Arguments for Darwin_Os_Trace_3 2985 */ 2986static const char* apzDarwin_Os_Trace_3Patch[] = { 2987 "format", 2988 "#if __BLOCKS__\n\ 2989%0\n\ 2990#endif", 2991 (char*)NULL }; 2992 2993/* * * * * * * * * * * * * * * * * * * * * * * * * * 2994 * 2995 * Description of Darwin_Os_Base_1 fix 2996 */ 2997tSCC zDarwin_Os_Base_1Name[] = 2998 "darwin_os_base_1"; 2999 3000/* 3001 * File name selection pattern 3002 */ 3003tSCC zDarwin_Os_Base_1List[] = 3004 "os/base.h\0"; 3005/* 3006 * Machine/OS name selection pattern 3007 */ 3008tSCC* apzDarwin_Os_Base_1Machs[] = { 3009 "*-*-darwin*", 3010 (const char*)NULL }; 3011 3012/* 3013 * content selection pattern - do fix if pattern found 3014 */ 3015tSCC zDarwin_Os_Base_1Select0[] = 3016 "#define __has_attribute.*\n\ 3017#endif"; 3018 3019#define DARWIN_OS_BASE_1_TEST_CT 1 3020static tTestDesc aDarwin_Os_Base_1Tests[] = { 3021 { TT_EGREP, zDarwin_Os_Base_1Select0, (regex_t*)NULL }, }; 3022 3023/* 3024 * Fix Command Arguments for Darwin_Os_Base_1 3025 */ 3026static const char* apzDarwin_Os_Base_1Patch[] = { 3027 "format", 3028 "%0\n\ 3029#ifndef __has_extension\n\ 3030#define __has_extension(x) 0\n\ 3031#endif", 3032 (char*)NULL }; 3033 3034/* * * * * * * * * * * * * * * * * * * * * * * * * * 3035 * 3036 * Description of Darwin_Dispatch_Object_1 fix 3037 */ 3038tSCC zDarwin_Dispatch_Object_1Name[] = 3039 "darwin_dispatch_object_1"; 3040 3041/* 3042 * File name selection pattern 3043 */ 3044tSCC zDarwin_Dispatch_Object_1List[] = 3045 "dispatch/object.h\0"; 3046/* 3047 * Machine/OS name selection pattern 3048 */ 3049tSCC* apzDarwin_Dispatch_Object_1Machs[] = { 3050 "*-*-darwin*", 3051 (const char*)NULL }; 3052 3053/* 3054 * content selection pattern - do fix if pattern found 3055 */ 3056tSCC zDarwin_Dispatch_Object_1Select0[] = 3057 "typedef void.*\\^dispatch_block_t.*"; 3058 3059#define DARWIN_DISPATCH_OBJECT_1_TEST_CT 1 3060static tTestDesc aDarwin_Dispatch_Object_1Tests[] = { 3061 { TT_EGREP, zDarwin_Dispatch_Object_1Select0, (regex_t*)NULL }, }; 3062 3063/* 3064 * Fix Command Arguments for Darwin_Dispatch_Object_1 3065 */ 3066static const char* apzDarwin_Dispatch_Object_1Patch[] = { 3067 "format", 3068 "#if __BLOCKS__\n\ 3069%0\n\ 3070#endif", 3071 (char*)NULL }; 3072 3073/* * * * * * * * * * * * * * * * * * * * * * * * * * 3074 * 3075 * Description of Darwin_Private_Extern fix 3076 */ 3077tSCC zDarwin_Private_ExternName[] = 3078 "darwin_private_extern"; 3079 3080/* 3081 * File name selection pattern 3082 */ 3083tSCC zDarwin_Private_ExternList[] = 3084 "mach-o/dyld.h\0"; 3085/* 3086 * Machine/OS name selection pattern 3087 */ 3088tSCC* apzDarwin_Private_ExternMachs[] = { 3089 "*-*-darwin*", 3090 (const char*)NULL }; 3091 3092/* 3093 * content selection pattern - do fix if pattern found 3094 */ 3095tSCC zDarwin_Private_ExternSelect0[] = 3096 "__private_extern__ [a-z_]+ _dyld_"; 3097 3098#define DARWIN_PRIVATE_EXTERN_TEST_CT 1 3099static tTestDesc aDarwin_Private_ExternTests[] = { 3100 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, }; 3101 3102/* 3103 * Fix Command Arguments for Darwin_Private_Extern 3104 */ 3105static const char* apzDarwin_Private_ExternPatch[] = { 3106 "format", 3107 "extern", 3108 "__private_extern__", 3109 (char*)NULL }; 3110 3111/* * * * * * * * * * * * * * * * * * * * * * * * * * 3112 * 3113 * Description of Darwin_Stdint_1 fix 3114 */ 3115tSCC zDarwin_Stdint_1Name[] = 3116 "darwin_stdint_1"; 3117 3118/* 3119 * File name selection pattern 3120 */ 3121tSCC zDarwin_Stdint_1List[] = 3122 "stdint-darwin.h\0stdint.h\0"; 3123/* 3124 * Machine/OS name selection pattern 3125 */ 3126tSCC* apzDarwin_Stdint_1Machs[] = { 3127 "*-*-darwin*", 3128 (const char*)NULL }; 3129 3130/* 3131 * content selection pattern - do fix if pattern found 3132 */ 3133tSCC zDarwin_Stdint_1Select0[] = 3134 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\ 3135#define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)"; 3136 3137#define DARWIN_STDINT_1_TEST_CT 1 3138static tTestDesc aDarwin_Stdint_1Tests[] = { 3139 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, }; 3140 3141/* 3142 * Fix Command Arguments for Darwin_Stdint_1 3143 */ 3144static const char* apzDarwin_Stdint_1Patch[] = { 3145 "format", 3146 "#define UINT8_C(v)\tv\n\ 3147#define UINT16_C(v)\tv", 3148 (char*)NULL }; 3149 3150/* * * * * * * * * * * * * * * * * * * * * * * * * * 3151 * 3152 * Description of Darwin_Stdint_2 fix 3153 */ 3154tSCC zDarwin_Stdint_2Name[] = 3155 "darwin_stdint_2"; 3156 3157/* 3158 * File name selection pattern 3159 */ 3160tSCC zDarwin_Stdint_2List[] = 3161 "stdint-darwin.h\0stdint.h\0"; 3162/* 3163 * Machine/OS name selection pattern 3164 */ 3165tSCC* apzDarwin_Stdint_2Machs[] = { 3166 "*-*-darwin*", 3167 (const char*)NULL }; 3168 3169/* 3170 * content selection pattern - do fix if pattern found 3171 */ 3172tSCC zDarwin_Stdint_2Select0[] = 3173 "#if __WORDSIZE == 64\n\ 3174#define INTPTR_MIN[ \t]+INT64_MIN\n\ 3175#define INTPTR_MAX[ \t]+INT64_MAX\n\ 3176#else\n\ 3177#define INTPTR_MIN[ \t]+INT32_MIN\n\ 3178#define INTPTR_MAX[ \t]+INT32_MAX\n\ 3179#endif"; 3180 3181#define DARWIN_STDINT_2_TEST_CT 1 3182static tTestDesc aDarwin_Stdint_2Tests[] = { 3183 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, }; 3184 3185/* 3186 * Fix Command Arguments for Darwin_Stdint_2 3187 */ 3188static const char* apzDarwin_Stdint_2Patch[] = { 3189 "format", 3190 "#if __WORDSIZE == 64\n\ 3191#define INTPTR_MAX 9223372036854775807L\n\ 3192#define INTPTR_MIN (-INTPTR_MAX-1)\n\ 3193#else\n\ 3194#define INTPTR_MAX 2147483647L\n\ 3195#define INTPTR_MIN (-INTPTR_MAX-1)\n\ 3196#endif", 3197 (char*)NULL }; 3198 3199/* * * * * * * * * * * * * * * * * * * * * * * * * * 3200 * 3201 * Description of Darwin_Stdint_3 fix 3202 */ 3203tSCC zDarwin_Stdint_3Name[] = 3204 "darwin_stdint_3"; 3205 3206/* 3207 * File name selection pattern 3208 */ 3209tSCC zDarwin_Stdint_3List[] = 3210 "stdint-darwin.h\0stdint.h\0"; 3211/* 3212 * Machine/OS name selection pattern 3213 */ 3214tSCC* apzDarwin_Stdint_3Machs[] = { 3215 "*-*-darwin*", 3216 (const char*)NULL }; 3217 3218/* 3219 * content selection pattern - do fix if pattern found 3220 */ 3221tSCC zDarwin_Stdint_3Select0[] = 3222 "#if __WORDSIZE == 64\n\ 3223#define UINTPTR_MAX[ \t]+UINT64_MAX\n\ 3224#else\n\ 3225#define UINTPTR_MAX[ \t]+UINT32_MAX\n\ 3226#endif"; 3227 3228#define DARWIN_STDINT_3_TEST_CT 1 3229static tTestDesc aDarwin_Stdint_3Tests[] = { 3230 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, }; 3231 3232/* 3233 * Fix Command Arguments for Darwin_Stdint_3 3234 */ 3235static const char* apzDarwin_Stdint_3Patch[] = { 3236 "format", 3237 "#if __WORDSIZE == 64\n\ 3238#define UINTPTR_MAX 18446744073709551615UL\n\ 3239#else\n\ 3240#define UINTPTR_MAX 4294967295UL\n\ 3241#endif", 3242 (char*)NULL }; 3243 3244/* * * * * * * * * * * * * * * * * * * * * * * * * * 3245 * 3246 * Description of Darwin_Stdint_4 fix 3247 */ 3248tSCC zDarwin_Stdint_4Name[] = 3249 "darwin_stdint_4"; 3250 3251/* 3252 * File name selection pattern 3253 */ 3254tSCC zDarwin_Stdint_4List[] = 3255 "stdint-darwin.h\0stdint.h\0"; 3256/* 3257 * Machine/OS name selection pattern 3258 */ 3259tSCC* apzDarwin_Stdint_4Machs[] = { 3260 "*-*-darwin*", 3261 (const char*)NULL }; 3262 3263/* 3264 * content selection pattern - do fix if pattern found 3265 */ 3266tSCC zDarwin_Stdint_4Select0[] = 3267 "#if __WORDSIZE == 64\n\ 3268#define SIZE_MAX[ \t]+UINT64_MAX\n\ 3269#else\n\ 3270#define SIZE_MAX[ \t]+UINT32_MAX\n\ 3271#endif"; 3272 3273#define DARWIN_STDINT_4_TEST_CT 1 3274static tTestDesc aDarwin_Stdint_4Tests[] = { 3275 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, }; 3276 3277/* 3278 * Fix Command Arguments for Darwin_Stdint_4 3279 */ 3280static const char* apzDarwin_Stdint_4Patch[] = { 3281 "format", 3282 "#if __WORDSIZE == 64\n\ 3283#define SIZE_MAX 18446744073709551615UL\n\ 3284#else\n\ 3285#define SIZE_MAX 4294967295UL\n\ 3286#endif", 3287 (char*)NULL }; 3288 3289/* * * * * * * * * * * * * * * * * * * * * * * * * * 3290 * 3291 * Description of Darwin_Stdint_5 fix 3292 */ 3293tSCC zDarwin_Stdint_5Name[] = 3294 "darwin_stdint_5"; 3295 3296/* 3297 * File name selection pattern 3298 */ 3299tSCC zDarwin_Stdint_5List[] = 3300 "stdint-darwin.h\0stdint.h\0"; 3301/* 3302 * Machine/OS name selection pattern 3303 */ 3304tSCC* apzDarwin_Stdint_5Machs[] = { 3305 "*-*-darwin*", 3306 (const char*)NULL }; 3307 3308/* 3309 * content selection pattern - do fix if pattern found 3310 */ 3311tSCC zDarwin_Stdint_5Select0[] = 3312 "#define INTMAX_MIN[ \t]+INT64_MIN\n\ 3313#define INTMAX_MAX[ \t]+INT64_MAX\n\n\ 3314#define UINTMAX_MAX[ \t]+UINT64_MAX"; 3315 3316#define DARWIN_STDINT_5_TEST_CT 1 3317static tTestDesc aDarwin_Stdint_5Tests[] = { 3318 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, }; 3319 3320/* 3321 * Fix Command Arguments for Darwin_Stdint_5 3322 */ 3323static const char* apzDarwin_Stdint_5Patch[] = { 3324 "format", 3325 "#if __WORDSIZE == 64\n\ 3326#define INTMAX_MIN (-9223372036854775807L - 1)\n\ 3327#define INTMAX_MAX 9223372036854775807L\n\ 3328#define UINTMAX_MAX 18446744073709551615UL\n\ 3329#else\n\ 3330#define INTMAX_MIN (-9223372036854775807LL - 1)\n\ 3331#define INTMAX_MAX 9223372036854775807LL\n\ 3332#define UINTMAX_MAX 18446744073709551615ULL\n\ 3333#endif", 3334 (char*)NULL }; 3335 3336/* * * * * * * * * * * * * * * * * * * * * * * * * * 3337 * 3338 * Description of Darwin_Stdint_6 fix 3339 */ 3340tSCC zDarwin_Stdint_6Name[] = 3341 "darwin_stdint_6"; 3342 3343/* 3344 * File name selection pattern 3345 */ 3346tSCC zDarwin_Stdint_6List[] = 3347 "stdint-darwin.h\0stdint.h\0"; 3348/* 3349 * Machine/OS name selection pattern 3350 */ 3351tSCC* apzDarwin_Stdint_6Machs[] = { 3352 "*-*-darwin*", 3353 (const char*)NULL }; 3354 3355/* 3356 * content selection pattern - do fix if pattern found 3357 */ 3358tSCC zDarwin_Stdint_6Select0[] = 3359 "#if __WORDSIZE == 64\n\ 3360#define PTRDIFF_MIN[ \t]+INT64_MIN\n\ 3361#define PTRDIFF_MAX[ \t]+INT64_MAX\n\ 3362#else\n\ 3363#define PTRDIFF_MIN[ \t]+INT32_MIN\n\ 3364#define PTRDIFF_MAX[ \t]+INT32_MAX\n\ 3365#endif"; 3366 3367#define DARWIN_STDINT_6_TEST_CT 1 3368static tTestDesc aDarwin_Stdint_6Tests[] = { 3369 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, }; 3370 3371/* 3372 * Fix Command Arguments for Darwin_Stdint_6 3373 */ 3374static const char* apzDarwin_Stdint_6Patch[] = { 3375 "format", 3376 "#if __WORDSIZE == 64\n\ 3377#define PTRDIFF_MIN (-9223372036854775807L - 1)\n\ 3378#define PTRDIFF_MAX 9223372036854775807L\n\ 3379#else\n\ 3380#define PTRDIFF_MIN (-2147483647 - 1)\n\ 3381#define PTRDIFF_MAX 2147483647\n\ 3382#endif", 3383 (char*)NULL }; 3384 3385/* * * * * * * * * * * * * * * * * * * * * * * * * * 3386 * 3387 * Description of Darwin_Stdint_7 fix 3388 */ 3389tSCC zDarwin_Stdint_7Name[] = 3390 "darwin_stdint_7"; 3391 3392/* 3393 * File name selection pattern 3394 */ 3395tSCC zDarwin_Stdint_7List[] = 3396 "stdint-darwin.h\0stdint.h\0"; 3397/* 3398 * Machine/OS name selection pattern 3399 */ 3400tSCC* apzDarwin_Stdint_7Machs[] = { 3401 "*-*-darwin*", 3402 (const char*)NULL }; 3403 3404/* 3405 * content selection pattern - do fix if pattern found 3406 */ 3407tSCC zDarwin_Stdint_7Select0[] = 3408 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\ 3409#define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)"; 3410 3411#define DARWIN_STDINT_7_TEST_CT 1 3412static tTestDesc aDarwin_Stdint_7Tests[] = { 3413 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, }; 3414 3415/* 3416 * Fix Command Arguments for Darwin_Stdint_7 3417 */ 3418static const char* apzDarwin_Stdint_7Patch[] = { 3419 "format", 3420 "#if __WORDSIZE == 64\n\ 3421#define INTMAX_C(v) (v ## L)\n\ 3422#define UINTMAX_C(v) (v ## UL)\n\ 3423#else\n\ 3424#define INTMAX_C(v) (v ## LL)\n\ 3425#define UINTMAX_C(v) (v ## ULL)\n\ 3426#endif", 3427 (char*)NULL }; 3428 3429/* * * * * * * * * * * * * * * * * * * * * * * * * * 3430 * 3431 * Description of Darwin_Ucred__Atomic fix 3432 */ 3433tSCC zDarwin_Ucred__AtomicName[] = 3434 "darwin_ucred__Atomic"; 3435 3436/* 3437 * File name selection pattern 3438 */ 3439tSCC zDarwin_Ucred__AtomicList[] = 3440 "sys/ucred.h\0"; 3441/* 3442 * Machine/OS name selection pattern 3443 */ 3444tSCC* apzDarwin_Ucred__AtomicMachs[] = { 3445 "*-*-darwin*", 3446 (const char*)NULL }; 3447 3448/* 3449 * content selection pattern - do fix if pattern found 3450 */ 3451tSCC zDarwin_Ucred__AtomicSelect0[] = 3452 "_Atomic"; 3453 3454#define DARWIN_UCRED__ATOMIC_TEST_CT 1 3455static tTestDesc aDarwin_Ucred__AtomicTests[] = { 3456 { TT_EGREP, zDarwin_Ucred__AtomicSelect0, (regex_t*)NULL }, }; 3457 3458/* 3459 * Fix Command Arguments for Darwin_Ucred__Atomic 3460 */ 3461static const char* apzDarwin_Ucred__AtomicPatch[] = { 3462 "wrap", 3463 "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\ 3464# define _Atomic volatile\n\ 3465#endif\n", 3466 "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\ 3467# undef _Atomic\n\ 3468#endif\n", 3469 (char*)NULL }; 3470 3471/* * * * * * * * * * * * * * * * * * * * * * * * * * 3472 * 3473 * Description of Dec_Intern_Asm fix 3474 */ 3475tSCC zDec_Intern_AsmName[] = 3476 "dec_intern_asm"; 3477 3478/* 3479 * File name selection pattern 3480 */ 3481tSCC zDec_Intern_AsmList[] = 3482 "c_asm.h\0"; 3483/* 3484 * Machine/OS name selection pattern 3485 */ 3486#define apzDec_Intern_AsmMachs (const char**)NULL 3487#define DEC_INTERN_ASM_TEST_CT 0 3488#define aDec_Intern_AsmTests (tTestDesc*)NULL 3489 3490/* 3491 * Fix Command Arguments for Dec_Intern_Asm 3492 */ 3493static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z, 3494 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\ 3495#ifdef __DECC\n", 3496 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ 3497#endif\n", 3498 (char*)NULL }; 3499 3500/* * * * * * * * * * * * * * * * * * * * * * * * * * 3501 * 3502 * Description of Djgpp_Wchar_H fix 3503 */ 3504tSCC zDjgpp_Wchar_HName[] = 3505 "djgpp_wchar_h"; 3506 3507/* 3508 * File name selection pattern 3509 */ 3510#define zDjgpp_Wchar_HList (char*)NULL 3511/* 3512 * Machine/OS name selection pattern 3513 */ 3514#define apzDjgpp_Wchar_HMachs (const char**)NULL 3515 3516/* 3517 * content selection pattern - do fix if pattern found 3518 */ 3519tSCC zDjgpp_Wchar_HSelect0[] = 3520 "__DJ_wint_t"; 3521 3522/* 3523 * content bypass pattern - skip fix if pattern found 3524 */ 3525tSCC zDjgpp_Wchar_HBypass0[] = 3526 "sys/djtypes.h"; 3527 3528#define DJGPP_WCHAR_H_TEST_CT 2 3529static tTestDesc aDjgpp_Wchar_HTests[] = { 3530 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL }, 3531 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, }; 3532 3533/* 3534 * Fix Command Arguments for Djgpp_Wchar_H 3535 */ 3536static const char* apzDjgpp_Wchar_HPatch[] = { 3537 "format", 3538 "%0\n\ 3539#include <sys/djtypes.h>", 3540 "#include <stddef.h>", 3541 (char*)NULL }; 3542 3543/* * * * * * * * * * * * * * * * * * * * * * * * * * 3544 * 3545 * Description of Ecd_Cursor fix 3546 */ 3547tSCC zEcd_CursorName[] = 3548 "ecd_cursor"; 3549 3550/* 3551 * File name selection pattern 3552 */ 3553tSCC zEcd_CursorList[] = 3554 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0"; 3555/* 3556 * Machine/OS name selection pattern 3557 */ 3558#define apzEcd_CursorMachs (const char**)NULL 3559 3560/* 3561 * content selection pattern - do fix if pattern found 3562 */ 3563tSCC zEcd_CursorSelect0[] = 3564 "ecd\\.cursor"; 3565 3566#define ECD_CURSOR_TEST_CT 1 3567static tTestDesc aEcd_CursorTests[] = { 3568 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, }; 3569 3570/* 3571 * Fix Command Arguments for Ecd_Cursor 3572 */ 3573static const char* apzEcd_CursorPatch[] = { 3574 "format", 3575 "ecd_cursor", 3576 (char*)NULL }; 3577 3578/* * * * * * * * * * * * * * * * * * * * * * * * * * 3579 * 3580 * Description of Feraiseexcept_Nosse_Divbyzero fix 3581 */ 3582tSCC zFeraiseexcept_Nosse_DivbyzeroName[] = 3583 "feraiseexcept_nosse_divbyzero"; 3584 3585/* 3586 * File name selection pattern 3587 */ 3588tSCC zFeraiseexcept_Nosse_DivbyzeroList[] = 3589 "bits/fenv.h\0*/bits/fenv.h\0"; 3590/* 3591 * Machine/OS name selection pattern 3592 */ 3593tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = { 3594 "i[34567]86-*-linux*", 3595 "x86*-linux*", 3596 "amd64-*-linux*", 3597 (const char*)NULL }; 3598 3599/* 3600 * content selection pattern - do fix if pattern found 3601 */ 3602tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] = 3603 "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$"; 3604 3605/* 3606 * content bypass pattern - skip fix if pattern found 3607 */ 3608tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] = 3609 "\"fdivp .*; fwait\""; 3610 3611#define FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT 2 3612static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = { 3613 { TT_NEGREP, zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL }, 3614 { TT_EGREP, zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, }; 3615 3616/* 3617 * Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero 3618 */ 3619static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = { 3620 "format", 3621 "# ifdef __SSE_MATH__\n\ 3622%0\n\ 3623# else\n\ 3624%1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\ 3625%1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\ 3626# endif", 3627 (char*)NULL }; 3628 3629/* * * * * * * * * * * * * * * * * * * * * * * * * * 3630 * 3631 * Description of Feraiseexcept_Nosse_Invalid fix 3632 */ 3633tSCC zFeraiseexcept_Nosse_InvalidName[] = 3634 "feraiseexcept_nosse_invalid"; 3635 3636/* 3637 * File name selection pattern 3638 */ 3639tSCC zFeraiseexcept_Nosse_InvalidList[] = 3640 "bits/fenv.h\0*/bits/fenv.h\0"; 3641/* 3642 * Machine/OS name selection pattern 3643 */ 3644tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = { 3645 "i[34567]86-*-linux*", 3646 "x86*-linux*", 3647 "amd64-*-linux*", 3648 (const char*)NULL }; 3649 3650/* 3651 * content selection pattern - do fix if pattern found 3652 */ 3653tSCC zFeraiseexcept_Nosse_InvalidSelect0[] = 3654 "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$"; 3655 3656/* 3657 * content bypass pattern - skip fix if pattern found 3658 */ 3659tSCC zFeraiseexcept_Nosse_InvalidBypass0[] = 3660 "\"fdiv .*; fwait\""; 3661 3662#define FERAISEEXCEPT_NOSSE_INVALID_TEST_CT 2 3663static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = { 3664 { TT_NEGREP, zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL }, 3665 { TT_EGREP, zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, }; 3666 3667/* 3668 * Fix Command Arguments for Feraiseexcept_Nosse_Invalid 3669 */ 3670static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = { 3671 "format", 3672 "# ifdef __SSE_MATH__\n\ 3673%0\n\ 3674# else\n\ 3675%1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\ 3676%1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\ 3677# endif", 3678 (char*)NULL }; 3679 3680/* * * * * * * * * * * * * * * * * * * * * * * * * * 3681 * 3682 * Description of Freebsd_Gcc3_Breakage fix 3683 */ 3684tSCC zFreebsd_Gcc3_BreakageName[] = 3685 "freebsd_gcc3_breakage"; 3686 3687/* 3688 * File name selection pattern 3689 */ 3690tSCC zFreebsd_Gcc3_BreakageList[] = 3691 "sys/cdefs.h\0"; 3692/* 3693 * Machine/OS name selection pattern 3694 */ 3695tSCC* apzFreebsd_Gcc3_BreakageMachs[] = { 3696 "*-*-freebsd*", 3697 (const char*)NULL }; 3698 3699/* 3700 * content selection pattern - do fix if pattern found 3701 */ 3702tSCC zFreebsd_Gcc3_BreakageSelect0[] = 3703 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$"; 3704 3705/* 3706 * content bypass pattern - skip fix if pattern found 3707 */ 3708tSCC zFreebsd_Gcc3_BreakageBypass0[] = 3709 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)"; 3710 3711#define FREEBSD_GCC3_BREAKAGE_TEST_CT 2 3712static tTestDesc aFreebsd_Gcc3_BreakageTests[] = { 3713 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL }, 3714 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, }; 3715 3716/* 3717 * Fix Command Arguments for Freebsd_Gcc3_Breakage 3718 */ 3719static const char* apzFreebsd_Gcc3_BreakagePatch[] = { 3720 "format", 3721 "%0 || __GNUC__ >= 3", 3722 (char*)NULL }; 3723 3724/* * * * * * * * * * * * * * * * * * * * * * * * * * 3725 * 3726 * Description of Freebsd_Gcc4_Breakage fix 3727 */ 3728tSCC zFreebsd_Gcc4_BreakageName[] = 3729 "freebsd_gcc4_breakage"; 3730 3731/* 3732 * File name selection pattern 3733 */ 3734tSCC zFreebsd_Gcc4_BreakageList[] = 3735 "sys/cdefs.h\0"; 3736/* 3737 * Machine/OS name selection pattern 3738 */ 3739tSCC* apzFreebsd_Gcc4_BreakageMachs[] = { 3740 "*-*-freebsd*", 3741 (const char*)NULL }; 3742 3743/* 3744 * content selection pattern - do fix if pattern found 3745 */ 3746tSCC zFreebsd_Gcc4_BreakageSelect0[] = 3747 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$"; 3748 3749#define FREEBSD_GCC4_BREAKAGE_TEST_CT 1 3750static tTestDesc aFreebsd_Gcc4_BreakageTests[] = { 3751 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; 3752 3753/* 3754 * Fix Command Arguments for Freebsd_Gcc4_Breakage 3755 */ 3756static const char* apzFreebsd_Gcc4_BreakagePatch[] = { 3757 "format", 3758 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3", 3759 (char*)NULL }; 3760 3761/* * * * * * * * * * * * * * * * * * * * * * * * * * 3762 * 3763 * Description of Glibc_C99_Inline_1 fix 3764 */ 3765tSCC zGlibc_C99_Inline_1Name[] = 3766 "glibc_c99_inline_1"; 3767 3768/* 3769 * File name selection pattern 3770 */ 3771tSCC zGlibc_C99_Inline_1List[] = 3772 "features.h\0*/features.h\0"; 3773/* 3774 * Machine/OS name selection pattern 3775 */ 3776#define apzGlibc_C99_Inline_1Machs (const char**)NULL 3777 3778/* 3779 * content selection pattern - do fix if pattern found 3780 */ 3781tSCC zGlibc_C99_Inline_1Select0[] = 3782 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$"; 3783 3784#define GLIBC_C99_INLINE_1_TEST_CT 1 3785static tTestDesc aGlibc_C99_Inline_1Tests[] = { 3786 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, }; 3787 3788/* 3789 * Fix Command Arguments for Glibc_C99_Inline_1 3790 */ 3791static const char* apzGlibc_C99_Inline_1Patch[] = { 3792 "format", 3793 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)", 3794 (char*)NULL }; 3795 3796/* * * * * * * * * * * * * * * * * * * * * * * * * * 3797 * 3798 * Description of Glibc_C99_Inline_1a fix 3799 */ 3800tSCC zGlibc_C99_Inline_1aName[] = 3801 "glibc_c99_inline_1a"; 3802 3803/* 3804 * File name selection pattern 3805 */ 3806tSCC zGlibc_C99_Inline_1aList[] = 3807 "features.h\0*/features.h\0"; 3808/* 3809 * Machine/OS name selection pattern 3810 */ 3811#define apzGlibc_C99_Inline_1aMachs (const char**)NULL 3812 3813/* 3814 * content selection pattern - do fix if pattern found 3815 */ 3816tSCC zGlibc_C99_Inline_1aSelect0[] = 3817 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\ 3818(#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)"; 3819 3820#define GLIBC_C99_INLINE_1A_TEST_CT 1 3821static tTestDesc aGlibc_C99_Inline_1aTests[] = { 3822 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, }; 3823 3824/* 3825 * Fix Command Arguments for Glibc_C99_Inline_1a 3826 */ 3827static const char* apzGlibc_C99_Inline_1aPatch[] = { 3828 "format", 3829 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\ 3830%2", 3831 (char*)NULL }; 3832 3833/* * * * * * * * * * * * * * * * * * * * * * * * * * 3834 * 3835 * Description of Glibc_C99_Inline_2 fix 3836 */ 3837tSCC zGlibc_C99_Inline_2Name[] = 3838 "glibc_c99_inline_2"; 3839 3840/* 3841 * File name selection pattern 3842 */ 3843tSCC zGlibc_C99_Inline_2List[] = 3844 "sys/stat.h\0*/sys/stat.h\0"; 3845/* 3846 * Machine/OS name selection pattern 3847 */ 3848#define apzGlibc_C99_Inline_2Machs (const char**)NULL 3849 3850/* 3851 * content selection pattern - do fix if pattern found 3852 */ 3853tSCC zGlibc_C99_Inline_2Select0[] = 3854 "extern __inline__ int"; 3855 3856#define GLIBC_C99_INLINE_2_TEST_CT 1 3857static tTestDesc aGlibc_C99_Inline_2Tests[] = { 3858 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, }; 3859 3860/* 3861 * Fix Command Arguments for Glibc_C99_Inline_2 3862 */ 3863static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z, 3864 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ 3865extern\\\n\ 3866#endif\\\n\ 3867__inline__ int \\1/", 3868 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ 3869extern\\\n\ 3870#endif\\\n\ 3871__inline__ int \\1/", 3872 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ 3873extern\\\n\ 3874#endif\\\n\ 3875__inline__ int \\1/", 3876 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ 3877extern\\\n\ 3878#endif\\\n\ 3879__inline__ int __REDIRECT\\1 (\\2/", 3880 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\ 3881extern\\\n\ 3882#endif\\\n\ 3883__inline__ int __REDIRECT\\1 (\\2/", 3884 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\ 3885extern\\\n\ 3886#endif\\\n\ 3887__inline__ int/", 3888 (char*)NULL }; 3889 3890/* * * * * * * * * * * * * * * * * * * * * * * * * * 3891 * 3892 * Description of Glibc_C99_Inline_3 fix 3893 */ 3894tSCC zGlibc_C99_Inline_3Name[] = 3895 "glibc_c99_inline_3"; 3896 3897/* 3898 * File name selection pattern 3899 */ 3900tSCC zGlibc_C99_Inline_3List[] = 3901 "bits/string2.h\0*/bits/string2.h\0"; 3902/* 3903 * Machine/OS name selection pattern 3904 */ 3905#define apzGlibc_C99_Inline_3Machs (const char**)NULL 3906 3907/* 3908 * content selection pattern - do fix if pattern found 3909 */ 3910tSCC zGlibc_C99_Inline_3Select0[] = 3911 "extern __inline"; 3912 3913/* 3914 * content bypass pattern - skip fix if pattern found 3915 */ 3916tSCC zGlibc_C99_Inline_3Bypass0[] = 3917 "__extern_inline|__GNU_STDC_INLINE__"; 3918 3919#define GLIBC_C99_INLINE_3_TEST_CT 2 3920static tTestDesc aGlibc_C99_Inline_3Tests[] = { 3921 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL }, 3922 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, }; 3923 3924/* 3925 * Fix Command Arguments for Glibc_C99_Inline_3 3926 */ 3927static const char* apzGlibc_C99_Inline_3Patch[] = { 3928 "format", 3929 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)", 3930 "^# ifdef __cplusplus$", 3931 (char*)NULL }; 3932 3933/* * * * * * * * * * * * * * * * * * * * * * * * * * 3934 * 3935 * Description of Glibc_C99_Inline_4 fix 3936 */ 3937tSCC zGlibc_C99_Inline_4Name[] = 3938 "glibc_c99_inline_4"; 3939 3940/* 3941 * File name selection pattern 3942 */ 3943tSCC zGlibc_C99_Inline_4List[] = 3944 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0"; 3945/* 3946 * Machine/OS name selection pattern 3947 */ 3948#define apzGlibc_C99_Inline_4Machs (const char**)NULL 3949 3950/* 3951 * content selection pattern - do fix if pattern found 3952 */ 3953tSCC zGlibc_C99_Inline_4Select0[] = 3954 "(^| )extern __inline"; 3955 3956/* 3957 * content bypass pattern - skip fix if pattern found 3958 */ 3959tSCC zGlibc_C99_Inline_4Bypass0[] = 3960 "__extern_inline|__gnu_inline__"; 3961 3962#define GLIBC_C99_INLINE_4_TEST_CT 2 3963static tTestDesc aGlibc_C99_Inline_4Tests[] = { 3964 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL }, 3965 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, }; 3966 3967/* 3968 * Fix Command Arguments for Glibc_C99_Inline_4 3969 */ 3970static const char* apzGlibc_C99_Inline_4Patch[] = { 3971 "format", 3972 "%0 __attribute__ ((__gnu_inline__))", 3973 (char*)NULL }; 3974 3975/* * * * * * * * * * * * * * * * * * * * * * * * * * 3976 * 3977 * Description of Glibc_Mutex_Init fix 3978 */ 3979tSCC zGlibc_Mutex_InitName[] = 3980 "glibc_mutex_init"; 3981 3982/* 3983 * File name selection pattern 3984 */ 3985tSCC zGlibc_Mutex_InitList[] = 3986 "pthread.h\0"; 3987/* 3988 * Machine/OS name selection pattern 3989 */ 3990#define apzGlibc_Mutex_InitMachs (const char**)NULL 3991 3992/* 3993 * content selection pattern - do fix if pattern found 3994 */ 3995tSCC zGlibc_Mutex_InitSelect0[] = 3996 "\\{ *\\{ *0, *\\} *\\}"; 3997 3998#define GLIBC_MUTEX_INIT_TEST_CT 1 3999static tTestDesc aGlibc_Mutex_InitTests[] = { 4000 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, }; 4001 4002/* 4003 * Fix Command Arguments for Glibc_Mutex_Init 4004 */ 4005static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z, 4006 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\ 4007N\n\ 4008s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\ 4009}", 4010 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/", 4011 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/", 4012 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/", 4013 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/", 4014 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/", 4015 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/", 4016 "-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\ 4017# \\1\\\n\ 4018 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\ 4019# else\\\n\ 4020# \\1\\\n\ 4021 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\ 4022# endif/", 4023 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/", 4024 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/", 4025 (char*)NULL }; 4026 4027/* * * * * * * * * * * * * * * * * * * * * * * * * * 4028 * 4029 * Description of Glibc_Stdint fix 4030 */ 4031tSCC zGlibc_StdintName[] = 4032 "glibc_stdint"; 4033 4034/* 4035 * File name selection pattern 4036 */ 4037tSCC zGlibc_StdintList[] = 4038 "stdint.h\0"; 4039/* 4040 * Machine/OS name selection pattern 4041 */ 4042#define apzGlibc_StdintMachs (const char**)NULL 4043 4044/* 4045 * content selection pattern - do fix if pattern found 4046 */ 4047tSCC zGlibc_StdintSelect0[] = 4048 "GNU C Library"; 4049 4050#define GLIBC_STDINT_TEST_CT 1 4051static tTestDesc aGlibc_StdintTests[] = { 4052 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, }; 4053 4054/* 4055 * Fix Command Arguments for Glibc_Stdint 4056 */ 4057static const char* apzGlibc_StdintPatch[] = { 4058 "format", 4059 "# define UINT8_C(c)\tc\n\ 4060# define UINT16_C(c)\tc", 4061 "# define UINT8_C\\(c\\)\tc ## U\n\ 4062# define UINT16_C\\(c\\)\tc ## U", 4063 (char*)NULL }; 4064 4065/* * * * * * * * * * * * * * * * * * * * * * * * * * 4066 * 4067 * Description of Glibc_Strncpy fix 4068 */ 4069tSCC zGlibc_StrncpyName[] = 4070 "glibc_strncpy"; 4071 4072/* 4073 * File name selection pattern 4074 */ 4075tSCC zGlibc_StrncpyList[] = 4076 "bits/string2.h\0*/bits/string2.h\0"; 4077/* 4078 * Machine/OS name selection pattern 4079 */ 4080#define apzGlibc_StrncpyMachs (const char**)NULL 4081 4082/* 4083 * content bypass pattern - skip fix if pattern found 4084 */ 4085tSCC zGlibc_StrncpyBypass0[] = 4086 "__builtin_strncpy"; 4087 4088#define GLIBC_STRNCPY_TEST_CT 1 4089static tTestDesc aGlibc_StrncpyTests[] = { 4090 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, }; 4091 4092/* 4093 * Fix Command Arguments for Glibc_Strncpy 4094 */ 4095static const char* apzGlibc_StrncpyPatch[] = { 4096 "format", 4097 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)", 4098 "# define strncpy([^\n\ 4099]*\\\\\n\ 4100)*[^\n\ 4101]*", 4102 (char*)NULL }; 4103 4104/* * * * * * * * * * * * * * * * * * * * * * * * * * 4105 * 4106 * Description of Glibc_Tgmath fix 4107 */ 4108tSCC zGlibc_TgmathName[] = 4109 "glibc_tgmath"; 4110 4111/* 4112 * File name selection pattern 4113 */ 4114tSCC zGlibc_TgmathList[] = 4115 "tgmath.h\0"; 4116/* 4117 * Machine/OS name selection pattern 4118 */ 4119#define apzGlibc_TgmathMachs (const char**)NULL 4120 4121/* 4122 * content selection pattern - do fix if pattern found 4123 */ 4124tSCC zGlibc_TgmathSelect0[] = 4125 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)"; 4126 4127/* 4128 * content bypass pattern - skip fix if pattern found 4129 */ 4130tSCC zGlibc_TgmathBypass0[] = 4131 "__floating_type\\(type\\) \\\\\n\ 4132.*__builtin_classify_type"; 4133 4134#define GLIBC_TGMATH_TEST_CT 2 4135static tTestDesc aGlibc_TgmathTests[] = { 4136 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL }, 4137 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, }; 4138 4139/* 4140 * Fix Command Arguments for Glibc_Tgmath 4141 */ 4142static const char* apzGlibc_TgmathPatch[] = { 4143 "format", 4144 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))", 4145 (char*)NULL }; 4146 4147/* * * * * * * * * * * * * * * * * * * * * * * * * * 4148 * 4149 * Description of Gnu_Types fix 4150 */ 4151tSCC zGnu_TypesName[] = 4152 "gnu_types"; 4153 4154/* 4155 * File name selection pattern 4156 */ 4157tSCC zGnu_TypesList[] = 4158 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0"; 4159/* 4160 * Machine/OS name selection pattern 4161 */ 4162tSCC* apzGnu_TypesMachs[] = { 4163 "*-*-solaris2.1[0-9]*", 4164 (const char*)NULL }; 4165 4166/* 4167 * content selection pattern - do fix if pattern found 4168 */ 4169tSCC zGnu_TypesSelect0[] = 4170 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;"; 4171 4172/* 4173 * content bypass pattern - skip fix if pattern found 4174 */ 4175tSCC zGnu_TypesBypass0[] = 4176 "_GCC_(PTRDIFF|SIZE|WCHAR)_T"; 4177 4178#define GNU_TYPES_TEST_CT 2 4179static tTestDesc aGnu_TypesTests[] = { 4180 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL }, 4181 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, }; 4182 4183/* 4184 * Fix Command Arguments for Gnu_Types 4185 */ 4186static const char* apzGnu_TypesPatch[] = { 4187 "gnu_type", 4188 (char*)NULL }; 4189 4190/* * * * * * * * * * * * * * * * * * * * * * * * * * 4191 * 4192 * Description of Hp_Inline fix 4193 */ 4194tSCC zHp_InlineName[] = 4195 "hp_inline"; 4196 4197/* 4198 * File name selection pattern 4199 */ 4200tSCC zHp_InlineList[] = 4201 "sys/spinlock.h\0machine/machparam.h\0"; 4202/* 4203 * Machine/OS name selection pattern 4204 */ 4205#define apzHp_InlineMachs (const char**)NULL 4206 4207/* 4208 * content selection pattern - do fix if pattern found 4209 */ 4210tSCC zHp_InlineSelect0[] = 4211 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/"; 4212 4213#define HP_INLINE_TEST_CT 1 4214static tTestDesc aHp_InlineTests[] = { 4215 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, }; 4216 4217/* 4218 * Fix Command Arguments for Hp_Inline 4219 */ 4220static const char* apzHp_InlinePatch[] = { 4221 "format", 4222 "%1<machine/%2.h>", 4223 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"", 4224 (char*)NULL }; 4225 4226/* * * * * * * * * * * * * * * * * * * * * * * * * * 4227 * 4228 * Description of Hp_Sysfile fix 4229 */ 4230tSCC zHp_SysfileName[] = 4231 "hp_sysfile"; 4232 4233/* 4234 * File name selection pattern 4235 */ 4236tSCC zHp_SysfileList[] = 4237 "sys/file.h\0"; 4238/* 4239 * Machine/OS name selection pattern 4240 */ 4241#define apzHp_SysfileMachs (const char**)NULL 4242 4243/* 4244 * content selection pattern - do fix if pattern found 4245 */ 4246tSCC zHp_SysfileSelect0[] = 4247 "HPUX_SOURCE"; 4248 4249#define HP_SYSFILE_TEST_CT 1 4250static tTestDesc aHp_SysfileTests[] = { 4251 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, }; 4252 4253/* 4254 * Fix Command Arguments for Hp_Sysfile 4255 */ 4256static const char* apzHp_SysfilePatch[] = { 4257 "format", 4258 "(struct file *, ...)", 4259 "\\(\\.\\.\\.\\)", 4260 (char*)NULL }; 4261 4262/* * * * * * * * * * * * * * * * * * * * * * * * * * 4263 * 4264 * Description of Hppa_Hpux_Fp_Macros fix 4265 */ 4266tSCC zHppa_Hpux_Fp_MacrosName[] = 4267 "hppa_hpux_fp_macros"; 4268 4269/* 4270 * File name selection pattern 4271 */ 4272tSCC zHppa_Hpux_Fp_MacrosList[] = 4273 "math.h\0"; 4274/* 4275 * Machine/OS name selection pattern 4276 */ 4277tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = { 4278 "hppa*-hp-hpux11*", 4279 (const char*)NULL }; 4280 4281/* 4282 * content selection pattern - do fix if pattern found 4283 */ 4284tSCC zHppa_Hpux_Fp_MacrosSelect0[] = 4285 "#[ \t]*define[ \t]*FP_NORMAL.*\n\ 4286#[ \t]*define[ \t]*FP_ZERO.*\n\ 4287#[ \t]*define[ \t]*FP_INFINITE.*\n\ 4288#[ \t]*define[ \t]*FP_SUBNORMAL.*\n\ 4289#[ \t]*define[ \t]*FP_NAN.*\n"; 4290 4291#define HPPA_HPUX_FP_MACROS_TEST_CT 1 4292static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = { 4293 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, }; 4294 4295/* 4296 * Fix Command Arguments for Hppa_Hpux_Fp_Macros 4297 */ 4298static const char* apzHppa_Hpux_Fp_MacrosPatch[] = { 4299 "format", 4300 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\ 4301#if defined(_INCLUDE_HPUX_SOURCE) || \\\n\ 4302 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\ 4303%0#endif\n\n\ 4304#ifdef _INCLUDE_HPUX_SOURCE\n", 4305 (char*)NULL }; 4306 4307/* * * * * * * * * * * * * * * * * * * * * * * * * * 4308 * 4309 * Description of Hpux10_Cpp_Pow_Inline fix 4310 */ 4311tSCC zHpux10_Cpp_Pow_InlineName[] = 4312 "hpux10_cpp_pow_inline"; 4313 4314/* 4315 * File name selection pattern 4316 */ 4317tSCC zHpux10_Cpp_Pow_InlineList[] = 4318 "fixinc-test-limits.h\0math.h\0"; 4319/* 4320 * Machine/OS name selection pattern 4321 */ 4322#define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL 4323 4324/* 4325 * content selection pattern - do fix if pattern found 4326 */ 4327tSCC zHpux10_Cpp_Pow_InlineSelect0[] = 4328 "^# +ifdef +__cplusplus\n\ 4329 +\\}\n\ 4330 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\ 4331[ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\ 4332 +\\}\n\ 4333 +extern +\"C\" +\\{\n\ 4334#else\n\ 4335# +endif"; 4336 4337#define HPUX10_CPP_POW_INLINE_TEST_CT 1 4338static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = { 4339 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; 4340 4341/* 4342 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline 4343 */ 4344static const char* apzHpux10_Cpp_Pow_InlinePatch[] = { 4345 "format", 4346 "", 4347 (char*)NULL }; 4348 4349/* * * * * * * * * * * * * * * * * * * * * * * * * * 4350 * 4351 * Description of Hpux11_Cpp_Pow_Inline fix 4352 */ 4353tSCC zHpux11_Cpp_Pow_InlineName[] = 4354 "hpux11_cpp_pow_inline"; 4355 4356/* 4357 * File name selection pattern 4358 */ 4359tSCC zHpux11_Cpp_Pow_InlineList[] = 4360 "math.h\0"; 4361/* 4362 * Machine/OS name selection pattern 4363 */ 4364#define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL 4365 4366/* 4367 * content selection pattern - do fix if pattern found 4368 */ 4369tSCC zHpux11_Cpp_Pow_InlineSelect0[] = 4370 " +inline double pow\\(double d,int expon\\) \\{\n\ 4371 +return pow\\(d, \\(double\\)expon\\);\n\ 4372 +\\}\n"; 4373 4374#define HPUX11_CPP_POW_INLINE_TEST_CT 1 4375static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = { 4376 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; 4377 4378/* 4379 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline 4380 */ 4381static const char* apzHpux11_Cpp_Pow_InlinePatch[] = { 4382 "format", 4383 "", 4384 (char*)NULL }; 4385 4386/* * * * * * * * * * * * * * * * * * * * * * * * * * 4387 * 4388 * Description of Hpux10_Ctype_Declarations1 fix 4389 */ 4390tSCC zHpux10_Ctype_Declarations1Name[] = 4391 "hpux10_ctype_declarations1"; 4392 4393/* 4394 * File name selection pattern 4395 */ 4396tSCC zHpux10_Ctype_Declarations1List[] = 4397 "ctype.h\0"; 4398/* 4399 * Machine/OS name selection pattern 4400 */ 4401#define apzHpux10_Ctype_Declarations1Machs (const char**)NULL 4402 4403/* 4404 * content selection pattern - do fix if pattern found 4405 */ 4406tSCC zHpux10_Ctype_Declarations1Select0[] = 4407 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)"; 4408 4409/* 4410 * content bypass pattern - skip fix if pattern found 4411 */ 4412tSCC zHpux10_Ctype_Declarations1Bypass0[] = 4413 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\("; 4414 4415#define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2 4416static tTestDesc aHpux10_Ctype_Declarations1Tests[] = { 4417 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL }, 4418 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, }; 4419 4420/* 4421 * Fix Command Arguments for Hpux10_Ctype_Declarations1 4422 */ 4423static const char* apzHpux10_Ctype_Declarations1Patch[] = { 4424 "format", 4425 "#ifdef _PROTOTYPES\n\ 4426extern int __tolower(int);\n\ 4427extern int __toupper(int);\n\ 4428#else /* NOT _PROTOTYPES */\n\ 4429extern int __tolower();\n\ 4430extern int __toupper();\n\ 4431#endif /* _PROTOTYPES */\n\n\ 4432%0\n", 4433 (char*)NULL }; 4434 4435/* * * * * * * * * * * * * * * * * * * * * * * * * * 4436 * 4437 * Description of Hpux10_Ctype_Declarations2 fix 4438 */ 4439tSCC zHpux10_Ctype_Declarations2Name[] = 4440 "hpux10_ctype_declarations2"; 4441 4442/* 4443 * File name selection pattern 4444 */ 4445tSCC zHpux10_Ctype_Declarations2List[] = 4446 "ctype.h\0"; 4447/* 4448 * Machine/OS name selection pattern 4449 */ 4450#define apzHpux10_Ctype_Declarations2Machs (const char**)NULL 4451 4452/* 4453 * content selection pattern - do fix if pattern found 4454 */ 4455tSCC zHpux10_Ctype_Declarations2Select0[] = 4456 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)"; 4457 4458/* 4459 * content bypass pattern - skip fix if pattern found 4460 */ 4461tSCC zHpux10_Ctype_Declarations2Bypass0[] = 4462 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\("; 4463 4464#define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2 4465static tTestDesc aHpux10_Ctype_Declarations2Tests[] = { 4466 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL }, 4467 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, }; 4468 4469/* 4470 * Fix Command Arguments for Hpux10_Ctype_Declarations2 4471 */ 4472static const char* apzHpux10_Ctype_Declarations2Patch[] = { 4473 "format", 4474 "%0\n\n\ 4475#ifdef _PROTOTYPES\n\ 4476 extern int _isalnum(int);\n\ 4477 extern int _isalpha(int);\n\ 4478 extern int _iscntrl(int);\n\ 4479 extern int _isdigit(int);\n\ 4480 extern int _isgraph(int);\n\ 4481 extern int _islower(int);\n\ 4482 extern int _isprint(int);\n\ 4483 extern int _ispunct(int);\n\ 4484 extern int _isspace(int);\n\ 4485 extern int _isupper(int);\n\ 4486 extern int _isxdigit(int);\n\ 4487# else /* not _PROTOTYPES */\n\ 4488 extern int _isalnum();\n\ 4489 extern int _isalpha();\n\ 4490 extern int _iscntrl();\n\ 4491 extern int _isdigit();\n\ 4492 extern int _isgraph();\n\ 4493 extern int _islower();\n\ 4494 extern int _isprint();\n\ 4495 extern int _ispunct();\n\ 4496 extern int _isspace();\n\ 4497 extern int _isupper();\n\ 4498 extern int _isxdigit();\n\ 4499#endif /* _PROTOTYPES */\n", 4500 (char*)NULL }; 4501 4502/* * * * * * * * * * * * * * * * * * * * * * * * * * 4503 * 4504 * Description of Hpux10_Stdio_Declarations fix 4505 */ 4506tSCC zHpux10_Stdio_DeclarationsName[] = 4507 "hpux10_stdio_declarations"; 4508 4509/* 4510 * File name selection pattern 4511 */ 4512tSCC zHpux10_Stdio_DeclarationsList[] = 4513 "stdio.h\0"; 4514/* 4515 * Machine/OS name selection pattern 4516 */ 4517#define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL 4518 4519/* 4520 * content selection pattern - do fix if pattern found 4521 */ 4522tSCC zHpux10_Stdio_DeclarationsSelect0[] = 4523 "^#[ \t]*define _iob[ \t]*__iob"; 4524 4525/* 4526 * content bypass pattern - skip fix if pattern found 4527 */ 4528tSCC zHpux10_Stdio_DeclarationsBypass0[] = 4529 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\("; 4530 4531#define HPUX10_STDIO_DECLARATIONS_TEST_CT 2 4532static tTestDesc aHpux10_Stdio_DeclarationsTests[] = { 4533 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL }, 4534 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, }; 4535 4536/* 4537 * Fix Command Arguments for Hpux10_Stdio_Declarations 4538 */ 4539static const char* apzHpux10_Stdio_DeclarationsPatch[] = { 4540 "format", 4541 "%0\n\n\ 4542# if defined(__STDC__) || defined(__cplusplus)\n\ 4543 extern int snprintf(char *, size_t, const char *, ...);\n\ 4544 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\ 4545# else /* not __STDC__) || __cplusplus */\n\ 4546 extern int snprintf();\n\ 4547 extern int vsnprintf();\n\ 4548# endif /* __STDC__) || __cplusplus */\n", 4549 (char*)NULL }; 4550 4551/* * * * * * * * * * * * * * * * * * * * * * * * * * 4552 * 4553 * Description of Hppa_Hpux11_Alloca fix 4554 */ 4555tSCC zHppa_Hpux11_AllocaName[] = 4556 "hppa_hpux11_alloca"; 4557 4558/* 4559 * File name selection pattern 4560 */ 4561tSCC zHppa_Hpux11_AllocaList[] = 4562 "alloca.h\0"; 4563/* 4564 * Machine/OS name selection pattern 4565 */ 4566tSCC* apzHppa_Hpux11_AllocaMachs[] = { 4567 "hppa*-*-hpux11*", 4568 (const char*)NULL }; 4569 4570/* 4571 * content selection pattern - do fix if pattern found 4572 */ 4573tSCC zHppa_Hpux11_AllocaSelect0[] = 4574 "#ifndef _STDDEF_INCLUDED"; 4575 4576#define HPPA_HPUX11_ALLOCA_TEST_CT 1 4577static tTestDesc aHppa_Hpux11_AllocaTests[] = { 4578 { TT_EGREP, zHppa_Hpux11_AllocaSelect0, (regex_t*)NULL }, }; 4579 4580/* 4581 * Fix Command Arguments for Hppa_Hpux11_Alloca 4582 */ 4583static const char* apzHppa_Hpux11_AllocaPatch[] = { 4584 "format", 4585 "#ifndef _SYS_STDSYMS_INCLUDED\n\ 4586# include <sys/stdsyms.h>\n\ 4587#endif /* _SYS_STDSYMS_INCLUDED */\n\n\ 4588%0", 4589 (char*)NULL }; 4590 4591/* * * * * * * * * * * * * * * * * * * * * * * * * * 4592 * 4593 * Description of Hpux11_Abs fix 4594 */ 4595tSCC zHpux11_AbsName[] = 4596 "hpux11_abs"; 4597 4598/* 4599 * File name selection pattern 4600 */ 4601tSCC zHpux11_AbsList[] = 4602 "stdlib.h\0"; 4603/* 4604 * Machine/OS name selection pattern 4605 */ 4606tSCC* apzHpux11_AbsMachs[] = { 4607 "*-hp-hpux11*", 4608 (const char*)NULL }; 4609 4610/* 4611 * content selection pattern - do fix if pattern found 4612 */ 4613tSCC zHpux11_AbsSelect0[] = 4614 "ifndef _MATH_INCLUDED"; 4615 4616#define HPUX11_ABS_TEST_CT 1 4617static tTestDesc aHpux11_AbsTests[] = { 4618 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, }; 4619 4620/* 4621 * Fix Command Arguments for Hpux11_Abs 4622 */ 4623static const char* apzHpux11_AbsPatch[] = { 4624 "format", 4625 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)", 4626 (char*)NULL }; 4627 4628/* * * * * * * * * * * * * * * * * * * * * * * * * * 4629 * 4630 * Description of Hpux11_Lwp_Rwlock_Valid fix 4631 */ 4632tSCC zHpux11_Lwp_Rwlock_ValidName[] = 4633 "hpux11_lwp_rwlock_valid"; 4634 4635/* 4636 * File name selection pattern 4637 */ 4638tSCC zHpux11_Lwp_Rwlock_ValidList[] = 4639 "sys/pthread.h\0"; 4640/* 4641 * Machine/OS name selection pattern 4642 */ 4643tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = { 4644 "*-hp-hpux11*", 4645 (const char*)NULL }; 4646 4647/* 4648 * content selection pattern - do fix if pattern found 4649 */ 4650tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] = 4651 "#define __LWP_RWLOCK_VALID[ \t]*0x8c91"; 4652 4653#define HPUX11_LWP_RWLOCK_VALID_TEST_CT 1 4654static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = { 4655 { TT_EGREP, zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, }; 4656 4657/* 4658 * Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid 4659 */ 4660static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = { 4661 "format", 4662 "#define __LWP_RWLOCK_VALID -29551", 4663 (char*)NULL }; 4664 4665/* * * * * * * * * * * * * * * * * * * * * * * * * * 4666 * 4667 * Description of Hpux11_Extern_Sendfile fix 4668 */ 4669tSCC zHpux11_Extern_SendfileName[] = 4670 "hpux11_extern_sendfile"; 4671 4672/* 4673 * File name selection pattern 4674 */ 4675tSCC zHpux11_Extern_SendfileList[] = 4676 "sys/socket.h\0"; 4677/* 4678 * Machine/OS name selection pattern 4679 */ 4680tSCC* apzHpux11_Extern_SendfileMachs[] = { 4681 "*-hp-hpux11.[12]*", 4682 (const char*)NULL }; 4683 4684/* 4685 * content selection pattern - do fix if pattern found 4686 */ 4687tSCC zHpux11_Extern_SendfileSelect0[] = 4688 "^[ \t]*extern sbsize_t sendfile.*\n\ 4689.*, int\\)\\);\n"; 4690 4691#define HPUX11_EXTERN_SENDFILE_TEST_CT 1 4692static tTestDesc aHpux11_Extern_SendfileTests[] = { 4693 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, }; 4694 4695/* 4696 * Fix Command Arguments for Hpux11_Extern_Sendfile 4697 */ 4698static const char* apzHpux11_Extern_SendfilePatch[] = { 4699 "format", 4700 "#ifndef _APP32_64BIT_OFF_T\n\ 4701%0#endif\n", 4702 (char*)NULL }; 4703 4704/* * * * * * * * * * * * * * * * * * * * * * * * * * 4705 * 4706 * Description of Hpux11_Extern_Sendpath fix 4707 */ 4708tSCC zHpux11_Extern_SendpathName[] = 4709 "hpux11_extern_sendpath"; 4710 4711/* 4712 * File name selection pattern 4713 */ 4714tSCC zHpux11_Extern_SendpathList[] = 4715 "sys/socket.h\0"; 4716/* 4717 * Machine/OS name selection pattern 4718 */ 4719tSCC* apzHpux11_Extern_SendpathMachs[] = { 4720 "*-hp-hpux11.[12]*", 4721 (const char*)NULL }; 4722 4723/* 4724 * content selection pattern - do fix if pattern found 4725 */ 4726tSCC zHpux11_Extern_SendpathSelect0[] = 4727 "^[ \t]*extern sbsize_t sendpath.*\n\ 4728.*, int\\)\\);\n"; 4729 4730#define HPUX11_EXTERN_SENDPATH_TEST_CT 1 4731static tTestDesc aHpux11_Extern_SendpathTests[] = { 4732 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, }; 4733 4734/* 4735 * Fix Command Arguments for Hpux11_Extern_Sendpath 4736 */ 4737static const char* apzHpux11_Extern_SendpathPatch[] = { 4738 "format", 4739 "#ifndef _APP32_64BIT_OFF_T\n\ 4740%0#endif\n", 4741 (char*)NULL }; 4742 4743/* * * * * * * * * * * * * * * * * * * * * * * * * * 4744 * 4745 * Description of Hpux11_Fabsf fix 4746 */ 4747tSCC zHpux11_FabsfName[] = 4748 "hpux11_fabsf"; 4749 4750/* 4751 * File name selection pattern 4752 */ 4753tSCC zHpux11_FabsfList[] = 4754 "math.h\0"; 4755/* 4756 * Machine/OS name selection pattern 4757 */ 4758tSCC* apzHpux11_FabsfMachs[] = { 4759 "*-hp-hpux11*", 4760 (const char*)NULL }; 4761 4762/* 4763 * content selection pattern - do fix if pattern found 4764 */ 4765tSCC zHpux11_FabsfSelect0[] = 4766 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*"; 4767 4768#define HPUX11_FABSF_TEST_CT 1 4769static tTestDesc aHpux11_FabsfTests[] = { 4770 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, }; 4771 4772/* 4773 * Fix Command Arguments for Hpux11_Fabsf 4774 */ 4775static const char* apzHpux11_FabsfPatch[] = { 4776 "format", 4777 "#ifndef __cplusplus\n\ 4778%0\n\ 4779#endif", 4780 (char*)NULL }; 4781 4782/* * * * * * * * * * * * * * * * * * * * * * * * * * 4783 * 4784 * Description of Hpux11_Pthread_Pointer fix 4785 */ 4786tSCC zHpux11_Pthread_PointerName[] = 4787 "hpux11_pthread_pointer"; 4788 4789/* 4790 * File name selection pattern 4791 */ 4792tSCC zHpux11_Pthread_PointerList[] = 4793 "sys/pthread.h\0"; 4794/* 4795 * Machine/OS name selection pattern 4796 */ 4797tSCC* apzHpux11_Pthread_PointerMachs[] = { 4798 "*-hp-hpux11.[0-3]*", 4799 (const char*)NULL }; 4800 4801/* 4802 * content selection pattern - do fix if pattern found 4803 */ 4804tSCC zHpux11_Pthread_PointerSelect0[] = 4805 "(void[ \t]*\\*)(m|c|rw)(_ptr)"; 4806 4807#define HPUX11_PTHREAD_POINTER_TEST_CT 1 4808static tTestDesc aHpux11_Pthread_PointerTests[] = { 4809 { TT_EGREP, zHpux11_Pthread_PointerSelect0, (regex_t*)NULL }, }; 4810 4811/* 4812 * Fix Command Arguments for Hpux11_Pthread_Pointer 4813 */ 4814static const char* apzHpux11_Pthread_PointerPatch[] = { 4815 "format", 4816 "long\t%2%3", 4817 (char*)NULL }; 4818 4819/* * * * * * * * * * * * * * * * * * * * * * * * * * 4820 * 4821 * Description of Hpux11_Pthread_Const fix 4822 */ 4823tSCC zHpux11_Pthread_ConstName[] = 4824 "hpux11_pthread_const"; 4825 4826/* 4827 * File name selection pattern 4828 */ 4829tSCC zHpux11_Pthread_ConstList[] = 4830 "sys/pthread.h\0"; 4831/* 4832 * Machine/OS name selection pattern 4833 */ 4834tSCC* apzHpux11_Pthread_ConstMachs[] = { 4835 "*-hp-hpux11.[0-3]*", 4836 (const char*)NULL }; 4837 4838/* 4839 * content selection pattern - do fix if pattern found 4840 */ 4841tSCC zHpux11_Pthread_ConstSelect0[] = 4842 "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))"; 4843 4844#define HPUX11_PTHREAD_CONST_TEST_CT 1 4845static tTestDesc aHpux11_Pthread_ConstTests[] = { 4846 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, }; 4847 4848/* 4849 * Fix Command Arguments for Hpux11_Pthread_Const 4850 */ 4851static const char* apzHpux11_Pthread_ConstPatch[] = { 4852 "format", 4853 "%11", 4854 (char*)NULL }; 4855 4856/* * * * * * * * * * * * * * * * * * * * * * * * * * 4857 * 4858 * Description of Hpux11_Size_T fix 4859 */ 4860tSCC zHpux11_Size_TName[] = 4861 "hpux11_size_t"; 4862 4863/* 4864 * File name selection pattern 4865 */ 4866#define zHpux11_Size_TList (char*)NULL 4867/* 4868 * Machine/OS name selection pattern 4869 */ 4870tSCC* apzHpux11_Size_TMachs[] = { 4871 "*-hp-hpux11*", 4872 (const char*)NULL }; 4873 4874/* 4875 * content selection pattern - do fix if pattern found 4876 */ 4877tSCC zHpux11_Size_TSelect0[] = 4878 "__size_t"; 4879 4880#define HPUX11_SIZE_T_TEST_CT 1 4881static tTestDesc aHpux11_Size_TTests[] = { 4882 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, }; 4883 4884/* 4885 * Fix Command Arguments for Hpux11_Size_T 4886 */ 4887static const char* apzHpux11_Size_TPatch[] = { 4888 "format", 4889 "_hpux_size_t", 4890 (char*)NULL }; 4891 4892/* * * * * * * * * * * * * * * * * * * * * * * * * * 4893 * 4894 * Description of Hpux11_Snprintf fix 4895 */ 4896tSCC zHpux11_SnprintfName[] = 4897 "hpux11_snprintf"; 4898 4899/* 4900 * File name selection pattern 4901 */ 4902tSCC zHpux11_SnprintfList[] = 4903 "stdio.h\0"; 4904/* 4905 * Machine/OS name selection pattern 4906 */ 4907#define apzHpux11_SnprintfMachs (const char**)NULL 4908 4909/* 4910 * content selection pattern - do fix if pattern found 4911 */ 4912tSCC zHpux11_SnprintfSelect0[] = 4913 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)"; 4914 4915#define HPUX11_SNPRINTF_TEST_CT 1 4916static tTestDesc aHpux11_SnprintfTests[] = { 4917 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, }; 4918 4919/* 4920 * Fix Command Arguments for Hpux11_Snprintf 4921 */ 4922static const char* apzHpux11_SnprintfPatch[] = { 4923 "format", 4924 "%1 const %3", 4925 (char*)NULL }; 4926 4927/* * * * * * * * * * * * * * * * * * * * * * * * * * 4928 * 4929 * Description of Hpux11_Vsnprintf fix 4930 */ 4931tSCC zHpux11_VsnprintfName[] = 4932 "hpux11_vsnprintf"; 4933 4934/* 4935 * File name selection pattern 4936 */ 4937tSCC zHpux11_VsnprintfList[] = 4938 "stdio.h\0"; 4939/* 4940 * Machine/OS name selection pattern 4941 */ 4942#define apzHpux11_VsnprintfMachs (const char**)NULL 4943 4944/* 4945 * content selection pattern - do fix if pattern found 4946 */ 4947tSCC zHpux11_VsnprintfSelect0[] = 4948 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);"; 4949 4950#define HPUX11_VSNPRINTF_TEST_CT 1 4951static tTestDesc aHpux11_VsnprintfTests[] = { 4952 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, }; 4953 4954/* 4955 * Fix Command Arguments for Hpux11_Vsnprintf 4956 */ 4957static const char* apzHpux11_VsnprintfPatch[] = { 4958 "format", 4959 "%1 __va_list);", 4960 (char*)NULL }; 4961 4962/* * * * * * * * * * * * * * * * * * * * * * * * * * 4963 * 4964 * Description of Hpux_Vsscanf fix 4965 */ 4966tSCC zHpux_VsscanfName[] = 4967 "hpux_vsscanf"; 4968 4969/* 4970 * File name selection pattern 4971 */ 4972tSCC zHpux_VsscanfList[] = 4973 "stdio.h\0"; 4974/* 4975 * Machine/OS name selection pattern 4976 */ 4977tSCC* apzHpux_VsscanfMachs[] = { 4978 "*-*-hpux*", 4979 (const char*)NULL }; 4980 4981/* 4982 * content selection pattern - do fix if pattern found 4983 */ 4984tSCC zHpux_VsscanfSelect0[] = 4985 "(extern int vsscanf\\()char"; 4986 4987#define HPUX_VSSCANF_TEST_CT 1 4988static tTestDesc aHpux_VsscanfTests[] = { 4989 { TT_EGREP, zHpux_VsscanfSelect0, (regex_t*)NULL }, }; 4990 4991/* 4992 * Fix Command Arguments for Hpux_Vsscanf 4993 */ 4994static const char* apzHpux_VsscanfPatch[] = { 4995 "format", 4996 "%1const char", 4997 (char*)NULL }; 4998 4999/* * * * * * * * * * * * * * * * * * * * * * * * * * 5000 * 5001 * Description of Hpux8_Bogus_Inlines fix 5002 */ 5003tSCC zHpux8_Bogus_InlinesName[] = 5004 "hpux8_bogus_inlines"; 5005 5006/* 5007 * File name selection pattern 5008 */ 5009tSCC zHpux8_Bogus_InlinesList[] = 5010 "math.h\0"; 5011/* 5012 * Machine/OS name selection pattern 5013 */ 5014#define apzHpux8_Bogus_InlinesMachs (const char**)NULL 5015 5016/* 5017 * content selection pattern - do fix if pattern found 5018 */ 5019tSCC zHpux8_Bogus_InlinesSelect0[] = 5020 "inline"; 5021 5022/* 5023 * content bypass pattern - skip fix if pattern found 5024 */ 5025tSCC zHpux8_Bogus_InlinesBypass0[] = 5026 "__GNUG__"; 5027 5028#define HPUX8_BOGUS_INLINES_TEST_CT 2 5029static tTestDesc aHpux8_Bogus_InlinesTests[] = { 5030 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL }, 5031 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; 5032 5033/* 5034 * Fix Command Arguments for Hpux8_Bogus_Inlines 5035 */ 5036static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z, 5037 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@", 5038 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@", 5039 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@", 5040 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@", 5041 (char*)NULL }; 5042 5043/* * * * * * * * * * * * * * * * * * * * * * * * * * 5044 * 5045 * Description of Hpux_C99_Intptr fix 5046 */ 5047tSCC zHpux_C99_IntptrName[] = 5048 "hpux_c99_intptr"; 5049 5050/* 5051 * File name selection pattern 5052 */ 5053tSCC zHpux_C99_IntptrList[] = 5054 "stdint-hpux11.h\0stdint.h\0"; 5055/* 5056 * Machine/OS name selection pattern 5057 */ 5058tSCC* apzHpux_C99_IntptrMachs[] = { 5059 "*-hp-hpux11.3*", 5060 (const char*)NULL }; 5061#define HPUX_C99_INTPTR_TEST_CT 0 5062#define aHpux_C99_IntptrTests (tTestDesc*)NULL 5063 5064/* 5065 * Fix Command Arguments for Hpux_C99_Intptr 5066 */ 5067static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z, 5068 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@", 5069 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@", 5070 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@", 5071 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@", 5072 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@", 5073 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@", 5074 (char*)NULL }; 5075 5076/* * * * * * * * * * * * * * * * * * * * * * * * * * 5077 * 5078 * Description of Hpux_C99_Inttypes fix 5079 */ 5080tSCC zHpux_C99_InttypesName[] = 5081 "hpux_c99_inttypes"; 5082 5083/* 5084 * File name selection pattern 5085 */ 5086tSCC zHpux_C99_InttypesList[] = 5087 "inttypes.h\0stdint-hpux11.h\0stdint.h\0"; 5088/* 5089 * Machine/OS name selection pattern 5090 */ 5091tSCC* apzHpux_C99_InttypesMachs[] = { 5092 "*-hp-hpux11.[23]*", 5093 (const char*)NULL }; 5094#define HPUX_C99_INTTYPES_TEST_CT 0 5095#define aHpux_C99_InttypesTests (tTestDesc*)NULL 5096 5097/* 5098 * Fix Command Arguments for Hpux_C99_Inttypes 5099 */ 5100static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z, 5101 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@", 5102 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@", 5103 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@", 5104 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@", 5105 (char*)NULL }; 5106 5107/* * * * * * * * * * * * * * * * * * * * * * * * * * 5108 * 5109 * Description of Hpux_C99_Inttypes2 fix 5110 */ 5111tSCC zHpux_C99_Inttypes2Name[] = 5112 "hpux_c99_inttypes2"; 5113 5114/* 5115 * File name selection pattern 5116 */ 5117tSCC zHpux_C99_Inttypes2List[] = 5118 "stdint-hpux11.h\0stdint.h\0"; 5119/* 5120 * Machine/OS name selection pattern 5121 */ 5122tSCC* apzHpux_C99_Inttypes2Machs[] = { 5123 "*-hp-hpux11.2*", 5124 (const char*)NULL }; 5125#define HPUX_C99_INTTYPES2_TEST_CT 0 5126#define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL 5127 5128/* 5129 * Fix Command Arguments for Hpux_C99_Inttypes2 5130 */ 5131static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z, 5132 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@", 5133 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@", 5134 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@", 5135 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@", 5136 (char*)NULL }; 5137 5138/* * * * * * * * * * * * * * * * * * * * * * * * * * 5139 * 5140 * Description of Hpux_Ctype_Macros fix 5141 */ 5142tSCC zHpux_Ctype_MacrosName[] = 5143 "hpux_ctype_macros"; 5144 5145/* 5146 * File name selection pattern 5147 */ 5148tSCC zHpux_Ctype_MacrosList[] = 5149 "ctype.h\0"; 5150/* 5151 * Machine/OS name selection pattern 5152 */ 5153#define apzHpux_Ctype_MacrosMachs (const char**)NULL 5154 5155/* 5156 * content selection pattern - do fix if pattern found 5157 */ 5158tSCC zHpux_Ctype_MacrosSelect0[] = 5159 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)"; 5160 5161#define HPUX_CTYPE_MACROS_TEST_CT 1 5162static tTestDesc aHpux_Ctype_MacrosTests[] = { 5163 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, }; 5164 5165/* 5166 * Fix Command Arguments for Hpux_Ctype_Macros 5167 */ 5168static const char* apzHpux_Ctype_MacrosPatch[] = { 5169 "format", 5170 "%1(int)%3", 5171 (char*)NULL }; 5172 5173/* * * * * * * * * * * * * * * * * * * * * * * * * * 5174 * 5175 * Description of Hpux_Extern_Errno fix 5176 */ 5177tSCC zHpux_Extern_ErrnoName[] = 5178 "hpux_extern_errno"; 5179 5180/* 5181 * File name selection pattern 5182 */ 5183tSCC zHpux_Extern_ErrnoList[] = 5184 "errno.h\0"; 5185/* 5186 * Machine/OS name selection pattern 5187 */ 5188tSCC* apzHpux_Extern_ErrnoMachs[] = { 5189 "*-hp-hpux10.*", 5190 "*-hp-hpux11.[0-2]*", 5191 (const char*)NULL }; 5192 5193/* 5194 * content selection pattern - do fix if pattern found 5195 */ 5196tSCC zHpux_Extern_ErrnoSelect0[] = 5197 "^[ \t]*extern int errno;$"; 5198 5199#define HPUX_EXTERN_ERRNO_TEST_CT 1 5200static tTestDesc aHpux_Extern_ErrnoTests[] = { 5201 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, }; 5202 5203/* 5204 * Fix Command Arguments for Hpux_Extern_Errno 5205 */ 5206static const char* apzHpux_Extern_ErrnoPatch[] = { 5207 "format", 5208 "#ifdef __cplusplus\n\ 5209extern \"C\" {\n\ 5210#endif\n\ 5211%0\n\ 5212#ifdef __cplusplus\n\ 5213}\n\ 5214#endif", 5215 (char*)NULL }; 5216 5217/* * * * * * * * * * * * * * * * * * * * * * * * * * 5218 * 5219 * Description of Hpux_Htonl fix 5220 */ 5221tSCC zHpux_HtonlName[] = 5222 "hpux_htonl"; 5223 5224/* 5225 * File name selection pattern 5226 */ 5227tSCC zHpux_HtonlList[] = 5228 "netinet/in.h\0"; 5229/* 5230 * Machine/OS name selection pattern 5231 */ 5232#define apzHpux_HtonlMachs (const char**)NULL 5233 5234/* 5235 * content selection pattern - do fix if pattern found 5236 */ 5237tSCC zHpux_HtonlSelect0[] = 5238 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\ 5239(/\\*\n\ 5240 \\* Macros for number representation conversion\\.\n\ 5241 \\*/\n\ 5242#ifndef ntohl)"; 5243 5244#define HPUX_HTONL_TEST_CT 1 5245static tTestDesc aHpux_HtonlTests[] = { 5246 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, }; 5247 5248/* 5249 * Fix Command Arguments for Hpux_Htonl 5250 */ 5251static const char* apzHpux_HtonlPatch[] = { 5252 "format", 5253 "#if 1\n\ 5254%1", 5255 (char*)NULL }; 5256 5257/* * * * * * * * * * * * * * * * * * * * * * * * * * 5258 * 5259 * Description of Hpux_Imaginary_I fix 5260 */ 5261tSCC zHpux_Imaginary_IName[] = 5262 "hpux_imaginary_i"; 5263 5264/* 5265 * File name selection pattern 5266 */ 5267tSCC zHpux_Imaginary_IList[] = 5268 "complex.h\0"; 5269/* 5270 * Machine/OS name selection pattern 5271 */ 5272tSCC* apzHpux_Imaginary_IMachs[] = { 5273 "ia64-hp-hpux11.*", 5274 (const char*)NULL }; 5275 5276/* 5277 * content selection pattern - do fix if pattern found 5278 */ 5279tSCC zHpux_Imaginary_ISelect0[] = 5280 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*"; 5281 5282#define HPUX_IMAGINARY_I_TEST_CT 1 5283static tTestDesc aHpux_Imaginary_ITests[] = { 5284 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, }; 5285 5286/* 5287 * Fix Command Arguments for Hpux_Imaginary_I 5288 */ 5289static const char* apzHpux_Imaginary_IPatch[] = { 5290 "format", 5291 "#define _Complex_I (__extension__ 1.0iF)", 5292 (char*)NULL }; 5293 5294/* * * * * * * * * * * * * * * * * * * * * * * * * * 5295 * 5296 * Description of Hpux_Inttype_Int8_T fix 5297 */ 5298tSCC zHpux_Inttype_Int8_TName[] = 5299 "hpux_inttype_int8_t"; 5300 5301/* 5302 * File name selection pattern 5303 */ 5304tSCC zHpux_Inttype_Int8_TList[] = 5305 "sys/_inttypes.h\0"; 5306/* 5307 * Machine/OS name selection pattern 5308 */ 5309tSCC* apzHpux_Inttype_Int8_TMachs[] = { 5310 "*-hp-hpux1[01].*", 5311 (const char*)NULL }; 5312 5313/* 5314 * content selection pattern - do fix if pattern found 5315 */ 5316tSCC zHpux_Inttype_Int8_TSelect0[] = 5317 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*"; 5318 5319#define HPUX_INTTYPE_INT8_T_TEST_CT 1 5320static tTestDesc aHpux_Inttype_Int8_TTests[] = { 5321 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, }; 5322 5323/* 5324 * Fix Command Arguments for Hpux_Inttype_Int8_T 5325 */ 5326static const char* apzHpux_Inttype_Int8_TPatch[] = { 5327 "format", 5328 "typedef signed char int%18_t;", 5329 (char*)NULL }; 5330 5331/* * * * * * * * * * * * * * * * * * * * * * * * * * 5332 * 5333 * Description of Hpux_Long_Double fix 5334 */ 5335tSCC zHpux_Long_DoubleName[] = 5336 "hpux_long_double"; 5337 5338/* 5339 * File name selection pattern 5340 */ 5341tSCC zHpux_Long_DoubleList[] = 5342 "stdlib.h\0"; 5343/* 5344 * Machine/OS name selection pattern 5345 */ 5346tSCC* apzHpux_Long_DoubleMachs[] = { 5347 "*-*-hpux10*", 5348 "*-*-hpux11.[012]*", 5349 (const char*)NULL }; 5350 5351/* 5352 * content selection pattern - do fix if pattern found 5353 */ 5354tSCC zHpux_Long_DoubleSelect0[] = 5355 "extern[ \t]long_double[ \t]strtold"; 5356 5357/* 5358 * content bypass pattern - skip fix if pattern found 5359 */ 5360tSCC zHpux_Long_DoubleBypass0[] = 5361 "long_double_t"; 5362 5363#define HPUX_LONG_DOUBLE_TEST_CT 2 5364static tTestDesc aHpux_Long_DoubleTests[] = { 5365 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL }, 5366 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, }; 5367 5368/* 5369 * Fix Command Arguments for Hpux_Long_Double 5370 */ 5371static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z, 5372 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D", 5373 "-e", "s/long_double/long double/g", 5374 (char*)NULL }; 5375 5376/* * * * * * * * * * * * * * * * * * * * * * * * * * 5377 * 5378 * Description of Hpux_Long_Double_2 fix 5379 */ 5380tSCC zHpux_Long_Double_2Name[] = 5381 "hpux_long_double_2"; 5382 5383/* 5384 * File name selection pattern 5385 */ 5386tSCC zHpux_Long_Double_2List[] = 5387 "stdlib.h\0"; 5388/* 5389 * Machine/OS name selection pattern 5390 */ 5391tSCC* apzHpux_Long_Double_2Machs[] = { 5392 "hppa*-*-hpux11.3*", 5393 (const char*)NULL }; 5394 5395/* 5396 * content selection pattern - do fix if pattern found 5397 */ 5398tSCC zHpux_Long_Double_2Select0[] = 5399 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)"; 5400 5401#define HPUX_LONG_DOUBLE_2_TEST_CT 1 5402static tTestDesc aHpux_Long_Double_2Tests[] = { 5403 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, }; 5404 5405/* 5406 * Fix Command Arguments for Hpux_Long_Double_2 5407 */ 5408static const char* apzHpux_Long_Double_2Patch[] = { 5409 "format", 5410 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)", 5411 (char*)NULL }; 5412 5413/* * * * * * * * * * * * * * * * * * * * * * * * * * 5414 * 5415 * Description of Hpux_Pthread_Initializers fix 5416 */ 5417tSCC zHpux_Pthread_InitializersName[] = 5418 "hpux_pthread_initializers"; 5419 5420/* 5421 * File name selection pattern 5422 */ 5423tSCC zHpux_Pthread_InitializersList[] = 5424 "sys/pthread.h\0"; 5425/* 5426 * Machine/OS name selection pattern 5427 */ 5428tSCC* apzHpux_Pthread_InitializersMachs[] = { 5429 "*-hp-hpux11.[0-3]*", 5430 (const char*)NULL }; 5431#define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0 5432#define aHpux_Pthread_InitializersTests (tTestDesc*)NULL 5433 5434/* 5435 * Fix Command Arguments for Hpux_Pthread_Initializers 5436 */ 5437static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z, 5438 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@", 5439 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@", 5440 "-e", "/^[ \t]*0$/d", 5441 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@", 5442 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@", 5443 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@", 5444 "-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\\\\@", 5445 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@", 5446 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@", 5447 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@", 5448 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@", 5449 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@", 5450 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@", 5451 (char*)NULL }; 5452 5453/* * * * * * * * * * * * * * * * * * * * * * * * * * 5454 * 5455 * Description of Hpux_Spu_Info fix 5456 */ 5457tSCC zHpux_Spu_InfoName[] = 5458 "hpux_spu_info"; 5459 5460/* 5461 * File name selection pattern 5462 */ 5463tSCC zHpux_Spu_InfoList[] = 5464 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0"; 5465/* 5466 * Machine/OS name selection pattern 5467 */ 5468tSCC* apzHpux_Spu_InfoMachs[] = { 5469 "*-hp-hpux*", 5470 (const char*)NULL }; 5471 5472/* 5473 * content selection pattern - do fix if pattern found 5474 */ 5475tSCC zHpux_Spu_InfoSelect0[] = 5476 "^.*extern.*spu_info.*"; 5477 5478#define HPUX_SPU_INFO_TEST_CT 1 5479static tTestDesc aHpux_Spu_InfoTests[] = { 5480 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, }; 5481 5482/* 5483 * Fix Command Arguments for Hpux_Spu_Info 5484 */ 5485static const char* apzHpux_Spu_InfoPatch[] = { 5486 "format", 5487 "#ifdef _KERNEL\n\ 5488%0\n\ 5489#endif", 5490 (char*)NULL }; 5491 5492/* * * * * * * * * * * * * * * * * * * * * * * * * * 5493 * 5494 * Description of Hpux_Stdint_Least_Fast fix 5495 */ 5496tSCC zHpux_Stdint_Least_FastName[] = 5497 "hpux_stdint_least_fast"; 5498 5499/* 5500 * File name selection pattern 5501 */ 5502tSCC zHpux_Stdint_Least_FastList[] = 5503 "stdint-hpux11.h\0stdint.h\0"; 5504/* 5505 * Machine/OS name selection pattern 5506 */ 5507tSCC* apzHpux_Stdint_Least_FastMachs[] = { 5508 "*-hp-hpux11.2*", 5509 (const char*)NULL }; 5510 5511/* 5512 * content selection pattern - do fix if pattern found 5513 */ 5514tSCC zHpux_Stdint_Least_FastSelect0[] = 5515 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX"; 5516 5517#define HPUX_STDINT_LEAST_FAST_TEST_CT 1 5518static tTestDesc aHpux_Stdint_Least_FastTests[] = { 5519 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, }; 5520 5521/* 5522 * Fix Command Arguments for Hpux_Stdint_Least_Fast 5523 */ 5524static const char* apzHpux_Stdint_Least_FastPatch[] = { 5525 "format", 5526 "# define\tUINT_%164_MAX\t__UINT64_MAX__", 5527 (char*)NULL }; 5528 5529/* * * * * * * * * * * * * * * * * * * * * * * * * * 5530 * 5531 * Description of Hpux_Longjmp fix 5532 */ 5533tSCC zHpux_LongjmpName[] = 5534 "hpux_longjmp"; 5535 5536/* 5537 * File name selection pattern 5538 */ 5539tSCC zHpux_LongjmpList[] = 5540 "setjmp.h\0"; 5541/* 5542 * Machine/OS name selection pattern 5543 */ 5544tSCC* apzHpux_LongjmpMachs[] = { 5545 "*-hp-hpux*", 5546 (const char*)NULL }; 5547 5548/* 5549 * content selection pattern - do fix if pattern found 5550 */ 5551tSCC zHpux_LongjmpSelect0[] = 5552 "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))"; 5553 5554#define HPUX_LONGJMP_TEST_CT 1 5555static tTestDesc aHpux_LongjmpTests[] = { 5556 { TT_EGREP, zHpux_LongjmpSelect0, (regex_t*)NULL }, }; 5557 5558/* 5559 * Fix Command Arguments for Hpux_Longjmp 5560 */ 5561static const char* apzHpux_LongjmpPatch[] = { 5562 "format", 5563 "%0 __attribute__ ((__noreturn__))", 5564 (char*)NULL }; 5565 5566/* * * * * * * * * * * * * * * * * * * * * * * * * * 5567 * 5568 * Description of Hpux_Systime fix 5569 */ 5570tSCC zHpux_SystimeName[] = 5571 "hpux_systime"; 5572 5573/* 5574 * File name selection pattern 5575 */ 5576tSCC zHpux_SystimeList[] = 5577 "sys/time.h\0"; 5578/* 5579 * Machine/OS name selection pattern 5580 */ 5581#define apzHpux_SystimeMachs (const char**)NULL 5582 5583/* 5584 * content selection pattern - do fix if pattern found 5585 */ 5586tSCC zHpux_SystimeSelect0[] = 5587 "^extern struct sigevent;"; 5588 5589#define HPUX_SYSTIME_TEST_CT 1 5590static tTestDesc aHpux_SystimeTests[] = { 5591 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, }; 5592 5593/* 5594 * Fix Command Arguments for Hpux_Systime 5595 */ 5596static const char* apzHpux_SystimePatch[] = { 5597 "format", 5598 "struct sigevent;", 5599 (char*)NULL }; 5600 5601/* * * * * * * * * * * * * * * * * * * * * * * * * * 5602 * 5603 * Description of Huge_Val_Hex fix 5604 */ 5605tSCC zHuge_Val_HexName[] = 5606 "huge_val_hex"; 5607 5608/* 5609 * File name selection pattern 5610 */ 5611tSCC zHuge_Val_HexList[] = 5612 "bits/huge_val.h\0*/bits/huge_val.h\0"; 5613/* 5614 * Machine/OS name selection pattern 5615 */ 5616#define apzHuge_Val_HexMachs (const char**)NULL 5617 5618/* 5619 * content selection pattern - do fix if pattern found 5620 */ 5621tSCC zHuge_Val_HexSelect0[] = 5622 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*"; 5623 5624/* 5625 * content bypass pattern - skip fix if pattern found 5626 */ 5627tSCC zHuge_Val_HexBypass0[] = 5628 "__builtin_huge_val"; 5629 5630#define HUGE_VAL_HEX_TEST_CT 2 5631static tTestDesc aHuge_Val_HexTests[] = { 5632 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL }, 5633 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, }; 5634 5635/* 5636 * Fix Command Arguments for Huge_Val_Hex 5637 */ 5638static const char* apzHuge_Val_HexPatch[] = { 5639 "format", 5640 "#define HUGE_VAL (__builtin_huge_val())\n", 5641 (char*)NULL }; 5642 5643/* * * * * * * * * * * * * * * * * * * * * * * * * * 5644 * 5645 * Description of Huge_Valf_Hex fix 5646 */ 5647tSCC zHuge_Valf_HexName[] = 5648 "huge_valf_hex"; 5649 5650/* 5651 * File name selection pattern 5652 */ 5653tSCC zHuge_Valf_HexList[] = 5654 "bits/huge_val.h\0*/bits/huge_val.h\0"; 5655/* 5656 * Machine/OS name selection pattern 5657 */ 5658#define apzHuge_Valf_HexMachs (const char**)NULL 5659 5660/* 5661 * content selection pattern - do fix if pattern found 5662 */ 5663tSCC zHuge_Valf_HexSelect0[] = 5664 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*"; 5665 5666/* 5667 * content bypass pattern - skip fix if pattern found 5668 */ 5669tSCC zHuge_Valf_HexBypass0[] = 5670 "__builtin_huge_valf"; 5671 5672#define HUGE_VALF_HEX_TEST_CT 2 5673static tTestDesc aHuge_Valf_HexTests[] = { 5674 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL }, 5675 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, }; 5676 5677/* 5678 * Fix Command Arguments for Huge_Valf_Hex 5679 */ 5680static const char* apzHuge_Valf_HexPatch[] = { 5681 "format", 5682 "#define HUGE_VALF (__builtin_huge_valf())\n", 5683 (char*)NULL }; 5684 5685/* * * * * * * * * * * * * * * * * * * * * * * * * * 5686 * 5687 * Description of Huge_Vall_Hex fix 5688 */ 5689tSCC zHuge_Vall_HexName[] = 5690 "huge_vall_hex"; 5691 5692/* 5693 * File name selection pattern 5694 */ 5695tSCC zHuge_Vall_HexList[] = 5696 "bits/huge_val.h\0*/bits/huge_val.h\0"; 5697/* 5698 * Machine/OS name selection pattern 5699 */ 5700#define apzHuge_Vall_HexMachs (const char**)NULL 5701 5702/* 5703 * content selection pattern - do fix if pattern found 5704 */ 5705tSCC zHuge_Vall_HexSelect0[] = 5706 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*"; 5707 5708/* 5709 * content bypass pattern - skip fix if pattern found 5710 */ 5711tSCC zHuge_Vall_HexBypass0[] = 5712 "__builtin_huge_vall"; 5713 5714#define HUGE_VALL_HEX_TEST_CT 2 5715static tTestDesc aHuge_Vall_HexTests[] = { 5716 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL }, 5717 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, }; 5718 5719/* 5720 * Fix Command Arguments for Huge_Vall_Hex 5721 */ 5722static const char* apzHuge_Vall_HexPatch[] = { 5723 "format", 5724 "#define HUGE_VALL (__builtin_huge_vall())\n", 5725 (char*)NULL }; 5726 5727/* * * * * * * * * * * * * * * * * * * * * * * * * * 5728 * 5729 * Description of Int_Abort_Free_And_Exit fix 5730 */ 5731tSCC zInt_Abort_Free_And_ExitName[] = 5732 "int_abort_free_and_exit"; 5733 5734/* 5735 * File name selection pattern 5736 */ 5737tSCC zInt_Abort_Free_And_ExitList[] = 5738 "stdlib.h\0"; 5739/* 5740 * Machine/OS name selection pattern 5741 */ 5742#define apzInt_Abort_Free_And_ExitMachs (const char**)NULL 5743 5744/* 5745 * content selection pattern - do fix if pattern found 5746 */ 5747tSCC zInt_Abort_Free_And_ExitSelect0[] = 5748 "int[ \t]+(abort|free|exit)[ \t]*\\("; 5749 5750/* 5751 * content bypass pattern - skip fix if pattern found 5752 */ 5753tSCC zInt_Abort_Free_And_ExitBypass0[] = 5754 "_CLASSIC_ANSI_TYPES"; 5755 5756#define INT_ABORT_FREE_AND_EXIT_TEST_CT 2 5757static tTestDesc aInt_Abort_Free_And_ExitTests[] = { 5758 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL }, 5759 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, }; 5760 5761/* 5762 * Fix Command Arguments for Int_Abort_Free_And_Exit 5763 */ 5764static const char* apzInt_Abort_Free_And_ExitPatch[] = { 5765 "format", 5766 "void\t%1(", 5767 (char*)NULL }; 5768 5769/* * * * * * * * * * * * * * * * * * * * * * * * * * 5770 * 5771 * Description of Io_Quotes_Def fix 5772 */ 5773tSCC zIo_Quotes_DefName[] = 5774 "io_quotes_def"; 5775 5776/* 5777 * File name selection pattern 5778 */ 5779#define zIo_Quotes_DefList (char*)NULL 5780/* 5781 * Machine/OS name selection pattern 5782 */ 5783#define apzIo_Quotes_DefMachs (const char**)NULL 5784 5785/* 5786 * content selection pattern - do fix if pattern found 5787 */ 5788tSCC zIo_Quotes_DefSelect0[] = 5789 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]"; 5790 5791#define IO_QUOTES_DEF_TEST_CT 1 5792static tTestDesc aIo_Quotes_DefTests[] = { 5793 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, }; 5794 5795/* 5796 * Fix Command Arguments for Io_Quotes_Def 5797 */ 5798static const char* apzIo_Quotes_DefPatch[] = { 5799 "char_macro_def", 5800 "IO", 5801 (char*)NULL }; 5802 5803/* * * * * * * * * * * * * * * * * * * * * * * * * * 5804 * 5805 * Description of Io_Quotes_Use fix 5806 */ 5807tSCC zIo_Quotes_UseName[] = 5808 "io_quotes_use"; 5809 5810/* 5811 * File name selection pattern 5812 */ 5813#define zIo_Quotes_UseList (char*)NULL 5814/* 5815 * Machine/OS name selection pattern 5816 */ 5817#define apzIo_Quotes_UseMachs (const char**)NULL 5818 5819/* 5820 * content selection pattern - do fix if pattern found 5821 */ 5822tSCC zIo_Quotes_UseSelect0[] = 5823 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']"; 5824 5825#define IO_QUOTES_USE_TEST_CT 1 5826static tTestDesc aIo_Quotes_UseTests[] = { 5827 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, }; 5828 5829/* 5830 * Fix Command Arguments for Io_Quotes_Use 5831 */ 5832static const char* apzIo_Quotes_UsePatch[] = { 5833 "char_macro_use", 5834 "IO", 5835 (char*)NULL }; 5836 5837/* * * * * * * * * * * * * * * * * * * * * * * * * * 5838 * 5839 * Description of Ip_Missing_Semi fix 5840 */ 5841tSCC zIp_Missing_SemiName[] = 5842 "ip_missing_semi"; 5843 5844/* 5845 * File name selection pattern 5846 */ 5847tSCC zIp_Missing_SemiList[] = 5848 "netinet/ip.h\0"; 5849/* 5850 * Machine/OS name selection pattern 5851 */ 5852#define apzIp_Missing_SemiMachs (const char**)NULL 5853 5854/* 5855 * content selection pattern - do fix if pattern found 5856 */ 5857tSCC zIp_Missing_SemiSelect0[] = 5858 "}$"; 5859 5860#define IP_MISSING_SEMI_TEST_CT 1 5861static tTestDesc aIp_Missing_SemiTests[] = { 5862 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, }; 5863 5864/* 5865 * Fix Command Arguments for Ip_Missing_Semi 5866 */ 5867static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z, 5868 "-e", "/^struct/,/^};/s/}$/};/", 5869 (char*)NULL }; 5870 5871/* * * * * * * * * * * * * * * * * * * * * * * * * * 5872 * 5873 * Description of Irix_Limits_Const fix 5874 */ 5875tSCC zIrix_Limits_ConstName[] = 5876 "irix_limits_const"; 5877 5878/* 5879 * File name selection pattern 5880 */ 5881tSCC zIrix_Limits_ConstList[] = 5882 "fixinc-test-limits.h\0limits.h\0"; 5883/* 5884 * Machine/OS name selection pattern 5885 */ 5886#define apzIrix_Limits_ConstMachs (const char**)NULL 5887 5888/* 5889 * content selection pattern - do fix if pattern found 5890 */ 5891tSCC zIrix_Limits_ConstSelect0[] = 5892 "^extern const "; 5893 5894#define IRIX_LIMITS_CONST_TEST_CT 1 5895static tTestDesc aIrix_Limits_ConstTests[] = { 5896 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, }; 5897 5898/* 5899 * Fix Command Arguments for Irix_Limits_Const 5900 */ 5901static const char* apzIrix_Limits_ConstPatch[] = { 5902 "format", 5903 "extern __const ", 5904 (char*)NULL }; 5905 5906/* * * * * * * * * * * * * * * * * * * * * * * * * * 5907 * 5908 * Description of Irix_Stdio_Va_List fix 5909 */ 5910tSCC zIrix_Stdio_Va_ListName[] = 5911 "irix_stdio_va_list"; 5912 5913/* 5914 * File name selection pattern 5915 */ 5916tSCC zIrix_Stdio_Va_ListList[] = 5917 "stdio.h\0"; 5918/* 5919 * Machine/OS name selection pattern 5920 */ 5921#define apzIrix_Stdio_Va_ListMachs (const char**)NULL 5922 5923/* 5924 * content selection pattern - do fix if pattern found 5925 */ 5926tSCC zIrix_Stdio_Va_ListSelect0[] = 5927 "/\\* va_list \\*/ char \\*"; 5928 5929#define IRIX_STDIO_VA_LIST_TEST_CT 1 5930static tTestDesc aIrix_Stdio_Va_ListTests[] = { 5931 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, }; 5932 5933/* 5934 * Fix Command Arguments for Irix_Stdio_Va_List 5935 */ 5936static const char* apzIrix_Stdio_Va_ListPatch[] = { 5937 "format", 5938 "__gnuc_va_list", 5939 (char*)NULL }; 5940 5941/* * * * * * * * * * * * * * * * * * * * * * * * * * 5942 * 5943 * Description of Kandr_Concat fix 5944 */ 5945tSCC zKandr_ConcatName[] = 5946 "kandr_concat"; 5947 5948/* 5949 * File name selection pattern 5950 */ 5951tSCC zKandr_ConcatList[] = 5952 "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"; 5953/* 5954 * Machine/OS name selection pattern 5955 */ 5956#define apzKandr_ConcatMachs (const char**)NULL 5957 5958/* 5959 * content selection pattern - do fix if pattern found 5960 */ 5961tSCC zKandr_ConcatSelect0[] = 5962 "/\\*\\*/"; 5963 5964#define KANDR_CONCAT_TEST_CT 1 5965static tTestDesc aKandr_ConcatTests[] = { 5966 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, }; 5967 5968/* 5969 * Fix Command Arguments for Kandr_Concat 5970 */ 5971static const char* apzKandr_ConcatPatch[] = { 5972 "format", 5973 "##", 5974 (char*)NULL }; 5975 5976/* * * * * * * * * * * * * * * * * * * * * * * * * * 5977 * 5978 * Description of Linux_Ia64_Ucontext fix 5979 */ 5980tSCC zLinux_Ia64_UcontextName[] = 5981 "linux_ia64_ucontext"; 5982 5983/* 5984 * File name selection pattern 5985 */ 5986tSCC zLinux_Ia64_UcontextList[] = 5987 "sys/ucontext.h\0"; 5988/* 5989 * Machine/OS name selection pattern 5990 */ 5991tSCC* apzLinux_Ia64_UcontextMachs[] = { 5992 "ia64-*-linux*", 5993 (const char*)NULL }; 5994 5995/* 5996 * content selection pattern - do fix if pattern found 5997 */ 5998tSCC zLinux_Ia64_UcontextSelect0[] = 5999 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)"; 6000 6001#define LINUX_IA64_UCONTEXT_TEST_CT 1 6002static tTestDesc aLinux_Ia64_UcontextTests[] = { 6003 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, }; 6004 6005/* 6006 * Fix Command Arguments for Linux_Ia64_Ucontext 6007 */ 6008static const char* apzLinux_Ia64_UcontextPatch[] = { 6009 "format", 6010 "__builtin_offsetof (struct sigcontext, sc_gr[0])", 6011 (char*)NULL }; 6012 6013/* * * * * * * * * * * * * * * * * * * * * * * * * * 6014 * 6015 * Description of Lynxos_No_Warning_In_Sys_Time_H fix 6016 */ 6017tSCC zLynxos_No_Warning_In_Sys_Time_HName[] = 6018 "lynxos_no_warning_in_sys_time_h"; 6019 6020/* 6021 * File name selection pattern 6022 */ 6023tSCC zLynxos_No_Warning_In_Sys_Time_HList[] = 6024 "sys/time.h\0"; 6025/* 6026 * Machine/OS name selection pattern 6027 */ 6028#define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL 6029 6030/* 6031 * content selection pattern - do fix if pattern found 6032 */ 6033tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] = 6034 "#warning[ \t]+Using <time.h> instead of <sys/time.h>"; 6035 6036#define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1 6037static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = { 6038 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, }; 6039 6040/* 6041 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H 6042 */ 6043static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = { 6044 "format", 6045 "", 6046 (char*)NULL }; 6047 6048/* * * * * * * * * * * * * * * * * * * * * * * * * * 6049 * 6050 * Description of Lynxos_Missing_Putenv fix 6051 */ 6052tSCC zLynxos_Missing_PutenvName[] = 6053 "lynxos_missing_putenv"; 6054 6055/* 6056 * File name selection pattern 6057 */ 6058tSCC zLynxos_Missing_PutenvList[] = 6059 "stdlib.h\0"; 6060/* 6061 * Machine/OS name selection pattern 6062 */ 6063tSCC* apzLynxos_Missing_PutenvMachs[] = { 6064 "*-*-lynxos*", 6065 (const char*)NULL }; 6066 6067/* 6068 * content selection pattern - do fix if pattern found 6069 */ 6070tSCC zLynxos_Missing_PutenvSelect0[] = 6071 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);"; 6072 6073/* 6074 * content bypass pattern - skip fix if pattern found 6075 */ 6076tSCC zLynxos_Missing_PutenvBypass0[] = 6077 "putenv[ \\t]*\\("; 6078 6079#define LYNXOS_MISSING_PUTENV_TEST_CT 2 6080static tTestDesc aLynxos_Missing_PutenvTests[] = { 6081 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL }, 6082 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, }; 6083 6084/* 6085 * Fix Command Arguments for Lynxos_Missing_Putenv 6086 */ 6087static const char* apzLynxos_Missing_PutenvPatch[] = { 6088 "format", 6089 "%0\n\ 6090extern int putenv\t\t\t\t_AP((char *));", 6091 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);", 6092 (char*)NULL }; 6093 6094/* * * * * * * * * * * * * * * * * * * * * * * * * * 6095 * 6096 * Description of Machine_Ansi_H_Va_List fix 6097 */ 6098tSCC zMachine_Ansi_H_Va_ListName[] = 6099 "machine_ansi_h_va_list"; 6100 6101/* 6102 * File name selection pattern 6103 */ 6104#define zMachine_Ansi_H_Va_ListList (char*)NULL 6105/* 6106 * Machine/OS name selection pattern 6107 */ 6108#define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL 6109 6110/* 6111 * content selection pattern - do fix if pattern found 6112 */ 6113tSCC zMachine_Ansi_H_Va_ListSelect0[] = 6114 "define[ \t]+_BSD_VA_LIST_[ \t]"; 6115 6116/* 6117 * content bypass pattern - skip fix if pattern found 6118 */ 6119tSCC zMachine_Ansi_H_Va_ListBypass0[] = 6120 "__builtin_va_list"; 6121 6122#define MACHINE_ANSI_H_VA_LIST_TEST_CT 2 6123static tTestDesc aMachine_Ansi_H_Va_ListTests[] = { 6124 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL }, 6125 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, }; 6126 6127/* 6128 * Fix Command Arguments for Machine_Ansi_H_Va_List 6129 */ 6130static const char* apzMachine_Ansi_H_Va_ListPatch[] = { 6131 "format", 6132 "%1__builtin_va_list", 6133 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*", 6134 (char*)NULL }; 6135 6136/* * * * * * * * * * * * * * * * * * * * * * * * * * 6137 * 6138 * Description of Machine_Name fix 6139 */ 6140tSCC zMachine_NameName[] = 6141 "machine_name"; 6142 6143/* 6144 * File name selection pattern 6145 */ 6146#define zMachine_NameList (char*)NULL 6147/* 6148 * Machine/OS name selection pattern 6149 */ 6150#define apzMachine_NameMachs (const char**)NULL 6151 6152/* 6153 * perform the C function call test 6154 */ 6155tSCC zMachine_NameFTst0[] = "machine_name"; 6156 6157#define MACHINE_NAME_TEST_CT 1 6158static tTestDesc aMachine_NameTests[] = { 6159 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, }; 6160 6161/* 6162 * Fix Command Arguments for Machine_Name 6163 */ 6164static const char* apzMachine_NamePatch[] = { 6165 "machine_name", 6166 (char*)NULL }; 6167 6168/* * * * * * * * * * * * * * * * * * * * * * * * * * 6169 * 6170 * Description of Math_Exception fix 6171 */ 6172tSCC zMath_ExceptionName[] = 6173 "math_exception"; 6174 6175/* 6176 * File name selection pattern 6177 */ 6178tSCC zMath_ExceptionList[] = 6179 "math.h\0"; 6180/* 6181 * Machine/OS name selection pattern 6182 */ 6183tSCC* apzMath_ExceptionMachs[] = { 6184 "*-*-solaris2.1[0-9]*", 6185 (const char*)NULL }; 6186 6187/* 6188 * content selection pattern - do fix if pattern found 6189 */ 6190tSCC zMath_ExceptionSelect0[] = 6191 "struct exception"; 6192 6193/* 6194 * content bypass pattern - skip fix if pattern found 6195 */ 6196tSCC zMath_ExceptionBypass0[] = 6197 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception"; 6198 6199#define MATH_EXCEPTION_TEST_CT 2 6200static tTestDesc aMath_ExceptionTests[] = { 6201 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL }, 6202 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, }; 6203 6204/* 6205 * Fix Command Arguments for Math_Exception 6206 */ 6207static const char* apzMath_ExceptionPatch[] = { 6208 "wrap", 6209 "#ifdef __cplusplus\n\ 6210#define exception __math_exception\n\ 6211#endif\n", 6212 "#ifdef __cplusplus\n\ 6213#undef exception\n\ 6214#endif\n", 6215 (char*)NULL }; 6216 6217/* * * * * * * * * * * * * * * * * * * * * * * * * * 6218 * 6219 * Description of Math_Huge_Val_From_Dbl_Max fix 6220 */ 6221tSCC zMath_Huge_Val_From_Dbl_MaxName[] = 6222 "math_huge_val_from_dbl_max"; 6223 6224/* 6225 * File name selection pattern 6226 */ 6227tSCC zMath_Huge_Val_From_Dbl_MaxList[] = 6228 "math.h\0"; 6229/* 6230 * Machine/OS name selection pattern 6231 */ 6232#define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL 6233 6234/* 6235 * content selection pattern - do fix if pattern found 6236 */ 6237tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] = 6238 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX"; 6239 6240/* 6241 * content bypass pattern - skip fix if pattern found 6242 */ 6243tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = 6244 "define[ \t]+DBL_MAX"; 6245 6246#define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 6247static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { 6248 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL }, 6249 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, }; 6250 6251/* 6252 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max 6253 */ 6254static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c", 6255 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\ 6256\tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\ 6257\tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\ 6258\telse cat\n\ 6259\tfi", 6260 (char*)NULL }; 6261 6262/* * * * * * * * * * * * * * * * * * * * * * * * * * 6263 * 6264 * Description of Nested_Auth_Des fix 6265 */ 6266tSCC zNested_Auth_DesName[] = 6267 "nested_auth_des"; 6268 6269/* 6270 * File name selection pattern 6271 */ 6272tSCC zNested_Auth_DesList[] = 6273 "rpc/rpc.h\0"; 6274/* 6275 * Machine/OS name selection pattern 6276 */ 6277#define apzNested_Auth_DesMachs (const char**)NULL 6278 6279/* 6280 * content selection pattern - do fix if pattern found 6281 */ 6282tSCC zNested_Auth_DesSelect0[] = 6283 "(/\\*.*rpc/auth_des\\.h>.*)/\\*"; 6284 6285#define NESTED_AUTH_DES_TEST_CT 1 6286static tTestDesc aNested_Auth_DesTests[] = { 6287 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, }; 6288 6289/* 6290 * Fix Command Arguments for Nested_Auth_Des 6291 */ 6292static const char* apzNested_Auth_DesPatch[] = { 6293 "format", 6294 "%1*/ /*", 6295 (char*)NULL }; 6296 6297/* * * * * * * * * * * * * * * * * * * * * * * * * * 6298 * 6299 * Description of Netbsd_C99_Inline_1 fix 6300 */ 6301tSCC zNetbsd_C99_Inline_1Name[] = 6302 "netbsd_c99_inline_1"; 6303 6304/* 6305 * File name selection pattern 6306 */ 6307tSCC zNetbsd_C99_Inline_1List[] = 6308 "signal.h\0"; 6309/* 6310 * Machine/OS name selection pattern 6311 */ 6312tSCC* apzNetbsd_C99_Inline_1Machs[] = { 6313 "*-*-netbsd*", 6314 (const char*)NULL }; 6315 6316/* 6317 * content selection pattern - do fix if pattern found 6318 */ 6319tSCC zNetbsd_C99_Inline_1Select0[] = 6320 "extern __inline int"; 6321 6322#define NETBSD_C99_INLINE_1_TEST_CT 1 6323static tTestDesc aNetbsd_C99_Inline_1Tests[] = { 6324 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, }; 6325 6326/* 6327 * Fix Command Arguments for Netbsd_C99_Inline_1 6328 */ 6329static const char* apzNetbsd_C99_Inline_1Patch[] = { 6330 "format", 6331 "extern\n\ 6332#ifdef __GNUC_STDC_INLINE__\n\ 6333__attribute__((__gnu_inline__))\n\ 6334#endif\n\ 6335__inline int", 6336 (char*)NULL }; 6337 6338/* * * * * * * * * * * * * * * * * * * * * * * * * * 6339 * 6340 * Description of Netbsd_C99_Inline_2 fix 6341 */ 6342tSCC zNetbsd_C99_Inline_2Name[] = 6343 "netbsd_c99_inline_2"; 6344 6345/* 6346 * File name selection pattern 6347 */ 6348tSCC zNetbsd_C99_Inline_2List[] = 6349 "signal.h\0"; 6350/* 6351 * Machine/OS name selection pattern 6352 */ 6353tSCC* apzNetbsd_C99_Inline_2Machs[] = { 6354 "*-*-netbsd*", 6355 (const char*)NULL }; 6356 6357/* 6358 * content selection pattern - do fix if pattern found 6359 */ 6360tSCC zNetbsd_C99_Inline_2Select0[] = 6361 "#define _SIGINLINE extern __inline"; 6362 6363#define NETBSD_C99_INLINE_2_TEST_CT 1 6364static tTestDesc aNetbsd_C99_Inline_2Tests[] = { 6365 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, }; 6366 6367/* 6368 * Fix Command Arguments for Netbsd_C99_Inline_2 6369 */ 6370static const char* apzNetbsd_C99_Inline_2Patch[] = { 6371 "format", 6372 "#ifdef __GNUC_STDC_INLINE__\n\ 6373#define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\ 6374#else\n\ 6375%0\n\ 6376#endif", 6377 (char*)NULL }; 6378 6379/* * * * * * * * * * * * * * * * * * * * * * * * * * 6380 * 6381 * Description of Netbsd_Extra_Semicolon fix 6382 */ 6383tSCC zNetbsd_Extra_SemicolonName[] = 6384 "netbsd_extra_semicolon"; 6385 6386/* 6387 * File name selection pattern 6388 */ 6389tSCC zNetbsd_Extra_SemicolonList[] = 6390 "sys/cdefs.h\0"; 6391/* 6392 * Machine/OS name selection pattern 6393 */ 6394tSCC* apzNetbsd_Extra_SemicolonMachs[] = { 6395 "*-*-netbsd*", 6396 (const char*)NULL }; 6397 6398/* 6399 * content selection pattern - do fix if pattern found 6400 */ 6401tSCC zNetbsd_Extra_SemicolonSelect0[] = 6402 "#define[ \t]*__END_DECLS[ \t]*};"; 6403 6404#define NETBSD_EXTRA_SEMICOLON_TEST_CT 1 6405static tTestDesc aNetbsd_Extra_SemicolonTests[] = { 6406 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, }; 6407 6408/* 6409 * Fix Command Arguments for Netbsd_Extra_Semicolon 6410 */ 6411static const char* apzNetbsd_Extra_SemicolonPatch[] = { 6412 "format", 6413 "#define __END_DECLS }", 6414 (char*)NULL }; 6415 6416/* * * * * * * * * * * * * * * * * * * * * * * * * * 6417 * 6418 * Description of Newlib_Stdint_1 fix 6419 */ 6420tSCC zNewlib_Stdint_1Name[] = 6421 "newlib_stdint_1"; 6422 6423/* 6424 * File name selection pattern 6425 */ 6426tSCC zNewlib_Stdint_1List[] = 6427 "stdint-newlib.h\0stdint.h\0"; 6428/* 6429 * Machine/OS name selection pattern 6430 */ 6431#define apzNewlib_Stdint_1Machs (const char**)NULL 6432 6433/* 6434 * content selection pattern - do fix if pattern found 6435 */ 6436tSCC zNewlib_Stdint_1Select0[] = 6437 "@todo - Add support for wint_t types"; 6438 6439#define NEWLIB_STDINT_1_TEST_CT 1 6440static tTestDesc aNewlib_Stdint_1Tests[] = { 6441 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, }; 6442 6443/* 6444 * Fix Command Arguments for Newlib_Stdint_1 6445 */ 6446static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z, 6447 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@", 6448 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@", 6449 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@", 6450 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@", 6451 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@", 6452 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@", 6453 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@", 6454 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@", 6455 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@", 6456 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@", 6457 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@", 6458 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@", 6459 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@", 6460 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@", 6461 (char*)NULL }; 6462 6463/* * * * * * * * * * * * * * * * * * * * * * * * * * 6464 * 6465 * Description of Newlib_Stdint_2 fix 6466 */ 6467tSCC zNewlib_Stdint_2Name[] = 6468 "newlib_stdint_2"; 6469 6470/* 6471 * File name selection pattern 6472 */ 6473tSCC zNewlib_Stdint_2List[] = 6474 "stdint-newlib.h\0stdint.h\0"; 6475/* 6476 * Machine/OS name selection pattern 6477 */ 6478#define apzNewlib_Stdint_2Machs (const char**)NULL 6479 6480/* 6481 * content selection pattern - do fix if pattern found 6482 */ 6483tSCC zNewlib_Stdint_2Select0[] = 6484 "@todo - Add support for wint_t types"; 6485 6486#define NEWLIB_STDINT_2_TEST_CT 1 6487static tTestDesc aNewlib_Stdint_2Tests[] = { 6488 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, }; 6489 6490/* 6491 * Fix Command Arguments for Newlib_Stdint_2 6492 */ 6493static const char* apzNewlib_Stdint_2Patch[] = { 6494 "format", 6495 "#define INTMAX_MAX __INTMAX_MAX__\n\ 6496#define INTMAX_MIN (-INTMAX_MAX - 1)\n\ 6497#define UINTMAX_MAX __UINTMAX_MAX__\n\ 6498#define WCHAR_MAX __WCHAR_MAX__\n\ 6499#define WCHAR_MIN __WCHAR_MIN__\n\ 6500#define WINT_MAX __WINT_MAX__\n\ 6501#define WINT_MIN __WINT_MIN__\n\n\ 6502%0", 6503 "/\\*\\* Macros for minimum-width integer constant expressions \\*/", 6504 (char*)NULL }; 6505 6506/* * * * * * * * * * * * * * * * * * * * * * * * * * 6507 * 6508 * Description of Next_Math_Prefix fix 6509 */ 6510tSCC zNext_Math_PrefixName[] = 6511 "next_math_prefix"; 6512 6513/* 6514 * File name selection pattern 6515 */ 6516tSCC zNext_Math_PrefixList[] = 6517 "ansi/math.h\0"; 6518/* 6519 * Machine/OS name selection pattern 6520 */ 6521#define apzNext_Math_PrefixMachs (const char**)NULL 6522 6523/* 6524 * content selection pattern - do fix if pattern found 6525 */ 6526tSCC zNext_Math_PrefixSelect0[] = 6527 "^extern[ \t]+double[ \t]+__const__[ \t]"; 6528 6529#define NEXT_MATH_PREFIX_TEST_CT 1 6530static tTestDesc aNext_Math_PrefixTests[] = { 6531 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, }; 6532 6533/* 6534 * Fix Command Arguments for Next_Math_Prefix 6535 */ 6536static const char* apzNext_Math_PrefixPatch[] = { 6537 "format", 6538 "extern double %1(", 6539 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(", 6540 (char*)NULL }; 6541 6542/* * * * * * * * * * * * * * * * * * * * * * * * * * 6543 * 6544 * Description of Next_Template fix 6545 */ 6546tSCC zNext_TemplateName[] = 6547 "next_template"; 6548 6549/* 6550 * File name selection pattern 6551 */ 6552tSCC zNext_TemplateList[] = 6553 "bsd/libc.h\0"; 6554/* 6555 * Machine/OS name selection pattern 6556 */ 6557#define apzNext_TemplateMachs (const char**)NULL 6558 6559/* 6560 * content selection pattern - do fix if pattern found 6561 */ 6562tSCC zNext_TemplateSelect0[] = 6563 "[ \t]template\\)"; 6564 6565#define NEXT_TEMPLATE_TEST_CT 1 6566static tTestDesc aNext_TemplateTests[] = { 6567 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, }; 6568 6569/* 6570 * Fix Command Arguments for Next_Template 6571 */ 6572static const char* apzNext_TemplatePatch[] = { 6573 "format", 6574 "(%1)", 6575 "\\(([^)]*)[ \t]template\\)", 6576 (char*)NULL }; 6577 6578/* * * * * * * * * * * * * * * * * * * * * * * * * * 6579 * 6580 * Description of Next_Volitile fix 6581 */ 6582tSCC zNext_VolitileName[] = 6583 "next_volitile"; 6584 6585/* 6586 * File name selection pattern 6587 */ 6588tSCC zNext_VolitileList[] = 6589 "ansi/stdlib.h\0"; 6590/* 6591 * Machine/OS name selection pattern 6592 */ 6593#define apzNext_VolitileMachs (const char**)NULL 6594 6595/* 6596 * content selection pattern - do fix if pattern found 6597 */ 6598tSCC zNext_VolitileSelect0[] = 6599 "^extern[ \t]+volatile[ \t]+void[ \t]"; 6600 6601#define NEXT_VOLITILE_TEST_CT 1 6602static tTestDesc aNext_VolitileTests[] = { 6603 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, }; 6604 6605/* 6606 * Fix Command Arguments for Next_Volitile 6607 */ 6608static const char* apzNext_VolitilePatch[] = { 6609 "format", 6610 "extern void %1(", 6611 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(", 6612 (char*)NULL }; 6613 6614/* * * * * * * * * * * * * * * * * * * * * * * * * * 6615 * 6616 * Description of Next_Wait_Union fix 6617 */ 6618tSCC zNext_Wait_UnionName[] = 6619 "next_wait_union"; 6620 6621/* 6622 * File name selection pattern 6623 */ 6624tSCC zNext_Wait_UnionList[] = 6625 "sys/wait.h\0"; 6626/* 6627 * Machine/OS name selection pattern 6628 */ 6629#define apzNext_Wait_UnionMachs (const char**)NULL 6630 6631/* 6632 * content selection pattern - do fix if pattern found 6633 */ 6634tSCC zNext_Wait_UnionSelect0[] = 6635 "wait\\(union wait"; 6636 6637#define NEXT_WAIT_UNION_TEST_CT 1 6638static tTestDesc aNext_Wait_UnionTests[] = { 6639 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, }; 6640 6641/* 6642 * Fix Command Arguments for Next_Wait_Union 6643 */ 6644static const char* apzNext_Wait_UnionPatch[] = { 6645 "format", 6646 "wait(void", 6647 (char*)NULL }; 6648 6649/* * * * * * * * * * * * * * * * * * * * * * * * * * 6650 * 6651 * Description of Nodeent_Syntax fix 6652 */ 6653tSCC zNodeent_SyntaxName[] = 6654 "nodeent_syntax"; 6655 6656/* 6657 * File name selection pattern 6658 */ 6659tSCC zNodeent_SyntaxList[] = 6660 "netdnet/dnetdb.h\0"; 6661/* 6662 * Machine/OS name selection pattern 6663 */ 6664#define apzNodeent_SyntaxMachs (const char**)NULL 6665 6666/* 6667 * content selection pattern - do fix if pattern found 6668 */ 6669tSCC zNodeent_SyntaxSelect0[] = 6670 "char[ \t]*\\*na_addr[ \t]*$"; 6671 6672#define NODEENT_SYNTAX_TEST_CT 1 6673static tTestDesc aNodeent_SyntaxTests[] = { 6674 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, }; 6675 6676/* 6677 * Fix Command Arguments for Nodeent_Syntax 6678 */ 6679static const char* apzNodeent_SyntaxPatch[] = { 6680 "format", 6681 "%0;", 6682 (char*)NULL }; 6683 6684/* * * * * * * * * * * * * * * * * * * * * * * * * * 6685 * 6686 * Description of Openbsd_Null_Definition fix 6687 */ 6688tSCC zOpenbsd_Null_DefinitionName[] = 6689 "openbsd_null_definition"; 6690 6691/* 6692 * File name selection pattern 6693 */ 6694tSCC zOpenbsd_Null_DefinitionList[] = 6695 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0"; 6696/* 6697 * Machine/OS name selection pattern 6698 */ 6699tSCC* apzOpenbsd_Null_DefinitionMachs[] = { 6700 "*-*-openbsd*", 6701 (const char*)NULL }; 6702 6703/* 6704 * content selection pattern - do fix if pattern found 6705 */ 6706tSCC zOpenbsd_Null_DefinitionSelect0[] = 6707 "__GNUG__"; 6708 6709#define OPENBSD_NULL_DEFINITION_TEST_CT 1 6710static tTestDesc aOpenbsd_Null_DefinitionTests[] = { 6711 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, }; 6712 6713/* 6714 * Fix Command Arguments for Openbsd_Null_Definition 6715 */ 6716static const char* apzOpenbsd_Null_DefinitionPatch[] = { 6717 "format", 6718 "#ifndef NULL\n\ 6719#ifdef __cplusplus\n\ 6720#ifdef __GNUG__\n\ 6721#define NULL\t__null\n\ 6722#else\t /* ! __GNUG__ */\n\ 6723#define NULL\t0L\n\ 6724#endif\t /* __GNUG__ */\n\ 6725#else\t /* ! __cplusplus */\n\ 6726#define NULL\t((void *)0)\n\ 6727#endif\t /* __cplusplus */\n\ 6728#endif\t /* !NULL */", 6729 "^#ifndef[ \t]*NULL\n\ 6730^#ifdef[ \t]*__GNUG__\n\ 6731^#define[ \t]*NULL[ \t]*__null\n\ 6732^#else\n\ 6733^#define[ \t]*NULL[ \t]*0L\n\ 6734^#endif\n\ 6735^#endif", 6736 (char*)NULL }; 6737 6738/* * * * * * * * * * * * * * * * * * * * * * * * * * 6739 * 6740 * Description of Obstack_Lvalue_Cast fix 6741 */ 6742tSCC zObstack_Lvalue_CastName[] = 6743 "obstack_lvalue_cast"; 6744 6745/* 6746 * File name selection pattern 6747 */ 6748tSCC zObstack_Lvalue_CastList[] = 6749 "obstack.h\0"; 6750/* 6751 * Machine/OS name selection pattern 6752 */ 6753#define apzObstack_Lvalue_CastMachs (const char**)NULL 6754 6755/* 6756 * content selection pattern - do fix if pattern found 6757 */ 6758tSCC zObstack_Lvalue_CastSelect0[] = 6759 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)"; 6760 6761#define OBSTACK_LVALUE_CAST_TEST_CT 1 6762static tTestDesc aObstack_Lvalue_CastTests[] = { 6763 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, }; 6764 6765/* 6766 * Fix Command Arguments for Obstack_Lvalue_Cast 6767 */ 6768static const char* apzObstack_Lvalue_CastPatch[] = { 6769 "format", 6770 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))", 6771 (char*)NULL }; 6772 6773/* * * * * * * * * * * * * * * * * * * * * * * * * * 6774 * 6775 * Description of Openbsd_Va_Start fix 6776 */ 6777tSCC zOpenbsd_Va_StartName[] = 6778 "openbsd_va_start"; 6779 6780/* 6781 * File name selection pattern 6782 */ 6783tSCC zOpenbsd_Va_StartList[] = 6784 "stdarg.h\0"; 6785/* 6786 * Machine/OS name selection pattern 6787 */ 6788tSCC* apzOpenbsd_Va_StartMachs[] = { 6789 "*-*-openbsd*", 6790 (const char*)NULL }; 6791 6792/* 6793 * content selection pattern - do fix if pattern found 6794 */ 6795tSCC zOpenbsd_Va_StartSelect0[] = 6796 "__builtin_stdarg_start"; 6797 6798#define OPENBSD_VA_START_TEST_CT 1 6799static tTestDesc aOpenbsd_Va_StartTests[] = { 6800 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, }; 6801 6802/* 6803 * Fix Command Arguments for Openbsd_Va_Start 6804 */ 6805static const char* apzOpenbsd_Va_StartPatch[] = { 6806 "format", 6807 "__builtin_va_start", 6808 (char*)NULL }; 6809 6810/* * * * * * * * * * * * * * * * * * * * * * * * * * 6811 * 6812 * Description of Osf_Namespace_A fix 6813 */ 6814tSCC zOsf_Namespace_AName[] = 6815 "osf_namespace_a"; 6816 6817/* 6818 * File name selection pattern 6819 */ 6820tSCC zOsf_Namespace_AList[] = 6821 "reg_types.h\0sys/lc_core.h\0"; 6822/* 6823 * Machine/OS name selection pattern 6824 */ 6825#define apzOsf_Namespace_AMachs (const char**)NULL 6826 6827/* 6828 * perform the 'test' shell command - do fix on success 6829 */ 6830tSCC zOsf_Namespace_ATest0[] = 6831 " -r reg_types.h"; 6832tSCC zOsf_Namespace_ATest1[] = 6833 " -r sys/lc_core.h"; 6834tSCC zOsf_Namespace_ATest2[] = 6835 " -n \"`grep '} regex_t;' reg_types.h`\""; 6836tSCC zOsf_Namespace_ATest3[] = 6837 " -z \"`grep __regex_t regex.h`\""; 6838 6839#define OSF_NAMESPACE_A_TEST_CT 4 6840static tTestDesc aOsf_Namespace_ATests[] = { 6841 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, 6842 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ }, 6843 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ }, 6844 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, }; 6845 6846/* 6847 * Fix Command Arguments for Osf_Namespace_A 6848 */ 6849static const char* apzOsf_Namespace_APatch[] = { 6850 "format", 6851 "__%0", 6852 "reg(ex|off|match)_t", 6853 (char*)NULL }; 6854 6855/* * * * * * * * * * * * * * * * * * * * * * * * * * 6856 * 6857 * Description of Osf_Namespace_C fix 6858 */ 6859tSCC zOsf_Namespace_CName[] = 6860 "osf_namespace_c"; 6861 6862/* 6863 * File name selection pattern 6864 */ 6865tSCC zOsf_Namespace_CList[] = 6866 "regex.h\0"; 6867/* 6868 * Machine/OS name selection pattern 6869 */ 6870#define apzOsf_Namespace_CMachs (const char**)NULL 6871 6872/* 6873 * content selection pattern - do fix if pattern found 6874 */ 6875tSCC zOsf_Namespace_CSelect0[] = 6876 "#include <reg_types.h>.*"; 6877 6878/* 6879 * perform the 'test' shell command - do fix on success 6880 */ 6881tSCC zOsf_Namespace_CTest0[] = 6882 " -r reg_types.h"; 6883tSCC zOsf_Namespace_CTest1[] = 6884 " -r sys/lc_core.h"; 6885tSCC zOsf_Namespace_CTest2[] = 6886 " -n \"`grep '} regex_t;' reg_types.h`\""; 6887tSCC zOsf_Namespace_CTest3[] = 6888 " -z \"`grep __regex_t regex.h`\""; 6889 6890#define OSF_NAMESPACE_C_TEST_CT 5 6891static tTestDesc aOsf_Namespace_CTests[] = { 6892 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ }, 6893 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ }, 6894 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ }, 6895 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ }, 6896 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, }; 6897 6898/* 6899 * Fix Command Arguments for Osf_Namespace_C 6900 */ 6901static const char* apzOsf_Namespace_CPatch[] = { 6902 "format", 6903 "%0\n\ 6904typedef __regex_t\tregex_t;\n\ 6905typedef __regoff_t\tregoff_t;\n\ 6906typedef __regmatch_t\tregmatch_t;", 6907 (char*)NULL }; 6908 6909/* * * * * * * * * * * * * * * * * * * * * * * * * * 6910 * 6911 * Description of Pthread_Incomplete_Struct_Argument fix 6912 */ 6913tSCC zPthread_Incomplete_Struct_ArgumentName[] = 6914 "pthread_incomplete_struct_argument"; 6915 6916/* 6917 * File name selection pattern 6918 */ 6919tSCC zPthread_Incomplete_Struct_ArgumentList[] = 6920 "pthread.h\0"; 6921/* 6922 * Machine/OS name selection pattern 6923 */ 6924#define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL 6925 6926/* 6927 * content selection pattern - do fix if pattern found 6928 */ 6929tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] = 6930 "struct __jmp_buf_tag"; 6931 6932#define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1 6933static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = { 6934 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, }; 6935 6936/* 6937 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument 6938 */ 6939static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = { 6940 "format", 6941 "%1 *%2%3", 6942 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$", 6943 (char*)NULL }; 6944 6945/* * * * * * * * * * * * * * * * * * * * * * * * * * 6946 * 6947 * Description of Read_Ret_Type fix 6948 */ 6949tSCC zRead_Ret_TypeName[] = 6950 "read_ret_type"; 6951 6952/* 6953 * File name selection pattern 6954 */ 6955tSCC zRead_Ret_TypeList[] = 6956 "stdio.h\0"; 6957/* 6958 * Machine/OS name selection pattern 6959 */ 6960#define apzRead_Ret_TypeMachs (const char**)NULL 6961 6962/* 6963 * content selection pattern - do fix if pattern found 6964 */ 6965tSCC zRead_Ret_TypeSelect0[] = 6966 "extern int\t.*, fread\\(\\), fwrite\\(\\)"; 6967 6968#define READ_RET_TYPE_TEST_CT 1 6969static tTestDesc aRead_Ret_TypeTests[] = { 6970 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, }; 6971 6972/* 6973 * Fix Command Arguments for Read_Ret_Type 6974 */ 6975static const char* apzRead_Ret_TypePatch[] = { 6976 "format", 6977 "extern unsigned int fread(), fwrite();\n\ 6978%1%2", 6979 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)", 6980 (char*)NULL }; 6981 6982/* * * * * * * * * * * * * * * * * * * * * * * * * * 6983 * 6984 * Description of Rpc_Xdr_Lvalue_Cast_A fix 6985 */ 6986tSCC zRpc_Xdr_Lvalue_Cast_AName[] = 6987 "rpc_xdr_lvalue_cast_a"; 6988 6989/* 6990 * File name selection pattern 6991 */ 6992tSCC zRpc_Xdr_Lvalue_Cast_AList[] = 6993 "rpc/xdr.h\0"; 6994/* 6995 * Machine/OS name selection pattern 6996 */ 6997#define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL 6998 6999/* 7000 * content selection pattern - do fix if pattern found 7001 */ 7002tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] = 7003 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\ 7004.*__extension__.*"; 7005 7006#define RPC_XDR_LVALUE_CAST_A_TEST_CT 1 7007static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = { 7008 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, }; 7009 7010/* 7011 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A 7012 */ 7013static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = { 7014 "format", 7015 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))", 7016 (char*)NULL }; 7017 7018/* * * * * * * * * * * * * * * * * * * * * * * * * * 7019 * 7020 * Description of Rpc_Xdr_Lvalue_Cast_B fix 7021 */ 7022tSCC zRpc_Xdr_Lvalue_Cast_BName[] = 7023 "rpc_xdr_lvalue_cast_b"; 7024 7025/* 7026 * File name selection pattern 7027 */ 7028tSCC zRpc_Xdr_Lvalue_Cast_BList[] = 7029 "rpc/xdr.h\0"; 7030/* 7031 * Machine/OS name selection pattern 7032 */ 7033#define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL 7034 7035/* 7036 * content selection pattern - do fix if pattern found 7037 */ 7038tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] = 7039 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\ 7040.*__extension__.*"; 7041 7042#define RPC_XDR_LVALUE_CAST_B_TEST_CT 1 7043static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = { 7044 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, }; 7045 7046/* 7047 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B 7048 */ 7049static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = { 7050 "format", 7051 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))", 7052 (char*)NULL }; 7053 7054/* * * * * * * * * * * * * * * * * * * * * * * * * * 7055 * 7056 * Description of Rs6000_Double fix 7057 */ 7058tSCC zRs6000_DoubleName[] = 7059 "rs6000_double"; 7060 7061/* 7062 * File name selection pattern 7063 */ 7064tSCC zRs6000_DoubleList[] = 7065 "math.h\0"; 7066/* 7067 * Machine/OS name selection pattern 7068 */ 7069#define apzRs6000_DoubleMachs (const char**)NULL 7070 7071/* 7072 * content selection pattern - do fix if pattern found 7073 */ 7074tSCC zRs6000_DoubleSelect0[] = 7075 "[^a-zA-Z_]class\\("; 7076 7077#define RS6000_DOUBLE_TEST_CT 1 7078static tTestDesc aRs6000_DoubleTests[] = { 7079 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, }; 7080 7081/* 7082 * Fix Command Arguments for Rs6000_Double 7083 */ 7084static const char* apzRs6000_DoublePatch[] = { 7085 "format", 7086 "#ifndef __cplusplus\n\ 7087%0\n\ 7088#endif", 7089 "^.*[^a-zA-Z_]class\\(.*", 7090 (char*)NULL }; 7091 7092/* * * * * * * * * * * * * * * * * * * * * * * * * * 7093 * 7094 * Description of Rs6000_Fchmod fix 7095 */ 7096tSCC zRs6000_FchmodName[] = 7097 "rs6000_fchmod"; 7098 7099/* 7100 * File name selection pattern 7101 */ 7102tSCC zRs6000_FchmodList[] = 7103 "sys/stat.h\0"; 7104/* 7105 * Machine/OS name selection pattern 7106 */ 7107#define apzRs6000_FchmodMachs (const char**)NULL 7108 7109/* 7110 * content selection pattern - do fix if pattern found 7111 */ 7112tSCC zRs6000_FchmodSelect0[] = 7113 "fchmod\\(char \\*"; 7114 7115#define RS6000_FCHMOD_TEST_CT 1 7116static tTestDesc aRs6000_FchmodTests[] = { 7117 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, }; 7118 7119/* 7120 * Fix Command Arguments for Rs6000_Fchmod 7121 */ 7122static const char* apzRs6000_FchmodPatch[] = { 7123 "format", 7124 "fchmod(int", 7125 (char*)NULL }; 7126 7127/* * * * * * * * * * * * * * * * * * * * * * * * * * 7128 * 7129 * Description of Rs6000_Param fix 7130 */ 7131tSCC zRs6000_ParamName[] = 7132 "rs6000_param"; 7133 7134/* 7135 * File name selection pattern 7136 */ 7137tSCC zRs6000_ParamList[] = 7138 "stdio.h\0unistd.h\0"; 7139/* 7140 * Machine/OS name selection pattern 7141 */ 7142#define apzRs6000_ParamMachs (const char**)NULL 7143 7144/* 7145 * content selection pattern - do fix if pattern found 7146 */ 7147tSCC zRs6000_ParamSelect0[] = 7148 "rename\\(const char \\*old, const char \\*new\\)"; 7149 7150#define RS6000_PARAM_TEST_CT 1 7151static tTestDesc aRs6000_ParamTests[] = { 7152 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, }; 7153 7154/* 7155 * Fix Command Arguments for Rs6000_Param 7156 */ 7157static const char* apzRs6000_ParamPatch[] = { 7158 "format", 7159 "rename(const char *_old, const char *_new)", 7160 (char*)NULL }; 7161 7162/* * * * * * * * * * * * * * * * * * * * * * * * * * 7163 * 7164 * Description of Solaris___Restrict fix 7165 */ 7166tSCC zSolaris___RestrictName[] = 7167 "solaris___restrict"; 7168 7169/* 7170 * File name selection pattern 7171 */ 7172tSCC zSolaris___RestrictList[] = 7173 "sys/feature_tests.h\0"; 7174/* 7175 * Machine/OS name selection pattern 7176 */ 7177tSCC* apzSolaris___RestrictMachs[] = { 7178 "*-*-solaris2*", 7179 (const char*)NULL }; 7180 7181/* 7182 * content selection pattern - do fix if pattern found 7183 */ 7184tSCC zSolaris___RestrictSelect0[] = 7185 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict"; 7186 7187#define SOLARIS___RESTRICT_TEST_CT 1 7188static tTestDesc aSolaris___RestrictTests[] = { 7189 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, }; 7190 7191/* 7192 * Fix Command Arguments for Solaris___Restrict 7193 */ 7194static const char* apzSolaris___RestrictPatch[] = { 7195 "format", 7196 "#ifdef __cplusplus\n\ 7197#define\t_RESTRICT_KYWD\t__restrict\n\ 7198#else\n\ 7199%0\n\ 7200#endif", 7201 (char*)NULL }; 7202 7203/* * * * * * * * * * * * * * * * * * * * * * * * * * 7204 * 7205 * Description of Solaris_Complex fix 7206 */ 7207tSCC zSolaris_ComplexName[] = 7208 "solaris_complex"; 7209 7210/* 7211 * File name selection pattern 7212 */ 7213tSCC zSolaris_ComplexList[] = 7214 "complex.h\0"; 7215/* 7216 * Machine/OS name selection pattern 7217 */ 7218tSCC* apzSolaris_ComplexMachs[] = { 7219 "*-*-solaris2.*", 7220 (const char*)NULL }; 7221 7222/* 7223 * content selection pattern - do fix if pattern found 7224 */ 7225tSCC zSolaris_ComplexSelect0[] = 7226 "#define[ \t]_Complex_I[ \t]_Complex_I"; 7227 7228#define SOLARIS_COMPLEX_TEST_CT 1 7229static tTestDesc aSolaris_ComplexTests[] = { 7230 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, }; 7231 7232/* 7233 * Fix Command Arguments for Solaris_Complex 7234 */ 7235static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z, 7236 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/", 7237 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d", 7238 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d", 7239 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/", 7240 (char*)NULL }; 7241 7242/* * * * * * * * * * * * * * * * * * * * * * * * * * 7243 * 7244 * Description of Solaris_Complex_Cxx fix 7245 */ 7246tSCC zSolaris_Complex_CxxName[] = 7247 "solaris_complex_cxx"; 7248 7249/* 7250 * File name selection pattern 7251 */ 7252tSCC zSolaris_Complex_CxxList[] = 7253 "complex.h\0"; 7254/* 7255 * Machine/OS name selection pattern 7256 */ 7257tSCC* apzSolaris_Complex_CxxMachs[] = { 7258 "*-*-solaris2.*", 7259 (const char*)NULL }; 7260#define SOLARIS_COMPLEX_CXX_TEST_CT 0 7261#define aSolaris_Complex_CxxTests (tTestDesc*)NULL 7262 7263/* 7264 * Fix Command Arguments for Solaris_Complex_Cxx 7265 */ 7266static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z, 7267 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\ 7268#ifdef\t__cplusplus\\\n\ 7269extern \"C\" {\\\n\ 7270#endif", 7271 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\ 7272#ifdef\t__cplusplus\\\n\ 7273}\\\n\ 7274#endif", 7275 (char*)NULL }; 7276 7277/* * * * * * * * * * * * * * * * * * * * * * * * * * 7278 * 7279 * Description of Solaris_Cxx_Linkage fix 7280 */ 7281tSCC zSolaris_Cxx_LinkageName[] = 7282 "solaris_cxx_linkage"; 7283 7284/* 7285 * File name selection pattern 7286 */ 7287tSCC zSolaris_Cxx_LinkageList[] = 7288 "iso/stdlib_iso.h\0"; 7289/* 7290 * Machine/OS name selection pattern 7291 */ 7292tSCC* apzSolaris_Cxx_LinkageMachs[] = { 7293 "*-*-solaris2*", 7294 (const char*)NULL }; 7295 7296/* 7297 * content selection pattern - do fix if pattern found 7298 */ 7299tSCC zSolaris_Cxx_LinkageSelect0[] = 7300 "(#if __cplusplus >= 199711L)\n\ 7301(extern \"C\\+\\+\" \\{\n\ 7302)(.*(bsearch|qsort).*)"; 7303 7304#define SOLARIS_CXX_LINKAGE_TEST_CT 1 7305static tTestDesc aSolaris_Cxx_LinkageTests[] = { 7306 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, }; 7307 7308/* 7309 * Fix Command Arguments for Solaris_Cxx_Linkage 7310 */ 7311static const char* apzSolaris_Cxx_LinkagePatch[] = { 7312 "format", 7313 "%1 && !__GNUG__\n\ 7314%2%3", 7315 (char*)NULL }; 7316 7317/* * * * * * * * * * * * * * * * * * * * * * * * * * 7318 * 7319 * Description of Solaris_Getc_Strict_Stdc fix 7320 */ 7321tSCC zSolaris_Getc_Strict_StdcName[] = 7322 "solaris_getc_strict_stdc"; 7323 7324/* 7325 * File name selection pattern 7326 */ 7327tSCC zSolaris_Getc_Strict_StdcList[] = 7328 "iso/stdio_iso.h\0"; 7329/* 7330 * Machine/OS name selection pattern 7331 */ 7332tSCC* apzSolaris_Getc_Strict_StdcMachs[] = { 7333 "*-*-solaris2*", 7334 (const char*)NULL }; 7335 7336/* 7337 * content selection pattern - do fix if pattern found 7338 */ 7339tSCC zSolaris_Getc_Strict_StdcSelect0[] = 7340 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)"; 7341 7342#define SOLARIS_GETC_STRICT_STDC_TEST_CT 1 7343static tTestDesc aSolaris_Getc_Strict_StdcTests[] = { 7344 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, }; 7345 7346/* 7347 * Fix Command Arguments for Solaris_Getc_Strict_Stdc 7348 */ 7349static const char* apzSolaris_Getc_Strict_StdcPatch[] = { 7350 "format", 7351 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2", 7352 (char*)NULL }; 7353 7354/* * * * * * * * * * * * * * * * * * * * * * * * * * 7355 * 7356 * Description of Solaris_Gets_C11 fix 7357 */ 7358tSCC zSolaris_Gets_C11Name[] = 7359 "solaris_gets_c11"; 7360 7361/* 7362 * File name selection pattern 7363 */ 7364tSCC zSolaris_Gets_C11List[] = 7365 "iso/stdio_iso.h\0"; 7366/* 7367 * Machine/OS name selection pattern 7368 */ 7369tSCC* apzSolaris_Gets_C11Machs[] = { 7370 "*-*-solaris2*", 7371 (const char*)NULL }; 7372 7373/* 7374 * content selection pattern - do fix if pattern found 7375 */ 7376tSCC zSolaris_Gets_C11Select0[] = 7377 "(extern char[ \t]*\\*gets\\(char \\*\\));"; 7378 7379#define SOLARIS_GETS_C11_TEST_CT 1 7380static tTestDesc aSolaris_Gets_C11Tests[] = { 7381 { TT_EGREP, zSolaris_Gets_C11Select0, (regex_t*)NULL }, }; 7382 7383/* 7384 * Fix Command Arguments for Solaris_Gets_C11 7385 */ 7386static const char* apzSolaris_Gets_C11Patch[] = { 7387 "format", 7388 "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\ 7389%1 __attribute__((__deprecated__));\n\ 7390#endif", 7391 (char*)NULL }; 7392 7393/* * * * * * * * * * * * * * * * * * * * * * * * * * 7394 * 7395 * Description of Solaris_Gets_Cxx14 fix 7396 */ 7397tSCC zSolaris_Gets_Cxx14Name[] = 7398 "solaris_gets_cxx14"; 7399 7400/* 7401 * File name selection pattern 7402 */ 7403tSCC zSolaris_Gets_Cxx14List[] = 7404 "iso/stdio_iso.h\0"; 7405/* 7406 * Machine/OS name selection pattern 7407 */ 7408tSCC* apzSolaris_Gets_Cxx14Machs[] = { 7409 "*-*-solaris2*", 7410 (const char*)NULL }; 7411 7412/* 7413 * content selection pattern - do fix if pattern found 7414 */ 7415tSCC zSolaris_Gets_Cxx14Select0[] = 7416 "(#if __STDC_VERSION__ < 201112L)\n\ 7417(extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)"; 7418 7419#define SOLARIS_GETS_CXX14_TEST_CT 1 7420static tTestDesc aSolaris_Gets_Cxx14Tests[] = { 7421 { TT_EGREP, zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, }; 7422 7423/* 7424 * Fix Command Arguments for Solaris_Gets_Cxx14 7425 */ 7426static const char* apzSolaris_Gets_Cxx14Patch[] = { 7427 "format", 7428 "%1 && __cplusplus < 201402L\n\ 7429%2", 7430 (char*)NULL }; 7431 7432/* * * * * * * * * * * * * * * * * * * * * * * * * * 7433 * 7434 * Description of Solaris_Int_Const fix 7435 */ 7436tSCC zSolaris_Int_ConstName[] = 7437 "solaris_int_const"; 7438 7439/* 7440 * File name selection pattern 7441 */ 7442tSCC zSolaris_Int_ConstList[] = 7443 "sys/int_const.h\0"; 7444/* 7445 * Machine/OS name selection pattern 7446 */ 7447tSCC* apzSolaris_Int_ConstMachs[] = { 7448 "*-*-solaris2*", 7449 (const char*)NULL }; 7450 7451/* 7452 * content selection pattern - do fix if pattern found 7453 */ 7454tSCC zSolaris_Int_ConstSelect0[] = 7455 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\ 7456(/*.**/)\n\ 7457#define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*"; 7458 7459#define SOLARIS_INT_CONST_TEST_CT 1 7460static tTestDesc aSolaris_Int_ConstTests[] = { 7461 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, }; 7462 7463/* 7464 * Fix Command Arguments for Solaris_Int_Const 7465 */ 7466static const char* apzSolaris_Int_ConstPatch[] = { 7467 "format", 7468 "#define\tUINT8_C(c)\t(c)\n\ 7469%1\n\ 7470#define\tUINT16_C(c)\t(c)", 7471 (char*)NULL }; 7472 7473/* * * * * * * * * * * * * * * * * * * * * * * * * * 7474 * 7475 * Description of Solaris_Int_Limits_1 fix 7476 */ 7477tSCC zSolaris_Int_Limits_1Name[] = 7478 "solaris_int_limits_1"; 7479 7480/* 7481 * File name selection pattern 7482 */ 7483tSCC zSolaris_Int_Limits_1List[] = 7484 "sys/int_limits.h\0"; 7485/* 7486 * Machine/OS name selection pattern 7487 */ 7488tSCC* apzSolaris_Int_Limits_1Machs[] = { 7489 "*-*-solaris2*", 7490 (const char*)NULL }; 7491 7492/* 7493 * content selection pattern - do fix if pattern found 7494 */ 7495tSCC zSolaris_Int_Limits_1Select0[] = 7496 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\ 7497#define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)"; 7498 7499#define SOLARIS_INT_LIMITS_1_TEST_CT 1 7500static tTestDesc aSolaris_Int_Limits_1Tests[] = { 7501 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, }; 7502 7503/* 7504 * Fix Command Arguments for Solaris_Int_Limits_1 7505 */ 7506static const char* apzSolaris_Int_Limits_1Patch[] = { 7507 "format", 7508 "#define\tUINT8_MAX\t(255)\n\ 7509#define\tUINT16_MAX\t(65535)", 7510 (char*)NULL }; 7511 7512/* * * * * * * * * * * * * * * * * * * * * * * * * * 7513 * 7514 * Description of Solaris_Int_Limits_2 fix 7515 */ 7516tSCC zSolaris_Int_Limits_2Name[] = 7517 "solaris_int_limits_2"; 7518 7519/* 7520 * File name selection pattern 7521 */ 7522tSCC zSolaris_Int_Limits_2List[] = 7523 "sys/int_limits.h\0"; 7524/* 7525 * Machine/OS name selection pattern 7526 */ 7527tSCC* apzSolaris_Int_Limits_2Machs[] = { 7528 "*-*-solaris2*", 7529 (const char*)NULL }; 7530 7531/* 7532 * content selection pattern - do fix if pattern found 7533 */ 7534tSCC zSolaris_Int_Limits_2Select0[] = 7535 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*"; 7536 7537#define SOLARIS_INT_LIMITS_2_TEST_CT 1 7538static tTestDesc aSolaris_Int_Limits_2Tests[] = { 7539 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, }; 7540 7541/* 7542 * Fix Command Arguments for Solaris_Int_Limits_2 7543 */ 7544static const char* apzSolaris_Int_Limits_2Patch[] = { 7545 "format", 7546 "#define\t%1_FAST16_%2 %132_%2", 7547 (char*)NULL }; 7548 7549/* * * * * * * * * * * * * * * * * * * * * * * * * * 7550 * 7551 * Description of Solaris_Int_Limits_3 fix 7552 */ 7553tSCC zSolaris_Int_Limits_3Name[] = 7554 "solaris_int_limits_3"; 7555 7556/* 7557 * File name selection pattern 7558 */ 7559tSCC zSolaris_Int_Limits_3List[] = 7560 "sys/int_limits.h\0"; 7561/* 7562 * Machine/OS name selection pattern 7563 */ 7564tSCC* apzSolaris_Int_Limits_3Machs[] = { 7565 "*-*-solaris2*", 7566 (const char*)NULL }; 7567 7568/* 7569 * content selection pattern - do fix if pattern found 7570 */ 7571tSCC zSolaris_Int_Limits_3Select0[] = 7572 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL"; 7573 7574#define SOLARIS_INT_LIMITS_3_TEST_CT 1 7575static tTestDesc aSolaris_Int_Limits_3Tests[] = { 7576 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, }; 7577 7578/* 7579 * Fix Command Arguments for Solaris_Int_Limits_3 7580 */ 7581static const char* apzSolaris_Int_Limits_3Patch[] = { 7582 "format", 7583 "#define\tSIZE_MAX\t4294967295U", 7584 (char*)NULL }; 7585 7586/* * * * * * * * * * * * * * * * * * * * * * * * * * 7587 * 7588 * Description of Solaris_Math_1 fix 7589 */ 7590tSCC zSolaris_Math_1Name[] = 7591 "solaris_math_1"; 7592 7593/* 7594 * File name selection pattern 7595 */ 7596tSCC zSolaris_Math_1List[] = 7597 "iso/math_c99.h\0"; 7598/* 7599 * Machine/OS name selection pattern 7600 */ 7601#define apzSolaris_Math_1Machs (const char**)NULL 7602 7603/* 7604 * content selection pattern - do fix if pattern found 7605 */ 7606tSCC zSolaris_Math_1Select0[] = 7607 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 7608 7609/* 7610 * content bypass pattern - skip fix if pattern found 7611 */ 7612tSCC zSolaris_Math_1Bypass0[] = 7613 "__GNUC__"; 7614 7615#define SOLARIS_MATH_1_TEST_CT 2 7616static tTestDesc aSolaris_Math_1Tests[] = { 7617 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL }, 7618 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, }; 7619 7620/* 7621 * Fix Command Arguments for Solaris_Math_1 7622 */ 7623static const char* apzSolaris_Math_1Patch[] = { 7624 "format", 7625 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())", 7626 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)", 7627 (char*)NULL }; 7628 7629/* * * * * * * * * * * * * * * * * * * * * * * * * * 7630 * 7631 * Description of Solaris_Math_10 fix 7632 */ 7633tSCC zSolaris_Math_10Name[] = 7634 "solaris_math_10"; 7635 7636/* 7637 * File name selection pattern 7638 */ 7639tSCC zSolaris_Math_10List[] = 7640 "iso/math_c99.h\0"; 7641/* 7642 * Machine/OS name selection pattern 7643 */ 7644#define apzSolaris_Math_10Machs (const char**)NULL 7645 7646/* 7647 * content selection pattern - do fix if pattern found 7648 */ 7649tSCC zSolaris_Math_10Select0[] = 7650 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 7651 7652#define SOLARIS_MATH_10_TEST_CT 1 7653static tTestDesc aSolaris_Math_10Tests[] = { 7654 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, }; 7655 7656/* 7657 * Fix Command Arguments for Solaris_Math_10 7658 */ 7659static const char* apzSolaris_Math_10Patch[] = { 7660 "format", 7661 "#define\tisinf(x) __builtin_isinf(x)", 7662 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\ 7663[ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\ 7664[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\ 7665[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)", 7666 (char*)NULL }; 7667 7668/* * * * * * * * * * * * * * * * * * * * * * * * * * 7669 * 7670 * Description of Solaris_Math_2 fix 7671 */ 7672tSCC zSolaris_Math_2Name[] = 7673 "solaris_math_2"; 7674 7675/* 7676 * File name selection pattern 7677 */ 7678tSCC zSolaris_Math_2List[] = 7679 "iso/math_c99.h\0"; 7680/* 7681 * Machine/OS name selection pattern 7682 */ 7683#define apzSolaris_Math_2Machs (const char**)NULL 7684 7685/* 7686 * content selection pattern - do fix if pattern found 7687 */ 7688tSCC zSolaris_Math_2Select0[] = 7689 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 7690 7691/* 7692 * content bypass pattern - skip fix if pattern found 7693 */ 7694tSCC zSolaris_Math_2Bypass0[] = 7695 "__GNUC__"; 7696 7697#define SOLARIS_MATH_2_TEST_CT 2 7698static tTestDesc aSolaris_Math_2Tests[] = { 7699 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL }, 7700 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, }; 7701 7702/* 7703 * Fix Command Arguments for Solaris_Math_2 7704 */ 7705static const char* apzSolaris_Math_2Patch[] = { 7706 "format", 7707 "#define\tINFINITY\t(__builtin_inff())", 7708 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity", 7709 (char*)NULL }; 7710 7711/* * * * * * * * * * * * * * * * * * * * * * * * * * 7712 * 7713 * Description of Solaris_Math_3 fix 7714 */ 7715tSCC zSolaris_Math_3Name[] = 7716 "solaris_math_3"; 7717 7718/* 7719 * File name selection pattern 7720 */ 7721tSCC zSolaris_Math_3List[] = 7722 "iso/math_c99.h\0"; 7723/* 7724 * Machine/OS name selection pattern 7725 */ 7726#define apzSolaris_Math_3Machs (const char**)NULL 7727 7728/* 7729 * content selection pattern - do fix if pattern found 7730 */ 7731tSCC zSolaris_Math_3Select0[] = 7732 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 7733 7734/* 7735 * content bypass pattern - skip fix if pattern found 7736 */ 7737tSCC zSolaris_Math_3Bypass0[] = 7738 "__GNUC__"; 7739 7740#define SOLARIS_MATH_3_TEST_CT 2 7741static tTestDesc aSolaris_Math_3Tests[] = { 7742 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL }, 7743 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, }; 7744 7745/* 7746 * Fix Command Arguments for Solaris_Math_3 7747 */ 7748static const char* apzSolaris_Math_3Patch[] = { 7749 "format", 7750 "#define\tNAN\t\t(__builtin_nanf(\"\"))", 7751 "^#define[ \t]+NAN[ \t]+__builtin_nan", 7752 (char*)NULL }; 7753 7754/* * * * * * * * * * * * * * * * * * * * * * * * * * 7755 * 7756 * Description of Solaris_Math_4 fix 7757 */ 7758tSCC zSolaris_Math_4Name[] = 7759 "solaris_math_4"; 7760 7761/* 7762 * File name selection pattern 7763 */ 7764tSCC zSolaris_Math_4List[] = 7765 "iso/math_c99.h\0"; 7766/* 7767 * Machine/OS name selection pattern 7768 */ 7769#define apzSolaris_Math_4Machs (const char**)NULL 7770 7771/* 7772 * content selection pattern - do fix if pattern found 7773 */ 7774tSCC zSolaris_Math_4Select0[] = 7775 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 7776 7777/* 7778 * content bypass pattern - skip fix if pattern found 7779 */ 7780tSCC zSolaris_Math_4Bypass0[] = 7781 "__GNUC__"; 7782 7783#define SOLARIS_MATH_4_TEST_CT 2 7784static tTestDesc aSolaris_Math_4Tests[] = { 7785 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL }, 7786 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, }; 7787 7788/* 7789 * Fix Command Arguments for Solaris_Math_4 7790 */ 7791static const char* apzSolaris_Math_4Patch[] = { 7792 "format", 7793 "#define\tfpclassify(x) \\\n\ 7794 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))", 7795 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)", 7796 (char*)NULL }; 7797 7798/* * * * * * * * * * * * * * * * * * * * * * * * * * 7799 * 7800 * Description of Solaris_Math_8 fix 7801 */ 7802tSCC zSolaris_Math_8Name[] = 7803 "solaris_math_8"; 7804 7805/* 7806 * File name selection pattern 7807 */ 7808tSCC zSolaris_Math_8List[] = 7809 "iso/math_c99.h\0"; 7810/* 7811 * Machine/OS name selection pattern 7812 */ 7813#define apzSolaris_Math_8Machs (const char**)NULL 7814 7815/* 7816 * content selection pattern - do fix if pattern found 7817 */ 7818tSCC zSolaris_Math_8Select0[] = 7819 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI"; 7820 7821/* 7822 * content bypass pattern - skip fix if pattern found 7823 */ 7824tSCC zSolaris_Math_8Bypass0[] = 7825 "__GNUC__"; 7826 7827#define SOLARIS_MATH_8_TEST_CT 2 7828static tTestDesc aSolaris_Math_8Tests[] = { 7829 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL }, 7830 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, }; 7831 7832/* 7833 * Fix Command Arguments for Solaris_Math_8 7834 */ 7835static const char* apzSolaris_Math_8Patch[] = { 7836 "format", 7837 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ 7838\t\t\t ? __builtin_signbitf(x) \\\n\ 7839\t\t\t : sizeof(x) == sizeof(long double) \\\n\ 7840\t\t\t ? __builtin_signbitl(x) \\\n\ 7841\t\t\t : __builtin_signbit(x))", 7842 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)", 7843 (char*)NULL }; 7844 7845/* * * * * * * * * * * * * * * * * * * * * * * * * * 7846 * 7847 * Description of Solaris_Math_9 fix 7848 */ 7849tSCC zSolaris_Math_9Name[] = 7850 "solaris_math_9"; 7851 7852/* 7853 * File name selection pattern 7854 */ 7855tSCC zSolaris_Math_9List[] = 7856 "iso/math_c99.h\0"; 7857/* 7858 * Machine/OS name selection pattern 7859 */ 7860#define apzSolaris_Math_9Machs (const char**)NULL 7861 7862/* 7863 * content selection pattern - do fix if pattern found 7864 */ 7865tSCC zSolaris_Math_9Select0[] = 7866 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 7867 7868/* 7869 * content bypass pattern - skip fix if pattern found 7870 */ 7871tSCC zSolaris_Math_9Bypass0[] = 7872 "__GNUC__"; 7873 7874#define SOLARIS_MATH_9_TEST_CT 2 7875static tTestDesc aSolaris_Math_9Tests[] = { 7876 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL }, 7877 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, }; 7878 7879/* 7880 * Fix Command Arguments for Solaris_Math_9 7881 */ 7882static const char* apzSolaris_Math_9Patch[] = { 7883 "format", 7884 "#define\t%1(x, y)%2__builtin_%1(x, y)", 7885 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)", 7886 (char*)NULL }; 7887 7888/* * * * * * * * * * * * * * * * * * * * * * * * * * 7889 * 7890 * Description of Solaris_Math_11 fix 7891 */ 7892tSCC zSolaris_Math_11Name[] = 7893 "solaris_math_11"; 7894 7895/* 7896 * File name selection pattern 7897 */ 7898tSCC zSolaris_Math_11List[] = 7899 "iso/math_c99.h\0"; 7900/* 7901 * Machine/OS name selection pattern 7902 */ 7903#define apzSolaris_Math_11Machs (const char**)NULL 7904 7905/* 7906 * content selection pattern - do fix if pattern found 7907 */ 7908tSCC zSolaris_Math_11Select0[] = 7909 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ "; 7910 7911#define SOLARIS_MATH_11_TEST_CT 1 7912static tTestDesc aSolaris_Math_11Tests[] = { 7913 { TT_EGREP, zSolaris_Math_11Select0, (regex_t*)NULL }, }; 7914 7915/* 7916 * Fix Command Arguments for Solaris_Math_11 7917 */ 7918static const char* apzSolaris_Math_11Patch[] = { 7919 "format", 7920 "#undef\tsignbit\n\ 7921#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ 7922\t\t\t ? __builtin_signbitf(x) \\\n\ 7923\t\t\t : sizeof(x) == sizeof(long double) \\\n\ 7924\t\t\t ? __builtin_signbitl(x) \\\n\ 7925\t\t\t : __builtin_signbit(x))", 7926 "^#undef[ \t]+signbit\n\ 7927#if defined\\(__sparc\\)\n\ 7928#define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\ 7929[ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\ 7930[ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\ 7931#elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\ 7932#define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\ 7933[ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\ 7934[ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\ 7935[ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\ 7936[ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\ 7937[ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\ 7938[ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\ 7939#endif", 7940 (char*)NULL }; 7941 7942/* * * * * * * * * * * * * * * * * * * * * * * * * * 7943 * 7944 * Description of Solaris_Math_12 fix 7945 */ 7946tSCC zSolaris_Math_12Name[] = 7947 "solaris_math_12"; 7948 7949/* 7950 * File name selection pattern 7951 */ 7952tSCC zSolaris_Math_12List[] = 7953 "math.h\0"; 7954/* 7955 * Machine/OS name selection pattern 7956 */ 7957tSCC* apzSolaris_Math_12Machs[] = { 7958 "*-*-solaris2*", 7959 (const char*)NULL }; 7960 7961/* 7962 * content selection pattern - do fix if pattern found 7963 */ 7964tSCC zSolaris_Math_12Select0[] = 7965 "#undef.*_GLIBCXX_USE_C99_MATH"; 7966 7967#define SOLARIS_MATH_12_TEST_CT 1 7968static tTestDesc aSolaris_Math_12Tests[] = { 7969 { TT_EGREP, zSolaris_Math_12Select0, (regex_t*)NULL }, }; 7970 7971/* 7972 * Fix Command Arguments for Solaris_Math_12 7973 */ 7974static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z, 7975 "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d", 7976 (char*)NULL }; 7977 7978/* * * * * * * * * * * * * * * * * * * * * * * * * * 7979 * 7980 * Description of Solaris_Once_Init_1 fix 7981 */ 7982tSCC zSolaris_Once_Init_1Name[] = 7983 "solaris_once_init_1"; 7984 7985/* 7986 * File name selection pattern 7987 */ 7988tSCC zSolaris_Once_Init_1List[] = 7989 "pthread.h\0"; 7990/* 7991 * Machine/OS name selection pattern 7992 */ 7993tSCC* apzSolaris_Once_Init_1Machs[] = { 7994 "*-*-solaris*", 7995 (const char*)NULL }; 7996 7997/* 7998 * content selection pattern - do fix if pattern found 7999 */ 8000tSCC zSolaris_Once_Init_1Select0[] = 8001 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 8002 8003#define SOLARIS_ONCE_INIT_1_TEST_CT 1 8004static tTestDesc aSolaris_Once_Init_1Tests[] = { 8005 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, }; 8006 8007/* 8008 * Fix Command Arguments for Solaris_Once_Init_1 8009 */ 8010static const char* apzSolaris_Once_Init_1Patch[] = { 8011 "format", 8012 "%1{%2}%3", 8013 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$", 8014 (char*)NULL }; 8015 8016/* * * * * * * * * * * * * * * * * * * * * * * * * * 8017 * 8018 * Description of Solaris_Posix_Spawn_Restrict fix 8019 */ 8020tSCC zSolaris_Posix_Spawn_RestrictName[] = 8021 "solaris_posix_spawn_restrict"; 8022 8023/* 8024 * File name selection pattern 8025 */ 8026tSCC zSolaris_Posix_Spawn_RestrictList[] = 8027 "spawn.h\0"; 8028/* 8029 * Machine/OS name selection pattern 8030 */ 8031tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = { 8032 "*-*-solaris2*", 8033 (const char*)NULL }; 8034 8035/* 8036 * content selection pattern - do fix if pattern found 8037 */ 8038tSCC zSolaris_Posix_Spawn_RestrictSelect0[] = 8039 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)"; 8040 8041#define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1 8042static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = { 8043 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, }; 8044 8045/* 8046 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict 8047 */ 8048static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = { 8049 "format", 8050 "%1*_RESTRICT_KYWD %2%3", 8051 (char*)NULL }; 8052 8053/* * * * * * * * * * * * * * * * * * * * * * * * * * 8054 * 8055 * Description of Solaris_Pow_Int_Overload fix 8056 */ 8057tSCC zSolaris_Pow_Int_OverloadName[] = 8058 "solaris_pow_int_overload"; 8059 8060/* 8061 * File name selection pattern 8062 */ 8063tSCC zSolaris_Pow_Int_OverloadList[] = 8064 "iso/math_iso.h\0"; 8065/* 8066 * Machine/OS name selection pattern 8067 */ 8068tSCC* apzSolaris_Pow_Int_OverloadMachs[] = { 8069 "*-*-solaris2*", 8070 (const char*)NULL }; 8071 8072/* 8073 * content selection pattern - do fix if pattern found 8074 */ 8075tSCC zSolaris_Pow_Int_OverloadSelect0[] = 8076 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\ 8077[^{}]*\\}"; 8078 8079#define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1 8080static tTestDesc aSolaris_Pow_Int_OverloadTests[] = { 8081 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, }; 8082 8083/* 8084 * Fix Command Arguments for Solaris_Pow_Int_Overload 8085 */ 8086static const char* apzSolaris_Pow_Int_OverloadPatch[] = { 8087 "format", 8088 "#if __cplusplus < 201103L\n\ 8089%0\n\ 8090#endif", 8091 (char*)NULL }; 8092 8093/* * * * * * * * * * * * * * * * * * * * * * * * * * 8094 * 8095 * Description of Solaris_Rwlock_Init_1 fix 8096 */ 8097tSCC zSolaris_Rwlock_Init_1Name[] = 8098 "solaris_rwlock_init_1"; 8099 8100/* 8101 * File name selection pattern 8102 */ 8103tSCC zSolaris_Rwlock_Init_1List[] = 8104 "pthread.h\0"; 8105/* 8106 * Machine/OS name selection pattern 8107 */ 8108tSCC* apzSolaris_Rwlock_Init_1Machs[] = { 8109 "*-*-solaris*", 8110 (const char*)NULL }; 8111 8112/* 8113 * content selection pattern - do fix if pattern found 8114 */ 8115tSCC zSolaris_Rwlock_Init_1Select0[] = 8116 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 8117 8118#define SOLARIS_RWLOCK_INIT_1_TEST_CT 1 8119static tTestDesc aSolaris_Rwlock_Init_1Tests[] = { 8120 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, }; 8121 8122/* 8123 * Fix Command Arguments for Solaris_Rwlock_Init_1 8124 */ 8125static const char* apzSolaris_Rwlock_Init_1Patch[] = { 8126 "format", 8127 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ 8128%0\n\ 8129#else\n\ 8130%1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\ 8131#endif", 8132 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$", 8133 (char*)NULL }; 8134 8135/* * * * * * * * * * * * * * * * * * * * * * * * * * 8136 * 8137 * Description of Solaris_Std___Filbuf fix 8138 */ 8139tSCC zSolaris_Std___FilbufName[] = 8140 "solaris_std___filbuf"; 8141 8142/* 8143 * File name selection pattern 8144 */ 8145tSCC zSolaris_Std___FilbufList[] = 8146 "stdio.h\0"; 8147/* 8148 * Machine/OS name selection pattern 8149 */ 8150tSCC* apzSolaris_Std___FilbufMachs[] = { 8151 "*-*-solaris2*", 8152 (const char*)NULL }; 8153 8154/* 8155 * content selection pattern - do fix if pattern found 8156 */ 8157tSCC zSolaris_Std___FilbufSelect0[] = 8158 "(using std::perror;\n\ 8159)(#endif)"; 8160 8161/* 8162 * content bypass pattern - skip fix if pattern found 8163 */ 8164tSCC zSolaris_Std___FilbufBypass0[] = 8165 "using std::__filbuf"; 8166 8167#define SOLARIS_STD___FILBUF_TEST_CT 2 8168static tTestDesc aSolaris_Std___FilbufTests[] = { 8169 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL }, 8170 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, }; 8171 8172/* 8173 * Fix Command Arguments for Solaris_Std___Filbuf 8174 */ 8175static const char* apzSolaris_Std___FilbufPatch[] = { 8176 "format", 8177 "%1#ifndef _LP64\n\ 8178using std::__filbuf;\n\ 8179using std::__flsbuf;\n\ 8180#endif\n\ 8181%2", 8182 (char*)NULL }; 8183 8184/* * * * * * * * * * * * * * * * * * * * * * * * * * 8185 * 8186 * Description of Solaris_Std_Gets_Cxx14 fix 8187 */ 8188tSCC zSolaris_Std_Gets_Cxx14Name[] = 8189 "solaris_std_gets_cxx14"; 8190 8191/* 8192 * File name selection pattern 8193 */ 8194tSCC zSolaris_Std_Gets_Cxx14List[] = 8195 "stdio.h\0"; 8196/* 8197 * Machine/OS name selection pattern 8198 */ 8199tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = { 8200 "*-*-solaris2*", 8201 (const char*)NULL }; 8202 8203/* 8204 * content selection pattern - do fix if pattern found 8205 */ 8206tSCC zSolaris_Std_Gets_Cxx14Select0[] = 8207 "using std::gets;"; 8208 8209#define SOLARIS_STD_GETS_CXX14_TEST_CT 1 8210static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = { 8211 { TT_EGREP, zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, }; 8212 8213/* 8214 * Fix Command Arguments for Solaris_Std_Gets_Cxx14 8215 */ 8216static const char* apzSolaris_Std_Gets_Cxx14Patch[] = { 8217 "format", 8218 "#if __cplusplus < 201402L\n\ 8219%0\n\ 8220#endif", 8221 (char*)NULL }; 8222 8223/* * * * * * * * * * * * * * * * * * * * * * * * * * 8224 * 8225 * Description of Solaris_Stdio_Tag fix 8226 */ 8227tSCC zSolaris_Stdio_TagName[] = 8228 "solaris_stdio_tag"; 8229 8230/* 8231 * File name selection pattern 8232 */ 8233tSCC zSolaris_Stdio_TagList[] = 8234 "stdio_tag.h\0"; 8235/* 8236 * Machine/OS name selection pattern 8237 */ 8238#define apzSolaris_Stdio_TagMachs (const char**)NULL 8239 8240/* 8241 * content selection pattern - do fix if pattern found 8242 */ 8243tSCC zSolaris_Stdio_TagSelect0[] = 8244 "__cplusplus < 54321L"; 8245 8246/* 8247 * content bypass pattern - skip fix if pattern found 8248 */ 8249tSCC zSolaris_Stdio_TagBypass0[] = 8250 "__GNUC__"; 8251 8252#define SOLARIS_STDIO_TAG_TEST_CT 2 8253static tTestDesc aSolaris_Stdio_TagTests[] = { 8254 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL }, 8255 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, }; 8256 8257/* 8258 * Fix Command Arguments for Solaris_Stdio_Tag 8259 */ 8260static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z, 8261 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/", 8262 (char*)NULL }; 8263 8264/* * * * * * * * * * * * * * * * * * * * * * * * * * 8265 * 8266 * Description of Solaris_Stdlib_Noreturn fix 8267 */ 8268tSCC zSolaris_Stdlib_NoreturnName[] = 8269 "solaris_stdlib_noreturn"; 8270 8271/* 8272 * File name selection pattern 8273 */ 8274tSCC zSolaris_Stdlib_NoreturnList[] = 8275 "iso/stdlib_c99.h\0"; 8276/* 8277 * Machine/OS name selection pattern 8278 */ 8279tSCC* apzSolaris_Stdlib_NoreturnMachs[] = { 8280 "*-*-solaris2*", 8281 (const char*)NULL }; 8282 8283/* 8284 * content selection pattern - do fix if pattern found 8285 */ 8286tSCC zSolaris_Stdlib_NoreturnSelect0[] = 8287 "(extern) _Noreturn (void quick_exit\\(int\\));"; 8288 8289#define SOLARIS_STDLIB_NORETURN_TEST_CT 1 8290static tTestDesc aSolaris_Stdlib_NoreturnTests[] = { 8291 { TT_EGREP, zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, }; 8292 8293/* 8294 * Fix Command Arguments for Solaris_Stdlib_Noreturn 8295 */ 8296static const char* apzSolaris_Stdlib_NoreturnPatch[] = { 8297 "format", 8298 "%1 %2 __attribute__((__noreturn__));", 8299 (char*)NULL }; 8300 8301/* * * * * * * * * * * * * * * * * * * * * * * * * * 8302 * 8303 * Description of Statsswtch fix 8304 */ 8305tSCC zStatsswtchName[] = 8306 "statsswtch"; 8307 8308/* 8309 * File name selection pattern 8310 */ 8311tSCC zStatsswtchList[] = 8312 "rpcsvc/rstat.h\0"; 8313/* 8314 * Machine/OS name selection pattern 8315 */ 8316#define apzStatsswtchMachs (const char**)NULL 8317 8318/* 8319 * content selection pattern - do fix if pattern found 8320 */ 8321tSCC zStatsswtchSelect0[] = 8322 "boottime$"; 8323 8324#define STATSSWTCH_TEST_CT 1 8325static tTestDesc aStatsswtchTests[] = { 8326 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, }; 8327 8328/* 8329 * Fix Command Arguments for Statsswtch 8330 */ 8331static const char* apzStatsswtchPatch[] = { 8332 "format", 8333 "boottime;", 8334 (char*)NULL }; 8335 8336/* * * * * * * * * * * * * * * * * * * * * * * * * * 8337 * 8338 * Description of Stdio_Stdarg_H fix 8339 */ 8340tSCC zStdio_Stdarg_HName[] = 8341 "stdio_stdarg_h"; 8342 8343/* 8344 * File name selection pattern 8345 */ 8346tSCC zStdio_Stdarg_HList[] = 8347 "stdio.h\0"; 8348/* 8349 * Machine/OS name selection pattern 8350 */ 8351tSCC* apzStdio_Stdarg_HMachs[] = { 8352 "*-*-solaris2.1[0-9]*", 8353 (const char*)NULL }; 8354 8355/* 8356 * content bypass pattern - skip fix if pattern found 8357 */ 8358tSCC zStdio_Stdarg_HBypass0[] = 8359 "include.*(stdarg.h|machine/ansi.h)"; 8360 8361#define STDIO_STDARG_H_TEST_CT 1 8362static tTestDesc aStdio_Stdarg_HTests[] = { 8363 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, }; 8364 8365/* 8366 * Fix Command Arguments for Stdio_Stdarg_H 8367 */ 8368static const char* apzStdio_Stdarg_HPatch[] = { 8369 "wrap", 8370 "#define __need___va_list\n\ 8371#include <stdarg.h>\n", 8372 (char*)NULL }; 8373 8374/* * * * * * * * * * * * * * * * * * * * * * * * * * 8375 * 8376 * Description of Stdio_Va_List fix 8377 */ 8378tSCC zStdio_Va_ListName[] = 8379 "stdio_va_list"; 8380 8381/* 8382 * File name selection pattern 8383 */ 8384tSCC zStdio_Va_ListList[] = 8385 "stdio.h\0"; 8386/* 8387 * Machine/OS name selection pattern 8388 */ 8389tSCC* apzStdio_Va_ListMachs[] = { 8390 "*-*-solaris2.1[0-9]*", 8391 (const char*)NULL }; 8392 8393/* 8394 * content bypass pattern - skip fix if pattern found 8395 */ 8396tSCC zStdio_Va_ListBypass0[] = 8397 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; 8398 8399#define STDIO_VA_LIST_TEST_CT 1 8400static tTestDesc aStdio_Va_ListTests[] = { 8401 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, }; 8402 8403/* 8404 * Fix Command Arguments for Stdio_Va_List 8405 */ 8406static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z, 8407 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ 8408s@(va_list)&@(__gnuc_va_list)\\&@\n\ 8409s@ _VA_LIST_));@ __gnuc_va_list));@\n\ 8410s@ __VA_LIST__));@ __gnuc_va_list));@\n\ 8411s@ va_list@ __not_va_list__@\n\ 8412s@\\*va_list@*__not_va_list__@\n\ 8413s@ __va_list)@ __gnuc_va_list)@\n\ 8414s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ 8415s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ 8416s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ 8417s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ 8418s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ 8419s@VA_LIST@DUMMY_VA_LIST@\n\ 8420s@_Va_LIST@_VA_LIST@", 8421 (char*)NULL }; 8422 8423/* * * * * * * * * * * * * * * * * * * * * * * * * * 8424 * 8425 * Description of Stdio_Va_List_Clients fix 8426 */ 8427tSCC zStdio_Va_List_ClientsName[] = 8428 "stdio_va_list_clients"; 8429 8430/* 8431 * File name selection pattern 8432 */ 8433tSCC zStdio_Va_List_ClientsList[] = 8434 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0"; 8435/* 8436 * Machine/OS name selection pattern 8437 */ 8438#define apzStdio_Va_List_ClientsMachs (const char**)NULL 8439 8440/* 8441 * content bypass pattern - skip fix if pattern found 8442 */ 8443tSCC zStdio_Va_List_ClientsBypass0[] = 8444 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; 8445tSCC zStdio_Va_List_ClientsBypass1[] = 8446 "include <stdarg\\.h>|#ifdef va_start"; 8447 8448#define STDIO_VA_LIST_CLIENTS_TEST_CT 2 8449static tTestDesc aStdio_Va_List_ClientsTests[] = { 8450 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL }, 8451 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, }; 8452 8453/* 8454 * Fix Command Arguments for Stdio_Va_List_Clients 8455 */ 8456static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z, 8457 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ 8458s@(va_list)&@(__gnuc_va_list)\\&@\n\ 8459s@ _VA_LIST_));@ __gnuc_va_list));@\n\ 8460s@ __VA_LIST__));@ __gnuc_va_list));@\n\ 8461s@ va_list@ __not_va_list__@\n\ 8462s@\\*va_list@*__not_va_list__@\n\ 8463s@ __va_list)@ __gnuc_va_list)@\n\ 8464s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ 8465s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ 8466s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ 8467s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ 8468s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ 8469s@VA_LIST@DUMMY_VA_LIST@\n\ 8470s@_Va_LIST@_VA_LIST@", 8471 (char*)NULL }; 8472 8473/* * * * * * * * * * * * * * * * * * * * * * * * * * 8474 * 8475 * Description of Strict_Ansi_Not fix 8476 */ 8477tSCC zStrict_Ansi_NotName[] = 8478 "strict_ansi_not"; 8479 8480/* 8481 * File name selection pattern 8482 */ 8483#define zStrict_Ansi_NotList (char*)NULL 8484/* 8485 * Machine/OS name selection pattern 8486 */ 8487#define apzStrict_Ansi_NotMachs (const char**)NULL 8488 8489/* 8490 * content selection pattern - do fix if pattern found 8491 */ 8492tSCC zStrict_Ansi_NotSelect0[] = 8493 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)"; 8494 8495/* 8496 * content bypass pattern - skip fix if pattern found 8497 */ 8498tSCC zStrict_Ansi_NotBypass0[] = 8499 "GNU and MIPS C compilers define __STDC__ differently"; 8500tSCC zStrict_Ansi_NotBypass1[] = 8501 "__SCO_VERSION__.*__STDC__ != 1"; 8502 8503/* 8504 * perform the C function call test 8505 */ 8506tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers"; 8507 8508#define STRICT_ANSI_NOT_TEST_CT 4 8509static tTestDesc aStrict_Ansi_NotTests[] = { 8510 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ }, 8511 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL }, 8512 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL }, 8513 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, }; 8514 8515/* 8516 * Fix Command Arguments for Strict_Ansi_Not 8517 */ 8518static const char* apzStrict_Ansi_NotPatch[] = { 8519 "format", 8520 "%1 !defined(__STRICT_ANSI__)", 8521 (char*)NULL }; 8522 8523/* * * * * * * * * * * * * * * * * * * * * * * * * * 8524 * 8525 * Description of Strict_Ansi_Not_Ctd fix 8526 */ 8527tSCC zStrict_Ansi_Not_CtdName[] = 8528 "strict_ansi_not_ctd"; 8529 8530/* 8531 * File name selection pattern 8532 */ 8533tSCC zStrict_Ansi_Not_CtdList[] = 8534 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0"; 8535/* 8536 * Machine/OS name selection pattern 8537 */ 8538#define apzStrict_Ansi_Not_CtdMachs (const char**)NULL 8539 8540/* 8541 * content selection pattern - do fix if pattern found 8542 */ 8543tSCC zStrict_Ansi_Not_CtdSelect0[] = 8544 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)"; 8545 8546/* 8547 * perform the C function call test 8548 */ 8549tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers"; 8550 8551#define STRICT_ANSI_NOT_CTD_TEST_CT 2 8552static tTestDesc aStrict_Ansi_Not_CtdTests[] = { 8553 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ }, 8554 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, }; 8555 8556/* 8557 * Fix Command Arguments for Strict_Ansi_Not_Ctd 8558 */ 8559static const char* apzStrict_Ansi_Not_CtdPatch[] = { 8560 "format", 8561 "%1 !defined(__STRICT_ANSI__)", 8562 (char*)NULL }; 8563 8564/* * * * * * * * * * * * * * * * * * * * * * * * * * 8565 * 8566 * Description of Strict_Ansi_Only fix 8567 */ 8568tSCC zStrict_Ansi_OnlyName[] = 8569 "strict_ansi_only"; 8570 8571/* 8572 * File name selection pattern 8573 */ 8574#define zStrict_Ansi_OnlyList (char*)NULL 8575/* 8576 * Machine/OS name selection pattern 8577 */ 8578#define apzStrict_Ansi_OnlyMachs (const char**)NULL 8579 8580/* 8581 * content selection pattern - do fix if pattern found 8582 */ 8583tSCC zStrict_Ansi_OnlySelect0[] = 8584 "^([ \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)"; 8585 8586/* 8587 * perform the C function call test 8588 */ 8589tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers"; 8590 8591#define STRICT_ANSI_ONLY_TEST_CT 2 8592static tTestDesc aStrict_Ansi_OnlyTests[] = { 8593 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ }, 8594 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, }; 8595 8596/* 8597 * Fix Command Arguments for Strict_Ansi_Only 8598 */ 8599static const char* apzStrict_Ansi_OnlyPatch[] = { 8600 "format", 8601 "%1 defined(__STRICT_ANSI__)", 8602 (char*)NULL }; 8603 8604/* * * * * * * * * * * * * * * * * * * * * * * * * * 8605 * 8606 * Description of Struct_File fix 8607 */ 8608tSCC zStruct_FileName[] = 8609 "struct_file"; 8610 8611/* 8612 * File name selection pattern 8613 */ 8614tSCC zStruct_FileList[] = 8615 "rpc/xdr.h\0"; 8616/* 8617 * Machine/OS name selection pattern 8618 */ 8619#define apzStruct_FileMachs (const char**)NULL 8620 8621/* 8622 * content selection pattern - do fix if pattern found 8623 */ 8624tSCC zStruct_FileSelect0[] = 8625 "^.*xdrstdio_create.*struct __file_s"; 8626 8627#define STRUCT_FILE_TEST_CT 1 8628static tTestDesc aStruct_FileTests[] = { 8629 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, }; 8630 8631/* 8632 * Fix Command Arguments for Struct_File 8633 */ 8634static const char* apzStruct_FilePatch[] = { 8635 "format", 8636 "struct __file_s;\n\ 8637%0", 8638 (char*)NULL }; 8639 8640/* * * * * * * * * * * * * * * * * * * * * * * * * * 8641 * 8642 * Description of Struct_Sockaddr fix 8643 */ 8644tSCC zStruct_SockaddrName[] = 8645 "struct_sockaddr"; 8646 8647/* 8648 * File name selection pattern 8649 */ 8650tSCC zStruct_SockaddrList[] = 8651 "rpc/auth.h\0"; 8652/* 8653 * Machine/OS name selection pattern 8654 */ 8655#define apzStruct_SockaddrMachs (const char**)NULL 8656 8657/* 8658 * content selection pattern - do fix if pattern found 8659 */ 8660tSCC zStruct_SockaddrSelect0[] = 8661 "^.*authdes_create.*struct sockaddr[^_]"; 8662 8663/* 8664 * content bypass pattern - skip fix if pattern found 8665 */ 8666tSCC zStruct_SockaddrBypass0[] = 8667 "<sys/socket.h>"; 8668tSCC zStruct_SockaddrBypass1[] = 8669 "struct sockaddr;\n"; 8670 8671#define STRUCT_SOCKADDR_TEST_CT 3 8672static tTestDesc aStruct_SockaddrTests[] = { 8673 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL }, 8674 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL }, 8675 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, }; 8676 8677/* 8678 * Fix Command Arguments for Struct_Sockaddr 8679 */ 8680static const char* apzStruct_SockaddrPatch[] = { 8681 "format", 8682 "struct sockaddr;\n\ 8683%0", 8684 (char*)NULL }; 8685 8686/* * * * * * * * * * * * * * * * * * * * * * * * * * 8687 * 8688 * Description of Sun_Auth_Proto fix 8689 */ 8690tSCC zSun_Auth_ProtoName[] = 8691 "sun_auth_proto"; 8692 8693/* 8694 * File name selection pattern 8695 */ 8696tSCC zSun_Auth_ProtoList[] = 8697 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0"; 8698/* 8699 * Machine/OS name selection pattern 8700 */ 8701#define apzSun_Auth_ProtoMachs (const char**)NULL 8702 8703/* 8704 * content selection pattern - do fix if pattern found 8705 */ 8706tSCC zSun_Auth_ProtoSelect0[] = 8707 "\\(\\*[a-z][a-z_]*\\)\\(\\)"; 8708 8709/* 8710 * content bypass pattern - skip fix if pattern found 8711 */ 8712tSCC zSun_Auth_ProtoBypass0[] = 8713 "__cplusplus"; 8714 8715#define SUN_AUTH_PROTO_TEST_CT 2 8716static tTestDesc aSun_Auth_ProtoTests[] = { 8717 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL }, 8718 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; 8719 8720/* 8721 * Fix Command Arguments for Sun_Auth_Proto 8722 */ 8723static const char* apzSun_Auth_ProtoPatch[] = { 8724 "format", 8725 "#ifdef __cplusplus\n\ 8726%1(...);%2\n\ 8727#else\n\ 8728%1();%2\n\ 8729#endif", 8730 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)", 8731 (char*)NULL }; 8732 8733/* * * * * * * * * * * * * * * * * * * * * * * * * * 8734 * 8735 * Description of Sun_Bogus_Ifdef fix 8736 */ 8737tSCC zSun_Bogus_IfdefName[] = 8738 "sun_bogus_ifdef"; 8739 8740/* 8741 * File name selection pattern 8742 */ 8743tSCC zSun_Bogus_IfdefList[] = 8744 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0"; 8745/* 8746 * Machine/OS name selection pattern 8747 */ 8748#define apzSun_Bogus_IfdefMachs (const char**)NULL 8749 8750/* 8751 * content selection pattern - do fix if pattern found 8752 */ 8753tSCC zSun_Bogus_IfdefSelect0[] = 8754 "#ifdef(.*\\|\\|.*)"; 8755 8756#define SUN_BOGUS_IFDEF_TEST_CT 1 8757static tTestDesc aSun_Bogus_IfdefTests[] = { 8758 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, }; 8759 8760/* 8761 * Fix Command Arguments for Sun_Bogus_Ifdef 8762 */ 8763static const char* apzSun_Bogus_IfdefPatch[] = { 8764 "format", 8765 "#if%1", 8766 (char*)NULL }; 8767 8768/* * * * * * * * * * * * * * * * * * * * * * * * * * 8769 * 8770 * Description of Sun_Catmacro fix 8771 */ 8772tSCC zSun_CatmacroName[] = 8773 "sun_catmacro"; 8774 8775/* 8776 * File name selection pattern 8777 */ 8778tSCC zSun_CatmacroList[] = 8779 "pixrect/memvar.h\0"; 8780/* 8781 * Machine/OS name selection pattern 8782 */ 8783#define apzSun_CatmacroMachs (const char**)NULL 8784 8785/* 8786 * content selection pattern - do fix if pattern found 8787 */ 8788tSCC zSun_CatmacroSelect0[] = 8789 "^#define[ \t]+CAT\\(a,b\\).*"; 8790 8791#define SUN_CATMACRO_TEST_CT 1 8792static tTestDesc aSun_CatmacroTests[] = { 8793 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, }; 8794 8795/* 8796 * Fix Command Arguments for Sun_Catmacro 8797 */ 8798static const char* apzSun_CatmacroPatch[] = { 8799 "format", 8800 "#ifdef __STDC__\n\ 8801# define CAT(a,b) a##b\n\ 8802#else\n\ 8803%0\n\ 8804#endif", 8805 (char*)NULL }; 8806 8807/* * * * * * * * * * * * * * * * * * * * * * * * * * 8808 * 8809 * Description of Sun_Malloc fix 8810 */ 8811tSCC zSun_MallocName[] = 8812 "sun_malloc"; 8813 8814/* 8815 * File name selection pattern 8816 */ 8817tSCC zSun_MallocList[] = 8818 "malloc.h\0"; 8819/* 8820 * Machine/OS name selection pattern 8821 */ 8822#define apzSun_MallocMachs (const char**)NULL 8823 8824/* 8825 * content bypass pattern - skip fix if pattern found 8826 */ 8827tSCC zSun_MallocBypass0[] = 8828 "_CLASSIC_ANSI_TYPES"; 8829 8830#define SUN_MALLOC_TEST_CT 1 8831static tTestDesc aSun_MallocTests[] = { 8832 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, }; 8833 8834/* 8835 * Fix Command Arguments for Sun_Malloc 8836 */ 8837static const char* apzSun_MallocPatch[] = { sed_cmd_z, 8838 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g", 8839 "-e", "s/int[ \t][ \t]*free/void\tfree/g", 8840 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g", 8841 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g", 8842 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g", 8843 (char*)NULL }; 8844 8845/* * * * * * * * * * * * * * * * * * * * * * * * * * 8846 * 8847 * Description of Sun_Rusers_Semi fix 8848 */ 8849tSCC zSun_Rusers_SemiName[] = 8850 "sun_rusers_semi"; 8851 8852/* 8853 * File name selection pattern 8854 */ 8855tSCC zSun_Rusers_SemiList[] = 8856 "rpcsvc/rusers.h\0"; 8857/* 8858 * Machine/OS name selection pattern 8859 */ 8860#define apzSun_Rusers_SemiMachs (const char**)NULL 8861 8862/* 8863 * content selection pattern - do fix if pattern found 8864 */ 8865tSCC zSun_Rusers_SemiSelect0[] = 8866 "_cnt$"; 8867 8868#define SUN_RUSERS_SEMI_TEST_CT 1 8869static tTestDesc aSun_Rusers_SemiTests[] = { 8870 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, }; 8871 8872/* 8873 * Fix Command Arguments for Sun_Rusers_Semi 8874 */ 8875static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z, 8876 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/", 8877 (char*)NULL }; 8878 8879/* * * * * * * * * * * * * * * * * * * * * * * * * * 8880 * 8881 * Description of Sun_Signal fix 8882 */ 8883tSCC zSun_SignalName[] = 8884 "sun_signal"; 8885 8886/* 8887 * File name selection pattern 8888 */ 8889tSCC zSun_SignalList[] = 8890 "sys/signal.h\0signal.h\0"; 8891/* 8892 * Machine/OS name selection pattern 8893 */ 8894#define apzSun_SignalMachs (const char**)NULL 8895 8896/* 8897 * content selection pattern - do fix if pattern found 8898 */ 8899tSCC zSun_SignalSelect0[] = 8900 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*"; 8901 8902#define SUN_SIGNAL_TEST_CT 1 8903static tTestDesc aSun_SignalTests[] = { 8904 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, }; 8905 8906/* 8907 * Fix Command Arguments for Sun_Signal 8908 */ 8909static const char* apzSun_SignalPatch[] = { 8910 "format", 8911 "#ifdef __cplusplus\n\ 8912void\t(*signal(...))(...);\n\ 8913#else\n\ 8914%0\n\ 8915#endif", 8916 (char*)NULL }; 8917 8918/* * * * * * * * * * * * * * * * * * * * * * * * * * 8919 * 8920 * Description of Sunos_Strlen fix 8921 */ 8922tSCC zSunos_StrlenName[] = 8923 "sunos_strlen"; 8924 8925/* 8926 * File name selection pattern 8927 */ 8928tSCC zSunos_StrlenList[] = 8929 "strings.h\0"; 8930/* 8931 * Machine/OS name selection pattern 8932 */ 8933#define apzSunos_StrlenMachs (const char**)NULL 8934 8935/* 8936 * content selection pattern - do fix if pattern found 8937 */ 8938tSCC zSunos_StrlenSelect0[] = 8939 "int[ \t]*strlen\\(\\);(.*)"; 8940 8941#define SUNOS_STRLEN_TEST_CT 1 8942static tTestDesc aSunos_StrlenTests[] = { 8943 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, }; 8944 8945/* 8946 * Fix Command Arguments for Sunos_Strlen 8947 */ 8948static const char* apzSunos_StrlenPatch[] = { 8949 "format", 8950 "__SIZE_TYPE__ strlen();%1", 8951 (char*)NULL }; 8952 8953/* * * * * * * * * * * * * * * * * * * * * * * * * * 8954 * 8955 * Description of Suse_Linux_Vt_Cxx fix 8956 */ 8957tSCC zSuse_Linux_Vt_CxxName[] = 8958 "suse_linux_vt_cxx"; 8959 8960/* 8961 * File name selection pattern 8962 */ 8963tSCC zSuse_Linux_Vt_CxxList[] = 8964 "linux/vt.h\0"; 8965/* 8966 * Machine/OS name selection pattern 8967 */ 8968#define apzSuse_Linux_Vt_CxxMachs (const char**)NULL 8969 8970/* 8971 * content selection pattern - do fix if pattern found 8972 */ 8973tSCC zSuse_Linux_Vt_CxxSelect0[] = 8974 "^[ \t]*unsigned int new;"; 8975 8976#define SUSE_LINUX_VT_CXX_TEST_CT 1 8977static tTestDesc aSuse_Linux_Vt_CxxTests[] = { 8978 { TT_EGREP, zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, }; 8979 8980/* 8981 * Fix Command Arguments for Suse_Linux_Vt_Cxx 8982 */ 8983static const char* apzSuse_Linux_Vt_CxxPatch[] = { 8984 "format", 8985 "unsigned int newev;", 8986 (char*)NULL }; 8987 8988/* * * * * * * * * * * * * * * * * * * * * * * * * * 8989 * 8990 * Description of Svr4_Disable_Opt fix 8991 */ 8992tSCC zSvr4_Disable_OptName[] = 8993 "svr4_disable_opt"; 8994 8995/* 8996 * File name selection pattern 8997 */ 8998tSCC zSvr4_Disable_OptList[] = 8999 "string.h\0"; 9000/* 9001 * Machine/OS name selection pattern 9002 */ 9003#define apzSvr4_Disable_OptMachs (const char**)NULL 9004 9005/* 9006 * content selection pattern - do fix if pattern found 9007 */ 9008tSCC zSvr4_Disable_OptSelect0[] = 9009 "#define.*__std_hdr_"; 9010 9011#define SVR4_DISABLE_OPT_TEST_CT 1 9012static tTestDesc aSvr4_Disable_OptTests[] = { 9013 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, }; 9014 9015/* 9016 * Fix Command Arguments for Svr4_Disable_Opt 9017 */ 9018static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z, 9019 "-e", "/#define.*__std_hdr_/d", 9020 (char*)NULL }; 9021 9022/* * * * * * * * * * * * * * * * * * * * * * * * * * 9023 * 9024 * Description of Svr4_Getcwd fix 9025 */ 9026tSCC zSvr4_GetcwdName[] = 9027 "svr4_getcwd"; 9028 9029/* 9030 * File name selection pattern 9031 */ 9032tSCC zSvr4_GetcwdList[] = 9033 "stdlib.h\0unistd.h\0prototypes.h\0"; 9034/* 9035 * Machine/OS name selection pattern 9036 */ 9037#define apzSvr4_GetcwdMachs (const char**)NULL 9038 9039/* 9040 * content selection pattern - do fix if pattern found 9041 */ 9042tSCC zSvr4_GetcwdSelect0[] = 9043 "getcwd\\(char \\*, int\\)"; 9044 9045#define SVR4_GETCWD_TEST_CT 1 9046static tTestDesc aSvr4_GetcwdTests[] = { 9047 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, }; 9048 9049/* 9050 * Fix Command Arguments for Svr4_Getcwd 9051 */ 9052static const char* apzSvr4_GetcwdPatch[] = { 9053 "format", 9054 "getcwd(char *, size_t)", 9055 (char*)NULL }; 9056 9057/* * * * * * * * * * * * * * * * * * * * * * * * * * 9058 * 9059 * Description of Svr4_Profil fix 9060 */ 9061tSCC zSvr4_ProfilName[] = 9062 "svr4_profil"; 9063 9064/* 9065 * File name selection pattern 9066 */ 9067tSCC zSvr4_ProfilList[] = 9068 "stdlib.h\0unistd.h\0"; 9069/* 9070 * Machine/OS name selection pattern 9071 */ 9072#define apzSvr4_ProfilMachs (const char**)NULL 9073 9074/* 9075 * content selection pattern - do fix if pattern found 9076 */ 9077tSCC zSvr4_ProfilSelect0[] = 9078 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)"; 9079 9080#define SVR4_PROFIL_TEST_CT 1 9081static tTestDesc aSvr4_ProfilTests[] = { 9082 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, }; 9083 9084/* 9085 * Fix Command Arguments for Svr4_Profil 9086 */ 9087static const char* apzSvr4_ProfilPatch[] = { 9088 "format", 9089 "profil(unsigned short *, size_t, int, unsigned int)", 9090 (char*)NULL }; 9091 9092/* * * * * * * * * * * * * * * * * * * * * * * * * * 9093 * 9094 * Description of Svr4_Sighandler_Type fix 9095 */ 9096tSCC zSvr4_Sighandler_TypeName[] = 9097 "svr4_sighandler_type"; 9098 9099/* 9100 * File name selection pattern 9101 */ 9102tSCC zSvr4_Sighandler_TypeList[] = 9103 "sys/signal.h\0"; 9104/* 9105 * Machine/OS name selection pattern 9106 */ 9107#define apzSvr4_Sighandler_TypeMachs (const char**)NULL 9108 9109/* 9110 * content selection pattern - do fix if pattern found 9111 */ 9112tSCC zSvr4_Sighandler_TypeSelect0[] = 9113 "void *\\(\\*\\)\\(\\)"; 9114 9115#define SVR4_SIGHANDLER_TYPE_TEST_CT 1 9116static tTestDesc aSvr4_Sighandler_TypeTests[] = { 9117 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, }; 9118 9119/* 9120 * Fix Command Arguments for Svr4_Sighandler_Type 9121 */ 9122static const char* apzSvr4_Sighandler_TypePatch[] = { 9123 "format", 9124 "void (*)(int)", 9125 (char*)NULL }; 9126 9127/* * * * * * * * * * * * * * * * * * * * * * * * * * 9128 * 9129 * Description of Svr4_Undeclared_Getrnge fix 9130 */ 9131tSCC zSvr4_Undeclared_GetrngeName[] = 9132 "svr4_undeclared_getrnge"; 9133 9134/* 9135 * File name selection pattern 9136 */ 9137tSCC zSvr4_Undeclared_GetrngeList[] = 9138 "regexp.h\0"; 9139/* 9140 * Machine/OS name selection pattern 9141 */ 9142#define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL 9143 9144/* 9145 * content selection pattern - do fix if pattern found 9146 */ 9147tSCC zSvr4_Undeclared_GetrngeSelect0[] = 9148 "getrnge"; 9149 9150/* 9151 * content bypass pattern - skip fix if pattern found 9152 */ 9153tSCC zSvr4_Undeclared_GetrngeBypass0[] = 9154 "static void getrnge"; 9155 9156#define SVR4_UNDECLARED_GETRNGE_TEST_CT 2 9157static tTestDesc aSvr4_Undeclared_GetrngeTests[] = { 9158 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL }, 9159 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, }; 9160 9161/* 9162 * Fix Command Arguments for Svr4_Undeclared_Getrnge 9163 */ 9164static const char* apzSvr4_Undeclared_GetrngePatch[] = { 9165 "format", 9166 "%0\n\ 9167static int getrnge ();", 9168 "^static int[ \t]+size;", 9169 (char*)NULL }; 9170 9171/* * * * * * * * * * * * * * * * * * * * * * * * * * 9172 * 9173 * Description of Sysv68_String fix 9174 */ 9175tSCC zSysv68_StringName[] = 9176 "sysv68_string"; 9177 9178/* 9179 * File name selection pattern 9180 */ 9181tSCC zSysv68_StringList[] = 9182 "testing.h\0string.h\0"; 9183/* 9184 * Machine/OS name selection pattern 9185 */ 9186#define apzSysv68_StringMachs (const char**)NULL 9187 9188/* 9189 * content bypass pattern - skip fix if pattern found 9190 */ 9191tSCC zSysv68_StringBypass0[] = 9192 "_CLASSIC_ANSI_TYPES"; 9193 9194#define SYSV68_STRING_TEST_CT 1 9195static tTestDesc aSysv68_StringTests[] = { 9196 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, }; 9197 9198/* 9199 * Fix Command Arguments for Sysv68_String 9200 */ 9201static const char* apzSysv68_StringPatch[] = { sed_cmd_z, 9202 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/", 9203 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/", 9204 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/", 9205 "-e", "/^extern char$/N", 9206 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/", 9207 "-e", "/^extern int$/N", 9208 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/", 9209 "-e", "/^\tstrncmp(),$/N", 9210 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ 9211extern unsigned int\\\n\ 9212\\2/", 9213 (char*)NULL }; 9214 9215/* * * * * * * * * * * * * * * * * * * * * * * * * * 9216 * 9217 * Description of Sysz_Stdlib_For_Sun fix 9218 */ 9219tSCC zSysz_Stdlib_For_SunName[] = 9220 "sysz_stdlib_for_sun"; 9221 9222/* 9223 * File name selection pattern 9224 */ 9225tSCC zSysz_Stdlib_For_SunList[] = 9226 "stdlib.h\0"; 9227/* 9228 * Machine/OS name selection pattern 9229 */ 9230#define apzSysz_Stdlib_For_SunMachs (const char**)NULL 9231 9232/* 9233 * content selection pattern - do fix if pattern found 9234 */ 9235tSCC zSysz_Stdlib_For_SunSelect0[] = 9236 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\("; 9237 9238/* 9239 * content bypass pattern - skip fix if pattern found 9240 */ 9241tSCC zSysz_Stdlib_For_SunBypass0[] = 9242 "_CLASSIC_ANSI_TYPES"; 9243 9244#define SYSZ_STDLIB_FOR_SUN_TEST_CT 2 9245static tTestDesc aSysz_Stdlib_For_SunTests[] = { 9246 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL }, 9247 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, }; 9248 9249/* 9250 * Fix Command Arguments for Sysz_Stdlib_For_Sun 9251 */ 9252static const char* apzSysz_Stdlib_For_SunPatch[] = { 9253 "format", 9254 "void *\t%1(", 9255 (char*)NULL }; 9256 9257/* * * * * * * * * * * * * * * * * * * * * * * * * * 9258 * 9259 * Description of Thread_Keyword fix 9260 */ 9261tSCC zThread_KeywordName[] = 9262 "thread_keyword"; 9263 9264/* 9265 * File name selection pattern 9266 */ 9267tSCC zThread_KeywordList[] = 9268 "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0"; 9269/* 9270 * Machine/OS name selection pattern 9271 */ 9272#define apzThread_KeywordMachs (const char**)NULL 9273 9274/* 9275 * content selection pattern - do fix if pattern found 9276 */ 9277tSCC zThread_KeywordSelect0[] = 9278 "([* ])__thread([,)])"; 9279 9280#define THREAD_KEYWORD_TEST_CT 1 9281static tTestDesc aThread_KeywordTests[] = { 9282 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, }; 9283 9284/* 9285 * Fix Command Arguments for Thread_Keyword 9286 */ 9287static const char* apzThread_KeywordPatch[] = { 9288 "format", 9289 "%1__thr%2", 9290 (char*)NULL }; 9291 9292/* * * * * * * * * * * * * * * * * * * * * * * * * * 9293 * 9294 * Description of Tinfo_Cplusplus fix 9295 */ 9296tSCC zTinfo_CplusplusName[] = 9297 "tinfo_cplusplus"; 9298 9299/* 9300 * File name selection pattern 9301 */ 9302tSCC zTinfo_CplusplusList[] = 9303 "tinfo.h\0"; 9304/* 9305 * Machine/OS name selection pattern 9306 */ 9307#define apzTinfo_CplusplusMachs (const char**)NULL 9308 9309/* 9310 * content selection pattern - do fix if pattern found 9311 */ 9312tSCC zTinfo_CplusplusSelect0[] = 9313 "[ \t]_cplusplus"; 9314 9315#define TINFO_CPLUSPLUS_TEST_CT 1 9316static tTestDesc aTinfo_CplusplusTests[] = { 9317 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, }; 9318 9319/* 9320 * Fix Command Arguments for Tinfo_Cplusplus 9321 */ 9322static const char* apzTinfo_CplusplusPatch[] = { 9323 "format", 9324 " __cplusplus", 9325 (char*)NULL }; 9326 9327/* * * * * * * * * * * * * * * * * * * * * * * * * * 9328 * 9329 * Description of Ultrix_Const fix 9330 */ 9331tSCC zUltrix_ConstName[] = 9332 "ultrix_const"; 9333 9334/* 9335 * File name selection pattern 9336 */ 9337tSCC zUltrix_ConstList[] = 9338 "stdio.h\0"; 9339/* 9340 * Machine/OS name selection pattern 9341 */ 9342#define apzUltrix_ConstMachs (const char**)NULL 9343 9344/* 9345 * content selection pattern - do fix if pattern found 9346 */ 9347tSCC zUltrix_ConstSelect0[] = 9348 "perror\\( char \\*"; 9349 9350#define ULTRIX_CONST_TEST_CT 1 9351static tTestDesc aUltrix_ConstTests[] = { 9352 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, }; 9353 9354/* 9355 * Fix Command Arguments for Ultrix_Const 9356 */ 9357static const char* apzUltrix_ConstPatch[] = { 9358 "format", 9359 "%1 const %3 *__", 9360 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__", 9361 (char*)NULL }; 9362 9363/* * * * * * * * * * * * * * * * * * * * * * * * * * 9364 * 9365 * Description of Ultrix_Const2 fix 9366 */ 9367tSCC zUltrix_Const2Name[] = 9368 "ultrix_const2"; 9369 9370/* 9371 * File name selection pattern 9372 */ 9373tSCC zUltrix_Const2List[] = 9374 "stdio.h\0"; 9375/* 9376 * Machine/OS name selection pattern 9377 */ 9378#define apzUltrix_Const2Machs (const char**)NULL 9379 9380/* 9381 * content selection pattern - do fix if pattern found 9382 */ 9383tSCC zUltrix_Const2Select0[] = 9384 "\\*fopen\\( char \\*"; 9385 9386#define ULTRIX_CONST2_TEST_CT 1 9387static tTestDesc aUltrix_Const2Tests[] = { 9388 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, }; 9389 9390/* 9391 * Fix Command Arguments for Ultrix_Const2 9392 */ 9393static const char* apzUltrix_Const2Patch[] = { 9394 "format", 9395 "%1( const char *%3, const char *", 9396 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*", 9397 (char*)NULL }; 9398 9399/* * * * * * * * * * * * * * * * * * * * * * * * * * 9400 * 9401 * Description of Va_I960_Macro fix 9402 */ 9403tSCC zVa_I960_MacroName[] = 9404 "va_i960_macro"; 9405 9406/* 9407 * File name selection pattern 9408 */ 9409tSCC zVa_I960_MacroList[] = 9410 "arch/i960/archI960.h\0"; 9411/* 9412 * Machine/OS name selection pattern 9413 */ 9414#define apzVa_I960_MacroMachs (const char**)NULL 9415 9416/* 9417 * content selection pattern - do fix if pattern found 9418 */ 9419tSCC zVa_I960_MacroSelect0[] = 9420 "__(vsiz|vali|vpad|alignof__)"; 9421 9422#define VA_I960_MACRO_TEST_CT 1 9423static tTestDesc aVa_I960_MacroTests[] = { 9424 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, }; 9425 9426/* 9427 * Fix Command Arguments for Va_I960_Macro 9428 */ 9429static const char* apzVa_I960_MacroPatch[] = { 9430 "format", 9431 "__vx%1", 9432 (char*)NULL }; 9433 9434/* * * * * * * * * * * * * * * * * * * * * * * * * * 9435 * 9436 * Description of Vms_Add_Missing_Braces fix 9437 */ 9438tSCC zVms_Add_Missing_BracesName[] = 9439 "vms_add_missing_braces"; 9440 9441/* 9442 * File name selection pattern 9443 */ 9444tSCC zVms_Add_Missing_BracesList[] = 9445 "rtldef/signal.h\0"; 9446/* 9447 * Machine/OS name selection pattern 9448 */ 9449tSCC* apzVms_Add_Missing_BracesMachs[] = { 9450 "*-*-*vms*", 9451 (const char*)NULL }; 9452 9453/* 9454 * content selection pattern - do fix if pattern found 9455 */ 9456tSCC zVms_Add_Missing_BracesSelect0[] = 9457 "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)"; 9458 9459#define VMS_ADD_MISSING_BRACES_TEST_CT 1 9460static tTestDesc aVms_Add_Missing_BracesTests[] = { 9461 { TT_EGREP, zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, }; 9462 9463/* 9464 * Fix Command Arguments for Vms_Add_Missing_Braces 9465 */ 9466static const char* apzVms_Add_Missing_BracesPatch[] = { 9467 "format", 9468 "%1 {%2} ", 9469 (char*)NULL }; 9470 9471/* * * * * * * * * * * * * * * * * * * * * * * * * * 9472 * 9473 * Description of Vms_Decc_Builtin fix 9474 */ 9475tSCC zVms_Decc_BuiltinName[] = 9476 "vms_decc_builtin"; 9477 9478/* 9479 * File name selection pattern 9480 */ 9481tSCC zVms_Decc_BuiltinList[] = 9482 "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0"; 9483/* 9484 * Machine/OS name selection pattern 9485 */ 9486tSCC* apzVms_Decc_BuiltinMachs[] = { 9487 "*-*-*vms*", 9488 (const char*)NULL }; 9489 9490/* 9491 * content selection pattern - do fix if pattern found 9492 */ 9493tSCC zVms_Decc_BuiltinSelect0[] = 9494 "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)"; 9495 9496#define VMS_DECC_BUILTIN_TEST_CT 1 9497static tTestDesc aVms_Decc_BuiltinTests[] = { 9498 { TT_EGREP, zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, }; 9499 9500/* 9501 * Fix Command Arguments for Vms_Decc_Builtin 9502 */ 9503static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z, 9504 "-e", "s@__MEMSET@memset@", 9505 "-e", "s@__MEMMOVE@memmove@", 9506 "-e", "s@__MEMCPY@memcpy@", 9507 "-e", "s@__STRLEN@strlen@", 9508 "-e", "s@__STRCPY@strcpy@", 9509 (char*)NULL }; 9510 9511/* * * * * * * * * * * * * * * * * * * * * * * * * * 9512 * 9513 * Description of Vms_Define_Can_Use_Extern_Prefix fix 9514 */ 9515tSCC zVms_Define_Can_Use_Extern_PrefixName[] = 9516 "vms_define_can_use_extern_prefix"; 9517 9518/* 9519 * File name selection pattern 9520 */ 9521tSCC zVms_Define_Can_Use_Extern_PrefixList[] = 9522 "rtldef/decc$types.h\0"; 9523/* 9524 * Machine/OS name selection pattern 9525 */ 9526tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = { 9527 "*-*-*vms*", 9528 (const char*)NULL }; 9529 9530/* 9531 * content selection pattern - do fix if pattern found 9532 */ 9533tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] = 9534 "#[ \t]*else\n\ 9535#[ \t]*if defined\\(__DECCXX\\)\n\ 9536#[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n"; 9537 9538#define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1 9539static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = { 9540 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, }; 9541 9542/* 9543 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix 9544 */ 9545static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = { 9546 "format", 9547 "%0# elif defined (__GNUC__)\n\ 9548#\tdefine __CAN_USE_EXTERN_PREFIX 1\n", 9549 (char*)NULL }; 9550 9551/* * * * * * * * * * * * * * * * * * * * * * * * * * 9552 * 9553 * Description of Vms_Disable_Decc_String_Builtins fix 9554 */ 9555tSCC zVms_Disable_Decc_String_BuiltinsName[] = 9556 "vms_disable_decc_string_builtins"; 9557 9558/* 9559 * File name selection pattern 9560 */ 9561tSCC zVms_Disable_Decc_String_BuiltinsList[] = 9562 "rtldef/string.h\0"; 9563/* 9564 * Machine/OS name selection pattern 9565 */ 9566tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = { 9567 "*-*-*vms*", 9568 (const char*)NULL }; 9569 9570/* 9571 * content selection pattern - do fix if pattern found 9572 */ 9573tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] = 9574 "#if !defined\\(__VAX\\)\n"; 9575 9576#define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1 9577static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = { 9578 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, }; 9579 9580/* 9581 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins 9582 */ 9583static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = { 9584 "format", 9585 "#if !defined(__VAX) && !defined(__GNUC__)\n", 9586 (char*)NULL }; 9587 9588/* * * * * * * * * * * * * * * * * * * * * * * * * * 9589 * 9590 * Description of Vms_Do_Not_Redeclare_Hostalias fix 9591 */ 9592tSCC zVms_Do_Not_Redeclare_HostaliasName[] = 9593 "vms_do_not_redeclare_hostalias"; 9594 9595/* 9596 * File name selection pattern 9597 */ 9598tSCC zVms_Do_Not_Redeclare_HostaliasList[] = 9599 "rtldef/resolv.h\0"; 9600/* 9601 * Machine/OS name selection pattern 9602 */ 9603tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = { 9604 "*-*-*vms*", 9605 (const char*)NULL }; 9606 9607/* 9608 * content selection pattern - do fix if pattern found 9609 */ 9610tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] = 9611 "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\ 9612(__char_ptr32[ \t]+hostalias \\(const char \\*\\);)"; 9613 9614#define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1 9615static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = { 9616 { TT_EGREP, zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, }; 9617 9618/* 9619 * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias 9620 */ 9621static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = { 9622 "format", 9623 "%1\n\ 9624/* %2 */", 9625 (char*)NULL }; 9626 9627/* * * * * * * * * * * * * * * * * * * * * * * * * * 9628 * 9629 * Description of Vms_Forward_Declare_Struct fix 9630 */ 9631tSCC zVms_Forward_Declare_StructName[] = 9632 "vms_forward_declare_struct"; 9633 9634/* 9635 * File name selection pattern 9636 */ 9637tSCC zVms_Forward_Declare_StructList[] = 9638 "rtldef/if.h\0"; 9639/* 9640 * Machine/OS name selection pattern 9641 */ 9642tSCC* apzVms_Forward_Declare_StructMachs[] = { 9643 "*-*-*vms*", 9644 (const char*)NULL }; 9645 9646/* 9647 * content selection pattern - do fix if pattern found 9648 */ 9649tSCC zVms_Forward_Declare_StructSelect0[] = 9650 "(/\\* forward decls for C\\+\\+ \\*/\n\ 9651)#ifdef __cplusplus\n"; 9652 9653#define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1 9654static tTestDesc aVms_Forward_Declare_StructTests[] = { 9655 { TT_EGREP, zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, }; 9656 9657/* 9658 * Fix Command Arguments for Vms_Forward_Declare_Struct 9659 */ 9660static const char* apzVms_Forward_Declare_StructPatch[] = { 9661 "format", 9662 "%1#if defined (__cplusplus) || defined (__GNUC__)\n", 9663 (char*)NULL }; 9664 9665/* * * * * * * * * * * * * * * * * * * * * * * * * * 9666 * 9667 * Description of Vms_No_64bit_Getopt fix 9668 */ 9669tSCC zVms_No_64bit_GetoptName[] = 9670 "vms_no_64bit_getopt"; 9671 9672/* 9673 * File name selection pattern 9674 */ 9675tSCC zVms_No_64bit_GetoptList[] = 9676 "rtldef/stdio.h\0rtldef/unistd.h\0"; 9677/* 9678 * Machine/OS name selection pattern 9679 */ 9680tSCC* apzVms_No_64bit_GetoptMachs[] = { 9681 "*-*-*vms*", 9682 (const char*)NULL }; 9683 9684/* 9685 * content selection pattern - do fix if pattern found 9686 */ 9687tSCC zVms_No_64bit_GetoptSelect0[] = 9688 "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n"; 9689 9690#define VMS_NO_64BIT_GETOPT_TEST_CT 1 9691static tTestDesc aVms_No_64bit_GetoptTests[] = { 9692 { TT_EGREP, zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, }; 9693 9694/* 9695 * Fix Command Arguments for Vms_No_64bit_Getopt 9696 */ 9697static const char* apzVms_No_64bit_GetoptPatch[] = { 9698 "format", 9699 "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\ 9700%0#endif\n", 9701 (char*)NULL }; 9702 9703/* * * * * * * * * * * * * * * * * * * * * * * * * * 9704 * 9705 * Description of Vms_Use_Fast_Setjmp fix 9706 */ 9707tSCC zVms_Use_Fast_SetjmpName[] = 9708 "vms_use_fast_setjmp"; 9709 9710/* 9711 * File name selection pattern 9712 */ 9713tSCC zVms_Use_Fast_SetjmpList[] = 9714 "rtldef/setjmp.h\0"; 9715/* 9716 * Machine/OS name selection pattern 9717 */ 9718tSCC* apzVms_Use_Fast_SetjmpMachs[] = { 9719 "*-*-*vms*", 9720 (const char*)NULL }; 9721 9722/* 9723 * content selection pattern - do fix if pattern found 9724 */ 9725tSCC zVms_Use_Fast_SetjmpSelect0[] = 9726 "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)"; 9727 9728#define VMS_USE_FAST_SETJMP_TEST_CT 1 9729static tTestDesc aVms_Use_Fast_SetjmpTests[] = { 9730 { TT_EGREP, zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, }; 9731 9732/* 9733 * Fix Command Arguments for Vms_Use_Fast_Setjmp 9734 */ 9735static const char* apzVms_Use_Fast_SetjmpPatch[] = { 9736 "format", 9737 "%0 defined (__GNUC__) ||", 9738 (char*)NULL }; 9739 9740/* * * * * * * * * * * * * * * * * * * * * * * * * * 9741 * 9742 * Description of Vms_Use_Pragma_Extern_Model fix 9743 */ 9744tSCC zVms_Use_Pragma_Extern_ModelName[] = 9745 "vms_use_pragma_extern_model"; 9746 9747/* 9748 * File name selection pattern 9749 */ 9750#define zVms_Use_Pragma_Extern_ModelList (char*)NULL 9751/* 9752 * Machine/OS name selection pattern 9753 */ 9754tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = { 9755 "*-*-*vms*", 9756 (const char*)NULL }; 9757 9758/* 9759 * content selection pattern - do fix if pattern found 9760 */ 9761tSCC zVms_Use_Pragma_Extern_ModelSelect0[] = 9762 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\ 9763# pragma extern_model __save\n"; 9764 9765#define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1 9766static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = { 9767 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, }; 9768 9769/* 9770 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model 9771 */ 9772static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = { 9773 "format", 9774 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\ 9775# pragma extern_model __save\n", 9776 (char*)NULL }; 9777 9778/* * * * * * * * * * * * * * * * * * * * * * * * * * 9779 * 9780 * Description of Vms_Use_Quoted_Include fix 9781 */ 9782tSCC zVms_Use_Quoted_IncludeName[] = 9783 "vms_use_quoted_include"; 9784 9785/* 9786 * File name selection pattern 9787 */ 9788tSCC zVms_Use_Quoted_IncludeList[] = 9789 "rtldef/wait.h\0starlet_c/pthread.h\0"; 9790/* 9791 * Machine/OS name selection pattern 9792 */ 9793tSCC* apzVms_Use_Quoted_IncludeMachs[] = { 9794 "*-*-*vms*", 9795 (const char*)NULL }; 9796 9797/* 9798 * content selection pattern - do fix if pattern found 9799 */ 9800tSCC zVms_Use_Quoted_IncludeSelect0[] = 9801 "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>"; 9802 9803#define VMS_USE_QUOTED_INCLUDE_TEST_CT 1 9804static tTestDesc aVms_Use_Quoted_IncludeTests[] = { 9805 { TT_EGREP, zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, }; 9806 9807/* 9808 * Fix Command Arguments for Vms_Use_Quoted_Include 9809 */ 9810static const char* apzVms_Use_Quoted_IncludePatch[] = { 9811 "format", 9812 "%1<sys/%2.h>", 9813 (char*)NULL }; 9814 9815/* * * * * * * * * * * * * * * * * * * * * * * * * * 9816 * 9817 * Description of Void_Null fix 9818 */ 9819tSCC zVoid_NullName[] = 9820 "void_null"; 9821 9822/* 9823 * File name selection pattern 9824 */ 9825tSCC zVoid_NullList[] = 9826 "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"; 9827/* 9828 * Machine/OS name selection pattern 9829 */ 9830#define apzVoid_NullMachs (const char**)NULL 9831 9832/* 9833 * content selection pattern - do fix if pattern found 9834 */ 9835tSCC zVoid_NullSelect0[] = 9836 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)"; 9837 9838/* 9839 * content bypass pattern - skip fix if pattern found 9840 */ 9841tSCC zVoid_NullBypass0[] = 9842 "__cplusplus"; 9843tSCC zVoid_NullBypass1[] = 9844 "__null"; 9845 9846#define VOID_NULL_TEST_CT 3 9847static tTestDesc aVoid_NullTests[] = { 9848 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL }, 9849 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL }, 9850 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, }; 9851 9852/* 9853 * Fix Command Arguments for Void_Null 9854 */ 9855static const char* apzVoid_NullPatch[] = { 9856 "format", 9857 "#ifndef NULL\n\ 9858#ifdef __cplusplus\n\ 9859#ifdef __GNUG__\n\ 9860#define NULL __null\n\ 9861#else /* ! __GNUG__ */\n\ 9862#define NULL 0L\n\ 9863#endif /* __GNUG__ */\n\ 9864#else /* ! __cplusplus */\n\ 9865#define NULL ((void *)0)\n\ 9866#endif /* __cplusplus */\n\ 9867#endif /* !NULL */", 9868 (char*)NULL }; 9869 9870/* * * * * * * * * * * * * * * * * * * * * * * * * * 9871 * 9872 * Description of Vxworks_Gcc_Problem fix 9873 */ 9874tSCC zVxworks_Gcc_ProblemName[] = 9875 "vxworks_gcc_problem"; 9876 9877/* 9878 * File name selection pattern 9879 */ 9880tSCC zVxworks_Gcc_ProblemList[] = 9881 "types/vxTypesBase.h\0"; 9882/* 9883 * Machine/OS name selection pattern 9884 */ 9885#define apzVxworks_Gcc_ProblemMachs (const char**)NULL 9886 9887/* 9888 * content selection pattern - do fix if pattern found 9889 */ 9890tSCC zVxworks_Gcc_ProblemSelect0[] = 9891 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__"; 9892 9893#define VXWORKS_GCC_PROBLEM_TEST_CT 1 9894static tTestDesc aVxworks_Gcc_ProblemTests[] = { 9895 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, }; 9896 9897/* 9898 * Fix Command Arguments for Vxworks_Gcc_Problem 9899 */ 9900static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z, 9901 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", 9902 "-e", "/[ \t]size_t/i\\\n\ 9903#ifndef _GCC_SIZE_T\\\n\ 9904#define _GCC_SIZE_T\n", 9905 "-e", "/[ \t]size_t/a\\\n\ 9906#endif\n", 9907 "-e", "/[ \t]ptrdiff_t/i\\\n\ 9908#ifndef _GCC_PTRDIFF_T\\\n\ 9909#define _GCC_PTRDIFF_T\n", 9910 "-e", "/[ \t]ptrdiff_t/a\\\n\ 9911#endif\n", 9912 "-e", "/[ \t]wchar_t/i\\\n\ 9913#ifndef _GCC_WCHAR_T\\\n\ 9914#define _GCC_WCHAR_T\n", 9915 "-e", "/[ \t]wchar_t/a\\\n\ 9916#endif\n", 9917 (char*)NULL }; 9918 9919/* * * * * * * * * * * * * * * * * * * * * * * * * * 9920 * 9921 * Description of Vxworks_Ioctl_Macro fix 9922 */ 9923tSCC zVxworks_Ioctl_MacroName[] = 9924 "vxworks_ioctl_macro"; 9925 9926/* 9927 * File name selection pattern 9928 */ 9929tSCC zVxworks_Ioctl_MacroList[] = 9930 "ioLib.h\0"; 9931/* 9932 * Machine/OS name selection pattern 9933 */ 9934tSCC* apzVxworks_Ioctl_MacroMachs[] = { 9935 "*-*-vxworks*", 9936 (const char*)NULL }; 9937#define VXWORKS_IOCTL_MACRO_TEST_CT 0 9938#define aVxworks_Ioctl_MacroTests (tTestDesc*)NULL 9939 9940/* 9941 * Fix Command Arguments for Vxworks_Ioctl_Macro 9942 */ 9943static const char* apzVxworks_Ioctl_MacroPatch[] = { 9944 "format", 9945 "%0\n\ 9946#define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n", 9947 "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);", 9948 (char*)NULL }; 9949 9950/* * * * * * * * * * * * * * * * * * * * * * * * * * 9951 * 9952 * Description of Vxworks_Mkdir_Macro fix 9953 */ 9954tSCC zVxworks_Mkdir_MacroName[] = 9955 "vxworks_mkdir_macro"; 9956 9957/* 9958 * File name selection pattern 9959 */ 9960tSCC zVxworks_Mkdir_MacroList[] = 9961 "sys/stat.h\0"; 9962/* 9963 * Machine/OS name selection pattern 9964 */ 9965tSCC* apzVxworks_Mkdir_MacroMachs[] = { 9966 "*-*-vxworks*", 9967 (const char*)NULL }; 9968#define VXWORKS_MKDIR_MACRO_TEST_CT 0 9969#define aVxworks_Mkdir_MacroTests (tTestDesc*)NULL 9970 9971/* 9972 * Fix Command Arguments for Vxworks_Mkdir_Macro 9973 */ 9974static const char* apzVxworks_Mkdir_MacroPatch[] = { 9975 "format", 9976 "%0\n\ 9977#define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n", 9978 "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;", 9979 (char*)NULL }; 9980 9981/* * * * * * * * * * * * * * * * * * * * * * * * * * 9982 * 9983 * Description of Vxworks_Needs_Vxtypes fix 9984 */ 9985tSCC zVxworks_Needs_VxtypesName[] = 9986 "vxworks_needs_vxtypes"; 9987 9988/* 9989 * File name selection pattern 9990 */ 9991tSCC zVxworks_Needs_VxtypesList[] = 9992 "time.h\0"; 9993/* 9994 * Machine/OS name selection pattern 9995 */ 9996#define apzVxworks_Needs_VxtypesMachs (const char**)NULL 9997 9998/* 9999 * content selection pattern - do fix if pattern found 10000 */ 10001tSCC zVxworks_Needs_VxtypesSelect0[] = 10002 "uint_t([ \t]+_clocks_per_sec)"; 10003 10004#define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 10005static tTestDesc aVxworks_Needs_VxtypesTests[] = { 10006 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, }; 10007 10008/* 10009 * Fix Command Arguments for Vxworks_Needs_Vxtypes 10010 */ 10011static const char* apzVxworks_Needs_VxtypesPatch[] = { 10012 "format", 10013 "unsigned int%1", 10014 (char*)NULL }; 10015 10016/* * * * * * * * * * * * * * * * * * * * * * * * * * 10017 * 10018 * Description of Vxworks_Needs_Vxworks fix 10019 */ 10020tSCC zVxworks_Needs_VxworksName[] = 10021 "vxworks_needs_vxworks"; 10022 10023/* 10024 * File name selection pattern 10025 */ 10026tSCC zVxworks_Needs_VxworksList[] = 10027 "sys/stat.h\0"; 10028/* 10029 * Machine/OS name selection pattern 10030 */ 10031#define apzVxworks_Needs_VxworksMachs (const char**)NULL 10032 10033/* 10034 * content selection pattern - do fix if pattern found 10035 */ 10036tSCC zVxworks_Needs_VxworksSelect0[] = 10037 "#[ \t]define[ \t]+__INCstath"; 10038 10039/* 10040 * perform the 'test' shell command - do fix on success 10041 */ 10042tSCC zVxworks_Needs_VxworksTest0[] = 10043 " -r types/vxTypesOld.h"; 10044tSCC zVxworks_Needs_VxworksTest1[] = 10045 " -n \"`egrep '#include' $file`\""; 10046tSCC zVxworks_Needs_VxworksTest2[] = 10047 " -n \"`egrep ULONG $file`\""; 10048 10049#define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 10050static tTestDesc aVxworks_Needs_VxworksTests[] = { 10051 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ }, 10052 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ }, 10053 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ }, 10054 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, }; 10055 10056/* 10057 * Fix Command Arguments for Vxworks_Needs_Vxworks 10058 */ 10059static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z, 10060 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ 10061#include <types/vxTypesOld.h>\n", 10062 (char*)NULL }; 10063 10064/* * * * * * * * * * * * * * * * * * * * * * * * * * 10065 * 10066 * Description of Vxworks_Regs fix 10067 */ 10068tSCC zVxworks_RegsName[] = 10069 "vxworks_regs"; 10070 10071/* 10072 * File name selection pattern 10073 */ 10074#define zVxworks_RegsList (char*)NULL 10075/* 10076 * Machine/OS name selection pattern 10077 */ 10078tSCC* apzVxworks_RegsMachs[] = { 10079 "*-*-vxworks*", 10080 (const char*)NULL }; 10081 10082/* 10083 * content selection pattern - do fix if pattern found 10084 */ 10085tSCC zVxworks_RegsSelect0[] = 10086 "#[\t ]*include[\t ]+[<\"]regs.h[>\"]"; 10087 10088#define VXWORKS_REGS_TEST_CT 1 10089static tTestDesc aVxworks_RegsTests[] = { 10090 { TT_EGREP, zVxworks_RegsSelect0, (regex_t*)NULL }, }; 10091 10092/* 10093 * Fix Command Arguments for Vxworks_Regs 10094 */ 10095static const char* apzVxworks_RegsPatch[] = { 10096 "format", 10097 "#include <arch/../regs.h>", 10098 (char*)NULL }; 10099 10100/* * * * * * * * * * * * * * * * * * * * * * * * * * 10101 * 10102 * Description of Vxworks_Time fix 10103 */ 10104tSCC zVxworks_TimeName[] = 10105 "vxworks_time"; 10106 10107/* 10108 * File name selection pattern 10109 */ 10110tSCC zVxworks_TimeList[] = 10111 "time.h\0"; 10112/* 10113 * Machine/OS name selection pattern 10114 */ 10115#define apzVxworks_TimeMachs (const char**)NULL 10116 10117/* 10118 * content selection pattern - do fix if pattern found 10119 */ 10120tSCC zVxworks_TimeSelect0[] = 10121 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*"; 10122 10123/* 10124 * perform the 'test' shell command - do fix on success 10125 */ 10126tSCC zVxworks_TimeTest0[] = 10127 " -r vxWorks.h"; 10128 10129#define VXWORKS_TIME_TEST_CT 2 10130static tTestDesc aVxworks_TimeTests[] = { 10131 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ }, 10132 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, }; 10133 10134/* 10135 * Fix Command Arguments for Vxworks_Time 10136 */ 10137static const char* apzVxworks_TimePatch[] = { 10138 "format", 10139 "#ifndef __gcc_VOIDFUNCPTR_defined\n\ 10140#ifdef __cplusplus\n\ 10141typedef void (*__gcc_VOIDFUNCPTR) (...);\n\ 10142#else\n\ 10143typedef void (*__gcc_VOIDFUNCPTR) ();\n\ 10144#endif\n\ 10145#define __gcc_VOIDFUNCPTR_defined\n\ 10146#endif\n\ 10147#define VOIDFUNCPTR __gcc_VOIDFUNCPTR", 10148 (char*)NULL }; 10149 10150/* * * * * * * * * * * * * * * * * * * * * * * * * * 10151 * 10152 * Description of Vxworks_Write_Const fix 10153 */ 10154tSCC zVxworks_Write_ConstName[] = 10155 "vxworks_write_const"; 10156 10157/* 10158 * File name selection pattern 10159 */ 10160tSCC zVxworks_Write_ConstList[] = 10161 "ioLib.h\0"; 10162/* 10163 * Machine/OS name selection pattern 10164 */ 10165tSCC* apzVxworks_Write_ConstMachs[] = { 10166 "*-*-vxworks*", 10167 (const char*)NULL }; 10168#define VXWORKS_WRITE_CONST_TEST_CT 0 10169#define aVxworks_Write_ConstTests (tTestDesc*)NULL 10170 10171/* 10172 * Fix Command Arguments for Vxworks_Write_Const 10173 */ 10174static const char* apzVxworks_Write_ConstPatch[] = { 10175 "format", 10176 "extern int write (int, const char*, size_t);", 10177 "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;", 10178 (char*)NULL }; 10179 10180/* * * * * * * * * * * * * * * * * * * * * * * * * * 10181 * 10182 * Description of X11_Class fix 10183 */ 10184tSCC zX11_ClassName[] = 10185 "x11_class"; 10186 10187/* 10188 * File name selection pattern 10189 */ 10190tSCC zX11_ClassList[] = 10191 "X11/ShellP.h\0"; 10192/* 10193 * Machine/OS name selection pattern 10194 */ 10195#define apzX11_ClassMachs (const char**)NULL 10196 10197/* 10198 * content selection pattern - do fix if pattern found 10199 */ 10200tSCC zX11_ClassSelect0[] = 10201 "^([ \t]*char \\*)class;(.*)"; 10202 10203/* 10204 * content bypass pattern - skip fix if pattern found 10205 */ 10206tSCC zX11_ClassBypass0[] = 10207 "__cplusplus"; 10208 10209#define X11_CLASS_TEST_CT 2 10210static tTestDesc aX11_ClassTests[] = { 10211 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, 10212 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, }; 10213 10214/* 10215 * Fix Command Arguments for X11_Class 10216 */ 10217static const char* apzX11_ClassPatch[] = { 10218 "format", 10219 "#ifdef __cplusplus\n\ 10220%1c_class;%2\n\ 10221#else\n\ 10222%1class;%2\n\ 10223#endif", 10224 (char*)NULL }; 10225 10226/* * * * * * * * * * * * * * * * * * * * * * * * * * 10227 * 10228 * Description of X11_Class_Usage fix 10229 */ 10230tSCC zX11_Class_UsageName[] = 10231 "x11_class_usage"; 10232 10233/* 10234 * File name selection pattern 10235 */ 10236tSCC zX11_Class_UsageList[] = 10237 "Xm/BaseClassI.h\0"; 10238/* 10239 * Machine/OS name selection pattern 10240 */ 10241#define apzX11_Class_UsageMachs (const char**)NULL 10242 10243/* 10244 * content selection pattern - do fix if pattern found 10245 */ 10246tSCC zX11_Class_UsageSelect0[] = 10247 " class\\)"; 10248 10249/* 10250 * content bypass pattern - skip fix if pattern found 10251 */ 10252tSCC zX11_Class_UsageBypass0[] = 10253 "__cplusplus"; 10254 10255#define X11_CLASS_USAGE_TEST_CT 2 10256static tTestDesc aX11_Class_UsageTests[] = { 10257 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, 10258 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, }; 10259 10260/* 10261 * Fix Command Arguments for X11_Class_Usage 10262 */ 10263static const char* apzX11_Class_UsagePatch[] = { 10264 "format", 10265 " c_class)", 10266 (char*)NULL }; 10267 10268/* * * * * * * * * * * * * * * * * * * * * * * * * * 10269 * 10270 * Description of X11_New fix 10271 */ 10272tSCC zX11_NewName[] = 10273 "x11_new"; 10274 10275/* 10276 * File name selection pattern 10277 */ 10278tSCC zX11_NewList[] = 10279 "Xm/Traversal.h\0"; 10280/* 10281 * Machine/OS name selection pattern 10282 */ 10283#define apzX11_NewMachs (const char**)NULL 10284 10285/* 10286 * content bypass pattern - skip fix if pattern found 10287 */ 10288tSCC zX11_NewBypass0[] = 10289 "__cplusplus"; 10290 10291#define X11_NEW_TEST_CT 1 10292static tTestDesc aX11_NewTests[] = { 10293 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, }; 10294 10295/* 10296 * Fix Command Arguments for X11_New 10297 */ 10298static const char* apzX11_NewPatch[] = { sed_cmd_z, 10299 "-e", "/Widget\told, new;/i\\\n\ 10300#ifdef __cplusplus\\\n\ 10301\\\tWidget\told, c_new;\\\n\ 10302#else\n", 10303 "-e", "/Widget\told, new;/a\\\n\ 10304#endif\n", 10305 "-e", "s/Widget new,/Widget c_new,/g", 10306 (char*)NULL }; 10307 10308/* * * * * * * * * * * * * * * * * * * * * * * * * * 10309 * 10310 * Description of X11_Sprintf fix 10311 */ 10312tSCC zX11_SprintfName[] = 10313 "x11_sprintf"; 10314 10315/* 10316 * File name selection pattern 10317 */ 10318tSCC zX11_SprintfList[] = 10319 "X11/Xmu.h\0X11/Xmu/Xmu.h\0"; 10320/* 10321 * Machine/OS name selection pattern 10322 */ 10323#define apzX11_SprintfMachs (const char**)NULL 10324 10325/* 10326 * content selection pattern - do fix if pattern found 10327 */ 10328tSCC zX11_SprintfSelect0[] = 10329 "^extern char \\*\tsprintf\\(\\);$"; 10330 10331#define X11_SPRINTF_TEST_CT 1 10332static tTestDesc aX11_SprintfTests[] = { 10333 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, }; 10334 10335/* 10336 * Fix Command Arguments for X11_Sprintf 10337 */ 10338static const char* apzX11_SprintfPatch[] = { 10339 "format", 10340 "#ifndef __STDC__\n\ 10341%0\n\ 10342#endif /* !defined __STDC__ */", 10343 (char*)NULL }; 10344 10345 10346/* * * * * * * * * * * * * * * * * * * * * * * * * * 10347 * 10348 * List of all fixes 10349 */ 10350#define REGEX_COUNT 291 10351#define MACH_LIST_SIZE_LIMIT 187 10352#define FIX_COUNT 253 10353 10354/* 10355 * Enumerate the fixes 10356 */ 10357typedef enum { 10358 AAB_AIX_STDIO_FIXIDX, 10359 AAB_AIX_FCNTL_FIXIDX, 10360 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX, 10361 DARWIN_API_AVAILABILITY_FIXIDX, 10362 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX, 10363 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX, 10364 AAB_FD_ZERO_SELECTBITS_H_FIXIDX, 10365 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX, 10366 AAB_SUN_MEMCPY_FIXIDX, 10367 AAB_VXWORKS_ASSERT_FIXIDX, 10368 AAB_VXWORKS_REGS_VXTYPES_FIXIDX, 10369 AAB_VXWORKS_STDINT_FIXIDX, 10370 AAB_VXWORKS_UNISTD_FIXIDX, 10371 AIX_ASSERT_FIXIDX, 10372 AIX_COMPLEX_FIXIDX, 10373 AIX_EXTERNC_FIXIDX, 10374 AIX_EXTERNCPP1_FIXIDX, 10375 AIX_EXTERNCPP2_FIXIDX, 10376 AIX_MALLOC_FIXIDX, 10377 AIX_NET_IF_ARP_FIXIDX, 10378 AIX_NULL_FIXIDX, 10379 AIX_ONCE_INIT_1_FIXIDX, 10380 AIX_ONCE_INIT_2_FIXIDX, 10381 AIX_MUTEX_INITIALIZER_1_FIXIDX, 10382 AIX_COND_INITIALIZER_1_FIXIDX, 10383 AIX_RWLOCK_INITIALIZER_1_FIXIDX, 10384 AIX_PTHREAD_FIXIDX, 10385 AIX_STDINT_1_FIXIDX, 10386 AIX_STDINT_2_FIXIDX, 10387 AIX_STDINT_3_FIXIDX, 10388 AIX_STDINT_4_FIXIDX, 10389 AIX_STDINT_5_FIXIDX, 10390 AIX_STDIO_INLINE_FIXIDX, 10391 AIX_STDLIB_MALLOC_FIXIDX, 10392 AIX_STDLIB_REALLOC_FIXIDX, 10393 AIX_STDLIB_CALLOC_FIXIDX, 10394 AIX_STDLIB_VALLOC_FIXIDX, 10395 AIX_STRTOF_CONST_FIXIDX, 10396 AIX_SYSMACHINE_FIXIDX, 10397 AIX_SYSWAIT_2_FIXIDX, 10398 AIX_VOLATILE_FIXIDX, 10399 ALPHA___ASSERT_FIXIDX, 10400 ALPHA_ASSERT_FIXIDX, 10401 ALPHA_GETOPT_FIXIDX, 10402 ALPHA_IF_SEMICOLON_FIXIDX, 10403 ALPHA_PARENS_FIXIDX, 10404 ALPHA_SBRK_FIXIDX, 10405 AVOID_BOOL_DEFINE_FIXIDX, 10406 AVOID_BOOL_TYPE_FIXIDX, 10407 AVOID_WCHAR_T_TYPE_FIXIDX, 10408 BAD_STRUCT_TERM_FIXIDX, 10409 BADQUOTE_FIXIDX, 10410 BROKEN_ASSERT_STDIO_FIXIDX, 10411 BROKEN_ASSERT_STDLIB_FIXIDX, 10412 BROKEN_CABS_FIXIDX, 10413 BROKEN_NAN_FIXIDX, 10414 BSD_STDIO_ATTRS_CONFLICT_FIXIDX, 10415 CTRL_QUOTES_DEF_FIXIDX, 10416 CTRL_QUOTES_USE_FIXIDX, 10417 CXX_UNREADY_FIXIDX, 10418 DARWIN_AVAILABILITYINTERNAL_FIXIDX, 10419 DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX, 10420 DARWIN_EXTERNC_FIXIDX, 10421 DARWIN_GCC4_BREAKAGE_FIXIDX, 10422 DARWIN_LL_FUNCS_AVAIL_FIXIDX, 10423 DARWIN_LONGJMP_NORETURN_FIXIDX, 10424 DARWIN_OS_TRACE_1_FIXIDX, 10425 DARWIN_OS_TRACE_2_FIXIDX, 10426 DARWIN_OS_TRACE_3_FIXIDX, 10427 DARWIN_OS_BASE_1_FIXIDX, 10428 DARWIN_DISPATCH_OBJECT_1_FIXIDX, 10429 DARWIN_PRIVATE_EXTERN_FIXIDX, 10430 DARWIN_STDINT_1_FIXIDX, 10431 DARWIN_STDINT_2_FIXIDX, 10432 DARWIN_STDINT_3_FIXIDX, 10433 DARWIN_STDINT_4_FIXIDX, 10434 DARWIN_STDINT_5_FIXIDX, 10435 DARWIN_STDINT_6_FIXIDX, 10436 DARWIN_STDINT_7_FIXIDX, 10437 DARWIN_UCRED__ATOMIC_FIXIDX, 10438 DEC_INTERN_ASM_FIXIDX, 10439 DJGPP_WCHAR_H_FIXIDX, 10440 ECD_CURSOR_FIXIDX, 10441 FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX, 10442 FERAISEEXCEPT_NOSSE_INVALID_FIXIDX, 10443 FREEBSD_GCC3_BREAKAGE_FIXIDX, 10444 FREEBSD_GCC4_BREAKAGE_FIXIDX, 10445 GLIBC_C99_INLINE_1_FIXIDX, 10446 GLIBC_C99_INLINE_1A_FIXIDX, 10447 GLIBC_C99_INLINE_2_FIXIDX, 10448 GLIBC_C99_INLINE_3_FIXIDX, 10449 GLIBC_C99_INLINE_4_FIXIDX, 10450 GLIBC_MUTEX_INIT_FIXIDX, 10451 GLIBC_STDINT_FIXIDX, 10452 GLIBC_STRNCPY_FIXIDX, 10453 GLIBC_TGMATH_FIXIDX, 10454 GNU_TYPES_FIXIDX, 10455 HP_INLINE_FIXIDX, 10456 HP_SYSFILE_FIXIDX, 10457 HPPA_HPUX_FP_MACROS_FIXIDX, 10458 HPUX10_CPP_POW_INLINE_FIXIDX, 10459 HPUX11_CPP_POW_INLINE_FIXIDX, 10460 HPUX10_CTYPE_DECLARATIONS1_FIXIDX, 10461 HPUX10_CTYPE_DECLARATIONS2_FIXIDX, 10462 HPUX10_STDIO_DECLARATIONS_FIXIDX, 10463 HPPA_HPUX11_ALLOCA_FIXIDX, 10464 HPUX11_ABS_FIXIDX, 10465 HPUX11_LWP_RWLOCK_VALID_FIXIDX, 10466 HPUX11_EXTERN_SENDFILE_FIXIDX, 10467 HPUX11_EXTERN_SENDPATH_FIXIDX, 10468 HPUX11_FABSF_FIXIDX, 10469 HPUX11_PTHREAD_POINTER_FIXIDX, 10470 HPUX11_PTHREAD_CONST_FIXIDX, 10471 HPUX11_SIZE_T_FIXIDX, 10472 HPUX11_SNPRINTF_FIXIDX, 10473 HPUX11_VSNPRINTF_FIXIDX, 10474 HPUX_VSSCANF_FIXIDX, 10475 HPUX8_BOGUS_INLINES_FIXIDX, 10476 HPUX_C99_INTPTR_FIXIDX, 10477 HPUX_C99_INTTYPES_FIXIDX, 10478 HPUX_C99_INTTYPES2_FIXIDX, 10479 HPUX_CTYPE_MACROS_FIXIDX, 10480 HPUX_EXTERN_ERRNO_FIXIDX, 10481 HPUX_HTONL_FIXIDX, 10482 HPUX_IMAGINARY_I_FIXIDX, 10483 HPUX_INTTYPE_INT8_T_FIXIDX, 10484 HPUX_LONG_DOUBLE_FIXIDX, 10485 HPUX_LONG_DOUBLE_2_FIXIDX, 10486 HPUX_PTHREAD_INITIALIZERS_FIXIDX, 10487 HPUX_SPU_INFO_FIXIDX, 10488 HPUX_STDINT_LEAST_FAST_FIXIDX, 10489 HPUX_LONGJMP_FIXIDX, 10490 HPUX_SYSTIME_FIXIDX, 10491 HUGE_VAL_HEX_FIXIDX, 10492 HUGE_VALF_HEX_FIXIDX, 10493 HUGE_VALL_HEX_FIXIDX, 10494 INT_ABORT_FREE_AND_EXIT_FIXIDX, 10495 IO_QUOTES_DEF_FIXIDX, 10496 IO_QUOTES_USE_FIXIDX, 10497 IP_MISSING_SEMI_FIXIDX, 10498 IRIX_LIMITS_CONST_FIXIDX, 10499 IRIX_STDIO_VA_LIST_FIXIDX, 10500 KANDR_CONCAT_FIXIDX, 10501 LINUX_IA64_UCONTEXT_FIXIDX, 10502 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX, 10503 LYNXOS_MISSING_PUTENV_FIXIDX, 10504 MACHINE_ANSI_H_VA_LIST_FIXIDX, 10505 MACHINE_NAME_FIXIDX, 10506 MATH_EXCEPTION_FIXIDX, 10507 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX, 10508 NESTED_AUTH_DES_FIXIDX, 10509 NETBSD_C99_INLINE_1_FIXIDX, 10510 NETBSD_C99_INLINE_2_FIXIDX, 10511 NETBSD_EXTRA_SEMICOLON_FIXIDX, 10512 NEWLIB_STDINT_1_FIXIDX, 10513 NEWLIB_STDINT_2_FIXIDX, 10514 NEXT_MATH_PREFIX_FIXIDX, 10515 NEXT_TEMPLATE_FIXIDX, 10516 NEXT_VOLITILE_FIXIDX, 10517 NEXT_WAIT_UNION_FIXIDX, 10518 NODEENT_SYNTAX_FIXIDX, 10519 OPENBSD_NULL_DEFINITION_FIXIDX, 10520 OBSTACK_LVALUE_CAST_FIXIDX, 10521 OPENBSD_VA_START_FIXIDX, 10522 OSF_NAMESPACE_A_FIXIDX, 10523 OSF_NAMESPACE_C_FIXIDX, 10524 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX, 10525 READ_RET_TYPE_FIXIDX, 10526 RPC_XDR_LVALUE_CAST_A_FIXIDX, 10527 RPC_XDR_LVALUE_CAST_B_FIXIDX, 10528 RS6000_DOUBLE_FIXIDX, 10529 RS6000_FCHMOD_FIXIDX, 10530 RS6000_PARAM_FIXIDX, 10531 SOLARIS___RESTRICT_FIXIDX, 10532 SOLARIS_COMPLEX_FIXIDX, 10533 SOLARIS_COMPLEX_CXX_FIXIDX, 10534 SOLARIS_CXX_LINKAGE_FIXIDX, 10535 SOLARIS_GETC_STRICT_STDC_FIXIDX, 10536 SOLARIS_GETS_C11_FIXIDX, 10537 SOLARIS_GETS_CXX14_FIXIDX, 10538 SOLARIS_INT_CONST_FIXIDX, 10539 SOLARIS_INT_LIMITS_1_FIXIDX, 10540 SOLARIS_INT_LIMITS_2_FIXIDX, 10541 SOLARIS_INT_LIMITS_3_FIXIDX, 10542 SOLARIS_MATH_1_FIXIDX, 10543 SOLARIS_MATH_10_FIXIDX, 10544 SOLARIS_MATH_2_FIXIDX, 10545 SOLARIS_MATH_3_FIXIDX, 10546 SOLARIS_MATH_4_FIXIDX, 10547 SOLARIS_MATH_8_FIXIDX, 10548 SOLARIS_MATH_9_FIXIDX, 10549 SOLARIS_MATH_11_FIXIDX, 10550 SOLARIS_MATH_12_FIXIDX, 10551 SOLARIS_ONCE_INIT_1_FIXIDX, 10552 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX, 10553 SOLARIS_POW_INT_OVERLOAD_FIXIDX, 10554 SOLARIS_RWLOCK_INIT_1_FIXIDX, 10555 SOLARIS_STD___FILBUF_FIXIDX, 10556 SOLARIS_STD_GETS_CXX14_FIXIDX, 10557 SOLARIS_STDIO_TAG_FIXIDX, 10558 SOLARIS_STDLIB_NORETURN_FIXIDX, 10559 STATSSWTCH_FIXIDX, 10560 STDIO_STDARG_H_FIXIDX, 10561 STDIO_VA_LIST_FIXIDX, 10562 STDIO_VA_LIST_CLIENTS_FIXIDX, 10563 STRICT_ANSI_NOT_FIXIDX, 10564 STRICT_ANSI_NOT_CTD_FIXIDX, 10565 STRICT_ANSI_ONLY_FIXIDX, 10566 STRUCT_FILE_FIXIDX, 10567 STRUCT_SOCKADDR_FIXIDX, 10568 SUN_AUTH_PROTO_FIXIDX, 10569 SUN_BOGUS_IFDEF_FIXIDX, 10570 SUN_CATMACRO_FIXIDX, 10571 SUN_MALLOC_FIXIDX, 10572 SUN_RUSERS_SEMI_FIXIDX, 10573 SUN_SIGNAL_FIXIDX, 10574 SUNOS_STRLEN_FIXIDX, 10575 SUSE_LINUX_VT_CXX_FIXIDX, 10576 SVR4_DISABLE_OPT_FIXIDX, 10577 SVR4_GETCWD_FIXIDX, 10578 SVR4_PROFIL_FIXIDX, 10579 SVR4_SIGHANDLER_TYPE_FIXIDX, 10580 SVR4_UNDECLARED_GETRNGE_FIXIDX, 10581 SYSV68_STRING_FIXIDX, 10582 SYSZ_STDLIB_FOR_SUN_FIXIDX, 10583 THREAD_KEYWORD_FIXIDX, 10584 TINFO_CPLUSPLUS_FIXIDX, 10585 ULTRIX_CONST_FIXIDX, 10586 ULTRIX_CONST2_FIXIDX, 10587 VA_I960_MACRO_FIXIDX, 10588 VMS_ADD_MISSING_BRACES_FIXIDX, 10589 VMS_DECC_BUILTIN_FIXIDX, 10590 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX, 10591 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX, 10592 VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX, 10593 VMS_FORWARD_DECLARE_STRUCT_FIXIDX, 10594 VMS_NO_64BIT_GETOPT_FIXIDX, 10595 VMS_USE_FAST_SETJMP_FIXIDX, 10596 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX, 10597 VMS_USE_QUOTED_INCLUDE_FIXIDX, 10598 VOID_NULL_FIXIDX, 10599 VXWORKS_GCC_PROBLEM_FIXIDX, 10600 VXWORKS_IOCTL_MACRO_FIXIDX, 10601 VXWORKS_MKDIR_MACRO_FIXIDX, 10602 VXWORKS_NEEDS_VXTYPES_FIXIDX, 10603 VXWORKS_NEEDS_VXWORKS_FIXIDX, 10604 VXWORKS_REGS_FIXIDX, 10605 VXWORKS_TIME_FIXIDX, 10606 VXWORKS_WRITE_CONST_FIXIDX, 10607 X11_CLASS_FIXIDX, 10608 X11_CLASS_USAGE_FIXIDX, 10609 X11_NEW_FIXIDX, 10610 X11_SPRINTF_FIXIDX 10611} t_fixinc_idx; 10612 10613tFixDesc fixDescList[ FIX_COUNT ] = { 10614 { zAab_Aix_StdioName, zAab_Aix_StdioList, 10615 apzAab_Aix_StdioMachs, 10616 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10617 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 }, 10618 10619 { zAab_Aix_FcntlName, zAab_Aix_FcntlList, 10620 apzAab_Aix_FcntlMachs, 10621 AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10622 aAab_Aix_FcntlTests, apzAab_Aix_FcntlPatch, 0 }, 10623 10624 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList, 10625 apzAab_Darwin7_9_Long_Double_FuncsMachs, 10626 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10627 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 }, 10628 10629 { zDarwin_Api_AvailabilityName, zDarwin_Api_AvailabilityList, 10630 apzDarwin_Api_AvailabilityMachs, 10631 DARWIN_API_AVAILABILITY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10632 aDarwin_Api_AvailabilityTests, apzDarwin_Api_AvailabilityPatch, 0 }, 10633 10634 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList, 10635 apzAab_Fd_Zero_Asm_Posix_Types_HMachs, 10636 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10637 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 }, 10638 10639 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList, 10640 apzAab_Fd_Zero_Gnu_Types_HMachs, 10641 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10642 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 }, 10643 10644 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList, 10645 apzAab_Fd_Zero_Selectbits_HMachs, 10646 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10647 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 }, 10648 10649 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList, 10650 apzAab_Solaris_Sys_Varargs_HMachs, 10651 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10652 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 }, 10653 10654 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList, 10655 apzAab_Sun_MemcpyMachs, 10656 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10657 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 }, 10658 10659 { zAab_Vxworks_AssertName, zAab_Vxworks_AssertList, 10660 apzAab_Vxworks_AssertMachs, 10661 AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10662 aAab_Vxworks_AssertTests, apzAab_Vxworks_AssertPatch, 0 }, 10663 10664 { zAab_Vxworks_Regs_VxtypesName, zAab_Vxworks_Regs_VxtypesList, 10665 apzAab_Vxworks_Regs_VxtypesMachs, 10666 AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10667 aAab_Vxworks_Regs_VxtypesTests, apzAab_Vxworks_Regs_VxtypesPatch, 0 }, 10668 10669 { zAab_Vxworks_StdintName, zAab_Vxworks_StdintList, 10670 apzAab_Vxworks_StdintMachs, 10671 AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10672 aAab_Vxworks_StdintTests, apzAab_Vxworks_StdintPatch, 0 }, 10673 10674 { zAab_Vxworks_UnistdName, zAab_Vxworks_UnistdList, 10675 apzAab_Vxworks_UnistdMachs, 10676 AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 10677 aAab_Vxworks_UnistdTests, apzAab_Vxworks_UnistdPatch, 0 }, 10678 10679 { zAix_AssertName, zAix_AssertList, 10680 apzAix_AssertMachs, 10681 AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10682 aAix_AssertTests, apzAix_AssertPatch, 0 }, 10683 10684 { zAix_ComplexName, zAix_ComplexList, 10685 apzAix_ComplexMachs, 10686 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10687 aAix_ComplexTests, apzAix_ComplexPatch, 0 }, 10688 10689 { zAix_ExterncName, zAix_ExterncList, 10690 apzAix_ExterncMachs, 10691 AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10692 aAix_ExterncTests, apzAix_ExterncPatch, 0 }, 10693 10694 { zAix_Externcpp1Name, zAix_Externcpp1List, 10695 apzAix_Externcpp1Machs, 10696 AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10697 aAix_Externcpp1Tests, apzAix_Externcpp1Patch, 0 }, 10698 10699 { zAix_Externcpp2Name, zAix_Externcpp2List, 10700 apzAix_Externcpp2Machs, 10701 AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10702 aAix_Externcpp2Tests, apzAix_Externcpp2Patch, 0 }, 10703 10704 { zAix_MallocName, zAix_MallocList, 10705 apzAix_MallocMachs, 10706 AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10707 aAix_MallocTests, apzAix_MallocPatch, 0 }, 10708 10709 { zAix_Net_If_ArpName, zAix_Net_If_ArpList, 10710 apzAix_Net_If_ArpMachs, 10711 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10712 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 }, 10713 10714 { zAix_NullName, zAix_NullList, 10715 apzAix_NullMachs, 10716 AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10717 aAix_NullTests, apzAix_NullPatch, 0 }, 10718 10719 { zAix_Once_Init_1Name, zAix_Once_Init_1List, 10720 apzAix_Once_Init_1Machs, 10721 AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10722 aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 }, 10723 10724 { zAix_Once_Init_2Name, zAix_Once_Init_2List, 10725 apzAix_Once_Init_2Machs, 10726 AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10727 aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 }, 10728 10729 { zAix_Mutex_Initializer_1Name, zAix_Mutex_Initializer_1List, 10730 apzAix_Mutex_Initializer_1Machs, 10731 AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10732 aAix_Mutex_Initializer_1Tests, apzAix_Mutex_Initializer_1Patch, 0 }, 10733 10734 { zAix_Cond_Initializer_1Name, zAix_Cond_Initializer_1List, 10735 apzAix_Cond_Initializer_1Machs, 10736 AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10737 aAix_Cond_Initializer_1Tests, apzAix_Cond_Initializer_1Patch, 0 }, 10738 10739 { zAix_Rwlock_Initializer_1Name, zAix_Rwlock_Initializer_1List, 10740 apzAix_Rwlock_Initializer_1Machs, 10741 AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10742 aAix_Rwlock_Initializer_1Tests, apzAix_Rwlock_Initializer_1Patch, 0 }, 10743 10744 { zAix_PthreadName, zAix_PthreadList, 10745 apzAix_PthreadMachs, 10746 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10747 aAix_PthreadTests, apzAix_PthreadPatch, 0 }, 10748 10749 { zAix_Stdint_1Name, zAix_Stdint_1List, 10750 apzAix_Stdint_1Machs, 10751 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10752 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 }, 10753 10754 { zAix_Stdint_2Name, zAix_Stdint_2List, 10755 apzAix_Stdint_2Machs, 10756 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10757 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 }, 10758 10759 { zAix_Stdint_3Name, zAix_Stdint_3List, 10760 apzAix_Stdint_3Machs, 10761 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10762 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 }, 10763 10764 { zAix_Stdint_4Name, zAix_Stdint_4List, 10765 apzAix_Stdint_4Machs, 10766 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10767 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 }, 10768 10769 { zAix_Stdint_5Name, zAix_Stdint_5List, 10770 apzAix_Stdint_5Machs, 10771 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10772 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 }, 10773 10774 { zAix_Stdio_InlineName, zAix_Stdio_InlineList, 10775 apzAix_Stdio_InlineMachs, 10776 AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10777 aAix_Stdio_InlineTests, apzAix_Stdio_InlinePatch, 0 }, 10778 10779 { zAix_Stdlib_MallocName, zAix_Stdlib_MallocList, 10780 apzAix_Stdlib_MallocMachs, 10781 AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10782 aAix_Stdlib_MallocTests, apzAix_Stdlib_MallocPatch, 0 }, 10783 10784 { zAix_Stdlib_ReallocName, zAix_Stdlib_ReallocList, 10785 apzAix_Stdlib_ReallocMachs, 10786 AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10787 aAix_Stdlib_ReallocTests, apzAix_Stdlib_ReallocPatch, 0 }, 10788 10789 { zAix_Stdlib_CallocName, zAix_Stdlib_CallocList, 10790 apzAix_Stdlib_CallocMachs, 10791 AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10792 aAix_Stdlib_CallocTests, apzAix_Stdlib_CallocPatch, 0 }, 10793 10794 { zAix_Stdlib_VallocName, zAix_Stdlib_VallocList, 10795 apzAix_Stdlib_VallocMachs, 10796 AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10797 aAix_Stdlib_VallocTests, apzAix_Stdlib_VallocPatch, 0 }, 10798 10799 { zAix_Strtof_ConstName, zAix_Strtof_ConstList, 10800 apzAix_Strtof_ConstMachs, 10801 AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10802 aAix_Strtof_ConstTests, apzAix_Strtof_ConstPatch, 0 }, 10803 10804 { zAix_SysmachineName, zAix_SysmachineList, 10805 apzAix_SysmachineMachs, 10806 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10807 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 }, 10808 10809 { zAix_Syswait_2Name, zAix_Syswait_2List, 10810 apzAix_Syswait_2Machs, 10811 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10812 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 }, 10813 10814 { zAix_VolatileName, zAix_VolatileList, 10815 apzAix_VolatileMachs, 10816 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10817 aAix_VolatileTests, apzAix_VolatilePatch, 0 }, 10818 10819 { zAlpha___AssertName, zAlpha___AssertList, 10820 apzAlpha___AssertMachs, 10821 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10822 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 }, 10823 10824 { zAlpha_AssertName, zAlpha_AssertList, 10825 apzAlpha_AssertMachs, 10826 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10827 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 }, 10828 10829 { zAlpha_GetoptName, zAlpha_GetoptList, 10830 apzAlpha_GetoptMachs, 10831 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10832 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 }, 10833 10834 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList, 10835 apzAlpha_If_SemicolonMachs, 10836 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10837 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 }, 10838 10839 { zAlpha_ParensName, zAlpha_ParensList, 10840 apzAlpha_ParensMachs, 10841 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10842 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 }, 10843 10844 { zAlpha_SbrkName, zAlpha_SbrkList, 10845 apzAlpha_SbrkMachs, 10846 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10847 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 }, 10848 10849 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList, 10850 apzAvoid_Bool_DefineMachs, 10851 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10852 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 }, 10853 10854 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList, 10855 apzAvoid_Bool_TypeMachs, 10856 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10857 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 }, 10858 10859 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList, 10860 apzAvoid_Wchar_T_TypeMachs, 10861 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10862 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 }, 10863 10864 { zBad_Struct_TermName, zBad_Struct_TermList, 10865 apzBad_Struct_TermMachs, 10866 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10867 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 }, 10868 10869 { zBadquoteName, zBadquoteList, 10870 apzBadquoteMachs, 10871 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10872 aBadquoteTests, apzBadquotePatch, 0 }, 10873 10874 { zBroken_Assert_StdioName, zBroken_Assert_StdioList, 10875 apzBroken_Assert_StdioMachs, 10876 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10877 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 }, 10878 10879 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList, 10880 apzBroken_Assert_StdlibMachs, 10881 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10882 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 }, 10883 10884 { zBroken_CabsName, zBroken_CabsList, 10885 apzBroken_CabsMachs, 10886 BROKEN_CABS_TEST_CT, FD_MACH_ONLY, 10887 aBroken_CabsTests, apzBroken_CabsPatch, 0 }, 10888 10889 { zBroken_NanName, zBroken_NanList, 10890 apzBroken_NanMachs, 10891 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10892 aBroken_NanTests, apzBroken_NanPatch, 0 }, 10893 10894 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList, 10895 apzBsd_Stdio_Attrs_ConflictMachs, 10896 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10897 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 }, 10898 10899 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList, 10900 apzCtrl_Quotes_DefMachs, 10901 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10902 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 }, 10903 10904 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList, 10905 apzCtrl_Quotes_UseMachs, 10906 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10907 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 }, 10908 10909 { zCxx_UnreadyName, zCxx_UnreadyList, 10910 apzCxx_UnreadyMachs, 10911 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10912 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 }, 10913 10914 { zDarwin_AvailabilityinternalName, zDarwin_AvailabilityinternalList, 10915 apzDarwin_AvailabilityinternalMachs, 10916 DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10917 aDarwin_AvailabilityinternalTests, apzDarwin_AvailabilityinternalPatch, 0 }, 10918 10919 { zDarwin_9_Long_Double_Funcs_2Name, zDarwin_9_Long_Double_Funcs_2List, 10920 apzDarwin_9_Long_Double_Funcs_2Machs, 10921 DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10922 aDarwin_9_Long_Double_Funcs_2Tests, apzDarwin_9_Long_Double_Funcs_2Patch, 0 }, 10923 10924 { zDarwin_ExterncName, zDarwin_ExterncList, 10925 apzDarwin_ExterncMachs, 10926 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10927 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 }, 10928 10929 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList, 10930 apzDarwin_Gcc4_BreakageMachs, 10931 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10932 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 }, 10933 10934 { zDarwin_Ll_Funcs_AvailName, zDarwin_Ll_Funcs_AvailList, 10935 apzDarwin_Ll_Funcs_AvailMachs, 10936 DARWIN_LL_FUNCS_AVAIL_TEST_CT, FD_MACH_ONLY, 10937 aDarwin_Ll_Funcs_AvailTests, apzDarwin_Ll_Funcs_AvailPatch, 0 }, 10938 10939 { zDarwin_Longjmp_NoreturnName, zDarwin_Longjmp_NoreturnList, 10940 apzDarwin_Longjmp_NoreturnMachs, 10941 DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10942 aDarwin_Longjmp_NoreturnTests, apzDarwin_Longjmp_NoreturnPatch, 0 }, 10943 10944 { zDarwin_Os_Trace_1Name, zDarwin_Os_Trace_1List, 10945 apzDarwin_Os_Trace_1Machs, 10946 DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10947 aDarwin_Os_Trace_1Tests, apzDarwin_Os_Trace_1Patch, 0 }, 10948 10949 { zDarwin_Os_Trace_2Name, zDarwin_Os_Trace_2List, 10950 apzDarwin_Os_Trace_2Machs, 10951 DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10952 aDarwin_Os_Trace_2Tests, apzDarwin_Os_Trace_2Patch, 0 }, 10953 10954 { zDarwin_Os_Trace_3Name, zDarwin_Os_Trace_3List, 10955 apzDarwin_Os_Trace_3Machs, 10956 DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10957 aDarwin_Os_Trace_3Tests, apzDarwin_Os_Trace_3Patch, 0 }, 10958 10959 { zDarwin_Os_Base_1Name, zDarwin_Os_Base_1List, 10960 apzDarwin_Os_Base_1Machs, 10961 DARWIN_OS_BASE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10962 aDarwin_Os_Base_1Tests, apzDarwin_Os_Base_1Patch, 0 }, 10963 10964 { zDarwin_Dispatch_Object_1Name, zDarwin_Dispatch_Object_1List, 10965 apzDarwin_Dispatch_Object_1Machs, 10966 DARWIN_DISPATCH_OBJECT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10967 aDarwin_Dispatch_Object_1Tests, apzDarwin_Dispatch_Object_1Patch, 0 }, 10968 10969 { zDarwin_Private_ExternName, zDarwin_Private_ExternList, 10970 apzDarwin_Private_ExternMachs, 10971 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10972 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 }, 10973 10974 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List, 10975 apzDarwin_Stdint_1Machs, 10976 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10977 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 }, 10978 10979 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List, 10980 apzDarwin_Stdint_2Machs, 10981 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10982 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 }, 10983 10984 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List, 10985 apzDarwin_Stdint_3Machs, 10986 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10987 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 }, 10988 10989 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List, 10990 apzDarwin_Stdint_4Machs, 10991 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10992 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 }, 10993 10994 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List, 10995 apzDarwin_Stdint_5Machs, 10996 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 10997 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 }, 10998 10999 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List, 11000 apzDarwin_Stdint_6Machs, 11001 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11002 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 }, 11003 11004 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List, 11005 apzDarwin_Stdint_7Machs, 11006 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11007 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 }, 11008 11009 { zDarwin_Ucred__AtomicName, zDarwin_Ucred__AtomicList, 11010 apzDarwin_Ucred__AtomicMachs, 11011 DARWIN_UCRED__ATOMIC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11012 aDarwin_Ucred__AtomicTests, apzDarwin_Ucred__AtomicPatch, 0 }, 11013 11014 { zDec_Intern_AsmName, zDec_Intern_AsmList, 11015 apzDec_Intern_AsmMachs, 11016 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY, 11017 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 }, 11018 11019 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList, 11020 apzDjgpp_Wchar_HMachs, 11021 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11022 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 }, 11023 11024 { zEcd_CursorName, zEcd_CursorList, 11025 apzEcd_CursorMachs, 11026 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11027 aEcd_CursorTests, apzEcd_CursorPatch, 0 }, 11028 11029 { zFeraiseexcept_Nosse_DivbyzeroName, zFeraiseexcept_Nosse_DivbyzeroList, 11030 apzFeraiseexcept_Nosse_DivbyzeroMachs, 11031 FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11032 aFeraiseexcept_Nosse_DivbyzeroTests, apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 }, 11033 11034 { zFeraiseexcept_Nosse_InvalidName, zFeraiseexcept_Nosse_InvalidList, 11035 apzFeraiseexcept_Nosse_InvalidMachs, 11036 FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11037 aFeraiseexcept_Nosse_InvalidTests, apzFeraiseexcept_Nosse_InvalidPatch, 0 }, 11038 11039 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList, 11040 apzFreebsd_Gcc3_BreakageMachs, 11041 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11042 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 }, 11043 11044 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList, 11045 apzFreebsd_Gcc4_BreakageMachs, 11046 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11047 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 }, 11048 11049 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List, 11050 apzGlibc_C99_Inline_1Machs, 11051 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11052 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 }, 11053 11054 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList, 11055 apzGlibc_C99_Inline_1aMachs, 11056 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11057 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 }, 11058 11059 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List, 11060 apzGlibc_C99_Inline_2Machs, 11061 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY, 11062 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 }, 11063 11064 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List, 11065 apzGlibc_C99_Inline_3Machs, 11066 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11067 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 }, 11068 11069 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List, 11070 apzGlibc_C99_Inline_4Machs, 11071 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11072 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 }, 11073 11074 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList, 11075 apzGlibc_Mutex_InitMachs, 11076 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY, 11077 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 }, 11078 11079 { zGlibc_StdintName, zGlibc_StdintList, 11080 apzGlibc_StdintMachs, 11081 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11082 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 }, 11083 11084 { zGlibc_StrncpyName, zGlibc_StrncpyList, 11085 apzGlibc_StrncpyMachs, 11086 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11087 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 }, 11088 11089 { zGlibc_TgmathName, zGlibc_TgmathList, 11090 apzGlibc_TgmathMachs, 11091 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11092 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 }, 11093 11094 { zGnu_TypesName, zGnu_TypesList, 11095 apzGnu_TypesMachs, 11096 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, 11097 aGnu_TypesTests, apzGnu_TypesPatch, 0 }, 11098 11099 { zHp_InlineName, zHp_InlineList, 11100 apzHp_InlineMachs, 11101 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11102 aHp_InlineTests, apzHp_InlinePatch, 0 }, 11103 11104 { zHp_SysfileName, zHp_SysfileList, 11105 apzHp_SysfileMachs, 11106 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11107 aHp_SysfileTests, apzHp_SysfilePatch, 0 }, 11108 11109 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList, 11110 apzHppa_Hpux_Fp_MacrosMachs, 11111 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11112 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 }, 11113 11114 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList, 11115 apzHpux10_Cpp_Pow_InlineMachs, 11116 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11117 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 }, 11118 11119 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList, 11120 apzHpux11_Cpp_Pow_InlineMachs, 11121 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11122 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 }, 11123 11124 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List, 11125 apzHpux10_Ctype_Declarations1Machs, 11126 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11127 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 }, 11128 11129 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List, 11130 apzHpux10_Ctype_Declarations2Machs, 11131 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11132 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 }, 11133 11134 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList, 11135 apzHpux10_Stdio_DeclarationsMachs, 11136 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11137 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 }, 11138 11139 { zHppa_Hpux11_AllocaName, zHppa_Hpux11_AllocaList, 11140 apzHppa_Hpux11_AllocaMachs, 11141 HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11142 aHppa_Hpux11_AllocaTests, apzHppa_Hpux11_AllocaPatch, 0 }, 11143 11144 { zHpux11_AbsName, zHpux11_AbsList, 11145 apzHpux11_AbsMachs, 11146 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11147 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 }, 11148 11149 { zHpux11_Lwp_Rwlock_ValidName, zHpux11_Lwp_Rwlock_ValidList, 11150 apzHpux11_Lwp_Rwlock_ValidMachs, 11151 HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11152 aHpux11_Lwp_Rwlock_ValidTests, apzHpux11_Lwp_Rwlock_ValidPatch, 0 }, 11153 11154 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList, 11155 apzHpux11_Extern_SendfileMachs, 11156 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11157 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 }, 11158 11159 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList, 11160 apzHpux11_Extern_SendpathMachs, 11161 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11162 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 }, 11163 11164 { zHpux11_FabsfName, zHpux11_FabsfList, 11165 apzHpux11_FabsfMachs, 11166 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11167 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 }, 11168 11169 { zHpux11_Pthread_PointerName, zHpux11_Pthread_PointerList, 11170 apzHpux11_Pthread_PointerMachs, 11171 HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11172 aHpux11_Pthread_PointerTests, apzHpux11_Pthread_PointerPatch, 0 }, 11173 11174 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList, 11175 apzHpux11_Pthread_ConstMachs, 11176 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11177 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 }, 11178 11179 { zHpux11_Size_TName, zHpux11_Size_TList, 11180 apzHpux11_Size_TMachs, 11181 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11182 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 }, 11183 11184 { zHpux11_SnprintfName, zHpux11_SnprintfList, 11185 apzHpux11_SnprintfMachs, 11186 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11187 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 }, 11188 11189 { zHpux11_VsnprintfName, zHpux11_VsnprintfList, 11190 apzHpux11_VsnprintfMachs, 11191 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11192 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 }, 11193 11194 { zHpux_VsscanfName, zHpux_VsscanfList, 11195 apzHpux_VsscanfMachs, 11196 HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11197 aHpux_VsscanfTests, apzHpux_VsscanfPatch, 0 }, 11198 11199 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList, 11200 apzHpux8_Bogus_InlinesMachs, 11201 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY, 11202 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 }, 11203 11204 { zHpux_C99_IntptrName, zHpux_C99_IntptrList, 11205 apzHpux_C99_IntptrMachs, 11206 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY, 11207 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 }, 11208 11209 { zHpux_C99_InttypesName, zHpux_C99_InttypesList, 11210 apzHpux_C99_InttypesMachs, 11211 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY, 11212 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 }, 11213 11214 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List, 11215 apzHpux_C99_Inttypes2Machs, 11216 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY, 11217 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 }, 11218 11219 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList, 11220 apzHpux_Ctype_MacrosMachs, 11221 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11222 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 }, 11223 11224 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList, 11225 apzHpux_Extern_ErrnoMachs, 11226 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11227 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 }, 11228 11229 { zHpux_HtonlName, zHpux_HtonlList, 11230 apzHpux_HtonlMachs, 11231 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11232 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 }, 11233 11234 { zHpux_Imaginary_IName, zHpux_Imaginary_IList, 11235 apzHpux_Imaginary_IMachs, 11236 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11237 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 }, 11238 11239 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList, 11240 apzHpux_Inttype_Int8_TMachs, 11241 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11242 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 }, 11243 11244 { zHpux_Long_DoubleName, zHpux_Long_DoubleList, 11245 apzHpux_Long_DoubleMachs, 11246 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY, 11247 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 }, 11248 11249 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List, 11250 apzHpux_Long_Double_2Machs, 11251 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11252 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 }, 11253 11254 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList, 11255 apzHpux_Pthread_InitializersMachs, 11256 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY, 11257 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 }, 11258 11259 { zHpux_Spu_InfoName, zHpux_Spu_InfoList, 11260 apzHpux_Spu_InfoMachs, 11261 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11262 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 }, 11263 11264 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList, 11265 apzHpux_Stdint_Least_FastMachs, 11266 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11267 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 }, 11268 11269 { zHpux_LongjmpName, zHpux_LongjmpList, 11270 apzHpux_LongjmpMachs, 11271 HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11272 aHpux_LongjmpTests, apzHpux_LongjmpPatch, 0 }, 11273 11274 { zHpux_SystimeName, zHpux_SystimeList, 11275 apzHpux_SystimeMachs, 11276 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11277 aHpux_SystimeTests, apzHpux_SystimePatch, 0 }, 11278 11279 { zHuge_Val_HexName, zHuge_Val_HexList, 11280 apzHuge_Val_HexMachs, 11281 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11282 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 }, 11283 11284 { zHuge_Valf_HexName, zHuge_Valf_HexList, 11285 apzHuge_Valf_HexMachs, 11286 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11287 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 }, 11288 11289 { zHuge_Vall_HexName, zHuge_Vall_HexList, 11290 apzHuge_Vall_HexMachs, 11291 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11292 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 }, 11293 11294 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList, 11295 apzInt_Abort_Free_And_ExitMachs, 11296 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11297 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 }, 11298 11299 { zIo_Quotes_DefName, zIo_Quotes_DefList, 11300 apzIo_Quotes_DefMachs, 11301 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11302 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 }, 11303 11304 { zIo_Quotes_UseName, zIo_Quotes_UseList, 11305 apzIo_Quotes_UseMachs, 11306 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11307 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 }, 11308 11309 { zIp_Missing_SemiName, zIp_Missing_SemiList, 11310 apzIp_Missing_SemiMachs, 11311 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY, 11312 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 }, 11313 11314 { zIrix_Limits_ConstName, zIrix_Limits_ConstList, 11315 apzIrix_Limits_ConstMachs, 11316 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11317 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 }, 11318 11319 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList, 11320 apzIrix_Stdio_Va_ListMachs, 11321 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11322 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 }, 11323 11324 { zKandr_ConcatName, zKandr_ConcatList, 11325 apzKandr_ConcatMachs, 11326 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11327 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 }, 11328 11329 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList, 11330 apzLinux_Ia64_UcontextMachs, 11331 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11332 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 }, 11333 11334 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList, 11335 apzLynxos_No_Warning_In_Sys_Time_HMachs, 11336 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11337 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 }, 11338 11339 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList, 11340 apzLynxos_Missing_PutenvMachs, 11341 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11342 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 }, 11343 11344 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, 11345 apzMachine_Ansi_H_Va_ListMachs, 11346 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11347 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 }, 11348 11349 { zMachine_NameName, zMachine_NameList, 11350 apzMachine_NameMachs, 11351 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11352 aMachine_NameTests, apzMachine_NamePatch, 0 }, 11353 11354 { zMath_ExceptionName, zMath_ExceptionList, 11355 apzMath_ExceptionMachs, 11356 MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, 11357 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 }, 11358 11359 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList, 11360 apzMath_Huge_Val_From_Dbl_MaxMachs, 11361 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, 11362 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 }, 11363 11364 { zNested_Auth_DesName, zNested_Auth_DesList, 11365 apzNested_Auth_DesMachs, 11366 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11367 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 }, 11368 11369 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List, 11370 apzNetbsd_C99_Inline_1Machs, 11371 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11372 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 }, 11373 11374 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List, 11375 apzNetbsd_C99_Inline_2Machs, 11376 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11377 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 }, 11378 11379 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList, 11380 apzNetbsd_Extra_SemicolonMachs, 11381 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11382 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 }, 11383 11384 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List, 11385 apzNewlib_Stdint_1Machs, 11386 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY, 11387 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 }, 11388 11389 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List, 11390 apzNewlib_Stdint_2Machs, 11391 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11392 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 }, 11393 11394 { zNext_Math_PrefixName, zNext_Math_PrefixList, 11395 apzNext_Math_PrefixMachs, 11396 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11397 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 }, 11398 11399 { zNext_TemplateName, zNext_TemplateList, 11400 apzNext_TemplateMachs, 11401 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11402 aNext_TemplateTests, apzNext_TemplatePatch, 0 }, 11403 11404 { zNext_VolitileName, zNext_VolitileList, 11405 apzNext_VolitileMachs, 11406 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11407 aNext_VolitileTests, apzNext_VolitilePatch, 0 }, 11408 11409 { zNext_Wait_UnionName, zNext_Wait_UnionList, 11410 apzNext_Wait_UnionMachs, 11411 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11412 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 }, 11413 11414 { zNodeent_SyntaxName, zNodeent_SyntaxList, 11415 apzNodeent_SyntaxMachs, 11416 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11417 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 }, 11418 11419 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList, 11420 apzOpenbsd_Null_DefinitionMachs, 11421 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11422 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 }, 11423 11424 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList, 11425 apzObstack_Lvalue_CastMachs, 11426 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11427 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 }, 11428 11429 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList, 11430 apzOpenbsd_Va_StartMachs, 11431 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11432 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 }, 11433 11434 { zOsf_Namespace_AName, zOsf_Namespace_AList, 11435 apzOsf_Namespace_AMachs, 11436 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11437 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 }, 11438 11439 { zOsf_Namespace_CName, zOsf_Namespace_CList, 11440 apzOsf_Namespace_CMachs, 11441 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11442 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 }, 11443 11444 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList, 11445 apzPthread_Incomplete_Struct_ArgumentMachs, 11446 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11447 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 }, 11448 11449 { zRead_Ret_TypeName, zRead_Ret_TypeList, 11450 apzRead_Ret_TypeMachs, 11451 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11452 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 }, 11453 11454 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList, 11455 apzRpc_Xdr_Lvalue_Cast_AMachs, 11456 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11457 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 }, 11458 11459 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList, 11460 apzRpc_Xdr_Lvalue_Cast_BMachs, 11461 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11462 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 }, 11463 11464 { zRs6000_DoubleName, zRs6000_DoubleList, 11465 apzRs6000_DoubleMachs, 11466 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11467 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 }, 11468 11469 { zRs6000_FchmodName, zRs6000_FchmodList, 11470 apzRs6000_FchmodMachs, 11471 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11472 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 }, 11473 11474 { zRs6000_ParamName, zRs6000_ParamList, 11475 apzRs6000_ParamMachs, 11476 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11477 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 }, 11478 11479 { zSolaris___RestrictName, zSolaris___RestrictList, 11480 apzSolaris___RestrictMachs, 11481 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11482 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 }, 11483 11484 { zSolaris_ComplexName, zSolaris_ComplexList, 11485 apzSolaris_ComplexMachs, 11486 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY, 11487 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 }, 11488 11489 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList, 11490 apzSolaris_Complex_CxxMachs, 11491 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY, 11492 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 }, 11493 11494 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList, 11495 apzSolaris_Cxx_LinkageMachs, 11496 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11497 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 }, 11498 11499 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList, 11500 apzSolaris_Getc_Strict_StdcMachs, 11501 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11502 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 }, 11503 11504 { zSolaris_Gets_C11Name, zSolaris_Gets_C11List, 11505 apzSolaris_Gets_C11Machs, 11506 SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11507 aSolaris_Gets_C11Tests, apzSolaris_Gets_C11Patch, 0 }, 11508 11509 { zSolaris_Gets_Cxx14Name, zSolaris_Gets_Cxx14List, 11510 apzSolaris_Gets_Cxx14Machs, 11511 SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11512 aSolaris_Gets_Cxx14Tests, apzSolaris_Gets_Cxx14Patch, 0 }, 11513 11514 { zSolaris_Int_ConstName, zSolaris_Int_ConstList, 11515 apzSolaris_Int_ConstMachs, 11516 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11517 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 }, 11518 11519 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List, 11520 apzSolaris_Int_Limits_1Machs, 11521 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11522 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 }, 11523 11524 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List, 11525 apzSolaris_Int_Limits_2Machs, 11526 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11527 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 }, 11528 11529 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List, 11530 apzSolaris_Int_Limits_3Machs, 11531 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11532 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 }, 11533 11534 { zSolaris_Math_1Name, zSolaris_Math_1List, 11535 apzSolaris_Math_1Machs, 11536 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11537 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 }, 11538 11539 { zSolaris_Math_10Name, zSolaris_Math_10List, 11540 apzSolaris_Math_10Machs, 11541 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11542 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 }, 11543 11544 { zSolaris_Math_2Name, zSolaris_Math_2List, 11545 apzSolaris_Math_2Machs, 11546 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11547 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 }, 11548 11549 { zSolaris_Math_3Name, zSolaris_Math_3List, 11550 apzSolaris_Math_3Machs, 11551 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11552 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 }, 11553 11554 { zSolaris_Math_4Name, zSolaris_Math_4List, 11555 apzSolaris_Math_4Machs, 11556 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11557 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 }, 11558 11559 { zSolaris_Math_8Name, zSolaris_Math_8List, 11560 apzSolaris_Math_8Machs, 11561 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11562 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 }, 11563 11564 { zSolaris_Math_9Name, zSolaris_Math_9List, 11565 apzSolaris_Math_9Machs, 11566 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11567 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 }, 11568 11569 { zSolaris_Math_11Name, zSolaris_Math_11List, 11570 apzSolaris_Math_11Machs, 11571 SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11572 aSolaris_Math_11Tests, apzSolaris_Math_11Patch, 0 }, 11573 11574 { zSolaris_Math_12Name, zSolaris_Math_12List, 11575 apzSolaris_Math_12Machs, 11576 SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY, 11577 aSolaris_Math_12Tests, apzSolaris_Math_12Patch, 0 }, 11578 11579 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List, 11580 apzSolaris_Once_Init_1Machs, 11581 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11582 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 }, 11583 11584 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList, 11585 apzSolaris_Posix_Spawn_RestrictMachs, 11586 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11587 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 }, 11588 11589 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList, 11590 apzSolaris_Pow_Int_OverloadMachs, 11591 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11592 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 }, 11593 11594 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List, 11595 apzSolaris_Rwlock_Init_1Machs, 11596 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11597 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 }, 11598 11599 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList, 11600 apzSolaris_Std___FilbufMachs, 11601 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11602 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 }, 11603 11604 { zSolaris_Std_Gets_Cxx14Name, zSolaris_Std_Gets_Cxx14List, 11605 apzSolaris_Std_Gets_Cxx14Machs, 11606 SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11607 aSolaris_Std_Gets_Cxx14Tests, apzSolaris_Std_Gets_Cxx14Patch, 0 }, 11608 11609 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList, 11610 apzSolaris_Stdio_TagMachs, 11611 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY, 11612 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 }, 11613 11614 { zSolaris_Stdlib_NoreturnName, zSolaris_Stdlib_NoreturnList, 11615 apzSolaris_Stdlib_NoreturnMachs, 11616 SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11617 aSolaris_Stdlib_NoreturnTests, apzSolaris_Stdlib_NoreturnPatch, 0 }, 11618 11619 { zStatsswtchName, zStatsswtchList, 11620 apzStatsswtchMachs, 11621 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11622 aStatsswtchTests, apzStatsswtchPatch, 0 }, 11623 11624 { zStdio_Stdarg_HName, zStdio_Stdarg_HList, 11625 apzStdio_Stdarg_HMachs, 11626 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, 11627 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 }, 11628 11629 { zStdio_Va_ListName, zStdio_Va_ListList, 11630 apzStdio_Va_ListMachs, 11631 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT, 11632 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 }, 11633 11634 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList, 11635 apzStdio_Va_List_ClientsMachs, 11636 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY, 11637 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 }, 11638 11639 { zStrict_Ansi_NotName, zStrict_Ansi_NotList, 11640 apzStrict_Ansi_NotMachs, 11641 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11642 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 }, 11643 11644 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList, 11645 apzStrict_Ansi_Not_CtdMachs, 11646 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11647 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 }, 11648 11649 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList, 11650 apzStrict_Ansi_OnlyMachs, 11651 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11652 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 }, 11653 11654 { zStruct_FileName, zStruct_FileList, 11655 apzStruct_FileMachs, 11656 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11657 aStruct_FileTests, apzStruct_FilePatch, 0 }, 11658 11659 { zStruct_SockaddrName, zStruct_SockaddrList, 11660 apzStruct_SockaddrMachs, 11661 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11662 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 }, 11663 11664 { zSun_Auth_ProtoName, zSun_Auth_ProtoList, 11665 apzSun_Auth_ProtoMachs, 11666 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11667 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 }, 11668 11669 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList, 11670 apzSun_Bogus_IfdefMachs, 11671 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11672 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 }, 11673 11674 { zSun_CatmacroName, zSun_CatmacroList, 11675 apzSun_CatmacroMachs, 11676 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11677 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 }, 11678 11679 { zSun_MallocName, zSun_MallocList, 11680 apzSun_MallocMachs, 11681 SUN_MALLOC_TEST_CT, FD_MACH_ONLY, 11682 aSun_MallocTests, apzSun_MallocPatch, 0 }, 11683 11684 { zSun_Rusers_SemiName, zSun_Rusers_SemiList, 11685 apzSun_Rusers_SemiMachs, 11686 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY, 11687 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 }, 11688 11689 { zSun_SignalName, zSun_SignalList, 11690 apzSun_SignalMachs, 11691 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11692 aSun_SignalTests, apzSun_SignalPatch, 0 }, 11693 11694 { zSunos_StrlenName, zSunos_StrlenList, 11695 apzSunos_StrlenMachs, 11696 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11697 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 }, 11698 11699 { zSuse_Linux_Vt_CxxName, zSuse_Linux_Vt_CxxList, 11700 apzSuse_Linux_Vt_CxxMachs, 11701 SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11702 aSuse_Linux_Vt_CxxTests, apzSuse_Linux_Vt_CxxPatch, 0 }, 11703 11704 { zSvr4_Disable_OptName, zSvr4_Disable_OptList, 11705 apzSvr4_Disable_OptMachs, 11706 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY, 11707 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 }, 11708 11709 { zSvr4_GetcwdName, zSvr4_GetcwdList, 11710 apzSvr4_GetcwdMachs, 11711 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11712 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 }, 11713 11714 { zSvr4_ProfilName, zSvr4_ProfilList, 11715 apzSvr4_ProfilMachs, 11716 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11717 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 }, 11718 11719 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList, 11720 apzSvr4_Sighandler_TypeMachs, 11721 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11722 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 }, 11723 11724 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList, 11725 apzSvr4_Undeclared_GetrngeMachs, 11726 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11727 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 }, 11728 11729 { zSysv68_StringName, zSysv68_StringList, 11730 apzSysv68_StringMachs, 11731 SYSV68_STRING_TEST_CT, FD_MACH_ONLY, 11732 aSysv68_StringTests, apzSysv68_StringPatch, 0 }, 11733 11734 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList, 11735 apzSysz_Stdlib_For_SunMachs, 11736 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11737 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 }, 11738 11739 { zThread_KeywordName, zThread_KeywordList, 11740 apzThread_KeywordMachs, 11741 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11742 aThread_KeywordTests, apzThread_KeywordPatch, 0 }, 11743 11744 { zTinfo_CplusplusName, zTinfo_CplusplusList, 11745 apzTinfo_CplusplusMachs, 11746 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11747 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 }, 11748 11749 { zUltrix_ConstName, zUltrix_ConstList, 11750 apzUltrix_ConstMachs, 11751 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11752 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 }, 11753 11754 { zUltrix_Const2Name, zUltrix_Const2List, 11755 apzUltrix_Const2Machs, 11756 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11757 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 }, 11758 11759 { zVa_I960_MacroName, zVa_I960_MacroList, 11760 apzVa_I960_MacroMachs, 11761 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11762 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 }, 11763 11764 { zVms_Add_Missing_BracesName, zVms_Add_Missing_BracesList, 11765 apzVms_Add_Missing_BracesMachs, 11766 VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11767 aVms_Add_Missing_BracesTests, apzVms_Add_Missing_BracesPatch, 0 }, 11768 11769 { zVms_Decc_BuiltinName, zVms_Decc_BuiltinList, 11770 apzVms_Decc_BuiltinMachs, 11771 VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY, 11772 aVms_Decc_BuiltinTests, apzVms_Decc_BuiltinPatch, 0 }, 11773 11774 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList, 11775 apzVms_Define_Can_Use_Extern_PrefixMachs, 11776 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11777 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 }, 11778 11779 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList, 11780 apzVms_Disable_Decc_String_BuiltinsMachs, 11781 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11782 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 }, 11783 11784 { zVms_Do_Not_Redeclare_HostaliasName, zVms_Do_Not_Redeclare_HostaliasList, 11785 apzVms_Do_Not_Redeclare_HostaliasMachs, 11786 VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11787 aVms_Do_Not_Redeclare_HostaliasTests, apzVms_Do_Not_Redeclare_HostaliasPatch, 0 }, 11788 11789 { zVms_Forward_Declare_StructName, zVms_Forward_Declare_StructList, 11790 apzVms_Forward_Declare_StructMachs, 11791 VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11792 aVms_Forward_Declare_StructTests, apzVms_Forward_Declare_StructPatch, 0 }, 11793 11794 { zVms_No_64bit_GetoptName, zVms_No_64bit_GetoptList, 11795 apzVms_No_64bit_GetoptMachs, 11796 VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11797 aVms_No_64bit_GetoptTests, apzVms_No_64bit_GetoptPatch, 0 }, 11798 11799 { zVms_Use_Fast_SetjmpName, zVms_Use_Fast_SetjmpList, 11800 apzVms_Use_Fast_SetjmpMachs, 11801 VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11802 aVms_Use_Fast_SetjmpTests, apzVms_Use_Fast_SetjmpPatch, 0 }, 11803 11804 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList, 11805 apzVms_Use_Pragma_Extern_ModelMachs, 11806 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11807 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 }, 11808 11809 { zVms_Use_Quoted_IncludeName, zVms_Use_Quoted_IncludeList, 11810 apzVms_Use_Quoted_IncludeMachs, 11811 VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11812 aVms_Use_Quoted_IncludeTests, apzVms_Use_Quoted_IncludePatch, 0 }, 11813 11814 { zVoid_NullName, zVoid_NullList, 11815 apzVoid_NullMachs, 11816 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11817 aVoid_NullTests, apzVoid_NullPatch, 0 }, 11818 11819 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList, 11820 apzVxworks_Gcc_ProblemMachs, 11821 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY, 11822 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 }, 11823 11824 { zVxworks_Ioctl_MacroName, zVxworks_Ioctl_MacroList, 11825 apzVxworks_Ioctl_MacroMachs, 11826 VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11827 aVxworks_Ioctl_MacroTests, apzVxworks_Ioctl_MacroPatch, 0 }, 11828 11829 { zVxworks_Mkdir_MacroName, zVxworks_Mkdir_MacroList, 11830 apzVxworks_Mkdir_MacroMachs, 11831 VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11832 aVxworks_Mkdir_MacroTests, apzVxworks_Mkdir_MacroPatch, 0 }, 11833 11834 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList, 11835 apzVxworks_Needs_VxtypesMachs, 11836 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11837 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 }, 11838 11839 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList, 11840 apzVxworks_Needs_VxworksMachs, 11841 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY, 11842 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 }, 11843 11844 { zVxworks_RegsName, zVxworks_RegsList, 11845 apzVxworks_RegsMachs, 11846 VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11847 aVxworks_RegsTests, apzVxworks_RegsPatch, 0 }, 11848 11849 { zVxworks_TimeName, zVxworks_TimeList, 11850 apzVxworks_TimeMachs, 11851 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11852 aVxworks_TimeTests, apzVxworks_TimePatch, 0 }, 11853 11854 { zVxworks_Write_ConstName, zVxworks_Write_ConstList, 11855 apzVxworks_Write_ConstMachs, 11856 VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11857 aVxworks_Write_ConstTests, apzVxworks_Write_ConstPatch, 0 }, 11858 11859 { zX11_ClassName, zX11_ClassList, 11860 apzX11_ClassMachs, 11861 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11862 aX11_ClassTests, apzX11_ClassPatch, 0 }, 11863 11864 { zX11_Class_UsageName, zX11_Class_UsageList, 11865 apzX11_Class_UsageMachs, 11866 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11867 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 }, 11868 11869 { zX11_NewName, zX11_NewList, 11870 apzX11_NewMachs, 11871 X11_NEW_TEST_CT, FD_MACH_ONLY, 11872 aX11_NewTests, apzX11_NewPatch, 0 }, 11873 11874 { zX11_SprintfName, zX11_SprintfList, 11875 apzX11_SprintfMachs, 11876 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 11877 aX11_SprintfTests, apzX11_SprintfPatch, 0 } 11878}; 11879