1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Wednesday February 20, 2008 at 05:10:00 AM CET
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Wed Feb 20 05:10:00 CET 2008
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 212 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_1a fix
2270 tSCC zGlibc_C99_Inline_1aName[] =
2271 "glibc_c99_inline_1a";
2274 * File name selection pattern
2276 tSCC zGlibc_C99_Inline_1aList[] =
2277 "features.h\0*/features.h\0";
2279 * Machine/OS name selection pattern
2281 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2284 * content selection pattern - do fix if pattern found
2286 tSCC zGlibc_C99_Inline_1aSelect0[] =
2287 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2288 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2290 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2291 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2292 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2295 * Fix Command Arguments for Glibc_C99_Inline_1a
2297 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2299 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2303 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2305 * Description of Glibc_C99_Inline_2 fix
2307 tSCC zGlibc_C99_Inline_2Name[] =
2308 "glibc_c99_inline_2";
2311 * File name selection pattern
2313 tSCC zGlibc_C99_Inline_2List[] =
2314 "sys/stat.h\0*/sys/stat.h\0";
2316 * Machine/OS name selection pattern
2318 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2321 * content selection pattern - do fix if pattern found
2323 tSCC zGlibc_C99_Inline_2Select0[] =
2324 "extern __inline__ int";
2326 #define GLIBC_C99_INLINE_2_TEST_CT 1
2327 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2328 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2331 * Fix Command Arguments for Glibc_C99_Inline_2
2333 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2334 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2337 __inline__ int \\1/",
2338 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2341 __inline__ int __REDIRECT\\1 (\\2/",
2342 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2350 * Description of Glibc_C99_Inline_3 fix
2352 tSCC zGlibc_C99_Inline_3Name[] =
2353 "glibc_c99_inline_3";
2356 * File name selection pattern
2358 tSCC zGlibc_C99_Inline_3List[] =
2359 "bits/string2.h\0*/bits/string2.h\0";
2361 * Machine/OS name selection pattern
2363 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2366 * content selection pattern - do fix if pattern found
2368 tSCC zGlibc_C99_Inline_3Select0[] =
2372 * content bypass pattern - skip fix if pattern found
2374 tSCC zGlibc_C99_Inline_3Bypass0[] =
2375 "__extern_inline|__GNU_STDC_INLINE__";
2377 #define GLIBC_C99_INLINE_3_TEST_CT 2
2378 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2379 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2380 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2383 * Fix Command Arguments for Glibc_C99_Inline_3
2385 static const char* apzGlibc_C99_Inline_3Patch[] = {
2387 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2388 "^# ifdef __cplusplus$",
2391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2393 * Description of Glibc_C99_Inline_4 fix
2395 tSCC zGlibc_C99_Inline_4Name[] =
2396 "glibc_c99_inline_4";
2399 * File name selection pattern
2401 tSCC zGlibc_C99_Inline_4List[] =
2402 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2404 * Machine/OS name selection pattern
2406 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2409 * content selection pattern - do fix if pattern found
2411 tSCC zGlibc_C99_Inline_4Select0[] =
2412 "(^| )extern __inline";
2415 * content bypass pattern - skip fix if pattern found
2417 tSCC zGlibc_C99_Inline_4Bypass0[] =
2418 "__extern_inline|__gnu_inline__";
2420 #define GLIBC_C99_INLINE_4_TEST_CT 2
2421 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2422 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2423 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2426 * Fix Command Arguments for Glibc_C99_Inline_4
2428 static const char* apzGlibc_C99_Inline_4Patch[] = {
2430 "%0 __attribute__ ((__gnu_inline__))",
2433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2435 * Description of Glibc_Mutex_Init fix
2437 tSCC zGlibc_Mutex_InitName[] =
2441 * File name selection pattern
2443 tSCC zGlibc_Mutex_InitList[] =
2446 * Machine/OS name selection pattern
2448 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2451 * content selection pattern - do fix if pattern found
2453 tSCC zGlibc_Mutex_InitSelect0[] =
2454 "\\{ *\\{ *0, *\\} *\\}";
2456 #define GLIBC_MUTEX_INIT_TEST_CT 1
2457 static tTestDesc aGlibc_Mutex_InitTests[] = {
2458 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2461 * Fix Command Arguments for Glibc_Mutex_Init
2463 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2464 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2465 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2466 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2467 "-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/",
2468 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2469 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2472 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2474 * Description of Gnu_Types fix
2476 tSCC zGnu_TypesName[] =
2480 * File name selection pattern
2482 tSCC zGnu_TypesList[] =
2483 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2485 * Machine/OS name selection pattern
2487 tSCC* apzGnu_TypesMachs[] = {
2488 "*-*-solaris2.1[0-9]*",
2489 (const char*)NULL };
2492 * content selection pattern - do fix if pattern found
2494 tSCC zGnu_TypesSelect0[] =
2495 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2498 * content bypass pattern - skip fix if pattern found
2500 tSCC zGnu_TypesBypass0[] =
2501 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2503 #define GNU_TYPES_TEST_CT 2
2504 static tTestDesc aGnu_TypesTests[] = {
2505 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2506 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2509 * Fix Command Arguments for Gnu_Types
2511 static const char* apzGnu_TypesPatch[] = {
2515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2517 * Description of Hp_Inline fix
2519 tSCC zHp_InlineName[] =
2523 * File name selection pattern
2525 tSCC zHp_InlineList[] =
2526 "sys/spinlock.h\0machine/machparam.h\0";
2528 * Machine/OS name selection pattern
2530 #define apzHp_InlineMachs (const char**)NULL
2533 * content selection pattern - do fix if pattern found
2535 tSCC zHp_InlineSelect0[] =
2536 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2538 #define HP_INLINE_TEST_CT 1
2539 static tTestDesc aHp_InlineTests[] = {
2540 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2543 * Fix Command Arguments for Hp_Inline
2545 static const char* apzHp_InlinePatch[] = {
2548 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2553 * Description of Hp_Sysfile fix
2555 tSCC zHp_SysfileName[] =
2559 * File name selection pattern
2561 tSCC zHp_SysfileList[] =
2564 * Machine/OS name selection pattern
2566 #define apzHp_SysfileMachs (const char**)NULL
2569 * content selection pattern - do fix if pattern found
2571 tSCC zHp_SysfileSelect0[] =
2574 #define HP_SYSFILE_TEST_CT 1
2575 static tTestDesc aHp_SysfileTests[] = {
2576 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2579 * Fix Command Arguments for Hp_Sysfile
2581 static const char* apzHp_SysfilePatch[] = {
2583 "(struct file *, ...)",
2587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2589 * Description of Hpux10_Cpp_Pow_Inline fix
2591 tSCC zHpux10_Cpp_Pow_InlineName[] =
2592 "hpux10_cpp_pow_inline";
2595 * File name selection pattern
2597 tSCC zHpux10_Cpp_Pow_InlineList[] =
2598 "fixinc-test-limits.h\0math.h\0";
2600 * Machine/OS name selection pattern
2602 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2605 * content selection pattern - do fix if pattern found
2607 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2608 "^# +ifdef +__cplusplus\n\
2610 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2611 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2613 +extern +\"C\" +\\{\n\
2617 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2618 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2619 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2622 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2624 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2631 * Description of Hpux11_Cpp_Pow_Inline fix
2633 tSCC zHpux11_Cpp_Pow_InlineName[] =
2634 "hpux11_cpp_pow_inline";
2637 * File name selection pattern
2639 tSCC zHpux11_Cpp_Pow_InlineList[] =
2642 * Machine/OS name selection pattern
2644 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2647 * content selection pattern - do fix if pattern found
2649 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2650 " +inline double pow\\(double d,int expon\\) \\{\n\
2651 +return pow\\(d, \\(double\\)expon\\);\n\
2654 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2655 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2656 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2659 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2661 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2668 * Description of Hppa_Hpux_Fp_Macros fix
2670 tSCC zHppa_Hpux_Fp_MacrosName[] =
2671 "hppa_hpux_fp_macros";
2674 * File name selection pattern
2676 tSCC zHppa_Hpux_Fp_MacrosList[] =
2679 * Machine/OS name selection pattern
2681 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2683 (const char*)NULL };
2686 * content selection pattern - do fix if pattern found
2688 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2689 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2690 #[ \t]*define[ \t]*FP_ZERO.*\n\
2691 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2692 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2693 #[ \t]*define[ \t]*FP_NAN.*\n";
2695 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2696 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2697 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2700 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2702 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2704 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2705 #if defined(_INCLUDE_HPUX_SOURCE) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2707 #ifdef _INCLUDE_HPUX_SOURCE\n",
2710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2712 * Description of Hpux10_Ctype_Declarations1 fix
2714 tSCC zHpux10_Ctype_Declarations1Name[] =
2715 "hpux10_ctype_declarations1";
2718 * File name selection pattern
2720 tSCC zHpux10_Ctype_Declarations1List[] =
2723 * Machine/OS name selection pattern
2725 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2728 * content selection pattern - do fix if pattern found
2730 tSCC zHpux10_Ctype_Declarations1Select0[] =
2731 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2734 * content bypass pattern - skip fix if pattern found
2736 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2737 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2739 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2740 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2741 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2742 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2745 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2747 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2749 "#ifdef _PROTOTYPES\n\
2750 extern int __tolower(int);\n\
2751 extern int __toupper(int);\n\
2752 #else /* NOT _PROTOTYPES */\n\
2753 extern int __tolower();\n\
2754 extern int __toupper();\n\
2755 #endif /* _PROTOTYPES */\n\n\
2759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2761 * Description of Hpux10_Ctype_Declarations2 fix
2763 tSCC zHpux10_Ctype_Declarations2Name[] =
2764 "hpux10_ctype_declarations2";
2767 * File name selection pattern
2769 tSCC zHpux10_Ctype_Declarations2List[] =
2772 * Machine/OS name selection pattern
2774 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2777 * content selection pattern - do fix if pattern found
2779 tSCC zHpux10_Ctype_Declarations2Select0[] =
2780 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2783 * content bypass pattern - skip fix if pattern found
2785 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2786 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2788 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2789 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2790 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2791 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2794 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2796 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2799 #ifdef _PROTOTYPES\n\
2800 extern int _isalnum(int);\n\
2801 extern int _isalpha(int);\n\
2802 extern int _iscntrl(int);\n\
2803 extern int _isdigit(int);\n\
2804 extern int _isgraph(int);\n\
2805 extern int _islower(int);\n\
2806 extern int _isprint(int);\n\
2807 extern int _ispunct(int);\n\
2808 extern int _isspace(int);\n\
2809 extern int _isupper(int);\n\
2810 extern int _isxdigit(int);\n\
2811 # else /* not _PROTOTYPES */\n\
2812 extern int _isalnum();\n\
2813 extern int _isalpha();\n\
2814 extern int _iscntrl();\n\
2815 extern int _isdigit();\n\
2816 extern int _isgraph();\n\
2817 extern int _islower();\n\
2818 extern int _isprint();\n\
2819 extern int _ispunct();\n\
2820 extern int _isspace();\n\
2821 extern int _isupper();\n\
2822 extern int _isxdigit();\n\
2823 #endif /* _PROTOTYPES */\n",
2826 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2828 * Description of Hpux10_Stdio_Declarations fix
2830 tSCC zHpux10_Stdio_DeclarationsName[] =
2831 "hpux10_stdio_declarations";
2834 * File name selection pattern
2836 tSCC zHpux10_Stdio_DeclarationsList[] =
2839 * Machine/OS name selection pattern
2841 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2844 * content selection pattern - do fix if pattern found
2846 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2847 "^#[ \t]*define _iob[ \t]*__iob";
2850 * content bypass pattern - skip fix if pattern found
2852 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2853 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2855 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2856 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2857 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2858 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2861 * Fix Command Arguments for Hpux10_Stdio_Declarations
2863 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2866 # if defined(__STDC__) || defined(__cplusplus)\n\
2867 extern int snprintf(char *, size_t, const char *, ...);\n\
2868 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2869 # else /* not __STDC__) || __cplusplus */\n\
2870 extern int snprintf();\n\
2871 extern int vsnprintf();\n\
2872 # endif /* __STDC__) || __cplusplus */\n",
2875 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2877 * Description of Hpux11_Abs fix
2879 tSCC zHpux11_AbsName[] =
2883 * File name selection pattern
2885 tSCC zHpux11_AbsList[] =
2888 * Machine/OS name selection pattern
2890 tSCC* apzHpux11_AbsMachs[] = {
2892 (const char*)NULL };
2895 * content selection pattern - do fix if pattern found
2897 tSCC zHpux11_AbsSelect0[] =
2898 "ifndef _MATH_INCLUDED";
2900 #define HPUX11_ABS_TEST_CT 1
2901 static tTestDesc aHpux11_AbsTests[] = {
2902 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2905 * Fix Command Arguments for Hpux11_Abs
2907 static const char* apzHpux11_AbsPatch[] = {
2909 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2912 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2914 * Description of Hpux11_Fabsf fix
2916 tSCC zHpux11_FabsfName[] =
2920 * File name selection pattern
2922 tSCC zHpux11_FabsfList[] =
2925 * Machine/OS name selection pattern
2927 #define apzHpux11_FabsfMachs (const char**)NULL
2930 * content selection pattern - do fix if pattern found
2932 tSCC zHpux11_FabsfSelect0[] =
2933 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2936 * content bypass pattern - skip fix if pattern found
2938 tSCC zHpux11_FabsfBypass0[] =
2941 #define HPUX11_FABSF_TEST_CT 2
2942 static tTestDesc aHpux11_FabsfTests[] = {
2943 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2944 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2947 * Fix Command Arguments for Hpux11_Fabsf
2949 static const char* apzHpux11_FabsfPatch[] = {
2951 "#ifndef __cplusplus\n\
2956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2958 * Description of Hpux11_Size_T fix
2960 tSCC zHpux11_Size_TName[] =
2964 * File name selection pattern
2966 #define zHpux11_Size_TList (char*)NULL
2968 * Machine/OS name selection pattern
2970 tSCC* apzHpux11_Size_TMachs[] = {
2972 (const char*)NULL };
2975 * content selection pattern - do fix if pattern found
2977 tSCC zHpux11_Size_TSelect0[] =
2980 #define HPUX11_SIZE_T_TEST_CT 1
2981 static tTestDesc aHpux11_Size_TTests[] = {
2982 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2985 * Fix Command Arguments for Hpux11_Size_T
2987 static const char* apzHpux11_Size_TPatch[] = {
2992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2994 * Description of Hpux11_Snprintf fix
2996 tSCC zHpux11_SnprintfName[] =
3000 * File name selection pattern
3002 tSCC zHpux11_SnprintfList[] =
3005 * Machine/OS name selection pattern
3007 #define apzHpux11_SnprintfMachs (const char**)NULL
3010 * content selection pattern - do fix if pattern found
3012 tSCC zHpux11_SnprintfSelect0[] =
3013 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3015 #define HPUX11_SNPRINTF_TEST_CT 1
3016 static tTestDesc aHpux11_SnprintfTests[] = {
3017 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3020 * Fix Command Arguments for Hpux11_Snprintf
3022 static const char* apzHpux11_SnprintfPatch[] = {
3027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3029 * Description of Hpux11_Uint32_C fix
3031 tSCC zHpux11_Uint32_CName[] =
3035 * File name selection pattern
3037 tSCC zHpux11_Uint32_CList[] =
3040 * Machine/OS name selection pattern
3042 #define apzHpux11_Uint32_CMachs (const char**)NULL
3045 * content selection pattern - do fix if pattern found
3047 tSCC zHpux11_Uint32_CSelect0[] =
3048 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
3050 #define HPUX11_UINT32_C_TEST_CT 1
3051 static tTestDesc aHpux11_Uint32_CTests[] = {
3052 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
3055 * Fix Command Arguments for Hpux11_Uint32_C
3057 static const char* apzHpux11_Uint32_CPatch[] = {
3059 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
3062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3064 * Description of Hpux11_Vsnprintf fix
3066 tSCC zHpux11_VsnprintfName[] =
3070 * File name selection pattern
3072 tSCC zHpux11_VsnprintfList[] =
3075 * Machine/OS name selection pattern
3077 #define apzHpux11_VsnprintfMachs (const char**)NULL
3080 * content selection pattern - do fix if pattern found
3082 tSCC zHpux11_VsnprintfSelect0[] =
3083 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3085 #define HPUX11_VSNPRINTF_TEST_CT 1
3086 static tTestDesc aHpux11_VsnprintfTests[] = {
3087 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3090 * Fix Command Arguments for Hpux11_Vsnprintf
3092 static const char* apzHpux11_VsnprintfPatch[] = {
3097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3099 * Description of Hpux8_Bogus_Inlines fix
3101 tSCC zHpux8_Bogus_InlinesName[] =
3102 "hpux8_bogus_inlines";
3105 * File name selection pattern
3107 tSCC zHpux8_Bogus_InlinesList[] =
3110 * Machine/OS name selection pattern
3112 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3115 * content selection pattern - do fix if pattern found
3117 tSCC zHpux8_Bogus_InlinesSelect0[] =
3121 * content bypass pattern - skip fix if pattern found
3123 tSCC zHpux8_Bogus_InlinesBypass0[] =
3126 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3127 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3128 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3129 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3132 * Fix Command Arguments for Hpux8_Bogus_Inlines
3134 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
3135 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3136 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3137 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3138 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3143 * Description of Hpux_Ctype_Macros fix
3145 tSCC zHpux_Ctype_MacrosName[] =
3146 "hpux_ctype_macros";
3149 * File name selection pattern
3151 tSCC zHpux_Ctype_MacrosList[] =
3154 * Machine/OS name selection pattern
3156 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3159 * content selection pattern - do fix if pattern found
3161 tSCC zHpux_Ctype_MacrosSelect0[] =
3162 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3164 #define HPUX_CTYPE_MACROS_TEST_CT 1
3165 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3166 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3169 * Fix Command Arguments for Hpux_Ctype_Macros
3171 static const char* apzHpux_Ctype_MacrosPatch[] = {
3176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3178 * Description of Hpux_Htonl fix
3180 tSCC zHpux_HtonlName[] =
3184 * File name selection pattern
3186 tSCC zHpux_HtonlList[] =
3189 * Machine/OS name selection pattern
3191 #define apzHpux_HtonlMachs (const char**)NULL
3194 * content selection pattern - do fix if pattern found
3196 tSCC zHpux_HtonlSelect0[] =
3197 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3199 \\* Macros for number representation conversion\\.\n\
3203 #define HPUX_HTONL_TEST_CT 1
3204 static tTestDesc aHpux_HtonlTests[] = {
3205 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3208 * Fix Command Arguments for Hpux_Htonl
3210 static const char* apzHpux_HtonlPatch[] = {
3216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3218 * Description of Hpux_Long_Double fix
3220 tSCC zHpux_Long_DoubleName[] =
3224 * File name selection pattern
3226 tSCC zHpux_Long_DoubleList[] =
3229 * Machine/OS name selection pattern
3231 #define apzHpux_Long_DoubleMachs (const char**)NULL
3234 * content selection pattern - do fix if pattern found
3236 tSCC zHpux_Long_DoubleSelect0[] =
3237 "extern[ \t]long_double[ \t]strtold";
3240 * content bypass pattern - skip fix if pattern found
3242 tSCC zHpux_Long_DoubleBypass0[] =
3245 #define HPUX_LONG_DOUBLE_TEST_CT 2
3246 static tTestDesc aHpux_Long_DoubleTests[] = {
3247 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3248 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3251 * Fix Command Arguments for Hpux_Long_Double
3253 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3254 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3255 "-e", "s/long_double/long double/g",
3258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3260 * Description of Hpux_Systime fix
3262 tSCC zHpux_SystimeName[] =
3266 * File name selection pattern
3268 tSCC zHpux_SystimeList[] =
3271 * Machine/OS name selection pattern
3273 #define apzHpux_SystimeMachs (const char**)NULL
3276 * content selection pattern - do fix if pattern found
3278 tSCC zHpux_SystimeSelect0[] =
3279 "^extern struct sigevent;";
3281 #define HPUX_SYSTIME_TEST_CT 1
3282 static tTestDesc aHpux_SystimeTests[] = {
3283 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3286 * Fix Command Arguments for Hpux_Systime
3288 static const char* apzHpux_SystimePatch[] = {
3293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3295 * Description of Hpux_Spu_Info fix
3297 tSCC zHpux_Spu_InfoName[] =
3301 * File name selection pattern
3303 tSCC zHpux_Spu_InfoList[] =
3304 "ia64/sys/getppdp.h\0";
3306 * Machine/OS name selection pattern
3308 tSCC* apzHpux_Spu_InfoMachs[] = {
3310 (const char*)NULL };
3313 * content selection pattern - do fix if pattern found
3315 tSCC zHpux_Spu_InfoSelect0[] =
3316 "^.*extern.*spu_info.*";
3318 #define HPUX_SPU_INFO_TEST_CT 1
3319 static tTestDesc aHpux_Spu_InfoTests[] = {
3320 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3323 * Fix Command Arguments for Hpux_Spu_Info
3325 static const char* apzHpux_Spu_InfoPatch[] = {
3332 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3334 * Description of Hpux11_Extern_Sendfile fix
3336 tSCC zHpux11_Extern_SendfileName[] =
3337 "hpux11_extern_sendfile";
3340 * File name selection pattern
3342 tSCC zHpux11_Extern_SendfileList[] =
3345 * Machine/OS name selection pattern
3347 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3348 "*-hp-hpux11.[12]*",
3349 (const char*)NULL };
3352 * content selection pattern - do fix if pattern found
3354 tSCC zHpux11_Extern_SendfileSelect0[] =
3355 "^[ \t]*extern sbsize_t sendfile.*\n\
3358 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3359 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3360 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3363 * Fix Command Arguments for Hpux11_Extern_Sendfile
3365 static const char* apzHpux11_Extern_SendfilePatch[] = {
3367 "#ifndef _APP32_64BIT_OFF_T\n\
3371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3373 * Description of Hpux11_Extern_Sendpath fix
3375 tSCC zHpux11_Extern_SendpathName[] =
3376 "hpux11_extern_sendpath";
3379 * File name selection pattern
3381 tSCC zHpux11_Extern_SendpathList[] =
3384 * Machine/OS name selection pattern
3386 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3387 "*-hp-hpux11.[12]*",
3388 (const char*)NULL };
3391 * content selection pattern - do fix if pattern found
3393 tSCC zHpux11_Extern_SendpathSelect0[] =
3394 "^[ \t]*extern sbsize_t sendpath.*\n\
3397 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3398 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3399 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3402 * Fix Command Arguments for Hpux11_Extern_Sendpath
3404 static const char* apzHpux11_Extern_SendpathPatch[] = {
3406 "#ifndef _APP32_64BIT_OFF_T\n\
3410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3412 * Description of Hpux_Extern_Errno fix
3414 tSCC zHpux_Extern_ErrnoName[] =
3415 "hpux_extern_errno";
3418 * File name selection pattern
3420 tSCC zHpux_Extern_ErrnoList[] =
3423 * Machine/OS name selection pattern
3425 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3427 "*-hp-hpux11.[0-2]*",
3428 (const char*)NULL };
3431 * content selection pattern - do fix if pattern found
3433 tSCC zHpux_Extern_ErrnoSelect0[] =
3434 "^[ \t]*extern int errno;$";
3436 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3437 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3438 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3441 * Fix Command Arguments for Hpux_Extern_Errno
3443 static const char* apzHpux_Extern_ErrnoPatch[] = {
3445 "#ifdef __cplusplus\n\
3449 #ifdef __cplusplus\n\
3454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3456 * Description of Hpux11_Pthread_Const fix
3458 tSCC zHpux11_Pthread_ConstName[] =
3459 "hpux11_pthread_const";
3462 * File name selection pattern
3464 tSCC zHpux11_Pthread_ConstList[] =
3467 * Machine/OS name selection pattern
3469 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3470 "*-hp-hpux11.[0-3]*",
3471 (const char*)NULL };
3474 * content selection pattern - do fix if pattern found
3476 tSCC zHpux11_Pthread_ConstSelect0[] =
3477 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3479 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3480 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3481 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3484 * Fix Command Arguments for Hpux11_Pthread_Const
3486 static const char* apzHpux11_Pthread_ConstPatch[] = {
3488 "#define __POINTER_SET\t\t((void *) 1L)",
3491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3493 * Description of Hpux_Pthread_Initializers fix
3495 tSCC zHpux_Pthread_InitializersName[] =
3496 "hpux_pthread_initializers";
3499 * File name selection pattern
3501 tSCC zHpux_Pthread_InitializersList[] =
3504 * Machine/OS name selection pattern
3506 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3507 "*-hp-hpux11.[0-3]*",
3508 (const char*)NULL };
3509 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3510 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3513 * Fix Command Arguments for Hpux_Pthread_Initializers
3515 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3516 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3517 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3518 "-e", "/^[ \t]*0$/d",
3519 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3520 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3521 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3522 "-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\\\\@",
3523 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3524 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3525 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3526 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3527 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3528 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3533 * Description of Huge_Val_Hex fix
3535 tSCC zHuge_Val_HexName[] =
3539 * File name selection pattern
3541 tSCC zHuge_Val_HexList[] =
3542 "bits/huge_val.h\0";
3544 * Machine/OS name selection pattern
3546 #define apzHuge_Val_HexMachs (const char**)NULL
3549 * content selection pattern - do fix if pattern found
3551 tSCC zHuge_Val_HexSelect0[] =
3552 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3555 * content bypass pattern - skip fix if pattern found
3557 tSCC zHuge_Val_HexBypass0[] =
3558 "__builtin_huge_val";
3560 #define HUGE_VAL_HEX_TEST_CT 2
3561 static tTestDesc aHuge_Val_HexTests[] = {
3562 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3563 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3566 * Fix Command Arguments for Huge_Val_Hex
3568 static const char* apzHuge_Val_HexPatch[] = {
3570 "#define HUGE_VAL (__builtin_huge_val())\n",
3573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3575 * Description of Huge_Valf_Hex fix
3577 tSCC zHuge_Valf_HexName[] =
3581 * File name selection pattern
3583 tSCC zHuge_Valf_HexList[] =
3584 "bits/huge_val.h\0";
3586 * Machine/OS name selection pattern
3588 #define apzHuge_Valf_HexMachs (const char**)NULL
3591 * content selection pattern - do fix if pattern found
3593 tSCC zHuge_Valf_HexSelect0[] =
3594 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3597 * content bypass pattern - skip fix if pattern found
3599 tSCC zHuge_Valf_HexBypass0[] =
3600 "__builtin_huge_valf";
3602 #define HUGE_VALF_HEX_TEST_CT 2
3603 static tTestDesc aHuge_Valf_HexTests[] = {
3604 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3605 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3608 * Fix Command Arguments for Huge_Valf_Hex
3610 static const char* apzHuge_Valf_HexPatch[] = {
3612 "#define HUGE_VALF (__builtin_huge_valf())\n",
3615 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3617 * Description of Huge_Vall_Hex fix
3619 tSCC zHuge_Vall_HexName[] =
3623 * File name selection pattern
3625 tSCC zHuge_Vall_HexList[] =
3626 "bits/huge_val.h\0";
3628 * Machine/OS name selection pattern
3630 #define apzHuge_Vall_HexMachs (const char**)NULL
3633 * content selection pattern - do fix if pattern found
3635 tSCC zHuge_Vall_HexSelect0[] =
3636 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3639 * content bypass pattern - skip fix if pattern found
3641 tSCC zHuge_Vall_HexBypass0[] =
3642 "__builtin_huge_vall";
3644 #define HUGE_VALL_HEX_TEST_CT 2
3645 static tTestDesc aHuge_Vall_HexTests[] = {
3646 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3647 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3650 * Fix Command Arguments for Huge_Vall_Hex
3652 static const char* apzHuge_Vall_HexPatch[] = {
3654 "#define HUGE_VALL (__builtin_huge_vall())\n",
3657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3659 * Description of Int_Abort_Free_And_Exit fix
3661 tSCC zInt_Abort_Free_And_ExitName[] =
3662 "int_abort_free_and_exit";
3665 * File name selection pattern
3667 tSCC zInt_Abort_Free_And_ExitList[] =
3670 * Machine/OS name selection pattern
3672 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3675 * content selection pattern - do fix if pattern found
3677 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3678 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3681 * content bypass pattern - skip fix if pattern found
3683 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3684 "_CLASSIC_ANSI_TYPES";
3686 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3687 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3688 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3689 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3692 * Fix Command Arguments for Int_Abort_Free_And_Exit
3694 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3701 * Description of Io_Quotes_Def fix
3703 tSCC zIo_Quotes_DefName[] =
3707 * File name selection pattern
3709 #define zIo_Quotes_DefList (char*)NULL
3711 * Machine/OS name selection pattern
3713 #define apzIo_Quotes_DefMachs (const char**)NULL
3716 * content selection pattern - do fix if pattern found
3718 tSCC zIo_Quotes_DefSelect0[] =
3719 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3721 #define IO_QUOTES_DEF_TEST_CT 1
3722 static tTestDesc aIo_Quotes_DefTests[] = {
3723 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3726 * Fix Command Arguments for Io_Quotes_Def
3728 static const char* apzIo_Quotes_DefPatch[] = {
3733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3735 * Description of Io_Quotes_Use fix
3737 tSCC zIo_Quotes_UseName[] =
3741 * File name selection pattern
3743 #define zIo_Quotes_UseList (char*)NULL
3745 * Machine/OS name selection pattern
3747 #define apzIo_Quotes_UseMachs (const char**)NULL
3750 * content selection pattern - do fix if pattern found
3752 tSCC zIo_Quotes_UseSelect0[] =
3753 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3755 #define IO_QUOTES_USE_TEST_CT 1
3756 static tTestDesc aIo_Quotes_UseTests[] = {
3757 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3760 * Fix Command Arguments for Io_Quotes_Use
3762 static const char* apzIo_Quotes_UsePatch[] = {
3767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3769 * Description of Ip_Missing_Semi fix
3771 tSCC zIp_Missing_SemiName[] =
3775 * File name selection pattern
3777 tSCC zIp_Missing_SemiList[] =
3780 * Machine/OS name selection pattern
3782 #define apzIp_Missing_SemiMachs (const char**)NULL
3785 * content selection pattern - do fix if pattern found
3787 tSCC zIp_Missing_SemiSelect0[] =
3790 #define IP_MISSING_SEMI_TEST_CT 1
3791 static tTestDesc aIp_Missing_SemiTests[] = {
3792 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3795 * Fix Command Arguments for Ip_Missing_Semi
3797 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3798 "-e", "/^struct/,/^};/s/}$/};/",
3801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3803 * Description of Irix___Restrict fix
3805 tSCC zIrix___RestrictName[] =
3809 * File name selection pattern
3811 tSCC zIrix___RestrictList[] =
3812 "internal/sgimacros.h\0";
3814 * Machine/OS name selection pattern
3816 tSCC* apzIrix___RestrictMachs[] = {
3818 (const char*)NULL };
3821 * content selection pattern - do fix if pattern found
3823 tSCC zIrix___RestrictSelect0[] =
3825 )(#[ \t]*define __restrict restrict)";
3827 #define IRIX___RESTRICT_TEST_CT 1
3828 static tTestDesc aIrix___RestrictTests[] = {
3829 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3832 * Fix Command Arguments for Irix___Restrict
3834 static const char* apzIrix___RestrictPatch[] = {
3836 "%1# ifndef __cplusplus\n\
3841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3843 * Description of Irix___Generic1 fix
3845 tSCC zIrix___Generic1Name[] =
3849 * File name selection pattern
3851 tSCC zIrix___Generic1List[] =
3852 "internal/math_core.h\0";
3854 * Machine/OS name selection pattern
3856 tSCC* apzIrix___Generic1Machs[] = {
3858 (const char*)NULL };
3861 * content selection pattern - do fix if pattern found
3863 tSCC zIrix___Generic1Select0[] =
3864 "#define ([a-z]+)\\(x\\) *__generic.*";
3866 #define IRIX___GENERIC1_TEST_CT 1
3867 static tTestDesc aIrix___Generic1Tests[] = {
3868 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3871 * Fix Command Arguments for Irix___Generic1
3873 static const char* apzIrix___Generic1Patch[] = {
3875 "extern int %1(double);\n\
3876 extern int %1f(float);\n\
3877 extern int %1l(long double);\n\
3878 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3879 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3885 * Description of Irix___Generic2 fix
3887 tSCC zIrix___Generic2Name[] =
3891 * File name selection pattern
3893 tSCC zIrix___Generic2List[] =
3894 "internal/math_core.h\0";
3896 * Machine/OS name selection pattern
3898 tSCC* apzIrix___Generic2Machs[] = {
3900 (const char*)NULL };
3903 * content selection pattern - do fix if pattern found
3905 tSCC zIrix___Generic2Select0[] =
3906 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3908 #define IRIX___GENERIC2_TEST_CT 1
3909 static tTestDesc aIrix___Generic2Tests[] = {
3910 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3913 * Fix Command Arguments for Irix___Generic2
3915 static const char* apzIrix___Generic2Patch[] = {
3917 "#define %1(x,y) \\\n\
3918 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3919 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3925 * Description of Irix_Asm_Apostrophe fix
3927 tSCC zIrix_Asm_ApostropheName[] =
3928 "irix_asm_apostrophe";
3931 * File name selection pattern
3933 tSCC zIrix_Asm_ApostropheList[] =
3936 * Machine/OS name selection pattern
3938 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3941 * content selection pattern - do fix if pattern found
3943 tSCC zIrix_Asm_ApostropheSelect0[] =
3944 "^[ \t]*#.*[Ww]e're";
3946 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3947 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3948 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3951 * Fix Command Arguments for Irix_Asm_Apostrophe
3953 static const char* apzIrix_Asm_ApostrophePatch[] = {
3956 "^([ \t]*#.*[Ww]e)'re",
3959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3961 * Description of Irix_Limits_Const fix
3963 tSCC zIrix_Limits_ConstName[] =
3964 "irix_limits_const";
3967 * File name selection pattern
3969 tSCC zIrix_Limits_ConstList[] =
3970 "fixinc-test-limits.h\0limits.h\0";
3972 * Machine/OS name selection pattern
3974 #define apzIrix_Limits_ConstMachs (const char**)NULL
3977 * content selection pattern - do fix if pattern found
3979 tSCC zIrix_Limits_ConstSelect0[] =
3982 #define IRIX_LIMITS_CONST_TEST_CT 1
3983 static tTestDesc aIrix_Limits_ConstTests[] = {
3984 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3987 * Fix Command Arguments for Irix_Limits_Const
3989 static const char* apzIrix_Limits_ConstPatch[] = {
3994 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3996 * Description of Irix_Socklen_T fix
3998 tSCC zIrix_Socklen_TName[] =
4002 * File name selection pattern
4004 tSCC zIrix_Socklen_TList[] =
4007 * Machine/OS name selection pattern
4009 tSCC* apzIrix_Socklen_TMachs[] = {
4011 (const char*)NULL };
4014 * content selection pattern - do fix if pattern found
4016 tSCC zIrix_Socklen_TSelect0[] =
4017 "(#define _SOCKLEN_T\n\
4018 )(typedef u_int32_t socklen_t;)";
4020 #define IRIX_SOCKLEN_T_TEST_CT 1
4021 static tTestDesc aIrix_Socklen_TTests[] = {
4022 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4025 * Fix Command Arguments for Irix_Socklen_T
4027 static const char* apzIrix_Socklen_TPatch[] = {
4029 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4030 typedef int socklen_t;\n\
4033 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4038 * Description of Irix_Stdint_C99 fix
4040 tSCC zIrix_Stdint_C99Name[] =
4044 * File name selection pattern
4046 tSCC zIrix_Stdint_C99List[] =
4049 * Machine/OS name selection pattern
4051 tSCC* apzIrix_Stdint_C99Machs[] = {
4053 (const char*)NULL };
4056 * content selection pattern - do fix if pattern found
4058 tSCC zIrix_Stdint_C99Select0[] =
4060 )(#error This header file is to be used only for c99 mode compilations)";
4062 #define IRIX_STDINT_C99_TEST_CT 1
4063 static tTestDesc aIrix_Stdint_C99Tests[] = {
4064 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4067 * Fix Command Arguments for Irix_Stdint_C99
4069 static const char* apzIrix_Stdint_C99Patch[] = {
4075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4077 * Description of Irix_Stdio_Va_List fix
4079 tSCC zIrix_Stdio_Va_ListName[] =
4080 "irix_stdio_va_list";
4083 * File name selection pattern
4085 tSCC zIrix_Stdio_Va_ListList[] =
4086 "stdio.h\0internal/stdio_core.h\0";
4088 * Machine/OS name selection pattern
4090 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4093 * content selection pattern - do fix if pattern found
4095 tSCC zIrix_Stdio_Va_ListSelect0[] =
4096 "/\\* va_list \\*/ char \\*";
4098 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4099 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4100 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4103 * Fix Command Arguments for Irix_Stdio_Va_List
4105 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4112 * Description of Irix_Wcsftime fix
4114 tSCC zIrix_WcsftimeName[] =
4118 * File name selection pattern
4120 tSCC zIrix_WcsftimeList[] =
4121 "internal/wchar_core.h\0";
4123 * Machine/OS name selection pattern
4125 tSCC* apzIrix_WcsftimeMachs[] = {
4127 (const char*)NULL };
4130 * content selection pattern - do fix if pattern found
4132 tSCC zIrix_WcsftimeSelect0[] =
4134 (extern size_t[ \t]+wcsftime.*const char *.*)";
4136 #define IRIX_WCSFTIME_TEST_CT 1
4137 static tTestDesc aIrix_WcsftimeTests[] = {
4138 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4141 * Fix Command Arguments for Irix_Wcsftime
4143 static const char* apzIrix_WcsftimePatch[] = {
4145 "#if _NO_XOPEN5 && !defined(__c99)\n\
4149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4151 * Description of Isc_Fmod fix
4153 tSCC zIsc_FmodName[] =
4157 * File name selection pattern
4159 tSCC zIsc_FmodList[] =
4162 * Machine/OS name selection pattern
4164 #define apzIsc_FmodMachs (const char**)NULL
4167 * content selection pattern - do fix if pattern found
4169 tSCC zIsc_FmodSelect0[] =
4172 #define ISC_FMOD_TEST_CT 1
4173 static tTestDesc aIsc_FmodTests[] = {
4174 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4177 * Fix Command Arguments for Isc_Fmod
4179 static const char* apzIsc_FmodPatch[] = {
4181 "fmod(double, double)",
4184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4186 * Description of Isc_Omits_With_Stdc fix
4188 tSCC zIsc_Omits_With_StdcName[] =
4189 "isc_omits_with_stdc";
4192 * File name selection pattern
4194 tSCC zIsc_Omits_With_StdcList[] =
4195 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4197 * Machine/OS name selection pattern
4199 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4202 * content selection pattern - do fix if pattern found
4204 tSCC zIsc_Omits_With_StdcSelect0[] =
4205 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4207 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4208 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4209 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4212 * Fix Command Arguments for Isc_Omits_With_Stdc
4214 static const char* apzIsc_Omits_With_StdcPatch[] = {
4216 "!defined(_POSIX_SOURCE)",
4219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4221 * Description of Kandr_Concat fix
4223 tSCC zKandr_ConcatName[] =
4227 * File name selection pattern
4229 tSCC zKandr_ConcatList[] =
4230 "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";
4232 * Machine/OS name selection pattern
4234 #define apzKandr_ConcatMachs (const char**)NULL
4237 * content selection pattern - do fix if pattern found
4239 tSCC zKandr_ConcatSelect0[] =
4242 #define KANDR_CONCAT_TEST_CT 1
4243 static tTestDesc aKandr_ConcatTests[] = {
4244 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4247 * Fix Command Arguments for Kandr_Concat
4249 static const char* apzKandr_ConcatPatch[] = {
4254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4256 * Description of Libc1_G_Va_List fix
4258 tSCC zLibc1_G_Va_ListName[] =
4262 * File name selection pattern
4264 tSCC zLibc1_G_Va_ListList[] =
4267 * Machine/OS name selection pattern
4269 tSCC* apzLibc1_G_Va_ListMachs[] = {
4271 (const char*)NULL };
4274 * content selection pattern - do fix if pattern found
4276 tSCC zLibc1_G_Va_ListSelect0[] =
4277 "typedef void \\* _G_va_list;";
4279 #define LIBC1_G_VA_LIST_TEST_CT 1
4280 static tTestDesc aLibc1_G_Va_ListTests[] = {
4281 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
4284 * Fix Command Arguments for Libc1_G_Va_List
4286 static const char* apzLibc1_G_Va_ListPatch[] = {
4288 "typedef __builtin_va_list _G_va_list;",
4291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4293 * Description of Libc1_Ifdefd_Memx fix
4295 tSCC zLibc1_Ifdefd_MemxName[] =
4296 "libc1_ifdefd_memx";
4299 * File name selection pattern
4301 tSCC zLibc1_Ifdefd_MemxList[] =
4302 "testing.h\0string.h\0";
4304 * Machine/OS name selection pattern
4306 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
4309 * content selection pattern - do fix if pattern found
4311 tSCC zLibc1_Ifdefd_MemxSelect0[] =
4312 "' is a built-in function for gcc 2\\.x\\. \\*/";
4315 * content bypass pattern - skip fix if pattern found
4317 tSCC zLibc1_Ifdefd_MemxBypass0[] =
4320 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
4321 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
4322 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
4323 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
4326 * Fix Command Arguments for Libc1_Ifdefd_Memx
4328 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
4331 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
4332 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
4334 extern [a-z_]+ mem.*(\n\
4339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4341 * Description of Linux_Ia64_Ucontext fix
4343 tSCC zLinux_Ia64_UcontextName[] =
4344 "linux_ia64_ucontext";
4347 * File name selection pattern
4349 tSCC zLinux_Ia64_UcontextList[] =
4352 * Machine/OS name selection pattern
4354 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4356 (const char*)NULL };
4359 * content selection pattern - do fix if pattern found
4361 tSCC zLinux_Ia64_UcontextSelect0[] =
4362 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4364 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4365 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4366 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4369 * Fix Command Arguments for Linux_Ia64_Ucontext
4371 static const char* apzLinux_Ia64_UcontextPatch[] = {
4373 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4378 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4380 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4381 "lynxos_no_warning_in_sys_time_h";
4384 * File name selection pattern
4386 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4389 * Machine/OS name selection pattern
4391 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4394 * content selection pattern - do fix if pattern found
4396 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4397 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4399 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4400 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4401 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4404 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4406 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4413 * Description of Lynxos_Missing_Putenv fix
4415 tSCC zLynxos_Missing_PutenvName[] =
4416 "lynxos_missing_putenv";
4419 * File name selection pattern
4421 tSCC zLynxos_Missing_PutenvList[] =
4424 * Machine/OS name selection pattern
4426 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4428 (const char*)NULL };
4431 * content selection pattern - do fix if pattern found
4433 tSCC zLynxos_Missing_PutenvSelect0[] =
4434 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4437 * content bypass pattern - skip fix if pattern found
4439 tSCC zLynxos_Missing_PutenvBypass0[] =
4442 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4443 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4444 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4445 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4448 * Fix Command Arguments for Lynxos_Missing_Putenv
4450 static const char* apzLynxos_Missing_PutenvPatch[] = {
4453 extern int putenv\t\t\t\t_AP((char *));",
4454 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4459 * Description of Machine_Ansi_H_Va_List fix
4461 tSCC zMachine_Ansi_H_Va_ListName[] =
4462 "machine_ansi_h_va_list";
4465 * File name selection pattern
4467 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4469 * Machine/OS name selection pattern
4471 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4474 * content selection pattern - do fix if pattern found
4476 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4477 "define[ \t]+_BSD_VA_LIST_[ \t]";
4480 * content bypass pattern - skip fix if pattern found
4482 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4483 "__builtin_va_list";
4485 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4486 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4487 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4488 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4491 * Fix Command Arguments for Machine_Ansi_H_Va_List
4493 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4495 "%1__builtin_va_list",
4496 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4501 * Description of Machine_Name fix
4503 tSCC zMachine_NameName[] =
4507 * File name selection pattern
4509 #define zMachine_NameList (char*)NULL
4511 * Machine/OS name selection pattern
4513 #define apzMachine_NameMachs (const char**)NULL
4516 * perform the C function call test
4518 tSCC zMachine_NameFTst0[] = "machine_name";
4520 #define MACHINE_NAME_TEST_CT 1
4521 static tTestDesc aMachine_NameTests[] = {
4522 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4525 * Fix Command Arguments for Machine_Name
4527 static const char* apzMachine_NamePatch[] = {
4531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4533 * Description of Math_Exception fix
4535 tSCC zMath_ExceptionName[] =
4539 * File name selection pattern
4541 tSCC zMath_ExceptionList[] =
4544 * Machine/OS name selection pattern
4546 #define apzMath_ExceptionMachs (const char**)NULL
4549 * content selection pattern - do fix if pattern found
4551 tSCC zMath_ExceptionSelect0[] =
4555 * content bypass pattern - skip fix if pattern found
4557 tSCC zMath_ExceptionBypass0[] =
4558 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4560 #define MATH_EXCEPTION_TEST_CT 2
4561 static tTestDesc aMath_ExceptionTests[] = {
4562 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4563 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4566 * Fix Command Arguments for Math_Exception
4568 static const char* apzMath_ExceptionPatch[] = {
4570 "#ifdef __cplusplus\n\
4571 #define exception __math_exception\n\
4573 "#ifdef __cplusplus\n\
4578 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4580 * Description of Math_Huge_Val_From_Dbl_Max fix
4582 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4583 "math_huge_val_from_dbl_max";
4586 * File name selection pattern
4588 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4591 * Machine/OS name selection pattern
4593 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4596 * content selection pattern - do fix if pattern found
4598 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4599 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4602 * content bypass pattern - skip fix if pattern found
4604 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4605 "define[ \t]+DBL_MAX";
4607 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4608 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4609 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4610 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4613 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4615 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4616 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4617 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4618 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4625 * Description of Nested_Auth_Des fix
4627 tSCC zNested_Auth_DesName[] =
4631 * File name selection pattern
4633 tSCC zNested_Auth_DesList[] =
4636 * Machine/OS name selection pattern
4638 #define apzNested_Auth_DesMachs (const char**)NULL
4641 * content selection pattern - do fix if pattern found
4643 tSCC zNested_Auth_DesSelect0[] =
4644 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4646 #define NESTED_AUTH_DES_TEST_CT 1
4647 static tTestDesc aNested_Auth_DesTests[] = {
4648 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4651 * Fix Command Arguments for Nested_Auth_Des
4653 static const char* apzNested_Auth_DesPatch[] = {
4658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4660 * Description of Nested_Motorola fix
4662 tSCC zNested_MotorolaName[] =
4666 * File name selection pattern
4668 tSCC zNested_MotorolaList[] =
4669 "sys/limits.h\0limits.h\0";
4671 * Machine/OS name selection pattern
4673 tSCC* apzNested_MotorolaMachs[] = {
4674 "m68k-motorola-sysv*",
4675 (const char*)NULL };
4678 * content selection pattern - do fix if pattern found
4680 tSCC zNested_MotorolaSelect0[] =
4681 "max # bytes atomic in write|error value returned by Math lib";
4683 #define NESTED_MOTOROLA_TEST_CT 1
4684 static tTestDesc aNested_MotorolaTests[] = {
4685 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4688 * Fix Command Arguments for Nested_Motorola
4690 static const char* apzNested_MotorolaPatch[] = { "sed",
4691 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4692 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4697 * Description of Nested_Sys_Limits fix
4699 tSCC zNested_Sys_LimitsName[] =
4700 "nested_sys_limits";
4703 * File name selection pattern
4705 tSCC zNested_Sys_LimitsList[] =
4708 * Machine/OS name selection pattern
4710 #define apzNested_Sys_LimitsMachs (const char**)NULL
4713 * content selection pattern - do fix if pattern found
4715 tSCC zNested_Sys_LimitsSelect0[] =
4718 #define NESTED_SYS_LIMITS_TEST_CT 1
4719 static tTestDesc aNested_Sys_LimitsTests[] = {
4720 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4723 * Fix Command Arguments for Nested_Sys_Limits
4725 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4726 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4727 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4732 * Description of Netbsd_C99_Inline_1 fix
4734 tSCC zNetbsd_C99_Inline_1Name[] =
4735 "netbsd_c99_inline_1";
4738 * File name selection pattern
4740 tSCC zNetbsd_C99_Inline_1List[] =
4743 * Machine/OS name selection pattern
4745 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4747 (const char*)NULL };
4750 * content selection pattern - do fix if pattern found
4752 tSCC zNetbsd_C99_Inline_1Select0[] =
4753 "extern __inline int";
4755 #define NETBSD_C99_INLINE_1_TEST_CT 1
4756 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4757 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4760 * Fix Command Arguments for Netbsd_C99_Inline_1
4762 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4765 #ifdef __GNUC_STDC_INLINE__\n\
4766 __attribute__((__gnu_inline__))\n\
4771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4773 * Description of Netbsd_C99_Inline_2 fix
4775 tSCC zNetbsd_C99_Inline_2Name[] =
4776 "netbsd_c99_inline_2";
4779 * File name selection pattern
4781 tSCC zNetbsd_C99_Inline_2List[] =
4784 * Machine/OS name selection pattern
4786 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4788 (const char*)NULL };
4791 * content selection pattern - do fix if pattern found
4793 tSCC zNetbsd_C99_Inline_2Select0[] =
4794 "#define _SIGINLINE extern __inline";
4796 #define NETBSD_C99_INLINE_2_TEST_CT 1
4797 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4798 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4801 * Fix Command Arguments for Netbsd_C99_Inline_2
4803 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4805 "#ifdef __GNUC_STDC_INLINE__\n\
4806 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4814 * Description of Netbsd_Extra_Semicolon fix
4816 tSCC zNetbsd_Extra_SemicolonName[] =
4817 "netbsd_extra_semicolon";
4820 * File name selection pattern
4822 tSCC zNetbsd_Extra_SemicolonList[] =
4825 * Machine/OS name selection pattern
4827 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4829 (const char*)NULL };
4832 * content selection pattern - do fix if pattern found
4834 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4835 "#define[ \t]*__END_DECLS[ \t]*};";
4837 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4838 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4839 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4842 * Fix Command Arguments for Netbsd_Extra_Semicolon
4844 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4846 "#define __END_DECLS }",
4849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4851 * Description of Next_Math_Prefix fix
4853 tSCC zNext_Math_PrefixName[] =
4857 * File name selection pattern
4859 tSCC zNext_Math_PrefixList[] =
4862 * Machine/OS name selection pattern
4864 #define apzNext_Math_PrefixMachs (const char**)NULL
4867 * content selection pattern - do fix if pattern found
4869 tSCC zNext_Math_PrefixSelect0[] =
4870 "^extern[ \t]+double[ \t]+__const__[ \t]";
4872 #define NEXT_MATH_PREFIX_TEST_CT 1
4873 static tTestDesc aNext_Math_PrefixTests[] = {
4874 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4877 * Fix Command Arguments for Next_Math_Prefix
4879 static const char* apzNext_Math_PrefixPatch[] = {
4881 "extern double %1(",
4882 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4887 * Description of Next_Template fix
4889 tSCC zNext_TemplateName[] =
4893 * File name selection pattern
4895 tSCC zNext_TemplateList[] =
4898 * Machine/OS name selection pattern
4900 #define apzNext_TemplateMachs (const char**)NULL
4903 * content selection pattern - do fix if pattern found
4905 tSCC zNext_TemplateSelect0[] =
4908 #define NEXT_TEMPLATE_TEST_CT 1
4909 static tTestDesc aNext_TemplateTests[] = {
4910 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4913 * Fix Command Arguments for Next_Template
4915 static const char* apzNext_TemplatePatch[] = {
4918 "\\(([^)]*)[ \t]template\\)",
4921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4923 * Description of Next_Volitile fix
4925 tSCC zNext_VolitileName[] =
4929 * File name selection pattern
4931 tSCC zNext_VolitileList[] =
4934 * Machine/OS name selection pattern
4936 #define apzNext_VolitileMachs (const char**)NULL
4939 * content selection pattern - do fix if pattern found
4941 tSCC zNext_VolitileSelect0[] =
4942 "^extern[ \t]+volatile[ \t]+void[ \t]";
4944 #define NEXT_VOLITILE_TEST_CT 1
4945 static tTestDesc aNext_VolitileTests[] = {
4946 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4949 * Fix Command Arguments for Next_Volitile
4951 static const char* apzNext_VolitilePatch[] = {
4954 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4957 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4959 * Description of Next_Wait_Union fix
4961 tSCC zNext_Wait_UnionName[] =
4965 * File name selection pattern
4967 tSCC zNext_Wait_UnionList[] =
4970 * Machine/OS name selection pattern
4972 #define apzNext_Wait_UnionMachs (const char**)NULL
4975 * content selection pattern - do fix if pattern found
4977 tSCC zNext_Wait_UnionSelect0[] =
4978 "wait\\(union wait";
4980 #define NEXT_WAIT_UNION_TEST_CT 1
4981 static tTestDesc aNext_Wait_UnionTests[] = {
4982 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4985 * Fix Command Arguments for Next_Wait_Union
4987 static const char* apzNext_Wait_UnionPatch[] = {
4992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4994 * Description of Nodeent_Syntax fix
4996 tSCC zNodeent_SyntaxName[] =
5000 * File name selection pattern
5002 tSCC zNodeent_SyntaxList[] =
5003 "netdnet/dnetdb.h\0";
5005 * Machine/OS name selection pattern
5007 #define apzNodeent_SyntaxMachs (const char**)NULL
5010 * content selection pattern - do fix if pattern found
5012 tSCC zNodeent_SyntaxSelect0[] =
5013 "char[ \t]*\\*na_addr[ \t]*$";
5015 #define NODEENT_SYNTAX_TEST_CT 1
5016 static tTestDesc aNodeent_SyntaxTests[] = {
5017 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5020 * Fix Command Arguments for Nodeent_Syntax
5022 static const char* apzNodeent_SyntaxPatch[] = {
5027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5029 * Description of Obstack_Lvalue_Cast fix
5031 tSCC zObstack_Lvalue_CastName[] =
5032 "obstack_lvalue_cast";
5035 * File name selection pattern
5037 tSCC zObstack_Lvalue_CastList[] =
5040 * Machine/OS name selection pattern
5042 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5045 * content selection pattern - do fix if pattern found
5047 tSCC zObstack_Lvalue_CastSelect0[] =
5048 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5050 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5051 static tTestDesc aObstack_Lvalue_CastTests[] = {
5052 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5055 * Fix Command Arguments for Obstack_Lvalue_Cast
5057 static const char* apzObstack_Lvalue_CastPatch[] = {
5059 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5064 * Description of Osf_Namespace_A fix
5066 tSCC zOsf_Namespace_AName[] =
5070 * File name selection pattern
5072 tSCC zOsf_Namespace_AList[] =
5073 "reg_types.h\0sys/lc_core.h\0";
5075 * Machine/OS name selection pattern
5077 #define apzOsf_Namespace_AMachs (const char**)NULL
5080 * perform the 'test' shell command - do fix on success
5082 tSCC zOsf_Namespace_ATest0[] =
5084 tSCC zOsf_Namespace_ATest1[] =
5085 " -r sys/lc_core.h";
5086 tSCC zOsf_Namespace_ATest2[] =
5087 " -n \"`grep '} regex_t;' reg_types.h`\"";
5088 tSCC zOsf_Namespace_ATest3[] =
5089 " -z \"`grep __regex_t regex.h`\"";
5091 #define OSF_NAMESPACE_A_TEST_CT 4
5092 static tTestDesc aOsf_Namespace_ATests[] = {
5093 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5094 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5095 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5096 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5099 * Fix Command Arguments for Osf_Namespace_A
5101 static const char* apzOsf_Namespace_APatch[] = {
5104 "reg(ex|off|match)_t",
5107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5109 * Description of Osf_Namespace_C fix
5111 tSCC zOsf_Namespace_CName[] =
5115 * File name selection pattern
5117 tSCC zOsf_Namespace_CList[] =
5120 * Machine/OS name selection pattern
5122 #define apzOsf_Namespace_CMachs (const char**)NULL
5125 * content selection pattern - do fix if pattern found
5127 tSCC zOsf_Namespace_CSelect0[] =
5128 "#include <reg_types.h>.*";
5131 * perform the 'test' shell command - do fix on success
5133 tSCC zOsf_Namespace_CTest0[] =
5135 tSCC zOsf_Namespace_CTest1[] =
5136 " -r sys/lc_core.h";
5137 tSCC zOsf_Namespace_CTest2[] =
5138 " -n \"`grep '} regex_t;' reg_types.h`\"";
5139 tSCC zOsf_Namespace_CTest3[] =
5140 " -z \"`grep __regex_t regex.h`\"";
5142 #define OSF_NAMESPACE_C_TEST_CT 5
5143 static tTestDesc aOsf_Namespace_CTests[] = {
5144 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5145 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5146 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5147 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5148 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5151 * Fix Command Arguments for Osf_Namespace_C
5153 static const char* apzOsf_Namespace_CPatch[] = {
5156 typedef __regex_t\tregex_t;\n\
5157 typedef __regoff_t\tregoff_t;\n\
5158 typedef __regmatch_t\tregmatch_t;",
5161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5163 * Description of Pthread_Page_Size fix
5165 tSCC zPthread_Page_SizeName[] =
5166 "pthread_page_size";
5169 * File name selection pattern
5171 tSCC zPthread_Page_SizeList[] =
5174 * Machine/OS name selection pattern
5176 #define apzPthread_Page_SizeMachs (const char**)NULL
5179 * content selection pattern - do fix if pattern found
5181 tSCC zPthread_Page_SizeSelect0[] =
5184 #define PTHREAD_PAGE_SIZE_TEST_CT 1
5185 static tTestDesc aPthread_Page_SizeTests[] = {
5186 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
5189 * Fix Command Arguments for Pthread_Page_Size
5191 static const char* apzPthread_Page_SizePatch[] = {
5196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5198 * Description of Pthread_Incomplete_Struct_Argument fix
5200 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5201 "pthread_incomplete_struct_argument";
5204 * File name selection pattern
5206 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5209 * Machine/OS name selection pattern
5211 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5214 * content selection pattern - do fix if pattern found
5216 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5217 "struct __jmp_buf_tag";
5219 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5220 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5221 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5224 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5226 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5229 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5234 * Description of Read_Ret_Type fix
5236 tSCC zRead_Ret_TypeName[] =
5240 * File name selection pattern
5242 tSCC zRead_Ret_TypeList[] =
5245 * Machine/OS name selection pattern
5247 #define apzRead_Ret_TypeMachs (const char**)NULL
5250 * content selection pattern - do fix if pattern found
5252 tSCC zRead_Ret_TypeSelect0[] =
5253 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5255 #define READ_RET_TYPE_TEST_CT 1
5256 static tTestDesc aRead_Ret_TypeTests[] = {
5257 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5260 * Fix Command Arguments for Read_Ret_Type
5262 static const char* apzRead_Ret_TypePatch[] = {
5264 "extern unsigned int fread(), fwrite();\n\
5266 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5271 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5273 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5274 "rpc_xdr_lvalue_cast_a";
5277 * File name selection pattern
5279 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5282 * Machine/OS name selection pattern
5284 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5287 * content selection pattern - do fix if pattern found
5289 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5290 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5293 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5294 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5295 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5298 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5300 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5302 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5307 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5309 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5310 "rpc_xdr_lvalue_cast_b";
5313 * File name selection pattern
5315 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5318 * Machine/OS name selection pattern
5320 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5323 * content selection pattern - do fix if pattern found
5325 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5326 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5329 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5330 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5331 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5334 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5336 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5338 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5343 * Description of Rs6000_Double fix
5345 tSCC zRs6000_DoubleName[] =
5349 * File name selection pattern
5351 tSCC zRs6000_DoubleList[] =
5354 * Machine/OS name selection pattern
5356 #define apzRs6000_DoubleMachs (const char**)NULL
5359 * content selection pattern - do fix if pattern found
5361 tSCC zRs6000_DoubleSelect0[] =
5362 "[^a-zA-Z_]class\\(";
5364 #define RS6000_DOUBLE_TEST_CT 1
5365 static tTestDesc aRs6000_DoubleTests[] = {
5366 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5369 * Fix Command Arguments for Rs6000_Double
5371 static const char* apzRs6000_DoublePatch[] = {
5373 "#ifndef __cplusplus\n\
5376 "^.*[^a-zA-Z_]class\\(.*",
5379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5381 * Description of Rs6000_Fchmod fix
5383 tSCC zRs6000_FchmodName[] =
5387 * File name selection pattern
5389 tSCC zRs6000_FchmodList[] =
5392 * Machine/OS name selection pattern
5394 #define apzRs6000_FchmodMachs (const char**)NULL
5397 * content selection pattern - do fix if pattern found
5399 tSCC zRs6000_FchmodSelect0[] =
5400 "fchmod\\(char \\*";
5402 #define RS6000_FCHMOD_TEST_CT 1
5403 static tTestDesc aRs6000_FchmodTests[] = {
5404 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5407 * Fix Command Arguments for Rs6000_Fchmod
5409 static const char* apzRs6000_FchmodPatch[] = {
5414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5416 * Description of Rs6000_Param fix
5418 tSCC zRs6000_ParamName[] =
5422 * File name selection pattern
5424 tSCC zRs6000_ParamList[] =
5425 "stdio.h\0unistd.h\0";
5427 * Machine/OS name selection pattern
5429 #define apzRs6000_ParamMachs (const char**)NULL
5432 * content selection pattern - do fix if pattern found
5434 tSCC zRs6000_ParamSelect0[] =
5435 "rename\\(const char \\*old, const char \\*new\\)";
5437 #define RS6000_PARAM_TEST_CT 1
5438 static tTestDesc aRs6000_ParamTests[] = {
5439 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5442 * Fix Command Arguments for Rs6000_Param
5444 static const char* apzRs6000_ParamPatch[] = {
5446 "rename(const char *_old, const char *_new)",
5449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5451 * Description of Sco_Math fix
5453 tSCC zSco_MathName[] =
5457 * File name selection pattern
5459 tSCC zSco_MathList[] =
5460 "math.h\0*/math.h\0";
5462 * Machine/OS name selection pattern
5464 #define apzSco_MathMachs (const char**)NULL
5467 * content selection pattern - do fix if pattern found
5469 tSCC zSco_MathSelect0[] =
5470 "inline double abs";
5473 * content bypass pattern - skip fix if pattern found
5475 tSCC zSco_MathBypass0[] =
5478 #define SCO_MATH_TEST_CT 2
5479 static tTestDesc aSco_MathTests[] = {
5480 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5481 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5484 * Fix Command Arguments for Sco_Math
5486 static const char* apzSco_MathPatch[] = { "sed",
5487 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5488 #ifndef __GNUC__\n",
5489 "-e", "/.*__builtin_generic/a\\\n\
5491 #define __fp_class(a) \\\\\\\n\
5492 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5493 __fpclassifyl(a), \\\\\\\n\
5494 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5495 __fpclassifyf(a),__fpclassify(a)))\\\n\
5497 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5498 #ifndef __GNUC__\n",
5499 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5500 #endif /* ! __GNUC__ */",
5503 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5505 * Description of Sco_Regset fix
5507 tSCC zSco_RegsetName[] =
5511 * File name selection pattern
5513 tSCC zSco_RegsetList[] =
5516 * Machine/OS name selection pattern
5518 tSCC* apzSco_RegsetMachs[] = {
5520 (const char*)NULL };
5523 * content selection pattern - do fix if pattern found
5525 tSCC zSco_RegsetSelect0[] =
5526 "(struct[ \t]+.*)fpstate";
5528 #define SCO_REGSET_TEST_CT 1
5529 static tTestDesc aSco_RegsetTests[] = {
5530 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
5533 * Fix Command Arguments for Sco_Regset
5535 static const char* apzSco_RegsetPatch[] = {
5540 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5542 * Description of Sco_Static_Func fix
5544 tSCC zSco_Static_FuncName[] =
5548 * File name selection pattern
5550 tSCC zSco_Static_FuncList[] =
5553 * Machine/OS name selection pattern
5555 tSCC* apzSco_Static_FuncMachs[] = {
5557 (const char*)NULL };
5560 * content selection pattern - do fix if pattern found
5562 tSCC zSco_Static_FuncSelect0[] =
5565 #define SCO_STATIC_FUNC_TEST_CT 1
5566 static tTestDesc aSco_Static_FuncTests[] = {
5567 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5570 * Fix Command Arguments for Sco_Static_Func
5572 static const char* apzSco_Static_FuncPatch[] = { "sed",
5573 "-e", "/^static int/i\\\n\
5574 #if __cplusplus\\\n\
5576 #endif /* __cplusplus */",
5578 #if __cplusplus\\\n\
5580 #endif /* __cplusplus */",
5583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5585 * Description of Sco_Utime fix
5587 tSCC zSco_UtimeName[] =
5591 * File name selection pattern
5593 tSCC zSco_UtimeList[] =
5596 * Machine/OS name selection pattern
5598 tSCC* apzSco_UtimeMachs[] = {
5600 (const char*)NULL };
5603 * content selection pattern - do fix if pattern found
5605 tSCC zSco_UtimeSelect0[] =
5606 "\\(const char \\*, struct utimbuf \\*\\);";
5608 #define SCO_UTIME_TEST_CT 1
5609 static tTestDesc aSco_UtimeTests[] = {
5610 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5613 * Fix Command Arguments for Sco_Utime
5615 static const char* apzSco_UtimePatch[] = {
5617 "(const char *, const struct utimbuf *);",
5620 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5622 * Description of Solaris_Math_1 fix
5624 tSCC zSolaris_Math_1Name[] =
5628 * File name selection pattern
5630 tSCC zSolaris_Math_1List[] =
5633 * Machine/OS name selection pattern
5635 #define apzSolaris_Math_1Machs (const char**)NULL
5638 * content selection pattern - do fix if pattern found
5640 tSCC zSolaris_Math_1Select0[] =
5641 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5644 * content bypass pattern - skip fix if pattern found
5646 tSCC zSolaris_Math_1Bypass0[] =
5649 #define SOLARIS_MATH_1_TEST_CT 2
5650 static tTestDesc aSolaris_Math_1Tests[] = {
5651 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5652 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5655 * Fix Command Arguments for Solaris_Math_1
5657 static const char* apzSolaris_Math_1Patch[] = {
5659 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5660 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5665 * Description of Solaris_Math_2 fix
5667 tSCC zSolaris_Math_2Name[] =
5671 * File name selection pattern
5673 tSCC zSolaris_Math_2List[] =
5676 * Machine/OS name selection pattern
5678 #define apzSolaris_Math_2Machs (const char**)NULL
5681 * content selection pattern - do fix if pattern found
5683 tSCC zSolaris_Math_2Select0[] =
5684 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5687 * content bypass pattern - skip fix if pattern found
5689 tSCC zSolaris_Math_2Bypass0[] =
5692 #define SOLARIS_MATH_2_TEST_CT 2
5693 static tTestDesc aSolaris_Math_2Tests[] = {
5694 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5695 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5698 * Fix Command Arguments for Solaris_Math_2
5700 static const char* apzSolaris_Math_2Patch[] = {
5702 "#define\tINFINITY\t(__builtin_inff())",
5703 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5708 * Description of Solaris_Math_3 fix
5710 tSCC zSolaris_Math_3Name[] =
5714 * File name selection pattern
5716 tSCC zSolaris_Math_3List[] =
5719 * Machine/OS name selection pattern
5721 #define apzSolaris_Math_3Machs (const char**)NULL
5724 * content selection pattern - do fix if pattern found
5726 tSCC zSolaris_Math_3Select0[] =
5727 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5730 * content bypass pattern - skip fix if pattern found
5732 tSCC zSolaris_Math_3Bypass0[] =
5735 #define SOLARIS_MATH_3_TEST_CT 2
5736 static tTestDesc aSolaris_Math_3Tests[] = {
5737 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5738 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5741 * Fix Command Arguments for Solaris_Math_3
5743 static const char* apzSolaris_Math_3Patch[] = {
5745 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5746 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5749 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5751 * Description of Solaris_Math_4 fix
5753 tSCC zSolaris_Math_4Name[] =
5757 * File name selection pattern
5759 tSCC zSolaris_Math_4List[] =
5762 * Machine/OS name selection pattern
5764 #define apzSolaris_Math_4Machs (const char**)NULL
5767 * content selection pattern - do fix if pattern found
5769 tSCC zSolaris_Math_4Select0[] =
5770 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5773 * content bypass pattern - skip fix if pattern found
5775 tSCC zSolaris_Math_4Bypass0[] =
5778 #define SOLARIS_MATH_4_TEST_CT 2
5779 static tTestDesc aSolaris_Math_4Tests[] = {
5780 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5781 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5784 * Fix Command Arguments for Solaris_Math_4
5786 static const char* apzSolaris_Math_4Patch[] = {
5788 "#define\tfpclassify(x) \\\n\
5789 __extension__ ({ const __typeof(x) __x_fp = (x); \\\n\
5790 \t\t isnan(__x_fp) \\\n\
5792 \t\t : isinf(__x_fp) \\\n\
5793 \t\t ? FP_INFINITE \\\n\
5794 \t\t : isnormal(__x_fp) \\\n\
5795 \t\t\t ? FP_NORMAL \\\n\
5796 \t\t\t : __x_fp == 0.0 \\\n\
5797 \t\t\t ? FP_ZERO \\\n\
5798 \t\t\t : FP_SUBNORMAL; })",
5799 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5804 * Description of Solaris_Math_8 fix
5806 tSCC zSolaris_Math_8Name[] =
5810 * File name selection pattern
5812 tSCC zSolaris_Math_8List[] =
5815 * Machine/OS name selection pattern
5817 #define apzSolaris_Math_8Machs (const char**)NULL
5820 * content selection pattern - do fix if pattern found
5822 tSCC zSolaris_Math_8Select0[] =
5823 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5826 * content bypass pattern - skip fix if pattern found
5828 tSCC zSolaris_Math_8Bypass0[] =
5831 #define SOLARIS_MATH_8_TEST_CT 2
5832 static tTestDesc aSolaris_Math_8Tests[] = {
5833 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5834 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5837 * Fix Command Arguments for Solaris_Math_8
5839 static const char* apzSolaris_Math_8Patch[] = {
5841 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5842 \t\t\t ? __builtin_signbitf(x) \\\n\
5843 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5844 \t\t\t ? __builtin_signbitl(x) \\\n\
5845 \t\t\t : __builtin_signbit(x))",
5846 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5851 * Description of Solaris_Math_9 fix
5853 tSCC zSolaris_Math_9Name[] =
5857 * File name selection pattern
5859 tSCC zSolaris_Math_9List[] =
5862 * Machine/OS name selection pattern
5864 #define apzSolaris_Math_9Machs (const char**)NULL
5867 * content selection pattern - do fix if pattern found
5869 tSCC zSolaris_Math_9Select0[] =
5870 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5873 * content bypass pattern - skip fix if pattern found
5875 tSCC zSolaris_Math_9Bypass0[] =
5878 #define SOLARIS_MATH_9_TEST_CT 2
5879 static tTestDesc aSolaris_Math_9Tests[] = {
5880 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5881 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5884 * Fix Command Arguments for Solaris_Math_9
5886 static const char* apzSolaris_Math_9Patch[] = {
5888 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5889 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5892 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5894 * Description of Solaris_Math_10 fix
5896 tSCC zSolaris_Math_10Name[] =
5900 * File name selection pattern
5902 tSCC zSolaris_Math_10List[] =
5905 * Machine/OS name selection pattern
5907 #define apzSolaris_Math_10Machs (const char**)NULL
5910 * content selection pattern - do fix if pattern found
5912 tSCC zSolaris_Math_10Select0[] =
5913 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5915 #define SOLARIS_MATH_10_TEST_CT 1
5916 static tTestDesc aSolaris_Math_10Tests[] = {
5917 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
5920 * Fix Command Arguments for Solaris_Math_10
5922 static const char* apzSolaris_Math_10Patch[] = {
5924 "#define\tisinf(x) __builtin_isinf(x)",
5925 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5926 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5927 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5928 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5933 * Description of Solaris_Mutex_Init_1 fix
5935 tSCC zSolaris_Mutex_Init_1Name[] =
5936 "solaris_mutex_init_1";
5939 * File name selection pattern
5941 tSCC zSolaris_Mutex_Init_1List[] =
5944 * Machine/OS name selection pattern
5946 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5949 * content selection pattern - do fix if pattern found
5951 tSCC zSolaris_Mutex_Init_1Select0[] =
5952 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5954 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
5955 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5956 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5959 * Fix Command Arguments for Solaris_Mutex_Init_1
5961 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5962 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5963 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5968 * Description of Solaris_Mutex_Init_2 fix
5970 tSCC zSolaris_Mutex_Init_2Name[] =
5971 "solaris_mutex_init_2";
5974 * File name selection pattern
5976 tSCC zSolaris_Mutex_Init_2List[] =
5979 * Machine/OS name selection pattern
5981 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5982 "*-*-solaris2.[0-9]",
5983 "*-*-solaris2.[0-9][!0-9]*",
5984 (const char*)NULL };
5987 * content selection pattern - do fix if pattern found
5989 tSCC zSolaris_Mutex_Init_2Select0[] =
5990 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5992 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5993 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5994 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5997 * Fix Command Arguments for Solaris_Mutex_Init_2
5999 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6001 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6006 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6007 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6012 * Description of Solaris_Rwlock_Init_1 fix
6014 tSCC zSolaris_Rwlock_Init_1Name[] =
6015 "solaris_rwlock_init_1";
6018 * File name selection pattern
6020 tSCC zSolaris_Rwlock_Init_1List[] =
6023 * Machine/OS name selection pattern
6025 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6027 (const char*)NULL };
6030 * content selection pattern - do fix if pattern found
6032 tSCC zSolaris_Rwlock_Init_1Select0[] =
6033 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6035 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6036 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6037 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6040 * Fix Command Arguments for Solaris_Rwlock_Init_1
6042 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6044 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6047 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6049 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6054 * Description of Solaris_Once_Init_1 fix
6056 tSCC zSolaris_Once_Init_1Name[] =
6057 "solaris_once_init_1";
6060 * File name selection pattern
6062 tSCC zSolaris_Once_Init_1List[] =
6065 * Machine/OS name selection pattern
6067 tSCC* apzSolaris_Once_Init_1Machs[] = {
6069 (const char*)NULL };
6072 * content selection pattern - do fix if pattern found
6074 tSCC zSolaris_Once_Init_1Select0[] =
6075 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6077 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6078 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6079 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6082 * Fix Command Arguments for Solaris_Once_Init_1
6084 static const char* apzSolaris_Once_Init_1Patch[] = {
6087 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6092 * Description of Solaris_Once_Init_2 fix
6094 tSCC zSolaris_Once_Init_2Name[] =
6095 "solaris_once_init_2";
6098 * File name selection pattern
6100 tSCC zSolaris_Once_Init_2List[] =
6103 * Machine/OS name selection pattern
6105 tSCC* apzSolaris_Once_Init_2Machs[] = {
6106 "*-*-solaris2.[0-9]",
6107 "*-*-solaris2.[0-9][!0-9]*",
6108 (const char*)NULL };
6111 * content selection pattern - do fix if pattern found
6113 tSCC zSolaris_Once_Init_2Select0[] =
6114 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6116 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6117 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6118 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6121 * Fix Command Arguments for Solaris_Once_Init_2
6123 static const char* apzSolaris_Once_Init_2Patch[] = {
6125 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6128 %1{0}, {0}, {0}, {%3}%4\n\
6130 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6133 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6135 * Description of Solaris_Socket fix
6137 tSCC zSolaris_SocketName[] =
6141 * File name selection pattern
6143 tSCC zSolaris_SocketList[] =
6146 * Machine/OS name selection pattern
6148 #define apzSolaris_SocketMachs (const char**)NULL
6151 * content selection pattern - do fix if pattern found
6153 tSCC zSolaris_SocketSelect0[] =
6154 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
6156 #define SOLARIS_SOCKET_TEST_CT 1
6157 static tTestDesc aSolaris_SocketTests[] = {
6158 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
6161 * Fix Command Arguments for Solaris_Socket
6163 static const char* apzSolaris_SocketPatch[] = {
6165 "extern int %1(int, %2void *, int, int);",
6166 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
6169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6171 * Description of Solaris_Stdio_Tag fix
6173 tSCC zSolaris_Stdio_TagName[] =
6174 "solaris_stdio_tag";
6177 * File name selection pattern
6179 tSCC zSolaris_Stdio_TagList[] =
6182 * Machine/OS name selection pattern
6184 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6187 * content selection pattern - do fix if pattern found
6189 tSCC zSolaris_Stdio_TagSelect0[] =
6190 "__cplusplus < 54321L";
6193 * content bypass pattern - skip fix if pattern found
6195 tSCC zSolaris_Stdio_TagBypass0[] =
6198 #define SOLARIS_STDIO_TAG_TEST_CT 2
6199 static tTestDesc aSolaris_Stdio_TagTests[] = {
6200 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6201 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6204 * Fix Command Arguments for Solaris_Stdio_Tag
6206 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6207 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6212 * Description of Solaris_Unistd fix
6214 tSCC zSolaris_UnistdName[] =
6218 * File name selection pattern
6220 tSCC zSolaris_UnistdList[] =
6223 * Machine/OS name selection pattern
6225 #define apzSolaris_UnistdMachs (const char**)NULL
6228 * content selection pattern - do fix if pattern found
6230 tSCC zSolaris_UnistdSelect0[] =
6231 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6234 * content bypass pattern - skip fix if pattern found
6236 tSCC zSolaris_UnistdBypass0[] =
6239 #define SOLARIS_UNISTD_TEST_CT 2
6240 static tTestDesc aSolaris_UnistdTests[] = {
6241 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
6242 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6245 * Fix Command Arguments for Solaris_Unistd
6247 static const char* apzSolaris_UnistdPatch[] = {
6249 "extern int getpagesize();\n\
6251 "^extern (pid_t|int) getpgid\\(.*\\);",
6254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6256 * Description of Solaris_Widec fix
6258 tSCC zSolaris_WidecName[] =
6262 * File name selection pattern
6264 tSCC zSolaris_WidecList[] =
6267 * Machine/OS name selection pattern
6269 tSCC* apzSolaris_WidecMachs[] = {
6270 "*-*-solaris2.[0-5]",
6271 "*-*-solaris2.[0-5].*",
6272 (const char*)NULL };
6275 * content selection pattern - do fix if pattern found
6277 tSCC zSolaris_WidecSelect0[] =
6281 * content bypass pattern - skip fix if pattern found
6283 tSCC zSolaris_WidecBypass0[] =
6284 "include.*wchar\\.h";
6286 #define SOLARIS_WIDEC_TEST_CT 2
6287 static tTestDesc aSolaris_WidecTests[] = {
6288 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
6289 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
6292 * Fix Command Arguments for Solaris_Widec
6294 static const char* apzSolaris_WidecPatch[] = {
6297 #include <wchar.h>",
6300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6302 * Description of Statsswtch fix
6304 tSCC zStatsswtchName[] =
6308 * File name selection pattern
6310 tSCC zStatsswtchList[] =
6313 * Machine/OS name selection pattern
6315 #define apzStatsswtchMachs (const char**)NULL
6318 * content selection pattern - do fix if pattern found
6320 tSCC zStatsswtchSelect0[] =
6323 #define STATSSWTCH_TEST_CT 1
6324 static tTestDesc aStatsswtchTests[] = {
6325 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6328 * Fix Command Arguments for Statsswtch
6330 static const char* apzStatsswtchPatch[] = {
6335 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6337 * Description of Stdio_Stdarg_H fix
6339 tSCC zStdio_Stdarg_HName[] =
6343 * File name selection pattern
6345 tSCC zStdio_Stdarg_HList[] =
6348 * Machine/OS name selection pattern
6350 tSCC* apzStdio_Stdarg_HMachs[] = {
6351 "*-*-solaris2.1[0-9]*",
6352 (const char*)NULL };
6355 * content bypass pattern - skip fix if pattern found
6357 tSCC zStdio_Stdarg_HBypass0[] =
6358 "include.*(stdarg.h|machine/ansi.h)";
6360 #define STDIO_STDARG_H_TEST_CT 1
6361 static tTestDesc aStdio_Stdarg_HTests[] = {
6362 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6365 * Fix Command Arguments for Stdio_Stdarg_H
6367 static const char* apzStdio_Stdarg_HPatch[] = {
6369 "#define __need___va_list\n\
6370 #include <stdarg.h>\n",
6373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6375 * Description of Stdio_Va_List fix
6377 tSCC zStdio_Va_ListName[] =
6381 * File name selection pattern
6383 tSCC zStdio_Va_ListList[] =
6384 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6386 * Machine/OS name selection pattern
6388 tSCC* apzStdio_Va_ListMachs[] = {
6389 "*-*-solaris2.1[0-9]*",
6390 (const char*)NULL };
6393 * content bypass pattern - skip fix if pattern found
6395 tSCC zStdio_Va_ListBypass0[] =
6396 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6398 #define STDIO_VA_LIST_TEST_CT 1
6399 static tTestDesc aStdio_Va_ListTests[] = {
6400 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6403 * Fix Command Arguments for Stdio_Va_List
6405 static const char* apzStdio_Va_ListPatch[] = { "sed",
6406 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6407 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6408 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6409 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6410 s@ va_list@ __not_va_list__@\n\
6411 s@\\*va_list@*__not_va_list__@\n\
6412 s@ __va_list)@ __gnuc_va_list)@\n\
6413 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6414 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6415 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6416 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6417 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6418 s@VA_LIST@DUMMY_VA_LIST@\n\
6419 s@_Va_LIST@_VA_LIST@",
6422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6424 * Description of Stdio_Va_List_Clients fix
6426 tSCC zStdio_Va_List_ClientsName[] =
6427 "stdio_va_list_clients";
6430 * File name selection pattern
6432 tSCC zStdio_Va_List_ClientsList[] =
6433 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6435 * Machine/OS name selection pattern
6437 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6440 * content bypass pattern - skip fix if pattern found
6442 tSCC zStdio_Va_List_ClientsBypass0[] =
6443 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6444 tSCC zStdio_Va_List_ClientsBypass1[] =
6445 "include <stdarg\\.h>|#ifdef va_start";
6447 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6448 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6449 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6450 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6453 * Fix Command Arguments for Stdio_Va_List_Clients
6455 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6456 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6457 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6458 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6459 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6460 s@ va_list@ __not_va_list__@\n\
6461 s@\\*va_list@*__not_va_list__@\n\
6462 s@ __va_list)@ __gnuc_va_list)@\n\
6463 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6464 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6465 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6466 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6467 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6468 s@VA_LIST@DUMMY_VA_LIST@\n\
6469 s@_Va_LIST@_VA_LIST@",
6472 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6474 * Description of Strict_Ansi_Not fix
6476 tSCC zStrict_Ansi_NotName[] =
6480 * File name selection pattern
6482 #define zStrict_Ansi_NotList (char*)NULL
6484 * Machine/OS name selection pattern
6486 #define apzStrict_Ansi_NotMachs (const char**)NULL
6489 * content selection pattern - do fix if pattern found
6491 tSCC zStrict_Ansi_NotSelect0[] =
6492 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6495 * content bypass pattern - skip fix if pattern found
6497 tSCC zStrict_Ansi_NotBypass0[] =
6498 "GNU and MIPS C compilers define __STDC__ differently";
6499 tSCC zStrict_Ansi_NotBypass1[] =
6500 "__SCO_VERSION__.*__STDC__ != 1";
6503 * perform the C function call test
6505 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6507 #define STRICT_ANSI_NOT_TEST_CT 4
6508 static tTestDesc aStrict_Ansi_NotTests[] = {
6509 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6510 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6511 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6512 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6515 * Fix Command Arguments for Strict_Ansi_Not
6517 static const char* apzStrict_Ansi_NotPatch[] = {
6519 "%1 !defined(__STRICT_ANSI__)",
6522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6524 * Description of Strict_Ansi_Not_Ctd fix
6526 tSCC zStrict_Ansi_Not_CtdName[] =
6527 "strict_ansi_not_ctd";
6530 * File name selection pattern
6532 tSCC zStrict_Ansi_Not_CtdList[] =
6533 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6535 * Machine/OS name selection pattern
6537 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6540 * content selection pattern - do fix if pattern found
6542 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6543 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6546 * perform the C function call test
6548 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6550 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6551 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6552 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6553 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6556 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6558 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6560 "%1 !defined(__STRICT_ANSI__)",
6563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6565 * Description of Strict_Ansi_Only fix
6567 tSCC zStrict_Ansi_OnlyName[] =
6571 * File name selection pattern
6573 #define zStrict_Ansi_OnlyList (char*)NULL
6575 * Machine/OS name selection pattern
6577 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6580 * content selection pattern - do fix if pattern found
6582 tSCC zStrict_Ansi_OnlySelect0[] =
6583 "^([ \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)";
6586 * perform the C function call test
6588 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6590 #define STRICT_ANSI_ONLY_TEST_CT 2
6591 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6592 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6593 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6596 * Fix Command Arguments for Strict_Ansi_Only
6598 static const char* apzStrict_Ansi_OnlyPatch[] = {
6600 "%1 defined(__STRICT_ANSI__)",
6603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6605 * Description of Struct_File fix
6607 tSCC zStruct_FileName[] =
6611 * File name selection pattern
6613 tSCC zStruct_FileList[] =
6616 * Machine/OS name selection pattern
6618 #define apzStruct_FileMachs (const char**)NULL
6621 * content selection pattern - do fix if pattern found
6623 tSCC zStruct_FileSelect0[] =
6624 "^.*xdrstdio_create.*struct __file_s";
6626 #define STRUCT_FILE_TEST_CT 1
6627 static tTestDesc aStruct_FileTests[] = {
6628 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6631 * Fix Command Arguments for Struct_File
6633 static const char* apzStruct_FilePatch[] = {
6635 "struct __file_s;\n\
6639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6641 * Description of Struct_Sockaddr fix
6643 tSCC zStruct_SockaddrName[] =
6647 * File name selection pattern
6649 tSCC zStruct_SockaddrList[] =
6652 * Machine/OS name selection pattern
6654 #define apzStruct_SockaddrMachs (const char**)NULL
6657 * content selection pattern - do fix if pattern found
6659 tSCC zStruct_SockaddrSelect0[] =
6660 "^.*authdes_create.*struct sockaddr[^_]";
6663 * content bypass pattern - skip fix if pattern found
6665 tSCC zStruct_SockaddrBypass0[] =
6667 tSCC zStruct_SockaddrBypass1[] =
6668 "struct sockaddr;\n";
6670 #define STRUCT_SOCKADDR_TEST_CT 3
6671 static tTestDesc aStruct_SockaddrTests[] = {
6672 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6673 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6674 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6677 * Fix Command Arguments for Struct_Sockaddr
6679 static const char* apzStruct_SockaddrPatch[] = {
6681 "struct sockaddr;\n\
6685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6687 * Description of Sun_Auth_Proto fix
6689 tSCC zSun_Auth_ProtoName[] =
6693 * File name selection pattern
6695 tSCC zSun_Auth_ProtoList[] =
6696 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6698 * Machine/OS name selection pattern
6700 #define apzSun_Auth_ProtoMachs (const char**)NULL
6703 * content selection pattern - do fix if pattern found
6705 tSCC zSun_Auth_ProtoSelect0[] =
6706 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6709 * content bypass pattern - skip fix if pattern found
6711 tSCC zSun_Auth_ProtoBypass0[] =
6714 #define SUN_AUTH_PROTO_TEST_CT 2
6715 static tTestDesc aSun_Auth_ProtoTests[] = {
6716 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6717 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6720 * Fix Command Arguments for Sun_Auth_Proto
6722 static const char* apzSun_Auth_ProtoPatch[] = {
6724 "#ifdef __cplusplus\n\
6729 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6734 * Description of Sun_Bogus_Ifdef fix
6736 tSCC zSun_Bogus_IfdefName[] =
6740 * File name selection pattern
6742 tSCC zSun_Bogus_IfdefList[] =
6743 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6745 * Machine/OS name selection pattern
6747 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6750 * content selection pattern - do fix if pattern found
6752 tSCC zSun_Bogus_IfdefSelect0[] =
6753 "#ifdef(.*\\|\\|.*)";
6755 #define SUN_BOGUS_IFDEF_TEST_CT 1
6756 static tTestDesc aSun_Bogus_IfdefTests[] = {
6757 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6760 * Fix Command Arguments for Sun_Bogus_Ifdef
6762 static const char* apzSun_Bogus_IfdefPatch[] = {
6767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6769 * Description of Sun_Catmacro fix
6771 tSCC zSun_CatmacroName[] =
6775 * File name selection pattern
6777 tSCC zSun_CatmacroList[] =
6778 "pixrect/memvar.h\0";
6780 * Machine/OS name selection pattern
6782 #define apzSun_CatmacroMachs (const char**)NULL
6785 * content selection pattern - do fix if pattern found
6787 tSCC zSun_CatmacroSelect0[] =
6788 "^#define[ \t]+CAT\\(a,b\\).*";
6790 #define SUN_CATMACRO_TEST_CT 1
6791 static tTestDesc aSun_CatmacroTests[] = {
6792 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6795 * Fix Command Arguments for Sun_Catmacro
6797 static const char* apzSun_CatmacroPatch[] = {
6800 # define CAT(a,b) a##b\n\
6806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6808 * Description of Sun_Malloc fix
6810 tSCC zSun_MallocName[] =
6814 * File name selection pattern
6816 tSCC zSun_MallocList[] =
6819 * Machine/OS name selection pattern
6821 #define apzSun_MallocMachs (const char**)NULL
6824 * content bypass pattern - skip fix if pattern found
6826 tSCC zSun_MallocBypass0[] =
6827 "_CLASSIC_ANSI_TYPES";
6829 #define SUN_MALLOC_TEST_CT 1
6830 static tTestDesc aSun_MallocTests[] = {
6831 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6834 * Fix Command Arguments for Sun_Malloc
6836 static const char* apzSun_MallocPatch[] = { "sed",
6837 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6838 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6839 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6840 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6841 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6846 * Description of Sun_Rusers_Semi fix
6848 tSCC zSun_Rusers_SemiName[] =
6852 * File name selection pattern
6854 tSCC zSun_Rusers_SemiList[] =
6855 "rpcsvc/rusers.h\0";
6857 * Machine/OS name selection pattern
6859 #define apzSun_Rusers_SemiMachs (const char**)NULL
6862 * content selection pattern - do fix if pattern found
6864 tSCC zSun_Rusers_SemiSelect0[] =
6867 #define SUN_RUSERS_SEMI_TEST_CT 1
6868 static tTestDesc aSun_Rusers_SemiTests[] = {
6869 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6872 * Fix Command Arguments for Sun_Rusers_Semi
6874 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6875 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6880 * Description of Sun_Signal fix
6882 tSCC zSun_SignalName[] =
6886 * File name selection pattern
6888 tSCC zSun_SignalList[] =
6889 "sys/signal.h\0signal.h\0";
6891 * Machine/OS name selection pattern
6893 #define apzSun_SignalMachs (const char**)NULL
6896 * content selection pattern - do fix if pattern found
6898 tSCC zSun_SignalSelect0[] =
6899 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6901 #define SUN_SIGNAL_TEST_CT 1
6902 static tTestDesc aSun_SignalTests[] = {
6903 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6906 * Fix Command Arguments for Sun_Signal
6908 static const char* apzSun_SignalPatch[] = {
6910 "#ifdef __cplusplus\n\
6911 void\t(*signal(...))(...);\n\
6917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6919 * Description of Sunos_Strlen fix
6921 tSCC zSunos_StrlenName[] =
6925 * File name selection pattern
6927 tSCC zSunos_StrlenList[] =
6930 * Machine/OS name selection pattern
6932 #define apzSunos_StrlenMachs (const char**)NULL
6935 * content selection pattern - do fix if pattern found
6937 tSCC zSunos_StrlenSelect0[] =
6938 "int[ \t]*strlen\\(\\);(.*)";
6940 #define SUNOS_STRLEN_TEST_CT 1
6941 static tTestDesc aSunos_StrlenTests[] = {
6942 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6945 * Fix Command Arguments for Sunos_Strlen
6947 static const char* apzSunos_StrlenPatch[] = {
6949 "__SIZE_TYPE__ strlen();%1",
6952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6954 * Description of Svr4_Disable_Opt fix
6956 tSCC zSvr4_Disable_OptName[] =
6960 * File name selection pattern
6962 tSCC zSvr4_Disable_OptList[] =
6965 * Machine/OS name selection pattern
6967 #define apzSvr4_Disable_OptMachs (const char**)NULL
6970 * content selection pattern - do fix if pattern found
6972 tSCC zSvr4_Disable_OptSelect0[] =
6973 "#define.*__std_hdr_";
6975 #define SVR4_DISABLE_OPT_TEST_CT 1
6976 static tTestDesc aSvr4_Disable_OptTests[] = {
6977 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6980 * Fix Command Arguments for Svr4_Disable_Opt
6982 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6983 "-e", "/#define.*__std_hdr_/d",
6986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6988 * Description of Svr4_Getcwd fix
6990 tSCC zSvr4_GetcwdName[] =
6994 * File name selection pattern
6996 tSCC zSvr4_GetcwdList[] =
6997 "stdlib.h\0unistd.h\0prototypes.h\0";
6999 * Machine/OS name selection pattern
7001 #define apzSvr4_GetcwdMachs (const char**)NULL
7004 * content selection pattern - do fix if pattern found
7006 tSCC zSvr4_GetcwdSelect0[] =
7007 "getcwd\\(char \\*, int\\)";
7009 #define SVR4_GETCWD_TEST_CT 1
7010 static tTestDesc aSvr4_GetcwdTests[] = {
7011 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7014 * Fix Command Arguments for Svr4_Getcwd
7016 static const char* apzSvr4_GetcwdPatch[] = {
7018 "getcwd(char *, size_t)",
7021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7023 * Description of Svr4_Krnl fix
7025 tSCC zSvr4_KrnlName[] =
7029 * File name selection pattern
7031 tSCC zSvr4_KrnlList[] =
7032 "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";
7034 * Machine/OS name selection pattern
7036 tSCC* apzSvr4_KrnlMachs[] = {
7038 "i?86-sequent-ptx*",
7039 (const char*)NULL };
7042 * content bypass pattern - skip fix if pattern found
7044 tSCC zSvr4_KrnlBypass0[] =
7047 #define SVR4_KRNL_TEST_CT 1
7048 static tTestDesc aSvr4_KrnlTests[] = {
7049 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
7052 * Fix Command Arguments for Svr4_Krnl
7054 static const char* apzSvr4_KrnlPatch[] = {
7057 "#endif /* _KERNEL */\n",
7060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7062 * Description of Svr4_Profil fix
7064 tSCC zSvr4_ProfilName[] =
7068 * File name selection pattern
7070 tSCC zSvr4_ProfilList[] =
7071 "stdlib.h\0unistd.h\0";
7073 * Machine/OS name selection pattern
7075 #define apzSvr4_ProfilMachs (const char**)NULL
7078 * content selection pattern - do fix if pattern found
7080 tSCC zSvr4_ProfilSelect0[] =
7081 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7084 * content bypass pattern - skip fix if pattern found
7086 tSCC zSvr4_ProfilBypass0[] =
7089 #define SVR4_PROFIL_TEST_CT 2
7090 static tTestDesc aSvr4_ProfilTests[] = {
7091 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7092 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7095 * Fix Command Arguments for Svr4_Profil
7097 static const char* apzSvr4_ProfilPatch[] = {
7099 "profil(unsigned short *, size_t, int, unsigned int)",
7102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7104 * Description of Svr4_Sighandler_Type fix
7106 tSCC zSvr4_Sighandler_TypeName[] =
7107 "svr4_sighandler_type";
7110 * File name selection pattern
7112 tSCC zSvr4_Sighandler_TypeList[] =
7115 * Machine/OS name selection pattern
7117 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7120 * content selection pattern - do fix if pattern found
7122 tSCC zSvr4_Sighandler_TypeSelect0[] =
7123 "void *\\(\\*\\)\\(\\)";
7125 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7126 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7127 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7130 * Fix Command Arguments for Svr4_Sighandler_Type
7132 static const char* apzSvr4_Sighandler_TypePatch[] = {
7137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7139 * Description of Svr4_Undeclared_Getrnge fix
7141 tSCC zSvr4_Undeclared_GetrngeName[] =
7142 "svr4_undeclared_getrnge";
7145 * File name selection pattern
7147 tSCC zSvr4_Undeclared_GetrngeList[] =
7150 * Machine/OS name selection pattern
7152 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7155 * content selection pattern - do fix if pattern found
7157 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7161 * content bypass pattern - skip fix if pattern found
7163 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7164 "static void getrnge";
7166 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7167 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7168 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7169 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7172 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7174 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7177 static int getrnge ();",
7178 "^static int[ \t]+size;",
7181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7183 * Description of Sysv68_String fix
7185 tSCC zSysv68_StringName[] =
7189 * File name selection pattern
7191 tSCC zSysv68_StringList[] =
7192 "testing.h\0string.h\0";
7194 * Machine/OS name selection pattern
7196 #define apzSysv68_StringMachs (const char**)NULL
7199 * content bypass pattern - skip fix if pattern found
7201 tSCC zSysv68_StringBypass0[] =
7202 "_CLASSIC_ANSI_TYPES";
7204 #define SYSV68_STRING_TEST_CT 1
7205 static tTestDesc aSysv68_StringTests[] = {
7206 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7209 * Fix Command Arguments for Sysv68_String
7211 static const char* apzSysv68_StringPatch[] = { "sed",
7212 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7213 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7214 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7215 "-e", "/^extern char$/N",
7216 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7217 "-e", "/^extern int$/N",
7218 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7219 "-e", "/^\tstrncmp(),$/N",
7220 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7221 extern unsigned int\\\n\
7225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7227 * Description of Sysz_Stdlib_For_Sun fix
7229 tSCC zSysz_Stdlib_For_SunName[] =
7230 "sysz_stdlib_for_sun";
7233 * File name selection pattern
7235 tSCC zSysz_Stdlib_For_SunList[] =
7238 * Machine/OS name selection pattern
7240 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7243 * content selection pattern - do fix if pattern found
7245 tSCC zSysz_Stdlib_For_SunSelect0[] =
7246 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7249 * content bypass pattern - skip fix if pattern found
7251 tSCC zSysz_Stdlib_For_SunBypass0[] =
7252 "_CLASSIC_ANSI_TYPES";
7254 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7255 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7256 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7257 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7260 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7262 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7269 * Description of Thread_Keyword fix
7271 tSCC zThread_KeywordName[] =
7275 * File name selection pattern
7277 tSCC zThread_KeywordList[] =
7278 "pthread.h\0bits/sigthread.h\0";
7280 * Machine/OS name selection pattern
7282 #define apzThread_KeywordMachs (const char**)NULL
7285 * content selection pattern - do fix if pattern found
7287 tSCC zThread_KeywordSelect0[] =
7288 "([* ])__thread([,)])";
7290 #define THREAD_KEYWORD_TEST_CT 1
7291 static tTestDesc aThread_KeywordTests[] = {
7292 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7295 * Fix Command Arguments for Thread_Keyword
7297 static const char* apzThread_KeywordPatch[] = {
7302 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7304 * Description of Tinfo_Cplusplus fix
7306 tSCC zTinfo_CplusplusName[] =
7310 * File name selection pattern
7312 tSCC zTinfo_CplusplusList[] =
7315 * Machine/OS name selection pattern
7317 #define apzTinfo_CplusplusMachs (const char**)NULL
7320 * content selection pattern - do fix if pattern found
7322 tSCC zTinfo_CplusplusSelect0[] =
7325 #define TINFO_CPLUSPLUS_TEST_CT 1
7326 static tTestDesc aTinfo_CplusplusTests[] = {
7327 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7330 * Fix Command Arguments for Tinfo_Cplusplus
7332 static const char* apzTinfo_CplusplusPatch[] = {
7337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7339 * Description of Ultrix_Atexit_Param fix
7341 tSCC zUltrix_Atexit_ParamName[] =
7342 "ultrix_atexit_param";
7345 * File name selection pattern
7347 tSCC zUltrix_Atexit_ParamList[] =
7350 * Machine/OS name selection pattern
7352 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7355 * content selection pattern - do fix if pattern found
7357 tSCC zUltrix_Atexit_ParamSelect0[] =
7358 "atexit\\(.*\\(\\)";
7360 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
7361 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7362 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7365 * Fix Command Arguments for Ultrix_Atexit_Param
7367 static const char* apzUltrix_Atexit_ParamPatch[] = {
7369 "atexit( void (*__func)( void )",
7372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7374 * Description of Ultrix_Atof_Param fix
7376 tSCC zUltrix_Atof_ParamName[] =
7377 "ultrix_atof_param";
7380 * File name selection pattern
7382 tSCC zUltrix_Atof_ParamList[] =
7385 * Machine/OS name selection pattern
7387 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7390 * content selection pattern - do fix if pattern found
7392 tSCC zUltrix_Atof_ParamSelect0[] =
7393 "atof\\([ \t]*char";
7395 #define ULTRIX_ATOF_PARAM_TEST_CT 1
7396 static tTestDesc aUltrix_Atof_ParamTests[] = {
7397 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7400 * Fix Command Arguments for Ultrix_Atof_Param
7402 static const char* apzUltrix_Atof_ParamPatch[] = {
7407 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7409 * Description of Ultrix_Const fix
7411 tSCC zUltrix_ConstName[] =
7415 * File name selection pattern
7417 tSCC zUltrix_ConstList[] =
7420 * Machine/OS name selection pattern
7422 #define apzUltrix_ConstMachs (const char**)NULL
7425 * content selection pattern - do fix if pattern found
7427 tSCC zUltrix_ConstSelect0[] =
7428 "perror\\( char \\*";
7430 #define ULTRIX_CONST_TEST_CT 1
7431 static tTestDesc aUltrix_ConstTests[] = {
7432 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7435 * Fix Command Arguments for Ultrix_Const
7437 static const char* apzUltrix_ConstPatch[] = {
7440 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7445 * Description of Ultrix_Const2 fix
7447 tSCC zUltrix_Const2Name[] =
7451 * File name selection pattern
7453 tSCC zUltrix_Const2List[] =
7456 * Machine/OS name selection pattern
7458 #define apzUltrix_Const2Machs (const char**)NULL
7461 * content selection pattern - do fix if pattern found
7463 tSCC zUltrix_Const2Select0[] =
7464 "\\*fopen\\( char \\*";
7466 #define ULTRIX_CONST2_TEST_CT 1
7467 static tTestDesc aUltrix_Const2Tests[] = {
7468 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7471 * Fix Command Arguments for Ultrix_Const2
7473 static const char* apzUltrix_Const2Patch[] = {
7475 "%1( const char *%3, const char *",
7476 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7481 * Description of Ultrix_Const3 fix
7483 tSCC zUltrix_Const3Name[] =
7487 * File name selection pattern
7489 tSCC zUltrix_Const3List[] =
7492 * Machine/OS name selection pattern
7494 #define apzUltrix_Const3Machs (const char**)NULL
7497 * content selection pattern - do fix if pattern found
7499 tSCC zUltrix_Const3Select0[] =
7500 "fdopen\\( .*, char \\*";
7502 #define ULTRIX_CONST3_TEST_CT 1
7503 static tTestDesc aUltrix_Const3Tests[] = {
7504 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7507 * Fix Command Arguments for Ultrix_Const3
7509 static const char* apzUltrix_Const3Patch[] = {
7512 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7517 * Description of Ultrix_Fix_Fixproto fix
7519 tSCC zUltrix_Fix_FixprotoName[] =
7520 "ultrix_fix_fixproto";
7523 * File name selection pattern
7525 tSCC zUltrix_Fix_FixprotoList[] =
7528 * Machine/OS name selection pattern
7530 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7533 * content selection pattern - do fix if pattern found
7535 tSCC zUltrix_Fix_FixprotoSelect0[] =
7538 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7539 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7540 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7543 * Fix Command Arguments for Ultrix_Fix_Fixproto
7545 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7549 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7554 * Description of Ultrix_Ifdef fix
7556 tSCC zUltrix_IfdefName[] =
7560 * File name selection pattern
7562 tSCC zUltrix_IfdefList[] =
7565 * Machine/OS name selection pattern
7567 #define apzUltrix_IfdefMachs (const char**)NULL
7570 * content selection pattern - do fix if pattern found
7572 tSCC zUltrix_IfdefSelect0[] =
7573 "^#ifdef KERNEL[ \t]+&&";
7575 #define ULTRIX_IFDEF_TEST_CT 1
7576 static tTestDesc aUltrix_IfdefTests[] = {
7577 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7580 * Fix Command Arguments for Ultrix_Ifdef
7582 static const char* apzUltrix_IfdefPatch[] = {
7584 "#if defined(KERNEL) &&",
7587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7589 * Description of Ultrix_Locale fix
7591 tSCC zUltrix_LocaleName[] =
7595 * File name selection pattern
7597 tSCC zUltrix_LocaleList[] =
7600 * Machine/OS name selection pattern
7602 #define apzUltrix_LocaleMachs (const char**)NULL
7605 * content selection pattern - do fix if pattern found
7607 tSCC zUltrix_LocaleSelect0[] =
7608 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7610 #define ULTRIX_LOCALE_TEST_CT 1
7611 static tTestDesc aUltrix_LocaleTests[] = {
7612 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7615 * Fix Command Arguments for Ultrix_Locale
7617 static const char* apzUltrix_LocalePatch[] = {
7621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7623 * Description of Ultrix_Math_Ifdef fix
7625 tSCC zUltrix_Math_IfdefName[] =
7626 "ultrix_math_ifdef";
7629 * File name selection pattern
7631 tSCC zUltrix_Math_IfdefList[] =
7632 "sys/limits.h\0float.h\0math.h\0";
7634 * Machine/OS name selection pattern
7636 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7639 * content selection pattern - do fix if pattern found
7641 tSCC zUltrix_Math_IfdefSelect0[] =
7642 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7644 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7645 static tTestDesc aUltrix_Math_IfdefTests[] = {
7646 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7649 * Fix Command Arguments for Ultrix_Math_Ifdef
7651 static const char* apzUltrix_Math_IfdefPatch[] = {
7656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7658 * Description of Ultrix_Nested_Ioctl fix
7660 tSCC zUltrix_Nested_IoctlName[] =
7661 "ultrix_nested_ioctl";
7664 * File name selection pattern
7666 tSCC zUltrix_Nested_IoctlList[] =
7669 * Machine/OS name selection pattern
7671 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7674 * content selection pattern - do fix if pattern found
7676 tSCC zUltrix_Nested_IoctlSelect0[] =
7677 "^/\\* #define SIOCSCREEN";
7679 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7680 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7681 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7684 * Fix Command Arguments for Ultrix_Nested_Ioctl
7686 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7687 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7690 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7692 * Description of Ultrix_Nested_Svc fix
7694 tSCC zUltrix_Nested_SvcName[] =
7695 "ultrix_nested_svc";
7698 * File name selection pattern
7700 tSCC zUltrix_Nested_SvcList[] =
7703 * Machine/OS name selection pattern
7705 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7708 * content selection pattern - do fix if pattern found
7710 tSCC zUltrix_Nested_SvcSelect0[] =
7711 "^ \\*[ \t]*int protocol; */\\*";
7713 #define ULTRIX_NESTED_SVC_TEST_CT 1
7714 static tTestDesc aUltrix_Nested_SvcTests[] = {
7715 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7718 * Fix Command Arguments for Ultrix_Nested_Svc
7720 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7721 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7724 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7726 * Description of Ultrix_Stat fix
7728 tSCC zUltrix_StatName[] =
7732 * File name selection pattern
7734 tSCC zUltrix_StatList[] =
7737 * Machine/OS name selection pattern
7739 #define apzUltrix_StatMachs (const char**)NULL
7742 * content selection pattern - do fix if pattern found
7744 tSCC zUltrix_StatSelect0[] =
7745 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7747 #define ULTRIX_STAT_TEST_CT 1
7748 static tTestDesc aUltrix_StatTests[] = {
7749 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7752 * Fix Command Arguments for Ultrix_Stat
7754 static const char* apzUltrix_StatPatch[] = { "sed",
7755 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7757 /* macro to test for symbolic link */\\\n\
7758 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7759 "-e", "/^[ \t]*fstat(),$/a\\\n\
7763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7765 * Description of Ultrix_Static fix
7767 tSCC zUltrix_StaticName[] =
7771 * File name selection pattern
7773 tSCC zUltrix_StaticList[] =
7776 * Machine/OS name selection pattern
7778 #define apzUltrix_StaticMachs (const char**)NULL
7781 * content selection pattern - do fix if pattern found
7783 tSCC zUltrix_StaticSelect0[] =
7784 "#include \"r[34]_cpu";
7786 #define ULTRIX_STATIC_TEST_CT 1
7787 static tTestDesc aUltrix_StaticTests[] = {
7788 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7791 * Fix Command Arguments for Ultrix_Static
7793 static const char* apzUltrix_StaticPatch[] = { "sed",
7794 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7795 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7796 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7801 * Description of Ultrix_Stdlib fix
7803 tSCC zUltrix_StdlibName[] =
7807 * File name selection pattern
7809 tSCC zUltrix_StdlibList[] =
7812 * Machine/OS name selection pattern
7814 #define apzUltrix_StdlibMachs (const char**)NULL
7817 * content selection pattern - do fix if pattern found
7819 tSCC zUltrix_StdlibSelect0[] =
7820 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7822 #define ULTRIX_STDLIB_TEST_CT 1
7823 static tTestDesc aUltrix_StdlibTests[] = {
7824 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7827 * Fix Command Arguments for Ultrix_Stdlib
7829 static const char* apzUltrix_StdlibPatch[] = { "sed",
7830 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7831 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7832 void\t\tunsetenv( const char *__name );\\\n\
7833 int\t\tputenv( char *__s );\n",
7834 "-e", "/^char.*getenv();.*$/a\\\n\
7836 void\tunsetenv();\\\n\
7840 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7842 * Description of Ultrix_Strings fix
7844 tSCC zUltrix_StringsName[] =
7848 * File name selection pattern
7850 tSCC zUltrix_StringsList[] =
7853 * Machine/OS name selection pattern
7855 #define apzUltrix_StringsMachs (const char**)NULL
7858 * content selection pattern - do fix if pattern found
7860 tSCC zUltrix_StringsSelect0[] =
7861 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7863 #define ULTRIX_STRINGS_TEST_CT 1
7864 static tTestDesc aUltrix_StringsTests[] = {
7865 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7868 * Fix Command Arguments for Ultrix_Strings
7870 static const char* apzUltrix_StringsPatch[] = {
7874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7876 * Description of Ultrix_Strings2 fix
7878 tSCC zUltrix_Strings2Name[] =
7882 * File name selection pattern
7884 tSCC zUltrix_Strings2List[] =
7887 * Machine/OS name selection pattern
7889 #define apzUltrix_Strings2Machs (const char**)NULL
7892 * content selection pattern - do fix if pattern found
7894 tSCC zUltrix_Strings2Select0[] =
7895 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7897 #define ULTRIX_STRINGS2_TEST_CT 1
7898 static tTestDesc aUltrix_Strings2Tests[] = {
7899 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7902 * Fix Command Arguments for Ultrix_Strings2
7904 static const char* apzUltrix_Strings2Patch[] = { "sed",
7905 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7908 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7909 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7910 "-e", "/^.*strncmp();.*/a\\\n\
7912 \tstrcasecmp(),\\\n\
7913 \tstrncasecmp();\n",
7916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7918 * Description of Ultrix_Sys_Time fix
7920 tSCC zUltrix_Sys_TimeName[] =
7924 * File name selection pattern
7926 tSCC zUltrix_Sys_TimeList[] =
7929 * Machine/OS name selection pattern
7931 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7934 * content selection pattern - do fix if pattern found
7936 tSCC zUltrix_Sys_TimeSelect0[] =
7937 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7939 #define ULTRIX_SYS_TIME_TEST_CT 1
7940 static tTestDesc aUltrix_Sys_TimeTests[] = {
7941 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7944 * Fix Command Arguments for Ultrix_Sys_Time
7946 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7947 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7949 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7950 extern int getitimer(int, struct itimerval *);\\\n\
7951 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7952 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7953 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7954 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7955 extern int stime(const time_t *);\\\n\
7956 extern int utimes(const char *, const struct timeval[2]);\\\n\
7957 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7958 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7959 extern\tint adjtime();\\\n\
7960 extern\tint getitimer();\\\n\
7961 extern\tint setitimer();\\\n\
7962 extern\tint gettimeofday();\\\n\
7963 extern\tint settimeofday();\\\n\
7964 extern\tvoid profil();\\\n\
7965 extern\tint stime();\\\n\
7966 extern\tint utimes();\\\n\
7967 extern\tint select();\n",
7970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7972 * Description of Ultrix_Unistd fix
7974 tSCC zUltrix_UnistdName[] =
7978 * File name selection pattern
7980 tSCC zUltrix_UnistdList[] =
7983 * Machine/OS name selection pattern
7985 #define apzUltrix_UnistdMachs (const char**)NULL
7988 * content selection pattern - do fix if pattern found
7990 tSCC zUltrix_UnistdSelect0[] =
7991 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7993 #define ULTRIX_UNISTD_TEST_CT 1
7994 static tTestDesc aUltrix_UnistdTests[] = {
7995 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7998 * Fix Command Arguments for Ultrix_Unistd
8000 static const char* apzUltrix_UnistdPatch[] = { "sed",
8001 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
8002 \tgetpagesize(),\n",
8003 "-e", "/^[ \t]*fork(),.*$/a\\\n\
8007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8009 * Description of Unicosmk_Restrict fix
8011 tSCC zUnicosmk_RestrictName[] =
8012 "unicosmk_restrict";
8015 * File name selection pattern
8017 tSCC zUnicosmk_RestrictList[] =
8018 "stdio.h\0stdlib.h\0wchar.h\0";
8020 * Machine/OS name selection pattern
8022 tSCC* apzUnicosmk_RestrictMachs[] = {
8024 (const char*)NULL };
8027 * content selection pattern - do fix if pattern found
8029 tSCC zUnicosmk_RestrictSelect0[] =
8030 "(\\*[ \t]*)restrict([ \t]+)";
8032 #define UNICOSMK_RESTRICT_TEST_CT 1
8033 static tTestDesc aUnicosmk_RestrictTests[] = {
8034 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
8037 * Fix Command Arguments for Unicosmk_Restrict
8039 static const char* apzUnicosmk_RestrictPatch[] = {
8044 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8046 * Description of Uw7_Byteorder_Fix fix
8048 tSCC zUw7_Byteorder_FixName[] =
8049 "uw7_byteorder_fix";
8052 * File name selection pattern
8054 tSCC zUw7_Byteorder_FixList[] =
8057 * Machine/OS name selection pattern
8059 tSCC* apzUw7_Byteorder_FixMachs[] = {
8063 "i?86-*-solaris2.[0-4]",
8064 "powerpcle-*-solaris2.[0-4]",
8065 "sparc-*-solaris2.[0-4]",
8066 (const char*)NULL };
8069 * content selection pattern - do fix if pattern found
8071 tSCC zUw7_Byteorder_FixSelect0[] =
8075 * perform the 'test' shell command - do fix on success
8077 tSCC zUw7_Byteorder_FixTest0[] =
8078 "-f sys/byteorder.h";
8080 #define UW7_BYTEORDER_FIX_TEST_CT 2
8081 static tTestDesc aUw7_Byteorder_FixTests[] = {
8082 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
8083 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
8086 * Fix Command Arguments for Uw7_Byteorder_Fix
8088 static const char* apzUw7_Byteorder_FixPatch[] = {
8091 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
8094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8096 * Description of Va_I960_Macro fix
8098 tSCC zVa_I960_MacroName[] =
8102 * File name selection pattern
8104 tSCC zVa_I960_MacroList[] =
8105 "arch/i960/archI960.h\0";
8107 * Machine/OS name selection pattern
8109 #define apzVa_I960_MacroMachs (const char**)NULL
8112 * content selection pattern - do fix if pattern found
8114 tSCC zVa_I960_MacroSelect0[] =
8115 "__(vsiz|vali|vpad|alignof__)";
8117 #define VA_I960_MACRO_TEST_CT 1
8118 static tTestDesc aVa_I960_MacroTests[] = {
8119 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8122 * Fix Command Arguments for Va_I960_Macro
8124 static const char* apzVa_I960_MacroPatch[] = {
8129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8131 * Description of Void_Null fix
8133 tSCC zVoid_NullName[] =
8137 * File name selection pattern
8139 tSCC zVoid_NullList[] =
8140 "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";
8142 * Machine/OS name selection pattern
8144 #define apzVoid_NullMachs (const char**)NULL
8147 * content selection pattern - do fix if pattern found
8149 tSCC zVoid_NullSelect0[] =
8150 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8153 * content bypass pattern - skip fix if pattern found
8155 tSCC zVoid_NullBypass0[] =
8158 #define VOID_NULL_TEST_CT 2
8159 static tTestDesc aVoid_NullTests[] = {
8160 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8161 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8164 * Fix Command Arguments for Void_Null
8166 static const char* apzVoid_NullPatch[] = {
8171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8173 * Description of Vxworks_Gcc_Problem fix
8175 tSCC zVxworks_Gcc_ProblemName[] =
8176 "vxworks_gcc_problem";
8179 * File name selection pattern
8181 tSCC zVxworks_Gcc_ProblemList[] =
8182 "types/vxTypesBase.h\0";
8184 * Machine/OS name selection pattern
8186 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8189 * content selection pattern - do fix if pattern found
8191 tSCC zVxworks_Gcc_ProblemSelect0[] =
8192 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8194 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8195 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8196 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8199 * Fix Command Arguments for Vxworks_Gcc_Problem
8201 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8202 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8203 "-e", "/[ \t]size_t/i\\\n\
8204 #ifndef _GCC_SIZE_T\\\n\
8205 #define _GCC_SIZE_T\n",
8206 "-e", "/[ \t]size_t/a\\\n\
8208 "-e", "/[ \t]ptrdiff_t/i\\\n\
8209 #ifndef _GCC_PTRDIFF_T\\\n\
8210 #define _GCC_PTRDIFF_T\n",
8211 "-e", "/[ \t]ptrdiff_t/a\\\n\
8213 "-e", "/[ \t]wchar_t/i\\\n\
8214 #ifndef _GCC_WCHAR_T\\\n\
8215 #define _GCC_WCHAR_T\n",
8216 "-e", "/[ \t]wchar_t/a\\\n\
8220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8222 * Description of Vxworks_Needs_Vxtypes fix
8224 tSCC zVxworks_Needs_VxtypesName[] =
8225 "vxworks_needs_vxtypes";
8228 * File name selection pattern
8230 tSCC zVxworks_Needs_VxtypesList[] =
8233 * Machine/OS name selection pattern
8235 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8238 * content selection pattern - do fix if pattern found
8240 tSCC zVxworks_Needs_VxtypesSelect0[] =
8241 "uint_t([ \t]+_clocks_per_sec)";
8243 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8244 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8245 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8248 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8250 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8257 * Description of Vxworks_Needs_Vxworks fix
8259 tSCC zVxworks_Needs_VxworksName[] =
8260 "vxworks_needs_vxworks";
8263 * File name selection pattern
8265 tSCC zVxworks_Needs_VxworksList[] =
8268 * Machine/OS name selection pattern
8270 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8273 * content selection pattern - do fix if pattern found
8275 tSCC zVxworks_Needs_VxworksSelect0[] =
8276 "#[ \t]define[ \t]+__INCstath";
8279 * perform the 'test' shell command - do fix on success
8281 tSCC zVxworks_Needs_VxworksTest0[] =
8282 " -r types/vxTypesOld.h";
8283 tSCC zVxworks_Needs_VxworksTest1[] =
8284 " -n \"`egrep '#include' $file`\"";
8285 tSCC zVxworks_Needs_VxworksTest2[] =
8286 " -n \"`egrep ULONG $file`\"";
8288 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8289 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8290 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8291 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8292 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8293 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8296 * Fix Command Arguments for Vxworks_Needs_Vxworks
8298 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8299 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8300 #include <types/vxTypesOld.h>\n",
8303 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8305 * Description of Vxworks_Time fix
8307 tSCC zVxworks_TimeName[] =
8311 * File name selection pattern
8313 tSCC zVxworks_TimeList[] =
8316 * Machine/OS name selection pattern
8318 #define apzVxworks_TimeMachs (const char**)NULL
8321 * content selection pattern - do fix if pattern found
8323 tSCC zVxworks_TimeSelect0[] =
8324 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8327 * perform the 'test' shell command - do fix on success
8329 tSCC zVxworks_TimeTest0[] =
8332 #define VXWORKS_TIME_TEST_CT 2
8333 static tTestDesc aVxworks_TimeTests[] = {
8334 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8335 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8338 * Fix Command Arguments for Vxworks_Time
8340 static const char* apzVxworks_TimePatch[] = {
8342 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8343 #ifdef __cplusplus\n\
8344 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8346 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8348 #define __gcc_VOIDFUNCPTR_defined\n\
8350 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8355 * Description of Windiss_Math1 fix
8357 tSCC zWindiss_Math1Name[] =
8361 * File name selection pattern
8363 tSCC zWindiss_Math1List[] =
8366 * Machine/OS name selection pattern
8368 tSCC* apzWindiss_Math1Machs[] = {
8370 (const char*)NULL };
8371 #define WINDISS_MATH1_TEST_CT 0
8372 #define aWindiss_Math1Tests (tTestDesc*)NULL
8375 * Fix Command Arguments for Windiss_Math1
8377 static const char* apzWindiss_Math1Patch[] = { "sed",
8378 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8383 * Description of Windiss_Math2 fix
8385 tSCC zWindiss_Math2Name[] =
8389 * File name selection pattern
8391 tSCC zWindiss_Math2List[] =
8394 * Machine/OS name selection pattern
8396 tSCC* apzWindiss_Math2Machs[] = {
8398 (const char*)NULL };
8399 #define WINDISS_MATH2_TEST_CT 0
8400 #define aWindiss_Math2Tests (tTestDesc*)NULL
8403 * Fix Command Arguments for Windiss_Math2
8405 static const char* apzWindiss_Math2Patch[] = { "sed",
8406 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8409 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8411 * Description of Windiss_Valist fix
8413 tSCC zWindiss_ValistName[] =
8417 * File name selection pattern
8419 #define zWindiss_ValistList (char*)NULL
8421 * Machine/OS name selection pattern
8423 tSCC* apzWindiss_ValistMachs[] = {
8425 (const char*)NULL };
8428 * content selection pattern - do fix if pattern found
8430 tSCC zWindiss_ValistSelect0[] =
8431 "(#include.*)diab/va_list.h";
8433 #define WINDISS_VALIST_TEST_CT 1
8434 static tTestDesc aWindiss_ValistTests[] = {
8435 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
8438 * Fix Command Arguments for Windiss_Valist
8440 static const char* apzWindiss_ValistPatch[] = { "sed",
8441 "-e", "s|diab/va_list.h|stdarg.h|",
8444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8446 * Description of X11_Class fix
8448 tSCC zX11_ClassName[] =
8452 * File name selection pattern
8454 tSCC zX11_ClassList[] =
8457 * Machine/OS name selection pattern
8459 #define apzX11_ClassMachs (const char**)NULL
8462 * content selection pattern - do fix if pattern found
8464 tSCC zX11_ClassSelect0[] =
8465 "^([ \t]*char \\*)class;(.*)";
8468 * content bypass pattern - skip fix if pattern found
8470 tSCC zX11_ClassBypass0[] =
8473 #define X11_CLASS_TEST_CT 2
8474 static tTestDesc aX11_ClassTests[] = {
8475 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8476 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8479 * Fix Command Arguments for X11_Class
8481 static const char* apzX11_ClassPatch[] = {
8483 "#ifdef __cplusplus\n\
8490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8492 * Description of X11_Class_Usage fix
8494 tSCC zX11_Class_UsageName[] =
8498 * File name selection pattern
8500 tSCC zX11_Class_UsageList[] =
8501 "Xm/BaseClassI.h\0";
8503 * Machine/OS name selection pattern
8505 #define apzX11_Class_UsageMachs (const char**)NULL
8508 * content selection pattern - do fix if pattern found
8510 tSCC zX11_Class_UsageSelect0[] =
8514 * content bypass pattern - skip fix if pattern found
8516 tSCC zX11_Class_UsageBypass0[] =
8519 #define X11_CLASS_USAGE_TEST_CT 2
8520 static tTestDesc aX11_Class_UsageTests[] = {
8521 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8522 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8525 * Fix Command Arguments for X11_Class_Usage
8527 static const char* apzX11_Class_UsagePatch[] = {
8532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8534 * Description of X11_New fix
8536 tSCC zX11_NewName[] =
8540 * File name selection pattern
8542 tSCC zX11_NewList[] =
8545 * Machine/OS name selection pattern
8547 #define apzX11_NewMachs (const char**)NULL
8550 * content bypass pattern - skip fix if pattern found
8552 tSCC zX11_NewBypass0[] =
8555 #define X11_NEW_TEST_CT 1
8556 static tTestDesc aX11_NewTests[] = {
8557 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8560 * Fix Command Arguments for X11_New
8562 static const char* apzX11_NewPatch[] = { "sed",
8563 "-e", "/Widget\told, new;/i\\\n\
8564 #ifdef __cplusplus\\\n\
8565 \tWidget\told, c_new;\\\n\
8567 "-e", "/Widget\told, new;/a\\\n\
8569 "-e", "s/Widget new,/Widget c_new,/g",
8572 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8574 * Description of X11_Sprintf fix
8576 tSCC zX11_SprintfName[] =
8580 * File name selection pattern
8582 tSCC zX11_SprintfList[] =
8583 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8585 * Machine/OS name selection pattern
8587 #define apzX11_SprintfMachs (const char**)NULL
8590 * content selection pattern - do fix if pattern found
8592 tSCC zX11_SprintfSelect0[] =
8593 "^extern char \\*\tsprintf\\(\\);$";
8595 #define X11_SPRINTF_TEST_CT 1
8596 static tTestDesc aX11_SprintfTests[] = {
8597 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8600 * Fix Command Arguments for X11_Sprintf
8602 static const char* apzX11_SprintfPatch[] = {
8604 "#ifndef __STDC__\n\
8606 #endif /* !defined __STDC__ */",
8610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8614 #define REGEX_COUNT 255
8615 #define MACH_LIST_SIZE_LIMIT 261
8616 #define FIX_COUNT 212
8619 * Enumerate the fixes
8622 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8623 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8624 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8625 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8626 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8627 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8628 AAB_SUN_MEMCPY_FIXIDX,
8629 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8630 AAB_ULTRIX_LIMITS_FIXIDX,
8631 AAB_ULTRIX_MEMORY_FIXIDX,
8632 AAB_ULTRIX_STRING_FIXIDX,
8634 AIX_SYSMACHINE_FIXIDX,
8636 AIX_SYSWAIT_2_FIXIDX,
8637 AIX_VOLATILE_FIXIDX,
8638 ALPHA___ASSERT_FIXIDX,
8639 ALPHA___EXTERN_PREFIX_FIXIDX,
8640 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8641 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8642 ALPHA_ASSERT_FIXIDX,
8643 ALPHA_BAD_LVAL_FIXIDX,
8644 ALPHA_GETOPT_FIXIDX,
8645 ALPHA_PARENS_FIXIDX,
8646 ALPHA_PTHREAD_FIXIDX,
8647 ALPHA_PTHREAD_GCC_FIXIDX,
8648 ALPHA_PTHREAD_INIT_FIXIDX,
8651 AVOID_BOOL_DEFINE_FIXIDX,
8652 AVOID_BOOL_TYPE_FIXIDX,
8653 AVOID_WCHAR_T_TYPE_FIXIDX,
8654 BAD_STRUCT_TERM_FIXIDX,
8656 BROKEN_ASSERT_STDIO_FIXIDX,
8657 BROKEN_ASSERT_STDLIB_FIXIDX,
8660 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8661 CTRL_QUOTES_DEF_FIXIDX,
8662 CTRL_QUOTES_USE_FIXIDX,
8664 DARWIN_EXTERNC_FIXIDX,
8665 DARWIN_GCC4_BREAKAGE_FIXIDX,
8666 DARWIN_PRIVATE_EXTERN_FIXIDX,
8667 DEC_INTERN_ASM_FIXIDX,
8668 DJGPP_WCHAR_H_FIXIDX,
8670 EXCEPTION_STRUCTURE_FIXIDX,
8671 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8672 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8673 GLIBC_C99_INLINE_1_FIXIDX,
8674 GLIBC_C99_INLINE_1A_FIXIDX,
8675 GLIBC_C99_INLINE_2_FIXIDX,
8676 GLIBC_C99_INLINE_3_FIXIDX,
8677 GLIBC_C99_INLINE_4_FIXIDX,
8678 GLIBC_MUTEX_INIT_FIXIDX,
8682 HPUX10_CPP_POW_INLINE_FIXIDX,
8683 HPUX11_CPP_POW_INLINE_FIXIDX,
8684 HPPA_HPUX_FP_MACROS_FIXIDX,
8685 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8686 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8687 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8689 HPUX11_FABSF_FIXIDX,
8690 HPUX11_SIZE_T_FIXIDX,
8691 HPUX11_SNPRINTF_FIXIDX,
8692 HPUX11_UINT32_C_FIXIDX,
8693 HPUX11_VSNPRINTF_FIXIDX,
8694 HPUX8_BOGUS_INLINES_FIXIDX,
8695 HPUX_CTYPE_MACROS_FIXIDX,
8697 HPUX_LONG_DOUBLE_FIXIDX,
8698 HPUX_SYSTIME_FIXIDX,
8699 HPUX_SPU_INFO_FIXIDX,
8700 HPUX11_EXTERN_SENDFILE_FIXIDX,
8701 HPUX11_EXTERN_SENDPATH_FIXIDX,
8702 HPUX_EXTERN_ERRNO_FIXIDX,
8703 HPUX11_PTHREAD_CONST_FIXIDX,
8704 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8705 HUGE_VAL_HEX_FIXIDX,
8706 HUGE_VALF_HEX_FIXIDX,
8707 HUGE_VALL_HEX_FIXIDX,
8708 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8709 IO_QUOTES_DEF_FIXIDX,
8710 IO_QUOTES_USE_FIXIDX,
8711 IP_MISSING_SEMI_FIXIDX,
8712 IRIX___RESTRICT_FIXIDX,
8713 IRIX___GENERIC1_FIXIDX,
8714 IRIX___GENERIC2_FIXIDX,
8715 IRIX_ASM_APOSTROPHE_FIXIDX,
8716 IRIX_LIMITS_CONST_FIXIDX,
8717 IRIX_SOCKLEN_T_FIXIDX,
8718 IRIX_STDINT_C99_FIXIDX,
8719 IRIX_STDIO_VA_LIST_FIXIDX,
8720 IRIX_WCSFTIME_FIXIDX,
8722 ISC_OMITS_WITH_STDC_FIXIDX,
8723 KANDR_CONCAT_FIXIDX,
8724 LIBC1_G_VA_LIST_FIXIDX,
8725 LIBC1_IFDEFD_MEMX_FIXIDX,
8726 LINUX_IA64_UCONTEXT_FIXIDX,
8727 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8728 LYNXOS_MISSING_PUTENV_FIXIDX,
8729 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8730 MACHINE_NAME_FIXIDX,
8731 MATH_EXCEPTION_FIXIDX,
8732 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8733 NESTED_AUTH_DES_FIXIDX,
8734 NESTED_MOTOROLA_FIXIDX,
8735 NESTED_SYS_LIMITS_FIXIDX,
8736 NETBSD_C99_INLINE_1_FIXIDX,
8737 NETBSD_C99_INLINE_2_FIXIDX,
8738 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8739 NEXT_MATH_PREFIX_FIXIDX,
8740 NEXT_TEMPLATE_FIXIDX,
8741 NEXT_VOLITILE_FIXIDX,
8742 NEXT_WAIT_UNION_FIXIDX,
8743 NODEENT_SYNTAX_FIXIDX,
8744 OBSTACK_LVALUE_CAST_FIXIDX,
8745 OSF_NAMESPACE_A_FIXIDX,
8746 OSF_NAMESPACE_C_FIXIDX,
8747 PTHREAD_PAGE_SIZE_FIXIDX,
8748 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8749 READ_RET_TYPE_FIXIDX,
8750 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8751 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8752 RS6000_DOUBLE_FIXIDX,
8753 RS6000_FCHMOD_FIXIDX,
8754 RS6000_PARAM_FIXIDX,
8757 SCO_STATIC_FUNC_FIXIDX,
8759 SOLARIS_MATH_1_FIXIDX,
8760 SOLARIS_MATH_2_FIXIDX,
8761 SOLARIS_MATH_3_FIXIDX,
8762 SOLARIS_MATH_4_FIXIDX,
8763 SOLARIS_MATH_8_FIXIDX,
8764 SOLARIS_MATH_9_FIXIDX,
8765 SOLARIS_MATH_10_FIXIDX,
8766 SOLARIS_MUTEX_INIT_1_FIXIDX,
8767 SOLARIS_MUTEX_INIT_2_FIXIDX,
8768 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8769 SOLARIS_ONCE_INIT_1_FIXIDX,
8770 SOLARIS_ONCE_INIT_2_FIXIDX,
8771 SOLARIS_SOCKET_FIXIDX,
8772 SOLARIS_STDIO_TAG_FIXIDX,
8773 SOLARIS_UNISTD_FIXIDX,
8774 SOLARIS_WIDEC_FIXIDX,
8776 STDIO_STDARG_H_FIXIDX,
8777 STDIO_VA_LIST_FIXIDX,
8778 STDIO_VA_LIST_CLIENTS_FIXIDX,
8779 STRICT_ANSI_NOT_FIXIDX,
8780 STRICT_ANSI_NOT_CTD_FIXIDX,
8781 STRICT_ANSI_ONLY_FIXIDX,
8783 STRUCT_SOCKADDR_FIXIDX,
8784 SUN_AUTH_PROTO_FIXIDX,
8785 SUN_BOGUS_IFDEF_FIXIDX,
8786 SUN_CATMACRO_FIXIDX,
8788 SUN_RUSERS_SEMI_FIXIDX,
8790 SUNOS_STRLEN_FIXIDX,
8791 SVR4_DISABLE_OPT_FIXIDX,
8795 SVR4_SIGHANDLER_TYPE_FIXIDX,
8796 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8797 SYSV68_STRING_FIXIDX,
8798 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8799 THREAD_KEYWORD_FIXIDX,
8800 TINFO_CPLUSPLUS_FIXIDX,
8801 ULTRIX_ATEXIT_PARAM_FIXIDX,
8802 ULTRIX_ATOF_PARAM_FIXIDX,
8803 ULTRIX_CONST_FIXIDX,
8804 ULTRIX_CONST2_FIXIDX,
8805 ULTRIX_CONST3_FIXIDX,
8806 ULTRIX_FIX_FIXPROTO_FIXIDX,
8807 ULTRIX_IFDEF_FIXIDX,
8808 ULTRIX_LOCALE_FIXIDX,
8809 ULTRIX_MATH_IFDEF_FIXIDX,
8810 ULTRIX_NESTED_IOCTL_FIXIDX,
8811 ULTRIX_NESTED_SVC_FIXIDX,
8813 ULTRIX_STATIC_FIXIDX,
8814 ULTRIX_STDLIB_FIXIDX,
8815 ULTRIX_STRINGS_FIXIDX,
8816 ULTRIX_STRINGS2_FIXIDX,
8817 ULTRIX_SYS_TIME_FIXIDX,
8818 ULTRIX_UNISTD_FIXIDX,
8819 UNICOSMK_RESTRICT_FIXIDX,
8820 UW7_BYTEORDER_FIX_FIXIDX,
8821 VA_I960_MACRO_FIXIDX,
8823 VXWORKS_GCC_PROBLEM_FIXIDX,
8824 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8825 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8826 VXWORKS_TIME_FIXIDX,
8827 WINDISS_MATH1_FIXIDX,
8828 WINDISS_MATH2_FIXIDX,
8829 WINDISS_VALIST_FIXIDX,
8831 X11_CLASS_USAGE_FIXIDX,
8836 tFixDesc fixDescList[ FIX_COUNT ] = {
8837 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8838 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8839 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8840 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8842 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8843 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8844 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8845 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8847 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8848 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8849 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8850 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8852 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8853 apzAab_Fd_Zero_Gnu_Types_HMachs,
8854 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8855 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8857 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8858 apzAab_Fd_Zero_Selectbits_HMachs,
8859 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8860 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8862 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8863 apzAab_Solaris_Sys_Varargs_HMachs,
8864 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8865 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8867 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8868 apzAab_Sun_MemcpyMachs,
8869 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8870 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8872 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8873 apzAab_Ultrix_Ansi_CompatMachs,
8874 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8875 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8877 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8878 apzAab_Ultrix_LimitsMachs,
8879 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8880 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8882 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8883 apzAab_Ultrix_MemoryMachs,
8884 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8885 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8887 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8888 apzAab_Ultrix_StringMachs,
8889 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8890 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8892 { zAix_PthreadName, zAix_PthreadList,
8893 apzAix_PthreadMachs,
8894 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8895 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8897 { zAix_SysmachineName, zAix_SysmachineList,
8898 apzAix_SysmachineMachs,
8899 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8900 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8902 { zAix_SyswaitName, zAix_SyswaitList,
8903 apzAix_SyswaitMachs,
8904 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8905 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8907 { zAix_Syswait_2Name, zAix_Syswait_2List,
8908 apzAix_Syswait_2Machs,
8909 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8910 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8912 { zAix_VolatileName, zAix_VolatileList,
8913 apzAix_VolatileMachs,
8914 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8915 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8917 { zAlpha___AssertName, zAlpha___AssertList,
8918 apzAlpha___AssertMachs,
8919 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8920 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8922 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8923 apzAlpha___Extern_PrefixMachs,
8924 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8925 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8927 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8928 apzAlpha___Extern_Prefix_StandardsMachs,
8929 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8930 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8932 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8933 apzAlpha___Extern_Prefix_Sys_StatMachs,
8934 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8935 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8937 { zAlpha_AssertName, zAlpha_AssertList,
8938 apzAlpha_AssertMachs,
8939 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8940 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8942 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8943 apzAlpha_Bad_LvalMachs,
8944 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8945 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8947 { zAlpha_GetoptName, zAlpha_GetoptList,
8948 apzAlpha_GetoptMachs,
8949 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8950 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8952 { zAlpha_ParensName, zAlpha_ParensList,
8953 apzAlpha_ParensMachs,
8954 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8955 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8957 { zAlpha_PthreadName, zAlpha_PthreadList,
8958 apzAlpha_PthreadMachs,
8959 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8960 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8962 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8963 apzAlpha_Pthread_GccMachs,
8964 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8965 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8967 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8968 apzAlpha_Pthread_InitMachs,
8969 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8970 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8972 { zAlpha_SbrkName, zAlpha_SbrkList,
8974 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8975 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8977 { zAlpha_WcharName, zAlpha_WcharList,
8978 apzAlpha_WcharMachs,
8979 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8980 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8982 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8983 apzAvoid_Bool_DefineMachs,
8984 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8985 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8987 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8988 apzAvoid_Bool_TypeMachs,
8989 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8990 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8992 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8993 apzAvoid_Wchar_T_TypeMachs,
8994 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8995 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8997 { zBad_Struct_TermName, zBad_Struct_TermList,
8998 apzBad_Struct_TermMachs,
8999 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9000 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9002 { zBadquoteName, zBadquoteList,
9004 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9005 aBadquoteTests, apzBadquotePatch, 0 },
9007 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9008 apzBroken_Assert_StdioMachs,
9009 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9010 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9012 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9013 apzBroken_Assert_StdlibMachs,
9014 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9015 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9017 { zBroken_CabsName, zBroken_CabsList,
9018 apzBroken_CabsMachs,
9019 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9020 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9022 { zBroken_NanName, zBroken_NanList,
9024 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9025 aBroken_NanTests, apzBroken_NanPatch, 0 },
9027 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9028 apzBsd_Stdio_Attrs_ConflictMachs,
9029 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9030 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9032 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9033 apzCtrl_Quotes_DefMachs,
9034 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9035 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9037 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9038 apzCtrl_Quotes_UseMachs,
9039 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9040 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9042 { zCxx_UnreadyName, zCxx_UnreadyList,
9043 apzCxx_UnreadyMachs,
9044 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9045 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9047 { zDarwin_ExterncName, zDarwin_ExterncList,
9048 apzDarwin_ExterncMachs,
9049 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9050 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9052 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9053 apzDarwin_Gcc4_BreakageMachs,
9054 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9055 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9057 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9058 apzDarwin_Private_ExternMachs,
9059 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9060 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9062 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9063 apzDec_Intern_AsmMachs,
9064 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9065 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9067 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9068 apzDjgpp_Wchar_HMachs,
9069 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9070 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9072 { zEcd_CursorName, zEcd_CursorList,
9074 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9075 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9077 { zException_StructureName, zException_StructureList,
9078 apzException_StructureMachs,
9079 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9080 aException_StructureTests, apzException_StructurePatch, 0 },
9082 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9083 apzFreebsd_Gcc3_BreakageMachs,
9084 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9085 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9087 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9088 apzFreebsd_Gcc4_BreakageMachs,
9089 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9090 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9092 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9093 apzGlibc_C99_Inline_1Machs,
9094 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9095 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9097 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9098 apzGlibc_C99_Inline_1aMachs,
9099 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9100 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9102 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9103 apzGlibc_C99_Inline_2Machs,
9104 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9105 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9107 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9108 apzGlibc_C99_Inline_3Machs,
9109 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9110 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9112 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9113 apzGlibc_C99_Inline_4Machs,
9114 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9115 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9117 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9118 apzGlibc_Mutex_InitMachs,
9119 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9120 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9122 { zGnu_TypesName, zGnu_TypesList,
9124 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9125 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9127 { zHp_InlineName, zHp_InlineList,
9129 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9130 aHp_InlineTests, apzHp_InlinePatch, 0 },
9132 { zHp_SysfileName, zHp_SysfileList,
9134 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9135 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9137 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9138 apzHpux10_Cpp_Pow_InlineMachs,
9139 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9140 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9142 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9143 apzHpux11_Cpp_Pow_InlineMachs,
9144 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9145 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9147 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9148 apzHppa_Hpux_Fp_MacrosMachs,
9149 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9150 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9152 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9153 apzHpux10_Ctype_Declarations1Machs,
9154 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9155 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9157 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9158 apzHpux10_Ctype_Declarations2Machs,
9159 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9160 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9162 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9163 apzHpux10_Stdio_DeclarationsMachs,
9164 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9165 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9167 { zHpux11_AbsName, zHpux11_AbsList,
9169 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9170 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9172 { zHpux11_FabsfName, zHpux11_FabsfList,
9173 apzHpux11_FabsfMachs,
9174 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9175 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9177 { zHpux11_Size_TName, zHpux11_Size_TList,
9178 apzHpux11_Size_TMachs,
9179 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9180 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9182 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9183 apzHpux11_SnprintfMachs,
9184 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9185 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9187 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
9188 apzHpux11_Uint32_CMachs,
9189 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9190 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
9192 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9193 apzHpux11_VsnprintfMachs,
9194 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9195 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9197 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9198 apzHpux8_Bogus_InlinesMachs,
9199 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9200 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9202 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9203 apzHpux_Ctype_MacrosMachs,
9204 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9205 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9207 { zHpux_HtonlName, zHpux_HtonlList,
9209 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9210 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9212 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9213 apzHpux_Long_DoubleMachs,
9214 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9215 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9217 { zHpux_SystimeName, zHpux_SystimeList,
9218 apzHpux_SystimeMachs,
9219 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9220 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9222 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9223 apzHpux_Spu_InfoMachs,
9224 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9225 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9227 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9228 apzHpux11_Extern_SendfileMachs,
9229 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9230 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9232 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9233 apzHpux11_Extern_SendpathMachs,
9234 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9235 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9237 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9238 apzHpux_Extern_ErrnoMachs,
9239 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9240 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9242 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9243 apzHpux11_Pthread_ConstMachs,
9244 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9245 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9247 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9248 apzHpux_Pthread_InitializersMachs,
9249 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9250 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9252 { zHuge_Val_HexName, zHuge_Val_HexList,
9253 apzHuge_Val_HexMachs,
9254 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9255 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9257 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9258 apzHuge_Valf_HexMachs,
9259 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9260 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9262 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9263 apzHuge_Vall_HexMachs,
9264 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9265 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9267 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9268 apzInt_Abort_Free_And_ExitMachs,
9269 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9270 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9272 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9273 apzIo_Quotes_DefMachs,
9274 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9275 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9277 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9278 apzIo_Quotes_UseMachs,
9279 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9280 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9282 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9283 apzIp_Missing_SemiMachs,
9284 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9285 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9287 { zIrix___RestrictName, zIrix___RestrictList,
9288 apzIrix___RestrictMachs,
9289 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9290 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9292 { zIrix___Generic1Name, zIrix___Generic1List,
9293 apzIrix___Generic1Machs,
9294 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9295 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9297 { zIrix___Generic2Name, zIrix___Generic2List,
9298 apzIrix___Generic2Machs,
9299 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9300 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9302 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9303 apzIrix_Asm_ApostropheMachs,
9304 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9305 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9307 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9308 apzIrix_Limits_ConstMachs,
9309 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9310 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9312 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9313 apzIrix_Socklen_TMachs,
9314 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9315 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9317 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
9318 apzIrix_Stdint_C99Machs,
9319 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9320 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
9322 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9323 apzIrix_Stdio_Va_ListMachs,
9324 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9325 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9327 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9328 apzIrix_WcsftimeMachs,
9329 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9330 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9332 { zIsc_FmodName, zIsc_FmodList,
9334 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9335 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
9337 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
9338 apzIsc_Omits_With_StdcMachs,
9339 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9340 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
9342 { zKandr_ConcatName, zKandr_ConcatList,
9343 apzKandr_ConcatMachs,
9344 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9345 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9347 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
9348 apzLibc1_G_Va_ListMachs,
9349 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9350 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
9352 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
9353 apzLibc1_Ifdefd_MemxMachs,
9354 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9355 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
9357 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9358 apzLinux_Ia64_UcontextMachs,
9359 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9360 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9362 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9363 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9364 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9365 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9367 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9368 apzLynxos_Missing_PutenvMachs,
9369 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9370 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9372 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9373 apzMachine_Ansi_H_Va_ListMachs,
9374 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9375 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9377 { zMachine_NameName, zMachine_NameList,
9378 apzMachine_NameMachs,
9379 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9380 aMachine_NameTests, apzMachine_NamePatch, 0 },
9382 { zMath_ExceptionName, zMath_ExceptionList,
9383 apzMath_ExceptionMachs,
9384 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9385 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9387 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9388 apzMath_Huge_Val_From_Dbl_MaxMachs,
9389 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9390 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9392 { zNested_Auth_DesName, zNested_Auth_DesList,
9393 apzNested_Auth_DesMachs,
9394 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9395 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9397 { zNested_MotorolaName, zNested_MotorolaList,
9398 apzNested_MotorolaMachs,
9399 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9400 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
9402 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
9403 apzNested_Sys_LimitsMachs,
9404 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9405 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
9407 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9408 apzNetbsd_C99_Inline_1Machs,
9409 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9410 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9412 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9413 apzNetbsd_C99_Inline_2Machs,
9414 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9415 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9417 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9418 apzNetbsd_Extra_SemicolonMachs,
9419 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9420 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9422 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9423 apzNext_Math_PrefixMachs,
9424 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9425 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9427 { zNext_TemplateName, zNext_TemplateList,
9428 apzNext_TemplateMachs,
9429 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9430 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9432 { zNext_VolitileName, zNext_VolitileList,
9433 apzNext_VolitileMachs,
9434 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9435 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9437 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9438 apzNext_Wait_UnionMachs,
9439 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9440 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9442 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9443 apzNodeent_SyntaxMachs,
9444 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9445 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9447 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9448 apzObstack_Lvalue_CastMachs,
9449 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9450 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9452 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9453 apzOsf_Namespace_AMachs,
9454 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9455 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9457 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9458 apzOsf_Namespace_CMachs,
9459 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9460 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9462 { zPthread_Page_SizeName, zPthread_Page_SizeList,
9463 apzPthread_Page_SizeMachs,
9464 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9465 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
9467 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9468 apzPthread_Incomplete_Struct_ArgumentMachs,
9469 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9470 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9472 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9473 apzRead_Ret_TypeMachs,
9474 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9475 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9477 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9478 apzRpc_Xdr_Lvalue_Cast_AMachs,
9479 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9480 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9482 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9483 apzRpc_Xdr_Lvalue_Cast_BMachs,
9484 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9485 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9487 { zRs6000_DoubleName, zRs6000_DoubleList,
9488 apzRs6000_DoubleMachs,
9489 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9490 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9492 { zRs6000_FchmodName, zRs6000_FchmodList,
9493 apzRs6000_FchmodMachs,
9494 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9495 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9497 { zRs6000_ParamName, zRs6000_ParamList,
9498 apzRs6000_ParamMachs,
9499 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9500 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9502 { zSco_MathName, zSco_MathList,
9504 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9505 aSco_MathTests, apzSco_MathPatch, 0 },
9507 { zSco_RegsetName, zSco_RegsetList,
9509 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9510 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
9512 { zSco_Static_FuncName, zSco_Static_FuncList,
9513 apzSco_Static_FuncMachs,
9514 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9515 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
9517 { zSco_UtimeName, zSco_UtimeList,
9519 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9520 aSco_UtimeTests, apzSco_UtimePatch, 0 },
9522 { zSolaris_Math_1Name, zSolaris_Math_1List,
9523 apzSolaris_Math_1Machs,
9524 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9525 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9527 { zSolaris_Math_2Name, zSolaris_Math_2List,
9528 apzSolaris_Math_2Machs,
9529 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9530 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9532 { zSolaris_Math_3Name, zSolaris_Math_3List,
9533 apzSolaris_Math_3Machs,
9534 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9535 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9537 { zSolaris_Math_4Name, zSolaris_Math_4List,
9538 apzSolaris_Math_4Machs,
9539 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9540 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9542 { zSolaris_Math_8Name, zSolaris_Math_8List,
9543 apzSolaris_Math_8Machs,
9544 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9545 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9547 { zSolaris_Math_9Name, zSolaris_Math_9List,
9548 apzSolaris_Math_9Machs,
9549 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9550 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9552 { zSolaris_Math_10Name, zSolaris_Math_10List,
9553 apzSolaris_Math_10Machs,
9554 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9555 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
9557 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9558 apzSolaris_Mutex_Init_1Machs,
9559 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9560 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9562 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9563 apzSolaris_Mutex_Init_2Machs,
9564 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9565 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9567 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9568 apzSolaris_Rwlock_Init_1Machs,
9569 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9570 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9572 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9573 apzSolaris_Once_Init_1Machs,
9574 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9575 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9577 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9578 apzSolaris_Once_Init_2Machs,
9579 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9580 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9582 { zSolaris_SocketName, zSolaris_SocketList,
9583 apzSolaris_SocketMachs,
9584 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9585 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9587 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9588 apzSolaris_Stdio_TagMachs,
9589 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9590 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9592 { zSolaris_UnistdName, zSolaris_UnistdList,
9593 apzSolaris_UnistdMachs,
9594 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9595 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9597 { zSolaris_WidecName, zSolaris_WidecList,
9598 apzSolaris_WidecMachs,
9599 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9600 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9602 { zStatsswtchName, zStatsswtchList,
9604 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9605 aStatsswtchTests, apzStatsswtchPatch, 0 },
9607 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9608 apzStdio_Stdarg_HMachs,
9609 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9610 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9612 { zStdio_Va_ListName, zStdio_Va_ListList,
9613 apzStdio_Va_ListMachs,
9614 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9615 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9617 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9618 apzStdio_Va_List_ClientsMachs,
9619 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9620 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9622 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9623 apzStrict_Ansi_NotMachs,
9624 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9625 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9627 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9628 apzStrict_Ansi_Not_CtdMachs,
9629 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9630 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9632 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9633 apzStrict_Ansi_OnlyMachs,
9634 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9635 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9637 { zStruct_FileName, zStruct_FileList,
9638 apzStruct_FileMachs,
9639 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9640 aStruct_FileTests, apzStruct_FilePatch, 0 },
9642 { zStruct_SockaddrName, zStruct_SockaddrList,
9643 apzStruct_SockaddrMachs,
9644 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9645 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9647 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9648 apzSun_Auth_ProtoMachs,
9649 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9650 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9652 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9653 apzSun_Bogus_IfdefMachs,
9654 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9655 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9657 { zSun_CatmacroName, zSun_CatmacroList,
9658 apzSun_CatmacroMachs,
9659 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9660 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9662 { zSun_MallocName, zSun_MallocList,
9664 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9665 aSun_MallocTests, apzSun_MallocPatch, 0 },
9667 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9668 apzSun_Rusers_SemiMachs,
9669 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9670 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9672 { zSun_SignalName, zSun_SignalList,
9674 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9675 aSun_SignalTests, apzSun_SignalPatch, 0 },
9677 { zSunos_StrlenName, zSunos_StrlenList,
9678 apzSunos_StrlenMachs,
9679 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9680 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9682 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9683 apzSvr4_Disable_OptMachs,
9684 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9685 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9687 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9688 apzSvr4_GetcwdMachs,
9689 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9690 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9692 { zSvr4_KrnlName, zSvr4_KrnlList,
9694 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9695 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9697 { zSvr4_ProfilName, zSvr4_ProfilList,
9698 apzSvr4_ProfilMachs,
9699 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9700 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9702 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9703 apzSvr4_Sighandler_TypeMachs,
9704 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9705 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9707 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9708 apzSvr4_Undeclared_GetrngeMachs,
9709 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9710 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9712 { zSysv68_StringName, zSysv68_StringList,
9713 apzSysv68_StringMachs,
9714 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9715 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9717 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9718 apzSysz_Stdlib_For_SunMachs,
9719 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9720 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9722 { zThread_KeywordName, zThread_KeywordList,
9723 apzThread_KeywordMachs,
9724 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9725 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9727 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9728 apzTinfo_CplusplusMachs,
9729 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9730 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9732 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9733 apzUltrix_Atexit_ParamMachs,
9734 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9735 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9737 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9738 apzUltrix_Atof_ParamMachs,
9739 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9740 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9742 { zUltrix_ConstName, zUltrix_ConstList,
9743 apzUltrix_ConstMachs,
9744 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9745 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9747 { zUltrix_Const2Name, zUltrix_Const2List,
9748 apzUltrix_Const2Machs,
9749 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9750 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9752 { zUltrix_Const3Name, zUltrix_Const3List,
9753 apzUltrix_Const3Machs,
9754 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9755 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9757 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9758 apzUltrix_Fix_FixprotoMachs,
9759 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9760 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9762 { zUltrix_IfdefName, zUltrix_IfdefList,
9763 apzUltrix_IfdefMachs,
9764 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9765 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9767 { zUltrix_LocaleName, zUltrix_LocaleList,
9768 apzUltrix_LocaleMachs,
9769 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9770 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9772 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9773 apzUltrix_Math_IfdefMachs,
9774 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9775 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9777 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9778 apzUltrix_Nested_IoctlMachs,
9779 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9780 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9782 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9783 apzUltrix_Nested_SvcMachs,
9784 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9785 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9787 { zUltrix_StatName, zUltrix_StatList,
9788 apzUltrix_StatMachs,
9789 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9790 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9792 { zUltrix_StaticName, zUltrix_StaticList,
9793 apzUltrix_StaticMachs,
9794 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9795 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9797 { zUltrix_StdlibName, zUltrix_StdlibList,
9798 apzUltrix_StdlibMachs,
9799 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9800 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9802 { zUltrix_StringsName, zUltrix_StringsList,
9803 apzUltrix_StringsMachs,
9804 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9805 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9807 { zUltrix_Strings2Name, zUltrix_Strings2List,
9808 apzUltrix_Strings2Machs,
9809 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9810 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9812 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9813 apzUltrix_Sys_TimeMachs,
9814 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9815 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9817 { zUltrix_UnistdName, zUltrix_UnistdList,
9818 apzUltrix_UnistdMachs,
9819 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9820 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9822 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9823 apzUnicosmk_RestrictMachs,
9824 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9825 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9827 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9828 apzUw7_Byteorder_FixMachs,
9829 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9830 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9832 { zVa_I960_MacroName, zVa_I960_MacroList,
9833 apzVa_I960_MacroMachs,
9834 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9835 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9837 { zVoid_NullName, zVoid_NullList,
9839 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9840 aVoid_NullTests, apzVoid_NullPatch, 0 },
9842 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9843 apzVxworks_Gcc_ProblemMachs,
9844 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9845 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9847 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9848 apzVxworks_Needs_VxtypesMachs,
9849 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9850 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9852 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9853 apzVxworks_Needs_VxworksMachs,
9854 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9855 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9857 { zVxworks_TimeName, zVxworks_TimeList,
9858 apzVxworks_TimeMachs,
9859 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9860 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9862 { zWindiss_Math1Name, zWindiss_Math1List,
9863 apzWindiss_Math1Machs,
9864 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9865 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9867 { zWindiss_Math2Name, zWindiss_Math2List,
9868 apzWindiss_Math2Machs,
9869 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9870 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9872 { zWindiss_ValistName, zWindiss_ValistList,
9873 apzWindiss_ValistMachs,
9874 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9875 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9877 { zX11_ClassName, zX11_ClassList,
9879 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9880 aX11_ClassTests, apzX11_ClassPatch, 0 },
9882 { zX11_Class_UsageName, zX11_Class_UsageList,
9883 apzX11_Class_UsageMachs,
9884 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9885 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9887 { zX11_NewName, zX11_NewList,
9889 X11_NEW_TEST_CT, FD_MACH_ONLY,
9890 aX11_NewTests, apzX11_NewPatch, 0 },
9892 { zX11_SprintfName, zX11_SprintfList,
9893 apzX11_SprintfMachs,
9894 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9895 aX11_SprintfTests, apzX11_SprintfPatch, 0 }