1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Sunday October 14, 2007 at 06:17:05 PM EDT
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sun Oct 14 18:17:05 EDT 2007
11 * You must regenerate it. Use the ./genfixes script.
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.
18 * This file contains 210 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
25 * inclhack is free software.
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 of the License, or (at your option)
32 * inclhack is distributed in the hope that it will be useful,
33 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35 * See the GNU General Public License for more details.
37 * You should have received a copy of the GNU General Public License
38 * along with inclhack. If not, write to:
39 * The Free Software Foundation, Inc.,
40 * 51 Franklin Street, Fifth Floor
41 * Boston, MA 02110-1301, USA.
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
48 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
49 "AAB_darwin7_9_long_double_funcs";
52 * File name selection pattern
54 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
55 "architecture/ppc/math.h\0";
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
64 * content bypass pattern - skip fix if pattern found
66 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
69 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
70 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
71 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
74 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
76 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
77 "/* This file prototypes the long double functions available on Mac OS\n\
80 # undef __APPLE_CC__\n\
81 # define __APPLE_CC__ 1345\n\
82 # include_next <architecture/ppc/math.h>\n\
83 # undef __APPLE_CC__\n\
84 # define __APPLE_CC__ 1\n\
85 # ifndef __LIBMLDBL_COMPAT\n\
86 # ifdef __LONG_DOUBLE_128__\n\
87 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
89 # define __LIBMLDBL_COMPAT(sym)\n\
90 # endif /* __LONG_DOUBLE_128__ */\n\
91 # endif /* __LIBMLDBL_COMPAT */\n\
92 # ifdef __cplusplus\n\
95 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
96 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
97 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
98 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
99 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
100 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
101 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
102 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
103 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
104 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
105 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
106 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
107 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
108 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
109 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
110 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
111 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
112 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
113 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
114 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
115 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
116 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
117 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
118 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
119 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
120 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
121 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
122 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
123 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
124 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
125 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
126 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
127 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
128 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
129 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
130 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
131 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
132 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
133 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
134 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
135 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
136 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
137 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
138 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
139 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
140 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
141 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
142 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
143 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
144 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
145 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
146 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
147 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
148 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
149 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
150 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
151 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
152 # ifdef __cplusplus\n\
155 #endif /* __MATH__ */",
158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
160 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
162 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
163 "AAB_darwin7_9_long_double_funcs_2";
166 * File name selection pattern
168 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
171 * Machine/OS name selection pattern
173 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
178 * content selection pattern - do fix if pattern found
180 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
181 "#include[ \\t]+\\\"";
183 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
184 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
185 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
188 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
190 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
193 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
198 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
200 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
201 "AAB_fd_zero_asm_posix_types_h";
204 * File name selection pattern
206 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
207 "asm/posix_types.h\0";
209 * Machine/OS name selection pattern
211 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
212 "i[34567]86-*-linux*",
216 * content bypass pattern - skip fix if pattern found
218 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
220 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
223 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 2
224 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
225 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
226 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, };
229 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
231 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
232 "/* This file fixes a bug in the __FD_ZERO macro\n\
233 for older versions of the Linux kernel. */\n\
234 #ifndef _POSIX_TYPES_H_WRAPPER\n\
235 #include <features.h>\n\
236 #include_next <asm/posix_types.h>\n\n\
237 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
239 #define __FD_ZERO(fdsetp) \\\n\
241 int __d0, __d1; \\\n\
242 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
243 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
244 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
245 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
248 #define _POSIX_TYPES_H_WRAPPER\n\
249 #endif /* _POSIX_TYPES_H_WRAPPER */",
252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
254 * Description of Aab_Fd_Zero_Gnu_Types_H fix
256 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
257 "AAB_fd_zero_gnu_types_h";
260 * File name selection pattern
262 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
265 * Machine/OS name selection pattern
267 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
268 "i[34567]86-*-linux*",
270 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
271 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
274 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
276 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
277 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
278 #ifndef _TYPES_H_WRAPPER\n\
279 #include <features.h>\n\
280 #include_next <gnu/types.h>\n\n\
281 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
283 # define __FD_ZERO(fdsetp) \\\n\
285 int __d0, __d1; \\\n\
286 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
287 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
288 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
289 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
292 #define _TYPES_H_WRAPPER\n\
293 #endif /* _TYPES_H_WRAPPER */",
296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
298 * Description of Aab_Fd_Zero_Selectbits_H fix
300 tSCC zAab_Fd_Zero_Selectbits_HName[] =
301 "AAB_fd_zero_selectbits_h";
304 * File name selection pattern
306 tSCC zAab_Fd_Zero_Selectbits_HList[] =
309 * Machine/OS name selection pattern
311 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
312 "i[34567]86-*-linux*",
314 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
315 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
318 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
320 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
321 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
322 #ifndef _SELECTBITS_H_WRAPPER\n\
323 #include <features.h>\n\
324 #include_next <selectbits.h>\n\n\
325 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
326 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
327 && __GLIBC_MINOR__ == 0\n\
329 #define __FD_ZERO(fdsetp) \\\\\n\
331 int __d0, __d1; \\\\\n\
332 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
333 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
334 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
335 / sizeof (__fd_mask)), \\\\\n\
336 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
337 : \"memory\"); \\\\\n\
340 #define _SELECTBITS_H_WRAPPER\n\
341 #endif /* _SELECTBITS_H_WRAPPER */",
344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
346 * Description of Aab_Solaris_Sys_Varargs_H fix
348 tSCC zAab_Solaris_Sys_Varargs_HName[] =
349 "AAB_solaris_sys_varargs_h";
352 * File name selection pattern
354 tSCC zAab_Solaris_Sys_Varargs_HList[] =
357 * Machine/OS name selection pattern
359 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
362 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
363 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
366 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
368 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
370 #include <stdarg.h>\n\
372 #include <varargs.h>\n\
376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
378 * Description of Aab_Sun_Memcpy fix
380 tSCC zAab_Sun_MemcpyName[] =
384 * File name selection pattern
386 tSCC zAab_Sun_MemcpyList[] =
389 * Machine/OS name selection pattern
391 #define apzAab_Sun_MemcpyMachs (const char**)NULL
394 * content selection pattern - do fix if pattern found
396 tSCC zAab_Sun_MemcpySelect0[] =
397 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
399 #define AAB_SUN_MEMCPY_TEST_CT 1
400 static tTestDesc aAab_Sun_MemcpyTests[] = {
401 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
404 * Fix Command Arguments for Aab_Sun_Memcpy
406 static const char* apzAab_Sun_MemcpyPatch[] = {
407 "/* This file was generated by fixincludes */\n\
408 #ifndef __memory_h__\n\
409 #define __memory_h__\n\n\
411 extern void *memccpy();\n\
412 extern void *memchr();\n\
413 extern void *memcpy();\n\
414 extern void *memset();\n\
416 extern char *memccpy();\n\
417 extern char *memchr();\n\
418 extern char *memcpy();\n\
419 extern char *memset();\n\
420 #endif /* __STDC__ */\n\n\
421 extern int memcmp();\n\n\
422 #endif /* __memory_h__ */\n\
426 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
427 * stdarg.h or varargs.h files as appropriate.\n\
431 hackname = AAB_svr4_no_varargs;\n\
432 files = sys/varargs.h;\n\
433 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
434 \"#ifndef _SYS_VARARGS_H\\n\"\n\
435 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
436 \"#ifdef __STDC__\\n\"\n\
437 \"#include <stdarg.h>\\n\"\n\
439 \"#include <varargs.h>\\n\"\n\
440 \"#endif\\n\\n\"\n\n\
441 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
445 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
446 * optimized byteswapping. (The original probably implemented some\n\
447 * incompatible optimized byteswapping.)\n\
450 hackname = AAB_svr4_replace_byteorder;\n\
451 mach = \"*-*-sysv4*\";\n\
452 mach = \"i[34567]86-*-sysv5*\";\n\
453 mach = \"i[34567]86-*-sco3.2v5*\";\n\
454 mach = \"i[34567]86-*-udk*\";\n\
455 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
456 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
457 mach = \"sparc-*-solaris2.[0-4]\";\n\
458 mach = \"i[34567]86-sequent-ptx*\";\n\
459 files = sys/byteorder.h;\n\
460 replace = <<- _EndOfHeader_\n\
461 #ifndef _SYS_BYTEORDER_H\n\
462 #define _SYS_BYTEORDER_H\n\n\
463 /* Functions to convert `short' and `long' quantities from host byte order\n\
464 to (internet) network byte order (i.e. big-endian).\n\n\
465 Written by Ron Guilmette (rfg@ncd.com).\n\n\
466 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
467 For big-endian machines these functions are essentially no-ops.\n\n\
468 For little-endian machines, we define the functions using specialized\n\
469 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
470 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
471 #error You lose! This file is only useful with GNU compilers.\n\
473 #ifndef __BYTE_ORDER__\n\
474 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
475 double underscores added at the front and back. */\n\
476 #define __LITTLE_ENDIAN__ 1234\n\
477 #define __BIG_ENDIAN__ 4321\n\
478 #define __PDP_ENDIAN__ 3412\n\
481 static __inline__ unsigned long htonl (unsigned long);\n\
482 static __inline__ unsigned short htons (unsigned int);\n\
483 static __inline__ unsigned long ntohl (unsigned long);\n\
484 static __inline__ unsigned short ntohs (unsigned int);\n\
485 #endif /* defined (__STDC__) */\n\n\
486 #if defined (__i386__)\n\n\
487 #ifndef __BYTE_ORDER__\n\
488 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
490 /* Convert a host long to a network long. */\n\n\
491 /* We must use a new-style function definition, so that this will also\n\
492 be valid for C++. */\n\
493 static __inline__ unsigned long\n\
494 htonl (unsigned long __arg)\n\
496 register unsigned long __result;\n\n\
497 __asm__ (\"xchg%B0 %b0,%h0\n\
499 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
502 /* Convert a host short to a network short. */\n\n\
503 static __inline__ unsigned short\n\
504 htons (unsigned int __arg)\n\
506 register unsigned short __result;\n\n\
507 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
510 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
511 #ifndef __BYTE_ORDER__\n\
512 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
514 /* For other little-endian machines, using C code is just as efficient as\n\
515 using assembly code. */\n\n\
516 /* Convert a host long to a network long. */\n\n\
517 static __inline__ unsigned long\n\
518 htonl (unsigned long __arg)\n\
520 register unsigned long __result;\n\n\
521 __result = (__arg >> 24) & 0x000000ff;\n\
522 __result |= (__arg >> 8) & 0x0000ff00;\n\
523 __result |= (__arg << 8) & 0x00ff0000;\n\
524 __result |= (__arg << 24) & 0xff000000;\n\
527 /* Convert a host short to a network short. */\n\n\
528 static __inline__ unsigned short\n\
529 htons (unsigned int __arg)\n\
531 register unsigned short __result;\n\n\
532 __result = (__arg << 8) & 0xff00;\n\
533 __result |= (__arg >> 8) & 0x00ff;\n\
536 #else /* must be a big-endian machine */\n\n\
537 #ifndef __BYTE_ORDER__\n\
538 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
540 /* Convert a host long to a network long. */\n\n\
541 static __inline__ unsigned long\n\
542 htonl (unsigned long __arg)\n\
546 /* Convert a host short to a network short. */\n\n\
547 static __inline__ unsigned short\n\
548 htons (unsigned int __arg)\n\
552 #endif /* big-endian */\n\n\
553 /* Convert a network long to a host long. */\n\n\
554 static __inline__ unsigned long\n\
555 ntohl (unsigned long __arg)\n\
557 return htonl (__arg);\n\
559 /* Convert a network short to a host short. */\n\n\
560 static __inline__ unsigned short\n\
561 ntohs (unsigned int __arg)\n\
563 return htons (__arg);\n\
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
570 * Description of Aab_Ultrix_Ansi_Compat fix
572 tSCC zAab_Ultrix_Ansi_CompatName[] =
573 "AAB_ultrix_ansi_compat";
576 * File name selection pattern
578 tSCC zAab_Ultrix_Ansi_CompatList[] =
581 * Machine/OS name selection pattern
583 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
586 * content selection pattern - do fix if pattern found
588 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
591 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
592 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
593 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
596 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
598 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
599 "/* This file intentionally left blank. */\n",
602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
604 * Description of Aab_Ultrix_Limits fix
606 tSCC zAab_Ultrix_LimitsName[] =
610 * File name selection pattern
612 tSCC zAab_Ultrix_LimitsList[] =
615 * Machine/OS name selection pattern
617 tSCC* apzAab_Ultrix_LimitsMachs[] = {
620 #define AAB_ULTRIX_LIMITS_TEST_CT 0
621 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
624 * Fix Command Arguments for Aab_Ultrix_Limits
626 static const char* apzAab_Ultrix_LimitsPatch[] = {
627 "#ifndef _LIMITS_INCLUDED\n\
628 #define _LIMITS_INCLUDED\n\
629 #include <sys/limits.h>\n\
630 #endif /* _LIMITS_INCLUDED */",
633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
635 * Description of Aab_Ultrix_Memory fix
637 tSCC zAab_Ultrix_MemoryName[] =
641 * File name selection pattern
643 tSCC zAab_Ultrix_MemoryList[] =
646 * Machine/OS name selection pattern
648 tSCC* apzAab_Ultrix_MemoryMachs[] = {
651 #define AAB_ULTRIX_MEMORY_TEST_CT 0
652 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
655 * Fix Command Arguments for Aab_Ultrix_Memory
657 static const char* apzAab_Ultrix_MemoryPatch[] = {
658 "#ifndef _MEMORY_INCLUDED\n\
659 #define _MEMORY_INCLUDED\n\
660 #include <strings.h>\n\
661 #endif /* _MEMORY_INCLUDED */",
664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
666 * Description of Aab_Ultrix_String fix
668 tSCC zAab_Ultrix_StringName[] =
672 * File name selection pattern
674 tSCC zAab_Ultrix_StringList[] =
677 * Machine/OS name selection pattern
679 tSCC* apzAab_Ultrix_StringMachs[] = {
682 #define AAB_ULTRIX_STRING_TEST_CT 0
683 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
686 * Fix Command Arguments for Aab_Ultrix_String
688 static const char* apzAab_Ultrix_StringPatch[] = {
689 "#ifndef _STRING_INCLUDED\n\
690 #define _STRING_INCLUDED\n\
691 #include <strings.h>\n\
692 #endif /* _STRING_INCLUDED */",
695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
697 * Description of Aix_Pthread fix
699 tSCC zAix_PthreadName[] =
703 * File name selection pattern
705 tSCC zAix_PthreadList[] =
708 * Machine/OS name selection pattern
710 #define apzAix_PthreadMachs (const char**)NULL
713 * content selection pattern - do fix if pattern found
715 tSCC zAix_PthreadSelect0[] =
716 "(#define [A-Za-z_0-9]+)(\\\\\n\
720 #define AIX_PTHREAD_TEST_CT 1
721 static tTestDesc aAix_PthreadTests[] = {
722 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
725 * Fix Command Arguments for Aix_Pthread
727 static const char* apzAix_PthreadPatch[] = {
732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
734 * Description of Aix_Sysmachine fix
736 tSCC zAix_SysmachineName[] =
740 * File name selection pattern
742 tSCC zAix_SysmachineList[] =
745 * Machine/OS name selection pattern
747 #define apzAix_SysmachineMachs (const char**)NULL
750 * content selection pattern - do fix if pattern found
752 tSCC zAix_SysmachineSelect0[] =
755 #define AIX_SYSMACHINE_TEST_CT 1
756 static tTestDesc aAix_SysmachineTests[] = {
757 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
760 * Fix Command Arguments for Aix_Sysmachine
762 static const char* apzAix_SysmachinePatch[] = {
767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
769 * Description of Aix_Syswait fix
771 tSCC zAix_SyswaitName[] =
775 * File name selection pattern
777 tSCC zAix_SyswaitList[] =
780 * Machine/OS name selection pattern
782 #define apzAix_SyswaitMachs (const char**)NULL
785 * content selection pattern - do fix if pattern found
787 tSCC zAix_SyswaitSelect0[] =
788 "^extern pid_t wait3\\(\\);\n";
789 tSCC zAix_SyswaitSelect1[] =
792 #define AIX_SYSWAIT_TEST_CT 2
793 static tTestDesc aAix_SyswaitTests[] = {
794 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
795 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
798 * Fix Command Arguments for Aix_Syswait
800 static const char* apzAix_SyswaitPatch[] = {
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808 * Description of Aix_Syswait_2 fix
810 tSCC zAix_Syswait_2Name[] =
814 * File name selection pattern
816 tSCC zAix_Syswait_2List[] =
819 * Machine/OS name selection pattern
821 #define apzAix_Syswait_2Machs (const char**)NULL
824 * content selection pattern - do fix if pattern found
826 tSCC zAix_Syswait_2Select0[] =
827 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
829 #define AIX_SYSWAIT_2_TEST_CT 1
830 static tTestDesc aAix_Syswait_2Tests[] = {
831 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
834 * Fix Command Arguments for Aix_Syswait_2
836 static const char* apzAix_Syswait_2Patch[] = {
841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
843 * Description of Aix_Volatile fix
845 tSCC zAix_VolatileName[] =
849 * File name selection pattern
851 tSCC zAix_VolatileList[] =
854 * Machine/OS name selection pattern
856 #define apzAix_VolatileMachs (const char**)NULL
859 * content selection pattern - do fix if pattern found
861 tSCC zAix_VolatileSelect0[] =
862 "typedef volatile int sig_atomic_t";
864 #define AIX_VOLATILE_TEST_CT 1
865 static tTestDesc aAix_VolatileTests[] = {
866 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
869 * Fix Command Arguments for Aix_Volatile
871 static const char* apzAix_VolatilePatch[] = {
873 "typedef int sig_atomic_t",
876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
878 * Description of Alpha___Assert fix
880 tSCC zAlpha___AssertName[] =
884 * File name selection pattern
886 tSCC zAlpha___AssertList[] =
889 * Machine/OS name selection pattern
891 #define apzAlpha___AssertMachs (const char**)NULL
894 * content selection pattern - do fix if pattern found
896 tSCC zAlpha___AssertSelect0[] =
897 "__assert\\(char \\*, char \\*, int\\)";
899 #define ALPHA___ASSERT_TEST_CT 1
900 static tTestDesc aAlpha___AssertTests[] = {
901 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
904 * Fix Command Arguments for Alpha___Assert
906 static const char* apzAlpha___AssertPatch[] = {
908 "__assert(const char *, const char *, int)",
911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
913 * Description of Alpha___Extern_Prefix fix
915 tSCC zAlpha___Extern_PrefixName[] =
916 "alpha___extern_prefix";
919 * File name selection pattern
921 #define zAlpha___Extern_PrefixList (char*)NULL
923 * Machine/OS name selection pattern
925 tSCC* apzAlpha___Extern_PrefixMachs[] = {
930 * content selection pattern - do fix if pattern found
932 tSCC zAlpha___Extern_PrefixSelect0[] =
933 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
934 (#[ \t]*pragma[ \t]*extern_prefix.*)";
936 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
937 static tTestDesc aAlpha___Extern_PrefixTests[] = {
938 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
941 * Fix Command Arguments for Alpha___Extern_Prefix
943 static const char* apzAlpha___Extern_PrefixPatch[] = {
945 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
951 * Description of Alpha___Extern_Prefix_Standards fix
953 tSCC zAlpha___Extern_Prefix_StandardsName[] =
954 "alpha___extern_prefix_standards";
957 * File name selection pattern
959 tSCC zAlpha___Extern_Prefix_StandardsList[] =
962 * Machine/OS name selection pattern
964 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
969 * content selection pattern - do fix if pattern found
971 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
972 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
974 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
975 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
976 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
979 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
981 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
983 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
988 * Description of Alpha___Extern_Prefix_Sys_Stat fix
990 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
991 "alpha___extern_prefix_sys_stat";
994 * File name selection pattern
996 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
997 "sys/stat.h\0sys/mount.h\0";
999 * Machine/OS name selection pattern
1001 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1003 (const char*)NULL };
1006 * content selection pattern - do fix if pattern found
1008 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1009 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1011 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1012 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1013 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1016 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1018 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1020 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1025 * Description of Alpha_Assert fix
1027 tSCC zAlpha_AssertName[] =
1031 * File name selection pattern
1033 tSCC zAlpha_AssertList[] =
1036 * Machine/OS name selection pattern
1038 #define apzAlpha_AssertMachs (const char**)NULL
1041 * content selection pattern - do fix if pattern found
1043 tSCC zAlpha_AssertSelect0[] =
1044 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1046 #define ALPHA_ASSERT_TEST_CT 1
1047 static tTestDesc aAlpha_AssertTests[] = {
1048 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1051 * Fix Command Arguments for Alpha_Assert
1053 static const char* apzAlpha_AssertPatch[] = {
1058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1060 * Description of Alpha_Bad_Lval fix
1062 tSCC zAlpha_Bad_LvalName[] =
1066 * File name selection pattern
1068 #define zAlpha_Bad_LvalList (char*)NULL
1070 * Machine/OS name selection pattern
1072 tSCC* apzAlpha_Bad_LvalMachs[] = {
1074 (const char*)NULL };
1077 * content selection pattern - do fix if pattern found
1079 tSCC zAlpha_Bad_LvalSelect0[] =
1080 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1082 #define ALPHA_BAD_LVAL_TEST_CT 1
1083 static tTestDesc aAlpha_Bad_LvalTests[] = {
1084 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1087 * Fix Command Arguments for Alpha_Bad_Lval
1089 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1090 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1095 * Description of Alpha_Getopt fix
1097 tSCC zAlpha_GetoptName[] =
1101 * File name selection pattern
1103 tSCC zAlpha_GetoptList[] =
1104 "stdio.h\0stdlib.h\0";
1106 * Machine/OS name selection pattern
1108 #define apzAlpha_GetoptMachs (const char**)NULL
1111 * content selection pattern - do fix if pattern found
1113 tSCC zAlpha_GetoptSelect0[] =
1114 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1116 #define ALPHA_GETOPT_TEST_CT 1
1117 static tTestDesc aAlpha_GetoptTests[] = {
1118 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1121 * Fix Command Arguments for Alpha_Getopt
1123 static const char* apzAlpha_GetoptPatch[] = {
1125 "getopt(int, char *const[], const char *)",
1128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1130 * Description of Alpha_Parens fix
1132 tSCC zAlpha_ParensName[] =
1136 * File name selection pattern
1138 tSCC zAlpha_ParensList[] =
1141 * Machine/OS name selection pattern
1143 #define apzAlpha_ParensMachs (const char**)NULL
1146 * content selection pattern - do fix if pattern found
1148 tSCC zAlpha_ParensSelect0[] =
1149 "#ifndef\\(__mips64\\)";
1151 #define ALPHA_PARENS_TEST_CT 1
1152 static tTestDesc aAlpha_ParensTests[] = {
1153 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1156 * Fix Command Arguments for Alpha_Parens
1158 static const char* apzAlpha_ParensPatch[] = {
1163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1165 * Description of Alpha_Pthread fix
1167 tSCC zAlpha_PthreadName[] =
1171 * File name selection pattern
1173 tSCC zAlpha_PthreadList[] =
1176 * Machine/OS name selection pattern
1178 tSCC* apzAlpha_PthreadMachs[] = {
1180 (const char*)NULL };
1183 * content selection pattern - do fix if pattern found
1185 tSCC zAlpha_PthreadSelect0[] =
1186 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1187 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1189 #define ALPHA_PTHREAD_TEST_CT 1
1190 static tTestDesc aAlpha_PthreadTests[] = {
1191 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1194 * Fix Command Arguments for Alpha_Pthread
1196 static const char* apzAlpha_PthreadPatch[] = {
1198 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1204 * Description of Alpha_Pthread_Gcc fix
1206 tSCC zAlpha_Pthread_GccName[] =
1207 "alpha_pthread_gcc";
1210 * File name selection pattern
1212 tSCC zAlpha_Pthread_GccList[] =
1215 * Machine/OS name selection pattern
1217 tSCC* apzAlpha_Pthread_GccMachs[] = {
1219 (const char*)NULL };
1222 * content selection pattern - do fix if pattern found
1224 tSCC zAlpha_Pthread_GccSelect0[] =
1226 # error <pthread.h>: unrecognized compiler.";
1228 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1229 static tTestDesc aAlpha_Pthread_GccTests[] = {
1230 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1233 * Fix Command Arguments for Alpha_Pthread_Gcc
1235 static const char* apzAlpha_Pthread_GccPatch[] = {
1237 "#elif defined (__GNUC__)\n\
1238 # define _PTHREAD_ENV_GCC\n\
1242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1244 * Description of Alpha_Pthread_Init fix
1246 tSCC zAlpha_Pthread_InitName[] =
1247 "alpha_pthread_init";
1250 * File name selection pattern
1252 tSCC zAlpha_Pthread_InitList[] =
1255 * Machine/OS name selection pattern
1257 tSCC* apzAlpha_Pthread_InitMachs[] = {
1259 (const char*)NULL };
1262 * content selection pattern - do fix if pattern found
1264 tSCC zAlpha_Pthread_InitSelect0[] =
1265 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1267 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1268 static tTestDesc aAlpha_Pthread_InitTests[] = {
1269 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1272 * Fix Command Arguments for Alpha_Pthread_Init
1274 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1275 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1276 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1277 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1278 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1279 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1280 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1285 * Description of Alpha_Sbrk fix
1287 tSCC zAlpha_SbrkName[] =
1291 * File name selection pattern
1293 tSCC zAlpha_SbrkList[] =
1296 * Machine/OS name selection pattern
1298 #define apzAlpha_SbrkMachs (const char**)NULL
1301 * content selection pattern - do fix if pattern found
1303 tSCC zAlpha_SbrkSelect0[] =
1304 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1306 #define ALPHA_SBRK_TEST_CT 1
1307 static tTestDesc aAlpha_SbrkTests[] = {
1308 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1311 * Fix Command Arguments for Alpha_Sbrk
1313 static const char* apzAlpha_SbrkPatch[] = {
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1320 * Description of Alpha_Wchar fix
1322 tSCC zAlpha_WcharName[] =
1326 * File name selection pattern
1328 tSCC zAlpha_WcharList[] =
1331 * Machine/OS name selection pattern
1333 tSCC* apzAlpha_WcharMachs[] = {
1335 (const char*)NULL };
1338 * content selection pattern - do fix if pattern found
1340 tSCC zAlpha_WcharSelect0[] =
1341 "#define wcstok wcstok_r";
1343 #define ALPHA_WCHAR_TEST_CT 1
1344 static tTestDesc aAlpha_WcharTests[] = {
1345 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1348 * Fix Command Arguments for Alpha_Wchar
1350 static const char* apzAlpha_WcharPatch[] = { "sed",
1351 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1352 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1357 * Description of Avoid_Bool_Define fix
1359 tSCC zAvoid_Bool_DefineName[] =
1360 "avoid_bool_define";
1363 * File name selection pattern
1365 tSCC zAvoid_Bool_DefineList[] =
1366 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1368 * Machine/OS name selection pattern
1370 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1373 * content selection pattern - do fix if pattern found
1375 tSCC zAvoid_Bool_DefineSelect0[] =
1376 "#[ \t]*define[ \t]+bool[ \t]";
1379 * content bypass pattern - skip fix if pattern found
1381 tSCC zAvoid_Bool_DefineBypass0[] =
1384 #define AVOID_BOOL_DEFINE_TEST_CT 2
1385 static tTestDesc aAvoid_Bool_DefineTests[] = {
1386 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1387 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1390 * Fix Command Arguments for Avoid_Bool_Define
1392 static const char* apzAvoid_Bool_DefinePatch[] = {
1394 "#ifndef __cplusplus\n\
1397 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1402 * Description of Avoid_Bool_Type fix
1404 tSCC zAvoid_Bool_TypeName[] =
1408 * File name selection pattern
1410 tSCC zAvoid_Bool_TypeList[] =
1411 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1413 * Machine/OS name selection pattern
1415 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1418 * content selection pattern - do fix if pattern found
1420 tSCC zAvoid_Bool_TypeSelect0[] =
1421 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1424 * content bypass pattern - skip fix if pattern found
1426 tSCC zAvoid_Bool_TypeBypass0[] =
1429 #define AVOID_BOOL_TYPE_TEST_CT 2
1430 static tTestDesc aAvoid_Bool_TypeTests[] = {
1431 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1432 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1435 * Fix Command Arguments for Avoid_Bool_Type
1437 static const char* apzAvoid_Bool_TypePatch[] = {
1439 "#ifndef __cplusplus\n\
1444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1446 * Description of Avoid_Wchar_T_Type fix
1448 tSCC zAvoid_Wchar_T_TypeName[] =
1449 "avoid_wchar_t_type";
1452 * File name selection pattern
1454 #define zAvoid_Wchar_T_TypeList (char*)NULL
1456 * Machine/OS name selection pattern
1458 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1461 * content selection pattern - do fix if pattern found
1463 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1464 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1467 * content bypass pattern - skip fix if pattern found
1469 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1471 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1473 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1474 "XFree86: xc/lib/X11/Xlib\\.h";
1476 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1477 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1478 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1479 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1480 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1481 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1484 * Fix Command Arguments for Avoid_Wchar_T_Type
1486 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1488 "#ifndef __cplusplus\n\
1493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1495 * Description of Bad_Struct_Term fix
1497 tSCC zBad_Struct_TermName[] =
1501 * File name selection pattern
1503 tSCC zBad_Struct_TermList[] =
1506 * Machine/OS name selection pattern
1508 #define apzBad_Struct_TermMachs (const char**)NULL
1511 * content selection pattern - do fix if pattern found
1513 tSCC zBad_Struct_TermSelect0[] =
1514 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1516 #define BAD_STRUCT_TERM_TEST_CT 1
1517 static tTestDesc aBad_Struct_TermTests[] = {
1518 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1521 * Fix Command Arguments for Bad_Struct_Term
1523 static const char* apzBad_Struct_TermPatch[] = {
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530 * Description of Badquote fix
1532 tSCC zBadquoteName[] =
1536 * File name selection pattern
1538 tSCC zBadquoteList[] =
1539 "sundev/vuid_event.h\0";
1541 * Machine/OS name selection pattern
1543 #define apzBadquoteMachs (const char**)NULL
1546 * content selection pattern - do fix if pattern found
1548 tSCC zBadquoteSelect0[] =
1551 #define BADQUOTE_TEST_CT 1
1552 static tTestDesc aBadquoteTests[] = {
1553 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1556 * Fix Command Arguments for Badquote
1558 static const char* apzBadquotePatch[] = {
1563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1565 * Description of Broken_Assert_Stdio fix
1567 tSCC zBroken_Assert_StdioName[] =
1568 "broken_assert_stdio";
1571 * File name selection pattern
1573 tSCC zBroken_Assert_StdioList[] =
1576 * Machine/OS name selection pattern
1578 #define apzBroken_Assert_StdioMachs (const char**)NULL
1581 * content selection pattern - do fix if pattern found
1583 tSCC zBroken_Assert_StdioSelect0[] =
1587 * content bypass pattern - skip fix if pattern found
1589 tSCC zBroken_Assert_StdioBypass0[] =
1590 "include.*stdio\\.h";
1592 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1593 static tTestDesc aBroken_Assert_StdioTests[] = {
1594 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1595 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1598 * Fix Command Arguments for Broken_Assert_Stdio
1600 static const char* apzBroken_Assert_StdioPatch[] = {
1602 "#include <stdio.h>\n",
1605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1607 * Description of Broken_Assert_Stdlib fix
1609 tSCC zBroken_Assert_StdlibName[] =
1610 "broken_assert_stdlib";
1613 * File name selection pattern
1615 tSCC zBroken_Assert_StdlibList[] =
1618 * Machine/OS name selection pattern
1620 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1623 * content selection pattern - do fix if pattern found
1625 tSCC zBroken_Assert_StdlibSelect0[] =
1626 "exit *\\(|abort *\\(";
1629 * content bypass pattern - skip fix if pattern found
1631 tSCC zBroken_Assert_StdlibBypass0[] =
1632 "include.*stdlib\\.h";
1634 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1635 static tTestDesc aBroken_Assert_StdlibTests[] = {
1636 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1637 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1640 * Fix Command Arguments for Broken_Assert_Stdlib
1642 static const char* apzBroken_Assert_StdlibPatch[] = {
1644 "#ifdef __cplusplus\n\
1645 #include <stdlib.h>\n\
1649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1651 * Description of Broken_Cabs fix
1653 tSCC zBroken_CabsName[] =
1657 * File name selection pattern
1659 tSCC zBroken_CabsList[] =
1660 "math.h\0architecture/*/math.h\0";
1662 * Machine/OS name selection pattern
1664 #define apzBroken_CabsMachs (const char**)NULL
1667 * content selection pattern - do fix if pattern found
1669 tSCC zBroken_CabsSelect0[] =
1670 "^extern[ \t]+double[ \t]+cabs";
1672 #define BROKEN_CABS_TEST_CT 1
1673 static tTestDesc aBroken_CabsTests[] = {
1674 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1677 * Fix Command Arguments for Broken_Cabs
1679 static const char* apzBroken_CabsPatch[] = { "sed",
1680 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1681 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1686 * Description of Broken_Nan fix
1688 tSCC zBroken_NanName[] =
1692 * File name selection pattern
1694 tSCC zBroken_NanList[] =
1695 "architecture/ppc/math.h\0architecture/*/math.h\0";
1697 * Machine/OS name selection pattern
1699 #define apzBroken_NanMachs (const char**)NULL
1702 * content selection pattern - do fix if pattern found
1704 tSCC zBroken_NanSelect0[] =
1705 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1708 * content bypass pattern - skip fix if pattern found
1710 tSCC zBroken_NanBypass0[] =
1713 #define BROKEN_NAN_TEST_CT 2
1714 static tTestDesc aBroken_NanTests[] = {
1715 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1716 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1719 * Fix Command Arguments for Broken_Nan
1721 static const char* apzBroken_NanPatch[] = {
1726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1728 * Description of Bsd_Stdio_Attrs_Conflict fix
1730 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1731 "bsd_stdio_attrs_conflict";
1734 * File name selection pattern
1736 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1739 * Machine/OS name selection pattern
1741 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1744 (const char*)NULL };
1747 * content selection pattern - do fix if pattern found
1749 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1750 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1752 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1753 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1754 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1757 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1759 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1761 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1762 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1763 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1768 * Description of Ctrl_Quotes_Def fix
1770 tSCC zCtrl_Quotes_DefName[] =
1774 * File name selection pattern
1776 #define zCtrl_Quotes_DefList (char*)NULL
1778 * Machine/OS name selection pattern
1780 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1783 * content selection pattern - do fix if pattern found
1785 tSCC zCtrl_Quotes_DefSelect0[] =
1786 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1788 #define CTRL_QUOTES_DEF_TEST_CT 1
1789 static tTestDesc aCtrl_Quotes_DefTests[] = {
1790 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1793 * Fix Command Arguments for Ctrl_Quotes_Def
1795 static const char* apzCtrl_Quotes_DefPatch[] = {
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1802 * Description of Ctrl_Quotes_Use fix
1804 tSCC zCtrl_Quotes_UseName[] =
1808 * File name selection pattern
1810 #define zCtrl_Quotes_UseList (char*)NULL
1812 * Machine/OS name selection pattern
1814 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1817 * content selection pattern - do fix if pattern found
1819 tSCC zCtrl_Quotes_UseSelect0[] =
1820 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1822 #define CTRL_QUOTES_USE_TEST_CT 1
1823 static tTestDesc aCtrl_Quotes_UseTests[] = {
1824 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1827 * Fix Command Arguments for Ctrl_Quotes_Use
1829 static const char* apzCtrl_Quotes_UsePatch[] = {
1834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1836 * Description of Cxx_Unready fix
1838 tSCC zCxx_UnreadyName[] =
1842 * File name selection pattern
1844 tSCC zCxx_UnreadyList[] =
1845 "sys/mman.h\0rpc/types.h\0";
1847 * Machine/OS name selection pattern
1849 #define apzCxx_UnreadyMachs (const char**)NULL
1852 * content selection pattern - do fix if pattern found
1854 tSCC zCxx_UnreadySelect0[] =
1858 * content bypass pattern - skip fix if pattern found
1860 tSCC zCxx_UnreadyBypass0[] =
1861 "\"C\"|__BEGIN_DECLS";
1863 #define CXX_UNREADY_TEST_CT 2
1864 static tTestDesc aCxx_UnreadyTests[] = {
1865 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1866 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1869 * Fix Command Arguments for Cxx_Unready
1871 static const char* apzCxx_UnreadyPatch[] = {
1873 "#ifdef __cplusplus\n\
1876 "#ifdef __cplusplus\n\
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1883 * Description of Darwin_Externc fix
1885 tSCC zDarwin_ExterncName[] =
1889 * File name selection pattern
1891 tSCC zDarwin_ExterncList[] =
1892 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1894 * Machine/OS name selection pattern
1896 tSCC* apzDarwin_ExterncMachs[] = {
1898 (const char*)NULL };
1901 * content bypass pattern - skip fix if pattern found
1903 tSCC zDarwin_ExterncBypass0[] =
1905 tSCC zDarwin_ExterncBypass1[] =
1908 #define DARWIN_EXTERNC_TEST_CT 2
1909 static tTestDesc aDarwin_ExterncTests[] = {
1910 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1911 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1914 * Fix Command Arguments for Darwin_Externc
1916 static const char* apzDarwin_ExterncPatch[] = {
1918 "#ifdef __cplusplus\n\
1921 "#ifdef __cplusplus\n\
1926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1928 * Description of Darwin_Gcc4_Breakage fix
1930 tSCC zDarwin_Gcc4_BreakageName[] =
1931 "darwin_gcc4_breakage";
1934 * File name selection pattern
1936 tSCC zDarwin_Gcc4_BreakageList[] =
1937 "AvailabilityMacros.h\0";
1939 * Machine/OS name selection pattern
1941 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1943 (const char*)NULL };
1946 * content selection pattern - do fix if pattern found
1948 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1949 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1951 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1952 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1953 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1956 * Fix Command Arguments for Darwin_Gcc4_Breakage
1958 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1960 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1965 * Description of Darwin_Private_Extern fix
1967 tSCC zDarwin_Private_ExternName[] =
1968 "darwin_private_extern";
1971 * File name selection pattern
1973 tSCC zDarwin_Private_ExternList[] =
1976 * Machine/OS name selection pattern
1978 tSCC* apzDarwin_Private_ExternMachs[] = {
1980 (const char*)NULL };
1983 * content selection pattern - do fix if pattern found
1985 tSCC zDarwin_Private_ExternSelect0[] =
1986 "__private_extern__ [a-z_]+ _dyld_";
1988 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1989 static tTestDesc aDarwin_Private_ExternTests[] = {
1990 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1993 * Fix Command Arguments for Darwin_Private_Extern
1995 static const char* apzDarwin_Private_ExternPatch[] = {
1998 "__private_extern__",
2001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2003 * Description of Dec_Intern_Asm fix
2005 tSCC zDec_Intern_AsmName[] =
2009 * File name selection pattern
2011 tSCC zDec_Intern_AsmList[] =
2014 * Machine/OS name selection pattern
2016 #define apzDec_Intern_AsmMachs (const char**)NULL
2017 #define DEC_INTERN_ASM_TEST_CT 0
2018 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2021 * Fix Command Arguments for Dec_Intern_Asm
2023 static const char* apzDec_Intern_AsmPatch[] = { "sed",
2024 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2026 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2032 * Description of Djgpp_Wchar_H fix
2034 tSCC zDjgpp_Wchar_HName[] =
2038 * File name selection pattern
2040 #define zDjgpp_Wchar_HList (char*)NULL
2042 * Machine/OS name selection pattern
2044 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2047 * content selection pattern - do fix if pattern found
2049 tSCC zDjgpp_Wchar_HSelect0[] =
2053 * content bypass pattern - skip fix if pattern found
2055 tSCC zDjgpp_Wchar_HBypass0[] =
2058 #define DJGPP_WCHAR_H_TEST_CT 2
2059 static tTestDesc aDjgpp_Wchar_HTests[] = {
2060 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2061 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2064 * Fix Command Arguments for Djgpp_Wchar_H
2066 static const char* apzDjgpp_Wchar_HPatch[] = {
2069 #include <sys/djtypes.h>",
2070 "#include <stddef.h>",
2073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2075 * Description of Ecd_Cursor fix
2077 tSCC zEcd_CursorName[] =
2081 * File name selection pattern
2083 tSCC zEcd_CursorList[] =
2084 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2086 * Machine/OS name selection pattern
2088 #define apzEcd_CursorMachs (const char**)NULL
2091 * content selection pattern - do fix if pattern found
2093 tSCC zEcd_CursorSelect0[] =
2096 #define ECD_CURSOR_TEST_CT 1
2097 static tTestDesc aEcd_CursorTests[] = {
2098 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2101 * Fix Command Arguments for Ecd_Cursor
2103 static const char* apzEcd_CursorPatch[] = {
2108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2110 * Description of Exception_Structure fix
2112 tSCC zException_StructureName[] =
2113 "exception_structure";
2116 * File name selection pattern
2118 tSCC zException_StructureList[] =
2121 * Machine/OS name selection pattern
2123 #define apzException_StructureMachs (const char**)NULL
2126 * content selection pattern - do fix if pattern found
2128 tSCC zException_StructureSelect0[] =
2132 * content bypass pattern - skip fix if pattern found
2134 tSCC zException_StructureBypass0[] =
2135 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2137 #define EXCEPTION_STRUCTURE_TEST_CT 2
2138 static tTestDesc aException_StructureTests[] = {
2139 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2140 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2143 * Fix Command Arguments for Exception_Structure
2145 static const char* apzException_StructurePatch[] = {
2147 "struct exception;\n",
2150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2152 * Description of Freebsd_Gcc3_Breakage fix
2154 tSCC zFreebsd_Gcc3_BreakageName[] =
2155 "freebsd_gcc3_breakage";
2158 * File name selection pattern
2160 tSCC zFreebsd_Gcc3_BreakageList[] =
2163 * Machine/OS name selection pattern
2165 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2167 (const char*)NULL };
2170 * content selection pattern - do fix if pattern found
2172 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2173 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2176 * content bypass pattern - skip fix if pattern found
2178 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2179 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2181 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2182 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2183 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2184 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2187 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2189 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2191 "%0 || __GNUC__ >= 3",
2194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2196 * Description of Freebsd_Gcc4_Breakage fix
2198 tSCC zFreebsd_Gcc4_BreakageName[] =
2199 "freebsd_gcc4_breakage";
2202 * File name selection pattern
2204 tSCC zFreebsd_Gcc4_BreakageList[] =
2207 * Machine/OS name selection pattern
2209 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2211 (const char*)NULL };
2214 * content selection pattern - do fix if pattern found
2216 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2217 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2219 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2220 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2221 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2224 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2226 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2228 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2233 * Description of Glibc_C99_Inline_1 fix
2235 tSCC zGlibc_C99_Inline_1Name[] =
2236 "glibc_c99_inline_1";
2239 * File name selection pattern
2241 tSCC zGlibc_C99_Inline_1List[] =
2242 "features.h\0*/features.h\0";
2244 * Machine/OS name selection pattern
2246 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2249 * content selection pattern - do fix if pattern found
2251 tSCC zGlibc_C99_Inline_1Select0[] =
2252 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2254 #define GLIBC_C99_INLINE_1_TEST_CT 1
2255 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2256 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2259 * Fix Command Arguments for Glibc_C99_Inline_1
2261 static const char* apzGlibc_C99_Inline_1Patch[] = {
2263 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2268 * Description of Glibc_C99_Inline_2 fix
2270 tSCC zGlibc_C99_Inline_2Name[] =
2271 "glibc_c99_inline_2";
2274 * File name selection pattern
2276 tSCC zGlibc_C99_Inline_2List[] =
2277 "sys/stat.h\0*/sys/stat.h\0";
2279 * Machine/OS name selection pattern
2281 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2284 * content selection pattern - do fix if pattern found
2286 tSCC zGlibc_C99_Inline_2Select0[] =
2287 "extern __inline__ int";
2289 #define GLIBC_C99_INLINE_2_TEST_CT 1
2290 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2291 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2294 * Fix Command Arguments for Glibc_C99_Inline_2
2296 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2297 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2300 __inline__ int \\1/",
2301 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2304 __inline__ int __REDIRECT\\1 (\\2/",
2305 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2313 * Description of Glibc_C99_Inline_3 fix
2315 tSCC zGlibc_C99_Inline_3Name[] =
2316 "glibc_c99_inline_3";
2319 * File name selection pattern
2321 tSCC zGlibc_C99_Inline_3List[] =
2322 "bits/string2.h\0*/bits/string2.h\0";
2324 * Machine/OS name selection pattern
2326 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2329 * content selection pattern - do fix if pattern found
2331 tSCC zGlibc_C99_Inline_3Select0[] =
2335 * content bypass pattern - skip fix if pattern found
2337 tSCC zGlibc_C99_Inline_3Bypass0[] =
2340 #define GLIBC_C99_INLINE_3_TEST_CT 2
2341 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2342 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2343 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2346 * Fix Command Arguments for Glibc_C99_Inline_3
2348 static const char* apzGlibc_C99_Inline_3Patch[] = {
2350 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2351 "^# ifdef __cplusplus$",
2354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2356 * Description of Glibc_C99_Inline_4 fix
2358 tSCC zGlibc_C99_Inline_4Name[] =
2359 "glibc_c99_inline_4";
2362 * File name selection pattern
2364 tSCC zGlibc_C99_Inline_4List[] =
2365 "sys/sysmacros.h\0*/sys/sysmacros.h\0";
2367 * Machine/OS name selection pattern
2369 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2372 * content selection pattern - do fix if pattern found
2374 tSCC zGlibc_C99_Inline_4Select0[] =
2378 * content bypass pattern - skip fix if pattern found
2380 tSCC zGlibc_C99_Inline_4Bypass0[] =
2383 #define GLIBC_C99_INLINE_4_TEST_CT 2
2384 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2385 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2386 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2389 * Fix Command Arguments for Glibc_C99_Inline_4
2391 static const char* apzGlibc_C99_Inline_4Patch[] = {
2394 #ifdef __GNUC_GNU_INLINE__\n\
2400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2402 * Description of Glibc_Mutex_Init fix
2404 tSCC zGlibc_Mutex_InitName[] =
2408 * File name selection pattern
2410 tSCC zGlibc_Mutex_InitList[] =
2413 * Machine/OS name selection pattern
2415 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2418 * content selection pattern - do fix if pattern found
2420 tSCC zGlibc_Mutex_InitSelect0[] =
2421 "\\{ *\\{ *0, *\\} *\\}";
2423 #define GLIBC_MUTEX_INIT_TEST_CT 1
2424 static tTestDesc aGlibc_Mutex_InitTests[] = {
2425 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2428 * Fix Command Arguments for Glibc_Mutex_Init
2430 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2431 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2432 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2433 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2434 "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/",
2435 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2436 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2441 * Description of Gnu_Types fix
2443 tSCC zGnu_TypesName[] =
2447 * File name selection pattern
2449 tSCC zGnu_TypesList[] =
2450 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2452 * Machine/OS name selection pattern
2454 tSCC* apzGnu_TypesMachs[] = {
2455 "*-*-solaris2.1[0-9]*",
2456 (const char*)NULL };
2459 * content selection pattern - do fix if pattern found
2461 tSCC zGnu_TypesSelect0[] =
2462 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2465 * content bypass pattern - skip fix if pattern found
2467 tSCC zGnu_TypesBypass0[] =
2468 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2470 #define GNU_TYPES_TEST_CT 2
2471 static tTestDesc aGnu_TypesTests[] = {
2472 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2473 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2476 * Fix Command Arguments for Gnu_Types
2478 static const char* apzGnu_TypesPatch[] = {
2482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2484 * Description of Hp_Inline fix
2486 tSCC zHp_InlineName[] =
2490 * File name selection pattern
2492 tSCC zHp_InlineList[] =
2493 "sys/spinlock.h\0machine/machparam.h\0";
2495 * Machine/OS name selection pattern
2497 #define apzHp_InlineMachs (const char**)NULL
2500 * content selection pattern - do fix if pattern found
2502 tSCC zHp_InlineSelect0[] =
2503 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2505 #define HP_INLINE_TEST_CT 1
2506 static tTestDesc aHp_InlineTests[] = {
2507 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2510 * Fix Command Arguments for Hp_Inline
2512 static const char* apzHp_InlinePatch[] = {
2515 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2520 * Description of Hp_Sysfile fix
2522 tSCC zHp_SysfileName[] =
2526 * File name selection pattern
2528 tSCC zHp_SysfileList[] =
2531 * Machine/OS name selection pattern
2533 #define apzHp_SysfileMachs (const char**)NULL
2536 * content selection pattern - do fix if pattern found
2538 tSCC zHp_SysfileSelect0[] =
2541 #define HP_SYSFILE_TEST_CT 1
2542 static tTestDesc aHp_SysfileTests[] = {
2543 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2546 * Fix Command Arguments for Hp_Sysfile
2548 static const char* apzHp_SysfilePatch[] = {
2550 "(struct file *, ...)",
2554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2556 * Description of Hpux10_Cpp_Pow_Inline fix
2558 tSCC zHpux10_Cpp_Pow_InlineName[] =
2559 "hpux10_cpp_pow_inline";
2562 * File name selection pattern
2564 tSCC zHpux10_Cpp_Pow_InlineList[] =
2565 "fixinc-test-limits.h\0math.h\0";
2567 * Machine/OS name selection pattern
2569 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2572 * content selection pattern - do fix if pattern found
2574 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2575 "^# +ifdef +__cplusplus\n\
2577 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2578 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2580 +extern +\"C\" +\\{\n\
2584 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2585 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2586 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2589 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2591 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2598 * Description of Hpux11_Cpp_Pow_Inline fix
2600 tSCC zHpux11_Cpp_Pow_InlineName[] =
2601 "hpux11_cpp_pow_inline";
2604 * File name selection pattern
2606 tSCC zHpux11_Cpp_Pow_InlineList[] =
2609 * Machine/OS name selection pattern
2611 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2614 * content selection pattern - do fix if pattern found
2616 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2617 " +inline double pow\\(double d,int expon\\) \\{\n\
2618 +return pow\\(d, \\(double\\)expon\\);\n\
2621 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2622 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2623 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2626 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2628 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2635 * Description of Hppa_Hpux_Fp_Macros fix
2637 tSCC zHppa_Hpux_Fp_MacrosName[] =
2638 "hppa_hpux_fp_macros";
2641 * File name selection pattern
2643 tSCC zHppa_Hpux_Fp_MacrosList[] =
2646 * Machine/OS name selection pattern
2648 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2650 (const char*)NULL };
2653 * content selection pattern - do fix if pattern found
2655 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2656 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2657 #[ \t]*define[ \t]*FP_ZERO.*\n\
2658 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2659 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2660 #[ \t]*define[ \t]*FP_NAN.*\n";
2662 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2663 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2664 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2667 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2669 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2671 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2672 #if defined(_INCLUDE_HPUX_SOURCE) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2674 #ifdef _INCLUDE_HPUX_SOURCE\n",
2677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2679 * Description of Hpux10_Ctype_Declarations1 fix
2681 tSCC zHpux10_Ctype_Declarations1Name[] =
2682 "hpux10_ctype_declarations1";
2685 * File name selection pattern
2687 tSCC zHpux10_Ctype_Declarations1List[] =
2690 * Machine/OS name selection pattern
2692 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2695 * content selection pattern - do fix if pattern found
2697 tSCC zHpux10_Ctype_Declarations1Select0[] =
2698 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2701 * content bypass pattern - skip fix if pattern found
2703 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2704 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2706 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2707 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2708 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2709 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2712 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2714 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2716 "#ifdef _PROTOTYPES\n\
2717 extern int __tolower(int);\n\
2718 extern int __toupper(int);\n\
2719 #else /* NOT _PROTOTYPES */\n\
2720 extern int __tolower();\n\
2721 extern int __toupper();\n\
2722 #endif /* _PROTOTYPES */\n\n\
2726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2728 * Description of Hpux10_Ctype_Declarations2 fix
2730 tSCC zHpux10_Ctype_Declarations2Name[] =
2731 "hpux10_ctype_declarations2";
2734 * File name selection pattern
2736 tSCC zHpux10_Ctype_Declarations2List[] =
2739 * Machine/OS name selection pattern
2741 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2744 * content selection pattern - do fix if pattern found
2746 tSCC zHpux10_Ctype_Declarations2Select0[] =
2747 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2750 * content bypass pattern - skip fix if pattern found
2752 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2753 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2755 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2756 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2757 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2758 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2761 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2763 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2766 #ifdef _PROTOTYPES\n\
2767 extern int _isalnum(int);\n\
2768 extern int _isalpha(int);\n\
2769 extern int _iscntrl(int);\n\
2770 extern int _isdigit(int);\n\
2771 extern int _isgraph(int);\n\
2772 extern int _islower(int);\n\
2773 extern int _isprint(int);\n\
2774 extern int _ispunct(int);\n\
2775 extern int _isspace(int);\n\
2776 extern int _isupper(int);\n\
2777 extern int _isxdigit(int);\n\
2778 # else /* not _PROTOTYPES */\n\
2779 extern int _isalnum();\n\
2780 extern int _isalpha();\n\
2781 extern int _iscntrl();\n\
2782 extern int _isdigit();\n\
2783 extern int _isgraph();\n\
2784 extern int _islower();\n\
2785 extern int _isprint();\n\
2786 extern int _ispunct();\n\
2787 extern int _isspace();\n\
2788 extern int _isupper();\n\
2789 extern int _isxdigit();\n\
2790 #endif /* _PROTOTYPES */\n",
2793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2795 * Description of Hpux10_Stdio_Declarations fix
2797 tSCC zHpux10_Stdio_DeclarationsName[] =
2798 "hpux10_stdio_declarations";
2801 * File name selection pattern
2803 tSCC zHpux10_Stdio_DeclarationsList[] =
2806 * Machine/OS name selection pattern
2808 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2811 * content selection pattern - do fix if pattern found
2813 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2814 "^#[ \t]*define _iob[ \t]*__iob";
2817 * content bypass pattern - skip fix if pattern found
2819 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2820 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2822 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2823 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2824 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2825 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2828 * Fix Command Arguments for Hpux10_Stdio_Declarations
2830 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2833 # if defined(__STDC__) || defined(__cplusplus)\n\
2834 extern int snprintf(char *, size_t, const char *, ...);\n\
2835 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2836 # else /* not __STDC__) || __cplusplus */\n\
2837 extern int snprintf();\n\
2838 extern int vsnprintf();\n\
2839 # endif /* __STDC__) || __cplusplus */\n",
2842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2844 * Description of Hpux11_Abs fix
2846 tSCC zHpux11_AbsName[] =
2850 * File name selection pattern
2852 tSCC zHpux11_AbsList[] =
2855 * Machine/OS name selection pattern
2857 tSCC* apzHpux11_AbsMachs[] = {
2859 (const char*)NULL };
2862 * content selection pattern - do fix if pattern found
2864 tSCC zHpux11_AbsSelect0[] =
2865 "ifndef _MATH_INCLUDED";
2867 #define HPUX11_ABS_TEST_CT 1
2868 static tTestDesc aHpux11_AbsTests[] = {
2869 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2872 * Fix Command Arguments for Hpux11_Abs
2874 static const char* apzHpux11_AbsPatch[] = {
2876 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2881 * Description of Hpux11_Fabsf fix
2883 tSCC zHpux11_FabsfName[] =
2887 * File name selection pattern
2889 tSCC zHpux11_FabsfList[] =
2892 * Machine/OS name selection pattern
2894 #define apzHpux11_FabsfMachs (const char**)NULL
2897 * content selection pattern - do fix if pattern found
2899 tSCC zHpux11_FabsfSelect0[] =
2900 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2903 * content bypass pattern - skip fix if pattern found
2905 tSCC zHpux11_FabsfBypass0[] =
2908 #define HPUX11_FABSF_TEST_CT 2
2909 static tTestDesc aHpux11_FabsfTests[] = {
2910 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2911 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2914 * Fix Command Arguments for Hpux11_Fabsf
2916 static const char* apzHpux11_FabsfPatch[] = {
2918 "#ifndef __cplusplus\n\
2923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2925 * Description of Hpux11_Size_T fix
2927 tSCC zHpux11_Size_TName[] =
2931 * File name selection pattern
2933 #define zHpux11_Size_TList (char*)NULL
2935 * Machine/OS name selection pattern
2937 tSCC* apzHpux11_Size_TMachs[] = {
2939 (const char*)NULL };
2942 * content selection pattern - do fix if pattern found
2944 tSCC zHpux11_Size_TSelect0[] =
2947 #define HPUX11_SIZE_T_TEST_CT 1
2948 static tTestDesc aHpux11_Size_TTests[] = {
2949 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2952 * Fix Command Arguments for Hpux11_Size_T
2954 static const char* apzHpux11_Size_TPatch[] = {
2959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2961 * Description of Hpux11_Snprintf fix
2963 tSCC zHpux11_SnprintfName[] =
2967 * File name selection pattern
2969 tSCC zHpux11_SnprintfList[] =
2972 * Machine/OS name selection pattern
2974 #define apzHpux11_SnprintfMachs (const char**)NULL
2977 * content selection pattern - do fix if pattern found
2979 tSCC zHpux11_SnprintfSelect0[] =
2980 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2982 #define HPUX11_SNPRINTF_TEST_CT 1
2983 static tTestDesc aHpux11_SnprintfTests[] = {
2984 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2987 * Fix Command Arguments for Hpux11_Snprintf
2989 static const char* apzHpux11_SnprintfPatch[] = {
2994 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2996 * Description of Hpux11_Uint32_C fix
2998 tSCC zHpux11_Uint32_CName[] =
3002 * File name selection pattern
3004 tSCC zHpux11_Uint32_CList[] =
3007 * Machine/OS name selection pattern
3009 #define apzHpux11_Uint32_CMachs (const char**)NULL
3012 * content selection pattern - do fix if pattern found
3014 tSCC zHpux11_Uint32_CSelect0[] =
3015 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
3017 #define HPUX11_UINT32_C_TEST_CT 1
3018 static tTestDesc aHpux11_Uint32_CTests[] = {
3019 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
3022 * Fix Command Arguments for Hpux11_Uint32_C
3024 static const char* apzHpux11_Uint32_CPatch[] = {
3026 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
3029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3031 * Description of Hpux11_Vsnprintf fix
3033 tSCC zHpux11_VsnprintfName[] =
3037 * File name selection pattern
3039 tSCC zHpux11_VsnprintfList[] =
3042 * Machine/OS name selection pattern
3044 #define apzHpux11_VsnprintfMachs (const char**)NULL
3047 * content selection pattern - do fix if pattern found
3049 tSCC zHpux11_VsnprintfSelect0[] =
3050 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3052 #define HPUX11_VSNPRINTF_TEST_CT 1
3053 static tTestDesc aHpux11_VsnprintfTests[] = {
3054 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3057 * Fix Command Arguments for Hpux11_Vsnprintf
3059 static const char* apzHpux11_VsnprintfPatch[] = {
3064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3066 * Description of Hpux8_Bogus_Inlines fix
3068 tSCC zHpux8_Bogus_InlinesName[] =
3069 "hpux8_bogus_inlines";
3072 * File name selection pattern
3074 tSCC zHpux8_Bogus_InlinesList[] =
3077 * Machine/OS name selection pattern
3079 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3082 * content selection pattern - do fix if pattern found
3084 tSCC zHpux8_Bogus_InlinesSelect0[] =
3088 * content bypass pattern - skip fix if pattern found
3090 tSCC zHpux8_Bogus_InlinesBypass0[] =
3093 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3094 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3095 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3096 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3099 * Fix Command Arguments for Hpux8_Bogus_Inlines
3101 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
3102 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3103 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3104 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3105 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3110 * Description of Hpux_Ctype_Macros fix
3112 tSCC zHpux_Ctype_MacrosName[] =
3113 "hpux_ctype_macros";
3116 * File name selection pattern
3118 tSCC zHpux_Ctype_MacrosList[] =
3121 * Machine/OS name selection pattern
3123 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3126 * content selection pattern - do fix if pattern found
3128 tSCC zHpux_Ctype_MacrosSelect0[] =
3129 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3131 #define HPUX_CTYPE_MACROS_TEST_CT 1
3132 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3133 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3136 * Fix Command Arguments for Hpux_Ctype_Macros
3138 static const char* apzHpux_Ctype_MacrosPatch[] = {
3143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3145 * Description of Hpux_Htonl fix
3147 tSCC zHpux_HtonlName[] =
3151 * File name selection pattern
3153 tSCC zHpux_HtonlList[] =
3156 * Machine/OS name selection pattern
3158 #define apzHpux_HtonlMachs (const char**)NULL
3161 * content selection pattern - do fix if pattern found
3163 tSCC zHpux_HtonlSelect0[] =
3164 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3166 \\* Macros for number representation conversion\\.\n\
3170 #define HPUX_HTONL_TEST_CT 1
3171 static tTestDesc aHpux_HtonlTests[] = {
3172 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3175 * Fix Command Arguments for Hpux_Htonl
3177 static const char* apzHpux_HtonlPatch[] = {
3183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3185 * Description of Hpux_Long_Double fix
3187 tSCC zHpux_Long_DoubleName[] =
3191 * File name selection pattern
3193 tSCC zHpux_Long_DoubleList[] =
3196 * Machine/OS name selection pattern
3198 #define apzHpux_Long_DoubleMachs (const char**)NULL
3201 * content selection pattern - do fix if pattern found
3203 tSCC zHpux_Long_DoubleSelect0[] =
3204 "extern[ \t]long_double[ \t]strtold";
3207 * content bypass pattern - skip fix if pattern found
3209 tSCC zHpux_Long_DoubleBypass0[] =
3212 #define HPUX_LONG_DOUBLE_TEST_CT 2
3213 static tTestDesc aHpux_Long_DoubleTests[] = {
3214 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3215 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3218 * Fix Command Arguments for Hpux_Long_Double
3220 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3221 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3222 "-e", "s/long_double/long double/g",
3225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3227 * Description of Hpux_Systime fix
3229 tSCC zHpux_SystimeName[] =
3233 * File name selection pattern
3235 tSCC zHpux_SystimeList[] =
3238 * Machine/OS name selection pattern
3240 #define apzHpux_SystimeMachs (const char**)NULL
3243 * content selection pattern - do fix if pattern found
3245 tSCC zHpux_SystimeSelect0[] =
3246 "^extern struct sigevent;";
3248 #define HPUX_SYSTIME_TEST_CT 1
3249 static tTestDesc aHpux_SystimeTests[] = {
3250 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3253 * Fix Command Arguments for Hpux_Systime
3255 static const char* apzHpux_SystimePatch[] = {
3260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3262 * Description of Hpux_Spu_Info fix
3264 tSCC zHpux_Spu_InfoName[] =
3268 * File name selection pattern
3270 tSCC zHpux_Spu_InfoList[] =
3271 "ia64/sys/getppdp.h\0";
3273 * Machine/OS name selection pattern
3275 tSCC* apzHpux_Spu_InfoMachs[] = {
3277 (const char*)NULL };
3280 * content selection pattern - do fix if pattern found
3282 tSCC zHpux_Spu_InfoSelect0[] =
3283 "^.*extern.*spu_info.*";
3285 #define HPUX_SPU_INFO_TEST_CT 1
3286 static tTestDesc aHpux_Spu_InfoTests[] = {
3287 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3290 * Fix Command Arguments for Hpux_Spu_Info
3292 static const char* apzHpux_Spu_InfoPatch[] = {
3299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3301 * Description of Hpux11_Extern_Sendfile fix
3303 tSCC zHpux11_Extern_SendfileName[] =
3304 "hpux11_extern_sendfile";
3307 * File name selection pattern
3309 tSCC zHpux11_Extern_SendfileList[] =
3312 * Machine/OS name selection pattern
3314 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3315 "*-hp-hpux11.[12]*",
3316 (const char*)NULL };
3319 * content selection pattern - do fix if pattern found
3321 tSCC zHpux11_Extern_SendfileSelect0[] =
3322 "^[ \t]*extern sbsize_t sendfile.*\n\
3325 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3326 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3327 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3330 * Fix Command Arguments for Hpux11_Extern_Sendfile
3332 static const char* apzHpux11_Extern_SendfilePatch[] = {
3334 "#ifndef _APP32_64BIT_OFF_T\n\
3338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3340 * Description of Hpux11_Extern_Sendpath fix
3342 tSCC zHpux11_Extern_SendpathName[] =
3343 "hpux11_extern_sendpath";
3346 * File name selection pattern
3348 tSCC zHpux11_Extern_SendpathList[] =
3351 * Machine/OS name selection pattern
3353 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3354 "*-hp-hpux11.[12]*",
3355 (const char*)NULL };
3358 * content selection pattern - do fix if pattern found
3360 tSCC zHpux11_Extern_SendpathSelect0[] =
3361 "^[ \t]*extern sbsize_t sendpath.*\n\
3364 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3365 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3366 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3369 * Fix Command Arguments for Hpux11_Extern_Sendpath
3371 static const char* apzHpux11_Extern_SendpathPatch[] = {
3373 "#ifndef _APP32_64BIT_OFF_T\n\
3377 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3379 * Description of Hpux_Extern_Errno fix
3381 tSCC zHpux_Extern_ErrnoName[] =
3382 "hpux_extern_errno";
3385 * File name selection pattern
3387 tSCC zHpux_Extern_ErrnoList[] =
3390 * Machine/OS name selection pattern
3392 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3394 "*-hp-hpux11.[0-2]*",
3395 (const char*)NULL };
3398 * content selection pattern - do fix if pattern found
3400 tSCC zHpux_Extern_ErrnoSelect0[] =
3401 "^[ \t]*extern int errno;$";
3403 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3404 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3405 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3408 * Fix Command Arguments for Hpux_Extern_Errno
3410 static const char* apzHpux_Extern_ErrnoPatch[] = {
3412 "#ifdef __cplusplus\n\
3416 #ifdef __cplusplus\n\
3421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3423 * Description of Hpux11_Pthread_Const fix
3425 tSCC zHpux11_Pthread_ConstName[] =
3426 "hpux11_pthread_const";
3429 * File name selection pattern
3431 tSCC zHpux11_Pthread_ConstList[] =
3434 * Machine/OS name selection pattern
3436 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3437 "*-hp-hpux11.[0-3]*",
3438 (const char*)NULL };
3441 * content selection pattern - do fix if pattern found
3443 tSCC zHpux11_Pthread_ConstSelect0[] =
3444 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3446 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3447 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3448 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3451 * Fix Command Arguments for Hpux11_Pthread_Const
3453 static const char* apzHpux11_Pthread_ConstPatch[] = {
3455 "#define __POINTER_SET\t\t((void *) 1L)",
3458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3460 * Description of Hpux_Pthread_Initializers fix
3462 tSCC zHpux_Pthread_InitializersName[] =
3463 "hpux_pthread_initializers";
3466 * File name selection pattern
3468 tSCC zHpux_Pthread_InitializersList[] =
3471 * Machine/OS name selection pattern
3473 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3474 "*-hp-hpux11.[0-3]*",
3475 (const char*)NULL };
3476 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3477 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3480 * Fix Command Arguments for Hpux_Pthread_Initializers
3482 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3483 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3484 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3485 "-e", "/^[ \t]*0$/d",
3486 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3487 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3488 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3489 "-e", "s@^[ \t]*__LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@\t{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3490 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3491 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3492 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3493 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3494 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3495 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3500 * Description of Huge_Val_Hex fix
3502 tSCC zHuge_Val_HexName[] =
3506 * File name selection pattern
3508 tSCC zHuge_Val_HexList[] =
3509 "bits/huge_val.h\0";
3511 * Machine/OS name selection pattern
3513 #define apzHuge_Val_HexMachs (const char**)NULL
3516 * content selection pattern - do fix if pattern found
3518 tSCC zHuge_Val_HexSelect0[] =
3519 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3522 * content bypass pattern - skip fix if pattern found
3524 tSCC zHuge_Val_HexBypass0[] =
3525 "__builtin_huge_val";
3527 #define HUGE_VAL_HEX_TEST_CT 2
3528 static tTestDesc aHuge_Val_HexTests[] = {
3529 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3530 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3533 * Fix Command Arguments for Huge_Val_Hex
3535 static const char* apzHuge_Val_HexPatch[] = {
3537 "#define HUGE_VAL (__builtin_huge_val())\n",
3540 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3542 * Description of Huge_Valf_Hex fix
3544 tSCC zHuge_Valf_HexName[] =
3548 * File name selection pattern
3550 tSCC zHuge_Valf_HexList[] =
3551 "bits/huge_val.h\0";
3553 * Machine/OS name selection pattern
3555 #define apzHuge_Valf_HexMachs (const char**)NULL
3558 * content selection pattern - do fix if pattern found
3560 tSCC zHuge_Valf_HexSelect0[] =
3561 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3564 * content bypass pattern - skip fix if pattern found
3566 tSCC zHuge_Valf_HexBypass0[] =
3567 "__builtin_huge_valf";
3569 #define HUGE_VALF_HEX_TEST_CT 2
3570 static tTestDesc aHuge_Valf_HexTests[] = {
3571 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3572 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3575 * Fix Command Arguments for Huge_Valf_Hex
3577 static const char* apzHuge_Valf_HexPatch[] = {
3579 "#define HUGE_VALF (__builtin_huge_valf())\n",
3582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3584 * Description of Huge_Vall_Hex fix
3586 tSCC zHuge_Vall_HexName[] =
3590 * File name selection pattern
3592 tSCC zHuge_Vall_HexList[] =
3593 "bits/huge_val.h\0";
3595 * Machine/OS name selection pattern
3597 #define apzHuge_Vall_HexMachs (const char**)NULL
3600 * content selection pattern - do fix if pattern found
3602 tSCC zHuge_Vall_HexSelect0[] =
3603 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3606 * content bypass pattern - skip fix if pattern found
3608 tSCC zHuge_Vall_HexBypass0[] =
3609 "__builtin_huge_vall";
3611 #define HUGE_VALL_HEX_TEST_CT 2
3612 static tTestDesc aHuge_Vall_HexTests[] = {
3613 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3614 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3617 * Fix Command Arguments for Huge_Vall_Hex
3619 static const char* apzHuge_Vall_HexPatch[] = {
3621 "#define HUGE_VALL (__builtin_huge_vall())\n",
3624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3626 * Description of Int_Abort_Free_And_Exit fix
3628 tSCC zInt_Abort_Free_And_ExitName[] =
3629 "int_abort_free_and_exit";
3632 * File name selection pattern
3634 tSCC zInt_Abort_Free_And_ExitList[] =
3637 * Machine/OS name selection pattern
3639 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3642 * content selection pattern - do fix if pattern found
3644 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3645 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3648 * content bypass pattern - skip fix if pattern found
3650 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3651 "_CLASSIC_ANSI_TYPES";
3653 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3654 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3655 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3656 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3659 * Fix Command Arguments for Int_Abort_Free_And_Exit
3661 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3668 * Description of Io_Quotes_Def fix
3670 tSCC zIo_Quotes_DefName[] =
3674 * File name selection pattern
3676 #define zIo_Quotes_DefList (char*)NULL
3678 * Machine/OS name selection pattern
3680 #define apzIo_Quotes_DefMachs (const char**)NULL
3683 * content selection pattern - do fix if pattern found
3685 tSCC zIo_Quotes_DefSelect0[] =
3686 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3688 #define IO_QUOTES_DEF_TEST_CT 1
3689 static tTestDesc aIo_Quotes_DefTests[] = {
3690 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3693 * Fix Command Arguments for Io_Quotes_Def
3695 static const char* apzIo_Quotes_DefPatch[] = {
3700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3702 * Description of Io_Quotes_Use fix
3704 tSCC zIo_Quotes_UseName[] =
3708 * File name selection pattern
3710 #define zIo_Quotes_UseList (char*)NULL
3712 * Machine/OS name selection pattern
3714 #define apzIo_Quotes_UseMachs (const char**)NULL
3717 * content selection pattern - do fix if pattern found
3719 tSCC zIo_Quotes_UseSelect0[] =
3720 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3722 #define IO_QUOTES_USE_TEST_CT 1
3723 static tTestDesc aIo_Quotes_UseTests[] = {
3724 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3727 * Fix Command Arguments for Io_Quotes_Use
3729 static const char* apzIo_Quotes_UsePatch[] = {
3734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3736 * Description of Ip_Missing_Semi fix
3738 tSCC zIp_Missing_SemiName[] =
3742 * File name selection pattern
3744 tSCC zIp_Missing_SemiList[] =
3747 * Machine/OS name selection pattern
3749 #define apzIp_Missing_SemiMachs (const char**)NULL
3752 * content selection pattern - do fix if pattern found
3754 tSCC zIp_Missing_SemiSelect0[] =
3757 #define IP_MISSING_SEMI_TEST_CT 1
3758 static tTestDesc aIp_Missing_SemiTests[] = {
3759 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3762 * Fix Command Arguments for Ip_Missing_Semi
3764 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3765 "-e", "/^struct/,/^};/s/}$/};/",
3768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3770 * Description of Irix___Restrict fix
3772 tSCC zIrix___RestrictName[] =
3776 * File name selection pattern
3778 tSCC zIrix___RestrictList[] =
3779 "internal/sgimacros.h\0";
3781 * Machine/OS name selection pattern
3783 tSCC* apzIrix___RestrictMachs[] = {
3785 (const char*)NULL };
3788 * content selection pattern - do fix if pattern found
3790 tSCC zIrix___RestrictSelect0[] =
3792 )(#[ \t]*define __restrict restrict)";
3794 #define IRIX___RESTRICT_TEST_CT 1
3795 static tTestDesc aIrix___RestrictTests[] = {
3796 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3799 * Fix Command Arguments for Irix___Restrict
3801 static const char* apzIrix___RestrictPatch[] = {
3803 "%1# ifndef __cplusplus\n\
3808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3810 * Description of Irix___Generic1 fix
3812 tSCC zIrix___Generic1Name[] =
3816 * File name selection pattern
3818 tSCC zIrix___Generic1List[] =
3819 "internal/math_core.h\0";
3821 * Machine/OS name selection pattern
3823 tSCC* apzIrix___Generic1Machs[] = {
3825 (const char*)NULL };
3828 * content selection pattern - do fix if pattern found
3830 tSCC zIrix___Generic1Select0[] =
3831 "#define ([a-z]+)\\(x\\) *__generic.*";
3833 #define IRIX___GENERIC1_TEST_CT 1
3834 static tTestDesc aIrix___Generic1Tests[] = {
3835 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3838 * Fix Command Arguments for Irix___Generic1
3840 static const char* apzIrix___Generic1Patch[] = {
3842 "extern int %1(double);\n\
3843 extern int %1f(float);\n\
3844 extern int %1l(long double);\n\
3845 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3846 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3852 * Description of Irix___Generic2 fix
3854 tSCC zIrix___Generic2Name[] =
3858 * File name selection pattern
3860 tSCC zIrix___Generic2List[] =
3861 "internal/math_core.h\0";
3863 * Machine/OS name selection pattern
3865 tSCC* apzIrix___Generic2Machs[] = {
3867 (const char*)NULL };
3870 * content selection pattern - do fix if pattern found
3872 tSCC zIrix___Generic2Select0[] =
3873 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3875 #define IRIX___GENERIC2_TEST_CT 1
3876 static tTestDesc aIrix___Generic2Tests[] = {
3877 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3880 * Fix Command Arguments for Irix___Generic2
3882 static const char* apzIrix___Generic2Patch[] = {
3884 "#define %1(x,y) \\\n\
3885 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3886 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3890 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3892 * Description of Irix_Asm_Apostrophe fix
3894 tSCC zIrix_Asm_ApostropheName[] =
3895 "irix_asm_apostrophe";
3898 * File name selection pattern
3900 tSCC zIrix_Asm_ApostropheList[] =
3903 * Machine/OS name selection pattern
3905 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3908 * content selection pattern - do fix if pattern found
3910 tSCC zIrix_Asm_ApostropheSelect0[] =
3911 "^[ \t]*#.*[Ww]e're";
3913 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3914 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3915 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3918 * Fix Command Arguments for Irix_Asm_Apostrophe
3920 static const char* apzIrix_Asm_ApostrophePatch[] = {
3923 "^([ \t]*#.*[Ww]e)'re",
3926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3928 * Description of Irix_Limits_Const fix
3930 tSCC zIrix_Limits_ConstName[] =
3931 "irix_limits_const";
3934 * File name selection pattern
3936 tSCC zIrix_Limits_ConstList[] =
3937 "fixinc-test-limits.h\0limits.h\0";
3939 * Machine/OS name selection pattern
3941 #define apzIrix_Limits_ConstMachs (const char**)NULL
3944 * content selection pattern - do fix if pattern found
3946 tSCC zIrix_Limits_ConstSelect0[] =
3949 #define IRIX_LIMITS_CONST_TEST_CT 1
3950 static tTestDesc aIrix_Limits_ConstTests[] = {
3951 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3954 * Fix Command Arguments for Irix_Limits_Const
3956 static const char* apzIrix_Limits_ConstPatch[] = {
3961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3963 * Description of Irix_Socklen_T fix
3965 tSCC zIrix_Socklen_TName[] =
3969 * File name selection pattern
3971 tSCC zIrix_Socklen_TList[] =
3974 * Machine/OS name selection pattern
3976 tSCC* apzIrix_Socklen_TMachs[] = {
3978 (const char*)NULL };
3981 * content selection pattern - do fix if pattern found
3983 tSCC zIrix_Socklen_TSelect0[] =
3984 "(#define _SOCKLEN_T\n\
3985 )(typedef u_int32_t socklen_t;)";
3987 #define IRIX_SOCKLEN_T_TEST_CT 1
3988 static tTestDesc aIrix_Socklen_TTests[] = {
3989 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3992 * Fix Command Arguments for Irix_Socklen_T
3994 static const char* apzIrix_Socklen_TPatch[] = {
3996 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3997 typedef int socklen_t;\n\
4000 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4005 * Description of Irix_Stdint_C99 fix
4007 tSCC zIrix_Stdint_C99Name[] =
4011 * File name selection pattern
4013 tSCC zIrix_Stdint_C99List[] =
4016 * Machine/OS name selection pattern
4018 tSCC* apzIrix_Stdint_C99Machs[] = {
4020 (const char*)NULL };
4023 * content selection pattern - do fix if pattern found
4025 tSCC zIrix_Stdint_C99Select0[] =
4027 )(#error This header file is to be used only for c99 mode compilations)";
4029 #define IRIX_STDINT_C99_TEST_CT 1
4030 static tTestDesc aIrix_Stdint_C99Tests[] = {
4031 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4034 * Fix Command Arguments for Irix_Stdint_C99
4036 static const char* apzIrix_Stdint_C99Patch[] = {
4042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4044 * Description of Irix_Stdio_Va_List fix
4046 tSCC zIrix_Stdio_Va_ListName[] =
4047 "irix_stdio_va_list";
4050 * File name selection pattern
4052 tSCC zIrix_Stdio_Va_ListList[] =
4053 "stdio.h\0internal/stdio_core.h\0";
4055 * Machine/OS name selection pattern
4057 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4060 * content selection pattern - do fix if pattern found
4062 tSCC zIrix_Stdio_Va_ListSelect0[] =
4063 "/\\* va_list \\*/ char \\*";
4065 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4066 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4067 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4070 * Fix Command Arguments for Irix_Stdio_Va_List
4072 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4079 * Description of Irix_Wcsftime fix
4081 tSCC zIrix_WcsftimeName[] =
4085 * File name selection pattern
4087 tSCC zIrix_WcsftimeList[] =
4088 "internal/wchar_core.h\0";
4090 * Machine/OS name selection pattern
4092 tSCC* apzIrix_WcsftimeMachs[] = {
4094 (const char*)NULL };
4097 * content selection pattern - do fix if pattern found
4099 tSCC zIrix_WcsftimeSelect0[] =
4101 (extern size_t[ \t]+wcsftime.*const char *.*)";
4103 #define IRIX_WCSFTIME_TEST_CT 1
4104 static tTestDesc aIrix_WcsftimeTests[] = {
4105 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4108 * Fix Command Arguments for Irix_Wcsftime
4110 static const char* apzIrix_WcsftimePatch[] = {
4112 "#if _NO_XOPEN5 && !defined(__c99)\n\
4116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4118 * Description of Isc_Fmod fix
4120 tSCC zIsc_FmodName[] =
4124 * File name selection pattern
4126 tSCC zIsc_FmodList[] =
4129 * Machine/OS name selection pattern
4131 #define apzIsc_FmodMachs (const char**)NULL
4134 * content selection pattern - do fix if pattern found
4136 tSCC zIsc_FmodSelect0[] =
4139 #define ISC_FMOD_TEST_CT 1
4140 static tTestDesc aIsc_FmodTests[] = {
4141 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4144 * Fix Command Arguments for Isc_Fmod
4146 static const char* apzIsc_FmodPatch[] = {
4148 "fmod(double, double)",
4151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4153 * Description of Isc_Omits_With_Stdc fix
4155 tSCC zIsc_Omits_With_StdcName[] =
4156 "isc_omits_with_stdc";
4159 * File name selection pattern
4161 tSCC zIsc_Omits_With_StdcList[] =
4162 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4164 * Machine/OS name selection pattern
4166 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4169 * content selection pattern - do fix if pattern found
4171 tSCC zIsc_Omits_With_StdcSelect0[] =
4172 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4174 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4175 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4176 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4179 * Fix Command Arguments for Isc_Omits_With_Stdc
4181 static const char* apzIsc_Omits_With_StdcPatch[] = {
4183 "!defined(_POSIX_SOURCE)",
4186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4188 * Description of Kandr_Concat fix
4190 tSCC zKandr_ConcatName[] =
4194 * File name selection pattern
4196 tSCC zKandr_ConcatList[] =
4197 "sparc/asm_linkage.h\0sun*/asm_linkage.h\0arm/as_support.h\0arm/mc_type.h\0arm/xcb.h\0dev/chardefmac.h\0dev/ps_irq.h\0dev/screen.h\0dev/scsi.h\0sys/tty.h\0Xm.acorn/XmP.h\0bsd43/bsd43_.h\0";
4199 * Machine/OS name selection pattern
4201 #define apzKandr_ConcatMachs (const char**)NULL
4204 * content selection pattern - do fix if pattern found
4206 tSCC zKandr_ConcatSelect0[] =
4209 #define KANDR_CONCAT_TEST_CT 1
4210 static tTestDesc aKandr_ConcatTests[] = {
4211 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4214 * Fix Command Arguments for Kandr_Concat
4216 static const char* apzKandr_ConcatPatch[] = {
4221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4223 * Description of Libc1_G_Va_List fix
4225 tSCC zLibc1_G_Va_ListName[] =
4229 * File name selection pattern
4231 tSCC zLibc1_G_Va_ListList[] =
4234 * Machine/OS name selection pattern
4236 tSCC* apzLibc1_G_Va_ListMachs[] = {
4238 (const char*)NULL };
4241 * content selection pattern - do fix if pattern found
4243 tSCC zLibc1_G_Va_ListSelect0[] =
4244 "typedef void \\* _G_va_list;";
4246 #define LIBC1_G_VA_LIST_TEST_CT 1
4247 static tTestDesc aLibc1_G_Va_ListTests[] = {
4248 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
4251 * Fix Command Arguments for Libc1_G_Va_List
4253 static const char* apzLibc1_G_Va_ListPatch[] = {
4255 "typedef __builtin_va_list _G_va_list;",
4258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4260 * Description of Libc1_Ifdefd_Memx fix
4262 tSCC zLibc1_Ifdefd_MemxName[] =
4263 "libc1_ifdefd_memx";
4266 * File name selection pattern
4268 tSCC zLibc1_Ifdefd_MemxList[] =
4269 "testing.h\0string.h\0";
4271 * Machine/OS name selection pattern
4273 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
4276 * content selection pattern - do fix if pattern found
4278 tSCC zLibc1_Ifdefd_MemxSelect0[] =
4279 "' is a built-in function for gcc 2\\.x\\. \\*/";
4282 * content bypass pattern - skip fix if pattern found
4284 tSCC zLibc1_Ifdefd_MemxBypass0[] =
4287 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
4288 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
4289 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
4290 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
4293 * Fix Command Arguments for Libc1_Ifdefd_Memx
4295 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
4298 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
4299 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
4301 extern [a-z_]+ mem.*(\n\
4306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4308 * Description of Linux_Ia64_Ucontext fix
4310 tSCC zLinux_Ia64_UcontextName[] =
4311 "linux_ia64_ucontext";
4314 * File name selection pattern
4316 tSCC zLinux_Ia64_UcontextList[] =
4319 * Machine/OS name selection pattern
4321 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4323 (const char*)NULL };
4326 * content selection pattern - do fix if pattern found
4328 tSCC zLinux_Ia64_UcontextSelect0[] =
4329 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4331 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4332 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4333 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4336 * Fix Command Arguments for Linux_Ia64_Ucontext
4338 static const char* apzLinux_Ia64_UcontextPatch[] = {
4340 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4345 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4347 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4348 "lynxos_no_warning_in_sys_time_h";
4351 * File name selection pattern
4353 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4356 * Machine/OS name selection pattern
4358 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4361 * content selection pattern - do fix if pattern found
4363 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4364 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4366 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4367 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4368 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4371 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4373 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4380 * Description of Lynxos_Missing_Putenv fix
4382 tSCC zLynxos_Missing_PutenvName[] =
4383 "lynxos_missing_putenv";
4386 * File name selection pattern
4388 tSCC zLynxos_Missing_PutenvList[] =
4391 * Machine/OS name selection pattern
4393 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4395 (const char*)NULL };
4398 * content selection pattern - do fix if pattern found
4400 tSCC zLynxos_Missing_PutenvSelect0[] =
4401 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4404 * content bypass pattern - skip fix if pattern found
4406 tSCC zLynxos_Missing_PutenvBypass0[] =
4409 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4410 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4411 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4412 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4415 * Fix Command Arguments for Lynxos_Missing_Putenv
4417 static const char* apzLynxos_Missing_PutenvPatch[] = {
4420 extern int putenv\t\t\t\t_AP((char *));",
4421 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4426 * Description of Machine_Ansi_H_Va_List fix
4428 tSCC zMachine_Ansi_H_Va_ListName[] =
4429 "machine_ansi_h_va_list";
4432 * File name selection pattern
4434 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4436 * Machine/OS name selection pattern
4438 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4441 * content selection pattern - do fix if pattern found
4443 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4444 "define[ \t]+_BSD_VA_LIST_[ \t]";
4447 * content bypass pattern - skip fix if pattern found
4449 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4450 "__builtin_va_list";
4452 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4453 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4454 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4455 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4458 * Fix Command Arguments for Machine_Ansi_H_Va_List
4460 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4462 "%1__builtin_va_list",
4463 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4466 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4468 * Description of Machine_Name fix
4470 tSCC zMachine_NameName[] =
4474 * File name selection pattern
4476 #define zMachine_NameList (char*)NULL
4478 * Machine/OS name selection pattern
4480 #define apzMachine_NameMachs (const char**)NULL
4483 * perform the C function call test
4485 tSCC zMachine_NameFTst0[] = "machine_name";
4487 #define MACHINE_NAME_TEST_CT 1
4488 static tTestDesc aMachine_NameTests[] = {
4489 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4492 * Fix Command Arguments for Machine_Name
4494 static const char* apzMachine_NamePatch[] = {
4498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4500 * Description of Math_Exception fix
4502 tSCC zMath_ExceptionName[] =
4506 * File name selection pattern
4508 tSCC zMath_ExceptionList[] =
4511 * Machine/OS name selection pattern
4513 #define apzMath_ExceptionMachs (const char**)NULL
4516 * content selection pattern - do fix if pattern found
4518 tSCC zMath_ExceptionSelect0[] =
4522 * content bypass pattern - skip fix if pattern found
4524 tSCC zMath_ExceptionBypass0[] =
4525 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4527 #define MATH_EXCEPTION_TEST_CT 2
4528 static tTestDesc aMath_ExceptionTests[] = {
4529 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4530 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4533 * Fix Command Arguments for Math_Exception
4535 static const char* apzMath_ExceptionPatch[] = {
4537 "#ifdef __cplusplus\n\
4538 #define exception __math_exception\n\
4540 "#ifdef __cplusplus\n\
4545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4547 * Description of Math_Huge_Val_From_Dbl_Max fix
4549 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4550 "math_huge_val_from_dbl_max";
4553 * File name selection pattern
4555 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4558 * Machine/OS name selection pattern
4560 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4563 * content selection pattern - do fix if pattern found
4565 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4566 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4569 * content bypass pattern - skip fix if pattern found
4571 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4572 "define[ \t]+DBL_MAX";
4574 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4575 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4576 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4577 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4580 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4582 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4583 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4584 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4585 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4592 * Description of Nested_Auth_Des fix
4594 tSCC zNested_Auth_DesName[] =
4598 * File name selection pattern
4600 tSCC zNested_Auth_DesList[] =
4603 * Machine/OS name selection pattern
4605 #define apzNested_Auth_DesMachs (const char**)NULL
4608 * content selection pattern - do fix if pattern found
4610 tSCC zNested_Auth_DesSelect0[] =
4611 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4613 #define NESTED_AUTH_DES_TEST_CT 1
4614 static tTestDesc aNested_Auth_DesTests[] = {
4615 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4618 * Fix Command Arguments for Nested_Auth_Des
4620 static const char* apzNested_Auth_DesPatch[] = {
4625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4627 * Description of Nested_Motorola fix
4629 tSCC zNested_MotorolaName[] =
4633 * File name selection pattern
4635 tSCC zNested_MotorolaList[] =
4636 "sys/limits.h\0limits.h\0";
4638 * Machine/OS name selection pattern
4640 tSCC* apzNested_MotorolaMachs[] = {
4641 "m68k-motorola-sysv*",
4642 (const char*)NULL };
4645 * content selection pattern - do fix if pattern found
4647 tSCC zNested_MotorolaSelect0[] =
4648 "max # bytes atomic in write|error value returned by Math lib";
4650 #define NESTED_MOTOROLA_TEST_CT 1
4651 static tTestDesc aNested_MotorolaTests[] = {
4652 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4655 * Fix Command Arguments for Nested_Motorola
4657 static const char* apzNested_MotorolaPatch[] = { "sed",
4658 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4659 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4664 * Description of Nested_Sys_Limits fix
4666 tSCC zNested_Sys_LimitsName[] =
4667 "nested_sys_limits";
4670 * File name selection pattern
4672 tSCC zNested_Sys_LimitsList[] =
4675 * Machine/OS name selection pattern
4677 #define apzNested_Sys_LimitsMachs (const char**)NULL
4680 * content selection pattern - do fix if pattern found
4682 tSCC zNested_Sys_LimitsSelect0[] =
4685 #define NESTED_SYS_LIMITS_TEST_CT 1
4686 static tTestDesc aNested_Sys_LimitsTests[] = {
4687 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4690 * Fix Command Arguments for Nested_Sys_Limits
4692 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4693 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4694 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4699 * Description of Netbsd_C99_Inline_1 fix
4701 tSCC zNetbsd_C99_Inline_1Name[] =
4702 "netbsd_c99_inline_1";
4705 * File name selection pattern
4707 tSCC zNetbsd_C99_Inline_1List[] =
4710 * Machine/OS name selection pattern
4712 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4714 (const char*)NULL };
4717 * content selection pattern - do fix if pattern found
4719 tSCC zNetbsd_C99_Inline_1Select0[] =
4720 "extern __inline int";
4722 #define NETBSD_C99_INLINE_1_TEST_CT 1
4723 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4724 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4727 * Fix Command Arguments for Netbsd_C99_Inline_1
4729 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4732 #ifdef __GNUC_STDC_INLINE__\n\
4733 __attribute__((__gnu_inline__))\n\
4738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4740 * Description of Netbsd_C99_Inline_2 fix
4742 tSCC zNetbsd_C99_Inline_2Name[] =
4743 "netbsd_c99_inline_2";
4746 * File name selection pattern
4748 tSCC zNetbsd_C99_Inline_2List[] =
4751 * Machine/OS name selection pattern
4753 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4755 (const char*)NULL };
4758 * content selection pattern - do fix if pattern found
4760 tSCC zNetbsd_C99_Inline_2Select0[] =
4761 "#define _SIGINLINE extern __inline";
4763 #define NETBSD_C99_INLINE_2_TEST_CT 1
4764 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4765 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4768 * Fix Command Arguments for Netbsd_C99_Inline_2
4770 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4772 "#ifdef __GNUC_STDC_INLINE__\n\
4773 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4781 * Description of Netbsd_Extra_Semicolon fix
4783 tSCC zNetbsd_Extra_SemicolonName[] =
4784 "netbsd_extra_semicolon";
4787 * File name selection pattern
4789 tSCC zNetbsd_Extra_SemicolonList[] =
4792 * Machine/OS name selection pattern
4794 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4796 (const char*)NULL };
4799 * content selection pattern - do fix if pattern found
4801 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4802 "#define[ \t]*__END_DECLS[ \t]*};";
4804 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4805 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4806 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4809 * Fix Command Arguments for Netbsd_Extra_Semicolon
4811 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4813 "#define __END_DECLS }",
4816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4818 * Description of Next_Math_Prefix fix
4820 tSCC zNext_Math_PrefixName[] =
4824 * File name selection pattern
4826 tSCC zNext_Math_PrefixList[] =
4829 * Machine/OS name selection pattern
4831 #define apzNext_Math_PrefixMachs (const char**)NULL
4834 * content selection pattern - do fix if pattern found
4836 tSCC zNext_Math_PrefixSelect0[] =
4837 "^extern[ \t]+double[ \t]+__const__[ \t]";
4839 #define NEXT_MATH_PREFIX_TEST_CT 1
4840 static tTestDesc aNext_Math_PrefixTests[] = {
4841 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4844 * Fix Command Arguments for Next_Math_Prefix
4846 static const char* apzNext_Math_PrefixPatch[] = {
4848 "extern double %1(",
4849 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4854 * Description of Next_Template fix
4856 tSCC zNext_TemplateName[] =
4860 * File name selection pattern
4862 tSCC zNext_TemplateList[] =
4865 * Machine/OS name selection pattern
4867 #define apzNext_TemplateMachs (const char**)NULL
4870 * content selection pattern - do fix if pattern found
4872 tSCC zNext_TemplateSelect0[] =
4875 #define NEXT_TEMPLATE_TEST_CT 1
4876 static tTestDesc aNext_TemplateTests[] = {
4877 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4880 * Fix Command Arguments for Next_Template
4882 static const char* apzNext_TemplatePatch[] = {
4885 "\\(([^)]*)[ \t]template\\)",
4888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4890 * Description of Next_Volitile fix
4892 tSCC zNext_VolitileName[] =
4896 * File name selection pattern
4898 tSCC zNext_VolitileList[] =
4901 * Machine/OS name selection pattern
4903 #define apzNext_VolitileMachs (const char**)NULL
4906 * content selection pattern - do fix if pattern found
4908 tSCC zNext_VolitileSelect0[] =
4909 "^extern[ \t]+volatile[ \t]+void[ \t]";
4911 #define NEXT_VOLITILE_TEST_CT 1
4912 static tTestDesc aNext_VolitileTests[] = {
4913 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4916 * Fix Command Arguments for Next_Volitile
4918 static const char* apzNext_VolitilePatch[] = {
4921 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4924 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4926 * Description of Next_Wait_Union fix
4928 tSCC zNext_Wait_UnionName[] =
4932 * File name selection pattern
4934 tSCC zNext_Wait_UnionList[] =
4937 * Machine/OS name selection pattern
4939 #define apzNext_Wait_UnionMachs (const char**)NULL
4942 * content selection pattern - do fix if pattern found
4944 tSCC zNext_Wait_UnionSelect0[] =
4945 "wait\\(union wait";
4947 #define NEXT_WAIT_UNION_TEST_CT 1
4948 static tTestDesc aNext_Wait_UnionTests[] = {
4949 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4952 * Fix Command Arguments for Next_Wait_Union
4954 static const char* apzNext_Wait_UnionPatch[] = {
4959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4961 * Description of Nodeent_Syntax fix
4963 tSCC zNodeent_SyntaxName[] =
4967 * File name selection pattern
4969 tSCC zNodeent_SyntaxList[] =
4970 "netdnet/dnetdb.h\0";
4972 * Machine/OS name selection pattern
4974 #define apzNodeent_SyntaxMachs (const char**)NULL
4977 * content selection pattern - do fix if pattern found
4979 tSCC zNodeent_SyntaxSelect0[] =
4980 "char[ \t]*\\*na_addr[ \t]*$";
4982 #define NODEENT_SYNTAX_TEST_CT 1
4983 static tTestDesc aNodeent_SyntaxTests[] = {
4984 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4987 * Fix Command Arguments for Nodeent_Syntax
4989 static const char* apzNodeent_SyntaxPatch[] = {
4994 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4996 * Description of Obstack_Lvalue_Cast fix
4998 tSCC zObstack_Lvalue_CastName[] =
4999 "obstack_lvalue_cast";
5002 * File name selection pattern
5004 tSCC zObstack_Lvalue_CastList[] =
5007 * Machine/OS name selection pattern
5009 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5012 * content selection pattern - do fix if pattern found
5014 tSCC zObstack_Lvalue_CastSelect0[] =
5015 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5017 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5018 static tTestDesc aObstack_Lvalue_CastTests[] = {
5019 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5022 * Fix Command Arguments for Obstack_Lvalue_Cast
5024 static const char* apzObstack_Lvalue_CastPatch[] = {
5026 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5031 * Description of Osf_Namespace_A fix
5033 tSCC zOsf_Namespace_AName[] =
5037 * File name selection pattern
5039 tSCC zOsf_Namespace_AList[] =
5040 "reg_types.h\0sys/lc_core.h\0";
5042 * Machine/OS name selection pattern
5044 #define apzOsf_Namespace_AMachs (const char**)NULL
5047 * perform the 'test' shell command - do fix on success
5049 tSCC zOsf_Namespace_ATest0[] =
5051 tSCC zOsf_Namespace_ATest1[] =
5052 " -r sys/lc_core.h";
5053 tSCC zOsf_Namespace_ATest2[] =
5054 " -n \"`grep '} regex_t;' reg_types.h`\"";
5055 tSCC zOsf_Namespace_ATest3[] =
5056 " -z \"`grep __regex_t regex.h`\"";
5058 #define OSF_NAMESPACE_A_TEST_CT 4
5059 static tTestDesc aOsf_Namespace_ATests[] = {
5060 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5061 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5062 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5063 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5066 * Fix Command Arguments for Osf_Namespace_A
5068 static const char* apzOsf_Namespace_APatch[] = {
5071 "reg(ex|off|match)_t",
5074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5076 * Description of Osf_Namespace_C fix
5078 tSCC zOsf_Namespace_CName[] =
5082 * File name selection pattern
5084 tSCC zOsf_Namespace_CList[] =
5087 * Machine/OS name selection pattern
5089 #define apzOsf_Namespace_CMachs (const char**)NULL
5092 * content selection pattern - do fix if pattern found
5094 tSCC zOsf_Namespace_CSelect0[] =
5095 "#include <reg_types.h>.*";
5098 * perform the 'test' shell command - do fix on success
5100 tSCC zOsf_Namespace_CTest0[] =
5102 tSCC zOsf_Namespace_CTest1[] =
5103 " -r sys/lc_core.h";
5104 tSCC zOsf_Namespace_CTest2[] =
5105 " -n \"`grep '} regex_t;' reg_types.h`\"";
5106 tSCC zOsf_Namespace_CTest3[] =
5107 " -z \"`grep __regex_t regex.h`\"";
5109 #define OSF_NAMESPACE_C_TEST_CT 5
5110 static tTestDesc aOsf_Namespace_CTests[] = {
5111 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5112 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5113 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5114 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5115 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5118 * Fix Command Arguments for Osf_Namespace_C
5120 static const char* apzOsf_Namespace_CPatch[] = {
5123 typedef __regex_t\tregex_t;\n\
5124 typedef __regoff_t\tregoff_t;\n\
5125 typedef __regmatch_t\tregmatch_t;",
5128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5130 * Description of Pthread_Page_Size fix
5132 tSCC zPthread_Page_SizeName[] =
5133 "pthread_page_size";
5136 * File name selection pattern
5138 tSCC zPthread_Page_SizeList[] =
5141 * Machine/OS name selection pattern
5143 #define apzPthread_Page_SizeMachs (const char**)NULL
5146 * content selection pattern - do fix if pattern found
5148 tSCC zPthread_Page_SizeSelect0[] =
5151 #define PTHREAD_PAGE_SIZE_TEST_CT 1
5152 static tTestDesc aPthread_Page_SizeTests[] = {
5153 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
5156 * Fix Command Arguments for Pthread_Page_Size
5158 static const char* apzPthread_Page_SizePatch[] = {
5163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5165 * Description of Pthread_Incomplete_Struct_Argument fix
5167 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5168 "pthread_incomplete_struct_argument";
5171 * File name selection pattern
5173 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5176 * Machine/OS name selection pattern
5178 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5181 * content selection pattern - do fix if pattern found
5183 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5184 "struct __jmp_buf_tag";
5186 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5187 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5188 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5191 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5193 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5196 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5201 * Description of Read_Ret_Type fix
5203 tSCC zRead_Ret_TypeName[] =
5207 * File name selection pattern
5209 tSCC zRead_Ret_TypeList[] =
5212 * Machine/OS name selection pattern
5214 #define apzRead_Ret_TypeMachs (const char**)NULL
5217 * content selection pattern - do fix if pattern found
5219 tSCC zRead_Ret_TypeSelect0[] =
5220 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5222 #define READ_RET_TYPE_TEST_CT 1
5223 static tTestDesc aRead_Ret_TypeTests[] = {
5224 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5227 * Fix Command Arguments for Read_Ret_Type
5229 static const char* apzRead_Ret_TypePatch[] = {
5231 "extern unsigned int fread(), fwrite();\n\
5233 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5236 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5238 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5240 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5241 "rpc_xdr_lvalue_cast_a";
5244 * File name selection pattern
5246 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5249 * Machine/OS name selection pattern
5251 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5254 * content selection pattern - do fix if pattern found
5256 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5257 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5260 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5261 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5262 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5265 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5267 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5269 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5274 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5276 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5277 "rpc_xdr_lvalue_cast_b";
5280 * File name selection pattern
5282 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5285 * Machine/OS name selection pattern
5287 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5290 * content selection pattern - do fix if pattern found
5292 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5293 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5296 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5297 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5298 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5301 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5303 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5305 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5310 * Description of Rs6000_Double fix
5312 tSCC zRs6000_DoubleName[] =
5316 * File name selection pattern
5318 tSCC zRs6000_DoubleList[] =
5321 * Machine/OS name selection pattern
5323 #define apzRs6000_DoubleMachs (const char**)NULL
5326 * content selection pattern - do fix if pattern found
5328 tSCC zRs6000_DoubleSelect0[] =
5329 "[^a-zA-Z_]class\\(";
5331 #define RS6000_DOUBLE_TEST_CT 1
5332 static tTestDesc aRs6000_DoubleTests[] = {
5333 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5336 * Fix Command Arguments for Rs6000_Double
5338 static const char* apzRs6000_DoublePatch[] = {
5340 "#ifndef __cplusplus\n\
5343 "^.*[^a-zA-Z_]class\\(.*",
5346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5348 * Description of Rs6000_Fchmod fix
5350 tSCC zRs6000_FchmodName[] =
5354 * File name selection pattern
5356 tSCC zRs6000_FchmodList[] =
5359 * Machine/OS name selection pattern
5361 #define apzRs6000_FchmodMachs (const char**)NULL
5364 * content selection pattern - do fix if pattern found
5366 tSCC zRs6000_FchmodSelect0[] =
5367 "fchmod\\(char \\*";
5369 #define RS6000_FCHMOD_TEST_CT 1
5370 static tTestDesc aRs6000_FchmodTests[] = {
5371 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5374 * Fix Command Arguments for Rs6000_Fchmod
5376 static const char* apzRs6000_FchmodPatch[] = {
5381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5383 * Description of Rs6000_Param fix
5385 tSCC zRs6000_ParamName[] =
5389 * File name selection pattern
5391 tSCC zRs6000_ParamList[] =
5392 "stdio.h\0unistd.h\0";
5394 * Machine/OS name selection pattern
5396 #define apzRs6000_ParamMachs (const char**)NULL
5399 * content selection pattern - do fix if pattern found
5401 tSCC zRs6000_ParamSelect0[] =
5402 "rename\\(const char \\*old, const char \\*new\\)";
5404 #define RS6000_PARAM_TEST_CT 1
5405 static tTestDesc aRs6000_ParamTests[] = {
5406 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5409 * Fix Command Arguments for Rs6000_Param
5411 static const char* apzRs6000_ParamPatch[] = {
5413 "rename(const char *_old, const char *_new)",
5416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5418 * Description of Sco_Math fix
5420 tSCC zSco_MathName[] =
5424 * File name selection pattern
5426 tSCC zSco_MathList[] =
5427 "math.h\0*/math.h\0";
5429 * Machine/OS name selection pattern
5431 #define apzSco_MathMachs (const char**)NULL
5434 * content selection pattern - do fix if pattern found
5436 tSCC zSco_MathSelect0[] =
5437 "inline double abs";
5440 * content bypass pattern - skip fix if pattern found
5442 tSCC zSco_MathBypass0[] =
5445 #define SCO_MATH_TEST_CT 2
5446 static tTestDesc aSco_MathTests[] = {
5447 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5448 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5451 * Fix Command Arguments for Sco_Math
5453 static const char* apzSco_MathPatch[] = { "sed",
5454 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5455 #ifndef __GNUC__\n",
5456 "-e", "/.*__builtin_generic/a\\\n\
5458 #define __fp_class(a) \\\\\\\n\
5459 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5460 __fpclassifyl(a), \\\\\\\n\
5461 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5462 __fpclassifyf(a),__fpclassify(a)))\\\n\
5464 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5465 #ifndef __GNUC__\n",
5466 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5467 #endif /* ! __GNUC__ */",
5470 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5472 * Description of Sco_Regset fix
5474 tSCC zSco_RegsetName[] =
5478 * File name selection pattern
5480 tSCC zSco_RegsetList[] =
5483 * Machine/OS name selection pattern
5485 tSCC* apzSco_RegsetMachs[] = {
5487 (const char*)NULL };
5490 * content selection pattern - do fix if pattern found
5492 tSCC zSco_RegsetSelect0[] =
5493 "(struct[ \t]+.*)fpstate";
5495 #define SCO_REGSET_TEST_CT 1
5496 static tTestDesc aSco_RegsetTests[] = {
5497 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
5500 * Fix Command Arguments for Sco_Regset
5502 static const char* apzSco_RegsetPatch[] = {
5507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5509 * Description of Sco_Static_Func fix
5511 tSCC zSco_Static_FuncName[] =
5515 * File name selection pattern
5517 tSCC zSco_Static_FuncList[] =
5520 * Machine/OS name selection pattern
5522 tSCC* apzSco_Static_FuncMachs[] = {
5524 (const char*)NULL };
5527 * content selection pattern - do fix if pattern found
5529 tSCC zSco_Static_FuncSelect0[] =
5532 #define SCO_STATIC_FUNC_TEST_CT 1
5533 static tTestDesc aSco_Static_FuncTests[] = {
5534 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5537 * Fix Command Arguments for Sco_Static_Func
5539 static const char* apzSco_Static_FuncPatch[] = { "sed",
5540 "-e", "/^static int/i\\\n\
5541 #if __cplusplus\\\n\
5543 #endif /* __cplusplus */",
5545 #if __cplusplus\\\n\
5547 #endif /* __cplusplus */",
5550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5552 * Description of Sco_Utime fix
5554 tSCC zSco_UtimeName[] =
5558 * File name selection pattern
5560 tSCC zSco_UtimeList[] =
5563 * Machine/OS name selection pattern
5565 tSCC* apzSco_UtimeMachs[] = {
5567 (const char*)NULL };
5570 * content selection pattern - do fix if pattern found
5572 tSCC zSco_UtimeSelect0[] =
5573 "\\(const char \\*, struct utimbuf \\*\\);";
5575 #define SCO_UTIME_TEST_CT 1
5576 static tTestDesc aSco_UtimeTests[] = {
5577 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5580 * Fix Command Arguments for Sco_Utime
5582 static const char* apzSco_UtimePatch[] = {
5584 "(const char *, const struct utimbuf *);",
5587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5589 * Description of Solaris_Math_1 fix
5591 tSCC zSolaris_Math_1Name[] =
5595 * File name selection pattern
5597 tSCC zSolaris_Math_1List[] =
5600 * Machine/OS name selection pattern
5602 #define apzSolaris_Math_1Machs (const char**)NULL
5605 * content selection pattern - do fix if pattern found
5607 tSCC zSolaris_Math_1Select0[] =
5608 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5611 * content bypass pattern - skip fix if pattern found
5613 tSCC zSolaris_Math_1Bypass0[] =
5616 #define SOLARIS_MATH_1_TEST_CT 2
5617 static tTestDesc aSolaris_Math_1Tests[] = {
5618 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5619 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5622 * Fix Command Arguments for Solaris_Math_1
5624 static const char* apzSolaris_Math_1Patch[] = {
5626 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5627 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5632 * Description of Solaris_Math_2 fix
5634 tSCC zSolaris_Math_2Name[] =
5638 * File name selection pattern
5640 tSCC zSolaris_Math_2List[] =
5643 * Machine/OS name selection pattern
5645 #define apzSolaris_Math_2Machs (const char**)NULL
5648 * content selection pattern - do fix if pattern found
5650 tSCC zSolaris_Math_2Select0[] =
5651 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5654 * content bypass pattern - skip fix if pattern found
5656 tSCC zSolaris_Math_2Bypass0[] =
5659 #define SOLARIS_MATH_2_TEST_CT 2
5660 static tTestDesc aSolaris_Math_2Tests[] = {
5661 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5662 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5665 * Fix Command Arguments for Solaris_Math_2
5667 static const char* apzSolaris_Math_2Patch[] = {
5669 "#define\tINFINITY\t(__builtin_inff())",
5670 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5673 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5675 * Description of Solaris_Math_3 fix
5677 tSCC zSolaris_Math_3Name[] =
5681 * File name selection pattern
5683 tSCC zSolaris_Math_3List[] =
5686 * Machine/OS name selection pattern
5688 #define apzSolaris_Math_3Machs (const char**)NULL
5691 * content selection pattern - do fix if pattern found
5693 tSCC zSolaris_Math_3Select0[] =
5694 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5697 * content bypass pattern - skip fix if pattern found
5699 tSCC zSolaris_Math_3Bypass0[] =
5702 #define SOLARIS_MATH_3_TEST_CT 2
5703 static tTestDesc aSolaris_Math_3Tests[] = {
5704 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5705 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5708 * Fix Command Arguments for Solaris_Math_3
5710 static const char* apzSolaris_Math_3Patch[] = {
5712 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5713 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5718 * Description of Solaris_Math_4 fix
5720 tSCC zSolaris_Math_4Name[] =
5724 * File name selection pattern
5726 tSCC zSolaris_Math_4List[] =
5729 * Machine/OS name selection pattern
5731 #define apzSolaris_Math_4Machs (const char**)NULL
5734 * content selection pattern - do fix if pattern found
5736 tSCC zSolaris_Math_4Select0[] =
5737 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5740 * content bypass pattern - skip fix if pattern found
5742 tSCC zSolaris_Math_4Bypass0[] =
5745 #define SOLARIS_MATH_4_TEST_CT 2
5746 static tTestDesc aSolaris_Math_4Tests[] = {
5747 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5748 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5751 * Fix Command Arguments for Solaris_Math_4
5753 static const char* apzSolaris_Math_4Patch[] = {
5755 "#define\tfpclassify(x) \\\n\
5756 __extension__ ({ const __typeof(x) __x_fp = (x); \\\n\
5757 \t\t isnan(__x_fp) \\\n\
5759 \t\t : isinf(__x_fp) \\\n\
5760 \t\t ? FP_INFINITE \\\n\
5761 \t\t : isnormal(__x_fp) \\\n\
5762 \t\t\t ? FP_NORMAL \\\n\
5763 \t\t\t : __x_fp == 0.0 \\\n\
5764 \t\t\t ? FP_ZERO \\\n\
5765 \t\t\t : FP_SUBNORMAL; })",
5766 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5771 * Description of Solaris_Math_8 fix
5773 tSCC zSolaris_Math_8Name[] =
5777 * File name selection pattern
5779 tSCC zSolaris_Math_8List[] =
5782 * Machine/OS name selection pattern
5784 #define apzSolaris_Math_8Machs (const char**)NULL
5787 * content selection pattern - do fix if pattern found
5789 tSCC zSolaris_Math_8Select0[] =
5790 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5793 * content bypass pattern - skip fix if pattern found
5795 tSCC zSolaris_Math_8Bypass0[] =
5798 #define SOLARIS_MATH_8_TEST_CT 2
5799 static tTestDesc aSolaris_Math_8Tests[] = {
5800 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5801 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5804 * Fix Command Arguments for Solaris_Math_8
5806 static const char* apzSolaris_Math_8Patch[] = {
5808 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5809 \t\t\t ? __builtin_signbitf(x) \\\n\
5810 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5811 \t\t\t ? __builtin_signbitl(x) \\\n\
5812 \t\t\t : __builtin_signbit(x))",
5813 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5818 * Description of Solaris_Math_9 fix
5820 tSCC zSolaris_Math_9Name[] =
5824 * File name selection pattern
5826 tSCC zSolaris_Math_9List[] =
5829 * Machine/OS name selection pattern
5831 #define apzSolaris_Math_9Machs (const char**)NULL
5834 * content selection pattern - do fix if pattern found
5836 tSCC zSolaris_Math_9Select0[] =
5837 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5840 * content bypass pattern - skip fix if pattern found
5842 tSCC zSolaris_Math_9Bypass0[] =
5845 #define SOLARIS_MATH_9_TEST_CT 2
5846 static tTestDesc aSolaris_Math_9Tests[] = {
5847 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5848 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5851 * Fix Command Arguments for Solaris_Math_9
5853 static const char* apzSolaris_Math_9Patch[] = {
5855 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5856 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5861 * Description of Solaris_Mutex_Init_1 fix
5863 tSCC zSolaris_Mutex_Init_1Name[] =
5864 "solaris_mutex_init_1";
5867 * File name selection pattern
5869 tSCC zSolaris_Mutex_Init_1List[] =
5872 * Machine/OS name selection pattern
5874 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5877 * content selection pattern - do fix if pattern found
5879 tSCC zSolaris_Mutex_Init_1Select0[] =
5880 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5882 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
5883 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5884 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5887 * Fix Command Arguments for Solaris_Mutex_Init_1
5889 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5890 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5891 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5896 * Description of Solaris_Mutex_Init_2 fix
5898 tSCC zSolaris_Mutex_Init_2Name[] =
5899 "solaris_mutex_init_2";
5902 * File name selection pattern
5904 tSCC zSolaris_Mutex_Init_2List[] =
5907 * Machine/OS name selection pattern
5909 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5910 "*-*-solaris2.[0-9]",
5911 "*-*-solaris2.[0-9][!0-9]*",
5912 (const char*)NULL };
5915 * content selection pattern - do fix if pattern found
5917 tSCC zSolaris_Mutex_Init_2Select0[] =
5918 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5920 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5921 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5922 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5925 * Fix Command Arguments for Solaris_Mutex_Init_2
5927 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5929 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5934 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5935 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5938 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5940 * Description of Solaris_Rwlock_Init_1 fix
5942 tSCC zSolaris_Rwlock_Init_1Name[] =
5943 "solaris_rwlock_init_1";
5946 * File name selection pattern
5948 tSCC zSolaris_Rwlock_Init_1List[] =
5951 * Machine/OS name selection pattern
5953 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5955 (const char*)NULL };
5958 * content selection pattern - do fix if pattern found
5960 tSCC zSolaris_Rwlock_Init_1Select0[] =
5961 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5963 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5964 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5965 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5968 * Fix Command Arguments for Solaris_Rwlock_Init_1
5970 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5972 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5975 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5977 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5980 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5982 * Description of Solaris_Once_Init_1 fix
5984 tSCC zSolaris_Once_Init_1Name[] =
5985 "solaris_once_init_1";
5988 * File name selection pattern
5990 tSCC zSolaris_Once_Init_1List[] =
5993 * Machine/OS name selection pattern
5995 tSCC* apzSolaris_Once_Init_1Machs[] = {
5997 (const char*)NULL };
6000 * content selection pattern - do fix if pattern found
6002 tSCC zSolaris_Once_Init_1Select0[] =
6003 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6005 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6006 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6007 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6010 * Fix Command Arguments for Solaris_Once_Init_1
6012 static const char* apzSolaris_Once_Init_1Patch[] = {
6015 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6020 * Description of Solaris_Once_Init_2 fix
6022 tSCC zSolaris_Once_Init_2Name[] =
6023 "solaris_once_init_2";
6026 * File name selection pattern
6028 tSCC zSolaris_Once_Init_2List[] =
6031 * Machine/OS name selection pattern
6033 tSCC* apzSolaris_Once_Init_2Machs[] = {
6034 "*-*-solaris2.[0-9]",
6035 "*-*-solaris2.[0-9][!0-9]*",
6036 (const char*)NULL };
6039 * content selection pattern - do fix if pattern found
6041 tSCC zSolaris_Once_Init_2Select0[] =
6042 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6044 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6045 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6046 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6049 * Fix Command Arguments for Solaris_Once_Init_2
6051 static const char* apzSolaris_Once_Init_2Patch[] = {
6053 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6056 %1{0}, {0}, {0}, {%3}%4\n\
6058 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6063 * Description of Solaris_Socket fix
6065 tSCC zSolaris_SocketName[] =
6069 * File name selection pattern
6071 tSCC zSolaris_SocketList[] =
6074 * Machine/OS name selection pattern
6076 #define apzSolaris_SocketMachs (const char**)NULL
6079 * content selection pattern - do fix if pattern found
6081 tSCC zSolaris_SocketSelect0[] =
6082 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
6084 #define SOLARIS_SOCKET_TEST_CT 1
6085 static tTestDesc aSolaris_SocketTests[] = {
6086 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
6089 * Fix Command Arguments for Solaris_Socket
6091 static const char* apzSolaris_SocketPatch[] = {
6093 "extern int %1(int, %2void *, int, int);",
6094 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
6097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6099 * Description of Solaris_Stdio_Tag fix
6101 tSCC zSolaris_Stdio_TagName[] =
6102 "solaris_stdio_tag";
6105 * File name selection pattern
6107 tSCC zSolaris_Stdio_TagList[] =
6110 * Machine/OS name selection pattern
6112 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6115 * content selection pattern - do fix if pattern found
6117 tSCC zSolaris_Stdio_TagSelect0[] =
6118 "__cplusplus < 54321L";
6121 * content bypass pattern - skip fix if pattern found
6123 tSCC zSolaris_Stdio_TagBypass0[] =
6126 #define SOLARIS_STDIO_TAG_TEST_CT 2
6127 static tTestDesc aSolaris_Stdio_TagTests[] = {
6128 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6129 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6132 * Fix Command Arguments for Solaris_Stdio_Tag
6134 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6135 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6138 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6140 * Description of Solaris_Unistd fix
6142 tSCC zSolaris_UnistdName[] =
6146 * File name selection pattern
6148 tSCC zSolaris_UnistdList[] =
6151 * Machine/OS name selection pattern
6153 #define apzSolaris_UnistdMachs (const char**)NULL
6156 * content selection pattern - do fix if pattern found
6158 tSCC zSolaris_UnistdSelect0[] =
6159 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6162 * content bypass pattern - skip fix if pattern found
6164 tSCC zSolaris_UnistdBypass0[] =
6167 #define SOLARIS_UNISTD_TEST_CT 2
6168 static tTestDesc aSolaris_UnistdTests[] = {
6169 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
6170 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6173 * Fix Command Arguments for Solaris_Unistd
6175 static const char* apzSolaris_UnistdPatch[] = {
6177 "extern int getpagesize();\n\
6179 "^extern (pid_t|int) getpgid\\(.*\\);",
6182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6184 * Description of Solaris_Widec fix
6186 tSCC zSolaris_WidecName[] =
6190 * File name selection pattern
6192 tSCC zSolaris_WidecList[] =
6195 * Machine/OS name selection pattern
6197 tSCC* apzSolaris_WidecMachs[] = {
6198 "*-*-solaris2.[0-5]",
6199 "*-*-solaris2.[0-5].*",
6200 (const char*)NULL };
6203 * content selection pattern - do fix if pattern found
6205 tSCC zSolaris_WidecSelect0[] =
6209 * content bypass pattern - skip fix if pattern found
6211 tSCC zSolaris_WidecBypass0[] =
6212 "include.*wchar\\.h";
6214 #define SOLARIS_WIDEC_TEST_CT 2
6215 static tTestDesc aSolaris_WidecTests[] = {
6216 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
6217 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
6220 * Fix Command Arguments for Solaris_Widec
6222 static const char* apzSolaris_WidecPatch[] = {
6225 #include <wchar.h>",
6228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6230 * Description of Statsswtch fix
6232 tSCC zStatsswtchName[] =
6236 * File name selection pattern
6238 tSCC zStatsswtchList[] =
6241 * Machine/OS name selection pattern
6243 #define apzStatsswtchMachs (const char**)NULL
6246 * content selection pattern - do fix if pattern found
6248 tSCC zStatsswtchSelect0[] =
6251 #define STATSSWTCH_TEST_CT 1
6252 static tTestDesc aStatsswtchTests[] = {
6253 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6256 * Fix Command Arguments for Statsswtch
6258 static const char* apzStatsswtchPatch[] = {
6263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6265 * Description of Stdio_Stdarg_H fix
6267 tSCC zStdio_Stdarg_HName[] =
6271 * File name selection pattern
6273 tSCC zStdio_Stdarg_HList[] =
6276 * Machine/OS name selection pattern
6278 tSCC* apzStdio_Stdarg_HMachs[] = {
6279 "*-*-solaris2.1[0-9]*",
6280 (const char*)NULL };
6283 * content bypass pattern - skip fix if pattern found
6285 tSCC zStdio_Stdarg_HBypass0[] =
6286 "include.*(stdarg.h|machine/ansi.h)";
6288 #define STDIO_STDARG_H_TEST_CT 1
6289 static tTestDesc aStdio_Stdarg_HTests[] = {
6290 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6293 * Fix Command Arguments for Stdio_Stdarg_H
6295 static const char* apzStdio_Stdarg_HPatch[] = {
6297 "#define __need___va_list\n\
6298 #include <stdarg.h>\n",
6301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6303 * Description of Stdio_Va_List fix
6305 tSCC zStdio_Va_ListName[] =
6309 * File name selection pattern
6311 tSCC zStdio_Va_ListList[] =
6312 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6314 * Machine/OS name selection pattern
6316 tSCC* apzStdio_Va_ListMachs[] = {
6317 "*-*-solaris2.1[0-9]*",
6318 (const char*)NULL };
6321 * content bypass pattern - skip fix if pattern found
6323 tSCC zStdio_Va_ListBypass0[] =
6324 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6326 #define STDIO_VA_LIST_TEST_CT 1
6327 static tTestDesc aStdio_Va_ListTests[] = {
6328 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6331 * Fix Command Arguments for Stdio_Va_List
6333 static const char* apzStdio_Va_ListPatch[] = { "sed",
6334 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6335 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6336 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6337 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6338 s@ va_list@ __not_va_list__@\n\
6339 s@\\*va_list@*__not_va_list__@\n\
6340 s@ __va_list)@ __gnuc_va_list)@\n\
6341 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6342 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6343 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6344 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6345 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6346 s@VA_LIST@DUMMY_VA_LIST@\n\
6347 s@_Va_LIST@_VA_LIST@",
6350 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6352 * Description of Stdio_Va_List_Clients fix
6354 tSCC zStdio_Va_List_ClientsName[] =
6355 "stdio_va_list_clients";
6358 * File name selection pattern
6360 tSCC zStdio_Va_List_ClientsList[] =
6361 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6363 * Machine/OS name selection pattern
6365 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6368 * content bypass pattern - skip fix if pattern found
6370 tSCC zStdio_Va_List_ClientsBypass0[] =
6371 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6372 tSCC zStdio_Va_List_ClientsBypass1[] =
6373 "include <stdarg\\.h>|#ifdef va_start";
6375 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6376 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6377 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6378 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6381 * Fix Command Arguments for Stdio_Va_List_Clients
6383 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6384 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6385 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6386 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6387 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6388 s@ va_list@ __not_va_list__@\n\
6389 s@\\*va_list@*__not_va_list__@\n\
6390 s@ __va_list)@ __gnuc_va_list)@\n\
6391 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6392 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6393 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6394 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6395 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6396 s@VA_LIST@DUMMY_VA_LIST@\n\
6397 s@_Va_LIST@_VA_LIST@",
6400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6402 * Description of Strict_Ansi_Not fix
6404 tSCC zStrict_Ansi_NotName[] =
6408 * File name selection pattern
6410 #define zStrict_Ansi_NotList (char*)NULL
6412 * Machine/OS name selection pattern
6414 #define apzStrict_Ansi_NotMachs (const char**)NULL
6417 * content selection pattern - do fix if pattern found
6419 tSCC zStrict_Ansi_NotSelect0[] =
6420 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6423 * content bypass pattern - skip fix if pattern found
6425 tSCC zStrict_Ansi_NotBypass0[] =
6426 "GNU and MIPS C compilers define __STDC__ differently";
6427 tSCC zStrict_Ansi_NotBypass1[] =
6428 "__SCO_VERSION__.*__STDC__ != 1";
6431 * perform the C function call test
6433 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6435 #define STRICT_ANSI_NOT_TEST_CT 4
6436 static tTestDesc aStrict_Ansi_NotTests[] = {
6437 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6438 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6439 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6440 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6443 * Fix Command Arguments for Strict_Ansi_Not
6445 static const char* apzStrict_Ansi_NotPatch[] = {
6447 "%1 !defined(__STRICT_ANSI__)",
6450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6452 * Description of Strict_Ansi_Not_Ctd fix
6454 tSCC zStrict_Ansi_Not_CtdName[] =
6455 "strict_ansi_not_ctd";
6458 * File name selection pattern
6460 tSCC zStrict_Ansi_Not_CtdList[] =
6461 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6463 * Machine/OS name selection pattern
6465 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6468 * content selection pattern - do fix if pattern found
6470 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6471 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6474 * perform the C function call test
6476 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6478 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6479 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6480 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6481 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6484 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6486 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6488 "%1 !defined(__STRICT_ANSI__)",
6491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6493 * Description of Strict_Ansi_Only fix
6495 tSCC zStrict_Ansi_OnlyName[] =
6499 * File name selection pattern
6501 #define zStrict_Ansi_OnlyList (char*)NULL
6503 * Machine/OS name selection pattern
6505 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6508 * content selection pattern - do fix if pattern found
6510 tSCC zStrict_Ansi_OnlySelect0[] =
6511 "^([ \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)";
6514 * perform the C function call test
6516 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6518 #define STRICT_ANSI_ONLY_TEST_CT 2
6519 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6520 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6521 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6524 * Fix Command Arguments for Strict_Ansi_Only
6526 static const char* apzStrict_Ansi_OnlyPatch[] = {
6528 "%1 defined(__STRICT_ANSI__)",
6531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6533 * Description of Struct_File fix
6535 tSCC zStruct_FileName[] =
6539 * File name selection pattern
6541 tSCC zStruct_FileList[] =
6544 * Machine/OS name selection pattern
6546 #define apzStruct_FileMachs (const char**)NULL
6549 * content selection pattern - do fix if pattern found
6551 tSCC zStruct_FileSelect0[] =
6552 "^.*xdrstdio_create.*struct __file_s";
6554 #define STRUCT_FILE_TEST_CT 1
6555 static tTestDesc aStruct_FileTests[] = {
6556 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6559 * Fix Command Arguments for Struct_File
6561 static const char* apzStruct_FilePatch[] = {
6563 "struct __file_s;\n\
6567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6569 * Description of Struct_Sockaddr fix
6571 tSCC zStruct_SockaddrName[] =
6575 * File name selection pattern
6577 tSCC zStruct_SockaddrList[] =
6580 * Machine/OS name selection pattern
6582 #define apzStruct_SockaddrMachs (const char**)NULL
6585 * content selection pattern - do fix if pattern found
6587 tSCC zStruct_SockaddrSelect0[] =
6588 "^.*authdes_create.*struct sockaddr[^_]";
6591 * content bypass pattern - skip fix if pattern found
6593 tSCC zStruct_SockaddrBypass0[] =
6595 tSCC zStruct_SockaddrBypass1[] =
6596 "struct sockaddr;\n";
6598 #define STRUCT_SOCKADDR_TEST_CT 3
6599 static tTestDesc aStruct_SockaddrTests[] = {
6600 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6601 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6602 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6605 * Fix Command Arguments for Struct_Sockaddr
6607 static const char* apzStruct_SockaddrPatch[] = {
6609 "struct sockaddr;\n\
6613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6615 * Description of Sun_Auth_Proto fix
6617 tSCC zSun_Auth_ProtoName[] =
6621 * File name selection pattern
6623 tSCC zSun_Auth_ProtoList[] =
6624 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6626 * Machine/OS name selection pattern
6628 #define apzSun_Auth_ProtoMachs (const char**)NULL
6631 * content selection pattern - do fix if pattern found
6633 tSCC zSun_Auth_ProtoSelect0[] =
6634 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6637 * content bypass pattern - skip fix if pattern found
6639 tSCC zSun_Auth_ProtoBypass0[] =
6642 #define SUN_AUTH_PROTO_TEST_CT 2
6643 static tTestDesc aSun_Auth_ProtoTests[] = {
6644 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6645 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6648 * Fix Command Arguments for Sun_Auth_Proto
6650 static const char* apzSun_Auth_ProtoPatch[] = {
6652 "#ifdef __cplusplus\n\
6657 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6662 * Description of Sun_Bogus_Ifdef fix
6664 tSCC zSun_Bogus_IfdefName[] =
6668 * File name selection pattern
6670 tSCC zSun_Bogus_IfdefList[] =
6671 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6673 * Machine/OS name selection pattern
6675 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6678 * content selection pattern - do fix if pattern found
6680 tSCC zSun_Bogus_IfdefSelect0[] =
6681 "#ifdef(.*\\|\\|.*)";
6683 #define SUN_BOGUS_IFDEF_TEST_CT 1
6684 static tTestDesc aSun_Bogus_IfdefTests[] = {
6685 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6688 * Fix Command Arguments for Sun_Bogus_Ifdef
6690 static const char* apzSun_Bogus_IfdefPatch[] = {
6695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6697 * Description of Sun_Catmacro fix
6699 tSCC zSun_CatmacroName[] =
6703 * File name selection pattern
6705 tSCC zSun_CatmacroList[] =
6706 "pixrect/memvar.h\0";
6708 * Machine/OS name selection pattern
6710 #define apzSun_CatmacroMachs (const char**)NULL
6713 * content selection pattern - do fix if pattern found
6715 tSCC zSun_CatmacroSelect0[] =
6716 "^#define[ \t]+CAT\\(a,b\\).*";
6718 #define SUN_CATMACRO_TEST_CT 1
6719 static tTestDesc aSun_CatmacroTests[] = {
6720 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6723 * Fix Command Arguments for Sun_Catmacro
6725 static const char* apzSun_CatmacroPatch[] = {
6728 # define CAT(a,b) a##b\n\
6734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6736 * Description of Sun_Malloc fix
6738 tSCC zSun_MallocName[] =
6742 * File name selection pattern
6744 tSCC zSun_MallocList[] =
6747 * Machine/OS name selection pattern
6749 #define apzSun_MallocMachs (const char**)NULL
6752 * content bypass pattern - skip fix if pattern found
6754 tSCC zSun_MallocBypass0[] =
6755 "_CLASSIC_ANSI_TYPES";
6757 #define SUN_MALLOC_TEST_CT 1
6758 static tTestDesc aSun_MallocTests[] = {
6759 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6762 * Fix Command Arguments for Sun_Malloc
6764 static const char* apzSun_MallocPatch[] = { "sed",
6765 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6766 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6767 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6768 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6769 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6774 * Description of Sun_Rusers_Semi fix
6776 tSCC zSun_Rusers_SemiName[] =
6780 * File name selection pattern
6782 tSCC zSun_Rusers_SemiList[] =
6783 "rpcsvc/rusers.h\0";
6785 * Machine/OS name selection pattern
6787 #define apzSun_Rusers_SemiMachs (const char**)NULL
6790 * content selection pattern - do fix if pattern found
6792 tSCC zSun_Rusers_SemiSelect0[] =
6795 #define SUN_RUSERS_SEMI_TEST_CT 1
6796 static tTestDesc aSun_Rusers_SemiTests[] = {
6797 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6800 * Fix Command Arguments for Sun_Rusers_Semi
6802 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6803 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6808 * Description of Sun_Signal fix
6810 tSCC zSun_SignalName[] =
6814 * File name selection pattern
6816 tSCC zSun_SignalList[] =
6817 "sys/signal.h\0signal.h\0";
6819 * Machine/OS name selection pattern
6821 #define apzSun_SignalMachs (const char**)NULL
6824 * content selection pattern - do fix if pattern found
6826 tSCC zSun_SignalSelect0[] =
6827 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6829 #define SUN_SIGNAL_TEST_CT 1
6830 static tTestDesc aSun_SignalTests[] = {
6831 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6834 * Fix Command Arguments for Sun_Signal
6836 static const char* apzSun_SignalPatch[] = {
6838 "#ifdef __cplusplus\n\
6839 void\t(*signal(...))(...);\n\
6845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6847 * Description of Sunos_Strlen fix
6849 tSCC zSunos_StrlenName[] =
6853 * File name selection pattern
6855 tSCC zSunos_StrlenList[] =
6858 * Machine/OS name selection pattern
6860 #define apzSunos_StrlenMachs (const char**)NULL
6863 * content selection pattern - do fix if pattern found
6865 tSCC zSunos_StrlenSelect0[] =
6866 "int[ \t]*strlen\\(\\);(.*)";
6868 #define SUNOS_STRLEN_TEST_CT 1
6869 static tTestDesc aSunos_StrlenTests[] = {
6870 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6873 * Fix Command Arguments for Sunos_Strlen
6875 static const char* apzSunos_StrlenPatch[] = {
6877 "__SIZE_TYPE__ strlen();%1",
6880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6882 * Description of Svr4_Disable_Opt fix
6884 tSCC zSvr4_Disable_OptName[] =
6888 * File name selection pattern
6890 tSCC zSvr4_Disable_OptList[] =
6893 * Machine/OS name selection pattern
6895 #define apzSvr4_Disable_OptMachs (const char**)NULL
6898 * content selection pattern - do fix if pattern found
6900 tSCC zSvr4_Disable_OptSelect0[] =
6901 "#define.*__std_hdr_";
6903 #define SVR4_DISABLE_OPT_TEST_CT 1
6904 static tTestDesc aSvr4_Disable_OptTests[] = {
6905 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6908 * Fix Command Arguments for Svr4_Disable_Opt
6910 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6911 "-e", "/#define.*__std_hdr_/d",
6914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6916 * Description of Svr4_Getcwd fix
6918 tSCC zSvr4_GetcwdName[] =
6922 * File name selection pattern
6924 tSCC zSvr4_GetcwdList[] =
6925 "stdlib.h\0unistd.h\0prototypes.h\0";
6927 * Machine/OS name selection pattern
6929 #define apzSvr4_GetcwdMachs (const char**)NULL
6932 * content selection pattern - do fix if pattern found
6934 tSCC zSvr4_GetcwdSelect0[] =
6935 "getcwd\\(char \\*, int\\)";
6937 #define SVR4_GETCWD_TEST_CT 1
6938 static tTestDesc aSvr4_GetcwdTests[] = {
6939 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6942 * Fix Command Arguments for Svr4_Getcwd
6944 static const char* apzSvr4_GetcwdPatch[] = {
6946 "getcwd(char *, size_t)",
6949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6951 * Description of Svr4_Krnl fix
6953 tSCC zSvr4_KrnlName[] =
6957 * File name selection pattern
6959 tSCC zSvr4_KrnlList[] =
6960 "fs/rfs/rf_cache.h\0sys/erec.h\0sys/err.h\0sys/char.h\0sys/getpages.h\0sys/map.h\0sys/cmn_err.h\0sys/kdebugger.h\0";
6962 * Machine/OS name selection pattern
6964 tSCC* apzSvr4_KrnlMachs[] = {
6966 "i?86-sequent-ptx*",
6967 (const char*)NULL };
6970 * content bypass pattern - skip fix if pattern found
6972 tSCC zSvr4_KrnlBypass0[] =
6975 #define SVR4_KRNL_TEST_CT 1
6976 static tTestDesc aSvr4_KrnlTests[] = {
6977 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
6980 * Fix Command Arguments for Svr4_Krnl
6982 static const char* apzSvr4_KrnlPatch[] = {
6985 "#endif /* _KERNEL */\n",
6988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6990 * Description of Svr4_Profil fix
6992 tSCC zSvr4_ProfilName[] =
6996 * File name selection pattern
6998 tSCC zSvr4_ProfilList[] =
6999 "stdlib.h\0unistd.h\0";
7001 * Machine/OS name selection pattern
7003 #define apzSvr4_ProfilMachs (const char**)NULL
7006 * content selection pattern - do fix if pattern found
7008 tSCC zSvr4_ProfilSelect0[] =
7009 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7012 * content bypass pattern - skip fix if pattern found
7014 tSCC zSvr4_ProfilBypass0[] =
7017 #define SVR4_PROFIL_TEST_CT 2
7018 static tTestDesc aSvr4_ProfilTests[] = {
7019 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7020 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7023 * Fix Command Arguments for Svr4_Profil
7025 static const char* apzSvr4_ProfilPatch[] = {
7027 "profil(unsigned short *, size_t, int, unsigned int)",
7030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7032 * Description of Svr4_Sighandler_Type fix
7034 tSCC zSvr4_Sighandler_TypeName[] =
7035 "svr4_sighandler_type";
7038 * File name selection pattern
7040 tSCC zSvr4_Sighandler_TypeList[] =
7043 * Machine/OS name selection pattern
7045 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7048 * content selection pattern - do fix if pattern found
7050 tSCC zSvr4_Sighandler_TypeSelect0[] =
7051 "void *\\(\\*\\)\\(\\)";
7053 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7054 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7055 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7058 * Fix Command Arguments for Svr4_Sighandler_Type
7060 static const char* apzSvr4_Sighandler_TypePatch[] = {
7065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7067 * Description of Svr4_Undeclared_Getrnge fix
7069 tSCC zSvr4_Undeclared_GetrngeName[] =
7070 "svr4_undeclared_getrnge";
7073 * File name selection pattern
7075 tSCC zSvr4_Undeclared_GetrngeList[] =
7078 * Machine/OS name selection pattern
7080 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7083 * content selection pattern - do fix if pattern found
7085 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7089 * content bypass pattern - skip fix if pattern found
7091 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7092 "static void getrnge";
7094 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7095 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7096 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7097 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7100 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7102 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7105 static int getrnge ();",
7106 "^static int[ \t]+size;",
7109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7111 * Description of Sysv68_String fix
7113 tSCC zSysv68_StringName[] =
7117 * File name selection pattern
7119 tSCC zSysv68_StringList[] =
7120 "testing.h\0string.h\0";
7122 * Machine/OS name selection pattern
7124 #define apzSysv68_StringMachs (const char**)NULL
7127 * content bypass pattern - skip fix if pattern found
7129 tSCC zSysv68_StringBypass0[] =
7130 "_CLASSIC_ANSI_TYPES";
7132 #define SYSV68_STRING_TEST_CT 1
7133 static tTestDesc aSysv68_StringTests[] = {
7134 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7137 * Fix Command Arguments for Sysv68_String
7139 static const char* apzSysv68_StringPatch[] = { "sed",
7140 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7141 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7142 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7143 "-e", "/^extern char$/N",
7144 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7145 "-e", "/^extern int$/N",
7146 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7147 "-e", "/^\tstrncmp(),$/N",
7148 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7149 extern unsigned int\\\n\
7153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7155 * Description of Sysz_Stdlib_For_Sun fix
7157 tSCC zSysz_Stdlib_For_SunName[] =
7158 "sysz_stdlib_for_sun";
7161 * File name selection pattern
7163 tSCC zSysz_Stdlib_For_SunList[] =
7166 * Machine/OS name selection pattern
7168 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7171 * content selection pattern - do fix if pattern found
7173 tSCC zSysz_Stdlib_For_SunSelect0[] =
7174 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7177 * content bypass pattern - skip fix if pattern found
7179 tSCC zSysz_Stdlib_For_SunBypass0[] =
7180 "_CLASSIC_ANSI_TYPES";
7182 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7183 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7184 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7185 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7188 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7190 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7197 * Description of Thread_Keyword fix
7199 tSCC zThread_KeywordName[] =
7203 * File name selection pattern
7205 tSCC zThread_KeywordList[] =
7206 "pthread.h\0bits/sigthread.h\0";
7208 * Machine/OS name selection pattern
7210 #define apzThread_KeywordMachs (const char**)NULL
7213 * content selection pattern - do fix if pattern found
7215 tSCC zThread_KeywordSelect0[] =
7216 "([* ])__thread([,)])";
7218 #define THREAD_KEYWORD_TEST_CT 1
7219 static tTestDesc aThread_KeywordTests[] = {
7220 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7223 * Fix Command Arguments for Thread_Keyword
7225 static const char* apzThread_KeywordPatch[] = {
7230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7232 * Description of Tinfo_Cplusplus fix
7234 tSCC zTinfo_CplusplusName[] =
7238 * File name selection pattern
7240 tSCC zTinfo_CplusplusList[] =
7243 * Machine/OS name selection pattern
7245 #define apzTinfo_CplusplusMachs (const char**)NULL
7248 * content selection pattern - do fix if pattern found
7250 tSCC zTinfo_CplusplusSelect0[] =
7253 #define TINFO_CPLUSPLUS_TEST_CT 1
7254 static tTestDesc aTinfo_CplusplusTests[] = {
7255 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7258 * Fix Command Arguments for Tinfo_Cplusplus
7260 static const char* apzTinfo_CplusplusPatch[] = {
7265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7267 * Description of Ultrix_Atexit_Param fix
7269 tSCC zUltrix_Atexit_ParamName[] =
7270 "ultrix_atexit_param";
7273 * File name selection pattern
7275 tSCC zUltrix_Atexit_ParamList[] =
7278 * Machine/OS name selection pattern
7280 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7283 * content selection pattern - do fix if pattern found
7285 tSCC zUltrix_Atexit_ParamSelect0[] =
7286 "atexit\\(.*\\(\\)";
7288 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
7289 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7290 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7293 * Fix Command Arguments for Ultrix_Atexit_Param
7295 static const char* apzUltrix_Atexit_ParamPatch[] = {
7297 "atexit( void (*__func)( void )",
7300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7302 * Description of Ultrix_Atof_Param fix
7304 tSCC zUltrix_Atof_ParamName[] =
7305 "ultrix_atof_param";
7308 * File name selection pattern
7310 tSCC zUltrix_Atof_ParamList[] =
7313 * Machine/OS name selection pattern
7315 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7318 * content selection pattern - do fix if pattern found
7320 tSCC zUltrix_Atof_ParamSelect0[] =
7321 "atof\\([ \t]*char";
7323 #define ULTRIX_ATOF_PARAM_TEST_CT 1
7324 static tTestDesc aUltrix_Atof_ParamTests[] = {
7325 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7328 * Fix Command Arguments for Ultrix_Atof_Param
7330 static const char* apzUltrix_Atof_ParamPatch[] = {
7335 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7337 * Description of Ultrix_Const fix
7339 tSCC zUltrix_ConstName[] =
7343 * File name selection pattern
7345 tSCC zUltrix_ConstList[] =
7348 * Machine/OS name selection pattern
7350 #define apzUltrix_ConstMachs (const char**)NULL
7353 * content selection pattern - do fix if pattern found
7355 tSCC zUltrix_ConstSelect0[] =
7356 "perror\\( char \\*";
7358 #define ULTRIX_CONST_TEST_CT 1
7359 static tTestDesc aUltrix_ConstTests[] = {
7360 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7363 * Fix Command Arguments for Ultrix_Const
7365 static const char* apzUltrix_ConstPatch[] = {
7368 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7373 * Description of Ultrix_Const2 fix
7375 tSCC zUltrix_Const2Name[] =
7379 * File name selection pattern
7381 tSCC zUltrix_Const2List[] =
7384 * Machine/OS name selection pattern
7386 #define apzUltrix_Const2Machs (const char**)NULL
7389 * content selection pattern - do fix if pattern found
7391 tSCC zUltrix_Const2Select0[] =
7392 "\\*fopen\\( char \\*";
7394 #define ULTRIX_CONST2_TEST_CT 1
7395 static tTestDesc aUltrix_Const2Tests[] = {
7396 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7399 * Fix Command Arguments for Ultrix_Const2
7401 static const char* apzUltrix_Const2Patch[] = {
7403 "%1( const char *%3, const char *",
7404 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7407 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7409 * Description of Ultrix_Const3 fix
7411 tSCC zUltrix_Const3Name[] =
7415 * File name selection pattern
7417 tSCC zUltrix_Const3List[] =
7420 * Machine/OS name selection pattern
7422 #define apzUltrix_Const3Machs (const char**)NULL
7425 * content selection pattern - do fix if pattern found
7427 tSCC zUltrix_Const3Select0[] =
7428 "fdopen\\( .*, char \\*";
7430 #define ULTRIX_CONST3_TEST_CT 1
7431 static tTestDesc aUltrix_Const3Tests[] = {
7432 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7435 * Fix Command Arguments for Ultrix_Const3
7437 static const char* apzUltrix_Const3Patch[] = {
7440 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7445 * Description of Ultrix_Fix_Fixproto fix
7447 tSCC zUltrix_Fix_FixprotoName[] =
7448 "ultrix_fix_fixproto";
7451 * File name selection pattern
7453 tSCC zUltrix_Fix_FixprotoList[] =
7456 * Machine/OS name selection pattern
7458 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7461 * content selection pattern - do fix if pattern found
7463 tSCC zUltrix_Fix_FixprotoSelect0[] =
7466 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7467 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7468 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7471 * Fix Command Arguments for Ultrix_Fix_Fixproto
7473 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7477 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7482 * Description of Ultrix_Ifdef fix
7484 tSCC zUltrix_IfdefName[] =
7488 * File name selection pattern
7490 tSCC zUltrix_IfdefList[] =
7493 * Machine/OS name selection pattern
7495 #define apzUltrix_IfdefMachs (const char**)NULL
7498 * content selection pattern - do fix if pattern found
7500 tSCC zUltrix_IfdefSelect0[] =
7501 "^#ifdef KERNEL[ \t]+&&";
7503 #define ULTRIX_IFDEF_TEST_CT 1
7504 static tTestDesc aUltrix_IfdefTests[] = {
7505 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7508 * Fix Command Arguments for Ultrix_Ifdef
7510 static const char* apzUltrix_IfdefPatch[] = {
7512 "#if defined(KERNEL) &&",
7515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7517 * Description of Ultrix_Locale fix
7519 tSCC zUltrix_LocaleName[] =
7523 * File name selection pattern
7525 tSCC zUltrix_LocaleList[] =
7528 * Machine/OS name selection pattern
7530 #define apzUltrix_LocaleMachs (const char**)NULL
7533 * content selection pattern - do fix if pattern found
7535 tSCC zUltrix_LocaleSelect0[] =
7536 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7538 #define ULTRIX_LOCALE_TEST_CT 1
7539 static tTestDesc aUltrix_LocaleTests[] = {
7540 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7543 * Fix Command Arguments for Ultrix_Locale
7545 static const char* apzUltrix_LocalePatch[] = {
7549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7551 * Description of Ultrix_Math_Ifdef fix
7553 tSCC zUltrix_Math_IfdefName[] =
7554 "ultrix_math_ifdef";
7557 * File name selection pattern
7559 tSCC zUltrix_Math_IfdefList[] =
7560 "sys/limits.h\0float.h\0math.h\0";
7562 * Machine/OS name selection pattern
7564 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7567 * content selection pattern - do fix if pattern found
7569 tSCC zUltrix_Math_IfdefSelect0[] =
7570 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7572 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7573 static tTestDesc aUltrix_Math_IfdefTests[] = {
7574 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7577 * Fix Command Arguments for Ultrix_Math_Ifdef
7579 static const char* apzUltrix_Math_IfdefPatch[] = {
7584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7586 * Description of Ultrix_Nested_Ioctl fix
7588 tSCC zUltrix_Nested_IoctlName[] =
7589 "ultrix_nested_ioctl";
7592 * File name selection pattern
7594 tSCC zUltrix_Nested_IoctlList[] =
7597 * Machine/OS name selection pattern
7599 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7602 * content selection pattern - do fix if pattern found
7604 tSCC zUltrix_Nested_IoctlSelect0[] =
7605 "^/\\* #define SIOCSCREEN";
7607 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7608 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7609 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7612 * Fix Command Arguments for Ultrix_Nested_Ioctl
7614 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7615 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7620 * Description of Ultrix_Nested_Svc fix
7622 tSCC zUltrix_Nested_SvcName[] =
7623 "ultrix_nested_svc";
7626 * File name selection pattern
7628 tSCC zUltrix_Nested_SvcList[] =
7631 * Machine/OS name selection pattern
7633 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7636 * content selection pattern - do fix if pattern found
7638 tSCC zUltrix_Nested_SvcSelect0[] =
7639 "^ \\*[ \t]*int protocol; */\\*";
7641 #define ULTRIX_NESTED_SVC_TEST_CT 1
7642 static tTestDesc aUltrix_Nested_SvcTests[] = {
7643 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7646 * Fix Command Arguments for Ultrix_Nested_Svc
7648 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7649 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7652 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7654 * Description of Ultrix_Stat fix
7656 tSCC zUltrix_StatName[] =
7660 * File name selection pattern
7662 tSCC zUltrix_StatList[] =
7665 * Machine/OS name selection pattern
7667 #define apzUltrix_StatMachs (const char**)NULL
7670 * content selection pattern - do fix if pattern found
7672 tSCC zUltrix_StatSelect0[] =
7673 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7675 #define ULTRIX_STAT_TEST_CT 1
7676 static tTestDesc aUltrix_StatTests[] = {
7677 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7680 * Fix Command Arguments for Ultrix_Stat
7682 static const char* apzUltrix_StatPatch[] = { "sed",
7683 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7685 /* macro to test for symbolic link */\\\n\
7686 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7687 "-e", "/^[ \t]*fstat(),$/a\\\n\
7691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7693 * Description of Ultrix_Static fix
7695 tSCC zUltrix_StaticName[] =
7699 * File name selection pattern
7701 tSCC zUltrix_StaticList[] =
7704 * Machine/OS name selection pattern
7706 #define apzUltrix_StaticMachs (const char**)NULL
7709 * content selection pattern - do fix if pattern found
7711 tSCC zUltrix_StaticSelect0[] =
7712 "#include \"r[34]_cpu";
7714 #define ULTRIX_STATIC_TEST_CT 1
7715 static tTestDesc aUltrix_StaticTests[] = {
7716 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7719 * Fix Command Arguments for Ultrix_Static
7721 static const char* apzUltrix_StaticPatch[] = { "sed",
7722 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7723 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7724 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7729 * Description of Ultrix_Stdlib fix
7731 tSCC zUltrix_StdlibName[] =
7735 * File name selection pattern
7737 tSCC zUltrix_StdlibList[] =
7740 * Machine/OS name selection pattern
7742 #define apzUltrix_StdlibMachs (const char**)NULL
7745 * content selection pattern - do fix if pattern found
7747 tSCC zUltrix_StdlibSelect0[] =
7748 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7750 #define ULTRIX_STDLIB_TEST_CT 1
7751 static tTestDesc aUltrix_StdlibTests[] = {
7752 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7755 * Fix Command Arguments for Ultrix_Stdlib
7757 static const char* apzUltrix_StdlibPatch[] = { "sed",
7758 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7759 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7760 void\t\tunsetenv( const char *__name );\\\n\
7761 int\t\tputenv( char *__s );\n",
7762 "-e", "/^char.*getenv();.*$/a\\\n\
7764 void\tunsetenv();\\\n\
7768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7770 * Description of Ultrix_Strings fix
7772 tSCC zUltrix_StringsName[] =
7776 * File name selection pattern
7778 tSCC zUltrix_StringsList[] =
7781 * Machine/OS name selection pattern
7783 #define apzUltrix_StringsMachs (const char**)NULL
7786 * content selection pattern - do fix if pattern found
7788 tSCC zUltrix_StringsSelect0[] =
7789 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7791 #define ULTRIX_STRINGS_TEST_CT 1
7792 static tTestDesc aUltrix_StringsTests[] = {
7793 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7796 * Fix Command Arguments for Ultrix_Strings
7798 static const char* apzUltrix_StringsPatch[] = {
7802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7804 * Description of Ultrix_Strings2 fix
7806 tSCC zUltrix_Strings2Name[] =
7810 * File name selection pattern
7812 tSCC zUltrix_Strings2List[] =
7815 * Machine/OS name selection pattern
7817 #define apzUltrix_Strings2Machs (const char**)NULL
7820 * content selection pattern - do fix if pattern found
7822 tSCC zUltrix_Strings2Select0[] =
7823 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7825 #define ULTRIX_STRINGS2_TEST_CT 1
7826 static tTestDesc aUltrix_Strings2Tests[] = {
7827 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7830 * Fix Command Arguments for Ultrix_Strings2
7832 static const char* apzUltrix_Strings2Patch[] = { "sed",
7833 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7836 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7837 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7838 "-e", "/^.*strncmp();.*/a\\\n\
7840 \tstrcasecmp(),\\\n\
7841 \tstrncasecmp();\n",
7844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7846 * Description of Ultrix_Sys_Time fix
7848 tSCC zUltrix_Sys_TimeName[] =
7852 * File name selection pattern
7854 tSCC zUltrix_Sys_TimeList[] =
7857 * Machine/OS name selection pattern
7859 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7862 * content selection pattern - do fix if pattern found
7864 tSCC zUltrix_Sys_TimeSelect0[] =
7865 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7867 #define ULTRIX_SYS_TIME_TEST_CT 1
7868 static tTestDesc aUltrix_Sys_TimeTests[] = {
7869 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7872 * Fix Command Arguments for Ultrix_Sys_Time
7874 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7875 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7877 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7878 extern int getitimer(int, struct itimerval *);\\\n\
7879 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7880 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7881 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7882 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7883 extern int stime(const time_t *);\\\n\
7884 extern int utimes(const char *, const struct timeval[2]);\\\n\
7885 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7886 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7887 extern\tint adjtime();\\\n\
7888 extern\tint getitimer();\\\n\
7889 extern\tint setitimer();\\\n\
7890 extern\tint gettimeofday();\\\n\
7891 extern\tint settimeofday();\\\n\
7892 extern\tvoid profil();\\\n\
7893 extern\tint stime();\\\n\
7894 extern\tint utimes();\\\n\
7895 extern\tint select();\n",
7898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7900 * Description of Ultrix_Unistd fix
7902 tSCC zUltrix_UnistdName[] =
7906 * File name selection pattern
7908 tSCC zUltrix_UnistdList[] =
7911 * Machine/OS name selection pattern
7913 #define apzUltrix_UnistdMachs (const char**)NULL
7916 * content selection pattern - do fix if pattern found
7918 tSCC zUltrix_UnistdSelect0[] =
7919 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7921 #define ULTRIX_UNISTD_TEST_CT 1
7922 static tTestDesc aUltrix_UnistdTests[] = {
7923 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7926 * Fix Command Arguments for Ultrix_Unistd
7928 static const char* apzUltrix_UnistdPatch[] = { "sed",
7929 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
7930 \tgetpagesize(),\n",
7931 "-e", "/^[ \t]*fork(),.*$/a\\\n\
7935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7937 * Description of Unicosmk_Restrict fix
7939 tSCC zUnicosmk_RestrictName[] =
7940 "unicosmk_restrict";
7943 * File name selection pattern
7945 tSCC zUnicosmk_RestrictList[] =
7946 "stdio.h\0stdlib.h\0wchar.h\0";
7948 * Machine/OS name selection pattern
7950 tSCC* apzUnicosmk_RestrictMachs[] = {
7952 (const char*)NULL };
7955 * content selection pattern - do fix if pattern found
7957 tSCC zUnicosmk_RestrictSelect0[] =
7958 "(\\*[ \t]*)restrict([ \t]+)";
7960 #define UNICOSMK_RESTRICT_TEST_CT 1
7961 static tTestDesc aUnicosmk_RestrictTests[] = {
7962 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
7965 * Fix Command Arguments for Unicosmk_Restrict
7967 static const char* apzUnicosmk_RestrictPatch[] = {
7972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7974 * Description of Uw7_Byteorder_Fix fix
7976 tSCC zUw7_Byteorder_FixName[] =
7977 "uw7_byteorder_fix";
7980 * File name selection pattern
7982 tSCC zUw7_Byteorder_FixList[] =
7985 * Machine/OS name selection pattern
7987 tSCC* apzUw7_Byteorder_FixMachs[] = {
7991 "i?86-*-solaris2.[0-4]",
7992 "powerpcle-*-solaris2.[0-4]",
7993 "sparc-*-solaris2.[0-4]",
7994 (const char*)NULL };
7997 * content selection pattern - do fix if pattern found
7999 tSCC zUw7_Byteorder_FixSelect0[] =
8003 * perform the 'test' shell command - do fix on success
8005 tSCC zUw7_Byteorder_FixTest0[] =
8006 "-f sys/byteorder.h";
8008 #define UW7_BYTEORDER_FIX_TEST_CT 2
8009 static tTestDesc aUw7_Byteorder_FixTests[] = {
8010 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
8011 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
8014 * Fix Command Arguments for Uw7_Byteorder_Fix
8016 static const char* apzUw7_Byteorder_FixPatch[] = {
8019 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
8022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8024 * Description of Va_I960_Macro fix
8026 tSCC zVa_I960_MacroName[] =
8030 * File name selection pattern
8032 tSCC zVa_I960_MacroList[] =
8033 "arch/i960/archI960.h\0";
8035 * Machine/OS name selection pattern
8037 #define apzVa_I960_MacroMachs (const char**)NULL
8040 * content selection pattern - do fix if pattern found
8042 tSCC zVa_I960_MacroSelect0[] =
8043 "__(vsiz|vali|vpad|alignof__)";
8045 #define VA_I960_MACRO_TEST_CT 1
8046 static tTestDesc aVa_I960_MacroTests[] = {
8047 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8050 * Fix Command Arguments for Va_I960_Macro
8052 static const char* apzVa_I960_MacroPatch[] = {
8057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8059 * Description of Void_Null fix
8061 tSCC zVoid_NullName[] =
8065 * File name selection pattern
8067 tSCC zVoid_NullList[] =
8068 "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
8070 * Machine/OS name selection pattern
8072 #define apzVoid_NullMachs (const char**)NULL
8075 * content selection pattern - do fix if pattern found
8077 tSCC zVoid_NullSelect0[] =
8078 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8081 * content bypass pattern - skip fix if pattern found
8083 tSCC zVoid_NullBypass0[] =
8086 #define VOID_NULL_TEST_CT 2
8087 static tTestDesc aVoid_NullTests[] = {
8088 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8089 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8092 * Fix Command Arguments for Void_Null
8094 static const char* apzVoid_NullPatch[] = {
8099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8101 * Description of Vxworks_Gcc_Problem fix
8103 tSCC zVxworks_Gcc_ProblemName[] =
8104 "vxworks_gcc_problem";
8107 * File name selection pattern
8109 tSCC zVxworks_Gcc_ProblemList[] =
8110 "types/vxTypesBase.h\0";
8112 * Machine/OS name selection pattern
8114 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8117 * content selection pattern - do fix if pattern found
8119 tSCC zVxworks_Gcc_ProblemSelect0[] =
8120 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8122 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8123 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8124 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8127 * Fix Command Arguments for Vxworks_Gcc_Problem
8129 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8130 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8131 "-e", "/[ \t]size_t/i\\\n\
8132 #ifndef _GCC_SIZE_T\\\n\
8133 #define _GCC_SIZE_T\n",
8134 "-e", "/[ \t]size_t/a\\\n\
8136 "-e", "/[ \t]ptrdiff_t/i\\\n\
8137 #ifndef _GCC_PTRDIFF_T\\\n\
8138 #define _GCC_PTRDIFF_T\n",
8139 "-e", "/[ \t]ptrdiff_t/a\\\n\
8141 "-e", "/[ \t]wchar_t/i\\\n\
8142 #ifndef _GCC_WCHAR_T\\\n\
8143 #define _GCC_WCHAR_T\n",
8144 "-e", "/[ \t]wchar_t/a\\\n\
8148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8150 * Description of Vxworks_Needs_Vxtypes fix
8152 tSCC zVxworks_Needs_VxtypesName[] =
8153 "vxworks_needs_vxtypes";
8156 * File name selection pattern
8158 tSCC zVxworks_Needs_VxtypesList[] =
8161 * Machine/OS name selection pattern
8163 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8166 * content selection pattern - do fix if pattern found
8168 tSCC zVxworks_Needs_VxtypesSelect0[] =
8169 "uint_t([ \t]+_clocks_per_sec)";
8171 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8172 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8173 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8176 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8178 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8185 * Description of Vxworks_Needs_Vxworks fix
8187 tSCC zVxworks_Needs_VxworksName[] =
8188 "vxworks_needs_vxworks";
8191 * File name selection pattern
8193 tSCC zVxworks_Needs_VxworksList[] =
8196 * Machine/OS name selection pattern
8198 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8201 * content selection pattern - do fix if pattern found
8203 tSCC zVxworks_Needs_VxworksSelect0[] =
8204 "#[ \t]define[ \t]+__INCstath";
8207 * perform the 'test' shell command - do fix on success
8209 tSCC zVxworks_Needs_VxworksTest0[] =
8210 " -r types/vxTypesOld.h";
8211 tSCC zVxworks_Needs_VxworksTest1[] =
8212 " -n \"`egrep '#include' $file`\"";
8213 tSCC zVxworks_Needs_VxworksTest2[] =
8214 " -n \"`egrep ULONG $file`\"";
8216 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8217 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8218 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8219 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8220 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8221 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8224 * Fix Command Arguments for Vxworks_Needs_Vxworks
8226 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8227 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8228 #include <types/vxTypesOld.h>\n",
8231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8233 * Description of Vxworks_Time fix
8235 tSCC zVxworks_TimeName[] =
8239 * File name selection pattern
8241 tSCC zVxworks_TimeList[] =
8244 * Machine/OS name selection pattern
8246 #define apzVxworks_TimeMachs (const char**)NULL
8249 * content selection pattern - do fix if pattern found
8251 tSCC zVxworks_TimeSelect0[] =
8252 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8255 * perform the 'test' shell command - do fix on success
8257 tSCC zVxworks_TimeTest0[] =
8260 #define VXWORKS_TIME_TEST_CT 2
8261 static tTestDesc aVxworks_TimeTests[] = {
8262 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8263 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8266 * Fix Command Arguments for Vxworks_Time
8268 static const char* apzVxworks_TimePatch[] = {
8270 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8271 #ifdef __cplusplus\n\
8272 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8274 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8276 #define __gcc_VOIDFUNCPTR_defined\n\
8278 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8283 * Description of Windiss_Math1 fix
8285 tSCC zWindiss_Math1Name[] =
8289 * File name selection pattern
8291 tSCC zWindiss_Math1List[] =
8294 * Machine/OS name selection pattern
8296 tSCC* apzWindiss_Math1Machs[] = {
8298 (const char*)NULL };
8299 #define WINDISS_MATH1_TEST_CT 0
8300 #define aWindiss_Math1Tests (tTestDesc*)NULL
8303 * Fix Command Arguments for Windiss_Math1
8305 static const char* apzWindiss_Math1Patch[] = { "sed",
8306 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8309 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8311 * Description of Windiss_Math2 fix
8313 tSCC zWindiss_Math2Name[] =
8317 * File name selection pattern
8319 tSCC zWindiss_Math2List[] =
8322 * Machine/OS name selection pattern
8324 tSCC* apzWindiss_Math2Machs[] = {
8326 (const char*)NULL };
8327 #define WINDISS_MATH2_TEST_CT 0
8328 #define aWindiss_Math2Tests (tTestDesc*)NULL
8331 * Fix Command Arguments for Windiss_Math2
8333 static const char* apzWindiss_Math2Patch[] = { "sed",
8334 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8339 * Description of Windiss_Valist fix
8341 tSCC zWindiss_ValistName[] =
8345 * File name selection pattern
8347 #define zWindiss_ValistList (char*)NULL
8349 * Machine/OS name selection pattern
8351 tSCC* apzWindiss_ValistMachs[] = {
8353 (const char*)NULL };
8356 * content selection pattern - do fix if pattern found
8358 tSCC zWindiss_ValistSelect0[] =
8359 "(#include.*)diab/va_list.h";
8361 #define WINDISS_VALIST_TEST_CT 1
8362 static tTestDesc aWindiss_ValistTests[] = {
8363 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
8366 * Fix Command Arguments for Windiss_Valist
8368 static const char* apzWindiss_ValistPatch[] = { "sed",
8369 "-e", "s|diab/va_list.h|stdarg.h|",
8372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8374 * Description of X11_Class fix
8376 tSCC zX11_ClassName[] =
8380 * File name selection pattern
8382 tSCC zX11_ClassList[] =
8385 * Machine/OS name selection pattern
8387 #define apzX11_ClassMachs (const char**)NULL
8390 * content selection pattern - do fix if pattern found
8392 tSCC zX11_ClassSelect0[] =
8393 "^([ \t]*char \\*)class;(.*)";
8396 * content bypass pattern - skip fix if pattern found
8398 tSCC zX11_ClassBypass0[] =
8401 #define X11_CLASS_TEST_CT 2
8402 static tTestDesc aX11_ClassTests[] = {
8403 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8404 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8407 * Fix Command Arguments for X11_Class
8409 static const char* apzX11_ClassPatch[] = {
8411 "#ifdef __cplusplus\n\
8418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8420 * Description of X11_Class_Usage fix
8422 tSCC zX11_Class_UsageName[] =
8426 * File name selection pattern
8428 tSCC zX11_Class_UsageList[] =
8429 "Xm/BaseClassI.h\0";
8431 * Machine/OS name selection pattern
8433 #define apzX11_Class_UsageMachs (const char**)NULL
8436 * content selection pattern - do fix if pattern found
8438 tSCC zX11_Class_UsageSelect0[] =
8442 * content bypass pattern - skip fix if pattern found
8444 tSCC zX11_Class_UsageBypass0[] =
8447 #define X11_CLASS_USAGE_TEST_CT 2
8448 static tTestDesc aX11_Class_UsageTests[] = {
8449 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8450 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8453 * Fix Command Arguments for X11_Class_Usage
8455 static const char* apzX11_Class_UsagePatch[] = {
8460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8462 * Description of X11_New fix
8464 tSCC zX11_NewName[] =
8468 * File name selection pattern
8470 tSCC zX11_NewList[] =
8473 * Machine/OS name selection pattern
8475 #define apzX11_NewMachs (const char**)NULL
8478 * content bypass pattern - skip fix if pattern found
8480 tSCC zX11_NewBypass0[] =
8483 #define X11_NEW_TEST_CT 1
8484 static tTestDesc aX11_NewTests[] = {
8485 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8488 * Fix Command Arguments for X11_New
8490 static const char* apzX11_NewPatch[] = { "sed",
8491 "-e", "/Widget\told, new;/i\\\n\
8492 #ifdef __cplusplus\\\n\
8493 \tWidget\told, c_new;\\\n\
8495 "-e", "/Widget\told, new;/a\\\n\
8497 "-e", "s/Widget new,/Widget c_new,/g",
8500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8502 * Description of X11_Sprintf fix
8504 tSCC zX11_SprintfName[] =
8508 * File name selection pattern
8510 tSCC zX11_SprintfList[] =
8511 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8513 * Machine/OS name selection pattern
8515 #define apzX11_SprintfMachs (const char**)NULL
8518 * content selection pattern - do fix if pattern found
8520 tSCC zX11_SprintfSelect0[] =
8521 "^extern char \\*\tsprintf\\(\\);$";
8523 #define X11_SPRINTF_TEST_CT 1
8524 static tTestDesc aX11_SprintfTests[] = {
8525 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8528 * Fix Command Arguments for X11_Sprintf
8530 static const char* apzX11_SprintfPatch[] = {
8532 "#ifndef __STDC__\n\
8534 #endif /* !defined __STDC__ */",
8538 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8542 #define REGEX_COUNT 253
8543 #define MACH_LIST_SIZE_LIMIT 261
8544 #define FIX_COUNT 210
8547 * Enumerate the fixes
8550 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8551 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8552 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8553 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8554 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8555 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8556 AAB_SUN_MEMCPY_FIXIDX,
8557 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8558 AAB_ULTRIX_LIMITS_FIXIDX,
8559 AAB_ULTRIX_MEMORY_FIXIDX,
8560 AAB_ULTRIX_STRING_FIXIDX,
8562 AIX_SYSMACHINE_FIXIDX,
8564 AIX_SYSWAIT_2_FIXIDX,
8565 AIX_VOLATILE_FIXIDX,
8566 ALPHA___ASSERT_FIXIDX,
8567 ALPHA___EXTERN_PREFIX_FIXIDX,
8568 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8569 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8570 ALPHA_ASSERT_FIXIDX,
8571 ALPHA_BAD_LVAL_FIXIDX,
8572 ALPHA_GETOPT_FIXIDX,
8573 ALPHA_PARENS_FIXIDX,
8574 ALPHA_PTHREAD_FIXIDX,
8575 ALPHA_PTHREAD_GCC_FIXIDX,
8576 ALPHA_PTHREAD_INIT_FIXIDX,
8579 AVOID_BOOL_DEFINE_FIXIDX,
8580 AVOID_BOOL_TYPE_FIXIDX,
8581 AVOID_WCHAR_T_TYPE_FIXIDX,
8582 BAD_STRUCT_TERM_FIXIDX,
8584 BROKEN_ASSERT_STDIO_FIXIDX,
8585 BROKEN_ASSERT_STDLIB_FIXIDX,
8588 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8589 CTRL_QUOTES_DEF_FIXIDX,
8590 CTRL_QUOTES_USE_FIXIDX,
8592 DARWIN_EXTERNC_FIXIDX,
8593 DARWIN_GCC4_BREAKAGE_FIXIDX,
8594 DARWIN_PRIVATE_EXTERN_FIXIDX,
8595 DEC_INTERN_ASM_FIXIDX,
8596 DJGPP_WCHAR_H_FIXIDX,
8598 EXCEPTION_STRUCTURE_FIXIDX,
8599 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8600 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8601 GLIBC_C99_INLINE_1_FIXIDX,
8602 GLIBC_C99_INLINE_2_FIXIDX,
8603 GLIBC_C99_INLINE_3_FIXIDX,
8604 GLIBC_C99_INLINE_4_FIXIDX,
8605 GLIBC_MUTEX_INIT_FIXIDX,
8609 HPUX10_CPP_POW_INLINE_FIXIDX,
8610 HPUX11_CPP_POW_INLINE_FIXIDX,
8611 HPPA_HPUX_FP_MACROS_FIXIDX,
8612 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8613 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8614 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8616 HPUX11_FABSF_FIXIDX,
8617 HPUX11_SIZE_T_FIXIDX,
8618 HPUX11_SNPRINTF_FIXIDX,
8619 HPUX11_UINT32_C_FIXIDX,
8620 HPUX11_VSNPRINTF_FIXIDX,
8621 HPUX8_BOGUS_INLINES_FIXIDX,
8622 HPUX_CTYPE_MACROS_FIXIDX,
8624 HPUX_LONG_DOUBLE_FIXIDX,
8625 HPUX_SYSTIME_FIXIDX,
8626 HPUX_SPU_INFO_FIXIDX,
8627 HPUX11_EXTERN_SENDFILE_FIXIDX,
8628 HPUX11_EXTERN_SENDPATH_FIXIDX,
8629 HPUX_EXTERN_ERRNO_FIXIDX,
8630 HPUX11_PTHREAD_CONST_FIXIDX,
8631 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8632 HUGE_VAL_HEX_FIXIDX,
8633 HUGE_VALF_HEX_FIXIDX,
8634 HUGE_VALL_HEX_FIXIDX,
8635 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8636 IO_QUOTES_DEF_FIXIDX,
8637 IO_QUOTES_USE_FIXIDX,
8638 IP_MISSING_SEMI_FIXIDX,
8639 IRIX___RESTRICT_FIXIDX,
8640 IRIX___GENERIC1_FIXIDX,
8641 IRIX___GENERIC2_FIXIDX,
8642 IRIX_ASM_APOSTROPHE_FIXIDX,
8643 IRIX_LIMITS_CONST_FIXIDX,
8644 IRIX_SOCKLEN_T_FIXIDX,
8645 IRIX_STDINT_C99_FIXIDX,
8646 IRIX_STDIO_VA_LIST_FIXIDX,
8647 IRIX_WCSFTIME_FIXIDX,
8649 ISC_OMITS_WITH_STDC_FIXIDX,
8650 KANDR_CONCAT_FIXIDX,
8651 LIBC1_G_VA_LIST_FIXIDX,
8652 LIBC1_IFDEFD_MEMX_FIXIDX,
8653 LINUX_IA64_UCONTEXT_FIXIDX,
8654 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8655 LYNXOS_MISSING_PUTENV_FIXIDX,
8656 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8657 MACHINE_NAME_FIXIDX,
8658 MATH_EXCEPTION_FIXIDX,
8659 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8660 NESTED_AUTH_DES_FIXIDX,
8661 NESTED_MOTOROLA_FIXIDX,
8662 NESTED_SYS_LIMITS_FIXIDX,
8663 NETBSD_C99_INLINE_1_FIXIDX,
8664 NETBSD_C99_INLINE_2_FIXIDX,
8665 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8666 NEXT_MATH_PREFIX_FIXIDX,
8667 NEXT_TEMPLATE_FIXIDX,
8668 NEXT_VOLITILE_FIXIDX,
8669 NEXT_WAIT_UNION_FIXIDX,
8670 NODEENT_SYNTAX_FIXIDX,
8671 OBSTACK_LVALUE_CAST_FIXIDX,
8672 OSF_NAMESPACE_A_FIXIDX,
8673 OSF_NAMESPACE_C_FIXIDX,
8674 PTHREAD_PAGE_SIZE_FIXIDX,
8675 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8676 READ_RET_TYPE_FIXIDX,
8677 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8678 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8679 RS6000_DOUBLE_FIXIDX,
8680 RS6000_FCHMOD_FIXIDX,
8681 RS6000_PARAM_FIXIDX,
8684 SCO_STATIC_FUNC_FIXIDX,
8686 SOLARIS_MATH_1_FIXIDX,
8687 SOLARIS_MATH_2_FIXIDX,
8688 SOLARIS_MATH_3_FIXIDX,
8689 SOLARIS_MATH_4_FIXIDX,
8690 SOLARIS_MATH_8_FIXIDX,
8691 SOLARIS_MATH_9_FIXIDX,
8692 SOLARIS_MUTEX_INIT_1_FIXIDX,
8693 SOLARIS_MUTEX_INIT_2_FIXIDX,
8694 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8695 SOLARIS_ONCE_INIT_1_FIXIDX,
8696 SOLARIS_ONCE_INIT_2_FIXIDX,
8697 SOLARIS_SOCKET_FIXIDX,
8698 SOLARIS_STDIO_TAG_FIXIDX,
8699 SOLARIS_UNISTD_FIXIDX,
8700 SOLARIS_WIDEC_FIXIDX,
8702 STDIO_STDARG_H_FIXIDX,
8703 STDIO_VA_LIST_FIXIDX,
8704 STDIO_VA_LIST_CLIENTS_FIXIDX,
8705 STRICT_ANSI_NOT_FIXIDX,
8706 STRICT_ANSI_NOT_CTD_FIXIDX,
8707 STRICT_ANSI_ONLY_FIXIDX,
8709 STRUCT_SOCKADDR_FIXIDX,
8710 SUN_AUTH_PROTO_FIXIDX,
8711 SUN_BOGUS_IFDEF_FIXIDX,
8712 SUN_CATMACRO_FIXIDX,
8714 SUN_RUSERS_SEMI_FIXIDX,
8716 SUNOS_STRLEN_FIXIDX,
8717 SVR4_DISABLE_OPT_FIXIDX,
8721 SVR4_SIGHANDLER_TYPE_FIXIDX,
8722 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8723 SYSV68_STRING_FIXIDX,
8724 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8725 THREAD_KEYWORD_FIXIDX,
8726 TINFO_CPLUSPLUS_FIXIDX,
8727 ULTRIX_ATEXIT_PARAM_FIXIDX,
8728 ULTRIX_ATOF_PARAM_FIXIDX,
8729 ULTRIX_CONST_FIXIDX,
8730 ULTRIX_CONST2_FIXIDX,
8731 ULTRIX_CONST3_FIXIDX,
8732 ULTRIX_FIX_FIXPROTO_FIXIDX,
8733 ULTRIX_IFDEF_FIXIDX,
8734 ULTRIX_LOCALE_FIXIDX,
8735 ULTRIX_MATH_IFDEF_FIXIDX,
8736 ULTRIX_NESTED_IOCTL_FIXIDX,
8737 ULTRIX_NESTED_SVC_FIXIDX,
8739 ULTRIX_STATIC_FIXIDX,
8740 ULTRIX_STDLIB_FIXIDX,
8741 ULTRIX_STRINGS_FIXIDX,
8742 ULTRIX_STRINGS2_FIXIDX,
8743 ULTRIX_SYS_TIME_FIXIDX,
8744 ULTRIX_UNISTD_FIXIDX,
8745 UNICOSMK_RESTRICT_FIXIDX,
8746 UW7_BYTEORDER_FIX_FIXIDX,
8747 VA_I960_MACRO_FIXIDX,
8749 VXWORKS_GCC_PROBLEM_FIXIDX,
8750 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8751 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8752 VXWORKS_TIME_FIXIDX,
8753 WINDISS_MATH1_FIXIDX,
8754 WINDISS_MATH2_FIXIDX,
8755 WINDISS_VALIST_FIXIDX,
8757 X11_CLASS_USAGE_FIXIDX,
8762 tFixDesc fixDescList[ FIX_COUNT ] = {
8763 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8764 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8765 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8766 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8768 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8769 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8770 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8771 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8773 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8774 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8775 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8776 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8778 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8779 apzAab_Fd_Zero_Gnu_Types_HMachs,
8780 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8781 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8783 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8784 apzAab_Fd_Zero_Selectbits_HMachs,
8785 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8786 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8788 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8789 apzAab_Solaris_Sys_Varargs_HMachs,
8790 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8791 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8793 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8794 apzAab_Sun_MemcpyMachs,
8795 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8796 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8798 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8799 apzAab_Ultrix_Ansi_CompatMachs,
8800 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8801 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8803 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8804 apzAab_Ultrix_LimitsMachs,
8805 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8806 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8808 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8809 apzAab_Ultrix_MemoryMachs,
8810 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8811 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8813 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8814 apzAab_Ultrix_StringMachs,
8815 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8816 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8818 { zAix_PthreadName, zAix_PthreadList,
8819 apzAix_PthreadMachs,
8820 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8821 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8823 { zAix_SysmachineName, zAix_SysmachineList,
8824 apzAix_SysmachineMachs,
8825 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8826 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8828 { zAix_SyswaitName, zAix_SyswaitList,
8829 apzAix_SyswaitMachs,
8830 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8831 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8833 { zAix_Syswait_2Name, zAix_Syswait_2List,
8834 apzAix_Syswait_2Machs,
8835 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8836 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8838 { zAix_VolatileName, zAix_VolatileList,
8839 apzAix_VolatileMachs,
8840 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8841 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8843 { zAlpha___AssertName, zAlpha___AssertList,
8844 apzAlpha___AssertMachs,
8845 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8846 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8848 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8849 apzAlpha___Extern_PrefixMachs,
8850 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8851 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8853 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8854 apzAlpha___Extern_Prefix_StandardsMachs,
8855 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8856 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8858 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8859 apzAlpha___Extern_Prefix_Sys_StatMachs,
8860 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8861 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8863 { zAlpha_AssertName, zAlpha_AssertList,
8864 apzAlpha_AssertMachs,
8865 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8866 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8868 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8869 apzAlpha_Bad_LvalMachs,
8870 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8871 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8873 { zAlpha_GetoptName, zAlpha_GetoptList,
8874 apzAlpha_GetoptMachs,
8875 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8876 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8878 { zAlpha_ParensName, zAlpha_ParensList,
8879 apzAlpha_ParensMachs,
8880 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8881 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8883 { zAlpha_PthreadName, zAlpha_PthreadList,
8884 apzAlpha_PthreadMachs,
8885 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8886 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8888 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8889 apzAlpha_Pthread_GccMachs,
8890 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8891 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8893 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8894 apzAlpha_Pthread_InitMachs,
8895 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8896 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8898 { zAlpha_SbrkName, zAlpha_SbrkList,
8900 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8901 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8903 { zAlpha_WcharName, zAlpha_WcharList,
8904 apzAlpha_WcharMachs,
8905 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8906 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8908 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8909 apzAvoid_Bool_DefineMachs,
8910 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8911 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8913 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8914 apzAvoid_Bool_TypeMachs,
8915 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8916 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8918 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8919 apzAvoid_Wchar_T_TypeMachs,
8920 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8921 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8923 { zBad_Struct_TermName, zBad_Struct_TermList,
8924 apzBad_Struct_TermMachs,
8925 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8926 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8928 { zBadquoteName, zBadquoteList,
8930 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8931 aBadquoteTests, apzBadquotePatch, 0 },
8933 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8934 apzBroken_Assert_StdioMachs,
8935 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8936 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8938 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8939 apzBroken_Assert_StdlibMachs,
8940 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8941 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8943 { zBroken_CabsName, zBroken_CabsList,
8944 apzBroken_CabsMachs,
8945 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8946 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8948 { zBroken_NanName, zBroken_NanList,
8950 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8951 aBroken_NanTests, apzBroken_NanPatch, 0 },
8953 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8954 apzBsd_Stdio_Attrs_ConflictMachs,
8955 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8956 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8958 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8959 apzCtrl_Quotes_DefMachs,
8960 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8961 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8963 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8964 apzCtrl_Quotes_UseMachs,
8965 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8966 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8968 { zCxx_UnreadyName, zCxx_UnreadyList,
8969 apzCxx_UnreadyMachs,
8970 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8971 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8973 { zDarwin_ExterncName, zDarwin_ExterncList,
8974 apzDarwin_ExterncMachs,
8975 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8976 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
8978 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8979 apzDarwin_Gcc4_BreakageMachs,
8980 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8981 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8983 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8984 apzDarwin_Private_ExternMachs,
8985 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8986 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8988 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8989 apzDec_Intern_AsmMachs,
8990 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8991 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8993 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8994 apzDjgpp_Wchar_HMachs,
8995 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8996 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8998 { zEcd_CursorName, zEcd_CursorList,
9000 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9001 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9003 { zException_StructureName, zException_StructureList,
9004 apzException_StructureMachs,
9005 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9006 aException_StructureTests, apzException_StructurePatch, 0 },
9008 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9009 apzFreebsd_Gcc3_BreakageMachs,
9010 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9011 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9013 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9014 apzFreebsd_Gcc4_BreakageMachs,
9015 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9016 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9018 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9019 apzGlibc_C99_Inline_1Machs,
9020 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9021 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9023 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9024 apzGlibc_C99_Inline_2Machs,
9025 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9026 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9028 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9029 apzGlibc_C99_Inline_3Machs,
9030 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9031 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9033 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9034 apzGlibc_C99_Inline_4Machs,
9035 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9036 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9038 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9039 apzGlibc_Mutex_InitMachs,
9040 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9041 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9043 { zGnu_TypesName, zGnu_TypesList,
9045 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9046 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9048 { zHp_InlineName, zHp_InlineList,
9050 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9051 aHp_InlineTests, apzHp_InlinePatch, 0 },
9053 { zHp_SysfileName, zHp_SysfileList,
9055 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9056 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9058 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9059 apzHpux10_Cpp_Pow_InlineMachs,
9060 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9061 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9063 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9064 apzHpux11_Cpp_Pow_InlineMachs,
9065 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9066 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9068 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9069 apzHppa_Hpux_Fp_MacrosMachs,
9070 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9071 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9073 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9074 apzHpux10_Ctype_Declarations1Machs,
9075 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9076 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9078 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9079 apzHpux10_Ctype_Declarations2Machs,
9080 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9081 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9083 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9084 apzHpux10_Stdio_DeclarationsMachs,
9085 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9086 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9088 { zHpux11_AbsName, zHpux11_AbsList,
9090 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9091 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9093 { zHpux11_FabsfName, zHpux11_FabsfList,
9094 apzHpux11_FabsfMachs,
9095 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9096 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9098 { zHpux11_Size_TName, zHpux11_Size_TList,
9099 apzHpux11_Size_TMachs,
9100 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9101 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9103 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9104 apzHpux11_SnprintfMachs,
9105 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9106 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9108 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
9109 apzHpux11_Uint32_CMachs,
9110 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9111 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
9113 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9114 apzHpux11_VsnprintfMachs,
9115 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9116 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9118 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9119 apzHpux8_Bogus_InlinesMachs,
9120 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9121 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9123 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9124 apzHpux_Ctype_MacrosMachs,
9125 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9126 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9128 { zHpux_HtonlName, zHpux_HtonlList,
9130 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9131 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9133 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9134 apzHpux_Long_DoubleMachs,
9135 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9136 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9138 { zHpux_SystimeName, zHpux_SystimeList,
9139 apzHpux_SystimeMachs,
9140 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9141 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9143 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9144 apzHpux_Spu_InfoMachs,
9145 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9146 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9148 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9149 apzHpux11_Extern_SendfileMachs,
9150 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9151 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9153 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9154 apzHpux11_Extern_SendpathMachs,
9155 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9156 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9158 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9159 apzHpux_Extern_ErrnoMachs,
9160 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9161 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9163 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9164 apzHpux11_Pthread_ConstMachs,
9165 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9166 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9168 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9169 apzHpux_Pthread_InitializersMachs,
9170 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9171 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9173 { zHuge_Val_HexName, zHuge_Val_HexList,
9174 apzHuge_Val_HexMachs,
9175 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9176 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9178 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9179 apzHuge_Valf_HexMachs,
9180 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9181 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9183 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9184 apzHuge_Vall_HexMachs,
9185 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9186 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9188 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9189 apzInt_Abort_Free_And_ExitMachs,
9190 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9191 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9193 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9194 apzIo_Quotes_DefMachs,
9195 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9196 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9198 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9199 apzIo_Quotes_UseMachs,
9200 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9201 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9203 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9204 apzIp_Missing_SemiMachs,
9205 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9206 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9208 { zIrix___RestrictName, zIrix___RestrictList,
9209 apzIrix___RestrictMachs,
9210 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9211 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9213 { zIrix___Generic1Name, zIrix___Generic1List,
9214 apzIrix___Generic1Machs,
9215 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9216 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9218 { zIrix___Generic2Name, zIrix___Generic2List,
9219 apzIrix___Generic2Machs,
9220 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9221 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9223 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9224 apzIrix_Asm_ApostropheMachs,
9225 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9226 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9228 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9229 apzIrix_Limits_ConstMachs,
9230 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9231 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9233 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9234 apzIrix_Socklen_TMachs,
9235 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9236 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9238 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
9239 apzIrix_Stdint_C99Machs,
9240 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9241 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
9243 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9244 apzIrix_Stdio_Va_ListMachs,
9245 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9246 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9248 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9249 apzIrix_WcsftimeMachs,
9250 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9251 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9253 { zIsc_FmodName, zIsc_FmodList,
9255 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9256 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
9258 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
9259 apzIsc_Omits_With_StdcMachs,
9260 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9261 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
9263 { zKandr_ConcatName, zKandr_ConcatList,
9264 apzKandr_ConcatMachs,
9265 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9266 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9268 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
9269 apzLibc1_G_Va_ListMachs,
9270 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9271 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
9273 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
9274 apzLibc1_Ifdefd_MemxMachs,
9275 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9276 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
9278 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9279 apzLinux_Ia64_UcontextMachs,
9280 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9281 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9283 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9284 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9285 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9286 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9288 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9289 apzLynxos_Missing_PutenvMachs,
9290 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9291 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9293 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9294 apzMachine_Ansi_H_Va_ListMachs,
9295 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9296 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9298 { zMachine_NameName, zMachine_NameList,
9299 apzMachine_NameMachs,
9300 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9301 aMachine_NameTests, apzMachine_NamePatch, 0 },
9303 { zMath_ExceptionName, zMath_ExceptionList,
9304 apzMath_ExceptionMachs,
9305 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9306 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9308 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9309 apzMath_Huge_Val_From_Dbl_MaxMachs,
9310 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9311 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9313 { zNested_Auth_DesName, zNested_Auth_DesList,
9314 apzNested_Auth_DesMachs,
9315 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9316 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9318 { zNested_MotorolaName, zNested_MotorolaList,
9319 apzNested_MotorolaMachs,
9320 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9321 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
9323 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
9324 apzNested_Sys_LimitsMachs,
9325 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9326 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
9328 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9329 apzNetbsd_C99_Inline_1Machs,
9330 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9331 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9333 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9334 apzNetbsd_C99_Inline_2Machs,
9335 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9336 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9338 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9339 apzNetbsd_Extra_SemicolonMachs,
9340 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9341 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9343 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9344 apzNext_Math_PrefixMachs,
9345 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9346 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9348 { zNext_TemplateName, zNext_TemplateList,
9349 apzNext_TemplateMachs,
9350 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9351 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9353 { zNext_VolitileName, zNext_VolitileList,
9354 apzNext_VolitileMachs,
9355 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9356 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9358 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9359 apzNext_Wait_UnionMachs,
9360 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9361 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9363 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9364 apzNodeent_SyntaxMachs,
9365 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9366 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9368 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9369 apzObstack_Lvalue_CastMachs,
9370 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9371 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9373 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9374 apzOsf_Namespace_AMachs,
9375 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9376 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9378 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9379 apzOsf_Namespace_CMachs,
9380 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9381 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9383 { zPthread_Page_SizeName, zPthread_Page_SizeList,
9384 apzPthread_Page_SizeMachs,
9385 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9386 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
9388 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9389 apzPthread_Incomplete_Struct_ArgumentMachs,
9390 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9391 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9393 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9394 apzRead_Ret_TypeMachs,
9395 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9396 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9398 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9399 apzRpc_Xdr_Lvalue_Cast_AMachs,
9400 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9401 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9403 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9404 apzRpc_Xdr_Lvalue_Cast_BMachs,
9405 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9406 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9408 { zRs6000_DoubleName, zRs6000_DoubleList,
9409 apzRs6000_DoubleMachs,
9410 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9411 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9413 { zRs6000_FchmodName, zRs6000_FchmodList,
9414 apzRs6000_FchmodMachs,
9415 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9416 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9418 { zRs6000_ParamName, zRs6000_ParamList,
9419 apzRs6000_ParamMachs,
9420 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9421 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9423 { zSco_MathName, zSco_MathList,
9425 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9426 aSco_MathTests, apzSco_MathPatch, 0 },
9428 { zSco_RegsetName, zSco_RegsetList,
9430 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9431 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
9433 { zSco_Static_FuncName, zSco_Static_FuncList,
9434 apzSco_Static_FuncMachs,
9435 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9436 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
9438 { zSco_UtimeName, zSco_UtimeList,
9440 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9441 aSco_UtimeTests, apzSco_UtimePatch, 0 },
9443 { zSolaris_Math_1Name, zSolaris_Math_1List,
9444 apzSolaris_Math_1Machs,
9445 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9446 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9448 { zSolaris_Math_2Name, zSolaris_Math_2List,
9449 apzSolaris_Math_2Machs,
9450 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9451 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9453 { zSolaris_Math_3Name, zSolaris_Math_3List,
9454 apzSolaris_Math_3Machs,
9455 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9456 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9458 { zSolaris_Math_4Name, zSolaris_Math_4List,
9459 apzSolaris_Math_4Machs,
9460 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9461 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9463 { zSolaris_Math_8Name, zSolaris_Math_8List,
9464 apzSolaris_Math_8Machs,
9465 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9466 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9468 { zSolaris_Math_9Name, zSolaris_Math_9List,
9469 apzSolaris_Math_9Machs,
9470 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9471 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9473 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9474 apzSolaris_Mutex_Init_1Machs,
9475 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9476 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9478 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9479 apzSolaris_Mutex_Init_2Machs,
9480 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9481 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9483 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9484 apzSolaris_Rwlock_Init_1Machs,
9485 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9486 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9488 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9489 apzSolaris_Once_Init_1Machs,
9490 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9491 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9493 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9494 apzSolaris_Once_Init_2Machs,
9495 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9496 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9498 { zSolaris_SocketName, zSolaris_SocketList,
9499 apzSolaris_SocketMachs,
9500 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9501 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9503 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9504 apzSolaris_Stdio_TagMachs,
9505 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9506 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9508 { zSolaris_UnistdName, zSolaris_UnistdList,
9509 apzSolaris_UnistdMachs,
9510 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9511 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9513 { zSolaris_WidecName, zSolaris_WidecList,
9514 apzSolaris_WidecMachs,
9515 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9516 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9518 { zStatsswtchName, zStatsswtchList,
9520 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9521 aStatsswtchTests, apzStatsswtchPatch, 0 },
9523 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9524 apzStdio_Stdarg_HMachs,
9525 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9526 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9528 { zStdio_Va_ListName, zStdio_Va_ListList,
9529 apzStdio_Va_ListMachs,
9530 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9531 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9533 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9534 apzStdio_Va_List_ClientsMachs,
9535 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9536 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9538 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9539 apzStrict_Ansi_NotMachs,
9540 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9541 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9543 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9544 apzStrict_Ansi_Not_CtdMachs,
9545 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9546 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9548 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9549 apzStrict_Ansi_OnlyMachs,
9550 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9551 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9553 { zStruct_FileName, zStruct_FileList,
9554 apzStruct_FileMachs,
9555 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9556 aStruct_FileTests, apzStruct_FilePatch, 0 },
9558 { zStruct_SockaddrName, zStruct_SockaddrList,
9559 apzStruct_SockaddrMachs,
9560 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9561 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9563 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9564 apzSun_Auth_ProtoMachs,
9565 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9566 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9568 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9569 apzSun_Bogus_IfdefMachs,
9570 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9571 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9573 { zSun_CatmacroName, zSun_CatmacroList,
9574 apzSun_CatmacroMachs,
9575 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9576 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9578 { zSun_MallocName, zSun_MallocList,
9580 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9581 aSun_MallocTests, apzSun_MallocPatch, 0 },
9583 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9584 apzSun_Rusers_SemiMachs,
9585 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9586 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9588 { zSun_SignalName, zSun_SignalList,
9590 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9591 aSun_SignalTests, apzSun_SignalPatch, 0 },
9593 { zSunos_StrlenName, zSunos_StrlenList,
9594 apzSunos_StrlenMachs,
9595 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9596 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9598 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9599 apzSvr4_Disable_OptMachs,
9600 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9601 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9603 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9604 apzSvr4_GetcwdMachs,
9605 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9606 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9608 { zSvr4_KrnlName, zSvr4_KrnlList,
9610 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9611 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9613 { zSvr4_ProfilName, zSvr4_ProfilList,
9614 apzSvr4_ProfilMachs,
9615 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9616 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9618 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9619 apzSvr4_Sighandler_TypeMachs,
9620 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9621 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9623 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9624 apzSvr4_Undeclared_GetrngeMachs,
9625 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9626 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9628 { zSysv68_StringName, zSysv68_StringList,
9629 apzSysv68_StringMachs,
9630 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9631 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9633 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9634 apzSysz_Stdlib_For_SunMachs,
9635 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9636 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9638 { zThread_KeywordName, zThread_KeywordList,
9639 apzThread_KeywordMachs,
9640 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9641 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9643 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9644 apzTinfo_CplusplusMachs,
9645 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9646 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9648 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9649 apzUltrix_Atexit_ParamMachs,
9650 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9651 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9653 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9654 apzUltrix_Atof_ParamMachs,
9655 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9656 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9658 { zUltrix_ConstName, zUltrix_ConstList,
9659 apzUltrix_ConstMachs,
9660 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9661 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9663 { zUltrix_Const2Name, zUltrix_Const2List,
9664 apzUltrix_Const2Machs,
9665 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9666 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9668 { zUltrix_Const3Name, zUltrix_Const3List,
9669 apzUltrix_Const3Machs,
9670 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9671 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9673 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9674 apzUltrix_Fix_FixprotoMachs,
9675 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9676 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9678 { zUltrix_IfdefName, zUltrix_IfdefList,
9679 apzUltrix_IfdefMachs,
9680 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9681 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9683 { zUltrix_LocaleName, zUltrix_LocaleList,
9684 apzUltrix_LocaleMachs,
9685 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9686 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9688 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9689 apzUltrix_Math_IfdefMachs,
9690 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9691 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9693 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9694 apzUltrix_Nested_IoctlMachs,
9695 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9696 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9698 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9699 apzUltrix_Nested_SvcMachs,
9700 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9701 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9703 { zUltrix_StatName, zUltrix_StatList,
9704 apzUltrix_StatMachs,
9705 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9706 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9708 { zUltrix_StaticName, zUltrix_StaticList,
9709 apzUltrix_StaticMachs,
9710 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9711 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9713 { zUltrix_StdlibName, zUltrix_StdlibList,
9714 apzUltrix_StdlibMachs,
9715 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9716 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9718 { zUltrix_StringsName, zUltrix_StringsList,
9719 apzUltrix_StringsMachs,
9720 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9721 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9723 { zUltrix_Strings2Name, zUltrix_Strings2List,
9724 apzUltrix_Strings2Machs,
9725 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9726 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9728 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9729 apzUltrix_Sys_TimeMachs,
9730 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9731 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9733 { zUltrix_UnistdName, zUltrix_UnistdList,
9734 apzUltrix_UnistdMachs,
9735 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9736 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9738 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9739 apzUnicosmk_RestrictMachs,
9740 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9741 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9743 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9744 apzUw7_Byteorder_FixMachs,
9745 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9746 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9748 { zVa_I960_MacroName, zVa_I960_MacroList,
9749 apzVa_I960_MacroMachs,
9750 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9751 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9753 { zVoid_NullName, zVoid_NullList,
9755 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9756 aVoid_NullTests, apzVoid_NullPatch, 0 },
9758 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9759 apzVxworks_Gcc_ProblemMachs,
9760 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9761 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9763 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9764 apzVxworks_Needs_VxtypesMachs,
9765 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9766 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9768 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9769 apzVxworks_Needs_VxworksMachs,
9770 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9771 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9773 { zVxworks_TimeName, zVxworks_TimeList,
9774 apzVxworks_TimeMachs,
9775 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9776 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9778 { zWindiss_Math1Name, zWindiss_Math1List,
9779 apzWindiss_Math1Machs,
9780 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9781 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9783 { zWindiss_Math2Name, zWindiss_Math2List,
9784 apzWindiss_Math2Machs,
9785 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9786 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9788 { zWindiss_ValistName, zWindiss_ValistList,
9789 apzWindiss_ValistMachs,
9790 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9791 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9793 { zX11_ClassName, zX11_ClassList,
9795 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9796 aX11_ClassTests, apzX11_ClassPatch, 0 },
9798 { zX11_Class_UsageName, zX11_Class_UsageList,
9799 apzX11_Class_UsageMachs,
9800 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9801 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9803 { zX11_NewName, zX11_NewList,
9805 X11_NEW_TEST_CT, FD_MACH_ONLY,
9806 aX11_NewTests, apzX11_NewPatch, 0 },
9808 { zX11_SprintfName, zX11_SprintfList,
9809 apzX11_SprintfMachs,
9810 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9811 aX11_SprintfTests, apzX11_SprintfPatch, 0 }