OSDN Git Service

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