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