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