* config/mh-ppc-aix (LDFLAGS): Quote $(CC).
[official-gcc.git] / fixincludes / fixincl.x
blob3dbb744fec1630fe0d686abcfb378b6bf320f783
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  March 23, 2012 at 02:26:20 PM by AutoGen 5.10
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Fri Mar 23 14:26:20 EDT 2012
10  *
11  * You must regenerate it.  Use the ./genfixes script.
12  *
13  *
14  * This is part of the fixincl program used to install modified versions of
15  * certain ANSI-incompatible system header files which are fixed to work
16  * correctly with ANSI C and placed in a directory that GNU C will search.
17  *
18  * This file contains 212 fixup descriptions.
19  *
20  * See README for more information.
21  *
22  *  inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
23  *                         2006, 2007, 2008
24  *  The Free Software Foundation, Inc.
25  *
26  *  inclhack is free software: you can redistribute it and/or modify it
27  *  under the terms of the GNU General Public License as published by the
28  *  Free Software Foundation, either version 3 of the License, or
29  *  (at your option) any later version.
30  *  
31  *  inclhack is distributed in the hope that it will be useful, but
32  *  WITHOUT ANY WARRANTY; without even the implied warranty of
33  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34  *  See the GNU General Public License for more details.
35  *  
36  *  You should have received a copy of the GNU General Public License along
37  *  with this program.  If not, see <http://www.gnu.org/licenses/>.
38  */
39 #ifndef SED_PROGRAM
40 #define SED_PROGRAM "/usr/bin/sed"
41 #endif
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45  *
46  *  Description of Aab_Aix_Stdio fix
47  */
48 tSCC zAab_Aix_StdioName[] =
49      "AAB_aix_stdio";
52  *  File name selection pattern
53  */
54 tSCC zAab_Aix_StdioList[] =
55   "stdio.h\0";
57  *  Machine/OS name selection pattern
58  */
59 tSCC* apzAab_Aix_StdioMachs[] = {
60         "*-*-aix*",
61         (const char*)NULL };
64  *  content selection pattern - do fix if pattern found
65  */
66 tSCC zAab_Aix_StdioSelect0[] =
67        "define fopen fopen64";
69 #define    AAB_AIX_STDIO_TEST_CT  1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71   { TT_EGREP,    zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74  *  Fix Command Arguments for Aab_Aix_Stdio
75  */
76 static const char* apzAab_Aix_StdioPatch[] = {
77     "wrap",
78     "",
79     "\n\
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
83 #undef fseeko\n\
84 #undef ftello\n\
85 #undef fgetpos\n\
86 #undef fsetpos\n\
87 #undef fopen\n\
88 #undef freopen\n\
89 /* Alias the symbols using asm */\n\
90 extern \"C\" {\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
97 }\n\
98 #endif\n\
99 #endif\n",
100     (char*)NULL };
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104  *  Description of Aab_Darwin7_9_Long_Double_Funcs fix
105  */
106 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107      "AAB_darwin7_9_long_double_funcs";
110  *  File name selection pattern
111  */
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113   "architecture/ppc/math.h\0";
115  *  Machine/OS name selection pattern
116  */
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
118         "*-*-darwin7.9*",
119         (const char*)NULL };
122  *  content bypass pattern - skip fix if pattern found
123  */
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
125        "powl";
127 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT  1
128 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129   { TT_NEGREP,   zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
132  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
133  */
134 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135 "/* This file prototypes the long double functions available on Mac OS\n\
136    10.3.9.  */\n\
137 #ifndef __MATH__\n\
138 # undef __APPLE_CC__\n\
139 # define __APPLE_CC__  1345\n\
140 # include_next <architecture/ppc/math.h>\n\
141 # undef __APPLE_CC__\n\
142 # define __APPLE_CC__ 1\n\
143 # ifndef __LIBMLDBL_COMPAT\n\
144 #  ifdef __LONG_DOUBLE_128__\n\
145 #   define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
146 #  else\n\
147 #   define __LIBMLDBL_COMPAT(sym)\n\
148 #  endif /* __LONG_DOUBLE_128__ */\n\
149 # endif /* __LIBMLDBL_COMPAT */\n\
150 # ifdef __cplusplus\n\
151    extern \"C\" {\n\
152 # endif\n\
153   extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
154   extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
155   extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
156   extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
157   extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
158   extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
159   extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
160   extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
161   extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
162   extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
163   extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
164   extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
165   extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
166   extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
167   extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
168   extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
169   extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
170   extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
171   extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
172   extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
173   extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
174   extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
175   extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
176   extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
177   extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
178   extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
179   extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
180   extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
181   extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
182   extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
183   extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
184   extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
185   extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
186   extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
187   extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
188   extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
189   extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
190   extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
191   extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
192   extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
193   extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
194   extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
195   extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
196   extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
197   extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
198   extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
199   extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
200   extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
201   extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
202   extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
203   extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
204   extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
205   extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
206   extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
207   extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
208   extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
209   extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
210 # ifdef __cplusplus\n\
211    }\n\
212 # endif\n\
213 #endif /* __MATH__ */",
214     (char*)NULL };
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
218  *  Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
219  */
220 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221      "AAB_darwin7_9_long_double_funcs_2";
224  *  File name selection pattern
225  */
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
227   "math.h\0";
229  *  Machine/OS name selection pattern
230  */
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
232         "*-*-darwin7.9*",
233         (const char*)NULL };
236  *  content selection pattern - do fix if pattern found
237  */
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239        "#include[ \\t]+\\\"";
241 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
242 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243   { TT_EGREP,    zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
246  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
247  */
248 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
249     "format",
250     "%1<%2.h>",
251     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
252     (char*)NULL };
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
256  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
257  */
258 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
259      "AAB_fd_zero_asm_posix_types_h";
262  *  File name selection pattern
263  */
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265   "asm/posix_types.h\0";
267  *  Machine/OS name selection pattern
268  */
269 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
270         "i[34567]86-*-linux*",
271         (const char*)NULL };
274  *  content bypass pattern - skip fix if pattern found
275  */
276 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
277        "} while";
278 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
279        "x86_64";
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
281        "posix_types_64";
283 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  3
284 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
285   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
286   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
287   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
290  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
291  */
292 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
293 "/* This file fixes a bug in the __FD_ZERO macro\n\
294    for older versions of the Linux kernel. */\n\
295 #ifndef _POSIX_TYPES_H_WRAPPER\n\
296 #include <features.h>\n\
297  #include_next <asm/posix_types.h>\n\n\
298 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
299 #undef __FD_ZERO\n\
300 #define __FD_ZERO(fdsetp) \\\n\
301   do { \\\n\
302     int __d0, __d1; \\\n\
303 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
304 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
305 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
306   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
307   } while (0)\n\
308 #endif\n\n\
309 #define _POSIX_TYPES_H_WRAPPER\n\
310 #endif /* _POSIX_TYPES_H_WRAPPER */",
311     (char*)NULL };
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
315  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
316  */
317 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
318      "AAB_fd_zero_gnu_types_h";
321  *  File name selection pattern
322  */
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
324   "gnu/types.h\0";
326  *  Machine/OS name selection pattern
327  */
328 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
329         "i[34567]86-*-linux*",
330         (const char*)NULL };
331 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
332 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
335  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
336  */
337 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
338 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
339 #ifndef _TYPES_H_WRAPPER\n\
340 #include <features.h>\n\
341 #include_next <gnu/types.h>\n\n\
342 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
343 #undef __FD_ZERO\n\
344 # define __FD_ZERO(fdsetp) \\\n\
345   do { \\\n\
346     int __d0, __d1; \\\n\
347         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
348         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
349         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
350           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
351   } while (0)\n\
352 #endif\n\n\
353 #define _TYPES_H_WRAPPER\n\
354 #endif /* _TYPES_H_WRAPPER */",
355     (char*)NULL };
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
359  *  Description of Aab_Fd_Zero_Selectbits_H fix
360  */
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362      "AAB_fd_zero_selectbits_h";
365  *  File name selection pattern
366  */
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
368   "selectbits.h\0";
370  *  Machine/OS name selection pattern
371  */
372 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
373         "i[34567]86-*-linux*",
374         (const char*)NULL };
375 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
376 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
379  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
380  */
381 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
382 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
383 #ifndef _SELECTBITS_H_WRAPPER\n\
384   #include <features.h>\n\
385   #include_next <selectbits.h>\n\n\
386   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
387   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
388   && __GLIBC_MINOR__ == 0\n\
389      #undef __FD_ZERO\n\
390      #define __FD_ZERO(fdsetp) \\\\\n\
391      do { \\\\\n\
392         int __d0, __d1; \\\\\n\
393       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
394                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
395                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
396                                         / sizeof (__fd_mask)), \\\\\n\
397                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
398                         : \"memory\"); \\\\\n\
399       } while (0)\n\
400   #endif\n\n\
401   #define _SELECTBITS_H_WRAPPER\n\
402 #endif /* _SELECTBITS_H_WRAPPER */",
403     (char*)NULL };
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
407  *  Description of Aab_Solaris_Sys_Varargs_H fix
408  */
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410      "AAB_solaris_sys_varargs_h";
413  *  File name selection pattern
414  */
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
416   "sys/varargs.h\0";
418  *  Machine/OS name selection pattern
419  */
420 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
421         "*-*-solaris*",
422         (const char*)NULL };
423 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
424 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
427  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
428  */
429 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
430 "#ifdef __STDC__\n\
431   #include <stdarg.h>\n\
432 #else\n\
433   #include <varargs.h>\n\
434 #endif",
435     (char*)NULL };
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439  *  Description of Aab_Sun_Memcpy fix
440  */
441 tSCC zAab_Sun_MemcpyName[] =
442      "AAB_sun_memcpy";
445  *  File name selection pattern
446  */
447 tSCC zAab_Sun_MemcpyList[] =
448   "memory.h\0";
450  *  Machine/OS name selection pattern
451  */
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
455  *  content selection pattern - do fix if pattern found
456  */
457 tSCC zAab_Sun_MemcpySelect0[] =
458        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
460 #define    AAB_SUN_MEMCPY_TEST_CT  1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
465  *  Fix Command Arguments for Aab_Sun_Memcpy
466  */
467 static const char* apzAab_Sun_MemcpyPatch[] = {
468 "/* This file was generated by fixincludes */\n\
469 #ifndef __memory_h__\n\
470   #define __memory_h__\n\n\
471   #ifdef __STDC__\n\
472     extern void *memccpy();\n\
473     extern void *memchr();\n\
474     extern void *memcpy();\n\
475     extern void *memset();\n\
476   #else\n\
477     extern char *memccpy();\n\
478     extern char *memchr();\n\
479     extern char *memcpy();\n\
480     extern char *memset();\n\
481   #endif /* __STDC__ */\n\n\
482   extern int memcmp();\n\n\
483 #endif /* __memory_h__ */",
484     (char*)NULL };
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
488  *  Description of Aix_Complex fix
489  */
490 tSCC zAix_ComplexName[] =
491      "aix_complex";
494  *  File name selection pattern
495  */
496 tSCC zAix_ComplexList[] =
497   "complex.h\0";
499  *  Machine/OS name selection pattern
500  */
501 tSCC* apzAix_ComplexMachs[] = {
502         "*-*-aix*",
503         (const char*)NULL };
506  *  content selection pattern - do fix if pattern found
507  */
508 tSCC zAix_ComplexSelect0[] =
509        "#define[ \t]_Complex_I[ \t]__I";
511 #define    AIX_COMPLEX_TEST_CT  1
512 static tTestDesc aAix_ComplexTests[] = {
513   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
516  *  Fix Command Arguments for Aix_Complex
517  */
518 static const char* apzAix_ComplexPatch[] = {
519     "format",
520     "#define _Complex_I (__extension__ 1.0iF)",
521     (char*)NULL };
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525  *  Description of Aix_Malloc fix
526  */
527 tSCC zAix_MallocName[] =
528      "aix_malloc";
531  *  File name selection pattern
532  */
533 tSCC zAix_MallocList[] =
534   "malloc.h\0";
536  *  Machine/OS name selection pattern
537  */
538 tSCC* apzAix_MallocMachs[] = {
539         "*-*-aix*",
540         (const char*)NULL };
543  *  content selection pattern - do fix if pattern found
544  */
545 tSCC zAix_MallocSelect0[] =
546        "#ifdef __cplusplus";
548 #define    AIX_MALLOC_TEST_CT  1
549 static tTestDesc aAix_MallocTests[] = {
550   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
553  *  Fix Command Arguments for Aix_Malloc
554  */
555 static const char* apzAix_MallocPatch[] = {
556     "format",
557     "#if (defined(__cplusplus) && defined(__IBMCPP__))",
558     (char*)NULL };
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
562  *  Description of Aix_Net_If_Arp fix
563  */
564 tSCC zAix_Net_If_ArpName[] =
565      "aix_net_if_arp";
568  *  File name selection pattern
569  */
570 tSCC zAix_Net_If_ArpList[] =
571   "net/if_arp.h\0";
573  *  Machine/OS name selection pattern
574  */
575 tSCC* apzAix_Net_If_ArpMachs[] = {
576         "*-*-aix*",
577         (const char*)NULL };
580  *  content selection pattern - do fix if pattern found
581  */
582 tSCC zAix_Net_If_ArpSelect0[] =
583        "^struct  fc_softc \\{";
585 #define    AIX_NET_IF_ARP_TEST_CT  1
586 static tTestDesc aAix_Net_If_ArpTests[] = {
587   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
590  *  Fix Command Arguments for Aix_Net_If_Arp
591  */
592 static const char* apzAix_Net_If_ArpPatch[] = {
593     "format",
594     "typedef struct _fc_softc {",
595     (char*)NULL };
597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
599  *  Description of Aix_Once_Init_1 fix
600  */
601 tSCC zAix_Once_Init_1Name[] =
602      "aix_once_init_1";
605  *  File name selection pattern
606  */
607 tSCC zAix_Once_Init_1List[] =
608   "pthread.h\0";
610  *  Machine/OS name selection pattern
611  */
612 tSCC* apzAix_Once_Init_1Machs[] = {
613         "*-*-aix*",
614         (const char*)NULL };
617  *  content selection pattern - do fix if pattern found
618  */
619 tSCC zAix_Once_Init_1Select0[] =
620        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
621 \\{ \\\\\n";
623 #define    AIX_ONCE_INIT_1_TEST_CT  1
624 static tTestDesc aAix_Once_Init_1Tests[] = {
625   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
628  *  Fix Command Arguments for Aix_Once_Init_1
629  */
630 static const char* apzAix_Once_Init_1Patch[] = {
631     "format",
632     "#define PTHREAD_ONCE_INIT \\\n\
633 {{ \\\n",
634     (char*)NULL };
636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
638  *  Description of Aix_Once_Init_2 fix
639  */
640 tSCC zAix_Once_Init_2Name[] =
641      "aix_once_init_2";
644  *  File name selection pattern
645  */
646 tSCC zAix_Once_Init_2List[] =
647   "pthread.h\0";
649  *  Machine/OS name selection pattern
650  */
651 tSCC* apzAix_Once_Init_2Machs[] = {
652         "*-*-aix*",
653         (const char*)NULL };
656  *  content selection pattern - do fix if pattern found
657  */
658 tSCC zAix_Once_Init_2Select0[] =
659        "[ \t]0 \\\\\n\
660 \\}\n";
662 #define    AIX_ONCE_INIT_2_TEST_CT  1
663 static tTestDesc aAix_Once_Init_2Tests[] = {
664   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
667  *  Fix Command Arguments for Aix_Once_Init_2
668  */
669 static const char* apzAix_Once_Init_2Patch[] = {
670     "format",
671     "\t0 \\\n\
672 }}\n",
673     (char*)NULL };
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
677  *  Description of Aix_Pthread fix
678  */
679 tSCC zAix_PthreadName[] =
680      "aix_pthread";
683  *  File name selection pattern
684  */
685 tSCC zAix_PthreadList[] =
686   "pthread.h\0";
688  *  Machine/OS name selection pattern
689  */
690 #define apzAix_PthreadMachs (const char**)NULL
693  *  content selection pattern - do fix if pattern found
694  */
695 tSCC zAix_PthreadSelect0[] =
696        "(#define [A-Za-z_0-9]+)(\\\\\n\
697 [^A-Za-z_0-9 \t\n\
698 (])";
700 #define    AIX_PTHREAD_TEST_CT  1
701 static tTestDesc aAix_PthreadTests[] = {
702   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
705  *  Fix Command Arguments for Aix_Pthread
706  */
707 static const char* apzAix_PthreadPatch[] = {
708     "format",
709     "%1 %2",
710     (char*)NULL };
712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
714  *  Description of Aix_Stdint_1 fix
715  */
716 tSCC zAix_Stdint_1Name[] =
717      "aix_stdint_1";
720  *  File name selection pattern
721  */
722 tSCC zAix_Stdint_1List[] =
723   "stdint-aix.h\0stdint.h\0";
725  *  Machine/OS name selection pattern
726  */
727 tSCC* apzAix_Stdint_1Machs[] = {
728         "*-*-aix*",
729         (const char*)NULL };
732  *  content selection pattern - do fix if pattern found
733  */
734 tSCC zAix_Stdint_1Select0[] =
735        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
736 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
738 #define    AIX_STDINT_1_TEST_CT  1
739 static tTestDesc aAix_Stdint_1Tests[] = {
740   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
743  *  Fix Command Arguments for Aix_Stdint_1
744  */
745 static const char* apzAix_Stdint_1Patch[] = {
746     "format",
747     "#define UINT8_MAX\t(255)\n\
748 #define UINT16_MAX\t(65535)",
749     (char*)NULL };
751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
753  *  Description of Aix_Stdint_2 fix
754  */
755 tSCC zAix_Stdint_2Name[] =
756      "aix_stdint_2";
759  *  File name selection pattern
760  */
761 tSCC zAix_Stdint_2List[] =
762   "stdint-aix.h\0stdint.h\0";
764  *  Machine/OS name selection pattern
765  */
766 tSCC* apzAix_Stdint_2Machs[] = {
767         "*-*-aix*",
768         (const char*)NULL };
771  *  content selection pattern - do fix if pattern found
772  */
773 tSCC zAix_Stdint_2Select0[] =
774        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
775 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
776 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
777 #else\n\
778 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
779 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
780 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
782 #define    AIX_STDINT_2_TEST_CT  1
783 static tTestDesc aAix_Stdint_2Tests[] = {
784   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
787  *  Fix Command Arguments for Aix_Stdint_2
788  */
789 static const char* apzAix_Stdint_2Patch[] = {
790     "format",
791     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
792 #define INTPTR_MAX\t9223372036854775807L\n\
793 #define UINTPTR_MAX\t18446744073709551615UL\n\
794 #else\n\
795 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
796 #define INTPTR_MAX\t2147483647L\n\
797 #define UINTPTR_MAX\t4294967295UL",
798     (char*)NULL };
800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
802  *  Description of Aix_Stdint_3 fix
803  */
804 tSCC zAix_Stdint_3Name[] =
805      "aix_stdint_3";
808  *  File name selection pattern
809  */
810 tSCC zAix_Stdint_3List[] =
811   "stdint-aix.h\0stdint.h\0";
813  *  Machine/OS name selection pattern
814  */
815 tSCC* apzAix_Stdint_3Machs[] = {
816         "*-*-aix*",
817         (const char*)NULL };
820  *  content selection pattern - do fix if pattern found
821  */
822 tSCC zAix_Stdint_3Select0[] =
823        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
824 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
825 #else\n\
826 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
827 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
829 #define    AIX_STDINT_3_TEST_CT  1
830 static tTestDesc aAix_Stdint_3Tests[] = {
831   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
834  *  Fix Command Arguments for Aix_Stdint_3
835  */
836 static const char* apzAix_Stdint_3Patch[] = {
837     "format",
838     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
839 #define PTRDIFF_MAX\t9223372036854775807L\n\
840 #else\n\
841 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
842 #define PTRDIFF_MAX\t2147483647L",
843     (char*)NULL };
845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
847  *  Description of Aix_Stdint_4 fix
848  */
849 tSCC zAix_Stdint_4Name[] =
850      "aix_stdint_4";
853  *  File name selection pattern
854  */
855 tSCC zAix_Stdint_4List[] =
856   "stdint-aix.h\0stdint.h\0";
858  *  Machine/OS name selection pattern
859  */
860 tSCC* apzAix_Stdint_4Machs[] = {
861         "*-*-aix*",
862         (const char*)NULL };
865  *  content selection pattern - do fix if pattern found
866  */
867 tSCC zAix_Stdint_4Select0[] =
868        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
869 #else\n\
870 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
872 #define    AIX_STDINT_4_TEST_CT  1
873 static tTestDesc aAix_Stdint_4Tests[] = {
874   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
877  *  Fix Command Arguments for Aix_Stdint_4
878  */
879 static const char* apzAix_Stdint_4Patch[] = {
880     "format",
881     "#define SIZE_MAX\t18446744073709551615UL\n\
882 #else\n\
883 #define SIZE_MAX\t4294967295UL",
884     (char*)NULL };
886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
888  *  Description of Aix_Stdint_5 fix
889  */
890 tSCC zAix_Stdint_5Name[] =
891      "aix_stdint_5";
894  *  File name selection pattern
895  */
896 tSCC zAix_Stdint_5List[] =
897   "stdint-aix.h\0stdint.h\0";
899  *  Machine/OS name selection pattern
900  */
901 tSCC* apzAix_Stdint_5Machs[] = {
902         "*-*-aix*",
903         (const char*)NULL };
906  *  content selection pattern - do fix if pattern found
907  */
908 tSCC zAix_Stdint_5Select0[] =
909        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
910 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
912 #define    AIX_STDINT_5_TEST_CT  1
913 static tTestDesc aAix_Stdint_5Tests[] = {
914   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
917  *  Fix Command Arguments for Aix_Stdint_5
918  */
919 static const char* apzAix_Stdint_5Patch[] = {
920     "format",
921     "#define UINT8_C(c)\tc\n\
922 #define UINT16_C(c)\tc",
923     (char*)NULL };
925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
927  *  Description of Aix_Sysmachine fix
928  */
929 tSCC zAix_SysmachineName[] =
930      "aix_sysmachine";
933  *  File name selection pattern
934  */
935 tSCC zAix_SysmachineList[] =
936   "sys/machine.h\0";
938  *  Machine/OS name selection pattern
939  */
940 #define apzAix_SysmachineMachs (const char**)NULL
943  *  content selection pattern - do fix if pattern found
944  */
945 tSCC zAix_SysmachineSelect0[] =
946        "\\\\ +\n";
948 #define    AIX_SYSMACHINE_TEST_CT  1
949 static tTestDesc aAix_SysmachineTests[] = {
950   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
953  *  Fix Command Arguments for Aix_Sysmachine
954  */
955 static const char* apzAix_SysmachinePatch[] = {
956     "format",
957     "\\\n",
958     (char*)NULL };
960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
962  *  Description of Aix_Syswait_2 fix
963  */
964 tSCC zAix_Syswait_2Name[] =
965      "aix_syswait_2";
968  *  File name selection pattern
969  */
970 tSCC zAix_Syswait_2List[] =
971   "sys/wait.h\0";
973  *  Machine/OS name selection pattern
974  */
975 #define apzAix_Syswait_2Machs (const char**)NULL
978  *  content selection pattern - do fix if pattern found
979  */
980 tSCC zAix_Syswait_2Select0[] =
981        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
983 #define    AIX_SYSWAIT_2_TEST_CT  1
984 static tTestDesc aAix_Syswait_2Tests[] = {
985   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
988  *  Fix Command Arguments for Aix_Syswait_2
989  */
990 static const char* apzAix_Syswait_2Patch[] = {
991     "format",
992     "? (int)%1",
993     (char*)NULL };
995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
997  *  Description of Aix_Volatile fix
998  */
999 tSCC zAix_VolatileName[] =
1000      "aix_volatile";
1003  *  File name selection pattern
1004  */
1005 tSCC zAix_VolatileList[] =
1006   "sys/signal.h\0";
1008  *  Machine/OS name selection pattern
1009  */
1010 #define apzAix_VolatileMachs (const char**)NULL
1013  *  content selection pattern - do fix if pattern found
1014  */
1015 tSCC zAix_VolatileSelect0[] =
1016        "typedef volatile int sig_atomic_t";
1018 #define    AIX_VOLATILE_TEST_CT  1
1019 static tTestDesc aAix_VolatileTests[] = {
1020   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1023  *  Fix Command Arguments for Aix_Volatile
1024  */
1025 static const char* apzAix_VolatilePatch[] = {
1026     "format",
1027     "typedef int sig_atomic_t",
1028     (char*)NULL };
1030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1032  *  Description of Alpha___Assert fix
1033  */
1034 tSCC zAlpha___AssertName[] =
1035      "alpha___assert";
1038  *  File name selection pattern
1039  */
1040 tSCC zAlpha___AssertList[] =
1041   "assert.h\0";
1043  *  Machine/OS name selection pattern
1044  */
1045 #define apzAlpha___AssertMachs (const char**)NULL
1048  *  content selection pattern - do fix if pattern found
1049  */
1050 tSCC zAlpha___AssertSelect0[] =
1051        "__assert\\(char \\*, char \\*, int\\)";
1053 #define    ALPHA___ASSERT_TEST_CT  1
1054 static tTestDesc aAlpha___AssertTests[] = {
1055   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1058  *  Fix Command Arguments for Alpha___Assert
1059  */
1060 static const char* apzAlpha___AssertPatch[] = {
1061     "format",
1062     "__assert(const char *, const char *, int)",
1063     (char*)NULL };
1065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1067  *  Description of Alpha_Assert fix
1068  */
1069 tSCC zAlpha_AssertName[] =
1070      "alpha_assert";
1073  *  File name selection pattern
1074  */
1075 tSCC zAlpha_AssertList[] =
1076   "assert.h\0";
1078  *  Machine/OS name selection pattern
1079  */
1080 #define apzAlpha_AssertMachs (const char**)NULL
1083  *  content selection pattern - do fix if pattern found
1084  */
1085 tSCC zAlpha_AssertSelect0[] =
1086        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1088 #define    ALPHA_ASSERT_TEST_CT  1
1089 static tTestDesc aAlpha_AssertTests[] = {
1090   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1093  *  Fix Command Arguments for Alpha_Assert
1094  */
1095 static const char* apzAlpha_AssertPatch[] = {
1096     "format",
1097     "%1(EX)",
1098     (char*)NULL };
1100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1102  *  Description of Alpha_Getopt fix
1103  */
1104 tSCC zAlpha_GetoptName[] =
1105      "alpha_getopt";
1108  *  File name selection pattern
1109  */
1110 tSCC zAlpha_GetoptList[] =
1111   "stdio.h\0stdlib.h\0";
1113  *  Machine/OS name selection pattern
1114  */
1115 #define apzAlpha_GetoptMachs (const char**)NULL
1118  *  content selection pattern - do fix if pattern found
1119  */
1120 tSCC zAlpha_GetoptSelect0[] =
1121        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1123 #define    ALPHA_GETOPT_TEST_CT  1
1124 static tTestDesc aAlpha_GetoptTests[] = {
1125   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1128  *  Fix Command Arguments for Alpha_Getopt
1129  */
1130 static const char* apzAlpha_GetoptPatch[] = {
1131     "format",
1132     "getopt(int, char *const[], const char *)",
1133     (char*)NULL };
1135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1137  *  Description of Alpha_If_Semicolon fix
1138  */
1139 tSCC zAlpha_If_SemicolonName[] =
1140      "alpha_if_semicolon";
1143  *  File name selection pattern
1144  */
1145 tSCC zAlpha_If_SemicolonList[] =
1146   "net/if.h\0";
1148  *  Machine/OS name selection pattern
1149  */
1150 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1153  *  content selection pattern - do fix if pattern found
1154  */
1155 tSCC zAlpha_If_SemicolonSelect0[] =
1156        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1158 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1159 static tTestDesc aAlpha_If_SemicolonTests[] = {
1160   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1163  *  Fix Command Arguments for Alpha_If_Semicolon
1164  */
1165 static const char* apzAlpha_If_SemicolonPatch[] = {
1166     "format",
1167     "struct sockaddr vmif_paddr;\t/*",
1168     (char*)NULL };
1170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1172  *  Description of Alpha_Parens fix
1173  */
1174 tSCC zAlpha_ParensName[] =
1175      "alpha_parens";
1178  *  File name selection pattern
1179  */
1180 tSCC zAlpha_ParensList[] =
1181   "sym.h\0";
1183  *  Machine/OS name selection pattern
1184  */
1185 #define apzAlpha_ParensMachs (const char**)NULL
1188  *  content selection pattern - do fix if pattern found
1189  */
1190 tSCC zAlpha_ParensSelect0[] =
1191        "#ifndef\\(__mips64\\)";
1193 #define    ALPHA_PARENS_TEST_CT  1
1194 static tTestDesc aAlpha_ParensTests[] = {
1195   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1198  *  Fix Command Arguments for Alpha_Parens
1199  */
1200 static const char* apzAlpha_ParensPatch[] = {
1201     "format",
1202     "#ifndef __mips64",
1203     (char*)NULL };
1205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1207  *  Description of Alpha_Sbrk fix
1208  */
1209 tSCC zAlpha_SbrkName[] =
1210      "alpha_sbrk";
1213  *  File name selection pattern
1214  */
1215 tSCC zAlpha_SbrkList[] =
1216   "unistd.h\0";
1218  *  Machine/OS name selection pattern
1219  */
1220 #define apzAlpha_SbrkMachs (const char**)NULL
1223  *  content selection pattern - do fix if pattern found
1224  */
1225 tSCC zAlpha_SbrkSelect0[] =
1226        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1228 #define    ALPHA_SBRK_TEST_CT  1
1229 static tTestDesc aAlpha_SbrkTests[] = {
1230   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1233  *  Fix Command Arguments for Alpha_Sbrk
1234  */
1235 static const char* apzAlpha_SbrkPatch[] = {
1236     "format",
1237     "void *sbrk(",
1238     (char*)NULL };
1240 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1242  *  Description of Avoid_Bool_Define fix
1243  */
1244 tSCC zAvoid_Bool_DefineName[] =
1245      "avoid_bool_define";
1248  *  File name selection pattern
1249  */
1250 tSCC zAvoid_Bool_DefineList[] =
1251   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1253  *  Machine/OS name selection pattern
1254  */
1255 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1258  *  content selection pattern - do fix if pattern found
1259  */
1260 tSCC zAvoid_Bool_DefineSelect0[] =
1261        "#[ \t]*define[ \t]+bool[ \t]";
1264  *  content bypass pattern - skip fix if pattern found
1265  */
1266 tSCC zAvoid_Bool_DefineBypass0[] =
1267        "__cplusplus";
1269 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1270 static tTestDesc aAvoid_Bool_DefineTests[] = {
1271   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1272   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1275  *  Fix Command Arguments for Avoid_Bool_Define
1276  */
1277 static const char* apzAvoid_Bool_DefinePatch[] = {
1278     "format",
1279     "#ifndef __cplusplus\n\
1280 %0\n\
1281 #endif",
1282     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1283     (char*)NULL };
1285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1287  *  Description of Avoid_Bool_Type fix
1288  */
1289 tSCC zAvoid_Bool_TypeName[] =
1290      "avoid_bool_type";
1293  *  File name selection pattern
1294  */
1295 tSCC zAvoid_Bool_TypeList[] =
1296   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1298  *  Machine/OS name selection pattern
1299  */
1300 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1303  *  content selection pattern - do fix if pattern found
1304  */
1305 tSCC zAvoid_Bool_TypeSelect0[] =
1306        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1309  *  content bypass pattern - skip fix if pattern found
1310  */
1311 tSCC zAvoid_Bool_TypeBypass0[] =
1312        "__cplusplus";
1314 #define    AVOID_BOOL_TYPE_TEST_CT  2
1315 static tTestDesc aAvoid_Bool_TypeTests[] = {
1316   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1317   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1320  *  Fix Command Arguments for Avoid_Bool_Type
1321  */
1322 static const char* apzAvoid_Bool_TypePatch[] = {
1323     "format",
1324     "#ifndef __cplusplus\n\
1325 %0\n\
1326 #endif",
1327     (char*)NULL };
1329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1331  *  Description of Avoid_Wchar_T_Type fix
1332  */
1333 tSCC zAvoid_Wchar_T_TypeName[] =
1334      "avoid_wchar_t_type";
1337  *  File name selection pattern
1338  */
1339 #define zAvoid_Wchar_T_TypeList (char*)NULL
1341  *  Machine/OS name selection pattern
1342  */
1343 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1346  *  content selection pattern - do fix if pattern found
1347  */
1348 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1349        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1352  *  content bypass pattern - skip fix if pattern found
1353  */
1354 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1355        "__cplusplus";
1356 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1357        "_LINUX_NLS_H";
1358 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1359        "XFree86: xc/lib/X11/Xlib\\.h";
1361 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1362 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1363   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1364   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1365   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1366   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1369  *  Fix Command Arguments for Avoid_Wchar_T_Type
1370  */
1371 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1372     "format",
1373     "#ifndef __cplusplus\n\
1374 %0\n\
1375 #endif",
1376     (char*)NULL };
1378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1380  *  Description of Bad_Struct_Term fix
1381  */
1382 tSCC zBad_Struct_TermName[] =
1383      "bad_struct_term";
1386  *  File name selection pattern
1387  */
1388 tSCC zBad_Struct_TermList[] =
1389   "curses.h\0";
1391  *  Machine/OS name selection pattern
1392  */
1393 #define apzBad_Struct_TermMachs (const char**)NULL
1396  *  content selection pattern - do fix if pattern found
1397  */
1398 tSCC zBad_Struct_TermSelect0[] =
1399        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1401 #define    BAD_STRUCT_TERM_TEST_CT  1
1402 static tTestDesc aBad_Struct_TermTests[] = {
1403   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1406  *  Fix Command Arguments for Bad_Struct_Term
1407  */
1408 static const char* apzBad_Struct_TermPatch[] = {
1409     "format",
1410     "struct term;",
1411     (char*)NULL };
1413 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1415  *  Description of Badquote fix
1416  */
1417 tSCC zBadquoteName[] =
1418      "badquote";
1421  *  File name selection pattern
1422  */
1423 tSCC zBadquoteList[] =
1424   "sundev/vuid_event.h\0";
1426  *  Machine/OS name selection pattern
1427  */
1428 #define apzBadquoteMachs (const char**)NULL
1431  *  content selection pattern - do fix if pattern found
1432  */
1433 tSCC zBadquoteSelect0[] =
1434        "doesn't";
1436 #define    BADQUOTE_TEST_CT  1
1437 static tTestDesc aBadquoteTests[] = {
1438   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1441  *  Fix Command Arguments for Badquote
1442  */
1443 static const char* apzBadquotePatch[] = {
1444     "format",
1445     "does not",
1446     (char*)NULL };
1448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1450  *  Description of Broken_Assert_Stdio fix
1451  */
1452 tSCC zBroken_Assert_StdioName[] =
1453      "broken_assert_stdio";
1456  *  File name selection pattern
1457  */
1458 tSCC zBroken_Assert_StdioList[] =
1459   "assert.h\0";
1461  *  Machine/OS name selection pattern
1462  */
1463 #define apzBroken_Assert_StdioMachs (const char**)NULL
1466  *  content selection pattern - do fix if pattern found
1467  */
1468 tSCC zBroken_Assert_StdioSelect0[] =
1469        "stderr";
1472  *  content bypass pattern - skip fix if pattern found
1473  */
1474 tSCC zBroken_Assert_StdioBypass0[] =
1475        "include.*stdio\\.h";
1477 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1478 static tTestDesc aBroken_Assert_StdioTests[] = {
1479   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1480   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1483  *  Fix Command Arguments for Broken_Assert_Stdio
1484  */
1485 static const char* apzBroken_Assert_StdioPatch[] = {
1486     "wrap",
1487     "#include <stdio.h>\n",
1488     (char*)NULL };
1490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1492  *  Description of Broken_Assert_Stdlib fix
1493  */
1494 tSCC zBroken_Assert_StdlibName[] =
1495      "broken_assert_stdlib";
1498  *  File name selection pattern
1499  */
1500 tSCC zBroken_Assert_StdlibList[] =
1501   "assert.h\0";
1503  *  Machine/OS name selection pattern
1504  */
1505 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1508  *  content selection pattern - do fix if pattern found
1509  */
1510 tSCC zBroken_Assert_StdlibSelect0[] =
1511        "exit *\\(|abort *\\(";
1514  *  content bypass pattern - skip fix if pattern found
1515  */
1516 tSCC zBroken_Assert_StdlibBypass0[] =
1517        "include.*stdlib\\.h";
1519 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1520 static tTestDesc aBroken_Assert_StdlibTests[] = {
1521   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1522   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1525  *  Fix Command Arguments for Broken_Assert_Stdlib
1526  */
1527 static const char* apzBroken_Assert_StdlibPatch[] = {
1528     "wrap",
1529     "#ifdef __cplusplus\n\
1530 #include <stdlib.h>\n\
1531 #endif\n",
1532     (char*)NULL };
1534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1536  *  Description of Broken_Cabs fix
1537  */
1538 tSCC zBroken_CabsName[] =
1539      "broken_cabs";
1542  *  File name selection pattern
1543  */
1544 tSCC zBroken_CabsList[] =
1545   "math.h\0architecture/*/math.h\0";
1547  *  Machine/OS name selection pattern
1548  */
1549 #define apzBroken_CabsMachs (const char**)NULL
1552  *  content selection pattern - do fix if pattern found
1553  */
1554 tSCC zBroken_CabsSelect0[] =
1555        "^extern[ \t]+double[ \t]+cabs";
1557 #define    BROKEN_CABS_TEST_CT  1
1558 static tTestDesc aBroken_CabsTests[] = {
1559   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1562  *  Fix Command Arguments for Broken_Cabs
1563  */
1564 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1565     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1566     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1567     (char*)NULL };
1569 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1571  *  Description of Broken_Nan fix
1572  */
1573 tSCC zBroken_NanName[] =
1574      "broken_nan";
1577  *  File name selection pattern
1578  */
1579 tSCC zBroken_NanList[] =
1580   "architecture/ppc/math.h\0architecture/*/math.h\0";
1582  *  Machine/OS name selection pattern
1583  */
1584 #define apzBroken_NanMachs (const char**)NULL
1587  *  content selection pattern - do fix if pattern found
1588  */
1589 tSCC zBroken_NanSelect0[] =
1590        "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1593  *  content bypass pattern - skip fix if pattern found
1594  */
1595 tSCC zBroken_NanBypass0[] =
1596        "powl";
1598 #define    BROKEN_NAN_TEST_CT  2
1599 static tTestDesc aBroken_NanTests[] = {
1600   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
1601   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
1604  *  Fix Command Arguments for Broken_Nan
1605  */
1606 static const char* apzBroken_NanPatch[] = {
1607     "format",
1608     "#if 1",
1609     (char*)NULL };
1611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1613  *  Description of Bsd_Stdio_Attrs_Conflict fix
1614  */
1615 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1616      "bsd_stdio_attrs_conflict";
1619  *  File name selection pattern
1620  */
1621 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1622   "stdio.h\0";
1624  *  Machine/OS name selection pattern
1625  */
1626 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1627         "*-*-*bsd*",
1628         "*-*-*darwin*",
1629         (const char*)NULL };
1632  *  content selection pattern - do fix if pattern found
1633  */
1634 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1635        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1637 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
1638 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1639   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1642  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1643  */
1644 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1645     "format",
1646     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1647 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1648 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1649     (char*)NULL };
1651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1653  *  Description of Cdef_Cplusplus fix
1654  */
1655 tSCC zCdef_CplusplusName[] =
1656      "cdef_cplusplus";
1659  *  File name selection pattern
1660  */
1661 tSCC zCdef_CplusplusList[] =
1662   "sys/cdefs.h\0";
1664  *  Machine/OS name selection pattern
1665  */
1666 #define apzCdef_CplusplusMachs (const char**)NULL
1669  *  content selection pattern - do fix if pattern found
1670  */
1671 tSCC zCdef_CplusplusSelect0[] =
1672        "\\[\\[noreturn\\]\\]";
1674 #define    CDEF_CPLUSPLUS_TEST_CT  1
1675 static tTestDesc aCdef_CplusplusTests[] = {
1676   { TT_EGREP,    zCdef_CplusplusSelect0, (regex_t*)NULL }, };
1679  *  Fix Command Arguments for Cdef_Cplusplus
1680  */
1681 static const char* apzCdef_CplusplusPatch[] = {
1682     "format",
1683     "__attribute__((__noreturn__))",
1684     (char*)NULL };
1686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1688  *  Description of Ctrl_Quotes_Def fix
1689  */
1690 tSCC zCtrl_Quotes_DefName[] =
1691      "ctrl_quotes_def";
1694  *  File name selection pattern
1695  */
1696 #define zCtrl_Quotes_DefList (char*)NULL
1698  *  Machine/OS name selection pattern
1699  */
1700 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1703  *  content selection pattern - do fix if pattern found
1704  */
1705 tSCC zCtrl_Quotes_DefSelect0[] =
1706        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1708 #define    CTRL_QUOTES_DEF_TEST_CT  1
1709 static tTestDesc aCtrl_Quotes_DefTests[] = {
1710   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1713  *  Fix Command Arguments for Ctrl_Quotes_Def
1714  */
1715 static const char* apzCtrl_Quotes_DefPatch[] = {
1716     "char_macro_def",
1717     "CTRL",
1718     (char*)NULL };
1720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1722  *  Description of Ctrl_Quotes_Use fix
1723  */
1724 tSCC zCtrl_Quotes_UseName[] =
1725      "ctrl_quotes_use";
1728  *  File name selection pattern
1729  */
1730 #define zCtrl_Quotes_UseList (char*)NULL
1732  *  Machine/OS name selection pattern
1733  */
1734 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1737  *  content selection pattern - do fix if pattern found
1738  */
1739 tSCC zCtrl_Quotes_UseSelect0[] =
1740        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1742 #define    CTRL_QUOTES_USE_TEST_CT  1
1743 static tTestDesc aCtrl_Quotes_UseTests[] = {
1744   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1747  *  Fix Command Arguments for Ctrl_Quotes_Use
1748  */
1749 static const char* apzCtrl_Quotes_UsePatch[] = {
1750     "char_macro_use",
1751     "CTRL",
1752     (char*)NULL };
1754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1756  *  Description of Cxx_Unready fix
1757  */
1758 tSCC zCxx_UnreadyName[] =
1759      "cxx_unready";
1762  *  File name selection pattern
1763  */
1764 tSCC zCxx_UnreadyList[] =
1765   "sys/mman.h\0rpc/types.h\0";
1767  *  Machine/OS name selection pattern
1768  */
1769 #define apzCxx_UnreadyMachs (const char**)NULL
1772  *  content selection pattern - do fix if pattern found
1773  */
1774 tSCC zCxx_UnreadySelect0[] =
1775        "[^#]+malloc.*;";
1778  *  content bypass pattern - skip fix if pattern found
1779  */
1780 tSCC zCxx_UnreadyBypass0[] =
1781        "\"C\"|__BEGIN_DECLS";
1783 #define    CXX_UNREADY_TEST_CT  2
1784 static tTestDesc aCxx_UnreadyTests[] = {
1785   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1786   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1789  *  Fix Command Arguments for Cxx_Unready
1790  */
1791 static const char* apzCxx_UnreadyPatch[] = {
1792     "wrap",
1793     "#ifdef __cplusplus\n\
1794 extern \"C\" {\n\
1795 #endif\n",
1796     "#ifdef __cplusplus\n\
1797 }\n\
1798 #endif\n",
1799     (char*)NULL };
1801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1803  *  Description of Darwin_Externc fix
1804  */
1805 tSCC zDarwin_ExterncName[] =
1806      "darwin_externc";
1809  *  File name selection pattern
1810  */
1811 tSCC zDarwin_ExterncList[] =
1812   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1814  *  Machine/OS name selection pattern
1815  */
1816 tSCC* apzDarwin_ExterncMachs[] = {
1817         "*-*-darwin*",
1818         (const char*)NULL };
1821  *  content bypass pattern - skip fix if pattern found
1822  */
1823 tSCC zDarwin_ExterncBypass0[] =
1824        "extern \"C\"";
1825 tSCC zDarwin_ExterncBypass1[] =
1826        "__BEGIN_DECLS";
1828 #define    DARWIN_EXTERNC_TEST_CT  2
1829 static tTestDesc aDarwin_ExterncTests[] = {
1830   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
1831   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1834  *  Fix Command Arguments for Darwin_Externc
1835  */
1836 static const char* apzDarwin_ExterncPatch[] = {
1837     "wrap",
1838     "#ifdef __cplusplus\n\
1839 extern \"C\" {\n\
1840 #endif\n",
1841     "#ifdef __cplusplus\n\
1842 }\n\
1843 #endif\n",
1844     (char*)NULL };
1846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1848  *  Description of Darwin_Gcc4_Breakage fix
1849  */
1850 tSCC zDarwin_Gcc4_BreakageName[] =
1851      "darwin_gcc4_breakage";
1854  *  File name selection pattern
1855  */
1856 tSCC zDarwin_Gcc4_BreakageList[] =
1857   "AvailabilityMacros.h\0";
1859  *  Machine/OS name selection pattern
1860  */
1861 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1862         "*-*-darwin*",
1863         (const char*)NULL };
1866  *  content selection pattern - do fix if pattern found
1867  */
1868 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1869        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1871 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
1872 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1873   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1876  *  Fix Command Arguments for Darwin_Gcc4_Breakage
1877  */
1878 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1879     "format",
1880     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1881     (char*)NULL };
1883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1885  *  Description of Darwin_Private_Extern fix
1886  */
1887 tSCC zDarwin_Private_ExternName[] =
1888      "darwin_private_extern";
1891  *  File name selection pattern
1892  */
1893 tSCC zDarwin_Private_ExternList[] =
1894   "mach-o/dyld.h\0";
1896  *  Machine/OS name selection pattern
1897  */
1898 tSCC* apzDarwin_Private_ExternMachs[] = {
1899         "*-*-darwin*",
1900         (const char*)NULL };
1903  *  content selection pattern - do fix if pattern found
1904  */
1905 tSCC zDarwin_Private_ExternSelect0[] =
1906        "__private_extern__ [a-z_]+ _dyld_";
1908 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
1909 static tTestDesc aDarwin_Private_ExternTests[] = {
1910   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1913  *  Fix Command Arguments for Darwin_Private_Extern
1914  */
1915 static const char* apzDarwin_Private_ExternPatch[] = {
1916     "format",
1917     "extern",
1918     "__private_extern__",
1919     (char*)NULL };
1921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1923  *  Description of Darwin_Stdint_1 fix
1924  */
1925 tSCC zDarwin_Stdint_1Name[] =
1926      "darwin_stdint_1";
1929  *  File name selection pattern
1930  */
1931 tSCC zDarwin_Stdint_1List[] =
1932   "stdint-darwin.h\0stdint.h\0";
1934  *  Machine/OS name selection pattern
1935  */
1936 tSCC* apzDarwin_Stdint_1Machs[] = {
1937         "*-*-darwin*",
1938         (const char*)NULL };
1941  *  content selection pattern - do fix if pattern found
1942  */
1943 tSCC zDarwin_Stdint_1Select0[] =
1944        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
1945 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
1947 #define    DARWIN_STDINT_1_TEST_CT  1
1948 static tTestDesc aDarwin_Stdint_1Tests[] = {
1949   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
1952  *  Fix Command Arguments for Darwin_Stdint_1
1953  */
1954 static const char* apzDarwin_Stdint_1Patch[] = {
1955     "format",
1956     "#define UINT8_C(v)\tv\n\
1957 #define UINT16_C(v)\tv",
1958     (char*)NULL };
1960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1962  *  Description of Darwin_Stdint_2 fix
1963  */
1964 tSCC zDarwin_Stdint_2Name[] =
1965      "darwin_stdint_2";
1968  *  File name selection pattern
1969  */
1970 tSCC zDarwin_Stdint_2List[] =
1971   "stdint-darwin.h\0stdint.h\0";
1973  *  Machine/OS name selection pattern
1974  */
1975 tSCC* apzDarwin_Stdint_2Machs[] = {
1976         "*-*-darwin*",
1977         (const char*)NULL };
1980  *  content selection pattern - do fix if pattern found
1981  */
1982 tSCC zDarwin_Stdint_2Select0[] =
1983        "#if __WORDSIZE == 64\n\
1984 #define INTPTR_MIN[ \t]+INT64_MIN\n\
1985 #define INTPTR_MAX[ \t]+INT64_MAX\n\
1986 #else\n\
1987 #define INTPTR_MIN[ \t]+INT32_MIN\n\
1988 #define INTPTR_MAX[ \t]+INT32_MAX\n\
1989 #endif";
1991 #define    DARWIN_STDINT_2_TEST_CT  1
1992 static tTestDesc aDarwin_Stdint_2Tests[] = {
1993   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
1996  *  Fix Command Arguments for Darwin_Stdint_2
1997  */
1998 static const char* apzDarwin_Stdint_2Patch[] = {
1999     "format",
2000     "#if __WORDSIZE == 64\n\
2001 #define INTPTR_MAX 9223372036854775807L\n\
2002 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2003 #else\n\
2004 #define INTPTR_MAX 2147483647L\n\
2005 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2006 #endif",
2007     (char*)NULL };
2009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2011  *  Description of Darwin_Stdint_3 fix
2012  */
2013 tSCC zDarwin_Stdint_3Name[] =
2014      "darwin_stdint_3";
2017  *  File name selection pattern
2018  */
2019 tSCC zDarwin_Stdint_3List[] =
2020   "stdint-darwin.h\0stdint.h\0";
2022  *  Machine/OS name selection pattern
2023  */
2024 tSCC* apzDarwin_Stdint_3Machs[] = {
2025         "*-*-darwin*",
2026         (const char*)NULL };
2029  *  content selection pattern - do fix if pattern found
2030  */
2031 tSCC zDarwin_Stdint_3Select0[] =
2032        "#if __WORDSIZE == 64\n\
2033 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2034 #else\n\
2035 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2036 #endif";
2038 #define    DARWIN_STDINT_3_TEST_CT  1
2039 static tTestDesc aDarwin_Stdint_3Tests[] = {
2040   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2043  *  Fix Command Arguments for Darwin_Stdint_3
2044  */
2045 static const char* apzDarwin_Stdint_3Patch[] = {
2046     "format",
2047     "#if __WORDSIZE == 64\n\
2048 #define UINTPTR_MAX 18446744073709551615UL\n\
2049 #else\n\
2050 #define UINTPTR_MAX 4294967295UL\n\
2051 #endif",
2052     (char*)NULL };
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2056  *  Description of Darwin_Stdint_4 fix
2057  */
2058 tSCC zDarwin_Stdint_4Name[] =
2059      "darwin_stdint_4";
2062  *  File name selection pattern
2063  */
2064 tSCC zDarwin_Stdint_4List[] =
2065   "stdint-darwin.h\0stdint.h\0";
2067  *  Machine/OS name selection pattern
2068  */
2069 tSCC* apzDarwin_Stdint_4Machs[] = {
2070         "*-*-darwin*",
2071         (const char*)NULL };
2074  *  content selection pattern - do fix if pattern found
2075  */
2076 tSCC zDarwin_Stdint_4Select0[] =
2077        "#if __WORDSIZE == 64\n\
2078 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2079 #else\n\
2080 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2081 #endif";
2083 #define    DARWIN_STDINT_4_TEST_CT  1
2084 static tTestDesc aDarwin_Stdint_4Tests[] = {
2085   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2088  *  Fix Command Arguments for Darwin_Stdint_4
2089  */
2090 static const char* apzDarwin_Stdint_4Patch[] = {
2091     "format",
2092     "#if __WORDSIZE == 64\n\
2093 #define SIZE_MAX 18446744073709551615UL\n\
2094 #else\n\
2095 #define SIZE_MAX 4294967295UL\n\
2096 #endif",
2097     (char*)NULL };
2099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2101  *  Description of Darwin_Stdint_5 fix
2102  */
2103 tSCC zDarwin_Stdint_5Name[] =
2104      "darwin_stdint_5";
2107  *  File name selection pattern
2108  */
2109 tSCC zDarwin_Stdint_5List[] =
2110   "stdint-darwin.h\0stdint.h\0";
2112  *  Machine/OS name selection pattern
2113  */
2114 tSCC* apzDarwin_Stdint_5Machs[] = {
2115         "*-*-darwin*",
2116         (const char*)NULL };
2119  *  content selection pattern - do fix if pattern found
2120  */
2121 tSCC zDarwin_Stdint_5Select0[] =
2122        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2123 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2124 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2126 #define    DARWIN_STDINT_5_TEST_CT  1
2127 static tTestDesc aDarwin_Stdint_5Tests[] = {
2128   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2131  *  Fix Command Arguments for Darwin_Stdint_5
2132  */
2133 static const char* apzDarwin_Stdint_5Patch[] = {
2134     "format",
2135     "#if __WORDSIZE == 64\n\
2136 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
2137 #define INTMAX_MAX   9223372036854775807L\n\
2138 #define UINTMAX_MAX  18446744073709551615UL\n\
2139 #else\n\
2140 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
2141 #define INTMAX_MAX   9223372036854775807LL\n\
2142 #define UINTMAX_MAX  18446744073709551615ULL\n\
2143 #endif",
2144     (char*)NULL };
2146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2148  *  Description of Darwin_Stdint_6 fix
2149  */
2150 tSCC zDarwin_Stdint_6Name[] =
2151      "darwin_stdint_6";
2154  *  File name selection pattern
2155  */
2156 tSCC zDarwin_Stdint_6List[] =
2157   "stdint-darwin.h\0stdint.h\0";
2159  *  Machine/OS name selection pattern
2160  */
2161 tSCC* apzDarwin_Stdint_6Machs[] = {
2162         "*-*-darwin*",
2163         (const char*)NULL };
2166  *  content selection pattern - do fix if pattern found
2167  */
2168 tSCC zDarwin_Stdint_6Select0[] =
2169        "#if __WORDSIZE == 64\n\
2170 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2171 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2172 #else\n\
2173 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2174 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2175 #endif";
2177 #define    DARWIN_STDINT_6_TEST_CT  1
2178 static tTestDesc aDarwin_Stdint_6Tests[] = {
2179   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2182  *  Fix Command Arguments for Darwin_Stdint_6
2183  */
2184 static const char* apzDarwin_Stdint_6Patch[] = {
2185     "format",
2186     "#if __WORDSIZE == 64\n\
2187 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2188 #define PTRDIFF_MAX 9223372036854775807L\n\
2189 #else\n\
2190 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2191 #define PTRDIFF_MAX 2147483647\n\
2192 #endif",
2193     (char*)NULL };
2195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2197  *  Description of Darwin_Stdint_7 fix
2198  */
2199 tSCC zDarwin_Stdint_7Name[] =
2200      "darwin_stdint_7";
2203  *  File name selection pattern
2204  */
2205 tSCC zDarwin_Stdint_7List[] =
2206   "stdint-darwin.h\0stdint.h\0";
2208  *  Machine/OS name selection pattern
2209  */
2210 tSCC* apzDarwin_Stdint_7Machs[] = {
2211         "*-*-darwin*",
2212         (const char*)NULL };
2215  *  content selection pattern - do fix if pattern found
2216  */
2217 tSCC zDarwin_Stdint_7Select0[] =
2218        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2219 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2221 #define    DARWIN_STDINT_7_TEST_CT  1
2222 static tTestDesc aDarwin_Stdint_7Tests[] = {
2223   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2226  *  Fix Command Arguments for Darwin_Stdint_7
2227  */
2228 static const char* apzDarwin_Stdint_7Patch[] = {
2229     "format",
2230     "#if __WORDSIZE == 64\n\
2231 #define INTMAX_C(v)  (v ## L)\n\
2232 #define UINTMAX_C(v) (v ## UL)\n\
2233 #else\n\
2234 #define INTMAX_C(v)  (v ## LL)\n\
2235 #define UINTMAX_C(v) (v ## ULL)\n\
2236 #endif",
2237     (char*)NULL };
2239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2241  *  Description of Dec_Intern_Asm fix
2242  */
2243 tSCC zDec_Intern_AsmName[] =
2244      "dec_intern_asm";
2247  *  File name selection pattern
2248  */
2249 tSCC zDec_Intern_AsmList[] =
2250   "c_asm.h\0";
2252  *  Machine/OS name selection pattern
2253  */
2254 #define apzDec_Intern_AsmMachs (const char**)NULL
2255 #define DEC_INTERN_ASM_TEST_CT  0
2256 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2259  *  Fix Command Arguments for Dec_Intern_Asm
2260  */
2261 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2262     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2263 #ifdef __DECC\n",
2264     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2265 #endif\n",
2266     (char*)NULL };
2268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2270  *  Description of Djgpp_Wchar_H fix
2271  */
2272 tSCC zDjgpp_Wchar_HName[] =
2273      "djgpp_wchar_h";
2276  *  File name selection pattern
2277  */
2278 #define zDjgpp_Wchar_HList (char*)NULL
2280  *  Machine/OS name selection pattern
2281  */
2282 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2285  *  content selection pattern - do fix if pattern found
2286  */
2287 tSCC zDjgpp_Wchar_HSelect0[] =
2288        "__DJ_wint_t";
2291  *  content bypass pattern - skip fix if pattern found
2292  */
2293 tSCC zDjgpp_Wchar_HBypass0[] =
2294        "sys/djtypes.h";
2296 #define    DJGPP_WCHAR_H_TEST_CT  2
2297 static tTestDesc aDjgpp_Wchar_HTests[] = {
2298   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2299   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2302  *  Fix Command Arguments for Djgpp_Wchar_H
2303  */
2304 static const char* apzDjgpp_Wchar_HPatch[] = {
2305     "format",
2306     "%0\n\
2307 #include <sys/djtypes.h>",
2308     "#include <stddef.h>",
2309     (char*)NULL };
2311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2313  *  Description of Ecd_Cursor fix
2314  */
2315 tSCC zEcd_CursorName[] =
2316      "ecd_cursor";
2319  *  File name selection pattern
2320  */
2321 tSCC zEcd_CursorList[] =
2322   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2324  *  Machine/OS name selection pattern
2325  */
2326 #define apzEcd_CursorMachs (const char**)NULL
2329  *  content selection pattern - do fix if pattern found
2330  */
2331 tSCC zEcd_CursorSelect0[] =
2332        "ecd\\.cursor";
2334 #define    ECD_CURSOR_TEST_CT  1
2335 static tTestDesc aEcd_CursorTests[] = {
2336   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2339  *  Fix Command Arguments for Ecd_Cursor
2340  */
2341 static const char* apzEcd_CursorPatch[] = {
2342     "format",
2343     "ecd_cursor",
2344     (char*)NULL };
2346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2348  *  Description of Freebsd_Gcc3_Breakage fix
2349  */
2350 tSCC zFreebsd_Gcc3_BreakageName[] =
2351      "freebsd_gcc3_breakage";
2354  *  File name selection pattern
2355  */
2356 tSCC zFreebsd_Gcc3_BreakageList[] =
2357   "sys/cdefs.h\0";
2359  *  Machine/OS name selection pattern
2360  */
2361 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2362         "*-*-freebsd*",
2363         (const char*)NULL };
2366  *  content selection pattern - do fix if pattern found
2367  */
2368 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2369        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2372  *  content bypass pattern - skip fix if pattern found
2373  */
2374 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2375        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2377 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2378 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2379   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2380   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2383  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2384  */
2385 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2386     "format",
2387     "%0 || __GNUC__ >= 3",
2388     (char*)NULL };
2390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2392  *  Description of Freebsd_Gcc4_Breakage fix
2393  */
2394 tSCC zFreebsd_Gcc4_BreakageName[] =
2395      "freebsd_gcc4_breakage";
2398  *  File name selection pattern
2399  */
2400 tSCC zFreebsd_Gcc4_BreakageList[] =
2401   "sys/cdefs.h\0";
2403  *  Machine/OS name selection pattern
2404  */
2405 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2406         "*-*-freebsd*",
2407         (const char*)NULL };
2410  *  content selection pattern - do fix if pattern found
2411  */
2412 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2413        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2415 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2416 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2417   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2420  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2421  */
2422 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2423     "format",
2424     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2425     (char*)NULL };
2427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2429  *  Description of Glibc_C99_Inline_1 fix
2430  */
2431 tSCC zGlibc_C99_Inline_1Name[] =
2432      "glibc_c99_inline_1";
2435  *  File name selection pattern
2436  */
2437 tSCC zGlibc_C99_Inline_1List[] =
2438   "features.h\0*/features.h\0";
2440  *  Machine/OS name selection pattern
2441  */
2442 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2445  *  content selection pattern - do fix if pattern found
2446  */
2447 tSCC zGlibc_C99_Inline_1Select0[] =
2448        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2450 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2451 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2452   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2455  *  Fix Command Arguments for Glibc_C99_Inline_1
2456  */
2457 static const char* apzGlibc_C99_Inline_1Patch[] = {
2458     "format",
2459     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2460     (char*)NULL };
2462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2464  *  Description of Glibc_C99_Inline_1a fix
2465  */
2466 tSCC zGlibc_C99_Inline_1aName[] =
2467      "glibc_c99_inline_1a";
2470  *  File name selection pattern
2471  */
2472 tSCC zGlibc_C99_Inline_1aList[] =
2473   "features.h\0*/features.h\0";
2475  *  Machine/OS name selection pattern
2476  */
2477 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2480  *  content selection pattern - do fix if pattern found
2481  */
2482 tSCC zGlibc_C99_Inline_1aSelect0[] =
2483        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2484 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2486 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
2487 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2488   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2491  *  Fix Command Arguments for Glibc_C99_Inline_1a
2492  */
2493 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2494     "format",
2495     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2496 %2",
2497     (char*)NULL };
2499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2501  *  Description of Glibc_C99_Inline_2 fix
2502  */
2503 tSCC zGlibc_C99_Inline_2Name[] =
2504      "glibc_c99_inline_2";
2507  *  File name selection pattern
2508  */
2509 tSCC zGlibc_C99_Inline_2List[] =
2510   "sys/stat.h\0*/sys/stat.h\0";
2512  *  Machine/OS name selection pattern
2513  */
2514 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2517  *  content selection pattern - do fix if pattern found
2518  */
2519 tSCC zGlibc_C99_Inline_2Select0[] =
2520        "extern __inline__ int";
2522 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2523 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2524   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2527  *  Fix Command Arguments for Glibc_C99_Inline_2
2528  */
2529 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2530     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2531 extern\\\n\
2532 #endif\\\n\
2533 __inline__ int \\1/",
2534     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2535 extern\\\n\
2536 #endif\\\n\
2537 __inline__ int \\1/",
2538     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2539 extern\\\n\
2540 #endif\\\n\
2541 __inline__ int \\1/",
2542     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2543 extern\\\n\
2544 #endif\\\n\
2545 __inline__ int __REDIRECT\\1 (\\2/",
2546     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2547 extern\\\n\
2548 #endif\\\n\
2549 __inline__ int __REDIRECT\\1 (\\2/",
2550     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2551 extern\\\n\
2552 #endif\\\n\
2553 __inline__ int/",
2554     (char*)NULL };
2556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2558  *  Description of Glibc_C99_Inline_3 fix
2559  */
2560 tSCC zGlibc_C99_Inline_3Name[] =
2561      "glibc_c99_inline_3";
2564  *  File name selection pattern
2565  */
2566 tSCC zGlibc_C99_Inline_3List[] =
2567   "bits/string2.h\0*/bits/string2.h\0";
2569  *  Machine/OS name selection pattern
2570  */
2571 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2574  *  content selection pattern - do fix if pattern found
2575  */
2576 tSCC zGlibc_C99_Inline_3Select0[] =
2577        "extern __inline";
2580  *  content bypass pattern - skip fix if pattern found
2581  */
2582 tSCC zGlibc_C99_Inline_3Bypass0[] =
2583        "__extern_inline|__GNU_STDC_INLINE__";
2585 #define    GLIBC_C99_INLINE_3_TEST_CT  2
2586 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2587   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2588   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2591  *  Fix Command Arguments for Glibc_C99_Inline_3
2592  */
2593 static const char* apzGlibc_C99_Inline_3Patch[] = {
2594     "format",
2595     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2596     "^# ifdef __cplusplus$",
2597     (char*)NULL };
2599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2601  *  Description of Glibc_C99_Inline_4 fix
2602  */
2603 tSCC zGlibc_C99_Inline_4Name[] =
2604      "glibc_c99_inline_4";
2607  *  File name selection pattern
2608  */
2609 tSCC zGlibc_C99_Inline_4List[] =
2610   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2612  *  Machine/OS name selection pattern
2613  */
2614 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2617  *  content selection pattern - do fix if pattern found
2618  */
2619 tSCC zGlibc_C99_Inline_4Select0[] =
2620        "(^| )extern __inline";
2623  *  content bypass pattern - skip fix if pattern found
2624  */
2625 tSCC zGlibc_C99_Inline_4Bypass0[] =
2626        "__extern_inline|__gnu_inline__";
2628 #define    GLIBC_C99_INLINE_4_TEST_CT  2
2629 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2630   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2631   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2634  *  Fix Command Arguments for Glibc_C99_Inline_4
2635  */
2636 static const char* apzGlibc_C99_Inline_4Patch[] = {
2637     "format",
2638     "%0 __attribute__ ((__gnu_inline__))",
2639     (char*)NULL };
2641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2643  *  Description of Glibc_Mutex_Init fix
2644  */
2645 tSCC zGlibc_Mutex_InitName[] =
2646      "glibc_mutex_init";
2649  *  File name selection pattern
2650  */
2651 tSCC zGlibc_Mutex_InitList[] =
2652   "pthread.h\0";
2654  *  Machine/OS name selection pattern
2655  */
2656 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2659  *  content selection pattern - do fix if pattern found
2660  */
2661 tSCC zGlibc_Mutex_InitSelect0[] =
2662        "\\{ *\\{ *0, *\\} *\\}";
2664 #define    GLIBC_MUTEX_INIT_TEST_CT  1
2665 static tTestDesc aGlibc_Mutex_InitTests[] = {
2666   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2669  *  Fix Command Arguments for Glibc_Mutex_Init
2670  */
2671 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2672     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2673 N\n\
2674 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2676     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2677     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2678     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2679     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2680     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2681     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2682     "-e", "/define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\\n\
2683 #  \\1\\\n\
2684   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2685 # else\\\n\
2686 #  \\1\\\n\
2687   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2688 # endif/",
2689     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2690     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2691     (char*)NULL };
2693 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2695  *  Description of Glibc_Stdint fix
2696  */
2697 tSCC zGlibc_StdintName[] =
2698      "glibc_stdint";
2701  *  File name selection pattern
2702  */
2703 tSCC zGlibc_StdintList[] =
2704   "stdint.h\0";
2706  *  Machine/OS name selection pattern
2707  */
2708 #define apzGlibc_StdintMachs (const char**)NULL
2711  *  content selection pattern - do fix if pattern found
2712  */
2713 tSCC zGlibc_StdintSelect0[] =
2714        "GNU C Library";
2716 #define    GLIBC_STDINT_TEST_CT  1
2717 static tTestDesc aGlibc_StdintTests[] = {
2718   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
2721  *  Fix Command Arguments for Glibc_Stdint
2722  */
2723 static const char* apzGlibc_StdintPatch[] = {
2724     "format",
2725     "# define UINT8_C(c)\tc\n\
2726 # define UINT16_C(c)\tc",
2727     "# define UINT8_C\\(c\\)\tc ## U\n\
2728 # define UINT16_C\\(c\\)\tc ## U",
2729     (char*)NULL };
2731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2733  *  Description of Glibc_Strncpy fix
2734  */
2735 tSCC zGlibc_StrncpyName[] =
2736      "glibc_strncpy";
2739  *  File name selection pattern
2740  */
2741 tSCC zGlibc_StrncpyList[] =
2742   "bits/string2.h\0";
2744  *  Machine/OS name selection pattern
2745  */
2746 #define apzGlibc_StrncpyMachs (const char**)NULL
2749  *  content bypass pattern - skip fix if pattern found
2750  */
2751 tSCC zGlibc_StrncpyBypass0[] =
2752        "__builtin_strncpy";
2754 #define    GLIBC_STRNCPY_TEST_CT  1
2755 static tTestDesc aGlibc_StrncpyTests[] = {
2756   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2759  *  Fix Command Arguments for Glibc_Strncpy
2760  */
2761 static const char* apzGlibc_StrncpyPatch[] = {
2762     "format",
2763     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2764     "#  define strncpy([^\n\
2765 ]*\\\\\n\
2766 )*[^\n\
2767 ]*",
2768     (char*)NULL };
2770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2772  *  Description of Glibc_Tgmath fix
2773  */
2774 tSCC zGlibc_TgmathName[] =
2775      "glibc_tgmath";
2778  *  File name selection pattern
2779  */
2780 tSCC zGlibc_TgmathList[] =
2781   "tgmath.h\0";
2783  *  Machine/OS name selection pattern
2784  */
2785 #define apzGlibc_TgmathMachs (const char**)NULL
2788  *  content selection pattern - do fix if pattern found
2789  */
2790 tSCC zGlibc_TgmathSelect0[] =
2791        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2794  *  content bypass pattern - skip fix if pattern found
2795  */
2796 tSCC zGlibc_TgmathBypass0[] =
2797        "__floating_type\\(type\\) \\\\\n\
2798 .*__builtin_classify_type";
2800 #define    GLIBC_TGMATH_TEST_CT  2
2801 static tTestDesc aGlibc_TgmathTests[] = {
2802   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
2803   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2806  *  Fix Command Arguments for Glibc_Tgmath
2807  */
2808 static const char* apzGlibc_TgmathPatch[] = {
2809     "format",
2810     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2811     (char*)NULL };
2813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2815  *  Description of Gnu_Types fix
2816  */
2817 tSCC zGnu_TypesName[] =
2818      "gnu_types";
2821  *  File name selection pattern
2822  */
2823 tSCC zGnu_TypesList[] =
2824   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2826  *  Machine/OS name selection pattern
2827  */
2828 tSCC* apzGnu_TypesMachs[] = {
2829         "*-*-solaris2.1[0-9]*",
2830         (const char*)NULL };
2833  *  content selection pattern - do fix if pattern found
2834  */
2835 tSCC zGnu_TypesSelect0[] =
2836        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2839  *  content bypass pattern - skip fix if pattern found
2840  */
2841 tSCC zGnu_TypesBypass0[] =
2842        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2844 #define    GNU_TYPES_TEST_CT  2
2845 static tTestDesc aGnu_TypesTests[] = {
2846   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
2847   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
2850  *  Fix Command Arguments for Gnu_Types
2851  */
2852 static const char* apzGnu_TypesPatch[] = {
2853     "gnu_type",
2854     (char*)NULL };
2856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2858  *  Description of Hp_Inline fix
2859  */
2860 tSCC zHp_InlineName[] =
2861      "hp_inline";
2864  *  File name selection pattern
2865  */
2866 tSCC zHp_InlineList[] =
2867   "sys/spinlock.h\0machine/machparam.h\0";
2869  *  Machine/OS name selection pattern
2870  */
2871 #define apzHp_InlineMachs (const char**)NULL
2874  *  content selection pattern - do fix if pattern found
2875  */
2876 tSCC zHp_InlineSelect0[] =
2877        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2879 #define    HP_INLINE_TEST_CT  1
2880 static tTestDesc aHp_InlineTests[] = {
2881   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
2884  *  Fix Command Arguments for Hp_Inline
2885  */
2886 static const char* apzHp_InlinePatch[] = {
2887     "format",
2888     "%1<machine/%2.h>",
2889     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2890     (char*)NULL };
2892 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2894  *  Description of Hp_Sysfile fix
2895  */
2896 tSCC zHp_SysfileName[] =
2897      "hp_sysfile";
2900  *  File name selection pattern
2901  */
2902 tSCC zHp_SysfileList[] =
2903   "sys/file.h\0";
2905  *  Machine/OS name selection pattern
2906  */
2907 #define apzHp_SysfileMachs (const char**)NULL
2910  *  content selection pattern - do fix if pattern found
2911  */
2912 tSCC zHp_SysfileSelect0[] =
2913        "HPUX_SOURCE";
2915 #define    HP_SYSFILE_TEST_CT  1
2916 static tTestDesc aHp_SysfileTests[] = {
2917   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
2920  *  Fix Command Arguments for Hp_Sysfile
2921  */
2922 static const char* apzHp_SysfilePatch[] = {
2923     "format",
2924     "(struct file *, ...)",
2925     "\\(\\.\\.\\.\\)",
2926     (char*)NULL };
2928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2930  *  Description of Hppa_Hpux_Fp_Macros fix
2931  */
2932 tSCC zHppa_Hpux_Fp_MacrosName[] =
2933      "hppa_hpux_fp_macros";
2936  *  File name selection pattern
2937  */
2938 tSCC zHppa_Hpux_Fp_MacrosList[] =
2939   "math.h\0";
2941  *  Machine/OS name selection pattern
2942  */
2943 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2944         "hppa*-hp-hpux11*",
2945         (const char*)NULL };
2948  *  content selection pattern - do fix if pattern found
2949  */
2950 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2951        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2952 #[ \t]*define[ \t]*FP_ZERO.*\n\
2953 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2954 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2955 #[ \t]*define[ \t]*FP_NAN.*\n";
2957 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
2958 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2959   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2962  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
2963  */
2964 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2965     "format",
2966     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2967 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2968    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2969 %0#endif\n\n\
2970 #ifdef _INCLUDE_HPUX_SOURCE\n",
2971     (char*)NULL };
2973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2975  *  Description of Hpux10_Cpp_Pow_Inline fix
2976  */
2977 tSCC zHpux10_Cpp_Pow_InlineName[] =
2978      "hpux10_cpp_pow_inline";
2981  *  File name selection pattern
2982  */
2983 tSCC zHpux10_Cpp_Pow_InlineList[] =
2984   "fixinc-test-limits.h\0math.h\0";
2986  *  Machine/OS name selection pattern
2987  */
2988 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2991  *  content selection pattern - do fix if pattern found
2992  */
2993 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2994        "^# +ifdef +__cplusplus\n\
2995  +\\}\n\
2996  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2997 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2998  +\\}\n\
2999  +extern +\"C\" +\\{\n\
3000 #else\n\
3001 # +endif";
3003 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
3004 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3005   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3008  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3009  */
3010 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3011     "format",
3012     "",
3013     (char*)NULL };
3015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3017  *  Description of Hpux11_Cpp_Pow_Inline fix
3018  */
3019 tSCC zHpux11_Cpp_Pow_InlineName[] =
3020      "hpux11_cpp_pow_inline";
3023  *  File name selection pattern
3024  */
3025 tSCC zHpux11_Cpp_Pow_InlineList[] =
3026   "math.h\0";
3028  *  Machine/OS name selection pattern
3029  */
3030 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3033  *  content selection pattern - do fix if pattern found
3034  */
3035 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3036        " +inline double pow\\(double d,int expon\\) \\{\n\
3037  +return pow\\(d, \\(double\\)expon\\);\n\
3038  +\\}\n";
3040 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
3041 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3042   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3045  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3046  */
3047 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3048     "format",
3049     "",
3050     (char*)NULL };
3052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3054  *  Description of Hpux10_Ctype_Declarations1 fix
3055  */
3056 tSCC zHpux10_Ctype_Declarations1Name[] =
3057      "hpux10_ctype_declarations1";
3060  *  File name selection pattern
3061  */
3062 tSCC zHpux10_Ctype_Declarations1List[] =
3063   "ctype.h\0";
3065  *  Machine/OS name selection pattern
3066  */
3067 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3070  *  content selection pattern - do fix if pattern found
3071  */
3072 tSCC zHpux10_Ctype_Declarations1Select0[] =
3073        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3076  *  content bypass pattern - skip fix if pattern found
3077  */
3078 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3079        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3081 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
3082 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3083   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3084   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3087  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
3088  */
3089 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3090     "format",
3091     "#ifdef _PROTOTYPES\n\
3092 extern int __tolower(int);\n\
3093 extern int __toupper(int);\n\
3094 #else /* NOT _PROTOTYPES */\n\
3095 extern int __tolower();\n\
3096 extern int __toupper();\n\
3097 #endif /* _PROTOTYPES */\n\n\
3098 %0\n",
3099     (char*)NULL };
3101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3103  *  Description of Hpux10_Ctype_Declarations2 fix
3104  */
3105 tSCC zHpux10_Ctype_Declarations2Name[] =
3106      "hpux10_ctype_declarations2";
3109  *  File name selection pattern
3110  */
3111 tSCC zHpux10_Ctype_Declarations2List[] =
3112   "ctype.h\0";
3114  *  Machine/OS name selection pattern
3115  */
3116 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3119  *  content selection pattern - do fix if pattern found
3120  */
3121 tSCC zHpux10_Ctype_Declarations2Select0[] =
3122        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3125  *  content bypass pattern - skip fix if pattern found
3126  */
3127 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3128        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3130 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
3131 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3132   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3133   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3136  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
3137  */
3138 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3139     "format",
3140     "%0\n\n\
3141 #ifdef _PROTOTYPES\n\
3142      extern int _isalnum(int);\n\
3143      extern int _isalpha(int);\n\
3144      extern int _iscntrl(int);\n\
3145      extern int _isdigit(int);\n\
3146      extern int _isgraph(int);\n\
3147      extern int _islower(int);\n\
3148      extern int _isprint(int);\n\
3149      extern int _ispunct(int);\n\
3150      extern int _isspace(int);\n\
3151      extern int _isupper(int);\n\
3152      extern int _isxdigit(int);\n\
3153 #  else /* not _PROTOTYPES */\n\
3154      extern int _isalnum();\n\
3155      extern int _isalpha();\n\
3156      extern int _iscntrl();\n\
3157      extern int _isdigit();\n\
3158      extern int _isgraph();\n\
3159      extern int _islower();\n\
3160      extern int _isprint();\n\
3161      extern int _ispunct();\n\
3162      extern int _isspace();\n\
3163      extern int _isupper();\n\
3164      extern int _isxdigit();\n\
3165 #endif /* _PROTOTYPES */\n",
3166     (char*)NULL };
3168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3170  *  Description of Hpux10_Stdio_Declarations fix
3171  */
3172 tSCC zHpux10_Stdio_DeclarationsName[] =
3173      "hpux10_stdio_declarations";
3176  *  File name selection pattern
3177  */
3178 tSCC zHpux10_Stdio_DeclarationsList[] =
3179   "stdio.h\0";
3181  *  Machine/OS name selection pattern
3182  */
3183 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3186  *  content selection pattern - do fix if pattern found
3187  */
3188 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3189        "^#[ \t]*define _iob[ \t]*__iob";
3192  *  content bypass pattern - skip fix if pattern found
3193  */
3194 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3195        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3197 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
3198 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3199   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3200   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3203  *  Fix Command Arguments for Hpux10_Stdio_Declarations
3204  */
3205 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3206     "format",
3207     "%0\n\n\
3208 #  if defined(__STDC__) || defined(__cplusplus)\n\
3209      extern int snprintf(char *, size_t, const char *, ...);\n\
3210      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3211 #  else /* not __STDC__) || __cplusplus */\n\
3212      extern int snprintf();\n\
3213      extern int vsnprintf();\n\
3214 #  endif /* __STDC__) || __cplusplus */\n",
3215     (char*)NULL };
3217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3219  *  Description of Hpux11_Abs fix
3220  */
3221 tSCC zHpux11_AbsName[] =
3222      "hpux11_abs";
3225  *  File name selection pattern
3226  */
3227 tSCC zHpux11_AbsList[] =
3228   "stdlib.h\0";
3230  *  Machine/OS name selection pattern
3231  */
3232 tSCC* apzHpux11_AbsMachs[] = {
3233         "*-hp-hpux11*",
3234         (const char*)NULL };
3237  *  content selection pattern - do fix if pattern found
3238  */
3239 tSCC zHpux11_AbsSelect0[] =
3240        "ifndef _MATH_INCLUDED";
3242 #define    HPUX11_ABS_TEST_CT  1
3243 static tTestDesc aHpux11_AbsTests[] = {
3244   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
3247  *  Fix Command Arguments for Hpux11_Abs
3248  */
3249 static const char* apzHpux11_AbsPatch[] = {
3250     "format",
3251     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3252     (char*)NULL };
3254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3256  *  Description of Hpux11_Fabsf fix
3257  */
3258 tSCC zHpux11_FabsfName[] =
3259      "hpux11_fabsf";
3262  *  File name selection pattern
3263  */
3264 tSCC zHpux11_FabsfList[] =
3265   "math.h\0";
3267  *  Machine/OS name selection pattern
3268  */
3269 #define apzHpux11_FabsfMachs (const char**)NULL
3272  *  content selection pattern - do fix if pattern found
3273  */
3274 tSCC zHpux11_FabsfSelect0[] =
3275        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3278  *  content bypass pattern - skip fix if pattern found
3279  */
3280 tSCC zHpux11_FabsfBypass0[] =
3281        "__cplusplus";
3283 #define    HPUX11_FABSF_TEST_CT  2
3284 static tTestDesc aHpux11_FabsfTests[] = {
3285   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
3286   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3289  *  Fix Command Arguments for Hpux11_Fabsf
3290  */
3291 static const char* apzHpux11_FabsfPatch[] = {
3292     "format",
3293     "#ifndef __cplusplus\n\
3294 %0\n\
3295 #endif",
3296     (char*)NULL };
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3300  *  Description of Hpux11_Pthread_Const fix
3301  */
3302 tSCC zHpux11_Pthread_ConstName[] =
3303      "hpux11_pthread_const";
3306  *  File name selection pattern
3307  */
3308 tSCC zHpux11_Pthread_ConstList[] =
3309   "sys/pthread.h\0";
3311  *  Machine/OS name selection pattern
3312  */
3313 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3314         "*-hp-hpux11.[0-3]*",
3315         (const char*)NULL };
3318  *  content selection pattern - do fix if pattern found
3319  */
3320 tSCC zHpux11_Pthread_ConstSelect0[] =
3321        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3323 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
3324 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3325   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3328  *  Fix Command Arguments for Hpux11_Pthread_Const
3329  */
3330 static const char* apzHpux11_Pthread_ConstPatch[] = {
3331     "format",
3332     "#define __POINTER_SET\t\t((void *) 1L)",
3333     (char*)NULL };
3335 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3337  *  Description of Hpux11_Size_T fix
3338  */
3339 tSCC zHpux11_Size_TName[] =
3340      "hpux11_size_t";
3343  *  File name selection pattern
3344  */
3345 #define zHpux11_Size_TList (char*)NULL
3347  *  Machine/OS name selection pattern
3348  */
3349 tSCC* apzHpux11_Size_TMachs[] = {
3350         "*-hp-hpux11*",
3351         (const char*)NULL };
3354  *  content selection pattern - do fix if pattern found
3355  */
3356 tSCC zHpux11_Size_TSelect0[] =
3357        "__size_t";
3359 #define    HPUX11_SIZE_T_TEST_CT  1
3360 static tTestDesc aHpux11_Size_TTests[] = {
3361   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3364  *  Fix Command Arguments for Hpux11_Size_T
3365  */
3366 static const char* apzHpux11_Size_TPatch[] = {
3367     "format",
3368     "_hpux_size_t",
3369     (char*)NULL };
3371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3373  *  Description of Hpux11_Snprintf fix
3374  */
3375 tSCC zHpux11_SnprintfName[] =
3376      "hpux11_snprintf";
3379  *  File name selection pattern
3380  */
3381 tSCC zHpux11_SnprintfList[] =
3382   "stdio.h\0";
3384  *  Machine/OS name selection pattern
3385  */
3386 #define apzHpux11_SnprintfMachs (const char**)NULL
3389  *  content selection pattern - do fix if pattern found
3390  */
3391 tSCC zHpux11_SnprintfSelect0[] =
3392        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3394 #define    HPUX11_SNPRINTF_TEST_CT  1
3395 static tTestDesc aHpux11_SnprintfTests[] = {
3396   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3399  *  Fix Command Arguments for Hpux11_Snprintf
3400  */
3401 static const char* apzHpux11_SnprintfPatch[] = {
3402     "format",
3403     "%1 const %3",
3404     (char*)NULL };
3406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3408  *  Description of Hpux11_Vsnprintf fix
3409  */
3410 tSCC zHpux11_VsnprintfName[] =
3411      "hpux11_vsnprintf";
3414  *  File name selection pattern
3415  */
3416 tSCC zHpux11_VsnprintfList[] =
3417   "stdio.h\0";
3419  *  Machine/OS name selection pattern
3420  */
3421 #define apzHpux11_VsnprintfMachs (const char**)NULL
3424  *  content selection pattern - do fix if pattern found
3425  */
3426 tSCC zHpux11_VsnprintfSelect0[] =
3427        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3429 #define    HPUX11_VSNPRINTF_TEST_CT  1
3430 static tTestDesc aHpux11_VsnprintfTests[] = {
3431   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3434  *  Fix Command Arguments for Hpux11_Vsnprintf
3435  */
3436 static const char* apzHpux11_VsnprintfPatch[] = {
3437     "format",
3438     "%1 __va_list);",
3439     (char*)NULL };
3441 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3443  *  Description of Hpux8_Bogus_Inlines fix
3444  */
3445 tSCC zHpux8_Bogus_InlinesName[] =
3446      "hpux8_bogus_inlines";
3449  *  File name selection pattern
3450  */
3451 tSCC zHpux8_Bogus_InlinesList[] =
3452   "math.h\0";
3454  *  Machine/OS name selection pattern
3455  */
3456 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3459  *  content selection pattern - do fix if pattern found
3460  */
3461 tSCC zHpux8_Bogus_InlinesSelect0[] =
3462        "inline";
3465  *  content bypass pattern - skip fix if pattern found
3466  */
3467 tSCC zHpux8_Bogus_InlinesBypass0[] =
3468        "__GNUG__";
3470 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
3471 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3472   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3473   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3476  *  Fix Command Arguments for Hpux8_Bogus_Inlines
3477  */
3478 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3479     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3480     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3481     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3482     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3483     (char*)NULL };
3485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3487  *  Description of Hpux_Ctype_Macros fix
3488  */
3489 tSCC zHpux_Ctype_MacrosName[] =
3490      "hpux_ctype_macros";
3493  *  File name selection pattern
3494  */
3495 tSCC zHpux_Ctype_MacrosList[] =
3496   "ctype.h\0";
3498  *  Machine/OS name selection pattern
3499  */
3500 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3503  *  content selection pattern - do fix if pattern found
3504  */
3505 tSCC zHpux_Ctype_MacrosSelect0[] =
3506        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3508 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3509 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3510   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3513  *  Fix Command Arguments for Hpux_Ctype_Macros
3514  */
3515 static const char* apzHpux_Ctype_MacrosPatch[] = {
3516     "format",
3517     "%1(int)%3",
3518     (char*)NULL };
3520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3522  *  Description of Hpux_Htonl fix
3523  */
3524 tSCC zHpux_HtonlName[] =
3525      "hpux_htonl";
3528  *  File name selection pattern
3529  */
3530 tSCC zHpux_HtonlList[] =
3531   "netinet/in.h\0";
3533  *  Machine/OS name selection pattern
3534  */
3535 #define apzHpux_HtonlMachs (const char**)NULL
3538  *  content selection pattern - do fix if pattern found
3539  */
3540 tSCC zHpux_HtonlSelect0[] =
3541        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3542 (/\\*\n\
3543  \\* Macros for number representation conversion\\.\n\
3544  \\*/\n\
3545 #ifndef ntohl)";
3547 #define    HPUX_HTONL_TEST_CT  1
3548 static tTestDesc aHpux_HtonlTests[] = {
3549   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
3552  *  Fix Command Arguments for Hpux_Htonl
3553  */
3554 static const char* apzHpux_HtonlPatch[] = {
3555     "format",
3556     "#if 1\n\
3557 %1",
3558     (char*)NULL };
3560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3562  *  Description of Hpux_Long_Double fix
3563  */
3564 tSCC zHpux_Long_DoubleName[] =
3565      "hpux_long_double";
3568  *  File name selection pattern
3569  */
3570 tSCC zHpux_Long_DoubleList[] =
3571   "stdlib.h\0";
3573  *  Machine/OS name selection pattern
3574  */
3575 tSCC* apzHpux_Long_DoubleMachs[] = {
3576         "*-*-hpux10*",
3577         "*-*-hpux11.[012]*",
3578         (const char*)NULL };
3581  *  content selection pattern - do fix if pattern found
3582  */
3583 tSCC zHpux_Long_DoubleSelect0[] =
3584        "extern[ \t]long_double[ \t]strtold";
3587  *  content bypass pattern - skip fix if pattern found
3588  */
3589 tSCC zHpux_Long_DoubleBypass0[] =
3590        "long_double_t";
3592 #define    HPUX_LONG_DOUBLE_TEST_CT  2
3593 static tTestDesc aHpux_Long_DoubleTests[] = {
3594   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3595   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3598  *  Fix Command Arguments for Hpux_Long_Double
3599  */
3600 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3601     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3602     "-e", "s/long_double/long double/g",
3603     (char*)NULL };
3605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3607  *  Description of Hpux_Long_Double_2 fix
3608  */
3609 tSCC zHpux_Long_Double_2Name[] =
3610      "hpux_long_double_2";
3613  *  File name selection pattern
3614  */
3615 tSCC zHpux_Long_Double_2List[] =
3616   "stdlib.h\0";
3618  *  Machine/OS name selection pattern
3619  */
3620 tSCC* apzHpux_Long_Double_2Machs[] = {
3621         "hppa*-*-hpux11.3*",
3622         (const char*)NULL };
3625  *  content selection pattern - do fix if pattern found
3626  */
3627 tSCC zHpux_Long_Double_2Select0[] =
3628        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3630 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
3631 static tTestDesc aHpux_Long_Double_2Tests[] = {
3632   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3635  *  Fix Command Arguments for Hpux_Long_Double_2
3636  */
3637 static const char* apzHpux_Long_Double_2Patch[] = {
3638     "format",
3639     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3640     (char*)NULL };
3642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3644  *  Description of Hpux_Systime fix
3645  */
3646 tSCC zHpux_SystimeName[] =
3647      "hpux_systime";
3650  *  File name selection pattern
3651  */
3652 tSCC zHpux_SystimeList[] =
3653   "sys/time.h\0";
3655  *  Machine/OS name selection pattern
3656  */
3657 #define apzHpux_SystimeMachs (const char**)NULL
3660  *  content selection pattern - do fix if pattern found
3661  */
3662 tSCC zHpux_SystimeSelect0[] =
3663        "^extern struct sigevent;";
3665 #define    HPUX_SYSTIME_TEST_CT  1
3666 static tTestDesc aHpux_SystimeTests[] = {
3667   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
3670  *  Fix Command Arguments for Hpux_Systime
3671  */
3672 static const char* apzHpux_SystimePatch[] = {
3673     "format",
3674     "struct sigevent;",
3675     (char*)NULL };
3677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3679  *  Description of Hpux_Spu_Info fix
3680  */
3681 tSCC zHpux_Spu_InfoName[] =
3682      "hpux_spu_info";
3685  *  File name selection pattern
3686  */
3687 tSCC zHpux_Spu_InfoList[] =
3688   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3690  *  Machine/OS name selection pattern
3691  */
3692 tSCC* apzHpux_Spu_InfoMachs[] = {
3693         "*-hp-hpux*",
3694         (const char*)NULL };
3697  *  content selection pattern - do fix if pattern found
3698  */
3699 tSCC zHpux_Spu_InfoSelect0[] =
3700        "^.*extern.*spu_info.*";
3702 #define    HPUX_SPU_INFO_TEST_CT  1
3703 static tTestDesc aHpux_Spu_InfoTests[] = {
3704   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3707  *  Fix Command Arguments for Hpux_Spu_Info
3708  */
3709 static const char* apzHpux_Spu_InfoPatch[] = {
3710     "format",
3711     "#ifdef _KERNEL\n\
3712 %0\n\
3713 #endif",
3714     (char*)NULL };
3716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3718  *  Description of Hpux11_Extern_Sendfile fix
3719  */
3720 tSCC zHpux11_Extern_SendfileName[] =
3721      "hpux11_extern_sendfile";
3724  *  File name selection pattern
3725  */
3726 tSCC zHpux11_Extern_SendfileList[] =
3727   "sys/socket.h\0";
3729  *  Machine/OS name selection pattern
3730  */
3731 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3732         "*-hp-hpux11.[12]*",
3733         (const char*)NULL };
3736  *  content selection pattern - do fix if pattern found
3737  */
3738 tSCC zHpux11_Extern_SendfileSelect0[] =
3739        "^[ \t]*extern sbsize_t sendfile.*\n\
3740 .*, int\\)\\);\n";
3742 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
3743 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3744   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3747  *  Fix Command Arguments for Hpux11_Extern_Sendfile
3748  */
3749 static const char* apzHpux11_Extern_SendfilePatch[] = {
3750     "format",
3751     "#ifndef _APP32_64BIT_OFF_T\n\
3752 %0#endif\n",
3753     (char*)NULL };
3755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3757  *  Description of Hpux11_Extern_Sendpath fix
3758  */
3759 tSCC zHpux11_Extern_SendpathName[] =
3760      "hpux11_extern_sendpath";
3763  *  File name selection pattern
3764  */
3765 tSCC zHpux11_Extern_SendpathList[] =
3766   "sys/socket.h\0";
3768  *  Machine/OS name selection pattern
3769  */
3770 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3771         "*-hp-hpux11.[12]*",
3772         (const char*)NULL };
3775  *  content selection pattern - do fix if pattern found
3776  */
3777 tSCC zHpux11_Extern_SendpathSelect0[] =
3778        "^[ \t]*extern sbsize_t sendpath.*\n\
3779 .*, int\\)\\);\n";
3781 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
3782 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3783   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3786  *  Fix Command Arguments for Hpux11_Extern_Sendpath
3787  */
3788 static const char* apzHpux11_Extern_SendpathPatch[] = {
3789     "format",
3790     "#ifndef _APP32_64BIT_OFF_T\n\
3791 %0#endif\n",
3792     (char*)NULL };
3794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3796  *  Description of Hpux_Extern_Errno fix
3797  */
3798 tSCC zHpux_Extern_ErrnoName[] =
3799      "hpux_extern_errno";
3802  *  File name selection pattern
3803  */
3804 tSCC zHpux_Extern_ErrnoList[] =
3805   "errno.h\0";
3807  *  Machine/OS name selection pattern
3808  */
3809 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3810         "*-hp-hpux10.*",
3811         "*-hp-hpux11.[0-2]*",
3812         (const char*)NULL };
3815  *  content selection pattern - do fix if pattern found
3816  */
3817 tSCC zHpux_Extern_ErrnoSelect0[] =
3818        "^[ \t]*extern int errno;$";
3820 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
3821 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3822   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3825  *  Fix Command Arguments for Hpux_Extern_Errno
3826  */
3827 static const char* apzHpux_Extern_ErrnoPatch[] = {
3828     "format",
3829     "#ifdef __cplusplus\n\
3830 extern \"C\" {\n\
3831 #endif\n\
3832 %0\n\
3833 #ifdef __cplusplus\n\
3834 }\n\
3835 #endif",
3836     (char*)NULL };
3838 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3840  *  Description of Hpux_Pthread_Initializers fix
3841  */
3842 tSCC zHpux_Pthread_InitializersName[] =
3843      "hpux_pthread_initializers";
3846  *  File name selection pattern
3847  */
3848 tSCC zHpux_Pthread_InitializersList[] =
3849   "sys/pthread.h\0";
3851  *  Machine/OS name selection pattern
3852  */
3853 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3854         "*-hp-hpux11.[0-3]*",
3855         (const char*)NULL };
3856 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
3857 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
3860  *  Fix Command Arguments for Hpux_Pthread_Initializers
3861  */
3862 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3863     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3864     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3865     "-e", "/^[ \t]*0$/d",
3866     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3867     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3868     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3869     "-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\\\\@",
3870     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3871     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3872     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3873     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3874     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3875     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3876     (char*)NULL };
3878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3880  *  Description of Hpux_C99_Intptr fix
3881  */
3882 tSCC zHpux_C99_IntptrName[] =
3883      "hpux_c99_intptr";
3886  *  File name selection pattern
3887  */
3888 tSCC zHpux_C99_IntptrList[] =
3889   "stdint-hpux11.h\0stdint.h\0";
3891  *  Machine/OS name selection pattern
3892  */
3893 tSCC* apzHpux_C99_IntptrMachs[] = {
3894         "*-hp-hpux11.3*",
3895         (const char*)NULL };
3896 #define HPUX_C99_INTPTR_TEST_CT  0
3897 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
3900  *  Fix Command Arguments for Hpux_C99_Intptr
3901  */
3902 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3903     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3904     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3905     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3906     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3907     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3908     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3909     (char*)NULL };
3911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3913  *  Description of Hpux_C99_Inttypes fix
3914  */
3915 tSCC zHpux_C99_InttypesName[] =
3916      "hpux_c99_inttypes";
3919  *  File name selection pattern
3920  */
3921 tSCC zHpux_C99_InttypesList[] =
3922   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
3924  *  Machine/OS name selection pattern
3925  */
3926 tSCC* apzHpux_C99_InttypesMachs[] = {
3927         "*-hp-hpux11.[23]*",
3928         (const char*)NULL };
3929 #define HPUX_C99_INTTYPES_TEST_CT  0
3930 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
3933  *  Fix Command Arguments for Hpux_C99_Inttypes
3934  */
3935 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3936     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3937     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3938     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3939     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3940     (char*)NULL };
3942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3944  *  Description of Hpux_C99_Inttypes2 fix
3945  */
3946 tSCC zHpux_C99_Inttypes2Name[] =
3947      "hpux_c99_inttypes2";
3950  *  File name selection pattern
3951  */
3952 tSCC zHpux_C99_Inttypes2List[] =
3953   "stdint-hpux11.h\0stdint.h\0";
3955  *  Machine/OS name selection pattern
3956  */
3957 tSCC* apzHpux_C99_Inttypes2Machs[] = {
3958         "*-hp-hpux11.2*",
3959         (const char*)NULL };
3960 #define HPUX_C99_INTTYPES2_TEST_CT  0
3961 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
3964  *  Fix Command Arguments for Hpux_C99_Inttypes2
3965  */
3966 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
3967     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
3968     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
3969     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
3970     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
3971     (char*)NULL };
3973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3975  *  Description of Hpux_Stdint_Least_Fast fix
3976  */
3977 tSCC zHpux_Stdint_Least_FastName[] =
3978      "hpux_stdint_least_fast";
3981  *  File name selection pattern
3982  */
3983 tSCC zHpux_Stdint_Least_FastList[] =
3984   "stdint-hpux11.h\0stdint.h\0";
3986  *  Machine/OS name selection pattern
3987  */
3988 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
3989         "*-hp-hpux11.2*",
3990         (const char*)NULL };
3993  *  content selection pattern - do fix if pattern found
3994  */
3995 tSCC zHpux_Stdint_Least_FastSelect0[] =
3996        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
3998 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
3999 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4000   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4003  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
4004  */
4005 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4006     "format",
4007     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
4008     (char*)NULL };
4010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4012  *  Description of Hpux_Inttype_Int8_T fix
4013  */
4014 tSCC zHpux_Inttype_Int8_TName[] =
4015      "hpux_inttype_int8_t";
4018  *  File name selection pattern
4019  */
4020 tSCC zHpux_Inttype_Int8_TList[] =
4021   "sys/_inttypes.h\0";
4023  *  Machine/OS name selection pattern
4024  */
4025 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4026         "*-hp-hpux1[01].*",
4027         (const char*)NULL };
4030  *  content selection pattern - do fix if pattern found
4031  */
4032 tSCC zHpux_Inttype_Int8_TSelect0[] =
4033        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4035 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4036 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4037   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4040  *  Fix Command Arguments for Hpux_Inttype_Int8_T
4041  */
4042 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4043     "format",
4044     "typedef signed char int%18_t;",
4045     (char*)NULL };
4047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4049  *  Description of Hpux_Imaginary_I fix
4050  */
4051 tSCC zHpux_Imaginary_IName[] =
4052      "hpux_imaginary_i";
4055  *  File name selection pattern
4056  */
4057 tSCC zHpux_Imaginary_IList[] =
4058   "complex.h\0";
4060  *  Machine/OS name selection pattern
4061  */
4062 tSCC* apzHpux_Imaginary_IMachs[] = {
4063         "ia64-hp-hpux11.*",
4064         (const char*)NULL };
4067  *  content selection pattern - do fix if pattern found
4068  */
4069 tSCC zHpux_Imaginary_ISelect0[] =
4070        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4072 #define    HPUX_IMAGINARY_I_TEST_CT  1
4073 static tTestDesc aHpux_Imaginary_ITests[] = {
4074   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4077  *  Fix Command Arguments for Hpux_Imaginary_I
4078  */
4079 static const char* apzHpux_Imaginary_IPatch[] = {
4080     "format",
4081     "#define _Complex_I (__extension__ 1.0iF)",
4082     (char*)NULL };
4084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4086  *  Description of Huge_Val_Hex fix
4087  */
4088 tSCC zHuge_Val_HexName[] =
4089      "huge_val_hex";
4092  *  File name selection pattern
4093  */
4094 tSCC zHuge_Val_HexList[] =
4095   "bits/huge_val.h\0";
4097  *  Machine/OS name selection pattern
4098  */
4099 #define apzHuge_Val_HexMachs (const char**)NULL
4102  *  content selection pattern - do fix if pattern found
4103  */
4104 tSCC zHuge_Val_HexSelect0[] =
4105        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4108  *  content bypass pattern - skip fix if pattern found
4109  */
4110 tSCC zHuge_Val_HexBypass0[] =
4111        "__builtin_huge_val";
4113 #define    HUGE_VAL_HEX_TEST_CT  2
4114 static tTestDesc aHuge_Val_HexTests[] = {
4115   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
4116   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4119  *  Fix Command Arguments for Huge_Val_Hex
4120  */
4121 static const char* apzHuge_Val_HexPatch[] = {
4122     "format",
4123     "#define HUGE_VAL (__builtin_huge_val())\n",
4124     (char*)NULL };
4126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4128  *  Description of Huge_Valf_Hex fix
4129  */
4130 tSCC zHuge_Valf_HexName[] =
4131      "huge_valf_hex";
4134  *  File name selection pattern
4135  */
4136 tSCC zHuge_Valf_HexList[] =
4137   "bits/huge_val.h\0";
4139  *  Machine/OS name selection pattern
4140  */
4141 #define apzHuge_Valf_HexMachs (const char**)NULL
4144  *  content selection pattern - do fix if pattern found
4145  */
4146 tSCC zHuge_Valf_HexSelect0[] =
4147        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4150  *  content bypass pattern - skip fix if pattern found
4151  */
4152 tSCC zHuge_Valf_HexBypass0[] =
4153        "__builtin_huge_valf";
4155 #define    HUGE_VALF_HEX_TEST_CT  2
4156 static tTestDesc aHuge_Valf_HexTests[] = {
4157   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
4158   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4161  *  Fix Command Arguments for Huge_Valf_Hex
4162  */
4163 static const char* apzHuge_Valf_HexPatch[] = {
4164     "format",
4165     "#define HUGE_VALF (__builtin_huge_valf())\n",
4166     (char*)NULL };
4168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4170  *  Description of Huge_Vall_Hex fix
4171  */
4172 tSCC zHuge_Vall_HexName[] =
4173      "huge_vall_hex";
4176  *  File name selection pattern
4177  */
4178 tSCC zHuge_Vall_HexList[] =
4179   "bits/huge_val.h\0";
4181  *  Machine/OS name selection pattern
4182  */
4183 #define apzHuge_Vall_HexMachs (const char**)NULL
4186  *  content selection pattern - do fix if pattern found
4187  */
4188 tSCC zHuge_Vall_HexSelect0[] =
4189        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4192  *  content bypass pattern - skip fix if pattern found
4193  */
4194 tSCC zHuge_Vall_HexBypass0[] =
4195        "__builtin_huge_vall";
4197 #define    HUGE_VALL_HEX_TEST_CT  2
4198 static tTestDesc aHuge_Vall_HexTests[] = {
4199   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
4200   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4203  *  Fix Command Arguments for Huge_Vall_Hex
4204  */
4205 static const char* apzHuge_Vall_HexPatch[] = {
4206     "format",
4207     "#define HUGE_VALL (__builtin_huge_vall())\n",
4208     (char*)NULL };
4210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4212  *  Description of Int_Abort_Free_And_Exit fix
4213  */
4214 tSCC zInt_Abort_Free_And_ExitName[] =
4215      "int_abort_free_and_exit";
4218  *  File name selection pattern
4219  */
4220 tSCC zInt_Abort_Free_And_ExitList[] =
4221   "stdlib.h\0";
4223  *  Machine/OS name selection pattern
4224  */
4225 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4228  *  content selection pattern - do fix if pattern found
4229  */
4230 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4231        "int[ \t]+(abort|free|exit)[ \t]*\\(";
4234  *  content bypass pattern - skip fix if pattern found
4235  */
4236 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4237        "_CLASSIC_ANSI_TYPES";
4239 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
4240 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4241   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4242   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4245  *  Fix Command Arguments for Int_Abort_Free_And_Exit
4246  */
4247 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4248     "format",
4249     "void\t%1(",
4250     (char*)NULL };
4252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4254  *  Description of Io_Quotes_Def fix
4255  */
4256 tSCC zIo_Quotes_DefName[] =
4257      "io_quotes_def";
4260  *  File name selection pattern
4261  */
4262 #define zIo_Quotes_DefList (char*)NULL
4264  *  Machine/OS name selection pattern
4265  */
4266 #define apzIo_Quotes_DefMachs (const char**)NULL
4269  *  content selection pattern - do fix if pattern found
4270  */
4271 tSCC zIo_Quotes_DefSelect0[] =
4272        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4274 #define    IO_QUOTES_DEF_TEST_CT  1
4275 static tTestDesc aIo_Quotes_DefTests[] = {
4276   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4279  *  Fix Command Arguments for Io_Quotes_Def
4280  */
4281 static const char* apzIo_Quotes_DefPatch[] = {
4282     "char_macro_def",
4283     "IO",
4284     (char*)NULL };
4286 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4288  *  Description of Io_Quotes_Use fix
4289  */
4290 tSCC zIo_Quotes_UseName[] =
4291      "io_quotes_use";
4294  *  File name selection pattern
4295  */
4296 #define zIo_Quotes_UseList (char*)NULL
4298  *  Machine/OS name selection pattern
4299  */
4300 #define apzIo_Quotes_UseMachs (const char**)NULL
4303  *  content selection pattern - do fix if pattern found
4304  */
4305 tSCC zIo_Quotes_UseSelect0[] =
4306        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4308 #define    IO_QUOTES_USE_TEST_CT  1
4309 static tTestDesc aIo_Quotes_UseTests[] = {
4310   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4313  *  Fix Command Arguments for Io_Quotes_Use
4314  */
4315 static const char* apzIo_Quotes_UsePatch[] = {
4316     "char_macro_use",
4317     "IO",
4318     (char*)NULL };
4320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4322  *  Description of Ip_Missing_Semi fix
4323  */
4324 tSCC zIp_Missing_SemiName[] =
4325      "ip_missing_semi";
4328  *  File name selection pattern
4329  */
4330 tSCC zIp_Missing_SemiList[] =
4331   "netinet/ip.h\0";
4333  *  Machine/OS name selection pattern
4334  */
4335 #define apzIp_Missing_SemiMachs (const char**)NULL
4338  *  content selection pattern - do fix if pattern found
4339  */
4340 tSCC zIp_Missing_SemiSelect0[] =
4341        "}$";
4343 #define    IP_MISSING_SEMI_TEST_CT  1
4344 static tTestDesc aIp_Missing_SemiTests[] = {
4345   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4348  *  Fix Command Arguments for Ip_Missing_Semi
4349  */
4350 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4351     "-e", "/^struct/,/^};/s/}$/};/",
4352     (char*)NULL };
4354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4356  *  Description of Irix_Limits_Const fix
4357  */
4358 tSCC zIrix_Limits_ConstName[] =
4359      "irix_limits_const";
4362  *  File name selection pattern
4363  */
4364 tSCC zIrix_Limits_ConstList[] =
4365   "fixinc-test-limits.h\0limits.h\0";
4367  *  Machine/OS name selection pattern
4368  */
4369 #define apzIrix_Limits_ConstMachs (const char**)NULL
4372  *  content selection pattern - do fix if pattern found
4373  */
4374 tSCC zIrix_Limits_ConstSelect0[] =
4375        "^extern const ";
4377 #define    IRIX_LIMITS_CONST_TEST_CT  1
4378 static tTestDesc aIrix_Limits_ConstTests[] = {
4379   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4382  *  Fix Command Arguments for Irix_Limits_Const
4383  */
4384 static const char* apzIrix_Limits_ConstPatch[] = {
4385     "format",
4386     "extern __const ",
4387     (char*)NULL };
4389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4391  *  Description of Irix_Stdio_Va_List fix
4392  */
4393 tSCC zIrix_Stdio_Va_ListName[] =
4394      "irix_stdio_va_list";
4397  *  File name selection pattern
4398  */
4399 tSCC zIrix_Stdio_Va_ListList[] =
4400   "stdio.h\0";
4402  *  Machine/OS name selection pattern
4403  */
4404 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4407  *  content selection pattern - do fix if pattern found
4408  */
4409 tSCC zIrix_Stdio_Va_ListSelect0[] =
4410        "/\\* va_list \\*/ char \\*";
4412 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
4413 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4414   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4417  *  Fix Command Arguments for Irix_Stdio_Va_List
4418  */
4419 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4420     "format",
4421     "__gnuc_va_list",
4422     (char*)NULL };
4424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4426  *  Description of Kandr_Concat fix
4427  */
4428 tSCC zKandr_ConcatName[] =
4429      "kandr_concat";
4432  *  File name selection pattern
4433  */
4434 tSCC zKandr_ConcatList[] =
4435   "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";
4437  *  Machine/OS name selection pattern
4438  */
4439 #define apzKandr_ConcatMachs (const char**)NULL
4442  *  content selection pattern - do fix if pattern found
4443  */
4444 tSCC zKandr_ConcatSelect0[] =
4445        "/\\*\\*/";
4447 #define    KANDR_CONCAT_TEST_CT  1
4448 static tTestDesc aKandr_ConcatTests[] = {
4449   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
4452  *  Fix Command Arguments for Kandr_Concat
4453  */
4454 static const char* apzKandr_ConcatPatch[] = {
4455     "format",
4456     "##",
4457     (char*)NULL };
4459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4461  *  Description of Linux_Ia64_Ucontext fix
4462  */
4463 tSCC zLinux_Ia64_UcontextName[] =
4464      "linux_ia64_ucontext";
4467  *  File name selection pattern
4468  */
4469 tSCC zLinux_Ia64_UcontextList[] =
4470   "sys/ucontext.h\0";
4472  *  Machine/OS name selection pattern
4473  */
4474 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4475         "ia64-*-linux*",
4476         (const char*)NULL };
4479  *  content selection pattern - do fix if pattern found
4480  */
4481 tSCC zLinux_Ia64_UcontextSelect0[] =
4482        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4484 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
4485 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4486   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4489  *  Fix Command Arguments for Linux_Ia64_Ucontext
4490  */
4491 static const char* apzLinux_Ia64_UcontextPatch[] = {
4492     "format",
4493     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4494     (char*)NULL };
4496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4498  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
4499  */
4500 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4501      "lynxos_no_warning_in_sys_time_h";
4504  *  File name selection pattern
4505  */
4506 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4507   "sys/time.h\0";
4509  *  Machine/OS name selection pattern
4510  */
4511 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4514  *  content selection pattern - do fix if pattern found
4515  */
4516 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4517        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4519 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
4520 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4521   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4524  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4525  */
4526 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4527     "format",
4528     "",
4529     (char*)NULL };
4531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4533  *  Description of Lynxos_Missing_Putenv fix
4534  */
4535 tSCC zLynxos_Missing_PutenvName[] =
4536      "lynxos_missing_putenv";
4539  *  File name selection pattern
4540  */
4541 tSCC zLynxos_Missing_PutenvList[] =
4542   "stdlib.h\0";
4544  *  Machine/OS name selection pattern
4545  */
4546 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4547         "*-*-lynxos*",
4548         (const char*)NULL };
4551  *  content selection pattern - do fix if pattern found
4552  */
4553 tSCC zLynxos_Missing_PutenvSelect0[] =
4554        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4557  *  content bypass pattern - skip fix if pattern found
4558  */
4559 tSCC zLynxos_Missing_PutenvBypass0[] =
4560        "putenv[ \\t]*\\(";
4562 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
4563 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4564   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4565   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4568  *  Fix Command Arguments for Lynxos_Missing_Putenv
4569  */
4570 static const char* apzLynxos_Missing_PutenvPatch[] = {
4571     "format",
4572     "%0\n\
4573 extern int putenv\t\t\t\t_AP((char *));",
4574     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4575     (char*)NULL };
4577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4579  *  Description of Machine_Ansi_H_Va_List fix
4580  */
4581 tSCC zMachine_Ansi_H_Va_ListName[] =
4582      "machine_ansi_h_va_list";
4585  *  File name selection pattern
4586  */
4587 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4589  *  Machine/OS name selection pattern
4590  */
4591 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4594  *  content selection pattern - do fix if pattern found
4595  */
4596 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4597        "define[ \t]+_BSD_VA_LIST_[ \t]";
4600  *  content bypass pattern - skip fix if pattern found
4601  */
4602 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4603        "__builtin_va_list";
4605 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
4606 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4607   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4608   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4611  *  Fix Command Arguments for Machine_Ansi_H_Va_List
4612  */
4613 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4614     "format",
4615     "%1__builtin_va_list",
4616     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4617     (char*)NULL };
4619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4621  *  Description of Machine_Name fix
4622  */
4623 tSCC zMachine_NameName[] =
4624      "machine_name";
4627  *  File name selection pattern
4628  */
4629 #define zMachine_NameList (char*)NULL
4631  *  Machine/OS name selection pattern
4632  */
4633 #define apzMachine_NameMachs (const char**)NULL
4636  *  perform the C function call test
4637  */
4638 tSCC zMachine_NameFTst0[] = "machine_name";
4640 #define    MACHINE_NAME_TEST_CT  1
4641 static tTestDesc aMachine_NameTests[] = {
4642   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
4645  *  Fix Command Arguments for Machine_Name
4646  */
4647 static const char* apzMachine_NamePatch[] = {
4648     "machine_name",
4649     (char*)NULL };
4651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4653  *  Description of Math_Exception fix
4654  */
4655 tSCC zMath_ExceptionName[] =
4656      "math_exception";
4659  *  File name selection pattern
4660  */
4661 tSCC zMath_ExceptionList[] =
4662   "math.h\0";
4664  *  Machine/OS name selection pattern
4665  */
4666 #define apzMath_ExceptionMachs (const char**)NULL
4669  *  content selection pattern - do fix if pattern found
4670  */
4671 tSCC zMath_ExceptionSelect0[] =
4672        "struct exception";
4675  *  content bypass pattern - skip fix if pattern found
4676  */
4677 tSCC zMath_ExceptionBypass0[] =
4678        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4680 #define    MATH_EXCEPTION_TEST_CT  2
4681 static tTestDesc aMath_ExceptionTests[] = {
4682   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
4683   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
4686  *  Fix Command Arguments for Math_Exception
4687  */
4688 static const char* apzMath_ExceptionPatch[] = {
4689     "wrap",
4690     "#ifdef __cplusplus\n\
4691 #define exception __math_exception\n\
4692 #endif\n",
4693     "#ifdef __cplusplus\n\
4694 #undef exception\n\
4695 #endif\n",
4696     (char*)NULL };
4698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4700  *  Description of Math_Huge_Val_From_Dbl_Max fix
4701  */
4702 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4703      "math_huge_val_from_dbl_max";
4706  *  File name selection pattern
4707  */
4708 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4709   "math.h\0";
4711  *  Machine/OS name selection pattern
4712  */
4713 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4716  *  content selection pattern - do fix if pattern found
4717  */
4718 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4719        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4722  *  content bypass pattern - skip fix if pattern found
4723  */
4724 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4725        "define[ \t]+DBL_MAX";
4727 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
4728 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4729   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4730   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4733  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4734  */
4735 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4736     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4737 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4738 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4739 \telse cat\n\
4740 \tfi",
4741     (char*)NULL };
4743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4745  *  Description of Nested_Auth_Des fix
4746  */
4747 tSCC zNested_Auth_DesName[] =
4748      "nested_auth_des";
4751  *  File name selection pattern
4752  */
4753 tSCC zNested_Auth_DesList[] =
4754   "rpc/rpc.h\0";
4756  *  Machine/OS name selection pattern
4757  */
4758 #define apzNested_Auth_DesMachs (const char**)NULL
4761  *  content selection pattern - do fix if pattern found
4762  */
4763 tSCC zNested_Auth_DesSelect0[] =
4764        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4766 #define    NESTED_AUTH_DES_TEST_CT  1
4767 static tTestDesc aNested_Auth_DesTests[] = {
4768   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4771  *  Fix Command Arguments for Nested_Auth_Des
4772  */
4773 static const char* apzNested_Auth_DesPatch[] = {
4774     "format",
4775     "%1*/ /*",
4776     (char*)NULL };
4778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4780  *  Description of Netbsd_C99_Inline_1 fix
4781  */
4782 tSCC zNetbsd_C99_Inline_1Name[] =
4783      "netbsd_c99_inline_1";
4786  *  File name selection pattern
4787  */
4788 tSCC zNetbsd_C99_Inline_1List[] =
4789   "signal.h\0";
4791  *  Machine/OS name selection pattern
4792  */
4793 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4794         "*-*-netbsd*",
4795         (const char*)NULL };
4798  *  content selection pattern - do fix if pattern found
4799  */
4800 tSCC zNetbsd_C99_Inline_1Select0[] =
4801        "extern __inline int";
4803 #define    NETBSD_C99_INLINE_1_TEST_CT  1
4804 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4805   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4808  *  Fix Command Arguments for Netbsd_C99_Inline_1
4809  */
4810 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4811     "format",
4812     "extern\n\
4813 #ifdef __GNUC_STDC_INLINE__\n\
4814 __attribute__((__gnu_inline__))\n\
4815 #endif\n\
4816 __inline int",
4817     (char*)NULL };
4819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4821  *  Description of Netbsd_C99_Inline_2 fix
4822  */
4823 tSCC zNetbsd_C99_Inline_2Name[] =
4824      "netbsd_c99_inline_2";
4827  *  File name selection pattern
4828  */
4829 tSCC zNetbsd_C99_Inline_2List[] =
4830   "signal.h\0";
4832  *  Machine/OS name selection pattern
4833  */
4834 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4835         "*-*-netbsd*",
4836         (const char*)NULL };
4839  *  content selection pattern - do fix if pattern found
4840  */
4841 tSCC zNetbsd_C99_Inline_2Select0[] =
4842        "#define _SIGINLINE extern __inline";
4844 #define    NETBSD_C99_INLINE_2_TEST_CT  1
4845 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4846   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4849  *  Fix Command Arguments for Netbsd_C99_Inline_2
4850  */
4851 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4852     "format",
4853     "#ifdef __GNUC_STDC_INLINE__\n\
4854 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4855 #else\n\
4856 %0\n\
4857 #endif",
4858     (char*)NULL };
4860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4862  *  Description of Netbsd_Extra_Semicolon fix
4863  */
4864 tSCC zNetbsd_Extra_SemicolonName[] =
4865      "netbsd_extra_semicolon";
4868  *  File name selection pattern
4869  */
4870 tSCC zNetbsd_Extra_SemicolonList[] =
4871   "sys/cdefs.h\0";
4873  *  Machine/OS name selection pattern
4874  */
4875 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4876         "*-*-netbsd*",
4877         (const char*)NULL };
4880  *  content selection pattern - do fix if pattern found
4881  */
4882 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4883        "#define[ \t]*__END_DECLS[ \t]*};";
4885 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
4886 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4887   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4890  *  Fix Command Arguments for Netbsd_Extra_Semicolon
4891  */
4892 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4893     "format",
4894     "#define __END_DECLS }",
4895     (char*)NULL };
4897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4899  *  Description of Newlib_Stdint_1 fix
4900  */
4901 tSCC zNewlib_Stdint_1Name[] =
4902      "newlib_stdint_1";
4905  *  File name selection pattern
4906  */
4907 tSCC zNewlib_Stdint_1List[] =
4908   "stdint-newlib.h\0stdint.h\0";
4910  *  Machine/OS name selection pattern
4911  */
4912 #define apzNewlib_Stdint_1Machs (const char**)NULL
4915  *  content selection pattern - do fix if pattern found
4916  */
4917 tSCC zNewlib_Stdint_1Select0[] =
4918        "@todo - Add support for wint_t types";
4920 #define    NEWLIB_STDINT_1_TEST_CT  1
4921 static tTestDesc aNewlib_Stdint_1Tests[] = {
4922   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
4925  *  Fix Command Arguments for Newlib_Stdint_1
4926  */
4927 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
4928     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
4929     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
4930     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
4931     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
4932     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
4933     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
4934     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
4935     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
4936     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
4937     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
4938     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4939     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
4940     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
4941     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
4942     (char*)NULL };
4944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4946  *  Description of Newlib_Stdint_2 fix
4947  */
4948 tSCC zNewlib_Stdint_2Name[] =
4949      "newlib_stdint_2";
4952  *  File name selection pattern
4953  */
4954 tSCC zNewlib_Stdint_2List[] =
4955   "stdint-newlib.h\0stdint.h\0";
4957  *  Machine/OS name selection pattern
4958  */
4959 #define apzNewlib_Stdint_2Machs (const char**)NULL
4962  *  content selection pattern - do fix if pattern found
4963  */
4964 tSCC zNewlib_Stdint_2Select0[] =
4965        "@todo - Add support for wint_t types";
4967 #define    NEWLIB_STDINT_2_TEST_CT  1
4968 static tTestDesc aNewlib_Stdint_2Tests[] = {
4969   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
4972  *  Fix Command Arguments for Newlib_Stdint_2
4973  */
4974 static const char* apzNewlib_Stdint_2Patch[] = {
4975     "format",
4976     "#define INTMAX_MAX __INTMAX_MAX__\n\
4977 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
4978 #define UINTMAX_MAX __UINTMAX_MAX__\n\
4979 #define WCHAR_MAX __WCHAR_MAX__\n\
4980 #define WCHAR_MIN __WCHAR_MIN__\n\
4981 #define WINT_MAX __WINT_MAX__\n\
4982 #define WINT_MIN __WINT_MIN__\n\n\
4983 %0",
4984     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
4985     (char*)NULL };
4987 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4989  *  Description of Next_Math_Prefix fix
4990  */
4991 tSCC zNext_Math_PrefixName[] =
4992      "next_math_prefix";
4995  *  File name selection pattern
4996  */
4997 tSCC zNext_Math_PrefixList[] =
4998   "ansi/math.h\0";
5000  *  Machine/OS name selection pattern
5001  */
5002 #define apzNext_Math_PrefixMachs (const char**)NULL
5005  *  content selection pattern - do fix if pattern found
5006  */
5007 tSCC zNext_Math_PrefixSelect0[] =
5008        "^extern[ \t]+double[ \t]+__const__[ \t]";
5010 #define    NEXT_MATH_PREFIX_TEST_CT  1
5011 static tTestDesc aNext_Math_PrefixTests[] = {
5012   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5015  *  Fix Command Arguments for Next_Math_Prefix
5016  */
5017 static const char* apzNext_Math_PrefixPatch[] = {
5018     "format",
5019     "extern double %1(",
5020     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5021     (char*)NULL };
5023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5025  *  Description of Next_Template fix
5026  */
5027 tSCC zNext_TemplateName[] =
5028      "next_template";
5031  *  File name selection pattern
5032  */
5033 tSCC zNext_TemplateList[] =
5034   "bsd/libc.h\0";
5036  *  Machine/OS name selection pattern
5037  */
5038 #define apzNext_TemplateMachs (const char**)NULL
5041  *  content selection pattern - do fix if pattern found
5042  */
5043 tSCC zNext_TemplateSelect0[] =
5044        "[ \t]template\\)";
5046 #define    NEXT_TEMPLATE_TEST_CT  1
5047 static tTestDesc aNext_TemplateTests[] = {
5048   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
5051  *  Fix Command Arguments for Next_Template
5052  */
5053 static const char* apzNext_TemplatePatch[] = {
5054     "format",
5055     "(%1)",
5056     "\\(([^)]*)[ \t]template\\)",
5057     (char*)NULL };
5059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5061  *  Description of Next_Volitile fix
5062  */
5063 tSCC zNext_VolitileName[] =
5064      "next_volitile";
5067  *  File name selection pattern
5068  */
5069 tSCC zNext_VolitileList[] =
5070   "ansi/stdlib.h\0";
5072  *  Machine/OS name selection pattern
5073  */
5074 #define apzNext_VolitileMachs (const char**)NULL
5077  *  content selection pattern - do fix if pattern found
5078  */
5079 tSCC zNext_VolitileSelect0[] =
5080        "^extern[ \t]+volatile[ \t]+void[ \t]";
5082 #define    NEXT_VOLITILE_TEST_CT  1
5083 static tTestDesc aNext_VolitileTests[] = {
5084   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5087  *  Fix Command Arguments for Next_Volitile
5088  */
5089 static const char* apzNext_VolitilePatch[] = {
5090     "format",
5091     "extern void %1(",
5092     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5093     (char*)NULL };
5095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5097  *  Description of Next_Wait_Union fix
5098  */
5099 tSCC zNext_Wait_UnionName[] =
5100      "next_wait_union";
5103  *  File name selection pattern
5104  */
5105 tSCC zNext_Wait_UnionList[] =
5106   "sys/wait.h\0";
5108  *  Machine/OS name selection pattern
5109  */
5110 #define apzNext_Wait_UnionMachs (const char**)NULL
5113  *  content selection pattern - do fix if pattern found
5114  */
5115 tSCC zNext_Wait_UnionSelect0[] =
5116        "wait\\(union wait";
5118 #define    NEXT_WAIT_UNION_TEST_CT  1
5119 static tTestDesc aNext_Wait_UnionTests[] = {
5120   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5123  *  Fix Command Arguments for Next_Wait_Union
5124  */
5125 static const char* apzNext_Wait_UnionPatch[] = {
5126     "format",
5127     "wait(void",
5128     (char*)NULL };
5130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5132  *  Description of Nodeent_Syntax fix
5133  */
5134 tSCC zNodeent_SyntaxName[] =
5135      "nodeent_syntax";
5138  *  File name selection pattern
5139  */
5140 tSCC zNodeent_SyntaxList[] =
5141   "netdnet/dnetdb.h\0";
5143  *  Machine/OS name selection pattern
5144  */
5145 #define apzNodeent_SyntaxMachs (const char**)NULL
5148  *  content selection pattern - do fix if pattern found
5149  */
5150 tSCC zNodeent_SyntaxSelect0[] =
5151        "char[ \t]*\\*na_addr[ \t]*$";
5153 #define    NODEENT_SYNTAX_TEST_CT  1
5154 static tTestDesc aNodeent_SyntaxTests[] = {
5155   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5158  *  Fix Command Arguments for Nodeent_Syntax
5159  */
5160 static const char* apzNodeent_SyntaxPatch[] = {
5161     "format",
5162     "%0;",
5163     (char*)NULL };
5165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5167  *  Description of Openbsd_Null_Definition fix
5168  */
5169 tSCC zOpenbsd_Null_DefinitionName[] =
5170      "openbsd_null_definition";
5173  *  File name selection pattern
5174  */
5175 tSCC zOpenbsd_Null_DefinitionList[] =
5176   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5178  *  Machine/OS name selection pattern
5179  */
5180 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5181         "*-*-openbsd*",
5182         (const char*)NULL };
5185  *  content selection pattern - do fix if pattern found
5186  */
5187 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5188        "__GNUG__";
5190 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
5191 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5192   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5195  *  Fix Command Arguments for Openbsd_Null_Definition
5196  */
5197 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5198     "format",
5199     "#ifndef NULL\n\
5200 #ifdef __cplusplus\n\
5201 #ifdef __GNUG__\n\
5202 #define NULL\t__null\n\
5203 #else\t /* ! __GNUG__  */\n\
5204 #define NULL\t0L\n\
5205 #endif\t /* __GNUG__  */\n\
5206 #else\t /* ! __cplusplus  */\n\
5207 #define NULL\t((void *)0)\n\
5208 #endif\t /* __cplusplus  */\n\
5209 #endif\t /* !NULL  */",
5210     "^#ifndef[ \t]*NULL\n\
5211 ^#ifdef[ \t]*__GNUG__\n\
5212 ^#define[ \t]*NULL[ \t]*__null\n\
5213 ^#else\n\
5214 ^#define[ \t]*NULL[ \t]*0L\n\
5215 ^#endif\n\
5216 ^#endif",
5217     (char*)NULL };
5219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5221  *  Description of Obstack_Lvalue_Cast fix
5222  */
5223 tSCC zObstack_Lvalue_CastName[] =
5224      "obstack_lvalue_cast";
5227  *  File name selection pattern
5228  */
5229 tSCC zObstack_Lvalue_CastList[] =
5230   "obstack.h\0";
5232  *  Machine/OS name selection pattern
5233  */
5234 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5237  *  content selection pattern - do fix if pattern found
5238  */
5239 tSCC zObstack_Lvalue_CastSelect0[] =
5240        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5242 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5243 static tTestDesc aObstack_Lvalue_CastTests[] = {
5244   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5247  *  Fix Command Arguments for Obstack_Lvalue_Cast
5248  */
5249 static const char* apzObstack_Lvalue_CastPatch[] = {
5250     "format",
5251     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5252     (char*)NULL };
5254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5256  *  Description of Openbsd_Va_Start fix
5257  */
5258 tSCC zOpenbsd_Va_StartName[] =
5259      "openbsd_va_start";
5262  *  File name selection pattern
5263  */
5264 tSCC zOpenbsd_Va_StartList[] =
5265   "stdarg.h\0";
5267  *  Machine/OS name selection pattern
5268  */
5269 tSCC* apzOpenbsd_Va_StartMachs[] = {
5270         "*-*-openbsd*",
5271         (const char*)NULL };
5274  *  content selection pattern - do fix if pattern found
5275  */
5276 tSCC zOpenbsd_Va_StartSelect0[] =
5277        "__builtin_stdarg_start";
5279 #define    OPENBSD_VA_START_TEST_CT  1
5280 static tTestDesc aOpenbsd_Va_StartTests[] = {
5281   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5284  *  Fix Command Arguments for Openbsd_Va_Start
5285  */
5286 static const char* apzOpenbsd_Va_StartPatch[] = {
5287     "format",
5288     "__builtin_va_start",
5289     (char*)NULL };
5291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5293  *  Description of Osf_Namespace_A fix
5294  */
5295 tSCC zOsf_Namespace_AName[] =
5296      "osf_namespace_a";
5299  *  File name selection pattern
5300  */
5301 tSCC zOsf_Namespace_AList[] =
5302   "reg_types.h\0sys/lc_core.h\0";
5304  *  Machine/OS name selection pattern
5305  */
5306 #define apzOsf_Namespace_AMachs (const char**)NULL
5309  *  perform the 'test' shell command - do fix on success
5310  */
5311 tSCC zOsf_Namespace_ATest0[] =
5312        " -r reg_types.h";
5313 tSCC zOsf_Namespace_ATest1[] =
5314        " -r sys/lc_core.h";
5315 tSCC zOsf_Namespace_ATest2[] =
5316        " -n \"`grep '} regex_t;' reg_types.h`\"";
5317 tSCC zOsf_Namespace_ATest3[] =
5318        " -z \"`grep __regex_t regex.h`\"";
5320 #define    OSF_NAMESPACE_A_TEST_CT  4
5321 static tTestDesc aOsf_Namespace_ATests[] = {
5322   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5323   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5324   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5325   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5328  *  Fix Command Arguments for Osf_Namespace_A
5329  */
5330 static const char* apzOsf_Namespace_APatch[] = {
5331     "format",
5332     "__%0",
5333     "reg(ex|off|match)_t",
5334     (char*)NULL };
5336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5338  *  Description of Osf_Namespace_C fix
5339  */
5340 tSCC zOsf_Namespace_CName[] =
5341      "osf_namespace_c";
5344  *  File name selection pattern
5345  */
5346 tSCC zOsf_Namespace_CList[] =
5347   "regex.h\0";
5349  *  Machine/OS name selection pattern
5350  */
5351 #define apzOsf_Namespace_CMachs (const char**)NULL
5354  *  content selection pattern - do fix if pattern found
5355  */
5356 tSCC zOsf_Namespace_CSelect0[] =
5357        "#include <reg_types.h>.*";
5360  *  perform the 'test' shell command - do fix on success
5361  */
5362 tSCC zOsf_Namespace_CTest0[] =
5363        " -r reg_types.h";
5364 tSCC zOsf_Namespace_CTest1[] =
5365        " -r sys/lc_core.h";
5366 tSCC zOsf_Namespace_CTest2[] =
5367        " -n \"`grep '} regex_t;' reg_types.h`\"";
5368 tSCC zOsf_Namespace_CTest3[] =
5369        " -z \"`grep __regex_t regex.h`\"";
5371 #define    OSF_NAMESPACE_C_TEST_CT  5
5372 static tTestDesc aOsf_Namespace_CTests[] = {
5373   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
5374   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
5375   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
5376   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
5377   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5380  *  Fix Command Arguments for Osf_Namespace_C
5381  */
5382 static const char* apzOsf_Namespace_CPatch[] = {
5383     "format",
5384     "%0\n\
5385 typedef __regex_t\tregex_t;\n\
5386 typedef __regoff_t\tregoff_t;\n\
5387 typedef __regmatch_t\tregmatch_t;",
5388     (char*)NULL };
5390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5392  *  Description of Pthread_Incomplete_Struct_Argument fix
5393  */
5394 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5395      "pthread_incomplete_struct_argument";
5398  *  File name selection pattern
5399  */
5400 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5401   "pthread.h\0";
5403  *  Machine/OS name selection pattern
5404  */
5405 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5408  *  content selection pattern - do fix if pattern found
5409  */
5410 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5411        "struct __jmp_buf_tag";
5413 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
5414 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5415   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5418  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5419  */
5420 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5421     "format",
5422     "%1 *%2%3",
5423     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5424     (char*)NULL };
5426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5428  *  Description of Read_Ret_Type fix
5429  */
5430 tSCC zRead_Ret_TypeName[] =
5431      "read_ret_type";
5434  *  File name selection pattern
5435  */
5436 tSCC zRead_Ret_TypeList[] =
5437   "stdio.h\0";
5439  *  Machine/OS name selection pattern
5440  */
5441 #define apzRead_Ret_TypeMachs (const char**)NULL
5444  *  content selection pattern - do fix if pattern found
5445  */
5446 tSCC zRead_Ret_TypeSelect0[] =
5447        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5449 #define    READ_RET_TYPE_TEST_CT  1
5450 static tTestDesc aRead_Ret_TypeTests[] = {
5451   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5454  *  Fix Command Arguments for Read_Ret_Type
5455  */
5456 static const char* apzRead_Ret_TypePatch[] = {
5457     "format",
5458     "extern unsigned int fread(), fwrite();\n\
5459 %1%2",
5460     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5461     (char*)NULL };
5463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5465  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
5466  */
5467 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5468      "rpc_xdr_lvalue_cast_a";
5471  *  File name selection pattern
5472  */
5473 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5474   "rpc/xdr.h\0";
5476  *  Machine/OS name selection pattern
5477  */
5478 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5481  *  content selection pattern - do fix if pattern found
5482  */
5483 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5484        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5485 .*__extension__.*";
5487 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5488 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5489   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5492  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5493  */
5494 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5495     "format",
5496     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5497     (char*)NULL };
5499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5501  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5502  */
5503 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5504      "rpc_xdr_lvalue_cast_b";
5507  *  File name selection pattern
5508  */
5509 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5510   "rpc/xdr.h\0";
5512  *  Machine/OS name selection pattern
5513  */
5514 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5517  *  content selection pattern - do fix if pattern found
5518  */
5519 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5520        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5521 .*__extension__.*";
5523 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
5524 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5525   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5528  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5529  */
5530 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5531     "format",
5532     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5533     (char*)NULL };
5535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5537  *  Description of Rs6000_Double fix
5538  */
5539 tSCC zRs6000_DoubleName[] =
5540      "rs6000_double";
5543  *  File name selection pattern
5544  */
5545 tSCC zRs6000_DoubleList[] =
5546   "math.h\0";
5548  *  Machine/OS name selection pattern
5549  */
5550 #define apzRs6000_DoubleMachs (const char**)NULL
5553  *  content selection pattern - do fix if pattern found
5554  */
5555 tSCC zRs6000_DoubleSelect0[] =
5556        "[^a-zA-Z_]class\\(";
5558 #define    RS6000_DOUBLE_TEST_CT  1
5559 static tTestDesc aRs6000_DoubleTests[] = {
5560   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5563  *  Fix Command Arguments for Rs6000_Double
5564  */
5565 static const char* apzRs6000_DoublePatch[] = {
5566     "format",
5567     "#ifndef __cplusplus\n\
5568 %0\n\
5569 #endif",
5570     "^.*[^a-zA-Z_]class\\(.*",
5571     (char*)NULL };
5573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5575  *  Description of Rs6000_Fchmod fix
5576  */
5577 tSCC zRs6000_FchmodName[] =
5578      "rs6000_fchmod";
5581  *  File name selection pattern
5582  */
5583 tSCC zRs6000_FchmodList[] =
5584   "sys/stat.h\0";
5586  *  Machine/OS name selection pattern
5587  */
5588 #define apzRs6000_FchmodMachs (const char**)NULL
5591  *  content selection pattern - do fix if pattern found
5592  */
5593 tSCC zRs6000_FchmodSelect0[] =
5594        "fchmod\\(char \\*";
5596 #define    RS6000_FCHMOD_TEST_CT  1
5597 static tTestDesc aRs6000_FchmodTests[] = {
5598   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5601  *  Fix Command Arguments for Rs6000_Fchmod
5602  */
5603 static const char* apzRs6000_FchmodPatch[] = {
5604     "format",
5605     "fchmod(int",
5606     (char*)NULL };
5608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5610  *  Description of Rs6000_Param fix
5611  */
5612 tSCC zRs6000_ParamName[] =
5613      "rs6000_param";
5616  *  File name selection pattern
5617  */
5618 tSCC zRs6000_ParamList[] =
5619   "stdio.h\0unistd.h\0";
5621  *  Machine/OS name selection pattern
5622  */
5623 #define apzRs6000_ParamMachs (const char**)NULL
5626  *  content selection pattern - do fix if pattern found
5627  */
5628 tSCC zRs6000_ParamSelect0[] =
5629        "rename\\(const char \\*old, const char \\*new\\)";
5631 #define    RS6000_PARAM_TEST_CT  1
5632 static tTestDesc aRs6000_ParamTests[] = {
5633   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
5636  *  Fix Command Arguments for Rs6000_Param
5637  */
5638 static const char* apzRs6000_ParamPatch[] = {
5639     "format",
5640     "rename(const char *_old, const char *_new)",
5641     (char*)NULL };
5643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5645  *  Description of Solaris___Restrict fix
5646  */
5647 tSCC zSolaris___RestrictName[] =
5648      "solaris___restrict";
5651  *  File name selection pattern
5652  */
5653 tSCC zSolaris___RestrictList[] =
5654   "sys/feature_tests.h\0";
5656  *  Machine/OS name selection pattern
5657  */
5658 tSCC* apzSolaris___RestrictMachs[] = {
5659         "*-*-solaris2*",
5660         (const char*)NULL };
5663  *  content selection pattern - do fix if pattern found
5664  */
5665 tSCC zSolaris___RestrictSelect0[] =
5666        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
5668 #define    SOLARIS___RESTRICT_TEST_CT  1
5669 static tTestDesc aSolaris___RestrictTests[] = {
5670   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
5673  *  Fix Command Arguments for Solaris___Restrict
5674  */
5675 static const char* apzSolaris___RestrictPatch[] = {
5676     "format",
5677     "#ifdef __cplusplus\n\
5678 #define\t_RESTRICT_KYWD\t__restrict\n\
5679 #else\n\
5680 %0\n\
5681 #endif",
5682     (char*)NULL };
5684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5686  *  Description of Solaris_Complex fix
5687  */
5688 tSCC zSolaris_ComplexName[] =
5689      "solaris_complex";
5692  *  File name selection pattern
5693  */
5694 tSCC zSolaris_ComplexList[] =
5695   "complex.h\0";
5697  *  Machine/OS name selection pattern
5698  */
5699 tSCC* apzSolaris_ComplexMachs[] = {
5700         "*-*-solaris2.*",
5701         (const char*)NULL };
5704  *  content selection pattern - do fix if pattern found
5705  */
5706 tSCC zSolaris_ComplexSelect0[] =
5707        "#define[ \t]_Complex_I[ \t]_Complex_I";
5709 #define    SOLARIS_COMPLEX_TEST_CT  1
5710 static tTestDesc aSolaris_ComplexTests[] = {
5711   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
5714  *  Fix Command Arguments for Solaris_Complex
5715  */
5716 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
5717     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
5718     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
5719     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
5720     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
5721     (char*)NULL };
5723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5725  *  Description of Solaris_Complex_Cxx fix
5726  */
5727 tSCC zSolaris_Complex_CxxName[] =
5728      "solaris_complex_cxx";
5731  *  File name selection pattern
5732  */
5733 tSCC zSolaris_Complex_CxxList[] =
5734   "complex.h\0";
5736  *  Machine/OS name selection pattern
5737  */
5738 tSCC* apzSolaris_Complex_CxxMachs[] = {
5739         "*-*-solaris2.*",
5740         (const char*)NULL };
5741 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
5742 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
5745  *  Fix Command Arguments for Solaris_Complex_Cxx
5746  */
5747 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
5748     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
5749 #ifdef\t__cplusplus\\\n\
5750 extern \"C\" {\\\n\
5751 #endif",
5752     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
5753 #ifdef\t__cplusplus\\\n\
5754 }\\\n\
5755 #endif",
5756     (char*)NULL };
5758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5760  *  Description of Solaris_Cxx_Linkage fix
5761  */
5762 tSCC zSolaris_Cxx_LinkageName[] =
5763      "solaris_cxx_linkage";
5766  *  File name selection pattern
5767  */
5768 tSCC zSolaris_Cxx_LinkageList[] =
5769   "iso/stdlib_iso.h\0";
5771  *  Machine/OS name selection pattern
5772  */
5773 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
5774         "*-*-solaris2*",
5775         (const char*)NULL };
5778  *  content selection pattern - do fix if pattern found
5779  */
5780 tSCC zSolaris_Cxx_LinkageSelect0[] =
5781        "(#if __cplusplus >= 199711L)\n\
5782 (extern \"C\\+\\+\" \\{\n\
5783 )(.*(bsearch|qsort).*)";
5785 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
5786 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
5787   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
5790  *  Fix Command Arguments for Solaris_Cxx_Linkage
5791  */
5792 static const char* apzSolaris_Cxx_LinkagePatch[] = {
5793     "format",
5794     "%1 && !__GNUG__\n\
5795 %2%3",
5796     (char*)NULL };
5798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5800  *  Description of Solaris_Getc_Strict_Stdc fix
5801  */
5802 tSCC zSolaris_Getc_Strict_StdcName[] =
5803      "solaris_getc_strict_stdc";
5806  *  File name selection pattern
5807  */
5808 tSCC zSolaris_Getc_Strict_StdcList[] =
5809   "iso/stdio_iso.h\0";
5811  *  Machine/OS name selection pattern
5812  */
5813 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
5814         "*-*-solaris2*",
5815         (const char*)NULL };
5818  *  content selection pattern - do fix if pattern found
5819  */
5820 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
5821        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
5823 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
5824 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
5825   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
5828  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
5829  */
5830 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
5831     "format",
5832     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
5833     (char*)NULL };
5835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5837  *  Description of Solaris_Longjmp_Noreturn fix
5838  */
5839 tSCC zSolaris_Longjmp_NoreturnName[] =
5840      "solaris_longjmp_noreturn";
5843  *  File name selection pattern
5844  */
5845 tSCC zSolaris_Longjmp_NoreturnList[] =
5846   "iso/setjmp_iso.h\0";
5848  *  Machine/OS name selection pattern
5849  */
5850 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
5851         "*-*-solaris2*",
5852         (const char*)NULL };
5855  *  content selection pattern - do fix if pattern found
5856  */
5857 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
5858        "(.*longjmp\\(jmp_buf.*[^)]+\\));";
5861  *  content bypass pattern - skip fix if pattern found
5862  */
5863 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
5864        "__NORETURN";
5866 #define    SOLARIS_LONGJMP_NORETURN_TEST_CT  2
5867 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
5868   { TT_NEGREP,   zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
5869   { TT_EGREP,    zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
5872  *  Fix Command Arguments for Solaris_Longjmp_Noreturn
5873  */
5874 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
5875     "format",
5876     "%1 __attribute__ ((__noreturn__));",
5877     (char*)NULL };
5879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5881  *  Description of Solaris_Math_1 fix
5882  */
5883 tSCC zSolaris_Math_1Name[] =
5884      "solaris_math_1";
5887  *  File name selection pattern
5888  */
5889 tSCC zSolaris_Math_1List[] =
5890   "iso/math_c99.h\0";
5892  *  Machine/OS name selection pattern
5893  */
5894 #define apzSolaris_Math_1Machs (const char**)NULL
5897  *  content selection pattern - do fix if pattern found
5898  */
5899 tSCC zSolaris_Math_1Select0[] =
5900        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5903  *  content bypass pattern - skip fix if pattern found
5904  */
5905 tSCC zSolaris_Math_1Bypass0[] =
5906        "__GNUC__";
5908 #define    SOLARIS_MATH_1_TEST_CT  2
5909 static tTestDesc aSolaris_Math_1Tests[] = {
5910   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
5911   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
5914  *  Fix Command Arguments for Solaris_Math_1
5915  */
5916 static const char* apzSolaris_Math_1Patch[] = {
5917     "format",
5918     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5919     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5920     (char*)NULL };
5922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5924  *  Description of Solaris_Math_2 fix
5925  */
5926 tSCC zSolaris_Math_2Name[] =
5927      "solaris_math_2";
5930  *  File name selection pattern
5931  */
5932 tSCC zSolaris_Math_2List[] =
5933   "iso/math_c99.h\0";
5935  *  Machine/OS name selection pattern
5936  */
5937 #define apzSolaris_Math_2Machs (const char**)NULL
5940  *  content selection pattern - do fix if pattern found
5941  */
5942 tSCC zSolaris_Math_2Select0[] =
5943        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5946  *  content bypass pattern - skip fix if pattern found
5947  */
5948 tSCC zSolaris_Math_2Bypass0[] =
5949        "__GNUC__";
5951 #define    SOLARIS_MATH_2_TEST_CT  2
5952 static tTestDesc aSolaris_Math_2Tests[] = {
5953   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
5954   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
5957  *  Fix Command Arguments for Solaris_Math_2
5958  */
5959 static const char* apzSolaris_Math_2Patch[] = {
5960     "format",
5961     "#define\tINFINITY\t(__builtin_inff())",
5962     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5963     (char*)NULL };
5965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5967  *  Description of Solaris_Math_3 fix
5968  */
5969 tSCC zSolaris_Math_3Name[] =
5970      "solaris_math_3";
5973  *  File name selection pattern
5974  */
5975 tSCC zSolaris_Math_3List[] =
5976   "iso/math_c99.h\0";
5978  *  Machine/OS name selection pattern
5979  */
5980 #define apzSolaris_Math_3Machs (const char**)NULL
5983  *  content selection pattern - do fix if pattern found
5984  */
5985 tSCC zSolaris_Math_3Select0[] =
5986        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5989  *  content bypass pattern - skip fix if pattern found
5990  */
5991 tSCC zSolaris_Math_3Bypass0[] =
5992        "__GNUC__";
5994 #define    SOLARIS_MATH_3_TEST_CT  2
5995 static tTestDesc aSolaris_Math_3Tests[] = {
5996   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
5997   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
6000  *  Fix Command Arguments for Solaris_Math_3
6001  */
6002 static const char* apzSolaris_Math_3Patch[] = {
6003     "format",
6004     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6005     "^#define[ \t]+NAN[ \t]+__builtin_nan",
6006     (char*)NULL };
6008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6010  *  Description of Solaris_Math_4 fix
6011  */
6012 tSCC zSolaris_Math_4Name[] =
6013      "solaris_math_4";
6016  *  File name selection pattern
6017  */
6018 tSCC zSolaris_Math_4List[] =
6019   "iso/math_c99.h\0";
6021  *  Machine/OS name selection pattern
6022  */
6023 #define apzSolaris_Math_4Machs (const char**)NULL
6026  *  content selection pattern - do fix if pattern found
6027  */
6028 tSCC zSolaris_Math_4Select0[] =
6029        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6032  *  content bypass pattern - skip fix if pattern found
6033  */
6034 tSCC zSolaris_Math_4Bypass0[] =
6035        "__GNUC__";
6037 #define    SOLARIS_MATH_4_TEST_CT  2
6038 static tTestDesc aSolaris_Math_4Tests[] = {
6039   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
6040   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
6043  *  Fix Command Arguments for Solaris_Math_4
6044  */
6045 static const char* apzSolaris_Math_4Patch[] = {
6046     "format",
6047     "#define\tfpclassify(x) \\\n\
6048   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6049     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6050     (char*)NULL };
6052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6054  *  Description of Solaris_Math_8 fix
6055  */
6056 tSCC zSolaris_Math_8Name[] =
6057      "solaris_math_8";
6060  *  File name selection pattern
6061  */
6062 tSCC zSolaris_Math_8List[] =
6063   "iso/math_c99.h\0";
6065  *  Machine/OS name selection pattern
6066  */
6067 #define apzSolaris_Math_8Machs (const char**)NULL
6070  *  content selection pattern - do fix if pattern found
6071  */
6072 tSCC zSolaris_Math_8Select0[] =
6073        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6076  *  content bypass pattern - skip fix if pattern found
6077  */
6078 tSCC zSolaris_Math_8Bypass0[] =
6079        "__GNUC__";
6081 #define    SOLARIS_MATH_8_TEST_CT  2
6082 static tTestDesc aSolaris_Math_8Tests[] = {
6083   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
6084   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
6087  *  Fix Command Arguments for Solaris_Math_8
6088  */
6089 static const char* apzSolaris_Math_8Patch[] = {
6090     "format",
6091     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6092 \t\t\t   ? __builtin_signbitf(x) \\\n\
6093 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6094 \t\t\t     ? __builtin_signbitl(x) \\\n\
6095 \t\t\t     : __builtin_signbit(x))",
6096     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6097     (char*)NULL };
6099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6101  *  Description of Solaris_Math_9 fix
6102  */
6103 tSCC zSolaris_Math_9Name[] =
6104      "solaris_math_9";
6107  *  File name selection pattern
6108  */
6109 tSCC zSolaris_Math_9List[] =
6110   "iso/math_c99.h\0";
6112  *  Machine/OS name selection pattern
6113  */
6114 #define apzSolaris_Math_9Machs (const char**)NULL
6117  *  content selection pattern - do fix if pattern found
6118  */
6119 tSCC zSolaris_Math_9Select0[] =
6120        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6123  *  content bypass pattern - skip fix if pattern found
6124  */
6125 tSCC zSolaris_Math_9Bypass0[] =
6126        "__GNUC__";
6128 #define    SOLARIS_MATH_9_TEST_CT  2
6129 static tTestDesc aSolaris_Math_9Tests[] = {
6130   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
6131   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
6134  *  Fix Command Arguments for Solaris_Math_9
6135  */
6136 static const char* apzSolaris_Math_9Patch[] = {
6137     "format",
6138     "#define\t%1(x, y)%2__builtin_%1(x, y)",
6139     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6140     (char*)NULL };
6142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6144  *  Description of Solaris_Math_10 fix
6145  */
6146 tSCC zSolaris_Math_10Name[] =
6147      "solaris_math_10";
6150  *  File name selection pattern
6151  */
6152 tSCC zSolaris_Math_10List[] =
6153   "iso/math_c99.h\0";
6155  *  Machine/OS name selection pattern
6156  */
6157 #define apzSolaris_Math_10Machs (const char**)NULL
6160  *  content selection pattern - do fix if pattern found
6161  */
6162 tSCC zSolaris_Math_10Select0[] =
6163        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6165 #define    SOLARIS_MATH_10_TEST_CT  1
6166 static tTestDesc aSolaris_Math_10Tests[] = {
6167   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
6170  *  Fix Command Arguments for Solaris_Math_10
6171  */
6172 static const char* apzSolaris_Math_10Patch[] = {
6173     "format",
6174     "#define\tisinf(x) __builtin_isinf(x)",
6175     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6176 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6177 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6178 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6179     (char*)NULL };
6181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6183  *  Description of Solaris_Mutex_Init_2 fix
6184  */
6185 tSCC zSolaris_Mutex_Init_2Name[] =
6186      "solaris_mutex_init_2";
6189  *  File name selection pattern
6190  */
6191 tSCC zSolaris_Mutex_Init_2List[] =
6192   "pthread.h\0";
6194  *  Machine/OS name selection pattern
6195  */
6196 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6197         "*-*-solaris2.[0-9]",
6198         "*-*-solaris2.[0-9][!0-9]*",
6199         (const char*)NULL };
6202  *  content selection pattern - do fix if pattern found
6203  */
6204 tSCC zSolaris_Mutex_Init_2Select0[] =
6205        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6207 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
6208 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6209   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6212  *  Fix Command Arguments for Solaris_Mutex_Init_2
6213  */
6214 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6215     "format",
6216     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6217 %0\n\
6218 #else\n\
6219 %1, {0}}%4\n\
6220 #endif",
6221     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6222 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6223     (char*)NULL };
6225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6227  *  Description of Solaris_Pow_Int_Overload fix
6228  */
6229 tSCC zSolaris_Pow_Int_OverloadName[] =
6230      "solaris_pow_int_overload";
6233  *  File name selection pattern
6234  */
6235 tSCC zSolaris_Pow_Int_OverloadList[] =
6236   "iso/math_iso.h\0";
6238  *  Machine/OS name selection pattern
6239  */
6240 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6241         "*-*-solaris2*",
6242         (const char*)NULL };
6245  *  content selection pattern - do fix if pattern found
6246  */
6247 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6248        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6249 [^{}]*\\}";
6251 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
6252 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6253   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6256  *  Fix Command Arguments for Solaris_Pow_Int_Overload
6257  */
6258 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6259     "format",
6260     "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6261 %0\n\
6262 #endif",
6263     (char*)NULL };
6265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6267  *  Description of Solaris_Rwlock_Init_1 fix
6268  */
6269 tSCC zSolaris_Rwlock_Init_1Name[] =
6270      "solaris_rwlock_init_1";
6273  *  File name selection pattern
6274  */
6275 tSCC zSolaris_Rwlock_Init_1List[] =
6276   "pthread.h\0";
6278  *  Machine/OS name selection pattern
6279  */
6280 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6281         "*-*-solaris*",
6282         (const char*)NULL };
6285  *  content selection pattern - do fix if pattern found
6286  */
6287 tSCC zSolaris_Rwlock_Init_1Select0[] =
6288        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6290 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
6291 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6292   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6295  *  Fix Command Arguments for Solaris_Rwlock_Init_1
6296  */
6297 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6298     "format",
6299     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6300 %0\n\
6301 #else\n\
6302 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6303 #endif",
6304     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6305     (char*)NULL };
6307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6309  *  Description of Solaris_Once_Init_1 fix
6310  */
6311 tSCC zSolaris_Once_Init_1Name[] =
6312      "solaris_once_init_1";
6315  *  File name selection pattern
6316  */
6317 tSCC zSolaris_Once_Init_1List[] =
6318   "pthread.h\0";
6320  *  Machine/OS name selection pattern
6321  */
6322 tSCC* apzSolaris_Once_Init_1Machs[] = {
6323         "*-*-solaris*",
6324         (const char*)NULL };
6327  *  content selection pattern - do fix if pattern found
6328  */
6329 tSCC zSolaris_Once_Init_1Select0[] =
6330        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6332 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6333 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6334   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6337  *  Fix Command Arguments for Solaris_Once_Init_1
6338  */
6339 static const char* apzSolaris_Once_Init_1Patch[] = {
6340     "format",
6341     "%1{%2}%3",
6342     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6343     (char*)NULL };
6345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6347  *  Description of Solaris_Once_Init_2 fix
6348  */
6349 tSCC zSolaris_Once_Init_2Name[] =
6350      "solaris_once_init_2";
6353  *  File name selection pattern
6354  */
6355 tSCC zSolaris_Once_Init_2List[] =
6356   "pthread.h\0";
6358  *  Machine/OS name selection pattern
6359  */
6360 tSCC* apzSolaris_Once_Init_2Machs[] = {
6361         "*-*-solaris2.[0-9]",
6362         "*-*-solaris2.[0-9][!0-9]*",
6363         (const char*)NULL };
6366  *  content selection pattern - do fix if pattern found
6367  */
6368 tSCC zSolaris_Once_Init_2Select0[] =
6369        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6371 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
6372 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6373   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6376  *  Fix Command Arguments for Solaris_Once_Init_2
6377  */
6378 static const char* apzSolaris_Once_Init_2Patch[] = {
6379     "format",
6380     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6381 %0\n\
6382 #else\n\
6383 %1{0}, {0}, {0}, {%3}%4\n\
6384 #endif",
6385     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6386     (char*)NULL };
6388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6390  *  Description of Solaris_Int_Const fix
6391  */
6392 tSCC zSolaris_Int_ConstName[] =
6393      "solaris_int_const";
6396  *  File name selection pattern
6397  */
6398 tSCC zSolaris_Int_ConstList[] =
6399   "sys/int_const.h\0";
6401  *  Machine/OS name selection pattern
6402  */
6403 tSCC* apzSolaris_Int_ConstMachs[] = {
6404         "*-*-solaris2*",
6405         (const char*)NULL };
6408  *  content selection pattern - do fix if pattern found
6409  */
6410 tSCC zSolaris_Int_ConstSelect0[] =
6411        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6412 (/*.**/)\n\
6413 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6415 #define    SOLARIS_INT_CONST_TEST_CT  1
6416 static tTestDesc aSolaris_Int_ConstTests[] = {
6417   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6420  *  Fix Command Arguments for Solaris_Int_Const
6421  */
6422 static const char* apzSolaris_Int_ConstPatch[] = {
6423     "format",
6424     "#define\tUINT8_C(c)\t(c)\n\
6425 %1\n\
6426 #define\tUINT16_C(c)\t(c)",
6427     (char*)NULL };
6429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6431  *  Description of Solaris_Int_Limits_1 fix
6432  */
6433 tSCC zSolaris_Int_Limits_1Name[] =
6434      "solaris_int_limits_1";
6437  *  File name selection pattern
6438  */
6439 tSCC zSolaris_Int_Limits_1List[] =
6440   "sys/int_limits.h\0";
6442  *  Machine/OS name selection pattern
6443  */
6444 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6445         "*-*-solaris2*",
6446         (const char*)NULL };
6449  *  content selection pattern - do fix if pattern found
6450  */
6451 tSCC zSolaris_Int_Limits_1Select0[] =
6452        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6453 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6455 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
6456 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6457   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6460  *  Fix Command Arguments for Solaris_Int_Limits_1
6461  */
6462 static const char* apzSolaris_Int_Limits_1Patch[] = {
6463     "format",
6464     "#define\tUINT8_MAX\t(255)\n\
6465 #define\tUINT16_MAX\t(65535)",
6466     (char*)NULL };
6468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6470  *  Description of Solaris_Int_Limits_2 fix
6471  */
6472 tSCC zSolaris_Int_Limits_2Name[] =
6473      "solaris_int_limits_2";
6476  *  File name selection pattern
6477  */
6478 tSCC zSolaris_Int_Limits_2List[] =
6479   "sys/int_limits.h\0";
6481  *  Machine/OS name selection pattern
6482  */
6483 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6484         "*-*-solaris2*",
6485         (const char*)NULL };
6488  *  content selection pattern - do fix if pattern found
6489  */
6490 tSCC zSolaris_Int_Limits_2Select0[] =
6491        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6493 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
6494 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6495   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6498  *  Fix Command Arguments for Solaris_Int_Limits_2
6499  */
6500 static const char* apzSolaris_Int_Limits_2Patch[] = {
6501     "format",
6502     "#define\t%1_FAST16_%2 %132_%2",
6503     (char*)NULL };
6505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6507  *  Description of Solaris_Int_Limits_3 fix
6508  */
6509 tSCC zSolaris_Int_Limits_3Name[] =
6510      "solaris_int_limits_3";
6513  *  File name selection pattern
6514  */
6515 tSCC zSolaris_Int_Limits_3List[] =
6516   "sys/int_limits.h\0";
6518  *  Machine/OS name selection pattern
6519  */
6520 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6521         "*-*-solaris2*",
6522         (const char*)NULL };
6525  *  content selection pattern - do fix if pattern found
6526  */
6527 tSCC zSolaris_Int_Limits_3Select0[] =
6528        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6530 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
6531 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6532   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6535  *  Fix Command Arguments for Solaris_Int_Limits_3
6536  */
6537 static const char* apzSolaris_Int_Limits_3Patch[] = {
6538     "format",
6539     "#define\tSIZE_MAX\t4294967295U",
6540     (char*)NULL };
6542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6544  *  Description of Solaris_Int_Types fix
6545  */
6546 tSCC zSolaris_Int_TypesName[] =
6547      "solaris_int_types";
6550  *  File name selection pattern
6551  */
6552 tSCC zSolaris_Int_TypesList[] =
6553   "sys/int_types.h\0";
6555  *  Machine/OS name selection pattern
6556  */
6557 #define apzSolaris_Int_TypesMachs (const char**)NULL
6560  *  content selection pattern - do fix if pattern found
6561  */
6562 tSCC zSolaris_Int_TypesSelect0[] =
6563        "__STDC__ - 0 == 0";
6566  *  content bypass pattern - skip fix if pattern found
6567  */
6568 tSCC zSolaris_Int_TypesBypass0[] =
6569        "_LONGLONG_TYPE";
6571 #define    SOLARIS_INT_TYPES_TEST_CT  2
6572 static tTestDesc aSolaris_Int_TypesTests[] = {
6573   { TT_NEGREP,   zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6574   { TT_EGREP,    zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6577  *  Fix Command Arguments for Solaris_Int_Types
6578  */
6579 static const char* apzSolaris_Int_TypesPatch[] = {
6580     "format",
6581     "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6582     (char*)NULL };
6584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6586  *  Description of Solaris_Posix_Spawn_Restrict fix
6587  */
6588 tSCC zSolaris_Posix_Spawn_RestrictName[] =
6589      "solaris_posix_spawn_restrict";
6592  *  File name selection pattern
6593  */
6594 tSCC zSolaris_Posix_Spawn_RestrictList[] =
6595   "spawn.h\0";
6597  *  Machine/OS name selection pattern
6598  */
6599 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
6600         "*-*-solaris2*",
6601         (const char*)NULL };
6604  *  content selection pattern - do fix if pattern found
6605  */
6606 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
6607        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
6609 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
6610 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
6611   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
6614  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
6615  */
6616 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
6617     "format",
6618     "%1*_RESTRICT_KYWD %2%3",
6619     (char*)NULL };
6621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6623  *  Description of Solaris_Std___Filbuf fix
6624  */
6625 tSCC zSolaris_Std___FilbufName[] =
6626      "solaris_std___filbuf";
6629  *  File name selection pattern
6630  */
6631 tSCC zSolaris_Std___FilbufList[] =
6632   "stdio.h\0";
6634  *  Machine/OS name selection pattern
6635  */
6636 tSCC* apzSolaris_Std___FilbufMachs[] = {
6637         "*-*-solaris2*",
6638         (const char*)NULL };
6641  *  content selection pattern - do fix if pattern found
6642  */
6643 tSCC zSolaris_Std___FilbufSelect0[] =
6644        "(using std::perror;\n\
6645 )(#endif)";
6648  *  content bypass pattern - skip fix if pattern found
6649  */
6650 tSCC zSolaris_Std___FilbufBypass0[] =
6651        "using std::__filbuf";
6653 #define    SOLARIS_STD___FILBUF_TEST_CT  2
6654 static tTestDesc aSolaris_Std___FilbufTests[] = {
6655   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
6656   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
6659  *  Fix Command Arguments for Solaris_Std___Filbuf
6660  */
6661 static const char* apzSolaris_Std___FilbufPatch[] = {
6662     "format",
6663     "%1#ifndef _LP64\n\
6664 using std::__filbuf;\n\
6665 using std::__flsbuf;\n\
6666 #endif\n\
6667 %2",
6668     (char*)NULL };
6670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6672  *  Description of Solaris_Stdio_Tag fix
6673  */
6674 tSCC zSolaris_Stdio_TagName[] =
6675      "solaris_stdio_tag";
6678  *  File name selection pattern
6679  */
6680 tSCC zSolaris_Stdio_TagList[] =
6681   "stdio_tag.h\0";
6683  *  Machine/OS name selection pattern
6684  */
6685 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6688  *  content selection pattern - do fix if pattern found
6689  */
6690 tSCC zSolaris_Stdio_TagSelect0[] =
6691        "__cplusplus < 54321L";
6694  *  content bypass pattern - skip fix if pattern found
6695  */
6696 tSCC zSolaris_Stdio_TagBypass0[] =
6697        "__GNUC__";
6699 #define    SOLARIS_STDIO_TAG_TEST_CT  2
6700 static tTestDesc aSolaris_Stdio_TagTests[] = {
6701   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6702   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6705  *  Fix Command Arguments for Solaris_Stdio_Tag
6706  */
6707 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
6708     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6709     (char*)NULL };
6711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6713  *  Description of Solaris_Sys_Va_List fix
6714  */
6715 tSCC zSolaris_Sys_Va_ListName[] =
6716      "solaris_sys_va_list";
6719  *  File name selection pattern
6720  */
6721 tSCC zSolaris_Sys_Va_ListList[] =
6722   "sys/va_list.h\0";
6724  *  Machine/OS name selection pattern
6725  */
6726 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
6727         "*-*-solaris2.9",
6728         (const char*)NULL };
6731  *  content selection pattern - do fix if pattern found
6732  */
6733 tSCC zSolaris_Sys_Va_ListSelect0[] =
6734        "#if.*__STDC__.*\n\
6735 typedef void \\*__va_list;\n\
6736 #else\n\
6737 typedef char \\*__va_list;\n\
6738 #endif";
6740 #define    SOLARIS_SYS_VA_LIST_TEST_CT  1
6741 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
6742   { TT_EGREP,    zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
6745  *  Fix Command Arguments for Solaris_Sys_Va_List
6746  */
6747 static const char* apzSolaris_Sys_Va_ListPatch[] = {
6748     "format",
6749     "#ifdef __GNUC__\n\
6750 typedef __builtin_va_list __va_list;\n\
6751 #else\n\
6752 %0\n\
6753 #endif",
6754     (char*)NULL };
6756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6758  *  Description of Statsswtch fix
6759  */
6760 tSCC zStatsswtchName[] =
6761      "statsswtch";
6764  *  File name selection pattern
6765  */
6766 tSCC zStatsswtchList[] =
6767   "rpcsvc/rstat.h\0";
6769  *  Machine/OS name selection pattern
6770  */
6771 #define apzStatsswtchMachs (const char**)NULL
6774  *  content selection pattern - do fix if pattern found
6775  */
6776 tSCC zStatsswtchSelect0[] =
6777        "boottime$";
6779 #define    STATSSWTCH_TEST_CT  1
6780 static tTestDesc aStatsswtchTests[] = {
6781   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
6784  *  Fix Command Arguments for Statsswtch
6785  */
6786 static const char* apzStatsswtchPatch[] = {
6787     "format",
6788     "boottime;",
6789     (char*)NULL };
6791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6793  *  Description of Stdio_Stdarg_H fix
6794  */
6795 tSCC zStdio_Stdarg_HName[] =
6796      "stdio_stdarg_h";
6799  *  File name selection pattern
6800  */
6801 tSCC zStdio_Stdarg_HList[] =
6802   "stdio.h\0";
6804  *  Machine/OS name selection pattern
6805  */
6806 tSCC* apzStdio_Stdarg_HMachs[] = {
6807         "*-*-solaris2.1[0-9]*",
6808         (const char*)NULL };
6811  *  content bypass pattern - skip fix if pattern found
6812  */
6813 tSCC zStdio_Stdarg_HBypass0[] =
6814        "include.*(stdarg.h|machine/ansi.h)";
6816 #define    STDIO_STDARG_H_TEST_CT  1
6817 static tTestDesc aStdio_Stdarg_HTests[] = {
6818   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6821  *  Fix Command Arguments for Stdio_Stdarg_H
6822  */
6823 static const char* apzStdio_Stdarg_HPatch[] = {
6824     "wrap",
6825     "#define __need___va_list\n\
6826 #include <stdarg.h>\n",
6827     (char*)NULL };
6829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6831  *  Description of Stdio_Va_List fix
6832  */
6833 tSCC zStdio_Va_ListName[] =
6834      "stdio_va_list";
6837  *  File name selection pattern
6838  */
6839 tSCC zStdio_Va_ListList[] =
6840   "stdio.h\0";
6842  *  Machine/OS name selection pattern
6843  */
6844 tSCC* apzStdio_Va_ListMachs[] = {
6845         "*-*-solaris2.1[0-9]*",
6846         (const char*)NULL };
6849  *  content bypass pattern - skip fix if pattern found
6850  */
6851 tSCC zStdio_Va_ListBypass0[] =
6852        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6854 #define    STDIO_VA_LIST_TEST_CT  1
6855 static tTestDesc aStdio_Va_ListTests[] = {
6856   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6859  *  Fix Command Arguments for Stdio_Va_List
6860  */
6861 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
6862     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6863 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6864 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6865 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6866 s@ va_list@ __not_va_list__@\n\
6867 s@\\*va_list@*__not_va_list__@\n\
6868 s@ __va_list)@ __gnuc_va_list)@\n\
6869 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6870 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6871 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6872 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6873 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6874 s@VA_LIST@DUMMY_VA_LIST@\n\
6875 s@_Va_LIST@_VA_LIST@",
6876     (char*)NULL };
6878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6880  *  Description of Stdio_Va_List_Clients fix
6881  */
6882 tSCC zStdio_Va_List_ClientsName[] =
6883      "stdio_va_list_clients";
6886  *  File name selection pattern
6887  */
6888 tSCC zStdio_Va_List_ClientsList[] =
6889   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6891  *  Machine/OS name selection pattern
6892  */
6893 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6896  *  content bypass pattern - skip fix if pattern found
6897  */
6898 tSCC zStdio_Va_List_ClientsBypass0[] =
6899        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6900 tSCC zStdio_Va_List_ClientsBypass1[] =
6901        "include <stdarg\\.h>|#ifdef va_start";
6903 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
6904 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6905   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6906   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6909  *  Fix Command Arguments for Stdio_Va_List_Clients
6910  */
6911 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
6912     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6913 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6914 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6915 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6916 s@ va_list@ __not_va_list__@\n\
6917 s@\\*va_list@*__not_va_list__@\n\
6918 s@ __va_list)@ __gnuc_va_list)@\n\
6919 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6920 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6921 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6922 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6923 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6924 s@VA_LIST@DUMMY_VA_LIST@\n\
6925 s@_Va_LIST@_VA_LIST@",
6926     (char*)NULL };
6928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6930  *  Description of Strict_Ansi_Not fix
6931  */
6932 tSCC zStrict_Ansi_NotName[] =
6933      "strict_ansi_not";
6936  *  File name selection pattern
6937  */
6938 #define zStrict_Ansi_NotList (char*)NULL
6940  *  Machine/OS name selection pattern
6941  */
6942 #define apzStrict_Ansi_NotMachs (const char**)NULL
6945  *  content selection pattern - do fix if pattern found
6946  */
6947 tSCC zStrict_Ansi_NotSelect0[] =
6948        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6951  *  content bypass pattern - skip fix if pattern found
6952  */
6953 tSCC zStrict_Ansi_NotBypass0[] =
6954        "GNU and MIPS C compilers define __STDC__ differently";
6955 tSCC zStrict_Ansi_NotBypass1[] =
6956        "__SCO_VERSION__.*__STDC__ != 1";
6959  *  perform the C function call test
6960  */
6961 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6963 #define    STRICT_ANSI_NOT_TEST_CT  4
6964 static tTestDesc aStrict_Ansi_NotTests[] = {
6965   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
6966   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6967   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6968   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6971  *  Fix Command Arguments for Strict_Ansi_Not
6972  */
6973 static const char* apzStrict_Ansi_NotPatch[] = {
6974     "format",
6975     "%1 !defined(__STRICT_ANSI__)",
6976     (char*)NULL };
6978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6980  *  Description of Strict_Ansi_Not_Ctd fix
6981  */
6982 tSCC zStrict_Ansi_Not_CtdName[] =
6983      "strict_ansi_not_ctd";
6986  *  File name selection pattern
6987  */
6988 tSCC zStrict_Ansi_Not_CtdList[] =
6989   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6991  *  Machine/OS name selection pattern
6992  */
6993 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6996  *  content selection pattern - do fix if pattern found
6997  */
6998 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6999        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7002  *  perform the C function call test
7003  */
7004 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7006 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
7007 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7008   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
7009   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7012  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
7013  */
7014 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7015     "format",
7016     "%1 !defined(__STRICT_ANSI__)",
7017     (char*)NULL };
7019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7021  *  Description of Strict_Ansi_Only fix
7022  */
7023 tSCC zStrict_Ansi_OnlyName[] =
7024      "strict_ansi_only";
7027  *  File name selection pattern
7028  */
7029 #define zStrict_Ansi_OnlyList (char*)NULL
7031  *  Machine/OS name selection pattern
7032  */
7033 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7036  *  content selection pattern - do fix if pattern found
7037  */
7038 tSCC zStrict_Ansi_OnlySelect0[] =
7039        "^([ \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)";
7042  *  perform the C function call test
7043  */
7044 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7046 #define    STRICT_ANSI_ONLY_TEST_CT  2
7047 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7048   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
7049   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7052  *  Fix Command Arguments for Strict_Ansi_Only
7053  */
7054 static const char* apzStrict_Ansi_OnlyPatch[] = {
7055     "format",
7056     "%1 defined(__STRICT_ANSI__)",
7057     (char*)NULL };
7059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7061  *  Description of Struct_File fix
7062  */
7063 tSCC zStruct_FileName[] =
7064      "struct_file";
7067  *  File name selection pattern
7068  */
7069 tSCC zStruct_FileList[] =
7070   "rpc/xdr.h\0";
7072  *  Machine/OS name selection pattern
7073  */
7074 #define apzStruct_FileMachs (const char**)NULL
7077  *  content selection pattern - do fix if pattern found
7078  */
7079 tSCC zStruct_FileSelect0[] =
7080        "^.*xdrstdio_create.*struct __file_s";
7082 #define    STRUCT_FILE_TEST_CT  1
7083 static tTestDesc aStruct_FileTests[] = {
7084   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
7087  *  Fix Command Arguments for Struct_File
7088  */
7089 static const char* apzStruct_FilePatch[] = {
7090     "format",
7091     "struct __file_s;\n\
7092 %0",
7093     (char*)NULL };
7095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7097  *  Description of Struct_Sockaddr fix
7098  */
7099 tSCC zStruct_SockaddrName[] =
7100      "struct_sockaddr";
7103  *  File name selection pattern
7104  */
7105 tSCC zStruct_SockaddrList[] =
7106   "rpc/auth.h\0";
7108  *  Machine/OS name selection pattern
7109  */
7110 #define apzStruct_SockaddrMachs (const char**)NULL
7113  *  content selection pattern - do fix if pattern found
7114  */
7115 tSCC zStruct_SockaddrSelect0[] =
7116        "^.*authdes_create.*struct sockaddr[^_]";
7119  *  content bypass pattern - skip fix if pattern found
7120  */
7121 tSCC zStruct_SockaddrBypass0[] =
7122        "<sys/socket.h>";
7123 tSCC zStruct_SockaddrBypass1[] =
7124        "struct sockaddr;\n";
7126 #define    STRUCT_SOCKADDR_TEST_CT  3
7127 static tTestDesc aStruct_SockaddrTests[] = {
7128   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
7129   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
7130   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7133  *  Fix Command Arguments for Struct_Sockaddr
7134  */
7135 static const char* apzStruct_SockaddrPatch[] = {
7136     "format",
7137     "struct sockaddr;\n\
7138 %0",
7139     (char*)NULL };
7141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7143  *  Description of Sun_Auth_Proto fix
7144  */
7145 tSCC zSun_Auth_ProtoName[] =
7146      "sun_auth_proto";
7149  *  File name selection pattern
7150  */
7151 tSCC zSun_Auth_ProtoList[] =
7152   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7154  *  Machine/OS name selection pattern
7155  */
7156 #define apzSun_Auth_ProtoMachs (const char**)NULL
7159  *  content selection pattern - do fix if pattern found
7160  */
7161 tSCC zSun_Auth_ProtoSelect0[] =
7162        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7165  *  content bypass pattern - skip fix if pattern found
7166  */
7167 tSCC zSun_Auth_ProtoBypass0[] =
7168        "__cplusplus";
7170 #define    SUN_AUTH_PROTO_TEST_CT  2
7171 static tTestDesc aSun_Auth_ProtoTests[] = {
7172   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7173   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7176  *  Fix Command Arguments for Sun_Auth_Proto
7177  */
7178 static const char* apzSun_Auth_ProtoPatch[] = {
7179     "format",
7180     "#ifdef __cplusplus\n\
7181 %1(...);%2\n\
7182 #else\n\
7183 %1();%2\n\
7184 #endif",
7185     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7186     (char*)NULL };
7188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7190  *  Description of Sun_Bogus_Ifdef fix
7191  */
7192 tSCC zSun_Bogus_IfdefName[] =
7193      "sun_bogus_ifdef";
7196  *  File name selection pattern
7197  */
7198 tSCC zSun_Bogus_IfdefList[] =
7199   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7201  *  Machine/OS name selection pattern
7202  */
7203 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7206  *  content selection pattern - do fix if pattern found
7207  */
7208 tSCC zSun_Bogus_IfdefSelect0[] =
7209        "#ifdef(.*\\|\\|.*)";
7211 #define    SUN_BOGUS_IFDEF_TEST_CT  1
7212 static tTestDesc aSun_Bogus_IfdefTests[] = {
7213   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7216  *  Fix Command Arguments for Sun_Bogus_Ifdef
7217  */
7218 static const char* apzSun_Bogus_IfdefPatch[] = {
7219     "format",
7220     "#if%1",
7221     (char*)NULL };
7223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7225  *  Description of Sun_Catmacro fix
7226  */
7227 tSCC zSun_CatmacroName[] =
7228      "sun_catmacro";
7231  *  File name selection pattern
7232  */
7233 tSCC zSun_CatmacroList[] =
7234   "pixrect/memvar.h\0";
7236  *  Machine/OS name selection pattern
7237  */
7238 #define apzSun_CatmacroMachs (const char**)NULL
7241  *  content selection pattern - do fix if pattern found
7242  */
7243 tSCC zSun_CatmacroSelect0[] =
7244        "^#define[ \t]+CAT\\(a,b\\).*";
7246 #define    SUN_CATMACRO_TEST_CT  1
7247 static tTestDesc aSun_CatmacroTests[] = {
7248   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
7251  *  Fix Command Arguments for Sun_Catmacro
7252  */
7253 static const char* apzSun_CatmacroPatch[] = {
7254     "format",
7255     "#ifdef __STDC__\n\
7256 #  define CAT(a,b) a##b\n\
7257 #else\n\
7258 %0\n\
7259 #endif",
7260     (char*)NULL };
7262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7264  *  Description of Sun_Malloc fix
7265  */
7266 tSCC zSun_MallocName[] =
7267      "sun_malloc";
7270  *  File name selection pattern
7271  */
7272 tSCC zSun_MallocList[] =
7273   "malloc.h\0";
7275  *  Machine/OS name selection pattern
7276  */
7277 #define apzSun_MallocMachs (const char**)NULL
7280  *  content bypass pattern - skip fix if pattern found
7281  */
7282 tSCC zSun_MallocBypass0[] =
7283        "_CLASSIC_ANSI_TYPES";
7285 #define    SUN_MALLOC_TEST_CT  1
7286 static tTestDesc aSun_MallocTests[] = {
7287   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
7290  *  Fix Command Arguments for Sun_Malloc
7291  */
7292 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7293     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7294     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7295     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7296     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7297     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7298     (char*)NULL };
7300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7302  *  Description of Sun_Rusers_Semi fix
7303  */
7304 tSCC zSun_Rusers_SemiName[] =
7305      "sun_rusers_semi";
7308  *  File name selection pattern
7309  */
7310 tSCC zSun_Rusers_SemiList[] =
7311   "rpcsvc/rusers.h\0";
7313  *  Machine/OS name selection pattern
7314  */
7315 #define apzSun_Rusers_SemiMachs (const char**)NULL
7318  *  content selection pattern - do fix if pattern found
7319  */
7320 tSCC zSun_Rusers_SemiSelect0[] =
7321        "_cnt$";
7323 #define    SUN_RUSERS_SEMI_TEST_CT  1
7324 static tTestDesc aSun_Rusers_SemiTests[] = {
7325   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7328  *  Fix Command Arguments for Sun_Rusers_Semi
7329  */
7330 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7331     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7332     (char*)NULL };
7334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7336  *  Description of Sun_Signal fix
7337  */
7338 tSCC zSun_SignalName[] =
7339      "sun_signal";
7342  *  File name selection pattern
7343  */
7344 tSCC zSun_SignalList[] =
7345   "sys/signal.h\0signal.h\0";
7347  *  Machine/OS name selection pattern
7348  */
7349 #define apzSun_SignalMachs (const char**)NULL
7352  *  content selection pattern - do fix if pattern found
7353  */
7354 tSCC zSun_SignalSelect0[] =
7355        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7357 #define    SUN_SIGNAL_TEST_CT  1
7358 static tTestDesc aSun_SignalTests[] = {
7359   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
7362  *  Fix Command Arguments for Sun_Signal
7363  */
7364 static const char* apzSun_SignalPatch[] = {
7365     "format",
7366     "#ifdef __cplusplus\n\
7367 void\t(*signal(...))(...);\n\
7368 #else\n\
7369 %0\n\
7370 #endif",
7371     (char*)NULL };
7373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7375  *  Description of Sunos_Strlen fix
7376  */
7377 tSCC zSunos_StrlenName[] =
7378      "sunos_strlen";
7381  *  File name selection pattern
7382  */
7383 tSCC zSunos_StrlenList[] =
7384   "strings.h\0";
7386  *  Machine/OS name selection pattern
7387  */
7388 #define apzSunos_StrlenMachs (const char**)NULL
7391  *  content selection pattern - do fix if pattern found
7392  */
7393 tSCC zSunos_StrlenSelect0[] =
7394        "int[ \t]*strlen\\(\\);(.*)";
7396 #define    SUNOS_STRLEN_TEST_CT  1
7397 static tTestDesc aSunos_StrlenTests[] = {
7398   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
7401  *  Fix Command Arguments for Sunos_Strlen
7402  */
7403 static const char* apzSunos_StrlenPatch[] = {
7404     "format",
7405     "__SIZE_TYPE__ strlen();%1",
7406     (char*)NULL };
7408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7410  *  Description of Svr4_Disable_Opt fix
7411  */
7412 tSCC zSvr4_Disable_OptName[] =
7413      "svr4_disable_opt";
7416  *  File name selection pattern
7417  */
7418 tSCC zSvr4_Disable_OptList[] =
7419   "string.h\0";
7421  *  Machine/OS name selection pattern
7422  */
7423 #define apzSvr4_Disable_OptMachs (const char**)NULL
7426  *  content selection pattern - do fix if pattern found
7427  */
7428 tSCC zSvr4_Disable_OptSelect0[] =
7429        "#define.*__std_hdr_";
7431 #define    SVR4_DISABLE_OPT_TEST_CT  1
7432 static tTestDesc aSvr4_Disable_OptTests[] = {
7433   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7436  *  Fix Command Arguments for Svr4_Disable_Opt
7437  */
7438 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7439     "-e", "/#define.*__std_hdr_/d",
7440     (char*)NULL };
7442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7444  *  Description of Svr4_Getcwd fix
7445  */
7446 tSCC zSvr4_GetcwdName[] =
7447      "svr4_getcwd";
7450  *  File name selection pattern
7451  */
7452 tSCC zSvr4_GetcwdList[] =
7453   "stdlib.h\0unistd.h\0prototypes.h\0";
7455  *  Machine/OS name selection pattern
7456  */
7457 #define apzSvr4_GetcwdMachs (const char**)NULL
7460  *  content selection pattern - do fix if pattern found
7461  */
7462 tSCC zSvr4_GetcwdSelect0[] =
7463        "getcwd\\(char \\*, int\\)";
7465 #define    SVR4_GETCWD_TEST_CT  1
7466 static tTestDesc aSvr4_GetcwdTests[] = {
7467   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7470  *  Fix Command Arguments for Svr4_Getcwd
7471  */
7472 static const char* apzSvr4_GetcwdPatch[] = {
7473     "format",
7474     "getcwd(char *, size_t)",
7475     (char*)NULL };
7477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7479  *  Description of Svr4_Profil fix
7480  */
7481 tSCC zSvr4_ProfilName[] =
7482      "svr4_profil";
7485  *  File name selection pattern
7486  */
7487 tSCC zSvr4_ProfilList[] =
7488   "stdlib.h\0unistd.h\0";
7490  *  Machine/OS name selection pattern
7491  */
7492 #define apzSvr4_ProfilMachs (const char**)NULL
7495  *  content selection pattern - do fix if pattern found
7496  */
7497 tSCC zSvr4_ProfilSelect0[] =
7498        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7500 #define    SVR4_PROFIL_TEST_CT  1
7501 static tTestDesc aSvr4_ProfilTests[] = {
7502   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7505  *  Fix Command Arguments for Svr4_Profil
7506  */
7507 static const char* apzSvr4_ProfilPatch[] = {
7508     "format",
7509     "profil(unsigned short *, size_t, int, unsigned int)",
7510     (char*)NULL };
7512 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7514  *  Description of Svr4_Sighandler_Type fix
7515  */
7516 tSCC zSvr4_Sighandler_TypeName[] =
7517      "svr4_sighandler_type";
7520  *  File name selection pattern
7521  */
7522 tSCC zSvr4_Sighandler_TypeList[] =
7523   "sys/signal.h\0";
7525  *  Machine/OS name selection pattern
7526  */
7527 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7530  *  content selection pattern - do fix if pattern found
7531  */
7532 tSCC zSvr4_Sighandler_TypeSelect0[] =
7533        "void *\\(\\*\\)\\(\\)";
7535 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
7536 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7537   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7540  *  Fix Command Arguments for Svr4_Sighandler_Type
7541  */
7542 static const char* apzSvr4_Sighandler_TypePatch[] = {
7543     "format",
7544     "void (*)(int)",
7545     (char*)NULL };
7547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7549  *  Description of Svr4_Undeclared_Getrnge fix
7550  */
7551 tSCC zSvr4_Undeclared_GetrngeName[] =
7552      "svr4_undeclared_getrnge";
7555  *  File name selection pattern
7556  */
7557 tSCC zSvr4_Undeclared_GetrngeList[] =
7558   "regexp.h\0";
7560  *  Machine/OS name selection pattern
7561  */
7562 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7565  *  content selection pattern - do fix if pattern found
7566  */
7567 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7568        "getrnge";
7571  *  content bypass pattern - skip fix if pattern found
7572  */
7573 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7574        "static void getrnge";
7576 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
7577 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7578   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7579   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7582  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
7583  */
7584 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7585     "format",
7586     "%0\n\
7587 static int getrnge ();",
7588     "^static int[ \t]+size;",
7589     (char*)NULL };
7591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7593  *  Description of Sysv68_String fix
7594  */
7595 tSCC zSysv68_StringName[] =
7596      "sysv68_string";
7599  *  File name selection pattern
7600  */
7601 tSCC zSysv68_StringList[] =
7602   "testing.h\0string.h\0";
7604  *  Machine/OS name selection pattern
7605  */
7606 #define apzSysv68_StringMachs (const char**)NULL
7609  *  content bypass pattern - skip fix if pattern found
7610  */
7611 tSCC zSysv68_StringBypass0[] =
7612        "_CLASSIC_ANSI_TYPES";
7614 #define    SYSV68_STRING_TEST_CT  1
7615 static tTestDesc aSysv68_StringTests[] = {
7616   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
7619  *  Fix Command Arguments for Sysv68_String
7620  */
7621 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7622     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7623     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7624     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7625     "-e", "/^extern char$/N",
7626     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7627     "-e", "/^extern int$/N",
7628     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7629     "-e", "/^\tstrncmp(),$/N",
7630     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7631 extern unsigned int\\\n\
7632 \\2/",
7633     (char*)NULL };
7635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7637  *  Description of Sysz_Stdlib_For_Sun fix
7638  */
7639 tSCC zSysz_Stdlib_For_SunName[] =
7640      "sysz_stdlib_for_sun";
7643  *  File name selection pattern
7644  */
7645 tSCC zSysz_Stdlib_For_SunList[] =
7646   "stdlib.h\0";
7648  *  Machine/OS name selection pattern
7649  */
7650 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7653  *  content selection pattern - do fix if pattern found
7654  */
7655 tSCC zSysz_Stdlib_For_SunSelect0[] =
7656        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7659  *  content bypass pattern - skip fix if pattern found
7660  */
7661 tSCC zSysz_Stdlib_For_SunBypass0[] =
7662        "_CLASSIC_ANSI_TYPES";
7664 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
7665 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7666   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7667   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7670  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
7671  */
7672 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7673     "format",
7674     "void *\t%1(",
7675     (char*)NULL };
7677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7679  *  Description of Thread_Keyword fix
7680  */
7681 tSCC zThread_KeywordName[] =
7682      "thread_keyword";
7685  *  File name selection pattern
7686  */
7687 tSCC zThread_KeywordList[] =
7688   "pthread.h\0bits/sigthread.h\0";
7690  *  Machine/OS name selection pattern
7691  */
7692 #define apzThread_KeywordMachs (const char**)NULL
7695  *  content selection pattern - do fix if pattern found
7696  */
7697 tSCC zThread_KeywordSelect0[] =
7698        "([* ])__thread([,)])";
7700 #define    THREAD_KEYWORD_TEST_CT  1
7701 static tTestDesc aThread_KeywordTests[] = {
7702   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
7705  *  Fix Command Arguments for Thread_Keyword
7706  */
7707 static const char* apzThread_KeywordPatch[] = {
7708     "format",
7709     "%1__thr%2",
7710     (char*)NULL };
7712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7714  *  Description of Tinfo_Cplusplus fix
7715  */
7716 tSCC zTinfo_CplusplusName[] =
7717      "tinfo_cplusplus";
7720  *  File name selection pattern
7721  */
7722 tSCC zTinfo_CplusplusList[] =
7723   "tinfo.h\0";
7725  *  Machine/OS name selection pattern
7726  */
7727 #define apzTinfo_CplusplusMachs (const char**)NULL
7730  *  content selection pattern - do fix if pattern found
7731  */
7732 tSCC zTinfo_CplusplusSelect0[] =
7733        "[ \t]_cplusplus";
7735 #define    TINFO_CPLUSPLUS_TEST_CT  1
7736 static tTestDesc aTinfo_CplusplusTests[] = {
7737   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7740  *  Fix Command Arguments for Tinfo_Cplusplus
7741  */
7742 static const char* apzTinfo_CplusplusPatch[] = {
7743     "format",
7744     " __cplusplus",
7745     (char*)NULL };
7747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7749  *  Description of Ultrix_Const fix
7750  */
7751 tSCC zUltrix_ConstName[] =
7752      "ultrix_const";
7755  *  File name selection pattern
7756  */
7757 tSCC zUltrix_ConstList[] =
7758   "stdio.h\0";
7760  *  Machine/OS name selection pattern
7761  */
7762 #define apzUltrix_ConstMachs (const char**)NULL
7765  *  content selection pattern - do fix if pattern found
7766  */
7767 tSCC zUltrix_ConstSelect0[] =
7768        "perror\\( char \\*";
7770 #define    ULTRIX_CONST_TEST_CT  1
7771 static tTestDesc aUltrix_ConstTests[] = {
7772   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
7775  *  Fix Command Arguments for Ultrix_Const
7776  */
7777 static const char* apzUltrix_ConstPatch[] = {
7778     "format",
7779     "%1 const %3 *__",
7780     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7781     (char*)NULL };
7783 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7785  *  Description of Ultrix_Const2 fix
7786  */
7787 tSCC zUltrix_Const2Name[] =
7788      "ultrix_const2";
7791  *  File name selection pattern
7792  */
7793 tSCC zUltrix_Const2List[] =
7794   "stdio.h\0";
7796  *  Machine/OS name selection pattern
7797  */
7798 #define apzUltrix_Const2Machs (const char**)NULL
7801  *  content selection pattern - do fix if pattern found
7802  */
7803 tSCC zUltrix_Const2Select0[] =
7804        "\\*fopen\\( char \\*";
7806 #define    ULTRIX_CONST2_TEST_CT  1
7807 static tTestDesc aUltrix_Const2Tests[] = {
7808   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
7811  *  Fix Command Arguments for Ultrix_Const2
7812  */
7813 static const char* apzUltrix_Const2Patch[] = {
7814     "format",
7815     "%1( const char *%3, const char *",
7816     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7817     (char*)NULL };
7819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7821  *  Description of Va_I960_Macro fix
7822  */
7823 tSCC zVa_I960_MacroName[] =
7824      "va_i960_macro";
7827  *  File name selection pattern
7828  */
7829 tSCC zVa_I960_MacroList[] =
7830   "arch/i960/archI960.h\0";
7832  *  Machine/OS name selection pattern
7833  */
7834 #define apzVa_I960_MacroMachs (const char**)NULL
7837  *  content selection pattern - do fix if pattern found
7838  */
7839 tSCC zVa_I960_MacroSelect0[] =
7840        "__(vsiz|vali|vpad|alignof__)";
7842 #define    VA_I960_MACRO_TEST_CT  1
7843 static tTestDesc aVa_I960_MacroTests[] = {
7844   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7847  *  Fix Command Arguments for Va_I960_Macro
7848  */
7849 static const char* apzVa_I960_MacroPatch[] = {
7850     "format",
7851     "__vx%1",
7852     (char*)NULL };
7854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7856  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
7857  */
7858 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
7859      "vms_define_can_use_extern_prefix";
7862  *  File name selection pattern
7863  */
7864 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
7865   "rtldef/decc$types.h\0";
7867  *  Machine/OS name selection pattern
7868  */
7869 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
7870         "*-*-*vms*",
7871         (const char*)NULL };
7874  *  content selection pattern - do fix if pattern found
7875  */
7876 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
7877        "#[ \t]*else\n\
7878 #[ \t]*if defined\\(__DECCXX\\)\n\
7879 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
7881 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
7882 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
7883   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
7886  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
7887  */
7888 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
7889     "format",
7890     "%0#    elif defined (__GNUC__)\n\
7891 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
7892     (char*)NULL };
7894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7896  *  Description of Vms_Use_Pragma_Extern_Model fix
7897  */
7898 tSCC zVms_Use_Pragma_Extern_ModelName[] =
7899      "vms_use_pragma_extern_model";
7902  *  File name selection pattern
7903  */
7904 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
7906  *  Machine/OS name selection pattern
7907  */
7908 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
7909         "*-*-*vms*",
7910         (const char*)NULL };
7913  *  content selection pattern - do fix if pattern found
7914  */
7915 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
7916        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
7917 # pragma extern_model __save\n";
7919 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
7920 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
7921   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
7924  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
7925  */
7926 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
7927     "format",
7928     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
7929 # pragma extern_model __save\n",
7930     (char*)NULL };
7932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7934  *  Description of Vms_Disable_Decc_String_Builtins fix
7935  */
7936 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
7937      "vms_disable_decc_string_builtins";
7940  *  File name selection pattern
7941  */
7942 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
7943   "rtldef/string.h\0";
7945  *  Machine/OS name selection pattern
7946  */
7947 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
7948         "*-*-*vms*",
7949         (const char*)NULL };
7952  *  content selection pattern - do fix if pattern found
7953  */
7954 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
7955        "#if !defined\\(__VAX\\)\n";
7957 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
7958 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
7959   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
7962  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
7963  */
7964 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
7965     "format",
7966     "#if !defined(__VAX) && !defined(__GNUC__)\n",
7967     (char*)NULL };
7969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7971  *  Description of Vms_Use_Quoted_Include fix
7972  */
7973 tSCC zVms_Use_Quoted_IncludeName[] =
7974      "vms_use_quoted_include";
7977  *  File name selection pattern
7978  */
7979 tSCC zVms_Use_Quoted_IncludeList[] =
7980   "rtldef/wait.h\0starlet_c/pthread.h\0";
7982  *  Machine/OS name selection pattern
7983  */
7984 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
7985         "*-*-*vms*",
7986         (const char*)NULL };
7989  *  content selection pattern - do fix if pattern found
7990  */
7991 tSCC zVms_Use_Quoted_IncludeSelect0[] =
7992        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
7994 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
7995 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
7996   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
7999  *  Fix Command Arguments for Vms_Use_Quoted_Include
8000  */
8001 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8002     "format",
8003     "%1<sys/%2.h>",
8004     (char*)NULL };
8006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8008  *  Description of Vms_Add_Missing_Braces fix
8009  */
8010 tSCC zVms_Add_Missing_BracesName[] =
8011      "vms_add_missing_braces";
8014  *  File name selection pattern
8015  */
8016 tSCC zVms_Add_Missing_BracesList[] =
8017   "rtldef/signal.h\0";
8019  *  Machine/OS name selection pattern
8020  */
8021 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8022         "*-*-*vms*",
8023         (const char*)NULL };
8026  *  content selection pattern - do fix if pattern found
8027  */
8028 tSCC zVms_Add_Missing_BracesSelect0[] =
8029        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8031 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
8032 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8033   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8036  *  Fix Command Arguments for Vms_Add_Missing_Braces
8037  */
8038 static const char* apzVms_Add_Missing_BracesPatch[] = {
8039     "format",
8040     "%1 {%2} ",
8041     (char*)NULL };
8043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8045  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
8046  */
8047 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8048      "vms_do_not_redeclare_hostalias";
8051  *  File name selection pattern
8052  */
8053 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8054   "rtldef/resolv.h\0";
8056  *  Machine/OS name selection pattern
8057  */
8058 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8059         "*-*-*vms*",
8060         (const char*)NULL };
8063  *  content selection pattern - do fix if pattern found
8064  */
8065 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8066        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8067 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8069 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
8070 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8071   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8074  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8075  */
8076 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8077     "format",
8078     "%1\n\
8079 /* %2 */",
8080     (char*)NULL };
8082 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8084  *  Description of Vms_Decc_Builtin fix
8085  */
8086 tSCC zVms_Decc_BuiltinName[] =
8087      "vms_decc_builtin";
8090  *  File name selection pattern
8091  */
8092 tSCC zVms_Decc_BuiltinList[] =
8093   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8095  *  Machine/OS name selection pattern
8096  */
8097 tSCC* apzVms_Decc_BuiltinMachs[] = {
8098         "*-*-*vms*",
8099         (const char*)NULL };
8102  *  content selection pattern - do fix if pattern found
8103  */
8104 tSCC zVms_Decc_BuiltinSelect0[] =
8105        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8107 #define    VMS_DECC_BUILTIN_TEST_CT  1
8108 static tTestDesc aVms_Decc_BuiltinTests[] = {
8109   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8112  *  Fix Command Arguments for Vms_Decc_Builtin
8113  */
8114 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8115     "-e", "s@__MEMSET@memset@",
8116     "-e", "s@__MEMMOVE@memmove@",
8117     "-e", "s@__MEMCPY@memcpy@",
8118     "-e", "s@__STRLEN@strlen@",
8119     "-e", "s@__STRCPY@strcpy@",
8120     (char*)NULL };
8122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8124  *  Description of Vms_No_64bit_Getopt fix
8125  */
8126 tSCC zVms_No_64bit_GetoptName[] =
8127      "vms_no_64bit_getopt";
8130  *  File name selection pattern
8131  */
8132 tSCC zVms_No_64bit_GetoptList[] =
8133   "rtldef/stdio.h\0rtldef/unistd.h\0";
8135  *  Machine/OS name selection pattern
8136  */
8137 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8138         "*-*-*vms*",
8139         (const char*)NULL };
8142  *  content selection pattern - do fix if pattern found
8143  */
8144 tSCC zVms_No_64bit_GetoptSelect0[] =
8145        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8147 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
8148 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8149   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8152  *  Fix Command Arguments for Vms_No_64bit_Getopt
8153  */
8154 static const char* apzVms_No_64bit_GetoptPatch[] = {
8155     "format",
8156     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
8157 %0#endif\n",
8158     (char*)NULL };
8160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8162  *  Description of Vms_Forward_Declare_Struct fix
8163  */
8164 tSCC zVms_Forward_Declare_StructName[] =
8165      "vms_forward_declare_struct";
8168  *  File name selection pattern
8169  */
8170 tSCC zVms_Forward_Declare_StructList[] =
8171   "rtldef/if.h\0";
8173  *  Machine/OS name selection pattern
8174  */
8175 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8176         "*-*-*vms*",
8177         (const char*)NULL };
8180  *  content selection pattern - do fix if pattern found
8181  */
8182 tSCC zVms_Forward_Declare_StructSelect0[] =
8183        "(/\\* forward decls for C\\+\\+ \\*/\n\
8184 )#ifdef __cplusplus\n";
8186 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
8187 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8188   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8191  *  Fix Command Arguments for Vms_Forward_Declare_Struct
8192  */
8193 static const char* apzVms_Forward_Declare_StructPatch[] = {
8194     "format",
8195     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8196     (char*)NULL };
8198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8200  *  Description of Vms_Use_Fast_Setjmp fix
8201  */
8202 tSCC zVms_Use_Fast_SetjmpName[] =
8203      "vms_use_fast_setjmp";
8206  *  File name selection pattern
8207  */
8208 tSCC zVms_Use_Fast_SetjmpList[] =
8209   "rtldef/setjmp.h\0";
8211  *  Machine/OS name selection pattern
8212  */
8213 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8214         "*-*-*vms*",
8215         (const char*)NULL };
8218  *  content selection pattern - do fix if pattern found
8219  */
8220 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8221        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8223 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
8224 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8225   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8228  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
8229  */
8230 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8231     "format",
8232     "%0 defined (__GNUC__) ||",
8233     (char*)NULL };
8235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8237  *  Description of Void_Null fix
8238  */
8239 tSCC zVoid_NullName[] =
8240      "void_null";
8243  *  File name selection pattern
8244  */
8245 tSCC zVoid_NullList[] =
8246   "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";
8248  *  Machine/OS name selection pattern
8249  */
8250 #define apzVoid_NullMachs (const char**)NULL
8253  *  content selection pattern - do fix if pattern found
8254  */
8255 tSCC zVoid_NullSelect0[] =
8256        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8259  *  content bypass pattern - skip fix if pattern found
8260  */
8261 tSCC zVoid_NullBypass0[] =
8262        "__cplusplus";
8263 tSCC zVoid_NullBypass1[] =
8264        "__null";
8266 #define    VOID_NULL_TEST_CT  3
8267 static tTestDesc aVoid_NullTests[] = {
8268   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8269   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
8270   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8273  *  Fix Command Arguments for Void_Null
8274  */
8275 static const char* apzVoid_NullPatch[] = {
8276     "format",
8277     "#define NULL 0",
8278     (char*)NULL };
8280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8282  *  Description of Vxworks_Gcc_Problem fix
8283  */
8284 tSCC zVxworks_Gcc_ProblemName[] =
8285      "vxworks_gcc_problem";
8288  *  File name selection pattern
8289  */
8290 tSCC zVxworks_Gcc_ProblemList[] =
8291   "types/vxTypesBase.h\0";
8293  *  Machine/OS name selection pattern
8294  */
8295 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8298  *  content selection pattern - do fix if pattern found
8299  */
8300 tSCC zVxworks_Gcc_ProblemSelect0[] =
8301        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8303 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8304 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8305   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8308  *  Fix Command Arguments for Vxworks_Gcc_Problem
8309  */
8310 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8311     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8312     "-e", "/[ \t]size_t/i\\\n\
8313 #ifndef _GCC_SIZE_T\\\n\
8314 #define _GCC_SIZE_T\n",
8315     "-e", "/[ \t]size_t/a\\\n\
8316 #endif\n",
8317     "-e", "/[ \t]ptrdiff_t/i\\\n\
8318 #ifndef _GCC_PTRDIFF_T\\\n\
8319 #define _GCC_PTRDIFF_T\n",
8320     "-e", "/[ \t]ptrdiff_t/a\\\n\
8321 #endif\n",
8322     "-e", "/[ \t]wchar_t/i\\\n\
8323 #ifndef _GCC_WCHAR_T\\\n\
8324 #define _GCC_WCHAR_T\n",
8325     "-e", "/[ \t]wchar_t/a\\\n\
8326 #endif\n",
8327     (char*)NULL };
8329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8331  *  Description of Vxworks_Needs_Vxtypes fix
8332  */
8333 tSCC zVxworks_Needs_VxtypesName[] =
8334      "vxworks_needs_vxtypes";
8337  *  File name selection pattern
8338  */
8339 tSCC zVxworks_Needs_VxtypesList[] =
8340   "time.h\0";
8342  *  Machine/OS name selection pattern
8343  */
8344 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8347  *  content selection pattern - do fix if pattern found
8348  */
8349 tSCC zVxworks_Needs_VxtypesSelect0[] =
8350        "uint_t([ \t]+_clocks_per_sec)";
8352 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8353 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8354   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8357  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8358  */
8359 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8360     "format",
8361     "unsigned int%1",
8362     (char*)NULL };
8364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8366  *  Description of Vxworks_Needs_Vxworks fix
8367  */
8368 tSCC zVxworks_Needs_VxworksName[] =
8369      "vxworks_needs_vxworks";
8372  *  File name selection pattern
8373  */
8374 tSCC zVxworks_Needs_VxworksList[] =
8375   "sys/stat.h\0";
8377  *  Machine/OS name selection pattern
8378  */
8379 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8382  *  content selection pattern - do fix if pattern found
8383  */
8384 tSCC zVxworks_Needs_VxworksSelect0[] =
8385        "#[ \t]define[ \t]+__INCstath";
8388  *  perform the 'test' shell command - do fix on success
8389  */
8390 tSCC zVxworks_Needs_VxworksTest0[] =
8391        " -r types/vxTypesOld.h";
8392 tSCC zVxworks_Needs_VxworksTest1[] =
8393        " -n \"`egrep '#include' $file`\"";
8394 tSCC zVxworks_Needs_VxworksTest2[] =
8395        " -n \"`egrep ULONG $file`\"";
8397 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8398 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8399   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8400   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8401   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8402   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8405  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8406  */
8407 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8408     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8409 #include <types/vxTypesOld.h>\n",
8410     (char*)NULL };
8412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8414  *  Description of Vxworks_Time fix
8415  */
8416 tSCC zVxworks_TimeName[] =
8417      "vxworks_time";
8420  *  File name selection pattern
8421  */
8422 tSCC zVxworks_TimeList[] =
8423   "time.h\0";
8425  *  Machine/OS name selection pattern
8426  */
8427 #define apzVxworks_TimeMachs (const char**)NULL
8430  *  content selection pattern - do fix if pattern found
8431  */
8432 tSCC zVxworks_TimeSelect0[] =
8433        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8436  *  perform the 'test' shell command - do fix on success
8437  */
8438 tSCC zVxworks_TimeTest0[] =
8439        " -r vxWorks.h";
8441 #define    VXWORKS_TIME_TEST_CT  2
8442 static tTestDesc aVxworks_TimeTests[] = {
8443   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8444   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8447  *  Fix Command Arguments for Vxworks_Time
8448  */
8449 static const char* apzVxworks_TimePatch[] = {
8450     "format",
8451     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8452 #ifdef __cplusplus\n\
8453 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8454 #else\n\
8455 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8456 #endif\n\
8457 #define __gcc_VOIDFUNCPTR_defined\n\
8458 #endif\n\
8459 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8460     (char*)NULL };
8462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8464  *  Description of X11_Class fix
8465  */
8466 tSCC zX11_ClassName[] =
8467      "x11_class";
8470  *  File name selection pattern
8471  */
8472 tSCC zX11_ClassList[] =
8473   "X11/ShellP.h\0";
8475  *  Machine/OS name selection pattern
8476  */
8477 #define apzX11_ClassMachs (const char**)NULL
8480  *  content selection pattern - do fix if pattern found
8481  */
8482 tSCC zX11_ClassSelect0[] =
8483        "^([ \t]*char \\*)class;(.*)";
8486  *  content bypass pattern - skip fix if pattern found
8487  */
8488 tSCC zX11_ClassBypass0[] =
8489        "__cplusplus";
8491 #define    X11_CLASS_TEST_CT  2
8492 static tTestDesc aX11_ClassTests[] = {
8493   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
8494   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
8497  *  Fix Command Arguments for X11_Class
8498  */
8499 static const char* apzX11_ClassPatch[] = {
8500     "format",
8501     "#ifdef __cplusplus\n\
8502 %1c_class;%2\n\
8503 #else\n\
8504 %1class;%2\n\
8505 #endif",
8506     (char*)NULL };
8508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8510  *  Description of X11_Class_Usage fix
8511  */
8512 tSCC zX11_Class_UsageName[] =
8513      "x11_class_usage";
8516  *  File name selection pattern
8517  */
8518 tSCC zX11_Class_UsageList[] =
8519   "Xm/BaseClassI.h\0";
8521  *  Machine/OS name selection pattern
8522  */
8523 #define apzX11_Class_UsageMachs (const char**)NULL
8526  *  content selection pattern - do fix if pattern found
8527  */
8528 tSCC zX11_Class_UsageSelect0[] =
8529        " class\\)";
8532  *  content bypass pattern - skip fix if pattern found
8533  */
8534 tSCC zX11_Class_UsageBypass0[] =
8535        "__cplusplus";
8537 #define    X11_CLASS_USAGE_TEST_CT  2
8538 static tTestDesc aX11_Class_UsageTests[] = {
8539   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
8540   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8543  *  Fix Command Arguments for X11_Class_Usage
8544  */
8545 static const char* apzX11_Class_UsagePatch[] = {
8546     "format",
8547     " c_class)",
8548     (char*)NULL };
8550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8552  *  Description of X11_New fix
8553  */
8554 tSCC zX11_NewName[] =
8555      "x11_new";
8558  *  File name selection pattern
8559  */
8560 tSCC zX11_NewList[] =
8561   "Xm/Traversal.h\0";
8563  *  Machine/OS name selection pattern
8564  */
8565 #define apzX11_NewMachs (const char**)NULL
8568  *  content bypass pattern - skip fix if pattern found
8569  */
8570 tSCC zX11_NewBypass0[] =
8571        "__cplusplus";
8573 #define    X11_NEW_TEST_CT  1
8574 static tTestDesc aX11_NewTests[] = {
8575   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
8578  *  Fix Command Arguments for X11_New
8579  */
8580 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8581     "-e", "/Widget\told, new;/i\\\n\
8582 #ifdef __cplusplus\\\n\
8583 \\\tWidget\told, c_new;\\\n\
8584 #else\n",
8585     "-e", "/Widget\told, new;/a\\\n\
8586 #endif\n",
8587     "-e", "s/Widget new,/Widget c_new,/g",
8588     (char*)NULL };
8590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8592  *  Description of X11_Sprintf fix
8593  */
8594 tSCC zX11_SprintfName[] =
8595      "x11_sprintf";
8598  *  File name selection pattern
8599  */
8600 tSCC zX11_SprintfList[] =
8601   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8603  *  Machine/OS name selection pattern
8604  */
8605 #define apzX11_SprintfMachs (const char**)NULL
8608  *  content selection pattern - do fix if pattern found
8609  */
8610 tSCC zX11_SprintfSelect0[] =
8611        "^extern char \\*\tsprintf\\(\\);$";
8613 #define    X11_SPRINTF_TEST_CT  1
8614 static tTestDesc aX11_SprintfTests[] = {
8615   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
8618  *  Fix Command Arguments for X11_Sprintf
8619  */
8620 static const char* apzX11_SprintfPatch[] = {
8621     "format",
8622     "#ifndef __STDC__\n\
8623 %0\n\
8624 #endif /* !defined __STDC__ */",
8625     (char*)NULL };
8628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8630  *  List of all fixes
8631  */
8632 #define REGEX_COUNT          255
8633 #define MACH_LIST_SIZE_LIMIT 181
8634 #define FIX_COUNT            212
8637  *  Enumerate the fixes
8638  */
8639 typedef enum {
8640     AAB_AIX_STDIO_FIXIDX,
8641     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8642     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8643     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8644     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8645     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8646     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8647     AAB_SUN_MEMCPY_FIXIDX,
8648     AIX_COMPLEX_FIXIDX,
8649     AIX_MALLOC_FIXIDX,
8650     AIX_NET_IF_ARP_FIXIDX,
8651     AIX_ONCE_INIT_1_FIXIDX,
8652     AIX_ONCE_INIT_2_FIXIDX,
8653     AIX_PTHREAD_FIXIDX,
8654     AIX_STDINT_1_FIXIDX,
8655     AIX_STDINT_2_FIXIDX,
8656     AIX_STDINT_3_FIXIDX,
8657     AIX_STDINT_4_FIXIDX,
8658     AIX_STDINT_5_FIXIDX,
8659     AIX_SYSMACHINE_FIXIDX,
8660     AIX_SYSWAIT_2_FIXIDX,
8661     AIX_VOLATILE_FIXIDX,
8662     ALPHA___ASSERT_FIXIDX,
8663     ALPHA_ASSERT_FIXIDX,
8664     ALPHA_GETOPT_FIXIDX,
8665     ALPHA_IF_SEMICOLON_FIXIDX,
8666     ALPHA_PARENS_FIXIDX,
8667     ALPHA_SBRK_FIXIDX,
8668     AVOID_BOOL_DEFINE_FIXIDX,
8669     AVOID_BOOL_TYPE_FIXIDX,
8670     AVOID_WCHAR_T_TYPE_FIXIDX,
8671     BAD_STRUCT_TERM_FIXIDX,
8672     BADQUOTE_FIXIDX,
8673     BROKEN_ASSERT_STDIO_FIXIDX,
8674     BROKEN_ASSERT_STDLIB_FIXIDX,
8675     BROKEN_CABS_FIXIDX,
8676     BROKEN_NAN_FIXIDX,
8677     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8678     CDEF_CPLUSPLUS_FIXIDX,
8679     CTRL_QUOTES_DEF_FIXIDX,
8680     CTRL_QUOTES_USE_FIXIDX,
8681     CXX_UNREADY_FIXIDX,
8682     DARWIN_EXTERNC_FIXIDX,
8683     DARWIN_GCC4_BREAKAGE_FIXIDX,
8684     DARWIN_PRIVATE_EXTERN_FIXIDX,
8685     DARWIN_STDINT_1_FIXIDX,
8686     DARWIN_STDINT_2_FIXIDX,
8687     DARWIN_STDINT_3_FIXIDX,
8688     DARWIN_STDINT_4_FIXIDX,
8689     DARWIN_STDINT_5_FIXIDX,
8690     DARWIN_STDINT_6_FIXIDX,
8691     DARWIN_STDINT_7_FIXIDX,
8692     DEC_INTERN_ASM_FIXIDX,
8693     DJGPP_WCHAR_H_FIXIDX,
8694     ECD_CURSOR_FIXIDX,
8695     FREEBSD_GCC3_BREAKAGE_FIXIDX,
8696     FREEBSD_GCC4_BREAKAGE_FIXIDX,
8697     GLIBC_C99_INLINE_1_FIXIDX,
8698     GLIBC_C99_INLINE_1A_FIXIDX,
8699     GLIBC_C99_INLINE_2_FIXIDX,
8700     GLIBC_C99_INLINE_3_FIXIDX,
8701     GLIBC_C99_INLINE_4_FIXIDX,
8702     GLIBC_MUTEX_INIT_FIXIDX,
8703     GLIBC_STDINT_FIXIDX,
8704     GLIBC_STRNCPY_FIXIDX,
8705     GLIBC_TGMATH_FIXIDX,
8706     GNU_TYPES_FIXIDX,
8707     HP_INLINE_FIXIDX,
8708     HP_SYSFILE_FIXIDX,
8709     HPPA_HPUX_FP_MACROS_FIXIDX,
8710     HPUX10_CPP_POW_INLINE_FIXIDX,
8711     HPUX11_CPP_POW_INLINE_FIXIDX,
8712     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8713     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8714     HPUX10_STDIO_DECLARATIONS_FIXIDX,
8715     HPUX11_ABS_FIXIDX,
8716     HPUX11_FABSF_FIXIDX,
8717     HPUX11_PTHREAD_CONST_FIXIDX,
8718     HPUX11_SIZE_T_FIXIDX,
8719     HPUX11_SNPRINTF_FIXIDX,
8720     HPUX11_VSNPRINTF_FIXIDX,
8721     HPUX8_BOGUS_INLINES_FIXIDX,
8722     HPUX_CTYPE_MACROS_FIXIDX,
8723     HPUX_HTONL_FIXIDX,
8724     HPUX_LONG_DOUBLE_FIXIDX,
8725     HPUX_LONG_DOUBLE_2_FIXIDX,
8726     HPUX_SYSTIME_FIXIDX,
8727     HPUX_SPU_INFO_FIXIDX,
8728     HPUX11_EXTERN_SENDFILE_FIXIDX,
8729     HPUX11_EXTERN_SENDPATH_FIXIDX,
8730     HPUX_EXTERN_ERRNO_FIXIDX,
8731     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8732     HPUX_C99_INTPTR_FIXIDX,
8733     HPUX_C99_INTTYPES_FIXIDX,
8734     HPUX_C99_INTTYPES2_FIXIDX,
8735     HPUX_STDINT_LEAST_FAST_FIXIDX,
8736     HPUX_INTTYPE_INT8_T_FIXIDX,
8737     HPUX_IMAGINARY_I_FIXIDX,
8738     HUGE_VAL_HEX_FIXIDX,
8739     HUGE_VALF_HEX_FIXIDX,
8740     HUGE_VALL_HEX_FIXIDX,
8741     INT_ABORT_FREE_AND_EXIT_FIXIDX,
8742     IO_QUOTES_DEF_FIXIDX,
8743     IO_QUOTES_USE_FIXIDX,
8744     IP_MISSING_SEMI_FIXIDX,
8745     IRIX_LIMITS_CONST_FIXIDX,
8746     IRIX_STDIO_VA_LIST_FIXIDX,
8747     KANDR_CONCAT_FIXIDX,
8748     LINUX_IA64_UCONTEXT_FIXIDX,
8749     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8750     LYNXOS_MISSING_PUTENV_FIXIDX,
8751     MACHINE_ANSI_H_VA_LIST_FIXIDX,
8752     MACHINE_NAME_FIXIDX,
8753     MATH_EXCEPTION_FIXIDX,
8754     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8755     NESTED_AUTH_DES_FIXIDX,
8756     NETBSD_C99_INLINE_1_FIXIDX,
8757     NETBSD_C99_INLINE_2_FIXIDX,
8758     NETBSD_EXTRA_SEMICOLON_FIXIDX,
8759     NEWLIB_STDINT_1_FIXIDX,
8760     NEWLIB_STDINT_2_FIXIDX,
8761     NEXT_MATH_PREFIX_FIXIDX,
8762     NEXT_TEMPLATE_FIXIDX,
8763     NEXT_VOLITILE_FIXIDX,
8764     NEXT_WAIT_UNION_FIXIDX,
8765     NODEENT_SYNTAX_FIXIDX,
8766     OPENBSD_NULL_DEFINITION_FIXIDX,
8767     OBSTACK_LVALUE_CAST_FIXIDX,
8768     OPENBSD_VA_START_FIXIDX,
8769     OSF_NAMESPACE_A_FIXIDX,
8770     OSF_NAMESPACE_C_FIXIDX,
8771     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8772     READ_RET_TYPE_FIXIDX,
8773     RPC_XDR_LVALUE_CAST_A_FIXIDX,
8774     RPC_XDR_LVALUE_CAST_B_FIXIDX,
8775     RS6000_DOUBLE_FIXIDX,
8776     RS6000_FCHMOD_FIXIDX,
8777     RS6000_PARAM_FIXIDX,
8778     SOLARIS___RESTRICT_FIXIDX,
8779     SOLARIS_COMPLEX_FIXIDX,
8780     SOLARIS_COMPLEX_CXX_FIXIDX,
8781     SOLARIS_CXX_LINKAGE_FIXIDX,
8782     SOLARIS_GETC_STRICT_STDC_FIXIDX,
8783     SOLARIS_LONGJMP_NORETURN_FIXIDX,
8784     SOLARIS_MATH_1_FIXIDX,
8785     SOLARIS_MATH_2_FIXIDX,
8786     SOLARIS_MATH_3_FIXIDX,
8787     SOLARIS_MATH_4_FIXIDX,
8788     SOLARIS_MATH_8_FIXIDX,
8789     SOLARIS_MATH_9_FIXIDX,
8790     SOLARIS_MATH_10_FIXIDX,
8791     SOLARIS_MUTEX_INIT_2_FIXIDX,
8792     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
8793     SOLARIS_RWLOCK_INIT_1_FIXIDX,
8794     SOLARIS_ONCE_INIT_1_FIXIDX,
8795     SOLARIS_ONCE_INIT_2_FIXIDX,
8796     SOLARIS_INT_CONST_FIXIDX,
8797     SOLARIS_INT_LIMITS_1_FIXIDX,
8798     SOLARIS_INT_LIMITS_2_FIXIDX,
8799     SOLARIS_INT_LIMITS_3_FIXIDX,
8800     SOLARIS_INT_TYPES_FIXIDX,
8801     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
8802     SOLARIS_STD___FILBUF_FIXIDX,
8803     SOLARIS_STDIO_TAG_FIXIDX,
8804     SOLARIS_SYS_VA_LIST_FIXIDX,
8805     STATSSWTCH_FIXIDX,
8806     STDIO_STDARG_H_FIXIDX,
8807     STDIO_VA_LIST_FIXIDX,
8808     STDIO_VA_LIST_CLIENTS_FIXIDX,
8809     STRICT_ANSI_NOT_FIXIDX,
8810     STRICT_ANSI_NOT_CTD_FIXIDX,
8811     STRICT_ANSI_ONLY_FIXIDX,
8812     STRUCT_FILE_FIXIDX,
8813     STRUCT_SOCKADDR_FIXIDX,
8814     SUN_AUTH_PROTO_FIXIDX,
8815     SUN_BOGUS_IFDEF_FIXIDX,
8816     SUN_CATMACRO_FIXIDX,
8817     SUN_MALLOC_FIXIDX,
8818     SUN_RUSERS_SEMI_FIXIDX,
8819     SUN_SIGNAL_FIXIDX,
8820     SUNOS_STRLEN_FIXIDX,
8821     SVR4_DISABLE_OPT_FIXIDX,
8822     SVR4_GETCWD_FIXIDX,
8823     SVR4_PROFIL_FIXIDX,
8824     SVR4_SIGHANDLER_TYPE_FIXIDX,
8825     SVR4_UNDECLARED_GETRNGE_FIXIDX,
8826     SYSV68_STRING_FIXIDX,
8827     SYSZ_STDLIB_FOR_SUN_FIXIDX,
8828     THREAD_KEYWORD_FIXIDX,
8829     TINFO_CPLUSPLUS_FIXIDX,
8830     ULTRIX_CONST_FIXIDX,
8831     ULTRIX_CONST2_FIXIDX,
8832     VA_I960_MACRO_FIXIDX,
8833     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
8834     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
8835     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
8836     VMS_USE_QUOTED_INCLUDE_FIXIDX,
8837     VMS_ADD_MISSING_BRACES_FIXIDX,
8838     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
8839     VMS_DECC_BUILTIN_FIXIDX,
8840     VMS_NO_64BIT_GETOPT_FIXIDX,
8841     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
8842     VMS_USE_FAST_SETJMP_FIXIDX,
8843     VOID_NULL_FIXIDX,
8844     VXWORKS_GCC_PROBLEM_FIXIDX,
8845     VXWORKS_NEEDS_VXTYPES_FIXIDX,
8846     VXWORKS_NEEDS_VXWORKS_FIXIDX,
8847     VXWORKS_TIME_FIXIDX,
8848     X11_CLASS_FIXIDX,
8849     X11_CLASS_USAGE_FIXIDX,
8850     X11_NEW_FIXIDX,
8851     X11_SPRINTF_FIXIDX
8852 } t_fixinc_idx;
8854 tFixDesc fixDescList[ FIX_COUNT ] = {
8855   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
8856      apzAab_Aix_StdioMachs,
8857      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8858      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
8860   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
8861      apzAab_Darwin7_9_Long_Double_FuncsMachs,
8862      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8863      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8865   {  zAab_Darwin7_9_Long_Double_Funcs_2Name,    zAab_Darwin7_9_Long_Double_Funcs_2List,
8866      apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8867      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8868      aAab_Darwin7_9_Long_Double_Funcs_2Tests,   apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8870   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
8871      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8872      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8873      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8875   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
8876      apzAab_Fd_Zero_Gnu_Types_HMachs,
8877      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8878      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8880   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
8881      apzAab_Fd_Zero_Selectbits_HMachs,
8882      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8883      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8885   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
8886      apzAab_Solaris_Sys_Varargs_HMachs,
8887      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8888      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8890   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
8891      apzAab_Sun_MemcpyMachs,
8892      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8893      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
8895   {  zAix_ComplexName,    zAix_ComplexList,
8896      apzAix_ComplexMachs,
8897      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8898      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
8900   {  zAix_MallocName,    zAix_MallocList,
8901      apzAix_MallocMachs,
8902      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8903      aAix_MallocTests,   apzAix_MallocPatch, 0 },
8905   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
8906      apzAix_Net_If_ArpMachs,
8907      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8908      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
8910   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
8911      apzAix_Once_Init_1Machs,
8912      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8913      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
8915   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
8916      apzAix_Once_Init_2Machs,
8917      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8918      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
8920   {  zAix_PthreadName,    zAix_PthreadList,
8921      apzAix_PthreadMachs,
8922      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8923      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
8925   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
8926      apzAix_Stdint_1Machs,
8927      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8928      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
8930   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
8931      apzAix_Stdint_2Machs,
8932      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8933      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
8935   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
8936      apzAix_Stdint_3Machs,
8937      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8938      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
8940   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
8941      apzAix_Stdint_4Machs,
8942      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8943      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
8945   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
8946      apzAix_Stdint_5Machs,
8947      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8948      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
8950   {  zAix_SysmachineName,    zAix_SysmachineList,
8951      apzAix_SysmachineMachs,
8952      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8953      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
8955   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
8956      apzAix_Syswait_2Machs,
8957      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8958      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
8960   {  zAix_VolatileName,    zAix_VolatileList,
8961      apzAix_VolatileMachs,
8962      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8963      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
8965   {  zAlpha___AssertName,    zAlpha___AssertList,
8966      apzAlpha___AssertMachs,
8967      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8968      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
8970   {  zAlpha_AssertName,    zAlpha_AssertList,
8971      apzAlpha_AssertMachs,
8972      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8973      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
8975   {  zAlpha_GetoptName,    zAlpha_GetoptList,
8976      apzAlpha_GetoptMachs,
8977      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8978      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
8980   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
8981      apzAlpha_If_SemicolonMachs,
8982      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8983      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
8985   {  zAlpha_ParensName,    zAlpha_ParensList,
8986      apzAlpha_ParensMachs,
8987      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8988      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
8990   {  zAlpha_SbrkName,    zAlpha_SbrkList,
8991      apzAlpha_SbrkMachs,
8992      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8993      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
8995   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
8996      apzAvoid_Bool_DefineMachs,
8997      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8998      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
9000   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
9001      apzAvoid_Bool_TypeMachs,
9002      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9003      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
9005   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
9006      apzAvoid_Wchar_T_TypeMachs,
9007      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9008      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
9010   {  zBad_Struct_TermName,    zBad_Struct_TermList,
9011      apzBad_Struct_TermMachs,
9012      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9013      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
9015   {  zBadquoteName,    zBadquoteList,
9016      apzBadquoteMachs,
9017      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9018      aBadquoteTests,   apzBadquotePatch, 0 },
9020   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
9021      apzBroken_Assert_StdioMachs,
9022      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9023      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
9025   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
9026      apzBroken_Assert_StdlibMachs,
9027      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9028      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
9030   {  zBroken_CabsName,    zBroken_CabsList,
9031      apzBroken_CabsMachs,
9032      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9033      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
9035   {  zBroken_NanName,    zBroken_NanList,
9036      apzBroken_NanMachs,
9037      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9038      aBroken_NanTests,   apzBroken_NanPatch, 0 },
9040   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
9041      apzBsd_Stdio_Attrs_ConflictMachs,
9042      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9043      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9045   {  zCdef_CplusplusName,    zCdef_CplusplusList,
9046      apzCdef_CplusplusMachs,
9047      CDEF_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9048      aCdef_CplusplusTests,   apzCdef_CplusplusPatch, 0 },
9050   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
9051      apzCtrl_Quotes_DefMachs,
9052      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9053      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
9055   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
9056      apzCtrl_Quotes_UseMachs,
9057      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9058      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
9060   {  zCxx_UnreadyName,    zCxx_UnreadyList,
9061      apzCxx_UnreadyMachs,
9062      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9063      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
9065   {  zDarwin_ExterncName,    zDarwin_ExterncList,
9066      apzDarwin_ExterncMachs,
9067      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9068      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
9070   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
9071      apzDarwin_Gcc4_BreakageMachs,
9072      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9073      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
9075   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
9076      apzDarwin_Private_ExternMachs,
9077      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9078      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
9080   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
9081      apzDarwin_Stdint_1Machs,
9082      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9083      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
9085   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
9086      apzDarwin_Stdint_2Machs,
9087      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9088      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
9090   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
9091      apzDarwin_Stdint_3Machs,
9092      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9093      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
9095   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
9096      apzDarwin_Stdint_4Machs,
9097      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9098      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
9100   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
9101      apzDarwin_Stdint_5Machs,
9102      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9103      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
9105   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
9106      apzDarwin_Stdint_6Machs,
9107      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9108      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
9110   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
9111      apzDarwin_Stdint_7Machs,
9112      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9113      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
9115   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9116      apzDec_Intern_AsmMachs,
9117      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9118      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9120   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9121      apzDjgpp_Wchar_HMachs,
9122      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9123      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9125   {  zEcd_CursorName,    zEcd_CursorList,
9126      apzEcd_CursorMachs,
9127      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9128      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9130   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9131      apzFreebsd_Gcc3_BreakageMachs,
9132      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9133      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9135   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9136      apzFreebsd_Gcc4_BreakageMachs,
9137      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9138      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9140   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9141      apzGlibc_C99_Inline_1Machs,
9142      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9143      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9145   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
9146      apzGlibc_C99_Inline_1aMachs,
9147      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9148      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
9150   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9151      apzGlibc_C99_Inline_2Machs,
9152      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9153      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9155   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9156      apzGlibc_C99_Inline_3Machs,
9157      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9158      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9160   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9161      apzGlibc_C99_Inline_4Machs,
9162      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9163      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9165   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9166      apzGlibc_Mutex_InitMachs,
9167      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9168      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9170   {  zGlibc_StdintName,    zGlibc_StdintList,
9171      apzGlibc_StdintMachs,
9172      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9173      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
9175   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
9176      apzGlibc_StrncpyMachs,
9177      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9178      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
9180   {  zGlibc_TgmathName,    zGlibc_TgmathList,
9181      apzGlibc_TgmathMachs,
9182      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9183      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
9185   {  zGnu_TypesName,    zGnu_TypesList,
9186      apzGnu_TypesMachs,
9187      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9188      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9190   {  zHp_InlineName,    zHp_InlineList,
9191      apzHp_InlineMachs,
9192      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9193      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9195   {  zHp_SysfileName,    zHp_SysfileList,
9196      apzHp_SysfileMachs,
9197      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9198      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
9200   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
9201      apzHppa_Hpux_Fp_MacrosMachs,
9202      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9203      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
9205   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
9206      apzHpux10_Cpp_Pow_InlineMachs,
9207      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9208      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
9210   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
9211      apzHpux11_Cpp_Pow_InlineMachs,
9212      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9213      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
9215   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
9216      apzHpux10_Ctype_Declarations1Machs,
9217      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9218      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
9220   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
9221      apzHpux10_Ctype_Declarations2Machs,
9222      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9223      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
9225   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
9226      apzHpux10_Stdio_DeclarationsMachs,
9227      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9228      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
9230   {  zHpux11_AbsName,    zHpux11_AbsList,
9231      apzHpux11_AbsMachs,
9232      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9233      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
9235   {  zHpux11_FabsfName,    zHpux11_FabsfList,
9236      apzHpux11_FabsfMachs,
9237      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9238      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
9240   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
9241      apzHpux11_Pthread_ConstMachs,
9242      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9243      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
9245   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9246      apzHpux11_Size_TMachs,
9247      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9248      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9250   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9251      apzHpux11_SnprintfMachs,
9252      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9253      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9255   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9256      apzHpux11_VsnprintfMachs,
9257      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9258      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9260   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9261      apzHpux8_Bogus_InlinesMachs,
9262      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9263      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9265   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9266      apzHpux_Ctype_MacrosMachs,
9267      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9268      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9270   {  zHpux_HtonlName,    zHpux_HtonlList,
9271      apzHpux_HtonlMachs,
9272      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9275   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9276      apzHpux_Long_DoubleMachs,
9277      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9278      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9280   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
9281      apzHpux_Long_Double_2Machs,
9282      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
9285   {  zHpux_SystimeName,    zHpux_SystimeList,
9286      apzHpux_SystimeMachs,
9287      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9288      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9290   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9291      apzHpux_Spu_InfoMachs,
9292      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9293      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9295   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9296      apzHpux11_Extern_SendfileMachs,
9297      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9298      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9300   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9301      apzHpux11_Extern_SendpathMachs,
9302      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9303      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9305   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9306      apzHpux_Extern_ErrnoMachs,
9307      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9310   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
9311      apzHpux_Pthread_InitializersMachs,
9312      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9313      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
9315   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
9316      apzHpux_C99_IntptrMachs,
9317      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9318      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
9320   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
9321      apzHpux_C99_InttypesMachs,
9322      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9323      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
9325   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
9326      apzHpux_C99_Inttypes2Machs,
9327      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9328      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
9330   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
9331      apzHpux_Stdint_Least_FastMachs,
9332      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
9335   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
9336      apzHpux_Inttype_Int8_TMachs,
9337      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
9340   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
9341      apzHpux_Imaginary_IMachs,
9342      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
9345   {  zHuge_Val_HexName,    zHuge_Val_HexList,
9346      apzHuge_Val_HexMachs,
9347      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
9350   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
9351      apzHuge_Valf_HexMachs,
9352      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
9355   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
9356      apzHuge_Vall_HexMachs,
9357      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
9360   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
9361      apzInt_Abort_Free_And_ExitMachs,
9362      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
9365   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
9366      apzIo_Quotes_DefMachs,
9367      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
9370   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
9371      apzIo_Quotes_UseMachs,
9372      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
9375   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
9376      apzIp_Missing_SemiMachs,
9377      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9378      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
9380   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
9381      apzIrix_Limits_ConstMachs,
9382      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
9385   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
9386      apzIrix_Stdio_Va_ListMachs,
9387      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
9390   {  zKandr_ConcatName,    zKandr_ConcatList,
9391      apzKandr_ConcatMachs,
9392      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
9395   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
9396      apzLinux_Ia64_UcontextMachs,
9397      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
9400   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
9401      apzLynxos_No_Warning_In_Sys_Time_HMachs,
9402      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9405   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
9406      apzLynxos_Missing_PutenvMachs,
9407      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
9410   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
9411      apzMachine_Ansi_H_Va_ListMachs,
9412      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
9415   {  zMachine_NameName,    zMachine_NameList,
9416      apzMachine_NameMachs,
9417      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418      aMachine_NameTests,   apzMachine_NamePatch, 0 },
9420   {  zMath_ExceptionName,    zMath_ExceptionList,
9421      apzMath_ExceptionMachs,
9422      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
9425   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
9426      apzMath_Huge_Val_From_Dbl_MaxMachs,
9427      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9428      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9430   {  zNested_Auth_DesName,    zNested_Auth_DesList,
9431      apzNested_Auth_DesMachs,
9432      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
9435   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
9436      apzNetbsd_C99_Inline_1Machs,
9437      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
9440   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
9441      apzNetbsd_C99_Inline_2Machs,
9442      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
9445   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
9446      apzNetbsd_Extra_SemicolonMachs,
9447      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
9450   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
9451      apzNewlib_Stdint_1Machs,
9452      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9453      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
9455   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
9456      apzNewlib_Stdint_2Machs,
9457      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
9460   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
9461      apzNext_Math_PrefixMachs,
9462      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
9465   {  zNext_TemplateName,    zNext_TemplateList,
9466      apzNext_TemplateMachs,
9467      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
9470   {  zNext_VolitileName,    zNext_VolitileList,
9471      apzNext_VolitileMachs,
9472      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
9475   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
9476      apzNext_Wait_UnionMachs,
9477      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9478      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
9480   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
9481      apzNodeent_SyntaxMachs,
9482      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
9485   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
9486      apzOpenbsd_Null_DefinitionMachs,
9487      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
9490   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
9491      apzObstack_Lvalue_CastMachs,
9492      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
9495   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
9496      apzOpenbsd_Va_StartMachs,
9497      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
9500   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
9501      apzOsf_Namespace_AMachs,
9502      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
9505   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
9506      apzOsf_Namespace_CMachs,
9507      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
9510   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
9511      apzPthread_Incomplete_Struct_ArgumentMachs,
9512      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9515   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
9516      apzRead_Ret_TypeMachs,
9517      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
9520   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
9521      apzRpc_Xdr_Lvalue_Cast_AMachs,
9522      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9525   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
9526      apzRpc_Xdr_Lvalue_Cast_BMachs,
9527      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9530   {  zRs6000_DoubleName,    zRs6000_DoubleList,
9531      apzRs6000_DoubleMachs,
9532      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
9535   {  zRs6000_FchmodName,    zRs6000_FchmodList,
9536      apzRs6000_FchmodMachs,
9537      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
9540   {  zRs6000_ParamName,    zRs6000_ParamList,
9541      apzRs6000_ParamMachs,
9542      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
9545   {  zSolaris___RestrictName,    zSolaris___RestrictList,
9546      apzSolaris___RestrictMachs,
9547      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
9550   {  zSolaris_ComplexName,    zSolaris_ComplexList,
9551      apzSolaris_ComplexMachs,
9552      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
9553      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
9555   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
9556      apzSolaris_Complex_CxxMachs,
9557      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
9558      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
9560   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
9561      apzSolaris_Cxx_LinkageMachs,
9562      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
9565   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
9566      apzSolaris_Getc_Strict_StdcMachs,
9567      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
9570   {  zSolaris_Longjmp_NoreturnName,    zSolaris_Longjmp_NoreturnList,
9571      apzSolaris_Longjmp_NoreturnMachs,
9572      SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573      aSolaris_Longjmp_NoreturnTests,   apzSolaris_Longjmp_NoreturnPatch, 0 },
9575   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
9576      apzSolaris_Math_1Machs,
9577      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
9580   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
9581      apzSolaris_Math_2Machs,
9582      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
9585   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
9586      apzSolaris_Math_3Machs,
9587      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
9590   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
9591      apzSolaris_Math_4Machs,
9592      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
9595   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
9596      apzSolaris_Math_8Machs,
9597      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
9600   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
9601      apzSolaris_Math_9Machs,
9602      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
9605   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
9606      apzSolaris_Math_10Machs,
9607      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
9610   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
9611      apzSolaris_Mutex_Init_2Machs,
9612      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
9615   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
9616      apzSolaris_Pow_Int_OverloadMachs,
9617      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
9620   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
9621      apzSolaris_Rwlock_Init_1Machs,
9622      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
9625   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
9626      apzSolaris_Once_Init_1Machs,
9627      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
9630   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
9631      apzSolaris_Once_Init_2Machs,
9632      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
9635   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
9636      apzSolaris_Int_ConstMachs,
9637      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
9640   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
9641      apzSolaris_Int_Limits_1Machs,
9642      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
9645   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
9646      apzSolaris_Int_Limits_2Machs,
9647      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
9650   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
9651      apzSolaris_Int_Limits_3Machs,
9652      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
9655   {  zSolaris_Int_TypesName,    zSolaris_Int_TypesList,
9656      apzSolaris_Int_TypesMachs,
9657      SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658      aSolaris_Int_TypesTests,   apzSolaris_Int_TypesPatch, 0 },
9660   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
9661      apzSolaris_Posix_Spawn_RestrictMachs,
9662      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
9665   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
9666      apzSolaris_Std___FilbufMachs,
9667      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
9670   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
9671      apzSolaris_Stdio_TagMachs,
9672      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9673      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
9675   {  zSolaris_Sys_Va_ListName,    zSolaris_Sys_Va_ListList,
9676      apzSolaris_Sys_Va_ListMachs,
9677      SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678      aSolaris_Sys_Va_ListTests,   apzSolaris_Sys_Va_ListPatch, 0 },
9680   {  zStatsswtchName,    zStatsswtchList,
9681      apzStatsswtchMachs,
9682      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683      aStatsswtchTests,   apzStatsswtchPatch, 0 },
9685   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
9686      apzStdio_Stdarg_HMachs,
9687      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9688      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
9690   {  zStdio_Va_ListName,    zStdio_Va_ListList,
9691      apzStdio_Va_ListMachs,
9692      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9693      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
9695   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
9696      apzStdio_Va_List_ClientsMachs,
9697      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9698      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
9700   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
9701      apzStrict_Ansi_NotMachs,
9702      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
9705   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
9706      apzStrict_Ansi_Not_CtdMachs,
9707      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
9710   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
9711      apzStrict_Ansi_OnlyMachs,
9712      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
9715   {  zStruct_FileName,    zStruct_FileList,
9716      apzStruct_FileMachs,
9717      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718      aStruct_FileTests,   apzStruct_FilePatch, 0 },
9720   {  zStruct_SockaddrName,    zStruct_SockaddrList,
9721      apzStruct_SockaddrMachs,
9722      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
9725   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
9726      apzSun_Auth_ProtoMachs,
9727      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
9730   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
9731      apzSun_Bogus_IfdefMachs,
9732      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
9735   {  zSun_CatmacroName,    zSun_CatmacroList,
9736      apzSun_CatmacroMachs,
9737      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
9740   {  zSun_MallocName,    zSun_MallocList,
9741      apzSun_MallocMachs,
9742      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9743      aSun_MallocTests,   apzSun_MallocPatch, 0 },
9745   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
9746      apzSun_Rusers_SemiMachs,
9747      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9748      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
9750   {  zSun_SignalName,    zSun_SignalList,
9751      apzSun_SignalMachs,
9752      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9753      aSun_SignalTests,   apzSun_SignalPatch, 0 },
9755   {  zSunos_StrlenName,    zSunos_StrlenList,
9756      apzSunos_StrlenMachs,
9757      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
9760   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
9761      apzSvr4_Disable_OptMachs,
9762      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9763      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
9765   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
9766      apzSvr4_GetcwdMachs,
9767      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
9770   {  zSvr4_ProfilName,    zSvr4_ProfilList,
9771      apzSvr4_ProfilMachs,
9772      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
9775   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
9776      apzSvr4_Sighandler_TypeMachs,
9777      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
9780   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
9781      apzSvr4_Undeclared_GetrngeMachs,
9782      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
9785   {  zSysv68_StringName,    zSysv68_StringList,
9786      apzSysv68_StringMachs,
9787      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9788      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
9790   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
9791      apzSysz_Stdlib_For_SunMachs,
9792      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
9795   {  zThread_KeywordName,    zThread_KeywordList,
9796      apzThread_KeywordMachs,
9797      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
9800   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
9801      apzTinfo_CplusplusMachs,
9802      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
9805   {  zUltrix_ConstName,    zUltrix_ConstList,
9806      apzUltrix_ConstMachs,
9807      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
9810   {  zUltrix_Const2Name,    zUltrix_Const2List,
9811      apzUltrix_Const2Machs,
9812      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
9815   {  zVa_I960_MacroName,    zVa_I960_MacroList,
9816      apzVa_I960_MacroMachs,
9817      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
9820   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
9821      apzVms_Define_Can_Use_Extern_PrefixMachs,
9822      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
9825   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
9826      apzVms_Use_Pragma_Extern_ModelMachs,
9827      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
9830   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
9831      apzVms_Disable_Decc_String_BuiltinsMachs,
9832      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
9835   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
9836      apzVms_Use_Quoted_IncludeMachs,
9837      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
9840   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
9841      apzVms_Add_Missing_BracesMachs,
9842      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
9845   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
9846      apzVms_Do_Not_Redeclare_HostaliasMachs,
9847      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
9850   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
9851      apzVms_Decc_BuiltinMachs,
9852      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
9853      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
9855   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
9856      apzVms_No_64bit_GetoptMachs,
9857      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
9860   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
9861      apzVms_Forward_Declare_StructMachs,
9862      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
9865   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
9866      apzVms_Use_Fast_SetjmpMachs,
9867      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
9870   {  zVoid_NullName,    zVoid_NullList,
9871      apzVoid_NullMachs,
9872      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9873      aVoid_NullTests,   apzVoid_NullPatch, 0 },
9875   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
9876      apzVxworks_Gcc_ProblemMachs,
9877      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9878      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
9880   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
9881      apzVxworks_Needs_VxtypesMachs,
9882      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
9885   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
9886      apzVxworks_Needs_VxworksMachs,
9887      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9888      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
9890   {  zVxworks_TimeName,    zVxworks_TimeList,
9891      apzVxworks_TimeMachs,
9892      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
9895   {  zX11_ClassName,    zX11_ClassList,
9896      apzX11_ClassMachs,
9897      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898      aX11_ClassTests,   apzX11_ClassPatch, 0 },
9900   {  zX11_Class_UsageName,    zX11_Class_UsageList,
9901      apzX11_Class_UsageMachs,
9902      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
9905   {  zX11_NewName,    zX11_NewList,
9906      apzX11_NewMachs,
9907      X11_NEW_TEST_CT, FD_MACH_ONLY,
9908      aX11_NewTests,   apzX11_NewPatch, 0 },
9910   {  zX11_SprintfName,    zX11_SprintfList,
9911      apzX11_SprintfMachs,
9912      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }