OSDN Git Service

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