OSDN Git Service

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