OSDN Git Service

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