OSDN Git Service

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