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