OSDN Git Service

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