OSDN Git Service

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