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 July 5, 2007 at 08:11:22 PM MEST 6 * From the definitions inclhack.def 7 * and the template file fixincl 8 */ 9 /* DO NOT CVS-MERGE THIS FILE, EITHER Thu Jul 5 20:11:22 MEST 2007 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 204 fixup descriptions. 19 * 20 * See README for more information. 21 * 22 * inclhack copyright (c) 1998, 1999, 2000, 2001 23 * The Free Software Foundation, Inc. 24 * 25 * inclhack is free software. 26 * 27 * You may redistribute it and/or modify it under the terms of the 28 * GNU General Public License, as published by the Free Software 29 * Foundation; either version 2, or (at your option) any later version. 30 * 31 * inclhack is distributed in the hope that it will be useful, 32 * but 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 37 * along with inclhack. See the file "COPYING". If not, 38 * write to: The Free Software Foundation, Inc., 39 * 59 Temple Place - Suite 330, 40 * Boston, MA 02111-1307, USA. 41 */ 42 43 /* * * * * * * * * * * * * * * * * * * * * * * * * * 44 * 45 * Description of Aab_Darwin7_9_Long_Double_Funcs fix 46 */ 47 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] = 48 "AAB_darwin7_9_long_double_funcs"; 49 50 /* 51 * File name selection pattern 52 */ 53 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] = 54 "|architecture/ppc/math.h|"; 55 /* 56 * Machine/OS name selection pattern 57 */ 58 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = { 59 "*-*-darwin7.9*", 60 (const char*)NULL }; 61 62 /* 63 * content bypass pattern - skip fix if pattern found 64 */ 65 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] = 66 "powl"; 67 68 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1 69 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = { 70 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, }; 71 72 /* 73 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs 74 */ 75 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = { 76 "/* This file prototypes the long double functions available on Mac OS\n\ 77 10.3.9. */\n\ 78 #ifndef __MATH__\n\ 79 # undef __APPLE_CC__\n\ 80 # define __APPLE_CC__ 1345\n\ 81 # include_next <architecture/ppc/math.h>\n\ 82 # undef __APPLE_CC__\n\ 83 # define __APPLE_CC__ 1\n\ 84 # ifndef __LIBMLDBL_COMPAT\n\ 85 # ifdef __LONG_DOUBLE_128__\n\ 86 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\ 87 # else\n\ 88 # define __LIBMLDBL_COMPAT(sym)\n\ 89 # endif /* __LONG_DOUBLE_128__ */\n\ 90 # endif /* __LIBMLDBL_COMPAT */\n\ 91 # ifdef __cplusplus\n\ 92 extern \"C\" {\n\ 93 # endif\n\ 94 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\ 95 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\ 96 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\ 97 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\ 98 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\ 99 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\ 100 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\ 101 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\ 102 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\ 103 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\ 104 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\ 105 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\ 106 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\ 107 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\ 108 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\ 109 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\ 110 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\ 111 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\ 112 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\ 113 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\ 114 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\ 115 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\ 116 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\ 117 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\ 118 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\ 119 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\ 120 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\ 121 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\ 122 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\ 123 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\ 124 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\ 125 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\ 126 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\ 127 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\ 128 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\ 129 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\ 130 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\ 131 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\ 132 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\ 133 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\ 134 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\ 135 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\ 136 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\ 137 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\ 138 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\ 139 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\ 140 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\ 141 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\ 142 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\ 143 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\ 144 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\ 145 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\ 146 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\ 147 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\ 148 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\ 149 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\ 150 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\ 151 # ifdef __cplusplus\n\ 152 }\n\ 153 # endif\n\ 154 #endif /* __MATH__ */", 155 (char*)NULL }; 156 157 /* * * * * * * * * * * * * * * * * * * * * * * * * * 158 * 159 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix 160 */ 161 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] = 162 "AAB_darwin7_9_long_double_funcs_2"; 163 164 /* 165 * File name selection pattern 166 */ 167 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] = 168 "|math.h|"; 169 /* 170 * Machine/OS name selection pattern 171 */ 172 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = { 173 "*-*-darwin7.9*", 174 (const char*)NULL }; 175 176 /* 177 * content selection pattern - do fix if pattern found 178 */ 179 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] = 180 "#include[ \\t]+\\\""; 181 182 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1 183 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = { 184 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, }; 185 186 /* 187 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2 188 */ 189 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = { 190 "format", 191 "%1<%2.h>", 192 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"", 193 (char*)NULL }; 194 195 /* * * * * * * * * * * * * * * * * * * * * * * * * * 196 * 197 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix 198 */ 199 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] = 200 "AAB_fd_zero_asm_posix_types_h"; 201 202 /* 203 * File name selection pattern 204 */ 205 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] = 206 "|asm/posix_types.h|"; 207 /* 208 * Machine/OS name selection pattern 209 */ 210 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = { 211 "i[34567]86-*-linux*", 212 (const char*)NULL }; 213 214 /* 215 * content bypass pattern - skip fix if pattern found 216 */ 217 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = 218 "} while"; 219 220 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1 221 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { 222 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, }; 223 224 /* 225 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H 226 */ 227 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = { 228 "/* This file fixes a bug in the __FD_ZERO macro\n\ 229 for older versions of the Linux kernel. */\n\ 230 #ifndef _POSIX_TYPES_H_WRAPPER\n\ 231 #include <features.h>\n\ 232 #include_next <asm/posix_types.h>\n\n\ 233 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ 234 #undef __FD_ZERO\n\ 235 #define __FD_ZERO(fdsetp) \\\n\ 236 do { \\\n\ 237 int __d0, __d1; \\\n\ 238 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ 239 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ 240 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ 241 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\ 242 } while (0)\n\ 243 #endif\n\n\ 244 #define _POSIX_TYPES_H_WRAPPER\n\ 245 #endif /* _POSIX_TYPES_H_WRAPPER */", 246 (char*)NULL }; 247 248 /* * * * * * * * * * * * * * * * * * * * * * * * * * 249 * 250 * Description of Aab_Fd_Zero_Gnu_Types_H fix 251 */ 252 tSCC zAab_Fd_Zero_Gnu_Types_HName[] = 253 "AAB_fd_zero_gnu_types_h"; 254 255 /* 256 * File name selection pattern 257 */ 258 tSCC zAab_Fd_Zero_Gnu_Types_HList[] = 259 "|gnu/types.h|"; 260 /* 261 * Machine/OS name selection pattern 262 */ 263 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = { 264 "i[34567]86-*-linux*", 265 (const char*)NULL }; 266 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0 267 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL 268 269 /* 270 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H 271 */ 272 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = { 273 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\ 274 #ifndef _TYPES_H_WRAPPER\n\ 275 #include <features.h>\n\ 276 #include_next <gnu/types.h>\n\n\ 277 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ 278 #undef __FD_ZERO\n\ 279 # define __FD_ZERO(fdsetp) \\\n\ 280 do { \\\n\ 281 int __d0, __d1; \\\n\ 282 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ 283 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ 284 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ 285 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\ 286 } while (0)\n\ 287 #endif\n\n\ 288 #define _TYPES_H_WRAPPER\n\ 289 #endif /* _TYPES_H_WRAPPER */", 290 (char*)NULL }; 291 292 /* * * * * * * * * * * * * * * * * * * * * * * * * * 293 * 294 * Description of Aab_Fd_Zero_Selectbits_H fix 295 */ 296 tSCC zAab_Fd_Zero_Selectbits_HName[] = 297 "AAB_fd_zero_selectbits_h"; 298 299 /* 300 * File name selection pattern 301 */ 302 tSCC zAab_Fd_Zero_Selectbits_HList[] = 303 "|selectbits.h|"; 304 /* 305 * Machine/OS name selection pattern 306 */ 307 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = { 308 "i[34567]86-*-linux*", 309 (const char*)NULL }; 310 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0 311 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL 312 313 /* 314 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H 315 */ 316 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = { 317 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\ 318 #ifndef _SELECTBITS_H_WRAPPER\n\ 319 #include <features.h>\n\ 320 #include_next <selectbits.h>\n\n\ 321 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\ 322 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\ 323 && __GLIBC_MINOR__ == 0\n\ 324 #undef __FD_ZERO\n\ 325 #define __FD_ZERO(fdsetp) \\\\\n\ 326 do { \\\\\n\ 327 int __d0, __d1; \\\\\n\ 328 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\ 329 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\ 330 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\ 331 / sizeof (__fd_mask)), \\\\\n\ 332 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\ 333 : \"memory\"); \\\\\n\ 334 } while (0)\n\ 335 #endif\n\n\ 336 #define _SELECTBITS_H_WRAPPER\n\ 337 #endif /* _SELECTBITS_H_WRAPPER */", 338 (char*)NULL }; 339 340 /* * * * * * * * * * * * * * * * * * * * * * * * * * 341 * 342 * Description of Aab_Solaris_Sys_Varargs_H fix 343 */ 344 tSCC zAab_Solaris_Sys_Varargs_HName[] = 345 "AAB_solaris_sys_varargs_h"; 346 347 /* 348 * File name selection pattern 349 */ 350 tSCC zAab_Solaris_Sys_Varargs_HList[] = 351 "|sys/varargs.h|"; 352 /* 353 * Machine/OS name selection pattern 354 */ 355 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = { 356 "*-*-solaris*", 357 (const char*)NULL }; 358 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0 359 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL 360 361 /* 362 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H 363 */ 364 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = { 365 "#ifdef __STDC__\n\ 366 #include <stdarg.h>\n\ 367 #else\n\ 368 #include <varargs.h>\n\ 369 #endif", 370 (char*)NULL }; 371 372 /* * * * * * * * * * * * * * * * * * * * * * * * * * 373 * 374 * Description of Aab_Sun_Memcpy fix 375 */ 376 tSCC zAab_Sun_MemcpyName[] = 377 "AAB_sun_memcpy"; 378 379 /* 380 * File name selection pattern 381 */ 382 tSCC zAab_Sun_MemcpyList[] = 383 "|memory.h|"; 384 /* 385 * Machine/OS name selection pattern 386 */ 387 #define apzAab_Sun_MemcpyMachs (const char**)NULL 388 389 /* 390 * content selection pattern - do fix if pattern found 391 */ 392 tSCC zAab_Sun_MemcpySelect0[] = 393 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/"; 394 395 #define AAB_SUN_MEMCPY_TEST_CT 1 396 static tTestDesc aAab_Sun_MemcpyTests[] = { 397 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, }; 398 399 /* 400 * Fix Command Arguments for Aab_Sun_Memcpy 401 */ 402 static const char* apzAab_Sun_MemcpyPatch[] = { 403 "/* This file was generated by fixincludes */\n\ 404 #ifndef __memory_h__\n\ 405 #define __memory_h__\n\n\ 406 #ifdef __STDC__\n\ 407 extern void *memccpy();\n\ 408 extern void *memchr();\n\ 409 extern void *memcpy();\n\ 410 extern void *memset();\n\ 411 #else\n\ 412 extern char *memccpy();\n\ 413 extern char *memchr();\n\ 414 extern char *memcpy();\n\ 415 extern char *memset();\n\ 416 #endif /* __STDC__ */\n\n\ 417 extern int memcmp();\n\n\ 418 #endif /* __memory_h__ */\n\ 419 _EndOfHeader;\n\ 420 };\n\n\n\ 421 /*\n\ 422 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\ 423 * stdarg.h or varargs.h files as appropriate.\n\ 424 */\n\ 425 #ifdef SVR4\n\ 426 fix = {\n\ 427 hackname = AAB_svr4_no_varargs;\n\ 428 files = sys/varargs.h;\n\ 429 replace = \"/* This file was generated by fixincludes. */\\n\"\n\ 430 \"#ifndef _SYS_VARARGS_H\\n\"\n\ 431 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\ 432 \"#ifdef __STDC__\\n\"\n\ 433 \"#include <stdarg.h>\\n\"\n\ 434 \"#else\\n\"\n\ 435 \"#include <varargs.h>\\n\"\n\ 436 \"#endif\\n\\n\"\n\n\ 437 \"#endif /* _SYS_VARARGS_H */\\n\";\n\ 438 };\n\ 439 #endif\n\n\n\ 440 /*\n\ 441 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\ 442 * optimized byteswapping. (The original probably implemented some\n\ 443 * incompatible optimized byteswapping.)\n\ 444 */\n\ 445 fix = {\n\ 446 hackname = AAB_svr4_replace_byteorder;\n\ 447 mach = \"*-*-sysv4*\";\n\ 448 mach = \"i[34567]86-*-sysv5*\";\n\ 449 mach = \"i[34567]86-*-sco3.2v5*\";\n\ 450 mach = \"i[34567]86-*-udk*\";\n\ 451 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\ 452 mach = \"powerpcle-*-solaris2.[0-4]\";\n\ 453 mach = \"sparc-*-solaris2.[0-4]\";\n\ 454 mach = \"i[34567]86-sequent-ptx*\";\n\ 455 files = sys/byteorder.h;\n\ 456 replace = <<- _EndOfHeader_\n\ 457 #ifndef _SYS_BYTEORDER_H\n\ 458 #define _SYS_BYTEORDER_H\n\n\ 459 /* Functions to convert `short' and `long' quantities from host byte order\n\ 460 to (internet) network byte order (i.e. big-endian).\n\n\ 461 Written by Ron Guilmette (rfg@ncd.com).\n\n\ 462 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\ 463 For big-endian machines these functions are essentially no-ops.\n\n\ 464 For little-endian machines, we define the functions using specialized\n\ 465 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\ 466 #if !defined (__GNUC__) && !defined (__GNUG__)\n\ 467 #error You lose! This file is only useful with GNU compilers.\n\ 468 #endif\n\n\ 469 #ifndef __BYTE_ORDER__\n\ 470 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\ 471 double underscores added at the front and back. */\n\ 472 #define __LITTLE_ENDIAN__ 1234\n\ 473 #define __BIG_ENDIAN__ 4321\n\ 474 #define __PDP_ENDIAN__ 3412\n\ 475 #endif\n\n\ 476 #ifdef __STDC__\n\ 477 static __inline__ unsigned long htonl (unsigned long);\n\ 478 static __inline__ unsigned short htons (unsigned int);\n\ 479 static __inline__ unsigned long ntohl (unsigned long);\n\ 480 static __inline__ unsigned short ntohs (unsigned int);\n\ 481 #endif /* defined (__STDC__) */\n\n\ 482 #if defined (__i386__)\n\n\ 483 #ifndef __BYTE_ORDER__\n\ 484 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\ 485 #endif\n\n\ 486 /* Convert a host long to a network long. */\n\n\ 487 /* We must use a new-style function definition, so that this will also\n\ 488 be valid for C++. */\n\ 489 static __inline__ unsigned long\n\ 490 htonl (unsigned long __arg)\n\ 491 {\n\ 492 register unsigned long __result;\n\n\ 493 __asm__ (\"xchg%B0 %b0,%h0\n\ 494 ror%L0 $16,%0\n\ 495 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\ 496 return __result;\n\ 497 }\n\n\ 498 /* Convert a host short to a network short. */\n\n\ 499 static __inline__ unsigned short\n\ 500 htons (unsigned int __arg)\n\ 501 {\n\ 502 register unsigned short __result;\n\n\ 503 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\ 504 return __result;\n\ 505 }\n\n\ 506 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\ 507 #ifndef __BYTE_ORDER__\n\ 508 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\ 509 #endif\n\n\ 510 /* For other little-endian machines, using C code is just as efficient as\n\ 511 using assembly code. */\n\n\ 512 /* Convert a host long to a network long. */\n\n\ 513 static __inline__ unsigned long\n\ 514 htonl (unsigned long __arg)\n\ 515 {\n\ 516 register unsigned long __result;\n\n\ 517 __result = (__arg >> 24) & 0x000000ff;\n\ 518 __result |= (__arg >> 8) & 0x0000ff00;\n\ 519 __result |= (__arg << 8) & 0x00ff0000;\n\ 520 __result |= (__arg << 24) & 0xff000000;\n\ 521 return __result;\n\ 522 }\n\n\ 523 /* Convert a host short to a network short. */\n\n\ 524 static __inline__ unsigned short\n\ 525 htons (unsigned int __arg)\n\ 526 {\n\ 527 register unsigned short __result;\n\n\ 528 __result = (__arg << 8) & 0xff00;\n\ 529 __result |= (__arg >> 8) & 0x00ff;\n\ 530 return __result;\n\ 531 }\n\n\ 532 #else /* must be a big-endian machine */\n\n\ 533 #ifndef __BYTE_ORDER__\n\ 534 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\ 535 #endif\n\n\ 536 /* Convert a host long to a network long. */\n\n\ 537 static __inline__ unsigned long\n\ 538 htonl (unsigned long __arg)\n\ 539 {\n\ 540 return __arg;\n\ 541 }\n\n\ 542 /* Convert a host short to a network short. */\n\n\ 543 static __inline__ unsigned short\n\ 544 htons (unsigned int __arg)\n\ 545 {\n\ 546 return __arg;\n\ 547 }\n\n\ 548 #endif /* big-endian */\n\n\ 549 /* Convert a network long to a host long. */\n\n\ 550 static __inline__ unsigned long\n\ 551 ntohl (unsigned long __arg)\n\ 552 {\n\ 553 return htonl (__arg);\n\ 554 }\n\n\ 555 /* Convert a network short to a host short. */\n\n\ 556 static __inline__ unsigned short\n\ 557 ntohs (unsigned int __arg)\n\ 558 {\n\ 559 return htons (__arg);\n\ 560 }\n\ 561 #endif", 562 (char*)NULL }; 563 564 /* * * * * * * * * * * * * * * * * * * * * * * * * * 565 * 566 * Description of Aab_Ultrix_Ansi_Compat fix 567 */ 568 tSCC zAab_Ultrix_Ansi_CompatName[] = 569 "AAB_ultrix_ansi_compat"; 570 571 /* 572 * File name selection pattern 573 */ 574 tSCC zAab_Ultrix_Ansi_CompatList[] = 575 "|ansi_compat.h|"; 576 /* 577 * Machine/OS name selection pattern 578 */ 579 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL 580 581 /* 582 * content selection pattern - do fix if pattern found 583 */ 584 tSCC zAab_Ultrix_Ansi_CompatSelect0[] = 585 "ULTRIX"; 586 587 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1 588 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = { 589 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, }; 590 591 /* 592 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat 593 */ 594 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = { 595 "/* This file intentionally left blank. */\n", 596 (char*)NULL }; 597 598 /* * * * * * * * * * * * * * * * * * * * * * * * * * 599 * 600 * Description of Aab_Ultrix_Limits fix 601 */ 602 tSCC zAab_Ultrix_LimitsName[] = 603 "AAB_ultrix_limits"; 604 605 /* 606 * File name selection pattern 607 */ 608 tSCC zAab_Ultrix_LimitsList[] = 609 "|limits.h|"; 610 /* 611 * Machine/OS name selection pattern 612 */ 613 tSCC* apzAab_Ultrix_LimitsMachs[] = { 614 "*-*-ultrix4.3", 615 (const char*)NULL }; 616 #define AAB_ULTRIX_LIMITS_TEST_CT 0 617 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL 618 619 /* 620 * Fix Command Arguments for Aab_Ultrix_Limits 621 */ 622 static const char* apzAab_Ultrix_LimitsPatch[] = { 623 "#ifndef _LIMITS_INCLUDED\n\ 624 #define _LIMITS_INCLUDED\n\ 625 #include <sys/limits.h>\n\ 626 #endif /* _LIMITS_INCLUDED */", 627 (char*)NULL }; 628 629 /* * * * * * * * * * * * * * * * * * * * * * * * * * 630 * 631 * Description of Aab_Ultrix_Memory fix 632 */ 633 tSCC zAab_Ultrix_MemoryName[] = 634 "AAB_ultrix_memory"; 635 636 /* 637 * File name selection pattern 638 */ 639 tSCC zAab_Ultrix_MemoryList[] = 640 "|memory.h|"; 641 /* 642 * Machine/OS name selection pattern 643 */ 644 tSCC* apzAab_Ultrix_MemoryMachs[] = { 645 "*-*-ultrix4.3", 646 (const char*)NULL }; 647 #define AAB_ULTRIX_MEMORY_TEST_CT 0 648 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL 649 650 /* 651 * Fix Command Arguments for Aab_Ultrix_Memory 652 */ 653 static const char* apzAab_Ultrix_MemoryPatch[] = { 654 "#ifndef _MEMORY_INCLUDED\n\ 655 #define _MEMORY_INCLUDED\n\ 656 #include <strings.h>\n\ 657 #endif /* _MEMORY_INCLUDED */", 658 (char*)NULL }; 659 660 /* * * * * * * * * * * * * * * * * * * * * * * * * * 661 * 662 * Description of Aab_Ultrix_String fix 663 */ 664 tSCC zAab_Ultrix_StringName[] = 665 "AAB_ultrix_string"; 666 667 /* 668 * File name selection pattern 669 */ 670 tSCC zAab_Ultrix_StringList[] = 671 "|string.h|"; 672 /* 673 * Machine/OS name selection pattern 674 */ 675 tSCC* apzAab_Ultrix_StringMachs[] = { 676 "*-*-ultrix4.3", 677 (const char*)NULL }; 678 #define AAB_ULTRIX_STRING_TEST_CT 0 679 #define aAab_Ultrix_StringTests (tTestDesc*)NULL 680 681 /* 682 * Fix Command Arguments for Aab_Ultrix_String 683 */ 684 static const char* apzAab_Ultrix_StringPatch[] = { 685 "#ifndef _STRING_INCLUDED\n\ 686 #define _STRING_INCLUDED\n\ 687 #include <strings.h>\n\ 688 #endif /* _STRING_INCLUDED */", 689 (char*)NULL }; 690 691 /* * * * * * * * * * * * * * * * * * * * * * * * * * 692 * 693 * Description of Aix_Pthread fix 694 */ 695 tSCC zAix_PthreadName[] = 696 "aix_pthread"; 697 698 /* 699 * File name selection pattern 700 */ 701 tSCC zAix_PthreadList[] = 702 "|pthread.h|"; 703 /* 704 * Machine/OS name selection pattern 705 */ 706 #define apzAix_PthreadMachs (const char**)NULL 707 708 /* 709 * content selection pattern - do fix if pattern found 710 */ 711 tSCC zAix_PthreadSelect0[] = 712 "(#define [A-Za-z_0-9]+)(\\\\\n\ 713 [^A-Za-z_0-9 \t\n\ 714 (])"; 715 716 #define AIX_PTHREAD_TEST_CT 1 717 static tTestDesc aAix_PthreadTests[] = { 718 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, }; 719 720 /* 721 * Fix Command Arguments for Aix_Pthread 722 */ 723 static const char* apzAix_PthreadPatch[] = { 724 "format", 725 "%1 %2", 726 (char*)NULL }; 727 728 /* * * * * * * * * * * * * * * * * * * * * * * * * * 729 * 730 * Description of Aix_Sysmachine fix 731 */ 732 tSCC zAix_SysmachineName[] = 733 "aix_sysmachine"; 734 735 /* 736 * File name selection pattern 737 */ 738 tSCC zAix_SysmachineList[] = 739 "|sys/machine.h|"; 740 /* 741 * Machine/OS name selection pattern 742 */ 743 #define apzAix_SysmachineMachs (const char**)NULL 744 745 /* 746 * content selection pattern - do fix if pattern found 747 */ 748 tSCC zAix_SysmachineSelect0[] = 749 "\\\\ +\n"; 750 751 #define AIX_SYSMACHINE_TEST_CT 1 752 static tTestDesc aAix_SysmachineTests[] = { 753 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, }; 754 755 /* 756 * Fix Command Arguments for Aix_Sysmachine 757 */ 758 static const char* apzAix_SysmachinePatch[] = { 759 "format", 760 "\\\n", 761 (char*)NULL }; 762 763 /* * * * * * * * * * * * * * * * * * * * * * * * * * 764 * 765 * Description of Aix_Syswait fix 766 */ 767 tSCC zAix_SyswaitName[] = 768 "aix_syswait"; 769 770 /* 771 * File name selection pattern 772 */ 773 tSCC zAix_SyswaitList[] = 774 "|sys/wait.h|"; 775 /* 776 * Machine/OS name selection pattern 777 */ 778 #define apzAix_SyswaitMachs (const char**)NULL 779 780 /* 781 * content selection pattern - do fix if pattern found 782 */ 783 tSCC zAix_SyswaitSelect0[] = 784 "^extern pid_t wait3\\(\\);\n"; 785 tSCC zAix_SyswaitSelect1[] = 786 "bos325,"; 787 788 #define AIX_SYSWAIT_TEST_CT 2 789 static tTestDesc aAix_SyswaitTests[] = { 790 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, 791 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, }; 792 793 /* 794 * Fix Command Arguments for Aix_Syswait 795 */ 796 static const char* apzAix_SyswaitPatch[] = { 797 "format", 798 "struct rusage;\n\ 799 %0", 800 (char*)NULL }; 801 802 /* * * * * * * * * * * * * * * * * * * * * * * * * * 803 * 804 * Description of Aix_Syswait_2 fix 805 */ 806 tSCC zAix_Syswait_2Name[] = 807 "aix_syswait_2"; 808 809 /* 810 * File name selection pattern 811 */ 812 tSCC zAix_Syswait_2List[] = 813 "|sys/wait.h|"; 814 /* 815 * Machine/OS name selection pattern 816 */ 817 #define apzAix_Syswait_2Machs (const char**)NULL 818 819 /* 820 * content selection pattern - do fix if pattern found 821 */ 822 tSCC zAix_Syswait_2Select0[] = 823 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)"; 824 825 #define AIX_SYSWAIT_2_TEST_CT 1 826 static tTestDesc aAix_Syswait_2Tests[] = { 827 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, }; 828 829 /* 830 * Fix Command Arguments for Aix_Syswait_2 831 */ 832 static const char* apzAix_Syswait_2Patch[] = { 833 "format", 834 "? (int)%1", 835 (char*)NULL }; 836 837 /* * * * * * * * * * * * * * * * * * * * * * * * * * 838 * 839 * Description of Aix_Volatile fix 840 */ 841 tSCC zAix_VolatileName[] = 842 "aix_volatile"; 843 844 /* 845 * File name selection pattern 846 */ 847 tSCC zAix_VolatileList[] = 848 "|sys/signal.h|"; 849 /* 850 * Machine/OS name selection pattern 851 */ 852 #define apzAix_VolatileMachs (const char**)NULL 853 854 /* 855 * content selection pattern - do fix if pattern found 856 */ 857 tSCC zAix_VolatileSelect0[] = 858 "typedef volatile int sig_atomic_t"; 859 860 #define AIX_VOLATILE_TEST_CT 1 861 static tTestDesc aAix_VolatileTests[] = { 862 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, }; 863 864 /* 865 * Fix Command Arguments for Aix_Volatile 866 */ 867 static const char* apzAix_VolatilePatch[] = { 868 "format", 869 "typedef int sig_atomic_t", 870 (char*)NULL }; 871 872 /* * * * * * * * * * * * * * * * * * * * * * * * * * 873 * 874 * Description of Alpha___Assert fix 875 */ 876 tSCC zAlpha___AssertName[] = 877 "alpha___assert"; 878 879 /* 880 * File name selection pattern 881 */ 882 tSCC zAlpha___AssertList[] = 883 "|assert.h|"; 884 /* 885 * Machine/OS name selection pattern 886 */ 887 #define apzAlpha___AssertMachs (const char**)NULL 888 889 /* 890 * content selection pattern - do fix if pattern found 891 */ 892 tSCC zAlpha___AssertSelect0[] = 893 "__assert\\(char \\*, char \\*, int\\)"; 894 895 #define ALPHA___ASSERT_TEST_CT 1 896 static tTestDesc aAlpha___AssertTests[] = { 897 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, }; 898 899 /* 900 * Fix Command Arguments for Alpha___Assert 901 */ 902 static const char* apzAlpha___AssertPatch[] = { 903 "format", 904 "__assert(const char *, const char *, int)", 905 (char*)NULL }; 906 907 /* * * * * * * * * * * * * * * * * * * * * * * * * * 908 * 909 * Description of Alpha___Extern_Prefix fix 910 */ 911 tSCC zAlpha___Extern_PrefixName[] = 912 "alpha___extern_prefix"; 913 914 /* 915 * File name selection pattern 916 */ 917 #define zAlpha___Extern_PrefixList (char*)NULL 918 /* 919 * Machine/OS name selection pattern 920 */ 921 tSCC* apzAlpha___Extern_PrefixMachs[] = { 922 "alpha*-dec-osf*", 923 (const char*)NULL }; 924 925 /* 926 * content selection pattern - do fix if pattern found 927 */ 928 tSCC zAlpha___Extern_PrefixSelect0[] = 929 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\ 930 (#[ \t]*pragma[ \t]*extern_prefix.*)"; 931 932 #define ALPHA___EXTERN_PREFIX_TEST_CT 1 933 static tTestDesc aAlpha___Extern_PrefixTests[] = { 934 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, }; 935 936 /* 937 * Fix Command Arguments for Alpha___Extern_Prefix 938 */ 939 static const char* apzAlpha___Extern_PrefixPatch[] = { 940 "format", 941 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\ 942 %3", 943 (char*)NULL }; 944 945 /* * * * * * * * * * * * * * * * * * * * * * * * * * 946 * 947 * Description of Alpha___Extern_Prefix_Standards fix 948 */ 949 tSCC zAlpha___Extern_Prefix_StandardsName[] = 950 "alpha___extern_prefix_standards"; 951 952 /* 953 * File name selection pattern 954 */ 955 tSCC zAlpha___Extern_Prefix_StandardsList[] = 956 "|standards.h|"; 957 /* 958 * Machine/OS name selection pattern 959 */ 960 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = { 961 "alpha*-dec-osf*", 962 (const char*)NULL }; 963 964 /* 965 * content selection pattern - do fix if pattern found 966 */ 967 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] = 968 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)"; 969 970 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1 971 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = { 972 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, }; 973 974 /* 975 * Fix Command Arguments for Alpha___Extern_Prefix_Standards 976 */ 977 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = { 978 "format", 979 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)", 980 (char*)NULL }; 981 982 /* * * * * * * * * * * * * * * * * * * * * * * * * * 983 * 984 * Description of Alpha___Extern_Prefix_Sys_Stat fix 985 */ 986 tSCC zAlpha___Extern_Prefix_Sys_StatName[] = 987 "alpha___extern_prefix_sys_stat"; 988 989 /* 990 * File name selection pattern 991 */ 992 tSCC zAlpha___Extern_Prefix_Sys_StatList[] = 993 "|sys/stat.h|sys/mount.h|"; 994 /* 995 * Machine/OS name selection pattern 996 */ 997 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = { 998 "alpha*-dec-osf5*", 999 (const char*)NULL }; 1000 1001 /* 1002 * content selection pattern - do fix if pattern found 1003 */ 1004 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] = 1005 "#[ \t]*if[ \t]*defined\\(__DECC\\)"; 1006 1007 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1 1008 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = { 1009 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, }; 1010 1011 /* 1012 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat 1013 */ 1014 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = { 1015 "format", 1016 "%0 || defined(__PRAGMA_EXTERN_PREFIX)", 1017 (char*)NULL }; 1018 1019 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1020 * 1021 * Description of Alpha_Assert fix 1022 */ 1023 tSCC zAlpha_AssertName[] = 1024 "alpha_assert"; 1025 1026 /* 1027 * File name selection pattern 1028 */ 1029 tSCC zAlpha_AssertList[] = 1030 "|assert.h|"; 1031 /* 1032 * Machine/OS name selection pattern 1033 */ 1034 #define apzAlpha_AssertMachs (const char**)NULL 1035 1036 /* 1037 * content selection pattern - do fix if pattern found 1038 */ 1039 tSCC zAlpha_AssertSelect0[] = 1040 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)"; 1041 1042 #define ALPHA_ASSERT_TEST_CT 1 1043 static tTestDesc aAlpha_AssertTests[] = { 1044 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, }; 1045 1046 /* 1047 * Fix Command Arguments for Alpha_Assert 1048 */ 1049 static const char* apzAlpha_AssertPatch[] = { 1050 "format", 1051 "%1(EX)", 1052 (char*)NULL }; 1053 1054 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1055 * 1056 * Description of Alpha_Bad_Lval fix 1057 */ 1058 tSCC zAlpha_Bad_LvalName[] = 1059 "alpha_bad_lval"; 1060 1061 /* 1062 * File name selection pattern 1063 */ 1064 #define zAlpha_Bad_LvalList (char*)NULL 1065 /* 1066 * Machine/OS name selection pattern 1067 */ 1068 tSCC* apzAlpha_Bad_LvalMachs[] = { 1069 "alpha*-dec-osf*", 1070 (const char*)NULL }; 1071 1072 /* 1073 * content selection pattern - do fix if pattern found 1074 */ 1075 tSCC zAlpha_Bad_LvalSelect0[] = 1076 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix"; 1077 1078 #define ALPHA_BAD_LVAL_TEST_CT 1 1079 static tTestDesc aAlpha_Bad_LvalTests[] = { 1080 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, }; 1081 1082 /* 1083 * Fix Command Arguments for Alpha_Bad_Lval 1084 */ 1085 static const char* apzAlpha_Bad_LvalPatch[] = { "sed", 1086 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/", 1087 (char*)NULL }; 1088 1089 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1090 * 1091 * Description of Alpha_Getopt fix 1092 */ 1093 tSCC zAlpha_GetoptName[] = 1094 "alpha_getopt"; 1095 1096 /* 1097 * File name selection pattern 1098 */ 1099 tSCC zAlpha_GetoptList[] = 1100 "|stdio.h|stdlib.h|"; 1101 /* 1102 * Machine/OS name selection pattern 1103 */ 1104 #define apzAlpha_GetoptMachs (const char**)NULL 1105 1106 /* 1107 * content selection pattern - do fix if pattern found 1108 */ 1109 tSCC zAlpha_GetoptSelect0[] = 1110 "getopt\\(int, char \\*\\[\\], *char \\*\\)"; 1111 1112 #define ALPHA_GETOPT_TEST_CT 1 1113 static tTestDesc aAlpha_GetoptTests[] = { 1114 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, }; 1115 1116 /* 1117 * Fix Command Arguments for Alpha_Getopt 1118 */ 1119 static const char* apzAlpha_GetoptPatch[] = { 1120 "format", 1121 "getopt(int, char *const[], const char *)", 1122 (char*)NULL }; 1123 1124 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1125 * 1126 * Description of Alpha_Parens fix 1127 */ 1128 tSCC zAlpha_ParensName[] = 1129 "alpha_parens"; 1130 1131 /* 1132 * File name selection pattern 1133 */ 1134 tSCC zAlpha_ParensList[] = 1135 "|sym.h|"; 1136 /* 1137 * Machine/OS name selection pattern 1138 */ 1139 #define apzAlpha_ParensMachs (const char**)NULL 1140 1141 /* 1142 * content selection pattern - do fix if pattern found 1143 */ 1144 tSCC zAlpha_ParensSelect0[] = 1145 "#ifndef\\(__mips64\\)"; 1146 1147 #define ALPHA_PARENS_TEST_CT 1 1148 static tTestDesc aAlpha_ParensTests[] = { 1149 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, }; 1150 1151 /* 1152 * Fix Command Arguments for Alpha_Parens 1153 */ 1154 static const char* apzAlpha_ParensPatch[] = { 1155 "format", 1156 "#ifndef __mips64", 1157 (char*)NULL }; 1158 1159 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1160 * 1161 * Description of Alpha_Pthread fix 1162 */ 1163 tSCC zAlpha_PthreadName[] = 1164 "alpha_pthread"; 1165 1166 /* 1167 * File name selection pattern 1168 */ 1169 tSCC zAlpha_PthreadList[] = 1170 "|pthread.h|"; 1171 /* 1172 * Machine/OS name selection pattern 1173 */ 1174 tSCC* apzAlpha_PthreadMachs[] = { 1175 "alpha*-dec-osf*", 1176 (const char*)NULL }; 1177 1178 /* 1179 * content selection pattern - do fix if pattern found 1180 */ 1181 tSCC zAlpha_PthreadSelect0[] = 1182 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\ 1183 (#[ \t]*define _PTHREAD_USE_PTDNAM_)"; 1184 1185 #define ALPHA_PTHREAD_TEST_CT 1 1186 static tTestDesc aAlpha_PthreadTests[] = { 1187 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, }; 1188 1189 /* 1190 * Fix Command Arguments for Alpha_Pthread 1191 */ 1192 static const char* apzAlpha_PthreadPatch[] = { 1193 "format", 1194 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\ 1195 %5", 1196 (char*)NULL }; 1197 1198 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1199 * 1200 * Description of Alpha_Pthread_Gcc fix 1201 */ 1202 tSCC zAlpha_Pthread_GccName[] = 1203 "alpha_pthread_gcc"; 1204 1205 /* 1206 * File name selection pattern 1207 */ 1208 tSCC zAlpha_Pthread_GccList[] = 1209 "|pthread.h|"; 1210 /* 1211 * Machine/OS name selection pattern 1212 */ 1213 tSCC* apzAlpha_Pthread_GccMachs[] = { 1214 "alpha*-dec-osf*", 1215 (const char*)NULL }; 1216 1217 /* 1218 * content selection pattern - do fix if pattern found 1219 */ 1220 tSCC zAlpha_Pthread_GccSelect0[] = 1221 "#else\n\ 1222 # error <pthread.h>: unrecognized compiler."; 1223 1224 #define ALPHA_PTHREAD_GCC_TEST_CT 1 1225 static tTestDesc aAlpha_Pthread_GccTests[] = { 1226 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, }; 1227 1228 /* 1229 * Fix Command Arguments for Alpha_Pthread_Gcc 1230 */ 1231 static const char* apzAlpha_Pthread_GccPatch[] = { 1232 "format", 1233 "#elif defined (__GNUC__)\n\ 1234 # define _PTHREAD_ENV_GCC\n\ 1235 %0", 1236 (char*)NULL }; 1237 1238 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1239 * 1240 * Description of Alpha_Pthread_Init fix 1241 */ 1242 tSCC zAlpha_Pthread_InitName[] = 1243 "alpha_pthread_init"; 1244 1245 /* 1246 * File name selection pattern 1247 */ 1248 tSCC zAlpha_Pthread_InitList[] = 1249 "|pthread.h|"; 1250 /* 1251 * Machine/OS name selection pattern 1252 */ 1253 tSCC* apzAlpha_Pthread_InitMachs[] = { 1254 "alpha*-dec-osf*", 1255 (const char*)NULL }; 1256 1257 /* 1258 * content selection pattern - do fix if pattern found 1259 */ 1260 tSCC zAlpha_Pthread_InitSelect0[] = 1261 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$"; 1262 1263 #define ALPHA_PTHREAD_INIT_TEST_CT 1 1264 static tTestDesc aAlpha_Pthread_InitTests[] = { 1265 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, }; 1266 1267 /* 1268 * Fix Command Arguments for Alpha_Pthread_Init 1269 */ 1270 static const char* apzAlpha_Pthread_InitPatch[] = { "sed", 1271 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\ 1272 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\ 1273 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\ 1274 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\ 1275 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\ 1276 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n", 1277 (char*)NULL }; 1278 1279 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1280 * 1281 * Description of Alpha_Sbrk fix 1282 */ 1283 tSCC zAlpha_SbrkName[] = 1284 "alpha_sbrk"; 1285 1286 /* 1287 * File name selection pattern 1288 */ 1289 tSCC zAlpha_SbrkList[] = 1290 "|unistd.h|"; 1291 /* 1292 * Machine/OS name selection pattern 1293 */ 1294 #define apzAlpha_SbrkMachs (const char**)NULL 1295 1296 /* 1297 * content selection pattern - do fix if pattern found 1298 */ 1299 tSCC zAlpha_SbrkSelect0[] = 1300 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\("; 1301 1302 #define ALPHA_SBRK_TEST_CT 1 1303 static tTestDesc aAlpha_SbrkTests[] = { 1304 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, }; 1305 1306 /* 1307 * Fix Command Arguments for Alpha_Sbrk 1308 */ 1309 static const char* apzAlpha_SbrkPatch[] = { 1310 "format", 1311 "void *sbrk(", 1312 (char*)NULL }; 1313 1314 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1315 * 1316 * Description of Alpha_Wchar fix 1317 */ 1318 tSCC zAlpha_WcharName[] = 1319 "alpha_wchar"; 1320 1321 /* 1322 * File name selection pattern 1323 */ 1324 tSCC zAlpha_WcharList[] = 1325 "|wchar.h|"; 1326 /* 1327 * Machine/OS name selection pattern 1328 */ 1329 tSCC* apzAlpha_WcharMachs[] = { 1330 "alpha*-dec-osf4*", 1331 (const char*)NULL }; 1332 1333 /* 1334 * content selection pattern - do fix if pattern found 1335 */ 1336 tSCC zAlpha_WcharSelect0[] = 1337 "#define wcstok wcstok_r"; 1338 1339 #define ALPHA_WCHAR_TEST_CT 1 1340 static tTestDesc aAlpha_WcharTests[] = { 1341 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, }; 1342 1343 /* 1344 * Fix Command Arguments for Alpha_Wchar 1345 */ 1346 static const char* apzAlpha_WcharPatch[] = { "sed", 1347 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@", 1348 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@", 1349 (char*)NULL }; 1350 1351 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1352 * 1353 * Description of Avoid_Bool_Define fix 1354 */ 1355 tSCC zAvoid_Bool_DefineName[] = 1356 "avoid_bool_define"; 1357 1358 /* 1359 * File name selection pattern 1360 */ 1361 tSCC zAvoid_Bool_DefineList[] = 1362 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|"; 1363 /* 1364 * Machine/OS name selection pattern 1365 */ 1366 #define apzAvoid_Bool_DefineMachs (const char**)NULL 1367 1368 /* 1369 * content selection pattern - do fix if pattern found 1370 */ 1371 tSCC zAvoid_Bool_DefineSelect0[] = 1372 "#[ \t]*define[ \t]+bool[ \t]"; 1373 1374 /* 1375 * content bypass pattern - skip fix if pattern found 1376 */ 1377 tSCC zAvoid_Bool_DefineBypass0[] = 1378 "__cplusplus"; 1379 1380 #define AVOID_BOOL_DEFINE_TEST_CT 2 1381 static tTestDesc aAvoid_Bool_DefineTests[] = { 1382 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL }, 1383 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, }; 1384 1385 /* 1386 * Fix Command Arguments for Avoid_Bool_Define 1387 */ 1388 static const char* apzAvoid_Bool_DefinePatch[] = { 1389 "format", 1390 "#ifndef __cplusplus\n\ 1391 %0\n\ 1392 #endif", 1393 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*", 1394 (char*)NULL }; 1395 1396 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1397 * 1398 * Description of Avoid_Bool_Type fix 1399 */ 1400 tSCC zAvoid_Bool_TypeName[] = 1401 "avoid_bool_type"; 1402 1403 /* 1404 * File name selection pattern 1405 */ 1406 tSCC zAvoid_Bool_TypeList[] = 1407 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|"; 1408 /* 1409 * Machine/OS name selection pattern 1410 */ 1411 #define apzAvoid_Bool_TypeMachs (const char**)NULL 1412 1413 /* 1414 * content selection pattern - do fix if pattern found 1415 */ 1416 tSCC zAvoid_Bool_TypeSelect0[] = 1417 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;"; 1418 1419 /* 1420 * content bypass pattern - skip fix if pattern found 1421 */ 1422 tSCC zAvoid_Bool_TypeBypass0[] = 1423 "__cplusplus"; 1424 1425 #define AVOID_BOOL_TYPE_TEST_CT 2 1426 static tTestDesc aAvoid_Bool_TypeTests[] = { 1427 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL }, 1428 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, }; 1429 1430 /* 1431 * Fix Command Arguments for Avoid_Bool_Type 1432 */ 1433 static const char* apzAvoid_Bool_TypePatch[] = { 1434 "format", 1435 "#ifndef __cplusplus\n\ 1436 %0\n\ 1437 #endif", 1438 (char*)NULL }; 1439 1440 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1441 * 1442 * Description of Avoid_Wchar_T_Type fix 1443 */ 1444 tSCC zAvoid_Wchar_T_TypeName[] = 1445 "avoid_wchar_t_type"; 1446 1447 /* 1448 * File name selection pattern 1449 */ 1450 #define zAvoid_Wchar_T_TypeList (char*)NULL 1451 /* 1452 * Machine/OS name selection pattern 1453 */ 1454 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL 1455 1456 /* 1457 * content selection pattern - do fix if pattern found 1458 */ 1459 tSCC zAvoid_Wchar_T_TypeSelect0[] = 1460 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;"; 1461 1462 /* 1463 * content bypass pattern - skip fix if pattern found 1464 */ 1465 tSCC zAvoid_Wchar_T_TypeBypass0[] = 1466 "__cplusplus"; 1467 tSCC zAvoid_Wchar_T_TypeBypass1[] = 1468 "_LINUX_NLS_H"; 1469 tSCC zAvoid_Wchar_T_TypeBypass2[] = 1470 "XFree86: xc/lib/X11/Xlib\\.h"; 1471 1472 #define AVOID_WCHAR_T_TYPE_TEST_CT 4 1473 static tTestDesc aAvoid_Wchar_T_TypeTests[] = { 1474 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL }, 1475 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL }, 1476 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL }, 1477 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, }; 1478 1479 /* 1480 * Fix Command Arguments for Avoid_Wchar_T_Type 1481 */ 1482 static const char* apzAvoid_Wchar_T_TypePatch[] = { 1483 "format", 1484 "#ifndef __cplusplus\n\ 1485 %0\n\ 1486 #endif", 1487 (char*)NULL }; 1488 1489 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1490 * 1491 * Description of Bad_Struct_Term fix 1492 */ 1493 tSCC zBad_Struct_TermName[] = 1494 "bad_struct_term"; 1495 1496 /* 1497 * File name selection pattern 1498 */ 1499 tSCC zBad_Struct_TermList[] = 1500 "|curses.h|"; 1501 /* 1502 * Machine/OS name selection pattern 1503 */ 1504 #define apzBad_Struct_TermMachs (const char**)NULL 1505 1506 /* 1507 * content selection pattern - do fix if pattern found 1508 */ 1509 tSCC zBad_Struct_TermSelect0[] = 1510 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;"; 1511 1512 #define BAD_STRUCT_TERM_TEST_CT 1 1513 static tTestDesc aBad_Struct_TermTests[] = { 1514 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, }; 1515 1516 /* 1517 * Fix Command Arguments for Bad_Struct_Term 1518 */ 1519 static const char* apzBad_Struct_TermPatch[] = { 1520 "format", 1521 "struct term;", 1522 (char*)NULL }; 1523 1524 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1525 * 1526 * Description of Badquote fix 1527 */ 1528 tSCC zBadquoteName[] = 1529 "badquote"; 1530 1531 /* 1532 * File name selection pattern 1533 */ 1534 tSCC zBadquoteList[] = 1535 "|sundev/vuid_event.h|"; 1536 /* 1537 * Machine/OS name selection pattern 1538 */ 1539 #define apzBadquoteMachs (const char**)NULL 1540 1541 /* 1542 * content selection pattern - do fix if pattern found 1543 */ 1544 tSCC zBadquoteSelect0[] = 1545 "doesn't"; 1546 1547 #define BADQUOTE_TEST_CT 1 1548 static tTestDesc aBadquoteTests[] = { 1549 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, }; 1550 1551 /* 1552 * Fix Command Arguments for Badquote 1553 */ 1554 static const char* apzBadquotePatch[] = { 1555 "format", 1556 "does not", 1557 (char*)NULL }; 1558 1559 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1560 * 1561 * Description of Broken_Assert_Stdio fix 1562 */ 1563 tSCC zBroken_Assert_StdioName[] = 1564 "broken_assert_stdio"; 1565 1566 /* 1567 * File name selection pattern 1568 */ 1569 tSCC zBroken_Assert_StdioList[] = 1570 "|assert.h|"; 1571 /* 1572 * Machine/OS name selection pattern 1573 */ 1574 #define apzBroken_Assert_StdioMachs (const char**)NULL 1575 1576 /* 1577 * content selection pattern - do fix if pattern found 1578 */ 1579 tSCC zBroken_Assert_StdioSelect0[] = 1580 "stderr"; 1581 1582 /* 1583 * content bypass pattern - skip fix if pattern found 1584 */ 1585 tSCC zBroken_Assert_StdioBypass0[] = 1586 "include.*stdio\\.h"; 1587 1588 #define BROKEN_ASSERT_STDIO_TEST_CT 2 1589 static tTestDesc aBroken_Assert_StdioTests[] = { 1590 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL }, 1591 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, }; 1592 1593 /* 1594 * Fix Command Arguments for Broken_Assert_Stdio 1595 */ 1596 static const char* apzBroken_Assert_StdioPatch[] = { 1597 "wrap", 1598 "#include <stdio.h>\n", 1599 (char*)NULL }; 1600 1601 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1602 * 1603 * Description of Broken_Assert_Stdlib fix 1604 */ 1605 tSCC zBroken_Assert_StdlibName[] = 1606 "broken_assert_stdlib"; 1607 1608 /* 1609 * File name selection pattern 1610 */ 1611 tSCC zBroken_Assert_StdlibList[] = 1612 "|assert.h|"; 1613 /* 1614 * Machine/OS name selection pattern 1615 */ 1616 #define apzBroken_Assert_StdlibMachs (const char**)NULL 1617 1618 /* 1619 * content selection pattern - do fix if pattern found 1620 */ 1621 tSCC zBroken_Assert_StdlibSelect0[] = 1622 "exit *\\(|abort *\\("; 1623 1624 /* 1625 * content bypass pattern - skip fix if pattern found 1626 */ 1627 tSCC zBroken_Assert_StdlibBypass0[] = 1628 "include.*stdlib\\.h"; 1629 1630 #define BROKEN_ASSERT_STDLIB_TEST_CT 2 1631 static tTestDesc aBroken_Assert_StdlibTests[] = { 1632 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL }, 1633 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, }; 1634 1635 /* 1636 * Fix Command Arguments for Broken_Assert_Stdlib 1637 */ 1638 static const char* apzBroken_Assert_StdlibPatch[] = { 1639 "wrap", 1640 "#ifdef __cplusplus\n\ 1641 #include <stdlib.h>\n\ 1642 #endif\n", 1643 (char*)NULL }; 1644 1645 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1646 * 1647 * Description of Broken_Cabs fix 1648 */ 1649 tSCC zBroken_CabsName[] = 1650 "broken_cabs"; 1651 1652 /* 1653 * File name selection pattern 1654 */ 1655 tSCC zBroken_CabsList[] = 1656 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|"; 1657 /* 1658 * Machine/OS name selection pattern 1659 */ 1660 #define apzBroken_CabsMachs (const char**)NULL 1661 1662 /* 1663 * content selection pattern - do fix if pattern found 1664 */ 1665 tSCC zBroken_CabsSelect0[] = 1666 "^extern[ \t]+double[ \t]+cabs"; 1667 1668 #define BROKEN_CABS_TEST_CT 1 1669 static tTestDesc aBroken_CabsTests[] = { 1670 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, }; 1671 1672 /* 1673 * Fix Command Arguments for Broken_Cabs 1674 */ 1675 static const char* apzBroken_CabsPatch[] = { "sed", 1676 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//", 1677 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//", 1678 (char*)NULL }; 1679 1680 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1681 * 1682 * Description of Broken_Nan fix 1683 */ 1684 tSCC zBroken_NanName[] = 1685 "broken_nan"; 1686 1687 /* 1688 * File name selection pattern 1689 */ 1690 tSCC zBroken_NanList[] = 1691 "|architecture/ppc/math.h|architecture/i386/math.h|"; 1692 /* 1693 * Machine/OS name selection pattern 1694 */ 1695 #define apzBroken_NanMachs (const char**)NULL 1696 1697 /* 1698 * content selection pattern - do fix if pattern found 1699 */ 1700 tSCC zBroken_NanSelect0[] = 1701 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)"; 1702 1703 /* 1704 * content bypass pattern - skip fix if pattern found 1705 */ 1706 tSCC zBroken_NanBypass0[] = 1707 "powl"; 1708 1709 #define BROKEN_NAN_TEST_CT 2 1710 static tTestDesc aBroken_NanTests[] = { 1711 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL }, 1712 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, }; 1713 1714 /* 1715 * Fix Command Arguments for Broken_Nan 1716 */ 1717 static const char* apzBroken_NanPatch[] = { 1718 "format", 1719 "#if 1", 1720 (char*)NULL }; 1721 1722 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1723 * 1724 * Description of Bsd_Stdio_Attrs_Conflict fix 1725 */ 1726 tSCC zBsd_Stdio_Attrs_ConflictName[] = 1727 "bsd_stdio_attrs_conflict"; 1728 1729 /* 1730 * File name selection pattern 1731 */ 1732 tSCC zBsd_Stdio_Attrs_ConflictList[] = 1733 "|stdio.h|"; 1734 /* 1735 * Machine/OS name selection pattern 1736 */ 1737 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = { 1738 "*-*-*bsd*", 1739 "*-*-*darwin*", 1740 (const char*)NULL }; 1741 1742 /* 1743 * content selection pattern - do fix if pattern found 1744 */ 1745 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] = 1746 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$"; 1747 1748 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1 1749 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = { 1750 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, }; 1751 1752 /* 1753 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict 1754 */ 1755 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = { 1756 "format", 1757 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\ 1758 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\ 1759 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");", 1760 (char*)NULL }; 1761 1762 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1763 * 1764 * Description of Ctrl_Quotes_Def fix 1765 */ 1766 tSCC zCtrl_Quotes_DefName[] = 1767 "ctrl_quotes_def"; 1768 1769 /* 1770 * File name selection pattern 1771 */ 1772 #define zCtrl_Quotes_DefList (char*)NULL 1773 /* 1774 * Machine/OS name selection pattern 1775 */ 1776 #define apzCtrl_Quotes_DefMachs (const char**)NULL 1777 1778 /* 1779 * content selection pattern - do fix if pattern found 1780 */ 1781 tSCC zCtrl_Quotes_DefSelect0[] = 1782 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]"; 1783 1784 #define CTRL_QUOTES_DEF_TEST_CT 1 1785 static tTestDesc aCtrl_Quotes_DefTests[] = { 1786 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, }; 1787 1788 /* 1789 * Fix Command Arguments for Ctrl_Quotes_Def 1790 */ 1791 static const char* apzCtrl_Quotes_DefPatch[] = { 1792 "char_macro_def", 1793 "CTRL", 1794 (char*)NULL }; 1795 1796 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1797 * 1798 * Description of Ctrl_Quotes_Use fix 1799 */ 1800 tSCC zCtrl_Quotes_UseName[] = 1801 "ctrl_quotes_use"; 1802 1803 /* 1804 * File name selection pattern 1805 */ 1806 #define zCtrl_Quotes_UseList (char*)NULL 1807 /* 1808 * Machine/OS name selection pattern 1809 */ 1810 #define apzCtrl_Quotes_UseMachs (const char**)NULL 1811 1812 /* 1813 * content selection pattern - do fix if pattern found 1814 */ 1815 tSCC zCtrl_Quotes_UseSelect0[] = 1816 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']"; 1817 1818 #define CTRL_QUOTES_USE_TEST_CT 1 1819 static tTestDesc aCtrl_Quotes_UseTests[] = { 1820 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, }; 1821 1822 /* 1823 * Fix Command Arguments for Ctrl_Quotes_Use 1824 */ 1825 static const char* apzCtrl_Quotes_UsePatch[] = { 1826 "char_macro_use", 1827 "CTRL", 1828 (char*)NULL }; 1829 1830 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1831 * 1832 * Description of Cxx_Unready fix 1833 */ 1834 tSCC zCxx_UnreadyName[] = 1835 "cxx_unready"; 1836 1837 /* 1838 * File name selection pattern 1839 */ 1840 tSCC zCxx_UnreadyList[] = 1841 "|sys/mman.h|rpc/types.h|"; 1842 /* 1843 * Machine/OS name selection pattern 1844 */ 1845 #define apzCxx_UnreadyMachs (const char**)NULL 1846 1847 /* 1848 * content selection pattern - do fix if pattern found 1849 */ 1850 tSCC zCxx_UnreadySelect0[] = 1851 "[^#]+malloc.*;"; 1852 1853 /* 1854 * content bypass pattern - skip fix if pattern found 1855 */ 1856 tSCC zCxx_UnreadyBypass0[] = 1857 "\"C\"|__BEGIN_DECLS"; 1858 1859 #define CXX_UNREADY_TEST_CT 2 1860 static tTestDesc aCxx_UnreadyTests[] = { 1861 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, 1862 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, }; 1863 1864 /* 1865 * Fix Command Arguments for Cxx_Unready 1866 */ 1867 static const char* apzCxx_UnreadyPatch[] = { 1868 "wrap", 1869 "#ifdef __cplusplus\n\ 1870 extern \"C\" {\n\ 1871 #endif\n", 1872 "#ifdef __cplusplus\n\ 1873 }\n\ 1874 #endif\n", 1875 (char*)NULL }; 1876 1877 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1878 * 1879 * Description of Darwin_Gcc4_Breakage fix 1880 */ 1881 tSCC zDarwin_Gcc4_BreakageName[] = 1882 "darwin_gcc4_breakage"; 1883 1884 /* 1885 * File name selection pattern 1886 */ 1887 tSCC zDarwin_Gcc4_BreakageList[] = 1888 "|AvailabilityMacros.h|"; 1889 /* 1890 * Machine/OS name selection pattern 1891 */ 1892 tSCC* apzDarwin_Gcc4_BreakageMachs[] = { 1893 "*-*-darwin*", 1894 (const char*)NULL }; 1895 1896 /* 1897 * content selection pattern - do fix if pattern found 1898 */ 1899 tSCC zDarwin_Gcc4_BreakageSelect0[] = 1900 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)"; 1901 1902 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1 1903 static tTestDesc aDarwin_Gcc4_BreakageTests[] = { 1904 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; 1905 1906 /* 1907 * Fix Command Arguments for Darwin_Gcc4_Breakage 1908 */ 1909 static const char* apzDarwin_Gcc4_BreakagePatch[] = { 1910 "format", 1911 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))", 1912 (char*)NULL }; 1913 1914 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1915 * 1916 * Description of Darwin_Private_Extern fix 1917 */ 1918 tSCC zDarwin_Private_ExternName[] = 1919 "darwin_private_extern"; 1920 1921 /* 1922 * File name selection pattern 1923 */ 1924 tSCC zDarwin_Private_ExternList[] = 1925 "|mach-o/dyld.h|"; 1926 /* 1927 * Machine/OS name selection pattern 1928 */ 1929 tSCC* apzDarwin_Private_ExternMachs[] = { 1930 "*-*-darwin*", 1931 (const char*)NULL }; 1932 1933 /* 1934 * content selection pattern - do fix if pattern found 1935 */ 1936 tSCC zDarwin_Private_ExternSelect0[] = 1937 "__private_extern__ [a-z_]+ _dyld_"; 1938 1939 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1 1940 static tTestDesc aDarwin_Private_ExternTests[] = { 1941 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, }; 1942 1943 /* 1944 * Fix Command Arguments for Darwin_Private_Extern 1945 */ 1946 static const char* apzDarwin_Private_ExternPatch[] = { 1947 "format", 1948 "extern", 1949 "__private_extern__", 1950 (char*)NULL }; 1951 1952 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1953 * 1954 * Description of Dec_Intern_Asm fix 1955 */ 1956 tSCC zDec_Intern_AsmName[] = 1957 "dec_intern_asm"; 1958 1959 /* 1960 * File name selection pattern 1961 */ 1962 tSCC zDec_Intern_AsmList[] = 1963 "|c_asm.h|"; 1964 /* 1965 * Machine/OS name selection pattern 1966 */ 1967 #define apzDec_Intern_AsmMachs (const char**)NULL 1968 #define DEC_INTERN_ASM_TEST_CT 0 1969 #define aDec_Intern_AsmTests (tTestDesc*)NULL 1970 1971 /* 1972 * Fix Command Arguments for Dec_Intern_Asm 1973 */ 1974 static const char* apzDec_Intern_AsmPatch[] = { "sed", 1975 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\ 1976 #ifdef __DECC\n", 1977 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ 1978 #endif\n", 1979 (char*)NULL }; 1980 1981 /* * * * * * * * * * * * * * * * * * * * * * * * * * 1982 * 1983 * Description of Djgpp_Wchar_H fix 1984 */ 1985 tSCC zDjgpp_Wchar_HName[] = 1986 "djgpp_wchar_h"; 1987 1988 /* 1989 * File name selection pattern 1990 */ 1991 #define zDjgpp_Wchar_HList (char*)NULL 1992 /* 1993 * Machine/OS name selection pattern 1994 */ 1995 #define apzDjgpp_Wchar_HMachs (const char**)NULL 1996 1997 /* 1998 * content selection pattern - do fix if pattern found 1999 */ 2000 tSCC zDjgpp_Wchar_HSelect0[] = 2001 "__DJ_wint_t"; 2002 2003 /* 2004 * content bypass pattern - skip fix if pattern found 2005 */ 2006 tSCC zDjgpp_Wchar_HBypass0[] = 2007 "sys/djtypes.h"; 2008 2009 #define DJGPP_WCHAR_H_TEST_CT 2 2010 static tTestDesc aDjgpp_Wchar_HTests[] = { 2011 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL }, 2012 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, }; 2013 2014 /* 2015 * Fix Command Arguments for Djgpp_Wchar_H 2016 */ 2017 static const char* apzDjgpp_Wchar_HPatch[] = { 2018 "format", 2019 "%0\n\ 2020 #include <sys/djtypes.h>", 2021 "#include <stddef.h>", 2022 (char*)NULL }; 2023 2024 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2025 * 2026 * Description of Ecd_Cursor fix 2027 */ 2028 tSCC zEcd_CursorName[] = 2029 "ecd_cursor"; 2030 2031 /* 2032 * File name selection pattern 2033 */ 2034 tSCC zEcd_CursorList[] = 2035 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|"; 2036 /* 2037 * Machine/OS name selection pattern 2038 */ 2039 #define apzEcd_CursorMachs (const char**)NULL 2040 2041 /* 2042 * content selection pattern - do fix if pattern found 2043 */ 2044 tSCC zEcd_CursorSelect0[] = 2045 "ecd\\.cursor"; 2046 2047 #define ECD_CURSOR_TEST_CT 1 2048 static tTestDesc aEcd_CursorTests[] = { 2049 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, }; 2050 2051 /* 2052 * Fix Command Arguments for Ecd_Cursor 2053 */ 2054 static const char* apzEcd_CursorPatch[] = { 2055 "format", 2056 "ecd_cursor", 2057 (char*)NULL }; 2058 2059 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2060 * 2061 * Description of Exception_Structure fix 2062 */ 2063 tSCC zException_StructureName[] = 2064 "exception_structure"; 2065 2066 /* 2067 * File name selection pattern 2068 */ 2069 tSCC zException_StructureList[] = 2070 "|math.h|"; 2071 /* 2072 * Machine/OS name selection pattern 2073 */ 2074 #define apzException_StructureMachs (const char**)NULL 2075 2076 /* 2077 * content selection pattern - do fix if pattern found 2078 */ 2079 tSCC zException_StructureSelect0[] = 2080 "matherr"; 2081 2082 /* 2083 * content bypass pattern - skip fix if pattern found 2084 */ 2085 tSCC zException_StructureBypass0[] = 2086 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)"; 2087 2088 #define EXCEPTION_STRUCTURE_TEST_CT 2 2089 static tTestDesc aException_StructureTests[] = { 2090 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL }, 2091 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, }; 2092 2093 /* 2094 * Fix Command Arguments for Exception_Structure 2095 */ 2096 static const char* apzException_StructurePatch[] = { 2097 "wrap", 2098 "struct exception;\n", 2099 (char*)NULL }; 2100 2101 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2102 * 2103 * Description of Freebsd_Gcc3_Breakage fix 2104 */ 2105 tSCC zFreebsd_Gcc3_BreakageName[] = 2106 "freebsd_gcc3_breakage"; 2107 2108 /* 2109 * File name selection pattern 2110 */ 2111 tSCC zFreebsd_Gcc3_BreakageList[] = 2112 "|sys/cdefs.h|"; 2113 /* 2114 * Machine/OS name selection pattern 2115 */ 2116 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = { 2117 "*-*-freebsd*", 2118 (const char*)NULL }; 2119 2120 /* 2121 * content selection pattern - do fix if pattern found 2122 */ 2123 tSCC zFreebsd_Gcc3_BreakageSelect0[] = 2124 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$"; 2125 2126 /* 2127 * content bypass pattern - skip fix if pattern found 2128 */ 2129 tSCC zFreebsd_Gcc3_BreakageBypass0[] = 2130 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)"; 2131 2132 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2 2133 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = { 2134 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL }, 2135 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, }; 2136 2137 /* 2138 * Fix Command Arguments for Freebsd_Gcc3_Breakage 2139 */ 2140 static const char* apzFreebsd_Gcc3_BreakagePatch[] = { 2141 "format", 2142 "%0 || __GNUC__ >= 3", 2143 (char*)NULL }; 2144 2145 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2146 * 2147 * Description of Freebsd_Gcc4_Breakage fix 2148 */ 2149 tSCC zFreebsd_Gcc4_BreakageName[] = 2150 "freebsd_gcc4_breakage"; 2151 2152 /* 2153 * File name selection pattern 2154 */ 2155 tSCC zFreebsd_Gcc4_BreakageList[] = 2156 "|sys/cdefs.h|"; 2157 /* 2158 * Machine/OS name selection pattern 2159 */ 2160 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = { 2161 "*-*-freebsd*", 2162 (const char*)NULL }; 2163 2164 /* 2165 * content selection pattern - do fix if pattern found 2166 */ 2167 tSCC zFreebsd_Gcc4_BreakageSelect0[] = 2168 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$"; 2169 2170 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1 2171 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = { 2172 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; 2173 2174 /* 2175 * Fix Command Arguments for Freebsd_Gcc4_Breakage 2176 */ 2177 static const char* apzFreebsd_Gcc4_BreakagePatch[] = { 2178 "format", 2179 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3", 2180 (char*)NULL }; 2181 2182 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2183 * 2184 * Description of Glibc_Mutex_Init fix 2185 */ 2186 tSCC zGlibc_Mutex_InitName[] = 2187 "glibc_mutex_init"; 2188 2189 /* 2190 * File name selection pattern 2191 */ 2192 tSCC zGlibc_Mutex_InitList[] = 2193 "|pthread.h|"; 2194 /* 2195 * Machine/OS name selection pattern 2196 */ 2197 #define apzGlibc_Mutex_InitMachs (const char**)NULL 2198 2199 /* 2200 * content selection pattern - do fix if pattern found 2201 */ 2202 tSCC zGlibc_Mutex_InitSelect0[] = 2203 "\\{ *\\{ *0, *\\} *\\}"; 2204 2205 #define GLIBC_MUTEX_INIT_TEST_CT 1 2206 static tTestDesc aGlibc_Mutex_InitTests[] = { 2207 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, }; 2208 2209 /* 2210 * Fix Command Arguments for Glibc_Mutex_Init 2211 */ 2212 static const char* apzGlibc_Mutex_InitPatch[] = { "sed", 2213 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/", 2214 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/", 2215 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/", 2216 "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/", 2217 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/", 2218 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/", 2219 (char*)NULL }; 2220 2221 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2222 * 2223 * Description of Gnu_Types fix 2224 */ 2225 tSCC zGnu_TypesName[] = 2226 "gnu_types"; 2227 2228 /* 2229 * File name selection pattern 2230 */ 2231 tSCC zGnu_TypesList[] = 2232 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|"; 2233 /* 2234 * Machine/OS name selection pattern 2235 */ 2236 tSCC* apzGnu_TypesMachs[] = { 2237 "*-*-solaris2.1[0-9]*", 2238 (const char*)NULL }; 2239 2240 /* 2241 * content selection pattern - do fix if pattern found 2242 */ 2243 tSCC zGnu_TypesSelect0[] = 2244 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;"; 2245 2246 /* 2247 * content bypass pattern - skip fix if pattern found 2248 */ 2249 tSCC zGnu_TypesBypass0[] = 2250 "_GCC_(PTRDIFF|SIZE|WCHAR)_T"; 2251 2252 #define GNU_TYPES_TEST_CT 2 2253 static tTestDesc aGnu_TypesTests[] = { 2254 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL }, 2255 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, }; 2256 2257 /* 2258 * Fix Command Arguments for Gnu_Types 2259 */ 2260 static const char* apzGnu_TypesPatch[] = { 2261 "gnu_type", 2262 (char*)NULL }; 2263 2264 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2265 * 2266 * Description of Hp_Inline fix 2267 */ 2268 tSCC zHp_InlineName[] = 2269 "hp_inline"; 2270 2271 /* 2272 * File name selection pattern 2273 */ 2274 tSCC zHp_InlineList[] = 2275 "|sys/spinlock.h|machine/machparam.h|"; 2276 /* 2277 * Machine/OS name selection pattern 2278 */ 2279 #define apzHp_InlineMachs (const char**)NULL 2280 2281 /* 2282 * content selection pattern - do fix if pattern found 2283 */ 2284 tSCC zHp_InlineSelect0[] = 2285 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/"; 2286 2287 #define HP_INLINE_TEST_CT 1 2288 static tTestDesc aHp_InlineTests[] = { 2289 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, }; 2290 2291 /* 2292 * Fix Command Arguments for Hp_Inline 2293 */ 2294 static const char* apzHp_InlinePatch[] = { 2295 "format", 2296 "%1<machine/%2.h>", 2297 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"", 2298 (char*)NULL }; 2299 2300 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2301 * 2302 * Description of Hp_Sysfile fix 2303 */ 2304 tSCC zHp_SysfileName[] = 2305 "hp_sysfile"; 2306 2307 /* 2308 * File name selection pattern 2309 */ 2310 tSCC zHp_SysfileList[] = 2311 "|sys/file.h|"; 2312 /* 2313 * Machine/OS name selection pattern 2314 */ 2315 #define apzHp_SysfileMachs (const char**)NULL 2316 2317 /* 2318 * content selection pattern - do fix if pattern found 2319 */ 2320 tSCC zHp_SysfileSelect0[] = 2321 "HPUX_SOURCE"; 2322 2323 #define HP_SYSFILE_TEST_CT 1 2324 static tTestDesc aHp_SysfileTests[] = { 2325 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, }; 2326 2327 /* 2328 * Fix Command Arguments for Hp_Sysfile 2329 */ 2330 static const char* apzHp_SysfilePatch[] = { 2331 "format", 2332 "(struct file *, ...)", 2333 "\\(\\.\\.\\.\\)", 2334 (char*)NULL }; 2335 2336 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2337 * 2338 * Description of Hpux10_Cpp_Pow_Inline fix 2339 */ 2340 tSCC zHpux10_Cpp_Pow_InlineName[] = 2341 "hpux10_cpp_pow_inline"; 2342 2343 /* 2344 * File name selection pattern 2345 */ 2346 tSCC zHpux10_Cpp_Pow_InlineList[] = 2347 "|fixinc-test-limits.h|math.h|"; 2348 /* 2349 * Machine/OS name selection pattern 2350 */ 2351 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL 2352 2353 /* 2354 * content selection pattern - do fix if pattern found 2355 */ 2356 tSCC zHpux10_Cpp_Pow_InlineSelect0[] = 2357 "^# +ifdef +__cplusplus\n\ 2358 +\\}\n\ 2359 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\ 2360 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\ 2361 +\\}\n\ 2362 +extern +\"C\" +\\{\n\ 2363 #else\n\ 2364 # +endif"; 2365 2366 #define HPUX10_CPP_POW_INLINE_TEST_CT 1 2367 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = { 2368 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; 2369 2370 /* 2371 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline 2372 */ 2373 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = { 2374 "format", 2375 "", 2376 (char*)NULL }; 2377 2378 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2379 * 2380 * Description of Hpux11_Cpp_Pow_Inline fix 2381 */ 2382 tSCC zHpux11_Cpp_Pow_InlineName[] = 2383 "hpux11_cpp_pow_inline"; 2384 2385 /* 2386 * File name selection pattern 2387 */ 2388 tSCC zHpux11_Cpp_Pow_InlineList[] = 2389 "|math.h|"; 2390 /* 2391 * Machine/OS name selection pattern 2392 */ 2393 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL 2394 2395 /* 2396 * content selection pattern - do fix if pattern found 2397 */ 2398 tSCC zHpux11_Cpp_Pow_InlineSelect0[] = 2399 " +inline double pow\\(double d,int expon\\) \\{\n\ 2400 +return pow\\(d, \\(double\\)expon\\);\n\ 2401 +\\}\n"; 2402 2403 #define HPUX11_CPP_POW_INLINE_TEST_CT 1 2404 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = { 2405 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; 2406 2407 /* 2408 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline 2409 */ 2410 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = { 2411 "format", 2412 "", 2413 (char*)NULL }; 2414 2415 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2416 * 2417 * Description of Hpux10_Ctype_Declarations1 fix 2418 */ 2419 tSCC zHpux10_Ctype_Declarations1Name[] = 2420 "hpux10_ctype_declarations1"; 2421 2422 /* 2423 * File name selection pattern 2424 */ 2425 tSCC zHpux10_Ctype_Declarations1List[] = 2426 "|ctype.h|"; 2427 /* 2428 * Machine/OS name selection pattern 2429 */ 2430 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL 2431 2432 /* 2433 * content selection pattern - do fix if pattern found 2434 */ 2435 tSCC zHpux10_Ctype_Declarations1Select0[] = 2436 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)"; 2437 2438 /* 2439 * content bypass pattern - skip fix if pattern found 2440 */ 2441 tSCC zHpux10_Ctype_Declarations1Bypass0[] = 2442 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\("; 2443 2444 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2 2445 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = { 2446 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL }, 2447 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, }; 2448 2449 /* 2450 * Fix Command Arguments for Hpux10_Ctype_Declarations1 2451 */ 2452 static const char* apzHpux10_Ctype_Declarations1Patch[] = { 2453 "format", 2454 "#ifdef _PROTOTYPES\n\ 2455 extern int __tolower(int);\n\ 2456 extern int __toupper(int);\n\ 2457 #else /* NOT _PROTOTYPES */\n\ 2458 extern int __tolower();\n\ 2459 extern int __toupper();\n\ 2460 #endif /* _PROTOTYPES */\n\n\ 2461 %0\n", 2462 (char*)NULL }; 2463 2464 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2465 * 2466 * Description of Hpux10_Ctype_Declarations2 fix 2467 */ 2468 tSCC zHpux10_Ctype_Declarations2Name[] = 2469 "hpux10_ctype_declarations2"; 2470 2471 /* 2472 * File name selection pattern 2473 */ 2474 tSCC zHpux10_Ctype_Declarations2List[] = 2475 "|ctype.h|"; 2476 /* 2477 * Machine/OS name selection pattern 2478 */ 2479 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL 2480 2481 /* 2482 * content selection pattern - do fix if pattern found 2483 */ 2484 tSCC zHpux10_Ctype_Declarations2Select0[] = 2485 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)"; 2486 2487 /* 2488 * content bypass pattern - skip fix if pattern found 2489 */ 2490 tSCC zHpux10_Ctype_Declarations2Bypass0[] = 2491 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\("; 2492 2493 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2 2494 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = { 2495 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL }, 2496 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, }; 2497 2498 /* 2499 * Fix Command Arguments for Hpux10_Ctype_Declarations2 2500 */ 2501 static const char* apzHpux10_Ctype_Declarations2Patch[] = { 2502 "format", 2503 "%0\n\n\ 2504 #ifdef _PROTOTYPES\n\ 2505 extern int _isalnum(int);\n\ 2506 extern int _isalpha(int);\n\ 2507 extern int _iscntrl(int);\n\ 2508 extern int _isdigit(int);\n\ 2509 extern int _isgraph(int);\n\ 2510 extern int _islower(int);\n\ 2511 extern int _isprint(int);\n\ 2512 extern int _ispunct(int);\n\ 2513 extern int _isspace(int);\n\ 2514 extern int _isupper(int);\n\ 2515 extern int _isxdigit(int);\n\ 2516 # else /* not _PROTOTYPES */\n\ 2517 extern int _isalnum();\n\ 2518 extern int _isalpha();\n\ 2519 extern int _iscntrl();\n\ 2520 extern int _isdigit();\n\ 2521 extern int _isgraph();\n\ 2522 extern int _islower();\n\ 2523 extern int _isprint();\n\ 2524 extern int _ispunct();\n\ 2525 extern int _isspace();\n\ 2526 extern int _isupper();\n\ 2527 extern int _isxdigit();\n\ 2528 #endif /* _PROTOTYPES */\n", 2529 (char*)NULL }; 2530 2531 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2532 * 2533 * Description of Hpux10_Stdio_Declarations fix 2534 */ 2535 tSCC zHpux10_Stdio_DeclarationsName[] = 2536 "hpux10_stdio_declarations"; 2537 2538 /* 2539 * File name selection pattern 2540 */ 2541 tSCC zHpux10_Stdio_DeclarationsList[] = 2542 "|stdio.h|"; 2543 /* 2544 * Machine/OS name selection pattern 2545 */ 2546 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL 2547 2548 /* 2549 * content selection pattern - do fix if pattern found 2550 */ 2551 tSCC zHpux10_Stdio_DeclarationsSelect0[] = 2552 "^#[ \t]*define _iob[ \t]*__iob"; 2553 2554 /* 2555 * content bypass pattern - skip fix if pattern found 2556 */ 2557 tSCC zHpux10_Stdio_DeclarationsBypass0[] = 2558 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\("; 2559 2560 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2 2561 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = { 2562 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL }, 2563 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, }; 2564 2565 /* 2566 * Fix Command Arguments for Hpux10_Stdio_Declarations 2567 */ 2568 static const char* apzHpux10_Stdio_DeclarationsPatch[] = { 2569 "format", 2570 "%0\n\n\ 2571 # if defined(__STDC__) || defined(__cplusplus)\n\ 2572 extern int snprintf(char *, size_t, const char *, ...);\n\ 2573 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\ 2574 # else /* not __STDC__) || __cplusplus */\n\ 2575 extern int snprintf();\n\ 2576 extern int vsnprintf();\n\ 2577 # endif /* __STDC__) || __cplusplus */\n", 2578 (char*)NULL }; 2579 2580 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2581 * 2582 * Description of Hpux11_Abs fix 2583 */ 2584 tSCC zHpux11_AbsName[] = 2585 "hpux11_abs"; 2586 2587 /* 2588 * File name selection pattern 2589 */ 2590 tSCC zHpux11_AbsList[] = 2591 "|stdlib.h|"; 2592 /* 2593 * Machine/OS name selection pattern 2594 */ 2595 tSCC* apzHpux11_AbsMachs[] = { 2596 "ia64-hp-hpux11*", 2597 (const char*)NULL }; 2598 2599 /* 2600 * content selection pattern - do fix if pattern found 2601 */ 2602 tSCC zHpux11_AbsSelect0[] = 2603 "ifndef _MATH_INCLUDED"; 2604 2605 #define HPUX11_ABS_TEST_CT 1 2606 static tTestDesc aHpux11_AbsTests[] = { 2607 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, }; 2608 2609 /* 2610 * Fix Command Arguments for Hpux11_Abs 2611 */ 2612 static const char* apzHpux11_AbsPatch[] = { 2613 "format", 2614 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)", 2615 (char*)NULL }; 2616 2617 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2618 * 2619 * Description of Hpux11_Fabsf fix 2620 */ 2621 tSCC zHpux11_FabsfName[] = 2622 "hpux11_fabsf"; 2623 2624 /* 2625 * File name selection pattern 2626 */ 2627 tSCC zHpux11_FabsfList[] = 2628 "|math.h|"; 2629 /* 2630 * Machine/OS name selection pattern 2631 */ 2632 #define apzHpux11_FabsfMachs (const char**)NULL 2633 2634 /* 2635 * content selection pattern - do fix if pattern found 2636 */ 2637 tSCC zHpux11_FabsfSelect0[] = 2638 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*"; 2639 2640 /* 2641 * content bypass pattern - skip fix if pattern found 2642 */ 2643 tSCC zHpux11_FabsfBypass0[] = 2644 "__cplusplus"; 2645 2646 #define HPUX11_FABSF_TEST_CT 2 2647 static tTestDesc aHpux11_FabsfTests[] = { 2648 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL }, 2649 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, }; 2650 2651 /* 2652 * Fix Command Arguments for Hpux11_Fabsf 2653 */ 2654 static const char* apzHpux11_FabsfPatch[] = { 2655 "format", 2656 "#ifndef __cplusplus\n\ 2657 %0\n\ 2658 #endif", 2659 (char*)NULL }; 2660 2661 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2662 * 2663 * Description of Hpux11_Size_T fix 2664 */ 2665 tSCC zHpux11_Size_TName[] = 2666 "hpux11_size_t"; 2667 2668 /* 2669 * File name selection pattern 2670 */ 2671 #define zHpux11_Size_TList (char*)NULL 2672 /* 2673 * Machine/OS name selection pattern 2674 */ 2675 tSCC* apzHpux11_Size_TMachs[] = { 2676 "*-hp-hpux11*", 2677 (const char*)NULL }; 2678 2679 /* 2680 * content selection pattern - do fix if pattern found 2681 */ 2682 tSCC zHpux11_Size_TSelect0[] = 2683 "__size_t"; 2684 2685 #define HPUX11_SIZE_T_TEST_CT 1 2686 static tTestDesc aHpux11_Size_TTests[] = { 2687 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, }; 2688 2689 /* 2690 * Fix Command Arguments for Hpux11_Size_T 2691 */ 2692 static const char* apzHpux11_Size_TPatch[] = { 2693 "format", 2694 "_hpux_size_t", 2695 (char*)NULL }; 2696 2697 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2698 * 2699 * Description of Hpux11_Snprintf fix 2700 */ 2701 tSCC zHpux11_SnprintfName[] = 2702 "hpux11_snprintf"; 2703 2704 /* 2705 * File name selection pattern 2706 */ 2707 tSCC zHpux11_SnprintfList[] = 2708 "|stdio.h|"; 2709 /* 2710 * Machine/OS name selection pattern 2711 */ 2712 #define apzHpux11_SnprintfMachs (const char**)NULL 2713 2714 /* 2715 * content selection pattern - do fix if pattern found 2716 */ 2717 tSCC zHpux11_SnprintfSelect0[] = 2718 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)"; 2719 2720 #define HPUX11_SNPRINTF_TEST_CT 1 2721 static tTestDesc aHpux11_SnprintfTests[] = { 2722 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, }; 2723 2724 /* 2725 * Fix Command Arguments for Hpux11_Snprintf 2726 */ 2727 static const char* apzHpux11_SnprintfPatch[] = { 2728 "format", 2729 "%1 const %3", 2730 (char*)NULL }; 2731 2732 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2733 * 2734 * Description of Hpux11_Uint32_C fix 2735 */ 2736 tSCC zHpux11_Uint32_CName[] = 2737 "hpux11_uint32_c"; 2738 2739 /* 2740 * File name selection pattern 2741 */ 2742 tSCC zHpux11_Uint32_CList[] = 2743 "|inttypes.h|"; 2744 /* 2745 * Machine/OS name selection pattern 2746 */ 2747 #define apzHpux11_Uint32_CMachs (const char**)NULL 2748 2749 /* 2750 * content selection pattern - do fix if pattern found 2751 */ 2752 tSCC zHpux11_Uint32_CSelect0[] = 2753 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)"; 2754 2755 #define HPUX11_UINT32_C_TEST_CT 1 2756 static tTestDesc aHpux11_Uint32_CTests[] = { 2757 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, }; 2758 2759 /* 2760 * Fix Command Arguments for Hpux11_Uint32_C 2761 */ 2762 static const char* apzHpux11_Uint32_CPatch[] = { 2763 "format", 2764 "#define UINT32_C(__c) __CONCAT__(__c,ul)", 2765 (char*)NULL }; 2766 2767 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2768 * 2769 * Description of Hpux11_Vsnprintf fix 2770 */ 2771 tSCC zHpux11_VsnprintfName[] = 2772 "hpux11_vsnprintf"; 2773 2774 /* 2775 * File name selection pattern 2776 */ 2777 tSCC zHpux11_VsnprintfList[] = 2778 "|stdio.h|"; 2779 /* 2780 * Machine/OS name selection pattern 2781 */ 2782 #define apzHpux11_VsnprintfMachs (const char**)NULL 2783 2784 /* 2785 * content selection pattern - do fix if pattern found 2786 */ 2787 tSCC zHpux11_VsnprintfSelect0[] = 2788 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);"; 2789 2790 #define HPUX11_VSNPRINTF_TEST_CT 1 2791 static tTestDesc aHpux11_VsnprintfTests[] = { 2792 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, }; 2793 2794 /* 2795 * Fix Command Arguments for Hpux11_Vsnprintf 2796 */ 2797 static const char* apzHpux11_VsnprintfPatch[] = { 2798 "format", 2799 "%1 __va_list);", 2800 (char*)NULL }; 2801 2802 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2803 * 2804 * Description of Hpux8_Bogus_Inlines fix 2805 */ 2806 tSCC zHpux8_Bogus_InlinesName[] = 2807 "hpux8_bogus_inlines"; 2808 2809 /* 2810 * File name selection pattern 2811 */ 2812 tSCC zHpux8_Bogus_InlinesList[] = 2813 "|math.h|"; 2814 /* 2815 * Machine/OS name selection pattern 2816 */ 2817 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL 2818 2819 /* 2820 * content selection pattern - do fix if pattern found 2821 */ 2822 tSCC zHpux8_Bogus_InlinesSelect0[] = 2823 "inline"; 2824 2825 /* 2826 * content bypass pattern - skip fix if pattern found 2827 */ 2828 tSCC zHpux8_Bogus_InlinesBypass0[] = 2829 "__GNUG__"; 2830 2831 #define HPUX8_BOGUS_INLINES_TEST_CT 2 2832 static tTestDesc aHpux8_Bogus_InlinesTests[] = { 2833 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL }, 2834 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; 2835 2836 /* 2837 * Fix Command Arguments for Hpux8_Bogus_Inlines 2838 */ 2839 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed", 2840 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@", 2841 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@", 2842 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@", 2843 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@", 2844 (char*)NULL }; 2845 2846 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2847 * 2848 * Description of Hpux_Ctype_Macros fix 2849 */ 2850 tSCC zHpux_Ctype_MacrosName[] = 2851 "hpux_ctype_macros"; 2852 2853 /* 2854 * File name selection pattern 2855 */ 2856 tSCC zHpux_Ctype_MacrosList[] = 2857 "|ctype.h|"; 2858 /* 2859 * Machine/OS name selection pattern 2860 */ 2861 #define apzHpux_Ctype_MacrosMachs (const char**)NULL 2862 2863 /* 2864 * content selection pattern - do fix if pattern found 2865 */ 2866 tSCC zHpux_Ctype_MacrosSelect0[] = 2867 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)"; 2868 2869 #define HPUX_CTYPE_MACROS_TEST_CT 1 2870 static tTestDesc aHpux_Ctype_MacrosTests[] = { 2871 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, }; 2872 2873 /* 2874 * Fix Command Arguments for Hpux_Ctype_Macros 2875 */ 2876 static const char* apzHpux_Ctype_MacrosPatch[] = { 2877 "format", 2878 "%1(int)%3", 2879 (char*)NULL }; 2880 2881 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2882 * 2883 * Description of Hpux_Htonl fix 2884 */ 2885 tSCC zHpux_HtonlName[] = 2886 "hpux_htonl"; 2887 2888 /* 2889 * File name selection pattern 2890 */ 2891 tSCC zHpux_HtonlList[] = 2892 "|netinet/in.h|"; 2893 /* 2894 * Machine/OS name selection pattern 2895 */ 2896 #define apzHpux_HtonlMachs (const char**)NULL 2897 2898 /* 2899 * content selection pattern - do fix if pattern found 2900 */ 2901 tSCC zHpux_HtonlSelect0[] = 2902 "#ifndef _XOPEN_SOURCE_EXTENDED\n\ 2903 (/\\*\n\ 2904 \\* Macros for number representation conversion\\.\n\ 2905 \\*/\n\ 2906 #ifndef ntohl)"; 2907 2908 #define HPUX_HTONL_TEST_CT 1 2909 static tTestDesc aHpux_HtonlTests[] = { 2910 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, }; 2911 2912 /* 2913 * Fix Command Arguments for Hpux_Htonl 2914 */ 2915 static const char* apzHpux_HtonlPatch[] = { 2916 "format", 2917 "#if 1\n\ 2918 %1", 2919 (char*)NULL }; 2920 2921 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2922 * 2923 * Description of Hpux_Long_Double fix 2924 */ 2925 tSCC zHpux_Long_DoubleName[] = 2926 "hpux_long_double"; 2927 2928 /* 2929 * File name selection pattern 2930 */ 2931 tSCC zHpux_Long_DoubleList[] = 2932 "|stdlib.h|"; 2933 /* 2934 * Machine/OS name selection pattern 2935 */ 2936 #define apzHpux_Long_DoubleMachs (const char**)NULL 2937 2938 /* 2939 * content selection pattern - do fix if pattern found 2940 */ 2941 tSCC zHpux_Long_DoubleSelect0[] = 2942 "extern[ \t]long_double[ \t]strtold"; 2943 2944 /* 2945 * content bypass pattern - skip fix if pattern found 2946 */ 2947 tSCC zHpux_Long_DoubleBypass0[] = 2948 "long_double_t"; 2949 2950 #define HPUX_LONG_DOUBLE_TEST_CT 2 2951 static tTestDesc aHpux_Long_DoubleTests[] = { 2952 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL }, 2953 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, }; 2954 2955 /* 2956 * Fix Command Arguments for Hpux_Long_Double 2957 */ 2958 static const char* apzHpux_Long_DoublePatch[] = { "sed", 2959 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D", 2960 "-e", "s/long_double/long double/g", 2961 (char*)NULL }; 2962 2963 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2964 * 2965 * Description of Hpux_Systime fix 2966 */ 2967 tSCC zHpux_SystimeName[] = 2968 "hpux_systime"; 2969 2970 /* 2971 * File name selection pattern 2972 */ 2973 tSCC zHpux_SystimeList[] = 2974 "|sys/time.h|"; 2975 /* 2976 * Machine/OS name selection pattern 2977 */ 2978 #define apzHpux_SystimeMachs (const char**)NULL 2979 2980 /* 2981 * content selection pattern - do fix if pattern found 2982 */ 2983 tSCC zHpux_SystimeSelect0[] = 2984 "^extern struct sigevent;"; 2985 2986 #define HPUX_SYSTIME_TEST_CT 1 2987 static tTestDesc aHpux_SystimeTests[] = { 2988 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, }; 2989 2990 /* 2991 * Fix Command Arguments for Hpux_Systime 2992 */ 2993 static const char* apzHpux_SystimePatch[] = { 2994 "format", 2995 "struct sigevent;", 2996 (char*)NULL }; 2997 2998 /* * * * * * * * * * * * * * * * * * * * * * * * * * 2999 * 3000 * Description of Hpux_Spu_Info fix 3001 */ 3002 tSCC zHpux_Spu_InfoName[] = 3003 "hpux_spu_info"; 3004 3005 /* 3006 * File name selection pattern 3007 */ 3008 tSCC zHpux_Spu_InfoList[] = 3009 "|ia64/sys/getppdp.h|"; 3010 /* 3011 * Machine/OS name selection pattern 3012 */ 3013 tSCC* apzHpux_Spu_InfoMachs[] = { 3014 "*-hp-hpux*", 3015 (const char*)NULL }; 3016 3017 /* 3018 * content selection pattern - do fix if pattern found 3019 */ 3020 tSCC zHpux_Spu_InfoSelect0[] = 3021 "^.*extern.*spu_info.*"; 3022 3023 #define HPUX_SPU_INFO_TEST_CT 1 3024 static tTestDesc aHpux_Spu_InfoTests[] = { 3025 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, }; 3026 3027 /* 3028 * Fix Command Arguments for Hpux_Spu_Info 3029 */ 3030 static const char* apzHpux_Spu_InfoPatch[] = { 3031 "format", 3032 "#ifdef _KERNEL\n\ 3033 %0\n\ 3034 #endif", 3035 (char*)NULL }; 3036 3037 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3038 * 3039 * Description of Hpux11_Extern_Sendfile fix 3040 */ 3041 tSCC zHpux11_Extern_SendfileName[] = 3042 "hpux11_extern_sendfile"; 3043 3044 /* 3045 * File name selection pattern 3046 */ 3047 tSCC zHpux11_Extern_SendfileList[] = 3048 "|sys/socket.h|"; 3049 /* 3050 * Machine/OS name selection pattern 3051 */ 3052 tSCC* apzHpux11_Extern_SendfileMachs[] = { 3053 "*-hp-hpux11.[12]*", 3054 (const char*)NULL }; 3055 3056 /* 3057 * content selection pattern - do fix if pattern found 3058 */ 3059 tSCC zHpux11_Extern_SendfileSelect0[] = 3060 "^[ \t]*extern sbsize_t sendfile.*\n\ 3061 .*, int\\)\\);\n"; 3062 3063 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1 3064 static tTestDesc aHpux11_Extern_SendfileTests[] = { 3065 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, }; 3066 3067 /* 3068 * Fix Command Arguments for Hpux11_Extern_Sendfile 3069 */ 3070 static const char* apzHpux11_Extern_SendfilePatch[] = { 3071 "format", 3072 "#ifndef _APP32_64BIT_OFF_T\n\ 3073 %0#endif\n", 3074 (char*)NULL }; 3075 3076 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3077 * 3078 * Description of Hpux11_Extern_Sendpath fix 3079 */ 3080 tSCC zHpux11_Extern_SendpathName[] = 3081 "hpux11_extern_sendpath"; 3082 3083 /* 3084 * File name selection pattern 3085 */ 3086 tSCC zHpux11_Extern_SendpathList[] = 3087 "|sys/socket.h|"; 3088 /* 3089 * Machine/OS name selection pattern 3090 */ 3091 tSCC* apzHpux11_Extern_SendpathMachs[] = { 3092 "*-hp-hpux11.[12]*", 3093 (const char*)NULL }; 3094 3095 /* 3096 * content selection pattern - do fix if pattern found 3097 */ 3098 tSCC zHpux11_Extern_SendpathSelect0[] = 3099 "^[ \t]*extern sbsize_t sendpath.*\n\ 3100 .*, int\\)\\);\n"; 3101 3102 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1 3103 static tTestDesc aHpux11_Extern_SendpathTests[] = { 3104 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, }; 3105 3106 /* 3107 * Fix Command Arguments for Hpux11_Extern_Sendpath 3108 */ 3109 static const char* apzHpux11_Extern_SendpathPatch[] = { 3110 "format", 3111 "#ifndef _APP32_64BIT_OFF_T\n\ 3112 %0#endif\n", 3113 (char*)NULL }; 3114 3115 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3116 * 3117 * Description of Hpux_Extern_Errno fix 3118 */ 3119 tSCC zHpux_Extern_ErrnoName[] = 3120 "hpux_extern_errno"; 3121 3122 /* 3123 * File name selection pattern 3124 */ 3125 tSCC zHpux_Extern_ErrnoList[] = 3126 "|errno.h|"; 3127 /* 3128 * Machine/OS name selection pattern 3129 */ 3130 tSCC* apzHpux_Extern_ErrnoMachs[] = { 3131 "*-hp-hpux10.*", 3132 "*-hp-hpux11.[0-2]*", 3133 (const char*)NULL }; 3134 3135 /* 3136 * content selection pattern - do fix if pattern found 3137 */ 3138 tSCC zHpux_Extern_ErrnoSelect0[] = 3139 "^[ \t]*extern int errno;$"; 3140 3141 #define HPUX_EXTERN_ERRNO_TEST_CT 1 3142 static tTestDesc aHpux_Extern_ErrnoTests[] = { 3143 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, }; 3144 3145 /* 3146 * Fix Command Arguments for Hpux_Extern_Errno 3147 */ 3148 static const char* apzHpux_Extern_ErrnoPatch[] = { 3149 "format", 3150 "#ifdef __cplusplus\n\ 3151 extern \"C\" {\n\ 3152 #endif\n\ 3153 %0\n\ 3154 #ifdef __cplusplus\n\ 3155 }\n\ 3156 #endif", 3157 (char*)NULL }; 3158 3159 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3160 * 3161 * Description of Hpux_Pthread_Initializers fix 3162 */ 3163 tSCC zHpux_Pthread_InitializersName[] = 3164 "hpux_pthread_initializers"; 3165 3166 /* 3167 * File name selection pattern 3168 */ 3169 tSCC zHpux_Pthread_InitializersList[] = 3170 "|sys/pthread.h|"; 3171 /* 3172 * Machine/OS name selection pattern 3173 */ 3174 tSCC* apzHpux_Pthread_InitializersMachs[] = { 3175 "*-hp-hpux11.[0-3]*", 3176 (const char*)NULL }; 3177 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0 3178 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL 3179 3180 /* 3181 * Fix Command Arguments for Hpux_Pthread_Initializers 3182 */ 3183 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed", 3184 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@", 3185 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@", 3186 "-e", "/^[ \t]*0$/d", 3187 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@", 3188 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@", 3189 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@", 3190 "-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\\\\@", 3191 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@", 3192 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@", 3193 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@", 3194 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@", 3195 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@", 3196 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@", 3197 (char*)NULL }; 3198 3199 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3200 * 3201 * Description of Huge_Val_Hex fix 3202 */ 3203 tSCC zHuge_Val_HexName[] = 3204 "huge_val_hex"; 3205 3206 /* 3207 * File name selection pattern 3208 */ 3209 tSCC zHuge_Val_HexList[] = 3210 "|bits/huge_val.h|"; 3211 /* 3212 * Machine/OS name selection pattern 3213 */ 3214 #define apzHuge_Val_HexMachs (const char**)NULL 3215 3216 /* 3217 * content selection pattern - do fix if pattern found 3218 */ 3219 tSCC zHuge_Val_HexSelect0[] = 3220 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*"; 3221 3222 /* 3223 * content bypass pattern - skip fix if pattern found 3224 */ 3225 tSCC zHuge_Val_HexBypass0[] = 3226 "__builtin_huge_val"; 3227 3228 #define HUGE_VAL_HEX_TEST_CT 2 3229 static tTestDesc aHuge_Val_HexTests[] = { 3230 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL }, 3231 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, }; 3232 3233 /* 3234 * Fix Command Arguments for Huge_Val_Hex 3235 */ 3236 static const char* apzHuge_Val_HexPatch[] = { 3237 "format", 3238 "#define HUGE_VAL (__builtin_huge_val())\n", 3239 (char*)NULL }; 3240 3241 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3242 * 3243 * Description of Huge_Valf_Hex fix 3244 */ 3245 tSCC zHuge_Valf_HexName[] = 3246 "huge_valf_hex"; 3247 3248 /* 3249 * File name selection pattern 3250 */ 3251 tSCC zHuge_Valf_HexList[] = 3252 "|bits/huge_val.h|"; 3253 /* 3254 * Machine/OS name selection pattern 3255 */ 3256 #define apzHuge_Valf_HexMachs (const char**)NULL 3257 3258 /* 3259 * content selection pattern - do fix if pattern found 3260 */ 3261 tSCC zHuge_Valf_HexSelect0[] = 3262 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*"; 3263 3264 /* 3265 * content bypass pattern - skip fix if pattern found 3266 */ 3267 tSCC zHuge_Valf_HexBypass0[] = 3268 "__builtin_huge_valf"; 3269 3270 #define HUGE_VALF_HEX_TEST_CT 2 3271 static tTestDesc aHuge_Valf_HexTests[] = { 3272 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL }, 3273 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, }; 3274 3275 /* 3276 * Fix Command Arguments for Huge_Valf_Hex 3277 */ 3278 static const char* apzHuge_Valf_HexPatch[] = { 3279 "format", 3280 "#define HUGE_VALF (__builtin_huge_valf())\n", 3281 (char*)NULL }; 3282 3283 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3284 * 3285 * Description of Huge_Vall_Hex fix 3286 */ 3287 tSCC zHuge_Vall_HexName[] = 3288 "huge_vall_hex"; 3289 3290 /* 3291 * File name selection pattern 3292 */ 3293 tSCC zHuge_Vall_HexList[] = 3294 "|bits/huge_val.h|"; 3295 /* 3296 * Machine/OS name selection pattern 3297 */ 3298 #define apzHuge_Vall_HexMachs (const char**)NULL 3299 3300 /* 3301 * content selection pattern - do fix if pattern found 3302 */ 3303 tSCC zHuge_Vall_HexSelect0[] = 3304 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*"; 3305 3306 /* 3307 * content bypass pattern - skip fix if pattern found 3308 */ 3309 tSCC zHuge_Vall_HexBypass0[] = 3310 "__builtin_huge_vall"; 3311 3312 #define HUGE_VALL_HEX_TEST_CT 2 3313 static tTestDesc aHuge_Vall_HexTests[] = { 3314 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL }, 3315 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, }; 3316 3317 /* 3318 * Fix Command Arguments for Huge_Vall_Hex 3319 */ 3320 static const char* apzHuge_Vall_HexPatch[] = { 3321 "format", 3322 "#define HUGE_VALL (__builtin_huge_vall())\n", 3323 (char*)NULL }; 3324 3325 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3326 * 3327 * Description of Int_Abort_Free_And_Exit fix 3328 */ 3329 tSCC zInt_Abort_Free_And_ExitName[] = 3330 "int_abort_free_and_exit"; 3331 3332 /* 3333 * File name selection pattern 3334 */ 3335 tSCC zInt_Abort_Free_And_ExitList[] = 3336 "|stdlib.h|"; 3337 /* 3338 * Machine/OS name selection pattern 3339 */ 3340 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL 3341 3342 /* 3343 * content selection pattern - do fix if pattern found 3344 */ 3345 tSCC zInt_Abort_Free_And_ExitSelect0[] = 3346 "int[ \t]+(abort|free|exit)[ \t]*\\("; 3347 3348 /* 3349 * content bypass pattern - skip fix if pattern found 3350 */ 3351 tSCC zInt_Abort_Free_And_ExitBypass0[] = 3352 "_CLASSIC_ANSI_TYPES"; 3353 3354 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2 3355 static tTestDesc aInt_Abort_Free_And_ExitTests[] = { 3356 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL }, 3357 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, }; 3358 3359 /* 3360 * Fix Command Arguments for Int_Abort_Free_And_Exit 3361 */ 3362 static const char* apzInt_Abort_Free_And_ExitPatch[] = { 3363 "format", 3364 "void\t%1(", 3365 (char*)NULL }; 3366 3367 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3368 * 3369 * Description of Io_Quotes_Def fix 3370 */ 3371 tSCC zIo_Quotes_DefName[] = 3372 "io_quotes_def"; 3373 3374 /* 3375 * File name selection pattern 3376 */ 3377 #define zIo_Quotes_DefList (char*)NULL 3378 /* 3379 * Machine/OS name selection pattern 3380 */ 3381 #define apzIo_Quotes_DefMachs (const char**)NULL 3382 3383 /* 3384 * content selection pattern - do fix if pattern found 3385 */ 3386 tSCC zIo_Quotes_DefSelect0[] = 3387 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]"; 3388 3389 #define IO_QUOTES_DEF_TEST_CT 1 3390 static tTestDesc aIo_Quotes_DefTests[] = { 3391 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, }; 3392 3393 /* 3394 * Fix Command Arguments for Io_Quotes_Def 3395 */ 3396 static const char* apzIo_Quotes_DefPatch[] = { 3397 "char_macro_def", 3398 "IO", 3399 (char*)NULL }; 3400 3401 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3402 * 3403 * Description of Io_Quotes_Use fix 3404 */ 3405 tSCC zIo_Quotes_UseName[] = 3406 "io_quotes_use"; 3407 3408 /* 3409 * File name selection pattern 3410 */ 3411 #define zIo_Quotes_UseList (char*)NULL 3412 /* 3413 * Machine/OS name selection pattern 3414 */ 3415 #define apzIo_Quotes_UseMachs (const char**)NULL 3416 3417 /* 3418 * content selection pattern - do fix if pattern found 3419 */ 3420 tSCC zIo_Quotes_UseSelect0[] = 3421 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']"; 3422 3423 #define IO_QUOTES_USE_TEST_CT 1 3424 static tTestDesc aIo_Quotes_UseTests[] = { 3425 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, }; 3426 3427 /* 3428 * Fix Command Arguments for Io_Quotes_Use 3429 */ 3430 static const char* apzIo_Quotes_UsePatch[] = { 3431 "char_macro_use", 3432 "IO", 3433 (char*)NULL }; 3434 3435 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3436 * 3437 * Description of Ip_Missing_Semi fix 3438 */ 3439 tSCC zIp_Missing_SemiName[] = 3440 "ip_missing_semi"; 3441 3442 /* 3443 * File name selection pattern 3444 */ 3445 tSCC zIp_Missing_SemiList[] = 3446 "|netinet/ip.h|"; 3447 /* 3448 * Machine/OS name selection pattern 3449 */ 3450 #define apzIp_Missing_SemiMachs (const char**)NULL 3451 3452 /* 3453 * content selection pattern - do fix if pattern found 3454 */ 3455 tSCC zIp_Missing_SemiSelect0[] = 3456 "}$"; 3457 3458 #define IP_MISSING_SEMI_TEST_CT 1 3459 static tTestDesc aIp_Missing_SemiTests[] = { 3460 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, }; 3461 3462 /* 3463 * Fix Command Arguments for Ip_Missing_Semi 3464 */ 3465 static const char* apzIp_Missing_SemiPatch[] = { "sed", 3466 "-e", "/^struct/,/^};/s/}$/};/", 3467 (char*)NULL }; 3468 3469 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3470 * 3471 * Description of Irix___Restrict fix 3472 */ 3473 tSCC zIrix___RestrictName[] = 3474 "irix___restrict"; 3475 3476 /* 3477 * File name selection pattern 3478 */ 3479 tSCC zIrix___RestrictList[] = 3480 "|internal/sgimacros.h|"; 3481 /* 3482 * Machine/OS name selection pattern 3483 */ 3484 tSCC* apzIrix___RestrictMachs[] = { 3485 "mips-sgi-irix6.5", 3486 (const char*)NULL }; 3487 3488 /* 3489 * content selection pattern - do fix if pattern found 3490 */ 3491 tSCC zIrix___RestrictSelect0[] = 3492 "(#ifdef __c99\n\ 3493 )(#[ \t]*define __restrict restrict)"; 3494 3495 #define IRIX___RESTRICT_TEST_CT 1 3496 static tTestDesc aIrix___RestrictTests[] = { 3497 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, }; 3498 3499 /* 3500 * Fix Command Arguments for Irix___Restrict 3501 */ 3502 static const char* apzIrix___RestrictPatch[] = { 3503 "format", 3504 "%1# ifndef __cplusplus\n\ 3505 %2\n\ 3506 # endif", 3507 (char*)NULL }; 3508 3509 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3510 * 3511 * Description of Irix___Generic1 fix 3512 */ 3513 tSCC zIrix___Generic1Name[] = 3514 "irix___generic1"; 3515 3516 /* 3517 * File name selection pattern 3518 */ 3519 tSCC zIrix___Generic1List[] = 3520 "|internal/math_core.h|"; 3521 /* 3522 * Machine/OS name selection pattern 3523 */ 3524 tSCC* apzIrix___Generic1Machs[] = { 3525 "mips-sgi-irix6.5", 3526 (const char*)NULL }; 3527 3528 /* 3529 * content selection pattern - do fix if pattern found 3530 */ 3531 tSCC zIrix___Generic1Select0[] = 3532 "#define ([a-z]+)\\(x\\) *__generic.*"; 3533 3534 #define IRIX___GENERIC1_TEST_CT 1 3535 static tTestDesc aIrix___Generic1Tests[] = { 3536 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, }; 3537 3538 /* 3539 * Fix Command Arguments for Irix___Generic1 3540 */ 3541 static const char* apzIrix___Generic1Patch[] = { 3542 "format", 3543 "extern int %1(double);\n\ 3544 extern int %1f(float);\n\ 3545 extern int %1l(long double);\n\ 3546 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\ 3547 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\ 3548 : _%1l(x))\n", 3549 (char*)NULL }; 3550 3551 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3552 * 3553 * Description of Irix___Generic2 fix 3554 */ 3555 tSCC zIrix___Generic2Name[] = 3556 "irix___generic2"; 3557 3558 /* 3559 * File name selection pattern 3560 */ 3561 tSCC zIrix___Generic2List[] = 3562 "|internal/math_core.h|"; 3563 /* 3564 * Machine/OS name selection pattern 3565 */ 3566 tSCC* apzIrix___Generic2Machs[] = { 3567 "mips-sgi-irix6.5", 3568 (const char*)NULL }; 3569 3570 /* 3571 * content selection pattern - do fix if pattern found 3572 */ 3573 tSCC zIrix___Generic2Select0[] = 3574 "#define ([a-z]+)\\(x,y\\) *__generic.*"; 3575 3576 #define IRIX___GENERIC2_TEST_CT 1 3577 static tTestDesc aIrix___Generic2Tests[] = { 3578 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, }; 3579 3580 /* 3581 * Fix Command Arguments for Irix___Generic2 3582 */ 3583 static const char* apzIrix___Generic2Patch[] = { 3584 "format", 3585 "#define %1(x,y) \\\n\ 3586 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\ 3587 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\ 3588 : _%1l(x,y))\n", 3589 (char*)NULL }; 3590 3591 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3592 * 3593 * Description of Irix_Asm_Apostrophe fix 3594 */ 3595 tSCC zIrix_Asm_ApostropheName[] = 3596 "irix_asm_apostrophe"; 3597 3598 /* 3599 * File name selection pattern 3600 */ 3601 tSCC zIrix_Asm_ApostropheList[] = 3602 "|sys/asm.h|"; 3603 /* 3604 * Machine/OS name selection pattern 3605 */ 3606 #define apzIrix_Asm_ApostropheMachs (const char**)NULL 3607 3608 /* 3609 * content selection pattern - do fix if pattern found 3610 */ 3611 tSCC zIrix_Asm_ApostropheSelect0[] = 3612 "^[ \t]*#.*[Ww]e're"; 3613 3614 #define IRIX_ASM_APOSTROPHE_TEST_CT 1 3615 static tTestDesc aIrix_Asm_ApostropheTests[] = { 3616 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, }; 3617 3618 /* 3619 * Fix Command Arguments for Irix_Asm_Apostrophe 3620 */ 3621 static const char* apzIrix_Asm_ApostrophePatch[] = { 3622 "format", 3623 "%1 are", 3624 "^([ \t]*#.*[Ww]e)'re", 3625 (char*)NULL }; 3626 3627 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3628 * 3629 * Description of Irix_Limits_Const fix 3630 */ 3631 tSCC zIrix_Limits_ConstName[] = 3632 "irix_limits_const"; 3633 3634 /* 3635 * File name selection pattern 3636 */ 3637 tSCC zIrix_Limits_ConstList[] = 3638 "|fixinc-test-limits.h|limits.h|"; 3639 /* 3640 * Machine/OS name selection pattern 3641 */ 3642 #define apzIrix_Limits_ConstMachs (const char**)NULL 3643 3644 /* 3645 * content selection pattern - do fix if pattern found 3646 */ 3647 tSCC zIrix_Limits_ConstSelect0[] = 3648 "^extern const "; 3649 3650 #define IRIX_LIMITS_CONST_TEST_CT 1 3651 static tTestDesc aIrix_Limits_ConstTests[] = { 3652 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, }; 3653 3654 /* 3655 * Fix Command Arguments for Irix_Limits_Const 3656 */ 3657 static const char* apzIrix_Limits_ConstPatch[] = { 3658 "format", 3659 "extern __const ", 3660 (char*)NULL }; 3661 3662 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3663 * 3664 * Description of Irix_Socklen_T fix 3665 */ 3666 tSCC zIrix_Socklen_TName[] = 3667 "irix_socklen_t"; 3668 3669 /* 3670 * File name selection pattern 3671 */ 3672 tSCC zIrix_Socklen_TList[] = 3673 "|sys/socket.h|"; 3674 /* 3675 * Machine/OS name selection pattern 3676 */ 3677 tSCC* apzIrix_Socklen_TMachs[] = { 3678 "mips-sgi-irix6.5", 3679 (const char*)NULL }; 3680 3681 /* 3682 * content selection pattern - do fix if pattern found 3683 */ 3684 tSCC zIrix_Socklen_TSelect0[] = 3685 "(#define _SOCKLEN_T\n\ 3686 )(typedef u_int32_t socklen_t;)"; 3687 3688 #define IRIX_SOCKLEN_T_TEST_CT 1 3689 static tTestDesc aIrix_Socklen_TTests[] = { 3690 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, }; 3691 3692 /* 3693 * Fix Command Arguments for Irix_Socklen_T 3694 */ 3695 static const char* apzIrix_Socklen_TPatch[] = { 3696 "format", 3697 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\ 3698 typedef int socklen_t;\n\ 3699 #else\n\ 3700 %2\n\ 3701 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */", 3702 (char*)NULL }; 3703 3704 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3705 * 3706 * Description of Irix_Stdint_C99 fix 3707 */ 3708 tSCC zIrix_Stdint_C99Name[] = 3709 "irix_stdint_c99"; 3710 3711 /* 3712 * File name selection pattern 3713 */ 3714 tSCC zIrix_Stdint_C99List[] = 3715 "|stdint.h|"; 3716 /* 3717 * Machine/OS name selection pattern 3718 */ 3719 tSCC* apzIrix_Stdint_C99Machs[] = { 3720 "mips-sgi-irix6.5", 3721 (const char*)NULL }; 3722 3723 /* 3724 * content selection pattern - do fix if pattern found 3725 */ 3726 tSCC zIrix_Stdint_C99Select0[] = 3727 "(#ifndef __c99\n\ 3728 )(#error This header file is to be used only for c99 mode compilations)"; 3729 3730 #define IRIX_STDINT_C99_TEST_CT 1 3731 static tTestDesc aIrix_Stdint_C99Tests[] = { 3732 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, }; 3733 3734 /* 3735 * Fix Command Arguments for Irix_Stdint_C99 3736 */ 3737 static const char* apzIrix_Stdint_C99Patch[] = { 3738 "format", 3739 "#if 0\n\ 3740 %2", 3741 (char*)NULL }; 3742 3743 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3744 * 3745 * Description of Irix_Stdio_Va_List fix 3746 */ 3747 tSCC zIrix_Stdio_Va_ListName[] = 3748 "irix_stdio_va_list"; 3749 3750 /* 3751 * File name selection pattern 3752 */ 3753 tSCC zIrix_Stdio_Va_ListList[] = 3754 "|stdio.h|internal/stdio_core.h|"; 3755 /* 3756 * Machine/OS name selection pattern 3757 */ 3758 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL 3759 3760 /* 3761 * content selection pattern - do fix if pattern found 3762 */ 3763 tSCC zIrix_Stdio_Va_ListSelect0[] = 3764 "/\\* va_list \\*/ char \\*"; 3765 3766 #define IRIX_STDIO_VA_LIST_TEST_CT 1 3767 static tTestDesc aIrix_Stdio_Va_ListTests[] = { 3768 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, }; 3769 3770 /* 3771 * Fix Command Arguments for Irix_Stdio_Va_List 3772 */ 3773 static const char* apzIrix_Stdio_Va_ListPatch[] = { 3774 "format", 3775 "__gnuc_va_list", 3776 (char*)NULL }; 3777 3778 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3779 * 3780 * Description of Irix_Wcsftime fix 3781 */ 3782 tSCC zIrix_WcsftimeName[] = 3783 "irix_wcsftime"; 3784 3785 /* 3786 * File name selection pattern 3787 */ 3788 tSCC zIrix_WcsftimeList[] = 3789 "|internal/wchar_core.h|"; 3790 /* 3791 * Machine/OS name selection pattern 3792 */ 3793 tSCC* apzIrix_WcsftimeMachs[] = { 3794 "mips-sgi-irix6.5", 3795 (const char*)NULL }; 3796 3797 /* 3798 * content selection pattern - do fix if pattern found 3799 */ 3800 tSCC zIrix_WcsftimeSelect0[] = 3801 "#if _NO_XOPEN5\n\ 3802 (extern size_t[ \t]+wcsftime.*const char *.*)"; 3803 3804 #define IRIX_WCSFTIME_TEST_CT 1 3805 static tTestDesc aIrix_WcsftimeTests[] = { 3806 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, }; 3807 3808 /* 3809 * Fix Command Arguments for Irix_Wcsftime 3810 */ 3811 static const char* apzIrix_WcsftimePatch[] = { 3812 "format", 3813 "#if _NO_XOPEN5 && !defined(__c99)\n\ 3814 %1", 3815 (char*)NULL }; 3816 3817 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3818 * 3819 * Description of Isc_Fmod fix 3820 */ 3821 tSCC zIsc_FmodName[] = 3822 "isc_fmod"; 3823 3824 /* 3825 * File name selection pattern 3826 */ 3827 tSCC zIsc_FmodList[] = 3828 "|math.h|"; 3829 /* 3830 * Machine/OS name selection pattern 3831 */ 3832 #define apzIsc_FmodMachs (const char**)NULL 3833 3834 /* 3835 * content selection pattern - do fix if pattern found 3836 */ 3837 tSCC zIsc_FmodSelect0[] = 3838 "fmod\\(double\\)"; 3839 3840 #define ISC_FMOD_TEST_CT 1 3841 static tTestDesc aIsc_FmodTests[] = { 3842 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, }; 3843 3844 /* 3845 * Fix Command Arguments for Isc_Fmod 3846 */ 3847 static const char* apzIsc_FmodPatch[] = { 3848 "format", 3849 "fmod(double, double)", 3850 (char*)NULL }; 3851 3852 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3853 * 3854 * Description of Isc_Omits_With_Stdc fix 3855 */ 3856 tSCC zIsc_Omits_With_StdcName[] = 3857 "isc_omits_with_stdc"; 3858 3859 /* 3860 * File name selection pattern 3861 */ 3862 tSCC zIsc_Omits_With_StdcList[] = 3863 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|"; 3864 /* 3865 * Machine/OS name selection pattern 3866 */ 3867 #define apzIsc_Omits_With_StdcMachs (const char**)NULL 3868 3869 /* 3870 * content selection pattern - do fix if pattern found 3871 */ 3872 tSCC zIsc_Omits_With_StdcSelect0[] = 3873 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)"; 3874 3875 #define ISC_OMITS_WITH_STDC_TEST_CT 1 3876 static tTestDesc aIsc_Omits_With_StdcTests[] = { 3877 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, }; 3878 3879 /* 3880 * Fix Command Arguments for Isc_Omits_With_Stdc 3881 */ 3882 static const char* apzIsc_Omits_With_StdcPatch[] = { 3883 "format", 3884 "!defined(_POSIX_SOURCE)", 3885 (char*)NULL }; 3886 3887 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3888 * 3889 * Description of Kandr_Concat fix 3890 */ 3891 tSCC zKandr_ConcatName[] = 3892 "kandr_concat"; 3893 3894 /* 3895 * File name selection pattern 3896 */ 3897 tSCC zKandr_ConcatList[] = 3898 "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|"; 3899 /* 3900 * Machine/OS name selection pattern 3901 */ 3902 #define apzKandr_ConcatMachs (const char**)NULL 3903 3904 /* 3905 * content selection pattern - do fix if pattern found 3906 */ 3907 tSCC zKandr_ConcatSelect0[] = 3908 "/\\*\\*/"; 3909 3910 #define KANDR_CONCAT_TEST_CT 1 3911 static tTestDesc aKandr_ConcatTests[] = { 3912 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, }; 3913 3914 /* 3915 * Fix Command Arguments for Kandr_Concat 3916 */ 3917 static const char* apzKandr_ConcatPatch[] = { 3918 "format", 3919 "##", 3920 (char*)NULL }; 3921 3922 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3923 * 3924 * Description of Libc1_G_Va_List fix 3925 */ 3926 tSCC zLibc1_G_Va_ListName[] = 3927 "libc1_G_va_list"; 3928 3929 /* 3930 * File name selection pattern 3931 */ 3932 tSCC zLibc1_G_Va_ListList[] = 3933 "|_G_config.h|"; 3934 /* 3935 * Machine/OS name selection pattern 3936 */ 3937 tSCC* apzLibc1_G_Va_ListMachs[] = { 3938 "*-*-linux*libc1", 3939 (const char*)NULL }; 3940 3941 /* 3942 * content selection pattern - do fix if pattern found 3943 */ 3944 tSCC zLibc1_G_Va_ListSelect0[] = 3945 "typedef void \\* _G_va_list;"; 3946 3947 #define LIBC1_G_VA_LIST_TEST_CT 1 3948 static tTestDesc aLibc1_G_Va_ListTests[] = { 3949 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, }; 3950 3951 /* 3952 * Fix Command Arguments for Libc1_G_Va_List 3953 */ 3954 static const char* apzLibc1_G_Va_ListPatch[] = { 3955 "format", 3956 "typedef __builtin_va_list _G_va_list;", 3957 (char*)NULL }; 3958 3959 /* * * * * * * * * * * * * * * * * * * * * * * * * * 3960 * 3961 * Description of Libc1_Ifdefd_Memx fix 3962 */ 3963 tSCC zLibc1_Ifdefd_MemxName[] = 3964 "libc1_ifdefd_memx"; 3965 3966 /* 3967 * File name selection pattern 3968 */ 3969 tSCC zLibc1_Ifdefd_MemxList[] = 3970 "|testing.h|string.h|"; 3971 /* 3972 * Machine/OS name selection pattern 3973 */ 3974 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL 3975 3976 /* 3977 * content selection pattern - do fix if pattern found 3978 */ 3979 tSCC zLibc1_Ifdefd_MemxSelect0[] = 3980 "' is a built-in function for gcc 2\\.x\\. \\*/"; 3981 3982 /* 3983 * content bypass pattern - skip fix if pattern found 3984 */ 3985 tSCC zLibc1_Ifdefd_MemxBypass0[] = 3986 "__cplusplus"; 3987 3988 #define LIBC1_IFDEFD_MEMX_TEST_CT 2 3989 static tTestDesc aLibc1_Ifdefd_MemxTests[] = { 3990 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL }, 3991 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, }; 3992 3993 /* 3994 * Fix Command Arguments for Libc1_Ifdefd_Memx 3995 */ 3996 static const char* apzLibc1_Ifdefd_MemxPatch[] = { 3997 "format", 3998 "%1", 3999 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\ 4000 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\ 4001 (/\\* .* \\*/\n\ 4002 extern [a-z_]+ mem.*(\n\ 4003 [^#].*)*;)\n\ 4004 #endif", 4005 (char*)NULL }; 4006 4007 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4008 * 4009 * Description of Linux_Ia64_Ucontext fix 4010 */ 4011 tSCC zLinux_Ia64_UcontextName[] = 4012 "linux_ia64_ucontext"; 4013 4014 /* 4015 * File name selection pattern 4016 */ 4017 tSCC zLinux_Ia64_UcontextList[] = 4018 "|sys/ucontext.h|"; 4019 /* 4020 * Machine/OS name selection pattern 4021 */ 4022 tSCC* apzLinux_Ia64_UcontextMachs[] = { 4023 "ia64-*-linux*", 4024 (const char*)NULL }; 4025 4026 /* 4027 * content selection pattern - do fix if pattern found 4028 */ 4029 tSCC zLinux_Ia64_UcontextSelect0[] = 4030 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)"; 4031 4032 #define LINUX_IA64_UCONTEXT_TEST_CT 1 4033 static tTestDesc aLinux_Ia64_UcontextTests[] = { 4034 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, }; 4035 4036 /* 4037 * Fix Command Arguments for Linux_Ia64_Ucontext 4038 */ 4039 static const char* apzLinux_Ia64_UcontextPatch[] = { 4040 "format", 4041 "__builtin_offsetof (struct sigcontext, sc_gr[0])", 4042 (char*)NULL }; 4043 4044 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4045 * 4046 * Description of Lynxos_No_Warning_In_Sys_Time_H fix 4047 */ 4048 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] = 4049 "lynxos_no_warning_in_sys_time_h"; 4050 4051 /* 4052 * File name selection pattern 4053 */ 4054 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] = 4055 "|sys/time.h|"; 4056 /* 4057 * Machine/OS name selection pattern 4058 */ 4059 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL 4060 4061 /* 4062 * content selection pattern - do fix if pattern found 4063 */ 4064 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] = 4065 "#warning[ \t]+Using <time.h> instead of <sys/time.h>"; 4066 4067 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1 4068 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = { 4069 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, }; 4070 4071 /* 4072 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H 4073 */ 4074 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = { 4075 "format", 4076 "", 4077 (char*)NULL }; 4078 4079 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4080 * 4081 * Description of Lynxos_Missing_Putenv fix 4082 */ 4083 tSCC zLynxos_Missing_PutenvName[] = 4084 "lynxos_missing_putenv"; 4085 4086 /* 4087 * File name selection pattern 4088 */ 4089 tSCC zLynxos_Missing_PutenvList[] = 4090 "|stdlib.h|"; 4091 /* 4092 * Machine/OS name selection pattern 4093 */ 4094 tSCC* apzLynxos_Missing_PutenvMachs[] = { 4095 "*-*-lynxos*", 4096 (const char*)NULL }; 4097 4098 /* 4099 * content selection pattern - do fix if pattern found 4100 */ 4101 tSCC zLynxos_Missing_PutenvSelect0[] = 4102 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);"; 4103 4104 /* 4105 * content bypass pattern - skip fix if pattern found 4106 */ 4107 tSCC zLynxos_Missing_PutenvBypass0[] = 4108 "putenv[ \\t]*\\("; 4109 4110 #define LYNXOS_MISSING_PUTENV_TEST_CT 2 4111 static tTestDesc aLynxos_Missing_PutenvTests[] = { 4112 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL }, 4113 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, }; 4114 4115 /* 4116 * Fix Command Arguments for Lynxos_Missing_Putenv 4117 */ 4118 static const char* apzLynxos_Missing_PutenvPatch[] = { 4119 "format", 4120 "%0\n\ 4121 extern int putenv\t\t\t\t_AP((char *));", 4122 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);", 4123 (char*)NULL }; 4124 4125 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4126 * 4127 * Description of Machine_Ansi_H_Va_List fix 4128 */ 4129 tSCC zMachine_Ansi_H_Va_ListName[] = 4130 "machine_ansi_h_va_list"; 4131 4132 /* 4133 * File name selection pattern 4134 */ 4135 #define zMachine_Ansi_H_Va_ListList (char*)NULL 4136 /* 4137 * Machine/OS name selection pattern 4138 */ 4139 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL 4140 4141 /* 4142 * content selection pattern - do fix if pattern found 4143 */ 4144 tSCC zMachine_Ansi_H_Va_ListSelect0[] = 4145 "define[ \t]+_BSD_VA_LIST_[ \t]"; 4146 4147 /* 4148 * content bypass pattern - skip fix if pattern found 4149 */ 4150 tSCC zMachine_Ansi_H_Va_ListBypass0[] = 4151 "__builtin_va_list"; 4152 4153 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2 4154 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = { 4155 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL }, 4156 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, }; 4157 4158 /* 4159 * Fix Command Arguments for Machine_Ansi_H_Va_List 4160 */ 4161 static const char* apzMachine_Ansi_H_Va_ListPatch[] = { 4162 "format", 4163 "%1__builtin_va_list", 4164 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*", 4165 (char*)NULL }; 4166 4167 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4168 * 4169 * Description of Machine_Name fix 4170 */ 4171 tSCC zMachine_NameName[] = 4172 "machine_name"; 4173 4174 /* 4175 * File name selection pattern 4176 */ 4177 #define zMachine_NameList (char*)NULL 4178 /* 4179 * Machine/OS name selection pattern 4180 */ 4181 #define apzMachine_NameMachs (const char**)NULL 4182 4183 /* 4184 * perform the C function call test 4185 */ 4186 tSCC zMachine_NameFTst0[] = "machine_name"; 4187 4188 #define MACHINE_NAME_TEST_CT 1 4189 static tTestDesc aMachine_NameTests[] = { 4190 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, }; 4191 4192 /* 4193 * Fix Command Arguments for Machine_Name 4194 */ 4195 static const char* apzMachine_NamePatch[] = { 4196 "machine_name", 4197 (char*)NULL }; 4198 4199 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4200 * 4201 * Description of Math_Exception fix 4202 */ 4203 tSCC zMath_ExceptionName[] = 4204 "math_exception"; 4205 4206 /* 4207 * File name selection pattern 4208 */ 4209 tSCC zMath_ExceptionList[] = 4210 "|math.h|"; 4211 /* 4212 * Machine/OS name selection pattern 4213 */ 4214 #define apzMath_ExceptionMachs (const char**)NULL 4215 4216 /* 4217 * content selection pattern - do fix if pattern found 4218 */ 4219 tSCC zMath_ExceptionSelect0[] = 4220 "struct exception"; 4221 4222 /* 4223 * content bypass pattern - skip fix if pattern found 4224 */ 4225 tSCC zMath_ExceptionBypass0[] = 4226 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception"; 4227 4228 #define MATH_EXCEPTION_TEST_CT 2 4229 static tTestDesc aMath_ExceptionTests[] = { 4230 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL }, 4231 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, }; 4232 4233 /* 4234 * Fix Command Arguments for Math_Exception 4235 */ 4236 static const char* apzMath_ExceptionPatch[] = { 4237 "wrap", 4238 "#ifdef __cplusplus\n\ 4239 #define exception __math_exception\n\ 4240 #endif\n", 4241 "#ifdef __cplusplus\n\ 4242 #undef exception\n\ 4243 #endif\n", 4244 (char*)NULL }; 4245 4246 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4247 * 4248 * Description of Math_Huge_Val_From_Dbl_Max fix 4249 */ 4250 tSCC zMath_Huge_Val_From_Dbl_MaxName[] = 4251 "math_huge_val_from_dbl_max"; 4252 4253 /* 4254 * File name selection pattern 4255 */ 4256 tSCC zMath_Huge_Val_From_Dbl_MaxList[] = 4257 "|math.h|"; 4258 /* 4259 * Machine/OS name selection pattern 4260 */ 4261 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL 4262 4263 /* 4264 * content selection pattern - do fix if pattern found 4265 */ 4266 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] = 4267 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX"; 4268 4269 /* 4270 * content bypass pattern - skip fix if pattern found 4271 */ 4272 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = 4273 "define[ \t]+DBL_MAX"; 4274 4275 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 4276 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { 4277 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL }, 4278 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, }; 4279 4280 /* 4281 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max 4282 */ 4283 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c", 4284 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\ 4285 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\ 4286 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\ 4287 \telse cat\n\ 4288 \tfi", 4289 (char*)NULL }; 4290 4291 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4292 * 4293 * Description of Nested_Auth_Des fix 4294 */ 4295 tSCC zNested_Auth_DesName[] = 4296 "nested_auth_des"; 4297 4298 /* 4299 * File name selection pattern 4300 */ 4301 tSCC zNested_Auth_DesList[] = 4302 "|rpc/rpc.h|"; 4303 /* 4304 * Machine/OS name selection pattern 4305 */ 4306 #define apzNested_Auth_DesMachs (const char**)NULL 4307 4308 /* 4309 * content selection pattern - do fix if pattern found 4310 */ 4311 tSCC zNested_Auth_DesSelect0[] = 4312 "(/\\*.*rpc/auth_des\\.h>.*)/\\*"; 4313 4314 #define NESTED_AUTH_DES_TEST_CT 1 4315 static tTestDesc aNested_Auth_DesTests[] = { 4316 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, }; 4317 4318 /* 4319 * Fix Command Arguments for Nested_Auth_Des 4320 */ 4321 static const char* apzNested_Auth_DesPatch[] = { 4322 "format", 4323 "%1*/ /*", 4324 (char*)NULL }; 4325 4326 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4327 * 4328 * Description of Nested_Motorola fix 4329 */ 4330 tSCC zNested_MotorolaName[] = 4331 "nested_motorola"; 4332 4333 /* 4334 * File name selection pattern 4335 */ 4336 tSCC zNested_MotorolaList[] = 4337 "|sys/limits.h|limits.h|"; 4338 /* 4339 * Machine/OS name selection pattern 4340 */ 4341 tSCC* apzNested_MotorolaMachs[] = { 4342 "m68k-motorola-sysv*", 4343 (const char*)NULL }; 4344 4345 /* 4346 * content selection pattern - do fix if pattern found 4347 */ 4348 tSCC zNested_MotorolaSelect0[] = 4349 "max # bytes atomic in write|error value returned by Math lib"; 4350 4351 #define NESTED_MOTOROLA_TEST_CT 1 4352 static tTestDesc aNested_MotorolaTests[] = { 4353 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, }; 4354 4355 /* 4356 * Fix Command Arguments for Nested_Motorola 4357 */ 4358 static const char* apzNested_MotorolaPatch[] = { "sed", 4359 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@", 4360 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@", 4361 (char*)NULL }; 4362 4363 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4364 * 4365 * Description of Nested_Sys_Limits fix 4366 */ 4367 tSCC zNested_Sys_LimitsName[] = 4368 "nested_sys_limits"; 4369 4370 /* 4371 * File name selection pattern 4372 */ 4373 tSCC zNested_Sys_LimitsList[] = 4374 "|sys/limits.h|"; 4375 /* 4376 * Machine/OS name selection pattern 4377 */ 4378 #define apzNested_Sys_LimitsMachs (const char**)NULL 4379 4380 /* 4381 * content selection pattern - do fix if pattern found 4382 */ 4383 tSCC zNested_Sys_LimitsSelect0[] = 4384 "CHILD_MAX"; 4385 4386 #define NESTED_SYS_LIMITS_TEST_CT 1 4387 static tTestDesc aNested_Sys_LimitsTests[] = { 4388 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, }; 4389 4390 /* 4391 * Fix Command Arguments for Nested_Sys_Limits 4392 */ 4393 static const char* apzNested_Sys_LimitsPatch[] = { "sed", 4394 "-e", "/CHILD_MAX/s,/\\* Max, Max,", 4395 "-e", "/OPEN_MAX/s,/\\* Max, Max,", 4396 (char*)NULL }; 4397 4398 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4399 * 4400 * Description of Netbsd_Extra_Semicolon fix 4401 */ 4402 tSCC zNetbsd_Extra_SemicolonName[] = 4403 "netbsd_extra_semicolon"; 4404 4405 /* 4406 * File name selection pattern 4407 */ 4408 tSCC zNetbsd_Extra_SemicolonList[] = 4409 "|sys/cdefs.h|"; 4410 /* 4411 * Machine/OS name selection pattern 4412 */ 4413 tSCC* apzNetbsd_Extra_SemicolonMachs[] = { 4414 "*-*-netbsd*", 4415 (const char*)NULL }; 4416 4417 /* 4418 * content selection pattern - do fix if pattern found 4419 */ 4420 tSCC zNetbsd_Extra_SemicolonSelect0[] = 4421 "#define[ \t]*__END_DECLS[ \t]*};"; 4422 4423 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1 4424 static tTestDesc aNetbsd_Extra_SemicolonTests[] = { 4425 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, }; 4426 4427 /* 4428 * Fix Command Arguments for Netbsd_Extra_Semicolon 4429 */ 4430 static const char* apzNetbsd_Extra_SemicolonPatch[] = { 4431 "format", 4432 "#define __END_DECLS }", 4433 (char*)NULL }; 4434 4435 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4436 * 4437 * Description of Next_Math_Prefix fix 4438 */ 4439 tSCC zNext_Math_PrefixName[] = 4440 "next_math_prefix"; 4441 4442 /* 4443 * File name selection pattern 4444 */ 4445 tSCC zNext_Math_PrefixList[] = 4446 "|ansi/math.h|"; 4447 /* 4448 * Machine/OS name selection pattern 4449 */ 4450 #define apzNext_Math_PrefixMachs (const char**)NULL 4451 4452 /* 4453 * content selection pattern - do fix if pattern found 4454 */ 4455 tSCC zNext_Math_PrefixSelect0[] = 4456 "^extern[ \t]+double[ \t]+__const__[ \t]"; 4457 4458 #define NEXT_MATH_PREFIX_TEST_CT 1 4459 static tTestDesc aNext_Math_PrefixTests[] = { 4460 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, }; 4461 4462 /* 4463 * Fix Command Arguments for Next_Math_Prefix 4464 */ 4465 static const char* apzNext_Math_PrefixPatch[] = { 4466 "format", 4467 "extern double %1(", 4468 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(", 4469 (char*)NULL }; 4470 4471 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4472 * 4473 * Description of Next_Template fix 4474 */ 4475 tSCC zNext_TemplateName[] = 4476 "next_template"; 4477 4478 /* 4479 * File name selection pattern 4480 */ 4481 tSCC zNext_TemplateList[] = 4482 "|bsd/libc.h|"; 4483 /* 4484 * Machine/OS name selection pattern 4485 */ 4486 #define apzNext_TemplateMachs (const char**)NULL 4487 4488 /* 4489 * content selection pattern - do fix if pattern found 4490 */ 4491 tSCC zNext_TemplateSelect0[] = 4492 "[ \t]template\\)"; 4493 4494 #define NEXT_TEMPLATE_TEST_CT 1 4495 static tTestDesc aNext_TemplateTests[] = { 4496 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, }; 4497 4498 /* 4499 * Fix Command Arguments for Next_Template 4500 */ 4501 static const char* apzNext_TemplatePatch[] = { 4502 "format", 4503 "(%1)", 4504 "\\(([^)]*)[ \t]template\\)", 4505 (char*)NULL }; 4506 4507 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4508 * 4509 * Description of Next_Volitile fix 4510 */ 4511 tSCC zNext_VolitileName[] = 4512 "next_volitile"; 4513 4514 /* 4515 * File name selection pattern 4516 */ 4517 tSCC zNext_VolitileList[] = 4518 "|ansi/stdlib.h|"; 4519 /* 4520 * Machine/OS name selection pattern 4521 */ 4522 #define apzNext_VolitileMachs (const char**)NULL 4523 4524 /* 4525 * content selection pattern - do fix if pattern found 4526 */ 4527 tSCC zNext_VolitileSelect0[] = 4528 "^extern[ \t]+volatile[ \t]+void[ \t]"; 4529 4530 #define NEXT_VOLITILE_TEST_CT 1 4531 static tTestDesc aNext_VolitileTests[] = { 4532 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, }; 4533 4534 /* 4535 * Fix Command Arguments for Next_Volitile 4536 */ 4537 static const char* apzNext_VolitilePatch[] = { 4538 "format", 4539 "extern void %1(", 4540 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(", 4541 (char*)NULL }; 4542 4543 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4544 * 4545 * Description of Next_Wait_Union fix 4546 */ 4547 tSCC zNext_Wait_UnionName[] = 4548 "next_wait_union"; 4549 4550 /* 4551 * File name selection pattern 4552 */ 4553 tSCC zNext_Wait_UnionList[] = 4554 "|sys/wait.h|"; 4555 /* 4556 * Machine/OS name selection pattern 4557 */ 4558 #define apzNext_Wait_UnionMachs (const char**)NULL 4559 4560 /* 4561 * content selection pattern - do fix if pattern found 4562 */ 4563 tSCC zNext_Wait_UnionSelect0[] = 4564 "wait\\(union wait"; 4565 4566 #define NEXT_WAIT_UNION_TEST_CT 1 4567 static tTestDesc aNext_Wait_UnionTests[] = { 4568 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, }; 4569 4570 /* 4571 * Fix Command Arguments for Next_Wait_Union 4572 */ 4573 static const char* apzNext_Wait_UnionPatch[] = { 4574 "format", 4575 "wait(void", 4576 (char*)NULL }; 4577 4578 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4579 * 4580 * Description of Nodeent_Syntax fix 4581 */ 4582 tSCC zNodeent_SyntaxName[] = 4583 "nodeent_syntax"; 4584 4585 /* 4586 * File name selection pattern 4587 */ 4588 tSCC zNodeent_SyntaxList[] = 4589 "|netdnet/dnetdb.h|"; 4590 /* 4591 * Machine/OS name selection pattern 4592 */ 4593 #define apzNodeent_SyntaxMachs (const char**)NULL 4594 4595 /* 4596 * content selection pattern - do fix if pattern found 4597 */ 4598 tSCC zNodeent_SyntaxSelect0[] = 4599 "char[ \t]*\\*na_addr[ \t]*$"; 4600 4601 #define NODEENT_SYNTAX_TEST_CT 1 4602 static tTestDesc aNodeent_SyntaxTests[] = { 4603 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, }; 4604 4605 /* 4606 * Fix Command Arguments for Nodeent_Syntax 4607 */ 4608 static const char* apzNodeent_SyntaxPatch[] = { 4609 "format", 4610 "%0;", 4611 (char*)NULL }; 4612 4613 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4614 * 4615 * Description of Obstack_Lvalue_Cast fix 4616 */ 4617 tSCC zObstack_Lvalue_CastName[] = 4618 "obstack_lvalue_cast"; 4619 4620 /* 4621 * File name selection pattern 4622 */ 4623 tSCC zObstack_Lvalue_CastList[] = 4624 "|obstack.h|"; 4625 /* 4626 * Machine/OS name selection pattern 4627 */ 4628 #define apzObstack_Lvalue_CastMachs (const char**)NULL 4629 4630 /* 4631 * content selection pattern - do fix if pattern found 4632 */ 4633 tSCC zObstack_Lvalue_CastSelect0[] = 4634 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)"; 4635 4636 #define OBSTACK_LVALUE_CAST_TEST_CT 1 4637 static tTestDesc aObstack_Lvalue_CastTests[] = { 4638 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, }; 4639 4640 /* 4641 * Fix Command Arguments for Obstack_Lvalue_Cast 4642 */ 4643 static const char* apzObstack_Lvalue_CastPatch[] = { 4644 "format", 4645 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))", 4646 (char*)NULL }; 4647 4648 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4649 * 4650 * Description of Osf_Namespace_A fix 4651 */ 4652 tSCC zOsf_Namespace_AName[] = 4653 "osf_namespace_a"; 4654 4655 /* 4656 * File name selection pattern 4657 */ 4658 tSCC zOsf_Namespace_AList[] = 4659 "|reg_types.h|sys/lc_core.h|"; 4660 /* 4661 * Machine/OS name selection pattern 4662 */ 4663 #define apzOsf_Namespace_AMachs (const char**)NULL 4664 4665 /* 4666 * perform the 'test' shell command - do fix on success 4667 */ 4668 tSCC zOsf_Namespace_ATest0[] = 4669 " -r reg_types.h"; 4670 tSCC zOsf_Namespace_ATest1[] = 4671 " -r sys/lc_core.h"; 4672 tSCC zOsf_Namespace_ATest2[] = 4673 " -n \"`grep '} regex_t;' reg_types.h`\""; 4674 tSCC zOsf_Namespace_ATest3[] = 4675 " -z \"`grep __regex_t regex.h`\""; 4676 4677 #define OSF_NAMESPACE_A_TEST_CT 4 4678 static tTestDesc aOsf_Namespace_ATests[] = { 4679 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, 4680 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ }, 4681 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ }, 4682 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, }; 4683 4684 /* 4685 * Fix Command Arguments for Osf_Namespace_A 4686 */ 4687 static const char* apzOsf_Namespace_APatch[] = { 4688 "format", 4689 "__%0", 4690 "reg(ex|off|match)_t", 4691 (char*)NULL }; 4692 4693 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4694 * 4695 * Description of Osf_Namespace_C fix 4696 */ 4697 tSCC zOsf_Namespace_CName[] = 4698 "osf_namespace_c"; 4699 4700 /* 4701 * File name selection pattern 4702 */ 4703 tSCC zOsf_Namespace_CList[] = 4704 "|regex.h|"; 4705 /* 4706 * Machine/OS name selection pattern 4707 */ 4708 #define apzOsf_Namespace_CMachs (const char**)NULL 4709 4710 /* 4711 * content selection pattern - do fix if pattern found 4712 */ 4713 tSCC zOsf_Namespace_CSelect0[] = 4714 "#include <reg_types.h>.*"; 4715 4716 /* 4717 * perform the 'test' shell command - do fix on success 4718 */ 4719 tSCC zOsf_Namespace_CTest0[] = 4720 " -r reg_types.h"; 4721 tSCC zOsf_Namespace_CTest1[] = 4722 " -r sys/lc_core.h"; 4723 tSCC zOsf_Namespace_CTest2[] = 4724 " -n \"`grep '} regex_t;' reg_types.h`\""; 4725 tSCC zOsf_Namespace_CTest3[] = 4726 " -z \"`grep __regex_t regex.h`\""; 4727 4728 #define OSF_NAMESPACE_C_TEST_CT 5 4729 static tTestDesc aOsf_Namespace_CTests[] = { 4730 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ }, 4731 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ }, 4732 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ }, 4733 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ }, 4734 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, }; 4735 4736 /* 4737 * Fix Command Arguments for Osf_Namespace_C 4738 */ 4739 static const char* apzOsf_Namespace_CPatch[] = { 4740 "format", 4741 "%0\n\ 4742 typedef __regex_t\tregex_t;\n\ 4743 typedef __regoff_t\tregoff_t;\n\ 4744 typedef __regmatch_t\tregmatch_t;", 4745 (char*)NULL }; 4746 4747 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4748 * 4749 * Description of Pthread_Page_Size fix 4750 */ 4751 tSCC zPthread_Page_SizeName[] = 4752 "pthread_page_size"; 4753 4754 /* 4755 * File name selection pattern 4756 */ 4757 tSCC zPthread_Page_SizeList[] = 4758 "|pthread.h|"; 4759 /* 4760 * Machine/OS name selection pattern 4761 */ 4762 #define apzPthread_Page_SizeMachs (const char**)NULL 4763 4764 /* 4765 * content selection pattern - do fix if pattern found 4766 */ 4767 tSCC zPthread_Page_SizeSelect0[] = 4768 "^int __page_size"; 4769 4770 #define PTHREAD_PAGE_SIZE_TEST_CT 1 4771 static tTestDesc aPthread_Page_SizeTests[] = { 4772 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, }; 4773 4774 /* 4775 * Fix Command Arguments for Pthread_Page_Size 4776 */ 4777 static const char* apzPthread_Page_SizePatch[] = { 4778 "format", 4779 "extern %0", 4780 (char*)NULL }; 4781 4782 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4783 * 4784 * Description of Pthread_Incomplete_Struct_Argument fix 4785 */ 4786 tSCC zPthread_Incomplete_Struct_ArgumentName[] = 4787 "pthread_incomplete_struct_argument"; 4788 4789 /* 4790 * File name selection pattern 4791 */ 4792 tSCC zPthread_Incomplete_Struct_ArgumentList[] = 4793 "|pthread.h|"; 4794 /* 4795 * Machine/OS name selection pattern 4796 */ 4797 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL 4798 4799 /* 4800 * content selection pattern - do fix if pattern found 4801 */ 4802 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] = 4803 "struct __jmp_buf_tag"; 4804 4805 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1 4806 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = { 4807 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, }; 4808 4809 /* 4810 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument 4811 */ 4812 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = { 4813 "format", 4814 "%1 *%2%3", 4815 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$", 4816 (char*)NULL }; 4817 4818 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4819 * 4820 * Description of Read_Ret_Type fix 4821 */ 4822 tSCC zRead_Ret_TypeName[] = 4823 "read_ret_type"; 4824 4825 /* 4826 * File name selection pattern 4827 */ 4828 tSCC zRead_Ret_TypeList[] = 4829 "|stdio.h|"; 4830 /* 4831 * Machine/OS name selection pattern 4832 */ 4833 #define apzRead_Ret_TypeMachs (const char**)NULL 4834 4835 /* 4836 * content selection pattern - do fix if pattern found 4837 */ 4838 tSCC zRead_Ret_TypeSelect0[] = 4839 "extern int\t.*, fread\\(\\), fwrite\\(\\)"; 4840 4841 #define READ_RET_TYPE_TEST_CT 1 4842 static tTestDesc aRead_Ret_TypeTests[] = { 4843 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, }; 4844 4845 /* 4846 * Fix Command Arguments for Read_Ret_Type 4847 */ 4848 static const char* apzRead_Ret_TypePatch[] = { 4849 "format", 4850 "extern unsigned int fread(), fwrite();\n\ 4851 %1%2", 4852 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)", 4853 (char*)NULL }; 4854 4855 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4856 * 4857 * Description of Rpc_Xdr_Lvalue_Cast_A fix 4858 */ 4859 tSCC zRpc_Xdr_Lvalue_Cast_AName[] = 4860 "rpc_xdr_lvalue_cast_a"; 4861 4862 /* 4863 * File name selection pattern 4864 */ 4865 tSCC zRpc_Xdr_Lvalue_Cast_AList[] = 4866 "|rpc/xdr.h|"; 4867 /* 4868 * Machine/OS name selection pattern 4869 */ 4870 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL 4871 4872 /* 4873 * content selection pattern - do fix if pattern found 4874 */ 4875 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] = 4876 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\ 4877 .*__extension__.*"; 4878 4879 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1 4880 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = { 4881 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, }; 4882 4883 /* 4884 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A 4885 */ 4886 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = { 4887 "format", 4888 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))", 4889 (char*)NULL }; 4890 4891 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4892 * 4893 * Description of Rpc_Xdr_Lvalue_Cast_B fix 4894 */ 4895 tSCC zRpc_Xdr_Lvalue_Cast_BName[] = 4896 "rpc_xdr_lvalue_cast_b"; 4897 4898 /* 4899 * File name selection pattern 4900 */ 4901 tSCC zRpc_Xdr_Lvalue_Cast_BList[] = 4902 "|rpc/xdr.h|"; 4903 /* 4904 * Machine/OS name selection pattern 4905 */ 4906 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL 4907 4908 /* 4909 * content selection pattern - do fix if pattern found 4910 */ 4911 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] = 4912 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\ 4913 .*__extension__.*"; 4914 4915 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1 4916 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = { 4917 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, }; 4918 4919 /* 4920 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B 4921 */ 4922 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = { 4923 "format", 4924 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))", 4925 (char*)NULL }; 4926 4927 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4928 * 4929 * Description of Rs6000_Double fix 4930 */ 4931 tSCC zRs6000_DoubleName[] = 4932 "rs6000_double"; 4933 4934 /* 4935 * File name selection pattern 4936 */ 4937 tSCC zRs6000_DoubleList[] = 4938 "|math.h|"; 4939 /* 4940 * Machine/OS name selection pattern 4941 */ 4942 #define apzRs6000_DoubleMachs (const char**)NULL 4943 4944 /* 4945 * content selection pattern - do fix if pattern found 4946 */ 4947 tSCC zRs6000_DoubleSelect0[] = 4948 "[^a-zA-Z_]class\\("; 4949 4950 #define RS6000_DOUBLE_TEST_CT 1 4951 static tTestDesc aRs6000_DoubleTests[] = { 4952 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, }; 4953 4954 /* 4955 * Fix Command Arguments for Rs6000_Double 4956 */ 4957 static const char* apzRs6000_DoublePatch[] = { 4958 "format", 4959 "#ifndef __cplusplus\n\ 4960 %0\n\ 4961 #endif", 4962 "^.*[^a-zA-Z_]class\\(.*", 4963 (char*)NULL }; 4964 4965 /* * * * * * * * * * * * * * * * * * * * * * * * * * 4966 * 4967 * Description of Rs6000_Fchmod fix 4968 */ 4969 tSCC zRs6000_FchmodName[] = 4970 "rs6000_fchmod"; 4971 4972 /* 4973 * File name selection pattern 4974 */ 4975 tSCC zRs6000_FchmodList[] = 4976 "|sys/stat.h|"; 4977 /* 4978 * Machine/OS name selection pattern 4979 */ 4980 #define apzRs6000_FchmodMachs (const char**)NULL 4981 4982 /* 4983 * content selection pattern - do fix if pattern found 4984 */ 4985 tSCC zRs6000_FchmodSelect0[] = 4986 "fchmod\\(char \\*"; 4987 4988 #define RS6000_FCHMOD_TEST_CT 1 4989 static tTestDesc aRs6000_FchmodTests[] = { 4990 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, }; 4991 4992 /* 4993 * Fix Command Arguments for Rs6000_Fchmod 4994 */ 4995 static const char* apzRs6000_FchmodPatch[] = { 4996 "format", 4997 "fchmod(int", 4998 (char*)NULL }; 4999 5000 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5001 * 5002 * Description of Rs6000_Param fix 5003 */ 5004 tSCC zRs6000_ParamName[] = 5005 "rs6000_param"; 5006 5007 /* 5008 * File name selection pattern 5009 */ 5010 tSCC zRs6000_ParamList[] = 5011 "|stdio.h|unistd.h|"; 5012 /* 5013 * Machine/OS name selection pattern 5014 */ 5015 #define apzRs6000_ParamMachs (const char**)NULL 5016 5017 /* 5018 * content selection pattern - do fix if pattern found 5019 */ 5020 tSCC zRs6000_ParamSelect0[] = 5021 "rename\\(const char \\*old, const char \\*new\\)"; 5022 5023 #define RS6000_PARAM_TEST_CT 1 5024 static tTestDesc aRs6000_ParamTests[] = { 5025 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, }; 5026 5027 /* 5028 * Fix Command Arguments for Rs6000_Param 5029 */ 5030 static const char* apzRs6000_ParamPatch[] = { 5031 "format", 5032 "rename(const char *_old, const char *_new)", 5033 (char*)NULL }; 5034 5035 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5036 * 5037 * Description of Sco_Math fix 5038 */ 5039 tSCC zSco_MathName[] = 5040 "sco_math"; 5041 5042 /* 5043 * File name selection pattern 5044 */ 5045 tSCC zSco_MathList[] = 5046 "|math.h|ansi/math.h|posix/math.h|xpg4/math.h|xpg4v2/math.h|xpg4plus/math.h|ods_30_compat/math.h|oldstyle/math.h|"; 5047 /* 5048 * Machine/OS name selection pattern 5049 */ 5050 #define apzSco_MathMachs (const char**)NULL 5051 5052 /* 5053 * content selection pattern - do fix if pattern found 5054 */ 5055 tSCC zSco_MathSelect0[] = 5056 "inline double abs"; 5057 5058 /* 5059 * content bypass pattern - skip fix if pattern found 5060 */ 5061 tSCC zSco_MathBypass0[] = 5062 "__GNUG__"; 5063 5064 #define SCO_MATH_TEST_CT 2 5065 static tTestDesc aSco_MathTests[] = { 5066 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL }, 5067 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, }; 5068 5069 /* 5070 * Fix Command Arguments for Sco_Math 5071 */ 5072 static const char* apzSco_MathPatch[] = { "sed", 5073 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\ 5074 #ifndef __GNUC__\n", 5075 "-e", "/.*__builtin_generic/a\\\n\ 5076 #else\\\n\ 5077 #define __fp_class(a) \\\\\\\n\ 5078 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\ 5079 __fpclassifyl(a), \\\\\\\n\ 5080 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\ 5081 __fpclassifyf(a),__fpclassify(a)))\\\n\ 5082 #endif", 5083 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\ 5084 #ifndef __GNUC__\n", 5085 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\ 5086 #endif /* ! __GNUC__ */", 5087 (char*)NULL }; 5088 5089 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5090 * 5091 * Description of Sco_Regset fix 5092 */ 5093 tSCC zSco_RegsetName[] = 5094 "sco_regset"; 5095 5096 /* 5097 * File name selection pattern 5098 */ 5099 tSCC zSco_RegsetList[] = 5100 "|sys/regset.h|"; 5101 /* 5102 * Machine/OS name selection pattern 5103 */ 5104 tSCC* apzSco_RegsetMachs[] = { 5105 "*-*-sco3.2v5*", 5106 (const char*)NULL }; 5107 5108 /* 5109 * content selection pattern - do fix if pattern found 5110 */ 5111 tSCC zSco_RegsetSelect0[] = 5112 "(struct[ \t]+.*)fpstate"; 5113 5114 #define SCO_REGSET_TEST_CT 1 5115 static tTestDesc aSco_RegsetTests[] = { 5116 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, }; 5117 5118 /* 5119 * Fix Command Arguments for Sco_Regset 5120 */ 5121 static const char* apzSco_RegsetPatch[] = { 5122 "format", 5123 "%1rsfpstate", 5124 (char*)NULL }; 5125 5126 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5127 * 5128 * Description of Sco_Static_Func fix 5129 */ 5130 tSCC zSco_Static_FuncName[] = 5131 "sco_static_func"; 5132 5133 /* 5134 * File name selection pattern 5135 */ 5136 tSCC zSco_Static_FuncList[] = 5137 "|sys/stat.h|"; 5138 /* 5139 * Machine/OS name selection pattern 5140 */ 5141 tSCC* apzSco_Static_FuncMachs[] = { 5142 "i?86-*-sco3.2*", 5143 (const char*)NULL }; 5144 5145 /* 5146 * content selection pattern - do fix if pattern found 5147 */ 5148 tSCC zSco_Static_FuncSelect0[] = 5149 "^static int"; 5150 5151 #define SCO_STATIC_FUNC_TEST_CT 1 5152 static tTestDesc aSco_Static_FuncTests[] = { 5153 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, }; 5154 5155 /* 5156 * Fix Command Arguments for Sco_Static_Func 5157 */ 5158 static const char* apzSco_Static_FuncPatch[] = { "sed", 5159 "-e", "/^static int/i\\\n\ 5160 #if __cplusplus\\\n\ 5161 extern \"C\" {\\\n\ 5162 #endif /* __cplusplus */", 5163 "-e", "/^}$/a\\\n\ 5164 #if __cplusplus\\\n\ 5165 }\\\n\ 5166 #endif /* __cplusplus */", 5167 (char*)NULL }; 5168 5169 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5170 * 5171 * Description of Sco_Utime fix 5172 */ 5173 tSCC zSco_UtimeName[] = 5174 "sco_utime"; 5175 5176 /* 5177 * File name selection pattern 5178 */ 5179 tSCC zSco_UtimeList[] = 5180 "|sys/times.h|"; 5181 /* 5182 * Machine/OS name selection pattern 5183 */ 5184 tSCC* apzSco_UtimeMachs[] = { 5185 "i?86-*-sco3.2v4*", 5186 (const char*)NULL }; 5187 5188 /* 5189 * content selection pattern - do fix if pattern found 5190 */ 5191 tSCC zSco_UtimeSelect0[] = 5192 "\\(const char \\*, struct utimbuf \\*\\);"; 5193 5194 #define SCO_UTIME_TEST_CT 1 5195 static tTestDesc aSco_UtimeTests[] = { 5196 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, }; 5197 5198 /* 5199 * Fix Command Arguments for Sco_Utime 5200 */ 5201 static const char* apzSco_UtimePatch[] = { 5202 "format", 5203 "(const char *, const struct utimbuf *);", 5204 (char*)NULL }; 5205 5206 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5207 * 5208 * Description of Solaris_Math_1 fix 5209 */ 5210 tSCC zSolaris_Math_1Name[] = 5211 "solaris_math_1"; 5212 5213 /* 5214 * File name selection pattern 5215 */ 5216 tSCC zSolaris_Math_1List[] = 5217 "|iso/math_c99.h|"; 5218 /* 5219 * Machine/OS name selection pattern 5220 */ 5221 #define apzSolaris_Math_1Machs (const char**)NULL 5222 5223 /* 5224 * content selection pattern - do fix if pattern found 5225 */ 5226 tSCC zSolaris_Math_1Select0[] = 5227 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5228 5229 /* 5230 * content bypass pattern - skip fix if pattern found 5231 */ 5232 tSCC zSolaris_Math_1Bypass0[] = 5233 "__GNUC__"; 5234 5235 #define SOLARIS_MATH_1_TEST_CT 2 5236 static tTestDesc aSolaris_Math_1Tests[] = { 5237 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL }, 5238 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, }; 5239 5240 /* 5241 * Fix Command Arguments for Solaris_Math_1 5242 */ 5243 static const char* apzSolaris_Math_1Patch[] = { 5244 "format", 5245 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())", 5246 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)", 5247 (char*)NULL }; 5248 5249 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5250 * 5251 * Description of Solaris_Math_2 fix 5252 */ 5253 tSCC zSolaris_Math_2Name[] = 5254 "solaris_math_2"; 5255 5256 /* 5257 * File name selection pattern 5258 */ 5259 tSCC zSolaris_Math_2List[] = 5260 "|iso/math_c99.h|"; 5261 /* 5262 * Machine/OS name selection pattern 5263 */ 5264 #define apzSolaris_Math_2Machs (const char**)NULL 5265 5266 /* 5267 * content selection pattern - do fix if pattern found 5268 */ 5269 tSCC zSolaris_Math_2Select0[] = 5270 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5271 5272 /* 5273 * content bypass pattern - skip fix if pattern found 5274 */ 5275 tSCC zSolaris_Math_2Bypass0[] = 5276 "__GNUC__"; 5277 5278 #define SOLARIS_MATH_2_TEST_CT 2 5279 static tTestDesc aSolaris_Math_2Tests[] = { 5280 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL }, 5281 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, }; 5282 5283 /* 5284 * Fix Command Arguments for Solaris_Math_2 5285 */ 5286 static const char* apzSolaris_Math_2Patch[] = { 5287 "format", 5288 "#define\tINFINITY\t(__builtin_inff())", 5289 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity", 5290 (char*)NULL }; 5291 5292 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5293 * 5294 * Description of Solaris_Math_3 fix 5295 */ 5296 tSCC zSolaris_Math_3Name[] = 5297 "solaris_math_3"; 5298 5299 /* 5300 * File name selection pattern 5301 */ 5302 tSCC zSolaris_Math_3List[] = 5303 "|iso/math_c99.h|"; 5304 /* 5305 * Machine/OS name selection pattern 5306 */ 5307 #define apzSolaris_Math_3Machs (const char**)NULL 5308 5309 /* 5310 * content selection pattern - do fix if pattern found 5311 */ 5312 tSCC zSolaris_Math_3Select0[] = 5313 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5314 5315 /* 5316 * content bypass pattern - skip fix if pattern found 5317 */ 5318 tSCC zSolaris_Math_3Bypass0[] = 5319 "__GNUC__"; 5320 5321 #define SOLARIS_MATH_3_TEST_CT 2 5322 static tTestDesc aSolaris_Math_3Tests[] = { 5323 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL }, 5324 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, }; 5325 5326 /* 5327 * Fix Command Arguments for Solaris_Math_3 5328 */ 5329 static const char* apzSolaris_Math_3Patch[] = { 5330 "format", 5331 "#define\tNAN\t\t(__builtin_nanf(\"\"))", 5332 "^#define[ \t]+NAN[ \t]+__builtin_nan", 5333 (char*)NULL }; 5334 5335 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5336 * 5337 * Description of Solaris_Math_4 fix 5338 */ 5339 tSCC zSolaris_Math_4Name[] = 5340 "solaris_math_4"; 5341 5342 /* 5343 * File name selection pattern 5344 */ 5345 tSCC zSolaris_Math_4List[] = 5346 "|iso/math_c99.h|"; 5347 /* 5348 * Machine/OS name selection pattern 5349 */ 5350 #define apzSolaris_Math_4Machs (const char**)NULL 5351 5352 /* 5353 * content selection pattern - do fix if pattern found 5354 */ 5355 tSCC zSolaris_Math_4Select0[] = 5356 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5357 5358 /* 5359 * content bypass pattern - skip fix if pattern found 5360 */ 5361 tSCC zSolaris_Math_4Bypass0[] = 5362 "__GNUC__"; 5363 5364 #define SOLARIS_MATH_4_TEST_CT 2 5365 static tTestDesc aSolaris_Math_4Tests[] = { 5366 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL }, 5367 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, }; 5368 5369 /* 5370 * Fix Command Arguments for Solaris_Math_4 5371 */ 5372 static const char* apzSolaris_Math_4Patch[] = { 5373 "format", 5374 "#define\tfpclassify(x) \\\n\ 5375 __extension__ ({ __typeof(x) __x_fp = (x); \\\n\ 5376 \t\t isnan(__x_fp) \\\n\ 5377 \t\t ? FP_NAN \\\n\ 5378 \t\t : isinf(__x_fp) \\\n\ 5379 \t\t ? FP_INFINITE \\\n\ 5380 \t\t : isnormal(__x_fp) \\\n\ 5381 \t\t\t ? FP_NORMAL \\\n\ 5382 \t\t\t : __x_fp == 0.0 \\\n\ 5383 \t\t\t ? FP_ZERO \\\n\ 5384 \t\t\t : FP_SUBNORMAL; })", 5385 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)", 5386 (char*)NULL }; 5387 5388 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5389 * 5390 * Description of Solaris_Math_5 fix 5391 */ 5392 tSCC zSolaris_Math_5Name[] = 5393 "solaris_math_5"; 5394 5395 /* 5396 * File name selection pattern 5397 */ 5398 tSCC zSolaris_Math_5List[] = 5399 "|iso/math_c99.h|"; 5400 /* 5401 * Machine/OS name selection pattern 5402 */ 5403 #define apzSolaris_Math_5Machs (const char**)NULL 5404 5405 /* 5406 * content selection pattern - do fix if pattern found 5407 */ 5408 tSCC zSolaris_Math_5Select0[] = 5409 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5410 5411 /* 5412 * content bypass pattern - skip fix if pattern found 5413 */ 5414 tSCC zSolaris_Math_5Bypass0[] = 5415 "__GNUC__"; 5416 5417 #define SOLARIS_MATH_5_TEST_CT 2 5418 static tTestDesc aSolaris_Math_5Tests[] = { 5419 { TT_NEGREP, zSolaris_Math_5Bypass0, (regex_t*)NULL }, 5420 { TT_EGREP, zSolaris_Math_5Select0, (regex_t*)NULL }, }; 5421 5422 /* 5423 * Fix Command Arguments for Solaris_Math_5 5424 */ 5425 static const char* apzSolaris_Math_5Patch[] = { 5426 "format", 5427 "#define\tisfinite(x) \\\n\ 5428 __extension__ ({ __typeof (x) __x_f = (x); \\\n\ 5429 \t\t __builtin_expect(!isnan(__x_f - __x_f), 1); })", 5430 "^#define[ \t]+isfinite\\(x\\)[ \t]+__builtin_isfinite\\(x\\)", 5431 (char*)NULL }; 5432 5433 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5434 * 5435 * Description of Solaris_Math_6 fix 5436 */ 5437 tSCC zSolaris_Math_6Name[] = 5438 "solaris_math_6"; 5439 5440 /* 5441 * File name selection pattern 5442 */ 5443 tSCC zSolaris_Math_6List[] = 5444 "|iso/math_c99.h|"; 5445 /* 5446 * Machine/OS name selection pattern 5447 */ 5448 #define apzSolaris_Math_6Machs (const char**)NULL 5449 5450 /* 5451 * content selection pattern - do fix if pattern found 5452 */ 5453 tSCC zSolaris_Math_6Select0[] = 5454 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5455 5456 /* 5457 * content bypass pattern - skip fix if pattern found 5458 */ 5459 tSCC zSolaris_Math_6Bypass0[] = 5460 "__GNUC__"; 5461 5462 #define SOLARIS_MATH_6_TEST_CT 2 5463 static tTestDesc aSolaris_Math_6Tests[] = { 5464 { TT_NEGREP, zSolaris_Math_6Bypass0, (regex_t*)NULL }, 5465 { TT_EGREP, zSolaris_Math_6Select0, (regex_t*)NULL }, }; 5466 5467 /* 5468 * Fix Command Arguments for Solaris_Math_6 5469 */ 5470 static const char* apzSolaris_Math_6Patch[] = { 5471 "format", 5472 "#define\tisinf(x) \\\n\ 5473 __extension__ ({ __typeof (x) __x_i = (x); \\\n\ 5474 \t\t __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })", 5475 "^#define[ \t]+isinf\\(x\\)[ \t]+__builtin_isinf\\(x\\)", 5476 (char*)NULL }; 5477 5478 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5479 * 5480 * Description of Solaris_Math_7 fix 5481 */ 5482 tSCC zSolaris_Math_7Name[] = 5483 "solaris_math_7"; 5484 5485 /* 5486 * File name selection pattern 5487 */ 5488 tSCC zSolaris_Math_7List[] = 5489 "|iso/math_c99.h|"; 5490 /* 5491 * Machine/OS name selection pattern 5492 */ 5493 #define apzSolaris_Math_7Machs (const char**)NULL 5494 5495 /* 5496 * content selection pattern - do fix if pattern found 5497 */ 5498 tSCC zSolaris_Math_7Select0[] = 5499 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5500 5501 /* 5502 * content bypass pattern - skip fix if pattern found 5503 */ 5504 tSCC zSolaris_Math_7Bypass0[] = 5505 "__GNUC__"; 5506 5507 #define SOLARIS_MATH_7_TEST_CT 2 5508 static tTestDesc aSolaris_Math_7Tests[] = { 5509 { TT_NEGREP, zSolaris_Math_7Bypass0, (regex_t*)NULL }, 5510 { TT_EGREP, zSolaris_Math_7Select0, (regex_t*)NULL }, }; 5511 5512 /* 5513 * Fix Command Arguments for Solaris_Math_7 5514 */ 5515 static const char* apzSolaris_Math_7Patch[] = { 5516 "format", 5517 "#define\tisnormal(x) \\\n\ 5518 __extension__ ({ __typeof(x) __x_n = (x); \\\n\ 5519 \t\t if (__x_n < 0.0) __x_n = -__x_n; \\\n\ 5520 \t\t __builtin_expect(isfinite(__x_n) \\\n\ 5521 \t\t\t\t && (sizeof(__x_n) == sizeof(float) \\\n\ 5522 \t\t\t\t\t ? __x_n >= __FLT_MIN__ \\\n\ 5523 \t\t\t\t\t : sizeof(__x_n) == sizeof(long double) \\\n\ 5524 \t\t\t\t\t ? __x_n >= __LDBL_MIN__ \\\n\ 5525 \t\t\t\t\t : __x_n >= __DBL_MIN__), 1); })", 5526 "^#define[ \t]+isnormal\\(x\\)[ \t]+__builtin_isnormal\\(x\\)", 5527 (char*)NULL }; 5528 5529 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5530 * 5531 * Description of Solaris_Math_8 fix 5532 */ 5533 tSCC zSolaris_Math_8Name[] = 5534 "solaris_math_8"; 5535 5536 /* 5537 * File name selection pattern 5538 */ 5539 tSCC zSolaris_Math_8List[] = 5540 "|iso/math_c99.h|"; 5541 /* 5542 * Machine/OS name selection pattern 5543 */ 5544 #define apzSolaris_Math_8Machs (const char**)NULL 5545 5546 /* 5547 * content selection pattern - do fix if pattern found 5548 */ 5549 tSCC zSolaris_Math_8Select0[] = 5550 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5551 5552 /* 5553 * content bypass pattern - skip fix if pattern found 5554 */ 5555 tSCC zSolaris_Math_8Bypass0[] = 5556 "__GNUC__"; 5557 5558 #define SOLARIS_MATH_8_TEST_CT 2 5559 static tTestDesc aSolaris_Math_8Tests[] = { 5560 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL }, 5561 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, }; 5562 5563 /* 5564 * Fix Command Arguments for Solaris_Math_8 5565 */ 5566 static const char* apzSolaris_Math_8Patch[] = { 5567 "format", 5568 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ 5569 \t\t\t ? __builtin_signbitf(x) \\\n\ 5570 \t\t\t : sizeof(x) == sizeof(long double) \\\n\ 5571 \t\t\t ? __builtin_signbitl(x) \\\n\ 5572 \t\t\t : __builtin_signbit(x))", 5573 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)", 5574 (char*)NULL }; 5575 5576 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5577 * 5578 * Description of Solaris_Math_9 fix 5579 */ 5580 tSCC zSolaris_Math_9Name[] = 5581 "solaris_math_9"; 5582 5583 /* 5584 * File name selection pattern 5585 */ 5586 tSCC zSolaris_Math_9List[] = 5587 "|iso/math_c99.h|"; 5588 /* 5589 * Machine/OS name selection pattern 5590 */ 5591 #define apzSolaris_Math_9Machs (const char**)NULL 5592 5593 /* 5594 * content selection pattern - do fix if pattern found 5595 */ 5596 tSCC zSolaris_Math_9Select0[] = 5597 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5598 5599 /* 5600 * content bypass pattern - skip fix if pattern found 5601 */ 5602 tSCC zSolaris_Math_9Bypass0[] = 5603 "__GNUC__"; 5604 5605 #define SOLARIS_MATH_9_TEST_CT 2 5606 static tTestDesc aSolaris_Math_9Tests[] = { 5607 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL }, 5608 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, }; 5609 5610 /* 5611 * Fix Command Arguments for Solaris_Math_9 5612 */ 5613 static const char* apzSolaris_Math_9Patch[] = { 5614 "format", 5615 "#define\t%1(x, y)%2__builtin_%1(x, y)", 5616 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)", 5617 (char*)NULL }; 5618 5619 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5620 * 5621 * Description of Solaris_Mutex_Init_1 fix 5622 */ 5623 tSCC zSolaris_Mutex_Init_1Name[] = 5624 "solaris_mutex_init_1"; 5625 5626 /* 5627 * File name selection pattern 5628 */ 5629 tSCC zSolaris_Mutex_Init_1List[] = 5630 "|pthread.h|"; 5631 /* 5632 * Machine/OS name selection pattern 5633 */ 5634 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL 5635 5636 /* 5637 * content selection pattern - do fix if pattern found 5638 */ 5639 tSCC zSolaris_Mutex_Init_1Select0[] = 5640 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI"; 5641 5642 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1 5643 static tTestDesc aSolaris_Mutex_Init_1Tests[] = { 5644 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, }; 5645 5646 /* 5647 * Fix Command Arguments for Solaris_Mutex_Init_1 5648 */ 5649 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed", 5650 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\ 5651 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/", 5652 (char*)NULL }; 5653 5654 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5655 * 5656 * Description of Solaris_Mutex_Init_2 fix 5657 */ 5658 tSCC zSolaris_Mutex_Init_2Name[] = 5659 "solaris_mutex_init_2"; 5660 5661 /* 5662 * File name selection pattern 5663 */ 5664 tSCC zSolaris_Mutex_Init_2List[] = 5665 "|pthread.h|"; 5666 /* 5667 * Machine/OS name selection pattern 5668 */ 5669 tSCC* apzSolaris_Mutex_Init_2Machs[] = { 5670 "*-*-solaris2.[0-9]", 5671 "*-*-solaris2.[0-9][!0-9]*", 5672 (const char*)NULL }; 5673 5674 /* 5675 * content selection pattern - do fix if pattern found 5676 */ 5677 tSCC zSolaris_Mutex_Init_2Select0[] = 5678 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5679 5680 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1 5681 static tTestDesc aSolaris_Mutex_Init_2Tests[] = { 5682 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, }; 5683 5684 /* 5685 * Fix Command Arguments for Solaris_Mutex_Init_2 5686 */ 5687 static const char* apzSolaris_Mutex_Init_2Patch[] = { 5688 "format", 5689 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ 5690 %0\n\ 5691 #else\n\ 5692 %1, {0}}%4\n\ 5693 #endif", 5694 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\ 5695 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$", 5696 (char*)NULL }; 5697 5698 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5699 * 5700 * Description of Solaris_Rwlock_Init_1 fix 5701 */ 5702 tSCC zSolaris_Rwlock_Init_1Name[] = 5703 "solaris_rwlock_init_1"; 5704 5705 /* 5706 * File name selection pattern 5707 */ 5708 tSCC zSolaris_Rwlock_Init_1List[] = 5709 "|pthread.h|"; 5710 /* 5711 * Machine/OS name selection pattern 5712 */ 5713 tSCC* apzSolaris_Rwlock_Init_1Machs[] = { 5714 "*-*-solaris*", 5715 (const char*)NULL }; 5716 5717 /* 5718 * content selection pattern - do fix if pattern found 5719 */ 5720 tSCC zSolaris_Rwlock_Init_1Select0[] = 5721 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5722 5723 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1 5724 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = { 5725 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, }; 5726 5727 /* 5728 * Fix Command Arguments for Solaris_Rwlock_Init_1 5729 */ 5730 static const char* apzSolaris_Rwlock_Init_1Patch[] = { 5731 "format", 5732 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ 5733 %0\n\ 5734 #else\n\ 5735 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\ 5736 #endif", 5737 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$", 5738 (char*)NULL }; 5739 5740 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5741 * 5742 * Description of Solaris_Once_Init_1 fix 5743 */ 5744 tSCC zSolaris_Once_Init_1Name[] = 5745 "solaris_once_init_1"; 5746 5747 /* 5748 * File name selection pattern 5749 */ 5750 tSCC zSolaris_Once_Init_1List[] = 5751 "|pthread.h|"; 5752 /* 5753 * Machine/OS name selection pattern 5754 */ 5755 tSCC* apzSolaris_Once_Init_1Machs[] = { 5756 "*-*-solaris*", 5757 (const char*)NULL }; 5758 5759 /* 5760 * content selection pattern - do fix if pattern found 5761 */ 5762 tSCC zSolaris_Once_Init_1Select0[] = 5763 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5764 5765 #define SOLARIS_ONCE_INIT_1_TEST_CT 1 5766 static tTestDesc aSolaris_Once_Init_1Tests[] = { 5767 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, }; 5768 5769 /* 5770 * Fix Command Arguments for Solaris_Once_Init_1 5771 */ 5772 static const char* apzSolaris_Once_Init_1Patch[] = { 5773 "format", 5774 "%1{%2}%3", 5775 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$", 5776 (char*)NULL }; 5777 5778 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5779 * 5780 * Description of Solaris_Once_Init_2 fix 5781 */ 5782 tSCC zSolaris_Once_Init_2Name[] = 5783 "solaris_once_init_2"; 5784 5785 /* 5786 * File name selection pattern 5787 */ 5788 tSCC zSolaris_Once_Init_2List[] = 5789 "|pthread.h|"; 5790 /* 5791 * Machine/OS name selection pattern 5792 */ 5793 tSCC* apzSolaris_Once_Init_2Machs[] = { 5794 "*-*-solaris2.[0-9]", 5795 "*-*-solaris2.[0-9][!0-9]*", 5796 (const char*)NULL }; 5797 5798 /* 5799 * content selection pattern - do fix if pattern found 5800 */ 5801 tSCC zSolaris_Once_Init_2Select0[] = 5802 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; 5803 5804 #define SOLARIS_ONCE_INIT_2_TEST_CT 1 5805 static tTestDesc aSolaris_Once_Init_2Tests[] = { 5806 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, }; 5807 5808 /* 5809 * Fix Command Arguments for Solaris_Once_Init_2 5810 */ 5811 static const char* apzSolaris_Once_Init_2Patch[] = { 5812 "format", 5813 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ 5814 %0\n\ 5815 #else\n\ 5816 %1{0}, {0}, {0}, {%3}%4\n\ 5817 #endif", 5818 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$", 5819 (char*)NULL }; 5820 5821 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5822 * 5823 * Description of Solaris_Socket fix 5824 */ 5825 tSCC zSolaris_SocketName[] = 5826 "solaris_socket"; 5827 5828 /* 5829 * File name selection pattern 5830 */ 5831 tSCC zSolaris_SocketList[] = 5832 "|sys/socket.h|"; 5833 /* 5834 * Machine/OS name selection pattern 5835 */ 5836 #define apzSolaris_SocketMachs (const char**)NULL 5837 5838 /* 5839 * content selection pattern - do fix if pattern found 5840 */ 5841 tSCC zSolaris_SocketSelect0[] = 5842 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI"; 5843 5844 #define SOLARIS_SOCKET_TEST_CT 1 5845 static tTestDesc aSolaris_SocketTests[] = { 5846 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, }; 5847 5848 /* 5849 * Fix Command Arguments for Solaris_Socket 5850 */ 5851 static const char* apzSolaris_SocketPatch[] = { 5852 "format", 5853 "extern int %1(int, %2void *, int, int);", 5854 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);", 5855 (char*)NULL }; 5856 5857 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5858 * 5859 * Description of Solaris_Stdio_Tag fix 5860 */ 5861 tSCC zSolaris_Stdio_TagName[] = 5862 "solaris_stdio_tag"; 5863 5864 /* 5865 * File name selection pattern 5866 */ 5867 tSCC zSolaris_Stdio_TagList[] = 5868 "|stdio_tag.h|"; 5869 /* 5870 * Machine/OS name selection pattern 5871 */ 5872 #define apzSolaris_Stdio_TagMachs (const char**)NULL 5873 5874 /* 5875 * content selection pattern - do fix if pattern found 5876 */ 5877 tSCC zSolaris_Stdio_TagSelect0[] = 5878 "__cplusplus < 54321L"; 5879 5880 /* 5881 * content bypass pattern - skip fix if pattern found 5882 */ 5883 tSCC zSolaris_Stdio_TagBypass0[] = 5884 "__GNUC__"; 5885 5886 #define SOLARIS_STDIO_TAG_TEST_CT 2 5887 static tTestDesc aSolaris_Stdio_TagTests[] = { 5888 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL }, 5889 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, }; 5890 5891 /* 5892 * Fix Command Arguments for Solaris_Stdio_Tag 5893 */ 5894 static const char* apzSolaris_Stdio_TagPatch[] = { "sed", 5895 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/", 5896 (char*)NULL }; 5897 5898 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5899 * 5900 * Description of Solaris_Unistd fix 5901 */ 5902 tSCC zSolaris_UnistdName[] = 5903 "solaris_unistd"; 5904 5905 /* 5906 * File name selection pattern 5907 */ 5908 tSCC zSolaris_UnistdList[] = 5909 "|unistd.h|"; 5910 /* 5911 * Machine/OS name selection pattern 5912 */ 5913 #define apzSolaris_UnistdMachs (const char**)NULL 5914 5915 /* 5916 * content selection pattern - do fix if pattern found 5917 */ 5918 tSCC zSolaris_UnistdSelect0[] = 5919 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI"; 5920 5921 /* 5922 * content bypass pattern - skip fix if pattern found 5923 */ 5924 tSCC zSolaris_UnistdBypass0[] = 5925 "getpagesize"; 5926 5927 #define SOLARIS_UNISTD_TEST_CT 2 5928 static tTestDesc aSolaris_UnistdTests[] = { 5929 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL }, 5930 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, }; 5931 5932 /* 5933 * Fix Command Arguments for Solaris_Unistd 5934 */ 5935 static const char* apzSolaris_UnistdPatch[] = { 5936 "format", 5937 "extern int getpagesize();\n\ 5938 %0", 5939 "^extern (pid_t|int) getpgid\\(.*\\);", 5940 (char*)NULL }; 5941 5942 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5943 * 5944 * Description of Solaris_Widec fix 5945 */ 5946 tSCC zSolaris_WidecName[] = 5947 "solaris_widec"; 5948 5949 /* 5950 * File name selection pattern 5951 */ 5952 tSCC zSolaris_WidecList[] = 5953 "|widec.h|"; 5954 /* 5955 * Machine/OS name selection pattern 5956 */ 5957 tSCC* apzSolaris_WidecMachs[] = { 5958 "*-*-solaris2.[0-5]", 5959 "*-*-solaris2.[0-5].*", 5960 (const char*)NULL }; 5961 5962 /* 5963 * content selection pattern - do fix if pattern found 5964 */ 5965 tSCC zSolaris_WidecSelect0[] = 5966 "#include <euc.h>"; 5967 5968 /* 5969 * content bypass pattern - skip fix if pattern found 5970 */ 5971 tSCC zSolaris_WidecBypass0[] = 5972 "include.*wchar\\.h"; 5973 5974 #define SOLARIS_WIDEC_TEST_CT 2 5975 static tTestDesc aSolaris_WidecTests[] = { 5976 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL }, 5977 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, }; 5978 5979 /* 5980 * Fix Command Arguments for Solaris_Widec 5981 */ 5982 static const char* apzSolaris_WidecPatch[] = { 5983 "format", 5984 "%0\n\ 5985 #include <wchar.h>", 5986 (char*)NULL }; 5987 5988 /* * * * * * * * * * * * * * * * * * * * * * * * * * 5989 * 5990 * Description of Statsswtch fix 5991 */ 5992 tSCC zStatsswtchName[] = 5993 "statsswtch"; 5994 5995 /* 5996 * File name selection pattern 5997 */ 5998 tSCC zStatsswtchList[] = 5999 "|rpcsvc/rstat.h|"; 6000 /* 6001 * Machine/OS name selection pattern 6002 */ 6003 #define apzStatsswtchMachs (const char**)NULL 6004 6005 /* 6006 * content selection pattern - do fix if pattern found 6007 */ 6008 tSCC zStatsswtchSelect0[] = 6009 "boottime$"; 6010 6011 #define STATSSWTCH_TEST_CT 1 6012 static tTestDesc aStatsswtchTests[] = { 6013 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, }; 6014 6015 /* 6016 * Fix Command Arguments for Statsswtch 6017 */ 6018 static const char* apzStatsswtchPatch[] = { 6019 "format", 6020 "boottime;", 6021 (char*)NULL }; 6022 6023 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6024 * 6025 * Description of Stdio_Stdarg_H fix 6026 */ 6027 tSCC zStdio_Stdarg_HName[] = 6028 "stdio_stdarg_h"; 6029 6030 /* 6031 * File name selection pattern 6032 */ 6033 tSCC zStdio_Stdarg_HList[] = 6034 "|stdio.h|"; 6035 /* 6036 * Machine/OS name selection pattern 6037 */ 6038 tSCC* apzStdio_Stdarg_HMachs[] = { 6039 "*-*-solaris2.1[0-9]*", 6040 (const char*)NULL }; 6041 6042 /* 6043 * content bypass pattern - skip fix if pattern found 6044 */ 6045 tSCC zStdio_Stdarg_HBypass0[] = 6046 "include.*(stdarg.h|machine/ansi.h)"; 6047 6048 #define STDIO_STDARG_H_TEST_CT 1 6049 static tTestDesc aStdio_Stdarg_HTests[] = { 6050 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, }; 6051 6052 /* 6053 * Fix Command Arguments for Stdio_Stdarg_H 6054 */ 6055 static const char* apzStdio_Stdarg_HPatch[] = { 6056 "wrap", 6057 "#define __need___va_list\n\ 6058 #include <stdarg.h>\n", 6059 (char*)NULL }; 6060 6061 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6062 * 6063 * Description of Stdio_Va_List fix 6064 */ 6065 tSCC zStdio_Va_ListName[] = 6066 "stdio_va_list"; 6067 6068 /* 6069 * File name selection pattern 6070 */ 6071 tSCC zStdio_Va_ListList[] = 6072 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|"; 6073 /* 6074 * Machine/OS name selection pattern 6075 */ 6076 tSCC* apzStdio_Va_ListMachs[] = { 6077 "*-*-solaris2.1[0-9]*", 6078 (const char*)NULL }; 6079 6080 /* 6081 * content bypass pattern - skip fix if pattern found 6082 */ 6083 tSCC zStdio_Va_ListBypass0[] = 6084 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; 6085 6086 #define STDIO_VA_LIST_TEST_CT 1 6087 static tTestDesc aStdio_Va_ListTests[] = { 6088 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, }; 6089 6090 /* 6091 * Fix Command Arguments for Stdio_Va_List 6092 */ 6093 static const char* apzStdio_Va_ListPatch[] = { "sed", 6094 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ 6095 s@(va_list)&@(__gnuc_va_list)\\&@\n\ 6096 s@ _VA_LIST_));@ __gnuc_va_list));@\n\ 6097 s@ __VA_LIST__));@ __gnuc_va_list));@\n\ 6098 s@ va_list@ __not_va_list__@\n\ 6099 s@\\*va_list@*__not_va_list__@\n\ 6100 s@ __va_list)@ __gnuc_va_list)@\n\ 6101 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ 6102 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ 6103 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ 6104 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ 6105 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ 6106 s@VA_LIST@DUMMY_VA_LIST@\n\ 6107 s@_Va_LIST@_VA_LIST@", 6108 (char*)NULL }; 6109 6110 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6111 * 6112 * Description of Stdio_Va_List_Clients fix 6113 */ 6114 tSCC zStdio_Va_List_ClientsName[] = 6115 "stdio_va_list_clients"; 6116 6117 /* 6118 * File name selection pattern 6119 */ 6120 tSCC zStdio_Va_List_ClientsList[] = 6121 "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|"; 6122 /* 6123 * Machine/OS name selection pattern 6124 */ 6125 #define apzStdio_Va_List_ClientsMachs (const char**)NULL 6126 6127 /* 6128 * content bypass pattern - skip fix if pattern found 6129 */ 6130 tSCC zStdio_Va_List_ClientsBypass0[] = 6131 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; 6132 tSCC zStdio_Va_List_ClientsBypass1[] = 6133 "include <stdarg\\.h>|#ifdef va_start"; 6134 6135 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2 6136 static tTestDesc aStdio_Va_List_ClientsTests[] = { 6137 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL }, 6138 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, }; 6139 6140 /* 6141 * Fix Command Arguments for Stdio_Va_List_Clients 6142 */ 6143 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed", 6144 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ 6145 s@(va_list)&@(__gnuc_va_list)\\&@\n\ 6146 s@ _VA_LIST_));@ __gnuc_va_list));@\n\ 6147 s@ __VA_LIST__));@ __gnuc_va_list));@\n\ 6148 s@ va_list@ __not_va_list__@\n\ 6149 s@\\*va_list@*__not_va_list__@\n\ 6150 s@ __va_list)@ __gnuc_va_list)@\n\ 6151 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ 6152 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ 6153 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ 6154 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ 6155 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ 6156 s@VA_LIST@DUMMY_VA_LIST@\n\ 6157 s@_Va_LIST@_VA_LIST@", 6158 (char*)NULL }; 6159 6160 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6161 * 6162 * Description of Strict_Ansi_Not fix 6163 */ 6164 tSCC zStrict_Ansi_NotName[] = 6165 "strict_ansi_not"; 6166 6167 /* 6168 * File name selection pattern 6169 */ 6170 #define zStrict_Ansi_NotList (char*)NULL 6171 /* 6172 * Machine/OS name selection pattern 6173 */ 6174 #define apzStrict_Ansi_NotMachs (const char**)NULL 6175 6176 /* 6177 * content selection pattern - do fix if pattern found 6178 */ 6179 tSCC zStrict_Ansi_NotSelect0[] = 6180 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)"; 6181 6182 /* 6183 * content bypass pattern - skip fix if pattern found 6184 */ 6185 tSCC zStrict_Ansi_NotBypass0[] = 6186 "GNU and MIPS C compilers define __STDC__ differently"; 6187 tSCC zStrict_Ansi_NotBypass1[] = 6188 "__SCO_VERSION__.*__STDC__ != 1"; 6189 6190 /* 6191 * perform the C function call test 6192 */ 6193 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers"; 6194 6195 #define STRICT_ANSI_NOT_TEST_CT 4 6196 static tTestDesc aStrict_Ansi_NotTests[] = { 6197 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ }, 6198 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL }, 6199 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL }, 6200 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, }; 6201 6202 /* 6203 * Fix Command Arguments for Strict_Ansi_Not 6204 */ 6205 static const char* apzStrict_Ansi_NotPatch[] = { 6206 "format", 6207 "%1 !defined(__STRICT_ANSI__)", 6208 (char*)NULL }; 6209 6210 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6211 * 6212 * Description of Strict_Ansi_Not_Ctd fix 6213 */ 6214 tSCC zStrict_Ansi_Not_CtdName[] = 6215 "strict_ansi_not_ctd"; 6216 6217 /* 6218 * File name selection pattern 6219 */ 6220 tSCC zStrict_Ansi_Not_CtdList[] = 6221 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|"; 6222 /* 6223 * Machine/OS name selection pattern 6224 */ 6225 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL 6226 6227 /* 6228 * content selection pattern - do fix if pattern found 6229 */ 6230 tSCC zStrict_Ansi_Not_CtdSelect0[] = 6231 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)"; 6232 6233 /* 6234 * perform the C function call test 6235 */ 6236 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers"; 6237 6238 #define STRICT_ANSI_NOT_CTD_TEST_CT 2 6239 static tTestDesc aStrict_Ansi_Not_CtdTests[] = { 6240 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ }, 6241 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, }; 6242 6243 /* 6244 * Fix Command Arguments for Strict_Ansi_Not_Ctd 6245 */ 6246 static const char* apzStrict_Ansi_Not_CtdPatch[] = { 6247 "format", 6248 "%1 !defined(__STRICT_ANSI__)", 6249 (char*)NULL }; 6250 6251 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6252 * 6253 * Description of Strict_Ansi_Only fix 6254 */ 6255 tSCC zStrict_Ansi_OnlyName[] = 6256 "strict_ansi_only"; 6257 6258 /* 6259 * File name selection pattern 6260 */ 6261 #define zStrict_Ansi_OnlyList (char*)NULL 6262 /* 6263 * Machine/OS name selection pattern 6264 */ 6265 #define apzStrict_Ansi_OnlyMachs (const char**)NULL 6266 6267 /* 6268 * content selection pattern - do fix if pattern found 6269 */ 6270 tSCC zStrict_Ansi_OnlySelect0[] = 6271 "^([ \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)"; 6272 6273 /* 6274 * perform the C function call test 6275 */ 6276 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers"; 6277 6278 #define STRICT_ANSI_ONLY_TEST_CT 2 6279 static tTestDesc aStrict_Ansi_OnlyTests[] = { 6280 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ }, 6281 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, }; 6282 6283 /* 6284 * Fix Command Arguments for Strict_Ansi_Only 6285 */ 6286 static const char* apzStrict_Ansi_OnlyPatch[] = { 6287 "format", 6288 "%1 defined(__STRICT_ANSI__)", 6289 (char*)NULL }; 6290 6291 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6292 * 6293 * Description of Struct_File fix 6294 */ 6295 tSCC zStruct_FileName[] = 6296 "struct_file"; 6297 6298 /* 6299 * File name selection pattern 6300 */ 6301 tSCC zStruct_FileList[] = 6302 "|rpc/xdr.h|"; 6303 /* 6304 * Machine/OS name selection pattern 6305 */ 6306 #define apzStruct_FileMachs (const char**)NULL 6307 6308 /* 6309 * content selection pattern - do fix if pattern found 6310 */ 6311 tSCC zStruct_FileSelect0[] = 6312 "^.*xdrstdio_create.*struct __file_s"; 6313 6314 #define STRUCT_FILE_TEST_CT 1 6315 static tTestDesc aStruct_FileTests[] = { 6316 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, }; 6317 6318 /* 6319 * Fix Command Arguments for Struct_File 6320 */ 6321 static const char* apzStruct_FilePatch[] = { 6322 "format", 6323 "struct __file_s;\n\ 6324 %0", 6325 (char*)NULL }; 6326 6327 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6328 * 6329 * Description of Struct_Sockaddr fix 6330 */ 6331 tSCC zStruct_SockaddrName[] = 6332 "struct_sockaddr"; 6333 6334 /* 6335 * File name selection pattern 6336 */ 6337 tSCC zStruct_SockaddrList[] = 6338 "|rpc/auth.h|"; 6339 /* 6340 * Machine/OS name selection pattern 6341 */ 6342 #define apzStruct_SockaddrMachs (const char**)NULL 6343 6344 /* 6345 * content selection pattern - do fix if pattern found 6346 */ 6347 tSCC zStruct_SockaddrSelect0[] = 6348 "^.*authdes_create.*struct sockaddr[^_]"; 6349 6350 /* 6351 * content bypass pattern - skip fix if pattern found 6352 */ 6353 tSCC zStruct_SockaddrBypass0[] = 6354 "<sys/socket.h>"; 6355 tSCC zStruct_SockaddrBypass1[] = 6356 "struct sockaddr;\n"; 6357 6358 #define STRUCT_SOCKADDR_TEST_CT 3 6359 static tTestDesc aStruct_SockaddrTests[] = { 6360 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL }, 6361 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL }, 6362 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, }; 6363 6364 /* 6365 * Fix Command Arguments for Struct_Sockaddr 6366 */ 6367 static const char* apzStruct_SockaddrPatch[] = { 6368 "format", 6369 "struct sockaddr;\n\ 6370 %0", 6371 (char*)NULL }; 6372 6373 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6374 * 6375 * Description of Sun_Auth_Proto fix 6376 */ 6377 tSCC zSun_Auth_ProtoName[] = 6378 "sun_auth_proto"; 6379 6380 /* 6381 * File name selection pattern 6382 */ 6383 tSCC zSun_Auth_ProtoList[] = 6384 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|"; 6385 /* 6386 * Machine/OS name selection pattern 6387 */ 6388 #define apzSun_Auth_ProtoMachs (const char**)NULL 6389 6390 /* 6391 * content selection pattern - do fix if pattern found 6392 */ 6393 tSCC zSun_Auth_ProtoSelect0[] = 6394 "\\(\\*[a-z][a-z_]*\\)\\(\\)"; 6395 6396 /* 6397 * content bypass pattern - skip fix if pattern found 6398 */ 6399 tSCC zSun_Auth_ProtoBypass0[] = 6400 "__cplusplus"; 6401 6402 #define SUN_AUTH_PROTO_TEST_CT 2 6403 static tTestDesc aSun_Auth_ProtoTests[] = { 6404 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL }, 6405 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; 6406 6407 /* 6408 * Fix Command Arguments for Sun_Auth_Proto 6409 */ 6410 static const char* apzSun_Auth_ProtoPatch[] = { 6411 "format", 6412 "#ifdef __cplusplus\n\ 6413 %1(...);%2\n\ 6414 #else\n\ 6415 %1();%2\n\ 6416 #endif", 6417 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)", 6418 (char*)NULL }; 6419 6420 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6421 * 6422 * Description of Sun_Bogus_Ifdef fix 6423 */ 6424 tSCC zSun_Bogus_IfdefName[] = 6425 "sun_bogus_ifdef"; 6426 6427 /* 6428 * File name selection pattern 6429 */ 6430 tSCC zSun_Bogus_IfdefList[] = 6431 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|"; 6432 /* 6433 * Machine/OS name selection pattern 6434 */ 6435 #define apzSun_Bogus_IfdefMachs (const char**)NULL 6436 6437 /* 6438 * content selection pattern - do fix if pattern found 6439 */ 6440 tSCC zSun_Bogus_IfdefSelect0[] = 6441 "#ifdef(.*\\|\\|.*)"; 6442 6443 #define SUN_BOGUS_IFDEF_TEST_CT 1 6444 static tTestDesc aSun_Bogus_IfdefTests[] = { 6445 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, }; 6446 6447 /* 6448 * Fix Command Arguments for Sun_Bogus_Ifdef 6449 */ 6450 static const char* apzSun_Bogus_IfdefPatch[] = { 6451 "format", 6452 "#if%1", 6453 (char*)NULL }; 6454 6455 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6456 * 6457 * Description of Sun_Catmacro fix 6458 */ 6459 tSCC zSun_CatmacroName[] = 6460 "sun_catmacro"; 6461 6462 /* 6463 * File name selection pattern 6464 */ 6465 tSCC zSun_CatmacroList[] = 6466 "|pixrect/memvar.h|"; 6467 /* 6468 * Machine/OS name selection pattern 6469 */ 6470 #define apzSun_CatmacroMachs (const char**)NULL 6471 6472 /* 6473 * content selection pattern - do fix if pattern found 6474 */ 6475 tSCC zSun_CatmacroSelect0[] = 6476 "^#define[ \t]+CAT\\(a,b\\).*"; 6477 6478 #define SUN_CATMACRO_TEST_CT 1 6479 static tTestDesc aSun_CatmacroTests[] = { 6480 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, }; 6481 6482 /* 6483 * Fix Command Arguments for Sun_Catmacro 6484 */ 6485 static const char* apzSun_CatmacroPatch[] = { 6486 "format", 6487 "#ifdef __STDC__\n\ 6488 # define CAT(a,b) a##b\n\ 6489 #else\n\ 6490 %0\n\ 6491 #endif", 6492 (char*)NULL }; 6493 6494 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6495 * 6496 * Description of Sun_Malloc fix 6497 */ 6498 tSCC zSun_MallocName[] = 6499 "sun_malloc"; 6500 6501 /* 6502 * File name selection pattern 6503 */ 6504 tSCC zSun_MallocList[] = 6505 "|malloc.h|"; 6506 /* 6507 * Machine/OS name selection pattern 6508 */ 6509 #define apzSun_MallocMachs (const char**)NULL 6510 6511 /* 6512 * content bypass pattern - skip fix if pattern found 6513 */ 6514 tSCC zSun_MallocBypass0[] = 6515 "_CLASSIC_ANSI_TYPES"; 6516 6517 #define SUN_MALLOC_TEST_CT 1 6518 static tTestDesc aSun_MallocTests[] = { 6519 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, }; 6520 6521 /* 6522 * Fix Command Arguments for Sun_Malloc 6523 */ 6524 static const char* apzSun_MallocPatch[] = { "sed", 6525 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g", 6526 "-e", "s/int[ \t][ \t]*free/void\tfree/g", 6527 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g", 6528 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g", 6529 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g", 6530 (char*)NULL }; 6531 6532 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6533 * 6534 * Description of Sun_Rusers_Semi fix 6535 */ 6536 tSCC zSun_Rusers_SemiName[] = 6537 "sun_rusers_semi"; 6538 6539 /* 6540 * File name selection pattern 6541 */ 6542 tSCC zSun_Rusers_SemiList[] = 6543 "|rpcsvc/rusers.h|"; 6544 /* 6545 * Machine/OS name selection pattern 6546 */ 6547 #define apzSun_Rusers_SemiMachs (const char**)NULL 6548 6549 /* 6550 * content selection pattern - do fix if pattern found 6551 */ 6552 tSCC zSun_Rusers_SemiSelect0[] = 6553 "_cnt$"; 6554 6555 #define SUN_RUSERS_SEMI_TEST_CT 1 6556 static tTestDesc aSun_Rusers_SemiTests[] = { 6557 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, }; 6558 6559 /* 6560 * Fix Command Arguments for Sun_Rusers_Semi 6561 */ 6562 static const char* apzSun_Rusers_SemiPatch[] = { "sed", 6563 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/", 6564 (char*)NULL }; 6565 6566 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6567 * 6568 * Description of Sun_Signal fix 6569 */ 6570 tSCC zSun_SignalName[] = 6571 "sun_signal"; 6572 6573 /* 6574 * File name selection pattern 6575 */ 6576 tSCC zSun_SignalList[] = 6577 "|sys/signal.h|signal.h|"; 6578 /* 6579 * Machine/OS name selection pattern 6580 */ 6581 #define apzSun_SignalMachs (const char**)NULL 6582 6583 /* 6584 * content selection pattern - do fix if pattern found 6585 */ 6586 tSCC zSun_SignalSelect0[] = 6587 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*"; 6588 6589 #define SUN_SIGNAL_TEST_CT 1 6590 static tTestDesc aSun_SignalTests[] = { 6591 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, }; 6592 6593 /* 6594 * Fix Command Arguments for Sun_Signal 6595 */ 6596 static const char* apzSun_SignalPatch[] = { 6597 "format", 6598 "#ifdef __cplusplus\n\ 6599 void\t(*signal(...))(...);\n\ 6600 #else\n\ 6601 %0\n\ 6602 #endif", 6603 (char*)NULL }; 6604 6605 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6606 * 6607 * Description of Sunos_Strlen fix 6608 */ 6609 tSCC zSunos_StrlenName[] = 6610 "sunos_strlen"; 6611 6612 /* 6613 * File name selection pattern 6614 */ 6615 tSCC zSunos_StrlenList[] = 6616 "|strings.h|"; 6617 /* 6618 * Machine/OS name selection pattern 6619 */ 6620 #define apzSunos_StrlenMachs (const char**)NULL 6621 6622 /* 6623 * content selection pattern - do fix if pattern found 6624 */ 6625 tSCC zSunos_StrlenSelect0[] = 6626 "int[ \t]*strlen\\(\\);(.*)"; 6627 6628 #define SUNOS_STRLEN_TEST_CT 1 6629 static tTestDesc aSunos_StrlenTests[] = { 6630 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, }; 6631 6632 /* 6633 * Fix Command Arguments for Sunos_Strlen 6634 */ 6635 static const char* apzSunos_StrlenPatch[] = { 6636 "format", 6637 "__SIZE_TYPE__ strlen();%1", 6638 (char*)NULL }; 6639 6640 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6641 * 6642 * Description of Svr4_Disable_Opt fix 6643 */ 6644 tSCC zSvr4_Disable_OptName[] = 6645 "svr4_disable_opt"; 6646 6647 /* 6648 * File name selection pattern 6649 */ 6650 tSCC zSvr4_Disable_OptList[] = 6651 "|string.h|"; 6652 /* 6653 * Machine/OS name selection pattern 6654 */ 6655 #define apzSvr4_Disable_OptMachs (const char**)NULL 6656 6657 /* 6658 * content selection pattern - do fix if pattern found 6659 */ 6660 tSCC zSvr4_Disable_OptSelect0[] = 6661 "#define.*__std_hdr_"; 6662 6663 #define SVR4_DISABLE_OPT_TEST_CT 1 6664 static tTestDesc aSvr4_Disable_OptTests[] = { 6665 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, }; 6666 6667 /* 6668 * Fix Command Arguments for Svr4_Disable_Opt 6669 */ 6670 static const char* apzSvr4_Disable_OptPatch[] = { "sed", 6671 "-e", "/#define.*__std_hdr_/d", 6672 (char*)NULL }; 6673 6674 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6675 * 6676 * Description of Svr4_Getcwd fix 6677 */ 6678 tSCC zSvr4_GetcwdName[] = 6679 "svr4_getcwd"; 6680 6681 /* 6682 * File name selection pattern 6683 */ 6684 tSCC zSvr4_GetcwdList[] = 6685 "|stdlib.h|unistd.h|prototypes.h|"; 6686 /* 6687 * Machine/OS name selection pattern 6688 */ 6689 #define apzSvr4_GetcwdMachs (const char**)NULL 6690 6691 /* 6692 * content selection pattern - do fix if pattern found 6693 */ 6694 tSCC zSvr4_GetcwdSelect0[] = 6695 "getcwd\\(char \\*, int\\)"; 6696 6697 #define SVR4_GETCWD_TEST_CT 1 6698 static tTestDesc aSvr4_GetcwdTests[] = { 6699 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, }; 6700 6701 /* 6702 * Fix Command Arguments for Svr4_Getcwd 6703 */ 6704 static const char* apzSvr4_GetcwdPatch[] = { 6705 "format", 6706 "getcwd(char *, size_t)", 6707 (char*)NULL }; 6708 6709 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6710 * 6711 * Description of Svr4_Krnl fix 6712 */ 6713 tSCC zSvr4_KrnlName[] = 6714 "svr4_krnl"; 6715 6716 /* 6717 * File name selection pattern 6718 */ 6719 tSCC zSvr4_KrnlList[] = 6720 "|fs/rfs/rf_cache.h|sys/erec.h|sys/err.h|sys/char.h|sys/getpages.h|sys/map.h|sys/cmn_err.h|sys/kdebugger.h|"; 6721 /* 6722 * Machine/OS name selection pattern 6723 */ 6724 tSCC* apzSvr4_KrnlMachs[] = { 6725 "*-*-sysv4*", 6726 "i?86-sequent-ptx*", 6727 (const char*)NULL }; 6728 6729 /* 6730 * content bypass pattern - skip fix if pattern found 6731 */ 6732 tSCC zSvr4_KrnlBypass0[] = 6733 "_KERNEL"; 6734 6735 #define SVR4_KRNL_TEST_CT 1 6736 static tTestDesc aSvr4_KrnlTests[] = { 6737 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, }; 6738 6739 /* 6740 * Fix Command Arguments for Svr4_Krnl 6741 */ 6742 static const char* apzSvr4_KrnlPatch[] = { 6743 "wrap", 6744 "#ifdef _KERNEL\n", 6745 "#endif /* _KERNEL */\n", 6746 (char*)NULL }; 6747 6748 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6749 * 6750 * Description of Svr4_Profil fix 6751 */ 6752 tSCC zSvr4_ProfilName[] = 6753 "svr4_profil"; 6754 6755 /* 6756 * File name selection pattern 6757 */ 6758 tSCC zSvr4_ProfilList[] = 6759 "|stdlib.h|unistd.h|"; 6760 /* 6761 * Machine/OS name selection pattern 6762 */ 6763 #define apzSvr4_ProfilMachs (const char**)NULL 6764 6765 /* 6766 * content selection pattern - do fix if pattern found 6767 */ 6768 tSCC zSvr4_ProfilSelect0[] = 6769 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)"; 6770 6771 /* 6772 * content bypass pattern - skip fix if pattern found 6773 */ 6774 tSCC zSvr4_ProfilBypass0[] = 6775 "Silicon Graphics"; 6776 6777 #define SVR4_PROFIL_TEST_CT 2 6778 static tTestDesc aSvr4_ProfilTests[] = { 6779 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL }, 6780 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, }; 6781 6782 /* 6783 * Fix Command Arguments for Svr4_Profil 6784 */ 6785 static const char* apzSvr4_ProfilPatch[] = { 6786 "format", 6787 "profil(unsigned short *, size_t, int, unsigned int)", 6788 (char*)NULL }; 6789 6790 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6791 * 6792 * Description of Svr4_Sighandler_Type fix 6793 */ 6794 tSCC zSvr4_Sighandler_TypeName[] = 6795 "svr4_sighandler_type"; 6796 6797 /* 6798 * File name selection pattern 6799 */ 6800 tSCC zSvr4_Sighandler_TypeList[] = 6801 "|sys/signal.h|"; 6802 /* 6803 * Machine/OS name selection pattern 6804 */ 6805 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL 6806 6807 /* 6808 * content selection pattern - do fix if pattern found 6809 */ 6810 tSCC zSvr4_Sighandler_TypeSelect0[] = 6811 "void *\\(\\*\\)\\(\\)"; 6812 6813 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1 6814 static tTestDesc aSvr4_Sighandler_TypeTests[] = { 6815 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, }; 6816 6817 /* 6818 * Fix Command Arguments for Svr4_Sighandler_Type 6819 */ 6820 static const char* apzSvr4_Sighandler_TypePatch[] = { 6821 "format", 6822 "void (*)(int)", 6823 (char*)NULL }; 6824 6825 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6826 * 6827 * Description of Svr4_Undeclared_Getrnge fix 6828 */ 6829 tSCC zSvr4_Undeclared_GetrngeName[] = 6830 "svr4_undeclared_getrnge"; 6831 6832 /* 6833 * File name selection pattern 6834 */ 6835 tSCC zSvr4_Undeclared_GetrngeList[] = 6836 "|regexp.h|"; 6837 /* 6838 * Machine/OS name selection pattern 6839 */ 6840 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL 6841 6842 /* 6843 * content selection pattern - do fix if pattern found 6844 */ 6845 tSCC zSvr4_Undeclared_GetrngeSelect0[] = 6846 "getrnge"; 6847 6848 /* 6849 * content bypass pattern - skip fix if pattern found 6850 */ 6851 tSCC zSvr4_Undeclared_GetrngeBypass0[] = 6852 "static void getrnge"; 6853 6854 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2 6855 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = { 6856 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL }, 6857 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, }; 6858 6859 /* 6860 * Fix Command Arguments for Svr4_Undeclared_Getrnge 6861 */ 6862 static const char* apzSvr4_Undeclared_GetrngePatch[] = { 6863 "format", 6864 "%0\n\ 6865 static int getrnge ();", 6866 "^static int[ \t]+size;", 6867 (char*)NULL }; 6868 6869 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6870 * 6871 * Description of Sysv68_String fix 6872 */ 6873 tSCC zSysv68_StringName[] = 6874 "sysv68_string"; 6875 6876 /* 6877 * File name selection pattern 6878 */ 6879 tSCC zSysv68_StringList[] = 6880 "|testing.h|string.h|"; 6881 /* 6882 * Machine/OS name selection pattern 6883 */ 6884 #define apzSysv68_StringMachs (const char**)NULL 6885 6886 /* 6887 * content bypass pattern - skip fix if pattern found 6888 */ 6889 tSCC zSysv68_StringBypass0[] = 6890 "_CLASSIC_ANSI_TYPES"; 6891 6892 #define SYSV68_STRING_TEST_CT 1 6893 static tTestDesc aSysv68_StringTests[] = { 6894 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, }; 6895 6896 /* 6897 * Fix Command Arguments for Sysv68_String 6898 */ 6899 static const char* apzSysv68_StringPatch[] = { "sed", 6900 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/", 6901 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/", 6902 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/", 6903 "-e", "/^extern char$/N", 6904 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/", 6905 "-e", "/^extern int$/N", 6906 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/", 6907 "-e", "/^\tstrncmp(),$/N", 6908 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ 6909 extern unsigned int\\\n\ 6910 \\2/", 6911 (char*)NULL }; 6912 6913 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6914 * 6915 * Description of Sysz_Stdlib_For_Sun fix 6916 */ 6917 tSCC zSysz_Stdlib_For_SunName[] = 6918 "sysz_stdlib_for_sun"; 6919 6920 /* 6921 * File name selection pattern 6922 */ 6923 tSCC zSysz_Stdlib_For_SunList[] = 6924 "|stdlib.h|"; 6925 /* 6926 * Machine/OS name selection pattern 6927 */ 6928 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL 6929 6930 /* 6931 * content selection pattern - do fix if pattern found 6932 */ 6933 tSCC zSysz_Stdlib_For_SunSelect0[] = 6934 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\("; 6935 6936 /* 6937 * content bypass pattern - skip fix if pattern found 6938 */ 6939 tSCC zSysz_Stdlib_For_SunBypass0[] = 6940 "_CLASSIC_ANSI_TYPES"; 6941 6942 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2 6943 static tTestDesc aSysz_Stdlib_For_SunTests[] = { 6944 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL }, 6945 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, }; 6946 6947 /* 6948 * Fix Command Arguments for Sysz_Stdlib_For_Sun 6949 */ 6950 static const char* apzSysz_Stdlib_For_SunPatch[] = { 6951 "format", 6952 "void *\t%1(", 6953 (char*)NULL }; 6954 6955 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6956 * 6957 * Description of Thread_Keyword fix 6958 */ 6959 tSCC zThread_KeywordName[] = 6960 "thread_keyword"; 6961 6962 /* 6963 * File name selection pattern 6964 */ 6965 tSCC zThread_KeywordList[] = 6966 "|pthread.h|bits/sigthread.h|"; 6967 /* 6968 * Machine/OS name selection pattern 6969 */ 6970 #define apzThread_KeywordMachs (const char**)NULL 6971 6972 /* 6973 * content selection pattern - do fix if pattern found 6974 */ 6975 tSCC zThread_KeywordSelect0[] = 6976 "([* ])__thread([,)])"; 6977 6978 #define THREAD_KEYWORD_TEST_CT 1 6979 static tTestDesc aThread_KeywordTests[] = { 6980 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, }; 6981 6982 /* 6983 * Fix Command Arguments for Thread_Keyword 6984 */ 6985 static const char* apzThread_KeywordPatch[] = { 6986 "format", 6987 "%1__thr%2", 6988 (char*)NULL }; 6989 6990 /* * * * * * * * * * * * * * * * * * * * * * * * * * 6991 * 6992 * Description of Tinfo_Cplusplus fix 6993 */ 6994 tSCC zTinfo_CplusplusName[] = 6995 "tinfo_cplusplus"; 6996 6997 /* 6998 * File name selection pattern 6999 */ 7000 tSCC zTinfo_CplusplusList[] = 7001 "|tinfo.h|"; 7002 /* 7003 * Machine/OS name selection pattern 7004 */ 7005 #define apzTinfo_CplusplusMachs (const char**)NULL 7006 7007 /* 7008 * content selection pattern - do fix if pattern found 7009 */ 7010 tSCC zTinfo_CplusplusSelect0[] = 7011 "[ \t]_cplusplus"; 7012 7013 #define TINFO_CPLUSPLUS_TEST_CT 1 7014 static tTestDesc aTinfo_CplusplusTests[] = { 7015 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, }; 7016 7017 /* 7018 * Fix Command Arguments for Tinfo_Cplusplus 7019 */ 7020 static const char* apzTinfo_CplusplusPatch[] = { 7021 "format", 7022 " __cplusplus", 7023 (char*)NULL }; 7024 7025 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7026 * 7027 * Description of Ultrix_Atexit_Param fix 7028 */ 7029 tSCC zUltrix_Atexit_ParamName[] = 7030 "ultrix_atexit_param"; 7031 7032 /* 7033 * File name selection pattern 7034 */ 7035 tSCC zUltrix_Atexit_ParamList[] = 7036 "|stdlib.h|"; 7037 /* 7038 * Machine/OS name selection pattern 7039 */ 7040 #define apzUltrix_Atexit_ParamMachs (const char**)NULL 7041 7042 /* 7043 * content selection pattern - do fix if pattern found 7044 */ 7045 tSCC zUltrix_Atexit_ParamSelect0[] = 7046 "atexit\\(.*\\(\\)"; 7047 7048 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1 7049 static tTestDesc aUltrix_Atexit_ParamTests[] = { 7050 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, }; 7051 7052 /* 7053 * Fix Command Arguments for Ultrix_Atexit_Param 7054 */ 7055 static const char* apzUltrix_Atexit_ParamPatch[] = { 7056 "format", 7057 "atexit( void (*__func)( void )", 7058 (char*)NULL }; 7059 7060 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7061 * 7062 * Description of Ultrix_Atof_Param fix 7063 */ 7064 tSCC zUltrix_Atof_ParamName[] = 7065 "ultrix_atof_param"; 7066 7067 /* 7068 * File name selection pattern 7069 */ 7070 tSCC zUltrix_Atof_ParamList[] = 7071 "|math.h|"; 7072 /* 7073 * Machine/OS name selection pattern 7074 */ 7075 #define apzUltrix_Atof_ParamMachs (const char**)NULL 7076 7077 /* 7078 * content selection pattern - do fix if pattern found 7079 */ 7080 tSCC zUltrix_Atof_ParamSelect0[] = 7081 "atof\\([ \t]*char"; 7082 7083 #define ULTRIX_ATOF_PARAM_TEST_CT 1 7084 static tTestDesc aUltrix_Atof_ParamTests[] = { 7085 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, }; 7086 7087 /* 7088 * Fix Command Arguments for Ultrix_Atof_Param 7089 */ 7090 static const char* apzUltrix_Atof_ParamPatch[] = { 7091 "format", 7092 "atof(const char", 7093 (char*)NULL }; 7094 7095 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7096 * 7097 * Description of Ultrix_Const fix 7098 */ 7099 tSCC zUltrix_ConstName[] = 7100 "ultrix_const"; 7101 7102 /* 7103 * File name selection pattern 7104 */ 7105 tSCC zUltrix_ConstList[] = 7106 "|stdio.h|"; 7107 /* 7108 * Machine/OS name selection pattern 7109 */ 7110 #define apzUltrix_ConstMachs (const char**)NULL 7111 7112 /* 7113 * content selection pattern - do fix if pattern found 7114 */ 7115 tSCC zUltrix_ConstSelect0[] = 7116 "perror\\( char \\*"; 7117 7118 #define ULTRIX_CONST_TEST_CT 1 7119 static tTestDesc aUltrix_ConstTests[] = { 7120 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, }; 7121 7122 /* 7123 * Fix Command Arguments for Ultrix_Const 7124 */ 7125 static const char* apzUltrix_ConstPatch[] = { 7126 "format", 7127 "%1 const %3 *__", 7128 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__", 7129 (char*)NULL }; 7130 7131 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7132 * 7133 * Description of Ultrix_Const2 fix 7134 */ 7135 tSCC zUltrix_Const2Name[] = 7136 "ultrix_const2"; 7137 7138 /* 7139 * File name selection pattern 7140 */ 7141 tSCC zUltrix_Const2List[] = 7142 "|stdio.h|"; 7143 /* 7144 * Machine/OS name selection pattern 7145 */ 7146 #define apzUltrix_Const2Machs (const char**)NULL 7147 7148 /* 7149 * content selection pattern - do fix if pattern found 7150 */ 7151 tSCC zUltrix_Const2Select0[] = 7152 "\\*fopen\\( char \\*"; 7153 7154 #define ULTRIX_CONST2_TEST_CT 1 7155 static tTestDesc aUltrix_Const2Tests[] = { 7156 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, }; 7157 7158 /* 7159 * Fix Command Arguments for Ultrix_Const2 7160 */ 7161 static const char* apzUltrix_Const2Patch[] = { 7162 "format", 7163 "%1( const char *%3, const char *", 7164 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*", 7165 (char*)NULL }; 7166 7167 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7168 * 7169 * Description of Ultrix_Const3 fix 7170 */ 7171 tSCC zUltrix_Const3Name[] = 7172 "ultrix_const3"; 7173 7174 /* 7175 * File name selection pattern 7176 */ 7177 tSCC zUltrix_Const3List[] = 7178 "|stdio.h|"; 7179 /* 7180 * Machine/OS name selection pattern 7181 */ 7182 #define apzUltrix_Const3Machs (const char**)NULL 7183 7184 /* 7185 * content selection pattern - do fix if pattern found 7186 */ 7187 tSCC zUltrix_Const3Select0[] = 7188 "fdopen\\( .*, char \\*"; 7189 7190 #define ULTRIX_CONST3_TEST_CT 1 7191 static tTestDesc aUltrix_Const3Tests[] = { 7192 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, }; 7193 7194 /* 7195 * Fix Command Arguments for Ultrix_Const3 7196 */ 7197 static const char* apzUltrix_Const3Patch[] = { 7198 "format", 7199 "%1 const %3 *__", 7200 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__", 7201 (char*)NULL }; 7202 7203 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7204 * 7205 * Description of Ultrix_Fix_Fixproto fix 7206 */ 7207 tSCC zUltrix_Fix_FixprotoName[] = 7208 "ultrix_fix_fixproto"; 7209 7210 /* 7211 * File name selection pattern 7212 */ 7213 tSCC zUltrix_Fix_FixprotoList[] = 7214 "|sys/utsname.h|"; 7215 /* 7216 * Machine/OS name selection pattern 7217 */ 7218 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL 7219 7220 /* 7221 * content selection pattern - do fix if pattern found 7222 */ 7223 tSCC zUltrix_Fix_FixprotoSelect0[] = 7224 "ULTRIX"; 7225 7226 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1 7227 static tTestDesc aUltrix_Fix_FixprotoTests[] = { 7228 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, }; 7229 7230 /* 7231 * Fix Command Arguments for Ultrix_Fix_Fixproto 7232 */ 7233 static const char* apzUltrix_Fix_FixprotoPatch[] = { 7234 "format", 7235 "struct utsname;\n\ 7236 %0", 7237 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);", 7238 (char*)NULL }; 7239 7240 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7241 * 7242 * Description of Ultrix_Ifdef fix 7243 */ 7244 tSCC zUltrix_IfdefName[] = 7245 "ultrix_ifdef"; 7246 7247 /* 7248 * File name selection pattern 7249 */ 7250 tSCC zUltrix_IfdefList[] = 7251 "|sys/file.h|"; 7252 /* 7253 * Machine/OS name selection pattern 7254 */ 7255 #define apzUltrix_IfdefMachs (const char**)NULL 7256 7257 /* 7258 * content selection pattern - do fix if pattern found 7259 */ 7260 tSCC zUltrix_IfdefSelect0[] = 7261 "^#ifdef KERNEL[ \t]+&&"; 7262 7263 #define ULTRIX_IFDEF_TEST_CT 1 7264 static tTestDesc aUltrix_IfdefTests[] = { 7265 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, }; 7266 7267 /* 7268 * Fix Command Arguments for Ultrix_Ifdef 7269 */ 7270 static const char* apzUltrix_IfdefPatch[] = { 7271 "format", 7272 "#if defined(KERNEL) &&", 7273 (char*)NULL }; 7274 7275 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7276 * 7277 * Description of Ultrix_Locale fix 7278 */ 7279 tSCC zUltrix_LocaleName[] = 7280 "ultrix_locale"; 7281 7282 /* 7283 * File name selection pattern 7284 */ 7285 tSCC zUltrix_LocaleList[] = 7286 "|locale.h|"; 7287 /* 7288 * Machine/OS name selection pattern 7289 */ 7290 #define apzUltrix_LocaleMachs (const char**)NULL 7291 7292 /* 7293 * content selection pattern - do fix if pattern found 7294 */ 7295 tSCC zUltrix_LocaleSelect0[] = 7296 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)"; 7297 7298 #define ULTRIX_LOCALE_TEST_CT 1 7299 static tTestDesc aUltrix_LocaleTests[] = { 7300 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, }; 7301 7302 /* 7303 * Fix Command Arguments for Ultrix_Locale 7304 */ 7305 static const char* apzUltrix_LocalePatch[] = { 7306 "wrap", 7307 (char*)NULL }; 7308 7309 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7310 * 7311 * Description of Ultrix_Math_Ifdef fix 7312 */ 7313 tSCC zUltrix_Math_IfdefName[] = 7314 "ultrix_math_ifdef"; 7315 7316 /* 7317 * File name selection pattern 7318 */ 7319 tSCC zUltrix_Math_IfdefList[] = 7320 "|sys/limits.h|float.h|math.h|"; 7321 /* 7322 * Machine/OS name selection pattern 7323 */ 7324 #define apzUltrix_Math_IfdefMachs (const char**)NULL 7325 7326 /* 7327 * content selection pattern - do fix if pattern found 7328 */ 7329 tSCC zUltrix_Math_IfdefSelect0[] = 7330 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+"; 7331 7332 #define ULTRIX_MATH_IFDEF_TEST_CT 1 7333 static tTestDesc aUltrix_Math_IfdefTests[] = { 7334 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, }; 7335 7336 /* 7337 * Fix Command Arguments for Ultrix_Math_Ifdef 7338 */ 7339 static const char* apzUltrix_Math_IfdefPatch[] = { 7340 "format", 7341 "%1", 7342 (char*)NULL }; 7343 7344 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7345 * 7346 * Description of Ultrix_Nested_Ioctl fix 7347 */ 7348 tSCC zUltrix_Nested_IoctlName[] = 7349 "ultrix_nested_ioctl"; 7350 7351 /* 7352 * File name selection pattern 7353 */ 7354 tSCC zUltrix_Nested_IoctlList[] = 7355 "|sys/ioctl.h|"; 7356 /* 7357 * Machine/OS name selection pattern 7358 */ 7359 #define apzUltrix_Nested_IoctlMachs (const char**)NULL 7360 7361 /* 7362 * content selection pattern - do fix if pattern found 7363 */ 7364 tSCC zUltrix_Nested_IoctlSelect0[] = 7365 "^/\\* #define SIOCSCREEN"; 7366 7367 #define ULTRIX_NESTED_IOCTL_TEST_CT 1 7368 static tTestDesc aUltrix_Nested_IoctlTests[] = { 7369 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, }; 7370 7371 /* 7372 * Fix Command Arguments for Ultrix_Nested_Ioctl 7373 */ 7374 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed", 7375 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@", 7376 (char*)NULL }; 7377 7378 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7379 * 7380 * Description of Ultrix_Nested_Svc fix 7381 */ 7382 tSCC zUltrix_Nested_SvcName[] = 7383 "ultrix_nested_svc"; 7384 7385 /* 7386 * File name selection pattern 7387 */ 7388 tSCC zUltrix_Nested_SvcList[] = 7389 "|rpc/svc.h|"; 7390 /* 7391 * Machine/OS name selection pattern 7392 */ 7393 #define apzUltrix_Nested_SvcMachs (const char**)NULL 7394 7395 /* 7396 * content selection pattern - do fix if pattern found 7397 */ 7398 tSCC zUltrix_Nested_SvcSelect0[] = 7399 "^ \\*[ \t]*int protocol; */\\*"; 7400 7401 #define ULTRIX_NESTED_SVC_TEST_CT 1 7402 static tTestDesc aUltrix_Nested_SvcTests[] = { 7403 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, }; 7404 7405 /* 7406 * Fix Command Arguments for Ultrix_Nested_Svc 7407 */ 7408 static const char* apzUltrix_Nested_SvcPatch[] = { "sed", 7409 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@", 7410 (char*)NULL }; 7411 7412 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7413 * 7414 * Description of Ultrix_Stat fix 7415 */ 7416 tSCC zUltrix_StatName[] = 7417 "ultrix_stat"; 7418 7419 /* 7420 * File name selection pattern 7421 */ 7422 tSCC zUltrix_StatList[] = 7423 "|sys/stat.h|"; 7424 /* 7425 * Machine/OS name selection pattern 7426 */ 7427 #define apzUltrix_StatMachs (const char**)NULL 7428 7429 /* 7430 * content selection pattern - do fix if pattern found 7431 */ 7432 tSCC zUltrix_StatSelect0[] = 7433 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)"; 7434 7435 #define ULTRIX_STAT_TEST_CT 1 7436 static tTestDesc aUltrix_StatTests[] = { 7437 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, }; 7438 7439 /* 7440 * Fix Command Arguments for Ultrix_Stat 7441 */ 7442 static const char* apzUltrix_StatPatch[] = { "sed", 7443 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\ 7444 \\\n\ 7445 /* macro to test for symbolic link */\\\n\ 7446 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n", 7447 "-e", "/^[ \t]*fstat(),$/a\\\n\ 7448 \tlstat(),\n", 7449 (char*)NULL }; 7450 7451 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7452 * 7453 * Description of Ultrix_Static fix 7454 */ 7455 tSCC zUltrix_StaticName[] = 7456 "ultrix_static"; 7457 7458 /* 7459 * File name selection pattern 7460 */ 7461 tSCC zUltrix_StaticList[] = 7462 "|machine/cpu.h|"; 7463 /* 7464 * Machine/OS name selection pattern 7465 */ 7466 #define apzUltrix_StaticMachs (const char**)NULL 7467 7468 /* 7469 * content selection pattern - do fix if pattern found 7470 */ 7471 tSCC zUltrix_StaticSelect0[] = 7472 "#include \"r[34]_cpu"; 7473 7474 #define ULTRIX_STATIC_TEST_CT 1 7475 static tTestDesc aUltrix_StaticTests[] = { 7476 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, }; 7477 7478 /* 7479 * Fix Command Arguments for Ultrix_Static 7480 */ 7481 static const char* apzUltrix_StaticPatch[] = { "sed", 7482 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/", 7483 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/", 7484 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/", 7485 (char*)NULL }; 7486 7487 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7488 * 7489 * Description of Ultrix_Stdlib fix 7490 */ 7491 tSCC zUltrix_StdlibName[] = 7492 "ultrix_stdlib"; 7493 7494 /* 7495 * File name selection pattern 7496 */ 7497 tSCC zUltrix_StdlibList[] = 7498 "|stdlib.h|"; 7499 /* 7500 * Machine/OS name selection pattern 7501 */ 7502 #define apzUltrix_StdlibMachs (const char**)NULL 7503 7504 /* 7505 * content selection pattern - do fix if pattern found 7506 */ 7507 tSCC zUltrix_StdlibSelect0[] = 7508 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)"; 7509 7510 #define ULTRIX_STDLIB_TEST_CT 1 7511 static tTestDesc aUltrix_StdlibTests[] = { 7512 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, }; 7513 7514 /* 7515 * Fix Command Arguments for Ultrix_Stdlib 7516 */ 7517 static const char* apzUltrix_StdlibPatch[] = { "sed", 7518 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\ 7519 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\ 7520 void\t\tunsetenv( const char *__name );\\\n\ 7521 int\t\tputenv( char *__s );\n", 7522 "-e", "/^char.*getenv();.*$/a\\\n\ 7523 int\tsetenv();\\\n\ 7524 void\tunsetenv();\\\n\ 7525 int\tputenv();\n", 7526 (char*)NULL }; 7527 7528 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7529 * 7530 * Description of Ultrix_Strings fix 7531 */ 7532 tSCC zUltrix_StringsName[] = 7533 "ultrix_strings"; 7534 7535 /* 7536 * File name selection pattern 7537 */ 7538 tSCC zUltrix_StringsList[] = 7539 "|strings.h|"; 7540 /* 7541 * Machine/OS name selection pattern 7542 */ 7543 #define apzUltrix_StringsMachs (const char**)NULL 7544 7545 /* 7546 * content selection pattern - do fix if pattern found 7547 */ 7548 tSCC zUltrix_StringsSelect0[] = 7549 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)"; 7550 7551 #define ULTRIX_STRINGS_TEST_CT 1 7552 static tTestDesc aUltrix_StringsTests[] = { 7553 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, }; 7554 7555 /* 7556 * Fix Command Arguments for Ultrix_Strings 7557 */ 7558 static const char* apzUltrix_StringsPatch[] = { 7559 "wrap", 7560 (char*)NULL }; 7561 7562 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7563 * 7564 * Description of Ultrix_Strings2 fix 7565 */ 7566 tSCC zUltrix_Strings2Name[] = 7567 "ultrix_strings2"; 7568 7569 /* 7570 * File name selection pattern 7571 */ 7572 tSCC zUltrix_Strings2List[] = 7573 "|strings.h|"; 7574 /* 7575 * Machine/OS name selection pattern 7576 */ 7577 #define apzUltrix_Strings2Machs (const char**)NULL 7578 7579 /* 7580 * content selection pattern - do fix if pattern found 7581 */ 7582 tSCC zUltrix_Strings2Select0[] = 7583 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)"; 7584 7585 #define ULTRIX_STRINGS2_TEST_CT 1 7586 static tTestDesc aUltrix_Strings2Tests[] = { 7587 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, }; 7588 7589 /* 7590 * Fix Command Arguments for Ultrix_Strings2 7591 */ 7592 static const char* apzUltrix_Strings2Patch[] = { "sed", 7593 "-e", "/^.*strncmp( const .* );.*/a\\\n\ 7594 \\\n\ 7595 extern int\\\n\ 7596 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\ 7597 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n", 7598 "-e", "/^.*strncmp();.*/a\\\n\ 7599 extern int\\\n\ 7600 \tstrcasecmp(),\\\n\ 7601 \tstrncasecmp();\n", 7602 (char*)NULL }; 7603 7604 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7605 * 7606 * Description of Ultrix_Sys_Time fix 7607 */ 7608 tSCC zUltrix_Sys_TimeName[] = 7609 "ultrix_sys_time"; 7610 7611 /* 7612 * File name selection pattern 7613 */ 7614 tSCC zUltrix_Sys_TimeList[] = 7615 "|sys/time.h|"; 7616 /* 7617 * Machine/OS name selection pattern 7618 */ 7619 #define apzUltrix_Sys_TimeMachs (const char**)NULL 7620 7621 /* 7622 * content selection pattern - do fix if pattern found 7623 */ 7624 tSCC zUltrix_Sys_TimeSelect0[] = 7625 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)"; 7626 7627 #define ULTRIX_SYS_TIME_TEST_CT 1 7628 static tTestDesc aUltrix_Sys_TimeTests[] = { 7629 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, }; 7630 7631 /* 7632 * Fix Command Arguments for Ultrix_Sys_Time 7633 */ 7634 static const char* apzUltrix_Sys_TimePatch[] = { "sed", 7635 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\ 7636 \\\n\ 7637 extern int adjtime(struct timeval *, struct timeval *);\\\n\ 7638 extern int getitimer(int, struct itimerval *);\\\n\ 7639 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\ 7640 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\ 7641 extern int settimeofday(struct timeval *, struct timezone *);\\\n\ 7642 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\ 7643 extern int stime(const time_t *);\\\n\ 7644 extern int utimes(const char *, const struct timeval[2]);\\\n\ 7645 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n", 7646 "-e", "/^extern.*double.*difftime();.*$/a\\\n\ 7647 extern\tint adjtime();\\\n\ 7648 extern\tint getitimer();\\\n\ 7649 extern\tint setitimer();\\\n\ 7650 extern\tint gettimeofday();\\\n\ 7651 extern\tint settimeofday();\\\n\ 7652 extern\tvoid profil();\\\n\ 7653 extern\tint stime();\\\n\ 7654 extern\tint utimes();\\\n\ 7655 extern\tint select();\n", 7656 (char*)NULL }; 7657 7658 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7659 * 7660 * Description of Ultrix_Unistd fix 7661 */ 7662 tSCC zUltrix_UnistdName[] = 7663 "ultrix_unistd"; 7664 7665 /* 7666 * File name selection pattern 7667 */ 7668 tSCC zUltrix_UnistdList[] = 7669 "|unistd.h|"; 7670 /* 7671 * Machine/OS name selection pattern 7672 */ 7673 #define apzUltrix_UnistdMachs (const char**)NULL 7674 7675 /* 7676 * content selection pattern - do fix if pattern found 7677 */ 7678 tSCC zUltrix_UnistdSelect0[] = 7679 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)"; 7680 7681 #define ULTRIX_UNISTD_TEST_CT 1 7682 static tTestDesc aUltrix_UnistdTests[] = { 7683 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, }; 7684 7685 /* 7686 * Fix Command Arguments for Ultrix_Unistd 7687 */ 7688 static const char* apzUltrix_UnistdPatch[] = { "sed", 7689 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\ 7690 \tgetpagesize(),\n", 7691 "-e", "/^[ \t]*fork(),.*$/a\\\n\ 7692 \tvfork(),\n", 7693 (char*)NULL }; 7694 7695 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7696 * 7697 * Description of Unicosmk_Restrict fix 7698 */ 7699 tSCC zUnicosmk_RestrictName[] = 7700 "unicosmk_restrict"; 7701 7702 /* 7703 * File name selection pattern 7704 */ 7705 tSCC zUnicosmk_RestrictList[] = 7706 "|stdio.h|stdlib.h|wchar.h|"; 7707 /* 7708 * Machine/OS name selection pattern 7709 */ 7710 tSCC* apzUnicosmk_RestrictMachs[] = { 7711 "*-*-unicosmk*", 7712 (const char*)NULL }; 7713 7714 /* 7715 * content selection pattern - do fix if pattern found 7716 */ 7717 tSCC zUnicosmk_RestrictSelect0[] = 7718 "(\\*[ \t]*)restrict([ \t]+)"; 7719 7720 #define UNICOSMK_RESTRICT_TEST_CT 1 7721 static tTestDesc aUnicosmk_RestrictTests[] = { 7722 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, }; 7723 7724 /* 7725 * Fix Command Arguments for Unicosmk_Restrict 7726 */ 7727 static const char* apzUnicosmk_RestrictPatch[] = { 7728 "format", 7729 "%1__restrict__%2", 7730 (char*)NULL }; 7731 7732 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7733 * 7734 * Description of Uw7_Byteorder_Fix fix 7735 */ 7736 tSCC zUw7_Byteorder_FixName[] = 7737 "uw7_byteorder_fix"; 7738 7739 /* 7740 * File name selection pattern 7741 */ 7742 tSCC zUw7_Byteorder_FixList[] = 7743 "|arpa/inet.h|"; 7744 /* 7745 * Machine/OS name selection pattern 7746 */ 7747 tSCC* apzUw7_Byteorder_FixMachs[] = { 7748 "*-*-sysv4*", 7749 "i?86-*-sysv5*", 7750 "i?86-*-udk*", 7751 "i?86-*-solaris2.[0-4]", 7752 "powerpcle-*-solaris2.[0-4]", 7753 "sparc-*-solaris2.[0-4]", 7754 (const char*)NULL }; 7755 7756 /* 7757 * content selection pattern - do fix if pattern found 7758 */ 7759 tSCC zUw7_Byteorder_FixSelect0[] = 7760 "in_port_t"; 7761 7762 /* 7763 * perform the 'test' shell command - do fix on success 7764 */ 7765 tSCC zUw7_Byteorder_FixTest0[] = 7766 "-f sys/byteorder.h"; 7767 7768 #define UW7_BYTEORDER_FIX_TEST_CT 2 7769 static tTestDesc aUw7_Byteorder_FixTests[] = { 7770 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ }, 7771 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, }; 7772 7773 /* 7774 * Fix Command Arguments for Uw7_Byteorder_Fix 7775 */ 7776 static const char* apzUw7_Byteorder_FixPatch[] = { 7777 "format", 7778 "", 7779 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;", 7780 (char*)NULL }; 7781 7782 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7783 * 7784 * Description of Va_I960_Macro fix 7785 */ 7786 tSCC zVa_I960_MacroName[] = 7787 "va_i960_macro"; 7788 7789 /* 7790 * File name selection pattern 7791 */ 7792 tSCC zVa_I960_MacroList[] = 7793 "|arch/i960/archI960.h|"; 7794 /* 7795 * Machine/OS name selection pattern 7796 */ 7797 #define apzVa_I960_MacroMachs (const char**)NULL 7798 7799 /* 7800 * content selection pattern - do fix if pattern found 7801 */ 7802 tSCC zVa_I960_MacroSelect0[] = 7803 "__(vsiz|vali|vpad|alignof__)"; 7804 7805 #define VA_I960_MACRO_TEST_CT 1 7806 static tTestDesc aVa_I960_MacroTests[] = { 7807 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, }; 7808 7809 /* 7810 * Fix Command Arguments for Va_I960_Macro 7811 */ 7812 static const char* apzVa_I960_MacroPatch[] = { 7813 "format", 7814 "__vx%1", 7815 (char*)NULL }; 7816 7817 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7818 * 7819 * Description of Void_Null fix 7820 */ 7821 tSCC zVoid_NullName[] = 7822 "void_null"; 7823 7824 /* 7825 * File name selection pattern 7826 */ 7827 tSCC zVoid_NullList[] = 7828 "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|"; 7829 /* 7830 * Machine/OS name selection pattern 7831 */ 7832 #define apzVoid_NullMachs (const char**)NULL 7833 7834 /* 7835 * content selection pattern - do fix if pattern found 7836 */ 7837 tSCC zVoid_NullSelect0[] = 7838 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)"; 7839 7840 /* 7841 * content bypass pattern - skip fix if pattern found 7842 */ 7843 tSCC zVoid_NullBypass0[] = 7844 "__cplusplus"; 7845 7846 #define VOID_NULL_TEST_CT 2 7847 static tTestDesc aVoid_NullTests[] = { 7848 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL }, 7849 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, }; 7850 7851 /* 7852 * Fix Command Arguments for Void_Null 7853 */ 7854 static const char* apzVoid_NullPatch[] = { 7855 "format", 7856 "#define NULL 0", 7857 (char*)NULL }; 7858 7859 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7860 * 7861 * Description of Vxworks_Gcc_Problem fix 7862 */ 7863 tSCC zVxworks_Gcc_ProblemName[] = 7864 "vxworks_gcc_problem"; 7865 7866 /* 7867 * File name selection pattern 7868 */ 7869 tSCC zVxworks_Gcc_ProblemList[] = 7870 "|types/vxTypesBase.h|"; 7871 /* 7872 * Machine/OS name selection pattern 7873 */ 7874 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL 7875 7876 /* 7877 * content selection pattern - do fix if pattern found 7878 */ 7879 tSCC zVxworks_Gcc_ProblemSelect0[] = 7880 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__"; 7881 7882 #define VXWORKS_GCC_PROBLEM_TEST_CT 1 7883 static tTestDesc aVxworks_Gcc_ProblemTests[] = { 7884 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, }; 7885 7886 /* 7887 * Fix Command Arguments for Vxworks_Gcc_Problem 7888 */ 7889 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed", 7890 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", 7891 "-e", "/[ \t]size_t/i\\\n\ 7892 #ifndef _GCC_SIZE_T\\\n\ 7893 #define _GCC_SIZE_T\n", 7894 "-e", "/[ \t]size_t/a\\\n\ 7895 #endif\n", 7896 "-e", "/[ \t]ptrdiff_t/i\\\n\ 7897 #ifndef _GCC_PTRDIFF_T\\\n\ 7898 #define _GCC_PTRDIFF_T\n", 7899 "-e", "/[ \t]ptrdiff_t/a\\\n\ 7900 #endif\n", 7901 "-e", "/[ \t]wchar_t/i\\\n\ 7902 #ifndef _GCC_WCHAR_T\\\n\ 7903 #define _GCC_WCHAR_T\n", 7904 "-e", "/[ \t]wchar_t/a\\\n\ 7905 #endif\n", 7906 (char*)NULL }; 7907 7908 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7909 * 7910 * Description of Vxworks_Needs_Vxtypes fix 7911 */ 7912 tSCC zVxworks_Needs_VxtypesName[] = 7913 "vxworks_needs_vxtypes"; 7914 7915 /* 7916 * File name selection pattern 7917 */ 7918 tSCC zVxworks_Needs_VxtypesList[] = 7919 "|time.h|"; 7920 /* 7921 * Machine/OS name selection pattern 7922 */ 7923 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL 7924 7925 /* 7926 * content selection pattern - do fix if pattern found 7927 */ 7928 tSCC zVxworks_Needs_VxtypesSelect0[] = 7929 "uint_t([ \t]+_clocks_per_sec)"; 7930 7931 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 7932 static tTestDesc aVxworks_Needs_VxtypesTests[] = { 7933 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, }; 7934 7935 /* 7936 * Fix Command Arguments for Vxworks_Needs_Vxtypes 7937 */ 7938 static const char* apzVxworks_Needs_VxtypesPatch[] = { 7939 "format", 7940 "unsigned int%1", 7941 (char*)NULL }; 7942 7943 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7944 * 7945 * Description of Vxworks_Needs_Vxworks fix 7946 */ 7947 tSCC zVxworks_Needs_VxworksName[] = 7948 "vxworks_needs_vxworks"; 7949 7950 /* 7951 * File name selection pattern 7952 */ 7953 tSCC zVxworks_Needs_VxworksList[] = 7954 "|sys/stat.h|"; 7955 /* 7956 * Machine/OS name selection pattern 7957 */ 7958 #define apzVxworks_Needs_VxworksMachs (const char**)NULL 7959 7960 /* 7961 * content selection pattern - do fix if pattern found 7962 */ 7963 tSCC zVxworks_Needs_VxworksSelect0[] = 7964 "#[ \t]define[ \t]+__INCstath"; 7965 7966 /* 7967 * perform the 'test' shell command - do fix on success 7968 */ 7969 tSCC zVxworks_Needs_VxworksTest0[] = 7970 " -r types/vxTypesOld.h"; 7971 tSCC zVxworks_Needs_VxworksTest1[] = 7972 " -n \"`egrep '#include' $file`\""; 7973 tSCC zVxworks_Needs_VxworksTest2[] = 7974 " -n \"`egrep ULONG $file`\""; 7975 7976 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 7977 static tTestDesc aVxworks_Needs_VxworksTests[] = { 7978 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ }, 7979 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ }, 7980 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ }, 7981 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, }; 7982 7983 /* 7984 * Fix Command Arguments for Vxworks_Needs_Vxworks 7985 */ 7986 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed", 7987 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ 7988 #include <types/vxTypesOld.h>\n", 7989 (char*)NULL }; 7990 7991 /* * * * * * * * * * * * * * * * * * * * * * * * * * 7992 * 7993 * Description of Vxworks_Time fix 7994 */ 7995 tSCC zVxworks_TimeName[] = 7996 "vxworks_time"; 7997 7998 /* 7999 * File name selection pattern 8000 */ 8001 tSCC zVxworks_TimeList[] = 8002 "|time.h|"; 8003 /* 8004 * Machine/OS name selection pattern 8005 */ 8006 #define apzVxworks_TimeMachs (const char**)NULL 8007 8008 /* 8009 * content selection pattern - do fix if pattern found 8010 */ 8011 tSCC zVxworks_TimeSelect0[] = 8012 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*"; 8013 8014 /* 8015 * perform the 'test' shell command - do fix on success 8016 */ 8017 tSCC zVxworks_TimeTest0[] = 8018 " -r vxWorks.h"; 8019 8020 #define VXWORKS_TIME_TEST_CT 2 8021 static tTestDesc aVxworks_TimeTests[] = { 8022 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ }, 8023 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, }; 8024 8025 /* 8026 * Fix Command Arguments for Vxworks_Time 8027 */ 8028 static const char* apzVxworks_TimePatch[] = { 8029 "format", 8030 "#ifndef __gcc_VOIDFUNCPTR_defined\n\ 8031 #ifdef __cplusplus\n\ 8032 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\ 8033 #else\n\ 8034 typedef void (*__gcc_VOIDFUNCPTR) ();\n\ 8035 #endif\n\ 8036 #define __gcc_VOIDFUNCPTR_defined\n\ 8037 #endif\n\ 8038 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR", 8039 (char*)NULL }; 8040 8041 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8042 * 8043 * Description of Windiss_Math1 fix 8044 */ 8045 tSCC zWindiss_Math1Name[] = 8046 "windiss_math1"; 8047 8048 /* 8049 * File name selection pattern 8050 */ 8051 tSCC zWindiss_Math1List[] = 8052 "|math.h|"; 8053 /* 8054 * Machine/OS name selection pattern 8055 */ 8056 tSCC* apzWindiss_Math1Machs[] = { 8057 "*-*-windiss", 8058 (const char*)NULL }; 8059 #define WINDISS_MATH1_TEST_CT 0 8060 #define aWindiss_Math1Tests (tTestDesc*)NULL 8061 8062 /* 8063 * Fix Command Arguments for Windiss_Math1 8064 */ 8065 static const char* apzWindiss_Math1Patch[] = { "sed", 8066 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|", 8067 (char*)NULL }; 8068 8069 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8070 * 8071 * Description of Windiss_Math2 fix 8072 */ 8073 tSCC zWindiss_Math2Name[] = 8074 "windiss_math2"; 8075 8076 /* 8077 * File name selection pattern 8078 */ 8079 tSCC zWindiss_Math2List[] = 8080 "|math.h|"; 8081 /* 8082 * Machine/OS name selection pattern 8083 */ 8084 tSCC* apzWindiss_Math2Machs[] = { 8085 "*-*-windiss", 8086 (const char*)NULL }; 8087 #define WINDISS_MATH2_TEST_CT 0 8088 #define aWindiss_Math2Tests (tTestDesc*)NULL 8089 8090 /* 8091 * Fix Command Arguments for Windiss_Math2 8092 */ 8093 static const char* apzWindiss_Math2Patch[] = { "sed", 8094 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|", 8095 (char*)NULL }; 8096 8097 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8098 * 8099 * Description of Windiss_Valist fix 8100 */ 8101 tSCC zWindiss_ValistName[] = 8102 "windiss_valist"; 8103 8104 /* 8105 * File name selection pattern 8106 */ 8107 #define zWindiss_ValistList (char*)NULL 8108 /* 8109 * Machine/OS name selection pattern 8110 */ 8111 tSCC* apzWindiss_ValistMachs[] = { 8112 "*-*-windiss", 8113 (const char*)NULL }; 8114 8115 /* 8116 * content selection pattern - do fix if pattern found 8117 */ 8118 tSCC zWindiss_ValistSelect0[] = 8119 "(#include.*)diab/va_list.h"; 8120 8121 #define WINDISS_VALIST_TEST_CT 1 8122 static tTestDesc aWindiss_ValistTests[] = { 8123 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, }; 8124 8125 /* 8126 * Fix Command Arguments for Windiss_Valist 8127 */ 8128 static const char* apzWindiss_ValistPatch[] = { "sed", 8129 "-e", "s|diab/va_list.h|stdarg.h|", 8130 (char*)NULL }; 8131 8132 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8133 * 8134 * Description of X11_Class fix 8135 */ 8136 tSCC zX11_ClassName[] = 8137 "x11_class"; 8138 8139 /* 8140 * File name selection pattern 8141 */ 8142 tSCC zX11_ClassList[] = 8143 "|X11/ShellP.h|"; 8144 /* 8145 * Machine/OS name selection pattern 8146 */ 8147 #define apzX11_ClassMachs (const char**)NULL 8148 8149 /* 8150 * content selection pattern - do fix if pattern found 8151 */ 8152 tSCC zX11_ClassSelect0[] = 8153 "^([ \t]*char \\*)class;(.*)"; 8154 8155 /* 8156 * content bypass pattern - skip fix if pattern found 8157 */ 8158 tSCC zX11_ClassBypass0[] = 8159 "__cplusplus"; 8160 8161 #define X11_CLASS_TEST_CT 2 8162 static tTestDesc aX11_ClassTests[] = { 8163 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, 8164 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, }; 8165 8166 /* 8167 * Fix Command Arguments for X11_Class 8168 */ 8169 static const char* apzX11_ClassPatch[] = { 8170 "format", 8171 "#ifdef __cplusplus\n\ 8172 %1c_class;%2\n\ 8173 #else\n\ 8174 %1class;%2\n\ 8175 #endif", 8176 (char*)NULL }; 8177 8178 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8179 * 8180 * Description of X11_Class_Usage fix 8181 */ 8182 tSCC zX11_Class_UsageName[] = 8183 "x11_class_usage"; 8184 8185 /* 8186 * File name selection pattern 8187 */ 8188 tSCC zX11_Class_UsageList[] = 8189 "|Xm/BaseClassI.h|"; 8190 /* 8191 * Machine/OS name selection pattern 8192 */ 8193 #define apzX11_Class_UsageMachs (const char**)NULL 8194 8195 /* 8196 * content selection pattern - do fix if pattern found 8197 */ 8198 tSCC zX11_Class_UsageSelect0[] = 8199 " class\\)"; 8200 8201 /* 8202 * content bypass pattern - skip fix if pattern found 8203 */ 8204 tSCC zX11_Class_UsageBypass0[] = 8205 "__cplusplus"; 8206 8207 #define X11_CLASS_USAGE_TEST_CT 2 8208 static tTestDesc aX11_Class_UsageTests[] = { 8209 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, 8210 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, }; 8211 8212 /* 8213 * Fix Command Arguments for X11_Class_Usage 8214 */ 8215 static const char* apzX11_Class_UsagePatch[] = { 8216 "format", 8217 " c_class)", 8218 (char*)NULL }; 8219 8220 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8221 * 8222 * Description of X11_New fix 8223 */ 8224 tSCC zX11_NewName[] = 8225 "x11_new"; 8226 8227 /* 8228 * File name selection pattern 8229 */ 8230 tSCC zX11_NewList[] = 8231 "|Xm/Traversal.h|"; 8232 /* 8233 * Machine/OS name selection pattern 8234 */ 8235 #define apzX11_NewMachs (const char**)NULL 8236 8237 /* 8238 * content bypass pattern - skip fix if pattern found 8239 */ 8240 tSCC zX11_NewBypass0[] = 8241 "__cplusplus"; 8242 8243 #define X11_NEW_TEST_CT 1 8244 static tTestDesc aX11_NewTests[] = { 8245 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, }; 8246 8247 /* 8248 * Fix Command Arguments for X11_New 8249 */ 8250 static const char* apzX11_NewPatch[] = { "sed", 8251 "-e", "/Widget\told, new;/i\\\n\ 8252 #ifdef __cplusplus\\\n\ 8253 \tWidget\told, c_new;\\\n\ 8254 #else\n", 8255 "-e", "/Widget\told, new;/a\\\n\ 8256 #endif\n", 8257 "-e", "s/Widget new,/Widget c_new,/g", 8258 (char*)NULL }; 8259 8260 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8261 * 8262 * Description of X11_Sprintf fix 8263 */ 8264 tSCC zX11_SprintfName[] = 8265 "x11_sprintf"; 8266 8267 /* 8268 * File name selection pattern 8269 */ 8270 tSCC zX11_SprintfList[] = 8271 "|X11/Xmu.h|X11/Xmu/Xmu.h|"; 8272 /* 8273 * Machine/OS name selection pattern 8274 */ 8275 #define apzX11_SprintfMachs (const char**)NULL 8276 8277 /* 8278 * content selection pattern - do fix if pattern found 8279 */ 8280 tSCC zX11_SprintfSelect0[] = 8281 "^extern char \\*\tsprintf\\(\\);$"; 8282 8283 #define X11_SPRINTF_TEST_CT 1 8284 static tTestDesc aX11_SprintfTests[] = { 8285 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, }; 8286 8287 /* 8288 * Fix Command Arguments for X11_Sprintf 8289 */ 8290 static const char* apzX11_SprintfPatch[] = { 8291 "format", 8292 "#ifndef __STDC__\n\ 8293 %0\n\ 8294 #endif /* !defined __STDC__ */", 8295 (char*)NULL }; 8296 8297 8298 /* * * * * * * * * * * * * * * * * * * * * * * * * * 8299 * 8300 * List of all fixes 8301 */ 8302 #define REGEX_COUNT 246 8303 #define MACH_LIST_SIZE_LIMIT 261 8304 #define FIX_COUNT 204 8305 8306 /* 8307 * Enumerate the fixes 8308 */ 8309 typedef enum { 8310 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX, 8311 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX, 8312 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX, 8313 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX, 8314 AAB_FD_ZERO_SELECTBITS_H_FIXIDX, 8315 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX, 8316 AAB_SUN_MEMCPY_FIXIDX, 8317 AAB_ULTRIX_ANSI_COMPAT_FIXIDX, 8318 AAB_ULTRIX_LIMITS_FIXIDX, 8319 AAB_ULTRIX_MEMORY_FIXIDX, 8320 AAB_ULTRIX_STRING_FIXIDX, 8321 AIX_PTHREAD_FIXIDX, 8322 AIX_SYSMACHINE_FIXIDX, 8323 AIX_SYSWAIT_FIXIDX, 8324 AIX_SYSWAIT_2_FIXIDX, 8325 AIX_VOLATILE_FIXIDX, 8326 ALPHA___ASSERT_FIXIDX, 8327 ALPHA___EXTERN_PREFIX_FIXIDX, 8328 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX, 8329 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX, 8330 ALPHA_ASSERT_FIXIDX, 8331 ALPHA_BAD_LVAL_FIXIDX, 8332 ALPHA_GETOPT_FIXIDX, 8333 ALPHA_PARENS_FIXIDX, 8334 ALPHA_PTHREAD_FIXIDX, 8335 ALPHA_PTHREAD_GCC_FIXIDX, 8336 ALPHA_PTHREAD_INIT_FIXIDX, 8337 ALPHA_SBRK_FIXIDX, 8338 ALPHA_WCHAR_FIXIDX, 8339 AVOID_BOOL_DEFINE_FIXIDX, 8340 AVOID_BOOL_TYPE_FIXIDX, 8341 AVOID_WCHAR_T_TYPE_FIXIDX, 8342 BAD_STRUCT_TERM_FIXIDX, 8343 BADQUOTE_FIXIDX, 8344 BROKEN_ASSERT_STDIO_FIXIDX, 8345 BROKEN_ASSERT_STDLIB_FIXIDX, 8346 BROKEN_CABS_FIXIDX, 8347 BROKEN_NAN_FIXIDX, 8348 BSD_STDIO_ATTRS_CONFLICT_FIXIDX, 8349 CTRL_QUOTES_DEF_FIXIDX, 8350 CTRL_QUOTES_USE_FIXIDX, 8351 CXX_UNREADY_FIXIDX, 8352 DARWIN_GCC4_BREAKAGE_FIXIDX, 8353 DARWIN_PRIVATE_EXTERN_FIXIDX, 8354 DEC_INTERN_ASM_FIXIDX, 8355 DJGPP_WCHAR_H_FIXIDX, 8356 ECD_CURSOR_FIXIDX, 8357 EXCEPTION_STRUCTURE_FIXIDX, 8358 FREEBSD_GCC3_BREAKAGE_FIXIDX, 8359 FREEBSD_GCC4_BREAKAGE_FIXIDX, 8360 GLIBC_MUTEX_INIT_FIXIDX, 8361 GNU_TYPES_FIXIDX, 8362 HP_INLINE_FIXIDX, 8363 HP_SYSFILE_FIXIDX, 8364 HPUX10_CPP_POW_INLINE_FIXIDX, 8365 HPUX11_CPP_POW_INLINE_FIXIDX, 8366 HPUX10_CTYPE_DECLARATIONS1_FIXIDX, 8367 HPUX10_CTYPE_DECLARATIONS2_FIXIDX, 8368 HPUX10_STDIO_DECLARATIONS_FIXIDX, 8369 HPUX11_ABS_FIXIDX, 8370 HPUX11_FABSF_FIXIDX, 8371 HPUX11_SIZE_T_FIXIDX, 8372 HPUX11_SNPRINTF_FIXIDX, 8373 HPUX11_UINT32_C_FIXIDX, 8374 HPUX11_VSNPRINTF_FIXIDX, 8375 HPUX8_BOGUS_INLINES_FIXIDX, 8376 HPUX_CTYPE_MACROS_FIXIDX, 8377 HPUX_HTONL_FIXIDX, 8378 HPUX_LONG_DOUBLE_FIXIDX, 8379 HPUX_SYSTIME_FIXIDX, 8380 HPUX_SPU_INFO_FIXIDX, 8381 HPUX11_EXTERN_SENDFILE_FIXIDX, 8382 HPUX11_EXTERN_SENDPATH_FIXIDX, 8383 HPUX_EXTERN_ERRNO_FIXIDX, 8384 HPUX_PTHREAD_INITIALIZERS_FIXIDX, 8385 HUGE_VAL_HEX_FIXIDX, 8386 HUGE_VALF_HEX_FIXIDX, 8387 HUGE_VALL_HEX_FIXIDX, 8388 INT_ABORT_FREE_AND_EXIT_FIXIDX, 8389 IO_QUOTES_DEF_FIXIDX, 8390 IO_QUOTES_USE_FIXIDX, 8391 IP_MISSING_SEMI_FIXIDX, 8392 IRIX___RESTRICT_FIXIDX, 8393 IRIX___GENERIC1_FIXIDX, 8394 IRIX___GENERIC2_FIXIDX, 8395 IRIX_ASM_APOSTROPHE_FIXIDX, 8396 IRIX_LIMITS_CONST_FIXIDX, 8397 IRIX_SOCKLEN_T_FIXIDX, 8398 IRIX_STDINT_C99_FIXIDX, 8399 IRIX_STDIO_VA_LIST_FIXIDX, 8400 IRIX_WCSFTIME_FIXIDX, 8401 ISC_FMOD_FIXIDX, 8402 ISC_OMITS_WITH_STDC_FIXIDX, 8403 KANDR_CONCAT_FIXIDX, 8404 LIBC1_G_VA_LIST_FIXIDX, 8405 LIBC1_IFDEFD_MEMX_FIXIDX, 8406 LINUX_IA64_UCONTEXT_FIXIDX, 8407 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX, 8408 LYNXOS_MISSING_PUTENV_FIXIDX, 8409 MACHINE_ANSI_H_VA_LIST_FIXIDX, 8410 MACHINE_NAME_FIXIDX, 8411 MATH_EXCEPTION_FIXIDX, 8412 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX, 8413 NESTED_AUTH_DES_FIXIDX, 8414 NESTED_MOTOROLA_FIXIDX, 8415 NESTED_SYS_LIMITS_FIXIDX, 8416 NETBSD_EXTRA_SEMICOLON_FIXIDX, 8417 NEXT_MATH_PREFIX_FIXIDX, 8418 NEXT_TEMPLATE_FIXIDX, 8419 NEXT_VOLITILE_FIXIDX, 8420 NEXT_WAIT_UNION_FIXIDX, 8421 NODEENT_SYNTAX_FIXIDX, 8422 OBSTACK_LVALUE_CAST_FIXIDX, 8423 OSF_NAMESPACE_A_FIXIDX, 8424 OSF_NAMESPACE_C_FIXIDX, 8425 PTHREAD_PAGE_SIZE_FIXIDX, 8426 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX, 8427 READ_RET_TYPE_FIXIDX, 8428 RPC_XDR_LVALUE_CAST_A_FIXIDX, 8429 RPC_XDR_LVALUE_CAST_B_FIXIDX, 8430 RS6000_DOUBLE_FIXIDX, 8431 RS6000_FCHMOD_FIXIDX, 8432 RS6000_PARAM_FIXIDX, 8433 SCO_MATH_FIXIDX, 8434 SCO_REGSET_FIXIDX, 8435 SCO_STATIC_FUNC_FIXIDX, 8436 SCO_UTIME_FIXIDX, 8437 SOLARIS_MATH_1_FIXIDX, 8438 SOLARIS_MATH_2_FIXIDX, 8439 SOLARIS_MATH_3_FIXIDX, 8440 SOLARIS_MATH_4_FIXIDX, 8441 SOLARIS_MATH_5_FIXIDX, 8442 SOLARIS_MATH_6_FIXIDX, 8443 SOLARIS_MATH_7_FIXIDX, 8444 SOLARIS_MATH_8_FIXIDX, 8445 SOLARIS_MATH_9_FIXIDX, 8446 SOLARIS_MUTEX_INIT_1_FIXIDX, 8447 SOLARIS_MUTEX_INIT_2_FIXIDX, 8448 SOLARIS_RWLOCK_INIT_1_FIXIDX, 8449 SOLARIS_ONCE_INIT_1_FIXIDX, 8450 SOLARIS_ONCE_INIT_2_FIXIDX, 8451 SOLARIS_SOCKET_FIXIDX, 8452 SOLARIS_STDIO_TAG_FIXIDX, 8453 SOLARIS_UNISTD_FIXIDX, 8454 SOLARIS_WIDEC_FIXIDX, 8455 STATSSWTCH_FIXIDX, 8456 STDIO_STDARG_H_FIXIDX, 8457 STDIO_VA_LIST_FIXIDX, 8458 STDIO_VA_LIST_CLIENTS_FIXIDX, 8459 STRICT_ANSI_NOT_FIXIDX, 8460 STRICT_ANSI_NOT_CTD_FIXIDX, 8461 STRICT_ANSI_ONLY_FIXIDX, 8462 STRUCT_FILE_FIXIDX, 8463 STRUCT_SOCKADDR_FIXIDX, 8464 SUN_AUTH_PROTO_FIXIDX, 8465 SUN_BOGUS_IFDEF_FIXIDX, 8466 SUN_CATMACRO_FIXIDX, 8467 SUN_MALLOC_FIXIDX, 8468 SUN_RUSERS_SEMI_FIXIDX, 8469 SUN_SIGNAL_FIXIDX, 8470 SUNOS_STRLEN_FIXIDX, 8471 SVR4_DISABLE_OPT_FIXIDX, 8472 SVR4_GETCWD_FIXIDX, 8473 SVR4_KRNL_FIXIDX, 8474 SVR4_PROFIL_FIXIDX, 8475 SVR4_SIGHANDLER_TYPE_FIXIDX, 8476 SVR4_UNDECLARED_GETRNGE_FIXIDX, 8477 SYSV68_STRING_FIXIDX, 8478 SYSZ_STDLIB_FOR_SUN_FIXIDX, 8479 THREAD_KEYWORD_FIXIDX, 8480 TINFO_CPLUSPLUS_FIXIDX, 8481 ULTRIX_ATEXIT_PARAM_FIXIDX, 8482 ULTRIX_ATOF_PARAM_FIXIDX, 8483 ULTRIX_CONST_FIXIDX, 8484 ULTRIX_CONST2_FIXIDX, 8485 ULTRIX_CONST3_FIXIDX, 8486 ULTRIX_FIX_FIXPROTO_FIXIDX, 8487 ULTRIX_IFDEF_FIXIDX, 8488 ULTRIX_LOCALE_FIXIDX, 8489 ULTRIX_MATH_IFDEF_FIXIDX, 8490 ULTRIX_NESTED_IOCTL_FIXIDX, 8491 ULTRIX_NESTED_SVC_FIXIDX, 8492 ULTRIX_STAT_FIXIDX, 8493 ULTRIX_STATIC_FIXIDX, 8494 ULTRIX_STDLIB_FIXIDX, 8495 ULTRIX_STRINGS_FIXIDX, 8496 ULTRIX_STRINGS2_FIXIDX, 8497 ULTRIX_SYS_TIME_FIXIDX, 8498 ULTRIX_UNISTD_FIXIDX, 8499 UNICOSMK_RESTRICT_FIXIDX, 8500 UW7_BYTEORDER_FIX_FIXIDX, 8501 VA_I960_MACRO_FIXIDX, 8502 VOID_NULL_FIXIDX, 8503 VXWORKS_GCC_PROBLEM_FIXIDX, 8504 VXWORKS_NEEDS_VXTYPES_FIXIDX, 8505 VXWORKS_NEEDS_VXWORKS_FIXIDX, 8506 VXWORKS_TIME_FIXIDX, 8507 WINDISS_MATH1_FIXIDX, 8508 WINDISS_MATH2_FIXIDX, 8509 WINDISS_VALIST_FIXIDX, 8510 X11_CLASS_FIXIDX, 8511 X11_CLASS_USAGE_FIXIDX, 8512 X11_NEW_FIXIDX, 8513 X11_SPRINTF_FIXIDX 8514 } t_fixinc_idx; 8515 8516 tFixDesc fixDescList[ FIX_COUNT ] = { 8517 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList, 8518 apzAab_Darwin7_9_Long_Double_FuncsMachs, 8519 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8520 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 }, 8521 8522 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List, 8523 apzAab_Darwin7_9_Long_Double_Funcs_2Machs, 8524 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8525 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 }, 8526 8527 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList, 8528 apzAab_Fd_Zero_Asm_Posix_Types_HMachs, 8529 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8530 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 }, 8531 8532 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList, 8533 apzAab_Fd_Zero_Gnu_Types_HMachs, 8534 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8535 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 }, 8536 8537 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList, 8538 apzAab_Fd_Zero_Selectbits_HMachs, 8539 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8540 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 }, 8541 8542 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList, 8543 apzAab_Solaris_Sys_Varargs_HMachs, 8544 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8545 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 }, 8546 8547 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList, 8548 apzAab_Sun_MemcpyMachs, 8549 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8550 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 }, 8551 8552 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList, 8553 apzAab_Ultrix_Ansi_CompatMachs, 8554 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8555 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 }, 8556 8557 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList, 8558 apzAab_Ultrix_LimitsMachs, 8559 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8560 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 }, 8561 8562 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList, 8563 apzAab_Ultrix_MemoryMachs, 8564 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8565 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 }, 8566 8567 { zAab_Ultrix_StringName, zAab_Ultrix_StringList, 8568 apzAab_Ultrix_StringMachs, 8569 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, 8570 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 }, 8571 8572 { zAix_PthreadName, zAix_PthreadList, 8573 apzAix_PthreadMachs, 8574 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8575 aAix_PthreadTests, apzAix_PthreadPatch, 0 }, 8576 8577 { zAix_SysmachineName, zAix_SysmachineList, 8578 apzAix_SysmachineMachs, 8579 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8580 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 }, 8581 8582 { zAix_SyswaitName, zAix_SyswaitList, 8583 apzAix_SyswaitMachs, 8584 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8585 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 }, 8586 8587 { zAix_Syswait_2Name, zAix_Syswait_2List, 8588 apzAix_Syswait_2Machs, 8589 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8590 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 }, 8591 8592 { zAix_VolatileName, zAix_VolatileList, 8593 apzAix_VolatileMachs, 8594 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8595 aAix_VolatileTests, apzAix_VolatilePatch, 0 }, 8596 8597 { zAlpha___AssertName, zAlpha___AssertList, 8598 apzAlpha___AssertMachs, 8599 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8600 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 }, 8601 8602 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList, 8603 apzAlpha___Extern_PrefixMachs, 8604 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8605 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 }, 8606 8607 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList, 8608 apzAlpha___Extern_Prefix_StandardsMachs, 8609 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8610 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 }, 8611 8612 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList, 8613 apzAlpha___Extern_Prefix_Sys_StatMachs, 8614 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8615 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 }, 8616 8617 { zAlpha_AssertName, zAlpha_AssertList, 8618 apzAlpha_AssertMachs, 8619 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8620 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 }, 8621 8622 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList, 8623 apzAlpha_Bad_LvalMachs, 8624 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY, 8625 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 }, 8626 8627 { zAlpha_GetoptName, zAlpha_GetoptList, 8628 apzAlpha_GetoptMachs, 8629 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8630 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 }, 8631 8632 { zAlpha_ParensName, zAlpha_ParensList, 8633 apzAlpha_ParensMachs, 8634 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8635 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 }, 8636 8637 { zAlpha_PthreadName, zAlpha_PthreadList, 8638 apzAlpha_PthreadMachs, 8639 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8640 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 }, 8641 8642 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList, 8643 apzAlpha_Pthread_GccMachs, 8644 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8645 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 }, 8646 8647 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList, 8648 apzAlpha_Pthread_InitMachs, 8649 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY, 8650 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 }, 8651 8652 { zAlpha_SbrkName, zAlpha_SbrkList, 8653 apzAlpha_SbrkMachs, 8654 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8655 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 }, 8656 8657 { zAlpha_WcharName, zAlpha_WcharList, 8658 apzAlpha_WcharMachs, 8659 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY, 8660 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 }, 8661 8662 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList, 8663 apzAvoid_Bool_DefineMachs, 8664 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8665 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 }, 8666 8667 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList, 8668 apzAvoid_Bool_TypeMachs, 8669 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8670 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 }, 8671 8672 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList, 8673 apzAvoid_Wchar_T_TypeMachs, 8674 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8675 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 }, 8676 8677 { zBad_Struct_TermName, zBad_Struct_TermList, 8678 apzBad_Struct_TermMachs, 8679 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8680 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 }, 8681 8682 { zBadquoteName, zBadquoteList, 8683 apzBadquoteMachs, 8684 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8685 aBadquoteTests, apzBadquotePatch, 0 }, 8686 8687 { zBroken_Assert_StdioName, zBroken_Assert_StdioList, 8688 apzBroken_Assert_StdioMachs, 8689 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8690 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 }, 8691 8692 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList, 8693 apzBroken_Assert_StdlibMachs, 8694 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8695 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 }, 8696 8697 { zBroken_CabsName, zBroken_CabsList, 8698 apzBroken_CabsMachs, 8699 BROKEN_CABS_TEST_CT, FD_MACH_ONLY, 8700 aBroken_CabsTests, apzBroken_CabsPatch, 0 }, 8701 8702 { zBroken_NanName, zBroken_NanList, 8703 apzBroken_NanMachs, 8704 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8705 aBroken_NanTests, apzBroken_NanPatch, 0 }, 8706 8707 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList, 8708 apzBsd_Stdio_Attrs_ConflictMachs, 8709 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8710 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 }, 8711 8712 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList, 8713 apzCtrl_Quotes_DefMachs, 8714 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8715 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 }, 8716 8717 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList, 8718 apzCtrl_Quotes_UseMachs, 8719 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8720 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 }, 8721 8722 { zCxx_UnreadyName, zCxx_UnreadyList, 8723 apzCxx_UnreadyMachs, 8724 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8725 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 }, 8726 8727 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList, 8728 apzDarwin_Gcc4_BreakageMachs, 8729 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8730 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 }, 8731 8732 { zDarwin_Private_ExternName, zDarwin_Private_ExternList, 8733 apzDarwin_Private_ExternMachs, 8734 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8735 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 }, 8736 8737 { zDec_Intern_AsmName, zDec_Intern_AsmList, 8738 apzDec_Intern_AsmMachs, 8739 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY, 8740 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 }, 8741 8742 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList, 8743 apzDjgpp_Wchar_HMachs, 8744 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8745 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 }, 8746 8747 { zEcd_CursorName, zEcd_CursorList, 8748 apzEcd_CursorMachs, 8749 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8750 aEcd_CursorTests, apzEcd_CursorPatch, 0 }, 8751 8752 { zException_StructureName, zException_StructureList, 8753 apzException_StructureMachs, 8754 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8755 aException_StructureTests, apzException_StructurePatch, 0 }, 8756 8757 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList, 8758 apzFreebsd_Gcc3_BreakageMachs, 8759 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8760 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 }, 8761 8762 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList, 8763 apzFreebsd_Gcc4_BreakageMachs, 8764 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8765 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 }, 8766 8767 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList, 8768 apzGlibc_Mutex_InitMachs, 8769 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY, 8770 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 }, 8771 8772 { zGnu_TypesName, zGnu_TypesList, 8773 apzGnu_TypesMachs, 8774 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, 8775 aGnu_TypesTests, apzGnu_TypesPatch, 0 }, 8776 8777 { zHp_InlineName, zHp_InlineList, 8778 apzHp_InlineMachs, 8779 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8780 aHp_InlineTests, apzHp_InlinePatch, 0 }, 8781 8782 { zHp_SysfileName, zHp_SysfileList, 8783 apzHp_SysfileMachs, 8784 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8785 aHp_SysfileTests, apzHp_SysfilePatch, 0 }, 8786 8787 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList, 8788 apzHpux10_Cpp_Pow_InlineMachs, 8789 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8790 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 }, 8791 8792 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList, 8793 apzHpux11_Cpp_Pow_InlineMachs, 8794 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8795 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 }, 8796 8797 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List, 8798 apzHpux10_Ctype_Declarations1Machs, 8799 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8800 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 }, 8801 8802 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List, 8803 apzHpux10_Ctype_Declarations2Machs, 8804 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8805 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 }, 8806 8807 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList, 8808 apzHpux10_Stdio_DeclarationsMachs, 8809 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8810 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 }, 8811 8812 { zHpux11_AbsName, zHpux11_AbsList, 8813 apzHpux11_AbsMachs, 8814 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8815 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 }, 8816 8817 { zHpux11_FabsfName, zHpux11_FabsfList, 8818 apzHpux11_FabsfMachs, 8819 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8820 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 }, 8821 8822 { zHpux11_Size_TName, zHpux11_Size_TList, 8823 apzHpux11_Size_TMachs, 8824 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8825 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 }, 8826 8827 { zHpux11_SnprintfName, zHpux11_SnprintfList, 8828 apzHpux11_SnprintfMachs, 8829 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8830 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 }, 8831 8832 { zHpux11_Uint32_CName, zHpux11_Uint32_CList, 8833 apzHpux11_Uint32_CMachs, 8834 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8835 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 }, 8836 8837 { zHpux11_VsnprintfName, zHpux11_VsnprintfList, 8838 apzHpux11_VsnprintfMachs, 8839 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8840 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 }, 8841 8842 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList, 8843 apzHpux8_Bogus_InlinesMachs, 8844 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY, 8845 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 }, 8846 8847 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList, 8848 apzHpux_Ctype_MacrosMachs, 8849 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8850 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 }, 8851 8852 { zHpux_HtonlName, zHpux_HtonlList, 8853 apzHpux_HtonlMachs, 8854 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8855 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 }, 8856 8857 { zHpux_Long_DoubleName, zHpux_Long_DoubleList, 8858 apzHpux_Long_DoubleMachs, 8859 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY, 8860 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 }, 8861 8862 { zHpux_SystimeName, zHpux_SystimeList, 8863 apzHpux_SystimeMachs, 8864 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8865 aHpux_SystimeTests, apzHpux_SystimePatch, 0 }, 8866 8867 { zHpux_Spu_InfoName, zHpux_Spu_InfoList, 8868 apzHpux_Spu_InfoMachs, 8869 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8870 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 }, 8871 8872 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList, 8873 apzHpux11_Extern_SendfileMachs, 8874 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8875 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 }, 8876 8877 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList, 8878 apzHpux11_Extern_SendpathMachs, 8879 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8880 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 }, 8881 8882 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList, 8883 apzHpux_Extern_ErrnoMachs, 8884 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8885 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 }, 8886 8887 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList, 8888 apzHpux_Pthread_InitializersMachs, 8889 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY, 8890 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 }, 8891 8892 { zHuge_Val_HexName, zHuge_Val_HexList, 8893 apzHuge_Val_HexMachs, 8894 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8895 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 }, 8896 8897 { zHuge_Valf_HexName, zHuge_Valf_HexList, 8898 apzHuge_Valf_HexMachs, 8899 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8900 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 }, 8901 8902 { zHuge_Vall_HexName, zHuge_Vall_HexList, 8903 apzHuge_Vall_HexMachs, 8904 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8905 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 }, 8906 8907 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList, 8908 apzInt_Abort_Free_And_ExitMachs, 8909 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8910 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 }, 8911 8912 { zIo_Quotes_DefName, zIo_Quotes_DefList, 8913 apzIo_Quotes_DefMachs, 8914 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8915 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 }, 8916 8917 { zIo_Quotes_UseName, zIo_Quotes_UseList, 8918 apzIo_Quotes_UseMachs, 8919 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8920 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 }, 8921 8922 { zIp_Missing_SemiName, zIp_Missing_SemiList, 8923 apzIp_Missing_SemiMachs, 8924 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY, 8925 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 }, 8926 8927 { zIrix___RestrictName, zIrix___RestrictList, 8928 apzIrix___RestrictMachs, 8929 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8930 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 }, 8931 8932 { zIrix___Generic1Name, zIrix___Generic1List, 8933 apzIrix___Generic1Machs, 8934 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8935 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 }, 8936 8937 { zIrix___Generic2Name, zIrix___Generic2List, 8938 apzIrix___Generic2Machs, 8939 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8940 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 }, 8941 8942 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList, 8943 apzIrix_Asm_ApostropheMachs, 8944 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8945 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 }, 8946 8947 { zIrix_Limits_ConstName, zIrix_Limits_ConstList, 8948 apzIrix_Limits_ConstMachs, 8949 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8950 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 }, 8951 8952 { zIrix_Socklen_TName, zIrix_Socklen_TList, 8953 apzIrix_Socklen_TMachs, 8954 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8955 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 }, 8956 8957 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List, 8958 apzIrix_Stdint_C99Machs, 8959 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8960 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 }, 8961 8962 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList, 8963 apzIrix_Stdio_Va_ListMachs, 8964 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8965 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 }, 8966 8967 { zIrix_WcsftimeName, zIrix_WcsftimeList, 8968 apzIrix_WcsftimeMachs, 8969 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8970 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 }, 8971 8972 { zIsc_FmodName, zIsc_FmodList, 8973 apzIsc_FmodMachs, 8974 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8975 aIsc_FmodTests, apzIsc_FmodPatch, 0 }, 8976 8977 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList, 8978 apzIsc_Omits_With_StdcMachs, 8979 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8980 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 }, 8981 8982 { zKandr_ConcatName, zKandr_ConcatList, 8983 apzKandr_ConcatMachs, 8984 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8985 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 }, 8986 8987 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList, 8988 apzLibc1_G_Va_ListMachs, 8989 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8990 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 }, 8991 8992 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList, 8993 apzLibc1_Ifdefd_MemxMachs, 8994 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 8995 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 }, 8996 8997 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList, 8998 apzLinux_Ia64_UcontextMachs, 8999 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9000 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 }, 9001 9002 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList, 9003 apzLynxos_No_Warning_In_Sys_Time_HMachs, 9004 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9005 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 }, 9006 9007 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList, 9008 apzLynxos_Missing_PutenvMachs, 9009 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9010 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 }, 9011 9012 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, 9013 apzMachine_Ansi_H_Va_ListMachs, 9014 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9015 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 }, 9016 9017 { zMachine_NameName, zMachine_NameList, 9018 apzMachine_NameMachs, 9019 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9020 aMachine_NameTests, apzMachine_NamePatch, 0 }, 9021 9022 { zMath_ExceptionName, zMath_ExceptionList, 9023 apzMath_ExceptionMachs, 9024 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9025 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 }, 9026 9027 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList, 9028 apzMath_Huge_Val_From_Dbl_MaxMachs, 9029 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, 9030 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 }, 9031 9032 { zNested_Auth_DesName, zNested_Auth_DesList, 9033 apzNested_Auth_DesMachs, 9034 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9035 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 }, 9036 9037 { zNested_MotorolaName, zNested_MotorolaList, 9038 apzNested_MotorolaMachs, 9039 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY, 9040 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 }, 9041 9042 { zNested_Sys_LimitsName, zNested_Sys_LimitsList, 9043 apzNested_Sys_LimitsMachs, 9044 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY, 9045 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 }, 9046 9047 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList, 9048 apzNetbsd_Extra_SemicolonMachs, 9049 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9050 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 }, 9051 9052 { zNext_Math_PrefixName, zNext_Math_PrefixList, 9053 apzNext_Math_PrefixMachs, 9054 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9055 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 }, 9056 9057 { zNext_TemplateName, zNext_TemplateList, 9058 apzNext_TemplateMachs, 9059 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9060 aNext_TemplateTests, apzNext_TemplatePatch, 0 }, 9061 9062 { zNext_VolitileName, zNext_VolitileList, 9063 apzNext_VolitileMachs, 9064 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9065 aNext_VolitileTests, apzNext_VolitilePatch, 0 }, 9066 9067 { zNext_Wait_UnionName, zNext_Wait_UnionList, 9068 apzNext_Wait_UnionMachs, 9069 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9070 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 }, 9071 9072 { zNodeent_SyntaxName, zNodeent_SyntaxList, 9073 apzNodeent_SyntaxMachs, 9074 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9075 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 }, 9076 9077 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList, 9078 apzObstack_Lvalue_CastMachs, 9079 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9080 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 }, 9081 9082 { zOsf_Namespace_AName, zOsf_Namespace_AList, 9083 apzOsf_Namespace_AMachs, 9084 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9085 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 }, 9086 9087 { zOsf_Namespace_CName, zOsf_Namespace_CList, 9088 apzOsf_Namespace_CMachs, 9089 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9090 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 }, 9091 9092 { zPthread_Page_SizeName, zPthread_Page_SizeList, 9093 apzPthread_Page_SizeMachs, 9094 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9095 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 }, 9096 9097 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList, 9098 apzPthread_Incomplete_Struct_ArgumentMachs, 9099 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9100 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 }, 9101 9102 { zRead_Ret_TypeName, zRead_Ret_TypeList, 9103 apzRead_Ret_TypeMachs, 9104 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9105 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 }, 9106 9107 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList, 9108 apzRpc_Xdr_Lvalue_Cast_AMachs, 9109 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9110 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 }, 9111 9112 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList, 9113 apzRpc_Xdr_Lvalue_Cast_BMachs, 9114 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9115 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 }, 9116 9117 { zRs6000_DoubleName, zRs6000_DoubleList, 9118 apzRs6000_DoubleMachs, 9119 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9120 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 }, 9121 9122 { zRs6000_FchmodName, zRs6000_FchmodList, 9123 apzRs6000_FchmodMachs, 9124 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9125 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 }, 9126 9127 { zRs6000_ParamName, zRs6000_ParamList, 9128 apzRs6000_ParamMachs, 9129 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9130 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 }, 9131 9132 { zSco_MathName, zSco_MathList, 9133 apzSco_MathMachs, 9134 SCO_MATH_TEST_CT, FD_MACH_ONLY, 9135 aSco_MathTests, apzSco_MathPatch, 0 }, 9136 9137 { zSco_RegsetName, zSco_RegsetList, 9138 apzSco_RegsetMachs, 9139 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9140 aSco_RegsetTests, apzSco_RegsetPatch, 0 }, 9141 9142 { zSco_Static_FuncName, zSco_Static_FuncList, 9143 apzSco_Static_FuncMachs, 9144 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY, 9145 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 }, 9146 9147 { zSco_UtimeName, zSco_UtimeList, 9148 apzSco_UtimeMachs, 9149 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9150 aSco_UtimeTests, apzSco_UtimePatch, 0 }, 9151 9152 { zSolaris_Math_1Name, zSolaris_Math_1List, 9153 apzSolaris_Math_1Machs, 9154 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9155 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 }, 9156 9157 { zSolaris_Math_2Name, zSolaris_Math_2List, 9158 apzSolaris_Math_2Machs, 9159 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9160 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 }, 9161 9162 { zSolaris_Math_3Name, zSolaris_Math_3List, 9163 apzSolaris_Math_3Machs, 9164 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9165 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 }, 9166 9167 { zSolaris_Math_4Name, zSolaris_Math_4List, 9168 apzSolaris_Math_4Machs, 9169 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9170 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 }, 9171 9172 { zSolaris_Math_5Name, zSolaris_Math_5List, 9173 apzSolaris_Math_5Machs, 9174 SOLARIS_MATH_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9175 aSolaris_Math_5Tests, apzSolaris_Math_5Patch, 0 }, 9176 9177 { zSolaris_Math_6Name, zSolaris_Math_6List, 9178 apzSolaris_Math_6Machs, 9179 SOLARIS_MATH_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9180 aSolaris_Math_6Tests, apzSolaris_Math_6Patch, 0 }, 9181 9182 { zSolaris_Math_7Name, zSolaris_Math_7List, 9183 apzSolaris_Math_7Machs, 9184 SOLARIS_MATH_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9185 aSolaris_Math_7Tests, apzSolaris_Math_7Patch, 0 }, 9186 9187 { zSolaris_Math_8Name, zSolaris_Math_8List, 9188 apzSolaris_Math_8Machs, 9189 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9190 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 }, 9191 9192 { zSolaris_Math_9Name, zSolaris_Math_9List, 9193 apzSolaris_Math_9Machs, 9194 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9195 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 }, 9196 9197 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List, 9198 apzSolaris_Mutex_Init_1Machs, 9199 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY, 9200 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 }, 9201 9202 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List, 9203 apzSolaris_Mutex_Init_2Machs, 9204 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9205 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 }, 9206 9207 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List, 9208 apzSolaris_Rwlock_Init_1Machs, 9209 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9210 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 }, 9211 9212 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List, 9213 apzSolaris_Once_Init_1Machs, 9214 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9215 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 }, 9216 9217 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List, 9218 apzSolaris_Once_Init_2Machs, 9219 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9220 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 }, 9221 9222 { zSolaris_SocketName, zSolaris_SocketList, 9223 apzSolaris_SocketMachs, 9224 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9225 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 }, 9226 9227 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList, 9228 apzSolaris_Stdio_TagMachs, 9229 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY, 9230 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 }, 9231 9232 { zSolaris_UnistdName, zSolaris_UnistdList, 9233 apzSolaris_UnistdMachs, 9234 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9235 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 }, 9236 9237 { zSolaris_WidecName, zSolaris_WidecList, 9238 apzSolaris_WidecMachs, 9239 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9240 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 }, 9241 9242 { zStatsswtchName, zStatsswtchList, 9243 apzStatsswtchMachs, 9244 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9245 aStatsswtchTests, apzStatsswtchPatch, 0 }, 9246 9247 { zStdio_Stdarg_HName, zStdio_Stdarg_HList, 9248 apzStdio_Stdarg_HMachs, 9249 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, 9250 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 }, 9251 9252 { zStdio_Va_ListName, zStdio_Va_ListList, 9253 apzStdio_Va_ListMachs, 9254 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT, 9255 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 }, 9256 9257 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList, 9258 apzStdio_Va_List_ClientsMachs, 9259 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY, 9260 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 }, 9261 9262 { zStrict_Ansi_NotName, zStrict_Ansi_NotList, 9263 apzStrict_Ansi_NotMachs, 9264 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9265 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 }, 9266 9267 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList, 9268 apzStrict_Ansi_Not_CtdMachs, 9269 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9270 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 }, 9271 9272 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList, 9273 apzStrict_Ansi_OnlyMachs, 9274 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9275 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 }, 9276 9277 { zStruct_FileName, zStruct_FileList, 9278 apzStruct_FileMachs, 9279 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9280 aStruct_FileTests, apzStruct_FilePatch, 0 }, 9281 9282 { zStruct_SockaddrName, zStruct_SockaddrList, 9283 apzStruct_SockaddrMachs, 9284 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9285 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 }, 9286 9287 { zSun_Auth_ProtoName, zSun_Auth_ProtoList, 9288 apzSun_Auth_ProtoMachs, 9289 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9290 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 }, 9291 9292 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList, 9293 apzSun_Bogus_IfdefMachs, 9294 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9295 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 }, 9296 9297 { zSun_CatmacroName, zSun_CatmacroList, 9298 apzSun_CatmacroMachs, 9299 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9300 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 }, 9301 9302 { zSun_MallocName, zSun_MallocList, 9303 apzSun_MallocMachs, 9304 SUN_MALLOC_TEST_CT, FD_MACH_ONLY, 9305 aSun_MallocTests, apzSun_MallocPatch, 0 }, 9306 9307 { zSun_Rusers_SemiName, zSun_Rusers_SemiList, 9308 apzSun_Rusers_SemiMachs, 9309 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY, 9310 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 }, 9311 9312 { zSun_SignalName, zSun_SignalList, 9313 apzSun_SignalMachs, 9314 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9315 aSun_SignalTests, apzSun_SignalPatch, 0 }, 9316 9317 { zSunos_StrlenName, zSunos_StrlenList, 9318 apzSunos_StrlenMachs, 9319 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9320 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 }, 9321 9322 { zSvr4_Disable_OptName, zSvr4_Disable_OptList, 9323 apzSvr4_Disable_OptMachs, 9324 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY, 9325 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 }, 9326 9327 { zSvr4_GetcwdName, zSvr4_GetcwdList, 9328 apzSvr4_GetcwdMachs, 9329 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9330 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 }, 9331 9332 { zSvr4_KrnlName, zSvr4_KrnlList, 9333 apzSvr4_KrnlMachs, 9334 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9335 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 }, 9336 9337 { zSvr4_ProfilName, zSvr4_ProfilList, 9338 apzSvr4_ProfilMachs, 9339 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9340 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 }, 9341 9342 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList, 9343 apzSvr4_Sighandler_TypeMachs, 9344 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9345 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 }, 9346 9347 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList, 9348 apzSvr4_Undeclared_GetrngeMachs, 9349 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9350 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 }, 9351 9352 { zSysv68_StringName, zSysv68_StringList, 9353 apzSysv68_StringMachs, 9354 SYSV68_STRING_TEST_CT, FD_MACH_ONLY, 9355 aSysv68_StringTests, apzSysv68_StringPatch, 0 }, 9356 9357 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList, 9358 apzSysz_Stdlib_For_SunMachs, 9359 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9360 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 }, 9361 9362 { zThread_KeywordName, zThread_KeywordList, 9363 apzThread_KeywordMachs, 9364 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9365 aThread_KeywordTests, apzThread_KeywordPatch, 0 }, 9366 9367 { zTinfo_CplusplusName, zTinfo_CplusplusList, 9368 apzTinfo_CplusplusMachs, 9369 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9370 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 }, 9371 9372 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList, 9373 apzUltrix_Atexit_ParamMachs, 9374 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9375 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 }, 9376 9377 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList, 9378 apzUltrix_Atof_ParamMachs, 9379 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9380 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 }, 9381 9382 { zUltrix_ConstName, zUltrix_ConstList, 9383 apzUltrix_ConstMachs, 9384 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9385 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 }, 9386 9387 { zUltrix_Const2Name, zUltrix_Const2List, 9388 apzUltrix_Const2Machs, 9389 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9390 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 }, 9391 9392 { zUltrix_Const3Name, zUltrix_Const3List, 9393 apzUltrix_Const3Machs, 9394 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9395 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 }, 9396 9397 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList, 9398 apzUltrix_Fix_FixprotoMachs, 9399 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9400 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 }, 9401 9402 { zUltrix_IfdefName, zUltrix_IfdefList, 9403 apzUltrix_IfdefMachs, 9404 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9405 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 }, 9406 9407 { zUltrix_LocaleName, zUltrix_LocaleList, 9408 apzUltrix_LocaleMachs, 9409 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9410 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 }, 9411 9412 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList, 9413 apzUltrix_Math_IfdefMachs, 9414 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9415 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 }, 9416 9417 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList, 9418 apzUltrix_Nested_IoctlMachs, 9419 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY, 9420 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 }, 9421 9422 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList, 9423 apzUltrix_Nested_SvcMachs, 9424 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY, 9425 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 }, 9426 9427 { zUltrix_StatName, zUltrix_StatList, 9428 apzUltrix_StatMachs, 9429 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY, 9430 aUltrix_StatTests, apzUltrix_StatPatch, 0 }, 9431 9432 { zUltrix_StaticName, zUltrix_StaticList, 9433 apzUltrix_StaticMachs, 9434 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY, 9435 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 }, 9436 9437 { zUltrix_StdlibName, zUltrix_StdlibList, 9438 apzUltrix_StdlibMachs, 9439 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY, 9440 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 }, 9441 9442 { zUltrix_StringsName, zUltrix_StringsList, 9443 apzUltrix_StringsMachs, 9444 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9445 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 }, 9446 9447 { zUltrix_Strings2Name, zUltrix_Strings2List, 9448 apzUltrix_Strings2Machs, 9449 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY, 9450 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 }, 9451 9452 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList, 9453 apzUltrix_Sys_TimeMachs, 9454 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY, 9455 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 }, 9456 9457 { zUltrix_UnistdName, zUltrix_UnistdList, 9458 apzUltrix_UnistdMachs, 9459 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY, 9460 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 }, 9461 9462 { zUnicosmk_RestrictName, zUnicosmk_RestrictList, 9463 apzUnicosmk_RestrictMachs, 9464 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9465 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 }, 9466 9467 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList, 9468 apzUw7_Byteorder_FixMachs, 9469 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9470 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 }, 9471 9472 { zVa_I960_MacroName, zVa_I960_MacroList, 9473 apzVa_I960_MacroMachs, 9474 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9475 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 }, 9476 9477 { zVoid_NullName, zVoid_NullList, 9478 apzVoid_NullMachs, 9479 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9480 aVoid_NullTests, apzVoid_NullPatch, 0 }, 9481 9482 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList, 9483 apzVxworks_Gcc_ProblemMachs, 9484 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY, 9485 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 }, 9486 9487 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList, 9488 apzVxworks_Needs_VxtypesMachs, 9489 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9490 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 }, 9491 9492 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList, 9493 apzVxworks_Needs_VxworksMachs, 9494 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY, 9495 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 }, 9496 9497 { zVxworks_TimeName, zVxworks_TimeList, 9498 apzVxworks_TimeMachs, 9499 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9500 aVxworks_TimeTests, apzVxworks_TimePatch, 0 }, 9501 9502 { zWindiss_Math1Name, zWindiss_Math1List, 9503 apzWindiss_Math1Machs, 9504 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY, 9505 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 }, 9506 9507 { zWindiss_Math2Name, zWindiss_Math2List, 9508 apzWindiss_Math2Machs, 9509 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY, 9510 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 }, 9511 9512 { zWindiss_ValistName, zWindiss_ValistList, 9513 apzWindiss_ValistMachs, 9514 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY, 9515 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 }, 9516 9517 { zX11_ClassName, zX11_ClassList, 9518 apzX11_ClassMachs, 9519 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9520 aX11_ClassTests, apzX11_ClassPatch, 0 }, 9521 9522 { zX11_Class_UsageName, zX11_Class_UsageList, 9523 apzX11_Class_UsageMachs, 9524 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9525 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 }, 9526 9527 { zX11_NewName, zX11_NewList, 9528 apzX11_NewMachs, 9529 X11_NEW_TEST_CT, FD_MACH_ONLY, 9530 aX11_NewTests, apzX11_NewPatch, 0 }, 9531 9532 { zX11_SprintfName, zX11_SprintfList, 9533 apzX11_SprintfMachs, 9534 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, 9535 aX11_SprintfTests, apzX11_SprintfPatch, 0 } 9536 }; 9537