OSDN Git Service

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