OSDN Git Service

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