OSDN Git Service

crtstuff: adjust tm clones for no attribute hidden
[pf3gnuchains/gcc-fork.git] / fixincludes / fixincl.x
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  November  7, 2011 at 01:16:39 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 Mon Nov  7 13:16:39 EST 2011
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 222 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;
43
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45  *
46  *  Description of Aab_Aix_Stdio fix
47  */
48 tSCC zAab_Aix_StdioName[] =
49      "AAB_aix_stdio";
50
51 /*
52  *  File name selection pattern
53  */
54 tSCC zAab_Aix_StdioList[] =
55   "stdio.h\0";
56 /*
57  *  Machine/OS name selection pattern
58  */
59 tSCC* apzAab_Aix_StdioMachs[] = {
60         "*-*-aix*",
61         (const char*)NULL };
62
63 /*
64  *  content selection pattern - do fix if pattern found
65  */
66 tSCC zAab_Aix_StdioSelect0[] =
67        "define fopen fopen64";
68
69 #define    AAB_AIX_STDIO_TEST_CT  1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71   { TT_EGREP,    zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
72
73 /*
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 };
101
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
103  *
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";
108
109 /*
110  *  File name selection pattern
111  */
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113   "architecture/ppc/math.h\0";
114 /*
115  *  Machine/OS name selection pattern
116  */
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
118         "*-*-darwin7.9*",
119         (const char*)NULL };
120
121 /*
122  *  content bypass pattern - skip fix if pattern found
123  */
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
125        "powl";
126
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 }, };
130
131 /*
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 };
215
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
217  *
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";
222
223 /*
224  *  File name selection pattern
225  */
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
227   "math.h\0";
228 /*
229  *  Machine/OS name selection pattern
230  */
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
232         "*-*-darwin7.9*",
233         (const char*)NULL };
234
235 /*
236  *  content selection pattern - do fix if pattern found
237  */
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239        "#include[ \\t]+\\\"";
240
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 }, };
244
245 /*
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 };
253
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
255  *
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";
260
261 /*
262  *  File name selection pattern
263  */
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265   "asm/posix_types.h\0";
266 /*
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 };
272
273 /*
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";
282
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 }, };
288
289 /*
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 };
312
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
314  *
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";
319
320 /*
321  *  File name selection pattern
322  */
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
324   "gnu/types.h\0";
325 /*
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
333
334 /*
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 };
356
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
358  *
359  *  Description of Aab_Fd_Zero_Selectbits_H fix
360  */
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362      "AAB_fd_zero_selectbits_h";
363
364 /*
365  *  File name selection pattern
366  */
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
368   "selectbits.h\0";
369 /*
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
377
378 /*
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 };
404
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
406  *
407  *  Description of Aab_Solaris_Sys_Varargs_H fix
408  */
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410      "AAB_solaris_sys_varargs_h";
411
412 /*
413  *  File name selection pattern
414  */
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
416   "sys/varargs.h\0";
417 /*
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
425
426 /*
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 };
436
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
438  *
439  *  Description of Aab_Sun_Memcpy fix
440  */
441 tSCC zAab_Sun_MemcpyName[] =
442      "AAB_sun_memcpy";
443
444 /*
445  *  File name selection pattern
446  */
447 tSCC zAab_Sun_MemcpyList[] =
448   "memory.h\0";
449 /*
450  *  Machine/OS name selection pattern
451  */
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
453
454 /*
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)\\*/";
459
460 #define    AAB_SUN_MEMCPY_TEST_CT  1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
463
464 /*
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 };
485
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
487  *
488  *  Description of Aix_Complex fix
489  */
490 tSCC zAix_ComplexName[] =
491      "aix_complex";
492
493 /*
494  *  File name selection pattern
495  */
496 tSCC zAix_ComplexList[] =
497   "complex.h\0";
498 /*
499  *  Machine/OS name selection pattern
500  */
501 tSCC* apzAix_ComplexMachs[] = {
502         "*-*-aix*",
503         (const char*)NULL };
504
505 /*
506  *  content selection pattern - do fix if pattern found
507  */
508 tSCC zAix_ComplexSelect0[] =
509        "#define[ \t]_Complex_I[ \t]__I";
510
511 #define    AIX_COMPLEX_TEST_CT  1
512 static tTestDesc aAix_ComplexTests[] = {
513   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
514
515 /*
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 };
522
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
524  *
525  *  Description of Aix_Net_If_Arp fix
526  */
527 tSCC zAix_Net_If_ArpName[] =
528      "aix_net_if_arp";
529
530 /*
531  *  File name selection pattern
532  */
533 tSCC zAix_Net_If_ArpList[] =
534   "net/if_arp.h\0";
535 /*
536  *  Machine/OS name selection pattern
537  */
538 tSCC* apzAix_Net_If_ArpMachs[] = {
539         "*-*-aix*",
540         (const char*)NULL };
541
542 /*
543  *  content selection pattern - do fix if pattern found
544  */
545 tSCC zAix_Net_If_ArpSelect0[] =
546        "^struct  fc_softc \\{";
547
548 #define    AIX_NET_IF_ARP_TEST_CT  1
549 static tTestDesc aAix_Net_If_ArpTests[] = {
550   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
551
552 /*
553  *  Fix Command Arguments for Aix_Net_If_Arp
554  */
555 static const char* apzAix_Net_If_ArpPatch[] = {
556     "format",
557     "typedef struct _fc_softc {",
558     (char*)NULL };
559
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
561  *
562  *  Description of Aix_Once_Init_1 fix
563  */
564 tSCC zAix_Once_Init_1Name[] =
565      "aix_once_init_1";
566
567 /*
568  *  File name selection pattern
569  */
570 tSCC zAix_Once_Init_1List[] =
571   "pthread.h\0";
572 /*
573  *  Machine/OS name selection pattern
574  */
575 tSCC* apzAix_Once_Init_1Machs[] = {
576         "*-*-aix*",
577         (const char*)NULL };
578
579 /*
580  *  content selection pattern - do fix if pattern found
581  */
582 tSCC zAix_Once_Init_1Select0[] =
583        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
584 \\{ \\\\\n";
585
586 #define    AIX_ONCE_INIT_1_TEST_CT  1
587 static tTestDesc aAix_Once_Init_1Tests[] = {
588   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
589
590 /*
591  *  Fix Command Arguments for Aix_Once_Init_1
592  */
593 static const char* apzAix_Once_Init_1Patch[] = {
594     "format",
595     "#define PTHREAD_ONCE_INIT \\\n\
596 {{ \\\n",
597     (char*)NULL };
598
599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
600  *
601  *  Description of Aix_Once_Init_2 fix
602  */
603 tSCC zAix_Once_Init_2Name[] =
604      "aix_once_init_2";
605
606 /*
607  *  File name selection pattern
608  */
609 tSCC zAix_Once_Init_2List[] =
610   "pthread.h\0";
611 /*
612  *  Machine/OS name selection pattern
613  */
614 tSCC* apzAix_Once_Init_2Machs[] = {
615         "*-*-aix*",
616         (const char*)NULL };
617
618 /*
619  *  content selection pattern - do fix if pattern found
620  */
621 tSCC zAix_Once_Init_2Select0[] =
622        "[ \t]0 \\\\\n\
623 \\}\n";
624
625 #define    AIX_ONCE_INIT_2_TEST_CT  1
626 static tTestDesc aAix_Once_Init_2Tests[] = {
627   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
628
629 /*
630  *  Fix Command Arguments for Aix_Once_Init_2
631  */
632 static const char* apzAix_Once_Init_2Patch[] = {
633     "format",
634     "\t0 \\\n\
635 }}\n",
636     (char*)NULL };
637
638 /* * * * * * * * * * * * * * * * * * * * * * * * * *
639  *
640  *  Description of Aix_Pthread fix
641  */
642 tSCC zAix_PthreadName[] =
643      "aix_pthread";
644
645 /*
646  *  File name selection pattern
647  */
648 tSCC zAix_PthreadList[] =
649   "pthread.h\0";
650 /*
651  *  Machine/OS name selection pattern
652  */
653 #define apzAix_PthreadMachs (const char**)NULL
654
655 /*
656  *  content selection pattern - do fix if pattern found
657  */
658 tSCC zAix_PthreadSelect0[] =
659        "(#define [A-Za-z_0-9]+)(\\\\\n\
660 [^A-Za-z_0-9 \t\n\
661 (])";
662
663 #define    AIX_PTHREAD_TEST_CT  1
664 static tTestDesc aAix_PthreadTests[] = {
665   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
666
667 /*
668  *  Fix Command Arguments for Aix_Pthread
669  */
670 static const char* apzAix_PthreadPatch[] = {
671     "format",
672     "%1 %2",
673     (char*)NULL };
674
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
676  *
677  *  Description of Aix_Stdint_1 fix
678  */
679 tSCC zAix_Stdint_1Name[] =
680      "aix_stdint_1";
681
682 /*
683  *  File name selection pattern
684  */
685 tSCC zAix_Stdint_1List[] =
686   "stdint-aix.h\0stdint.h\0";
687 /*
688  *  Machine/OS name selection pattern
689  */
690 tSCC* apzAix_Stdint_1Machs[] = {
691         "*-*-aix*",
692         (const char*)NULL };
693
694 /*
695  *  content selection pattern - do fix if pattern found
696  */
697 tSCC zAix_Stdint_1Select0[] =
698        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
699 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
700
701 #define    AIX_STDINT_1_TEST_CT  1
702 static tTestDesc aAix_Stdint_1Tests[] = {
703   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
704
705 /*
706  *  Fix Command Arguments for Aix_Stdint_1
707  */
708 static const char* apzAix_Stdint_1Patch[] = {
709     "format",
710     "#define UINT8_MAX\t(255)\n\
711 #define UINT16_MAX\t(65535)",
712     (char*)NULL };
713
714 /* * * * * * * * * * * * * * * * * * * * * * * * * *
715  *
716  *  Description of Aix_Stdint_2 fix
717  */
718 tSCC zAix_Stdint_2Name[] =
719      "aix_stdint_2";
720
721 /*
722  *  File name selection pattern
723  */
724 tSCC zAix_Stdint_2List[] =
725   "stdint-aix.h\0stdint.h\0";
726 /*
727  *  Machine/OS name selection pattern
728  */
729 tSCC* apzAix_Stdint_2Machs[] = {
730         "*-*-aix*",
731         (const char*)NULL };
732
733 /*
734  *  content selection pattern - do fix if pattern found
735  */
736 tSCC zAix_Stdint_2Select0[] =
737        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
738 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
739 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
740 #else\n\
741 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
742 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
743 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
744
745 #define    AIX_STDINT_2_TEST_CT  1
746 static tTestDesc aAix_Stdint_2Tests[] = {
747   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
748
749 /*
750  *  Fix Command Arguments for Aix_Stdint_2
751  */
752 static const char* apzAix_Stdint_2Patch[] = {
753     "format",
754     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
755 #define INTPTR_MAX\t9223372036854775807L\n\
756 #define UINTPTR_MAX\t18446744073709551615UL\n\
757 #else\n\
758 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
759 #define INTPTR_MAX\t2147483647L\n\
760 #define UINTPTR_MAX\t4294967295UL",
761     (char*)NULL };
762
763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
764  *
765  *  Description of Aix_Stdint_3 fix
766  */
767 tSCC zAix_Stdint_3Name[] =
768      "aix_stdint_3";
769
770 /*
771  *  File name selection pattern
772  */
773 tSCC zAix_Stdint_3List[] =
774   "stdint-aix.h\0stdint.h\0";
775 /*
776  *  Machine/OS name selection pattern
777  */
778 tSCC* apzAix_Stdint_3Machs[] = {
779         "*-*-aix*",
780         (const char*)NULL };
781
782 /*
783  *  content selection pattern - do fix if pattern found
784  */
785 tSCC zAix_Stdint_3Select0[] =
786        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
787 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
788 #else\n\
789 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
790 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
791
792 #define    AIX_STDINT_3_TEST_CT  1
793 static tTestDesc aAix_Stdint_3Tests[] = {
794   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
795
796 /*
797  *  Fix Command Arguments for Aix_Stdint_3
798  */
799 static const char* apzAix_Stdint_3Patch[] = {
800     "format",
801     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
802 #define PTRDIFF_MAX\t9223372036854775807L\n\
803 #else\n\
804 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
805 #define PTRDIFF_MAX\t2147483647L",
806     (char*)NULL };
807
808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
809  *
810  *  Description of Aix_Stdint_4 fix
811  */
812 tSCC zAix_Stdint_4Name[] =
813      "aix_stdint_4";
814
815 /*
816  *  File name selection pattern
817  */
818 tSCC zAix_Stdint_4List[] =
819   "stdint-aix.h\0stdint.h\0";
820 /*
821  *  Machine/OS name selection pattern
822  */
823 tSCC* apzAix_Stdint_4Machs[] = {
824         "*-*-aix*",
825         (const char*)NULL };
826
827 /*
828  *  content selection pattern - do fix if pattern found
829  */
830 tSCC zAix_Stdint_4Select0[] =
831        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
832 #else\n\
833 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
834
835 #define    AIX_STDINT_4_TEST_CT  1
836 static tTestDesc aAix_Stdint_4Tests[] = {
837   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
838
839 /*
840  *  Fix Command Arguments for Aix_Stdint_4
841  */
842 static const char* apzAix_Stdint_4Patch[] = {
843     "format",
844     "#define SIZE_MAX\t18446744073709551615UL\n\
845 #else\n\
846 #define SIZE_MAX\t4294967295UL",
847     (char*)NULL };
848
849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
850  *
851  *  Description of Aix_Stdint_5 fix
852  */
853 tSCC zAix_Stdint_5Name[] =
854      "aix_stdint_5";
855
856 /*
857  *  File name selection pattern
858  */
859 tSCC zAix_Stdint_5List[] =
860   "stdint-aix.h\0stdint.h\0";
861 /*
862  *  Machine/OS name selection pattern
863  */
864 tSCC* apzAix_Stdint_5Machs[] = {
865         "*-*-aix*",
866         (const char*)NULL };
867
868 /*
869  *  content selection pattern - do fix if pattern found
870  */
871 tSCC zAix_Stdint_5Select0[] =
872        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
873 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
874
875 #define    AIX_STDINT_5_TEST_CT  1
876 static tTestDesc aAix_Stdint_5Tests[] = {
877   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
878
879 /*
880  *  Fix Command Arguments for Aix_Stdint_5
881  */
882 static const char* apzAix_Stdint_5Patch[] = {
883     "format",
884     "#define UINT8_C(c)\tc\n\
885 #define UINT16_C(c)\tc",
886     (char*)NULL };
887
888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
889  *
890  *  Description of Aix_Sysmachine fix
891  */
892 tSCC zAix_SysmachineName[] =
893      "aix_sysmachine";
894
895 /*
896  *  File name selection pattern
897  */
898 tSCC zAix_SysmachineList[] =
899   "sys/machine.h\0";
900 /*
901  *  Machine/OS name selection pattern
902  */
903 #define apzAix_SysmachineMachs (const char**)NULL
904
905 /*
906  *  content selection pattern - do fix if pattern found
907  */
908 tSCC zAix_SysmachineSelect0[] =
909        "\\\\ +\n";
910
911 #define    AIX_SYSMACHINE_TEST_CT  1
912 static tTestDesc aAix_SysmachineTests[] = {
913   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
914
915 /*
916  *  Fix Command Arguments for Aix_Sysmachine
917  */
918 static const char* apzAix_SysmachinePatch[] = {
919     "format",
920     "\\\n",
921     (char*)NULL };
922
923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
924  *
925  *  Description of Aix_Syswait_2 fix
926  */
927 tSCC zAix_Syswait_2Name[] =
928      "aix_syswait_2";
929
930 /*
931  *  File name selection pattern
932  */
933 tSCC zAix_Syswait_2List[] =
934   "sys/wait.h\0";
935 /*
936  *  Machine/OS name selection pattern
937  */
938 #define apzAix_Syswait_2Machs (const char**)NULL
939
940 /*
941  *  content selection pattern - do fix if pattern found
942  */
943 tSCC zAix_Syswait_2Select0[] =
944        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
945
946 #define    AIX_SYSWAIT_2_TEST_CT  1
947 static tTestDesc aAix_Syswait_2Tests[] = {
948   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
949
950 /*
951  *  Fix Command Arguments for Aix_Syswait_2
952  */
953 static const char* apzAix_Syswait_2Patch[] = {
954     "format",
955     "? (int)%1",
956     (char*)NULL };
957
958 /* * * * * * * * * * * * * * * * * * * * * * * * * *
959  *
960  *  Description of Aix_Volatile fix
961  */
962 tSCC zAix_VolatileName[] =
963      "aix_volatile";
964
965 /*
966  *  File name selection pattern
967  */
968 tSCC zAix_VolatileList[] =
969   "sys/signal.h\0";
970 /*
971  *  Machine/OS name selection pattern
972  */
973 #define apzAix_VolatileMachs (const char**)NULL
974
975 /*
976  *  content selection pattern - do fix if pattern found
977  */
978 tSCC zAix_VolatileSelect0[] =
979        "typedef volatile int sig_atomic_t";
980
981 #define    AIX_VOLATILE_TEST_CT  1
982 static tTestDesc aAix_VolatileTests[] = {
983   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
984
985 /*
986  *  Fix Command Arguments for Aix_Volatile
987  */
988 static const char* apzAix_VolatilePatch[] = {
989     "format",
990     "typedef int sig_atomic_t",
991     (char*)NULL };
992
993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
994  *
995  *  Description of Alpha___Assert fix
996  */
997 tSCC zAlpha___AssertName[] =
998      "alpha___assert";
999
1000 /*
1001  *  File name selection pattern
1002  */
1003 tSCC zAlpha___AssertList[] =
1004   "assert.h\0";
1005 /*
1006  *  Machine/OS name selection pattern
1007  */
1008 #define apzAlpha___AssertMachs (const char**)NULL
1009
1010 /*
1011  *  content selection pattern - do fix if pattern found
1012  */
1013 tSCC zAlpha___AssertSelect0[] =
1014        "__assert\\(char \\*, char \\*, int\\)";
1015
1016 #define    ALPHA___ASSERT_TEST_CT  1
1017 static tTestDesc aAlpha___AssertTests[] = {
1018   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1019
1020 /*
1021  *  Fix Command Arguments for Alpha___Assert
1022  */
1023 static const char* apzAlpha___AssertPatch[] = {
1024     "format",
1025     "__assert(const char *, const char *, int)",
1026     (char*)NULL };
1027
1028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1029  *
1030  *  Description of Alpha___Extern_Prefix fix
1031  */
1032 tSCC zAlpha___Extern_PrefixName[] =
1033      "alpha___extern_prefix";
1034
1035 /*
1036  *  File name selection pattern
1037  */
1038 #define zAlpha___Extern_PrefixList (char*)NULL
1039 /*
1040  *  Machine/OS name selection pattern
1041  */
1042 tSCC* apzAlpha___Extern_PrefixMachs[] = {
1043         "alpha*-dec-osf*",
1044         (const char*)NULL };
1045
1046 /*
1047  *  content selection pattern - do fix if pattern found
1048  */
1049 tSCC zAlpha___Extern_PrefixSelect0[] =
1050        "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
1051 (#[ \t]*pragma[ \t]*extern_prefix.*)";
1052
1053 #define    ALPHA___EXTERN_PREFIX_TEST_CT  1
1054 static tTestDesc aAlpha___Extern_PrefixTests[] = {
1055   { TT_EGREP,    zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
1056
1057 /*
1058  *  Fix Command Arguments for Alpha___Extern_Prefix
1059  */
1060 static const char* apzAlpha___Extern_PrefixPatch[] = {
1061     "format",
1062     "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
1063 %3",
1064     (char*)NULL };
1065
1066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1067  *
1068  *  Description of Alpha___Extern_Prefix_Standards fix
1069  */
1070 tSCC zAlpha___Extern_Prefix_StandardsName[] =
1071      "alpha___extern_prefix_standards";
1072
1073 /*
1074  *  File name selection pattern
1075  */
1076 tSCC zAlpha___Extern_Prefix_StandardsList[] =
1077   "standards.h\0";
1078 /*
1079  *  Machine/OS name selection pattern
1080  */
1081 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
1082         "alpha*-dec-osf*",
1083         (const char*)NULL };
1084
1085 /*
1086  *  content selection pattern - do fix if pattern found
1087  */
1088 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
1089        ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
1090
1091 #define    ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT  1
1092 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
1093   { TT_EGREP,    zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
1094
1095 /*
1096  *  Fix Command Arguments for Alpha___Extern_Prefix_Standards
1097  */
1098 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
1099     "format",
1100     "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
1101     (char*)NULL };
1102
1103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1104  *
1105  *  Description of Alpha___Extern_Prefix_Sys_Stat fix
1106  */
1107 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
1108      "alpha___extern_prefix_sys_stat";
1109
1110 /*
1111  *  File name selection pattern
1112  */
1113 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
1114   "sys/stat.h\0sys/mount.h\0";
1115 /*
1116  *  Machine/OS name selection pattern
1117  */
1118 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1119         "alpha*-dec-osf5*",
1120         (const char*)NULL };
1121
1122 /*
1123  *  content selection pattern - do fix if pattern found
1124  */
1125 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1126        "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1127
1128 #define    ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT  1
1129 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1130   { TT_EGREP,    zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1131
1132 /*
1133  *  Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1134  */
1135 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1136     "format",
1137     "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1138     (char*)NULL };
1139
1140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1141  *
1142  *  Description of Alpha_Assert fix
1143  */
1144 tSCC zAlpha_AssertName[] =
1145      "alpha_assert";
1146
1147 /*
1148  *  File name selection pattern
1149  */
1150 tSCC zAlpha_AssertList[] =
1151   "assert.h\0";
1152 /*
1153  *  Machine/OS name selection pattern
1154  */
1155 #define apzAlpha_AssertMachs (const char**)NULL
1156
1157 /*
1158  *  content selection pattern - do fix if pattern found
1159  */
1160 tSCC zAlpha_AssertSelect0[] =
1161        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1162
1163 #define    ALPHA_ASSERT_TEST_CT  1
1164 static tTestDesc aAlpha_AssertTests[] = {
1165   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1166
1167 /*
1168  *  Fix Command Arguments for Alpha_Assert
1169  */
1170 static const char* apzAlpha_AssertPatch[] = {
1171     "format",
1172     "%1(EX)",
1173     (char*)NULL };
1174
1175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1176  *
1177  *  Description of Alpha_Bad_Lval fix
1178  */
1179 tSCC zAlpha_Bad_LvalName[] =
1180      "alpha_bad_lval";
1181
1182 /*
1183  *  File name selection pattern
1184  */
1185 #define zAlpha_Bad_LvalList (char*)NULL
1186 /*
1187  *  Machine/OS name selection pattern
1188  */
1189 tSCC* apzAlpha_Bad_LvalMachs[] = {
1190         "alpha*-dec-osf*",
1191         (const char*)NULL };
1192
1193 /*
1194  *  content selection pattern - do fix if pattern found
1195  */
1196 tSCC zAlpha_Bad_LvalSelect0[] =
1197        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1198
1199 #define    ALPHA_BAD_LVAL_TEST_CT  1
1200 static tTestDesc aAlpha_Bad_LvalTests[] = {
1201   { TT_EGREP,    zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1202
1203 /*
1204  *  Fix Command Arguments for Alpha_Bad_Lval
1205  */
1206 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
1207     "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1208     (char*)NULL };
1209
1210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1211  *
1212  *  Description of Alpha_Getopt fix
1213  */
1214 tSCC zAlpha_GetoptName[] =
1215      "alpha_getopt";
1216
1217 /*
1218  *  File name selection pattern
1219  */
1220 tSCC zAlpha_GetoptList[] =
1221   "stdio.h\0stdlib.h\0";
1222 /*
1223  *  Machine/OS name selection pattern
1224  */
1225 #define apzAlpha_GetoptMachs (const char**)NULL
1226
1227 /*
1228  *  content selection pattern - do fix if pattern found
1229  */
1230 tSCC zAlpha_GetoptSelect0[] =
1231        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1232
1233 #define    ALPHA_GETOPT_TEST_CT  1
1234 static tTestDesc aAlpha_GetoptTests[] = {
1235   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1236
1237 /*
1238  *  Fix Command Arguments for Alpha_Getopt
1239  */
1240 static const char* apzAlpha_GetoptPatch[] = {
1241     "format",
1242     "getopt(int, char *const[], const char *)",
1243     (char*)NULL };
1244
1245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1246  *
1247  *  Description of Alpha_If_Semicolon fix
1248  */
1249 tSCC zAlpha_If_SemicolonName[] =
1250      "alpha_if_semicolon";
1251
1252 /*
1253  *  File name selection pattern
1254  */
1255 tSCC zAlpha_If_SemicolonList[] =
1256   "net/if.h\0";
1257 /*
1258  *  Machine/OS name selection pattern
1259  */
1260 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1261
1262 /*
1263  *  content selection pattern - do fix if pattern found
1264  */
1265 tSCC zAlpha_If_SemicolonSelect0[] =
1266        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1267
1268 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1269 static tTestDesc aAlpha_If_SemicolonTests[] = {
1270   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1271
1272 /*
1273  *  Fix Command Arguments for Alpha_If_Semicolon
1274  */
1275 static const char* apzAlpha_If_SemicolonPatch[] = {
1276     "format",
1277     "struct sockaddr vmif_paddr;\t/*",
1278     (char*)NULL };
1279
1280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1281  *
1282  *  Description of Alpha_Parens fix
1283  */
1284 tSCC zAlpha_ParensName[] =
1285      "alpha_parens";
1286
1287 /*
1288  *  File name selection pattern
1289  */
1290 tSCC zAlpha_ParensList[] =
1291   "sym.h\0";
1292 /*
1293  *  Machine/OS name selection pattern
1294  */
1295 #define apzAlpha_ParensMachs (const char**)NULL
1296
1297 /*
1298  *  content selection pattern - do fix if pattern found
1299  */
1300 tSCC zAlpha_ParensSelect0[] =
1301        "#ifndef\\(__mips64\\)";
1302
1303 #define    ALPHA_PARENS_TEST_CT  1
1304 static tTestDesc aAlpha_ParensTests[] = {
1305   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1306
1307 /*
1308  *  Fix Command Arguments for Alpha_Parens
1309  */
1310 static const char* apzAlpha_ParensPatch[] = {
1311     "format",
1312     "#ifndef __mips64",
1313     (char*)NULL };
1314
1315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1316  *
1317  *  Description of Alpha_Pthread fix
1318  */
1319 tSCC zAlpha_PthreadName[] =
1320      "alpha_pthread";
1321
1322 /*
1323  *  File name selection pattern
1324  */
1325 tSCC zAlpha_PthreadList[] =
1326   "pthread.h\0";
1327 /*
1328  *  Machine/OS name selection pattern
1329  */
1330 tSCC* apzAlpha_PthreadMachs[] = {
1331         "alpha*-dec-osf*",
1332         (const char*)NULL };
1333
1334 /*
1335  *  content selection pattern - do fix if pattern found
1336  */
1337 tSCC zAlpha_PthreadSelect0[] =
1338        "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1339 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1340
1341 #define    ALPHA_PTHREAD_TEST_CT  1
1342 static tTestDesc aAlpha_PthreadTests[] = {
1343   { TT_EGREP,    zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1344
1345 /*
1346  *  Fix Command Arguments for Alpha_Pthread
1347  */
1348 static const char* apzAlpha_PthreadPatch[] = {
1349     "format",
1350     "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1351 %5",
1352     (char*)NULL };
1353
1354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1355  *
1356  *  Description of Alpha_Pthread_Gcc fix
1357  */
1358 tSCC zAlpha_Pthread_GccName[] =
1359      "alpha_pthread_gcc";
1360
1361 /*
1362  *  File name selection pattern
1363  */
1364 tSCC zAlpha_Pthread_GccList[] =
1365   "pthread.h\0";
1366 /*
1367  *  Machine/OS name selection pattern
1368  */
1369 tSCC* apzAlpha_Pthread_GccMachs[] = {
1370         "alpha*-dec-osf*",
1371         (const char*)NULL };
1372
1373 /*
1374  *  content selection pattern - do fix if pattern found
1375  */
1376 tSCC zAlpha_Pthread_GccSelect0[] =
1377        "#else\n\
1378 # error <pthread.h>: unrecognized compiler.";
1379
1380 #define    ALPHA_PTHREAD_GCC_TEST_CT  1
1381 static tTestDesc aAlpha_Pthread_GccTests[] = {
1382   { TT_EGREP,    zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1383
1384 /*
1385  *  Fix Command Arguments for Alpha_Pthread_Gcc
1386  */
1387 static const char* apzAlpha_Pthread_GccPatch[] = {
1388     "format",
1389     "#elif defined (__GNUC__)\n\
1390 # define _PTHREAD_ENV_GCC\n\
1391 %0",
1392     (char*)NULL };
1393
1394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1395  *
1396  *  Description of Alpha_Pthread_Init fix
1397  */
1398 tSCC zAlpha_Pthread_InitName[] =
1399      "alpha_pthread_init";
1400
1401 /*
1402  *  File name selection pattern
1403  */
1404 tSCC zAlpha_Pthread_InitList[] =
1405   "pthread.h\0";
1406 /*
1407  *  Machine/OS name selection pattern
1408  */
1409 tSCC* apzAlpha_Pthread_InitMachs[] = {
1410         "alpha*-dec-osf*",
1411         (const char*)NULL };
1412
1413 /*
1414  *  content selection pattern - do fix if pattern found
1415  */
1416 tSCC zAlpha_Pthread_InitSelect0[] =
1417        " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1418
1419 #define    ALPHA_PTHREAD_INIT_TEST_CT  1
1420 static tTestDesc aAlpha_Pthread_InitTests[] = {
1421   { TT_EGREP,    zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1422
1423 /*
1424  *  Fix Command Arguments for Alpha_Pthread_Init
1425  */
1426 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1427     "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1428 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1429 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1430 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1431 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1432 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1433     (char*)NULL };
1434
1435 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1436  *
1437  *  Description of Alpha_Sbrk fix
1438  */
1439 tSCC zAlpha_SbrkName[] =
1440      "alpha_sbrk";
1441
1442 /*
1443  *  File name selection pattern
1444  */
1445 tSCC zAlpha_SbrkList[] =
1446   "unistd.h\0";
1447 /*
1448  *  Machine/OS name selection pattern
1449  */
1450 #define apzAlpha_SbrkMachs (const char**)NULL
1451
1452 /*
1453  *  content selection pattern - do fix if pattern found
1454  */
1455 tSCC zAlpha_SbrkSelect0[] =
1456        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1457
1458 #define    ALPHA_SBRK_TEST_CT  1
1459 static tTestDesc aAlpha_SbrkTests[] = {
1460   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1461
1462 /*
1463  *  Fix Command Arguments for Alpha_Sbrk
1464  */
1465 static const char* apzAlpha_SbrkPatch[] = {
1466     "format",
1467     "void *sbrk(",
1468     (char*)NULL };
1469
1470 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1471  *
1472  *  Description of Avoid_Bool_Define fix
1473  */
1474 tSCC zAvoid_Bool_DefineName[] =
1475      "avoid_bool_define";
1476
1477 /*
1478  *  File name selection pattern
1479  */
1480 tSCC zAvoid_Bool_DefineList[] =
1481   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1482 /*
1483  *  Machine/OS name selection pattern
1484  */
1485 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1486
1487 /*
1488  *  content selection pattern - do fix if pattern found
1489  */
1490 tSCC zAvoid_Bool_DefineSelect0[] =
1491        "#[ \t]*define[ \t]+bool[ \t]";
1492
1493 /*
1494  *  content bypass pattern - skip fix if pattern found
1495  */
1496 tSCC zAvoid_Bool_DefineBypass0[] =
1497        "__cplusplus";
1498
1499 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1500 static tTestDesc aAvoid_Bool_DefineTests[] = {
1501   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1502   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1503
1504 /*
1505  *  Fix Command Arguments for Avoid_Bool_Define
1506  */
1507 static const char* apzAvoid_Bool_DefinePatch[] = {
1508     "format",
1509     "#ifndef __cplusplus\n\
1510 %0\n\
1511 #endif",
1512     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1513     (char*)NULL };
1514
1515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1516  *
1517  *  Description of Avoid_Bool_Type fix
1518  */
1519 tSCC zAvoid_Bool_TypeName[] =
1520      "avoid_bool_type";
1521
1522 /*
1523  *  File name selection pattern
1524  */
1525 tSCC zAvoid_Bool_TypeList[] =
1526   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1527 /*
1528  *  Machine/OS name selection pattern
1529  */
1530 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1531
1532 /*
1533  *  content selection pattern - do fix if pattern found
1534  */
1535 tSCC zAvoid_Bool_TypeSelect0[] =
1536        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1537
1538 /*
1539  *  content bypass pattern - skip fix if pattern found
1540  */
1541 tSCC zAvoid_Bool_TypeBypass0[] =
1542        "__cplusplus";
1543
1544 #define    AVOID_BOOL_TYPE_TEST_CT  2
1545 static tTestDesc aAvoid_Bool_TypeTests[] = {
1546   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1547   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1548
1549 /*
1550  *  Fix Command Arguments for Avoid_Bool_Type
1551  */
1552 static const char* apzAvoid_Bool_TypePatch[] = {
1553     "format",
1554     "#ifndef __cplusplus\n\
1555 %0\n\
1556 #endif",
1557     (char*)NULL };
1558
1559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1560  *
1561  *  Description of Avoid_Wchar_T_Type fix
1562  */
1563 tSCC zAvoid_Wchar_T_TypeName[] =
1564      "avoid_wchar_t_type";
1565
1566 /*
1567  *  File name selection pattern
1568  */
1569 #define zAvoid_Wchar_T_TypeList (char*)NULL
1570 /*
1571  *  Machine/OS name selection pattern
1572  */
1573 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1574
1575 /*
1576  *  content selection pattern - do fix if pattern found
1577  */
1578 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1579        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1580
1581 /*
1582  *  content bypass pattern - skip fix if pattern found
1583  */
1584 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1585        "__cplusplus";
1586 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1587        "_LINUX_NLS_H";
1588 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1589        "XFree86: xc/lib/X11/Xlib\\.h";
1590
1591 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1592 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1593   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1594   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1595   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1596   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1597
1598 /*
1599  *  Fix Command Arguments for Avoid_Wchar_T_Type
1600  */
1601 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1602     "format",
1603     "#ifndef __cplusplus\n\
1604 %0\n\
1605 #endif",
1606     (char*)NULL };
1607
1608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1609  *
1610  *  Description of Bad_Struct_Term fix
1611  */
1612 tSCC zBad_Struct_TermName[] =
1613      "bad_struct_term";
1614
1615 /*
1616  *  File name selection pattern
1617  */
1618 tSCC zBad_Struct_TermList[] =
1619   "curses.h\0";
1620 /*
1621  *  Machine/OS name selection pattern
1622  */
1623 #define apzBad_Struct_TermMachs (const char**)NULL
1624
1625 /*
1626  *  content selection pattern - do fix if pattern found
1627  */
1628 tSCC zBad_Struct_TermSelect0[] =
1629        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1630
1631 #define    BAD_STRUCT_TERM_TEST_CT  1
1632 static tTestDesc aBad_Struct_TermTests[] = {
1633   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1634
1635 /*
1636  *  Fix Command Arguments for Bad_Struct_Term
1637  */
1638 static const char* apzBad_Struct_TermPatch[] = {
1639     "format",
1640     "struct term;",
1641     (char*)NULL };
1642
1643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1644  *
1645  *  Description of Badquote fix
1646  */
1647 tSCC zBadquoteName[] =
1648      "badquote";
1649
1650 /*
1651  *  File name selection pattern
1652  */
1653 tSCC zBadquoteList[] =
1654   "sundev/vuid_event.h\0";
1655 /*
1656  *  Machine/OS name selection pattern
1657  */
1658 #define apzBadquoteMachs (const char**)NULL
1659
1660 /*
1661  *  content selection pattern - do fix if pattern found
1662  */
1663 tSCC zBadquoteSelect0[] =
1664        "doesn't";
1665
1666 #define    BADQUOTE_TEST_CT  1
1667 static tTestDesc aBadquoteTests[] = {
1668   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1669
1670 /*
1671  *  Fix Command Arguments for Badquote
1672  */
1673 static const char* apzBadquotePatch[] = {
1674     "format",
1675     "does not",
1676     (char*)NULL };
1677
1678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1679  *
1680  *  Description of Broken_Assert_Stdio fix
1681  */
1682 tSCC zBroken_Assert_StdioName[] =
1683      "broken_assert_stdio";
1684
1685 /*
1686  *  File name selection pattern
1687  */
1688 tSCC zBroken_Assert_StdioList[] =
1689   "assert.h\0";
1690 /*
1691  *  Machine/OS name selection pattern
1692  */
1693 #define apzBroken_Assert_StdioMachs (const char**)NULL
1694
1695 /*
1696  *  content selection pattern - do fix if pattern found
1697  */
1698 tSCC zBroken_Assert_StdioSelect0[] =
1699        "stderr";
1700
1701 /*
1702  *  content bypass pattern - skip fix if pattern found
1703  */
1704 tSCC zBroken_Assert_StdioBypass0[] =
1705        "include.*stdio\\.h";
1706
1707 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1708 static tTestDesc aBroken_Assert_StdioTests[] = {
1709   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1710   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1711
1712 /*
1713  *  Fix Command Arguments for Broken_Assert_Stdio
1714  */
1715 static const char* apzBroken_Assert_StdioPatch[] = {
1716     "wrap",
1717     "#include <stdio.h>\n",
1718     (char*)NULL };
1719
1720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1721  *
1722  *  Description of Broken_Assert_Stdlib fix
1723  */
1724 tSCC zBroken_Assert_StdlibName[] =
1725      "broken_assert_stdlib";
1726
1727 /*
1728  *  File name selection pattern
1729  */
1730 tSCC zBroken_Assert_StdlibList[] =
1731   "assert.h\0";
1732 /*
1733  *  Machine/OS name selection pattern
1734  */
1735 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1736
1737 /*
1738  *  content selection pattern - do fix if pattern found
1739  */
1740 tSCC zBroken_Assert_StdlibSelect0[] =
1741        "exit *\\(|abort *\\(";
1742
1743 /*
1744  *  content bypass pattern - skip fix if pattern found
1745  */
1746 tSCC zBroken_Assert_StdlibBypass0[] =
1747        "include.*stdlib\\.h";
1748
1749 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1750 static tTestDesc aBroken_Assert_StdlibTests[] = {
1751   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1752   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1753
1754 /*
1755  *  Fix Command Arguments for Broken_Assert_Stdlib
1756  */
1757 static const char* apzBroken_Assert_StdlibPatch[] = {
1758     "wrap",
1759     "#ifdef __cplusplus\n\
1760 #include <stdlib.h>\n\
1761 #endif\n",
1762     (char*)NULL };
1763
1764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1765  *
1766  *  Description of Broken_Cabs fix
1767  */
1768 tSCC zBroken_CabsName[] =
1769      "broken_cabs";
1770
1771 /*
1772  *  File name selection pattern
1773  */
1774 tSCC zBroken_CabsList[] =
1775   "math.h\0architecture/*/math.h\0";
1776 /*
1777  *  Machine/OS name selection pattern
1778  */
1779 #define apzBroken_CabsMachs (const char**)NULL
1780
1781 /*
1782  *  content selection pattern - do fix if pattern found
1783  */
1784 tSCC zBroken_CabsSelect0[] =
1785        "^extern[ \t]+double[ \t]+cabs";
1786
1787 #define    BROKEN_CABS_TEST_CT  1
1788 static tTestDesc aBroken_CabsTests[] = {
1789   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1790
1791 /*
1792  *  Fix Command Arguments for Broken_Cabs
1793  */
1794 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1795     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1796     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1797     (char*)NULL };
1798
1799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1800  *
1801  *  Description of Broken_Nan fix
1802  */
1803 tSCC zBroken_NanName[] =
1804      "broken_nan";
1805
1806 /*
1807  *  File name selection pattern
1808  */
1809 tSCC zBroken_NanList[] =
1810   "architecture/ppc/math.h\0architecture/*/math.h\0";
1811 /*
1812  *  Machine/OS name selection pattern
1813  */
1814 #define apzBroken_NanMachs (const char**)NULL
1815
1816 /*
1817  *  content selection pattern - do fix if pattern found
1818  */
1819 tSCC zBroken_NanSelect0[] =
1820        "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1821
1822 /*
1823  *  content bypass pattern - skip fix if pattern found
1824  */
1825 tSCC zBroken_NanBypass0[] =
1826        "powl";
1827
1828 #define    BROKEN_NAN_TEST_CT  2
1829 static tTestDesc aBroken_NanTests[] = {
1830   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
1831   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
1832
1833 /*
1834  *  Fix Command Arguments for Broken_Nan
1835  */
1836 static const char* apzBroken_NanPatch[] = {
1837     "format",
1838     "#if 1",
1839     (char*)NULL };
1840
1841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1842  *
1843  *  Description of Bsd_Stdio_Attrs_Conflict fix
1844  */
1845 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1846      "bsd_stdio_attrs_conflict";
1847
1848 /*
1849  *  File name selection pattern
1850  */
1851 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1852   "stdio.h\0";
1853 /*
1854  *  Machine/OS name selection pattern
1855  */
1856 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1857         "*-*-*bsd*",
1858         "*-*-*darwin*",
1859         (const char*)NULL };
1860
1861 /*
1862  *  content selection pattern - do fix if pattern found
1863  */
1864 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1865        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1866
1867 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
1868 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1869   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1870
1871 /*
1872  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1873  */
1874 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1875     "format",
1876     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1877 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1878 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1879     (char*)NULL };
1880
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1882  *
1883  *  Description of Ctrl_Quotes_Def fix
1884  */
1885 tSCC zCtrl_Quotes_DefName[] =
1886      "ctrl_quotes_def";
1887
1888 /*
1889  *  File name selection pattern
1890  */
1891 #define zCtrl_Quotes_DefList (char*)NULL
1892 /*
1893  *  Machine/OS name selection pattern
1894  */
1895 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1896
1897 /*
1898  *  content selection pattern - do fix if pattern found
1899  */
1900 tSCC zCtrl_Quotes_DefSelect0[] =
1901        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1902
1903 #define    CTRL_QUOTES_DEF_TEST_CT  1
1904 static tTestDesc aCtrl_Quotes_DefTests[] = {
1905   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1906
1907 /*
1908  *  Fix Command Arguments for Ctrl_Quotes_Def
1909  */
1910 static const char* apzCtrl_Quotes_DefPatch[] = {
1911     "char_macro_def",
1912     "CTRL",
1913     (char*)NULL };
1914
1915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1916  *
1917  *  Description of Ctrl_Quotes_Use fix
1918  */
1919 tSCC zCtrl_Quotes_UseName[] =
1920      "ctrl_quotes_use";
1921
1922 /*
1923  *  File name selection pattern
1924  */
1925 #define zCtrl_Quotes_UseList (char*)NULL
1926 /*
1927  *  Machine/OS name selection pattern
1928  */
1929 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1930
1931 /*
1932  *  content selection pattern - do fix if pattern found
1933  */
1934 tSCC zCtrl_Quotes_UseSelect0[] =
1935        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1936
1937 #define    CTRL_QUOTES_USE_TEST_CT  1
1938 static tTestDesc aCtrl_Quotes_UseTests[] = {
1939   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1940
1941 /*
1942  *  Fix Command Arguments for Ctrl_Quotes_Use
1943  */
1944 static const char* apzCtrl_Quotes_UsePatch[] = {
1945     "char_macro_use",
1946     "CTRL",
1947     (char*)NULL };
1948
1949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1950  *
1951  *  Description of Cxx_Unready fix
1952  */
1953 tSCC zCxx_UnreadyName[] =
1954      "cxx_unready";
1955
1956 /*
1957  *  File name selection pattern
1958  */
1959 tSCC zCxx_UnreadyList[] =
1960   "sys/mman.h\0rpc/types.h\0";
1961 /*
1962  *  Machine/OS name selection pattern
1963  */
1964 #define apzCxx_UnreadyMachs (const char**)NULL
1965
1966 /*
1967  *  content selection pattern - do fix if pattern found
1968  */
1969 tSCC zCxx_UnreadySelect0[] =
1970        "[^#]+malloc.*;";
1971
1972 /*
1973  *  content bypass pattern - skip fix if pattern found
1974  */
1975 tSCC zCxx_UnreadyBypass0[] =
1976        "\"C\"|__BEGIN_DECLS";
1977
1978 #define    CXX_UNREADY_TEST_CT  2
1979 static tTestDesc aCxx_UnreadyTests[] = {
1980   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1981   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1982
1983 /*
1984  *  Fix Command Arguments for Cxx_Unready
1985  */
1986 static const char* apzCxx_UnreadyPatch[] = {
1987     "wrap",
1988     "#ifdef __cplusplus\n\
1989 extern \"C\" {\n\
1990 #endif\n",
1991     "#ifdef __cplusplus\n\
1992 }\n\
1993 #endif\n",
1994     (char*)NULL };
1995
1996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1997  *
1998  *  Description of Darwin_Externc fix
1999  */
2000 tSCC zDarwin_ExterncName[] =
2001      "darwin_externc";
2002
2003 /*
2004  *  File name selection pattern
2005  */
2006 tSCC zDarwin_ExterncList[] =
2007   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2008 /*
2009  *  Machine/OS name selection pattern
2010  */
2011 tSCC* apzDarwin_ExterncMachs[] = {
2012         "*-*-darwin*",
2013         (const char*)NULL };
2014
2015 /*
2016  *  content bypass pattern - skip fix if pattern found
2017  */
2018 tSCC zDarwin_ExterncBypass0[] =
2019        "extern \"C\"";
2020 tSCC zDarwin_ExterncBypass1[] =
2021        "__BEGIN_DECLS";
2022
2023 #define    DARWIN_EXTERNC_TEST_CT  2
2024 static tTestDesc aDarwin_ExterncTests[] = {
2025   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2026   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2027
2028 /*
2029  *  Fix Command Arguments for Darwin_Externc
2030  */
2031 static const char* apzDarwin_ExterncPatch[] = {
2032     "wrap",
2033     "#ifdef __cplusplus\n\
2034 extern \"C\" {\n\
2035 #endif\n",
2036     "#ifdef __cplusplus\n\
2037 }\n\
2038 #endif\n",
2039     (char*)NULL };
2040
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2042  *
2043  *  Description of Darwin_Gcc4_Breakage fix
2044  */
2045 tSCC zDarwin_Gcc4_BreakageName[] =
2046      "darwin_gcc4_breakage";
2047
2048 /*
2049  *  File name selection pattern
2050  */
2051 tSCC zDarwin_Gcc4_BreakageList[] =
2052   "AvailabilityMacros.h\0";
2053 /*
2054  *  Machine/OS name selection pattern
2055  */
2056 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2057         "*-*-darwin*",
2058         (const char*)NULL };
2059
2060 /*
2061  *  content selection pattern - do fix if pattern found
2062  */
2063 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2064        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2065
2066 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2067 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2068   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2069
2070 /*
2071  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2072  */
2073 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2074     "format",
2075     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2076     (char*)NULL };
2077
2078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2079  *
2080  *  Description of Darwin_Private_Extern fix
2081  */
2082 tSCC zDarwin_Private_ExternName[] =
2083      "darwin_private_extern";
2084
2085 /*
2086  *  File name selection pattern
2087  */
2088 tSCC zDarwin_Private_ExternList[] =
2089   "mach-o/dyld.h\0";
2090 /*
2091  *  Machine/OS name selection pattern
2092  */
2093 tSCC* apzDarwin_Private_ExternMachs[] = {
2094         "*-*-darwin*",
2095         (const char*)NULL };
2096
2097 /*
2098  *  content selection pattern - do fix if pattern found
2099  */
2100 tSCC zDarwin_Private_ExternSelect0[] =
2101        "__private_extern__ [a-z_]+ _dyld_";
2102
2103 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2104 static tTestDesc aDarwin_Private_ExternTests[] = {
2105   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2106
2107 /*
2108  *  Fix Command Arguments for Darwin_Private_Extern
2109  */
2110 static const char* apzDarwin_Private_ExternPatch[] = {
2111     "format",
2112     "extern",
2113     "__private_extern__",
2114     (char*)NULL };
2115
2116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2117  *
2118  *  Description of Darwin_Stdint_1 fix
2119  */
2120 tSCC zDarwin_Stdint_1Name[] =
2121      "darwin_stdint_1";
2122
2123 /*
2124  *  File name selection pattern
2125  */
2126 tSCC zDarwin_Stdint_1List[] =
2127   "stdint-darwin.h\0stdint.h\0";
2128 /*
2129  *  Machine/OS name selection pattern
2130  */
2131 tSCC* apzDarwin_Stdint_1Machs[] = {
2132         "*-*-darwin*",
2133         (const char*)NULL };
2134
2135 /*
2136  *  content selection pattern - do fix if pattern found
2137  */
2138 tSCC zDarwin_Stdint_1Select0[] =
2139        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2140 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2141
2142 #define    DARWIN_STDINT_1_TEST_CT  1
2143 static tTestDesc aDarwin_Stdint_1Tests[] = {
2144   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2145
2146 /*
2147  *  Fix Command Arguments for Darwin_Stdint_1
2148  */
2149 static const char* apzDarwin_Stdint_1Patch[] = {
2150     "format",
2151     "#define UINT8_C(v)\tv\n\
2152 #define UINT16_C(v)\tv",
2153     (char*)NULL };
2154
2155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2156  *
2157  *  Description of Darwin_Stdint_2 fix
2158  */
2159 tSCC zDarwin_Stdint_2Name[] =
2160      "darwin_stdint_2";
2161
2162 /*
2163  *  File name selection pattern
2164  */
2165 tSCC zDarwin_Stdint_2List[] =
2166   "stdint-darwin.h\0stdint.h\0";
2167 /*
2168  *  Machine/OS name selection pattern
2169  */
2170 tSCC* apzDarwin_Stdint_2Machs[] = {
2171         "*-*-darwin*",
2172         (const char*)NULL };
2173
2174 /*
2175  *  content selection pattern - do fix if pattern found
2176  */
2177 tSCC zDarwin_Stdint_2Select0[] =
2178        "#if __WORDSIZE == 64\n\
2179 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2180 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2181 #else\n\
2182 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2183 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2184 #endif";
2185
2186 #define    DARWIN_STDINT_2_TEST_CT  1
2187 static tTestDesc aDarwin_Stdint_2Tests[] = {
2188   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2189
2190 /*
2191  *  Fix Command Arguments for Darwin_Stdint_2
2192  */
2193 static const char* apzDarwin_Stdint_2Patch[] = {
2194     "format",
2195     "#if __WORDSIZE == 64\n\
2196 #define INTPTR_MAX 9223372036854775807L\n\
2197 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2198 #else\n\
2199 #define INTPTR_MAX 2147483647L\n\
2200 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2201 #endif",
2202     (char*)NULL };
2203
2204 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2205  *
2206  *  Description of Darwin_Stdint_3 fix
2207  */
2208 tSCC zDarwin_Stdint_3Name[] =
2209      "darwin_stdint_3";
2210
2211 /*
2212  *  File name selection pattern
2213  */
2214 tSCC zDarwin_Stdint_3List[] =
2215   "stdint-darwin.h\0stdint.h\0";
2216 /*
2217  *  Machine/OS name selection pattern
2218  */
2219 tSCC* apzDarwin_Stdint_3Machs[] = {
2220         "*-*-darwin*",
2221         (const char*)NULL };
2222
2223 /*
2224  *  content selection pattern - do fix if pattern found
2225  */
2226 tSCC zDarwin_Stdint_3Select0[] =
2227        "#if __WORDSIZE == 64\n\
2228 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2229 #else\n\
2230 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2231 #endif";
2232
2233 #define    DARWIN_STDINT_3_TEST_CT  1
2234 static tTestDesc aDarwin_Stdint_3Tests[] = {
2235   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2236
2237 /*
2238  *  Fix Command Arguments for Darwin_Stdint_3
2239  */
2240 static const char* apzDarwin_Stdint_3Patch[] = {
2241     "format",
2242     "#if __WORDSIZE == 64\n\
2243 #define UINTPTR_MAX 18446744073709551615UL\n\
2244 #else\n\
2245 #define UINTPTR_MAX 4294967295UL\n\
2246 #endif",
2247     (char*)NULL };
2248
2249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2250  *
2251  *  Description of Darwin_Stdint_4 fix
2252  */
2253 tSCC zDarwin_Stdint_4Name[] =
2254      "darwin_stdint_4";
2255
2256 /*
2257  *  File name selection pattern
2258  */
2259 tSCC zDarwin_Stdint_4List[] =
2260   "stdint-darwin.h\0stdint.h\0";
2261 /*
2262  *  Machine/OS name selection pattern
2263  */
2264 tSCC* apzDarwin_Stdint_4Machs[] = {
2265         "*-*-darwin*",
2266         (const char*)NULL };
2267
2268 /*
2269  *  content selection pattern - do fix if pattern found
2270  */
2271 tSCC zDarwin_Stdint_4Select0[] =
2272        "#if __WORDSIZE == 64\n\
2273 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2274 #else\n\
2275 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2276 #endif";
2277
2278 #define    DARWIN_STDINT_4_TEST_CT  1
2279 static tTestDesc aDarwin_Stdint_4Tests[] = {
2280   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2281
2282 /*
2283  *  Fix Command Arguments for Darwin_Stdint_4
2284  */
2285 static const char* apzDarwin_Stdint_4Patch[] = {
2286     "format",
2287     "#if __WORDSIZE == 64\n\
2288 #define SIZE_MAX 18446744073709551615UL\n\
2289 #else\n\
2290 #define SIZE_MAX 4294967295UL\n\
2291 #endif",
2292     (char*)NULL };
2293
2294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2295  *
2296  *  Description of Darwin_Stdint_5 fix
2297  */
2298 tSCC zDarwin_Stdint_5Name[] =
2299      "darwin_stdint_5";
2300
2301 /*
2302  *  File name selection pattern
2303  */
2304 tSCC zDarwin_Stdint_5List[] =
2305   "stdint-darwin.h\0stdint.h\0";
2306 /*
2307  *  Machine/OS name selection pattern
2308  */
2309 tSCC* apzDarwin_Stdint_5Machs[] = {
2310         "*-*-darwin*",
2311         (const char*)NULL };
2312
2313 /*
2314  *  content selection pattern - do fix if pattern found
2315  */
2316 tSCC zDarwin_Stdint_5Select0[] =
2317        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2318 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2319 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2320
2321 #define    DARWIN_STDINT_5_TEST_CT  1
2322 static tTestDesc aDarwin_Stdint_5Tests[] = {
2323   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2324
2325 /*
2326  *  Fix Command Arguments for Darwin_Stdint_5
2327  */
2328 static const char* apzDarwin_Stdint_5Patch[] = {
2329     "format",
2330     "#if __WORDSIZE == 64\n\
2331 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
2332 #define INTMAX_MAX   9223372036854775807L\n\
2333 #define UINTMAX_MAX  18446744073709551615UL\n\
2334 #else\n\
2335 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
2336 #define INTMAX_MAX   9223372036854775807LL\n\
2337 #define UINTMAX_MAX  18446744073709551615ULL\n\
2338 #endif",
2339     (char*)NULL };
2340
2341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2342  *
2343  *  Description of Darwin_Stdint_6 fix
2344  */
2345 tSCC zDarwin_Stdint_6Name[] =
2346      "darwin_stdint_6";
2347
2348 /*
2349  *  File name selection pattern
2350  */
2351 tSCC zDarwin_Stdint_6List[] =
2352   "stdint-darwin.h\0stdint.h\0";
2353 /*
2354  *  Machine/OS name selection pattern
2355  */
2356 tSCC* apzDarwin_Stdint_6Machs[] = {
2357         "*-*-darwin*",
2358         (const char*)NULL };
2359
2360 /*
2361  *  content selection pattern - do fix if pattern found
2362  */
2363 tSCC zDarwin_Stdint_6Select0[] =
2364        "#if __WORDSIZE == 64\n\
2365 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2366 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2367 #else\n\
2368 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2369 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2370 #endif";
2371
2372 #define    DARWIN_STDINT_6_TEST_CT  1
2373 static tTestDesc aDarwin_Stdint_6Tests[] = {
2374   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2375
2376 /*
2377  *  Fix Command Arguments for Darwin_Stdint_6
2378  */
2379 static const char* apzDarwin_Stdint_6Patch[] = {
2380     "format",
2381     "#if __WORDSIZE == 64\n\
2382 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2383 #define PTRDIFF_MAX 9223372036854775807L\n\
2384 #else\n\
2385 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2386 #define PTRDIFF_MAX 2147483647\n\
2387 #endif",
2388     (char*)NULL };
2389
2390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2391  *
2392  *  Description of Darwin_Stdint_7 fix
2393  */
2394 tSCC zDarwin_Stdint_7Name[] =
2395      "darwin_stdint_7";
2396
2397 /*
2398  *  File name selection pattern
2399  */
2400 tSCC zDarwin_Stdint_7List[] =
2401   "stdint-darwin.h\0stdint.h\0";
2402 /*
2403  *  Machine/OS name selection pattern
2404  */
2405 tSCC* apzDarwin_Stdint_7Machs[] = {
2406         "*-*-darwin*",
2407         (const char*)NULL };
2408
2409 /*
2410  *  content selection pattern - do fix if pattern found
2411  */
2412 tSCC zDarwin_Stdint_7Select0[] =
2413        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2414 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2415
2416 #define    DARWIN_STDINT_7_TEST_CT  1
2417 static tTestDesc aDarwin_Stdint_7Tests[] = {
2418   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2419
2420 /*
2421  *  Fix Command Arguments for Darwin_Stdint_7
2422  */
2423 static const char* apzDarwin_Stdint_7Patch[] = {
2424     "format",
2425     "#if __WORDSIZE == 64\n\
2426 #define INTMAX_C(v)  (v ## L)\n\
2427 #define UINTMAX_C(v) (v ## UL)\n\
2428 #else\n\
2429 #define INTMAX_C(v)  (v ## LL)\n\
2430 #define UINTMAX_C(v) (v ## ULL)\n\
2431 #endif",
2432     (char*)NULL };
2433
2434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2435  *
2436  *  Description of Dec_Intern_Asm fix
2437  */
2438 tSCC zDec_Intern_AsmName[] =
2439      "dec_intern_asm";
2440
2441 /*
2442  *  File name selection pattern
2443  */
2444 tSCC zDec_Intern_AsmList[] =
2445   "c_asm.h\0";
2446 /*
2447  *  Machine/OS name selection pattern
2448  */
2449 #define apzDec_Intern_AsmMachs (const char**)NULL
2450 #define DEC_INTERN_ASM_TEST_CT  0
2451 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2452
2453 /*
2454  *  Fix Command Arguments for Dec_Intern_Asm
2455  */
2456 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2457     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2458 #ifdef __DECC\n",
2459     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2460 #endif\n",
2461     (char*)NULL };
2462
2463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2464  *
2465  *  Description of Djgpp_Wchar_H fix
2466  */
2467 tSCC zDjgpp_Wchar_HName[] =
2468      "djgpp_wchar_h";
2469
2470 /*
2471  *  File name selection pattern
2472  */
2473 #define zDjgpp_Wchar_HList (char*)NULL
2474 /*
2475  *  Machine/OS name selection pattern
2476  */
2477 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2478
2479 /*
2480  *  content selection pattern - do fix if pattern found
2481  */
2482 tSCC zDjgpp_Wchar_HSelect0[] =
2483        "__DJ_wint_t";
2484
2485 /*
2486  *  content bypass pattern - skip fix if pattern found
2487  */
2488 tSCC zDjgpp_Wchar_HBypass0[] =
2489        "sys/djtypes.h";
2490
2491 #define    DJGPP_WCHAR_H_TEST_CT  2
2492 static tTestDesc aDjgpp_Wchar_HTests[] = {
2493   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2494   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2495
2496 /*
2497  *  Fix Command Arguments for Djgpp_Wchar_H
2498  */
2499 static const char* apzDjgpp_Wchar_HPatch[] = {
2500     "format",
2501     "%0\n\
2502 #include <sys/djtypes.h>",
2503     "#include <stddef.h>",
2504     (char*)NULL };
2505
2506 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2507  *
2508  *  Description of Ecd_Cursor fix
2509  */
2510 tSCC zEcd_CursorName[] =
2511      "ecd_cursor";
2512
2513 /*
2514  *  File name selection pattern
2515  */
2516 tSCC zEcd_CursorList[] =
2517   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2518 /*
2519  *  Machine/OS name selection pattern
2520  */
2521 #define apzEcd_CursorMachs (const char**)NULL
2522
2523 /*
2524  *  content selection pattern - do fix if pattern found
2525  */
2526 tSCC zEcd_CursorSelect0[] =
2527        "ecd\\.cursor";
2528
2529 #define    ECD_CURSOR_TEST_CT  1
2530 static tTestDesc aEcd_CursorTests[] = {
2531   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2532
2533 /*
2534  *  Fix Command Arguments for Ecd_Cursor
2535  */
2536 static const char* apzEcd_CursorPatch[] = {
2537     "format",
2538     "ecd_cursor",
2539     (char*)NULL };
2540
2541 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2542  *
2543  *  Description of Freebsd_Gcc3_Breakage fix
2544  */
2545 tSCC zFreebsd_Gcc3_BreakageName[] =
2546      "freebsd_gcc3_breakage";
2547
2548 /*
2549  *  File name selection pattern
2550  */
2551 tSCC zFreebsd_Gcc3_BreakageList[] =
2552   "sys/cdefs.h\0";
2553 /*
2554  *  Machine/OS name selection pattern
2555  */
2556 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2557         "*-*-freebsd*",
2558         (const char*)NULL };
2559
2560 /*
2561  *  content selection pattern - do fix if pattern found
2562  */
2563 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2564        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2565
2566 /*
2567  *  content bypass pattern - skip fix if pattern found
2568  */
2569 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2570        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2571
2572 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2573 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2574   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2575   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2576
2577 /*
2578  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2579  */
2580 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2581     "format",
2582     "%0 || __GNUC__ >= 3",
2583     (char*)NULL };
2584
2585 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2586  *
2587  *  Description of Freebsd_Gcc4_Breakage fix
2588  */
2589 tSCC zFreebsd_Gcc4_BreakageName[] =
2590      "freebsd_gcc4_breakage";
2591
2592 /*
2593  *  File name selection pattern
2594  */
2595 tSCC zFreebsd_Gcc4_BreakageList[] =
2596   "sys/cdefs.h\0";
2597 /*
2598  *  Machine/OS name selection pattern
2599  */
2600 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2601         "*-*-freebsd*",
2602         (const char*)NULL };
2603
2604 /*
2605  *  content selection pattern - do fix if pattern found
2606  */
2607 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2608        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2609
2610 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2611 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2612   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2613
2614 /*
2615  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2616  */
2617 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2618     "format",
2619     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2620     (char*)NULL };
2621
2622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2623  *
2624  *  Description of Glibc_C99_Inline_1 fix
2625  */
2626 tSCC zGlibc_C99_Inline_1Name[] =
2627      "glibc_c99_inline_1";
2628
2629 /*
2630  *  File name selection pattern
2631  */
2632 tSCC zGlibc_C99_Inline_1List[] =
2633   "features.h\0*/features.h\0";
2634 /*
2635  *  Machine/OS name selection pattern
2636  */
2637 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2638
2639 /*
2640  *  content selection pattern - do fix if pattern found
2641  */
2642 tSCC zGlibc_C99_Inline_1Select0[] =
2643        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2644
2645 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2646 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2647   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2648
2649 /*
2650  *  Fix Command Arguments for Glibc_C99_Inline_1
2651  */
2652 static const char* apzGlibc_C99_Inline_1Patch[] = {
2653     "format",
2654     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2655     (char*)NULL };
2656
2657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2658  *
2659  *  Description of Glibc_C99_Inline_1a fix
2660  */
2661 tSCC zGlibc_C99_Inline_1aName[] =
2662      "glibc_c99_inline_1a";
2663
2664 /*
2665  *  File name selection pattern
2666  */
2667 tSCC zGlibc_C99_Inline_1aList[] =
2668   "features.h\0*/features.h\0";
2669 /*
2670  *  Machine/OS name selection pattern
2671  */
2672 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2673
2674 /*
2675  *  content selection pattern - do fix if pattern found
2676  */
2677 tSCC zGlibc_C99_Inline_1aSelect0[] =
2678        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2679 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2680
2681 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
2682 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2683   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2684
2685 /*
2686  *  Fix Command Arguments for Glibc_C99_Inline_1a
2687  */
2688 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2689     "format",
2690     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2691 %2",
2692     (char*)NULL };
2693
2694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2695  *
2696  *  Description of Glibc_C99_Inline_2 fix
2697  */
2698 tSCC zGlibc_C99_Inline_2Name[] =
2699      "glibc_c99_inline_2";
2700
2701 /*
2702  *  File name selection pattern
2703  */
2704 tSCC zGlibc_C99_Inline_2List[] =
2705   "sys/stat.h\0*/sys/stat.h\0";
2706 /*
2707  *  Machine/OS name selection pattern
2708  */
2709 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2710
2711 /*
2712  *  content selection pattern - do fix if pattern found
2713  */
2714 tSCC zGlibc_C99_Inline_2Select0[] =
2715        "extern __inline__ int";
2716
2717 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2718 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2719   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2720
2721 /*
2722  *  Fix Command Arguments for Glibc_C99_Inline_2
2723  */
2724 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2725     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2726 extern\\\n\
2727 #endif\\\n\
2728 __inline__ int \\1/",
2729     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2730 extern\\\n\
2731 #endif\\\n\
2732 __inline__ int \\1/",
2733     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2734 extern\\\n\
2735 #endif\\\n\
2736 __inline__ int \\1/",
2737     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2738 extern\\\n\
2739 #endif\\\n\
2740 __inline__ int __REDIRECT\\1 (\\2/",
2741     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2742 extern\\\n\
2743 #endif\\\n\
2744 __inline__ int __REDIRECT\\1 (\\2/",
2745     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2746 extern\\\n\
2747 #endif\\\n\
2748 __inline__ int/",
2749     (char*)NULL };
2750
2751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2752  *
2753  *  Description of Glibc_C99_Inline_3 fix
2754  */
2755 tSCC zGlibc_C99_Inline_3Name[] =
2756      "glibc_c99_inline_3";
2757
2758 /*
2759  *  File name selection pattern
2760  */
2761 tSCC zGlibc_C99_Inline_3List[] =
2762   "bits/string2.h\0*/bits/string2.h\0";
2763 /*
2764  *  Machine/OS name selection pattern
2765  */
2766 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2767
2768 /*
2769  *  content selection pattern - do fix if pattern found
2770  */
2771 tSCC zGlibc_C99_Inline_3Select0[] =
2772        "extern __inline";
2773
2774 /*
2775  *  content bypass pattern - skip fix if pattern found
2776  */
2777 tSCC zGlibc_C99_Inline_3Bypass0[] =
2778        "__extern_inline|__GNU_STDC_INLINE__";
2779
2780 #define    GLIBC_C99_INLINE_3_TEST_CT  2
2781 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2782   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2783   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2784
2785 /*
2786  *  Fix Command Arguments for Glibc_C99_Inline_3
2787  */
2788 static const char* apzGlibc_C99_Inline_3Patch[] = {
2789     "format",
2790     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2791     "^# ifdef __cplusplus$",
2792     (char*)NULL };
2793
2794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2795  *
2796  *  Description of Glibc_C99_Inline_4 fix
2797  */
2798 tSCC zGlibc_C99_Inline_4Name[] =
2799      "glibc_c99_inline_4";
2800
2801 /*
2802  *  File name selection pattern
2803  */
2804 tSCC zGlibc_C99_Inline_4List[] =
2805   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2806 /*
2807  *  Machine/OS name selection pattern
2808  */
2809 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2810
2811 /*
2812  *  content selection pattern - do fix if pattern found
2813  */
2814 tSCC zGlibc_C99_Inline_4Select0[] =
2815        "(^| )extern __inline";
2816
2817 /*
2818  *  content bypass pattern - skip fix if pattern found
2819  */
2820 tSCC zGlibc_C99_Inline_4Bypass0[] =
2821        "__extern_inline|__gnu_inline__";
2822
2823 #define    GLIBC_C99_INLINE_4_TEST_CT  2
2824 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2825   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2826   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2827
2828 /*
2829  *  Fix Command Arguments for Glibc_C99_Inline_4
2830  */
2831 static const char* apzGlibc_C99_Inline_4Patch[] = {
2832     "format",
2833     "%0 __attribute__ ((__gnu_inline__))",
2834     (char*)NULL };
2835
2836 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2837  *
2838  *  Description of Glibc_Mutex_Init fix
2839  */
2840 tSCC zGlibc_Mutex_InitName[] =
2841      "glibc_mutex_init";
2842
2843 /*
2844  *  File name selection pattern
2845  */
2846 tSCC zGlibc_Mutex_InitList[] =
2847   "pthread.h\0";
2848 /*
2849  *  Machine/OS name selection pattern
2850  */
2851 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2852
2853 /*
2854  *  content selection pattern - do fix if pattern found
2855  */
2856 tSCC zGlibc_Mutex_InitSelect0[] =
2857        "\\{ *\\{ *0, *\\} *\\}";
2858
2859 #define    GLIBC_MUTEX_INIT_TEST_CT  1
2860 static tTestDesc aGlibc_Mutex_InitTests[] = {
2861   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2862
2863 /*
2864  *  Fix Command Arguments for Glibc_Mutex_Init
2865  */
2866 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2867     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2868 N\n\
2869 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2870 }",
2871     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2872     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2873     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2874     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2875     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2876     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2877     "-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\
2878 #  \\1\\\n\
2879   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2880 # else\\\n\
2881 #  \\1\\\n\
2882   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2883 # endif/",
2884     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2885     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2886     (char*)NULL };
2887
2888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2889  *
2890  *  Description of Glibc_Stdint fix
2891  */
2892 tSCC zGlibc_StdintName[] =
2893      "glibc_stdint";
2894
2895 /*
2896  *  File name selection pattern
2897  */
2898 tSCC zGlibc_StdintList[] =
2899   "stdint.h\0";
2900 /*
2901  *  Machine/OS name selection pattern
2902  */
2903 #define apzGlibc_StdintMachs (const char**)NULL
2904
2905 /*
2906  *  content selection pattern - do fix if pattern found
2907  */
2908 tSCC zGlibc_StdintSelect0[] =
2909        "GNU C Library";
2910
2911 #define    GLIBC_STDINT_TEST_CT  1
2912 static tTestDesc aGlibc_StdintTests[] = {
2913   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
2914
2915 /*
2916  *  Fix Command Arguments for Glibc_Stdint
2917  */
2918 static const char* apzGlibc_StdintPatch[] = {
2919     "format",
2920     "# define UINT8_C(c)\tc\n\
2921 # define UINT16_C(c)\tc",
2922     "# define UINT8_C\\(c\\)\tc ## U\n\
2923 # define UINT16_C\\(c\\)\tc ## U",
2924     (char*)NULL };
2925
2926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2927  *
2928  *  Description of Glibc_Strncpy fix
2929  */
2930 tSCC zGlibc_StrncpyName[] =
2931      "glibc_strncpy";
2932
2933 /*
2934  *  File name selection pattern
2935  */
2936 tSCC zGlibc_StrncpyList[] =
2937   "bits/string2.h\0";
2938 /*
2939  *  Machine/OS name selection pattern
2940  */
2941 #define apzGlibc_StrncpyMachs (const char**)NULL
2942
2943 /*
2944  *  content bypass pattern - skip fix if pattern found
2945  */
2946 tSCC zGlibc_StrncpyBypass0[] =
2947        "__builtin_strncpy";
2948
2949 #define    GLIBC_STRNCPY_TEST_CT  1
2950 static tTestDesc aGlibc_StrncpyTests[] = {
2951   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2952
2953 /*
2954  *  Fix Command Arguments for Glibc_Strncpy
2955  */
2956 static const char* apzGlibc_StrncpyPatch[] = {
2957     "format",
2958     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2959     "#  define strncpy([^\n\
2960 ]*\\\\\n\
2961 )*[^\n\
2962 ]*",
2963     (char*)NULL };
2964
2965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2966  *
2967  *  Description of Glibc_Tgmath fix
2968  */
2969 tSCC zGlibc_TgmathName[] =
2970      "glibc_tgmath";
2971
2972 /*
2973  *  File name selection pattern
2974  */
2975 tSCC zGlibc_TgmathList[] =
2976   "tgmath.h\0";
2977 /*
2978  *  Machine/OS name selection pattern
2979  */
2980 #define apzGlibc_TgmathMachs (const char**)NULL
2981
2982 /*
2983  *  content selection pattern - do fix if pattern found
2984  */
2985 tSCC zGlibc_TgmathSelect0[] =
2986        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2987
2988 /*
2989  *  content bypass pattern - skip fix if pattern found
2990  */
2991 tSCC zGlibc_TgmathBypass0[] =
2992        "__floating_type\\(type\\) \\\\\n\
2993 .*__builtin_classify_type";
2994
2995 #define    GLIBC_TGMATH_TEST_CT  2
2996 static tTestDesc aGlibc_TgmathTests[] = {
2997   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
2998   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2999
3000 /*
3001  *  Fix Command Arguments for Glibc_Tgmath
3002  */
3003 static const char* apzGlibc_TgmathPatch[] = {
3004     "format",
3005     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3006     (char*)NULL };
3007
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3009  *
3010  *  Description of Gnu_Types fix
3011  */
3012 tSCC zGnu_TypesName[] =
3013      "gnu_types";
3014
3015 /*
3016  *  File name selection pattern
3017  */
3018 tSCC zGnu_TypesList[] =
3019   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3020 /*
3021  *  Machine/OS name selection pattern
3022  */
3023 tSCC* apzGnu_TypesMachs[] = {
3024         "*-*-solaris2.1[0-9]*",
3025         (const char*)NULL };
3026
3027 /*
3028  *  content selection pattern - do fix if pattern found
3029  */
3030 tSCC zGnu_TypesSelect0[] =
3031        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3032
3033 /*
3034  *  content bypass pattern - skip fix if pattern found
3035  */
3036 tSCC zGnu_TypesBypass0[] =
3037        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3038
3039 #define    GNU_TYPES_TEST_CT  2
3040 static tTestDesc aGnu_TypesTests[] = {
3041   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3042   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3043
3044 /*
3045  *  Fix Command Arguments for Gnu_Types
3046  */
3047 static const char* apzGnu_TypesPatch[] = {
3048     "gnu_type",
3049     (char*)NULL };
3050
3051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3052  *
3053  *  Description of Hp_Inline fix
3054  */
3055 tSCC zHp_InlineName[] =
3056      "hp_inline";
3057
3058 /*
3059  *  File name selection pattern
3060  */
3061 tSCC zHp_InlineList[] =
3062   "sys/spinlock.h\0machine/machparam.h\0";
3063 /*
3064  *  Machine/OS name selection pattern
3065  */
3066 #define apzHp_InlineMachs (const char**)NULL
3067
3068 /*
3069  *  content selection pattern - do fix if pattern found
3070  */
3071 tSCC zHp_InlineSelect0[] =
3072        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3073
3074 #define    HP_INLINE_TEST_CT  1
3075 static tTestDesc aHp_InlineTests[] = {
3076   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
3077
3078 /*
3079  *  Fix Command Arguments for Hp_Inline
3080  */
3081 static const char* apzHp_InlinePatch[] = {
3082     "format",
3083     "%1<machine/%2.h>",
3084     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3085     (char*)NULL };
3086
3087 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3088  *
3089  *  Description of Hp_Sysfile fix
3090  */
3091 tSCC zHp_SysfileName[] =
3092      "hp_sysfile";
3093
3094 /*
3095  *  File name selection pattern
3096  */
3097 tSCC zHp_SysfileList[] =
3098   "sys/file.h\0";
3099 /*
3100  *  Machine/OS name selection pattern
3101  */
3102 #define apzHp_SysfileMachs (const char**)NULL
3103
3104 /*
3105  *  content selection pattern - do fix if pattern found
3106  */
3107 tSCC zHp_SysfileSelect0[] =
3108        "HPUX_SOURCE";
3109
3110 #define    HP_SYSFILE_TEST_CT  1
3111 static tTestDesc aHp_SysfileTests[] = {
3112   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
3113
3114 /*
3115  *  Fix Command Arguments for Hp_Sysfile
3116  */
3117 static const char* apzHp_SysfilePatch[] = {
3118     "format",
3119     "(struct file *, ...)",
3120     "\\(\\.\\.\\.\\)",
3121     (char*)NULL };
3122
3123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3124  *
3125  *  Description of Hppa_Hpux_Fp_Macros fix
3126  */
3127 tSCC zHppa_Hpux_Fp_MacrosName[] =
3128      "hppa_hpux_fp_macros";
3129
3130 /*
3131  *  File name selection pattern
3132  */
3133 tSCC zHppa_Hpux_Fp_MacrosList[] =
3134   "math.h\0";
3135 /*
3136  *  Machine/OS name selection pattern
3137  */
3138 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3139         "hppa*-hp-hpux11*",
3140         (const char*)NULL };
3141
3142 /*
3143  *  content selection pattern - do fix if pattern found
3144  */
3145 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3146        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3147 #[ \t]*define[ \t]*FP_ZERO.*\n\
3148 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3149 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3150 #[ \t]*define[ \t]*FP_NAN.*\n";
3151
3152 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
3153 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3154   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3155
3156 /*
3157  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
3158  */
3159 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3160     "format",
3161     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3162 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3163    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3164 %0#endif\n\n\
3165 #ifdef _INCLUDE_HPUX_SOURCE\n",
3166     (char*)NULL };
3167
3168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3169  *
3170  *  Description of Hpux10_Cpp_Pow_Inline fix
3171  */
3172 tSCC zHpux10_Cpp_Pow_InlineName[] =
3173      "hpux10_cpp_pow_inline";
3174
3175 /*
3176  *  File name selection pattern
3177  */
3178 tSCC zHpux10_Cpp_Pow_InlineList[] =
3179   "fixinc-test-limits.h\0math.h\0";
3180 /*
3181  *  Machine/OS name selection pattern
3182  */
3183 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3184
3185 /*
3186  *  content selection pattern - do fix if pattern found
3187  */
3188 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3189        "^# +ifdef +__cplusplus\n\
3190  +\\}\n\
3191  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3192 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3193  +\\}\n\
3194  +extern +\"C\" +\\{\n\
3195 #else\n\
3196 # +endif";
3197
3198 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
3199 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3200   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3201
3202 /*
3203  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3204  */
3205 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3206     "format",
3207     "",
3208     (char*)NULL };
3209
3210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3211  *
3212  *  Description of Hpux11_Cpp_Pow_Inline fix
3213  */
3214 tSCC zHpux11_Cpp_Pow_InlineName[] =
3215      "hpux11_cpp_pow_inline";
3216
3217 /*
3218  *  File name selection pattern
3219  */
3220 tSCC zHpux11_Cpp_Pow_InlineList[] =
3221   "math.h\0";
3222 /*
3223  *  Machine/OS name selection pattern
3224  */
3225 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3226
3227 /*
3228  *  content selection pattern - do fix if pattern found
3229  */
3230 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3231        " +inline double pow\\(double d,int expon\\) \\{\n\
3232  +return pow\\(d, \\(double\\)expon\\);\n\
3233  +\\}\n";
3234
3235 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
3236 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3237   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3238
3239 /*
3240  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3241  */
3242 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3243     "format",
3244     "",
3245     (char*)NULL };
3246
3247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3248  *
3249  *  Description of Hpux10_Ctype_Declarations1 fix
3250  */
3251 tSCC zHpux10_Ctype_Declarations1Name[] =
3252      "hpux10_ctype_declarations1";
3253
3254 /*
3255  *  File name selection pattern
3256  */
3257 tSCC zHpux10_Ctype_Declarations1List[] =
3258   "ctype.h\0";
3259 /*
3260  *  Machine/OS name selection pattern
3261  */
3262 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3263
3264 /*
3265  *  content selection pattern - do fix if pattern found
3266  */
3267 tSCC zHpux10_Ctype_Declarations1Select0[] =
3268        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3269
3270 /*
3271  *  content bypass pattern - skip fix if pattern found
3272  */
3273 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3274        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3275
3276 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
3277 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3278   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3279   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3280
3281 /*
3282  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
3283  */
3284 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3285     "format",
3286     "#ifdef _PROTOTYPES\n\
3287 extern int __tolower(int);\n\
3288 extern int __toupper(int);\n\
3289 #else /* NOT _PROTOTYPES */\n\
3290 extern int __tolower();\n\
3291 extern int __toupper();\n\
3292 #endif /* _PROTOTYPES */\n\n\
3293 %0\n",
3294     (char*)NULL };
3295
3296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3297  *
3298  *  Description of Hpux10_Ctype_Declarations2 fix
3299  */
3300 tSCC zHpux10_Ctype_Declarations2Name[] =
3301      "hpux10_ctype_declarations2";
3302
3303 /*
3304  *  File name selection pattern
3305  */
3306 tSCC zHpux10_Ctype_Declarations2List[] =
3307   "ctype.h\0";
3308 /*
3309  *  Machine/OS name selection pattern
3310  */
3311 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3312
3313 /*
3314  *  content selection pattern - do fix if pattern found
3315  */
3316 tSCC zHpux10_Ctype_Declarations2Select0[] =
3317        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3318
3319 /*
3320  *  content bypass pattern - skip fix if pattern found
3321  */
3322 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3323        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3324
3325 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
3326 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3327   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3328   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3329
3330 /*
3331  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
3332  */
3333 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3334     "format",
3335     "%0\n\n\
3336 #ifdef _PROTOTYPES\n\
3337      extern int _isalnum(int);\n\
3338      extern int _isalpha(int);\n\
3339      extern int _iscntrl(int);\n\
3340      extern int _isdigit(int);\n\
3341      extern int _isgraph(int);\n\
3342      extern int _islower(int);\n\
3343      extern int _isprint(int);\n\
3344      extern int _ispunct(int);\n\
3345      extern int _isspace(int);\n\
3346      extern int _isupper(int);\n\
3347      extern int _isxdigit(int);\n\
3348 #  else /* not _PROTOTYPES */\n\
3349      extern int _isalnum();\n\
3350      extern int _isalpha();\n\
3351      extern int _iscntrl();\n\
3352      extern int _isdigit();\n\
3353      extern int _isgraph();\n\
3354      extern int _islower();\n\
3355      extern int _isprint();\n\
3356      extern int _ispunct();\n\
3357      extern int _isspace();\n\
3358      extern int _isupper();\n\
3359      extern int _isxdigit();\n\
3360 #endif /* _PROTOTYPES */\n",
3361     (char*)NULL };
3362
3363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3364  *
3365  *  Description of Hpux10_Stdio_Declarations fix
3366  */
3367 tSCC zHpux10_Stdio_DeclarationsName[] =
3368      "hpux10_stdio_declarations";
3369
3370 /*
3371  *  File name selection pattern
3372  */
3373 tSCC zHpux10_Stdio_DeclarationsList[] =
3374   "stdio.h\0";
3375 /*
3376  *  Machine/OS name selection pattern
3377  */
3378 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3379
3380 /*
3381  *  content selection pattern - do fix if pattern found
3382  */
3383 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3384        "^#[ \t]*define _iob[ \t]*__iob";
3385
3386 /*
3387  *  content bypass pattern - skip fix if pattern found
3388  */
3389 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3390        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3391
3392 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
3393 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3394   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3395   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3396
3397 /*
3398  *  Fix Command Arguments for Hpux10_Stdio_Declarations
3399  */
3400 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3401     "format",
3402     "%0\n\n\
3403 #  if defined(__STDC__) || defined(__cplusplus)\n\
3404      extern int snprintf(char *, size_t, const char *, ...);\n\
3405      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3406 #  else /* not __STDC__) || __cplusplus */\n\
3407      extern int snprintf();\n\
3408      extern int vsnprintf();\n\
3409 #  endif /* __STDC__) || __cplusplus */\n",
3410     (char*)NULL };
3411
3412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3413  *
3414  *  Description of Hpux11_Abs fix
3415  */
3416 tSCC zHpux11_AbsName[] =
3417      "hpux11_abs";
3418
3419 /*
3420  *  File name selection pattern
3421  */
3422 tSCC zHpux11_AbsList[] =
3423   "stdlib.h\0";
3424 /*
3425  *  Machine/OS name selection pattern
3426  */
3427 tSCC* apzHpux11_AbsMachs[] = {
3428         "*-hp-hpux11*",
3429         (const char*)NULL };
3430
3431 /*
3432  *  content selection pattern - do fix if pattern found
3433  */
3434 tSCC zHpux11_AbsSelect0[] =
3435        "ifndef _MATH_INCLUDED";
3436
3437 #define    HPUX11_ABS_TEST_CT  1
3438 static tTestDesc aHpux11_AbsTests[] = {
3439   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
3440
3441 /*
3442  *  Fix Command Arguments for Hpux11_Abs
3443  */
3444 static const char* apzHpux11_AbsPatch[] = {
3445     "format",
3446     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3447     (char*)NULL };
3448
3449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3450  *
3451  *  Description of Hpux11_Fabsf fix
3452  */
3453 tSCC zHpux11_FabsfName[] =
3454      "hpux11_fabsf";
3455
3456 /*
3457  *  File name selection pattern
3458  */
3459 tSCC zHpux11_FabsfList[] =
3460   "math.h\0";
3461 /*
3462  *  Machine/OS name selection pattern
3463  */
3464 #define apzHpux11_FabsfMachs (const char**)NULL
3465
3466 /*
3467  *  content selection pattern - do fix if pattern found
3468  */
3469 tSCC zHpux11_FabsfSelect0[] =
3470        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3471
3472 /*
3473  *  content bypass pattern - skip fix if pattern found
3474  */
3475 tSCC zHpux11_FabsfBypass0[] =
3476        "__cplusplus";
3477
3478 #define    HPUX11_FABSF_TEST_CT  2
3479 static tTestDesc aHpux11_FabsfTests[] = {
3480   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
3481   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3482
3483 /*
3484  *  Fix Command Arguments for Hpux11_Fabsf
3485  */
3486 static const char* apzHpux11_FabsfPatch[] = {
3487     "format",
3488     "#ifndef __cplusplus\n\
3489 %0\n\
3490 #endif",
3491     (char*)NULL };
3492
3493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3494  *
3495  *  Description of Hpux11_Pthread_Const fix
3496  */
3497 tSCC zHpux11_Pthread_ConstName[] =
3498      "hpux11_pthread_const";
3499
3500 /*
3501  *  File name selection pattern
3502  */
3503 tSCC zHpux11_Pthread_ConstList[] =
3504   "sys/pthread.h\0";
3505 /*
3506  *  Machine/OS name selection pattern
3507  */
3508 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3509         "*-hp-hpux11.[0-3]*",
3510         (const char*)NULL };
3511
3512 /*
3513  *  content selection pattern - do fix if pattern found
3514  */
3515 tSCC zHpux11_Pthread_ConstSelect0[] =
3516        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3517
3518 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
3519 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3520   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3521
3522 /*
3523  *  Fix Command Arguments for Hpux11_Pthread_Const
3524  */
3525 static const char* apzHpux11_Pthread_ConstPatch[] = {
3526     "format",
3527     "#define __POINTER_SET\t\t((void *) 1L)",
3528     (char*)NULL };
3529
3530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3531  *
3532  *  Description of Hpux11_Size_T fix
3533  */
3534 tSCC zHpux11_Size_TName[] =
3535      "hpux11_size_t";
3536
3537 /*
3538  *  File name selection pattern
3539  */
3540 #define zHpux11_Size_TList (char*)NULL
3541 /*
3542  *  Machine/OS name selection pattern
3543  */
3544 tSCC* apzHpux11_Size_TMachs[] = {
3545         "*-hp-hpux11*",
3546         (const char*)NULL };
3547
3548 /*
3549  *  content selection pattern - do fix if pattern found
3550  */
3551 tSCC zHpux11_Size_TSelect0[] =
3552        "__size_t";
3553
3554 #define    HPUX11_SIZE_T_TEST_CT  1
3555 static tTestDesc aHpux11_Size_TTests[] = {
3556   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3557
3558 /*
3559  *  Fix Command Arguments for Hpux11_Size_T
3560  */
3561 static const char* apzHpux11_Size_TPatch[] = {
3562     "format",
3563     "_hpux_size_t",
3564     (char*)NULL };
3565
3566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3567  *
3568  *  Description of Hpux11_Snprintf fix
3569  */
3570 tSCC zHpux11_SnprintfName[] =
3571      "hpux11_snprintf";
3572
3573 /*
3574  *  File name selection pattern
3575  */
3576 tSCC zHpux11_SnprintfList[] =
3577   "stdio.h\0";
3578 /*
3579  *  Machine/OS name selection pattern
3580  */
3581 #define apzHpux11_SnprintfMachs (const char**)NULL
3582
3583 /*
3584  *  content selection pattern - do fix if pattern found
3585  */
3586 tSCC zHpux11_SnprintfSelect0[] =
3587        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3588
3589 #define    HPUX11_SNPRINTF_TEST_CT  1
3590 static tTestDesc aHpux11_SnprintfTests[] = {
3591   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3592
3593 /*
3594  *  Fix Command Arguments for Hpux11_Snprintf
3595  */
3596 static const char* apzHpux11_SnprintfPatch[] = {
3597     "format",
3598     "%1 const %3",
3599     (char*)NULL };
3600
3601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3602  *
3603  *  Description of Hpux11_Vsnprintf fix
3604  */
3605 tSCC zHpux11_VsnprintfName[] =
3606      "hpux11_vsnprintf";
3607
3608 /*
3609  *  File name selection pattern
3610  */
3611 tSCC zHpux11_VsnprintfList[] =
3612   "stdio.h\0";
3613 /*
3614  *  Machine/OS name selection pattern
3615  */
3616 #define apzHpux11_VsnprintfMachs (const char**)NULL
3617
3618 /*
3619  *  content selection pattern - do fix if pattern found
3620  */
3621 tSCC zHpux11_VsnprintfSelect0[] =
3622        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3623
3624 #define    HPUX11_VSNPRINTF_TEST_CT  1
3625 static tTestDesc aHpux11_VsnprintfTests[] = {
3626   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3627
3628 /*
3629  *  Fix Command Arguments for Hpux11_Vsnprintf
3630  */
3631 static const char* apzHpux11_VsnprintfPatch[] = {
3632     "format",
3633     "%1 __va_list);",
3634     (char*)NULL };
3635
3636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3637  *
3638  *  Description of Hpux8_Bogus_Inlines fix
3639  */
3640 tSCC zHpux8_Bogus_InlinesName[] =
3641      "hpux8_bogus_inlines";
3642
3643 /*
3644  *  File name selection pattern
3645  */
3646 tSCC zHpux8_Bogus_InlinesList[] =
3647   "math.h\0";
3648 /*
3649  *  Machine/OS name selection pattern
3650  */
3651 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3652
3653 /*
3654  *  content selection pattern - do fix if pattern found
3655  */
3656 tSCC zHpux8_Bogus_InlinesSelect0[] =
3657        "inline";
3658
3659 /*
3660  *  content bypass pattern - skip fix if pattern found
3661  */
3662 tSCC zHpux8_Bogus_InlinesBypass0[] =
3663        "__GNUG__";
3664
3665 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
3666 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3667   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3668   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3669
3670 /*
3671  *  Fix Command Arguments for Hpux8_Bogus_Inlines
3672  */
3673 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3674     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3675     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3676     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3677     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3678     (char*)NULL };
3679
3680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3681  *
3682  *  Description of Hpux_Ctype_Macros fix
3683  */
3684 tSCC zHpux_Ctype_MacrosName[] =
3685      "hpux_ctype_macros";
3686
3687 /*
3688  *  File name selection pattern
3689  */
3690 tSCC zHpux_Ctype_MacrosList[] =
3691   "ctype.h\0";
3692 /*
3693  *  Machine/OS name selection pattern
3694  */
3695 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3696
3697 /*
3698  *  content selection pattern - do fix if pattern found
3699  */
3700 tSCC zHpux_Ctype_MacrosSelect0[] =
3701        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3702
3703 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3704 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3705   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3706
3707 /*
3708  *  Fix Command Arguments for Hpux_Ctype_Macros
3709  */
3710 static const char* apzHpux_Ctype_MacrosPatch[] = {
3711     "format",
3712     "%1(int)%3",
3713     (char*)NULL };
3714
3715 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3716  *
3717  *  Description of Hpux_Htonl fix
3718  */
3719 tSCC zHpux_HtonlName[] =
3720      "hpux_htonl";
3721
3722 /*
3723  *  File name selection pattern
3724  */
3725 tSCC zHpux_HtonlList[] =
3726   "netinet/in.h\0";
3727 /*
3728  *  Machine/OS name selection pattern
3729  */
3730 #define apzHpux_HtonlMachs (const char**)NULL
3731
3732 /*
3733  *  content selection pattern - do fix if pattern found
3734  */
3735 tSCC zHpux_HtonlSelect0[] =
3736        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3737 (/\\*\n\
3738  \\* Macros for number representation conversion\\.\n\
3739  \\*/\n\
3740 #ifndef ntohl)";
3741
3742 #define    HPUX_HTONL_TEST_CT  1
3743 static tTestDesc aHpux_HtonlTests[] = {
3744   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
3745
3746 /*
3747  *  Fix Command Arguments for Hpux_Htonl
3748  */
3749 static const char* apzHpux_HtonlPatch[] = {
3750     "format",
3751     "#if 1\n\
3752 %1",
3753     (char*)NULL };
3754
3755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3756  *
3757  *  Description of Hpux_Long_Double fix
3758  */
3759 tSCC zHpux_Long_DoubleName[] =
3760      "hpux_long_double";
3761
3762 /*
3763  *  File name selection pattern
3764  */
3765 tSCC zHpux_Long_DoubleList[] =
3766   "stdlib.h\0";
3767 /*
3768  *  Machine/OS name selection pattern
3769  */
3770 tSCC* apzHpux_Long_DoubleMachs[] = {
3771         "*-*-hpux10*",
3772         "*-*-hpux11.[012]*",
3773         (const char*)NULL };
3774
3775 /*
3776  *  content selection pattern - do fix if pattern found
3777  */
3778 tSCC zHpux_Long_DoubleSelect0[] =
3779        "extern[ \t]long_double[ \t]strtold";
3780
3781 /*
3782  *  content bypass pattern - skip fix if pattern found
3783  */
3784 tSCC zHpux_Long_DoubleBypass0[] =
3785        "long_double_t";
3786
3787 #define    HPUX_LONG_DOUBLE_TEST_CT  2
3788 static tTestDesc aHpux_Long_DoubleTests[] = {
3789   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3790   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3791
3792 /*
3793  *  Fix Command Arguments for Hpux_Long_Double
3794  */
3795 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3796     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3797     "-e", "s/long_double/long double/g",
3798     (char*)NULL };
3799
3800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3801  *
3802  *  Description of Hpux_Long_Double_2 fix
3803  */
3804 tSCC zHpux_Long_Double_2Name[] =
3805      "hpux_long_double_2";
3806
3807 /*
3808  *  File name selection pattern
3809  */
3810 tSCC zHpux_Long_Double_2List[] =
3811   "stdlib.h\0";
3812 /*
3813  *  Machine/OS name selection pattern
3814  */
3815 tSCC* apzHpux_Long_Double_2Machs[] = {
3816         "hppa*-*-hpux11.3*",
3817         (const char*)NULL };
3818
3819 /*
3820  *  content selection pattern - do fix if pattern found
3821  */
3822 tSCC zHpux_Long_Double_2Select0[] =
3823        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3824
3825 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
3826 static tTestDesc aHpux_Long_Double_2Tests[] = {
3827   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3828
3829 /*
3830  *  Fix Command Arguments for Hpux_Long_Double_2
3831  */
3832 static const char* apzHpux_Long_Double_2Patch[] = {
3833     "format",
3834     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3835     (char*)NULL };
3836
3837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3838  *
3839  *  Description of Hpux_Systime fix
3840  */
3841 tSCC zHpux_SystimeName[] =
3842      "hpux_systime";
3843
3844 /*
3845  *  File name selection pattern
3846  */
3847 tSCC zHpux_SystimeList[] =
3848   "sys/time.h\0";
3849 /*
3850  *  Machine/OS name selection pattern
3851  */
3852 #define apzHpux_SystimeMachs (const char**)NULL
3853
3854 /*
3855  *  content selection pattern - do fix if pattern found
3856  */
3857 tSCC zHpux_SystimeSelect0[] =
3858        "^extern struct sigevent;";
3859
3860 #define    HPUX_SYSTIME_TEST_CT  1
3861 static tTestDesc aHpux_SystimeTests[] = {
3862   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
3863
3864 /*
3865  *  Fix Command Arguments for Hpux_Systime
3866  */
3867 static const char* apzHpux_SystimePatch[] = {
3868     "format",
3869     "struct sigevent;",
3870     (char*)NULL };
3871
3872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3873  *
3874  *  Description of Hpux_Spu_Info fix
3875  */
3876 tSCC zHpux_Spu_InfoName[] =
3877      "hpux_spu_info";
3878
3879 /*
3880  *  File name selection pattern
3881  */
3882 tSCC zHpux_Spu_InfoList[] =
3883   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3884 /*
3885  *  Machine/OS name selection pattern
3886  */
3887 tSCC* apzHpux_Spu_InfoMachs[] = {
3888         "*-hp-hpux*",
3889         (const char*)NULL };
3890
3891 /*
3892  *  content selection pattern - do fix if pattern found
3893  */
3894 tSCC zHpux_Spu_InfoSelect0[] =
3895        "^.*extern.*spu_info.*";
3896
3897 #define    HPUX_SPU_INFO_TEST_CT  1
3898 static tTestDesc aHpux_Spu_InfoTests[] = {
3899   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3900
3901 /*
3902  *  Fix Command Arguments for Hpux_Spu_Info
3903  */
3904 static const char* apzHpux_Spu_InfoPatch[] = {
3905     "format",
3906     "#ifdef _KERNEL\n\
3907 %0\n\
3908 #endif",
3909     (char*)NULL };
3910
3911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3912  *
3913  *  Description of Hpux11_Extern_Sendfile fix
3914  */
3915 tSCC zHpux11_Extern_SendfileName[] =
3916      "hpux11_extern_sendfile";
3917
3918 /*
3919  *  File name selection pattern
3920  */
3921 tSCC zHpux11_Extern_SendfileList[] =
3922   "sys/socket.h\0";
3923 /*
3924  *  Machine/OS name selection pattern
3925  */
3926 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3927         "*-hp-hpux11.[12]*",
3928         (const char*)NULL };
3929
3930 /*
3931  *  content selection pattern - do fix if pattern found
3932  */
3933 tSCC zHpux11_Extern_SendfileSelect0[] =
3934        "^[ \t]*extern sbsize_t sendfile.*\n\
3935 .*, int\\)\\);\n";
3936
3937 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
3938 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3939   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3940
3941 /*
3942  *  Fix Command Arguments for Hpux11_Extern_Sendfile
3943  */
3944 static const char* apzHpux11_Extern_SendfilePatch[] = {
3945     "format",
3946     "#ifndef _APP32_64BIT_OFF_T\n\
3947 %0#endif\n",
3948     (char*)NULL };
3949
3950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3951  *
3952  *  Description of Hpux11_Extern_Sendpath fix
3953  */
3954 tSCC zHpux11_Extern_SendpathName[] =
3955      "hpux11_extern_sendpath";
3956
3957 /*
3958  *  File name selection pattern
3959  */
3960 tSCC zHpux11_Extern_SendpathList[] =
3961   "sys/socket.h\0";
3962 /*
3963  *  Machine/OS name selection pattern
3964  */
3965 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3966         "*-hp-hpux11.[12]*",
3967         (const char*)NULL };
3968
3969 /*
3970  *  content selection pattern - do fix if pattern found
3971  */
3972 tSCC zHpux11_Extern_SendpathSelect0[] =
3973        "^[ \t]*extern sbsize_t sendpath.*\n\
3974 .*, int\\)\\);\n";
3975
3976 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
3977 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3978   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3979
3980 /*
3981  *  Fix Command Arguments for Hpux11_Extern_Sendpath
3982  */
3983 static const char* apzHpux11_Extern_SendpathPatch[] = {
3984     "format",
3985     "#ifndef _APP32_64BIT_OFF_T\n\
3986 %0#endif\n",
3987     (char*)NULL };
3988
3989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3990  *
3991  *  Description of Hpux_Extern_Errno fix
3992  */
3993 tSCC zHpux_Extern_ErrnoName[] =
3994      "hpux_extern_errno";
3995
3996 /*
3997  *  File name selection pattern
3998  */
3999 tSCC zHpux_Extern_ErrnoList[] =
4000   "errno.h\0";
4001 /*
4002  *  Machine/OS name selection pattern
4003  */
4004 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4005         "*-hp-hpux10.*",
4006         "*-hp-hpux11.[0-2]*",
4007         (const char*)NULL };
4008
4009 /*
4010  *  content selection pattern - do fix if pattern found
4011  */
4012 tSCC zHpux_Extern_ErrnoSelect0[] =
4013        "^[ \t]*extern int errno;$";
4014
4015 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
4016 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4017   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4018
4019 /*
4020  *  Fix Command Arguments for Hpux_Extern_Errno
4021  */
4022 static const char* apzHpux_Extern_ErrnoPatch[] = {
4023     "format",
4024     "#ifdef __cplusplus\n\
4025 extern \"C\" {\n\
4026 #endif\n\
4027 %0\n\
4028 #ifdef __cplusplus\n\
4029 }\n\
4030 #endif",
4031     (char*)NULL };
4032
4033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4034  *
4035  *  Description of Hpux_Pthread_Initializers fix
4036  */
4037 tSCC zHpux_Pthread_InitializersName[] =
4038      "hpux_pthread_initializers";
4039
4040 /*
4041  *  File name selection pattern
4042  */
4043 tSCC zHpux_Pthread_InitializersList[] =
4044   "sys/pthread.h\0";
4045 /*
4046  *  Machine/OS name selection pattern
4047  */
4048 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4049         "*-hp-hpux11.[0-3]*",
4050         (const char*)NULL };
4051 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
4052 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
4053
4054 /*
4055  *  Fix Command Arguments for Hpux_Pthread_Initializers
4056  */
4057 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4058     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4059     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4060     "-e", "/^[ \t]*0$/d",
4061     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4062     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4063     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4064     "-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\\\\@",
4065     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4066     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4067     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4068     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4069     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4070     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4071     (char*)NULL };
4072
4073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4074  *
4075  *  Description of Hpux_C99_Intptr fix
4076  */
4077 tSCC zHpux_C99_IntptrName[] =
4078      "hpux_c99_intptr";
4079
4080 /*
4081  *  File name selection pattern
4082  */
4083 tSCC zHpux_C99_IntptrList[] =
4084   "stdint-hpux11.h\0stdint.h\0";
4085 /*
4086  *  Machine/OS name selection pattern
4087  */
4088 tSCC* apzHpux_C99_IntptrMachs[] = {
4089         "*-hp-hpux11.3*",
4090         (const char*)NULL };
4091 #define HPUX_C99_INTPTR_TEST_CT  0
4092 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4093
4094 /*
4095  *  Fix Command Arguments for Hpux_C99_Intptr
4096  */
4097 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4098     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4099     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4100     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4101     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4102     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4103     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4104     (char*)NULL };
4105
4106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4107  *
4108  *  Description of Hpux_C99_Inttypes fix
4109  */
4110 tSCC zHpux_C99_InttypesName[] =
4111      "hpux_c99_inttypes";
4112
4113 /*
4114  *  File name selection pattern
4115  */
4116 tSCC zHpux_C99_InttypesList[] =
4117   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4118 /*
4119  *  Machine/OS name selection pattern
4120  */
4121 tSCC* apzHpux_C99_InttypesMachs[] = {
4122         "*-hp-hpux11.[23]*",
4123         (const char*)NULL };
4124 #define HPUX_C99_INTTYPES_TEST_CT  0
4125 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4126
4127 /*
4128  *  Fix Command Arguments for Hpux_C99_Inttypes
4129  */
4130 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4131     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4132     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4133     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4134     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4135     (char*)NULL };
4136
4137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4138  *
4139  *  Description of Hpux_C99_Inttypes2 fix
4140  */
4141 tSCC zHpux_C99_Inttypes2Name[] =
4142      "hpux_c99_inttypes2";
4143
4144 /*
4145  *  File name selection pattern
4146  */
4147 tSCC zHpux_C99_Inttypes2List[] =
4148   "stdint-hpux11.h\0stdint.h\0";
4149 /*
4150  *  Machine/OS name selection pattern
4151  */
4152 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4153         "*-hp-hpux11.2*",
4154         (const char*)NULL };
4155 #define HPUX_C99_INTTYPES2_TEST_CT  0
4156 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4157
4158 /*
4159  *  Fix Command Arguments for Hpux_C99_Inttypes2
4160  */
4161 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4162     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4163     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4164     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4165     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4166     (char*)NULL };
4167
4168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4169  *
4170  *  Description of Hpux_Stdint_Least_Fast fix
4171  */
4172 tSCC zHpux_Stdint_Least_FastName[] =
4173      "hpux_stdint_least_fast";
4174
4175 /*
4176  *  File name selection pattern
4177  */
4178 tSCC zHpux_Stdint_Least_FastList[] =
4179   "stdint-hpux11.h\0stdint.h\0";
4180 /*
4181  *  Machine/OS name selection pattern
4182  */
4183 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4184         "*-hp-hpux11.2*",
4185         (const char*)NULL };
4186
4187 /*
4188  *  content selection pattern - do fix if pattern found
4189  */
4190 tSCC zHpux_Stdint_Least_FastSelect0[] =
4191        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4192
4193 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
4194 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4195   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4196
4197 /*
4198  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
4199  */
4200 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4201     "format",
4202     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
4203     (char*)NULL };
4204
4205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4206  *
4207  *  Description of Hpux_Inttype_Int8_T fix
4208  */
4209 tSCC zHpux_Inttype_Int8_TName[] =
4210      "hpux_inttype_int8_t";
4211
4212 /*
4213  *  File name selection pattern
4214  */
4215 tSCC zHpux_Inttype_Int8_TList[] =
4216   "sys/_inttypes.h\0";
4217 /*
4218  *  Machine/OS name selection pattern
4219  */
4220 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4221         "*-hp-hpux1[01].*",
4222         (const char*)NULL };
4223
4224 /*
4225  *  content selection pattern - do fix if pattern found
4226  */
4227 tSCC zHpux_Inttype_Int8_TSelect0[] =
4228        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4229
4230 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4231 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4232   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4233
4234 /*
4235  *  Fix Command Arguments for Hpux_Inttype_Int8_T
4236  */
4237 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4238     "format",
4239     "typedef signed char int%18_t;",
4240     (char*)NULL };
4241
4242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4243  *
4244  *  Description of Hpux_Imaginary_I fix
4245  */
4246 tSCC zHpux_Imaginary_IName[] =
4247      "hpux_imaginary_i";
4248
4249 /*
4250  *  File name selection pattern
4251  */
4252 tSCC zHpux_Imaginary_IList[] =
4253   "complex.h\0";
4254 /*
4255  *  Machine/OS name selection pattern
4256  */
4257 tSCC* apzHpux_Imaginary_IMachs[] = {
4258         "ia64-hp-hpux11.*",
4259         (const char*)NULL };
4260
4261 /*
4262  *  content selection pattern - do fix if pattern found
4263  */
4264 tSCC zHpux_Imaginary_ISelect0[] =
4265        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4266
4267 #define    HPUX_IMAGINARY_I_TEST_CT  1
4268 static tTestDesc aHpux_Imaginary_ITests[] = {
4269   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4270
4271 /*
4272  *  Fix Command Arguments for Hpux_Imaginary_I
4273  */
4274 static const char* apzHpux_Imaginary_IPatch[] = {
4275     "format",
4276     "#define _Complex_I (__extension__ 1.0iF)",
4277     (char*)NULL };
4278
4279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4280  *
4281  *  Description of Huge_Val_Hex fix
4282  */
4283 tSCC zHuge_Val_HexName[] =
4284      "huge_val_hex";
4285
4286 /*
4287  *  File name selection pattern
4288  */
4289 tSCC zHuge_Val_HexList[] =
4290   "bits/huge_val.h\0";
4291 /*
4292  *  Machine/OS name selection pattern
4293  */
4294 #define apzHuge_Val_HexMachs (const char**)NULL
4295
4296 /*
4297  *  content selection pattern - do fix if pattern found
4298  */
4299 tSCC zHuge_Val_HexSelect0[] =
4300        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4301
4302 /*
4303  *  content bypass pattern - skip fix if pattern found
4304  */
4305 tSCC zHuge_Val_HexBypass0[] =
4306        "__builtin_huge_val";
4307
4308 #define    HUGE_VAL_HEX_TEST_CT  2
4309 static tTestDesc aHuge_Val_HexTests[] = {
4310   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
4311   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4312
4313 /*
4314  *  Fix Command Arguments for Huge_Val_Hex
4315  */
4316 static const char* apzHuge_Val_HexPatch[] = {
4317     "format",
4318     "#define HUGE_VAL (__builtin_huge_val())\n",
4319     (char*)NULL };
4320
4321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4322  *
4323  *  Description of Huge_Valf_Hex fix
4324  */
4325 tSCC zHuge_Valf_HexName[] =
4326      "huge_valf_hex";
4327
4328 /*
4329  *  File name selection pattern
4330  */
4331 tSCC zHuge_Valf_HexList[] =
4332   "bits/huge_val.h\0";
4333 /*
4334  *  Machine/OS name selection pattern
4335  */
4336 #define apzHuge_Valf_HexMachs (const char**)NULL
4337
4338 /*
4339  *  content selection pattern - do fix if pattern found
4340  */
4341 tSCC zHuge_Valf_HexSelect0[] =
4342        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4343
4344 /*
4345  *  content bypass pattern - skip fix if pattern found
4346  */
4347 tSCC zHuge_Valf_HexBypass0[] =
4348        "__builtin_huge_valf";
4349
4350 #define    HUGE_VALF_HEX_TEST_CT  2
4351 static tTestDesc aHuge_Valf_HexTests[] = {
4352   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
4353   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4354
4355 /*
4356  *  Fix Command Arguments for Huge_Valf_Hex
4357  */
4358 static const char* apzHuge_Valf_HexPatch[] = {
4359     "format",
4360     "#define HUGE_VALF (__builtin_huge_valf())\n",
4361     (char*)NULL };
4362
4363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4364  *
4365  *  Description of Huge_Vall_Hex fix
4366  */
4367 tSCC zHuge_Vall_HexName[] =
4368      "huge_vall_hex";
4369
4370 /*
4371  *  File name selection pattern
4372  */
4373 tSCC zHuge_Vall_HexList[] =
4374   "bits/huge_val.h\0";
4375 /*
4376  *  Machine/OS name selection pattern
4377  */
4378 #define apzHuge_Vall_HexMachs (const char**)NULL
4379
4380 /*
4381  *  content selection pattern - do fix if pattern found
4382  */
4383 tSCC zHuge_Vall_HexSelect0[] =
4384        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4385
4386 /*
4387  *  content bypass pattern - skip fix if pattern found
4388  */
4389 tSCC zHuge_Vall_HexBypass0[] =
4390        "__builtin_huge_vall";
4391
4392 #define    HUGE_VALL_HEX_TEST_CT  2
4393 static tTestDesc aHuge_Vall_HexTests[] = {
4394   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
4395   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4396
4397 /*
4398  *  Fix Command Arguments for Huge_Vall_Hex
4399  */
4400 static const char* apzHuge_Vall_HexPatch[] = {
4401     "format",
4402     "#define HUGE_VALL (__builtin_huge_vall())\n",
4403     (char*)NULL };
4404
4405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4406  *
4407  *  Description of Int_Abort_Free_And_Exit fix
4408  */
4409 tSCC zInt_Abort_Free_And_ExitName[] =
4410      "int_abort_free_and_exit";
4411
4412 /*
4413  *  File name selection pattern
4414  */
4415 tSCC zInt_Abort_Free_And_ExitList[] =
4416   "stdlib.h\0";
4417 /*
4418  *  Machine/OS name selection pattern
4419  */
4420 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4421
4422 /*
4423  *  content selection pattern - do fix if pattern found
4424  */
4425 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4426        "int[ \t]+(abort|free|exit)[ \t]*\\(";
4427
4428 /*
4429  *  content bypass pattern - skip fix if pattern found
4430  */
4431 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4432        "_CLASSIC_ANSI_TYPES";
4433
4434 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
4435 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4436   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4437   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4438
4439 /*
4440  *  Fix Command Arguments for Int_Abort_Free_And_Exit
4441  */
4442 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4443     "format",
4444     "void\t%1(",
4445     (char*)NULL };
4446
4447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4448  *
4449  *  Description of Io_Quotes_Def fix
4450  */
4451 tSCC zIo_Quotes_DefName[] =
4452      "io_quotes_def";
4453
4454 /*
4455  *  File name selection pattern
4456  */
4457 #define zIo_Quotes_DefList (char*)NULL
4458 /*
4459  *  Machine/OS name selection pattern
4460  */
4461 #define apzIo_Quotes_DefMachs (const char**)NULL
4462
4463 /*
4464  *  content selection pattern - do fix if pattern found
4465  */
4466 tSCC zIo_Quotes_DefSelect0[] =
4467        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4468
4469 #define    IO_QUOTES_DEF_TEST_CT  1
4470 static tTestDesc aIo_Quotes_DefTests[] = {
4471   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4472
4473 /*
4474  *  Fix Command Arguments for Io_Quotes_Def
4475  */
4476 static const char* apzIo_Quotes_DefPatch[] = {
4477     "char_macro_def",
4478     "IO",
4479     (char*)NULL };
4480
4481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4482  *
4483  *  Description of Io_Quotes_Use fix
4484  */
4485 tSCC zIo_Quotes_UseName[] =
4486      "io_quotes_use";
4487
4488 /*
4489  *  File name selection pattern
4490  */
4491 #define zIo_Quotes_UseList (char*)NULL
4492 /*
4493  *  Machine/OS name selection pattern
4494  */
4495 #define apzIo_Quotes_UseMachs (const char**)NULL
4496
4497 /*
4498  *  content selection pattern - do fix if pattern found
4499  */
4500 tSCC zIo_Quotes_UseSelect0[] =
4501        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4502
4503 #define    IO_QUOTES_USE_TEST_CT  1
4504 static tTestDesc aIo_Quotes_UseTests[] = {
4505   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4506
4507 /*
4508  *  Fix Command Arguments for Io_Quotes_Use
4509  */
4510 static const char* apzIo_Quotes_UsePatch[] = {
4511     "char_macro_use",
4512     "IO",
4513     (char*)NULL };
4514
4515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4516  *
4517  *  Description of Ip_Missing_Semi fix
4518  */
4519 tSCC zIp_Missing_SemiName[] =
4520      "ip_missing_semi";
4521
4522 /*
4523  *  File name selection pattern
4524  */
4525 tSCC zIp_Missing_SemiList[] =
4526   "netinet/ip.h\0";
4527 /*
4528  *  Machine/OS name selection pattern
4529  */
4530 #define apzIp_Missing_SemiMachs (const char**)NULL
4531
4532 /*
4533  *  content selection pattern - do fix if pattern found
4534  */
4535 tSCC zIp_Missing_SemiSelect0[] =
4536        "}$";
4537
4538 #define    IP_MISSING_SEMI_TEST_CT  1
4539 static tTestDesc aIp_Missing_SemiTests[] = {
4540   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4541
4542 /*
4543  *  Fix Command Arguments for Ip_Missing_Semi
4544  */
4545 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4546     "-e", "/^struct/,/^};/s/}$/};/",
4547     (char*)NULL };
4548
4549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4550  *
4551  *  Description of Irix___Restrict fix
4552  */
4553 tSCC zIrix___RestrictName[] =
4554      "irix___restrict";
4555
4556 /*
4557  *  File name selection pattern
4558  */
4559 tSCC zIrix___RestrictList[] =
4560   "internal/sgimacros.h\0";
4561 /*
4562  *  Machine/OS name selection pattern
4563  */
4564 tSCC* apzIrix___RestrictMachs[] = {
4565         "mips-sgi-irix6.5",
4566         (const char*)NULL };
4567
4568 /*
4569  *  content selection pattern - do fix if pattern found
4570  */
4571 tSCC zIrix___RestrictSelect0[] =
4572        "(#ifdef __c99\n\
4573 )(#[ \t]*define __restrict restrict)";
4574
4575 #define    IRIX___RESTRICT_TEST_CT  1
4576 static tTestDesc aIrix___RestrictTests[] = {
4577   { TT_EGREP,    zIrix___RestrictSelect0, (regex_t*)NULL }, };
4578
4579 /*
4580  *  Fix Command Arguments for Irix___Restrict
4581  */
4582 static const char* apzIrix___RestrictPatch[] = {
4583     "format",
4584     "%1#  ifndef __cplusplus\n\
4585 %2\n\
4586 #  endif",
4587     (char*)NULL };
4588
4589 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4590  *
4591  *  Description of Irix___Generic1 fix
4592  */
4593 tSCC zIrix___Generic1Name[] =
4594      "irix___generic1";
4595
4596 /*
4597  *  File name selection pattern
4598  */
4599 tSCC zIrix___Generic1List[] =
4600   "internal/math_core.h\0";
4601 /*
4602  *  Machine/OS name selection pattern
4603  */
4604 tSCC* apzIrix___Generic1Machs[] = {
4605         "mips-sgi-irix6.5",
4606         (const char*)NULL };
4607
4608 /*
4609  *  content selection pattern - do fix if pattern found
4610  */
4611 tSCC zIrix___Generic1Select0[] =
4612        "#define ([a-z]+)\\(x\\) *__generic.*";
4613
4614 #define    IRIX___GENERIC1_TEST_CT  1
4615 static tTestDesc aIrix___Generic1Tests[] = {
4616   { TT_EGREP,    zIrix___Generic1Select0, (regex_t*)NULL }, };
4617
4618 /*
4619  *  Fix Command Arguments for Irix___Generic1
4620  */
4621 static const char* apzIrix___Generic1Patch[] = {
4622     "format",
4623     "extern int %1(double);\n\
4624 extern int %1f(float);\n\
4625 extern int %1l(long double);\n\
4626 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4627                : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4628                : _%1l(x))\n",
4629     (char*)NULL };
4630
4631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4632  *
4633  *  Description of Irix___Generic2 fix
4634  */
4635 tSCC zIrix___Generic2Name[] =
4636      "irix___generic2";
4637
4638 /*
4639  *  File name selection pattern
4640  */
4641 tSCC zIrix___Generic2List[] =
4642   "internal/math_core.h\0";
4643 /*
4644  *  Machine/OS name selection pattern
4645  */
4646 tSCC* apzIrix___Generic2Machs[] = {
4647         "mips-sgi-irix6.5",
4648         (const char*)NULL };
4649
4650 /*
4651  *  content selection pattern - do fix if pattern found
4652  */
4653 tSCC zIrix___Generic2Select0[] =
4654        "#define ([a-z]+)\\(x,y\\) *__generic.*";
4655
4656 #define    IRIX___GENERIC2_TEST_CT  1
4657 static tTestDesc aIrix___Generic2Tests[] = {
4658   { TT_EGREP,    zIrix___Generic2Select0, (regex_t*)NULL }, };
4659
4660 /*
4661  *  Fix Command Arguments for Irix___Generic2
4662  */
4663 static const char* apzIrix___Generic2Patch[] = {
4664     "format",
4665     "#define %1(x,y) \\\n\
4666   ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4667    : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4668    : _%1l(x,y))\n",
4669     (char*)NULL };
4670
4671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4672  *
4673  *  Description of Irix_Asm_Apostrophe fix
4674  */
4675 tSCC zIrix_Asm_ApostropheName[] =
4676      "irix_asm_apostrophe";
4677
4678 /*
4679  *  File name selection pattern
4680  */
4681 tSCC zIrix_Asm_ApostropheList[] =
4682   "sys/asm.h\0";
4683 /*
4684  *  Machine/OS name selection pattern
4685  */
4686 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4687
4688 /*
4689  *  content selection pattern - do fix if pattern found
4690  */
4691 tSCC zIrix_Asm_ApostropheSelect0[] =
4692        "^[ \t]*#.*[Ww]e're";
4693
4694 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
4695 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4696   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4697
4698 /*
4699  *  Fix Command Arguments for Irix_Asm_Apostrophe
4700  */
4701 static const char* apzIrix_Asm_ApostrophePatch[] = {
4702     "format",
4703     "%1 are",
4704     "^([ \t]*#.*[Ww]e)'re",
4705     (char*)NULL };
4706
4707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4708  *
4709  *  Description of Irix_Complex fix
4710  */
4711 tSCC zIrix_ComplexName[] =
4712      "irix_complex";
4713
4714 /*
4715  *  File name selection pattern
4716  */
4717 tSCC zIrix_ComplexList[] =
4718   "complex.h\0";
4719 /*
4720  *  Machine/OS name selection pattern
4721  */
4722 tSCC* apzIrix_ComplexMachs[] = {
4723         "mips-sgi-irix6.5",
4724         (const char*)NULL };
4725
4726 /*
4727  *  content selection pattern - do fix if pattern found
4728  */
4729 tSCC zIrix_ComplexSelect0[] =
4730        "#define[ \t]_Complex_I[ \t]\\(\\(float[ \t]_Complex\\)[ \t]\\(__I__\\)\\)";
4731
4732 #define    IRIX_COMPLEX_TEST_CT  1
4733 static tTestDesc aIrix_ComplexTests[] = {
4734   { TT_EGREP,    zIrix_ComplexSelect0, (regex_t*)NULL }, };
4735
4736 /*
4737  *  Fix Command Arguments for Irix_Complex
4738  */
4739 static const char* apzIrix_ComplexPatch[] = { sed_cmd_z,
4740     "-e", "s/#define[ \t]_Complex_I[ \t]((float[ \t]_Complex)[ \t](__I__))/#define _Complex_I (__extension__ 1.0iF)/",
4741     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
4742     "-e", "/#define[ \t]_Imaginary_I/d",
4743     "-e", "s/#define[ \t]I[ \t]_Imaginary_I/#define I _Complex_I/",
4744     (char*)NULL };
4745
4746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4747  *
4748  *  Description of Irix_Limits_Const fix
4749  */
4750 tSCC zIrix_Limits_ConstName[] =
4751      "irix_limits_const";
4752
4753 /*
4754  *  File name selection pattern
4755  */
4756 tSCC zIrix_Limits_ConstList[] =
4757   "fixinc-test-limits.h\0limits.h\0";
4758 /*
4759  *  Machine/OS name selection pattern
4760  */
4761 #define apzIrix_Limits_ConstMachs (const char**)NULL
4762
4763 /*
4764  *  content selection pattern - do fix if pattern found
4765  */
4766 tSCC zIrix_Limits_ConstSelect0[] =
4767        "^extern const ";
4768
4769 #define    IRIX_LIMITS_CONST_TEST_CT  1
4770 static tTestDesc aIrix_Limits_ConstTests[] = {
4771   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4772
4773 /*
4774  *  Fix Command Arguments for Irix_Limits_Const
4775  */
4776 static const char* apzIrix_Limits_ConstPatch[] = {
4777     "format",
4778     "extern __const ",
4779     (char*)NULL };
4780
4781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4782  *
4783  *  Description of Irix_Pthread_Init fix
4784  */
4785 tSCC zIrix_Pthread_InitName[] =
4786      "irix_pthread_init";
4787
4788 /*
4789  *  File name selection pattern
4790  */
4791 tSCC zIrix_Pthread_InitList[] =
4792   "pthread.h\0";
4793 /*
4794  *  Machine/OS name selection pattern
4795  */
4796 tSCC* apzIrix_Pthread_InitMachs[] = {
4797         "mips-sgi-irix6.5",
4798         (const char*)NULL };
4799
4800 /*
4801  *  content selection pattern - do fix if pattern found
4802  */
4803 tSCC zIrix_Pthread_InitSelect0[] =
4804        "^(#define[ \t]+PTHREAD_.*_INITIALIZER[ \t]+)(\\{ 0 \\})";
4805
4806 #define    IRIX_PTHREAD_INIT_TEST_CT  1
4807 static tTestDesc aIrix_Pthread_InitTests[] = {
4808   { TT_EGREP,    zIrix_Pthread_InitSelect0, (regex_t*)NULL }, };
4809
4810 /*
4811  *  Fix Command Arguments for Irix_Pthread_Init
4812  */
4813 static const char* apzIrix_Pthread_InitPatch[] = {
4814     "format",
4815     "%1{ %2 }",
4816     (char*)NULL };
4817
4818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4819  *
4820  *  Description of Irix_Socklen_T fix
4821  */
4822 tSCC zIrix_Socklen_TName[] =
4823      "irix_socklen_t";
4824
4825 /*
4826  *  File name selection pattern
4827  */
4828 tSCC zIrix_Socklen_TList[] =
4829   "sys/socket.h\0";
4830 /*
4831  *  Machine/OS name selection pattern
4832  */
4833 tSCC* apzIrix_Socklen_TMachs[] = {
4834         "mips-sgi-irix6.5",
4835         (const char*)NULL };
4836
4837 /*
4838  *  content selection pattern - do fix if pattern found
4839  */
4840 tSCC zIrix_Socklen_TSelect0[] =
4841        "(#define _SOCKLEN_T\n\
4842 )(typedef u_int32_t socklen_t;)";
4843
4844 #define    IRIX_SOCKLEN_T_TEST_CT  1
4845 static tTestDesc aIrix_Socklen_TTests[] = {
4846   { TT_EGREP,    zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4847
4848 /*
4849  *  Fix Command Arguments for Irix_Socklen_T
4850  */
4851 static const char* apzIrix_Socklen_TPatch[] = {
4852     "format",
4853     "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4854 typedef int socklen_t;\n\
4855 #else\n\
4856 %2\n\
4857 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4858     (char*)NULL };
4859
4860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4861  *
4862  *  Description of Irix_Stdint_C99_Mode fix
4863  */
4864 tSCC zIrix_Stdint_C99_ModeName[] =
4865      "irix_stdint_c99_mode";
4866
4867 /*
4868  *  File name selection pattern
4869  */
4870 tSCC zIrix_Stdint_C99_ModeList[] =
4871   "stdint.h\0";
4872 /*
4873  *  Machine/OS name selection pattern
4874  */
4875 tSCC* apzIrix_Stdint_C99_ModeMachs[] = {
4876         "mips-sgi-irix6.5",
4877         (const char*)NULL };
4878
4879 /*
4880  *  content selection pattern - do fix if pattern found
4881  */
4882 tSCC zIrix_Stdint_C99_ModeSelect0[] =
4883        "(#ifndef __c99\n\
4884 )(#error This header file is to be used only for c99 mode compilations)";
4885
4886 #define    IRIX_STDINT_C99_MODE_TEST_CT  1
4887 static tTestDesc aIrix_Stdint_C99_ModeTests[] = {
4888   { TT_EGREP,    zIrix_Stdint_C99_ModeSelect0, (regex_t*)NULL }, };
4889
4890 /*
4891  *  Fix Command Arguments for Irix_Stdint_C99_Mode
4892  */
4893 static const char* apzIrix_Stdint_C99_ModePatch[] = {
4894     "format",
4895     "#if 0\n\
4896 %2",
4897     (char*)NULL };
4898
4899 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4900  *
4901  *  Description of Irix_Stdint_C99_Types fix
4902  */
4903 tSCC zIrix_Stdint_C99_TypesName[] =
4904      "irix_stdint_c99_types";
4905
4906 /*
4907  *  File name selection pattern
4908  */
4909 tSCC zIrix_Stdint_C99_TypesList[] =
4910   "stdint-irix65.h\0stdint.h\0";
4911 /*
4912  *  Machine/OS name selection pattern
4913  */
4914 tSCC* apzIrix_Stdint_C99_TypesMachs[] = {
4915         "mips-sgi-irix6.5",
4916         (const char*)NULL };
4917 #define IRIX_STDINT_C99_TYPES_TEST_CT  0
4918 #define aIrix_Stdint_C99_TypesTests   (tTestDesc*)NULL
4919
4920 /*
4921  *  Fix Command Arguments for Irix_Stdint_C99_Types
4922  */
4923 static const char* apzIrix_Stdint_C99_TypesPatch[] = { sed_cmd_z,
4924     "-e", "s@^#define INT64_MIN.*(-0x7fffffffffffffff - 1)$@#define INT64_MIN               (-0x7fffffffffffffffLL - 1)@",
4925     "-e", "s@^#define INT64_MAX.*0x7fffffffffffffff$@#define INT64_MAX               0x7fffffffffffffffLL@",
4926     "-e", "s@^#define UINT32_MAX.*0xffffffff$@#define UINT32_MAX              0xffffffffU@",
4927     "-e", "s@^#define UINT64_MAX.*0xffffffffffffffff$@#define UINT64_MAX              0xffffffffffffffffULL@",
4928     "-e", "s@^#define INTPTR_MIN.*INT32_MIN$@#define INTPTR_MIN              (-0x7fffffffL - 1)@",
4929     "-e", "s@^#define INTPTR_MAX.*INT32_MAX$@#define INTPTR_MAX              0x7fffffffL@",
4930     "-e", "s@^#define UINTPTR_MAX.*UINT32_MAX$@#define UINTPTR_MAX             0xffffffffUL@",
4931     "-e", "s@^#define INTPTR_MIN.*INT64_MIN@#define INTPTR_MIN              (-0x7fffffffffffffffL - 1)@",
4932     "-e", "s@^#define INTPTR_MAX.*INT64_MAX$@#define INTPTR_MAX              0x7fffffffffffffffL@",
4933     "-e", "s@^#define UINTPTR_MAX.*UINT64_MAX$@#define UINTPTR_MAX             0xffffffffffffffffUL@",
4934     "-e", "s@^#define PTRDIFF_MIN.*INT64_MIN$@#define PTRDIFF_MIN             (-0x7fffffffffffffffL - 1)@",
4935     "-e", "s@^#define PTRDIFF_MAX.*INT64_MAX$@#define PTRDIFF_MAX             0x7fffffffffffffffL@",
4936     "-e", "s@^#define SIZE_MAX.*UINT64_MAX$@#define SIZE_MAX                0xffffffffffffffffUL@",
4937     (char*)NULL };
4938
4939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4940  *
4941  *  Description of Irix_Stdint_C99_Macros fix
4942  */
4943 tSCC zIrix_Stdint_C99_MacrosName[] =
4944      "irix_stdint_c99_macros";
4945
4946 /*
4947  *  File name selection pattern
4948  */
4949 tSCC zIrix_Stdint_C99_MacrosList[] =
4950   "stdint-irix65.h\0stdint.h\0";
4951 /*
4952  *  Machine/OS name selection pattern
4953  */
4954 tSCC* apzIrix_Stdint_C99_MacrosMachs[] = {
4955         "mips-sgi-irix6.5",
4956         (const char*)NULL };
4957 #define IRIX_STDINT_C99_MACROS_TEST_CT  0
4958 #define aIrix_Stdint_C99_MacrosTests   (tTestDesc*)NULL
4959
4960 /*
4961  *  Fix Command Arguments for Irix_Stdint_C99_Macros
4962  */
4963 static const char* apzIrix_Stdint_C99_MacrosPatch[] = { sed_cmd_z,
4964     "-e", "s@^#define INT8_C(x).*int.*_t.*$@#define INT8_C(x)               (x)@",
4965     "-e", "s@^#define INT16_C(x).*int.*_t.*$@#define INT16_C(x)              (x)@",
4966     "-e", "s@^#define INT32_C(x).*int.*_t.*$@#define INT32_C(x)              (x)@",
4967     "-e", "s@^#define INT64_C(x).*int.*_t.*$@#define INT64_C(x)              (x ## LL)@",
4968     "-e", "s@^#define UINT8_C(x).*int.*_t.*$@#define UINT8_C(x)              (x)@",
4969     "-e", "s@^#define UINT16_C(x).*int.*_t.*$@#define UINT16_C(x)             (x)@",
4970     "-e", "s@^#define UINT32_C(x).*int.*_t.*$@#define UINT32_C(x)             (x ## U)@",
4971     "-e", "s@^#define UINT64_C(x).*int.*_t.*$@#define UINT64_C(x)             (x ## ULL)@",
4972     "-e", "s@^#define INTMAX_C(x).*int.*_t.*$@#define INTMAX_C(x)             (x ## LL)@",
4973     "-e", "s@^#define UINTMAX_C(x).*int.*_t.*$@#define UINTMAX_C(x)            (x ## ULL)@",
4974     (char*)NULL };
4975
4976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4977  *
4978  *  Description of Irix_Stdio_Va_List fix
4979  */
4980 tSCC zIrix_Stdio_Va_ListName[] =
4981      "irix_stdio_va_list";
4982
4983 /*
4984  *  File name selection pattern
4985  */
4986 tSCC zIrix_Stdio_Va_ListList[] =
4987   "stdio.h\0internal/stdio_core.h\0";
4988 /*
4989  *  Machine/OS name selection pattern
4990  */
4991 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4992
4993 /*
4994  *  content selection pattern - do fix if pattern found
4995  */
4996 tSCC zIrix_Stdio_Va_ListSelect0[] =
4997        "/\\* va_list \\*/ char \\*";
4998
4999 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
5000 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5001   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5002
5003 /*
5004  *  Fix Command Arguments for Irix_Stdio_Va_List
5005  */
5006 static const char* apzIrix_Stdio_Va_ListPatch[] = {
5007     "format",
5008     "__gnuc_va_list",
5009     (char*)NULL };
5010
5011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5012  *
5013  *  Description of Irix_Wcsftime fix
5014  */
5015 tSCC zIrix_WcsftimeName[] =
5016      "irix_wcsftime";
5017
5018 /*
5019  *  File name selection pattern
5020  */
5021 tSCC zIrix_WcsftimeList[] =
5022   "internal/wchar_core.h\0";
5023 /*
5024  *  Machine/OS name selection pattern
5025  */
5026 tSCC* apzIrix_WcsftimeMachs[] = {
5027         "mips-sgi-irix6.5",
5028         (const char*)NULL };
5029
5030 /*
5031  *  content selection pattern - do fix if pattern found
5032  */
5033 tSCC zIrix_WcsftimeSelect0[] =
5034        "#if _NO_XOPEN5\n\
5035 (extern size_t[ \t]+wcsftime.*const char *.*)";
5036
5037 #define    IRIX_WCSFTIME_TEST_CT  1
5038 static tTestDesc aIrix_WcsftimeTests[] = {
5039   { TT_EGREP,    zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
5040
5041 /*
5042  *  Fix Command Arguments for Irix_Wcsftime
5043  */
5044 static const char* apzIrix_WcsftimePatch[] = {
5045     "format",
5046     "#if _NO_XOPEN5 && !defined(__c99)\n\
5047 %1",
5048     (char*)NULL };
5049
5050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5051  *
5052  *  Description of Kandr_Concat fix
5053  */
5054 tSCC zKandr_ConcatName[] =
5055      "kandr_concat";
5056
5057 /*
5058  *  File name selection pattern
5059  */
5060 tSCC zKandr_ConcatList[] =
5061   "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";
5062 /*
5063  *  Machine/OS name selection pattern
5064  */
5065 #define apzKandr_ConcatMachs (const char**)NULL
5066
5067 /*
5068  *  content selection pattern - do fix if pattern found
5069  */
5070 tSCC zKandr_ConcatSelect0[] =
5071        "/\\*\\*/";
5072
5073 #define    KANDR_CONCAT_TEST_CT  1
5074 static tTestDesc aKandr_ConcatTests[] = {
5075   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
5076
5077 /*
5078  *  Fix Command Arguments for Kandr_Concat
5079  */
5080 static const char* apzKandr_ConcatPatch[] = {
5081     "format",
5082     "##",
5083     (char*)NULL };
5084
5085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5086  *
5087  *  Description of Linux_Ia64_Ucontext fix
5088  */
5089 tSCC zLinux_Ia64_UcontextName[] =
5090      "linux_ia64_ucontext";
5091
5092 /*
5093  *  File name selection pattern
5094  */
5095 tSCC zLinux_Ia64_UcontextList[] =
5096   "sys/ucontext.h\0";
5097 /*
5098  *  Machine/OS name selection pattern
5099  */
5100 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5101         "ia64-*-linux*",
5102         (const char*)NULL };
5103
5104 /*
5105  *  content selection pattern - do fix if pattern found
5106  */
5107 tSCC zLinux_Ia64_UcontextSelect0[] =
5108        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5109
5110 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
5111 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5112   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5113
5114 /*
5115  *  Fix Command Arguments for Linux_Ia64_Ucontext
5116  */
5117 static const char* apzLinux_Ia64_UcontextPatch[] = {
5118     "format",
5119     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5120     (char*)NULL };
5121
5122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5123  *
5124  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
5125  */
5126 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5127      "lynxos_no_warning_in_sys_time_h";
5128
5129 /*
5130  *  File name selection pattern
5131  */
5132 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5133   "sys/time.h\0";
5134 /*
5135  *  Machine/OS name selection pattern
5136  */
5137 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5138
5139 /*
5140  *  content selection pattern - do fix if pattern found
5141  */
5142 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5143        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5144
5145 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
5146 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5147   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5148
5149 /*
5150  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5151  */
5152 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5153     "format",
5154     "",
5155     (char*)NULL };
5156
5157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5158  *
5159  *  Description of Lynxos_Missing_Putenv fix
5160  */
5161 tSCC zLynxos_Missing_PutenvName[] =
5162      "lynxos_missing_putenv";
5163
5164 /*
5165  *  File name selection pattern
5166  */
5167 tSCC zLynxos_Missing_PutenvList[] =
5168   "stdlib.h\0";
5169 /*
5170  *  Machine/OS name selection pattern
5171  */
5172 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5173         "*-*-lynxos*",
5174         (const char*)NULL };
5175
5176 /*
5177  *  content selection pattern - do fix if pattern found
5178  */
5179 tSCC zLynxos_Missing_PutenvSelect0[] =
5180        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5181
5182 /*
5183  *  content bypass pattern - skip fix if pattern found
5184  */
5185 tSCC zLynxos_Missing_PutenvBypass0[] =
5186        "putenv[ \\t]*\\(";
5187
5188 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
5189 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5190   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5191   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5192
5193 /*
5194  *  Fix Command Arguments for Lynxos_Missing_Putenv
5195  */
5196 static const char* apzLynxos_Missing_PutenvPatch[] = {
5197     "format",
5198     "%0\n\
5199 extern int putenv\t\t\t\t_AP((char *));",
5200     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5201     (char*)NULL };
5202
5203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5204  *
5205  *  Description of Machine_Ansi_H_Va_List fix
5206  */
5207 tSCC zMachine_Ansi_H_Va_ListName[] =
5208      "machine_ansi_h_va_list";
5209
5210 /*
5211  *  File name selection pattern
5212  */
5213 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5214 /*
5215  *  Machine/OS name selection pattern
5216  */
5217 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5218
5219 /*
5220  *  content selection pattern - do fix if pattern found
5221  */
5222 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5223        "define[ \t]+_BSD_VA_LIST_[ \t]";
5224
5225 /*
5226  *  content bypass pattern - skip fix if pattern found
5227  */
5228 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5229        "__builtin_va_list";
5230
5231 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5232 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5233   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5234   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5235
5236 /*
5237  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5238  */
5239 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5240     "format",
5241     "%1__builtin_va_list",
5242     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5243     (char*)NULL };
5244
5245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5246  *
5247  *  Description of Machine_Name fix
5248  */
5249 tSCC zMachine_NameName[] =
5250      "machine_name";
5251
5252 /*
5253  *  File name selection pattern
5254  */
5255 #define zMachine_NameList (char*)NULL
5256 /*
5257  *  Machine/OS name selection pattern
5258  */
5259 #define apzMachine_NameMachs (const char**)NULL
5260
5261 /*
5262  *  perform the C function call test
5263  */
5264 tSCC zMachine_NameFTst0[] = "machine_name";
5265
5266 #define    MACHINE_NAME_TEST_CT  1
5267 static tTestDesc aMachine_NameTests[] = {
5268   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5269
5270 /*
5271  *  Fix Command Arguments for Machine_Name
5272  */
5273 static const char* apzMachine_NamePatch[] = {
5274     "machine_name",
5275     (char*)NULL };
5276
5277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5278  *
5279  *  Description of Math_Exception fix
5280  */
5281 tSCC zMath_ExceptionName[] =
5282      "math_exception";
5283
5284 /*
5285  *  File name selection pattern
5286  */
5287 tSCC zMath_ExceptionList[] =
5288   "math.h\0";
5289 /*
5290  *  Machine/OS name selection pattern
5291  */
5292 #define apzMath_ExceptionMachs (const char**)NULL
5293
5294 /*
5295  *  content selection pattern - do fix if pattern found
5296  */
5297 tSCC zMath_ExceptionSelect0[] =
5298        "struct exception";
5299
5300 /*
5301  *  content bypass pattern - skip fix if pattern found
5302  */
5303 tSCC zMath_ExceptionBypass0[] =
5304        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5305
5306 #define    MATH_EXCEPTION_TEST_CT  2
5307 static tTestDesc aMath_ExceptionTests[] = {
5308   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5309   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5310
5311 /*
5312  *  Fix Command Arguments for Math_Exception
5313  */
5314 static const char* apzMath_ExceptionPatch[] = {
5315     "wrap",
5316     "#ifdef __cplusplus\n\
5317 #define exception __math_exception\n\
5318 #endif\n",
5319     "#ifdef __cplusplus\n\
5320 #undef exception\n\
5321 #endif\n",
5322     (char*)NULL };
5323
5324 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5325  *
5326  *  Description of Math_Huge_Val_From_Dbl_Max fix
5327  */
5328 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5329      "math_huge_val_from_dbl_max";
5330
5331 /*
5332  *  File name selection pattern
5333  */
5334 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5335   "math.h\0";
5336 /*
5337  *  Machine/OS name selection pattern
5338  */
5339 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5340
5341 /*
5342  *  content selection pattern - do fix if pattern found
5343  */
5344 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5345        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5346
5347 /*
5348  *  content bypass pattern - skip fix if pattern found
5349  */
5350 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5351        "define[ \t]+DBL_MAX";
5352
5353 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
5354 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5355   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5356   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5357
5358 /*
5359  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5360  */
5361 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5362     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5363 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5364 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5365 \telse cat\n\
5366 \tfi",
5367     (char*)NULL };
5368
5369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5370  *
5371  *  Description of Nested_Auth_Des fix
5372  */
5373 tSCC zNested_Auth_DesName[] =
5374      "nested_auth_des";
5375
5376 /*
5377  *  File name selection pattern
5378  */
5379 tSCC zNested_Auth_DesList[] =
5380   "rpc/rpc.h\0";
5381 /*
5382  *  Machine/OS name selection pattern
5383  */
5384 #define apzNested_Auth_DesMachs (const char**)NULL
5385
5386 /*
5387  *  content selection pattern - do fix if pattern found
5388  */
5389 tSCC zNested_Auth_DesSelect0[] =
5390        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5391
5392 #define    NESTED_AUTH_DES_TEST_CT  1
5393 static tTestDesc aNested_Auth_DesTests[] = {
5394   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5395
5396 /*
5397  *  Fix Command Arguments for Nested_Auth_Des
5398  */
5399 static const char* apzNested_Auth_DesPatch[] = {
5400     "format",
5401     "%1*/ /*",
5402     (char*)NULL };
5403
5404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5405  *
5406  *  Description of Netbsd_C99_Inline_1 fix
5407  */
5408 tSCC zNetbsd_C99_Inline_1Name[] =
5409      "netbsd_c99_inline_1";
5410
5411 /*
5412  *  File name selection pattern
5413  */
5414 tSCC zNetbsd_C99_Inline_1List[] =
5415   "signal.h\0";
5416 /*
5417  *  Machine/OS name selection pattern
5418  */
5419 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5420         "*-*-netbsd*",
5421         (const char*)NULL };
5422
5423 /*
5424  *  content selection pattern - do fix if pattern found
5425  */
5426 tSCC zNetbsd_C99_Inline_1Select0[] =
5427        "extern __inline int";
5428
5429 #define    NETBSD_C99_INLINE_1_TEST_CT  1
5430 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5431   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5432
5433 /*
5434  *  Fix Command Arguments for Netbsd_C99_Inline_1
5435  */
5436 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5437     "format",
5438     "extern\n\
5439 #ifdef __GNUC_STDC_INLINE__\n\
5440 __attribute__((__gnu_inline__))\n\
5441 #endif\n\
5442 __inline int",
5443     (char*)NULL };
5444
5445 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5446  *
5447  *  Description of Netbsd_C99_Inline_2 fix
5448  */
5449 tSCC zNetbsd_C99_Inline_2Name[] =
5450      "netbsd_c99_inline_2";
5451
5452 /*
5453  *  File name selection pattern
5454  */
5455 tSCC zNetbsd_C99_Inline_2List[] =
5456   "signal.h\0";
5457 /*
5458  *  Machine/OS name selection pattern
5459  */
5460 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5461         "*-*-netbsd*",
5462         (const char*)NULL };
5463
5464 /*
5465  *  content selection pattern - do fix if pattern found
5466  */
5467 tSCC zNetbsd_C99_Inline_2Select0[] =
5468        "#define _SIGINLINE extern __inline";
5469
5470 #define    NETBSD_C99_INLINE_2_TEST_CT  1
5471 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5472   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5473
5474 /*
5475  *  Fix Command Arguments for Netbsd_C99_Inline_2
5476  */
5477 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5478     "format",
5479     "#ifdef __GNUC_STDC_INLINE__\n\
5480 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5481 #else\n\
5482 %0\n\
5483 #endif",
5484     (char*)NULL };
5485
5486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5487  *
5488  *  Description of Netbsd_Extra_Semicolon fix
5489  */
5490 tSCC zNetbsd_Extra_SemicolonName[] =
5491      "netbsd_extra_semicolon";
5492
5493 /*
5494  *  File name selection pattern
5495  */
5496 tSCC zNetbsd_Extra_SemicolonList[] =
5497   "sys/cdefs.h\0";
5498 /*
5499  *  Machine/OS name selection pattern
5500  */
5501 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5502         "*-*-netbsd*",
5503         (const char*)NULL };
5504
5505 /*
5506  *  content selection pattern - do fix if pattern found
5507  */
5508 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5509        "#define[ \t]*__END_DECLS[ \t]*};";
5510
5511 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
5512 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5513   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5514
5515 /*
5516  *  Fix Command Arguments for Netbsd_Extra_Semicolon
5517  */
5518 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5519     "format",
5520     "#define __END_DECLS }",
5521     (char*)NULL };
5522
5523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5524  *
5525  *  Description of Newlib_Stdint_1 fix
5526  */
5527 tSCC zNewlib_Stdint_1Name[] =
5528      "newlib_stdint_1";
5529
5530 /*
5531  *  File name selection pattern
5532  */
5533 tSCC zNewlib_Stdint_1List[] =
5534   "stdint-newlib.h\0stdint.h\0";
5535 /*
5536  *  Machine/OS name selection pattern
5537  */
5538 #define apzNewlib_Stdint_1Machs (const char**)NULL
5539
5540 /*
5541  *  content selection pattern - do fix if pattern found
5542  */
5543 tSCC zNewlib_Stdint_1Select0[] =
5544        "@todo - Add support for wint_t types";
5545
5546 #define    NEWLIB_STDINT_1_TEST_CT  1
5547 static tTestDesc aNewlib_Stdint_1Tests[] = {
5548   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5549
5550 /*
5551  *  Fix Command Arguments for Newlib_Stdint_1
5552  */
5553 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5554     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5555     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5556     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5557     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5558     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5559     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5560     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5561     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5562     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5563     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5564     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5565     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5566     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5567     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5568     (char*)NULL };
5569
5570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5571  *
5572  *  Description of Newlib_Stdint_2 fix
5573  */
5574 tSCC zNewlib_Stdint_2Name[] =
5575      "newlib_stdint_2";
5576
5577 /*
5578  *  File name selection pattern
5579  */
5580 tSCC zNewlib_Stdint_2List[] =
5581   "stdint-newlib.h\0stdint.h\0";
5582 /*
5583  *  Machine/OS name selection pattern
5584  */
5585 #define apzNewlib_Stdint_2Machs (const char**)NULL
5586
5587 /*
5588  *  content selection pattern - do fix if pattern found
5589  */
5590 tSCC zNewlib_Stdint_2Select0[] =
5591        "@todo - Add support for wint_t types";
5592
5593 #define    NEWLIB_STDINT_2_TEST_CT  1
5594 static tTestDesc aNewlib_Stdint_2Tests[] = {
5595   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5596
5597 /*
5598  *  Fix Command Arguments for Newlib_Stdint_2
5599  */
5600 static const char* apzNewlib_Stdint_2Patch[] = {
5601     "format",
5602     "#define INTMAX_MAX __INTMAX_MAX__\n\
5603 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5604 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5605 #define WCHAR_MAX __WCHAR_MAX__\n\
5606 #define WCHAR_MIN __WCHAR_MIN__\n\
5607 #define WINT_MAX __WINT_MAX__\n\
5608 #define WINT_MIN __WINT_MIN__\n\n\
5609 %0",
5610     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5611     (char*)NULL };
5612
5613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5614  *
5615  *  Description of Next_Math_Prefix fix
5616  */
5617 tSCC zNext_Math_PrefixName[] =
5618      "next_math_prefix";
5619
5620 /*
5621  *  File name selection pattern
5622  */
5623 tSCC zNext_Math_PrefixList[] =
5624   "ansi/math.h\0";
5625 /*
5626  *  Machine/OS name selection pattern
5627  */
5628 #define apzNext_Math_PrefixMachs (const char**)NULL
5629
5630 /*
5631  *  content selection pattern - do fix if pattern found
5632  */
5633 tSCC zNext_Math_PrefixSelect0[] =
5634        "^extern[ \t]+double[ \t]+__const__[ \t]";
5635
5636 #define    NEXT_MATH_PREFIX_TEST_CT  1
5637 static tTestDesc aNext_Math_PrefixTests[] = {
5638   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5639
5640 /*
5641  *  Fix Command Arguments for Next_Math_Prefix
5642  */
5643 static const char* apzNext_Math_PrefixPatch[] = {
5644     "format",
5645     "extern double %1(",
5646     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5647     (char*)NULL };
5648
5649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5650  *
5651  *  Description of Next_Template fix
5652  */
5653 tSCC zNext_TemplateName[] =
5654      "next_template";
5655
5656 /*
5657  *  File name selection pattern
5658  */
5659 tSCC zNext_TemplateList[] =
5660   "bsd/libc.h\0";
5661 /*
5662  *  Machine/OS name selection pattern
5663  */
5664 #define apzNext_TemplateMachs (const char**)NULL
5665
5666 /*
5667  *  content selection pattern - do fix if pattern found
5668  */
5669 tSCC zNext_TemplateSelect0[] =
5670        "[ \t]template\\)";
5671
5672 #define    NEXT_TEMPLATE_TEST_CT  1
5673 static tTestDesc aNext_TemplateTests[] = {
5674   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
5675
5676 /*
5677  *  Fix Command Arguments for Next_Template
5678  */
5679 static const char* apzNext_TemplatePatch[] = {
5680     "format",
5681     "(%1)",
5682     "\\(([^)]*)[ \t]template\\)",
5683     (char*)NULL };
5684
5685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5686  *
5687  *  Description of Next_Volitile fix
5688  */
5689 tSCC zNext_VolitileName[] =
5690      "next_volitile";
5691
5692 /*
5693  *  File name selection pattern
5694  */
5695 tSCC zNext_VolitileList[] =
5696   "ansi/stdlib.h\0";
5697 /*
5698  *  Machine/OS name selection pattern
5699  */
5700 #define apzNext_VolitileMachs (const char**)NULL
5701
5702 /*
5703  *  content selection pattern - do fix if pattern found
5704  */
5705 tSCC zNext_VolitileSelect0[] =
5706        "^extern[ \t]+volatile[ \t]+void[ \t]";
5707
5708 #define    NEXT_VOLITILE_TEST_CT  1
5709 static tTestDesc aNext_VolitileTests[] = {
5710   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5711
5712 /*
5713  *  Fix Command Arguments for Next_Volitile
5714  */
5715 static const char* apzNext_VolitilePatch[] = {
5716     "format",
5717     "extern void %1(",
5718     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5719     (char*)NULL };
5720
5721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5722  *
5723  *  Description of Next_Wait_Union fix
5724  */
5725 tSCC zNext_Wait_UnionName[] =
5726      "next_wait_union";
5727
5728 /*
5729  *  File name selection pattern
5730  */
5731 tSCC zNext_Wait_UnionList[] =
5732   "sys/wait.h\0";
5733 /*
5734  *  Machine/OS name selection pattern
5735  */
5736 #define apzNext_Wait_UnionMachs (const char**)NULL
5737
5738 /*
5739  *  content selection pattern - do fix if pattern found
5740  */
5741 tSCC zNext_Wait_UnionSelect0[] =
5742        "wait\\(union wait";
5743
5744 #define    NEXT_WAIT_UNION_TEST_CT  1
5745 static tTestDesc aNext_Wait_UnionTests[] = {
5746   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5747
5748 /*
5749  *  Fix Command Arguments for Next_Wait_Union
5750  */
5751 static const char* apzNext_Wait_UnionPatch[] = {
5752     "format",
5753     "wait(void",
5754     (char*)NULL };
5755
5756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5757  *
5758  *  Description of Nodeent_Syntax fix
5759  */
5760 tSCC zNodeent_SyntaxName[] =
5761      "nodeent_syntax";
5762
5763 /*
5764  *  File name selection pattern
5765  */
5766 tSCC zNodeent_SyntaxList[] =
5767   "netdnet/dnetdb.h\0";
5768 /*
5769  *  Machine/OS name selection pattern
5770  */
5771 #define apzNodeent_SyntaxMachs (const char**)NULL
5772
5773 /*
5774  *  content selection pattern - do fix if pattern found
5775  */
5776 tSCC zNodeent_SyntaxSelect0[] =
5777        "char[ \t]*\\*na_addr[ \t]*$";
5778
5779 #define    NODEENT_SYNTAX_TEST_CT  1
5780 static tTestDesc aNodeent_SyntaxTests[] = {
5781   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5782
5783 /*
5784  *  Fix Command Arguments for Nodeent_Syntax
5785  */
5786 static const char* apzNodeent_SyntaxPatch[] = {
5787     "format",
5788     "%0;",
5789     (char*)NULL };
5790
5791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5792  *
5793  *  Description of Openbsd_Null_Definition fix
5794  */
5795 tSCC zOpenbsd_Null_DefinitionName[] =
5796      "openbsd_null_definition";
5797
5798 /*
5799  *  File name selection pattern
5800  */
5801 tSCC zOpenbsd_Null_DefinitionList[] =
5802   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5803 /*
5804  *  Machine/OS name selection pattern
5805  */
5806 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5807         "*-*-openbsd*",
5808         (const char*)NULL };
5809
5810 /*
5811  *  content selection pattern - do fix if pattern found
5812  */
5813 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5814        "__GNUG__";
5815
5816 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
5817 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5818   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5819
5820 /*
5821  *  Fix Command Arguments for Openbsd_Null_Definition
5822  */
5823 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5824     "format",
5825     "#ifndef NULL\n\
5826 #ifdef __cplusplus\n\
5827 #ifdef __GNUG__\n\
5828 #define NULL\t__null\n\
5829 #else\t /* ! __GNUG__  */\n\
5830 #define NULL\t0L\n\
5831 #endif\t /* __GNUG__  */\n\
5832 #else\t /* ! __cplusplus  */\n\
5833 #define NULL\t((void *)0)\n\
5834 #endif\t /* __cplusplus  */\n\
5835 #endif\t /* !NULL  */",
5836     "^#ifndef[ \t]*NULL\n\
5837 ^#ifdef[ \t]*__GNUG__\n\
5838 ^#define[ \t]*NULL[ \t]*__null\n\
5839 ^#else\n\
5840 ^#define[ \t]*NULL[ \t]*0L\n\
5841 ^#endif\n\
5842 ^#endif",
5843     (char*)NULL };
5844
5845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5846  *
5847  *  Description of Obstack_Lvalue_Cast fix
5848  */
5849 tSCC zObstack_Lvalue_CastName[] =
5850      "obstack_lvalue_cast";
5851
5852 /*
5853  *  File name selection pattern
5854  */
5855 tSCC zObstack_Lvalue_CastList[] =
5856   "obstack.h\0";
5857 /*
5858  *  Machine/OS name selection pattern
5859  */
5860 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5861
5862 /*
5863  *  content selection pattern - do fix if pattern found
5864  */
5865 tSCC zObstack_Lvalue_CastSelect0[] =
5866        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5867
5868 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5869 static tTestDesc aObstack_Lvalue_CastTests[] = {
5870   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5871
5872 /*
5873  *  Fix Command Arguments for Obstack_Lvalue_Cast
5874  */
5875 static const char* apzObstack_Lvalue_CastPatch[] = {
5876     "format",
5877     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5878     (char*)NULL };
5879
5880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5881  *
5882  *  Description of Openbsd_Va_Start fix
5883  */
5884 tSCC zOpenbsd_Va_StartName[] =
5885      "openbsd_va_start";
5886
5887 /*
5888  *  File name selection pattern
5889  */
5890 tSCC zOpenbsd_Va_StartList[] =
5891   "stdarg.h\0";
5892 /*
5893  *  Machine/OS name selection pattern
5894  */
5895 tSCC* apzOpenbsd_Va_StartMachs[] = {
5896         "*-*-openbsd*",
5897         (const char*)NULL };
5898
5899 /*
5900  *  content selection pattern - do fix if pattern found
5901  */
5902 tSCC zOpenbsd_Va_StartSelect0[] =
5903        "__builtin_stdarg_start";
5904
5905 #define    OPENBSD_VA_START_TEST_CT  1
5906 static tTestDesc aOpenbsd_Va_StartTests[] = {
5907   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5908
5909 /*
5910  *  Fix Command Arguments for Openbsd_Va_Start
5911  */
5912 static const char* apzOpenbsd_Va_StartPatch[] = {
5913     "format",
5914     "__builtin_va_start",
5915     (char*)NULL };
5916
5917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5918  *
5919  *  Description of Osf_Namespace_A fix
5920  */
5921 tSCC zOsf_Namespace_AName[] =
5922      "osf_namespace_a";
5923
5924 /*
5925  *  File name selection pattern
5926  */
5927 tSCC zOsf_Namespace_AList[] =
5928   "reg_types.h\0sys/lc_core.h\0";
5929 /*
5930  *  Machine/OS name selection pattern
5931  */
5932 #define apzOsf_Namespace_AMachs (const char**)NULL
5933
5934 /*
5935  *  perform the 'test' shell command - do fix on success
5936  */
5937 tSCC zOsf_Namespace_ATest0[] =
5938        " -r reg_types.h";
5939 tSCC zOsf_Namespace_ATest1[] =
5940        " -r sys/lc_core.h";
5941 tSCC zOsf_Namespace_ATest2[] =
5942        " -n \"`grep '} regex_t;' reg_types.h`\"";
5943 tSCC zOsf_Namespace_ATest3[] =
5944        " -z \"`grep __regex_t regex.h`\"";
5945
5946 #define    OSF_NAMESPACE_A_TEST_CT  4
5947 static tTestDesc aOsf_Namespace_ATests[] = {
5948   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5949   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5950   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5951   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5952
5953 /*
5954  *  Fix Command Arguments for Osf_Namespace_A
5955  */
5956 static const char* apzOsf_Namespace_APatch[] = {
5957     "format",
5958     "__%0",
5959     "reg(ex|off|match)_t",
5960     (char*)NULL };
5961
5962 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5963  *
5964  *  Description of Osf_Namespace_C fix
5965  */
5966 tSCC zOsf_Namespace_CName[] =
5967      "osf_namespace_c";
5968
5969 /*
5970  *  File name selection pattern
5971  */
5972 tSCC zOsf_Namespace_CList[] =
5973   "regex.h\0";
5974 /*
5975  *  Machine/OS name selection pattern
5976  */
5977 #define apzOsf_Namespace_CMachs (const char**)NULL
5978
5979 /*
5980  *  content selection pattern - do fix if pattern found
5981  */
5982 tSCC zOsf_Namespace_CSelect0[] =
5983        "#include <reg_types.h>.*";
5984
5985 /*
5986  *  perform the 'test' shell command - do fix on success
5987  */
5988 tSCC zOsf_Namespace_CTest0[] =
5989        " -r reg_types.h";
5990 tSCC zOsf_Namespace_CTest1[] =
5991        " -r sys/lc_core.h";
5992 tSCC zOsf_Namespace_CTest2[] =
5993        " -n \"`grep '} regex_t;' reg_types.h`\"";
5994 tSCC zOsf_Namespace_CTest3[] =
5995        " -z \"`grep __regex_t regex.h`\"";
5996
5997 #define    OSF_NAMESPACE_C_TEST_CT  5
5998 static tTestDesc aOsf_Namespace_CTests[] = {
5999   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
6000   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
6001   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
6002   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
6003   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
6004
6005 /*
6006  *  Fix Command Arguments for Osf_Namespace_C
6007  */
6008 static const char* apzOsf_Namespace_CPatch[] = {
6009     "format",
6010     "%0\n\
6011 typedef __regex_t\tregex_t;\n\
6012 typedef __regoff_t\tregoff_t;\n\
6013 typedef __regmatch_t\tregmatch_t;",
6014     (char*)NULL };
6015
6016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6017  *
6018  *  Description of Pthread_Incomplete_Struct_Argument fix
6019  */
6020 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
6021      "pthread_incomplete_struct_argument";
6022
6023 /*
6024  *  File name selection pattern
6025  */
6026 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
6027   "pthread.h\0";
6028 /*
6029  *  Machine/OS name selection pattern
6030  */
6031 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6032
6033 /*
6034  *  content selection pattern - do fix if pattern found
6035  */
6036 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6037        "struct __jmp_buf_tag";
6038
6039 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
6040 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6041   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6042
6043 /*
6044  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6045  */
6046 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6047     "format",
6048     "%1 *%2%3",
6049     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6050     (char*)NULL };
6051
6052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6053  *
6054  *  Description of Read_Ret_Type fix
6055  */
6056 tSCC zRead_Ret_TypeName[] =
6057      "read_ret_type";
6058
6059 /*
6060  *  File name selection pattern
6061  */
6062 tSCC zRead_Ret_TypeList[] =
6063   "stdio.h\0";
6064 /*
6065  *  Machine/OS name selection pattern
6066  */
6067 #define apzRead_Ret_TypeMachs (const char**)NULL
6068
6069 /*
6070  *  content selection pattern - do fix if pattern found
6071  */
6072 tSCC zRead_Ret_TypeSelect0[] =
6073        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6074
6075 #define    READ_RET_TYPE_TEST_CT  1
6076 static tTestDesc aRead_Ret_TypeTests[] = {
6077   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6078
6079 /*
6080  *  Fix Command Arguments for Read_Ret_Type
6081  */
6082 static const char* apzRead_Ret_TypePatch[] = {
6083     "format",
6084     "extern unsigned int fread(), fwrite();\n\
6085 %1%2",
6086     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6087     (char*)NULL };
6088
6089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6090  *
6091  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
6092  */
6093 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6094      "rpc_xdr_lvalue_cast_a";
6095
6096 /*
6097  *  File name selection pattern
6098  */
6099 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6100   "rpc/xdr.h\0";
6101 /*
6102  *  Machine/OS name selection pattern
6103  */
6104 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6105
6106 /*
6107  *  content selection pattern - do fix if pattern found
6108  */
6109 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6110        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6111 .*__extension__.*";
6112
6113 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
6114 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6115   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6116
6117 /*
6118  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6119  */
6120 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6121     "format",
6122     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6123     (char*)NULL };
6124
6125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6126  *
6127  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
6128  */
6129 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6130      "rpc_xdr_lvalue_cast_b";
6131
6132 /*
6133  *  File name selection pattern
6134  */
6135 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6136   "rpc/xdr.h\0";
6137 /*
6138  *  Machine/OS name selection pattern
6139  */
6140 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6141
6142 /*
6143  *  content selection pattern - do fix if pattern found
6144  */
6145 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6146        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6147 .*__extension__.*";
6148
6149 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
6150 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6151   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6152
6153 /*
6154  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6155  */
6156 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6157     "format",
6158     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6159     (char*)NULL };
6160
6161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6162  *
6163  *  Description of Rs6000_Double fix
6164  */
6165 tSCC zRs6000_DoubleName[] =
6166      "rs6000_double";
6167
6168 /*
6169  *  File name selection pattern
6170  */
6171 tSCC zRs6000_DoubleList[] =
6172   "math.h\0";
6173 /*
6174  *  Machine/OS name selection pattern
6175  */
6176 #define apzRs6000_DoubleMachs (const char**)NULL
6177
6178 /*
6179  *  content selection pattern - do fix if pattern found
6180  */
6181 tSCC zRs6000_DoubleSelect0[] =
6182        "[^a-zA-Z_]class\\(";
6183
6184 #define    RS6000_DOUBLE_TEST_CT  1
6185 static tTestDesc aRs6000_DoubleTests[] = {
6186   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6187
6188 /*
6189  *  Fix Command Arguments for Rs6000_Double
6190  */
6191 static const char* apzRs6000_DoublePatch[] = {
6192     "format",
6193     "#ifndef __cplusplus\n\
6194 %0\n\
6195 #endif",
6196     "^.*[^a-zA-Z_]class\\(.*",
6197     (char*)NULL };
6198
6199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6200  *
6201  *  Description of Rs6000_Fchmod fix
6202  */
6203 tSCC zRs6000_FchmodName[] =
6204      "rs6000_fchmod";
6205
6206 /*
6207  *  File name selection pattern
6208  */
6209 tSCC zRs6000_FchmodList[] =
6210   "sys/stat.h\0";
6211 /*
6212  *  Machine/OS name selection pattern
6213  */
6214 #define apzRs6000_FchmodMachs (const char**)NULL
6215
6216 /*
6217  *  content selection pattern - do fix if pattern found
6218  */
6219 tSCC zRs6000_FchmodSelect0[] =
6220        "fchmod\\(char \\*";
6221
6222 #define    RS6000_FCHMOD_TEST_CT  1
6223 static tTestDesc aRs6000_FchmodTests[] = {
6224   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6225
6226 /*
6227  *  Fix Command Arguments for Rs6000_Fchmod
6228  */
6229 static const char* apzRs6000_FchmodPatch[] = {
6230     "format",
6231     "fchmod(int",
6232     (char*)NULL };
6233
6234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6235  *
6236  *  Description of Rs6000_Param fix
6237  */
6238 tSCC zRs6000_ParamName[] =
6239      "rs6000_param";
6240
6241 /*
6242  *  File name selection pattern
6243  */
6244 tSCC zRs6000_ParamList[] =
6245   "stdio.h\0unistd.h\0";
6246 /*
6247  *  Machine/OS name selection pattern
6248  */
6249 #define apzRs6000_ParamMachs (const char**)NULL
6250
6251 /*
6252  *  content selection pattern - do fix if pattern found
6253  */
6254 tSCC zRs6000_ParamSelect0[] =
6255        "rename\\(const char \\*old, const char \\*new\\)";
6256
6257 #define    RS6000_PARAM_TEST_CT  1
6258 static tTestDesc aRs6000_ParamTests[] = {
6259   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6260
6261 /*
6262  *  Fix Command Arguments for Rs6000_Param
6263  */
6264 static const char* apzRs6000_ParamPatch[] = {
6265     "format",
6266     "rename(const char *_old, const char *_new)",
6267     (char*)NULL };
6268
6269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6270  *
6271  *  Description of Solaris___Restrict fix
6272  */
6273 tSCC zSolaris___RestrictName[] =
6274      "solaris___restrict";
6275
6276 /*
6277  *  File name selection pattern
6278  */
6279 tSCC zSolaris___RestrictList[] =
6280   "sys/feature_tests.h\0";
6281 /*
6282  *  Machine/OS name selection pattern
6283  */
6284 tSCC* apzSolaris___RestrictMachs[] = {
6285         "*-*-solaris2*",
6286         (const char*)NULL };
6287
6288 /*
6289  *  content selection pattern - do fix if pattern found
6290  */
6291 tSCC zSolaris___RestrictSelect0[] =
6292        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6293
6294 #define    SOLARIS___RESTRICT_TEST_CT  1
6295 static tTestDesc aSolaris___RestrictTests[] = {
6296   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6297
6298 /*
6299  *  Fix Command Arguments for Solaris___Restrict
6300  */
6301 static const char* apzSolaris___RestrictPatch[] = {
6302     "format",
6303     "#ifdef __cplusplus\n\
6304 #define\t_RESTRICT_KYWD\t__restrict\n\
6305 #else\n\
6306 %0\n\
6307 #endif",
6308     (char*)NULL };
6309
6310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6311  *
6312  *  Description of Solaris_Complex fix
6313  */
6314 tSCC zSolaris_ComplexName[] =
6315      "solaris_complex";
6316
6317 /*
6318  *  File name selection pattern
6319  */
6320 tSCC zSolaris_ComplexList[] =
6321   "complex.h\0";
6322 /*
6323  *  Machine/OS name selection pattern
6324  */
6325 tSCC* apzSolaris_ComplexMachs[] = {
6326         "*-*-solaris2.*",
6327         (const char*)NULL };
6328
6329 /*
6330  *  content selection pattern - do fix if pattern found
6331  */
6332 tSCC zSolaris_ComplexSelect0[] =
6333        "#define[ \t]_Complex_I[ \t]_Complex_I";
6334
6335 #define    SOLARIS_COMPLEX_TEST_CT  1
6336 static tTestDesc aSolaris_ComplexTests[] = {
6337   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6338
6339 /*
6340  *  Fix Command Arguments for Solaris_Complex
6341  */
6342 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6343     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6344     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6345     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6346     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6347     (char*)NULL };
6348
6349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6350  *
6351  *  Description of Solaris_Complex_Cxx fix
6352  */
6353 tSCC zSolaris_Complex_CxxName[] =
6354      "solaris_complex_cxx";
6355
6356 /*
6357  *  File name selection pattern
6358  */
6359 tSCC zSolaris_Complex_CxxList[] =
6360   "complex.h\0";
6361 /*
6362  *  Machine/OS name selection pattern
6363  */
6364 tSCC* apzSolaris_Complex_CxxMachs[] = {
6365         "*-*-solaris2.*",
6366         (const char*)NULL };
6367 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
6368 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
6369
6370 /*
6371  *  Fix Command Arguments for Solaris_Complex_Cxx
6372  */
6373 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6374     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6375 #ifdef\t__cplusplus\\\n\
6376 extern \"C\" {\\\n\
6377 #endif",
6378     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6379 #ifdef\t__cplusplus\\\n\
6380 }\\\n\
6381 #endif",
6382     (char*)NULL };
6383
6384 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6385  *
6386  *  Description of Solaris_Cond_Init fix
6387  */
6388 tSCC zSolaris_Cond_InitName[] =
6389      "solaris_cond_init";
6390
6391 /*
6392  *  File name selection pattern
6393  */
6394 tSCC zSolaris_Cond_InitList[] =
6395   "pthread.h\0";
6396 /*
6397  *  Machine/OS name selection pattern
6398  */
6399 tSCC* apzSolaris_Cond_InitMachs[] = {
6400         "*-*-solaris2.8",
6401         (const char*)NULL };
6402
6403 /*
6404  *  content selection pattern - do fix if pattern found
6405  */
6406 tSCC zSolaris_Cond_InitSelect0[] =
6407        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6408
6409 #define    SOLARIS_COND_INIT_TEST_CT  1
6410 static tTestDesc aSolaris_Cond_InitTests[] = {
6411   { TT_EGREP,    zSolaris_Cond_InitSelect0, (regex_t*)NULL }, };
6412
6413 /*
6414  *  Fix Command Arguments for Solaris_Cond_Init
6415  */
6416 static const char* apzSolaris_Cond_InitPatch[] = {
6417     "format",
6418     "%1, 0x4356%2",
6419     "^(#define[ \t]+PTHREAD_COND_INITIALIZER[ \t]+\\{.*0)(\\},[ \t]*0\\}.*)$",
6420     (char*)NULL };
6421
6422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6423  *
6424  *  Description of Solaris_Cxx_Linkage fix
6425  */
6426 tSCC zSolaris_Cxx_LinkageName[] =
6427      "solaris_cxx_linkage";
6428
6429 /*
6430  *  File name selection pattern
6431  */
6432 tSCC zSolaris_Cxx_LinkageList[] =
6433   "iso/stdlib_iso.h\0";
6434 /*
6435  *  Machine/OS name selection pattern
6436  */
6437 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6438         "*-*-solaris2*",
6439         (const char*)NULL };
6440
6441 /*
6442  *  content selection pattern - do fix if pattern found
6443  */
6444 tSCC zSolaris_Cxx_LinkageSelect0[] =
6445        "(#if __cplusplus >= 199711L)\n\
6446 (extern \"C\\+\\+\" \\{\n\
6447 )(.*(bsearch|qsort).*)";
6448
6449 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
6450 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6451   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6452
6453 /*
6454  *  Fix Command Arguments for Solaris_Cxx_Linkage
6455  */
6456 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6457     "format",
6458     "%1 && !__GNUG__\n\
6459 %2%3",
6460     (char*)NULL };
6461
6462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6463  *
6464  *  Description of Solaris_Getc_Strict_Stdc fix
6465  */
6466 tSCC zSolaris_Getc_Strict_StdcName[] =
6467      "solaris_getc_strict_stdc";
6468
6469 /*
6470  *  File name selection pattern
6471  */
6472 tSCC zSolaris_Getc_Strict_StdcList[] =
6473   "iso/stdio_iso.h\0";
6474 /*
6475  *  Machine/OS name selection pattern
6476  */
6477 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6478         "*-*-solaris2*",
6479         (const char*)NULL };
6480
6481 /*
6482  *  content selection pattern - do fix if pattern found
6483  */
6484 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6485        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6486
6487 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
6488 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6489   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6490
6491 /*
6492  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
6493  */
6494 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6495     "format",
6496     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6497     (char*)NULL };
6498
6499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6500  *
6501  *  Description of Solaris_Longjmp_Noreturn fix
6502  */
6503 tSCC zSolaris_Longjmp_NoreturnName[] =
6504      "solaris_longjmp_noreturn";
6505
6506 /*
6507  *  File name selection pattern
6508  */
6509 tSCC zSolaris_Longjmp_NoreturnList[] =
6510   "iso/setjmp_iso.h\0";
6511 /*
6512  *  Machine/OS name selection pattern
6513  */
6514 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6515         "*-*-solaris2*",
6516         (const char*)NULL };
6517
6518 /*
6519  *  content selection pattern - do fix if pattern found
6520  */
6521 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6522        "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6523
6524 /*
6525  *  content bypass pattern - skip fix if pattern found
6526  */
6527 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6528        "__NORETURN";
6529
6530 #define    SOLARIS_LONGJMP_NORETURN_TEST_CT  2
6531 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6532   { TT_NEGREP,   zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6533   { TT_EGREP,    zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6534
6535 /*
6536  *  Fix Command Arguments for Solaris_Longjmp_Noreturn
6537  */
6538 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6539     "format",
6540     "%1 __attribute__ ((__noreturn__));",
6541     (char*)NULL };
6542
6543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6544  *
6545  *  Description of Solaris_Math_1 fix
6546  */
6547 tSCC zSolaris_Math_1Name[] =
6548      "solaris_math_1";
6549
6550 /*
6551  *  File name selection pattern
6552  */
6553 tSCC zSolaris_Math_1List[] =
6554   "iso/math_c99.h\0";
6555 /*
6556  *  Machine/OS name selection pattern
6557  */
6558 #define apzSolaris_Math_1Machs (const char**)NULL
6559
6560 /*
6561  *  content selection pattern - do fix if pattern found
6562  */
6563 tSCC zSolaris_Math_1Select0[] =
6564        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6565
6566 /*
6567  *  content bypass pattern - skip fix if pattern found
6568  */
6569 tSCC zSolaris_Math_1Bypass0[] =
6570        "__GNUC__";
6571
6572 #define    SOLARIS_MATH_1_TEST_CT  2
6573 static tTestDesc aSolaris_Math_1Tests[] = {
6574   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
6575   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
6576
6577 /*
6578  *  Fix Command Arguments for Solaris_Math_1
6579  */
6580 static const char* apzSolaris_Math_1Patch[] = {
6581     "format",
6582     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6583     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6584     (char*)NULL };
6585
6586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6587  *
6588  *  Description of Solaris_Math_2 fix
6589  */
6590 tSCC zSolaris_Math_2Name[] =
6591      "solaris_math_2";
6592
6593 /*
6594  *  File name selection pattern
6595  */
6596 tSCC zSolaris_Math_2List[] =
6597   "iso/math_c99.h\0";
6598 /*
6599  *  Machine/OS name selection pattern
6600  */
6601 #define apzSolaris_Math_2Machs (const char**)NULL
6602
6603 /*
6604  *  content selection pattern - do fix if pattern found
6605  */
6606 tSCC zSolaris_Math_2Select0[] =
6607        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6608
6609 /*
6610  *  content bypass pattern - skip fix if pattern found
6611  */
6612 tSCC zSolaris_Math_2Bypass0[] =
6613        "__GNUC__";
6614
6615 #define    SOLARIS_MATH_2_TEST_CT  2
6616 static tTestDesc aSolaris_Math_2Tests[] = {
6617   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
6618   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
6619
6620 /*
6621  *  Fix Command Arguments for Solaris_Math_2
6622  */
6623 static const char* apzSolaris_Math_2Patch[] = {
6624     "format",
6625     "#define\tINFINITY\t(__builtin_inff())",
6626     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6627     (char*)NULL };
6628
6629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6630  *
6631  *  Description of Solaris_Math_3 fix
6632  */
6633 tSCC zSolaris_Math_3Name[] =
6634      "solaris_math_3";
6635
6636 /*
6637  *  File name selection pattern
6638  */
6639 tSCC zSolaris_Math_3List[] =
6640   "iso/math_c99.h\0";
6641 /*
6642  *  Machine/OS name selection pattern
6643  */
6644 #define apzSolaris_Math_3Machs (const char**)NULL
6645
6646 /*
6647  *  content selection pattern - do fix if pattern found
6648  */
6649 tSCC zSolaris_Math_3Select0[] =
6650        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6651
6652 /*
6653  *  content bypass pattern - skip fix if pattern found
6654  */
6655 tSCC zSolaris_Math_3Bypass0[] =
6656        "__GNUC__";
6657
6658 #define    SOLARIS_MATH_3_TEST_CT  2
6659 static tTestDesc aSolaris_Math_3Tests[] = {
6660   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
6661   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
6662
6663 /*
6664  *  Fix Command Arguments for Solaris_Math_3
6665  */
6666 static const char* apzSolaris_Math_3Patch[] = {
6667     "format",
6668     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6669     "^#define[ \t]+NAN[ \t]+__builtin_nan",
6670     (char*)NULL };
6671
6672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6673  *
6674  *  Description of Solaris_Math_4 fix
6675  */
6676 tSCC zSolaris_Math_4Name[] =
6677      "solaris_math_4";
6678
6679 /*
6680  *  File name selection pattern
6681  */
6682 tSCC zSolaris_Math_4List[] =
6683   "iso/math_c99.h\0";
6684 /*
6685  *  Machine/OS name selection pattern
6686  */
6687 #define apzSolaris_Math_4Machs (const char**)NULL
6688
6689 /*
6690  *  content selection pattern - do fix if pattern found
6691  */
6692 tSCC zSolaris_Math_4Select0[] =
6693        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6694
6695 /*
6696  *  content bypass pattern - skip fix if pattern found
6697  */
6698 tSCC zSolaris_Math_4Bypass0[] =
6699        "__GNUC__";
6700
6701 #define    SOLARIS_MATH_4_TEST_CT  2
6702 static tTestDesc aSolaris_Math_4Tests[] = {
6703   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
6704   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
6705
6706 /*
6707  *  Fix Command Arguments for Solaris_Math_4
6708  */
6709 static const char* apzSolaris_Math_4Patch[] = {
6710     "format",
6711     "#define\tfpclassify(x) \\\n\
6712   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6713     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6714     (char*)NULL };
6715
6716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6717  *
6718  *  Description of Solaris_Math_8 fix
6719  */
6720 tSCC zSolaris_Math_8Name[] =
6721      "solaris_math_8";
6722
6723 /*
6724  *  File name selection pattern
6725  */
6726 tSCC zSolaris_Math_8List[] =
6727   "iso/math_c99.h\0";
6728 /*
6729  *  Machine/OS name selection pattern
6730  */
6731 #define apzSolaris_Math_8Machs (const char**)NULL
6732
6733 /*
6734  *  content selection pattern - do fix if pattern found
6735  */
6736 tSCC zSolaris_Math_8Select0[] =
6737        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6738
6739 /*
6740  *  content bypass pattern - skip fix if pattern found
6741  */
6742 tSCC zSolaris_Math_8Bypass0[] =
6743        "__GNUC__";
6744
6745 #define    SOLARIS_MATH_8_TEST_CT  2
6746 static tTestDesc aSolaris_Math_8Tests[] = {
6747   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
6748   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
6749
6750 /*
6751  *  Fix Command Arguments for Solaris_Math_8
6752  */
6753 static const char* apzSolaris_Math_8Patch[] = {
6754     "format",
6755     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6756 \t\t\t   ? __builtin_signbitf(x) \\\n\
6757 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6758 \t\t\t     ? __builtin_signbitl(x) \\\n\
6759 \t\t\t     : __builtin_signbit(x))",
6760     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6761     (char*)NULL };
6762
6763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6764  *
6765  *  Description of Solaris_Math_9 fix
6766  */
6767 tSCC zSolaris_Math_9Name[] =
6768      "solaris_math_9";
6769
6770 /*
6771  *  File name selection pattern
6772  */
6773 tSCC zSolaris_Math_9List[] =
6774   "iso/math_c99.h\0";
6775 /*
6776  *  Machine/OS name selection pattern
6777  */
6778 #define apzSolaris_Math_9Machs (const char**)NULL
6779
6780 /*
6781  *  content selection pattern - do fix if pattern found
6782  */
6783 tSCC zSolaris_Math_9Select0[] =
6784        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6785
6786 /*
6787  *  content bypass pattern - skip fix if pattern found
6788  */
6789 tSCC zSolaris_Math_9Bypass0[] =
6790        "__GNUC__";
6791
6792 #define    SOLARIS_MATH_9_TEST_CT  2
6793 static tTestDesc aSolaris_Math_9Tests[] = {
6794   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
6795   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
6796
6797 /*
6798  *  Fix Command Arguments for Solaris_Math_9
6799  */
6800 static const char* apzSolaris_Math_9Patch[] = {
6801     "format",
6802     "#define\t%1(x, y)%2__builtin_%1(x, y)",
6803     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6804     (char*)NULL };
6805
6806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6807  *
6808  *  Description of Solaris_Math_10 fix
6809  */
6810 tSCC zSolaris_Math_10Name[] =
6811      "solaris_math_10";
6812
6813 /*
6814  *  File name selection pattern
6815  */
6816 tSCC zSolaris_Math_10List[] =
6817   "iso/math_c99.h\0";
6818 /*
6819  *  Machine/OS name selection pattern
6820  */
6821 #define apzSolaris_Math_10Machs (const char**)NULL
6822
6823 /*
6824  *  content selection pattern - do fix if pattern found
6825  */
6826 tSCC zSolaris_Math_10Select0[] =
6827        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6828
6829 #define    SOLARIS_MATH_10_TEST_CT  1
6830 static tTestDesc aSolaris_Math_10Tests[] = {
6831   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
6832
6833 /*
6834  *  Fix Command Arguments for Solaris_Math_10
6835  */
6836 static const char* apzSolaris_Math_10Patch[] = {
6837     "format",
6838     "#define\tisinf(x) __builtin_isinf(x)",
6839     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6840 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6841 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6842 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6843     (char*)NULL };
6844
6845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6846  *
6847  *  Description of Solaris_Mutex_Init_2 fix
6848  */
6849 tSCC zSolaris_Mutex_Init_2Name[] =
6850      "solaris_mutex_init_2";
6851
6852 /*
6853  *  File name selection pattern
6854  */
6855 tSCC zSolaris_Mutex_Init_2List[] =
6856   "pthread.h\0";
6857 /*
6858  *  Machine/OS name selection pattern
6859  */
6860 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6861         "*-*-solaris2.[0-9]",
6862         "*-*-solaris2.[0-9][!0-9]*",
6863         (const char*)NULL };
6864
6865 /*
6866  *  content selection pattern - do fix if pattern found
6867  */
6868 tSCC zSolaris_Mutex_Init_2Select0[] =
6869        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6870
6871 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
6872 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6873   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6874
6875 /*
6876  *  Fix Command Arguments for Solaris_Mutex_Init_2
6877  */
6878 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6879     "format",
6880     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6881 %0\n\
6882 #else\n\
6883 %1, {0}}%4\n\
6884 #endif",
6885     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6886 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6887     (char*)NULL };
6888
6889 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6890  *
6891  *  Description of Solaris_Pow_Int_Overload fix
6892  */
6893 tSCC zSolaris_Pow_Int_OverloadName[] =
6894      "solaris_pow_int_overload";
6895
6896 /*
6897  *  File name selection pattern
6898  */
6899 tSCC zSolaris_Pow_Int_OverloadList[] =
6900   "iso/math_iso.h\0";
6901 /*
6902  *  Machine/OS name selection pattern
6903  */
6904 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6905         "*-*-solaris2*",
6906         (const char*)NULL };
6907
6908 /*
6909  *  content selection pattern - do fix if pattern found
6910  */
6911 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6912        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6913 [^{}]*\\}";
6914
6915 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
6916 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6917   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6918
6919 /*
6920  *  Fix Command Arguments for Solaris_Pow_Int_Overload
6921  */
6922 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6923     "format",
6924     "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6925 %0\n\
6926 #endif",
6927     (char*)NULL };
6928
6929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6930  *
6931  *  Description of Solaris_Rwlock_Init_1 fix
6932  */
6933 tSCC zSolaris_Rwlock_Init_1Name[] =
6934      "solaris_rwlock_init_1";
6935
6936 /*
6937  *  File name selection pattern
6938  */
6939 tSCC zSolaris_Rwlock_Init_1List[] =
6940   "pthread.h\0";
6941 /*
6942  *  Machine/OS name selection pattern
6943  */
6944 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6945         "*-*-solaris*",
6946         (const char*)NULL };
6947
6948 /*
6949  *  content selection pattern - do fix if pattern found
6950  */
6951 tSCC zSolaris_Rwlock_Init_1Select0[] =
6952        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6953
6954 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
6955 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6956   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6957
6958 /*
6959  *  Fix Command Arguments for Solaris_Rwlock_Init_1
6960  */
6961 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6962     "format",
6963     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6964 %0\n\
6965 #else\n\
6966 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6967 #endif",
6968     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6969     (char*)NULL };
6970
6971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6972  *
6973  *  Description of Solaris_Once_Init_1 fix
6974  */
6975 tSCC zSolaris_Once_Init_1Name[] =
6976      "solaris_once_init_1";
6977
6978 /*
6979  *  File name selection pattern
6980  */
6981 tSCC zSolaris_Once_Init_1List[] =
6982   "pthread.h\0";
6983 /*
6984  *  Machine/OS name selection pattern
6985  */
6986 tSCC* apzSolaris_Once_Init_1Machs[] = {
6987         "*-*-solaris*",
6988         (const char*)NULL };
6989
6990 /*
6991  *  content selection pattern - do fix if pattern found
6992  */
6993 tSCC zSolaris_Once_Init_1Select0[] =
6994        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6995
6996 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6997 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6998   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6999
7000 /*
7001  *  Fix Command Arguments for Solaris_Once_Init_1
7002  */
7003 static const char* apzSolaris_Once_Init_1Patch[] = {
7004     "format",
7005     "%1{%2}%3",
7006     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
7007     (char*)NULL };
7008
7009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7010  *
7011  *  Description of Solaris_Once_Init_2 fix
7012  */
7013 tSCC zSolaris_Once_Init_2Name[] =
7014      "solaris_once_init_2";
7015
7016 /*
7017  *  File name selection pattern
7018  */
7019 tSCC zSolaris_Once_Init_2List[] =
7020   "pthread.h\0";
7021 /*
7022  *  Machine/OS name selection pattern
7023  */
7024 tSCC* apzSolaris_Once_Init_2Machs[] = {
7025         "*-*-solaris2.[0-9]",
7026         "*-*-solaris2.[0-9][!0-9]*",
7027         (const char*)NULL };
7028
7029 /*
7030  *  content selection pattern - do fix if pattern found
7031  */
7032 tSCC zSolaris_Once_Init_2Select0[] =
7033        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7034
7035 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
7036 static tTestDesc aSolaris_Once_Init_2Tests[] = {
7037   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
7038
7039 /*
7040  *  Fix Command Arguments for Solaris_Once_Init_2
7041  */
7042 static const char* apzSolaris_Once_Init_2Patch[] = {
7043     "format",
7044     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7045 %0\n\
7046 #else\n\
7047 %1{0}, {0}, {0}, {%3}%4\n\
7048 #endif",
7049     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
7050     (char*)NULL };
7051
7052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7053  *
7054  *  Description of Solaris_Int_Const fix
7055  */
7056 tSCC zSolaris_Int_ConstName[] =
7057      "solaris_int_const";
7058
7059 /*
7060  *  File name selection pattern
7061  */
7062 tSCC zSolaris_Int_ConstList[] =
7063   "sys/int_const.h\0";
7064 /*
7065  *  Machine/OS name selection pattern
7066  */
7067 tSCC* apzSolaris_Int_ConstMachs[] = {
7068         "*-*-solaris2*",
7069         (const char*)NULL };
7070
7071 /*
7072  *  content selection pattern - do fix if pattern found
7073  */
7074 tSCC zSolaris_Int_ConstSelect0[] =
7075        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7076 (/*.**/)\n\
7077 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7078
7079 #define    SOLARIS_INT_CONST_TEST_CT  1
7080 static tTestDesc aSolaris_Int_ConstTests[] = {
7081   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7082
7083 /*
7084  *  Fix Command Arguments for Solaris_Int_Const
7085  */
7086 static const char* apzSolaris_Int_ConstPatch[] = {
7087     "format",
7088     "#define\tUINT8_C(c)\t(c)\n\
7089 %1\n\
7090 #define\tUINT16_C(c)\t(c)",
7091     (char*)NULL };
7092
7093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7094  *
7095  *  Description of Solaris_Int_Limits_1 fix
7096  */
7097 tSCC zSolaris_Int_Limits_1Name[] =
7098      "solaris_int_limits_1";
7099
7100 /*
7101  *  File name selection pattern
7102  */
7103 tSCC zSolaris_Int_Limits_1List[] =
7104   "sys/int_limits.h\0";
7105 /*
7106  *  Machine/OS name selection pattern
7107  */
7108 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7109         "*-*-solaris2*",
7110         (const char*)NULL };
7111
7112 /*
7113  *  content selection pattern - do fix if pattern found
7114  */
7115 tSCC zSolaris_Int_Limits_1Select0[] =
7116        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7117 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7118
7119 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
7120 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7121   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7122
7123 /*
7124  *  Fix Command Arguments for Solaris_Int_Limits_1
7125  */
7126 static const char* apzSolaris_Int_Limits_1Patch[] = {
7127     "format",
7128     "#define\tUINT8_MAX\t(255)\n\
7129 #define\tUINT16_MAX\t(65535)",
7130     (char*)NULL };
7131
7132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7133  *
7134  *  Description of Solaris_Int_Limits_2 fix
7135  */
7136 tSCC zSolaris_Int_Limits_2Name[] =
7137      "solaris_int_limits_2";
7138
7139 /*
7140  *  File name selection pattern
7141  */
7142 tSCC zSolaris_Int_Limits_2List[] =
7143   "sys/int_limits.h\0";
7144 /*
7145  *  Machine/OS name selection pattern
7146  */
7147 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7148         "*-*-solaris2*",
7149         (const char*)NULL };
7150
7151 /*
7152  *  content selection pattern - do fix if pattern found
7153  */
7154 tSCC zSolaris_Int_Limits_2Select0[] =
7155        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7156
7157 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
7158 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7159   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7160
7161 /*
7162  *  Fix Command Arguments for Solaris_Int_Limits_2
7163  */
7164 static const char* apzSolaris_Int_Limits_2Patch[] = {
7165     "format",
7166     "#define\t%1_FAST16_%2 %132_%2",
7167     (char*)NULL };
7168
7169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7170  *
7171  *  Description of Solaris_Int_Limits_3 fix
7172  */
7173 tSCC zSolaris_Int_Limits_3Name[] =
7174      "solaris_int_limits_3";
7175
7176 /*
7177  *  File name selection pattern
7178  */
7179 tSCC zSolaris_Int_Limits_3List[] =
7180   "sys/int_limits.h\0";
7181 /*
7182  *  Machine/OS name selection pattern
7183  */
7184 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7185         "*-*-solaris2*",
7186         (const char*)NULL };
7187
7188 /*
7189  *  content selection pattern - do fix if pattern found
7190  */
7191 tSCC zSolaris_Int_Limits_3Select0[] =
7192        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7193
7194 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
7195 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7196   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7197
7198 /*
7199  *  Fix Command Arguments for Solaris_Int_Limits_3
7200  */
7201 static const char* apzSolaris_Int_Limits_3Patch[] = {
7202     "format",
7203     "#define\tSIZE_MAX\t4294967295U",
7204     (char*)NULL };
7205
7206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7207  *
7208  *  Description of Solaris_Int_Types fix
7209  */
7210 tSCC zSolaris_Int_TypesName[] =
7211      "solaris_int_types";
7212
7213 /*
7214  *  File name selection pattern
7215  */
7216 tSCC zSolaris_Int_TypesList[] =
7217   "sys/int_types.h\0";
7218 /*
7219  *  Machine/OS name selection pattern
7220  */
7221 #define apzSolaris_Int_TypesMachs (const char**)NULL
7222
7223 /*
7224  *  content selection pattern - do fix if pattern found
7225  */
7226 tSCC zSolaris_Int_TypesSelect0[] =
7227        "__STDC__ - 0 == 0";
7228
7229 /*
7230  *  content bypass pattern - skip fix if pattern found
7231  */
7232 tSCC zSolaris_Int_TypesBypass0[] =
7233        "_LONGLONG_TYPE";
7234
7235 #define    SOLARIS_INT_TYPES_TEST_CT  2
7236 static tTestDesc aSolaris_Int_TypesTests[] = {
7237   { TT_NEGREP,   zSolaris_Int_TypesBypass0, (regex_t*)NULL },
7238   { TT_EGREP,    zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
7239
7240 /*
7241  *  Fix Command Arguments for Solaris_Int_Types
7242  */
7243 static const char* apzSolaris_Int_TypesPatch[] = {
7244     "format",
7245     "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
7246     (char*)NULL };
7247
7248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7249  *
7250  *  Description of Solaris_Posix_Spawn_Restrict fix
7251  */
7252 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7253      "solaris_posix_spawn_restrict";
7254
7255 /*
7256  *  File name selection pattern
7257  */
7258 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7259   "spawn.h\0";
7260 /*
7261  *  Machine/OS name selection pattern
7262  */
7263 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7264         "*-*-solaris2*",
7265         (const char*)NULL };
7266
7267 /*
7268  *  content selection pattern - do fix if pattern found
7269  */
7270 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7271        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7272
7273 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
7274 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7275   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7276
7277 /*
7278  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7279  */
7280 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7281     "format",
7282     "%1*_RESTRICT_KYWD %2%3",
7283     (char*)NULL };
7284
7285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7286  *
7287  *  Description of Solaris_Std___Filbuf fix
7288  */
7289 tSCC zSolaris_Std___FilbufName[] =
7290      "solaris_std___filbuf";
7291
7292 /*
7293  *  File name selection pattern
7294  */
7295 tSCC zSolaris_Std___FilbufList[] =
7296   "stdio.h\0";
7297 /*
7298  *  Machine/OS name selection pattern
7299  */
7300 tSCC* apzSolaris_Std___FilbufMachs[] = {
7301         "*-*-solaris2*",
7302         (const char*)NULL };
7303
7304 /*
7305  *  content selection pattern - do fix if pattern found
7306  */
7307 tSCC zSolaris_Std___FilbufSelect0[] =
7308        "(using std::perror;\n\
7309 )(#endif)";
7310
7311 /*
7312  *  content bypass pattern - skip fix if pattern found
7313  */
7314 tSCC zSolaris_Std___FilbufBypass0[] =
7315        "using std::__filbuf";
7316
7317 #define    SOLARIS_STD___FILBUF_TEST_CT  2
7318 static tTestDesc aSolaris_Std___FilbufTests[] = {
7319   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7320   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7321
7322 /*
7323  *  Fix Command Arguments for Solaris_Std___Filbuf
7324  */
7325 static const char* apzSolaris_Std___FilbufPatch[] = {
7326     "format",
7327     "%1#ifndef _LP64\n\
7328 using std::__filbuf;\n\
7329 using std::__flsbuf;\n\
7330 #endif\n\
7331 %2",
7332     (char*)NULL };
7333
7334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7335  *
7336  *  Description of Solaris_Stdio_Tag fix
7337  */
7338 tSCC zSolaris_Stdio_TagName[] =
7339      "solaris_stdio_tag";
7340
7341 /*
7342  *  File name selection pattern
7343  */
7344 tSCC zSolaris_Stdio_TagList[] =
7345   "stdio_tag.h\0";
7346 /*
7347  *  Machine/OS name selection pattern
7348  */
7349 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7350
7351 /*
7352  *  content selection pattern - do fix if pattern found
7353  */
7354 tSCC zSolaris_Stdio_TagSelect0[] =
7355        "__cplusplus < 54321L";
7356
7357 /*
7358  *  content bypass pattern - skip fix if pattern found
7359  */
7360 tSCC zSolaris_Stdio_TagBypass0[] =
7361        "__GNUC__";
7362
7363 #define    SOLARIS_STDIO_TAG_TEST_CT  2
7364 static tTestDesc aSolaris_Stdio_TagTests[] = {
7365   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7366   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7367
7368 /*
7369  *  Fix Command Arguments for Solaris_Stdio_Tag
7370  */
7371 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7372     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7373     (char*)NULL };
7374
7375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7376  *
7377  *  Description of Solaris_Sys_Va_List fix
7378  */
7379 tSCC zSolaris_Sys_Va_ListName[] =
7380      "solaris_sys_va_list";
7381
7382 /*
7383  *  File name selection pattern
7384  */
7385 tSCC zSolaris_Sys_Va_ListList[] =
7386   "sys/va_list.h\0";
7387 /*
7388  *  Machine/OS name selection pattern
7389  */
7390 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7391         "*-*-solaris2.[89]",
7392         (const char*)NULL };
7393
7394 /*
7395  *  content selection pattern - do fix if pattern found
7396  */
7397 tSCC zSolaris_Sys_Va_ListSelect0[] =
7398        "#if.*__STDC__.*\n\
7399 typedef void \\*__va_list;\n\
7400 #else\n\
7401 typedef char \\*__va_list;\n\
7402 #endif";
7403
7404 #define    SOLARIS_SYS_VA_LIST_TEST_CT  1
7405 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7406   { TT_EGREP,    zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7407
7408 /*
7409  *  Fix Command Arguments for Solaris_Sys_Va_List
7410  */
7411 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7412     "format",
7413     "#ifdef __GNUC__\n\
7414 typedef __builtin_va_list __va_list;\n\
7415 #else\n\
7416 %0\n\
7417 #endif",
7418     (char*)NULL };
7419
7420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7421  *
7422  *  Description of Statsswtch fix
7423  */
7424 tSCC zStatsswtchName[] =
7425      "statsswtch";
7426
7427 /*
7428  *  File name selection pattern
7429  */
7430 tSCC zStatsswtchList[] =
7431   "rpcsvc/rstat.h\0";
7432 /*
7433  *  Machine/OS name selection pattern
7434  */
7435 #define apzStatsswtchMachs (const char**)NULL
7436
7437 /*
7438  *  content selection pattern - do fix if pattern found
7439  */
7440 tSCC zStatsswtchSelect0[] =
7441        "boottime$";
7442
7443 #define    STATSSWTCH_TEST_CT  1
7444 static tTestDesc aStatsswtchTests[] = {
7445   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
7446
7447 /*
7448  *  Fix Command Arguments for Statsswtch
7449  */
7450 static const char* apzStatsswtchPatch[] = {
7451     "format",
7452     "boottime;",
7453     (char*)NULL };
7454
7455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7456  *
7457  *  Description of Stdio_Stdarg_H fix
7458  */
7459 tSCC zStdio_Stdarg_HName[] =
7460      "stdio_stdarg_h";
7461
7462 /*
7463  *  File name selection pattern
7464  */
7465 tSCC zStdio_Stdarg_HList[] =
7466   "stdio.h\0";
7467 /*
7468  *  Machine/OS name selection pattern
7469  */
7470 tSCC* apzStdio_Stdarg_HMachs[] = {
7471         "*-*-solaris2.1[0-9]*",
7472         (const char*)NULL };
7473
7474 /*
7475  *  content bypass pattern - skip fix if pattern found
7476  */
7477 tSCC zStdio_Stdarg_HBypass0[] =
7478        "include.*(stdarg.h|machine/ansi.h)";
7479
7480 #define    STDIO_STDARG_H_TEST_CT  1
7481 static tTestDesc aStdio_Stdarg_HTests[] = {
7482   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7483
7484 /*
7485  *  Fix Command Arguments for Stdio_Stdarg_H
7486  */
7487 static const char* apzStdio_Stdarg_HPatch[] = {
7488     "wrap",
7489     "#define __need___va_list\n\
7490 #include <stdarg.h>\n",
7491     (char*)NULL };
7492
7493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7494  *
7495  *  Description of Stdio_Va_List fix
7496  */
7497 tSCC zStdio_Va_ListName[] =
7498      "stdio_va_list";
7499
7500 /*
7501  *  File name selection pattern
7502  */
7503 tSCC zStdio_Va_ListList[] =
7504   "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
7505 /*
7506  *  Machine/OS name selection pattern
7507  */
7508 tSCC* apzStdio_Va_ListMachs[] = {
7509         "*-*-solaris2.1[0-9]*",
7510         (const char*)NULL };
7511
7512 /*
7513  *  content bypass pattern - skip fix if pattern found
7514  */
7515 tSCC zStdio_Va_ListBypass0[] =
7516        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7517
7518 #define    STDIO_VA_LIST_TEST_CT  1
7519 static tTestDesc aStdio_Va_ListTests[] = {
7520   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7521
7522 /*
7523  *  Fix Command Arguments for Stdio_Va_List
7524  */
7525 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7526     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7527 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7528 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7529 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7530 s@ va_list@ __not_va_list__@\n\
7531 s@\\*va_list@*__not_va_list__@\n\
7532 s@ __va_list)@ __gnuc_va_list)@\n\
7533 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7534 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7535 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7536 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7537 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7538 s@VA_LIST@DUMMY_VA_LIST@\n\
7539 s@_Va_LIST@_VA_LIST@",
7540     (char*)NULL };
7541
7542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7543  *
7544  *  Description of Stdio_Va_List_Clients fix
7545  */
7546 tSCC zStdio_Va_List_ClientsName[] =
7547      "stdio_va_list_clients";
7548
7549 /*
7550  *  File name selection pattern
7551  */
7552 tSCC zStdio_Va_List_ClientsList[] =
7553   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7554 /*
7555  *  Machine/OS name selection pattern
7556  */
7557 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7558
7559 /*
7560  *  content bypass pattern - skip fix if pattern found
7561  */
7562 tSCC zStdio_Va_List_ClientsBypass0[] =
7563        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7564 tSCC zStdio_Va_List_ClientsBypass1[] =
7565        "include <stdarg\\.h>|#ifdef va_start";
7566
7567 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
7568 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7569   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7570   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7571
7572 /*
7573  *  Fix Command Arguments for Stdio_Va_List_Clients
7574  */
7575 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7576     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7577 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7578 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7579 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7580 s@ va_list@ __not_va_list__@\n\
7581 s@\\*va_list@*__not_va_list__@\n\
7582 s@ __va_list)@ __gnuc_va_list)@\n\
7583 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7584 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7585 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7586 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7587 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7588 s@VA_LIST@DUMMY_VA_LIST@\n\
7589 s@_Va_LIST@_VA_LIST@",
7590     (char*)NULL };
7591
7592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7593  *
7594  *  Description of Strict_Ansi_Not fix
7595  */
7596 tSCC zStrict_Ansi_NotName[] =
7597      "strict_ansi_not";
7598
7599 /*
7600  *  File name selection pattern
7601  */
7602 #define zStrict_Ansi_NotList (char*)NULL
7603 /*
7604  *  Machine/OS name selection pattern
7605  */
7606 #define apzStrict_Ansi_NotMachs (const char**)NULL
7607
7608 /*
7609  *  content selection pattern - do fix if pattern found
7610  */
7611 tSCC zStrict_Ansi_NotSelect0[] =
7612        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7613
7614 /*
7615  *  content bypass pattern - skip fix if pattern found
7616  */
7617 tSCC zStrict_Ansi_NotBypass0[] =
7618        "GNU and MIPS C compilers define __STDC__ differently";
7619 tSCC zStrict_Ansi_NotBypass1[] =
7620        "__SCO_VERSION__.*__STDC__ != 1";
7621
7622 /*
7623  *  perform the C function call test
7624  */
7625 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7626
7627 #define    STRICT_ANSI_NOT_TEST_CT  4
7628 static tTestDesc aStrict_Ansi_NotTests[] = {
7629   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
7630   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7631   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7632   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7633
7634 /*
7635  *  Fix Command Arguments for Strict_Ansi_Not
7636  */
7637 static const char* apzStrict_Ansi_NotPatch[] = {
7638     "format",
7639     "%1 !defined(__STRICT_ANSI__)",
7640     (char*)NULL };
7641
7642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7643  *
7644  *  Description of Strict_Ansi_Not_Ctd fix
7645  */
7646 tSCC zStrict_Ansi_Not_CtdName[] =
7647      "strict_ansi_not_ctd";
7648
7649 /*
7650  *  File name selection pattern
7651  */
7652 tSCC zStrict_Ansi_Not_CtdList[] =
7653   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7654 /*
7655  *  Machine/OS name selection pattern
7656  */
7657 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7658
7659 /*
7660  *  content selection pattern - do fix if pattern found
7661  */
7662 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7663        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7664
7665 /*
7666  *  perform the C function call test
7667  */
7668 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7669
7670 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
7671 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7672   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
7673   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7674
7675 /*
7676  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
7677  */
7678 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7679     "format",
7680     "%1 !defined(__STRICT_ANSI__)",
7681     (char*)NULL };
7682
7683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7684  *
7685  *  Description of Strict_Ansi_Only fix
7686  */
7687 tSCC zStrict_Ansi_OnlyName[] =
7688      "strict_ansi_only";
7689
7690 /*
7691  *  File name selection pattern
7692  */
7693 #define zStrict_Ansi_OnlyList (char*)NULL
7694 /*
7695  *  Machine/OS name selection pattern
7696  */
7697 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7698
7699 /*
7700  *  content selection pattern - do fix if pattern found
7701  */
7702 tSCC zStrict_Ansi_OnlySelect0[] =
7703        "^([ \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)";
7704
7705 /*
7706  *  perform the C function call test
7707  */
7708 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7709
7710 #define    STRICT_ANSI_ONLY_TEST_CT  2
7711 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7712   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
7713   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7714
7715 /*
7716  *  Fix Command Arguments for Strict_Ansi_Only
7717  */
7718 static const char* apzStrict_Ansi_OnlyPatch[] = {
7719     "format",
7720     "%1 defined(__STRICT_ANSI__)",
7721     (char*)NULL };
7722
7723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7724  *
7725  *  Description of Struct_File fix
7726  */
7727 tSCC zStruct_FileName[] =
7728      "struct_file";
7729
7730 /*
7731  *  File name selection pattern
7732  */
7733 tSCC zStruct_FileList[] =
7734   "rpc/xdr.h\0";
7735 /*
7736  *  Machine/OS name selection pattern
7737  */
7738 #define apzStruct_FileMachs (const char**)NULL
7739
7740 /*
7741  *  content selection pattern - do fix if pattern found
7742  */
7743 tSCC zStruct_FileSelect0[] =
7744        "^.*xdrstdio_create.*struct __file_s";
7745
7746 #define    STRUCT_FILE_TEST_CT  1
7747 static tTestDesc aStruct_FileTests[] = {
7748   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
7749
7750 /*
7751  *  Fix Command Arguments for Struct_File
7752  */
7753 static const char* apzStruct_FilePatch[] = {
7754     "format",
7755     "struct __file_s;\n\
7756 %0",
7757     (char*)NULL };
7758
7759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7760  *
7761  *  Description of Struct_Sockaddr fix
7762  */
7763 tSCC zStruct_SockaddrName[] =
7764      "struct_sockaddr";
7765
7766 /*
7767  *  File name selection pattern
7768  */
7769 tSCC zStruct_SockaddrList[] =
7770   "rpc/auth.h\0";
7771 /*
7772  *  Machine/OS name selection pattern
7773  */
7774 #define apzStruct_SockaddrMachs (const char**)NULL
7775
7776 /*
7777  *  content selection pattern - do fix if pattern found
7778  */
7779 tSCC zStruct_SockaddrSelect0[] =
7780        "^.*authdes_create.*struct sockaddr[^_]";
7781
7782 /*
7783  *  content bypass pattern - skip fix if pattern found
7784  */
7785 tSCC zStruct_SockaddrBypass0[] =
7786        "<sys/socket.h>";
7787 tSCC zStruct_SockaddrBypass1[] =
7788        "struct sockaddr;\n";
7789
7790 #define    STRUCT_SOCKADDR_TEST_CT  3
7791 static tTestDesc aStruct_SockaddrTests[] = {
7792   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
7793   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
7794   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7795
7796 /*
7797  *  Fix Command Arguments for Struct_Sockaddr
7798  */
7799 static const char* apzStruct_SockaddrPatch[] = {
7800     "format",
7801     "struct sockaddr;\n\
7802 %0",
7803     (char*)NULL };
7804
7805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7806  *
7807  *  Description of Sun_Auth_Proto fix
7808  */
7809 tSCC zSun_Auth_ProtoName[] =
7810      "sun_auth_proto";
7811
7812 /*
7813  *  File name selection pattern
7814  */
7815 tSCC zSun_Auth_ProtoList[] =
7816   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7817 /*
7818  *  Machine/OS name selection pattern
7819  */
7820 #define apzSun_Auth_ProtoMachs (const char**)NULL
7821
7822 /*
7823  *  content selection pattern - do fix if pattern found
7824  */
7825 tSCC zSun_Auth_ProtoSelect0[] =
7826        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7827
7828 /*
7829  *  content bypass pattern - skip fix if pattern found
7830  */
7831 tSCC zSun_Auth_ProtoBypass0[] =
7832        "__cplusplus";
7833
7834 #define    SUN_AUTH_PROTO_TEST_CT  2
7835 static tTestDesc aSun_Auth_ProtoTests[] = {
7836   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7837   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7838
7839 /*
7840  *  Fix Command Arguments for Sun_Auth_Proto
7841  */
7842 static const char* apzSun_Auth_ProtoPatch[] = {
7843     "format",
7844     "#ifdef __cplusplus\n\
7845 %1(...);%2\n\
7846 #else\n\
7847 %1();%2\n\
7848 #endif",
7849     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7850     (char*)NULL };
7851
7852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7853  *
7854  *  Description of Sun_Bogus_Ifdef fix
7855  */
7856 tSCC zSun_Bogus_IfdefName[] =
7857      "sun_bogus_ifdef";
7858
7859 /*
7860  *  File name selection pattern
7861  */
7862 tSCC zSun_Bogus_IfdefList[] =
7863   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7864 /*
7865  *  Machine/OS name selection pattern
7866  */
7867 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7868
7869 /*
7870  *  content selection pattern - do fix if pattern found
7871  */
7872 tSCC zSun_Bogus_IfdefSelect0[] =
7873        "#ifdef(.*\\|\\|.*)";
7874
7875 #define    SUN_BOGUS_IFDEF_TEST_CT  1
7876 static tTestDesc aSun_Bogus_IfdefTests[] = {
7877   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7878
7879 /*
7880  *  Fix Command Arguments for Sun_Bogus_Ifdef
7881  */
7882 static const char* apzSun_Bogus_IfdefPatch[] = {
7883     "format",
7884     "#if%1",
7885     (char*)NULL };
7886
7887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7888  *
7889  *  Description of Sun_Catmacro fix
7890  */
7891 tSCC zSun_CatmacroName[] =
7892      "sun_catmacro";
7893
7894 /*
7895  *  File name selection pattern
7896  */
7897 tSCC zSun_CatmacroList[] =
7898   "pixrect/memvar.h\0";
7899 /*
7900  *  Machine/OS name selection pattern
7901  */
7902 #define apzSun_CatmacroMachs (const char**)NULL
7903
7904 /*
7905  *  content selection pattern - do fix if pattern found
7906  */
7907 tSCC zSun_CatmacroSelect0[] =
7908        "^#define[ \t]+CAT\\(a,b\\).*";
7909
7910 #define    SUN_CATMACRO_TEST_CT  1
7911 static tTestDesc aSun_CatmacroTests[] = {
7912   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
7913
7914 /*
7915  *  Fix Command Arguments for Sun_Catmacro
7916  */
7917 static const char* apzSun_CatmacroPatch[] = {
7918     "format",
7919     "#ifdef __STDC__\n\
7920 #  define CAT(a,b) a##b\n\
7921 #else\n\
7922 %0\n\
7923 #endif",
7924     (char*)NULL };
7925
7926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7927  *
7928  *  Description of Sun_Malloc fix
7929  */
7930 tSCC zSun_MallocName[] =
7931      "sun_malloc";
7932
7933 /*
7934  *  File name selection pattern
7935  */
7936 tSCC zSun_MallocList[] =
7937   "malloc.h\0";
7938 /*
7939  *  Machine/OS name selection pattern
7940  */
7941 #define apzSun_MallocMachs (const char**)NULL
7942
7943 /*
7944  *  content bypass pattern - skip fix if pattern found
7945  */
7946 tSCC zSun_MallocBypass0[] =
7947        "_CLASSIC_ANSI_TYPES";
7948
7949 #define    SUN_MALLOC_TEST_CT  1
7950 static tTestDesc aSun_MallocTests[] = {
7951   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
7952
7953 /*
7954  *  Fix Command Arguments for Sun_Malloc
7955  */
7956 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7957     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7958     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7959     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7960     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7961     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7962     (char*)NULL };
7963
7964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7965  *
7966  *  Description of Sun_Rusers_Semi fix
7967  */
7968 tSCC zSun_Rusers_SemiName[] =
7969      "sun_rusers_semi";
7970
7971 /*
7972  *  File name selection pattern
7973  */
7974 tSCC zSun_Rusers_SemiList[] =
7975   "rpcsvc/rusers.h\0";
7976 /*
7977  *  Machine/OS name selection pattern
7978  */
7979 #define apzSun_Rusers_SemiMachs (const char**)NULL
7980
7981 /*
7982  *  content selection pattern - do fix if pattern found
7983  */
7984 tSCC zSun_Rusers_SemiSelect0[] =
7985        "_cnt$";
7986
7987 #define    SUN_RUSERS_SEMI_TEST_CT  1
7988 static tTestDesc aSun_Rusers_SemiTests[] = {
7989   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7990
7991 /*
7992  *  Fix Command Arguments for Sun_Rusers_Semi
7993  */
7994 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7995     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7996     (char*)NULL };
7997
7998 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7999  *
8000  *  Description of Sun_Signal fix
8001  */
8002 tSCC zSun_SignalName[] =
8003      "sun_signal";
8004
8005 /*
8006  *  File name selection pattern
8007  */
8008 tSCC zSun_SignalList[] =
8009   "sys/signal.h\0signal.h\0";
8010 /*
8011  *  Machine/OS name selection pattern
8012  */
8013 #define apzSun_SignalMachs (const char**)NULL
8014
8015 /*
8016  *  content selection pattern - do fix if pattern found
8017  */
8018 tSCC zSun_SignalSelect0[] =
8019        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
8020
8021 #define    SUN_SIGNAL_TEST_CT  1
8022 static tTestDesc aSun_SignalTests[] = {
8023   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
8024
8025 /*
8026  *  Fix Command Arguments for Sun_Signal
8027  */
8028 static const char* apzSun_SignalPatch[] = {
8029     "format",
8030     "#ifdef __cplusplus\n\
8031 void\t(*signal(...))(...);\n\
8032 #else\n\
8033 %0\n\
8034 #endif",
8035     (char*)NULL };
8036
8037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8038  *
8039  *  Description of Sunos_Strlen fix
8040  */
8041 tSCC zSunos_StrlenName[] =
8042      "sunos_strlen";
8043
8044 /*
8045  *  File name selection pattern
8046  */
8047 tSCC zSunos_StrlenList[] =
8048   "strings.h\0";
8049 /*
8050  *  Machine/OS name selection pattern
8051  */
8052 #define apzSunos_StrlenMachs (const char**)NULL
8053
8054 /*
8055  *  content selection pattern - do fix if pattern found
8056  */
8057 tSCC zSunos_StrlenSelect0[] =
8058        "int[ \t]*strlen\\(\\);(.*)";
8059
8060 #define    SUNOS_STRLEN_TEST_CT  1
8061 static tTestDesc aSunos_StrlenTests[] = {
8062   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
8063
8064 /*
8065  *  Fix Command Arguments for Sunos_Strlen
8066  */
8067 static const char* apzSunos_StrlenPatch[] = {
8068     "format",
8069     "__SIZE_TYPE__ strlen();%1",
8070     (char*)NULL };
8071
8072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8073  *
8074  *  Description of Svr4_Disable_Opt fix
8075  */
8076 tSCC zSvr4_Disable_OptName[] =
8077      "svr4_disable_opt";
8078
8079 /*
8080  *  File name selection pattern
8081  */
8082 tSCC zSvr4_Disable_OptList[] =
8083   "string.h\0";
8084 /*
8085  *  Machine/OS name selection pattern
8086  */
8087 #define apzSvr4_Disable_OptMachs (const char**)NULL
8088
8089 /*
8090  *  content selection pattern - do fix if pattern found
8091  */
8092 tSCC zSvr4_Disable_OptSelect0[] =
8093        "#define.*__std_hdr_";
8094
8095 #define    SVR4_DISABLE_OPT_TEST_CT  1
8096 static tTestDesc aSvr4_Disable_OptTests[] = {
8097   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
8098
8099 /*
8100  *  Fix Command Arguments for Svr4_Disable_Opt
8101  */
8102 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
8103     "-e", "/#define.*__std_hdr_/d",
8104     (char*)NULL };
8105
8106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8107  *
8108  *  Description of Svr4_Getcwd fix
8109  */
8110 tSCC zSvr4_GetcwdName[] =
8111      "svr4_getcwd";
8112
8113 /*
8114  *  File name selection pattern
8115  */
8116 tSCC zSvr4_GetcwdList[] =
8117   "stdlib.h\0unistd.h\0prototypes.h\0";
8118 /*
8119  *  Machine/OS name selection pattern
8120  */
8121 #define apzSvr4_GetcwdMachs (const char**)NULL
8122
8123 /*
8124  *  content selection pattern - do fix if pattern found
8125  */
8126 tSCC zSvr4_GetcwdSelect0[] =
8127        "getcwd\\(char \\*, int\\)";
8128
8129 #define    SVR4_GETCWD_TEST_CT  1
8130 static tTestDesc aSvr4_GetcwdTests[] = {
8131   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
8132
8133 /*
8134  *  Fix Command Arguments for Svr4_Getcwd
8135  */
8136 static const char* apzSvr4_GetcwdPatch[] = {
8137     "format",
8138     "getcwd(char *, size_t)",
8139     (char*)NULL };
8140
8141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8142  *
8143  *  Description of Svr4_Profil fix
8144  */
8145 tSCC zSvr4_ProfilName[] =
8146      "svr4_profil";
8147
8148 /*
8149  *  File name selection pattern
8150  */
8151 tSCC zSvr4_ProfilList[] =
8152   "stdlib.h\0unistd.h\0";
8153 /*
8154  *  Machine/OS name selection pattern
8155  */
8156 #define apzSvr4_ProfilMachs (const char**)NULL
8157
8158 /*
8159  *  content selection pattern - do fix if pattern found
8160  */
8161 tSCC zSvr4_ProfilSelect0[] =
8162        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
8163
8164 /*
8165  *  content bypass pattern - skip fix if pattern found
8166  */
8167 tSCC zSvr4_ProfilBypass0[] =
8168        "Silicon Graphics";
8169
8170 #define    SVR4_PROFIL_TEST_CT  2
8171 static tTestDesc aSvr4_ProfilTests[] = {
8172   { TT_NEGREP,   zSvr4_ProfilBypass0, (regex_t*)NULL },
8173   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
8174
8175 /*
8176  *  Fix Command Arguments for Svr4_Profil
8177  */
8178 static const char* apzSvr4_ProfilPatch[] = {
8179     "format",
8180     "profil(unsigned short *, size_t, int, unsigned int)",
8181     (char*)NULL };
8182
8183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8184  *
8185  *  Description of Svr4_Sighandler_Type fix
8186  */
8187 tSCC zSvr4_Sighandler_TypeName[] =
8188      "svr4_sighandler_type";
8189
8190 /*
8191  *  File name selection pattern
8192  */
8193 tSCC zSvr4_Sighandler_TypeList[] =
8194   "sys/signal.h\0";
8195 /*
8196  *  Machine/OS name selection pattern
8197  */
8198 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
8199
8200 /*
8201  *  content selection pattern - do fix if pattern found
8202  */
8203 tSCC zSvr4_Sighandler_TypeSelect0[] =
8204        "void *\\(\\*\\)\\(\\)";
8205
8206 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
8207 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8208   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8209
8210 /*
8211  *  Fix Command Arguments for Svr4_Sighandler_Type
8212  */
8213 static const char* apzSvr4_Sighandler_TypePatch[] = {
8214     "format",
8215     "void (*)(int)",
8216     (char*)NULL };
8217
8218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8219  *
8220  *  Description of Svr4_Undeclared_Getrnge fix
8221  */
8222 tSCC zSvr4_Undeclared_GetrngeName[] =
8223      "svr4_undeclared_getrnge";
8224
8225 /*
8226  *  File name selection pattern
8227  */
8228 tSCC zSvr4_Undeclared_GetrngeList[] =
8229   "regexp.h\0";
8230 /*
8231  *  Machine/OS name selection pattern
8232  */
8233 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8234
8235 /*
8236  *  content selection pattern - do fix if pattern found
8237  */
8238 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8239        "getrnge";
8240
8241 /*
8242  *  content bypass pattern - skip fix if pattern found
8243  */
8244 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8245        "static void getrnge";
8246
8247 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
8248 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8249   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8250   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8251
8252 /*
8253  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
8254  */
8255 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8256     "format",
8257     "%0\n\
8258 static int getrnge ();",
8259     "^static int[ \t]+size;",
8260     (char*)NULL };
8261
8262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8263  *
8264  *  Description of Sysv68_String fix
8265  */
8266 tSCC zSysv68_StringName[] =
8267      "sysv68_string";
8268
8269 /*
8270  *  File name selection pattern
8271  */
8272 tSCC zSysv68_StringList[] =
8273   "testing.h\0string.h\0";
8274 /*
8275  *  Machine/OS name selection pattern
8276  */
8277 #define apzSysv68_StringMachs (const char**)NULL
8278
8279 /*
8280  *  content bypass pattern - skip fix if pattern found
8281  */
8282 tSCC zSysv68_StringBypass0[] =
8283        "_CLASSIC_ANSI_TYPES";
8284
8285 #define    SYSV68_STRING_TEST_CT  1
8286 static tTestDesc aSysv68_StringTests[] = {
8287   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
8288
8289 /*
8290  *  Fix Command Arguments for Sysv68_String
8291  */
8292 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8293     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8294     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8295     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8296     "-e", "/^extern char$/N",
8297     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8298     "-e", "/^extern int$/N",
8299     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8300     "-e", "/^\tstrncmp(),$/N",
8301     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8302 extern unsigned int\\\n\
8303 \\2/",
8304     (char*)NULL };
8305
8306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8307  *
8308  *  Description of Sysz_Stdlib_For_Sun fix
8309  */
8310 tSCC zSysz_Stdlib_For_SunName[] =
8311      "sysz_stdlib_for_sun";
8312
8313 /*
8314  *  File name selection pattern
8315  */
8316 tSCC zSysz_Stdlib_For_SunList[] =
8317   "stdlib.h\0";
8318 /*
8319  *  Machine/OS name selection pattern
8320  */
8321 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8322
8323 /*
8324  *  content selection pattern - do fix if pattern found
8325  */
8326 tSCC zSysz_Stdlib_For_SunSelect0[] =
8327        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8328
8329 /*
8330  *  content bypass pattern - skip fix if pattern found
8331  */
8332 tSCC zSysz_Stdlib_For_SunBypass0[] =
8333        "_CLASSIC_ANSI_TYPES";
8334
8335 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
8336 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8337   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8338   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8339
8340 /*
8341  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
8342  */
8343 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8344     "format",
8345     "void *\t%1(",
8346     (char*)NULL };
8347
8348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8349  *
8350  *  Description of Thread_Keyword fix
8351  */
8352 tSCC zThread_KeywordName[] =
8353      "thread_keyword";
8354
8355 /*
8356  *  File name selection pattern
8357  */
8358 tSCC zThread_KeywordList[] =
8359   "pthread.h\0bits/sigthread.h\0";
8360 /*
8361  *  Machine/OS name selection pattern
8362  */
8363 #define apzThread_KeywordMachs (const char**)NULL
8364
8365 /*
8366  *  content selection pattern - do fix if pattern found
8367  */
8368 tSCC zThread_KeywordSelect0[] =
8369        "([* ])__thread([,)])";
8370
8371 #define    THREAD_KEYWORD_TEST_CT  1
8372 static tTestDesc aThread_KeywordTests[] = {
8373   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
8374
8375 /*
8376  *  Fix Command Arguments for Thread_Keyword
8377  */
8378 static const char* apzThread_KeywordPatch[] = {
8379     "format",
8380     "%1__thr%2",
8381     (char*)NULL };
8382
8383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8384  *
8385  *  Description of Tinfo_Cplusplus fix
8386  */
8387 tSCC zTinfo_CplusplusName[] =
8388      "tinfo_cplusplus";
8389
8390 /*
8391  *  File name selection pattern
8392  */
8393 tSCC zTinfo_CplusplusList[] =
8394   "tinfo.h\0";
8395 /*
8396  *  Machine/OS name selection pattern
8397  */
8398 #define apzTinfo_CplusplusMachs (const char**)NULL
8399
8400 /*
8401  *  content selection pattern - do fix if pattern found
8402  */
8403 tSCC zTinfo_CplusplusSelect0[] =
8404        "[ \t]_cplusplus";
8405
8406 #define    TINFO_CPLUSPLUS_TEST_CT  1
8407 static tTestDesc aTinfo_CplusplusTests[] = {
8408   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8409
8410 /*
8411  *  Fix Command Arguments for Tinfo_Cplusplus
8412  */
8413 static const char* apzTinfo_CplusplusPatch[] = {
8414     "format",
8415     " __cplusplus",
8416     (char*)NULL };
8417
8418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8419  *
8420  *  Description of Ultrix_Const fix
8421  */
8422 tSCC zUltrix_ConstName[] =
8423      "ultrix_const";
8424
8425 /*
8426  *  File name selection pattern
8427  */
8428 tSCC zUltrix_ConstList[] =
8429   "stdio.h\0";
8430 /*
8431  *  Machine/OS name selection pattern
8432  */
8433 #define apzUltrix_ConstMachs (const char**)NULL
8434
8435 /*
8436  *  content selection pattern - do fix if pattern found
8437  */
8438 tSCC zUltrix_ConstSelect0[] =
8439        "perror\\( char \\*";
8440
8441 #define    ULTRIX_CONST_TEST_CT  1
8442 static tTestDesc aUltrix_ConstTests[] = {
8443   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
8444
8445 /*
8446  *  Fix Command Arguments for Ultrix_Const
8447  */
8448 static const char* apzUltrix_ConstPatch[] = {
8449     "format",
8450     "%1 const %3 *__",
8451     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8452     (char*)NULL };
8453
8454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8455  *
8456  *  Description of Ultrix_Const2 fix
8457  */
8458 tSCC zUltrix_Const2Name[] =
8459      "ultrix_const2";
8460
8461 /*
8462  *  File name selection pattern
8463  */
8464 tSCC zUltrix_Const2List[] =
8465   "stdio.h\0";
8466 /*
8467  *  Machine/OS name selection pattern
8468  */
8469 #define apzUltrix_Const2Machs (const char**)NULL
8470
8471 /*
8472  *  content selection pattern - do fix if pattern found
8473  */
8474 tSCC zUltrix_Const2Select0[] =
8475        "\\*fopen\\( char \\*";
8476
8477 #define    ULTRIX_CONST2_TEST_CT  1
8478 static tTestDesc aUltrix_Const2Tests[] = {
8479   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
8480
8481 /*
8482  *  Fix Command Arguments for Ultrix_Const2
8483  */
8484 static const char* apzUltrix_Const2Patch[] = {
8485     "format",
8486     "%1( const char *%3, const char *",
8487     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8488     (char*)NULL };
8489
8490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8491  *
8492  *  Description of Va_I960_Macro fix
8493  */
8494 tSCC zVa_I960_MacroName[] =
8495      "va_i960_macro";
8496
8497 /*
8498  *  File name selection pattern
8499  */
8500 tSCC zVa_I960_MacroList[] =
8501   "arch/i960/archI960.h\0";
8502 /*
8503  *  Machine/OS name selection pattern
8504  */
8505 #define apzVa_I960_MacroMachs (const char**)NULL
8506
8507 /*
8508  *  content selection pattern - do fix if pattern found
8509  */
8510 tSCC zVa_I960_MacroSelect0[] =
8511        "__(vsiz|vali|vpad|alignof__)";
8512
8513 #define    VA_I960_MACRO_TEST_CT  1
8514 static tTestDesc aVa_I960_MacroTests[] = {
8515   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8516
8517 /*
8518  *  Fix Command Arguments for Va_I960_Macro
8519  */
8520 static const char* apzVa_I960_MacroPatch[] = {
8521     "format",
8522     "__vx%1",
8523     (char*)NULL };
8524
8525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8526  *
8527  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
8528  */
8529 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8530      "vms_define_can_use_extern_prefix";
8531
8532 /*
8533  *  File name selection pattern
8534  */
8535 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8536   "rtldef/decc$types.h\0";
8537 /*
8538  *  Machine/OS name selection pattern
8539  */
8540 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8541         "*-*-*vms*",
8542         (const char*)NULL };
8543
8544 /*
8545  *  content selection pattern - do fix if pattern found
8546  */
8547 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8548        "#[ \t]*else\n\
8549 #[ \t]*if defined\\(__DECCXX\\)\n\
8550 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8551
8552 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
8553 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8554   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8555
8556 /*
8557  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8558  */
8559 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8560     "format",
8561     "%0#    elif defined (__GNUC__)\n\
8562 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8563     (char*)NULL };
8564
8565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8566  *
8567  *  Description of Vms_Use_Pragma_Extern_Model fix
8568  */
8569 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8570      "vms_use_pragma_extern_model";
8571
8572 /*
8573  *  File name selection pattern
8574  */
8575 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8576 /*
8577  *  Machine/OS name selection pattern
8578  */
8579 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8580         "*-*-*vms*",
8581         (const char*)NULL };
8582
8583 /*
8584  *  content selection pattern - do fix if pattern found
8585  */
8586 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8587        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8588 # pragma extern_model __save\n";
8589
8590 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
8591 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8592   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8593
8594 /*
8595  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8596  */
8597 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8598     "format",
8599     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8600 # pragma extern_model __save\n",
8601     (char*)NULL };
8602
8603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8604  *
8605  *  Description of Vms_Disable_Decc_String_Builtins fix
8606  */
8607 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8608      "vms_disable_decc_string_builtins";
8609
8610 /*
8611  *  File name selection pattern
8612  */
8613 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8614   "rtldef/string.h\0";
8615 /*
8616  *  Machine/OS name selection pattern
8617  */
8618 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8619         "*-*-*vms*",
8620         (const char*)NULL };
8621
8622 /*
8623  *  content selection pattern - do fix if pattern found
8624  */
8625 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8626        "#if !defined\\(__VAX\\)\n";
8627
8628 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
8629 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8630   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8631
8632 /*
8633  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8634  */
8635 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8636     "format",
8637     "#if !defined(__VAX) && !defined(__GNUC__)\n",
8638     (char*)NULL };
8639
8640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8641  *
8642  *  Description of Void_Null fix
8643  */
8644 tSCC zVoid_NullName[] =
8645      "void_null";
8646
8647 /*
8648  *  File name selection pattern
8649  */
8650 tSCC zVoid_NullList[] =
8651   "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";
8652 /*
8653  *  Machine/OS name selection pattern
8654  */
8655 #define apzVoid_NullMachs (const char**)NULL
8656
8657 /*
8658  *  content selection pattern - do fix if pattern found
8659  */
8660 tSCC zVoid_NullSelect0[] =
8661        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8662
8663 /*
8664  *  content bypass pattern - skip fix if pattern found
8665  */
8666 tSCC zVoid_NullBypass0[] =
8667        "__cplusplus";
8668 tSCC zVoid_NullBypass1[] =
8669        "__null";
8670
8671 #define    VOID_NULL_TEST_CT  3
8672 static tTestDesc aVoid_NullTests[] = {
8673   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8674   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
8675   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8676
8677 /*
8678  *  Fix Command Arguments for Void_Null
8679  */
8680 static const char* apzVoid_NullPatch[] = {
8681     "format",
8682     "#define NULL 0",
8683     (char*)NULL };
8684
8685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8686  *
8687  *  Description of Vxworks_Gcc_Problem fix
8688  */
8689 tSCC zVxworks_Gcc_ProblemName[] =
8690      "vxworks_gcc_problem";
8691
8692 /*
8693  *  File name selection pattern
8694  */
8695 tSCC zVxworks_Gcc_ProblemList[] =
8696   "types/vxTypesBase.h\0";
8697 /*
8698  *  Machine/OS name selection pattern
8699  */
8700 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8701
8702 /*
8703  *  content selection pattern - do fix if pattern found
8704  */
8705 tSCC zVxworks_Gcc_ProblemSelect0[] =
8706        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8707
8708 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8709 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8710   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8711
8712 /*
8713  *  Fix Command Arguments for Vxworks_Gcc_Problem
8714  */
8715 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8716     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8717     "-e", "/[ \t]size_t/i\\\n\
8718 #ifndef _GCC_SIZE_T\\\n\
8719 #define _GCC_SIZE_T\n",
8720     "-e", "/[ \t]size_t/a\\\n\
8721 #endif\n",
8722     "-e", "/[ \t]ptrdiff_t/i\\\n\
8723 #ifndef _GCC_PTRDIFF_T\\\n\
8724 #define _GCC_PTRDIFF_T\n",
8725     "-e", "/[ \t]ptrdiff_t/a\\\n\
8726 #endif\n",
8727     "-e", "/[ \t]wchar_t/i\\\n\
8728 #ifndef _GCC_WCHAR_T\\\n\
8729 #define _GCC_WCHAR_T\n",
8730     "-e", "/[ \t]wchar_t/a\\\n\
8731 #endif\n",
8732     (char*)NULL };
8733
8734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8735  *
8736  *  Description of Vxworks_Needs_Vxtypes fix
8737  */
8738 tSCC zVxworks_Needs_VxtypesName[] =
8739      "vxworks_needs_vxtypes";
8740
8741 /*
8742  *  File name selection pattern
8743  */
8744 tSCC zVxworks_Needs_VxtypesList[] =
8745   "time.h\0";
8746 /*
8747  *  Machine/OS name selection pattern
8748  */
8749 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8750
8751 /*
8752  *  content selection pattern - do fix if pattern found
8753  */
8754 tSCC zVxworks_Needs_VxtypesSelect0[] =
8755        "uint_t([ \t]+_clocks_per_sec)";
8756
8757 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8758 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8759   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8760
8761 /*
8762  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8763  */
8764 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8765     "format",
8766     "unsigned int%1",
8767     (char*)NULL };
8768
8769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8770  *
8771  *  Description of Vxworks_Needs_Vxworks fix
8772  */
8773 tSCC zVxworks_Needs_VxworksName[] =
8774      "vxworks_needs_vxworks";
8775
8776 /*
8777  *  File name selection pattern
8778  */
8779 tSCC zVxworks_Needs_VxworksList[] =
8780   "sys/stat.h\0";
8781 /*
8782  *  Machine/OS name selection pattern
8783  */
8784 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8785
8786 /*
8787  *  content selection pattern - do fix if pattern found
8788  */
8789 tSCC zVxworks_Needs_VxworksSelect0[] =
8790        "#[ \t]define[ \t]+__INCstath";
8791
8792 /*
8793  *  perform the 'test' shell command - do fix on success
8794  */
8795 tSCC zVxworks_Needs_VxworksTest0[] =
8796        " -r types/vxTypesOld.h";
8797 tSCC zVxworks_Needs_VxworksTest1[] =
8798        " -n \"`egrep '#include' $file`\"";
8799 tSCC zVxworks_Needs_VxworksTest2[] =
8800        " -n \"`egrep ULONG $file`\"";
8801
8802 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8803 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8804   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8805   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8806   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8807   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8808
8809 /*
8810  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8811  */
8812 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8813     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8814 #include <types/vxTypesOld.h>\n",
8815     (char*)NULL };
8816
8817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8818  *
8819  *  Description of Vxworks_Time fix
8820  */
8821 tSCC zVxworks_TimeName[] =
8822      "vxworks_time";
8823
8824 /*
8825  *  File name selection pattern
8826  */
8827 tSCC zVxworks_TimeList[] =
8828   "time.h\0";
8829 /*
8830  *  Machine/OS name selection pattern
8831  */
8832 #define apzVxworks_TimeMachs (const char**)NULL
8833
8834 /*
8835  *  content selection pattern - do fix if pattern found
8836  */
8837 tSCC zVxworks_TimeSelect0[] =
8838        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8839
8840 /*
8841  *  perform the 'test' shell command - do fix on success
8842  */
8843 tSCC zVxworks_TimeTest0[] =
8844        " -r vxWorks.h";
8845
8846 #define    VXWORKS_TIME_TEST_CT  2
8847 static tTestDesc aVxworks_TimeTests[] = {
8848   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8849   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8850
8851 /*
8852  *  Fix Command Arguments for Vxworks_Time
8853  */
8854 static const char* apzVxworks_TimePatch[] = {
8855     "format",
8856     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8857 #ifdef __cplusplus\n\
8858 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8859 #else\n\
8860 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8861 #endif\n\
8862 #define __gcc_VOIDFUNCPTR_defined\n\
8863 #endif\n\
8864 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8865     (char*)NULL };
8866
8867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8868  *
8869  *  Description of X11_Class fix
8870  */
8871 tSCC zX11_ClassName[] =
8872      "x11_class";
8873
8874 /*
8875  *  File name selection pattern
8876  */
8877 tSCC zX11_ClassList[] =
8878   "X11/ShellP.h\0";
8879 /*
8880  *  Machine/OS name selection pattern
8881  */
8882 #define apzX11_ClassMachs (const char**)NULL
8883
8884 /*
8885  *  content selection pattern - do fix if pattern found
8886  */
8887 tSCC zX11_ClassSelect0[] =
8888        "^([ \t]*char \\*)class;(.*)";
8889
8890 /*
8891  *  content bypass pattern - skip fix if pattern found
8892  */
8893 tSCC zX11_ClassBypass0[] =
8894        "__cplusplus";
8895
8896 #define    X11_CLASS_TEST_CT  2
8897 static tTestDesc aX11_ClassTests[] = {
8898   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
8899   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
8900
8901 /*
8902  *  Fix Command Arguments for X11_Class
8903  */
8904 static const char* apzX11_ClassPatch[] = {
8905     "format",
8906     "#ifdef __cplusplus\n\
8907 %1c_class;%2\n\
8908 #else\n\
8909 %1class;%2\n\
8910 #endif",
8911     (char*)NULL };
8912
8913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8914  *
8915  *  Description of X11_Class_Usage fix
8916  */
8917 tSCC zX11_Class_UsageName[] =
8918      "x11_class_usage";
8919
8920 /*
8921  *  File name selection pattern
8922  */
8923 tSCC zX11_Class_UsageList[] =
8924   "Xm/BaseClassI.h\0";
8925 /*
8926  *  Machine/OS name selection pattern
8927  */
8928 #define apzX11_Class_UsageMachs (const char**)NULL
8929
8930 /*
8931  *  content selection pattern - do fix if pattern found
8932  */
8933 tSCC zX11_Class_UsageSelect0[] =
8934        " class\\)";
8935
8936 /*
8937  *  content bypass pattern - skip fix if pattern found
8938  */
8939 tSCC zX11_Class_UsageBypass0[] =
8940        "__cplusplus";
8941
8942 #define    X11_CLASS_USAGE_TEST_CT  2
8943 static tTestDesc aX11_Class_UsageTests[] = {
8944   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
8945   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8946
8947 /*
8948  *  Fix Command Arguments for X11_Class_Usage
8949  */
8950 static const char* apzX11_Class_UsagePatch[] = {
8951     "format",
8952     " c_class)",
8953     (char*)NULL };
8954
8955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8956  *
8957  *  Description of X11_New fix
8958  */
8959 tSCC zX11_NewName[] =
8960      "x11_new";
8961
8962 /*
8963  *  File name selection pattern
8964  */
8965 tSCC zX11_NewList[] =
8966   "Xm/Traversal.h\0";
8967 /*
8968  *  Machine/OS name selection pattern
8969  */
8970 #define apzX11_NewMachs (const char**)NULL
8971
8972 /*
8973  *  content bypass pattern - skip fix if pattern found
8974  */
8975 tSCC zX11_NewBypass0[] =
8976        "__cplusplus";
8977
8978 #define    X11_NEW_TEST_CT  1
8979 static tTestDesc aX11_NewTests[] = {
8980   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
8981
8982 /*
8983  *  Fix Command Arguments for X11_New
8984  */
8985 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8986     "-e", "/Widget\told, new;/i\\\n\
8987 #ifdef __cplusplus\\\n\
8988 \\\tWidget\told, c_new;\\\n\
8989 #else\n",
8990     "-e", "/Widget\told, new;/a\\\n\
8991 #endif\n",
8992     "-e", "s/Widget new,/Widget c_new,/g",
8993     (char*)NULL };
8994
8995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8996  *
8997  *  Description of X11_Sprintf fix
8998  */
8999 tSCC zX11_SprintfName[] =
9000      "x11_sprintf";
9001
9002 /*
9003  *  File name selection pattern
9004  */
9005 tSCC zX11_SprintfList[] =
9006   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9007 /*
9008  *  Machine/OS name selection pattern
9009  */
9010 #define apzX11_SprintfMachs (const char**)NULL
9011
9012 /*
9013  *  content selection pattern - do fix if pattern found
9014  */
9015 tSCC zX11_SprintfSelect0[] =
9016        "^extern char \\*\tsprintf\\(\\);$";
9017
9018 #define    X11_SPRINTF_TEST_CT  1
9019 static tTestDesc aX11_SprintfTests[] = {
9020   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
9021
9022 /*
9023  *  Fix Command Arguments for X11_Sprintf
9024  */
9025 static const char* apzX11_SprintfPatch[] = {
9026     "format",
9027     "#ifndef __STDC__\n\
9028 %0\n\
9029 #endif /* !defined __STDC__ */",
9030     (char*)NULL };
9031
9032
9033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9034  *
9035  *  List of all fixes
9036  */
9037 #define REGEX_COUNT          264
9038 #define MACH_LIST_SIZE_LIMIT 181
9039 #define FIX_COUNT            222
9040
9041 /*
9042  *  Enumerate the fixes
9043  */
9044 typedef enum {
9045     AAB_AIX_STDIO_FIXIDX,
9046     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9047     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9048     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9049     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9050     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9051     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9052     AAB_SUN_MEMCPY_FIXIDX,
9053     AIX_COMPLEX_FIXIDX,
9054     AIX_NET_IF_ARP_FIXIDX,
9055     AIX_ONCE_INIT_1_FIXIDX,
9056     AIX_ONCE_INIT_2_FIXIDX,
9057     AIX_PTHREAD_FIXIDX,
9058     AIX_STDINT_1_FIXIDX,
9059     AIX_STDINT_2_FIXIDX,
9060     AIX_STDINT_3_FIXIDX,
9061     AIX_STDINT_4_FIXIDX,
9062     AIX_STDINT_5_FIXIDX,
9063     AIX_SYSMACHINE_FIXIDX,
9064     AIX_SYSWAIT_2_FIXIDX,
9065     AIX_VOLATILE_FIXIDX,
9066     ALPHA___ASSERT_FIXIDX,
9067     ALPHA___EXTERN_PREFIX_FIXIDX,
9068     ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
9069     ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
9070     ALPHA_ASSERT_FIXIDX,
9071     ALPHA_BAD_LVAL_FIXIDX,
9072     ALPHA_GETOPT_FIXIDX,
9073     ALPHA_IF_SEMICOLON_FIXIDX,
9074     ALPHA_PARENS_FIXIDX,
9075     ALPHA_PTHREAD_FIXIDX,
9076     ALPHA_PTHREAD_GCC_FIXIDX,
9077     ALPHA_PTHREAD_INIT_FIXIDX,
9078     ALPHA_SBRK_FIXIDX,
9079     AVOID_BOOL_DEFINE_FIXIDX,
9080     AVOID_BOOL_TYPE_FIXIDX,
9081     AVOID_WCHAR_T_TYPE_FIXIDX,
9082     BAD_STRUCT_TERM_FIXIDX,
9083     BADQUOTE_FIXIDX,
9084     BROKEN_ASSERT_STDIO_FIXIDX,
9085     BROKEN_ASSERT_STDLIB_FIXIDX,
9086     BROKEN_CABS_FIXIDX,
9087     BROKEN_NAN_FIXIDX,
9088     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9089     CTRL_QUOTES_DEF_FIXIDX,
9090     CTRL_QUOTES_USE_FIXIDX,
9091     CXX_UNREADY_FIXIDX,
9092     DARWIN_EXTERNC_FIXIDX,
9093     DARWIN_GCC4_BREAKAGE_FIXIDX,
9094     DARWIN_PRIVATE_EXTERN_FIXIDX,
9095     DARWIN_STDINT_1_FIXIDX,
9096     DARWIN_STDINT_2_FIXIDX,
9097     DARWIN_STDINT_3_FIXIDX,
9098     DARWIN_STDINT_4_FIXIDX,
9099     DARWIN_STDINT_5_FIXIDX,
9100     DARWIN_STDINT_6_FIXIDX,
9101     DARWIN_STDINT_7_FIXIDX,
9102     DEC_INTERN_ASM_FIXIDX,
9103     DJGPP_WCHAR_H_FIXIDX,
9104     ECD_CURSOR_FIXIDX,
9105     FREEBSD_GCC3_BREAKAGE_FIXIDX,
9106     FREEBSD_GCC4_BREAKAGE_FIXIDX,
9107     GLIBC_C99_INLINE_1_FIXIDX,
9108     GLIBC_C99_INLINE_1A_FIXIDX,
9109     GLIBC_C99_INLINE_2_FIXIDX,
9110     GLIBC_C99_INLINE_3_FIXIDX,
9111     GLIBC_C99_INLINE_4_FIXIDX,
9112     GLIBC_MUTEX_INIT_FIXIDX,
9113     GLIBC_STDINT_FIXIDX,
9114     GLIBC_STRNCPY_FIXIDX,
9115     GLIBC_TGMATH_FIXIDX,
9116     GNU_TYPES_FIXIDX,
9117     HP_INLINE_FIXIDX,
9118     HP_SYSFILE_FIXIDX,
9119     HPPA_HPUX_FP_MACROS_FIXIDX,
9120     HPUX10_CPP_POW_INLINE_FIXIDX,
9121     HPUX11_CPP_POW_INLINE_FIXIDX,
9122     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9123     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9124     HPUX10_STDIO_DECLARATIONS_FIXIDX,
9125     HPUX11_ABS_FIXIDX,
9126     HPUX11_FABSF_FIXIDX,
9127     HPUX11_PTHREAD_CONST_FIXIDX,
9128     HPUX11_SIZE_T_FIXIDX,
9129     HPUX11_SNPRINTF_FIXIDX,
9130     HPUX11_VSNPRINTF_FIXIDX,
9131     HPUX8_BOGUS_INLINES_FIXIDX,
9132     HPUX_CTYPE_MACROS_FIXIDX,
9133     HPUX_HTONL_FIXIDX,
9134     HPUX_LONG_DOUBLE_FIXIDX,
9135     HPUX_LONG_DOUBLE_2_FIXIDX,
9136     HPUX_SYSTIME_FIXIDX,
9137     HPUX_SPU_INFO_FIXIDX,
9138     HPUX11_EXTERN_SENDFILE_FIXIDX,
9139     HPUX11_EXTERN_SENDPATH_FIXIDX,
9140     HPUX_EXTERN_ERRNO_FIXIDX,
9141     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9142     HPUX_C99_INTPTR_FIXIDX,
9143     HPUX_C99_INTTYPES_FIXIDX,
9144     HPUX_C99_INTTYPES2_FIXIDX,
9145     HPUX_STDINT_LEAST_FAST_FIXIDX,
9146     HPUX_INTTYPE_INT8_T_FIXIDX,
9147     HPUX_IMAGINARY_I_FIXIDX,
9148     HUGE_VAL_HEX_FIXIDX,
9149     HUGE_VALF_HEX_FIXIDX,
9150     HUGE_VALL_HEX_FIXIDX,
9151     INT_ABORT_FREE_AND_EXIT_FIXIDX,
9152     IO_QUOTES_DEF_FIXIDX,
9153     IO_QUOTES_USE_FIXIDX,
9154     IP_MISSING_SEMI_FIXIDX,
9155     IRIX___RESTRICT_FIXIDX,
9156     IRIX___GENERIC1_FIXIDX,
9157     IRIX___GENERIC2_FIXIDX,
9158     IRIX_ASM_APOSTROPHE_FIXIDX,
9159     IRIX_COMPLEX_FIXIDX,
9160     IRIX_LIMITS_CONST_FIXIDX,
9161     IRIX_PTHREAD_INIT_FIXIDX,
9162     IRIX_SOCKLEN_T_FIXIDX,
9163     IRIX_STDINT_C99_MODE_FIXIDX,
9164     IRIX_STDINT_C99_TYPES_FIXIDX,
9165     IRIX_STDINT_C99_MACROS_FIXIDX,
9166     IRIX_STDIO_VA_LIST_FIXIDX,
9167     IRIX_WCSFTIME_FIXIDX,
9168     KANDR_CONCAT_FIXIDX,
9169     LINUX_IA64_UCONTEXT_FIXIDX,
9170     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9171     LYNXOS_MISSING_PUTENV_FIXIDX,
9172     MACHINE_ANSI_H_VA_LIST_FIXIDX,
9173     MACHINE_NAME_FIXIDX,
9174     MATH_EXCEPTION_FIXIDX,
9175     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9176     NESTED_AUTH_DES_FIXIDX,
9177     NETBSD_C99_INLINE_1_FIXIDX,
9178     NETBSD_C99_INLINE_2_FIXIDX,
9179     NETBSD_EXTRA_SEMICOLON_FIXIDX,
9180     NEWLIB_STDINT_1_FIXIDX,
9181     NEWLIB_STDINT_2_FIXIDX,
9182     NEXT_MATH_PREFIX_FIXIDX,
9183     NEXT_TEMPLATE_FIXIDX,
9184     NEXT_VOLITILE_FIXIDX,
9185     NEXT_WAIT_UNION_FIXIDX,
9186     NODEENT_SYNTAX_FIXIDX,
9187     OPENBSD_NULL_DEFINITION_FIXIDX,
9188     OBSTACK_LVALUE_CAST_FIXIDX,
9189     OPENBSD_VA_START_FIXIDX,
9190     OSF_NAMESPACE_A_FIXIDX,
9191     OSF_NAMESPACE_C_FIXIDX,
9192     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9193     READ_RET_TYPE_FIXIDX,
9194     RPC_XDR_LVALUE_CAST_A_FIXIDX,
9195     RPC_XDR_LVALUE_CAST_B_FIXIDX,
9196     RS6000_DOUBLE_FIXIDX,
9197     RS6000_FCHMOD_FIXIDX,
9198     RS6000_PARAM_FIXIDX,
9199     SOLARIS___RESTRICT_FIXIDX,
9200     SOLARIS_COMPLEX_FIXIDX,
9201     SOLARIS_COMPLEX_CXX_FIXIDX,
9202     SOLARIS_COND_INIT_FIXIDX,
9203     SOLARIS_CXX_LINKAGE_FIXIDX,
9204     SOLARIS_GETC_STRICT_STDC_FIXIDX,
9205     SOLARIS_LONGJMP_NORETURN_FIXIDX,
9206     SOLARIS_MATH_1_FIXIDX,
9207     SOLARIS_MATH_2_FIXIDX,
9208     SOLARIS_MATH_3_FIXIDX,
9209     SOLARIS_MATH_4_FIXIDX,
9210     SOLARIS_MATH_8_FIXIDX,
9211     SOLARIS_MATH_9_FIXIDX,
9212     SOLARIS_MATH_10_FIXIDX,
9213     SOLARIS_MUTEX_INIT_2_FIXIDX,
9214     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9215     SOLARIS_RWLOCK_INIT_1_FIXIDX,
9216     SOLARIS_ONCE_INIT_1_FIXIDX,
9217     SOLARIS_ONCE_INIT_2_FIXIDX,
9218     SOLARIS_INT_CONST_FIXIDX,
9219     SOLARIS_INT_LIMITS_1_FIXIDX,
9220     SOLARIS_INT_LIMITS_2_FIXIDX,
9221     SOLARIS_INT_LIMITS_3_FIXIDX,
9222     SOLARIS_INT_TYPES_FIXIDX,
9223     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9224     SOLARIS_STD___FILBUF_FIXIDX,
9225     SOLARIS_STDIO_TAG_FIXIDX,
9226     SOLARIS_SYS_VA_LIST_FIXIDX,
9227     STATSSWTCH_FIXIDX,
9228     STDIO_STDARG_H_FIXIDX,
9229     STDIO_VA_LIST_FIXIDX,
9230     STDIO_VA_LIST_CLIENTS_FIXIDX,
9231     STRICT_ANSI_NOT_FIXIDX,
9232     STRICT_ANSI_NOT_CTD_FIXIDX,
9233     STRICT_ANSI_ONLY_FIXIDX,
9234     STRUCT_FILE_FIXIDX,
9235     STRUCT_SOCKADDR_FIXIDX,
9236     SUN_AUTH_PROTO_FIXIDX,
9237     SUN_BOGUS_IFDEF_FIXIDX,
9238     SUN_CATMACRO_FIXIDX,
9239     SUN_MALLOC_FIXIDX,
9240     SUN_RUSERS_SEMI_FIXIDX,
9241     SUN_SIGNAL_FIXIDX,
9242     SUNOS_STRLEN_FIXIDX,
9243     SVR4_DISABLE_OPT_FIXIDX,
9244     SVR4_GETCWD_FIXIDX,
9245     SVR4_PROFIL_FIXIDX,
9246     SVR4_SIGHANDLER_TYPE_FIXIDX,
9247     SVR4_UNDECLARED_GETRNGE_FIXIDX,
9248     SYSV68_STRING_FIXIDX,
9249     SYSZ_STDLIB_FOR_SUN_FIXIDX,
9250     THREAD_KEYWORD_FIXIDX,
9251     TINFO_CPLUSPLUS_FIXIDX,
9252     ULTRIX_CONST_FIXIDX,
9253     ULTRIX_CONST2_FIXIDX,
9254     VA_I960_MACRO_FIXIDX,
9255     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9256     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9257     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9258     VOID_NULL_FIXIDX,
9259     VXWORKS_GCC_PROBLEM_FIXIDX,
9260     VXWORKS_NEEDS_VXTYPES_FIXIDX,
9261     VXWORKS_NEEDS_VXWORKS_FIXIDX,
9262     VXWORKS_TIME_FIXIDX,
9263     X11_CLASS_FIXIDX,
9264     X11_CLASS_USAGE_FIXIDX,
9265     X11_NEW_FIXIDX,
9266     X11_SPRINTF_FIXIDX
9267 } t_fixinc_idx;
9268
9269 tFixDesc fixDescList[ FIX_COUNT ] = {
9270   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
9271      apzAab_Aix_StdioMachs,
9272      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
9274
9275   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
9276      apzAab_Darwin7_9_Long_Double_FuncsMachs,
9277      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9278      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9279
9280   {  zAab_Darwin7_9_Long_Double_Funcs_2Name,    zAab_Darwin7_9_Long_Double_Funcs_2List,
9281      apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
9282      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283      aAab_Darwin7_9_Long_Double_Funcs_2Tests,   apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
9284
9285   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
9286      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9287      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9288      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9289
9290   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
9291      apzAab_Fd_Zero_Gnu_Types_HMachs,
9292      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9293      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9294
9295   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
9296      apzAab_Fd_Zero_Selectbits_HMachs,
9297      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9298      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9299
9300   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
9301      apzAab_Solaris_Sys_Varargs_HMachs,
9302      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9303      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9304
9305   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
9306      apzAab_Sun_MemcpyMachs,
9307      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9308      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
9309
9310   {  zAix_ComplexName,    zAix_ComplexList,
9311      apzAix_ComplexMachs,
9312      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9313      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
9314
9315   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
9316      apzAix_Net_If_ArpMachs,
9317      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9318      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
9319
9320   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
9321      apzAix_Once_Init_1Machs,
9322      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9323      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
9324
9325   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
9326      apzAix_Once_Init_2Machs,
9327      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9328      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
9329
9330   {  zAix_PthreadName,    zAix_PthreadList,
9331      apzAix_PthreadMachs,
9332      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
9334
9335   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
9336      apzAix_Stdint_1Machs,
9337      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
9339
9340   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
9341      apzAix_Stdint_2Machs,
9342      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
9344
9345   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
9346      apzAix_Stdint_3Machs,
9347      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
9349
9350   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
9351      apzAix_Stdint_4Machs,
9352      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
9354
9355   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
9356      apzAix_Stdint_5Machs,
9357      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
9359
9360   {  zAix_SysmachineName,    zAix_SysmachineList,
9361      apzAix_SysmachineMachs,
9362      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
9364
9365   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
9366      apzAix_Syswait_2Machs,
9367      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
9369
9370   {  zAix_VolatileName,    zAix_VolatileList,
9371      apzAix_VolatileMachs,
9372      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
9374
9375   {  zAlpha___AssertName,    zAlpha___AssertList,
9376      apzAlpha___AssertMachs,
9377      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
9379
9380   {  zAlpha___Extern_PrefixName,    zAlpha___Extern_PrefixList,
9381      apzAlpha___Extern_PrefixMachs,
9382      ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383      aAlpha___Extern_PrefixTests,   apzAlpha___Extern_PrefixPatch, 0 },
9384
9385   {  zAlpha___Extern_Prefix_StandardsName,    zAlpha___Extern_Prefix_StandardsList,
9386      apzAlpha___Extern_Prefix_StandardsMachs,
9387      ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388      aAlpha___Extern_Prefix_StandardsTests,   apzAlpha___Extern_Prefix_StandardsPatch, 0 },
9389
9390   {  zAlpha___Extern_Prefix_Sys_StatName,    zAlpha___Extern_Prefix_Sys_StatList,
9391      apzAlpha___Extern_Prefix_Sys_StatMachs,
9392      ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393      aAlpha___Extern_Prefix_Sys_StatTests,   apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
9394
9395   {  zAlpha_AssertName,    zAlpha_AssertList,
9396      apzAlpha_AssertMachs,
9397      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
9399
9400   {  zAlpha_Bad_LvalName,    zAlpha_Bad_LvalList,
9401      apzAlpha_Bad_LvalMachs,
9402      ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
9403      aAlpha_Bad_LvalTests,   apzAlpha_Bad_LvalPatch, 0 },
9404
9405   {  zAlpha_GetoptName,    zAlpha_GetoptList,
9406      apzAlpha_GetoptMachs,
9407      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
9409
9410   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
9411      apzAlpha_If_SemicolonMachs,
9412      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
9414
9415   {  zAlpha_ParensName,    zAlpha_ParensList,
9416      apzAlpha_ParensMachs,
9417      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
9419
9420   {  zAlpha_PthreadName,    zAlpha_PthreadList,
9421      apzAlpha_PthreadMachs,
9422      ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423      aAlpha_PthreadTests,   apzAlpha_PthreadPatch, 0 },
9424
9425   {  zAlpha_Pthread_GccName,    zAlpha_Pthread_GccList,
9426      apzAlpha_Pthread_GccMachs,
9427      ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428      aAlpha_Pthread_GccTests,   apzAlpha_Pthread_GccPatch, 0 },
9429
9430   {  zAlpha_Pthread_InitName,    zAlpha_Pthread_InitList,
9431      apzAlpha_Pthread_InitMachs,
9432      ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
9433      aAlpha_Pthread_InitTests,   apzAlpha_Pthread_InitPatch, 0 },
9434
9435   {  zAlpha_SbrkName,    zAlpha_SbrkList,
9436      apzAlpha_SbrkMachs,
9437      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
9439
9440   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
9441      apzAvoid_Bool_DefineMachs,
9442      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
9444
9445   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
9446      apzAvoid_Bool_TypeMachs,
9447      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
9449
9450   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
9451      apzAvoid_Wchar_T_TypeMachs,
9452      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9453      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
9454
9455   {  zBad_Struct_TermName,    zBad_Struct_TermList,
9456      apzBad_Struct_TermMachs,
9457      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
9459
9460   {  zBadquoteName,    zBadquoteList,
9461      apzBadquoteMachs,
9462      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463      aBadquoteTests,   apzBadquotePatch, 0 },
9464
9465   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
9466      apzBroken_Assert_StdioMachs,
9467      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
9469
9470   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
9471      apzBroken_Assert_StdlibMachs,
9472      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
9474
9475   {  zBroken_CabsName,    zBroken_CabsList,
9476      apzBroken_CabsMachs,
9477      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9478      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
9479
9480   {  zBroken_NanName,    zBroken_NanList,
9481      apzBroken_NanMachs,
9482      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483      aBroken_NanTests,   apzBroken_NanPatch, 0 },
9484
9485   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
9486      apzBsd_Stdio_Attrs_ConflictMachs,
9487      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9489
9490   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
9491      apzCtrl_Quotes_DefMachs,
9492      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
9494
9495   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
9496      apzCtrl_Quotes_UseMachs,
9497      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
9499
9500   {  zCxx_UnreadyName,    zCxx_UnreadyList,
9501      apzCxx_UnreadyMachs,
9502      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
9504
9505   {  zDarwin_ExterncName,    zDarwin_ExterncList,
9506      apzDarwin_ExterncMachs,
9507      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
9509
9510   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
9511      apzDarwin_Gcc4_BreakageMachs,
9512      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
9514
9515   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
9516      apzDarwin_Private_ExternMachs,
9517      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
9519
9520   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
9521      apzDarwin_Stdint_1Machs,
9522      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
9524
9525   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
9526      apzDarwin_Stdint_2Machs,
9527      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
9529
9530   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
9531      apzDarwin_Stdint_3Machs,
9532      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
9534
9535   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
9536      apzDarwin_Stdint_4Machs,
9537      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
9539
9540   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
9541      apzDarwin_Stdint_5Machs,
9542      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
9544
9545   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
9546      apzDarwin_Stdint_6Machs,
9547      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
9549
9550   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
9551      apzDarwin_Stdint_7Machs,
9552      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
9554
9555   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9556      apzDec_Intern_AsmMachs,
9557      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9558      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9559
9560   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9561      apzDjgpp_Wchar_HMachs,
9562      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9564
9565   {  zEcd_CursorName,    zEcd_CursorList,
9566      apzEcd_CursorMachs,
9567      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9569
9570   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9571      apzFreebsd_Gcc3_BreakageMachs,
9572      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9574
9575   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9576      apzFreebsd_Gcc4_BreakageMachs,
9577      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9579
9580   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9581      apzGlibc_C99_Inline_1Machs,
9582      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9584
9585   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
9586      apzGlibc_C99_Inline_1aMachs,
9587      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
9589
9590   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9591      apzGlibc_C99_Inline_2Machs,
9592      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9593      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9594
9595   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9596      apzGlibc_C99_Inline_3Machs,
9597      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9599
9600   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9601      apzGlibc_C99_Inline_4Machs,
9602      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9604
9605   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9606      apzGlibc_Mutex_InitMachs,
9607      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9608      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9609
9610   {  zGlibc_StdintName,    zGlibc_StdintList,
9611      apzGlibc_StdintMachs,
9612      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
9614
9615   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
9616      apzGlibc_StrncpyMachs,
9617      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
9619
9620   {  zGlibc_TgmathName,    zGlibc_TgmathList,
9621      apzGlibc_TgmathMachs,
9622      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
9624
9625   {  zGnu_TypesName,    zGnu_TypesList,
9626      apzGnu_TypesMachs,
9627      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9628      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9629
9630   {  zHp_InlineName,    zHp_InlineList,
9631      apzHp_InlineMachs,
9632      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9634
9635   {  zHp_SysfileName,    zHp_SysfileList,
9636      apzHp_SysfileMachs,
9637      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
9639
9640   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
9641      apzHppa_Hpux_Fp_MacrosMachs,
9642      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
9644
9645   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
9646      apzHpux10_Cpp_Pow_InlineMachs,
9647      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
9649
9650   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
9651      apzHpux11_Cpp_Pow_InlineMachs,
9652      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
9654
9655   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
9656      apzHpux10_Ctype_Declarations1Machs,
9657      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
9659
9660   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
9661      apzHpux10_Ctype_Declarations2Machs,
9662      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
9664
9665   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
9666      apzHpux10_Stdio_DeclarationsMachs,
9667      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
9669
9670   {  zHpux11_AbsName,    zHpux11_AbsList,
9671      apzHpux11_AbsMachs,
9672      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
9674
9675   {  zHpux11_FabsfName,    zHpux11_FabsfList,
9676      apzHpux11_FabsfMachs,
9677      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
9679
9680   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
9681      apzHpux11_Pthread_ConstMachs,
9682      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
9684
9685   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9686      apzHpux11_Size_TMachs,
9687      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9689
9690   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9691      apzHpux11_SnprintfMachs,
9692      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9694
9695   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9696      apzHpux11_VsnprintfMachs,
9697      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9699
9700   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9701      apzHpux8_Bogus_InlinesMachs,
9702      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9703      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9704
9705   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9706      apzHpux_Ctype_MacrosMachs,
9707      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9709
9710   {  zHpux_HtonlName,    zHpux_HtonlList,
9711      apzHpux_HtonlMachs,
9712      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9714
9715   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9716      apzHpux_Long_DoubleMachs,
9717      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9718      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9719
9720   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
9721      apzHpux_Long_Double_2Machs,
9722      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
9724
9725   {  zHpux_SystimeName,    zHpux_SystimeList,
9726      apzHpux_SystimeMachs,
9727      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9729
9730   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9731      apzHpux_Spu_InfoMachs,
9732      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9734
9735   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9736      apzHpux11_Extern_SendfileMachs,
9737      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9739
9740   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9741      apzHpux11_Extern_SendpathMachs,
9742      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9744
9745   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9746      apzHpux_Extern_ErrnoMachs,
9747      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9749
9750   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
9751      apzHpux_Pthread_InitializersMachs,
9752      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9753      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
9754
9755   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
9756      apzHpux_C99_IntptrMachs,
9757      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9758      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
9759
9760   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
9761      apzHpux_C99_InttypesMachs,
9762      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9763      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
9764
9765   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
9766      apzHpux_C99_Inttypes2Machs,
9767      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9768      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
9769
9770   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
9771      apzHpux_Stdint_Least_FastMachs,
9772      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
9774
9775   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
9776      apzHpux_Inttype_Int8_TMachs,
9777      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
9779
9780   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
9781      apzHpux_Imaginary_IMachs,
9782      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
9784
9785   {  zHuge_Val_HexName,    zHuge_Val_HexList,
9786      apzHuge_Val_HexMachs,
9787      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
9789
9790   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
9791      apzHuge_Valf_HexMachs,
9792      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
9794
9795   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
9796      apzHuge_Vall_HexMachs,
9797      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
9799
9800   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
9801      apzInt_Abort_Free_And_ExitMachs,
9802      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
9804
9805   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
9806      apzIo_Quotes_DefMachs,
9807      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
9809
9810   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
9811      apzIo_Quotes_UseMachs,
9812      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
9814
9815   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
9816      apzIp_Missing_SemiMachs,
9817      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9818      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
9819
9820   {  zIrix___RestrictName,    zIrix___RestrictList,
9821      apzIrix___RestrictMachs,
9822      IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823      aIrix___RestrictTests,   apzIrix___RestrictPatch, 0 },
9824
9825   {  zIrix___Generic1Name,    zIrix___Generic1List,
9826      apzIrix___Generic1Machs,
9827      IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828      aIrix___Generic1Tests,   apzIrix___Generic1Patch, 0 },
9829
9830   {  zIrix___Generic2Name,    zIrix___Generic2List,
9831      apzIrix___Generic2Machs,
9832      IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833      aIrix___Generic2Tests,   apzIrix___Generic2Patch, 0 },
9834
9835   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
9836      apzIrix_Asm_ApostropheMachs,
9837      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch, 0 },
9839
9840   {  zIrix_ComplexName,    zIrix_ComplexList,
9841      apzIrix_ComplexMachs,
9842      IRIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
9843      aIrix_ComplexTests,   apzIrix_ComplexPatch, 0 },
9844
9845   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
9846      apzIrix_Limits_ConstMachs,
9847      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
9849
9850   {  zIrix_Pthread_InitName,    zIrix_Pthread_InitList,
9851      apzIrix_Pthread_InitMachs,
9852      IRIX_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853      aIrix_Pthread_InitTests,   apzIrix_Pthread_InitPatch, 0 },
9854
9855   {  zIrix_Socklen_TName,    zIrix_Socklen_TList,
9856      apzIrix_Socklen_TMachs,
9857      IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858      aIrix_Socklen_TTests,   apzIrix_Socklen_TPatch, 0 },
9859
9860   {  zIrix_Stdint_C99_ModeName,    zIrix_Stdint_C99_ModeList,
9861      apzIrix_Stdint_C99_ModeMachs,
9862      IRIX_STDINT_C99_MODE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863      aIrix_Stdint_C99_ModeTests,   apzIrix_Stdint_C99_ModePatch, 0 },
9864
9865   {  zIrix_Stdint_C99_TypesName,    zIrix_Stdint_C99_TypesList,
9866      apzIrix_Stdint_C99_TypesMachs,
9867      IRIX_STDINT_C99_TYPES_TEST_CT, FD_MACH_ONLY,
9868      aIrix_Stdint_C99_TypesTests,   apzIrix_Stdint_C99_TypesPatch, 0 },
9869
9870   {  zIrix_Stdint_C99_MacrosName,    zIrix_Stdint_C99_MacrosList,
9871      apzIrix_Stdint_C99_MacrosMachs,
9872      IRIX_STDINT_C99_MACROS_TEST_CT, FD_MACH_ONLY,
9873      aIrix_Stdint_C99_MacrosTests,   apzIrix_Stdint_C99_MacrosPatch, 0 },
9874
9875   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
9876      apzIrix_Stdio_Va_ListMachs,
9877      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9878      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
9879
9880   {  zIrix_WcsftimeName,    zIrix_WcsftimeList,
9881      apzIrix_WcsftimeMachs,
9882      IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883      aIrix_WcsftimeTests,   apzIrix_WcsftimePatch, 0 },
9884
9885   {  zKandr_ConcatName,    zKandr_ConcatList,
9886      apzKandr_ConcatMachs,
9887      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
9889
9890   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
9891      apzLinux_Ia64_UcontextMachs,
9892      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
9894
9895   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
9896      apzLynxos_No_Warning_In_Sys_Time_HMachs,
9897      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9899
9900   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
9901      apzLynxos_Missing_PutenvMachs,
9902      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
9904
9905   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
9906      apzMachine_Ansi_H_Va_ListMachs,
9907      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
9909
9910   {  zMachine_NameName,    zMachine_NameList,
9911      apzMachine_NameMachs,
9912      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913      aMachine_NameTests,   apzMachine_NamePatch, 0 },
9914
9915   {  zMath_ExceptionName,    zMath_ExceptionList,
9916      apzMath_ExceptionMachs,
9917      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9918      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
9919
9920   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
9921      apzMath_Huge_Val_From_Dbl_MaxMachs,
9922      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9923      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9924
9925   {  zNested_Auth_DesName,    zNested_Auth_DesList,
9926      apzNested_Auth_DesMachs,
9927      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
9929
9930   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
9931      apzNetbsd_C99_Inline_1Machs,
9932      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
9934
9935   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
9936      apzNetbsd_C99_Inline_2Machs,
9937      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
9939
9940   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
9941      apzNetbsd_Extra_SemicolonMachs,
9942      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
9944
9945   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
9946      apzNewlib_Stdint_1Machs,
9947      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9948      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
9949
9950   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
9951      apzNewlib_Stdint_2Machs,
9952      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9953      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
9954
9955   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
9956      apzNext_Math_PrefixMachs,
9957      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9958      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
9959
9960   {  zNext_TemplateName,    zNext_TemplateList,
9961      apzNext_TemplateMachs,
9962      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9963      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
9964
9965   {  zNext_VolitileName,    zNext_VolitileList,
9966      apzNext_VolitileMachs,
9967      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9968      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
9969
9970   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
9971      apzNext_Wait_UnionMachs,
9972      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
9974
9975   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
9976      apzNodeent_SyntaxMachs,
9977      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
9979
9980   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
9981      apzOpenbsd_Null_DefinitionMachs,
9982      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
9984
9985   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
9986      apzObstack_Lvalue_CastMachs,
9987      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
9989
9990   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
9991      apzOpenbsd_Va_StartMachs,
9992      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
9994
9995   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
9996      apzOsf_Namespace_AMachs,
9997      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
9999
10000   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
10001      apzOsf_Namespace_CMachs,
10002      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10003      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
10004
10005   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
10006      apzPthread_Incomplete_Struct_ArgumentMachs,
10007      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10008      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10009
10010   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
10011      apzRead_Ret_TypeMachs,
10012      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10013      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
10014
10015   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
10016      apzRpc_Xdr_Lvalue_Cast_AMachs,
10017      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10019
10020   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
10021      apzRpc_Xdr_Lvalue_Cast_BMachs,
10022      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10024
10025   {  zRs6000_DoubleName,    zRs6000_DoubleList,
10026      apzRs6000_DoubleMachs,
10027      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
10029
10030   {  zRs6000_FchmodName,    zRs6000_FchmodList,
10031      apzRs6000_FchmodMachs,
10032      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
10034
10035   {  zRs6000_ParamName,    zRs6000_ParamList,
10036      apzRs6000_ParamMachs,
10037      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
10039
10040   {  zSolaris___RestrictName,    zSolaris___RestrictList,
10041      apzSolaris___RestrictMachs,
10042      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
10044
10045   {  zSolaris_ComplexName,    zSolaris_ComplexList,
10046      apzSolaris_ComplexMachs,
10047      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10048      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
10049
10050   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
10051      apzSolaris_Complex_CxxMachs,
10052      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10053      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
10054
10055   {  zSolaris_Cond_InitName,    zSolaris_Cond_InitList,
10056      apzSolaris_Cond_InitMachs,
10057      SOLARIS_COND_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10058      aSolaris_Cond_InitTests,   apzSolaris_Cond_InitPatch, 0 },
10059
10060   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
10061      apzSolaris_Cxx_LinkageMachs,
10062      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10063      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
10064
10065   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
10066      apzSolaris_Getc_Strict_StdcMachs,
10067      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
10069
10070   {  zSolaris_Longjmp_NoreturnName,    zSolaris_Longjmp_NoreturnList,
10071      apzSolaris_Longjmp_NoreturnMachs,
10072      SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073      aSolaris_Longjmp_NoreturnTests,   apzSolaris_Longjmp_NoreturnPatch, 0 },
10074
10075   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
10076      apzSolaris_Math_1Machs,
10077      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
10079
10080   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
10081      apzSolaris_Math_2Machs,
10082      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10083      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
10084
10085   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
10086      apzSolaris_Math_3Machs,
10087      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
10089
10090   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
10091      apzSolaris_Math_4Machs,
10092      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
10094
10095   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
10096      apzSolaris_Math_8Machs,
10097      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
10099
10100   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
10101      apzSolaris_Math_9Machs,
10102      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10103      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
10104
10105   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
10106      apzSolaris_Math_10Machs,
10107      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10108      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
10109
10110   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
10111      apzSolaris_Mutex_Init_2Machs,
10112      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10113      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
10114
10115   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
10116      apzSolaris_Pow_Int_OverloadMachs,
10117      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10118      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
10119
10120   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
10121      apzSolaris_Rwlock_Init_1Machs,
10122      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10123      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
10124
10125   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
10126      apzSolaris_Once_Init_1Machs,
10127      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10128      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
10129
10130   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
10131      apzSolaris_Once_Init_2Machs,
10132      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
10134
10135   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
10136      apzSolaris_Int_ConstMachs,
10137      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10138      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
10139
10140   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
10141      apzSolaris_Int_Limits_1Machs,
10142      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10143      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
10144
10145   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
10146      apzSolaris_Int_Limits_2Machs,
10147      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
10149
10150   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
10151      apzSolaris_Int_Limits_3Machs,
10152      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10153      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
10154
10155   {  zSolaris_Int_TypesName,    zSolaris_Int_TypesList,
10156      apzSolaris_Int_TypesMachs,
10157      SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10158      aSolaris_Int_TypesTests,   apzSolaris_Int_TypesPatch, 0 },
10159
10160   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
10161      apzSolaris_Posix_Spawn_RestrictMachs,
10162      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10164
10165   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
10166      apzSolaris_Std___FilbufMachs,
10167      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
10169
10170   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
10171      apzSolaris_Stdio_TagMachs,
10172      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10173      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
10174
10175   {  zSolaris_Sys_Va_ListName,    zSolaris_Sys_Va_ListList,
10176      apzSolaris_Sys_Va_ListMachs,
10177      SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10178      aSolaris_Sys_Va_ListTests,   apzSolaris_Sys_Va_ListPatch, 0 },
10179
10180   {  zStatsswtchName,    zStatsswtchList,
10181      apzStatsswtchMachs,
10182      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10183      aStatsswtchTests,   apzStatsswtchPatch, 0 },
10184
10185   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
10186      apzStdio_Stdarg_HMachs,
10187      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10188      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
10189
10190   {  zStdio_Va_ListName,    zStdio_Va_ListList,
10191      apzStdio_Va_ListMachs,
10192      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10193      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
10194
10195   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
10196      apzStdio_Va_List_ClientsMachs,
10197      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10198      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
10199
10200   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
10201      apzStrict_Ansi_NotMachs,
10202      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10203      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
10204
10205   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
10206      apzStrict_Ansi_Not_CtdMachs,
10207      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
10209
10210   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
10211      apzStrict_Ansi_OnlyMachs,
10212      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
10214
10215   {  zStruct_FileName,    zStruct_FileList,
10216      apzStruct_FileMachs,
10217      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218      aStruct_FileTests,   apzStruct_FilePatch, 0 },
10219
10220   {  zStruct_SockaddrName,    zStruct_SockaddrList,
10221      apzStruct_SockaddrMachs,
10222      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
10224
10225   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
10226      apzSun_Auth_ProtoMachs,
10227      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10228      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
10229
10230   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
10231      apzSun_Bogus_IfdefMachs,
10232      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
10234
10235   {  zSun_CatmacroName,    zSun_CatmacroList,
10236      apzSun_CatmacroMachs,
10237      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10238      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
10239
10240   {  zSun_MallocName,    zSun_MallocList,
10241      apzSun_MallocMachs,
10242      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10243      aSun_MallocTests,   apzSun_MallocPatch, 0 },
10244
10245   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
10246      apzSun_Rusers_SemiMachs,
10247      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10248      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
10249
10250   {  zSun_SignalName,    zSun_SignalList,
10251      apzSun_SignalMachs,
10252      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10253      aSun_SignalTests,   apzSun_SignalPatch, 0 },
10254
10255   {  zSunos_StrlenName,    zSunos_StrlenList,
10256      apzSunos_StrlenMachs,
10257      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
10259
10260   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
10261      apzSvr4_Disable_OptMachs,
10262      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10263      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
10264
10265   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
10266      apzSvr4_GetcwdMachs,
10267      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10268      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
10269
10270   {  zSvr4_ProfilName,    zSvr4_ProfilList,
10271      apzSvr4_ProfilMachs,
10272      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
10274
10275   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
10276      apzSvr4_Sighandler_TypeMachs,
10277      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
10279
10280   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
10281      apzSvr4_Undeclared_GetrngeMachs,
10282      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10283      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
10284
10285   {  zSysv68_StringName,    zSysv68_StringList,
10286      apzSysv68_StringMachs,
10287      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10288      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
10289
10290   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
10291      apzSysz_Stdlib_For_SunMachs,
10292      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10293      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
10294
10295   {  zThread_KeywordName,    zThread_KeywordList,
10296      apzThread_KeywordMachs,
10297      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10298      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
10299
10300   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
10301      apzTinfo_CplusplusMachs,
10302      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10303      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
10304
10305   {  zUltrix_ConstName,    zUltrix_ConstList,
10306      apzUltrix_ConstMachs,
10307      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10308      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
10309
10310   {  zUltrix_Const2Name,    zUltrix_Const2List,
10311      apzUltrix_Const2Machs,
10312      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10313      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
10314
10315   {  zVa_I960_MacroName,    zVa_I960_MacroList,
10316      apzVa_I960_MacroMachs,
10317      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10318      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
10319
10320   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
10321      apzVms_Define_Can_Use_Extern_PrefixMachs,
10322      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10323      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10324
10325   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
10326      apzVms_Use_Pragma_Extern_ModelMachs,
10327      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10328      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10329
10330   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
10331      apzVms_Disable_Decc_String_BuiltinsMachs,
10332      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10333      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10334
10335   {  zVoid_NullName,    zVoid_NullList,
10336      apzVoid_NullMachs,
10337      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10338      aVoid_NullTests,   apzVoid_NullPatch, 0 },
10339
10340   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
10341      apzVxworks_Gcc_ProblemMachs,
10342      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10343      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
10344
10345   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
10346      apzVxworks_Needs_VxtypesMachs,
10347      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10348      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
10349
10350   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
10351      apzVxworks_Needs_VxworksMachs,
10352      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10353      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
10354
10355   {  zVxworks_TimeName,    zVxworks_TimeList,
10356      apzVxworks_TimeMachs,
10357      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10358      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
10359
10360   {  zX11_ClassName,    zX11_ClassList,
10361      apzX11_ClassMachs,
10362      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10363      aX11_ClassTests,   apzX11_ClassPatch, 0 },
10364
10365   {  zX11_Class_UsageName,    zX11_Class_UsageList,
10366      apzX11_Class_UsageMachs,
10367      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10368      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
10369
10370   {  zX11_NewName,    zX11_NewList,
10371      apzX11_NewMachs,
10372      X11_NEW_TEST_CT, FD_MACH_ONLY,
10373      aX11_NewTests,   apzX11_NewPatch, 0 },
10374
10375   {  zX11_SprintfName,    zX11_SprintfList,
10376      apzX11_SprintfMachs,
10377      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10378      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }
10379 };