OSDN Git Service

2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / fixincludes / fixincl.x
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  Friday March  7, 2008 at 07:37:21 AM CET
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Fr 7. Mär 07:37:22 CET 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 213 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
276 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  2
277 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
278   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
279   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, };
280
281 /*
282  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
283  */
284 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
285 "/* This file fixes a bug in the __FD_ZERO macro\n\
286    for older versions of the Linux kernel. */\n\
287 #ifndef _POSIX_TYPES_H_WRAPPER\n\
288 #include <features.h>\n\
289  #include_next <asm/posix_types.h>\n\n\
290 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
291 #undef __FD_ZERO\n\
292 #define __FD_ZERO(fdsetp) \\\n\
293   do { \\\n\
294     int __d0, __d1; \\\n\
295 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
296 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
297 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
298   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
299   } while (0)\n\
300 #endif\n\n\
301 #define _POSIX_TYPES_H_WRAPPER\n\
302 #endif /* _POSIX_TYPES_H_WRAPPER */",
303     (char*)NULL };
304
305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
306  *
307  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
308  */
309 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
310      "AAB_fd_zero_gnu_types_h";
311
312 /*
313  *  File name selection pattern
314  */
315 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
316   "gnu/types.h\0";
317 /*
318  *  Machine/OS name selection pattern
319  */
320 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
321         "i[34567]86-*-linux*",
322         (const char*)NULL };
323 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
324 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
325
326 /*
327  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
328  */
329 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
330 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
331 #ifndef _TYPES_H_WRAPPER\n\
332 #include <features.h>\n\
333 #include_next <gnu/types.h>\n\n\
334 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
335 #undef __FD_ZERO\n\
336 # define __FD_ZERO(fdsetp) \\\n\
337   do { \\\n\
338     int __d0, __d1; \\\n\
339         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
340         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
341         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
342           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
343   } while (0)\n\
344 #endif\n\n\
345 #define _TYPES_H_WRAPPER\n\
346 #endif /* _TYPES_H_WRAPPER */",
347     (char*)NULL };
348
349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
350  *
351  *  Description of Aab_Fd_Zero_Selectbits_H fix
352  */
353 tSCC zAab_Fd_Zero_Selectbits_HName[] =
354      "AAB_fd_zero_selectbits_h";
355
356 /*
357  *  File name selection pattern
358  */
359 tSCC zAab_Fd_Zero_Selectbits_HList[] =
360   "selectbits.h\0";
361 /*
362  *  Machine/OS name selection pattern
363  */
364 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
365         "i[34567]86-*-linux*",
366         (const char*)NULL };
367 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
368 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
369
370 /*
371  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
372  */
373 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
374 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
375 #ifndef _SELECTBITS_H_WRAPPER\n\
376   #include <features.h>\n\
377   #include_next <selectbits.h>\n\n\
378   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
379   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
380   && __GLIBC_MINOR__ == 0\n\
381      #undef __FD_ZERO\n\
382      #define __FD_ZERO(fdsetp) \\\\\n\
383      do { \\\\\n\
384         int __d0, __d1; \\\\\n\
385       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
386                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
387                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
388                                         / sizeof (__fd_mask)), \\\\\n\
389                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
390                         : \"memory\"); \\\\\n\
391       } while (0)\n\
392   #endif\n\n\
393   #define _SELECTBITS_H_WRAPPER\n\
394 #endif /* _SELECTBITS_H_WRAPPER */",
395     (char*)NULL };
396
397 /* * * * * * * * * * * * * * * * * * * * * * * * * *
398  *
399  *  Description of Aab_Solaris_Sys_Varargs_H fix
400  */
401 tSCC zAab_Solaris_Sys_Varargs_HName[] =
402      "AAB_solaris_sys_varargs_h";
403
404 /*
405  *  File name selection pattern
406  */
407 tSCC zAab_Solaris_Sys_Varargs_HList[] =
408   "sys/varargs.h\0";
409 /*
410  *  Machine/OS name selection pattern
411  */
412 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
413         "*-*-solaris*",
414         (const char*)NULL };
415 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
416 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
417
418 /*
419  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
420  */
421 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
422 "#ifdef __STDC__\n\
423   #include <stdarg.h>\n\
424 #else\n\
425   #include <varargs.h>\n\
426 #endif",
427     (char*)NULL };
428
429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
430  *
431  *  Description of Aab_Sun_Memcpy fix
432  */
433 tSCC zAab_Sun_MemcpyName[] =
434      "AAB_sun_memcpy";
435
436 /*
437  *  File name selection pattern
438  */
439 tSCC zAab_Sun_MemcpyList[] =
440   "memory.h\0";
441 /*
442  *  Machine/OS name selection pattern
443  */
444 #define apzAab_Sun_MemcpyMachs (const char**)NULL
445
446 /*
447  *  content selection pattern - do fix if pattern found
448  */
449 tSCC zAab_Sun_MemcpySelect0[] =
450        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
451
452 #define    AAB_SUN_MEMCPY_TEST_CT  1
453 static tTestDesc aAab_Sun_MemcpyTests[] = {
454   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
455
456 /*
457  *  Fix Command Arguments for Aab_Sun_Memcpy
458  */
459 static const char* apzAab_Sun_MemcpyPatch[] = {
460 "/* This file was generated by fixincludes */\n\
461 #ifndef __memory_h__\n\
462   #define __memory_h__\n\n\
463   #ifdef __STDC__\n\
464     extern void *memccpy();\n\
465     extern void *memchr();\n\
466     extern void *memcpy();\n\
467     extern void *memset();\n\
468   #else\n\
469     extern char *memccpy();\n\
470     extern char *memchr();\n\
471     extern char *memcpy();\n\
472     extern char *memset();\n\
473   #endif /* __STDC__ */\n\n\
474   extern int memcmp();\n\n\
475 #endif /* __memory_h__ */\n\
476 _EndOfHeader;\n\
477 };\n\n\n\
478 /*\n\
479  *  Completely replace <sys/varargs.h> with a file that includes gcc's\n\
480  *  stdarg.h or varargs.h files as appropriate.\n\
481  */\n\
482 #ifdef SVR4\n\
483 fix = {\n\
484     hackname = AAB_svr4_no_varargs;\n\
485     files    = sys/varargs.h;\n\
486     replace  = \"/* This file was generated by fixincludes.  */\\n\"\n\
487                \"#ifndef _SYS_VARARGS_H\\n\"\n\
488                \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
489                \"#ifdef __STDC__\\n\"\n\
490                \"#include <stdarg.h>\\n\"\n\
491                \"#else\\n\"\n\
492                \"#include <varargs.h>\\n\"\n\
493                \"#endif\\n\\n\"\n\n\
494                \"#endif  /* _SYS_VARARGS_H */\\n\";\n\
495 };\n\
496 #endif\n\n\n\
497 /*\n\
498  *  Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
499  *  optimized byteswapping.  (The original probably implemented some\n\
500  *  incompatible optimized byteswapping.)\n\
501  */\n\
502 fix = {\n\
503     hackname = AAB_svr4_replace_byteorder;\n\
504     mach     = \"*-*-sysv4*\";\n\
505     mach     = \"i[34567]86-*-sysv5*\";\n\
506     mach     = \"i[34567]86-*-sco3.2v5*\";\n\
507     mach     = \"i[34567]86-*-udk*\";\n\
508     mach     = \"i[34567]86-*-solaris2.[0-4]\";\n\
509     mach     = \"powerpcle-*-solaris2.[0-4]\";\n\
510     mach     = \"sparc-*-solaris2.[0-4]\";\n\
511     mach     = \"i[34567]86-sequent-ptx*\";\n\
512     files    = sys/byteorder.h;\n\
513     replace  = <<-  _EndOfHeader_\n\
514 #ifndef _SYS_BYTEORDER_H\n\
515 #define _SYS_BYTEORDER_H\n\n\
516 /* Functions to convert `short' and `long' quantities from host byte order\n\
517    to (internet) network byte order (i.e. big-endian).\n\n\
518    Written by Ron Guilmette (rfg@ncd.com).\n\n\
519    This isn't actually used by GCC.  It is installed by fixinc.svr4.\n\n\
520    For big-endian machines these functions are essentially no-ops.\n\n\
521    For little-endian machines, we define the functions using specialized\n\
522    asm sequences in cases where doing so yields better code (e.g. i386).  */\n\n\
523 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
524   #error You lose!  This file is only useful with GNU compilers.\n\
525 #endif\n\n\
526 #ifndef __BYTE_ORDER__\n\
527   /* Byte order defines.  These are as defined on UnixWare 1.1, but with\n\
528      double underscores added at the front and back.  */\n\
529   #define __LITTLE_ENDIAN__   1234\n\
530   #define __BIG_ENDIAN__      4321\n\
531   #define __PDP_ENDIAN__      3412\n\
532 #endif\n\n\
533 #ifdef __STDC__\n\
534   static __inline__ unsigned long htonl (unsigned long);\n\
535   static __inline__ unsigned short htons (unsigned int);\n\
536   static __inline__ unsigned long ntohl (unsigned long);\n\
537   static __inline__ unsigned short ntohs (unsigned int);\n\
538 #endif /* defined (__STDC__) */\n\n\
539 #if defined (__i386__)\n\n\
540   #ifndef __BYTE_ORDER__\n\
541     #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
542   #endif\n\n\
543   /* Convert a host long to a network long.  */\n\n\
544   /* We must use a new-style function definition, so that this will also\n\
545      be valid for C++.  */\n\
546   static __inline__ unsigned long\n\
547   htonl (unsigned long __arg)\n\
548   {\n\
549     register unsigned long __result;\n\n\
550     __asm__ (\"xchg%B0 %b0,%h0\n\
551   ror%L0 $16,%0\n\
552   xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
553     return __result;\n\
554   }\n\n\
555   /* Convert a host short to a network short.  */\n\n\
556   static __inline__ unsigned short\n\
557   htons (unsigned int __arg)\n\
558   {\n\
559     register unsigned short __result;\n\n\
560     __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
561     return __result;\n\
562   }\n\n\
563 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
564   #ifndef __BYTE_ORDER__\n\
565     #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
566   #endif\n\n\
567   /* For other little-endian machines, using C code is just as efficient as\n\
568      using assembly code.  */\n\n\
569   /* Convert a host long to a network long.  */\n\n\
570   static __inline__ unsigned long\n\
571   htonl (unsigned long __arg)\n\
572   {\n\
573     register unsigned long __result;\n\n\
574     __result = (__arg >> 24) & 0x000000ff;\n\
575     __result |= (__arg >> 8) & 0x0000ff00;\n\
576     __result |= (__arg << 8) & 0x00ff0000;\n\
577     __result |= (__arg << 24) & 0xff000000;\n\
578     return __result;\n\
579   }\n\n\
580   /* Convert a host short to a network short.  */\n\n\
581   static __inline__ unsigned short\n\
582   htons (unsigned int __arg)\n\
583   {\n\
584     register unsigned short __result;\n\n\
585     __result = (__arg << 8) & 0xff00;\n\
586     __result |= (__arg >> 8) & 0x00ff;\n\
587     return __result;\n\
588   }\n\n\
589 #else /* must be a big-endian machine */\n\n\
590   #ifndef __BYTE_ORDER__\n\
591     #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
592   #endif\n\n\
593   /* Convert a host long to a network long.  */\n\n\
594   static __inline__ unsigned long\n\
595   htonl (unsigned long __arg)\n\
596   {\n\
597     return __arg;\n\
598   }\n\n\
599   /* Convert a host short to a network short.  */\n\n\
600   static __inline__ unsigned short\n\
601   htons (unsigned int __arg)\n\
602   {\n\
603     return __arg;\n\
604   }\n\n\
605 #endif /* big-endian */\n\n\
606 /* Convert a network long to a host long.  */\n\n\
607 static __inline__ unsigned long\n\
608 ntohl (unsigned long __arg)\n\
609 {\n\
610   return htonl (__arg);\n\
611 }\n\n\
612 /* Convert a network short to a host short.  */\n\n\
613 static __inline__ unsigned short\n\
614 ntohs (unsigned int __arg)\n\
615 {\n\
616   return htons (__arg);\n\
617 }\n\
618 #endif",
619     (char*)NULL };
620
621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
622  *
623  *  Description of Aab_Ultrix_Ansi_Compat fix
624  */
625 tSCC zAab_Ultrix_Ansi_CompatName[] =
626      "AAB_ultrix_ansi_compat";
627
628 /*
629  *  File name selection pattern
630  */
631 tSCC zAab_Ultrix_Ansi_CompatList[] =
632   "ansi_compat.h\0";
633 /*
634  *  Machine/OS name selection pattern
635  */
636 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
637
638 /*
639  *  content selection pattern - do fix if pattern found
640  */
641 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
642        "ULTRIX";
643
644 #define    AAB_ULTRIX_ANSI_COMPAT_TEST_CT  1
645 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
646   { TT_EGREP,    zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
647
648 /*
649  *  Fix Command Arguments for Aab_Ultrix_Ansi_Compat
650  */
651 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
652 "/* This file intentionally left blank.  */\n",
653     (char*)NULL };
654
655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
656  *
657  *  Description of Aab_Ultrix_Limits fix
658  */
659 tSCC zAab_Ultrix_LimitsName[] =
660      "AAB_ultrix_limits";
661
662 /*
663  *  File name selection pattern
664  */
665 tSCC zAab_Ultrix_LimitsList[] =
666   "limits.h\0";
667 /*
668  *  Machine/OS name selection pattern
669  */
670 tSCC* apzAab_Ultrix_LimitsMachs[] = {
671         "*-*-ultrix4.3",
672         (const char*)NULL };
673 #define AAB_ULTRIX_LIMITS_TEST_CT  0
674 #define aAab_Ultrix_LimitsTests   (tTestDesc*)NULL
675
676 /*
677  *  Fix Command Arguments for Aab_Ultrix_Limits
678  */
679 static const char* apzAab_Ultrix_LimitsPatch[] = {
680 "#ifndef _LIMITS_INCLUDED\n\
681   #define _LIMITS_INCLUDED\n\
682   #include <sys/limits.h>\n\
683 #endif /* _LIMITS_INCLUDED */",
684     (char*)NULL };
685
686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
687  *
688  *  Description of Aab_Ultrix_Memory fix
689  */
690 tSCC zAab_Ultrix_MemoryName[] =
691      "AAB_ultrix_memory";
692
693 /*
694  *  File name selection pattern
695  */
696 tSCC zAab_Ultrix_MemoryList[] =
697   "memory.h\0";
698 /*
699  *  Machine/OS name selection pattern
700  */
701 tSCC* apzAab_Ultrix_MemoryMachs[] = {
702         "*-*-ultrix4.3",
703         (const char*)NULL };
704 #define AAB_ULTRIX_MEMORY_TEST_CT  0
705 #define aAab_Ultrix_MemoryTests   (tTestDesc*)NULL
706
707 /*
708  *  Fix Command Arguments for Aab_Ultrix_Memory
709  */
710 static const char* apzAab_Ultrix_MemoryPatch[] = {
711 "#ifndef _MEMORY_INCLUDED\n\
712   #define _MEMORY_INCLUDED\n\
713   #include <strings.h>\n\
714 #endif /* _MEMORY_INCLUDED */",
715     (char*)NULL };
716
717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
718  *
719  *  Description of Aab_Ultrix_String fix
720  */
721 tSCC zAab_Ultrix_StringName[] =
722      "AAB_ultrix_string";
723
724 /*
725  *  File name selection pattern
726  */
727 tSCC zAab_Ultrix_StringList[] =
728   "string.h\0";
729 /*
730  *  Machine/OS name selection pattern
731  */
732 tSCC* apzAab_Ultrix_StringMachs[] = {
733         "*-*-ultrix4.3",
734         (const char*)NULL };
735 #define AAB_ULTRIX_STRING_TEST_CT  0
736 #define aAab_Ultrix_StringTests   (tTestDesc*)NULL
737
738 /*
739  *  Fix Command Arguments for Aab_Ultrix_String
740  */
741 static const char* apzAab_Ultrix_StringPatch[] = {
742 "#ifndef _STRING_INCLUDED\n\
743   #define _STRING_INCLUDED\n\
744   #include <strings.h>\n\
745 #endif /* _STRING_INCLUDED */",
746     (char*)NULL };
747
748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
749  *
750  *  Description of Aix_Pthread fix
751  */
752 tSCC zAix_PthreadName[] =
753      "aix_pthread";
754
755 /*
756  *  File name selection pattern
757  */
758 tSCC zAix_PthreadList[] =
759   "pthread.h\0";
760 /*
761  *  Machine/OS name selection pattern
762  */
763 #define apzAix_PthreadMachs (const char**)NULL
764
765 /*
766  *  content selection pattern - do fix if pattern found
767  */
768 tSCC zAix_PthreadSelect0[] =
769        "(#define [A-Za-z_0-9]+)(\\\\\n\
770 [^A-Za-z_0-9 \t\n\
771 (])";
772
773 #define    AIX_PTHREAD_TEST_CT  1
774 static tTestDesc aAix_PthreadTests[] = {
775   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
776
777 /*
778  *  Fix Command Arguments for Aix_Pthread
779  */
780 static const char* apzAix_PthreadPatch[] = {
781     "format",
782     "%1 %2",
783     (char*)NULL };
784
785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
786  *
787  *  Description of Aix_Sysmachine fix
788  */
789 tSCC zAix_SysmachineName[] =
790      "aix_sysmachine";
791
792 /*
793  *  File name selection pattern
794  */
795 tSCC zAix_SysmachineList[] =
796   "sys/machine.h\0";
797 /*
798  *  Machine/OS name selection pattern
799  */
800 #define apzAix_SysmachineMachs (const char**)NULL
801
802 /*
803  *  content selection pattern - do fix if pattern found
804  */
805 tSCC zAix_SysmachineSelect0[] =
806        "\\\\ +\n";
807
808 #define    AIX_SYSMACHINE_TEST_CT  1
809 static tTestDesc aAix_SysmachineTests[] = {
810   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
811
812 /*
813  *  Fix Command Arguments for Aix_Sysmachine
814  */
815 static const char* apzAix_SysmachinePatch[] = {
816     "format",
817     "\\\n",
818     (char*)NULL };
819
820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
821  *
822  *  Description of Aix_Syswait fix
823  */
824 tSCC zAix_SyswaitName[] =
825      "aix_syswait";
826
827 /*
828  *  File name selection pattern
829  */
830 tSCC zAix_SyswaitList[] =
831   "sys/wait.h\0";
832 /*
833  *  Machine/OS name selection pattern
834  */
835 #define apzAix_SyswaitMachs (const char**)NULL
836
837 /*
838  *  content selection pattern - do fix if pattern found
839  */
840 tSCC zAix_SyswaitSelect0[] =
841        "^extern pid_t wait3\\(\\);\n";
842 tSCC zAix_SyswaitSelect1[] =
843        "bos325,";
844
845 #define    AIX_SYSWAIT_TEST_CT  2
846 static tTestDesc aAix_SyswaitTests[] = {
847   { TT_EGREP,    zAix_SyswaitSelect0, (regex_t*)NULL },
848   { TT_EGREP,    zAix_SyswaitSelect1, (regex_t*)NULL }, };
849
850 /*
851  *  Fix Command Arguments for Aix_Syswait
852  */
853 static const char* apzAix_SyswaitPatch[] = {
854     "format",
855     "struct rusage;\n\
856 %0",
857     (char*)NULL };
858
859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
860  *
861  *  Description of Aix_Syswait_2 fix
862  */
863 tSCC zAix_Syswait_2Name[] =
864      "aix_syswait_2";
865
866 /*
867  *  File name selection pattern
868  */
869 tSCC zAix_Syswait_2List[] =
870   "sys/wait.h\0";
871 /*
872  *  Machine/OS name selection pattern
873  */
874 #define apzAix_Syswait_2Machs (const char**)NULL
875
876 /*
877  *  content selection pattern - do fix if pattern found
878  */
879 tSCC zAix_Syswait_2Select0[] =
880        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
881
882 #define    AIX_SYSWAIT_2_TEST_CT  1
883 static tTestDesc aAix_Syswait_2Tests[] = {
884   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
885
886 /*
887  *  Fix Command Arguments for Aix_Syswait_2
888  */
889 static const char* apzAix_Syswait_2Patch[] = {
890     "format",
891     "? (int)%1",
892     (char*)NULL };
893
894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
895  *
896  *  Description of Aix_Volatile fix
897  */
898 tSCC zAix_VolatileName[] =
899      "aix_volatile";
900
901 /*
902  *  File name selection pattern
903  */
904 tSCC zAix_VolatileList[] =
905   "sys/signal.h\0";
906 /*
907  *  Machine/OS name selection pattern
908  */
909 #define apzAix_VolatileMachs (const char**)NULL
910
911 /*
912  *  content selection pattern - do fix if pattern found
913  */
914 tSCC zAix_VolatileSelect0[] =
915        "typedef volatile int sig_atomic_t";
916
917 #define    AIX_VOLATILE_TEST_CT  1
918 static tTestDesc aAix_VolatileTests[] = {
919   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
920
921 /*
922  *  Fix Command Arguments for Aix_Volatile
923  */
924 static const char* apzAix_VolatilePatch[] = {
925     "format",
926     "typedef int sig_atomic_t",
927     (char*)NULL };
928
929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
930  *
931  *  Description of Alpha___Assert fix
932  */
933 tSCC zAlpha___AssertName[] =
934      "alpha___assert";
935
936 /*
937  *  File name selection pattern
938  */
939 tSCC zAlpha___AssertList[] =
940   "assert.h\0";
941 /*
942  *  Machine/OS name selection pattern
943  */
944 #define apzAlpha___AssertMachs (const char**)NULL
945
946 /*
947  *  content selection pattern - do fix if pattern found
948  */
949 tSCC zAlpha___AssertSelect0[] =
950        "__assert\\(char \\*, char \\*, int\\)";
951
952 #define    ALPHA___ASSERT_TEST_CT  1
953 static tTestDesc aAlpha___AssertTests[] = {
954   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
955
956 /*
957  *  Fix Command Arguments for Alpha___Assert
958  */
959 static const char* apzAlpha___AssertPatch[] = {
960     "format",
961     "__assert(const char *, const char *, int)",
962     (char*)NULL };
963
964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
965  *
966  *  Description of Alpha___Extern_Prefix fix
967  */
968 tSCC zAlpha___Extern_PrefixName[] =
969      "alpha___extern_prefix";
970
971 /*
972  *  File name selection pattern
973  */
974 #define zAlpha___Extern_PrefixList (char*)NULL
975 /*
976  *  Machine/OS name selection pattern
977  */
978 tSCC* apzAlpha___Extern_PrefixMachs[] = {
979         "alpha*-dec-osf*",
980         (const char*)NULL };
981
982 /*
983  *  content selection pattern - do fix if pattern found
984  */
985 tSCC zAlpha___Extern_PrefixSelect0[] =
986        "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
987 (#[ \t]*pragma[ \t]*extern_prefix.*)";
988
989 #define    ALPHA___EXTERN_PREFIX_TEST_CT  1
990 static tTestDesc aAlpha___Extern_PrefixTests[] = {
991   { TT_EGREP,    zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
992
993 /*
994  *  Fix Command Arguments for Alpha___Extern_Prefix
995  */
996 static const char* apzAlpha___Extern_PrefixPatch[] = {
997     "format",
998     "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
999 %3",
1000     (char*)NULL };
1001
1002 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1003  *
1004  *  Description of Alpha___Extern_Prefix_Standards fix
1005  */
1006 tSCC zAlpha___Extern_Prefix_StandardsName[] =
1007      "alpha___extern_prefix_standards";
1008
1009 /*
1010  *  File name selection pattern
1011  */
1012 tSCC zAlpha___Extern_Prefix_StandardsList[] =
1013   "standards.h\0";
1014 /*
1015  *  Machine/OS name selection pattern
1016  */
1017 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
1018         "alpha*-dec-osf*",
1019         (const char*)NULL };
1020
1021 /*
1022  *  content selection pattern - do fix if pattern found
1023  */
1024 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
1025        ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
1026
1027 #define    ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT  1
1028 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
1029   { TT_EGREP,    zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
1030
1031 /*
1032  *  Fix Command Arguments for Alpha___Extern_Prefix_Standards
1033  */
1034 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
1035     "format",
1036     "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
1037     (char*)NULL };
1038
1039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1040  *
1041  *  Description of Alpha___Extern_Prefix_Sys_Stat fix
1042  */
1043 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
1044      "alpha___extern_prefix_sys_stat";
1045
1046 /*
1047  *  File name selection pattern
1048  */
1049 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
1050   "sys/stat.h\0sys/mount.h\0";
1051 /*
1052  *  Machine/OS name selection pattern
1053  */
1054 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1055         "alpha*-dec-osf5*",
1056         (const char*)NULL };
1057
1058 /*
1059  *  content selection pattern - do fix if pattern found
1060  */
1061 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1062        "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1063
1064 #define    ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT  1
1065 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1066   { TT_EGREP,    zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1067
1068 /*
1069  *  Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1070  */
1071 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1072     "format",
1073     "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1074     (char*)NULL };
1075
1076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1077  *
1078  *  Description of Alpha_Assert fix
1079  */
1080 tSCC zAlpha_AssertName[] =
1081      "alpha_assert";
1082
1083 /*
1084  *  File name selection pattern
1085  */
1086 tSCC zAlpha_AssertList[] =
1087   "assert.h\0";
1088 /*
1089  *  Machine/OS name selection pattern
1090  */
1091 #define apzAlpha_AssertMachs (const char**)NULL
1092
1093 /*
1094  *  content selection pattern - do fix if pattern found
1095  */
1096 tSCC zAlpha_AssertSelect0[] =
1097        "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1098
1099 #define    ALPHA_ASSERT_TEST_CT  1
1100 static tTestDesc aAlpha_AssertTests[] = {
1101   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1102
1103 /*
1104  *  Fix Command Arguments for Alpha_Assert
1105  */
1106 static const char* apzAlpha_AssertPatch[] = {
1107     "format",
1108     "%1(EX)",
1109     (char*)NULL };
1110
1111 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1112  *
1113  *  Description of Alpha_Bad_Lval fix
1114  */
1115 tSCC zAlpha_Bad_LvalName[] =
1116      "alpha_bad_lval";
1117
1118 /*
1119  *  File name selection pattern
1120  */
1121 #define zAlpha_Bad_LvalList (char*)NULL
1122 /*
1123  *  Machine/OS name selection pattern
1124  */
1125 tSCC* apzAlpha_Bad_LvalMachs[] = {
1126         "alpha*-dec-osf*",
1127         (const char*)NULL };
1128
1129 /*
1130  *  content selection pattern - do fix if pattern found
1131  */
1132 tSCC zAlpha_Bad_LvalSelect0[] =
1133        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1134
1135 #define    ALPHA_BAD_LVAL_TEST_CT  1
1136 static tTestDesc aAlpha_Bad_LvalTests[] = {
1137   { TT_EGREP,    zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1138
1139 /*
1140  *  Fix Command Arguments for Alpha_Bad_Lval
1141  */
1142 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1143     "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1144     (char*)NULL };
1145
1146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1147  *
1148  *  Description of Alpha_Getopt fix
1149  */
1150 tSCC zAlpha_GetoptName[] =
1151      "alpha_getopt";
1152
1153 /*
1154  *  File name selection pattern
1155  */
1156 tSCC zAlpha_GetoptList[] =
1157   "stdio.h\0stdlib.h\0";
1158 /*
1159  *  Machine/OS name selection pattern
1160  */
1161 #define apzAlpha_GetoptMachs (const char**)NULL
1162
1163 /*
1164  *  content selection pattern - do fix if pattern found
1165  */
1166 tSCC zAlpha_GetoptSelect0[] =
1167        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1168
1169 #define    ALPHA_GETOPT_TEST_CT  1
1170 static tTestDesc aAlpha_GetoptTests[] = {
1171   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1172
1173 /*
1174  *  Fix Command Arguments for Alpha_Getopt
1175  */
1176 static const char* apzAlpha_GetoptPatch[] = {
1177     "format",
1178     "getopt(int, char *const[], const char *)",
1179     (char*)NULL };
1180
1181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1182  *
1183  *  Description of Alpha_Parens fix
1184  */
1185 tSCC zAlpha_ParensName[] =
1186      "alpha_parens";
1187
1188 /*
1189  *  File name selection pattern
1190  */
1191 tSCC zAlpha_ParensList[] =
1192   "sym.h\0";
1193 /*
1194  *  Machine/OS name selection pattern
1195  */
1196 #define apzAlpha_ParensMachs (const char**)NULL
1197
1198 /*
1199  *  content selection pattern - do fix if pattern found
1200  */
1201 tSCC zAlpha_ParensSelect0[] =
1202        "#ifndef\\(__mips64\\)";
1203
1204 #define    ALPHA_PARENS_TEST_CT  1
1205 static tTestDesc aAlpha_ParensTests[] = {
1206   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1207
1208 /*
1209  *  Fix Command Arguments for Alpha_Parens
1210  */
1211 static const char* apzAlpha_ParensPatch[] = {
1212     "format",
1213     "#ifndef __mips64",
1214     (char*)NULL };
1215
1216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1217  *
1218  *  Description of Alpha_Pthread fix
1219  */
1220 tSCC zAlpha_PthreadName[] =
1221      "alpha_pthread";
1222
1223 /*
1224  *  File name selection pattern
1225  */
1226 tSCC zAlpha_PthreadList[] =
1227   "pthread.h\0";
1228 /*
1229  *  Machine/OS name selection pattern
1230  */
1231 tSCC* apzAlpha_PthreadMachs[] = {
1232         "alpha*-dec-osf*",
1233         (const char*)NULL };
1234
1235 /*
1236  *  content selection pattern - do fix if pattern found
1237  */
1238 tSCC zAlpha_PthreadSelect0[] =
1239        "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1240 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1241
1242 #define    ALPHA_PTHREAD_TEST_CT  1
1243 static tTestDesc aAlpha_PthreadTests[] = {
1244   { TT_EGREP,    zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1245
1246 /*
1247  *  Fix Command Arguments for Alpha_Pthread
1248  */
1249 static const char* apzAlpha_PthreadPatch[] = {
1250     "format",
1251     "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1252 %5",
1253     (char*)NULL };
1254
1255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1256  *
1257  *  Description of Alpha_Pthread_Gcc fix
1258  */
1259 tSCC zAlpha_Pthread_GccName[] =
1260      "alpha_pthread_gcc";
1261
1262 /*
1263  *  File name selection pattern
1264  */
1265 tSCC zAlpha_Pthread_GccList[] =
1266   "pthread.h\0";
1267 /*
1268  *  Machine/OS name selection pattern
1269  */
1270 tSCC* apzAlpha_Pthread_GccMachs[] = {
1271         "alpha*-dec-osf*",
1272         (const char*)NULL };
1273
1274 /*
1275  *  content selection pattern - do fix if pattern found
1276  */
1277 tSCC zAlpha_Pthread_GccSelect0[] =
1278        "#else\n\
1279 # error <pthread.h>: unrecognized compiler.";
1280
1281 #define    ALPHA_PTHREAD_GCC_TEST_CT  1
1282 static tTestDesc aAlpha_Pthread_GccTests[] = {
1283   { TT_EGREP,    zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1284
1285 /*
1286  *  Fix Command Arguments for Alpha_Pthread_Gcc
1287  */
1288 static const char* apzAlpha_Pthread_GccPatch[] = {
1289     "format",
1290     "#elif defined (__GNUC__)\n\
1291 # define _PTHREAD_ENV_GCC\n\
1292 %0",
1293     (char*)NULL };
1294
1295 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1296  *
1297  *  Description of Alpha_Pthread_Init fix
1298  */
1299 tSCC zAlpha_Pthread_InitName[] =
1300      "alpha_pthread_init";
1301
1302 /*
1303  *  File name selection pattern
1304  */
1305 tSCC zAlpha_Pthread_InitList[] =
1306   "pthread.h\0";
1307 /*
1308  *  Machine/OS name selection pattern
1309  */
1310 tSCC* apzAlpha_Pthread_InitMachs[] = {
1311         "alpha*-dec-osf*",
1312         (const char*)NULL };
1313
1314 /*
1315  *  content selection pattern - do fix if pattern found
1316  */
1317 tSCC zAlpha_Pthread_InitSelect0[] =
1318        " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1319
1320 #define    ALPHA_PTHREAD_INIT_TEST_CT  1
1321 static tTestDesc aAlpha_Pthread_InitTests[] = {
1322   { TT_EGREP,    zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1323
1324 /*
1325  *  Fix Command Arguments for Alpha_Pthread_Init
1326  */
1327 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1328     "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1329 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1330 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1331 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1332 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1333 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1334     (char*)NULL };
1335
1336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1337  *
1338  *  Description of Alpha_Sbrk fix
1339  */
1340 tSCC zAlpha_SbrkName[] =
1341      "alpha_sbrk";
1342
1343 /*
1344  *  File name selection pattern
1345  */
1346 tSCC zAlpha_SbrkList[] =
1347   "unistd.h\0";
1348 /*
1349  *  Machine/OS name selection pattern
1350  */
1351 #define apzAlpha_SbrkMachs (const char**)NULL
1352
1353 /*
1354  *  content selection pattern - do fix if pattern found
1355  */
1356 tSCC zAlpha_SbrkSelect0[] =
1357        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1358
1359 #define    ALPHA_SBRK_TEST_CT  1
1360 static tTestDesc aAlpha_SbrkTests[] = {
1361   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1362
1363 /*
1364  *  Fix Command Arguments for Alpha_Sbrk
1365  */
1366 static const char* apzAlpha_SbrkPatch[] = {
1367     "format",
1368     "void *sbrk(",
1369     (char*)NULL };
1370
1371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1372  *
1373  *  Description of Alpha_Wchar fix
1374  */
1375 tSCC zAlpha_WcharName[] =
1376      "alpha_wchar";
1377
1378 /*
1379  *  File name selection pattern
1380  */
1381 tSCC zAlpha_WcharList[] =
1382   "wchar.h\0";
1383 /*
1384  *  Machine/OS name selection pattern
1385  */
1386 tSCC* apzAlpha_WcharMachs[] = {
1387         "alpha*-dec-osf4*",
1388         (const char*)NULL };
1389
1390 /*
1391  *  content selection pattern - do fix if pattern found
1392  */
1393 tSCC zAlpha_WcharSelect0[] =
1394        "#define wcstok wcstok_r";
1395
1396 #define    ALPHA_WCHAR_TEST_CT  1
1397 static tTestDesc aAlpha_WcharTests[] = {
1398   { TT_EGREP,    zAlpha_WcharSelect0, (regex_t*)NULL }, };
1399
1400 /*
1401  *  Fix Command Arguments for Alpha_Wchar
1402  */
1403 static const char* apzAlpha_WcharPatch[] = { "sed",
1404     "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1405     "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t   wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1406     (char*)NULL };
1407
1408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1409  *
1410  *  Description of Avoid_Bool_Define fix
1411  */
1412 tSCC zAvoid_Bool_DefineName[] =
1413      "avoid_bool_define";
1414
1415 /*
1416  *  File name selection pattern
1417  */
1418 tSCC zAvoid_Bool_DefineList[] =
1419   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1420 /*
1421  *  Machine/OS name selection pattern
1422  */
1423 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1424
1425 /*
1426  *  content selection pattern - do fix if pattern found
1427  */
1428 tSCC zAvoid_Bool_DefineSelect0[] =
1429        "#[ \t]*define[ \t]+bool[ \t]";
1430
1431 /*
1432  *  content bypass pattern - skip fix if pattern found
1433  */
1434 tSCC zAvoid_Bool_DefineBypass0[] =
1435        "__cplusplus";
1436
1437 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1438 static tTestDesc aAvoid_Bool_DefineTests[] = {
1439   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1440   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1441
1442 /*
1443  *  Fix Command Arguments for Avoid_Bool_Define
1444  */
1445 static const char* apzAvoid_Bool_DefinePatch[] = {
1446     "format",
1447     "#ifndef __cplusplus\n\
1448 %0\n\
1449 #endif",
1450     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1451     (char*)NULL };
1452
1453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1454  *
1455  *  Description of Avoid_Bool_Type fix
1456  */
1457 tSCC zAvoid_Bool_TypeName[] =
1458      "avoid_bool_type";
1459
1460 /*
1461  *  File name selection pattern
1462  */
1463 tSCC zAvoid_Bool_TypeList[] =
1464   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1465 /*
1466  *  Machine/OS name selection pattern
1467  */
1468 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1469
1470 /*
1471  *  content selection pattern - do fix if pattern found
1472  */
1473 tSCC zAvoid_Bool_TypeSelect0[] =
1474        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1475
1476 /*
1477  *  content bypass pattern - skip fix if pattern found
1478  */
1479 tSCC zAvoid_Bool_TypeBypass0[] =
1480        "__cplusplus";
1481
1482 #define    AVOID_BOOL_TYPE_TEST_CT  2
1483 static tTestDesc aAvoid_Bool_TypeTests[] = {
1484   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1485   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1486
1487 /*
1488  *  Fix Command Arguments for Avoid_Bool_Type
1489  */
1490 static const char* apzAvoid_Bool_TypePatch[] = {
1491     "format",
1492     "#ifndef __cplusplus\n\
1493 %0\n\
1494 #endif",
1495     (char*)NULL };
1496
1497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1498  *
1499  *  Description of Avoid_Wchar_T_Type fix
1500  */
1501 tSCC zAvoid_Wchar_T_TypeName[] =
1502      "avoid_wchar_t_type";
1503
1504 /*
1505  *  File name selection pattern
1506  */
1507 #define zAvoid_Wchar_T_TypeList (char*)NULL
1508 /*
1509  *  Machine/OS name selection pattern
1510  */
1511 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1512
1513 /*
1514  *  content selection pattern - do fix if pattern found
1515  */
1516 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1517        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1518
1519 /*
1520  *  content bypass pattern - skip fix if pattern found
1521  */
1522 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1523        "__cplusplus";
1524 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1525        "_LINUX_NLS_H";
1526 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1527        "XFree86: xc/lib/X11/Xlib\\.h";
1528
1529 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1530 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1531   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1532   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1533   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1534   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1535
1536 /*
1537  *  Fix Command Arguments for Avoid_Wchar_T_Type
1538  */
1539 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1540     "format",
1541     "#ifndef __cplusplus\n\
1542 %0\n\
1543 #endif",
1544     (char*)NULL };
1545
1546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1547  *
1548  *  Description of Bad_Struct_Term fix
1549  */
1550 tSCC zBad_Struct_TermName[] =
1551      "bad_struct_term";
1552
1553 /*
1554  *  File name selection pattern
1555  */
1556 tSCC zBad_Struct_TermList[] =
1557   "curses.h\0";
1558 /*
1559  *  Machine/OS name selection pattern
1560  */
1561 #define apzBad_Struct_TermMachs (const char**)NULL
1562
1563 /*
1564  *  content selection pattern - do fix if pattern found
1565  */
1566 tSCC zBad_Struct_TermSelect0[] =
1567        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1568
1569 #define    BAD_STRUCT_TERM_TEST_CT  1
1570 static tTestDesc aBad_Struct_TermTests[] = {
1571   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1572
1573 /*
1574  *  Fix Command Arguments for Bad_Struct_Term
1575  */
1576 static const char* apzBad_Struct_TermPatch[] = {
1577     "format",
1578     "struct term;",
1579     (char*)NULL };
1580
1581 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1582  *
1583  *  Description of Badquote fix
1584  */
1585 tSCC zBadquoteName[] =
1586      "badquote";
1587
1588 /*
1589  *  File name selection pattern
1590  */
1591 tSCC zBadquoteList[] =
1592   "sundev/vuid_event.h\0";
1593 /*
1594  *  Machine/OS name selection pattern
1595  */
1596 #define apzBadquoteMachs (const char**)NULL
1597
1598 /*
1599  *  content selection pattern - do fix if pattern found
1600  */
1601 tSCC zBadquoteSelect0[] =
1602        "doesn't";
1603
1604 #define    BADQUOTE_TEST_CT  1
1605 static tTestDesc aBadquoteTests[] = {
1606   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1607
1608 /*
1609  *  Fix Command Arguments for Badquote
1610  */
1611 static const char* apzBadquotePatch[] = {
1612     "format",
1613     "does not",
1614     (char*)NULL };
1615
1616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1617  *
1618  *  Description of Broken_Assert_Stdio fix
1619  */
1620 tSCC zBroken_Assert_StdioName[] =
1621      "broken_assert_stdio";
1622
1623 /*
1624  *  File name selection pattern
1625  */
1626 tSCC zBroken_Assert_StdioList[] =
1627   "assert.h\0";
1628 /*
1629  *  Machine/OS name selection pattern
1630  */
1631 #define apzBroken_Assert_StdioMachs (const char**)NULL
1632
1633 /*
1634  *  content selection pattern - do fix if pattern found
1635  */
1636 tSCC zBroken_Assert_StdioSelect0[] =
1637        "stderr";
1638
1639 /*
1640  *  content bypass pattern - skip fix if pattern found
1641  */
1642 tSCC zBroken_Assert_StdioBypass0[] =
1643        "include.*stdio\\.h";
1644
1645 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1646 static tTestDesc aBroken_Assert_StdioTests[] = {
1647   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1648   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1649
1650 /*
1651  *  Fix Command Arguments for Broken_Assert_Stdio
1652  */
1653 static const char* apzBroken_Assert_StdioPatch[] = {
1654     "wrap",
1655     "#include <stdio.h>\n",
1656     (char*)NULL };
1657
1658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1659  *
1660  *  Description of Broken_Assert_Stdlib fix
1661  */
1662 tSCC zBroken_Assert_StdlibName[] =
1663      "broken_assert_stdlib";
1664
1665 /*
1666  *  File name selection pattern
1667  */
1668 tSCC zBroken_Assert_StdlibList[] =
1669   "assert.h\0";
1670 /*
1671  *  Machine/OS name selection pattern
1672  */
1673 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1674
1675 /*
1676  *  content selection pattern - do fix if pattern found
1677  */
1678 tSCC zBroken_Assert_StdlibSelect0[] =
1679        "exit *\\(|abort *\\(";
1680
1681 /*
1682  *  content bypass pattern - skip fix if pattern found
1683  */
1684 tSCC zBroken_Assert_StdlibBypass0[] =
1685        "include.*stdlib\\.h";
1686
1687 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1688 static tTestDesc aBroken_Assert_StdlibTests[] = {
1689   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1690   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1691
1692 /*
1693  *  Fix Command Arguments for Broken_Assert_Stdlib
1694  */
1695 static const char* apzBroken_Assert_StdlibPatch[] = {
1696     "wrap",
1697     "#ifdef __cplusplus\n\
1698 #include <stdlib.h>\n\
1699 #endif\n",
1700     (char*)NULL };
1701
1702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1703  *
1704  *  Description of Broken_Cabs fix
1705  */
1706 tSCC zBroken_CabsName[] =
1707      "broken_cabs";
1708
1709 /*
1710  *  File name selection pattern
1711  */
1712 tSCC zBroken_CabsList[] =
1713   "math.h\0architecture/*/math.h\0";
1714 /*
1715  *  Machine/OS name selection pattern
1716  */
1717 #define apzBroken_CabsMachs (const char**)NULL
1718
1719 /*
1720  *  content selection pattern - do fix if pattern found
1721  */
1722 tSCC zBroken_CabsSelect0[] =
1723        "^extern[ \t]+double[ \t]+cabs";
1724
1725 #define    BROKEN_CABS_TEST_CT  1
1726 static tTestDesc aBroken_CabsTests[] = {
1727   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1728
1729 /*
1730  *  Fix Command Arguments for Broken_Cabs
1731  */
1732 static const char* apzBroken_CabsPatch[] = { "sed",
1733     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1734     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1735     (char*)NULL };
1736
1737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1738  *
1739  *  Description of Broken_Nan fix
1740  */
1741 tSCC zBroken_NanName[] =
1742      "broken_nan";
1743
1744 /*
1745  *  File name selection pattern
1746  */
1747 tSCC zBroken_NanList[] =
1748   "architecture/ppc/math.h\0architecture/*/math.h\0";
1749 /*
1750  *  Machine/OS name selection pattern
1751  */
1752 #define apzBroken_NanMachs (const char**)NULL
1753
1754 /*
1755  *  content selection pattern - do fix if pattern found
1756  */
1757 tSCC zBroken_NanSelect0[] =
1758        "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1759
1760 /*
1761  *  content bypass pattern - skip fix if pattern found
1762  */
1763 tSCC zBroken_NanBypass0[] =
1764        "powl";
1765
1766 #define    BROKEN_NAN_TEST_CT  2
1767 static tTestDesc aBroken_NanTests[] = {
1768   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
1769   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
1770
1771 /*
1772  *  Fix Command Arguments for Broken_Nan
1773  */
1774 static const char* apzBroken_NanPatch[] = {
1775     "format",
1776     "#if 1",
1777     (char*)NULL };
1778
1779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1780  *
1781  *  Description of Bsd_Stdio_Attrs_Conflict fix
1782  */
1783 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1784      "bsd_stdio_attrs_conflict";
1785
1786 /*
1787  *  File name selection pattern
1788  */
1789 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1790   "stdio.h\0";
1791 /*
1792  *  Machine/OS name selection pattern
1793  */
1794 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1795         "*-*-*bsd*",
1796         "*-*-*darwin*",
1797         (const char*)NULL };
1798
1799 /*
1800  *  content selection pattern - do fix if pattern found
1801  */
1802 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1803        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1804
1805 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
1806 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1807   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1808
1809 /*
1810  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1811  */
1812 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1813     "format",
1814     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1815 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1816 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1817     (char*)NULL };
1818
1819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1820  *
1821  *  Description of Ctrl_Quotes_Def fix
1822  */
1823 tSCC zCtrl_Quotes_DefName[] =
1824      "ctrl_quotes_def";
1825
1826 /*
1827  *  File name selection pattern
1828  */
1829 #define zCtrl_Quotes_DefList (char*)NULL
1830 /*
1831  *  Machine/OS name selection pattern
1832  */
1833 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1834
1835 /*
1836  *  content selection pattern - do fix if pattern found
1837  */
1838 tSCC zCtrl_Quotes_DefSelect0[] =
1839        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1840
1841 #define    CTRL_QUOTES_DEF_TEST_CT  1
1842 static tTestDesc aCtrl_Quotes_DefTests[] = {
1843   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1844
1845 /*
1846  *  Fix Command Arguments for Ctrl_Quotes_Def
1847  */
1848 static const char* apzCtrl_Quotes_DefPatch[] = {
1849     "char_macro_def",
1850     "CTRL",
1851     (char*)NULL };
1852
1853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1854  *
1855  *  Description of Ctrl_Quotes_Use fix
1856  */
1857 tSCC zCtrl_Quotes_UseName[] =
1858      "ctrl_quotes_use";
1859
1860 /*
1861  *  File name selection pattern
1862  */
1863 #define zCtrl_Quotes_UseList (char*)NULL
1864 /*
1865  *  Machine/OS name selection pattern
1866  */
1867 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1868
1869 /*
1870  *  content selection pattern - do fix if pattern found
1871  */
1872 tSCC zCtrl_Quotes_UseSelect0[] =
1873        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1874
1875 #define    CTRL_QUOTES_USE_TEST_CT  1
1876 static tTestDesc aCtrl_Quotes_UseTests[] = {
1877   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1878
1879 /*
1880  *  Fix Command Arguments for Ctrl_Quotes_Use
1881  */
1882 static const char* apzCtrl_Quotes_UsePatch[] = {
1883     "char_macro_use",
1884     "CTRL",
1885     (char*)NULL };
1886
1887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1888  *
1889  *  Description of Cxx_Unready fix
1890  */
1891 tSCC zCxx_UnreadyName[] =
1892      "cxx_unready";
1893
1894 /*
1895  *  File name selection pattern
1896  */
1897 tSCC zCxx_UnreadyList[] =
1898   "sys/mman.h\0rpc/types.h\0";
1899 /*
1900  *  Machine/OS name selection pattern
1901  */
1902 #define apzCxx_UnreadyMachs (const char**)NULL
1903
1904 /*
1905  *  content selection pattern - do fix if pattern found
1906  */
1907 tSCC zCxx_UnreadySelect0[] =
1908        "[^#]+malloc.*;";
1909
1910 /*
1911  *  content bypass pattern - skip fix if pattern found
1912  */
1913 tSCC zCxx_UnreadyBypass0[] =
1914        "\"C\"|__BEGIN_DECLS";
1915
1916 #define    CXX_UNREADY_TEST_CT  2
1917 static tTestDesc aCxx_UnreadyTests[] = {
1918   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1919   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1920
1921 /*
1922  *  Fix Command Arguments for Cxx_Unready
1923  */
1924 static const char* apzCxx_UnreadyPatch[] = {
1925     "wrap",
1926     "#ifdef __cplusplus\n\
1927 extern \"C\" {\n\
1928 #endif\n",
1929     "#ifdef __cplusplus\n\
1930 }\n\
1931 #endif\n",
1932     (char*)NULL };
1933
1934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1935  *
1936  *  Description of Darwin_Externc fix
1937  */
1938 tSCC zDarwin_ExterncName[] =
1939      "darwin_externc";
1940
1941 /*
1942  *  File name selection pattern
1943  */
1944 tSCC zDarwin_ExterncList[] =
1945   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1946 /*
1947  *  Machine/OS name selection pattern
1948  */
1949 tSCC* apzDarwin_ExterncMachs[] = {
1950         "*-*-darwin*",
1951         (const char*)NULL };
1952
1953 /*
1954  *  content bypass pattern - skip fix if pattern found
1955  */
1956 tSCC zDarwin_ExterncBypass0[] =
1957        "extern \"C\"";
1958 tSCC zDarwin_ExterncBypass1[] =
1959        "__BEGIN_DECLS";
1960
1961 #define    DARWIN_EXTERNC_TEST_CT  2
1962 static tTestDesc aDarwin_ExterncTests[] = {
1963   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
1964   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1965
1966 /*
1967  *  Fix Command Arguments for Darwin_Externc
1968  */
1969 static const char* apzDarwin_ExterncPatch[] = {
1970     "wrap",
1971     "#ifdef __cplusplus\n\
1972 extern \"C\" {\n\
1973 #endif\n",
1974     "#ifdef __cplusplus\n\
1975 }\n\
1976 #endif\n",
1977     (char*)NULL };
1978
1979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1980  *
1981  *  Description of Darwin_Gcc4_Breakage fix
1982  */
1983 tSCC zDarwin_Gcc4_BreakageName[] =
1984      "darwin_gcc4_breakage";
1985
1986 /*
1987  *  File name selection pattern
1988  */
1989 tSCC zDarwin_Gcc4_BreakageList[] =
1990   "AvailabilityMacros.h\0";
1991 /*
1992  *  Machine/OS name selection pattern
1993  */
1994 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1995         "*-*-darwin*",
1996         (const char*)NULL };
1997
1998 /*
1999  *  content selection pattern - do fix if pattern found
2000  */
2001 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2002        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2003
2004 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2005 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2006   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2007
2008 /*
2009  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2010  */
2011 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2012     "format",
2013     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2014     (char*)NULL };
2015
2016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2017  *
2018  *  Description of Darwin_Private_Extern fix
2019  */
2020 tSCC zDarwin_Private_ExternName[] =
2021      "darwin_private_extern";
2022
2023 /*
2024  *  File name selection pattern
2025  */
2026 tSCC zDarwin_Private_ExternList[] =
2027   "mach-o/dyld.h\0";
2028 /*
2029  *  Machine/OS name selection pattern
2030  */
2031 tSCC* apzDarwin_Private_ExternMachs[] = {
2032         "*-*-darwin*",
2033         (const char*)NULL };
2034
2035 /*
2036  *  content selection pattern - do fix if pattern found
2037  */
2038 tSCC zDarwin_Private_ExternSelect0[] =
2039        "__private_extern__ [a-z_]+ _dyld_";
2040
2041 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2042 static tTestDesc aDarwin_Private_ExternTests[] = {
2043   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2044
2045 /*
2046  *  Fix Command Arguments for Darwin_Private_Extern
2047  */
2048 static const char* apzDarwin_Private_ExternPatch[] = {
2049     "format",
2050     "extern",
2051     "__private_extern__",
2052     (char*)NULL };
2053
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2055  *
2056  *  Description of Dec_Intern_Asm fix
2057  */
2058 tSCC zDec_Intern_AsmName[] =
2059      "dec_intern_asm";
2060
2061 /*
2062  *  File name selection pattern
2063  */
2064 tSCC zDec_Intern_AsmList[] =
2065   "c_asm.h\0";
2066 /*
2067  *  Machine/OS name selection pattern
2068  */
2069 #define apzDec_Intern_AsmMachs (const char**)NULL
2070 #define DEC_INTERN_ASM_TEST_CT  0
2071 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2072
2073 /*
2074  *  Fix Command Arguments for Dec_Intern_Asm
2075  */
2076 static const char* apzDec_Intern_AsmPatch[] = { "sed",
2077     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2078 #ifdef __DECC\n",
2079     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2080 #endif\n",
2081     (char*)NULL };
2082
2083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2084  *
2085  *  Description of Djgpp_Wchar_H fix
2086  */
2087 tSCC zDjgpp_Wchar_HName[] =
2088      "djgpp_wchar_h";
2089
2090 /*
2091  *  File name selection pattern
2092  */
2093 #define zDjgpp_Wchar_HList (char*)NULL
2094 /*
2095  *  Machine/OS name selection pattern
2096  */
2097 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2098
2099 /*
2100  *  content selection pattern - do fix if pattern found
2101  */
2102 tSCC zDjgpp_Wchar_HSelect0[] =
2103        "__DJ_wint_t";
2104
2105 /*
2106  *  content bypass pattern - skip fix if pattern found
2107  */
2108 tSCC zDjgpp_Wchar_HBypass0[] =
2109        "sys/djtypes.h";
2110
2111 #define    DJGPP_WCHAR_H_TEST_CT  2
2112 static tTestDesc aDjgpp_Wchar_HTests[] = {
2113   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2114   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2115
2116 /*
2117  *  Fix Command Arguments for Djgpp_Wchar_H
2118  */
2119 static const char* apzDjgpp_Wchar_HPatch[] = {
2120     "format",
2121     "%0\n\
2122 #include <sys/djtypes.h>",
2123     "#include <stddef.h>",
2124     (char*)NULL };
2125
2126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2127  *
2128  *  Description of Ecd_Cursor fix
2129  */
2130 tSCC zEcd_CursorName[] =
2131      "ecd_cursor";
2132
2133 /*
2134  *  File name selection pattern
2135  */
2136 tSCC zEcd_CursorList[] =
2137   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2138 /*
2139  *  Machine/OS name selection pattern
2140  */
2141 #define apzEcd_CursorMachs (const char**)NULL
2142
2143 /*
2144  *  content selection pattern - do fix if pattern found
2145  */
2146 tSCC zEcd_CursorSelect0[] =
2147        "ecd\\.cursor";
2148
2149 #define    ECD_CURSOR_TEST_CT  1
2150 static tTestDesc aEcd_CursorTests[] = {
2151   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2152
2153 /*
2154  *  Fix Command Arguments for Ecd_Cursor
2155  */
2156 static const char* apzEcd_CursorPatch[] = {
2157     "format",
2158     "ecd_cursor",
2159     (char*)NULL };
2160
2161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2162  *
2163  *  Description of Exception_Structure fix
2164  */
2165 tSCC zException_StructureName[] =
2166      "exception_structure";
2167
2168 /*
2169  *  File name selection pattern
2170  */
2171 tSCC zException_StructureList[] =
2172   "math.h\0";
2173 /*
2174  *  Machine/OS name selection pattern
2175  */
2176 #define apzException_StructureMachs (const char**)NULL
2177
2178 /*
2179  *  content selection pattern - do fix if pattern found
2180  */
2181 tSCC zException_StructureSelect0[] =
2182        "matherr";
2183
2184 /*
2185  *  content bypass pattern - skip fix if pattern found
2186  */
2187 tSCC zException_StructureBypass0[] =
2188        "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2189
2190 #define    EXCEPTION_STRUCTURE_TEST_CT  2
2191 static tTestDesc aException_StructureTests[] = {
2192   { TT_NEGREP,   zException_StructureBypass0, (regex_t*)NULL },
2193   { TT_EGREP,    zException_StructureSelect0, (regex_t*)NULL }, };
2194
2195 /*
2196  *  Fix Command Arguments for Exception_Structure
2197  */
2198 static const char* apzException_StructurePatch[] = {
2199     "wrap",
2200     "struct exception;\n",
2201     (char*)NULL };
2202
2203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2204  *
2205  *  Description of Freebsd_Gcc3_Breakage fix
2206  */
2207 tSCC zFreebsd_Gcc3_BreakageName[] =
2208      "freebsd_gcc3_breakage";
2209
2210 /*
2211  *  File name selection pattern
2212  */
2213 tSCC zFreebsd_Gcc3_BreakageList[] =
2214   "sys/cdefs.h\0";
2215 /*
2216  *  Machine/OS name selection pattern
2217  */
2218 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2219         "*-*-freebsd*",
2220         (const char*)NULL };
2221
2222 /*
2223  *  content selection pattern - do fix if pattern found
2224  */
2225 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2226        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2227
2228 /*
2229  *  content bypass pattern - skip fix if pattern found
2230  */
2231 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2232        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2233
2234 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2235 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2236   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2237   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2238
2239 /*
2240  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2241  */
2242 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2243     "format",
2244     "%0 || __GNUC__ >= 3",
2245     (char*)NULL };
2246
2247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2248  *
2249  *  Description of Freebsd_Gcc4_Breakage fix
2250  */
2251 tSCC zFreebsd_Gcc4_BreakageName[] =
2252      "freebsd_gcc4_breakage";
2253
2254 /*
2255  *  File name selection pattern
2256  */
2257 tSCC zFreebsd_Gcc4_BreakageList[] =
2258   "sys/cdefs.h\0";
2259 /*
2260  *  Machine/OS name selection pattern
2261  */
2262 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2263         "*-*-freebsd*",
2264         (const char*)NULL };
2265
2266 /*
2267  *  content selection pattern - do fix if pattern found
2268  */
2269 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2270        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2271
2272 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2273 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2274   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2275
2276 /*
2277  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2278  */
2279 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2280     "format",
2281     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2282     (char*)NULL };
2283
2284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2285  *
2286  *  Description of Glibc_C99_Inline_1 fix
2287  */
2288 tSCC zGlibc_C99_Inline_1Name[] =
2289      "glibc_c99_inline_1";
2290
2291 /*
2292  *  File name selection pattern
2293  */
2294 tSCC zGlibc_C99_Inline_1List[] =
2295   "features.h\0*/features.h\0";
2296 /*
2297  *  Machine/OS name selection pattern
2298  */
2299 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2300
2301 /*
2302  *  content selection pattern - do fix if pattern found
2303  */
2304 tSCC zGlibc_C99_Inline_1Select0[] =
2305        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2306
2307 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2308 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2309   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2310
2311 /*
2312  *  Fix Command Arguments for Glibc_C99_Inline_1
2313  */
2314 static const char* apzGlibc_C99_Inline_1Patch[] = {
2315     "format",
2316     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2317     (char*)NULL };
2318
2319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2320  *
2321  *  Description of Glibc_C99_Inline_1a fix
2322  */
2323 tSCC zGlibc_C99_Inline_1aName[] =
2324      "glibc_c99_inline_1a";
2325
2326 /*
2327  *  File name selection pattern
2328  */
2329 tSCC zGlibc_C99_Inline_1aList[] =
2330   "features.h\0*/features.h\0";
2331 /*
2332  *  Machine/OS name selection pattern
2333  */
2334 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2335
2336 /*
2337  *  content selection pattern - do fix if pattern found
2338  */
2339 tSCC zGlibc_C99_Inline_1aSelect0[] =
2340        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2341 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2342
2343 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
2344 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2345   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2346
2347 /*
2348  *  Fix Command Arguments for Glibc_C99_Inline_1a
2349  */
2350 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2351     "format",
2352     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2353 %2",
2354     (char*)NULL };
2355
2356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2357  *
2358  *  Description of Glibc_C99_Inline_2 fix
2359  */
2360 tSCC zGlibc_C99_Inline_2Name[] =
2361      "glibc_c99_inline_2";
2362
2363 /*
2364  *  File name selection pattern
2365  */
2366 tSCC zGlibc_C99_Inline_2List[] =
2367   "sys/stat.h\0*/sys/stat.h\0";
2368 /*
2369  *  Machine/OS name selection pattern
2370  */
2371 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2372
2373 /*
2374  *  content selection pattern - do fix if pattern found
2375  */
2376 tSCC zGlibc_C99_Inline_2Select0[] =
2377        "extern __inline__ int";
2378
2379 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2380 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2381   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2382
2383 /*
2384  *  Fix Command Arguments for Glibc_C99_Inline_2
2385  */
2386 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2387     "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2388 extern\\\n\
2389 #endif\\\n\
2390 __inline__ int \\1/",
2391     "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2392 extern\\\n\
2393 #endif\\\n\
2394 __inline__ int __REDIRECT\\1 (\\2/",
2395     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2396 extern\\\n\
2397 #endif\\\n\
2398 __inline__ int/",
2399     (char*)NULL };
2400
2401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2402  *
2403  *  Description of Glibc_C99_Inline_3 fix
2404  */
2405 tSCC zGlibc_C99_Inline_3Name[] =
2406      "glibc_c99_inline_3";
2407
2408 /*
2409  *  File name selection pattern
2410  */
2411 tSCC zGlibc_C99_Inline_3List[] =
2412   "bits/string2.h\0*/bits/string2.h\0";
2413 /*
2414  *  Machine/OS name selection pattern
2415  */
2416 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2417
2418 /*
2419  *  content selection pattern - do fix if pattern found
2420  */
2421 tSCC zGlibc_C99_Inline_3Select0[] =
2422        "extern __inline";
2423
2424 /*
2425  *  content bypass pattern - skip fix if pattern found
2426  */
2427 tSCC zGlibc_C99_Inline_3Bypass0[] =
2428        "__extern_inline|__GNU_STDC_INLINE__";
2429
2430 #define    GLIBC_C99_INLINE_3_TEST_CT  2
2431 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2432   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2433   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2434
2435 /*
2436  *  Fix Command Arguments for Glibc_C99_Inline_3
2437  */
2438 static const char* apzGlibc_C99_Inline_3Patch[] = {
2439     "format",
2440     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2441     "^# ifdef __cplusplus$",
2442     (char*)NULL };
2443
2444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2445  *
2446  *  Description of Glibc_C99_Inline_4 fix
2447  */
2448 tSCC zGlibc_C99_Inline_4Name[] =
2449      "glibc_c99_inline_4";
2450
2451 /*
2452  *  File name selection pattern
2453  */
2454 tSCC zGlibc_C99_Inline_4List[] =
2455   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2456 /*
2457  *  Machine/OS name selection pattern
2458  */
2459 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2460
2461 /*
2462  *  content selection pattern - do fix if pattern found
2463  */
2464 tSCC zGlibc_C99_Inline_4Select0[] =
2465        "(^| )extern __inline";
2466
2467 /*
2468  *  content bypass pattern - skip fix if pattern found
2469  */
2470 tSCC zGlibc_C99_Inline_4Bypass0[] =
2471        "__extern_inline|__gnu_inline__";
2472
2473 #define    GLIBC_C99_INLINE_4_TEST_CT  2
2474 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2475   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2476   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2477
2478 /*
2479  *  Fix Command Arguments for Glibc_C99_Inline_4
2480  */
2481 static const char* apzGlibc_C99_Inline_4Patch[] = {
2482     "format",
2483     "%0 __attribute__ ((__gnu_inline__))",
2484     (char*)NULL };
2485
2486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2487  *
2488  *  Description of Glibc_Mutex_Init fix
2489  */
2490 tSCC zGlibc_Mutex_InitName[] =
2491      "glibc_mutex_init";
2492
2493 /*
2494  *  File name selection pattern
2495  */
2496 tSCC zGlibc_Mutex_InitList[] =
2497   "pthread.h\0";
2498 /*
2499  *  Machine/OS name selection pattern
2500  */
2501 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2502
2503 /*
2504  *  content selection pattern - do fix if pattern found
2505  */
2506 tSCC zGlibc_Mutex_InitSelect0[] =
2507        "\\{ *\\{ *0, *\\} *\\}";
2508
2509 #define    GLIBC_MUTEX_INIT_TEST_CT  1
2510 static tTestDesc aGlibc_Mutex_InitTests[] = {
2511   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2512
2513 /*
2514  *  Fix Command Arguments for Glibc_Mutex_Init
2515  */
2516 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2517     "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2518     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2519     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2520     "-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/",
2521     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2522     "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2523     (char*)NULL };
2524
2525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2526  *
2527  *  Description of Gnu_Types fix
2528  */
2529 tSCC zGnu_TypesName[] =
2530      "gnu_types";
2531
2532 /*
2533  *  File name selection pattern
2534  */
2535 tSCC zGnu_TypesList[] =
2536   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2537 /*
2538  *  Machine/OS name selection pattern
2539  */
2540 tSCC* apzGnu_TypesMachs[] = {
2541         "*-*-solaris2.1[0-9]*",
2542         (const char*)NULL };
2543
2544 /*
2545  *  content selection pattern - do fix if pattern found
2546  */
2547 tSCC zGnu_TypesSelect0[] =
2548        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2549
2550 /*
2551  *  content bypass pattern - skip fix if pattern found
2552  */
2553 tSCC zGnu_TypesBypass0[] =
2554        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2555
2556 #define    GNU_TYPES_TEST_CT  2
2557 static tTestDesc aGnu_TypesTests[] = {
2558   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
2559   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
2560
2561 /*
2562  *  Fix Command Arguments for Gnu_Types
2563  */
2564 static const char* apzGnu_TypesPatch[] = {
2565     "gnu_type",
2566     (char*)NULL };
2567
2568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2569  *
2570  *  Description of Hp_Inline fix
2571  */
2572 tSCC zHp_InlineName[] =
2573      "hp_inline";
2574
2575 /*
2576  *  File name selection pattern
2577  */
2578 tSCC zHp_InlineList[] =
2579   "sys/spinlock.h\0machine/machparam.h\0";
2580 /*
2581  *  Machine/OS name selection pattern
2582  */
2583 #define apzHp_InlineMachs (const char**)NULL
2584
2585 /*
2586  *  content selection pattern - do fix if pattern found
2587  */
2588 tSCC zHp_InlineSelect0[] =
2589        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2590
2591 #define    HP_INLINE_TEST_CT  1
2592 static tTestDesc aHp_InlineTests[] = {
2593   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
2594
2595 /*
2596  *  Fix Command Arguments for Hp_Inline
2597  */
2598 static const char* apzHp_InlinePatch[] = {
2599     "format",
2600     "%1<machine/%2.h>",
2601     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2602     (char*)NULL };
2603
2604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2605  *
2606  *  Description of Hp_Sysfile fix
2607  */
2608 tSCC zHp_SysfileName[] =
2609      "hp_sysfile";
2610
2611 /*
2612  *  File name selection pattern
2613  */
2614 tSCC zHp_SysfileList[] =
2615   "sys/file.h\0";
2616 /*
2617  *  Machine/OS name selection pattern
2618  */
2619 #define apzHp_SysfileMachs (const char**)NULL
2620
2621 /*
2622  *  content selection pattern - do fix if pattern found
2623  */
2624 tSCC zHp_SysfileSelect0[] =
2625        "HPUX_SOURCE";
2626
2627 #define    HP_SYSFILE_TEST_CT  1
2628 static tTestDesc aHp_SysfileTests[] = {
2629   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
2630
2631 /*
2632  *  Fix Command Arguments for Hp_Sysfile
2633  */
2634 static const char* apzHp_SysfilePatch[] = {
2635     "format",
2636     "(struct file *, ...)",
2637     "\\(\\.\\.\\.\\)",
2638     (char*)NULL };
2639
2640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2641  *
2642  *  Description of Hpux10_Cpp_Pow_Inline fix
2643  */
2644 tSCC zHpux10_Cpp_Pow_InlineName[] =
2645      "hpux10_cpp_pow_inline";
2646
2647 /*
2648  *  File name selection pattern
2649  */
2650 tSCC zHpux10_Cpp_Pow_InlineList[] =
2651   "fixinc-test-limits.h\0math.h\0";
2652 /*
2653  *  Machine/OS name selection pattern
2654  */
2655 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2656
2657 /*
2658  *  content selection pattern - do fix if pattern found
2659  */
2660 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2661        "^# +ifdef +__cplusplus\n\
2662  +\\}\n\
2663  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2664 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2665  +\\}\n\
2666  +extern +\"C\" +\\{\n\
2667 #else\n\
2668 # +endif";
2669
2670 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
2671 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2672   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2673
2674 /*
2675  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2676  */
2677 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2678     "format",
2679     "",
2680     (char*)NULL };
2681
2682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2683  *
2684  *  Description of Hpux11_Cpp_Pow_Inline fix
2685  */
2686 tSCC zHpux11_Cpp_Pow_InlineName[] =
2687      "hpux11_cpp_pow_inline";
2688
2689 /*
2690  *  File name selection pattern
2691  */
2692 tSCC zHpux11_Cpp_Pow_InlineList[] =
2693   "math.h\0";
2694 /*
2695  *  Machine/OS name selection pattern
2696  */
2697 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2698
2699 /*
2700  *  content selection pattern - do fix if pattern found
2701  */
2702 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2703        " +inline double pow\\(double d,int expon\\) \\{\n\
2704  +return pow\\(d, \\(double\\)expon\\);\n\
2705  +\\}\n";
2706
2707 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
2708 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2709   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2710
2711 /*
2712  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2713  */
2714 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2715     "format",
2716     "",
2717     (char*)NULL };
2718
2719 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2720  *
2721  *  Description of Hppa_Hpux_Fp_Macros fix
2722  */
2723 tSCC zHppa_Hpux_Fp_MacrosName[] =
2724      "hppa_hpux_fp_macros";
2725
2726 /*
2727  *  File name selection pattern
2728  */
2729 tSCC zHppa_Hpux_Fp_MacrosList[] =
2730   "math.h\0";
2731 /*
2732  *  Machine/OS name selection pattern
2733  */
2734 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2735         "hppa*-hp-hpux11*",
2736         (const char*)NULL };
2737
2738 /*
2739  *  content selection pattern - do fix if pattern found
2740  */
2741 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2742        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2743 #[ \t]*define[ \t]*FP_ZERO.*\n\
2744 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2745 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2746 #[ \t]*define[ \t]*FP_NAN.*\n";
2747
2748 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
2749 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2750   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2751
2752 /*
2753  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
2754  */
2755 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2756     "format",
2757     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2758 #if defined(_INCLUDE_HPUX_SOURCE) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2759 %0#endif\n\n\
2760 #ifdef _INCLUDE_HPUX_SOURCE\n",
2761     (char*)NULL };
2762
2763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2764  *
2765  *  Description of Hpux10_Ctype_Declarations1 fix
2766  */
2767 tSCC zHpux10_Ctype_Declarations1Name[] =
2768      "hpux10_ctype_declarations1";
2769
2770 /*
2771  *  File name selection pattern
2772  */
2773 tSCC zHpux10_Ctype_Declarations1List[] =
2774   "ctype.h\0";
2775 /*
2776  *  Machine/OS name selection pattern
2777  */
2778 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2779
2780 /*
2781  *  content selection pattern - do fix if pattern found
2782  */
2783 tSCC zHpux10_Ctype_Declarations1Select0[] =
2784        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2785
2786 /*
2787  *  content bypass pattern - skip fix if pattern found
2788  */
2789 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2790        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2791
2792 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
2793 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2794   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2795   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2796
2797 /*
2798  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
2799  */
2800 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2801     "format",
2802     "#ifdef _PROTOTYPES\n\
2803 extern int __tolower(int);\n\
2804 extern int __toupper(int);\n\
2805 #else /* NOT _PROTOTYPES */\n\
2806 extern int __tolower();\n\
2807 extern int __toupper();\n\
2808 #endif /* _PROTOTYPES */\n\n\
2809 %0\n",
2810     (char*)NULL };
2811
2812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2813  *
2814  *  Description of Hpux10_Ctype_Declarations2 fix
2815  */
2816 tSCC zHpux10_Ctype_Declarations2Name[] =
2817      "hpux10_ctype_declarations2";
2818
2819 /*
2820  *  File name selection pattern
2821  */
2822 tSCC zHpux10_Ctype_Declarations2List[] =
2823   "ctype.h\0";
2824 /*
2825  *  Machine/OS name selection pattern
2826  */
2827 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2828
2829 /*
2830  *  content selection pattern - do fix if pattern found
2831  */
2832 tSCC zHpux10_Ctype_Declarations2Select0[] =
2833        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2834
2835 /*
2836  *  content bypass pattern - skip fix if pattern found
2837  */
2838 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2839        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2840
2841 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
2842 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2843   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2844   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2845
2846 /*
2847  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
2848  */
2849 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2850     "format",
2851     "%0\n\n\
2852 #ifdef _PROTOTYPES\n\
2853      extern int _isalnum(int);\n\
2854      extern int _isalpha(int);\n\
2855      extern int _iscntrl(int);\n\
2856      extern int _isdigit(int);\n\
2857      extern int _isgraph(int);\n\
2858      extern int _islower(int);\n\
2859      extern int _isprint(int);\n\
2860      extern int _ispunct(int);\n\
2861      extern int _isspace(int);\n\
2862      extern int _isupper(int);\n\
2863      extern int _isxdigit(int);\n\
2864 #  else /* not _PROTOTYPES */\n\
2865      extern int _isalnum();\n\
2866      extern int _isalpha();\n\
2867      extern int _iscntrl();\n\
2868      extern int _isdigit();\n\
2869      extern int _isgraph();\n\
2870      extern int _islower();\n\
2871      extern int _isprint();\n\
2872      extern int _ispunct();\n\
2873      extern int _isspace();\n\
2874      extern int _isupper();\n\
2875      extern int _isxdigit();\n\
2876 #endif /* _PROTOTYPES */\n",
2877     (char*)NULL };
2878
2879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2880  *
2881  *  Description of Hpux10_Stdio_Declarations fix
2882  */
2883 tSCC zHpux10_Stdio_DeclarationsName[] =
2884      "hpux10_stdio_declarations";
2885
2886 /*
2887  *  File name selection pattern
2888  */
2889 tSCC zHpux10_Stdio_DeclarationsList[] =
2890   "stdio.h\0";
2891 /*
2892  *  Machine/OS name selection pattern
2893  */
2894 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2895
2896 /*
2897  *  content selection pattern - do fix if pattern found
2898  */
2899 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2900        "^#[ \t]*define _iob[ \t]*__iob";
2901
2902 /*
2903  *  content bypass pattern - skip fix if pattern found
2904  */
2905 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2906        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2907
2908 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
2909 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2910   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2911   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2912
2913 /*
2914  *  Fix Command Arguments for Hpux10_Stdio_Declarations
2915  */
2916 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2917     "format",
2918     "%0\n\n\
2919 #  if defined(__STDC__) || defined(__cplusplus)\n\
2920      extern int snprintf(char *, size_t, const char *, ...);\n\
2921      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2922 #  else /* not __STDC__) || __cplusplus */\n\
2923      extern int snprintf();\n\
2924      extern int vsnprintf();\n\
2925 #  endif /* __STDC__) || __cplusplus */\n",
2926     (char*)NULL };
2927
2928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2929  *
2930  *  Description of Hpux11_Abs fix
2931  */
2932 tSCC zHpux11_AbsName[] =
2933      "hpux11_abs";
2934
2935 /*
2936  *  File name selection pattern
2937  */
2938 tSCC zHpux11_AbsList[] =
2939   "stdlib.h\0";
2940 /*
2941  *  Machine/OS name selection pattern
2942  */
2943 tSCC* apzHpux11_AbsMachs[] = {
2944         "ia64-hp-hpux11*",
2945         (const char*)NULL };
2946
2947 /*
2948  *  content selection pattern - do fix if pattern found
2949  */
2950 tSCC zHpux11_AbsSelect0[] =
2951        "ifndef _MATH_INCLUDED";
2952
2953 #define    HPUX11_ABS_TEST_CT  1
2954 static tTestDesc aHpux11_AbsTests[] = {
2955   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
2956
2957 /*
2958  *  Fix Command Arguments for Hpux11_Abs
2959  */
2960 static const char* apzHpux11_AbsPatch[] = {
2961     "format",
2962     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2963     (char*)NULL };
2964
2965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2966  *
2967  *  Description of Hpux11_Fabsf fix
2968  */
2969 tSCC zHpux11_FabsfName[] =
2970      "hpux11_fabsf";
2971
2972 /*
2973  *  File name selection pattern
2974  */
2975 tSCC zHpux11_FabsfList[] =
2976   "math.h\0";
2977 /*
2978  *  Machine/OS name selection pattern
2979  */
2980 #define apzHpux11_FabsfMachs (const char**)NULL
2981
2982 /*
2983  *  content selection pattern - do fix if pattern found
2984  */
2985 tSCC zHpux11_FabsfSelect0[] =
2986        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2987
2988 /*
2989  *  content bypass pattern - skip fix if pattern found
2990  */
2991 tSCC zHpux11_FabsfBypass0[] =
2992        "__cplusplus";
2993
2994 #define    HPUX11_FABSF_TEST_CT  2
2995 static tTestDesc aHpux11_FabsfTests[] = {
2996   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
2997   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2998
2999 /*
3000  *  Fix Command Arguments for Hpux11_Fabsf
3001  */
3002 static const char* apzHpux11_FabsfPatch[] = {
3003     "format",
3004     "#ifndef __cplusplus\n\
3005 %0\n\
3006 #endif",
3007     (char*)NULL };
3008
3009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010  *
3011  *  Description of Hpux11_Size_T fix
3012  */
3013 tSCC zHpux11_Size_TName[] =
3014      "hpux11_size_t";
3015
3016 /*
3017  *  File name selection pattern
3018  */
3019 #define zHpux11_Size_TList (char*)NULL
3020 /*
3021  *  Machine/OS name selection pattern
3022  */
3023 tSCC* apzHpux11_Size_TMachs[] = {
3024         "*-hp-hpux11*",
3025         (const char*)NULL };
3026
3027 /*
3028  *  content selection pattern - do fix if pattern found
3029  */
3030 tSCC zHpux11_Size_TSelect0[] =
3031        "__size_t";
3032
3033 #define    HPUX11_SIZE_T_TEST_CT  1
3034 static tTestDesc aHpux11_Size_TTests[] = {
3035   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3036
3037 /*
3038  *  Fix Command Arguments for Hpux11_Size_T
3039  */
3040 static const char* apzHpux11_Size_TPatch[] = {
3041     "format",
3042     "_hpux_size_t",
3043     (char*)NULL };
3044
3045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3046  *
3047  *  Description of Hpux11_Snprintf fix
3048  */
3049 tSCC zHpux11_SnprintfName[] =
3050      "hpux11_snprintf";
3051
3052 /*
3053  *  File name selection pattern
3054  */
3055 tSCC zHpux11_SnprintfList[] =
3056   "stdio.h\0";
3057 /*
3058  *  Machine/OS name selection pattern
3059  */
3060 #define apzHpux11_SnprintfMachs (const char**)NULL
3061
3062 /*
3063  *  content selection pattern - do fix if pattern found
3064  */
3065 tSCC zHpux11_SnprintfSelect0[] =
3066        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3067
3068 #define    HPUX11_SNPRINTF_TEST_CT  1
3069 static tTestDesc aHpux11_SnprintfTests[] = {
3070   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3071
3072 /*
3073  *  Fix Command Arguments for Hpux11_Snprintf
3074  */
3075 static const char* apzHpux11_SnprintfPatch[] = {
3076     "format",
3077     "%1 const %3",
3078     (char*)NULL };
3079
3080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3081  *
3082  *  Description of Hpux11_Uint32_C fix
3083  */
3084 tSCC zHpux11_Uint32_CName[] =
3085      "hpux11_uint32_c";
3086
3087 /*
3088  *  File name selection pattern
3089  */
3090 tSCC zHpux11_Uint32_CList[] =
3091   "inttypes.h\0";
3092 /*
3093  *  Machine/OS name selection pattern
3094  */
3095 #define apzHpux11_Uint32_CMachs (const char**)NULL
3096
3097 /*
3098  *  content selection pattern - do fix if pattern found
3099  */
3100 tSCC zHpux11_Uint32_CSelect0[] =
3101        "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
3102
3103 #define    HPUX11_UINT32_C_TEST_CT  1
3104 static tTestDesc aHpux11_Uint32_CTests[] = {
3105   { TT_EGREP,    zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
3106
3107 /*
3108  *  Fix Command Arguments for Hpux11_Uint32_C
3109  */
3110 static const char* apzHpux11_Uint32_CPatch[] = {
3111     "format",
3112     "#define UINT32_C(__c) __CONCAT__(__c,ul)",
3113     (char*)NULL };
3114
3115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3116  *
3117  *  Description of Hpux11_Vsnprintf fix
3118  */
3119 tSCC zHpux11_VsnprintfName[] =
3120      "hpux11_vsnprintf";
3121
3122 /*
3123  *  File name selection pattern
3124  */
3125 tSCC zHpux11_VsnprintfList[] =
3126   "stdio.h\0";
3127 /*
3128  *  Machine/OS name selection pattern
3129  */
3130 #define apzHpux11_VsnprintfMachs (const char**)NULL
3131
3132 /*
3133  *  content selection pattern - do fix if pattern found
3134  */
3135 tSCC zHpux11_VsnprintfSelect0[] =
3136        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3137
3138 #define    HPUX11_VSNPRINTF_TEST_CT  1
3139 static tTestDesc aHpux11_VsnprintfTests[] = {
3140   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3141
3142 /*
3143  *  Fix Command Arguments for Hpux11_Vsnprintf
3144  */
3145 static const char* apzHpux11_VsnprintfPatch[] = {
3146     "format",
3147     "%1 __va_list);",
3148     (char*)NULL };
3149
3150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3151  *
3152  *  Description of Hpux8_Bogus_Inlines fix
3153  */
3154 tSCC zHpux8_Bogus_InlinesName[] =
3155      "hpux8_bogus_inlines";
3156
3157 /*
3158  *  File name selection pattern
3159  */
3160 tSCC zHpux8_Bogus_InlinesList[] =
3161   "math.h\0";
3162 /*
3163  *  Machine/OS name selection pattern
3164  */
3165 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3166
3167 /*
3168  *  content selection pattern - do fix if pattern found
3169  */
3170 tSCC zHpux8_Bogus_InlinesSelect0[] =
3171        "inline";
3172
3173 /*
3174  *  content bypass pattern - skip fix if pattern found
3175  */
3176 tSCC zHpux8_Bogus_InlinesBypass0[] =
3177        "__GNUG__";
3178
3179 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
3180 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3181   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3182   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3183
3184 /*
3185  *  Fix Command Arguments for Hpux8_Bogus_Inlines
3186  */
3187 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
3188     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3189     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3190     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3191     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3192     (char*)NULL };
3193
3194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3195  *
3196  *  Description of Hpux_Ctype_Macros fix
3197  */
3198 tSCC zHpux_Ctype_MacrosName[] =
3199      "hpux_ctype_macros";
3200
3201 /*
3202  *  File name selection pattern
3203  */
3204 tSCC zHpux_Ctype_MacrosList[] =
3205   "ctype.h\0";
3206 /*
3207  *  Machine/OS name selection pattern
3208  */
3209 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3210
3211 /*
3212  *  content selection pattern - do fix if pattern found
3213  */
3214 tSCC zHpux_Ctype_MacrosSelect0[] =
3215        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3216
3217 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3218 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3219   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3220
3221 /*
3222  *  Fix Command Arguments for Hpux_Ctype_Macros
3223  */
3224 static const char* apzHpux_Ctype_MacrosPatch[] = {
3225     "format",
3226     "%1(int)%3",
3227     (char*)NULL };
3228
3229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3230  *
3231  *  Description of Hpux_Htonl fix
3232  */
3233 tSCC zHpux_HtonlName[] =
3234      "hpux_htonl";
3235
3236 /*
3237  *  File name selection pattern
3238  */
3239 tSCC zHpux_HtonlList[] =
3240   "netinet/in.h\0";
3241 /*
3242  *  Machine/OS name selection pattern
3243  */
3244 #define apzHpux_HtonlMachs (const char**)NULL
3245
3246 /*
3247  *  content selection pattern - do fix if pattern found
3248  */
3249 tSCC zHpux_HtonlSelect0[] =
3250        "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3251 (/\\*\n\
3252  \\* Macros for number representation conversion\\.\n\
3253  \\*/\n\
3254 #ifndef ntohl)";
3255
3256 #define    HPUX_HTONL_TEST_CT  1
3257 static tTestDesc aHpux_HtonlTests[] = {
3258   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
3259
3260 /*
3261  *  Fix Command Arguments for Hpux_Htonl
3262  */
3263 static const char* apzHpux_HtonlPatch[] = {
3264     "format",
3265     "#if 1\n\
3266 %1",
3267     (char*)NULL };
3268
3269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3270  *
3271  *  Description of Hpux_Long_Double fix
3272  */
3273 tSCC zHpux_Long_DoubleName[] =
3274      "hpux_long_double";
3275
3276 /*
3277  *  File name selection pattern
3278  */
3279 tSCC zHpux_Long_DoubleList[] =
3280   "stdlib.h\0";
3281 /*
3282  *  Machine/OS name selection pattern
3283  */
3284 #define apzHpux_Long_DoubleMachs (const char**)NULL
3285
3286 /*
3287  *  content selection pattern - do fix if pattern found
3288  */
3289 tSCC zHpux_Long_DoubleSelect0[] =
3290        "extern[ \t]long_double[ \t]strtold";
3291
3292 /*
3293  *  content bypass pattern - skip fix if pattern found
3294  */
3295 tSCC zHpux_Long_DoubleBypass0[] =
3296        "long_double_t";
3297
3298 #define    HPUX_LONG_DOUBLE_TEST_CT  2
3299 static tTestDesc aHpux_Long_DoubleTests[] = {
3300   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3301   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3302
3303 /*
3304  *  Fix Command Arguments for Hpux_Long_Double
3305  */
3306 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3307     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3308     "-e", "s/long_double/long double/g",
3309     (char*)NULL };
3310
3311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3312  *
3313  *  Description of Hpux_Systime fix
3314  */
3315 tSCC zHpux_SystimeName[] =
3316      "hpux_systime";
3317
3318 /*
3319  *  File name selection pattern
3320  */
3321 tSCC zHpux_SystimeList[] =
3322   "sys/time.h\0";
3323 /*
3324  *  Machine/OS name selection pattern
3325  */
3326 #define apzHpux_SystimeMachs (const char**)NULL
3327
3328 /*
3329  *  content selection pattern - do fix if pattern found
3330  */
3331 tSCC zHpux_SystimeSelect0[] =
3332        "^extern struct sigevent;";
3333
3334 #define    HPUX_SYSTIME_TEST_CT  1
3335 static tTestDesc aHpux_SystimeTests[] = {
3336   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
3337
3338 /*
3339  *  Fix Command Arguments for Hpux_Systime
3340  */
3341 static const char* apzHpux_SystimePatch[] = {
3342     "format",
3343     "struct sigevent;",
3344     (char*)NULL };
3345
3346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3347  *
3348  *  Description of Hpux_Spu_Info fix
3349  */
3350 tSCC zHpux_Spu_InfoName[] =
3351      "hpux_spu_info";
3352
3353 /*
3354  *  File name selection pattern
3355  */
3356 tSCC zHpux_Spu_InfoList[] =
3357   "ia64/sys/getppdp.h\0";
3358 /*
3359  *  Machine/OS name selection pattern
3360  */
3361 tSCC* apzHpux_Spu_InfoMachs[] = {
3362         "*-hp-hpux*",
3363         (const char*)NULL };
3364
3365 /*
3366  *  content selection pattern - do fix if pattern found
3367  */
3368 tSCC zHpux_Spu_InfoSelect0[] =
3369        "^.*extern.*spu_info.*";
3370
3371 #define    HPUX_SPU_INFO_TEST_CT  1
3372 static tTestDesc aHpux_Spu_InfoTests[] = {
3373   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3374
3375 /*
3376  *  Fix Command Arguments for Hpux_Spu_Info
3377  */
3378 static const char* apzHpux_Spu_InfoPatch[] = {
3379     "format",
3380     "#ifdef _KERNEL\n\
3381 %0\n\
3382 #endif",
3383     (char*)NULL };
3384
3385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3386  *
3387  *  Description of Hpux11_Extern_Sendfile fix
3388  */
3389 tSCC zHpux11_Extern_SendfileName[] =
3390      "hpux11_extern_sendfile";
3391
3392 /*
3393  *  File name selection pattern
3394  */
3395 tSCC zHpux11_Extern_SendfileList[] =
3396   "sys/socket.h\0";
3397 /*
3398  *  Machine/OS name selection pattern
3399  */
3400 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3401         "*-hp-hpux11.[12]*",
3402         (const char*)NULL };
3403
3404 /*
3405  *  content selection pattern - do fix if pattern found
3406  */
3407 tSCC zHpux11_Extern_SendfileSelect0[] =
3408        "^[ \t]*extern sbsize_t sendfile.*\n\
3409 .*, int\\)\\);\n";
3410
3411 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
3412 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3413   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3414
3415 /*
3416  *  Fix Command Arguments for Hpux11_Extern_Sendfile
3417  */
3418 static const char* apzHpux11_Extern_SendfilePatch[] = {
3419     "format",
3420     "#ifndef _APP32_64BIT_OFF_T\n\
3421 %0#endif\n",
3422     (char*)NULL };
3423
3424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3425  *
3426  *  Description of Hpux11_Extern_Sendpath fix
3427  */
3428 tSCC zHpux11_Extern_SendpathName[] =
3429      "hpux11_extern_sendpath";
3430
3431 /*
3432  *  File name selection pattern
3433  */
3434 tSCC zHpux11_Extern_SendpathList[] =
3435   "sys/socket.h\0";
3436 /*
3437  *  Machine/OS name selection pattern
3438  */
3439 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3440         "*-hp-hpux11.[12]*",
3441         (const char*)NULL };
3442
3443 /*
3444  *  content selection pattern - do fix if pattern found
3445  */
3446 tSCC zHpux11_Extern_SendpathSelect0[] =
3447        "^[ \t]*extern sbsize_t sendpath.*\n\
3448 .*, int\\)\\);\n";
3449
3450 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
3451 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3452   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3453
3454 /*
3455  *  Fix Command Arguments for Hpux11_Extern_Sendpath
3456  */
3457 static const char* apzHpux11_Extern_SendpathPatch[] = {
3458     "format",
3459     "#ifndef _APP32_64BIT_OFF_T\n\
3460 %0#endif\n",
3461     (char*)NULL };
3462
3463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3464  *
3465  *  Description of Hpux_Extern_Errno fix
3466  */
3467 tSCC zHpux_Extern_ErrnoName[] =
3468      "hpux_extern_errno";
3469
3470 /*
3471  *  File name selection pattern
3472  */
3473 tSCC zHpux_Extern_ErrnoList[] =
3474   "errno.h\0";
3475 /*
3476  *  Machine/OS name selection pattern
3477  */
3478 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3479         "*-hp-hpux10.*",
3480         "*-hp-hpux11.[0-2]*",
3481         (const char*)NULL };
3482
3483 /*
3484  *  content selection pattern - do fix if pattern found
3485  */
3486 tSCC zHpux_Extern_ErrnoSelect0[] =
3487        "^[ \t]*extern int errno;$";
3488
3489 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
3490 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3491   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3492
3493 /*
3494  *  Fix Command Arguments for Hpux_Extern_Errno
3495  */
3496 static const char* apzHpux_Extern_ErrnoPatch[] = {
3497     "format",
3498     "#ifdef __cplusplus\n\
3499 extern \"C\" {\n\
3500 #endif\n\
3501 %0\n\
3502 #ifdef __cplusplus\n\
3503 }\n\
3504 #endif",
3505     (char*)NULL };
3506
3507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3508  *
3509  *  Description of Hpux11_Pthread_Const fix
3510  */
3511 tSCC zHpux11_Pthread_ConstName[] =
3512      "hpux11_pthread_const";
3513
3514 /*
3515  *  File name selection pattern
3516  */
3517 tSCC zHpux11_Pthread_ConstList[] =
3518   "sys/pthread.h\0";
3519 /*
3520  *  Machine/OS name selection pattern
3521  */
3522 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3523         "*-hp-hpux11.[0-3]*",
3524         (const char*)NULL };
3525
3526 /*
3527  *  content selection pattern - do fix if pattern found
3528  */
3529 tSCC zHpux11_Pthread_ConstSelect0[] =
3530        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3531
3532 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
3533 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3534   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3535
3536 /*
3537  *  Fix Command Arguments for Hpux11_Pthread_Const
3538  */
3539 static const char* apzHpux11_Pthread_ConstPatch[] = {
3540     "format",
3541     "#define __POINTER_SET\t\t((void *) 1L)",
3542     (char*)NULL };
3543
3544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3545  *
3546  *  Description of Hpux_Pthread_Initializers fix
3547  */
3548 tSCC zHpux_Pthread_InitializersName[] =
3549      "hpux_pthread_initializers";
3550
3551 /*
3552  *  File name selection pattern
3553  */
3554 tSCC zHpux_Pthread_InitializersList[] =
3555   "sys/pthread.h\0";
3556 /*
3557  *  Machine/OS name selection pattern
3558  */
3559 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3560         "*-hp-hpux11.[0-3]*",
3561         (const char*)NULL };
3562 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
3563 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
3564
3565 /*
3566  *  Fix Command Arguments for Hpux_Pthread_Initializers
3567  */
3568 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3569     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3570     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3571     "-e", "/^[ \t]*0$/d",
3572     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3573     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3574     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3575     "-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\\\\@",
3576     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3577     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3578     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3579     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3580     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3581     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3582     (char*)NULL };
3583
3584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3585  *
3586  *  Description of Huge_Val_Hex fix
3587  */
3588 tSCC zHuge_Val_HexName[] =
3589      "huge_val_hex";
3590
3591 /*
3592  *  File name selection pattern
3593  */
3594 tSCC zHuge_Val_HexList[] =
3595   "bits/huge_val.h\0";
3596 /*
3597  *  Machine/OS name selection pattern
3598  */
3599 #define apzHuge_Val_HexMachs (const char**)NULL
3600
3601 /*
3602  *  content selection pattern - do fix if pattern found
3603  */
3604 tSCC zHuge_Val_HexSelect0[] =
3605        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3606
3607 /*
3608  *  content bypass pattern - skip fix if pattern found
3609  */
3610 tSCC zHuge_Val_HexBypass0[] =
3611        "__builtin_huge_val";
3612
3613 #define    HUGE_VAL_HEX_TEST_CT  2
3614 static tTestDesc aHuge_Val_HexTests[] = {
3615   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
3616   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3617
3618 /*
3619  *  Fix Command Arguments for Huge_Val_Hex
3620  */
3621 static const char* apzHuge_Val_HexPatch[] = {
3622     "format",
3623     "#define HUGE_VAL (__builtin_huge_val())\n",
3624     (char*)NULL };
3625
3626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3627  *
3628  *  Description of Huge_Valf_Hex fix
3629  */
3630 tSCC zHuge_Valf_HexName[] =
3631      "huge_valf_hex";
3632
3633 /*
3634  *  File name selection pattern
3635  */
3636 tSCC zHuge_Valf_HexList[] =
3637   "bits/huge_val.h\0";
3638 /*
3639  *  Machine/OS name selection pattern
3640  */
3641 #define apzHuge_Valf_HexMachs (const char**)NULL
3642
3643 /*
3644  *  content selection pattern - do fix if pattern found
3645  */
3646 tSCC zHuge_Valf_HexSelect0[] =
3647        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3648
3649 /*
3650  *  content bypass pattern - skip fix if pattern found
3651  */
3652 tSCC zHuge_Valf_HexBypass0[] =
3653        "__builtin_huge_valf";
3654
3655 #define    HUGE_VALF_HEX_TEST_CT  2
3656 static tTestDesc aHuge_Valf_HexTests[] = {
3657   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
3658   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3659
3660 /*
3661  *  Fix Command Arguments for Huge_Valf_Hex
3662  */
3663 static const char* apzHuge_Valf_HexPatch[] = {
3664     "format",
3665     "#define HUGE_VALF (__builtin_huge_valf())\n",
3666     (char*)NULL };
3667
3668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3669  *
3670  *  Description of Huge_Vall_Hex fix
3671  */
3672 tSCC zHuge_Vall_HexName[] =
3673      "huge_vall_hex";
3674
3675 /*
3676  *  File name selection pattern
3677  */
3678 tSCC zHuge_Vall_HexList[] =
3679   "bits/huge_val.h\0";
3680 /*
3681  *  Machine/OS name selection pattern
3682  */
3683 #define apzHuge_Vall_HexMachs (const char**)NULL
3684
3685 /*
3686  *  content selection pattern - do fix if pattern found
3687  */
3688 tSCC zHuge_Vall_HexSelect0[] =
3689        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3690
3691 /*
3692  *  content bypass pattern - skip fix if pattern found
3693  */
3694 tSCC zHuge_Vall_HexBypass0[] =
3695        "__builtin_huge_vall";
3696
3697 #define    HUGE_VALL_HEX_TEST_CT  2
3698 static tTestDesc aHuge_Vall_HexTests[] = {
3699   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
3700   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3701
3702 /*
3703  *  Fix Command Arguments for Huge_Vall_Hex
3704  */
3705 static const char* apzHuge_Vall_HexPatch[] = {
3706     "format",
3707     "#define HUGE_VALL (__builtin_huge_vall())\n",
3708     (char*)NULL };
3709
3710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3711  *
3712  *  Description of Int_Abort_Free_And_Exit fix
3713  */
3714 tSCC zInt_Abort_Free_And_ExitName[] =
3715      "int_abort_free_and_exit";
3716
3717 /*
3718  *  File name selection pattern
3719  */
3720 tSCC zInt_Abort_Free_And_ExitList[] =
3721   "stdlib.h\0";
3722 /*
3723  *  Machine/OS name selection pattern
3724  */
3725 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3726
3727 /*
3728  *  content selection pattern - do fix if pattern found
3729  */
3730 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3731        "int[ \t]+(abort|free|exit)[ \t]*\\(";
3732
3733 /*
3734  *  content bypass pattern - skip fix if pattern found
3735  */
3736 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3737        "_CLASSIC_ANSI_TYPES";
3738
3739 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
3740 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3741   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3742   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3743
3744 /*
3745  *  Fix Command Arguments for Int_Abort_Free_And_Exit
3746  */
3747 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3748     "format",
3749     "void\t%1(",
3750     (char*)NULL };
3751
3752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3753  *
3754  *  Description of Io_Quotes_Def fix
3755  */
3756 tSCC zIo_Quotes_DefName[] =
3757      "io_quotes_def";
3758
3759 /*
3760  *  File name selection pattern
3761  */
3762 #define zIo_Quotes_DefList (char*)NULL
3763 /*
3764  *  Machine/OS name selection pattern
3765  */
3766 #define apzIo_Quotes_DefMachs (const char**)NULL
3767
3768 /*
3769  *  content selection pattern - do fix if pattern found
3770  */
3771 tSCC zIo_Quotes_DefSelect0[] =
3772        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3773
3774 #define    IO_QUOTES_DEF_TEST_CT  1
3775 static tTestDesc aIo_Quotes_DefTests[] = {
3776   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3777
3778 /*
3779  *  Fix Command Arguments for Io_Quotes_Def
3780  */
3781 static const char* apzIo_Quotes_DefPatch[] = {
3782     "char_macro_def",
3783     "IO",
3784     (char*)NULL };
3785
3786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3787  *
3788  *  Description of Io_Quotes_Use fix
3789  */
3790 tSCC zIo_Quotes_UseName[] =
3791      "io_quotes_use";
3792
3793 /*
3794  *  File name selection pattern
3795  */
3796 #define zIo_Quotes_UseList (char*)NULL
3797 /*
3798  *  Machine/OS name selection pattern
3799  */
3800 #define apzIo_Quotes_UseMachs (const char**)NULL
3801
3802 /*
3803  *  content selection pattern - do fix if pattern found
3804  */
3805 tSCC zIo_Quotes_UseSelect0[] =
3806        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3807
3808 #define    IO_QUOTES_USE_TEST_CT  1
3809 static tTestDesc aIo_Quotes_UseTests[] = {
3810   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3811
3812 /*
3813  *  Fix Command Arguments for Io_Quotes_Use
3814  */
3815 static const char* apzIo_Quotes_UsePatch[] = {
3816     "char_macro_use",
3817     "IO",
3818     (char*)NULL };
3819
3820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3821  *
3822  *  Description of Ip_Missing_Semi fix
3823  */
3824 tSCC zIp_Missing_SemiName[] =
3825      "ip_missing_semi";
3826
3827 /*
3828  *  File name selection pattern
3829  */
3830 tSCC zIp_Missing_SemiList[] =
3831   "netinet/ip.h\0";
3832 /*
3833  *  Machine/OS name selection pattern
3834  */
3835 #define apzIp_Missing_SemiMachs (const char**)NULL
3836
3837 /*
3838  *  content selection pattern - do fix if pattern found
3839  */
3840 tSCC zIp_Missing_SemiSelect0[] =
3841        "}$";
3842
3843 #define    IP_MISSING_SEMI_TEST_CT  1
3844 static tTestDesc aIp_Missing_SemiTests[] = {
3845   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3846
3847 /*
3848  *  Fix Command Arguments for Ip_Missing_Semi
3849  */
3850 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3851     "-e", "/^struct/,/^};/s/}$/};/",
3852     (char*)NULL };
3853
3854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3855  *
3856  *  Description of Irix___Restrict fix
3857  */
3858 tSCC zIrix___RestrictName[] =
3859      "irix___restrict";
3860
3861 /*
3862  *  File name selection pattern
3863  */
3864 tSCC zIrix___RestrictList[] =
3865   "internal/sgimacros.h\0";
3866 /*
3867  *  Machine/OS name selection pattern
3868  */
3869 tSCC* apzIrix___RestrictMachs[] = {
3870         "mips-sgi-irix6.5",
3871         (const char*)NULL };
3872
3873 /*
3874  *  content selection pattern - do fix if pattern found
3875  */
3876 tSCC zIrix___RestrictSelect0[] =
3877        "(#ifdef __c99\n\
3878 )(#[ \t]*define __restrict restrict)";
3879
3880 #define    IRIX___RESTRICT_TEST_CT  1
3881 static tTestDesc aIrix___RestrictTests[] = {
3882   { TT_EGREP,    zIrix___RestrictSelect0, (regex_t*)NULL }, };
3883
3884 /*
3885  *  Fix Command Arguments for Irix___Restrict
3886  */
3887 static const char* apzIrix___RestrictPatch[] = {
3888     "format",
3889     "%1#  ifndef __cplusplus\n\
3890 %2\n\
3891 #  endif",
3892     (char*)NULL };
3893
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3895  *
3896  *  Description of Irix___Generic1 fix
3897  */
3898 tSCC zIrix___Generic1Name[] =
3899      "irix___generic1";
3900
3901 /*
3902  *  File name selection pattern
3903  */
3904 tSCC zIrix___Generic1List[] =
3905   "internal/math_core.h\0";
3906 /*
3907  *  Machine/OS name selection pattern
3908  */
3909 tSCC* apzIrix___Generic1Machs[] = {
3910         "mips-sgi-irix6.5",
3911         (const char*)NULL };
3912
3913 /*
3914  *  content selection pattern - do fix if pattern found
3915  */
3916 tSCC zIrix___Generic1Select0[] =
3917        "#define ([a-z]+)\\(x\\) *__generic.*";
3918
3919 #define    IRIX___GENERIC1_TEST_CT  1
3920 static tTestDesc aIrix___Generic1Tests[] = {
3921   { TT_EGREP,    zIrix___Generic1Select0, (regex_t*)NULL }, };
3922
3923 /*
3924  *  Fix Command Arguments for Irix___Generic1
3925  */
3926 static const char* apzIrix___Generic1Patch[] = {
3927     "format",
3928     "extern int %1(double);\n\
3929 extern int %1f(float);\n\
3930 extern int %1l(long double);\n\
3931 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3932                : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3933                : _%1l(x))\n",
3934     (char*)NULL };
3935
3936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3937  *
3938  *  Description of Irix___Generic2 fix
3939  */
3940 tSCC zIrix___Generic2Name[] =
3941      "irix___generic2";
3942
3943 /*
3944  *  File name selection pattern
3945  */
3946 tSCC zIrix___Generic2List[] =
3947   "internal/math_core.h\0";
3948 /*
3949  *  Machine/OS name selection pattern
3950  */
3951 tSCC* apzIrix___Generic2Machs[] = {
3952         "mips-sgi-irix6.5",
3953         (const char*)NULL };
3954
3955 /*
3956  *  content selection pattern - do fix if pattern found
3957  */
3958 tSCC zIrix___Generic2Select0[] =
3959        "#define ([a-z]+)\\(x,y\\) *__generic.*";
3960
3961 #define    IRIX___GENERIC2_TEST_CT  1
3962 static tTestDesc aIrix___Generic2Tests[] = {
3963   { TT_EGREP,    zIrix___Generic2Select0, (regex_t*)NULL }, };
3964
3965 /*
3966  *  Fix Command Arguments for Irix___Generic2
3967  */
3968 static const char* apzIrix___Generic2Patch[] = {
3969     "format",
3970     "#define %1(x,y) \\\n\
3971   ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3972    : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3973    : _%1l(x,y))\n",
3974     (char*)NULL };
3975
3976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3977  *
3978  *  Description of Irix_Asm_Apostrophe fix
3979  */
3980 tSCC zIrix_Asm_ApostropheName[] =
3981      "irix_asm_apostrophe";
3982
3983 /*
3984  *  File name selection pattern
3985  */
3986 tSCC zIrix_Asm_ApostropheList[] =
3987   "sys/asm.h\0";
3988 /*
3989  *  Machine/OS name selection pattern
3990  */
3991 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3992
3993 /*
3994  *  content selection pattern - do fix if pattern found
3995  */
3996 tSCC zIrix_Asm_ApostropheSelect0[] =
3997        "^[ \t]*#.*[Ww]e're";
3998
3999 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
4000 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4001   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4002
4003 /*
4004  *  Fix Command Arguments for Irix_Asm_Apostrophe
4005  */
4006 static const char* apzIrix_Asm_ApostrophePatch[] = {
4007     "format",
4008     "%1 are",
4009     "^([ \t]*#.*[Ww]e)'re",
4010     (char*)NULL };
4011
4012 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4013  *
4014  *  Description of Irix_Limits_Const fix
4015  */
4016 tSCC zIrix_Limits_ConstName[] =
4017      "irix_limits_const";
4018
4019 /*
4020  *  File name selection pattern
4021  */
4022 tSCC zIrix_Limits_ConstList[] =
4023   "fixinc-test-limits.h\0limits.h\0";
4024 /*
4025  *  Machine/OS name selection pattern
4026  */
4027 #define apzIrix_Limits_ConstMachs (const char**)NULL
4028
4029 /*
4030  *  content selection pattern - do fix if pattern found
4031  */
4032 tSCC zIrix_Limits_ConstSelect0[] =
4033        "^extern const ";
4034
4035 #define    IRIX_LIMITS_CONST_TEST_CT  1
4036 static tTestDesc aIrix_Limits_ConstTests[] = {
4037   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4038
4039 /*
4040  *  Fix Command Arguments for Irix_Limits_Const
4041  */
4042 static const char* apzIrix_Limits_ConstPatch[] = {
4043     "format",
4044     "extern __const ",
4045     (char*)NULL };
4046
4047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4048  *
4049  *  Description of Irix_Socklen_T fix
4050  */
4051 tSCC zIrix_Socklen_TName[] =
4052      "irix_socklen_t";
4053
4054 /*
4055  *  File name selection pattern
4056  */
4057 tSCC zIrix_Socklen_TList[] =
4058   "sys/socket.h\0";
4059 /*
4060  *  Machine/OS name selection pattern
4061  */
4062 tSCC* apzIrix_Socklen_TMachs[] = {
4063         "mips-sgi-irix6.5",
4064         (const char*)NULL };
4065
4066 /*
4067  *  content selection pattern - do fix if pattern found
4068  */
4069 tSCC zIrix_Socklen_TSelect0[] =
4070        "(#define _SOCKLEN_T\n\
4071 )(typedef u_int32_t socklen_t;)";
4072
4073 #define    IRIX_SOCKLEN_T_TEST_CT  1
4074 static tTestDesc aIrix_Socklen_TTests[] = {
4075   { TT_EGREP,    zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4076
4077 /*
4078  *  Fix Command Arguments for Irix_Socklen_T
4079  */
4080 static const char* apzIrix_Socklen_TPatch[] = {
4081     "format",
4082     "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4083 typedef int socklen_t;\n\
4084 #else\n\
4085 %2\n\
4086 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4087     (char*)NULL };
4088
4089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4090  *
4091  *  Description of Irix_Stdint_C99 fix
4092  */
4093 tSCC zIrix_Stdint_C99Name[] =
4094      "irix_stdint_c99";
4095
4096 /*
4097  *  File name selection pattern
4098  */
4099 tSCC zIrix_Stdint_C99List[] =
4100   "stdint.h\0";
4101 /*
4102  *  Machine/OS name selection pattern
4103  */
4104 tSCC* apzIrix_Stdint_C99Machs[] = {
4105         "mips-sgi-irix6.5",
4106         (const char*)NULL };
4107
4108 /*
4109  *  content selection pattern - do fix if pattern found
4110  */
4111 tSCC zIrix_Stdint_C99Select0[] =
4112        "(#ifndef __c99\n\
4113 )(#error This header file is to be used only for c99 mode compilations)";
4114
4115 #define    IRIX_STDINT_C99_TEST_CT  1
4116 static tTestDesc aIrix_Stdint_C99Tests[] = {
4117   { TT_EGREP,    zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4118
4119 /*
4120  *  Fix Command Arguments for Irix_Stdint_C99
4121  */
4122 static const char* apzIrix_Stdint_C99Patch[] = {
4123     "format",
4124     "#if 0\n\
4125 %2",
4126     (char*)NULL };
4127
4128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4129  *
4130  *  Description of Irix_Stdio_Va_List fix
4131  */
4132 tSCC zIrix_Stdio_Va_ListName[] =
4133      "irix_stdio_va_list";
4134
4135 /*
4136  *  File name selection pattern
4137  */
4138 tSCC zIrix_Stdio_Va_ListList[] =
4139   "stdio.h\0internal/stdio_core.h\0";
4140 /*
4141  *  Machine/OS name selection pattern
4142  */
4143 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4144
4145 /*
4146  *  content selection pattern - do fix if pattern found
4147  */
4148 tSCC zIrix_Stdio_Va_ListSelect0[] =
4149        "/\\* va_list \\*/ char \\*";
4150
4151 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
4152 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4153   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4154
4155 /*
4156  *  Fix Command Arguments for Irix_Stdio_Va_List
4157  */
4158 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4159     "format",
4160     "__gnuc_va_list",
4161     (char*)NULL };
4162
4163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4164  *
4165  *  Description of Irix_Wcsftime fix
4166  */
4167 tSCC zIrix_WcsftimeName[] =
4168      "irix_wcsftime";
4169
4170 /*
4171  *  File name selection pattern
4172  */
4173 tSCC zIrix_WcsftimeList[] =
4174   "internal/wchar_core.h\0";
4175 /*
4176  *  Machine/OS name selection pattern
4177  */
4178 tSCC* apzIrix_WcsftimeMachs[] = {
4179         "mips-sgi-irix6.5",
4180         (const char*)NULL };
4181
4182 /*
4183  *  content selection pattern - do fix if pattern found
4184  */
4185 tSCC zIrix_WcsftimeSelect0[] =
4186        "#if _NO_XOPEN5\n\
4187 (extern size_t[ \t]+wcsftime.*const char *.*)";
4188
4189 #define    IRIX_WCSFTIME_TEST_CT  1
4190 static tTestDesc aIrix_WcsftimeTests[] = {
4191   { TT_EGREP,    zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4192
4193 /*
4194  *  Fix Command Arguments for Irix_Wcsftime
4195  */
4196 static const char* apzIrix_WcsftimePatch[] = {
4197     "format",
4198     "#if _NO_XOPEN5 && !defined(__c99)\n\
4199 %1",
4200     (char*)NULL };
4201
4202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4203  *
4204  *  Description of Isc_Fmod fix
4205  */
4206 tSCC zIsc_FmodName[] =
4207      "isc_fmod";
4208
4209 /*
4210  *  File name selection pattern
4211  */
4212 tSCC zIsc_FmodList[] =
4213   "math.h\0";
4214 /*
4215  *  Machine/OS name selection pattern
4216  */
4217 #define apzIsc_FmodMachs (const char**)NULL
4218
4219 /*
4220  *  content selection pattern - do fix if pattern found
4221  */
4222 tSCC zIsc_FmodSelect0[] =
4223        "fmod\\(double\\)";
4224
4225 #define    ISC_FMOD_TEST_CT  1
4226 static tTestDesc aIsc_FmodTests[] = {
4227   { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
4228
4229 /*
4230  *  Fix Command Arguments for Isc_Fmod
4231  */
4232 static const char* apzIsc_FmodPatch[] = {
4233     "format",
4234     "fmod(double, double)",
4235     (char*)NULL };
4236
4237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4238  *
4239  *  Description of Isc_Omits_With_Stdc fix
4240  */
4241 tSCC zIsc_Omits_With_StdcName[] =
4242      "isc_omits_with_stdc";
4243
4244 /*
4245  *  File name selection pattern
4246  */
4247 tSCC zIsc_Omits_With_StdcList[] =
4248   "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4249 /*
4250  *  Machine/OS name selection pattern
4251  */
4252 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4253
4254 /*
4255  *  content selection pattern - do fix if pattern found
4256  */
4257 tSCC zIsc_Omits_With_StdcSelect0[] =
4258        "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4259
4260 #define    ISC_OMITS_WITH_STDC_TEST_CT  1
4261 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4262   { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4263
4264 /*
4265  *  Fix Command Arguments for Isc_Omits_With_Stdc
4266  */
4267 static const char* apzIsc_Omits_With_StdcPatch[] = {
4268     "format",
4269     "!defined(_POSIX_SOURCE)",
4270     (char*)NULL };
4271
4272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4273  *
4274  *  Description of Kandr_Concat fix
4275  */
4276 tSCC zKandr_ConcatName[] =
4277      "kandr_concat";
4278
4279 /*
4280  *  File name selection pattern
4281  */
4282 tSCC zKandr_ConcatList[] =
4283   "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";
4284 /*
4285  *  Machine/OS name selection pattern
4286  */
4287 #define apzKandr_ConcatMachs (const char**)NULL
4288
4289 /*
4290  *  content selection pattern - do fix if pattern found
4291  */
4292 tSCC zKandr_ConcatSelect0[] =
4293        "/\\*\\*/";
4294
4295 #define    KANDR_CONCAT_TEST_CT  1
4296 static tTestDesc aKandr_ConcatTests[] = {
4297   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
4298
4299 /*
4300  *  Fix Command Arguments for Kandr_Concat
4301  */
4302 static const char* apzKandr_ConcatPatch[] = {
4303     "format",
4304     "##",
4305     (char*)NULL };
4306
4307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4308  *
4309  *  Description of Libc1_G_Va_List fix
4310  */
4311 tSCC zLibc1_G_Va_ListName[] =
4312      "libc1_G_va_list";
4313
4314 /*
4315  *  File name selection pattern
4316  */
4317 tSCC zLibc1_G_Va_ListList[] =
4318   "_G_config.h\0";
4319 /*
4320  *  Machine/OS name selection pattern
4321  */
4322 tSCC* apzLibc1_G_Va_ListMachs[] = {
4323         "*-*-linux*libc1",
4324         (const char*)NULL };
4325
4326 /*
4327  *  content selection pattern - do fix if pattern found
4328  */
4329 tSCC zLibc1_G_Va_ListSelect0[] =
4330        "typedef void \\* _G_va_list;";
4331
4332 #define    LIBC1_G_VA_LIST_TEST_CT  1
4333 static tTestDesc aLibc1_G_Va_ListTests[] = {
4334   { TT_EGREP,    zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
4335
4336 /*
4337  *  Fix Command Arguments for Libc1_G_Va_List
4338  */
4339 static const char* apzLibc1_G_Va_ListPatch[] = {
4340     "format",
4341     "typedef __builtin_va_list _G_va_list;",
4342     (char*)NULL };
4343
4344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4345  *
4346  *  Description of Libc1_Ifdefd_Memx fix
4347  */
4348 tSCC zLibc1_Ifdefd_MemxName[] =
4349      "libc1_ifdefd_memx";
4350
4351 /*
4352  *  File name selection pattern
4353  */
4354 tSCC zLibc1_Ifdefd_MemxList[] =
4355   "testing.h\0string.h\0";
4356 /*
4357  *  Machine/OS name selection pattern
4358  */
4359 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
4360
4361 /*
4362  *  content selection pattern - do fix if pattern found
4363  */
4364 tSCC zLibc1_Ifdefd_MemxSelect0[] =
4365        "' is a built-in function for gcc 2\\.x\\. \\*/";
4366
4367 /*
4368  *  content bypass pattern - skip fix if pattern found
4369  */
4370 tSCC zLibc1_Ifdefd_MemxBypass0[] =
4371        "__cplusplus";
4372
4373 #define    LIBC1_IFDEFD_MEMX_TEST_CT  2
4374 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
4375   { TT_NEGREP,   zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
4376   { TT_EGREP,    zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
4377
4378 /*
4379  *  Fix Command Arguments for Libc1_Ifdefd_Memx
4380  */
4381 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
4382     "format",
4383     "%1",
4384     "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
4385 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
4386 (/\\* .* \\*/\n\
4387 extern [a-z_]+ mem.*(\n\
4388 [^#].*)*;)\n\
4389 #endif",
4390     (char*)NULL };
4391
4392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4393  *
4394  *  Description of Linux_Ia64_Ucontext fix
4395  */
4396 tSCC zLinux_Ia64_UcontextName[] =
4397      "linux_ia64_ucontext";
4398
4399 /*
4400  *  File name selection pattern
4401  */
4402 tSCC zLinux_Ia64_UcontextList[] =
4403   "sys/ucontext.h\0";
4404 /*
4405  *  Machine/OS name selection pattern
4406  */
4407 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4408         "ia64-*-linux*",
4409         (const char*)NULL };
4410
4411 /*
4412  *  content selection pattern - do fix if pattern found
4413  */
4414 tSCC zLinux_Ia64_UcontextSelect0[] =
4415        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4416
4417 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
4418 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4419   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4420
4421 /*
4422  *  Fix Command Arguments for Linux_Ia64_Ucontext
4423  */
4424 static const char* apzLinux_Ia64_UcontextPatch[] = {
4425     "format",
4426     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4427     (char*)NULL };
4428
4429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4430  *
4431  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
4432  */
4433 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4434      "lynxos_no_warning_in_sys_time_h";
4435
4436 /*
4437  *  File name selection pattern
4438  */
4439 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4440   "sys/time.h\0";
4441 /*
4442  *  Machine/OS name selection pattern
4443  */
4444 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4445
4446 /*
4447  *  content selection pattern - do fix if pattern found
4448  */
4449 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4450        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4451
4452 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
4453 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4454   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4455
4456 /*
4457  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4458  */
4459 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4460     "format",
4461     "",
4462     (char*)NULL };
4463
4464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4465  *
4466  *  Description of Lynxos_Missing_Putenv fix
4467  */
4468 tSCC zLynxos_Missing_PutenvName[] =
4469      "lynxos_missing_putenv";
4470
4471 /*
4472  *  File name selection pattern
4473  */
4474 tSCC zLynxos_Missing_PutenvList[] =
4475   "stdlib.h\0";
4476 /*
4477  *  Machine/OS name selection pattern
4478  */
4479 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4480         "*-*-lynxos*",
4481         (const char*)NULL };
4482
4483 /*
4484  *  content selection pattern - do fix if pattern found
4485  */
4486 tSCC zLynxos_Missing_PutenvSelect0[] =
4487        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4488
4489 /*
4490  *  content bypass pattern - skip fix if pattern found
4491  */
4492 tSCC zLynxos_Missing_PutenvBypass0[] =
4493        "putenv[ \\t]*\\(";
4494
4495 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
4496 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4497   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4498   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4499
4500 /*
4501  *  Fix Command Arguments for Lynxos_Missing_Putenv
4502  */
4503 static const char* apzLynxos_Missing_PutenvPatch[] = {
4504     "format",
4505     "%0\n\
4506 extern int putenv\t\t\t\t_AP((char *));",
4507     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4508     (char*)NULL };
4509
4510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4511  *
4512  *  Description of Machine_Ansi_H_Va_List fix
4513  */
4514 tSCC zMachine_Ansi_H_Va_ListName[] =
4515      "machine_ansi_h_va_list";
4516
4517 /*
4518  *  File name selection pattern
4519  */
4520 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4521 /*
4522  *  Machine/OS name selection pattern
4523  */
4524 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4525
4526 /*
4527  *  content selection pattern - do fix if pattern found
4528  */
4529 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4530        "define[ \t]+_BSD_VA_LIST_[ \t]";
4531
4532 /*
4533  *  content bypass pattern - skip fix if pattern found
4534  */
4535 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4536        "__builtin_va_list";
4537
4538 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
4539 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4540   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4541   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4542
4543 /*
4544  *  Fix Command Arguments for Machine_Ansi_H_Va_List
4545  */
4546 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4547     "format",
4548     "%1__builtin_va_list",
4549     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4550     (char*)NULL };
4551
4552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4553  *
4554  *  Description of Machine_Name fix
4555  */
4556 tSCC zMachine_NameName[] =
4557      "machine_name";
4558
4559 /*
4560  *  File name selection pattern
4561  */
4562 #define zMachine_NameList (char*)NULL
4563 /*
4564  *  Machine/OS name selection pattern
4565  */
4566 #define apzMachine_NameMachs (const char**)NULL
4567
4568 /*
4569  *  perform the C function call test
4570  */
4571 tSCC zMachine_NameFTst0[] = "machine_name";
4572
4573 #define    MACHINE_NAME_TEST_CT  1
4574 static tTestDesc aMachine_NameTests[] = {
4575   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
4576
4577 /*
4578  *  Fix Command Arguments for Machine_Name
4579  */
4580 static const char* apzMachine_NamePatch[] = {
4581     "machine_name",
4582     (char*)NULL };
4583
4584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4585  *
4586  *  Description of Math_Exception fix
4587  */
4588 tSCC zMath_ExceptionName[] =
4589      "math_exception";
4590
4591 /*
4592  *  File name selection pattern
4593  */
4594 tSCC zMath_ExceptionList[] =
4595   "math.h\0";
4596 /*
4597  *  Machine/OS name selection pattern
4598  */
4599 #define apzMath_ExceptionMachs (const char**)NULL
4600
4601 /*
4602  *  content selection pattern - do fix if pattern found
4603  */
4604 tSCC zMath_ExceptionSelect0[] =
4605        "struct exception";
4606
4607 /*
4608  *  content bypass pattern - skip fix if pattern found
4609  */
4610 tSCC zMath_ExceptionBypass0[] =
4611        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4612
4613 #define    MATH_EXCEPTION_TEST_CT  2
4614 static tTestDesc aMath_ExceptionTests[] = {
4615   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
4616   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
4617
4618 /*
4619  *  Fix Command Arguments for Math_Exception
4620  */
4621 static const char* apzMath_ExceptionPatch[] = {
4622     "wrap",
4623     "#ifdef __cplusplus\n\
4624 #define exception __math_exception\n\
4625 #endif\n",
4626     "#ifdef __cplusplus\n\
4627 #undef exception\n\
4628 #endif\n",
4629     (char*)NULL };
4630
4631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4632  *
4633  *  Description of Math_Huge_Val_From_Dbl_Max fix
4634  */
4635 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4636      "math_huge_val_from_dbl_max";
4637
4638 /*
4639  *  File name selection pattern
4640  */
4641 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4642   "math.h\0";
4643 /*
4644  *  Machine/OS name selection pattern
4645  */
4646 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4647
4648 /*
4649  *  content selection pattern - do fix if pattern found
4650  */
4651 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4652        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4653
4654 /*
4655  *  content bypass pattern - skip fix if pattern found
4656  */
4657 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4658        "define[ \t]+DBL_MAX";
4659
4660 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
4661 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4662   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4663   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4664
4665 /*
4666  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4667  */
4668 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4669     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4670 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4671 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4672 \telse cat\n\
4673 \tfi",
4674     (char*)NULL };
4675
4676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4677  *
4678  *  Description of Nested_Auth_Des fix
4679  */
4680 tSCC zNested_Auth_DesName[] =
4681      "nested_auth_des";
4682
4683 /*
4684  *  File name selection pattern
4685  */
4686 tSCC zNested_Auth_DesList[] =
4687   "rpc/rpc.h\0";
4688 /*
4689  *  Machine/OS name selection pattern
4690  */
4691 #define apzNested_Auth_DesMachs (const char**)NULL
4692
4693 /*
4694  *  content selection pattern - do fix if pattern found
4695  */
4696 tSCC zNested_Auth_DesSelect0[] =
4697        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4698
4699 #define    NESTED_AUTH_DES_TEST_CT  1
4700 static tTestDesc aNested_Auth_DesTests[] = {
4701   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4702
4703 /*
4704  *  Fix Command Arguments for Nested_Auth_Des
4705  */
4706 static const char* apzNested_Auth_DesPatch[] = {
4707     "format",
4708     "%1*/ /*",
4709     (char*)NULL };
4710
4711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4712  *
4713  *  Description of Nested_Motorola fix
4714  */
4715 tSCC zNested_MotorolaName[] =
4716      "nested_motorola";
4717
4718 /*
4719  *  File name selection pattern
4720  */
4721 tSCC zNested_MotorolaList[] =
4722   "sys/limits.h\0limits.h\0";
4723 /*
4724  *  Machine/OS name selection pattern
4725  */
4726 tSCC* apzNested_MotorolaMachs[] = {
4727         "m68k-motorola-sysv*",
4728         (const char*)NULL };
4729
4730 /*
4731  *  content selection pattern - do fix if pattern found
4732  */
4733 tSCC zNested_MotorolaSelect0[] =
4734        "max # bytes atomic in write|error value returned by Math lib";
4735
4736 #define    NESTED_MOTOROLA_TEST_CT  1
4737 static tTestDesc aNested_MotorolaTests[] = {
4738   { TT_EGREP,    zNested_MotorolaSelect0, (regex_t*)NULL }, };
4739
4740 /*
4741  *  Fix Command Arguments for Nested_Motorola
4742  */
4743 static const char* apzNested_MotorolaPatch[] = { "sed",
4744     "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4745     "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4746     (char*)NULL };
4747
4748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4749  *
4750  *  Description of Nested_Sys_Limits fix
4751  */
4752 tSCC zNested_Sys_LimitsName[] =
4753      "nested_sys_limits";
4754
4755 /*
4756  *  File name selection pattern
4757  */
4758 tSCC zNested_Sys_LimitsList[] =
4759   "sys/limits.h\0";
4760 /*
4761  *  Machine/OS name selection pattern
4762  */
4763 #define apzNested_Sys_LimitsMachs (const char**)NULL
4764
4765 /*
4766  *  content selection pattern - do fix if pattern found
4767  */
4768 tSCC zNested_Sys_LimitsSelect0[] =
4769        "CHILD_MAX";
4770
4771 #define    NESTED_SYS_LIMITS_TEST_CT  1
4772 static tTestDesc aNested_Sys_LimitsTests[] = {
4773   { TT_EGREP,    zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4774
4775 /*
4776  *  Fix Command Arguments for Nested_Sys_Limits
4777  */
4778 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4779     "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4780     "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4781     (char*)NULL };
4782
4783 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4784  *
4785  *  Description of Netbsd_C99_Inline_1 fix
4786  */
4787 tSCC zNetbsd_C99_Inline_1Name[] =
4788      "netbsd_c99_inline_1";
4789
4790 /*
4791  *  File name selection pattern
4792  */
4793 tSCC zNetbsd_C99_Inline_1List[] =
4794   "signal.h\0";
4795 /*
4796  *  Machine/OS name selection pattern
4797  */
4798 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4799         "*-*-netbsd*",
4800         (const char*)NULL };
4801
4802 /*
4803  *  content selection pattern - do fix if pattern found
4804  */
4805 tSCC zNetbsd_C99_Inline_1Select0[] =
4806        "extern __inline int";
4807
4808 #define    NETBSD_C99_INLINE_1_TEST_CT  1
4809 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4810   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4811
4812 /*
4813  *  Fix Command Arguments for Netbsd_C99_Inline_1
4814  */
4815 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4816     "format",
4817     "extern\n\
4818 #ifdef __GNUC_STDC_INLINE__\n\
4819 __attribute__((__gnu_inline__))\n\
4820 #endif\n\
4821 __inline int",
4822     (char*)NULL };
4823
4824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4825  *
4826  *  Description of Netbsd_C99_Inline_2 fix
4827  */
4828 tSCC zNetbsd_C99_Inline_2Name[] =
4829      "netbsd_c99_inline_2";
4830
4831 /*
4832  *  File name selection pattern
4833  */
4834 tSCC zNetbsd_C99_Inline_2List[] =
4835   "signal.h\0";
4836 /*
4837  *  Machine/OS name selection pattern
4838  */
4839 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4840         "*-*-netbsd*",
4841         (const char*)NULL };
4842
4843 /*
4844  *  content selection pattern - do fix if pattern found
4845  */
4846 tSCC zNetbsd_C99_Inline_2Select0[] =
4847        "#define _SIGINLINE extern __inline";
4848
4849 #define    NETBSD_C99_INLINE_2_TEST_CT  1
4850 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4851   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4852
4853 /*
4854  *  Fix Command Arguments for Netbsd_C99_Inline_2
4855  */
4856 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4857     "format",
4858     "#ifdef __GNUC_STDC_INLINE__\n\
4859 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4860 #else\n\
4861 %0\n\
4862 #endif",
4863     (char*)NULL };
4864
4865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4866  *
4867  *  Description of Netbsd_Extra_Semicolon fix
4868  */
4869 tSCC zNetbsd_Extra_SemicolonName[] =
4870      "netbsd_extra_semicolon";
4871
4872 /*
4873  *  File name selection pattern
4874  */
4875 tSCC zNetbsd_Extra_SemicolonList[] =
4876   "sys/cdefs.h\0";
4877 /*
4878  *  Machine/OS name selection pattern
4879  */
4880 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4881         "*-*-netbsd*",
4882         (const char*)NULL };
4883
4884 /*
4885  *  content selection pattern - do fix if pattern found
4886  */
4887 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4888        "#define[ \t]*__END_DECLS[ \t]*};";
4889
4890 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
4891 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4892   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4893
4894 /*
4895  *  Fix Command Arguments for Netbsd_Extra_Semicolon
4896  */
4897 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4898     "format",
4899     "#define __END_DECLS }",
4900     (char*)NULL };
4901
4902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4903  *
4904  *  Description of Next_Math_Prefix fix
4905  */
4906 tSCC zNext_Math_PrefixName[] =
4907      "next_math_prefix";
4908
4909 /*
4910  *  File name selection pattern
4911  */
4912 tSCC zNext_Math_PrefixList[] =
4913   "ansi/math.h\0";
4914 /*
4915  *  Machine/OS name selection pattern
4916  */
4917 #define apzNext_Math_PrefixMachs (const char**)NULL
4918
4919 /*
4920  *  content selection pattern - do fix if pattern found
4921  */
4922 tSCC zNext_Math_PrefixSelect0[] =
4923        "^extern[ \t]+double[ \t]+__const__[ \t]";
4924
4925 #define    NEXT_MATH_PREFIX_TEST_CT  1
4926 static tTestDesc aNext_Math_PrefixTests[] = {
4927   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4928
4929 /*
4930  *  Fix Command Arguments for Next_Math_Prefix
4931  */
4932 static const char* apzNext_Math_PrefixPatch[] = {
4933     "format",
4934     "extern double %1(",
4935     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4936     (char*)NULL };
4937
4938 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4939  *
4940  *  Description of Next_Template fix
4941  */
4942 tSCC zNext_TemplateName[] =
4943      "next_template";
4944
4945 /*
4946  *  File name selection pattern
4947  */
4948 tSCC zNext_TemplateList[] =
4949   "bsd/libc.h\0";
4950 /*
4951  *  Machine/OS name selection pattern
4952  */
4953 #define apzNext_TemplateMachs (const char**)NULL
4954
4955 /*
4956  *  content selection pattern - do fix if pattern found
4957  */
4958 tSCC zNext_TemplateSelect0[] =
4959        "[ \t]template\\)";
4960
4961 #define    NEXT_TEMPLATE_TEST_CT  1
4962 static tTestDesc aNext_TemplateTests[] = {
4963   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
4964
4965 /*
4966  *  Fix Command Arguments for Next_Template
4967  */
4968 static const char* apzNext_TemplatePatch[] = {
4969     "format",
4970     "(%1)",
4971     "\\(([^)]*)[ \t]template\\)",
4972     (char*)NULL };
4973
4974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4975  *
4976  *  Description of Next_Volitile fix
4977  */
4978 tSCC zNext_VolitileName[] =
4979      "next_volitile";
4980
4981 /*
4982  *  File name selection pattern
4983  */
4984 tSCC zNext_VolitileList[] =
4985   "ansi/stdlib.h\0";
4986 /*
4987  *  Machine/OS name selection pattern
4988  */
4989 #define apzNext_VolitileMachs (const char**)NULL
4990
4991 /*
4992  *  content selection pattern - do fix if pattern found
4993  */
4994 tSCC zNext_VolitileSelect0[] =
4995        "^extern[ \t]+volatile[ \t]+void[ \t]";
4996
4997 #define    NEXT_VOLITILE_TEST_CT  1
4998 static tTestDesc aNext_VolitileTests[] = {
4999   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5000
5001 /*
5002  *  Fix Command Arguments for Next_Volitile
5003  */
5004 static const char* apzNext_VolitilePatch[] = {
5005     "format",
5006     "extern void %1(",
5007     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5008     (char*)NULL };
5009
5010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5011  *
5012  *  Description of Next_Wait_Union fix
5013  */
5014 tSCC zNext_Wait_UnionName[] =
5015      "next_wait_union";
5016
5017 /*
5018  *  File name selection pattern
5019  */
5020 tSCC zNext_Wait_UnionList[] =
5021   "sys/wait.h\0";
5022 /*
5023  *  Machine/OS name selection pattern
5024  */
5025 #define apzNext_Wait_UnionMachs (const char**)NULL
5026
5027 /*
5028  *  content selection pattern - do fix if pattern found
5029  */
5030 tSCC zNext_Wait_UnionSelect0[] =
5031        "wait\\(union wait";
5032
5033 #define    NEXT_WAIT_UNION_TEST_CT  1
5034 static tTestDesc aNext_Wait_UnionTests[] = {
5035   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5036
5037 /*
5038  *  Fix Command Arguments for Next_Wait_Union
5039  */
5040 static const char* apzNext_Wait_UnionPatch[] = {
5041     "format",
5042     "wait(void",
5043     (char*)NULL };
5044
5045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5046  *
5047  *  Description of Nodeent_Syntax fix
5048  */
5049 tSCC zNodeent_SyntaxName[] =
5050      "nodeent_syntax";
5051
5052 /*
5053  *  File name selection pattern
5054  */
5055 tSCC zNodeent_SyntaxList[] =
5056   "netdnet/dnetdb.h\0";
5057 /*
5058  *  Machine/OS name selection pattern
5059  */
5060 #define apzNodeent_SyntaxMachs (const char**)NULL
5061
5062 /*
5063  *  content selection pattern - do fix if pattern found
5064  */
5065 tSCC zNodeent_SyntaxSelect0[] =
5066        "char[ \t]*\\*na_addr[ \t]*$";
5067
5068 #define    NODEENT_SYNTAX_TEST_CT  1
5069 static tTestDesc aNodeent_SyntaxTests[] = {
5070   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5071
5072 /*
5073  *  Fix Command Arguments for Nodeent_Syntax
5074  */
5075 static const char* apzNodeent_SyntaxPatch[] = {
5076     "format",
5077     "%0;",
5078     (char*)NULL };
5079
5080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5081  *
5082  *  Description of Obstack_Lvalue_Cast fix
5083  */
5084 tSCC zObstack_Lvalue_CastName[] =
5085      "obstack_lvalue_cast";
5086
5087 /*
5088  *  File name selection pattern
5089  */
5090 tSCC zObstack_Lvalue_CastList[] =
5091   "obstack.h\0";
5092 /*
5093  *  Machine/OS name selection pattern
5094  */
5095 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5096
5097 /*
5098  *  content selection pattern - do fix if pattern found
5099  */
5100 tSCC zObstack_Lvalue_CastSelect0[] =
5101        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5102
5103 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5104 static tTestDesc aObstack_Lvalue_CastTests[] = {
5105   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5106
5107 /*
5108  *  Fix Command Arguments for Obstack_Lvalue_Cast
5109  */
5110 static const char* apzObstack_Lvalue_CastPatch[] = {
5111     "format",
5112     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5113     (char*)NULL };
5114
5115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5116  *
5117  *  Description of Osf_Namespace_A fix
5118  */
5119 tSCC zOsf_Namespace_AName[] =
5120      "osf_namespace_a";
5121
5122 /*
5123  *  File name selection pattern
5124  */
5125 tSCC zOsf_Namespace_AList[] =
5126   "reg_types.h\0sys/lc_core.h\0";
5127 /*
5128  *  Machine/OS name selection pattern
5129  */
5130 #define apzOsf_Namespace_AMachs (const char**)NULL
5131
5132 /*
5133  *  perform the 'test' shell command - do fix on success
5134  */
5135 tSCC zOsf_Namespace_ATest0[] =
5136        " -r reg_types.h";
5137 tSCC zOsf_Namespace_ATest1[] =
5138        " -r sys/lc_core.h";
5139 tSCC zOsf_Namespace_ATest2[] =
5140        " -n \"`grep '} regex_t;' reg_types.h`\"";
5141 tSCC zOsf_Namespace_ATest3[] =
5142        " -z \"`grep __regex_t regex.h`\"";
5143
5144 #define    OSF_NAMESPACE_A_TEST_CT  4
5145 static tTestDesc aOsf_Namespace_ATests[] = {
5146   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5147   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5148   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5149   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5150
5151 /*
5152  *  Fix Command Arguments for Osf_Namespace_A
5153  */
5154 static const char* apzOsf_Namespace_APatch[] = {
5155     "format",
5156     "__%0",
5157     "reg(ex|off|match)_t",
5158     (char*)NULL };
5159
5160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5161  *
5162  *  Description of Osf_Namespace_C fix
5163  */
5164 tSCC zOsf_Namespace_CName[] =
5165      "osf_namespace_c";
5166
5167 /*
5168  *  File name selection pattern
5169  */
5170 tSCC zOsf_Namespace_CList[] =
5171   "regex.h\0";
5172 /*
5173  *  Machine/OS name selection pattern
5174  */
5175 #define apzOsf_Namespace_CMachs (const char**)NULL
5176
5177 /*
5178  *  content selection pattern - do fix if pattern found
5179  */
5180 tSCC zOsf_Namespace_CSelect0[] =
5181        "#include <reg_types.h>.*";
5182
5183 /*
5184  *  perform the 'test' shell command - do fix on success
5185  */
5186 tSCC zOsf_Namespace_CTest0[] =
5187        " -r reg_types.h";
5188 tSCC zOsf_Namespace_CTest1[] =
5189        " -r sys/lc_core.h";
5190 tSCC zOsf_Namespace_CTest2[] =
5191        " -n \"`grep '} regex_t;' reg_types.h`\"";
5192 tSCC zOsf_Namespace_CTest3[] =
5193        " -z \"`grep __regex_t regex.h`\"";
5194
5195 #define    OSF_NAMESPACE_C_TEST_CT  5
5196 static tTestDesc aOsf_Namespace_CTests[] = {
5197   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
5198   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
5199   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
5200   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
5201   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5202
5203 /*
5204  *  Fix Command Arguments for Osf_Namespace_C
5205  */
5206 static const char* apzOsf_Namespace_CPatch[] = {
5207     "format",
5208     "%0\n\
5209 typedef __regex_t\tregex_t;\n\
5210 typedef __regoff_t\tregoff_t;\n\
5211 typedef __regmatch_t\tregmatch_t;",
5212     (char*)NULL };
5213
5214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5215  *
5216  *  Description of Pthread_Page_Size fix
5217  */
5218 tSCC zPthread_Page_SizeName[] =
5219      "pthread_page_size";
5220
5221 /*
5222  *  File name selection pattern
5223  */
5224 tSCC zPthread_Page_SizeList[] =
5225   "pthread.h\0";
5226 /*
5227  *  Machine/OS name selection pattern
5228  */
5229 #define apzPthread_Page_SizeMachs (const char**)NULL
5230
5231 /*
5232  *  content selection pattern - do fix if pattern found
5233  */
5234 tSCC zPthread_Page_SizeSelect0[] =
5235        "^int __page_size";
5236
5237 #define    PTHREAD_PAGE_SIZE_TEST_CT  1
5238 static tTestDesc aPthread_Page_SizeTests[] = {
5239   { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
5240
5241 /*
5242  *  Fix Command Arguments for Pthread_Page_Size
5243  */
5244 static const char* apzPthread_Page_SizePatch[] = {
5245     "format",
5246     "extern %0",
5247     (char*)NULL };
5248
5249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5250  *
5251  *  Description of Pthread_Incomplete_Struct_Argument fix
5252  */
5253 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5254      "pthread_incomplete_struct_argument";
5255
5256 /*
5257  *  File name selection pattern
5258  */
5259 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5260   "pthread.h\0";
5261 /*
5262  *  Machine/OS name selection pattern
5263  */
5264 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5265
5266 /*
5267  *  content selection pattern - do fix if pattern found
5268  */
5269 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5270        "struct __jmp_buf_tag";
5271
5272 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
5273 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5274   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5275
5276 /*
5277  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5278  */
5279 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5280     "format",
5281     "%1 *%2%3",
5282     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5283     (char*)NULL };
5284
5285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5286  *
5287  *  Description of Read_Ret_Type fix
5288  */
5289 tSCC zRead_Ret_TypeName[] =
5290      "read_ret_type";
5291
5292 /*
5293  *  File name selection pattern
5294  */
5295 tSCC zRead_Ret_TypeList[] =
5296   "stdio.h\0";
5297 /*
5298  *  Machine/OS name selection pattern
5299  */
5300 #define apzRead_Ret_TypeMachs (const char**)NULL
5301
5302 /*
5303  *  content selection pattern - do fix if pattern found
5304  */
5305 tSCC zRead_Ret_TypeSelect0[] =
5306        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5307
5308 #define    READ_RET_TYPE_TEST_CT  1
5309 static tTestDesc aRead_Ret_TypeTests[] = {
5310   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5311
5312 /*
5313  *  Fix Command Arguments for Read_Ret_Type
5314  */
5315 static const char* apzRead_Ret_TypePatch[] = {
5316     "format",
5317     "extern unsigned int fread(), fwrite();\n\
5318 %1%2",
5319     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5320     (char*)NULL };
5321
5322 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5323  *
5324  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
5325  */
5326 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5327      "rpc_xdr_lvalue_cast_a";
5328
5329 /*
5330  *  File name selection pattern
5331  */
5332 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5333   "rpc/xdr.h\0";
5334 /*
5335  *  Machine/OS name selection pattern
5336  */
5337 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5338
5339 /*
5340  *  content selection pattern - do fix if pattern found
5341  */
5342 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5343        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5344 .*__extension__.*";
5345
5346 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5347 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5348   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5349
5350 /*
5351  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5352  */
5353 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5354     "format",
5355     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5356     (char*)NULL };
5357
5358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5359  *
5360  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5361  */
5362 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5363      "rpc_xdr_lvalue_cast_b";
5364
5365 /*
5366  *  File name selection pattern
5367  */
5368 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5369   "rpc/xdr.h\0";
5370 /*
5371  *  Machine/OS name selection pattern
5372  */
5373 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5374
5375 /*
5376  *  content selection pattern - do fix if pattern found
5377  */
5378 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5379        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5380 .*__extension__.*";
5381
5382 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
5383 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5384   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5385
5386 /*
5387  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5388  */
5389 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5390     "format",
5391     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5392     (char*)NULL };
5393
5394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5395  *
5396  *  Description of Rs6000_Double fix
5397  */
5398 tSCC zRs6000_DoubleName[] =
5399      "rs6000_double";
5400
5401 /*
5402  *  File name selection pattern
5403  */
5404 tSCC zRs6000_DoubleList[] =
5405   "math.h\0";
5406 /*
5407  *  Machine/OS name selection pattern
5408  */
5409 #define apzRs6000_DoubleMachs (const char**)NULL
5410
5411 /*
5412  *  content selection pattern - do fix if pattern found
5413  */
5414 tSCC zRs6000_DoubleSelect0[] =
5415        "[^a-zA-Z_]class\\(";
5416
5417 #define    RS6000_DOUBLE_TEST_CT  1
5418 static tTestDesc aRs6000_DoubleTests[] = {
5419   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5420
5421 /*
5422  *  Fix Command Arguments for Rs6000_Double
5423  */
5424 static const char* apzRs6000_DoublePatch[] = {
5425     "format",
5426     "#ifndef __cplusplus\n\
5427 %0\n\
5428 #endif",
5429     "^.*[^a-zA-Z_]class\\(.*",
5430     (char*)NULL };
5431
5432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5433  *
5434  *  Description of Rs6000_Fchmod fix
5435  */
5436 tSCC zRs6000_FchmodName[] =
5437      "rs6000_fchmod";
5438
5439 /*
5440  *  File name selection pattern
5441  */
5442 tSCC zRs6000_FchmodList[] =
5443   "sys/stat.h\0";
5444 /*
5445  *  Machine/OS name selection pattern
5446  */
5447 #define apzRs6000_FchmodMachs (const char**)NULL
5448
5449 /*
5450  *  content selection pattern - do fix if pattern found
5451  */
5452 tSCC zRs6000_FchmodSelect0[] =
5453        "fchmod\\(char \\*";
5454
5455 #define    RS6000_FCHMOD_TEST_CT  1
5456 static tTestDesc aRs6000_FchmodTests[] = {
5457   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5458
5459 /*
5460  *  Fix Command Arguments for Rs6000_Fchmod
5461  */
5462 static const char* apzRs6000_FchmodPatch[] = {
5463     "format",
5464     "fchmod(int",
5465     (char*)NULL };
5466
5467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5468  *
5469  *  Description of Rs6000_Param fix
5470  */
5471 tSCC zRs6000_ParamName[] =
5472      "rs6000_param";
5473
5474 /*
5475  *  File name selection pattern
5476  */
5477 tSCC zRs6000_ParamList[] =
5478   "stdio.h\0unistd.h\0";
5479 /*
5480  *  Machine/OS name selection pattern
5481  */
5482 #define apzRs6000_ParamMachs (const char**)NULL
5483
5484 /*
5485  *  content selection pattern - do fix if pattern found
5486  */
5487 tSCC zRs6000_ParamSelect0[] =
5488        "rename\\(const char \\*old, const char \\*new\\)";
5489
5490 #define    RS6000_PARAM_TEST_CT  1
5491 static tTestDesc aRs6000_ParamTests[] = {
5492   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
5493
5494 /*
5495  *  Fix Command Arguments for Rs6000_Param
5496  */
5497 static const char* apzRs6000_ParamPatch[] = {
5498     "format",
5499     "rename(const char *_old, const char *_new)",
5500     (char*)NULL };
5501
5502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5503  *
5504  *  Description of Sco_Math fix
5505  */
5506 tSCC zSco_MathName[] =
5507      "sco_math";
5508
5509 /*
5510  *  File name selection pattern
5511  */
5512 tSCC zSco_MathList[] =
5513   "math.h\0*/math.h\0";
5514 /*
5515  *  Machine/OS name selection pattern
5516  */
5517 #define apzSco_MathMachs (const char**)NULL
5518
5519 /*
5520  *  content selection pattern - do fix if pattern found
5521  */
5522 tSCC zSco_MathSelect0[] =
5523        "inline double abs";
5524
5525 /*
5526  *  content bypass pattern - skip fix if pattern found
5527  */
5528 tSCC zSco_MathBypass0[] =
5529        "__GNUG__";
5530
5531 #define    SCO_MATH_TEST_CT  2
5532 static tTestDesc aSco_MathTests[] = {
5533   { TT_NEGREP,   zSco_MathBypass0, (regex_t*)NULL },
5534   { TT_EGREP,    zSco_MathSelect0, (regex_t*)NULL }, };
5535
5536 /*
5537  *  Fix Command Arguments for Sco_Math
5538  */
5539 static const char* apzSco_MathPatch[] = { "sed",
5540     "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5541 #ifndef __GNUC__\n",
5542     "-e", "/.*__builtin_generic/a\\\n\
5543 #else\\\n\
5544 #define __fp_class(a) \\\\\\\n\
5545   __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5546    __fpclassifyl(a), \\\\\\\n\
5547     __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5548       __fpclassifyf(a),__fpclassify(a)))\\\n\
5549 #endif",
5550     "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5551 #ifndef __GNUC__\n",
5552     "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5553 #endif /* ! __GNUC__ */",
5554     (char*)NULL };
5555
5556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5557  *
5558  *  Description of Sco_Regset fix
5559  */
5560 tSCC zSco_RegsetName[] =
5561      "sco_regset";
5562
5563 /*
5564  *  File name selection pattern
5565  */
5566 tSCC zSco_RegsetList[] =
5567   "sys/regset.h\0";
5568 /*
5569  *  Machine/OS name selection pattern
5570  */
5571 tSCC* apzSco_RegsetMachs[] = {
5572         "*-*-sco3.2v5*",
5573         (const char*)NULL };
5574
5575 /*
5576  *  content selection pattern - do fix if pattern found
5577  */
5578 tSCC zSco_RegsetSelect0[] =
5579        "(struct[ \t]+.*)fpstate";
5580
5581 #define    SCO_REGSET_TEST_CT  1
5582 static tTestDesc aSco_RegsetTests[] = {
5583   { TT_EGREP,    zSco_RegsetSelect0, (regex_t*)NULL }, };
5584
5585 /*
5586  *  Fix Command Arguments for Sco_Regset
5587  */
5588 static const char* apzSco_RegsetPatch[] = {
5589     "format",
5590     "%1rsfpstate",
5591     (char*)NULL };
5592
5593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5594  *
5595  *  Description of Sco_Static_Func fix
5596  */
5597 tSCC zSco_Static_FuncName[] =
5598      "sco_static_func";
5599
5600 /*
5601  *  File name selection pattern
5602  */
5603 tSCC zSco_Static_FuncList[] =
5604   "sys/stat.h\0";
5605 /*
5606  *  Machine/OS name selection pattern
5607  */
5608 tSCC* apzSco_Static_FuncMachs[] = {
5609         "i?86-*-sco3.2*",
5610         (const char*)NULL };
5611
5612 /*
5613  *  content selection pattern - do fix if pattern found
5614  */
5615 tSCC zSco_Static_FuncSelect0[] =
5616        "^static int";
5617
5618 #define    SCO_STATIC_FUNC_TEST_CT  1
5619 static tTestDesc aSco_Static_FuncTests[] = {
5620   { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5621
5622 /*
5623  *  Fix Command Arguments for Sco_Static_Func
5624  */
5625 static const char* apzSco_Static_FuncPatch[] = { "sed",
5626     "-e", "/^static int/i\\\n\
5627 #if __cplusplus\\\n\
5628 extern \"C\" {\\\n\
5629 #endif /* __cplusplus */",
5630     "-e", "/^}$/a\\\n\
5631 #if __cplusplus\\\n\
5632  }\\\n\
5633 #endif /* __cplusplus */",
5634     (char*)NULL };
5635
5636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5637  *
5638  *  Description of Sco_Utime fix
5639  */
5640 tSCC zSco_UtimeName[] =
5641      "sco_utime";
5642
5643 /*
5644  *  File name selection pattern
5645  */
5646 tSCC zSco_UtimeList[] =
5647   "sys/times.h\0";
5648 /*
5649  *  Machine/OS name selection pattern
5650  */
5651 tSCC* apzSco_UtimeMachs[] = {
5652         "i?86-*-sco3.2v4*",
5653         (const char*)NULL };
5654
5655 /*
5656  *  content selection pattern - do fix if pattern found
5657  */
5658 tSCC zSco_UtimeSelect0[] =
5659        "\\(const char \\*, struct utimbuf \\*\\);";
5660
5661 #define    SCO_UTIME_TEST_CT  1
5662 static tTestDesc aSco_UtimeTests[] = {
5663   { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };
5664
5665 /*
5666  *  Fix Command Arguments for Sco_Utime
5667  */
5668 static const char* apzSco_UtimePatch[] = {
5669     "format",
5670     "(const char *, const struct utimbuf *);",
5671     (char*)NULL };
5672
5673 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5674  *
5675  *  Description of Solaris_Math_1 fix
5676  */
5677 tSCC zSolaris_Math_1Name[] =
5678      "solaris_math_1";
5679
5680 /*
5681  *  File name selection pattern
5682  */
5683 tSCC zSolaris_Math_1List[] =
5684   "iso/math_c99.h\0";
5685 /*
5686  *  Machine/OS name selection pattern
5687  */
5688 #define apzSolaris_Math_1Machs (const char**)NULL
5689
5690 /*
5691  *  content selection pattern - do fix if pattern found
5692  */
5693 tSCC zSolaris_Math_1Select0[] =
5694        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5695
5696 /*
5697  *  content bypass pattern - skip fix if pattern found
5698  */
5699 tSCC zSolaris_Math_1Bypass0[] =
5700        "__GNUC__";
5701
5702 #define    SOLARIS_MATH_1_TEST_CT  2
5703 static tTestDesc aSolaris_Math_1Tests[] = {
5704   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
5705   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
5706
5707 /*
5708  *  Fix Command Arguments for Solaris_Math_1
5709  */
5710 static const char* apzSolaris_Math_1Patch[] = {
5711     "format",
5712     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5713     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5714     (char*)NULL };
5715
5716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5717  *
5718  *  Description of Solaris_Math_2 fix
5719  */
5720 tSCC zSolaris_Math_2Name[] =
5721      "solaris_math_2";
5722
5723 /*
5724  *  File name selection pattern
5725  */
5726 tSCC zSolaris_Math_2List[] =
5727   "iso/math_c99.h\0";
5728 /*
5729  *  Machine/OS name selection pattern
5730  */
5731 #define apzSolaris_Math_2Machs (const char**)NULL
5732
5733 /*
5734  *  content selection pattern - do fix if pattern found
5735  */
5736 tSCC zSolaris_Math_2Select0[] =
5737        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5738
5739 /*
5740  *  content bypass pattern - skip fix if pattern found
5741  */
5742 tSCC zSolaris_Math_2Bypass0[] =
5743        "__GNUC__";
5744
5745 #define    SOLARIS_MATH_2_TEST_CT  2
5746 static tTestDesc aSolaris_Math_2Tests[] = {
5747   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
5748   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
5749
5750 /*
5751  *  Fix Command Arguments for Solaris_Math_2
5752  */
5753 static const char* apzSolaris_Math_2Patch[] = {
5754     "format",
5755     "#define\tINFINITY\t(__builtin_inff())",
5756     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5757     (char*)NULL };
5758
5759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5760  *
5761  *  Description of Solaris_Math_3 fix
5762  */
5763 tSCC zSolaris_Math_3Name[] =
5764      "solaris_math_3";
5765
5766 /*
5767  *  File name selection pattern
5768  */
5769 tSCC zSolaris_Math_3List[] =
5770   "iso/math_c99.h\0";
5771 /*
5772  *  Machine/OS name selection pattern
5773  */
5774 #define apzSolaris_Math_3Machs (const char**)NULL
5775
5776 /*
5777  *  content selection pattern - do fix if pattern found
5778  */
5779 tSCC zSolaris_Math_3Select0[] =
5780        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5781
5782 /*
5783  *  content bypass pattern - skip fix if pattern found
5784  */
5785 tSCC zSolaris_Math_3Bypass0[] =
5786        "__GNUC__";
5787
5788 #define    SOLARIS_MATH_3_TEST_CT  2
5789 static tTestDesc aSolaris_Math_3Tests[] = {
5790   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
5791   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
5792
5793 /*
5794  *  Fix Command Arguments for Solaris_Math_3
5795  */
5796 static const char* apzSolaris_Math_3Patch[] = {
5797     "format",
5798     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5799     "^#define[ \t]+NAN[ \t]+__builtin_nan",
5800     (char*)NULL };
5801
5802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5803  *
5804  *  Description of Solaris_Math_4 fix
5805  */
5806 tSCC zSolaris_Math_4Name[] =
5807      "solaris_math_4";
5808
5809 /*
5810  *  File name selection pattern
5811  */
5812 tSCC zSolaris_Math_4List[] =
5813   "iso/math_c99.h\0";
5814 /*
5815  *  Machine/OS name selection pattern
5816  */
5817 #define apzSolaris_Math_4Machs (const char**)NULL
5818
5819 /*
5820  *  content selection pattern - do fix if pattern found
5821  */
5822 tSCC zSolaris_Math_4Select0[] =
5823        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5824
5825 /*
5826  *  content bypass pattern - skip fix if pattern found
5827  */
5828 tSCC zSolaris_Math_4Bypass0[] =
5829        "__GNUC__";
5830
5831 #define    SOLARIS_MATH_4_TEST_CT  2
5832 static tTestDesc aSolaris_Math_4Tests[] = {
5833   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
5834   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
5835
5836 /*
5837  *  Fix Command Arguments for Solaris_Math_4
5838  */
5839 static const char* apzSolaris_Math_4Patch[] = {
5840     "format",
5841     "#define\tfpclassify(x) \\\n\
5842   __extension__ ({ const __typeof(x) __x_fp = (x); \\\n\
5843 \t\t   isnan(__x_fp) \\\n\
5844 \t\t     ? FP_NAN \\\n\
5845 \t\t     : isinf(__x_fp) \\\n\
5846 \t\t       ? FP_INFINITE \\\n\
5847 \t\t       : isnormal(__x_fp) \\\n\
5848 \t\t\t ? FP_NORMAL \\\n\
5849 \t\t\t : __x_fp == 0.0 \\\n\
5850 \t\t\t   ? FP_ZERO \\\n\
5851 \t\t\t   : FP_SUBNORMAL; })",
5852     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5853     (char*)NULL };
5854
5855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5856  *
5857  *  Description of Solaris_Math_8 fix
5858  */
5859 tSCC zSolaris_Math_8Name[] =
5860      "solaris_math_8";
5861
5862 /*
5863  *  File name selection pattern
5864  */
5865 tSCC zSolaris_Math_8List[] =
5866   "iso/math_c99.h\0";
5867 /*
5868  *  Machine/OS name selection pattern
5869  */
5870 #define apzSolaris_Math_8Machs (const char**)NULL
5871
5872 /*
5873  *  content selection pattern - do fix if pattern found
5874  */
5875 tSCC zSolaris_Math_8Select0[] =
5876        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5877
5878 /*
5879  *  content bypass pattern - skip fix if pattern found
5880  */
5881 tSCC zSolaris_Math_8Bypass0[] =
5882        "__GNUC__";
5883
5884 #define    SOLARIS_MATH_8_TEST_CT  2
5885 static tTestDesc aSolaris_Math_8Tests[] = {
5886   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
5887   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
5888
5889 /*
5890  *  Fix Command Arguments for Solaris_Math_8
5891  */
5892 static const char* apzSolaris_Math_8Patch[] = {
5893     "format",
5894     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5895 \t\t\t   ? __builtin_signbitf(x) \\\n\
5896 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
5897 \t\t\t     ? __builtin_signbitl(x) \\\n\
5898 \t\t\t     : __builtin_signbit(x))",
5899     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5900     (char*)NULL };
5901
5902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5903  *
5904  *  Description of Solaris_Math_9 fix
5905  */
5906 tSCC zSolaris_Math_9Name[] =
5907      "solaris_math_9";
5908
5909 /*
5910  *  File name selection pattern
5911  */
5912 tSCC zSolaris_Math_9List[] =
5913   "iso/math_c99.h\0";
5914 /*
5915  *  Machine/OS name selection pattern
5916  */
5917 #define apzSolaris_Math_9Machs (const char**)NULL
5918
5919 /*
5920  *  content selection pattern - do fix if pattern found
5921  */
5922 tSCC zSolaris_Math_9Select0[] =
5923        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5924
5925 /*
5926  *  content bypass pattern - skip fix if pattern found
5927  */
5928 tSCC zSolaris_Math_9Bypass0[] =
5929        "__GNUC__";
5930
5931 #define    SOLARIS_MATH_9_TEST_CT  2
5932 static tTestDesc aSolaris_Math_9Tests[] = {
5933   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
5934   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
5935
5936 /*
5937  *  Fix Command Arguments for Solaris_Math_9
5938  */
5939 static const char* apzSolaris_Math_9Patch[] = {
5940     "format",
5941     "#define\t%1(x, y)%2__builtin_%1(x, y)",
5942     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5943     (char*)NULL };
5944
5945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5946  *
5947  *  Description of Solaris_Math_10 fix
5948  */
5949 tSCC zSolaris_Math_10Name[] =
5950      "solaris_math_10";
5951
5952 /*
5953  *  File name selection pattern
5954  */
5955 tSCC zSolaris_Math_10List[] =
5956   "iso/math_c99.h\0";
5957 /*
5958  *  Machine/OS name selection pattern
5959  */
5960 #define apzSolaris_Math_10Machs (const char**)NULL
5961
5962 /*
5963  *  content selection pattern - do fix if pattern found
5964  */
5965 tSCC zSolaris_Math_10Select0[] =
5966        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5967
5968 #define    SOLARIS_MATH_10_TEST_CT  1
5969 static tTestDesc aSolaris_Math_10Tests[] = {
5970   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
5971
5972 /*
5973  *  Fix Command Arguments for Solaris_Math_10
5974  */
5975 static const char* apzSolaris_Math_10Patch[] = {
5976     "format",
5977     "#define\tisinf(x) __builtin_isinf(x)",
5978     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5979 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5980 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5981 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5982     (char*)NULL };
5983
5984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5985  *
5986  *  Description of Solaris_Mutex_Init_1 fix
5987  */
5988 tSCC zSolaris_Mutex_Init_1Name[] =
5989      "solaris_mutex_init_1";
5990
5991 /*
5992  *  File name selection pattern
5993  */
5994 tSCC zSolaris_Mutex_Init_1List[] =
5995   "pthread.h\0";
5996 /*
5997  *  Machine/OS name selection pattern
5998  */
5999 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
6000
6001 /*
6002  *  content selection pattern - do fix if pattern found
6003  */
6004 tSCC zSolaris_Mutex_Init_1Select0[] =
6005        "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
6006
6007 #define    SOLARIS_MUTEX_INIT_1_TEST_CT  1
6008 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
6009   { TT_EGREP,    zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
6010
6011 /*
6012  *  Fix Command Arguments for Solaris_Mutex_Init_1
6013  */
6014 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
6015     "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
6016 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
6017     (char*)NULL };
6018
6019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6020  *
6021  *  Description of Solaris_Mutex_Init_2 fix
6022  */
6023 tSCC zSolaris_Mutex_Init_2Name[] =
6024      "solaris_mutex_init_2";
6025
6026 /*
6027  *  File name selection pattern
6028  */
6029 tSCC zSolaris_Mutex_Init_2List[] =
6030   "pthread.h\0";
6031 /*
6032  *  Machine/OS name selection pattern
6033  */
6034 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6035         "*-*-solaris2.[0-9]",
6036         "*-*-solaris2.[0-9][!0-9]*",
6037         (const char*)NULL };
6038
6039 /*
6040  *  content selection pattern - do fix if pattern found
6041  */
6042 tSCC zSolaris_Mutex_Init_2Select0[] =
6043        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6044
6045 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
6046 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6047   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6048
6049 /*
6050  *  Fix Command Arguments for Solaris_Mutex_Init_2
6051  */
6052 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6053     "format",
6054     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6055 %0\n\
6056 #else\n\
6057 %1, {0}}%4\n\
6058 #endif",
6059     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6060 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6061     (char*)NULL };
6062
6063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6064  *
6065  *  Description of Solaris_Rwlock_Init_1 fix
6066  */
6067 tSCC zSolaris_Rwlock_Init_1Name[] =
6068      "solaris_rwlock_init_1";
6069
6070 /*
6071  *  File name selection pattern
6072  */
6073 tSCC zSolaris_Rwlock_Init_1List[] =
6074   "pthread.h\0";
6075 /*
6076  *  Machine/OS name selection pattern
6077  */
6078 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6079         "*-*-solaris*",
6080         (const char*)NULL };
6081
6082 /*
6083  *  content selection pattern - do fix if pattern found
6084  */
6085 tSCC zSolaris_Rwlock_Init_1Select0[] =
6086        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6087
6088 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
6089 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6090   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6091
6092 /*
6093  *  Fix Command Arguments for Solaris_Rwlock_Init_1
6094  */
6095 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6096     "format",
6097     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6098 %0\n\
6099 #else\n\
6100 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6101 #endif",
6102     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6103     (char*)NULL };
6104
6105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6106  *
6107  *  Description of Solaris_Once_Init_1 fix
6108  */
6109 tSCC zSolaris_Once_Init_1Name[] =
6110      "solaris_once_init_1";
6111
6112 /*
6113  *  File name selection pattern
6114  */
6115 tSCC zSolaris_Once_Init_1List[] =
6116   "pthread.h\0";
6117 /*
6118  *  Machine/OS name selection pattern
6119  */
6120 tSCC* apzSolaris_Once_Init_1Machs[] = {
6121         "*-*-solaris*",
6122         (const char*)NULL };
6123
6124 /*
6125  *  content selection pattern - do fix if pattern found
6126  */
6127 tSCC zSolaris_Once_Init_1Select0[] =
6128        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6129
6130 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6131 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6132   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6133
6134 /*
6135  *  Fix Command Arguments for Solaris_Once_Init_1
6136  */
6137 static const char* apzSolaris_Once_Init_1Patch[] = {
6138     "format",
6139     "%1{%2}%3",
6140     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6141     (char*)NULL };
6142
6143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6144  *
6145  *  Description of Solaris_Once_Init_2 fix
6146  */
6147 tSCC zSolaris_Once_Init_2Name[] =
6148      "solaris_once_init_2";
6149
6150 /*
6151  *  File name selection pattern
6152  */
6153 tSCC zSolaris_Once_Init_2List[] =
6154   "pthread.h\0";
6155 /*
6156  *  Machine/OS name selection pattern
6157  */
6158 tSCC* apzSolaris_Once_Init_2Machs[] = {
6159         "*-*-solaris2.[0-9]",
6160         "*-*-solaris2.[0-9][!0-9]*",
6161         (const char*)NULL };
6162
6163 /*
6164  *  content selection pattern - do fix if pattern found
6165  */
6166 tSCC zSolaris_Once_Init_2Select0[] =
6167        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6168
6169 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
6170 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6171   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6172
6173 /*
6174  *  Fix Command Arguments for Solaris_Once_Init_2
6175  */
6176 static const char* apzSolaris_Once_Init_2Patch[] = {
6177     "format",
6178     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6179 %0\n\
6180 #else\n\
6181 %1{0}, {0}, {0}, {%3}%4\n\
6182 #endif",
6183     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6184     (char*)NULL };
6185
6186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6187  *
6188  *  Description of Solaris_Socket fix
6189  */
6190 tSCC zSolaris_SocketName[] =
6191      "solaris_socket";
6192
6193 /*
6194  *  File name selection pattern
6195  */
6196 tSCC zSolaris_SocketList[] =
6197   "sys/socket.h\0";
6198 /*
6199  *  Machine/OS name selection pattern
6200  */
6201 #define apzSolaris_SocketMachs (const char**)NULL
6202
6203 /*
6204  *  content selection pattern - do fix if pattern found
6205  */
6206 tSCC zSolaris_SocketSelect0[] =
6207        "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
6208
6209 #define    SOLARIS_SOCKET_TEST_CT  1
6210 static tTestDesc aSolaris_SocketTests[] = {
6211   { TT_EGREP,    zSolaris_SocketSelect0, (regex_t*)NULL }, };
6212
6213 /*
6214  *  Fix Command Arguments for Solaris_Socket
6215  */
6216 static const char* apzSolaris_SocketPatch[] = {
6217     "format",
6218     "extern int %1(int, %2void *, int, int);",
6219     "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
6220     (char*)NULL };
6221
6222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6223  *
6224  *  Description of Solaris_Stdio_Tag fix
6225  */
6226 tSCC zSolaris_Stdio_TagName[] =
6227      "solaris_stdio_tag";
6228
6229 /*
6230  *  File name selection pattern
6231  */
6232 tSCC zSolaris_Stdio_TagList[] =
6233   "stdio_tag.h\0";
6234 /*
6235  *  Machine/OS name selection pattern
6236  */
6237 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6238
6239 /*
6240  *  content selection pattern - do fix if pattern found
6241  */
6242 tSCC zSolaris_Stdio_TagSelect0[] =
6243        "__cplusplus < 54321L";
6244
6245 /*
6246  *  content bypass pattern - skip fix if pattern found
6247  */
6248 tSCC zSolaris_Stdio_TagBypass0[] =
6249        "__GNUC__";
6250
6251 #define    SOLARIS_STDIO_TAG_TEST_CT  2
6252 static tTestDesc aSolaris_Stdio_TagTests[] = {
6253   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6254   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6255
6256 /*
6257  *  Fix Command Arguments for Solaris_Stdio_Tag
6258  */
6259 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6260     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6261     (char*)NULL };
6262
6263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6264  *
6265  *  Description of Solaris_Unistd fix
6266  */
6267 tSCC zSolaris_UnistdName[] =
6268      "solaris_unistd";
6269
6270 /*
6271  *  File name selection pattern
6272  */
6273 tSCC zSolaris_UnistdList[] =
6274   "unistd.h\0";
6275 /*
6276  *  Machine/OS name selection pattern
6277  */
6278 #define apzSolaris_UnistdMachs (const char**)NULL
6279
6280 /*
6281  *  content selection pattern - do fix if pattern found
6282  */
6283 tSCC zSolaris_UnistdSelect0[] =
6284        "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6285
6286 /*
6287  *  content bypass pattern - skip fix if pattern found
6288  */
6289 tSCC zSolaris_UnistdBypass0[] =
6290        "getpagesize";
6291
6292 #define    SOLARIS_UNISTD_TEST_CT  2
6293 static tTestDesc aSolaris_UnistdTests[] = {
6294   { TT_NEGREP,   zSolaris_UnistdBypass0, (regex_t*)NULL },
6295   { TT_EGREP,    zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6296
6297 /*
6298  *  Fix Command Arguments for Solaris_Unistd
6299  */
6300 static const char* apzSolaris_UnistdPatch[] = {
6301     "format",
6302     "extern int getpagesize();\n\
6303 %0",
6304     "^extern (pid_t|int) getpgid\\(.*\\);",
6305     (char*)NULL };
6306
6307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6308  *
6309  *  Description of Solaris_Widec fix
6310  */
6311 tSCC zSolaris_WidecName[] =
6312      "solaris_widec";
6313
6314 /*
6315  *  File name selection pattern
6316  */
6317 tSCC zSolaris_WidecList[] =
6318   "widec.h\0";
6319 /*
6320  *  Machine/OS name selection pattern
6321  */
6322 tSCC* apzSolaris_WidecMachs[] = {
6323         "*-*-solaris2.[0-5]",
6324         "*-*-solaris2.[0-5].*",
6325         (const char*)NULL };
6326
6327 /*
6328  *  content selection pattern - do fix if pattern found
6329  */
6330 tSCC zSolaris_WidecSelect0[] =
6331        "#include <euc.h>";
6332
6333 /*
6334  *  content bypass pattern - skip fix if pattern found
6335  */
6336 tSCC zSolaris_WidecBypass0[] =
6337        "include.*wchar\\.h";
6338
6339 #define    SOLARIS_WIDEC_TEST_CT  2
6340 static tTestDesc aSolaris_WidecTests[] = {
6341   { TT_NEGREP,   zSolaris_WidecBypass0, (regex_t*)NULL },
6342   { TT_EGREP,    zSolaris_WidecSelect0, (regex_t*)NULL }, };
6343
6344 /*
6345  *  Fix Command Arguments for Solaris_Widec
6346  */
6347 static const char* apzSolaris_WidecPatch[] = {
6348     "format",
6349     "%0\n\
6350 #include <wchar.h>",
6351     (char*)NULL };
6352
6353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6354  *
6355  *  Description of Statsswtch fix
6356  */
6357 tSCC zStatsswtchName[] =
6358      "statsswtch";
6359
6360 /*
6361  *  File name selection pattern
6362  */
6363 tSCC zStatsswtchList[] =
6364   "rpcsvc/rstat.h\0";
6365 /*
6366  *  Machine/OS name selection pattern
6367  */
6368 #define apzStatsswtchMachs (const char**)NULL
6369
6370 /*
6371  *  content selection pattern - do fix if pattern found
6372  */
6373 tSCC zStatsswtchSelect0[] =
6374        "boottime$";
6375
6376 #define    STATSSWTCH_TEST_CT  1
6377 static tTestDesc aStatsswtchTests[] = {
6378   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
6379
6380 /*
6381  *  Fix Command Arguments for Statsswtch
6382  */
6383 static const char* apzStatsswtchPatch[] = {
6384     "format",
6385     "boottime;",
6386     (char*)NULL };
6387
6388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6389  *
6390  *  Description of Stdio_Stdarg_H fix
6391  */
6392 tSCC zStdio_Stdarg_HName[] =
6393      "stdio_stdarg_h";
6394
6395 /*
6396  *  File name selection pattern
6397  */
6398 tSCC zStdio_Stdarg_HList[] =
6399   "stdio.h\0";
6400 /*
6401  *  Machine/OS name selection pattern
6402  */
6403 tSCC* apzStdio_Stdarg_HMachs[] = {
6404         "*-*-solaris2.1[0-9]*",
6405         (const char*)NULL };
6406
6407 /*
6408  *  content bypass pattern - skip fix if pattern found
6409  */
6410 tSCC zStdio_Stdarg_HBypass0[] =
6411        "include.*(stdarg.h|machine/ansi.h)";
6412
6413 #define    STDIO_STDARG_H_TEST_CT  1
6414 static tTestDesc aStdio_Stdarg_HTests[] = {
6415   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6416
6417 /*
6418  *  Fix Command Arguments for Stdio_Stdarg_H
6419  */
6420 static const char* apzStdio_Stdarg_HPatch[] = {
6421     "wrap",
6422     "#define __need___va_list\n\
6423 #include <stdarg.h>\n",
6424     (char*)NULL };
6425
6426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6427  *
6428  *  Description of Stdio_Va_List fix
6429  */
6430 tSCC zStdio_Va_ListName[] =
6431      "stdio_va_list";
6432
6433 /*
6434  *  File name selection pattern
6435  */
6436 tSCC zStdio_Va_ListList[] =
6437   "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6438 /*
6439  *  Machine/OS name selection pattern
6440  */
6441 tSCC* apzStdio_Va_ListMachs[] = {
6442         "*-*-solaris2.1[0-9]*",
6443         (const char*)NULL };
6444
6445 /*
6446  *  content bypass pattern - skip fix if pattern found
6447  */
6448 tSCC zStdio_Va_ListBypass0[] =
6449        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6450
6451 #define    STDIO_VA_LIST_TEST_CT  1
6452 static tTestDesc aStdio_Va_ListTests[] = {
6453   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6454
6455 /*
6456  *  Fix Command Arguments for Stdio_Va_List
6457  */
6458 static const char* apzStdio_Va_ListPatch[] = { "sed",
6459     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6460 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6461 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6462 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6463 s@ va_list@ __not_va_list__@\n\
6464 s@\\*va_list@*__not_va_list__@\n\
6465 s@ __va_list)@ __gnuc_va_list)@\n\
6466 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6467 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6468 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6469 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6470 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6471 s@VA_LIST@DUMMY_VA_LIST@\n\
6472 s@_Va_LIST@_VA_LIST@",
6473     (char*)NULL };
6474
6475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6476  *
6477  *  Description of Stdio_Va_List_Clients fix
6478  */
6479 tSCC zStdio_Va_List_ClientsName[] =
6480      "stdio_va_list_clients";
6481
6482 /*
6483  *  File name selection pattern
6484  */
6485 tSCC zStdio_Va_List_ClientsList[] =
6486   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6487 /*
6488  *  Machine/OS name selection pattern
6489  */
6490 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6491
6492 /*
6493  *  content bypass pattern - skip fix if pattern found
6494  */
6495 tSCC zStdio_Va_List_ClientsBypass0[] =
6496        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6497 tSCC zStdio_Va_List_ClientsBypass1[] =
6498        "include <stdarg\\.h>|#ifdef va_start";
6499
6500 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
6501 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6502   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6503   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6504
6505 /*
6506  *  Fix Command Arguments for Stdio_Va_List_Clients
6507  */
6508 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6509     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6510 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6511 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6512 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6513 s@ va_list@ __not_va_list__@\n\
6514 s@\\*va_list@*__not_va_list__@\n\
6515 s@ __va_list)@ __gnuc_va_list)@\n\
6516 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6517 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6518 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6519 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6520 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6521 s@VA_LIST@DUMMY_VA_LIST@\n\
6522 s@_Va_LIST@_VA_LIST@",
6523     (char*)NULL };
6524
6525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6526  *
6527  *  Description of Strict_Ansi_Not fix
6528  */
6529 tSCC zStrict_Ansi_NotName[] =
6530      "strict_ansi_not";
6531
6532 /*
6533  *  File name selection pattern
6534  */
6535 #define zStrict_Ansi_NotList (char*)NULL
6536 /*
6537  *  Machine/OS name selection pattern
6538  */
6539 #define apzStrict_Ansi_NotMachs (const char**)NULL
6540
6541 /*
6542  *  content selection pattern - do fix if pattern found
6543  */
6544 tSCC zStrict_Ansi_NotSelect0[] =
6545        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6546
6547 /*
6548  *  content bypass pattern - skip fix if pattern found
6549  */
6550 tSCC zStrict_Ansi_NotBypass0[] =
6551        "GNU and MIPS C compilers define __STDC__ differently";
6552 tSCC zStrict_Ansi_NotBypass1[] =
6553        "__SCO_VERSION__.*__STDC__ != 1";
6554
6555 /*
6556  *  perform the C function call test
6557  */
6558 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6559
6560 #define    STRICT_ANSI_NOT_TEST_CT  4
6561 static tTestDesc aStrict_Ansi_NotTests[] = {
6562   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
6563   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6564   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6565   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6566
6567 /*
6568  *  Fix Command Arguments for Strict_Ansi_Not
6569  */
6570 static const char* apzStrict_Ansi_NotPatch[] = {
6571     "format",
6572     "%1 !defined(__STRICT_ANSI__)",
6573     (char*)NULL };
6574
6575 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6576  *
6577  *  Description of Strict_Ansi_Not_Ctd fix
6578  */
6579 tSCC zStrict_Ansi_Not_CtdName[] =
6580      "strict_ansi_not_ctd";
6581
6582 /*
6583  *  File name selection pattern
6584  */
6585 tSCC zStrict_Ansi_Not_CtdList[] =
6586   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6587 /*
6588  *  Machine/OS name selection pattern
6589  */
6590 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6591
6592 /*
6593  *  content selection pattern - do fix if pattern found
6594  */
6595 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6596        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6597
6598 /*
6599  *  perform the C function call test
6600  */
6601 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6602
6603 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
6604 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6605   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
6606   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6607
6608 /*
6609  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
6610  */
6611 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6612     "format",
6613     "%1 !defined(__STRICT_ANSI__)",
6614     (char*)NULL };
6615
6616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6617  *
6618  *  Description of Strict_Ansi_Only fix
6619  */
6620 tSCC zStrict_Ansi_OnlyName[] =
6621      "strict_ansi_only";
6622
6623 /*
6624  *  File name selection pattern
6625  */
6626 #define zStrict_Ansi_OnlyList (char*)NULL
6627 /*
6628  *  Machine/OS name selection pattern
6629  */
6630 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6631
6632 /*
6633  *  content selection pattern - do fix if pattern found
6634  */
6635 tSCC zStrict_Ansi_OnlySelect0[] =
6636        "^([ \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)";
6637
6638 /*
6639  *  perform the C function call test
6640  */
6641 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6642
6643 #define    STRICT_ANSI_ONLY_TEST_CT  2
6644 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6645   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
6646   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6647
6648 /*
6649  *  Fix Command Arguments for Strict_Ansi_Only
6650  */
6651 static const char* apzStrict_Ansi_OnlyPatch[] = {
6652     "format",
6653     "%1 defined(__STRICT_ANSI__)",
6654     (char*)NULL };
6655
6656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6657  *
6658  *  Description of Struct_File fix
6659  */
6660 tSCC zStruct_FileName[] =
6661      "struct_file";
6662
6663 /*
6664  *  File name selection pattern
6665  */
6666 tSCC zStruct_FileList[] =
6667   "rpc/xdr.h\0";
6668 /*
6669  *  Machine/OS name selection pattern
6670  */
6671 #define apzStruct_FileMachs (const char**)NULL
6672
6673 /*
6674  *  content selection pattern - do fix if pattern found
6675  */
6676 tSCC zStruct_FileSelect0[] =
6677        "^.*xdrstdio_create.*struct __file_s";
6678
6679 #define    STRUCT_FILE_TEST_CT  1
6680 static tTestDesc aStruct_FileTests[] = {
6681   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
6682
6683 /*
6684  *  Fix Command Arguments for Struct_File
6685  */
6686 static const char* apzStruct_FilePatch[] = {
6687     "format",
6688     "struct __file_s;\n\
6689 %0",
6690     (char*)NULL };
6691
6692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6693  *
6694  *  Description of Struct_Sockaddr fix
6695  */
6696 tSCC zStruct_SockaddrName[] =
6697      "struct_sockaddr";
6698
6699 /*
6700  *  File name selection pattern
6701  */
6702 tSCC zStruct_SockaddrList[] =
6703   "rpc/auth.h\0";
6704 /*
6705  *  Machine/OS name selection pattern
6706  */
6707 #define apzStruct_SockaddrMachs (const char**)NULL
6708
6709 /*
6710  *  content selection pattern - do fix if pattern found
6711  */
6712 tSCC zStruct_SockaddrSelect0[] =
6713        "^.*authdes_create.*struct sockaddr[^_]";
6714
6715 /*
6716  *  content bypass pattern - skip fix if pattern found
6717  */
6718 tSCC zStruct_SockaddrBypass0[] =
6719        "<sys/socket.h>";
6720 tSCC zStruct_SockaddrBypass1[] =
6721        "struct sockaddr;\n";
6722
6723 #define    STRUCT_SOCKADDR_TEST_CT  3
6724 static tTestDesc aStruct_SockaddrTests[] = {
6725   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
6726   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
6727   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6728
6729 /*
6730  *  Fix Command Arguments for Struct_Sockaddr
6731  */
6732 static const char* apzStruct_SockaddrPatch[] = {
6733     "format",
6734     "struct sockaddr;\n\
6735 %0",
6736     (char*)NULL };
6737
6738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6739  *
6740  *  Description of Sun_Auth_Proto fix
6741  */
6742 tSCC zSun_Auth_ProtoName[] =
6743      "sun_auth_proto";
6744
6745 /*
6746  *  File name selection pattern
6747  */
6748 tSCC zSun_Auth_ProtoList[] =
6749   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6750 /*
6751  *  Machine/OS name selection pattern
6752  */
6753 #define apzSun_Auth_ProtoMachs (const char**)NULL
6754
6755 /*
6756  *  content selection pattern - do fix if pattern found
6757  */
6758 tSCC zSun_Auth_ProtoSelect0[] =
6759        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6760
6761 /*
6762  *  content bypass pattern - skip fix if pattern found
6763  */
6764 tSCC zSun_Auth_ProtoBypass0[] =
6765        "__cplusplus";
6766
6767 #define    SUN_AUTH_PROTO_TEST_CT  2
6768 static tTestDesc aSun_Auth_ProtoTests[] = {
6769   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6770   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6771
6772 /*
6773  *  Fix Command Arguments for Sun_Auth_Proto
6774  */
6775 static const char* apzSun_Auth_ProtoPatch[] = {
6776     "format",
6777     "#ifdef __cplusplus\n\
6778 %1(...);%2\n\
6779 #else\n\
6780 %1();%2\n\
6781 #endif",
6782     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6783     (char*)NULL };
6784
6785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6786  *
6787  *  Description of Sun_Bogus_Ifdef fix
6788  */
6789 tSCC zSun_Bogus_IfdefName[] =
6790      "sun_bogus_ifdef";
6791
6792 /*
6793  *  File name selection pattern
6794  */
6795 tSCC zSun_Bogus_IfdefList[] =
6796   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6797 /*
6798  *  Machine/OS name selection pattern
6799  */
6800 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6801
6802 /*
6803  *  content selection pattern - do fix if pattern found
6804  */
6805 tSCC zSun_Bogus_IfdefSelect0[] =
6806        "#ifdef(.*\\|\\|.*)";
6807
6808 #define    SUN_BOGUS_IFDEF_TEST_CT  1
6809 static tTestDesc aSun_Bogus_IfdefTests[] = {
6810   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6811
6812 /*
6813  *  Fix Command Arguments for Sun_Bogus_Ifdef
6814  */
6815 static const char* apzSun_Bogus_IfdefPatch[] = {
6816     "format",
6817     "#if%1",
6818     (char*)NULL };
6819
6820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6821  *
6822  *  Description of Sun_Catmacro fix
6823  */
6824 tSCC zSun_CatmacroName[] =
6825      "sun_catmacro";
6826
6827 /*
6828  *  File name selection pattern
6829  */
6830 tSCC zSun_CatmacroList[] =
6831   "pixrect/memvar.h\0";
6832 /*
6833  *  Machine/OS name selection pattern
6834  */
6835 #define apzSun_CatmacroMachs (const char**)NULL
6836
6837 /*
6838  *  content selection pattern - do fix if pattern found
6839  */
6840 tSCC zSun_CatmacroSelect0[] =
6841        "^#define[ \t]+CAT\\(a,b\\).*";
6842
6843 #define    SUN_CATMACRO_TEST_CT  1
6844 static tTestDesc aSun_CatmacroTests[] = {
6845   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
6846
6847 /*
6848  *  Fix Command Arguments for Sun_Catmacro
6849  */
6850 static const char* apzSun_CatmacroPatch[] = {
6851     "format",
6852     "#ifdef __STDC__\n\
6853 #  define CAT(a,b) a##b\n\
6854 #else\n\
6855 %0\n\
6856 #endif",
6857     (char*)NULL };
6858
6859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6860  *
6861  *  Description of Sun_Malloc fix
6862  */
6863 tSCC zSun_MallocName[] =
6864      "sun_malloc";
6865
6866 /*
6867  *  File name selection pattern
6868  */
6869 tSCC zSun_MallocList[] =
6870   "malloc.h\0";
6871 /*
6872  *  Machine/OS name selection pattern
6873  */
6874 #define apzSun_MallocMachs (const char**)NULL
6875
6876 /*
6877  *  content bypass pattern - skip fix if pattern found
6878  */
6879 tSCC zSun_MallocBypass0[] =
6880        "_CLASSIC_ANSI_TYPES";
6881
6882 #define    SUN_MALLOC_TEST_CT  1
6883 static tTestDesc aSun_MallocTests[] = {
6884   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
6885
6886 /*
6887  *  Fix Command Arguments for Sun_Malloc
6888  */
6889 static const char* apzSun_MallocPatch[] = { "sed",
6890     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6891     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6892     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6893     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6894     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6895     (char*)NULL };
6896
6897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6898  *
6899  *  Description of Sun_Rusers_Semi fix
6900  */
6901 tSCC zSun_Rusers_SemiName[] =
6902      "sun_rusers_semi";
6903
6904 /*
6905  *  File name selection pattern
6906  */
6907 tSCC zSun_Rusers_SemiList[] =
6908   "rpcsvc/rusers.h\0";
6909 /*
6910  *  Machine/OS name selection pattern
6911  */
6912 #define apzSun_Rusers_SemiMachs (const char**)NULL
6913
6914 /*
6915  *  content selection pattern - do fix if pattern found
6916  */
6917 tSCC zSun_Rusers_SemiSelect0[] =
6918        "_cnt$";
6919
6920 #define    SUN_RUSERS_SEMI_TEST_CT  1
6921 static tTestDesc aSun_Rusers_SemiTests[] = {
6922   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6923
6924 /*
6925  *  Fix Command Arguments for Sun_Rusers_Semi
6926  */
6927 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6928     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6929     (char*)NULL };
6930
6931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6932  *
6933  *  Description of Sun_Signal fix
6934  */
6935 tSCC zSun_SignalName[] =
6936      "sun_signal";
6937
6938 /*
6939  *  File name selection pattern
6940  */
6941 tSCC zSun_SignalList[] =
6942   "sys/signal.h\0signal.h\0";
6943 /*
6944  *  Machine/OS name selection pattern
6945  */
6946 #define apzSun_SignalMachs (const char**)NULL
6947
6948 /*
6949  *  content selection pattern - do fix if pattern found
6950  */
6951 tSCC zSun_SignalSelect0[] =
6952        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6953
6954 #define    SUN_SIGNAL_TEST_CT  1
6955 static tTestDesc aSun_SignalTests[] = {
6956   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
6957
6958 /*
6959  *  Fix Command Arguments for Sun_Signal
6960  */
6961 static const char* apzSun_SignalPatch[] = {
6962     "format",
6963     "#ifdef __cplusplus\n\
6964 void\t(*signal(...))(...);\n\
6965 #else\n\
6966 %0\n\
6967 #endif",
6968     (char*)NULL };
6969
6970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6971  *
6972  *  Description of Sunos_Strlen fix
6973  */
6974 tSCC zSunos_StrlenName[] =
6975      "sunos_strlen";
6976
6977 /*
6978  *  File name selection pattern
6979  */
6980 tSCC zSunos_StrlenList[] =
6981   "strings.h\0";
6982 /*
6983  *  Machine/OS name selection pattern
6984  */
6985 #define apzSunos_StrlenMachs (const char**)NULL
6986
6987 /*
6988  *  content selection pattern - do fix if pattern found
6989  */
6990 tSCC zSunos_StrlenSelect0[] =
6991        "int[ \t]*strlen\\(\\);(.*)";
6992
6993 #define    SUNOS_STRLEN_TEST_CT  1
6994 static tTestDesc aSunos_StrlenTests[] = {
6995   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
6996
6997 /*
6998  *  Fix Command Arguments for Sunos_Strlen
6999  */
7000 static const char* apzSunos_StrlenPatch[] = {
7001     "format",
7002     "__SIZE_TYPE__ strlen();%1",
7003     (char*)NULL };
7004
7005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7006  *
7007  *  Description of Svr4_Disable_Opt fix
7008  */
7009 tSCC zSvr4_Disable_OptName[] =
7010      "svr4_disable_opt";
7011
7012 /*
7013  *  File name selection pattern
7014  */
7015 tSCC zSvr4_Disable_OptList[] =
7016   "string.h\0";
7017 /*
7018  *  Machine/OS name selection pattern
7019  */
7020 #define apzSvr4_Disable_OptMachs (const char**)NULL
7021
7022 /*
7023  *  content selection pattern - do fix if pattern found
7024  */
7025 tSCC zSvr4_Disable_OptSelect0[] =
7026        "#define.*__std_hdr_";
7027
7028 #define    SVR4_DISABLE_OPT_TEST_CT  1
7029 static tTestDesc aSvr4_Disable_OptTests[] = {
7030   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7031
7032 /*
7033  *  Fix Command Arguments for Svr4_Disable_Opt
7034  */
7035 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
7036     "-e", "/#define.*__std_hdr_/d",
7037     (char*)NULL };
7038
7039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7040  *
7041  *  Description of Svr4_Getcwd fix
7042  */
7043 tSCC zSvr4_GetcwdName[] =
7044      "svr4_getcwd";
7045
7046 /*
7047  *  File name selection pattern
7048  */
7049 tSCC zSvr4_GetcwdList[] =
7050   "stdlib.h\0unistd.h\0prototypes.h\0";
7051 /*
7052  *  Machine/OS name selection pattern
7053  */
7054 #define apzSvr4_GetcwdMachs (const char**)NULL
7055
7056 /*
7057  *  content selection pattern - do fix if pattern found
7058  */
7059 tSCC zSvr4_GetcwdSelect0[] =
7060        "getcwd\\(char \\*, int\\)";
7061
7062 #define    SVR4_GETCWD_TEST_CT  1
7063 static tTestDesc aSvr4_GetcwdTests[] = {
7064   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7065
7066 /*
7067  *  Fix Command Arguments for Svr4_Getcwd
7068  */
7069 static const char* apzSvr4_GetcwdPatch[] = {
7070     "format",
7071     "getcwd(char *, size_t)",
7072     (char*)NULL };
7073
7074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7075  *
7076  *  Description of Svr4_Krnl fix
7077  */
7078 tSCC zSvr4_KrnlName[] =
7079      "svr4_krnl";
7080
7081 /*
7082  *  File name selection pattern
7083  */
7084 tSCC zSvr4_KrnlList[] =
7085   "fs/rfs/rf_cache.h\0sys/erec.h\0sys/err.h\0sys/char.h\0sys/getpages.h\0sys/map.h\0sys/cmn_err.h\0sys/kdebugger.h\0";
7086 /*
7087  *  Machine/OS name selection pattern
7088  */
7089 tSCC* apzSvr4_KrnlMachs[] = {
7090         "*-*-sysv4*",
7091         "i?86-sequent-ptx*",
7092         (const char*)NULL };
7093
7094 /*
7095  *  content bypass pattern - skip fix if pattern found
7096  */
7097 tSCC zSvr4_KrnlBypass0[] =
7098        "_KERNEL";
7099
7100 #define    SVR4_KRNL_TEST_CT  1
7101 static tTestDesc aSvr4_KrnlTests[] = {
7102   { TT_NEGREP,   zSvr4_KrnlBypass0, (regex_t*)NULL }, };
7103
7104 /*
7105  *  Fix Command Arguments for Svr4_Krnl
7106  */
7107 static const char* apzSvr4_KrnlPatch[] = {
7108     "wrap",
7109     "#ifdef _KERNEL\n",
7110     "#endif /* _KERNEL */\n",
7111     (char*)NULL };
7112
7113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7114  *
7115  *  Description of Svr4_Profil fix
7116  */
7117 tSCC zSvr4_ProfilName[] =
7118      "svr4_profil";
7119
7120 /*
7121  *  File name selection pattern
7122  */
7123 tSCC zSvr4_ProfilList[] =
7124   "stdlib.h\0unistd.h\0";
7125 /*
7126  *  Machine/OS name selection pattern
7127  */
7128 #define apzSvr4_ProfilMachs (const char**)NULL
7129
7130 /*
7131  *  content selection pattern - do fix if pattern found
7132  */
7133 tSCC zSvr4_ProfilSelect0[] =
7134        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7135
7136 /*
7137  *  content bypass pattern - skip fix if pattern found
7138  */
7139 tSCC zSvr4_ProfilBypass0[] =
7140        "Silicon Graphics";
7141
7142 #define    SVR4_PROFIL_TEST_CT  2
7143 static tTestDesc aSvr4_ProfilTests[] = {
7144   { TT_NEGREP,   zSvr4_ProfilBypass0, (regex_t*)NULL },
7145   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7146
7147 /*
7148  *  Fix Command Arguments for Svr4_Profil
7149  */
7150 static const char* apzSvr4_ProfilPatch[] = {
7151     "format",
7152     "profil(unsigned short *, size_t, int, unsigned int)",
7153     (char*)NULL };
7154
7155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7156  *
7157  *  Description of Svr4_Sighandler_Type fix
7158  */
7159 tSCC zSvr4_Sighandler_TypeName[] =
7160      "svr4_sighandler_type";
7161
7162 /*
7163  *  File name selection pattern
7164  */
7165 tSCC zSvr4_Sighandler_TypeList[] =
7166   "sys/signal.h\0";
7167 /*
7168  *  Machine/OS name selection pattern
7169  */
7170 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7171
7172 /*
7173  *  content selection pattern - do fix if pattern found
7174  */
7175 tSCC zSvr4_Sighandler_TypeSelect0[] =
7176        "void *\\(\\*\\)\\(\\)";
7177
7178 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
7179 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7180   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7181
7182 /*
7183  *  Fix Command Arguments for Svr4_Sighandler_Type
7184  */
7185 static const char* apzSvr4_Sighandler_TypePatch[] = {
7186     "format",
7187     "void (*)(int)",
7188     (char*)NULL };
7189
7190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7191  *
7192  *  Description of Svr4_Undeclared_Getrnge fix
7193  */
7194 tSCC zSvr4_Undeclared_GetrngeName[] =
7195      "svr4_undeclared_getrnge";
7196
7197 /*
7198  *  File name selection pattern
7199  */
7200 tSCC zSvr4_Undeclared_GetrngeList[] =
7201   "regexp.h\0";
7202 /*
7203  *  Machine/OS name selection pattern
7204  */
7205 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7206
7207 /*
7208  *  content selection pattern - do fix if pattern found
7209  */
7210 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7211        "getrnge";
7212
7213 /*
7214  *  content bypass pattern - skip fix if pattern found
7215  */
7216 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7217        "static void getrnge";
7218
7219 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
7220 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7221   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7222   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7223
7224 /*
7225  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
7226  */
7227 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7228     "format",
7229     "%0\n\
7230 static int getrnge ();",
7231     "^static int[ \t]+size;",
7232     (char*)NULL };
7233
7234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7235  *
7236  *  Description of Sysv68_String fix
7237  */
7238 tSCC zSysv68_StringName[] =
7239      "sysv68_string";
7240
7241 /*
7242  *  File name selection pattern
7243  */
7244 tSCC zSysv68_StringList[] =
7245   "testing.h\0string.h\0";
7246 /*
7247  *  Machine/OS name selection pattern
7248  */
7249 #define apzSysv68_StringMachs (const char**)NULL
7250
7251 /*
7252  *  content bypass pattern - skip fix if pattern found
7253  */
7254 tSCC zSysv68_StringBypass0[] =
7255        "_CLASSIC_ANSI_TYPES";
7256
7257 #define    SYSV68_STRING_TEST_CT  1
7258 static tTestDesc aSysv68_StringTests[] = {
7259   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
7260
7261 /*
7262  *  Fix Command Arguments for Sysv68_String
7263  */
7264 static const char* apzSysv68_StringPatch[] = { "sed",
7265     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7266     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7267     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7268     "-e", "/^extern char$/N",
7269     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7270     "-e", "/^extern int$/N",
7271     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7272     "-e", "/^\tstrncmp(),$/N",
7273     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7274 extern unsigned int\\\n\
7275 \\2/",
7276     (char*)NULL };
7277
7278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7279  *
7280  *  Description of Sysz_Stdlib_For_Sun fix
7281  */
7282 tSCC zSysz_Stdlib_For_SunName[] =
7283      "sysz_stdlib_for_sun";
7284
7285 /*
7286  *  File name selection pattern
7287  */
7288 tSCC zSysz_Stdlib_For_SunList[] =
7289   "stdlib.h\0";
7290 /*
7291  *  Machine/OS name selection pattern
7292  */
7293 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7294
7295 /*
7296  *  content selection pattern - do fix if pattern found
7297  */
7298 tSCC zSysz_Stdlib_For_SunSelect0[] =
7299        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7300
7301 /*
7302  *  content bypass pattern - skip fix if pattern found
7303  */
7304 tSCC zSysz_Stdlib_For_SunBypass0[] =
7305        "_CLASSIC_ANSI_TYPES";
7306
7307 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
7308 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7309   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7310   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7311
7312 /*
7313  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
7314  */
7315 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7316     "format",
7317     "void *\t%1(",
7318     (char*)NULL };
7319
7320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7321  *
7322  *  Description of Thread_Keyword fix
7323  */
7324 tSCC zThread_KeywordName[] =
7325      "thread_keyword";
7326
7327 /*
7328  *  File name selection pattern
7329  */
7330 tSCC zThread_KeywordList[] =
7331   "pthread.h\0bits/sigthread.h\0";
7332 /*
7333  *  Machine/OS name selection pattern
7334  */
7335 #define apzThread_KeywordMachs (const char**)NULL
7336
7337 /*
7338  *  content selection pattern - do fix if pattern found
7339  */
7340 tSCC zThread_KeywordSelect0[] =
7341        "([* ])__thread([,)])";
7342
7343 #define    THREAD_KEYWORD_TEST_CT  1
7344 static tTestDesc aThread_KeywordTests[] = {
7345   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
7346
7347 /*
7348  *  Fix Command Arguments for Thread_Keyword
7349  */
7350 static const char* apzThread_KeywordPatch[] = {
7351     "format",
7352     "%1__thr%2",
7353     (char*)NULL };
7354
7355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7356  *
7357  *  Description of Tinfo_Cplusplus fix
7358  */
7359 tSCC zTinfo_CplusplusName[] =
7360      "tinfo_cplusplus";
7361
7362 /*
7363  *  File name selection pattern
7364  */
7365 tSCC zTinfo_CplusplusList[] =
7366   "tinfo.h\0";
7367 /*
7368  *  Machine/OS name selection pattern
7369  */
7370 #define apzTinfo_CplusplusMachs (const char**)NULL
7371
7372 /*
7373  *  content selection pattern - do fix if pattern found
7374  */
7375 tSCC zTinfo_CplusplusSelect0[] =
7376        "[ \t]_cplusplus";
7377
7378 #define    TINFO_CPLUSPLUS_TEST_CT  1
7379 static tTestDesc aTinfo_CplusplusTests[] = {
7380   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7381
7382 /*
7383  *  Fix Command Arguments for Tinfo_Cplusplus
7384  */
7385 static const char* apzTinfo_CplusplusPatch[] = {
7386     "format",
7387     " __cplusplus",
7388     (char*)NULL };
7389
7390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7391  *
7392  *  Description of Ultrix_Atexit_Param fix
7393  */
7394 tSCC zUltrix_Atexit_ParamName[] =
7395      "ultrix_atexit_param";
7396
7397 /*
7398  *  File name selection pattern
7399  */
7400 tSCC zUltrix_Atexit_ParamList[] =
7401   "stdlib.h\0";
7402 /*
7403  *  Machine/OS name selection pattern
7404  */
7405 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7406
7407 /*
7408  *  content selection pattern - do fix if pattern found
7409  */
7410 tSCC zUltrix_Atexit_ParamSelect0[] =
7411        "atexit\\(.*\\(\\)";
7412
7413 #define    ULTRIX_ATEXIT_PARAM_TEST_CT  1
7414 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7415   { TT_EGREP,    zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7416
7417 /*
7418  *  Fix Command Arguments for Ultrix_Atexit_Param
7419  */
7420 static const char* apzUltrix_Atexit_ParamPatch[] = {
7421     "format",
7422     "atexit( void (*__func)( void )",
7423     (char*)NULL };
7424
7425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7426  *
7427  *  Description of Ultrix_Atof_Param fix
7428  */
7429 tSCC zUltrix_Atof_ParamName[] =
7430      "ultrix_atof_param";
7431
7432 /*
7433  *  File name selection pattern
7434  */
7435 tSCC zUltrix_Atof_ParamList[] =
7436   "math.h\0";
7437 /*
7438  *  Machine/OS name selection pattern
7439  */
7440 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7441
7442 /*
7443  *  content selection pattern - do fix if pattern found
7444  */
7445 tSCC zUltrix_Atof_ParamSelect0[] =
7446        "atof\\([ \t]*char";
7447
7448 #define    ULTRIX_ATOF_PARAM_TEST_CT  1
7449 static tTestDesc aUltrix_Atof_ParamTests[] = {
7450   { TT_EGREP,    zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7451
7452 /*
7453  *  Fix Command Arguments for Ultrix_Atof_Param
7454  */
7455 static const char* apzUltrix_Atof_ParamPatch[] = {
7456     "format",
7457     "atof(const char",
7458     (char*)NULL };
7459
7460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7461  *
7462  *  Description of Ultrix_Const fix
7463  */
7464 tSCC zUltrix_ConstName[] =
7465      "ultrix_const";
7466
7467 /*
7468  *  File name selection pattern
7469  */
7470 tSCC zUltrix_ConstList[] =
7471   "stdio.h\0";
7472 /*
7473  *  Machine/OS name selection pattern
7474  */
7475 #define apzUltrix_ConstMachs (const char**)NULL
7476
7477 /*
7478  *  content selection pattern - do fix if pattern found
7479  */
7480 tSCC zUltrix_ConstSelect0[] =
7481        "perror\\( char \\*";
7482
7483 #define    ULTRIX_CONST_TEST_CT  1
7484 static tTestDesc aUltrix_ConstTests[] = {
7485   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
7486
7487 /*
7488  *  Fix Command Arguments for Ultrix_Const
7489  */
7490 static const char* apzUltrix_ConstPatch[] = {
7491     "format",
7492     "%1 const %3 *__",
7493     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7494     (char*)NULL };
7495
7496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7497  *
7498  *  Description of Ultrix_Const2 fix
7499  */
7500 tSCC zUltrix_Const2Name[] =
7501      "ultrix_const2";
7502
7503 /*
7504  *  File name selection pattern
7505  */
7506 tSCC zUltrix_Const2List[] =
7507   "stdio.h\0";
7508 /*
7509  *  Machine/OS name selection pattern
7510  */
7511 #define apzUltrix_Const2Machs (const char**)NULL
7512
7513 /*
7514  *  content selection pattern - do fix if pattern found
7515  */
7516 tSCC zUltrix_Const2Select0[] =
7517        "\\*fopen\\( char \\*";
7518
7519 #define    ULTRIX_CONST2_TEST_CT  1
7520 static tTestDesc aUltrix_Const2Tests[] = {
7521   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
7522
7523 /*
7524  *  Fix Command Arguments for Ultrix_Const2
7525  */
7526 static const char* apzUltrix_Const2Patch[] = {
7527     "format",
7528     "%1( const char *%3, const char *",
7529     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7530     (char*)NULL };
7531
7532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7533  *
7534  *  Description of Ultrix_Const3 fix
7535  */
7536 tSCC zUltrix_Const3Name[] =
7537      "ultrix_const3";
7538
7539 /*
7540  *  File name selection pattern
7541  */
7542 tSCC zUltrix_Const3List[] =
7543   "stdio.h\0";
7544 /*
7545  *  Machine/OS name selection pattern
7546  */
7547 #define apzUltrix_Const3Machs (const char**)NULL
7548
7549 /*
7550  *  content selection pattern - do fix if pattern found
7551  */
7552 tSCC zUltrix_Const3Select0[] =
7553        "fdopen\\( .*, char \\*";
7554
7555 #define    ULTRIX_CONST3_TEST_CT  1
7556 static tTestDesc aUltrix_Const3Tests[] = {
7557   { TT_EGREP,    zUltrix_Const3Select0, (regex_t*)NULL }, };
7558
7559 /*
7560  *  Fix Command Arguments for Ultrix_Const3
7561  */
7562 static const char* apzUltrix_Const3Patch[] = {
7563     "format",
7564     "%1 const %3 *__",
7565     "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7566     (char*)NULL };
7567
7568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7569  *
7570  *  Description of Ultrix_Fix_Fixproto fix
7571  */
7572 tSCC zUltrix_Fix_FixprotoName[] =
7573      "ultrix_fix_fixproto";
7574
7575 /*
7576  *  File name selection pattern
7577  */
7578 tSCC zUltrix_Fix_FixprotoList[] =
7579   "sys/utsname.h\0";
7580 /*
7581  *  Machine/OS name selection pattern
7582  */
7583 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7584
7585 /*
7586  *  content selection pattern - do fix if pattern found
7587  */
7588 tSCC zUltrix_Fix_FixprotoSelect0[] =
7589        "ULTRIX";
7590
7591 #define    ULTRIX_FIX_FIXPROTO_TEST_CT  1
7592 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7593   { TT_EGREP,    zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7594
7595 /*
7596  *  Fix Command Arguments for Ultrix_Fix_Fixproto
7597  */
7598 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7599     "format",
7600     "struct utsname;\n\
7601 %0",
7602     "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7603     (char*)NULL };
7604
7605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7606  *
7607  *  Description of Ultrix_Ifdef fix
7608  */
7609 tSCC zUltrix_IfdefName[] =
7610      "ultrix_ifdef";
7611
7612 /*
7613  *  File name selection pattern
7614  */
7615 tSCC zUltrix_IfdefList[] =
7616   "sys/file.h\0";
7617 /*
7618  *  Machine/OS name selection pattern
7619  */
7620 #define apzUltrix_IfdefMachs (const char**)NULL
7621
7622 /*
7623  *  content selection pattern - do fix if pattern found
7624  */
7625 tSCC zUltrix_IfdefSelect0[] =
7626        "^#ifdef KERNEL[ \t]+&&";
7627
7628 #define    ULTRIX_IFDEF_TEST_CT  1
7629 static tTestDesc aUltrix_IfdefTests[] = {
7630   { TT_EGREP,    zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7631
7632 /*
7633  *  Fix Command Arguments for Ultrix_Ifdef
7634  */
7635 static const char* apzUltrix_IfdefPatch[] = {
7636     "format",
7637     "#if defined(KERNEL) &&",
7638     (char*)NULL };
7639
7640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7641  *
7642  *  Description of Ultrix_Locale fix
7643  */
7644 tSCC zUltrix_LocaleName[] =
7645      "ultrix_locale";
7646
7647 /*
7648  *  File name selection pattern
7649  */
7650 tSCC zUltrix_LocaleList[] =
7651   "locale.h\0";
7652 /*
7653  *  Machine/OS name selection pattern
7654  */
7655 #define apzUltrix_LocaleMachs (const char**)NULL
7656
7657 /*
7658  *  content selection pattern - do fix if pattern found
7659  */
7660 tSCC zUltrix_LocaleSelect0[] =
7661        "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7662
7663 #define    ULTRIX_LOCALE_TEST_CT  1
7664 static tTestDesc aUltrix_LocaleTests[] = {
7665   { TT_EGREP,    zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7666
7667 /*
7668  *  Fix Command Arguments for Ultrix_Locale
7669  */
7670 static const char* apzUltrix_LocalePatch[] = {
7671     "wrap",
7672     (char*)NULL };
7673
7674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7675  *
7676  *  Description of Ultrix_Math_Ifdef fix
7677  */
7678 tSCC zUltrix_Math_IfdefName[] =
7679      "ultrix_math_ifdef";
7680
7681 /*
7682  *  File name selection pattern
7683  */
7684 tSCC zUltrix_Math_IfdefList[] =
7685   "sys/limits.h\0float.h\0math.h\0";
7686 /*
7687  *  Machine/OS name selection pattern
7688  */
7689 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7690
7691 /*
7692  *  content selection pattern - do fix if pattern found
7693  */
7694 tSCC zUltrix_Math_IfdefSelect0[] =
7695        "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7696
7697 #define    ULTRIX_MATH_IFDEF_TEST_CT  1
7698 static tTestDesc aUltrix_Math_IfdefTests[] = {
7699   { TT_EGREP,    zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7700
7701 /*
7702  *  Fix Command Arguments for Ultrix_Math_Ifdef
7703  */
7704 static const char* apzUltrix_Math_IfdefPatch[] = {
7705     "format",
7706     "%1",
7707     (char*)NULL };
7708
7709 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7710  *
7711  *  Description of Ultrix_Nested_Ioctl fix
7712  */
7713 tSCC zUltrix_Nested_IoctlName[] =
7714      "ultrix_nested_ioctl";
7715
7716 /*
7717  *  File name selection pattern
7718  */
7719 tSCC zUltrix_Nested_IoctlList[] =
7720   "sys/ioctl.h\0";
7721 /*
7722  *  Machine/OS name selection pattern
7723  */
7724 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7725
7726 /*
7727  *  content selection pattern - do fix if pattern found
7728  */
7729 tSCC zUltrix_Nested_IoctlSelect0[] =
7730        "^/\\* #define SIOCSCREEN";
7731
7732 #define    ULTRIX_NESTED_IOCTL_TEST_CT  1
7733 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7734   { TT_EGREP,    zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7735
7736 /*
7737  *  Fix Command Arguments for Ultrix_Nested_Ioctl
7738  */
7739 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7740     "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7741     (char*)NULL };
7742
7743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7744  *
7745  *  Description of Ultrix_Nested_Svc fix
7746  */
7747 tSCC zUltrix_Nested_SvcName[] =
7748      "ultrix_nested_svc";
7749
7750 /*
7751  *  File name selection pattern
7752  */
7753 tSCC zUltrix_Nested_SvcList[] =
7754   "rpc/svc.h\0";
7755 /*
7756  *  Machine/OS name selection pattern
7757  */
7758 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7759
7760 /*
7761  *  content selection pattern - do fix if pattern found
7762  */
7763 tSCC zUltrix_Nested_SvcSelect0[] =
7764        "^ \\*[ \t]*int protocol;  */\\*";
7765
7766 #define    ULTRIX_NESTED_SVC_TEST_CT  1
7767 static tTestDesc aUltrix_Nested_SvcTests[] = {
7768   { TT_EGREP,    zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7769
7770 /*
7771  *  Fix Command Arguments for Ultrix_Nested_Svc
7772  */
7773 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7774     "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
7775     (char*)NULL };
7776
7777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7778  *
7779  *  Description of Ultrix_Stat fix
7780  */
7781 tSCC zUltrix_StatName[] =
7782      "ultrix_stat";
7783
7784 /*
7785  *  File name selection pattern
7786  */
7787 tSCC zUltrix_StatList[] =
7788   "sys/stat.h\0";
7789 /*
7790  *  Machine/OS name selection pattern
7791  */
7792 #define apzUltrix_StatMachs (const char**)NULL
7793
7794 /*
7795  *  content selection pattern - do fix if pattern found
7796  */
7797 tSCC zUltrix_StatSelect0[] =
7798        "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7799
7800 #define    ULTRIX_STAT_TEST_CT  1
7801 static tTestDesc aUltrix_StatTests[] = {
7802   { TT_EGREP,    zUltrix_StatSelect0, (regex_t*)NULL }, };
7803
7804 /*
7805  *  Fix Command Arguments for Ultrix_Stat
7806  */
7807 static const char* apzUltrix_StatPatch[] = { "sed",
7808     "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7809 \\\n\
7810 /* macro to test for symbolic link */\\\n\
7811 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7812     "-e", "/^[ \t]*fstat(),$/a\\\n\
7813 \tlstat(),\n",
7814     (char*)NULL };
7815
7816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7817  *
7818  *  Description of Ultrix_Static fix
7819  */
7820 tSCC zUltrix_StaticName[] =
7821      "ultrix_static";
7822
7823 /*
7824  *  File name selection pattern
7825  */
7826 tSCC zUltrix_StaticList[] =
7827   "machine/cpu.h\0";
7828 /*
7829  *  Machine/OS name selection pattern
7830  */
7831 #define apzUltrix_StaticMachs (const char**)NULL
7832
7833 /*
7834  *  content selection pattern - do fix if pattern found
7835  */
7836 tSCC zUltrix_StaticSelect0[] =
7837        "#include \"r[34]_cpu";
7838
7839 #define    ULTRIX_STATIC_TEST_CT  1
7840 static tTestDesc aUltrix_StaticTests[] = {
7841   { TT_EGREP,    zUltrix_StaticSelect0, (regex_t*)NULL }, };
7842
7843 /*
7844  *  Fix Command Arguments for Ultrix_Static
7845  */
7846 static const char* apzUltrix_StaticPatch[] = { "sed",
7847     "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7848     "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7849     "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7850     (char*)NULL };
7851
7852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7853  *
7854  *  Description of Ultrix_Stdlib fix
7855  */
7856 tSCC zUltrix_StdlibName[] =
7857      "ultrix_stdlib";
7858
7859 /*
7860  *  File name selection pattern
7861  */
7862 tSCC zUltrix_StdlibList[] =
7863   "stdlib.h\0";
7864 /*
7865  *  Machine/OS name selection pattern
7866  */
7867 #define apzUltrix_StdlibMachs (const char**)NULL
7868
7869 /*
7870  *  content selection pattern - do fix if pattern found
7871  */
7872 tSCC zUltrix_StdlibSelect0[] =
7873        "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7874
7875 #define    ULTRIX_STDLIB_TEST_CT  1
7876 static tTestDesc aUltrix_StdlibTests[] = {
7877   { TT_EGREP,    zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7878
7879 /*
7880  *  Fix Command Arguments for Ultrix_Stdlib
7881  */
7882 static const char* apzUltrix_StdlibPatch[] = { "sed",
7883     "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7884 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7885 void\t\tunsetenv( const char *__name );\\\n\
7886 int\t\tputenv( char *__s );\n",
7887     "-e", "/^char.*getenv();.*$/a\\\n\
7888 int\tsetenv();\\\n\
7889 void\tunsetenv();\\\n\
7890 int\tputenv();\n",
7891     (char*)NULL };
7892
7893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7894  *
7895  *  Description of Ultrix_Strings fix
7896  */
7897 tSCC zUltrix_StringsName[] =
7898      "ultrix_strings";
7899
7900 /*
7901  *  File name selection pattern
7902  */
7903 tSCC zUltrix_StringsList[] =
7904   "strings.h\0";
7905 /*
7906  *  Machine/OS name selection pattern
7907  */
7908 #define apzUltrix_StringsMachs (const char**)NULL
7909
7910 /*
7911  *  content selection pattern - do fix if pattern found
7912  */
7913 tSCC zUltrix_StringsSelect0[] =
7914        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7915
7916 #define    ULTRIX_STRINGS_TEST_CT  1
7917 static tTestDesc aUltrix_StringsTests[] = {
7918   { TT_EGREP,    zUltrix_StringsSelect0, (regex_t*)NULL }, };
7919
7920 /*
7921  *  Fix Command Arguments for Ultrix_Strings
7922  */
7923 static const char* apzUltrix_StringsPatch[] = {
7924     "wrap",
7925     (char*)NULL };
7926
7927 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7928  *
7929  *  Description of Ultrix_Strings2 fix
7930  */
7931 tSCC zUltrix_Strings2Name[] =
7932      "ultrix_strings2";
7933
7934 /*
7935  *  File name selection pattern
7936  */
7937 tSCC zUltrix_Strings2List[] =
7938   "strings.h\0";
7939 /*
7940  *  Machine/OS name selection pattern
7941  */
7942 #define apzUltrix_Strings2Machs (const char**)NULL
7943
7944 /*
7945  *  content selection pattern - do fix if pattern found
7946  */
7947 tSCC zUltrix_Strings2Select0[] =
7948        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7949
7950 #define    ULTRIX_STRINGS2_TEST_CT  1
7951 static tTestDesc aUltrix_Strings2Tests[] = {
7952   { TT_EGREP,    zUltrix_Strings2Select0, (regex_t*)NULL }, };
7953
7954 /*
7955  *  Fix Command Arguments for Ultrix_Strings2
7956  */
7957 static const char* apzUltrix_Strings2Patch[] = { "sed",
7958     "-e", "/^.*strncmp( const .* );.*/a\\\n\
7959 \\\n\
7960 extern int\\\n\
7961 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7962 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7963     "-e", "/^.*strncmp();.*/a\\\n\
7964 extern int\\\n\
7965 \tstrcasecmp(),\\\n\
7966 \tstrncasecmp();\n",
7967     (char*)NULL };
7968
7969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7970  *
7971  *  Description of Ultrix_Sys_Time fix
7972  */
7973 tSCC zUltrix_Sys_TimeName[] =
7974      "ultrix_sys_time";
7975
7976 /*
7977  *  File name selection pattern
7978  */
7979 tSCC zUltrix_Sys_TimeList[] =
7980   "sys/time.h\0";
7981 /*
7982  *  Machine/OS name selection pattern
7983  */
7984 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7985
7986 /*
7987  *  content selection pattern - do fix if pattern found
7988  */
7989 tSCC zUltrix_Sys_TimeSelect0[] =
7990        "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7991
7992 #define    ULTRIX_SYS_TIME_TEST_CT  1
7993 static tTestDesc aUltrix_Sys_TimeTests[] = {
7994   { TT_EGREP,    zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7995
7996 /*
7997  *  Fix Command Arguments for Ultrix_Sys_Time
7998  */
7999 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
8000     "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
8001 \\\n\
8002 extern int adjtime(struct timeval *, struct timeval *);\\\n\
8003 extern int getitimer(int, struct itimerval *);\\\n\
8004 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
8005 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
8006 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
8007 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
8008 extern int stime(const time_t *);\\\n\
8009 extern int utimes(const char *, const struct timeval[2]);\\\n\
8010 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
8011     "-e", "/^extern.*double.*difftime();.*$/a\\\n\
8012 extern\tint adjtime();\\\n\
8013 extern\tint getitimer();\\\n\
8014 extern\tint setitimer();\\\n\
8015 extern\tint gettimeofday();\\\n\
8016 extern\tint settimeofday();\\\n\
8017 extern\tvoid profil();\\\n\
8018 extern\tint stime();\\\n\
8019 extern\tint utimes();\\\n\
8020 extern\tint select();\n",
8021     (char*)NULL };
8022
8023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8024  *
8025  *  Description of Ultrix_Unistd fix
8026  */
8027 tSCC zUltrix_UnistdName[] =
8028      "ultrix_unistd";
8029
8030 /*
8031  *  File name selection pattern
8032  */
8033 tSCC zUltrix_UnistdList[] =
8034   "unistd.h\0";
8035 /*
8036  *  Machine/OS name selection pattern
8037  */
8038 #define apzUltrix_UnistdMachs (const char**)NULL
8039
8040 /*
8041  *  content selection pattern - do fix if pattern found
8042  */
8043 tSCC zUltrix_UnistdSelect0[] =
8044        "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
8045
8046 #define    ULTRIX_UNISTD_TEST_CT  1
8047 static tTestDesc aUltrix_UnistdTests[] = {
8048   { TT_EGREP,    zUltrix_UnistdSelect0, (regex_t*)NULL }, };
8049
8050 /*
8051  *  Fix Command Arguments for Ultrix_Unistd
8052  */
8053 static const char* apzUltrix_UnistdPatch[] = { "sed",
8054     "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
8055 \tgetpagesize(),\n",
8056     "-e", "/^[ \t]*fork(),.*$/a\\\n\
8057 \tvfork(),\n",
8058     (char*)NULL };
8059
8060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8061  *
8062  *  Description of Unicosmk_Restrict fix
8063  */
8064 tSCC zUnicosmk_RestrictName[] =
8065      "unicosmk_restrict";
8066
8067 /*
8068  *  File name selection pattern
8069  */
8070 tSCC zUnicosmk_RestrictList[] =
8071   "stdio.h\0stdlib.h\0wchar.h\0";
8072 /*
8073  *  Machine/OS name selection pattern
8074  */
8075 tSCC* apzUnicosmk_RestrictMachs[] = {
8076         "*-*-unicosmk*",
8077         (const char*)NULL };
8078
8079 /*
8080  *  content selection pattern - do fix if pattern found
8081  */
8082 tSCC zUnicosmk_RestrictSelect0[] =
8083        "(\\*[ \t]*)restrict([ \t]+)";
8084
8085 #define    UNICOSMK_RESTRICT_TEST_CT  1
8086 static tTestDesc aUnicosmk_RestrictTests[] = {
8087   { TT_EGREP,    zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
8088
8089 /*
8090  *  Fix Command Arguments for Unicosmk_Restrict
8091  */
8092 static const char* apzUnicosmk_RestrictPatch[] = {
8093     "format",
8094     "%1__restrict__%2",
8095     (char*)NULL };
8096
8097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8098  *
8099  *  Description of Uw7_Byteorder_Fix fix
8100  */
8101 tSCC zUw7_Byteorder_FixName[] =
8102      "uw7_byteorder_fix";
8103
8104 /*
8105  *  File name selection pattern
8106  */
8107 tSCC zUw7_Byteorder_FixList[] =
8108   "arpa/inet.h\0";
8109 /*
8110  *  Machine/OS name selection pattern
8111  */
8112 tSCC* apzUw7_Byteorder_FixMachs[] = {
8113         "*-*-sysv4*",
8114         "i?86-*-sysv5*",
8115         "i?86-*-udk*",
8116         "i?86-*-solaris2.[0-4]",
8117         "powerpcle-*-solaris2.[0-4]",
8118         "sparc-*-solaris2.[0-4]",
8119         (const char*)NULL };
8120
8121 /*
8122  *  content selection pattern - do fix if pattern found
8123  */
8124 tSCC zUw7_Byteorder_FixSelect0[] =
8125        "in_port_t";
8126
8127 /*
8128  *  perform the 'test' shell command - do fix on success
8129  */
8130 tSCC zUw7_Byteorder_FixTest0[] =
8131        "-f sys/byteorder.h";
8132
8133 #define    UW7_BYTEORDER_FIX_TEST_CT  2
8134 static tTestDesc aUw7_Byteorder_FixTests[] = {
8135   { TT_TEST,     zUw7_Byteorder_FixTest0,   0 /* unused */ },
8136   { TT_EGREP,    zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
8137
8138 /*
8139  *  Fix Command Arguments for Uw7_Byteorder_Fix
8140  */
8141 static const char* apzUw7_Byteorder_FixPatch[] = {
8142     "format",
8143     "",
8144     "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
8145     (char*)NULL };
8146
8147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8148  *
8149  *  Description of Va_I960_Macro fix
8150  */
8151 tSCC zVa_I960_MacroName[] =
8152      "va_i960_macro";
8153
8154 /*
8155  *  File name selection pattern
8156  */
8157 tSCC zVa_I960_MacroList[] =
8158   "arch/i960/archI960.h\0";
8159 /*
8160  *  Machine/OS name selection pattern
8161  */
8162 #define apzVa_I960_MacroMachs (const char**)NULL
8163
8164 /*
8165  *  content selection pattern - do fix if pattern found
8166  */
8167 tSCC zVa_I960_MacroSelect0[] =
8168        "__(vsiz|vali|vpad|alignof__)";
8169
8170 #define    VA_I960_MACRO_TEST_CT  1
8171 static tTestDesc aVa_I960_MacroTests[] = {
8172   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8173
8174 /*
8175  *  Fix Command Arguments for Va_I960_Macro
8176  */
8177 static const char* apzVa_I960_MacroPatch[] = {
8178     "format",
8179     "__vx%1",
8180     (char*)NULL };
8181
8182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8183  *
8184  *  Description of Void_Null fix
8185  */
8186 tSCC zVoid_NullName[] =
8187      "void_null";
8188
8189 /*
8190  *  File name selection pattern
8191  */
8192 tSCC zVoid_NullList[] =
8193   "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";
8194 /*
8195  *  Machine/OS name selection pattern
8196  */
8197 #define apzVoid_NullMachs (const char**)NULL
8198
8199 /*
8200  *  content selection pattern - do fix if pattern found
8201  */
8202 tSCC zVoid_NullSelect0[] =
8203        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8204
8205 /*
8206  *  content bypass pattern - skip fix if pattern found
8207  */
8208 tSCC zVoid_NullBypass0[] =
8209        "__cplusplus";
8210
8211 #define    VOID_NULL_TEST_CT  2
8212 static tTestDesc aVoid_NullTests[] = {
8213   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8214   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8215
8216 /*
8217  *  Fix Command Arguments for Void_Null
8218  */
8219 static const char* apzVoid_NullPatch[] = {
8220     "format",
8221     "#define NULL 0",
8222     (char*)NULL };
8223
8224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8225  *
8226  *  Description of Vxworks_Gcc_Problem fix
8227  */
8228 tSCC zVxworks_Gcc_ProblemName[] =
8229      "vxworks_gcc_problem";
8230
8231 /*
8232  *  File name selection pattern
8233  */
8234 tSCC zVxworks_Gcc_ProblemList[] =
8235   "types/vxTypesBase.h\0";
8236 /*
8237  *  Machine/OS name selection pattern
8238  */
8239 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8240
8241 /*
8242  *  content selection pattern - do fix if pattern found
8243  */
8244 tSCC zVxworks_Gcc_ProblemSelect0[] =
8245        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8246
8247 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8248 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8249   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8250
8251 /*
8252  *  Fix Command Arguments for Vxworks_Gcc_Problem
8253  */
8254 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8255     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8256     "-e", "/[ \t]size_t/i\\\n\
8257 #ifndef _GCC_SIZE_T\\\n\
8258 #define _GCC_SIZE_T\n",
8259     "-e", "/[ \t]size_t/a\\\n\
8260 #endif\n",
8261     "-e", "/[ \t]ptrdiff_t/i\\\n\
8262 #ifndef _GCC_PTRDIFF_T\\\n\
8263 #define _GCC_PTRDIFF_T\n",
8264     "-e", "/[ \t]ptrdiff_t/a\\\n\
8265 #endif\n",
8266     "-e", "/[ \t]wchar_t/i\\\n\
8267 #ifndef _GCC_WCHAR_T\\\n\
8268 #define _GCC_WCHAR_T\n",
8269     "-e", "/[ \t]wchar_t/a\\\n\
8270 #endif\n",
8271     (char*)NULL };
8272
8273 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8274  *
8275  *  Description of Vxworks_Needs_Vxtypes fix
8276  */
8277 tSCC zVxworks_Needs_VxtypesName[] =
8278      "vxworks_needs_vxtypes";
8279
8280 /*
8281  *  File name selection pattern
8282  */
8283 tSCC zVxworks_Needs_VxtypesList[] =
8284   "time.h\0";
8285 /*
8286  *  Machine/OS name selection pattern
8287  */
8288 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8289
8290 /*
8291  *  content selection pattern - do fix if pattern found
8292  */
8293 tSCC zVxworks_Needs_VxtypesSelect0[] =
8294        "uint_t([ \t]+_clocks_per_sec)";
8295
8296 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8297 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8298   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8299
8300 /*
8301  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8302  */
8303 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8304     "format",
8305     "unsigned int%1",
8306     (char*)NULL };
8307
8308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8309  *
8310  *  Description of Vxworks_Needs_Vxworks fix
8311  */
8312 tSCC zVxworks_Needs_VxworksName[] =
8313      "vxworks_needs_vxworks";
8314
8315 /*
8316  *  File name selection pattern
8317  */
8318 tSCC zVxworks_Needs_VxworksList[] =
8319   "sys/stat.h\0";
8320 /*
8321  *  Machine/OS name selection pattern
8322  */
8323 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8324
8325 /*
8326  *  content selection pattern - do fix if pattern found
8327  */
8328 tSCC zVxworks_Needs_VxworksSelect0[] =
8329        "#[ \t]define[ \t]+__INCstath";
8330
8331 /*
8332  *  perform the 'test' shell command - do fix on success
8333  */
8334 tSCC zVxworks_Needs_VxworksTest0[] =
8335        " -r types/vxTypesOld.h";
8336 tSCC zVxworks_Needs_VxworksTest1[] =
8337        " -n \"`egrep '#include' $file`\"";
8338 tSCC zVxworks_Needs_VxworksTest2[] =
8339        " -n \"`egrep ULONG $file`\"";
8340
8341 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8342 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8343   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8344   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8345   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8346   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8347
8348 /*
8349  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8350  */
8351 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8352     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8353 #include <types/vxTypesOld.h>\n",
8354     (char*)NULL };
8355
8356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8357  *
8358  *  Description of Vxworks_Time fix
8359  */
8360 tSCC zVxworks_TimeName[] =
8361      "vxworks_time";
8362
8363 /*
8364  *  File name selection pattern
8365  */
8366 tSCC zVxworks_TimeList[] =
8367   "time.h\0";
8368 /*
8369  *  Machine/OS name selection pattern
8370  */
8371 #define apzVxworks_TimeMachs (const char**)NULL
8372
8373 /*
8374  *  content selection pattern - do fix if pattern found
8375  */
8376 tSCC zVxworks_TimeSelect0[] =
8377        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8378
8379 /*
8380  *  perform the 'test' shell command - do fix on success
8381  */
8382 tSCC zVxworks_TimeTest0[] =
8383        " -r vxWorks.h";
8384
8385 #define    VXWORKS_TIME_TEST_CT  2
8386 static tTestDesc aVxworks_TimeTests[] = {
8387   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8388   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8389
8390 /*
8391  *  Fix Command Arguments for Vxworks_Time
8392  */
8393 static const char* apzVxworks_TimePatch[] = {
8394     "format",
8395     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8396 #ifdef __cplusplus\n\
8397 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8398 #else\n\
8399 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8400 #endif\n\
8401 #define __gcc_VOIDFUNCPTR_defined\n\
8402 #endif\n\
8403 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8404     (char*)NULL };
8405
8406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8407  *
8408  *  Description of Windiss_Math1 fix
8409  */
8410 tSCC zWindiss_Math1Name[] =
8411      "windiss_math1";
8412
8413 /*
8414  *  File name selection pattern
8415  */
8416 tSCC zWindiss_Math1List[] =
8417   "math.h\0";
8418 /*
8419  *  Machine/OS name selection pattern
8420  */
8421 tSCC* apzWindiss_Math1Machs[] = {
8422         "*-*-windiss",
8423         (const char*)NULL };
8424 #define WINDISS_MATH1_TEST_CT  0
8425 #define aWindiss_Math1Tests   (tTestDesc*)NULL
8426
8427 /*
8428  *  Fix Command Arguments for Windiss_Math1
8429  */
8430 static const char* apzWindiss_Math1Patch[] = { "sed",
8431     "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8432     (char*)NULL };
8433
8434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8435  *
8436  *  Description of Windiss_Math2 fix
8437  */
8438 tSCC zWindiss_Math2Name[] =
8439      "windiss_math2";
8440
8441 /*
8442  *  File name selection pattern
8443  */
8444 tSCC zWindiss_Math2List[] =
8445   "math.h\0";
8446 /*
8447  *  Machine/OS name selection pattern
8448  */
8449 tSCC* apzWindiss_Math2Machs[] = {
8450         "*-*-windiss",
8451         (const char*)NULL };
8452 #define WINDISS_MATH2_TEST_CT  0
8453 #define aWindiss_Math2Tests   (tTestDesc*)NULL
8454
8455 /*
8456  *  Fix Command Arguments for Windiss_Math2
8457  */
8458 static const char* apzWindiss_Math2Patch[] = { "sed",
8459     "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8460     (char*)NULL };
8461
8462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8463  *
8464  *  Description of Windiss_Valist fix
8465  */
8466 tSCC zWindiss_ValistName[] =
8467      "windiss_valist";
8468
8469 /*
8470  *  File name selection pattern
8471  */
8472 #define zWindiss_ValistList (char*)NULL
8473 /*
8474  *  Machine/OS name selection pattern
8475  */
8476 tSCC* apzWindiss_ValistMachs[] = {
8477         "*-*-windiss",
8478         (const char*)NULL };
8479
8480 /*
8481  *  content selection pattern - do fix if pattern found
8482  */
8483 tSCC zWindiss_ValistSelect0[] =
8484        "(#include.*)diab/va_list.h";
8485
8486 #define    WINDISS_VALIST_TEST_CT  1
8487 static tTestDesc aWindiss_ValistTests[] = {
8488   { TT_EGREP,    zWindiss_ValistSelect0, (regex_t*)NULL }, };
8489
8490 /*
8491  *  Fix Command Arguments for Windiss_Valist
8492  */
8493 static const char* apzWindiss_ValistPatch[] = { "sed",
8494     "-e", "s|diab/va_list.h|stdarg.h|",
8495     (char*)NULL };
8496
8497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8498  *
8499  *  Description of X11_Class fix
8500  */
8501 tSCC zX11_ClassName[] =
8502      "x11_class";
8503
8504 /*
8505  *  File name selection pattern
8506  */
8507 tSCC zX11_ClassList[] =
8508   "X11/ShellP.h\0";
8509 /*
8510  *  Machine/OS name selection pattern
8511  */
8512 #define apzX11_ClassMachs (const char**)NULL
8513
8514 /*
8515  *  content selection pattern - do fix if pattern found
8516  */
8517 tSCC zX11_ClassSelect0[] =
8518        "^([ \t]*char \\*)class;(.*)";
8519
8520 /*
8521  *  content bypass pattern - skip fix if pattern found
8522  */
8523 tSCC zX11_ClassBypass0[] =
8524        "__cplusplus";
8525
8526 #define    X11_CLASS_TEST_CT  2
8527 static tTestDesc aX11_ClassTests[] = {
8528   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
8529   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
8530
8531 /*
8532  *  Fix Command Arguments for X11_Class
8533  */
8534 static const char* apzX11_ClassPatch[] = {
8535     "format",
8536     "#ifdef __cplusplus\n\
8537 %1c_class;%2\n\
8538 #else\n\
8539 %1class;%2\n\
8540 #endif",
8541     (char*)NULL };
8542
8543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8544  *
8545  *  Description of X11_Class_Usage fix
8546  */
8547 tSCC zX11_Class_UsageName[] =
8548      "x11_class_usage";
8549
8550 /*
8551  *  File name selection pattern
8552  */
8553 tSCC zX11_Class_UsageList[] =
8554   "Xm/BaseClassI.h\0";
8555 /*
8556  *  Machine/OS name selection pattern
8557  */
8558 #define apzX11_Class_UsageMachs (const char**)NULL
8559
8560 /*
8561  *  content selection pattern - do fix if pattern found
8562  */
8563 tSCC zX11_Class_UsageSelect0[] =
8564        " class\\)";
8565
8566 /*
8567  *  content bypass pattern - skip fix if pattern found
8568  */
8569 tSCC zX11_Class_UsageBypass0[] =
8570        "__cplusplus";
8571
8572 #define    X11_CLASS_USAGE_TEST_CT  2
8573 static tTestDesc aX11_Class_UsageTests[] = {
8574   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
8575   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8576
8577 /*
8578  *  Fix Command Arguments for X11_Class_Usage
8579  */
8580 static const char* apzX11_Class_UsagePatch[] = {
8581     "format",
8582     " c_class)",
8583     (char*)NULL };
8584
8585 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8586  *
8587  *  Description of X11_New fix
8588  */
8589 tSCC zX11_NewName[] =
8590      "x11_new";
8591
8592 /*
8593  *  File name selection pattern
8594  */
8595 tSCC zX11_NewList[] =
8596   "Xm/Traversal.h\0";
8597 /*
8598  *  Machine/OS name selection pattern
8599  */
8600 #define apzX11_NewMachs (const char**)NULL
8601
8602 /*
8603  *  content bypass pattern - skip fix if pattern found
8604  */
8605 tSCC zX11_NewBypass0[] =
8606        "__cplusplus";
8607
8608 #define    X11_NEW_TEST_CT  1
8609 static tTestDesc aX11_NewTests[] = {
8610   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
8611
8612 /*
8613  *  Fix Command Arguments for X11_New
8614  */
8615 static const char* apzX11_NewPatch[] = { "sed",
8616     "-e", "/Widget\told, new;/i\\\n\
8617 #ifdef __cplusplus\\\n\
8618 \tWidget\told, c_new;\\\n\
8619 #else\n",
8620     "-e", "/Widget\told, new;/a\\\n\
8621 #endif\n",
8622     "-e", "s/Widget new,/Widget c_new,/g",
8623     (char*)NULL };
8624
8625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8626  *
8627  *  Description of X11_Sprintf fix
8628  */
8629 tSCC zX11_SprintfName[] =
8630      "x11_sprintf";
8631
8632 /*
8633  *  File name selection pattern
8634  */
8635 tSCC zX11_SprintfList[] =
8636   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8637 /*
8638  *  Machine/OS name selection pattern
8639  */
8640 #define apzX11_SprintfMachs (const char**)NULL
8641
8642 /*
8643  *  content selection pattern - do fix if pattern found
8644  */
8645 tSCC zX11_SprintfSelect0[] =
8646        "^extern char \\*\tsprintf\\(\\);$";
8647
8648 #define    X11_SPRINTF_TEST_CT  1
8649 static tTestDesc aX11_SprintfTests[] = {
8650   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
8651
8652 /*
8653  *  Fix Command Arguments for X11_Sprintf
8654  */
8655 static const char* apzX11_SprintfPatch[] = {
8656     "format",
8657     "#ifndef __STDC__\n\
8658 %0\n\
8659 #endif /* !defined __STDC__ */",
8660     (char*)NULL };
8661
8662
8663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8664  *
8665  *  List of all fixes
8666  */
8667 #define REGEX_COUNT          256
8668 #define MACH_LIST_SIZE_LIMIT 261
8669 #define FIX_COUNT            213
8670
8671 /*
8672  *  Enumerate the fixes
8673  */
8674 typedef enum {
8675     AAB_AIX_STDIO_FIXIDX,
8676     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8677     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8678     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8679     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8680     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8681     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8682     AAB_SUN_MEMCPY_FIXIDX,
8683     AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8684     AAB_ULTRIX_LIMITS_FIXIDX,
8685     AAB_ULTRIX_MEMORY_FIXIDX,
8686     AAB_ULTRIX_STRING_FIXIDX,
8687     AIX_PTHREAD_FIXIDX,
8688     AIX_SYSMACHINE_FIXIDX,
8689     AIX_SYSWAIT_FIXIDX,
8690     AIX_SYSWAIT_2_FIXIDX,
8691     AIX_VOLATILE_FIXIDX,
8692     ALPHA___ASSERT_FIXIDX,
8693     ALPHA___EXTERN_PREFIX_FIXIDX,
8694     ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8695     ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8696     ALPHA_ASSERT_FIXIDX,
8697     ALPHA_BAD_LVAL_FIXIDX,
8698     ALPHA_GETOPT_FIXIDX,
8699     ALPHA_PARENS_FIXIDX,
8700     ALPHA_PTHREAD_FIXIDX,
8701     ALPHA_PTHREAD_GCC_FIXIDX,
8702     ALPHA_PTHREAD_INIT_FIXIDX,
8703     ALPHA_SBRK_FIXIDX,
8704     ALPHA_WCHAR_FIXIDX,
8705     AVOID_BOOL_DEFINE_FIXIDX,
8706     AVOID_BOOL_TYPE_FIXIDX,
8707     AVOID_WCHAR_T_TYPE_FIXIDX,
8708     BAD_STRUCT_TERM_FIXIDX,
8709     BADQUOTE_FIXIDX,
8710     BROKEN_ASSERT_STDIO_FIXIDX,
8711     BROKEN_ASSERT_STDLIB_FIXIDX,
8712     BROKEN_CABS_FIXIDX,
8713     BROKEN_NAN_FIXIDX,
8714     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8715     CTRL_QUOTES_DEF_FIXIDX,
8716     CTRL_QUOTES_USE_FIXIDX,
8717     CXX_UNREADY_FIXIDX,
8718     DARWIN_EXTERNC_FIXIDX,
8719     DARWIN_GCC4_BREAKAGE_FIXIDX,
8720     DARWIN_PRIVATE_EXTERN_FIXIDX,
8721     DEC_INTERN_ASM_FIXIDX,
8722     DJGPP_WCHAR_H_FIXIDX,
8723     ECD_CURSOR_FIXIDX,
8724     EXCEPTION_STRUCTURE_FIXIDX,
8725     FREEBSD_GCC3_BREAKAGE_FIXIDX,
8726     FREEBSD_GCC4_BREAKAGE_FIXIDX,
8727     GLIBC_C99_INLINE_1_FIXIDX,
8728     GLIBC_C99_INLINE_1A_FIXIDX,
8729     GLIBC_C99_INLINE_2_FIXIDX,
8730     GLIBC_C99_INLINE_3_FIXIDX,
8731     GLIBC_C99_INLINE_4_FIXIDX,
8732     GLIBC_MUTEX_INIT_FIXIDX,
8733     GNU_TYPES_FIXIDX,
8734     HP_INLINE_FIXIDX,
8735     HP_SYSFILE_FIXIDX,
8736     HPUX10_CPP_POW_INLINE_FIXIDX,
8737     HPUX11_CPP_POW_INLINE_FIXIDX,
8738     HPPA_HPUX_FP_MACROS_FIXIDX,
8739     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8740     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8741     HPUX10_STDIO_DECLARATIONS_FIXIDX,
8742     HPUX11_ABS_FIXIDX,
8743     HPUX11_FABSF_FIXIDX,
8744     HPUX11_SIZE_T_FIXIDX,
8745     HPUX11_SNPRINTF_FIXIDX,
8746     HPUX11_UINT32_C_FIXIDX,
8747     HPUX11_VSNPRINTF_FIXIDX,
8748     HPUX8_BOGUS_INLINES_FIXIDX,
8749     HPUX_CTYPE_MACROS_FIXIDX,
8750     HPUX_HTONL_FIXIDX,
8751     HPUX_LONG_DOUBLE_FIXIDX,
8752     HPUX_SYSTIME_FIXIDX,
8753     HPUX_SPU_INFO_FIXIDX,
8754     HPUX11_EXTERN_SENDFILE_FIXIDX,
8755     HPUX11_EXTERN_SENDPATH_FIXIDX,
8756     HPUX_EXTERN_ERRNO_FIXIDX,
8757     HPUX11_PTHREAD_CONST_FIXIDX,
8758     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8759     HUGE_VAL_HEX_FIXIDX,
8760     HUGE_VALF_HEX_FIXIDX,
8761     HUGE_VALL_HEX_FIXIDX,
8762     INT_ABORT_FREE_AND_EXIT_FIXIDX,
8763     IO_QUOTES_DEF_FIXIDX,
8764     IO_QUOTES_USE_FIXIDX,
8765     IP_MISSING_SEMI_FIXIDX,
8766     IRIX___RESTRICT_FIXIDX,
8767     IRIX___GENERIC1_FIXIDX,
8768     IRIX___GENERIC2_FIXIDX,
8769     IRIX_ASM_APOSTROPHE_FIXIDX,
8770     IRIX_LIMITS_CONST_FIXIDX,
8771     IRIX_SOCKLEN_T_FIXIDX,
8772     IRIX_STDINT_C99_FIXIDX,
8773     IRIX_STDIO_VA_LIST_FIXIDX,
8774     IRIX_WCSFTIME_FIXIDX,
8775     ISC_FMOD_FIXIDX,
8776     ISC_OMITS_WITH_STDC_FIXIDX,
8777     KANDR_CONCAT_FIXIDX,
8778     LIBC1_G_VA_LIST_FIXIDX,
8779     LIBC1_IFDEFD_MEMX_FIXIDX,
8780     LINUX_IA64_UCONTEXT_FIXIDX,
8781     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8782     LYNXOS_MISSING_PUTENV_FIXIDX,
8783     MACHINE_ANSI_H_VA_LIST_FIXIDX,
8784     MACHINE_NAME_FIXIDX,
8785     MATH_EXCEPTION_FIXIDX,
8786     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8787     NESTED_AUTH_DES_FIXIDX,
8788     NESTED_MOTOROLA_FIXIDX,
8789     NESTED_SYS_LIMITS_FIXIDX,
8790     NETBSD_C99_INLINE_1_FIXIDX,
8791     NETBSD_C99_INLINE_2_FIXIDX,
8792     NETBSD_EXTRA_SEMICOLON_FIXIDX,
8793     NEXT_MATH_PREFIX_FIXIDX,
8794     NEXT_TEMPLATE_FIXIDX,
8795     NEXT_VOLITILE_FIXIDX,
8796     NEXT_WAIT_UNION_FIXIDX,
8797     NODEENT_SYNTAX_FIXIDX,
8798     OBSTACK_LVALUE_CAST_FIXIDX,
8799     OSF_NAMESPACE_A_FIXIDX,
8800     OSF_NAMESPACE_C_FIXIDX,
8801     PTHREAD_PAGE_SIZE_FIXIDX,
8802     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8803     READ_RET_TYPE_FIXIDX,
8804     RPC_XDR_LVALUE_CAST_A_FIXIDX,
8805     RPC_XDR_LVALUE_CAST_B_FIXIDX,
8806     RS6000_DOUBLE_FIXIDX,
8807     RS6000_FCHMOD_FIXIDX,
8808     RS6000_PARAM_FIXIDX,
8809     SCO_MATH_FIXIDX,
8810     SCO_REGSET_FIXIDX,
8811     SCO_STATIC_FUNC_FIXIDX,
8812     SCO_UTIME_FIXIDX,
8813     SOLARIS_MATH_1_FIXIDX,
8814     SOLARIS_MATH_2_FIXIDX,
8815     SOLARIS_MATH_3_FIXIDX,
8816     SOLARIS_MATH_4_FIXIDX,
8817     SOLARIS_MATH_8_FIXIDX,
8818     SOLARIS_MATH_9_FIXIDX,
8819     SOLARIS_MATH_10_FIXIDX,
8820     SOLARIS_MUTEX_INIT_1_FIXIDX,
8821     SOLARIS_MUTEX_INIT_2_FIXIDX,
8822     SOLARIS_RWLOCK_INIT_1_FIXIDX,
8823     SOLARIS_ONCE_INIT_1_FIXIDX,
8824     SOLARIS_ONCE_INIT_2_FIXIDX,
8825     SOLARIS_SOCKET_FIXIDX,
8826     SOLARIS_STDIO_TAG_FIXIDX,
8827     SOLARIS_UNISTD_FIXIDX,
8828     SOLARIS_WIDEC_FIXIDX,
8829     STATSSWTCH_FIXIDX,
8830     STDIO_STDARG_H_FIXIDX,
8831     STDIO_VA_LIST_FIXIDX,
8832     STDIO_VA_LIST_CLIENTS_FIXIDX,
8833     STRICT_ANSI_NOT_FIXIDX,
8834     STRICT_ANSI_NOT_CTD_FIXIDX,
8835     STRICT_ANSI_ONLY_FIXIDX,
8836     STRUCT_FILE_FIXIDX,
8837     STRUCT_SOCKADDR_FIXIDX,
8838     SUN_AUTH_PROTO_FIXIDX,
8839     SUN_BOGUS_IFDEF_FIXIDX,
8840     SUN_CATMACRO_FIXIDX,
8841     SUN_MALLOC_FIXIDX,
8842     SUN_RUSERS_SEMI_FIXIDX,
8843     SUN_SIGNAL_FIXIDX,
8844     SUNOS_STRLEN_FIXIDX,
8845     SVR4_DISABLE_OPT_FIXIDX,
8846     SVR4_GETCWD_FIXIDX,
8847     SVR4_KRNL_FIXIDX,
8848     SVR4_PROFIL_FIXIDX,
8849     SVR4_SIGHANDLER_TYPE_FIXIDX,
8850     SVR4_UNDECLARED_GETRNGE_FIXIDX,
8851     SYSV68_STRING_FIXIDX,
8852     SYSZ_STDLIB_FOR_SUN_FIXIDX,
8853     THREAD_KEYWORD_FIXIDX,
8854     TINFO_CPLUSPLUS_FIXIDX,
8855     ULTRIX_ATEXIT_PARAM_FIXIDX,
8856     ULTRIX_ATOF_PARAM_FIXIDX,
8857     ULTRIX_CONST_FIXIDX,
8858     ULTRIX_CONST2_FIXIDX,
8859     ULTRIX_CONST3_FIXIDX,
8860     ULTRIX_FIX_FIXPROTO_FIXIDX,
8861     ULTRIX_IFDEF_FIXIDX,
8862     ULTRIX_LOCALE_FIXIDX,
8863     ULTRIX_MATH_IFDEF_FIXIDX,
8864     ULTRIX_NESTED_IOCTL_FIXIDX,
8865     ULTRIX_NESTED_SVC_FIXIDX,
8866     ULTRIX_STAT_FIXIDX,
8867     ULTRIX_STATIC_FIXIDX,
8868     ULTRIX_STDLIB_FIXIDX,
8869     ULTRIX_STRINGS_FIXIDX,
8870     ULTRIX_STRINGS2_FIXIDX,
8871     ULTRIX_SYS_TIME_FIXIDX,
8872     ULTRIX_UNISTD_FIXIDX,
8873     UNICOSMK_RESTRICT_FIXIDX,
8874     UW7_BYTEORDER_FIX_FIXIDX,
8875     VA_I960_MACRO_FIXIDX,
8876     VOID_NULL_FIXIDX,
8877     VXWORKS_GCC_PROBLEM_FIXIDX,
8878     VXWORKS_NEEDS_VXTYPES_FIXIDX,
8879     VXWORKS_NEEDS_VXWORKS_FIXIDX,
8880     VXWORKS_TIME_FIXIDX,
8881     WINDISS_MATH1_FIXIDX,
8882     WINDISS_MATH2_FIXIDX,
8883     WINDISS_VALIST_FIXIDX,
8884     X11_CLASS_FIXIDX,
8885     X11_CLASS_USAGE_FIXIDX,
8886     X11_NEW_FIXIDX,
8887     X11_SPRINTF_FIXIDX
8888 } t_fixinc_idx;
8889
8890 tFixDesc fixDescList[ FIX_COUNT ] = {
8891   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
8892      apzAab_Aix_StdioMachs,
8893      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8894      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
8895
8896   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
8897      apzAab_Darwin7_9_Long_Double_FuncsMachs,
8898      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8899      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8900
8901   {  zAab_Darwin7_9_Long_Double_Funcs_2Name,    zAab_Darwin7_9_Long_Double_Funcs_2List,
8902      apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8903      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8904      aAab_Darwin7_9_Long_Double_Funcs_2Tests,   apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8905
8906   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
8907      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8908      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8909      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8910
8911   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
8912      apzAab_Fd_Zero_Gnu_Types_HMachs,
8913      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8914      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8915
8916   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
8917      apzAab_Fd_Zero_Selectbits_HMachs,
8918      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8919      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8920
8921   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
8922      apzAab_Solaris_Sys_Varargs_HMachs,
8923      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8924      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8925
8926   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
8927      apzAab_Sun_MemcpyMachs,
8928      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8929      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
8930
8931   {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
8932      apzAab_Ultrix_Ansi_CompatMachs,
8933      AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8934      aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch, 0 },
8935
8936   {  zAab_Ultrix_LimitsName,    zAab_Ultrix_LimitsList,
8937      apzAab_Ultrix_LimitsMachs,
8938      AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8939      aAab_Ultrix_LimitsTests,   apzAab_Ultrix_LimitsPatch, 0 },
8940
8941   {  zAab_Ultrix_MemoryName,    zAab_Ultrix_MemoryList,
8942      apzAab_Ultrix_MemoryMachs,
8943      AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8944      aAab_Ultrix_MemoryTests,   apzAab_Ultrix_MemoryPatch, 0 },
8945
8946   {  zAab_Ultrix_StringName,    zAab_Ultrix_StringList,
8947      apzAab_Ultrix_StringMachs,
8948      AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8949      aAab_Ultrix_StringTests,   apzAab_Ultrix_StringPatch, 0 },
8950
8951   {  zAix_PthreadName,    zAix_PthreadList,
8952      apzAix_PthreadMachs,
8953      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8954      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
8955
8956   {  zAix_SysmachineName,    zAix_SysmachineList,
8957      apzAix_SysmachineMachs,
8958      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8959      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
8960
8961   {  zAix_SyswaitName,    zAix_SyswaitList,
8962      apzAix_SyswaitMachs,
8963      AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8964      aAix_SyswaitTests,   apzAix_SyswaitPatch, 0 },
8965
8966   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
8967      apzAix_Syswait_2Machs,
8968      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8969      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
8970
8971   {  zAix_VolatileName,    zAix_VolatileList,
8972      apzAix_VolatileMachs,
8973      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8974      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
8975
8976   {  zAlpha___AssertName,    zAlpha___AssertList,
8977      apzAlpha___AssertMachs,
8978      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8979      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
8980
8981   {  zAlpha___Extern_PrefixName,    zAlpha___Extern_PrefixList,
8982      apzAlpha___Extern_PrefixMachs,
8983      ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8984      aAlpha___Extern_PrefixTests,   apzAlpha___Extern_PrefixPatch, 0 },
8985
8986   {  zAlpha___Extern_Prefix_StandardsName,    zAlpha___Extern_Prefix_StandardsList,
8987      apzAlpha___Extern_Prefix_StandardsMachs,
8988      ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8989      aAlpha___Extern_Prefix_StandardsTests,   apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8990
8991   {  zAlpha___Extern_Prefix_Sys_StatName,    zAlpha___Extern_Prefix_Sys_StatList,
8992      apzAlpha___Extern_Prefix_Sys_StatMachs,
8993      ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8994      aAlpha___Extern_Prefix_Sys_StatTests,   apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8995
8996   {  zAlpha_AssertName,    zAlpha_AssertList,
8997      apzAlpha_AssertMachs,
8998      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8999      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
9000
9001   {  zAlpha_Bad_LvalName,    zAlpha_Bad_LvalList,
9002      apzAlpha_Bad_LvalMachs,
9003      ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
9004      aAlpha_Bad_LvalTests,   apzAlpha_Bad_LvalPatch, 0 },
9005
9006   {  zAlpha_GetoptName,    zAlpha_GetoptList,
9007      apzAlpha_GetoptMachs,
9008      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9009      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
9010
9011   {  zAlpha_ParensName,    zAlpha_ParensList,
9012      apzAlpha_ParensMachs,
9013      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9014      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
9015
9016   {  zAlpha_PthreadName,    zAlpha_PthreadList,
9017      apzAlpha_PthreadMachs,
9018      ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9019      aAlpha_PthreadTests,   apzAlpha_PthreadPatch, 0 },
9020
9021   {  zAlpha_Pthread_GccName,    zAlpha_Pthread_GccList,
9022      apzAlpha_Pthread_GccMachs,
9023      ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9024      aAlpha_Pthread_GccTests,   apzAlpha_Pthread_GccPatch, 0 },
9025
9026   {  zAlpha_Pthread_InitName,    zAlpha_Pthread_InitList,
9027      apzAlpha_Pthread_InitMachs,
9028      ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
9029      aAlpha_Pthread_InitTests,   apzAlpha_Pthread_InitPatch, 0 },
9030
9031   {  zAlpha_SbrkName,    zAlpha_SbrkList,
9032      apzAlpha_SbrkMachs,
9033      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9034      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
9035
9036   {  zAlpha_WcharName,    zAlpha_WcharList,
9037      apzAlpha_WcharMachs,
9038      ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
9039      aAlpha_WcharTests,   apzAlpha_WcharPatch, 0 },
9040
9041   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
9042      apzAvoid_Bool_DefineMachs,
9043      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9044      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
9045
9046   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
9047      apzAvoid_Bool_TypeMachs,
9048      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9049      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
9050
9051   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
9052      apzAvoid_Wchar_T_TypeMachs,
9053      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9054      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
9055
9056   {  zBad_Struct_TermName,    zBad_Struct_TermList,
9057      apzBad_Struct_TermMachs,
9058      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9059      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
9060
9061   {  zBadquoteName,    zBadquoteList,
9062      apzBadquoteMachs,
9063      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9064      aBadquoteTests,   apzBadquotePatch, 0 },
9065
9066   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
9067      apzBroken_Assert_StdioMachs,
9068      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9069      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
9070
9071   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
9072      apzBroken_Assert_StdlibMachs,
9073      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9074      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
9075
9076   {  zBroken_CabsName,    zBroken_CabsList,
9077      apzBroken_CabsMachs,
9078      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9079      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
9080
9081   {  zBroken_NanName,    zBroken_NanList,
9082      apzBroken_NanMachs,
9083      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9084      aBroken_NanTests,   apzBroken_NanPatch, 0 },
9085
9086   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
9087      apzBsd_Stdio_Attrs_ConflictMachs,
9088      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9089      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9090
9091   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
9092      apzCtrl_Quotes_DefMachs,
9093      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9094      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
9095
9096   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
9097      apzCtrl_Quotes_UseMachs,
9098      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9099      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
9100
9101   {  zCxx_UnreadyName,    zCxx_UnreadyList,
9102      apzCxx_UnreadyMachs,
9103      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9104      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
9105
9106   {  zDarwin_ExterncName,    zDarwin_ExterncList,
9107      apzDarwin_ExterncMachs,
9108      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9109      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
9110
9111   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
9112      apzDarwin_Gcc4_BreakageMachs,
9113      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9114      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
9115
9116   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
9117      apzDarwin_Private_ExternMachs,
9118      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9119      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
9120
9121   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9122      apzDec_Intern_AsmMachs,
9123      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9124      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9125
9126   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9127      apzDjgpp_Wchar_HMachs,
9128      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9129      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9130
9131   {  zEcd_CursorName,    zEcd_CursorList,
9132      apzEcd_CursorMachs,
9133      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9134      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9135
9136   {  zException_StructureName,    zException_StructureList,
9137      apzException_StructureMachs,
9138      EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9139      aException_StructureTests,   apzException_StructurePatch, 0 },
9140
9141   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9142      apzFreebsd_Gcc3_BreakageMachs,
9143      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9144      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9145
9146   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9147      apzFreebsd_Gcc4_BreakageMachs,
9148      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9149      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9150
9151   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9152      apzGlibc_C99_Inline_1Machs,
9153      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9154      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9155
9156   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
9157      apzGlibc_C99_Inline_1aMachs,
9158      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9159      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
9160
9161   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9162      apzGlibc_C99_Inline_2Machs,
9163      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9164      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9165
9166   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9167      apzGlibc_C99_Inline_3Machs,
9168      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9169      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9170
9171   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9172      apzGlibc_C99_Inline_4Machs,
9173      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9174      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9175
9176   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9177      apzGlibc_Mutex_InitMachs,
9178      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9179      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9180
9181   {  zGnu_TypesName,    zGnu_TypesList,
9182      apzGnu_TypesMachs,
9183      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9184      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9185
9186   {  zHp_InlineName,    zHp_InlineList,
9187      apzHp_InlineMachs,
9188      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9189      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9190
9191   {  zHp_SysfileName,    zHp_SysfileList,
9192      apzHp_SysfileMachs,
9193      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9194      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
9195
9196   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
9197      apzHpux10_Cpp_Pow_InlineMachs,
9198      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9199      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
9200
9201   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
9202      apzHpux11_Cpp_Pow_InlineMachs,
9203      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9204      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
9205
9206   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
9207      apzHppa_Hpux_Fp_MacrosMachs,
9208      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9209      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
9210
9211   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
9212      apzHpux10_Ctype_Declarations1Machs,
9213      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9214      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
9215
9216   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
9217      apzHpux10_Ctype_Declarations2Machs,
9218      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9219      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
9220
9221   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
9222      apzHpux10_Stdio_DeclarationsMachs,
9223      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9224      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
9225
9226   {  zHpux11_AbsName,    zHpux11_AbsList,
9227      apzHpux11_AbsMachs,
9228      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9229      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
9230
9231   {  zHpux11_FabsfName,    zHpux11_FabsfList,
9232      apzHpux11_FabsfMachs,
9233      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9234      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
9235
9236   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9237      apzHpux11_Size_TMachs,
9238      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9239      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9240
9241   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9242      apzHpux11_SnprintfMachs,
9243      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9244      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9245
9246   {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
9247      apzHpux11_Uint32_CMachs,
9248      HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9249      aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch, 0 },
9250
9251   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9252      apzHpux11_VsnprintfMachs,
9253      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9254      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9255
9256   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9257      apzHpux8_Bogus_InlinesMachs,
9258      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9259      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9260
9261   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9262      apzHpux_Ctype_MacrosMachs,
9263      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9264      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9265
9266   {  zHpux_HtonlName,    zHpux_HtonlList,
9267      apzHpux_HtonlMachs,
9268      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9269      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9270
9271   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9272      apzHpux_Long_DoubleMachs,
9273      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9274      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9275
9276   {  zHpux_SystimeName,    zHpux_SystimeList,
9277      apzHpux_SystimeMachs,
9278      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9279      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9280
9281   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9282      apzHpux_Spu_InfoMachs,
9283      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9284      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9285
9286   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9287      apzHpux11_Extern_SendfileMachs,
9288      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9289      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9290
9291   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9292      apzHpux11_Extern_SendpathMachs,
9293      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9294      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9295
9296   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9297      apzHpux_Extern_ErrnoMachs,
9298      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9299      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9300
9301   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
9302      apzHpux11_Pthread_ConstMachs,
9303      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9304      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
9305
9306   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
9307      apzHpux_Pthread_InitializersMachs,
9308      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9309      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
9310
9311   {  zHuge_Val_HexName,    zHuge_Val_HexList,
9312      apzHuge_Val_HexMachs,
9313      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9314      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
9315
9316   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
9317      apzHuge_Valf_HexMachs,
9318      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9319      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
9320
9321   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
9322      apzHuge_Vall_HexMachs,
9323      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9324      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
9325
9326   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
9327      apzInt_Abort_Free_And_ExitMachs,
9328      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9329      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
9330
9331   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
9332      apzIo_Quotes_DefMachs,
9333      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9334      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
9335
9336   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
9337      apzIo_Quotes_UseMachs,
9338      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9339      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
9340
9341   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
9342      apzIp_Missing_SemiMachs,
9343      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9344      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
9345
9346   {  zIrix___RestrictName,    zIrix___RestrictList,
9347      apzIrix___RestrictMachs,
9348      IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9349      aIrix___RestrictTests,   apzIrix___RestrictPatch, 0 },
9350
9351   {  zIrix___Generic1Name,    zIrix___Generic1List,
9352      apzIrix___Generic1Machs,
9353      IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9354      aIrix___Generic1Tests,   apzIrix___Generic1Patch, 0 },
9355
9356   {  zIrix___Generic2Name,    zIrix___Generic2List,
9357      apzIrix___Generic2Machs,
9358      IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9359      aIrix___Generic2Tests,   apzIrix___Generic2Patch, 0 },
9360
9361   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
9362      apzIrix_Asm_ApostropheMachs,
9363      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9364      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch, 0 },
9365
9366   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
9367      apzIrix_Limits_ConstMachs,
9368      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9369      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
9370
9371   {  zIrix_Socklen_TName,    zIrix_Socklen_TList,
9372      apzIrix_Socklen_TMachs,
9373      IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9374      aIrix_Socklen_TTests,   apzIrix_Socklen_TPatch, 0 },
9375
9376   {  zIrix_Stdint_C99Name,    zIrix_Stdint_C99List,
9377      apzIrix_Stdint_C99Machs,
9378      IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9379      aIrix_Stdint_C99Tests,   apzIrix_Stdint_C99Patch, 0 },
9380
9381   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
9382      apzIrix_Stdio_Va_ListMachs,
9383      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9384      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
9385
9386   {  zIrix_WcsftimeName,    zIrix_WcsftimeList,
9387      apzIrix_WcsftimeMachs,
9388      IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9389      aIrix_WcsftimeTests,   apzIrix_WcsftimePatch, 0 },
9390
9391   {  zIsc_FmodName,    zIsc_FmodList,
9392      apzIsc_FmodMachs,
9393      ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9394      aIsc_FmodTests,   apzIsc_FmodPatch, 0 },
9395
9396   {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
9397      apzIsc_Omits_With_StdcMachs,
9398      ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9399      aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch, 0 },
9400
9401   {  zKandr_ConcatName,    zKandr_ConcatList,
9402      apzKandr_ConcatMachs,
9403      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9404      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
9405
9406   {  zLibc1_G_Va_ListName,    zLibc1_G_Va_ListList,
9407      apzLibc1_G_Va_ListMachs,
9408      LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9409      aLibc1_G_Va_ListTests,   apzLibc1_G_Va_ListPatch, 0 },
9410
9411   {  zLibc1_Ifdefd_MemxName,    zLibc1_Ifdefd_MemxList,
9412      apzLibc1_Ifdefd_MemxMachs,
9413      LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9414      aLibc1_Ifdefd_MemxTests,   apzLibc1_Ifdefd_MemxPatch, 0 },
9415
9416   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
9417      apzLinux_Ia64_UcontextMachs,
9418      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9419      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
9420
9421   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
9422      apzLynxos_No_Warning_In_Sys_Time_HMachs,
9423      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9424      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9425
9426   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
9427      apzLynxos_Missing_PutenvMachs,
9428      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9429      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
9430
9431   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
9432      apzMachine_Ansi_H_Va_ListMachs,
9433      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9434      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
9435
9436   {  zMachine_NameName,    zMachine_NameList,
9437      apzMachine_NameMachs,
9438      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9439      aMachine_NameTests,   apzMachine_NamePatch, 0 },
9440
9441   {  zMath_ExceptionName,    zMath_ExceptionList,
9442      apzMath_ExceptionMachs,
9443      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9444      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
9445
9446   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
9447      apzMath_Huge_Val_From_Dbl_MaxMachs,
9448      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9449      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9450
9451   {  zNested_Auth_DesName,    zNested_Auth_DesList,
9452      apzNested_Auth_DesMachs,
9453      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9454      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
9455
9456   {  zNested_MotorolaName,    zNested_MotorolaList,
9457      apzNested_MotorolaMachs,
9458      NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9459      aNested_MotorolaTests,   apzNested_MotorolaPatch, 0 },
9460
9461   {  zNested_Sys_LimitsName,    zNested_Sys_LimitsList,
9462      apzNested_Sys_LimitsMachs,
9463      NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9464      aNested_Sys_LimitsTests,   apzNested_Sys_LimitsPatch, 0 },
9465
9466   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
9467      apzNetbsd_C99_Inline_1Machs,
9468      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9469      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
9470
9471   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
9472      apzNetbsd_C99_Inline_2Machs,
9473      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9474      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
9475
9476   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
9477      apzNetbsd_Extra_SemicolonMachs,
9478      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9479      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
9480
9481   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
9482      apzNext_Math_PrefixMachs,
9483      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9484      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
9485
9486   {  zNext_TemplateName,    zNext_TemplateList,
9487      apzNext_TemplateMachs,
9488      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9489      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
9490
9491   {  zNext_VolitileName,    zNext_VolitileList,
9492      apzNext_VolitileMachs,
9493      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9494      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
9495
9496   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
9497      apzNext_Wait_UnionMachs,
9498      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9499      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
9500
9501   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
9502      apzNodeent_SyntaxMachs,
9503      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9504      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
9505
9506   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
9507      apzObstack_Lvalue_CastMachs,
9508      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9509      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
9510
9511   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
9512      apzOsf_Namespace_AMachs,
9513      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9514      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
9515
9516   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
9517      apzOsf_Namespace_CMachs,
9518      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9519      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
9520
9521   {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
9522      apzPthread_Page_SizeMachs,
9523      PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9524      aPthread_Page_SizeTests,   apzPthread_Page_SizePatch, 0 },
9525
9526   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
9527      apzPthread_Incomplete_Struct_ArgumentMachs,
9528      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9529      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9530
9531   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
9532      apzRead_Ret_TypeMachs,
9533      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9534      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
9535
9536   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
9537      apzRpc_Xdr_Lvalue_Cast_AMachs,
9538      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9539      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9540
9541   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
9542      apzRpc_Xdr_Lvalue_Cast_BMachs,
9543      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9544      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9545
9546   {  zRs6000_DoubleName,    zRs6000_DoubleList,
9547      apzRs6000_DoubleMachs,
9548      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9549      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
9550
9551   {  zRs6000_FchmodName,    zRs6000_FchmodList,
9552      apzRs6000_FchmodMachs,
9553      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9554      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
9555
9556   {  zRs6000_ParamName,    zRs6000_ParamList,
9557      apzRs6000_ParamMachs,
9558      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9559      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
9560
9561   {  zSco_MathName,    zSco_MathList,
9562      apzSco_MathMachs,
9563      SCO_MATH_TEST_CT, FD_MACH_ONLY,
9564      aSco_MathTests,   apzSco_MathPatch, 0 },
9565
9566   {  zSco_RegsetName,    zSco_RegsetList,
9567      apzSco_RegsetMachs,
9568      SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9569      aSco_RegsetTests,   apzSco_RegsetPatch, 0 },
9570
9571   {  zSco_Static_FuncName,    zSco_Static_FuncList,
9572      apzSco_Static_FuncMachs,
9573      SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9574      aSco_Static_FuncTests,   apzSco_Static_FuncPatch, 0 },
9575
9576   {  zSco_UtimeName,    zSco_UtimeList,
9577      apzSco_UtimeMachs,
9578      SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9579      aSco_UtimeTests,   apzSco_UtimePatch, 0 },
9580
9581   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
9582      apzSolaris_Math_1Machs,
9583      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9584      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
9585
9586   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
9587      apzSolaris_Math_2Machs,
9588      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9589      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
9590
9591   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
9592      apzSolaris_Math_3Machs,
9593      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9594      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
9595
9596   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
9597      apzSolaris_Math_4Machs,
9598      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9599      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
9600
9601   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
9602      apzSolaris_Math_8Machs,
9603      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9604      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
9605
9606   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
9607      apzSolaris_Math_9Machs,
9608      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9609      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
9610
9611   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
9612      apzSolaris_Math_10Machs,
9613      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9614      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
9615
9616   {  zSolaris_Mutex_Init_1Name,    zSolaris_Mutex_Init_1List,
9617      apzSolaris_Mutex_Init_1Machs,
9618      SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9619      aSolaris_Mutex_Init_1Tests,   apzSolaris_Mutex_Init_1Patch, 0 },
9620
9621   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
9622      apzSolaris_Mutex_Init_2Machs,
9623      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9624      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
9625
9626   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
9627      apzSolaris_Rwlock_Init_1Machs,
9628      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9629      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
9630
9631   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
9632      apzSolaris_Once_Init_1Machs,
9633      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9634      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
9635
9636   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
9637      apzSolaris_Once_Init_2Machs,
9638      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9639      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
9640
9641   {  zSolaris_SocketName,    zSolaris_SocketList,
9642      apzSolaris_SocketMachs,
9643      SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9644      aSolaris_SocketTests,   apzSolaris_SocketPatch, 0 },
9645
9646   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
9647      apzSolaris_Stdio_TagMachs,
9648      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9649      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
9650
9651   {  zSolaris_UnistdName,    zSolaris_UnistdList,
9652      apzSolaris_UnistdMachs,
9653      SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9654      aSolaris_UnistdTests,   apzSolaris_UnistdPatch, 0 },
9655
9656   {  zSolaris_WidecName,    zSolaris_WidecList,
9657      apzSolaris_WidecMachs,
9658      SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9659      aSolaris_WidecTests,   apzSolaris_WidecPatch, 0 },
9660
9661   {  zStatsswtchName,    zStatsswtchList,
9662      apzStatsswtchMachs,
9663      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9664      aStatsswtchTests,   apzStatsswtchPatch, 0 },
9665
9666   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
9667      apzStdio_Stdarg_HMachs,
9668      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9669      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
9670
9671   {  zStdio_Va_ListName,    zStdio_Va_ListList,
9672      apzStdio_Va_ListMachs,
9673      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9674      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
9675
9676   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
9677      apzStdio_Va_List_ClientsMachs,
9678      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9679      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
9680
9681   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
9682      apzStrict_Ansi_NotMachs,
9683      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9684      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
9685
9686   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
9687      apzStrict_Ansi_Not_CtdMachs,
9688      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9689      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
9690
9691   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
9692      apzStrict_Ansi_OnlyMachs,
9693      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9694      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
9695
9696   {  zStruct_FileName,    zStruct_FileList,
9697      apzStruct_FileMachs,
9698      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9699      aStruct_FileTests,   apzStruct_FilePatch, 0 },
9700
9701   {  zStruct_SockaddrName,    zStruct_SockaddrList,
9702      apzStruct_SockaddrMachs,
9703      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9704      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
9705
9706   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
9707      apzSun_Auth_ProtoMachs,
9708      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9709      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
9710
9711   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
9712      apzSun_Bogus_IfdefMachs,
9713      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9714      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
9715
9716   {  zSun_CatmacroName,    zSun_CatmacroList,
9717      apzSun_CatmacroMachs,
9718      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9719      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
9720
9721   {  zSun_MallocName,    zSun_MallocList,
9722      apzSun_MallocMachs,
9723      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9724      aSun_MallocTests,   apzSun_MallocPatch, 0 },
9725
9726   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
9727      apzSun_Rusers_SemiMachs,
9728      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9729      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
9730
9731   {  zSun_SignalName,    zSun_SignalList,
9732      apzSun_SignalMachs,
9733      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9734      aSun_SignalTests,   apzSun_SignalPatch, 0 },
9735
9736   {  zSunos_StrlenName,    zSunos_StrlenList,
9737      apzSunos_StrlenMachs,
9738      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9739      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
9740
9741   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
9742      apzSvr4_Disable_OptMachs,
9743      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9744      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
9745
9746   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
9747      apzSvr4_GetcwdMachs,
9748      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9749      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
9750
9751   {  zSvr4_KrnlName,    zSvr4_KrnlList,
9752      apzSvr4_KrnlMachs,
9753      SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9754      aSvr4_KrnlTests,   apzSvr4_KrnlPatch, 0 },
9755
9756   {  zSvr4_ProfilName,    zSvr4_ProfilList,
9757      apzSvr4_ProfilMachs,
9758      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9759      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
9760
9761   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
9762      apzSvr4_Sighandler_TypeMachs,
9763      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9764      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
9765
9766   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
9767      apzSvr4_Undeclared_GetrngeMachs,
9768      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9769      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
9770
9771   {  zSysv68_StringName,    zSysv68_StringList,
9772      apzSysv68_StringMachs,
9773      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9774      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
9775
9776   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
9777      apzSysz_Stdlib_For_SunMachs,
9778      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9779      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
9780
9781   {  zThread_KeywordName,    zThread_KeywordList,
9782      apzThread_KeywordMachs,
9783      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9784      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
9785
9786   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
9787      apzTinfo_CplusplusMachs,
9788      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9789      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
9790
9791   {  zUltrix_Atexit_ParamName,    zUltrix_Atexit_ParamList,
9792      apzUltrix_Atexit_ParamMachs,
9793      ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9794      aUltrix_Atexit_ParamTests,   apzUltrix_Atexit_ParamPatch, 0 },
9795
9796   {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
9797      apzUltrix_Atof_ParamMachs,
9798      ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9799      aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch, 0 },
9800
9801   {  zUltrix_ConstName,    zUltrix_ConstList,
9802      apzUltrix_ConstMachs,
9803      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9804      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
9805
9806   {  zUltrix_Const2Name,    zUltrix_Const2List,
9807      apzUltrix_Const2Machs,
9808      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9809      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
9810
9811   {  zUltrix_Const3Name,    zUltrix_Const3List,
9812      apzUltrix_Const3Machs,
9813      ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9814      aUltrix_Const3Tests,   apzUltrix_Const3Patch, 0 },
9815
9816   {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
9817      apzUltrix_Fix_FixprotoMachs,
9818      ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9819      aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch, 0 },
9820
9821   {  zUltrix_IfdefName,    zUltrix_IfdefList,
9822      apzUltrix_IfdefMachs,
9823      ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9824      aUltrix_IfdefTests,   apzUltrix_IfdefPatch, 0 },
9825
9826   {  zUltrix_LocaleName,    zUltrix_LocaleList,
9827      apzUltrix_LocaleMachs,
9828      ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9829      aUltrix_LocaleTests,   apzUltrix_LocalePatch, 0 },
9830
9831   {  zUltrix_Math_IfdefName,    zUltrix_Math_IfdefList,
9832      apzUltrix_Math_IfdefMachs,
9833      ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9834      aUltrix_Math_IfdefTests,   apzUltrix_Math_IfdefPatch, 0 },
9835
9836   {  zUltrix_Nested_IoctlName,    zUltrix_Nested_IoctlList,
9837      apzUltrix_Nested_IoctlMachs,
9838      ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9839      aUltrix_Nested_IoctlTests,   apzUltrix_Nested_IoctlPatch, 0 },
9840
9841   {  zUltrix_Nested_SvcName,    zUltrix_Nested_SvcList,
9842      apzUltrix_Nested_SvcMachs,
9843      ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9844      aUltrix_Nested_SvcTests,   apzUltrix_Nested_SvcPatch, 0 },
9845
9846   {  zUltrix_StatName,    zUltrix_StatList,
9847      apzUltrix_StatMachs,
9848      ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9849      aUltrix_StatTests,   apzUltrix_StatPatch, 0 },
9850
9851   {  zUltrix_StaticName,    zUltrix_StaticList,
9852      apzUltrix_StaticMachs,
9853      ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9854      aUltrix_StaticTests,   apzUltrix_StaticPatch, 0 },
9855
9856   {  zUltrix_StdlibName,    zUltrix_StdlibList,
9857      apzUltrix_StdlibMachs,
9858      ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9859      aUltrix_StdlibTests,   apzUltrix_StdlibPatch, 0 },
9860
9861   {  zUltrix_StringsName,    zUltrix_StringsList,
9862      apzUltrix_StringsMachs,
9863      ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9864      aUltrix_StringsTests,   apzUltrix_StringsPatch, 0 },
9865
9866   {  zUltrix_Strings2Name,    zUltrix_Strings2List,
9867      apzUltrix_Strings2Machs,
9868      ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9869      aUltrix_Strings2Tests,   apzUltrix_Strings2Patch, 0 },
9870
9871   {  zUltrix_Sys_TimeName,    zUltrix_Sys_TimeList,
9872      apzUltrix_Sys_TimeMachs,
9873      ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9874      aUltrix_Sys_TimeTests,   apzUltrix_Sys_TimePatch, 0 },
9875
9876   {  zUltrix_UnistdName,    zUltrix_UnistdList,
9877      apzUltrix_UnistdMachs,
9878      ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9879      aUltrix_UnistdTests,   apzUltrix_UnistdPatch, 0 },
9880
9881   {  zUnicosmk_RestrictName,    zUnicosmk_RestrictList,
9882      apzUnicosmk_RestrictMachs,
9883      UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9884      aUnicosmk_RestrictTests,   apzUnicosmk_RestrictPatch, 0 },
9885
9886   {  zUw7_Byteorder_FixName,    zUw7_Byteorder_FixList,
9887      apzUw7_Byteorder_FixMachs,
9888      UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9889      aUw7_Byteorder_FixTests,   apzUw7_Byteorder_FixPatch, 0 },
9890
9891   {  zVa_I960_MacroName,    zVa_I960_MacroList,
9892      apzVa_I960_MacroMachs,
9893      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9894      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
9895
9896   {  zVoid_NullName,    zVoid_NullList,
9897      apzVoid_NullMachs,
9898      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9899      aVoid_NullTests,   apzVoid_NullPatch, 0 },
9900
9901   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
9902      apzVxworks_Gcc_ProblemMachs,
9903      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9904      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
9905
9906   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
9907      apzVxworks_Needs_VxtypesMachs,
9908      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9909      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
9910
9911   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
9912      apzVxworks_Needs_VxworksMachs,
9913      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9914      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
9915
9916   {  zVxworks_TimeName,    zVxworks_TimeList,
9917      apzVxworks_TimeMachs,
9918      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9919      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
9920
9921   {  zWindiss_Math1Name,    zWindiss_Math1List,
9922      apzWindiss_Math1Machs,
9923      WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9924      aWindiss_Math1Tests,   apzWindiss_Math1Patch, 0 },
9925
9926   {  zWindiss_Math2Name,    zWindiss_Math2List,
9927      apzWindiss_Math2Machs,
9928      WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9929      aWindiss_Math2Tests,   apzWindiss_Math2Patch, 0 },
9930
9931   {  zWindiss_ValistName,    zWindiss_ValistList,
9932      apzWindiss_ValistMachs,
9933      WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9934      aWindiss_ValistTests,   apzWindiss_ValistPatch, 0 },
9935
9936   {  zX11_ClassName,    zX11_ClassList,
9937      apzX11_ClassMachs,
9938      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9939      aX11_ClassTests,   apzX11_ClassPatch, 0 },
9940
9941   {  zX11_Class_UsageName,    zX11_Class_UsageList,
9942      apzX11_Class_UsageMachs,
9943      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9944      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
9945
9946   {  zX11_NewName,    zX11_NewList,
9947      apzX11_NewMachs,
9948      X11_NEW_TEST_CT, FD_MACH_ONLY,
9949      aX11_NewTests,   apzX11_NewPatch, 0 },
9950
9951   {  zX11_SprintfName,    zX11_SprintfList,
9952      apzX11_SprintfMachs,
9953      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9954      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }
9955 };