OSDN Git Service

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