OSDN Git Service

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