OSDN Git Service

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