OSDN Git Service

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