OSDN Git Service

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