OSDN Git Service

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