OSDN Git Service

PR libgcj/28190
[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 June 29, 2007 at 06:59:26 PM MEST
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Fri Jun 29 18:59:26 MEST 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 210 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_Extra_Semicolon fix
4658  */
4659 tSCC zNetbsd_Extra_SemicolonName[] =
4660      "netbsd_extra_semicolon";
4661
4662 /*
4663  *  File name selection pattern
4664  */
4665 tSCC zNetbsd_Extra_SemicolonList[] =
4666   "sys/cdefs.h\0";
4667 /*
4668  *  Machine/OS name selection pattern
4669  */
4670 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4671         "*-*-netbsd*",
4672         (const char*)NULL };
4673
4674 /*
4675  *  content selection pattern - do fix if pattern found
4676  */
4677 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4678        "#define[ \t]*__END_DECLS[ \t]*};";
4679
4680 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
4681 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4682   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4683
4684 /*
4685  *  Fix Command Arguments for Netbsd_Extra_Semicolon
4686  */
4687 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4688     "format",
4689     "#define __END_DECLS }",
4690     (char*)NULL };
4691
4692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4693  *
4694  *  Description of Next_Math_Prefix fix
4695  */
4696 tSCC zNext_Math_PrefixName[] =
4697      "next_math_prefix";
4698
4699 /*
4700  *  File name selection pattern
4701  */
4702 tSCC zNext_Math_PrefixList[] =
4703   "ansi/math.h\0";
4704 /*
4705  *  Machine/OS name selection pattern
4706  */
4707 #define apzNext_Math_PrefixMachs (const char**)NULL
4708
4709 /*
4710  *  content selection pattern - do fix if pattern found
4711  */
4712 tSCC zNext_Math_PrefixSelect0[] =
4713        "^extern[ \t]+double[ \t]+__const__[ \t]";
4714
4715 #define    NEXT_MATH_PREFIX_TEST_CT  1
4716 static tTestDesc aNext_Math_PrefixTests[] = {
4717   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4718
4719 /*
4720  *  Fix Command Arguments for Next_Math_Prefix
4721  */
4722 static const char* apzNext_Math_PrefixPatch[] = {
4723     "format",
4724     "extern double %1(",
4725     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4726     (char*)NULL };
4727
4728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4729  *
4730  *  Description of Next_Template fix
4731  */
4732 tSCC zNext_TemplateName[] =
4733      "next_template";
4734
4735 /*
4736  *  File name selection pattern
4737  */
4738 tSCC zNext_TemplateList[] =
4739   "bsd/libc.h\0";
4740 /*
4741  *  Machine/OS name selection pattern
4742  */
4743 #define apzNext_TemplateMachs (const char**)NULL
4744
4745 /*
4746  *  content selection pattern - do fix if pattern found
4747  */
4748 tSCC zNext_TemplateSelect0[] =
4749        "[ \t]template\\)";
4750
4751 #define    NEXT_TEMPLATE_TEST_CT  1
4752 static tTestDesc aNext_TemplateTests[] = {
4753   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
4754
4755 /*
4756  *  Fix Command Arguments for Next_Template
4757  */
4758 static const char* apzNext_TemplatePatch[] = {
4759     "format",
4760     "(%1)",
4761     "\\(([^)]*)[ \t]template\\)",
4762     (char*)NULL };
4763
4764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4765  *
4766  *  Description of Next_Volitile fix
4767  */
4768 tSCC zNext_VolitileName[] =
4769      "next_volitile";
4770
4771 /*
4772  *  File name selection pattern
4773  */
4774 tSCC zNext_VolitileList[] =
4775   "ansi/stdlib.h\0";
4776 /*
4777  *  Machine/OS name selection pattern
4778  */
4779 #define apzNext_VolitileMachs (const char**)NULL
4780
4781 /*
4782  *  content selection pattern - do fix if pattern found
4783  */
4784 tSCC zNext_VolitileSelect0[] =
4785        "^extern[ \t]+volatile[ \t]+void[ \t]";
4786
4787 #define    NEXT_VOLITILE_TEST_CT  1
4788 static tTestDesc aNext_VolitileTests[] = {
4789   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
4790
4791 /*
4792  *  Fix Command Arguments for Next_Volitile
4793  */
4794 static const char* apzNext_VolitilePatch[] = {
4795     "format",
4796     "extern void %1(",
4797     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4798     (char*)NULL };
4799
4800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4801  *
4802  *  Description of Next_Wait_Union fix
4803  */
4804 tSCC zNext_Wait_UnionName[] =
4805      "next_wait_union";
4806
4807 /*
4808  *  File name selection pattern
4809  */
4810 tSCC zNext_Wait_UnionList[] =
4811   "sys/wait.h\0";
4812 /*
4813  *  Machine/OS name selection pattern
4814  */
4815 #define apzNext_Wait_UnionMachs (const char**)NULL
4816
4817 /*
4818  *  content selection pattern - do fix if pattern found
4819  */
4820 tSCC zNext_Wait_UnionSelect0[] =
4821        "wait\\(union wait";
4822
4823 #define    NEXT_WAIT_UNION_TEST_CT  1
4824 static tTestDesc aNext_Wait_UnionTests[] = {
4825   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4826
4827 /*
4828  *  Fix Command Arguments for Next_Wait_Union
4829  */
4830 static const char* apzNext_Wait_UnionPatch[] = {
4831     "format",
4832     "wait(void",
4833     (char*)NULL };
4834
4835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4836  *
4837  *  Description of Nodeent_Syntax fix
4838  */
4839 tSCC zNodeent_SyntaxName[] =
4840      "nodeent_syntax";
4841
4842 /*
4843  *  File name selection pattern
4844  */
4845 tSCC zNodeent_SyntaxList[] =
4846   "netdnet/dnetdb.h\0";
4847 /*
4848  *  Machine/OS name selection pattern
4849  */
4850 #define apzNodeent_SyntaxMachs (const char**)NULL
4851
4852 /*
4853  *  content selection pattern - do fix if pattern found
4854  */
4855 tSCC zNodeent_SyntaxSelect0[] =
4856        "char[ \t]*\\*na_addr[ \t]*$";
4857
4858 #define    NODEENT_SYNTAX_TEST_CT  1
4859 static tTestDesc aNodeent_SyntaxTests[] = {
4860   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4861
4862 /*
4863  *  Fix Command Arguments for Nodeent_Syntax
4864  */
4865 static const char* apzNodeent_SyntaxPatch[] = {
4866     "format",
4867     "%0;",
4868     (char*)NULL };
4869
4870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4871  *
4872  *  Description of Obstack_Lvalue_Cast fix
4873  */
4874 tSCC zObstack_Lvalue_CastName[] =
4875      "obstack_lvalue_cast";
4876
4877 /*
4878  *  File name selection pattern
4879  */
4880 tSCC zObstack_Lvalue_CastList[] =
4881   "obstack.h\0";
4882 /*
4883  *  Machine/OS name selection pattern
4884  */
4885 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4886
4887 /*
4888  *  content selection pattern - do fix if pattern found
4889  */
4890 tSCC zObstack_Lvalue_CastSelect0[] =
4891        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4892
4893 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
4894 static tTestDesc aObstack_Lvalue_CastTests[] = {
4895   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4896
4897 /*
4898  *  Fix Command Arguments for Obstack_Lvalue_Cast
4899  */
4900 static const char* apzObstack_Lvalue_CastPatch[] = {
4901     "format",
4902     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4903     (char*)NULL };
4904
4905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4906  *
4907  *  Description of Osf_Namespace_A fix
4908  */
4909 tSCC zOsf_Namespace_AName[] =
4910      "osf_namespace_a";
4911
4912 /*
4913  *  File name selection pattern
4914  */
4915 tSCC zOsf_Namespace_AList[] =
4916   "reg_types.h\0sys/lc_core.h\0";
4917 /*
4918  *  Machine/OS name selection pattern
4919  */
4920 #define apzOsf_Namespace_AMachs (const char**)NULL
4921
4922 /*
4923  *  perform the 'test' shell command - do fix on success
4924  */
4925 tSCC zOsf_Namespace_ATest0[] =
4926        " -r reg_types.h";
4927 tSCC zOsf_Namespace_ATest1[] =
4928        " -r sys/lc_core.h";
4929 tSCC zOsf_Namespace_ATest2[] =
4930        " -n \"`grep '} regex_t;' reg_types.h`\"";
4931 tSCC zOsf_Namespace_ATest3[] =
4932        " -z \"`grep __regex_t regex.h`\"";
4933
4934 #define    OSF_NAMESPACE_A_TEST_CT  4
4935 static tTestDesc aOsf_Namespace_ATests[] = {
4936   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
4937   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
4938   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
4939   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
4940
4941 /*
4942  *  Fix Command Arguments for Osf_Namespace_A
4943  */
4944 static const char* apzOsf_Namespace_APatch[] = {
4945     "format",
4946     "__%0",
4947     "reg(ex|off|match)_t",
4948     (char*)NULL };
4949
4950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4951  *
4952  *  Description of Osf_Namespace_C fix
4953  */
4954 tSCC zOsf_Namespace_CName[] =
4955      "osf_namespace_c";
4956
4957 /*
4958  *  File name selection pattern
4959  */
4960 tSCC zOsf_Namespace_CList[] =
4961   "regex.h\0";
4962 /*
4963  *  Machine/OS name selection pattern
4964  */
4965 #define apzOsf_Namespace_CMachs (const char**)NULL
4966
4967 /*
4968  *  content selection pattern - do fix if pattern found
4969  */
4970 tSCC zOsf_Namespace_CSelect0[] =
4971        "#include <reg_types.h>.*";
4972
4973 /*
4974  *  perform the 'test' shell command - do fix on success
4975  */
4976 tSCC zOsf_Namespace_CTest0[] =
4977        " -r reg_types.h";
4978 tSCC zOsf_Namespace_CTest1[] =
4979        " -r sys/lc_core.h";
4980 tSCC zOsf_Namespace_CTest2[] =
4981        " -n \"`grep '} regex_t;' reg_types.h`\"";
4982 tSCC zOsf_Namespace_CTest3[] =
4983        " -z \"`grep __regex_t regex.h`\"";
4984
4985 #define    OSF_NAMESPACE_C_TEST_CT  5
4986 static tTestDesc aOsf_Namespace_CTests[] = {
4987   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
4988   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
4989   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
4990   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
4991   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4992
4993 /*
4994  *  Fix Command Arguments for Osf_Namespace_C
4995  */
4996 static const char* apzOsf_Namespace_CPatch[] = {
4997     "format",
4998     "%0\n\
4999 typedef __regex_t\tregex_t;\n\
5000 typedef __regoff_t\tregoff_t;\n\
5001 typedef __regmatch_t\tregmatch_t;",
5002     (char*)NULL };
5003
5004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5005  *
5006  *  Description of Pthread_Page_Size fix
5007  */
5008 tSCC zPthread_Page_SizeName[] =
5009      "pthread_page_size";
5010
5011 /*
5012  *  File name selection pattern
5013  */
5014 tSCC zPthread_Page_SizeList[] =
5015   "pthread.h\0";
5016 /*
5017  *  Machine/OS name selection pattern
5018  */
5019 #define apzPthread_Page_SizeMachs (const char**)NULL
5020
5021 /*
5022  *  content selection pattern - do fix if pattern found
5023  */
5024 tSCC zPthread_Page_SizeSelect0[] =
5025        "^int __page_size";
5026
5027 #define    PTHREAD_PAGE_SIZE_TEST_CT  1
5028 static tTestDesc aPthread_Page_SizeTests[] = {
5029   { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
5030
5031 /*
5032  *  Fix Command Arguments for Pthread_Page_Size
5033  */
5034 static const char* apzPthread_Page_SizePatch[] = {
5035     "format",
5036     "extern %0",
5037     (char*)NULL };
5038
5039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5040  *
5041  *  Description of Pthread_Incomplete_Struct_Argument fix
5042  */
5043 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5044      "pthread_incomplete_struct_argument";
5045
5046 /*
5047  *  File name selection pattern
5048  */
5049 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5050   "pthread.h\0";
5051 /*
5052  *  Machine/OS name selection pattern
5053  */
5054 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5055
5056 /*
5057  *  content selection pattern - do fix if pattern found
5058  */
5059 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5060        "struct __jmp_buf_tag";
5061
5062 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
5063 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5064   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5065
5066 /*
5067  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5068  */
5069 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5070     "format",
5071     "%1 *%2%3",
5072     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5073     (char*)NULL };
5074
5075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5076  *
5077  *  Description of Read_Ret_Type fix
5078  */
5079 tSCC zRead_Ret_TypeName[] =
5080      "read_ret_type";
5081
5082 /*
5083  *  File name selection pattern
5084  */
5085 tSCC zRead_Ret_TypeList[] =
5086   "stdio.h\0";
5087 /*
5088  *  Machine/OS name selection pattern
5089  */
5090 #define apzRead_Ret_TypeMachs (const char**)NULL
5091
5092 /*
5093  *  content selection pattern - do fix if pattern found
5094  */
5095 tSCC zRead_Ret_TypeSelect0[] =
5096        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5097
5098 #define    READ_RET_TYPE_TEST_CT  1
5099 static tTestDesc aRead_Ret_TypeTests[] = {
5100   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5101
5102 /*
5103  *  Fix Command Arguments for Read_Ret_Type
5104  */
5105 static const char* apzRead_Ret_TypePatch[] = {
5106     "format",
5107     "extern unsigned int fread(), fwrite();\n\
5108 %1%2",
5109     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5110     (char*)NULL };
5111
5112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5113  *
5114  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
5115  */
5116 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5117      "rpc_xdr_lvalue_cast_a";
5118
5119 /*
5120  *  File name selection pattern
5121  */
5122 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5123   "rpc/xdr.h\0";
5124 /*
5125  *  Machine/OS name selection pattern
5126  */
5127 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5128
5129 /*
5130  *  content selection pattern - do fix if pattern found
5131  */
5132 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5133        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5134 .*__extension__.*";
5135
5136 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5137 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5138   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5139
5140 /*
5141  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5142  */
5143 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5144     "format",
5145     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5146     (char*)NULL };
5147
5148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5149  *
5150  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5151  */
5152 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5153      "rpc_xdr_lvalue_cast_b";
5154
5155 /*
5156  *  File name selection pattern
5157  */
5158 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5159   "rpc/xdr.h\0";
5160 /*
5161  *  Machine/OS name selection pattern
5162  */
5163 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5164
5165 /*
5166  *  content selection pattern - do fix if pattern found
5167  */
5168 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5169        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5170 .*__extension__.*";
5171
5172 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
5173 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5174   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5175
5176 /*
5177  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5178  */
5179 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5180     "format",
5181     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5182     (char*)NULL };
5183
5184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5185  *
5186  *  Description of Rs6000_Double fix
5187  */
5188 tSCC zRs6000_DoubleName[] =
5189      "rs6000_double";
5190
5191 /*
5192  *  File name selection pattern
5193  */
5194 tSCC zRs6000_DoubleList[] =
5195   "math.h\0";
5196 /*
5197  *  Machine/OS name selection pattern
5198  */
5199 #define apzRs6000_DoubleMachs (const char**)NULL
5200
5201 /*
5202  *  content selection pattern - do fix if pattern found
5203  */
5204 tSCC zRs6000_DoubleSelect0[] =
5205        "[^a-zA-Z_]class\\(";
5206
5207 #define    RS6000_DOUBLE_TEST_CT  1
5208 static tTestDesc aRs6000_DoubleTests[] = {
5209   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5210
5211 /*
5212  *  Fix Command Arguments for Rs6000_Double
5213  */
5214 static const char* apzRs6000_DoublePatch[] = {
5215     "format",
5216     "#ifndef __cplusplus\n\
5217 %0\n\
5218 #endif",
5219     "^.*[^a-zA-Z_]class\\(.*",
5220     (char*)NULL };
5221
5222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5223  *
5224  *  Description of Rs6000_Fchmod fix
5225  */
5226 tSCC zRs6000_FchmodName[] =
5227      "rs6000_fchmod";
5228
5229 /*
5230  *  File name selection pattern
5231  */
5232 tSCC zRs6000_FchmodList[] =
5233   "sys/stat.h\0";
5234 /*
5235  *  Machine/OS name selection pattern
5236  */
5237 #define apzRs6000_FchmodMachs (const char**)NULL
5238
5239 /*
5240  *  content selection pattern - do fix if pattern found
5241  */
5242 tSCC zRs6000_FchmodSelect0[] =
5243        "fchmod\\(char \\*";
5244
5245 #define    RS6000_FCHMOD_TEST_CT  1
5246 static tTestDesc aRs6000_FchmodTests[] = {
5247   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5248
5249 /*
5250  *  Fix Command Arguments for Rs6000_Fchmod
5251  */
5252 static const char* apzRs6000_FchmodPatch[] = {
5253     "format",
5254     "fchmod(int",
5255     (char*)NULL };
5256
5257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5258  *
5259  *  Description of Rs6000_Param fix
5260  */
5261 tSCC zRs6000_ParamName[] =
5262      "rs6000_param";
5263
5264 /*
5265  *  File name selection pattern
5266  */
5267 tSCC zRs6000_ParamList[] =
5268   "stdio.h\0unistd.h\0";
5269 /*
5270  *  Machine/OS name selection pattern
5271  */
5272 #define apzRs6000_ParamMachs (const char**)NULL
5273
5274 /*
5275  *  content selection pattern - do fix if pattern found
5276  */
5277 tSCC zRs6000_ParamSelect0[] =
5278        "rename\\(const char \\*old, const char \\*new\\)";
5279
5280 #define    RS6000_PARAM_TEST_CT  1
5281 static tTestDesc aRs6000_ParamTests[] = {
5282   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
5283
5284 /*
5285  *  Fix Command Arguments for Rs6000_Param
5286  */
5287 static const char* apzRs6000_ParamPatch[] = {
5288     "format",
5289     "rename(const char *_old, const char *_new)",
5290     (char*)NULL };
5291
5292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5293  *
5294  *  Description of Sco_Math fix
5295  */
5296 tSCC zSco_MathName[] =
5297      "sco_math";
5298
5299 /*
5300  *  File name selection pattern
5301  */
5302 tSCC zSco_MathList[] =
5303   "math.h\0*/math.h\0";
5304 /*
5305  *  Machine/OS name selection pattern
5306  */
5307 #define apzSco_MathMachs (const char**)NULL
5308
5309 /*
5310  *  content selection pattern - do fix if pattern found
5311  */
5312 tSCC zSco_MathSelect0[] =
5313        "inline double abs";
5314
5315 /*
5316  *  content bypass pattern - skip fix if pattern found
5317  */
5318 tSCC zSco_MathBypass0[] =
5319        "__GNUG__";
5320
5321 #define    SCO_MATH_TEST_CT  2
5322 static tTestDesc aSco_MathTests[] = {
5323   { TT_NEGREP,   zSco_MathBypass0, (regex_t*)NULL },
5324   { TT_EGREP,    zSco_MathSelect0, (regex_t*)NULL }, };
5325
5326 /*
5327  *  Fix Command Arguments for Sco_Math
5328  */
5329 static const char* apzSco_MathPatch[] = { "sed",
5330     "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5331 #ifndef __GNUC__\n",
5332     "-e", "/.*__builtin_generic/a\\\n\
5333 #else\\\n\
5334 #define __fp_class(a) \\\\\\\n\
5335   __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5336    __fpclassifyl(a), \\\\\\\n\
5337     __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5338       __fpclassifyf(a),__fpclassify(a)))\\\n\
5339 #endif",
5340     "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5341 #ifndef __GNUC__\n",
5342     "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5343 #endif /* ! __GNUC__ */",
5344     (char*)NULL };
5345
5346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5347  *
5348  *  Description of Sco_Regset fix
5349  */
5350 tSCC zSco_RegsetName[] =
5351      "sco_regset";
5352
5353 /*
5354  *  File name selection pattern
5355  */
5356 tSCC zSco_RegsetList[] =
5357   "sys/regset.h\0";
5358 /*
5359  *  Machine/OS name selection pattern
5360  */
5361 tSCC* apzSco_RegsetMachs[] = {
5362         "*-*-sco3.2v5*",
5363         (const char*)NULL };
5364
5365 /*
5366  *  content selection pattern - do fix if pattern found
5367  */
5368 tSCC zSco_RegsetSelect0[] =
5369        "(struct[ \t]+.*)fpstate";
5370
5371 #define    SCO_REGSET_TEST_CT  1
5372 static tTestDesc aSco_RegsetTests[] = {
5373   { TT_EGREP,    zSco_RegsetSelect0, (regex_t*)NULL }, };
5374
5375 /*
5376  *  Fix Command Arguments for Sco_Regset
5377  */
5378 static const char* apzSco_RegsetPatch[] = {
5379     "format",
5380     "%1rsfpstate",
5381     (char*)NULL };
5382
5383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5384  *
5385  *  Description of Sco_Static_Func fix
5386  */
5387 tSCC zSco_Static_FuncName[] =
5388      "sco_static_func";
5389
5390 /*
5391  *  File name selection pattern
5392  */
5393 tSCC zSco_Static_FuncList[] =
5394   "sys/stat.h\0";
5395 /*
5396  *  Machine/OS name selection pattern
5397  */
5398 tSCC* apzSco_Static_FuncMachs[] = {
5399         "i?86-*-sco3.2*",
5400         (const char*)NULL };
5401
5402 /*
5403  *  content selection pattern - do fix if pattern found
5404  */
5405 tSCC zSco_Static_FuncSelect0[] =
5406        "^static int";
5407
5408 #define    SCO_STATIC_FUNC_TEST_CT  1
5409 static tTestDesc aSco_Static_FuncTests[] = {
5410   { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5411
5412 /*
5413  *  Fix Command Arguments for Sco_Static_Func
5414  */
5415 static const char* apzSco_Static_FuncPatch[] = { "sed",
5416     "-e", "/^static int/i\\\n\
5417 #if __cplusplus\\\n\
5418 extern \"C\" {\\\n\
5419 #endif /* __cplusplus */",
5420     "-e", "/^}$/a\\\n\
5421 #if __cplusplus\\\n\
5422  }\\\n\
5423 #endif /* __cplusplus */",
5424     (char*)NULL };
5425
5426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5427  *
5428  *  Description of Sco_Utime fix
5429  */
5430 tSCC zSco_UtimeName[] =
5431      "sco_utime";
5432
5433 /*
5434  *  File name selection pattern
5435  */
5436 tSCC zSco_UtimeList[] =
5437   "sys/times.h\0";
5438 /*
5439  *  Machine/OS name selection pattern
5440  */
5441 tSCC* apzSco_UtimeMachs[] = {
5442         "i?86-*-sco3.2v4*",
5443         (const char*)NULL };
5444
5445 /*
5446  *  content selection pattern - do fix if pattern found
5447  */
5448 tSCC zSco_UtimeSelect0[] =
5449        "\\(const char \\*, struct utimbuf \\*\\);";
5450
5451 #define    SCO_UTIME_TEST_CT  1
5452 static tTestDesc aSco_UtimeTests[] = {
5453   { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };
5454
5455 /*
5456  *  Fix Command Arguments for Sco_Utime
5457  */
5458 static const char* apzSco_UtimePatch[] = {
5459     "format",
5460     "(const char *, const struct utimbuf *);",
5461     (char*)NULL };
5462
5463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5464  *
5465  *  Description of Solaris_Math_1 fix
5466  */
5467 tSCC zSolaris_Math_1Name[] =
5468      "solaris_math_1";
5469
5470 /*
5471  *  File name selection pattern
5472  */
5473 tSCC zSolaris_Math_1List[] =
5474   "iso/math_c99.h\0";
5475 /*
5476  *  Machine/OS name selection pattern
5477  */
5478 #define apzSolaris_Math_1Machs (const char**)NULL
5479
5480 /*
5481  *  content selection pattern - do fix if pattern found
5482  */
5483 tSCC zSolaris_Math_1Select0[] =
5484        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5485
5486 /*
5487  *  content bypass pattern - skip fix if pattern found
5488  */
5489 tSCC zSolaris_Math_1Bypass0[] =
5490        "__GNUC__";
5491
5492 #define    SOLARIS_MATH_1_TEST_CT  2
5493 static tTestDesc aSolaris_Math_1Tests[] = {
5494   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
5495   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
5496
5497 /*
5498  *  Fix Command Arguments for Solaris_Math_1
5499  */
5500 static const char* apzSolaris_Math_1Patch[] = {
5501     "format",
5502     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5503     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5504     (char*)NULL };
5505
5506 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5507  *
5508  *  Description of Solaris_Math_2 fix
5509  */
5510 tSCC zSolaris_Math_2Name[] =
5511      "solaris_math_2";
5512
5513 /*
5514  *  File name selection pattern
5515  */
5516 tSCC zSolaris_Math_2List[] =
5517   "iso/math_c99.h\0";
5518 /*
5519  *  Machine/OS name selection pattern
5520  */
5521 #define apzSolaris_Math_2Machs (const char**)NULL
5522
5523 /*
5524  *  content selection pattern - do fix if pattern found
5525  */
5526 tSCC zSolaris_Math_2Select0[] =
5527        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5528
5529 /*
5530  *  content bypass pattern - skip fix if pattern found
5531  */
5532 tSCC zSolaris_Math_2Bypass0[] =
5533        "__GNUC__";
5534
5535 #define    SOLARIS_MATH_2_TEST_CT  2
5536 static tTestDesc aSolaris_Math_2Tests[] = {
5537   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
5538   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
5539
5540 /*
5541  *  Fix Command Arguments for Solaris_Math_2
5542  */
5543 static const char* apzSolaris_Math_2Patch[] = {
5544     "format",
5545     "#define\tINFINITY\t(__builtin_inff())",
5546     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5547     (char*)NULL };
5548
5549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5550  *
5551  *  Description of Solaris_Math_3 fix
5552  */
5553 tSCC zSolaris_Math_3Name[] =
5554      "solaris_math_3";
5555
5556 /*
5557  *  File name selection pattern
5558  */
5559 tSCC zSolaris_Math_3List[] =
5560   "iso/math_c99.h\0";
5561 /*
5562  *  Machine/OS name selection pattern
5563  */
5564 #define apzSolaris_Math_3Machs (const char**)NULL
5565
5566 /*
5567  *  content selection pattern - do fix if pattern found
5568  */
5569 tSCC zSolaris_Math_3Select0[] =
5570        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5571
5572 /*
5573  *  content bypass pattern - skip fix if pattern found
5574  */
5575 tSCC zSolaris_Math_3Bypass0[] =
5576        "__GNUC__";
5577
5578 #define    SOLARIS_MATH_3_TEST_CT  2
5579 static tTestDesc aSolaris_Math_3Tests[] = {
5580   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
5581   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
5582
5583 /*
5584  *  Fix Command Arguments for Solaris_Math_3
5585  */
5586 static const char* apzSolaris_Math_3Patch[] = {
5587     "format",
5588     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5589     "^#define[ \t]+NAN[ \t]+__builtin_nan",
5590     (char*)NULL };
5591
5592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5593  *
5594  *  Description of Solaris_Math_4 fix
5595  */
5596 tSCC zSolaris_Math_4Name[] =
5597      "solaris_math_4";
5598
5599 /*
5600  *  File name selection pattern
5601  */
5602 tSCC zSolaris_Math_4List[] =
5603   "iso/math_c99.h\0";
5604 /*
5605  *  Machine/OS name selection pattern
5606  */
5607 #define apzSolaris_Math_4Machs (const char**)NULL
5608
5609 /*
5610  *  content selection pattern - do fix if pattern found
5611  */
5612 tSCC zSolaris_Math_4Select0[] =
5613        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5614
5615 /*
5616  *  content bypass pattern - skip fix if pattern found
5617  */
5618 tSCC zSolaris_Math_4Bypass0[] =
5619        "__GNUC__";
5620
5621 #define    SOLARIS_MATH_4_TEST_CT  2
5622 static tTestDesc aSolaris_Math_4Tests[] = {
5623   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
5624   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
5625
5626 /*
5627  *  Fix Command Arguments for Solaris_Math_4
5628  */
5629 static const char* apzSolaris_Math_4Patch[] = {
5630     "format",
5631     "#define\tfpclassify(x) \\\n\
5632   __extension__ ({ __typeof(x) __x_fp = (x); \\\n\
5633 \t\t   isnan(__x_fp) \\\n\
5634 \t\t     ? FP_NAN \\\n\
5635 \t\t     : isinf(__x_fp) \\\n\
5636 \t\t       ? FP_INFINITE \\\n\
5637 \t\t       : isnormal(__x_fp) \\\n\
5638 \t\t\t ? FP_NORMAL \\\n\
5639 \t\t\t : __x_fp == 0.0 \\\n\
5640 \t\t\t   ? FP_ZERO \\\n\
5641 \t\t\t   : FP_SUBNORMAL; })",
5642     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5643     (char*)NULL };
5644
5645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5646  *
5647  *  Description of Solaris_Math_5 fix
5648  */
5649 tSCC zSolaris_Math_5Name[] =
5650      "solaris_math_5";
5651
5652 /*
5653  *  File name selection pattern
5654  */
5655 tSCC zSolaris_Math_5List[] =
5656   "iso/math_c99.h\0";
5657 /*
5658  *  Machine/OS name selection pattern
5659  */
5660 #define apzSolaris_Math_5Machs (const char**)NULL
5661
5662 /*
5663  *  content selection pattern - do fix if pattern found
5664  */
5665 tSCC zSolaris_Math_5Select0[] =
5666        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5667
5668 /*
5669  *  content bypass pattern - skip fix if pattern found
5670  */
5671 tSCC zSolaris_Math_5Bypass0[] =
5672        "__GNUC__";
5673
5674 #define    SOLARIS_MATH_5_TEST_CT  2
5675 static tTestDesc aSolaris_Math_5Tests[] = {
5676   { TT_NEGREP,   zSolaris_Math_5Bypass0, (regex_t*)NULL },
5677   { TT_EGREP,    zSolaris_Math_5Select0, (regex_t*)NULL }, };
5678
5679 /*
5680  *  Fix Command Arguments for Solaris_Math_5
5681  */
5682 static const char* apzSolaris_Math_5Patch[] = {
5683     "format",
5684     "#define\tisfinite(x) \\\n\
5685   __extension__ ({ __typeof (x) __x_f = (x); \\\n\
5686 \t\t   __builtin_expect(!isnan(__x_f - __x_f), 1); })",
5687     "^#define[ \t]+isfinite\\(x\\)[ \t]+__builtin_isfinite\\(x\\)",
5688     (char*)NULL };
5689
5690 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5691  *
5692  *  Description of Solaris_Math_6 fix
5693  */
5694 tSCC zSolaris_Math_6Name[] =
5695      "solaris_math_6";
5696
5697 /*
5698  *  File name selection pattern
5699  */
5700 tSCC zSolaris_Math_6List[] =
5701   "iso/math_c99.h\0";
5702 /*
5703  *  Machine/OS name selection pattern
5704  */
5705 #define apzSolaris_Math_6Machs (const char**)NULL
5706
5707 /*
5708  *  content selection pattern - do fix if pattern found
5709  */
5710 tSCC zSolaris_Math_6Select0[] =
5711        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5712
5713 /*
5714  *  content bypass pattern - skip fix if pattern found
5715  */
5716 tSCC zSolaris_Math_6Bypass0[] =
5717        "__GNUC__";
5718
5719 #define    SOLARIS_MATH_6_TEST_CT  2
5720 static tTestDesc aSolaris_Math_6Tests[] = {
5721   { TT_NEGREP,   zSolaris_Math_6Bypass0, (regex_t*)NULL },
5722   { TT_EGREP,    zSolaris_Math_6Select0, (regex_t*)NULL }, };
5723
5724 /*
5725  *  Fix Command Arguments for Solaris_Math_6
5726  */
5727 static const char* apzSolaris_Math_6Patch[] = {
5728     "format",
5729     "#define\tisinf(x) \\\n\
5730   __extension__ ({ __typeof (x) __x_i = (x); \\\n\
5731 \t\t   __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })",
5732     "^#define[ \t]+isinf\\(x\\)[ \t]+__builtin_isinf\\(x\\)",
5733     (char*)NULL };
5734
5735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5736  *
5737  *  Description of Solaris_Math_7 fix
5738  */
5739 tSCC zSolaris_Math_7Name[] =
5740      "solaris_math_7";
5741
5742 /*
5743  *  File name selection pattern
5744  */
5745 tSCC zSolaris_Math_7List[] =
5746   "iso/math_c99.h\0";
5747 /*
5748  *  Machine/OS name selection pattern
5749  */
5750 #define apzSolaris_Math_7Machs (const char**)NULL
5751
5752 /*
5753  *  content selection pattern - do fix if pattern found
5754  */
5755 tSCC zSolaris_Math_7Select0[] =
5756        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5757
5758 /*
5759  *  content bypass pattern - skip fix if pattern found
5760  */
5761 tSCC zSolaris_Math_7Bypass0[] =
5762        "__GNUC__";
5763
5764 #define    SOLARIS_MATH_7_TEST_CT  2
5765 static tTestDesc aSolaris_Math_7Tests[] = {
5766   { TT_NEGREP,   zSolaris_Math_7Bypass0, (regex_t*)NULL },
5767   { TT_EGREP,    zSolaris_Math_7Select0, (regex_t*)NULL }, };
5768
5769 /*
5770  *  Fix Command Arguments for Solaris_Math_7
5771  */
5772 static const char* apzSolaris_Math_7Patch[] = {
5773     "format",
5774     "#define\tisnormal(x) \\\n\
5775   __extension__ ({ __typeof(x) __x_n = (x); \\\n\
5776 \t\t   if (__x_n < 0.0) __x_n = -__x_n; \\\n\
5777 \t\t   __builtin_expect(isfinite(__x_n) \\\n\
5778 \t\t\t\t    && (sizeof(__x_n) == sizeof(float) \\\n\
5779 \t\t\t\t\t  ? __x_n >= __FLT_MIN__ \\\n\
5780 \t\t\t\t\t  : sizeof(__x_n) == sizeof(long double) \\\n\
5781 \t\t\t\t\t    ? __x_n >= __LDBL_MIN__ \\\n\
5782 \t\t\t\t\t    : __x_n >= __DBL_MIN__), 1); })",
5783     "^#define[ \t]+isnormal\\(x\\)[ \t]+__builtin_isnormal\\(x\\)",
5784     (char*)NULL };
5785
5786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5787  *
5788  *  Description of Solaris_Math_8 fix
5789  */
5790 tSCC zSolaris_Math_8Name[] =
5791      "solaris_math_8";
5792
5793 /*
5794  *  File name selection pattern
5795  */
5796 tSCC zSolaris_Math_8List[] =
5797   "iso/math_c99.h\0";
5798 /*
5799  *  Machine/OS name selection pattern
5800  */
5801 #define apzSolaris_Math_8Machs (const char**)NULL
5802
5803 /*
5804  *  content selection pattern - do fix if pattern found
5805  */
5806 tSCC zSolaris_Math_8Select0[] =
5807        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5808
5809 /*
5810  *  content bypass pattern - skip fix if pattern found
5811  */
5812 tSCC zSolaris_Math_8Bypass0[] =
5813        "__GNUC__";
5814
5815 #define    SOLARIS_MATH_8_TEST_CT  2
5816 static tTestDesc aSolaris_Math_8Tests[] = {
5817   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
5818   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
5819
5820 /*
5821  *  Fix Command Arguments for Solaris_Math_8
5822  */
5823 static const char* apzSolaris_Math_8Patch[] = {
5824     "format",
5825     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5826 \t\t\t   ? __builtin_signbitf(x) \\\n\
5827 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
5828 \t\t\t     ? __builtin_signbitl(x) \\\n\
5829 \t\t\t     : __builtin_signbit(x))",
5830     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5831     (char*)NULL };
5832
5833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5834  *
5835  *  Description of Solaris_Math_9 fix
5836  */
5837 tSCC zSolaris_Math_9Name[] =
5838      "solaris_math_9";
5839
5840 /*
5841  *  File name selection pattern
5842  */
5843 tSCC zSolaris_Math_9List[] =
5844   "iso/math_c99.h\0";
5845 /*
5846  *  Machine/OS name selection pattern
5847  */
5848 #define apzSolaris_Math_9Machs (const char**)NULL
5849
5850 /*
5851  *  content selection pattern - do fix if pattern found
5852  */
5853 tSCC zSolaris_Math_9Select0[] =
5854        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5855
5856 /*
5857  *  content bypass pattern - skip fix if pattern found
5858  */
5859 tSCC zSolaris_Math_9Bypass0[] =
5860        "__GNUC__";
5861
5862 #define    SOLARIS_MATH_9_TEST_CT  2
5863 static tTestDesc aSolaris_Math_9Tests[] = {
5864   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
5865   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
5866
5867 /*
5868  *  Fix Command Arguments for Solaris_Math_9
5869  */
5870 static const char* apzSolaris_Math_9Patch[] = {
5871     "format",
5872     "#define\t%1(x, y)%2__builtin_%1(x, y)",
5873     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5874     (char*)NULL };
5875
5876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5877  *
5878  *  Description of Solaris_Mutex_Init_1 fix
5879  */
5880 tSCC zSolaris_Mutex_Init_1Name[] =
5881      "solaris_mutex_init_1";
5882
5883 /*
5884  *  File name selection pattern
5885  */
5886 tSCC zSolaris_Mutex_Init_1List[] =
5887   "pthread.h\0";
5888 /*
5889  *  Machine/OS name selection pattern
5890  */
5891 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5892
5893 /*
5894  *  content selection pattern - do fix if pattern found
5895  */
5896 tSCC zSolaris_Mutex_Init_1Select0[] =
5897        "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5898
5899 #define    SOLARIS_MUTEX_INIT_1_TEST_CT  1
5900 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5901   { TT_EGREP,    zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5902
5903 /*
5904  *  Fix Command Arguments for Solaris_Mutex_Init_1
5905  */
5906 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5907     "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5908 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5909     (char*)NULL };
5910
5911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5912  *
5913  *  Description of Solaris_Mutex_Init_2 fix
5914  */
5915 tSCC zSolaris_Mutex_Init_2Name[] =
5916      "solaris_mutex_init_2";
5917
5918 /*
5919  *  File name selection pattern
5920  */
5921 tSCC zSolaris_Mutex_Init_2List[] =
5922   "pthread.h\0";
5923 /*
5924  *  Machine/OS name selection pattern
5925  */
5926 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5927         "*-*-solaris2.[0-9]",
5928         "*-*-solaris2.[0-9][!0-9]*",
5929         (const char*)NULL };
5930
5931 /*
5932  *  content selection pattern - do fix if pattern found
5933  */
5934 tSCC zSolaris_Mutex_Init_2Select0[] =
5935        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5936
5937 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
5938 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5939   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5940
5941 /*
5942  *  Fix Command Arguments for Solaris_Mutex_Init_2
5943  */
5944 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5945     "format",
5946     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5947 %0\n\
5948 #else\n\
5949 %1, {0}}%4\n\
5950 #endif",
5951     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5952 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5953     (char*)NULL };
5954
5955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5956  *
5957  *  Description of Solaris_Rwlock_Init_1 fix
5958  */
5959 tSCC zSolaris_Rwlock_Init_1Name[] =
5960      "solaris_rwlock_init_1";
5961
5962 /*
5963  *  File name selection pattern
5964  */
5965 tSCC zSolaris_Rwlock_Init_1List[] =
5966   "pthread.h\0";
5967 /*
5968  *  Machine/OS name selection pattern
5969  */
5970 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5971         "*-*-solaris*",
5972         (const char*)NULL };
5973
5974 /*
5975  *  content selection pattern - do fix if pattern found
5976  */
5977 tSCC zSolaris_Rwlock_Init_1Select0[] =
5978        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5979
5980 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
5981 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5982   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5983
5984 /*
5985  *  Fix Command Arguments for Solaris_Rwlock_Init_1
5986  */
5987 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5988     "format",
5989     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5990 %0\n\
5991 #else\n\
5992 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5993 #endif",
5994     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5995     (char*)NULL };
5996
5997 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5998  *
5999  *  Description of Solaris_Once_Init_1 fix
6000  */
6001 tSCC zSolaris_Once_Init_1Name[] =
6002      "solaris_once_init_1";
6003
6004 /*
6005  *  File name selection pattern
6006  */
6007 tSCC zSolaris_Once_Init_1List[] =
6008   "pthread.h\0";
6009 /*
6010  *  Machine/OS name selection pattern
6011  */
6012 tSCC* apzSolaris_Once_Init_1Machs[] = {
6013         "*-*-solaris*",
6014         (const char*)NULL };
6015
6016 /*
6017  *  content selection pattern - do fix if pattern found
6018  */
6019 tSCC zSolaris_Once_Init_1Select0[] =
6020        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6021
6022 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6023 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6024   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6025
6026 /*
6027  *  Fix Command Arguments for Solaris_Once_Init_1
6028  */
6029 static const char* apzSolaris_Once_Init_1Patch[] = {
6030     "format",
6031     "%1{%2}%3",
6032     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6033     (char*)NULL };
6034
6035 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6036  *
6037  *  Description of Solaris_Once_Init_2 fix
6038  */
6039 tSCC zSolaris_Once_Init_2Name[] =
6040      "solaris_once_init_2";
6041
6042 /*
6043  *  File name selection pattern
6044  */
6045 tSCC zSolaris_Once_Init_2List[] =
6046   "pthread.h\0";
6047 /*
6048  *  Machine/OS name selection pattern
6049  */
6050 tSCC* apzSolaris_Once_Init_2Machs[] = {
6051         "*-*-solaris2.[0-9]",
6052         "*-*-solaris2.[0-9][!0-9]*",
6053         (const char*)NULL };
6054
6055 /*
6056  *  content selection pattern - do fix if pattern found
6057  */
6058 tSCC zSolaris_Once_Init_2Select0[] =
6059        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6060
6061 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
6062 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6063   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6064
6065 /*
6066  *  Fix Command Arguments for Solaris_Once_Init_2
6067  */
6068 static const char* apzSolaris_Once_Init_2Patch[] = {
6069     "format",
6070     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6071 %0\n\
6072 #else\n\
6073 %1{0}, {0}, {0}, {%3}%4\n\
6074 #endif",
6075     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6076     (char*)NULL };
6077
6078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6079  *
6080  *  Description of Solaris_Socket fix
6081  */
6082 tSCC zSolaris_SocketName[] =
6083      "solaris_socket";
6084
6085 /*
6086  *  File name selection pattern
6087  */
6088 tSCC zSolaris_SocketList[] =
6089   "sys/socket.h\0";
6090 /*
6091  *  Machine/OS name selection pattern
6092  */
6093 #define apzSolaris_SocketMachs (const char**)NULL
6094
6095 /*
6096  *  content selection pattern - do fix if pattern found
6097  */
6098 tSCC zSolaris_SocketSelect0[] =
6099        "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
6100
6101 #define    SOLARIS_SOCKET_TEST_CT  1
6102 static tTestDesc aSolaris_SocketTests[] = {
6103   { TT_EGREP,    zSolaris_SocketSelect0, (regex_t*)NULL }, };
6104
6105 /*
6106  *  Fix Command Arguments for Solaris_Socket
6107  */
6108 static const char* apzSolaris_SocketPatch[] = {
6109     "format",
6110     "extern int %1(int, %2void *, int, int);",
6111     "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
6112     (char*)NULL };
6113
6114 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6115  *
6116  *  Description of Solaris_Stdio_Tag fix
6117  */
6118 tSCC zSolaris_Stdio_TagName[] =
6119      "solaris_stdio_tag";
6120
6121 /*
6122  *  File name selection pattern
6123  */
6124 tSCC zSolaris_Stdio_TagList[] =
6125   "stdio_tag.h\0";
6126 /*
6127  *  Machine/OS name selection pattern
6128  */
6129 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6130
6131 /*
6132  *  content selection pattern - do fix if pattern found
6133  */
6134 tSCC zSolaris_Stdio_TagSelect0[] =
6135        "__cplusplus < 54321L";
6136
6137 /*
6138  *  content bypass pattern - skip fix if pattern found
6139  */
6140 tSCC zSolaris_Stdio_TagBypass0[] =
6141        "__GNUC__";
6142
6143 #define    SOLARIS_STDIO_TAG_TEST_CT  2
6144 static tTestDesc aSolaris_Stdio_TagTests[] = {
6145   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6146   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6147
6148 /*
6149  *  Fix Command Arguments for Solaris_Stdio_Tag
6150  */
6151 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6152     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6153     (char*)NULL };
6154
6155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6156  *
6157  *  Description of Solaris_Unistd fix
6158  */
6159 tSCC zSolaris_UnistdName[] =
6160      "solaris_unistd";
6161
6162 /*
6163  *  File name selection pattern
6164  */
6165 tSCC zSolaris_UnistdList[] =
6166   "unistd.h\0";
6167 /*
6168  *  Machine/OS name selection pattern
6169  */
6170 #define apzSolaris_UnistdMachs (const char**)NULL
6171
6172 /*
6173  *  content selection pattern - do fix if pattern found
6174  */
6175 tSCC zSolaris_UnistdSelect0[] =
6176        "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6177
6178 /*
6179  *  content bypass pattern - skip fix if pattern found
6180  */
6181 tSCC zSolaris_UnistdBypass0[] =
6182        "getpagesize";
6183
6184 #define    SOLARIS_UNISTD_TEST_CT  2
6185 static tTestDesc aSolaris_UnistdTests[] = {
6186   { TT_NEGREP,   zSolaris_UnistdBypass0, (regex_t*)NULL },
6187   { TT_EGREP,    zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6188
6189 /*
6190  *  Fix Command Arguments for Solaris_Unistd
6191  */
6192 static const char* apzSolaris_UnistdPatch[] = {
6193     "format",
6194     "extern int getpagesize();\n\
6195 %0",
6196     "^extern (pid_t|int) getpgid\\(.*\\);",
6197     (char*)NULL };
6198
6199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6200  *
6201  *  Description of Solaris_Widec fix
6202  */
6203 tSCC zSolaris_WidecName[] =
6204      "solaris_widec";
6205
6206 /*
6207  *  File name selection pattern
6208  */
6209 tSCC zSolaris_WidecList[] =
6210   "widec.h\0";
6211 /*
6212  *  Machine/OS name selection pattern
6213  */
6214 tSCC* apzSolaris_WidecMachs[] = {
6215         "*-*-solaris2.[0-5]",
6216         "*-*-solaris2.[0-5].*",
6217         (const char*)NULL };
6218
6219 /*
6220  *  content selection pattern - do fix if pattern found
6221  */
6222 tSCC zSolaris_WidecSelect0[] =
6223        "#include <euc.h>";
6224
6225 /*
6226  *  content bypass pattern - skip fix if pattern found
6227  */
6228 tSCC zSolaris_WidecBypass0[] =
6229        "include.*wchar\\.h";
6230
6231 #define    SOLARIS_WIDEC_TEST_CT  2
6232 static tTestDesc aSolaris_WidecTests[] = {
6233   { TT_NEGREP,   zSolaris_WidecBypass0, (regex_t*)NULL },
6234   { TT_EGREP,    zSolaris_WidecSelect0, (regex_t*)NULL }, };
6235
6236 /*
6237  *  Fix Command Arguments for Solaris_Widec
6238  */
6239 static const char* apzSolaris_WidecPatch[] = {
6240     "format",
6241     "%0\n\
6242 #include <wchar.h>",
6243     (char*)NULL };
6244
6245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6246  *
6247  *  Description of Statsswtch fix
6248  */
6249 tSCC zStatsswtchName[] =
6250      "statsswtch";
6251
6252 /*
6253  *  File name selection pattern
6254  */
6255 tSCC zStatsswtchList[] =
6256   "rpcsvc/rstat.h\0";
6257 /*
6258  *  Machine/OS name selection pattern
6259  */
6260 #define apzStatsswtchMachs (const char**)NULL
6261
6262 /*
6263  *  content selection pattern - do fix if pattern found
6264  */
6265 tSCC zStatsswtchSelect0[] =
6266        "boottime$";
6267
6268 #define    STATSSWTCH_TEST_CT  1
6269 static tTestDesc aStatsswtchTests[] = {
6270   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
6271
6272 /*
6273  *  Fix Command Arguments for Statsswtch
6274  */
6275 static const char* apzStatsswtchPatch[] = {
6276     "format",
6277     "boottime;",
6278     (char*)NULL };
6279
6280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6281  *
6282  *  Description of Stdio_Stdarg_H fix
6283  */
6284 tSCC zStdio_Stdarg_HName[] =
6285      "stdio_stdarg_h";
6286
6287 /*
6288  *  File name selection pattern
6289  */
6290 tSCC zStdio_Stdarg_HList[] =
6291   "stdio.h\0";
6292 /*
6293  *  Machine/OS name selection pattern
6294  */
6295 tSCC* apzStdio_Stdarg_HMachs[] = {
6296         "*-*-solaris2.1[0-9]*",
6297         (const char*)NULL };
6298
6299 /*
6300  *  content bypass pattern - skip fix if pattern found
6301  */
6302 tSCC zStdio_Stdarg_HBypass0[] =
6303        "include.*(stdarg.h|machine/ansi.h)";
6304
6305 #define    STDIO_STDARG_H_TEST_CT  1
6306 static tTestDesc aStdio_Stdarg_HTests[] = {
6307   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6308
6309 /*
6310  *  Fix Command Arguments for Stdio_Stdarg_H
6311  */
6312 static const char* apzStdio_Stdarg_HPatch[] = {
6313     "wrap",
6314     "#define __need___va_list\n\
6315 #include <stdarg.h>\n",
6316     (char*)NULL };
6317
6318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6319  *
6320  *  Description of Stdio_Va_List fix
6321  */
6322 tSCC zStdio_Va_ListName[] =
6323      "stdio_va_list";
6324
6325 /*
6326  *  File name selection pattern
6327  */
6328 tSCC zStdio_Va_ListList[] =
6329   "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6330 /*
6331  *  Machine/OS name selection pattern
6332  */
6333 tSCC* apzStdio_Va_ListMachs[] = {
6334         "*-*-solaris2.1[0-9]*",
6335         (const char*)NULL };
6336
6337 /*
6338  *  content bypass pattern - skip fix if pattern found
6339  */
6340 tSCC zStdio_Va_ListBypass0[] =
6341        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6342
6343 #define    STDIO_VA_LIST_TEST_CT  1
6344 static tTestDesc aStdio_Va_ListTests[] = {
6345   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6346
6347 /*
6348  *  Fix Command Arguments for Stdio_Va_List
6349  */
6350 static const char* apzStdio_Va_ListPatch[] = { "sed",
6351     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6352 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6353 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6354 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6355 s@ va_list@ __not_va_list__@\n\
6356 s@\\*va_list@*__not_va_list__@\n\
6357 s@ __va_list)@ __gnuc_va_list)@\n\
6358 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6359 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6360 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6361 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6362 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6363 s@VA_LIST@DUMMY_VA_LIST@\n\
6364 s@_Va_LIST@_VA_LIST@",
6365     (char*)NULL };
6366
6367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6368  *
6369  *  Description of Stdio_Va_List_Clients fix
6370  */
6371 tSCC zStdio_Va_List_ClientsName[] =
6372      "stdio_va_list_clients";
6373
6374 /*
6375  *  File name selection pattern
6376  */
6377 tSCC zStdio_Va_List_ClientsList[] =
6378   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6379 /*
6380  *  Machine/OS name selection pattern
6381  */
6382 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6383
6384 /*
6385  *  content bypass pattern - skip fix if pattern found
6386  */
6387 tSCC zStdio_Va_List_ClientsBypass0[] =
6388        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6389 tSCC zStdio_Va_List_ClientsBypass1[] =
6390        "include <stdarg\\.h>|#ifdef va_start";
6391
6392 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
6393 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6394   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6395   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6396
6397 /*
6398  *  Fix Command Arguments for Stdio_Va_List_Clients
6399  */
6400 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6401     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6402 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6403 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6404 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6405 s@ va_list@ __not_va_list__@\n\
6406 s@\\*va_list@*__not_va_list__@\n\
6407 s@ __va_list)@ __gnuc_va_list)@\n\
6408 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6409 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6410 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6411 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6412 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6413 s@VA_LIST@DUMMY_VA_LIST@\n\
6414 s@_Va_LIST@_VA_LIST@",
6415     (char*)NULL };
6416
6417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6418  *
6419  *  Description of Strict_Ansi_Not fix
6420  */
6421 tSCC zStrict_Ansi_NotName[] =
6422      "strict_ansi_not";
6423
6424 /*
6425  *  File name selection pattern
6426  */
6427 #define zStrict_Ansi_NotList (char*)NULL
6428 /*
6429  *  Machine/OS name selection pattern
6430  */
6431 #define apzStrict_Ansi_NotMachs (const char**)NULL
6432
6433 /*
6434  *  content selection pattern - do fix if pattern found
6435  */
6436 tSCC zStrict_Ansi_NotSelect0[] =
6437        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6438
6439 /*
6440  *  content bypass pattern - skip fix if pattern found
6441  */
6442 tSCC zStrict_Ansi_NotBypass0[] =
6443        "GNU and MIPS C compilers define __STDC__ differently";
6444 tSCC zStrict_Ansi_NotBypass1[] =
6445        "__SCO_VERSION__.*__STDC__ != 1";
6446
6447 /*
6448  *  perform the C function call test
6449  */
6450 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6451
6452 #define    STRICT_ANSI_NOT_TEST_CT  4
6453 static tTestDesc aStrict_Ansi_NotTests[] = {
6454   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
6455   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6456   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6457   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6458
6459 /*
6460  *  Fix Command Arguments for Strict_Ansi_Not
6461  */
6462 static const char* apzStrict_Ansi_NotPatch[] = {
6463     "format",
6464     "%1 !defined(__STRICT_ANSI__)",
6465     (char*)NULL };
6466
6467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6468  *
6469  *  Description of Strict_Ansi_Not_Ctd fix
6470  */
6471 tSCC zStrict_Ansi_Not_CtdName[] =
6472      "strict_ansi_not_ctd";
6473
6474 /*
6475  *  File name selection pattern
6476  */
6477 tSCC zStrict_Ansi_Not_CtdList[] =
6478   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6479 /*
6480  *  Machine/OS name selection pattern
6481  */
6482 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6483
6484 /*
6485  *  content selection pattern - do fix if pattern found
6486  */
6487 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6488        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6489
6490 /*
6491  *  perform the C function call test
6492  */
6493 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6494
6495 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
6496 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6497   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
6498   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6499
6500 /*
6501  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
6502  */
6503 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6504     "format",
6505     "%1 !defined(__STRICT_ANSI__)",
6506     (char*)NULL };
6507
6508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6509  *
6510  *  Description of Strict_Ansi_Only fix
6511  */
6512 tSCC zStrict_Ansi_OnlyName[] =
6513      "strict_ansi_only";
6514
6515 /*
6516  *  File name selection pattern
6517  */
6518 #define zStrict_Ansi_OnlyList (char*)NULL
6519 /*
6520  *  Machine/OS name selection pattern
6521  */
6522 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6523
6524 /*
6525  *  content selection pattern - do fix if pattern found
6526  */
6527 tSCC zStrict_Ansi_OnlySelect0[] =
6528        "^([ \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)";
6529
6530 /*
6531  *  perform the C function call test
6532  */
6533 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6534
6535 #define    STRICT_ANSI_ONLY_TEST_CT  2
6536 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6537   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
6538   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6539
6540 /*
6541  *  Fix Command Arguments for Strict_Ansi_Only
6542  */
6543 static const char* apzStrict_Ansi_OnlyPatch[] = {
6544     "format",
6545     "%1 defined(__STRICT_ANSI__)",
6546     (char*)NULL };
6547
6548 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6549  *
6550  *  Description of Struct_File fix
6551  */
6552 tSCC zStruct_FileName[] =
6553      "struct_file";
6554
6555 /*
6556  *  File name selection pattern
6557  */
6558 tSCC zStruct_FileList[] =
6559   "rpc/xdr.h\0";
6560 /*
6561  *  Machine/OS name selection pattern
6562  */
6563 #define apzStruct_FileMachs (const char**)NULL
6564
6565 /*
6566  *  content selection pattern - do fix if pattern found
6567  */
6568 tSCC zStruct_FileSelect0[] =
6569        "^.*xdrstdio_create.*struct __file_s";
6570
6571 #define    STRUCT_FILE_TEST_CT  1
6572 static tTestDesc aStruct_FileTests[] = {
6573   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
6574
6575 /*
6576  *  Fix Command Arguments for Struct_File
6577  */
6578 static const char* apzStruct_FilePatch[] = {
6579     "format",
6580     "struct __file_s;\n\
6581 %0",
6582     (char*)NULL };
6583
6584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6585  *
6586  *  Description of Struct_Sockaddr fix
6587  */
6588 tSCC zStruct_SockaddrName[] =
6589      "struct_sockaddr";
6590
6591 /*
6592  *  File name selection pattern
6593  */
6594 tSCC zStruct_SockaddrList[] =
6595   "rpc/auth.h\0";
6596 /*
6597  *  Machine/OS name selection pattern
6598  */
6599 #define apzStruct_SockaddrMachs (const char**)NULL
6600
6601 /*
6602  *  content selection pattern - do fix if pattern found
6603  */
6604 tSCC zStruct_SockaddrSelect0[] =
6605        "^.*authdes_create.*struct sockaddr[^_]";
6606
6607 /*
6608  *  content bypass pattern - skip fix if pattern found
6609  */
6610 tSCC zStruct_SockaddrBypass0[] =
6611        "<sys/socket.h>";
6612 tSCC zStruct_SockaddrBypass1[] =
6613        "struct sockaddr;\n";
6614
6615 #define    STRUCT_SOCKADDR_TEST_CT  3
6616 static tTestDesc aStruct_SockaddrTests[] = {
6617   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
6618   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
6619   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6620
6621 /*
6622  *  Fix Command Arguments for Struct_Sockaddr
6623  */
6624 static const char* apzStruct_SockaddrPatch[] = {
6625     "format",
6626     "struct sockaddr;\n\
6627 %0",
6628     (char*)NULL };
6629
6630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6631  *
6632  *  Description of Sun_Auth_Proto fix
6633  */
6634 tSCC zSun_Auth_ProtoName[] =
6635      "sun_auth_proto";
6636
6637 /*
6638  *  File name selection pattern
6639  */
6640 tSCC zSun_Auth_ProtoList[] =
6641   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6642 /*
6643  *  Machine/OS name selection pattern
6644  */
6645 #define apzSun_Auth_ProtoMachs (const char**)NULL
6646
6647 /*
6648  *  content selection pattern - do fix if pattern found
6649  */
6650 tSCC zSun_Auth_ProtoSelect0[] =
6651        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6652
6653 /*
6654  *  content bypass pattern - skip fix if pattern found
6655  */
6656 tSCC zSun_Auth_ProtoBypass0[] =
6657        "__cplusplus";
6658
6659 #define    SUN_AUTH_PROTO_TEST_CT  2
6660 static tTestDesc aSun_Auth_ProtoTests[] = {
6661   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6662   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6663
6664 /*
6665  *  Fix Command Arguments for Sun_Auth_Proto
6666  */
6667 static const char* apzSun_Auth_ProtoPatch[] = {
6668     "format",
6669     "#ifdef __cplusplus\n\
6670 %1(...);%2\n\
6671 #else\n\
6672 %1();%2\n\
6673 #endif",
6674     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6675     (char*)NULL };
6676
6677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6678  *
6679  *  Description of Sun_Bogus_Ifdef fix
6680  */
6681 tSCC zSun_Bogus_IfdefName[] =
6682      "sun_bogus_ifdef";
6683
6684 /*
6685  *  File name selection pattern
6686  */
6687 tSCC zSun_Bogus_IfdefList[] =
6688   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6689 /*
6690  *  Machine/OS name selection pattern
6691  */
6692 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6693
6694 /*
6695  *  content selection pattern - do fix if pattern found
6696  */
6697 tSCC zSun_Bogus_IfdefSelect0[] =
6698        "#ifdef(.*\\|\\|.*)";
6699
6700 #define    SUN_BOGUS_IFDEF_TEST_CT  1
6701 static tTestDesc aSun_Bogus_IfdefTests[] = {
6702   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6703
6704 /*
6705  *  Fix Command Arguments for Sun_Bogus_Ifdef
6706  */
6707 static const char* apzSun_Bogus_IfdefPatch[] = {
6708     "format",
6709     "#if%1",
6710     (char*)NULL };
6711
6712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6713  *
6714  *  Description of Sun_Catmacro fix
6715  */
6716 tSCC zSun_CatmacroName[] =
6717      "sun_catmacro";
6718
6719 /*
6720  *  File name selection pattern
6721  */
6722 tSCC zSun_CatmacroList[] =
6723   "pixrect/memvar.h\0";
6724 /*
6725  *  Machine/OS name selection pattern
6726  */
6727 #define apzSun_CatmacroMachs (const char**)NULL
6728
6729 /*
6730  *  content selection pattern - do fix if pattern found
6731  */
6732 tSCC zSun_CatmacroSelect0[] =
6733        "^#define[ \t]+CAT\\(a,b\\).*";
6734
6735 #define    SUN_CATMACRO_TEST_CT  1
6736 static tTestDesc aSun_CatmacroTests[] = {
6737   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
6738
6739 /*
6740  *  Fix Command Arguments for Sun_Catmacro
6741  */
6742 static const char* apzSun_CatmacroPatch[] = {
6743     "format",
6744     "#ifdef __STDC__\n\
6745 #  define CAT(a,b) a##b\n\
6746 #else\n\
6747 %0\n\
6748 #endif",
6749     (char*)NULL };
6750
6751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6752  *
6753  *  Description of Sun_Malloc fix
6754  */
6755 tSCC zSun_MallocName[] =
6756      "sun_malloc";
6757
6758 /*
6759  *  File name selection pattern
6760  */
6761 tSCC zSun_MallocList[] =
6762   "malloc.h\0";
6763 /*
6764  *  Machine/OS name selection pattern
6765  */
6766 #define apzSun_MallocMachs (const char**)NULL
6767
6768 /*
6769  *  content bypass pattern - skip fix if pattern found
6770  */
6771 tSCC zSun_MallocBypass0[] =
6772        "_CLASSIC_ANSI_TYPES";
6773
6774 #define    SUN_MALLOC_TEST_CT  1
6775 static tTestDesc aSun_MallocTests[] = {
6776   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
6777
6778 /*
6779  *  Fix Command Arguments for Sun_Malloc
6780  */
6781 static const char* apzSun_MallocPatch[] = { "sed",
6782     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6783     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6784     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6785     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6786     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6787     (char*)NULL };
6788
6789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6790  *
6791  *  Description of Sun_Rusers_Semi fix
6792  */
6793 tSCC zSun_Rusers_SemiName[] =
6794      "sun_rusers_semi";
6795
6796 /*
6797  *  File name selection pattern
6798  */
6799 tSCC zSun_Rusers_SemiList[] =
6800   "rpcsvc/rusers.h\0";
6801 /*
6802  *  Machine/OS name selection pattern
6803  */
6804 #define apzSun_Rusers_SemiMachs (const char**)NULL
6805
6806 /*
6807  *  content selection pattern - do fix if pattern found
6808  */
6809 tSCC zSun_Rusers_SemiSelect0[] =
6810        "_cnt$";
6811
6812 #define    SUN_RUSERS_SEMI_TEST_CT  1
6813 static tTestDesc aSun_Rusers_SemiTests[] = {
6814   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6815
6816 /*
6817  *  Fix Command Arguments for Sun_Rusers_Semi
6818  */
6819 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6820     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6821     (char*)NULL };
6822
6823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6824  *
6825  *  Description of Sun_Signal fix
6826  */
6827 tSCC zSun_SignalName[] =
6828      "sun_signal";
6829
6830 /*
6831  *  File name selection pattern
6832  */
6833 tSCC zSun_SignalList[] =
6834   "sys/signal.h\0signal.h\0";
6835 /*
6836  *  Machine/OS name selection pattern
6837  */
6838 #define apzSun_SignalMachs (const char**)NULL
6839
6840 /*
6841  *  content selection pattern - do fix if pattern found
6842  */
6843 tSCC zSun_SignalSelect0[] =
6844        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6845
6846 #define    SUN_SIGNAL_TEST_CT  1
6847 static tTestDesc aSun_SignalTests[] = {
6848   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
6849
6850 /*
6851  *  Fix Command Arguments for Sun_Signal
6852  */
6853 static const char* apzSun_SignalPatch[] = {
6854     "format",
6855     "#ifdef __cplusplus\n\
6856 void\t(*signal(...))(...);\n\
6857 #else\n\
6858 %0\n\
6859 #endif",
6860     (char*)NULL };
6861
6862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6863  *
6864  *  Description of Sunos_Strlen fix
6865  */
6866 tSCC zSunos_StrlenName[] =
6867      "sunos_strlen";
6868
6869 /*
6870  *  File name selection pattern
6871  */
6872 tSCC zSunos_StrlenList[] =
6873   "strings.h\0";
6874 /*
6875  *  Machine/OS name selection pattern
6876  */
6877 #define apzSunos_StrlenMachs (const char**)NULL
6878
6879 /*
6880  *  content selection pattern - do fix if pattern found
6881  */
6882 tSCC zSunos_StrlenSelect0[] =
6883        "int[ \t]*strlen\\(\\);(.*)";
6884
6885 #define    SUNOS_STRLEN_TEST_CT  1
6886 static tTestDesc aSunos_StrlenTests[] = {
6887   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
6888
6889 /*
6890  *  Fix Command Arguments for Sunos_Strlen
6891  */
6892 static const char* apzSunos_StrlenPatch[] = {
6893     "format",
6894     "__SIZE_TYPE__ strlen();%1",
6895     (char*)NULL };
6896
6897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6898  *
6899  *  Description of Svr4_Disable_Opt fix
6900  */
6901 tSCC zSvr4_Disable_OptName[] =
6902      "svr4_disable_opt";
6903
6904 /*
6905  *  File name selection pattern
6906  */
6907 tSCC zSvr4_Disable_OptList[] =
6908   "string.h\0";
6909 /*
6910  *  Machine/OS name selection pattern
6911  */
6912 #define apzSvr4_Disable_OptMachs (const char**)NULL
6913
6914 /*
6915  *  content selection pattern - do fix if pattern found
6916  */
6917 tSCC zSvr4_Disable_OptSelect0[] =
6918        "#define.*__std_hdr_";
6919
6920 #define    SVR4_DISABLE_OPT_TEST_CT  1
6921 static tTestDesc aSvr4_Disable_OptTests[] = {
6922   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6923
6924 /*
6925  *  Fix Command Arguments for Svr4_Disable_Opt
6926  */
6927 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6928     "-e", "/#define.*__std_hdr_/d",
6929     (char*)NULL };
6930
6931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6932  *
6933  *  Description of Svr4_Getcwd fix
6934  */
6935 tSCC zSvr4_GetcwdName[] =
6936      "svr4_getcwd";
6937
6938 /*
6939  *  File name selection pattern
6940  */
6941 tSCC zSvr4_GetcwdList[] =
6942   "stdlib.h\0unistd.h\0prototypes.h\0";
6943 /*
6944  *  Machine/OS name selection pattern
6945  */
6946 #define apzSvr4_GetcwdMachs (const char**)NULL
6947
6948 /*
6949  *  content selection pattern - do fix if pattern found
6950  */
6951 tSCC zSvr4_GetcwdSelect0[] =
6952        "getcwd\\(char \\*, int\\)";
6953
6954 #define    SVR4_GETCWD_TEST_CT  1
6955 static tTestDesc aSvr4_GetcwdTests[] = {
6956   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6957
6958 /*
6959  *  Fix Command Arguments for Svr4_Getcwd
6960  */
6961 static const char* apzSvr4_GetcwdPatch[] = {
6962     "format",
6963     "getcwd(char *, size_t)",
6964     (char*)NULL };
6965
6966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6967  *
6968  *  Description of Svr4_Krnl fix
6969  */
6970 tSCC zSvr4_KrnlName[] =
6971      "svr4_krnl";
6972
6973 /*
6974  *  File name selection pattern
6975  */
6976 tSCC zSvr4_KrnlList[] =
6977   "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";
6978 /*
6979  *  Machine/OS name selection pattern
6980  */
6981 tSCC* apzSvr4_KrnlMachs[] = {
6982         "*-*-sysv4*",
6983         "i?86-sequent-ptx*",
6984         (const char*)NULL };
6985
6986 /*
6987  *  content bypass pattern - skip fix if pattern found
6988  */
6989 tSCC zSvr4_KrnlBypass0[] =
6990        "_KERNEL";
6991
6992 #define    SVR4_KRNL_TEST_CT  1
6993 static tTestDesc aSvr4_KrnlTests[] = {
6994   { TT_NEGREP,   zSvr4_KrnlBypass0, (regex_t*)NULL }, };
6995
6996 /*
6997  *  Fix Command Arguments for Svr4_Krnl
6998  */
6999 static const char* apzSvr4_KrnlPatch[] = {
7000     "wrap",
7001     "#ifdef _KERNEL\n",
7002     "#endif /* _KERNEL */\n",
7003     (char*)NULL };
7004
7005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7006  *
7007  *  Description of Svr4_Profil fix
7008  */
7009 tSCC zSvr4_ProfilName[] =
7010      "svr4_profil";
7011
7012 /*
7013  *  File name selection pattern
7014  */
7015 tSCC zSvr4_ProfilList[] =
7016   "stdlib.h\0unistd.h\0";
7017 /*
7018  *  Machine/OS name selection pattern
7019  */
7020 #define apzSvr4_ProfilMachs (const char**)NULL
7021
7022 /*
7023  *  content selection pattern - do fix if pattern found
7024  */
7025 tSCC zSvr4_ProfilSelect0[] =
7026        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7027
7028 /*
7029  *  content bypass pattern - skip fix if pattern found
7030  */
7031 tSCC zSvr4_ProfilBypass0[] =
7032        "Silicon Graphics";
7033
7034 #define    SVR4_PROFIL_TEST_CT  2
7035 static tTestDesc aSvr4_ProfilTests[] = {
7036   { TT_NEGREP,   zSvr4_ProfilBypass0, (regex_t*)NULL },
7037   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7038
7039 /*
7040  *  Fix Command Arguments for Svr4_Profil
7041  */
7042 static const char* apzSvr4_ProfilPatch[] = {
7043     "format",
7044     "profil(unsigned short *, size_t, int, unsigned int)",
7045     (char*)NULL };
7046
7047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7048  *
7049  *  Description of Svr4_Sighandler_Type fix
7050  */
7051 tSCC zSvr4_Sighandler_TypeName[] =
7052      "svr4_sighandler_type";
7053
7054 /*
7055  *  File name selection pattern
7056  */
7057 tSCC zSvr4_Sighandler_TypeList[] =
7058   "sys/signal.h\0";
7059 /*
7060  *  Machine/OS name selection pattern
7061  */
7062 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7063
7064 /*
7065  *  content selection pattern - do fix if pattern found
7066  */
7067 tSCC zSvr4_Sighandler_TypeSelect0[] =
7068        "void *\\(\\*\\)\\(\\)";
7069
7070 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
7071 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7072   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7073
7074 /*
7075  *  Fix Command Arguments for Svr4_Sighandler_Type
7076  */
7077 static const char* apzSvr4_Sighandler_TypePatch[] = {
7078     "format",
7079     "void (*)(int)",
7080     (char*)NULL };
7081
7082 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7083  *
7084  *  Description of Svr4_Undeclared_Getrnge fix
7085  */
7086 tSCC zSvr4_Undeclared_GetrngeName[] =
7087      "svr4_undeclared_getrnge";
7088
7089 /*
7090  *  File name selection pattern
7091  */
7092 tSCC zSvr4_Undeclared_GetrngeList[] =
7093   "regexp.h\0";
7094 /*
7095  *  Machine/OS name selection pattern
7096  */
7097 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7098
7099 /*
7100  *  content selection pattern - do fix if pattern found
7101  */
7102 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7103        "getrnge";
7104
7105 /*
7106  *  content bypass pattern - skip fix if pattern found
7107  */
7108 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7109        "static void getrnge";
7110
7111 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
7112 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7113   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7114   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7115
7116 /*
7117  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
7118  */
7119 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7120     "format",
7121     "%0\n\
7122 static int getrnge ();",
7123     "^static int[ \t]+size;",
7124     (char*)NULL };
7125
7126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7127  *
7128  *  Description of Sysv68_String fix
7129  */
7130 tSCC zSysv68_StringName[] =
7131      "sysv68_string";
7132
7133 /*
7134  *  File name selection pattern
7135  */
7136 tSCC zSysv68_StringList[] =
7137   "testing.h\0string.h\0";
7138 /*
7139  *  Machine/OS name selection pattern
7140  */
7141 #define apzSysv68_StringMachs (const char**)NULL
7142
7143 /*
7144  *  content bypass pattern - skip fix if pattern found
7145  */
7146 tSCC zSysv68_StringBypass0[] =
7147        "_CLASSIC_ANSI_TYPES";
7148
7149 #define    SYSV68_STRING_TEST_CT  1
7150 static tTestDesc aSysv68_StringTests[] = {
7151   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
7152
7153 /*
7154  *  Fix Command Arguments for Sysv68_String
7155  */
7156 static const char* apzSysv68_StringPatch[] = { "sed",
7157     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7158     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7159     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7160     "-e", "/^extern char$/N",
7161     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7162     "-e", "/^extern int$/N",
7163     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7164     "-e", "/^\tstrncmp(),$/N",
7165     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7166 extern unsigned int\\\n\
7167 \\2/",
7168     (char*)NULL };
7169
7170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7171  *
7172  *  Description of Sysz_Stdlib_For_Sun fix
7173  */
7174 tSCC zSysz_Stdlib_For_SunName[] =
7175      "sysz_stdlib_for_sun";
7176
7177 /*
7178  *  File name selection pattern
7179  */
7180 tSCC zSysz_Stdlib_For_SunList[] =
7181   "stdlib.h\0";
7182 /*
7183  *  Machine/OS name selection pattern
7184  */
7185 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7186
7187 /*
7188  *  content selection pattern - do fix if pattern found
7189  */
7190 tSCC zSysz_Stdlib_For_SunSelect0[] =
7191        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7192
7193 /*
7194  *  content bypass pattern - skip fix if pattern found
7195  */
7196 tSCC zSysz_Stdlib_For_SunBypass0[] =
7197        "_CLASSIC_ANSI_TYPES";
7198
7199 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
7200 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7201   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7202   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7203
7204 /*
7205  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
7206  */
7207 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7208     "format",
7209     "void *\t%1(",
7210     (char*)NULL };
7211
7212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7213  *
7214  *  Description of Thread_Keyword fix
7215  */
7216 tSCC zThread_KeywordName[] =
7217      "thread_keyword";
7218
7219 /*
7220  *  File name selection pattern
7221  */
7222 tSCC zThread_KeywordList[] =
7223   "pthread.h\0bits/sigthread.h\0";
7224 /*
7225  *  Machine/OS name selection pattern
7226  */
7227 #define apzThread_KeywordMachs (const char**)NULL
7228
7229 /*
7230  *  content selection pattern - do fix if pattern found
7231  */
7232 tSCC zThread_KeywordSelect0[] =
7233        "([* ])__thread([,)])";
7234
7235 #define    THREAD_KEYWORD_TEST_CT  1
7236 static tTestDesc aThread_KeywordTests[] = {
7237   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
7238
7239 /*
7240  *  Fix Command Arguments for Thread_Keyword
7241  */
7242 static const char* apzThread_KeywordPatch[] = {
7243     "format",
7244     "%1__thr%2",
7245     (char*)NULL };
7246
7247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7248  *
7249  *  Description of Tinfo_Cplusplus fix
7250  */
7251 tSCC zTinfo_CplusplusName[] =
7252      "tinfo_cplusplus";
7253
7254 /*
7255  *  File name selection pattern
7256  */
7257 tSCC zTinfo_CplusplusList[] =
7258   "tinfo.h\0";
7259 /*
7260  *  Machine/OS name selection pattern
7261  */
7262 #define apzTinfo_CplusplusMachs (const char**)NULL
7263
7264 /*
7265  *  content selection pattern - do fix if pattern found
7266  */
7267 tSCC zTinfo_CplusplusSelect0[] =
7268        "[ \t]_cplusplus";
7269
7270 #define    TINFO_CPLUSPLUS_TEST_CT  1
7271 static tTestDesc aTinfo_CplusplusTests[] = {
7272   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7273
7274 /*
7275  *  Fix Command Arguments for Tinfo_Cplusplus
7276  */
7277 static const char* apzTinfo_CplusplusPatch[] = {
7278     "format",
7279     " __cplusplus",
7280     (char*)NULL };
7281
7282 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7283  *
7284  *  Description of Ultrix_Atexit_Param fix
7285  */
7286 tSCC zUltrix_Atexit_ParamName[] =
7287      "ultrix_atexit_param";
7288
7289 /*
7290  *  File name selection pattern
7291  */
7292 tSCC zUltrix_Atexit_ParamList[] =
7293   "stdlib.h\0";
7294 /*
7295  *  Machine/OS name selection pattern
7296  */
7297 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7298
7299 /*
7300  *  content selection pattern - do fix if pattern found
7301  */
7302 tSCC zUltrix_Atexit_ParamSelect0[] =
7303        "atexit\\(.*\\(\\)";
7304
7305 #define    ULTRIX_ATEXIT_PARAM_TEST_CT  1
7306 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7307   { TT_EGREP,    zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7308
7309 /*
7310  *  Fix Command Arguments for Ultrix_Atexit_Param
7311  */
7312 static const char* apzUltrix_Atexit_ParamPatch[] = {
7313     "format",
7314     "atexit( void (*__func)( void )",
7315     (char*)NULL };
7316
7317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7318  *
7319  *  Description of Ultrix_Atof_Param fix
7320  */
7321 tSCC zUltrix_Atof_ParamName[] =
7322      "ultrix_atof_param";
7323
7324 /*
7325  *  File name selection pattern
7326  */
7327 tSCC zUltrix_Atof_ParamList[] =
7328   "math.h\0";
7329 /*
7330  *  Machine/OS name selection pattern
7331  */
7332 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7333
7334 /*
7335  *  content selection pattern - do fix if pattern found
7336  */
7337 tSCC zUltrix_Atof_ParamSelect0[] =
7338        "atof\\([ \t]*char";
7339
7340 #define    ULTRIX_ATOF_PARAM_TEST_CT  1
7341 static tTestDesc aUltrix_Atof_ParamTests[] = {
7342   { TT_EGREP,    zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7343
7344 /*
7345  *  Fix Command Arguments for Ultrix_Atof_Param
7346  */
7347 static const char* apzUltrix_Atof_ParamPatch[] = {
7348     "format",
7349     "atof(const char",
7350     (char*)NULL };
7351
7352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7353  *
7354  *  Description of Ultrix_Const fix
7355  */
7356 tSCC zUltrix_ConstName[] =
7357      "ultrix_const";
7358
7359 /*
7360  *  File name selection pattern
7361  */
7362 tSCC zUltrix_ConstList[] =
7363   "stdio.h\0";
7364 /*
7365  *  Machine/OS name selection pattern
7366  */
7367 #define apzUltrix_ConstMachs (const char**)NULL
7368
7369 /*
7370  *  content selection pattern - do fix if pattern found
7371  */
7372 tSCC zUltrix_ConstSelect0[] =
7373        "perror\\( char \\*";
7374
7375 #define    ULTRIX_CONST_TEST_CT  1
7376 static tTestDesc aUltrix_ConstTests[] = {
7377   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
7378
7379 /*
7380  *  Fix Command Arguments for Ultrix_Const
7381  */
7382 static const char* apzUltrix_ConstPatch[] = {
7383     "format",
7384     "%1 const %3 *__",
7385     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7386     (char*)NULL };
7387
7388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7389  *
7390  *  Description of Ultrix_Const2 fix
7391  */
7392 tSCC zUltrix_Const2Name[] =
7393      "ultrix_const2";
7394
7395 /*
7396  *  File name selection pattern
7397  */
7398 tSCC zUltrix_Const2List[] =
7399   "stdio.h\0";
7400 /*
7401  *  Machine/OS name selection pattern
7402  */
7403 #define apzUltrix_Const2Machs (const char**)NULL
7404
7405 /*
7406  *  content selection pattern - do fix if pattern found
7407  */
7408 tSCC zUltrix_Const2Select0[] =
7409        "\\*fopen\\( char \\*";
7410
7411 #define    ULTRIX_CONST2_TEST_CT  1
7412 static tTestDesc aUltrix_Const2Tests[] = {
7413   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
7414
7415 /*
7416  *  Fix Command Arguments for Ultrix_Const2
7417  */
7418 static const char* apzUltrix_Const2Patch[] = {
7419     "format",
7420     "%1( const char *%3, const char *",
7421     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7422     (char*)NULL };
7423
7424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7425  *
7426  *  Description of Ultrix_Const3 fix
7427  */
7428 tSCC zUltrix_Const3Name[] =
7429      "ultrix_const3";
7430
7431 /*
7432  *  File name selection pattern
7433  */
7434 tSCC zUltrix_Const3List[] =
7435   "stdio.h\0";
7436 /*
7437  *  Machine/OS name selection pattern
7438  */
7439 #define apzUltrix_Const3Machs (const char**)NULL
7440
7441 /*
7442  *  content selection pattern - do fix if pattern found
7443  */
7444 tSCC zUltrix_Const3Select0[] =
7445        "fdopen\\( .*, char \\*";
7446
7447 #define    ULTRIX_CONST3_TEST_CT  1
7448 static tTestDesc aUltrix_Const3Tests[] = {
7449   { TT_EGREP,    zUltrix_Const3Select0, (regex_t*)NULL }, };
7450
7451 /*
7452  *  Fix Command Arguments for Ultrix_Const3
7453  */
7454 static const char* apzUltrix_Const3Patch[] = {
7455     "format",
7456     "%1 const %3 *__",
7457     "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7458     (char*)NULL };
7459
7460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7461  *
7462  *  Description of Ultrix_Fix_Fixproto fix
7463  */
7464 tSCC zUltrix_Fix_FixprotoName[] =
7465      "ultrix_fix_fixproto";
7466
7467 /*
7468  *  File name selection pattern
7469  */
7470 tSCC zUltrix_Fix_FixprotoList[] =
7471   "sys/utsname.h\0";
7472 /*
7473  *  Machine/OS name selection pattern
7474  */
7475 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7476
7477 /*
7478  *  content selection pattern - do fix if pattern found
7479  */
7480 tSCC zUltrix_Fix_FixprotoSelect0[] =
7481        "ULTRIX";
7482
7483 #define    ULTRIX_FIX_FIXPROTO_TEST_CT  1
7484 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7485   { TT_EGREP,    zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7486
7487 /*
7488  *  Fix Command Arguments for Ultrix_Fix_Fixproto
7489  */
7490 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7491     "format",
7492     "struct utsname;\n\
7493 %0",
7494     "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7495     (char*)NULL };
7496
7497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7498  *
7499  *  Description of Ultrix_Ifdef fix
7500  */
7501 tSCC zUltrix_IfdefName[] =
7502      "ultrix_ifdef";
7503
7504 /*
7505  *  File name selection pattern
7506  */
7507 tSCC zUltrix_IfdefList[] =
7508   "sys/file.h\0";
7509 /*
7510  *  Machine/OS name selection pattern
7511  */
7512 #define apzUltrix_IfdefMachs (const char**)NULL
7513
7514 /*
7515  *  content selection pattern - do fix if pattern found
7516  */
7517 tSCC zUltrix_IfdefSelect0[] =
7518        "^#ifdef KERNEL[ \t]+&&";
7519
7520 #define    ULTRIX_IFDEF_TEST_CT  1
7521 static tTestDesc aUltrix_IfdefTests[] = {
7522   { TT_EGREP,    zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7523
7524 /*
7525  *  Fix Command Arguments for Ultrix_Ifdef
7526  */
7527 static const char* apzUltrix_IfdefPatch[] = {
7528     "format",
7529     "#if defined(KERNEL) &&",
7530     (char*)NULL };
7531
7532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7533  *
7534  *  Description of Ultrix_Locale fix
7535  */
7536 tSCC zUltrix_LocaleName[] =
7537      "ultrix_locale";
7538
7539 /*
7540  *  File name selection pattern
7541  */
7542 tSCC zUltrix_LocaleList[] =
7543   "locale.h\0";
7544 /*
7545  *  Machine/OS name selection pattern
7546  */
7547 #define apzUltrix_LocaleMachs (const char**)NULL
7548
7549 /*
7550  *  content selection pattern - do fix if pattern found
7551  */
7552 tSCC zUltrix_LocaleSelect0[] =
7553        "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7554
7555 #define    ULTRIX_LOCALE_TEST_CT  1
7556 static tTestDesc aUltrix_LocaleTests[] = {
7557   { TT_EGREP,    zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7558
7559 /*
7560  *  Fix Command Arguments for Ultrix_Locale
7561  */
7562 static const char* apzUltrix_LocalePatch[] = {
7563     "wrap",
7564     (char*)NULL };
7565
7566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7567  *
7568  *  Description of Ultrix_Math_Ifdef fix
7569  */
7570 tSCC zUltrix_Math_IfdefName[] =
7571      "ultrix_math_ifdef";
7572
7573 /*
7574  *  File name selection pattern
7575  */
7576 tSCC zUltrix_Math_IfdefList[] =
7577   "sys/limits.h\0float.h\0math.h\0";
7578 /*
7579  *  Machine/OS name selection pattern
7580  */
7581 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7582
7583 /*
7584  *  content selection pattern - do fix if pattern found
7585  */
7586 tSCC zUltrix_Math_IfdefSelect0[] =
7587        "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7588
7589 #define    ULTRIX_MATH_IFDEF_TEST_CT  1
7590 static tTestDesc aUltrix_Math_IfdefTests[] = {
7591   { TT_EGREP,    zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7592
7593 /*
7594  *  Fix Command Arguments for Ultrix_Math_Ifdef
7595  */
7596 static const char* apzUltrix_Math_IfdefPatch[] = {
7597     "format",
7598     "%1",
7599     (char*)NULL };
7600
7601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7602  *
7603  *  Description of Ultrix_Nested_Ioctl fix
7604  */
7605 tSCC zUltrix_Nested_IoctlName[] =
7606      "ultrix_nested_ioctl";
7607
7608 /*
7609  *  File name selection pattern
7610  */
7611 tSCC zUltrix_Nested_IoctlList[] =
7612   "sys/ioctl.h\0";
7613 /*
7614  *  Machine/OS name selection pattern
7615  */
7616 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7617
7618 /*
7619  *  content selection pattern - do fix if pattern found
7620  */
7621 tSCC zUltrix_Nested_IoctlSelect0[] =
7622        "^/\\* #define SIOCSCREEN";
7623
7624 #define    ULTRIX_NESTED_IOCTL_TEST_CT  1
7625 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7626   { TT_EGREP,    zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7627
7628 /*
7629  *  Fix Command Arguments for Ultrix_Nested_Ioctl
7630  */
7631 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7632     "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7633     (char*)NULL };
7634
7635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7636  *
7637  *  Description of Ultrix_Nested_Svc fix
7638  */
7639 tSCC zUltrix_Nested_SvcName[] =
7640      "ultrix_nested_svc";
7641
7642 /*
7643  *  File name selection pattern
7644  */
7645 tSCC zUltrix_Nested_SvcList[] =
7646   "rpc/svc.h\0";
7647 /*
7648  *  Machine/OS name selection pattern
7649  */
7650 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7651
7652 /*
7653  *  content selection pattern - do fix if pattern found
7654  */
7655 tSCC zUltrix_Nested_SvcSelect0[] =
7656        "^ \\*[ \t]*int protocol;  */\\*";
7657
7658 #define    ULTRIX_NESTED_SVC_TEST_CT  1
7659 static tTestDesc aUltrix_Nested_SvcTests[] = {
7660   { TT_EGREP,    zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7661
7662 /*
7663  *  Fix Command Arguments for Ultrix_Nested_Svc
7664  */
7665 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7666     "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
7667     (char*)NULL };
7668
7669 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7670  *
7671  *  Description of Ultrix_Stat fix
7672  */
7673 tSCC zUltrix_StatName[] =
7674      "ultrix_stat";
7675
7676 /*
7677  *  File name selection pattern
7678  */
7679 tSCC zUltrix_StatList[] =
7680   "sys/stat.h\0";
7681 /*
7682  *  Machine/OS name selection pattern
7683  */
7684 #define apzUltrix_StatMachs (const char**)NULL
7685
7686 /*
7687  *  content selection pattern - do fix if pattern found
7688  */
7689 tSCC zUltrix_StatSelect0[] =
7690        "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7691
7692 #define    ULTRIX_STAT_TEST_CT  1
7693 static tTestDesc aUltrix_StatTests[] = {
7694   { TT_EGREP,    zUltrix_StatSelect0, (regex_t*)NULL }, };
7695
7696 /*
7697  *  Fix Command Arguments for Ultrix_Stat
7698  */
7699 static const char* apzUltrix_StatPatch[] = { "sed",
7700     "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7701 \\\n\
7702 /* macro to test for symbolic link */\\\n\
7703 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7704     "-e", "/^[ \t]*fstat(),$/a\\\n\
7705 \tlstat(),\n",
7706     (char*)NULL };
7707
7708 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7709  *
7710  *  Description of Ultrix_Static fix
7711  */
7712 tSCC zUltrix_StaticName[] =
7713      "ultrix_static";
7714
7715 /*
7716  *  File name selection pattern
7717  */
7718 tSCC zUltrix_StaticList[] =
7719   "machine/cpu.h\0";
7720 /*
7721  *  Machine/OS name selection pattern
7722  */
7723 #define apzUltrix_StaticMachs (const char**)NULL
7724
7725 /*
7726  *  content selection pattern - do fix if pattern found
7727  */
7728 tSCC zUltrix_StaticSelect0[] =
7729        "#include \"r[34]_cpu";
7730
7731 #define    ULTRIX_STATIC_TEST_CT  1
7732 static tTestDesc aUltrix_StaticTests[] = {
7733   { TT_EGREP,    zUltrix_StaticSelect0, (regex_t*)NULL }, };
7734
7735 /*
7736  *  Fix Command Arguments for Ultrix_Static
7737  */
7738 static const char* apzUltrix_StaticPatch[] = { "sed",
7739     "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7740     "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7741     "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7742     (char*)NULL };
7743
7744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7745  *
7746  *  Description of Ultrix_Stdlib fix
7747  */
7748 tSCC zUltrix_StdlibName[] =
7749      "ultrix_stdlib";
7750
7751 /*
7752  *  File name selection pattern
7753  */
7754 tSCC zUltrix_StdlibList[] =
7755   "stdlib.h\0";
7756 /*
7757  *  Machine/OS name selection pattern
7758  */
7759 #define apzUltrix_StdlibMachs (const char**)NULL
7760
7761 /*
7762  *  content selection pattern - do fix if pattern found
7763  */
7764 tSCC zUltrix_StdlibSelect0[] =
7765        "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7766
7767 #define    ULTRIX_STDLIB_TEST_CT  1
7768 static tTestDesc aUltrix_StdlibTests[] = {
7769   { TT_EGREP,    zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7770
7771 /*
7772  *  Fix Command Arguments for Ultrix_Stdlib
7773  */
7774 static const char* apzUltrix_StdlibPatch[] = { "sed",
7775     "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7776 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7777 void\t\tunsetenv( const char *__name );\\\n\
7778 int\t\tputenv( char *__s );\n",
7779     "-e", "/^char.*getenv();.*$/a\\\n\
7780 int\tsetenv();\\\n\
7781 void\tunsetenv();\\\n\
7782 int\tputenv();\n",
7783     (char*)NULL };
7784
7785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7786  *
7787  *  Description of Ultrix_Strings fix
7788  */
7789 tSCC zUltrix_StringsName[] =
7790      "ultrix_strings";
7791
7792 /*
7793  *  File name selection pattern
7794  */
7795 tSCC zUltrix_StringsList[] =
7796   "strings.h\0";
7797 /*
7798  *  Machine/OS name selection pattern
7799  */
7800 #define apzUltrix_StringsMachs (const char**)NULL
7801
7802 /*
7803  *  content selection pattern - do fix if pattern found
7804  */
7805 tSCC zUltrix_StringsSelect0[] =
7806        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7807
7808 #define    ULTRIX_STRINGS_TEST_CT  1
7809 static tTestDesc aUltrix_StringsTests[] = {
7810   { TT_EGREP,    zUltrix_StringsSelect0, (regex_t*)NULL }, };
7811
7812 /*
7813  *  Fix Command Arguments for Ultrix_Strings
7814  */
7815 static const char* apzUltrix_StringsPatch[] = {
7816     "wrap",
7817     (char*)NULL };
7818
7819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7820  *
7821  *  Description of Ultrix_Strings2 fix
7822  */
7823 tSCC zUltrix_Strings2Name[] =
7824      "ultrix_strings2";
7825
7826 /*
7827  *  File name selection pattern
7828  */
7829 tSCC zUltrix_Strings2List[] =
7830   "strings.h\0";
7831 /*
7832  *  Machine/OS name selection pattern
7833  */
7834 #define apzUltrix_Strings2Machs (const char**)NULL
7835
7836 /*
7837  *  content selection pattern - do fix if pattern found
7838  */
7839 tSCC zUltrix_Strings2Select0[] =
7840        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7841
7842 #define    ULTRIX_STRINGS2_TEST_CT  1
7843 static tTestDesc aUltrix_Strings2Tests[] = {
7844   { TT_EGREP,    zUltrix_Strings2Select0, (regex_t*)NULL }, };
7845
7846 /*
7847  *  Fix Command Arguments for Ultrix_Strings2
7848  */
7849 static const char* apzUltrix_Strings2Patch[] = { "sed",
7850     "-e", "/^.*strncmp( const .* );.*/a\\\n\
7851 \\\n\
7852 extern int\\\n\
7853 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7854 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7855     "-e", "/^.*strncmp();.*/a\\\n\
7856 extern int\\\n\
7857 \tstrcasecmp(),\\\n\
7858 \tstrncasecmp();\n",
7859     (char*)NULL };
7860
7861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7862  *
7863  *  Description of Ultrix_Sys_Time fix
7864  */
7865 tSCC zUltrix_Sys_TimeName[] =
7866      "ultrix_sys_time";
7867
7868 /*
7869  *  File name selection pattern
7870  */
7871 tSCC zUltrix_Sys_TimeList[] =
7872   "sys/time.h\0";
7873 /*
7874  *  Machine/OS name selection pattern
7875  */
7876 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7877
7878 /*
7879  *  content selection pattern - do fix if pattern found
7880  */
7881 tSCC zUltrix_Sys_TimeSelect0[] =
7882        "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7883
7884 #define    ULTRIX_SYS_TIME_TEST_CT  1
7885 static tTestDesc aUltrix_Sys_TimeTests[] = {
7886   { TT_EGREP,    zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7887
7888 /*
7889  *  Fix Command Arguments for Ultrix_Sys_Time
7890  */
7891 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7892     "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7893 \\\n\
7894 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7895 extern int getitimer(int, struct itimerval *);\\\n\
7896 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7897 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7898 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7899 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7900 extern int stime(const time_t *);\\\n\
7901 extern int utimes(const char *, const struct timeval[2]);\\\n\
7902 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7903     "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7904 extern\tint adjtime();\\\n\
7905 extern\tint getitimer();\\\n\
7906 extern\tint setitimer();\\\n\
7907 extern\tint gettimeofday();\\\n\
7908 extern\tint settimeofday();\\\n\
7909 extern\tvoid profil();\\\n\
7910 extern\tint stime();\\\n\
7911 extern\tint utimes();\\\n\
7912 extern\tint select();\n",
7913     (char*)NULL };
7914
7915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7916  *
7917  *  Description of Ultrix_Unistd fix
7918  */
7919 tSCC zUltrix_UnistdName[] =
7920      "ultrix_unistd";
7921
7922 /*
7923  *  File name selection pattern
7924  */
7925 tSCC zUltrix_UnistdList[] =
7926   "unistd.h\0";
7927 /*
7928  *  Machine/OS name selection pattern
7929  */
7930 #define apzUltrix_UnistdMachs (const char**)NULL
7931
7932 /*
7933  *  content selection pattern - do fix if pattern found
7934  */
7935 tSCC zUltrix_UnistdSelect0[] =
7936        "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7937
7938 #define    ULTRIX_UNISTD_TEST_CT  1
7939 static tTestDesc aUltrix_UnistdTests[] = {
7940   { TT_EGREP,    zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7941
7942 /*
7943  *  Fix Command Arguments for Ultrix_Unistd
7944  */
7945 static const char* apzUltrix_UnistdPatch[] = { "sed",
7946     "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
7947 \tgetpagesize(),\n",
7948     "-e", "/^[ \t]*fork(),.*$/a\\\n\
7949 \tvfork(),\n",
7950     (char*)NULL };
7951
7952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7953  *
7954  *  Description of Unicosmk_Restrict fix
7955  */
7956 tSCC zUnicosmk_RestrictName[] =
7957      "unicosmk_restrict";
7958
7959 /*
7960  *  File name selection pattern
7961  */
7962 tSCC zUnicosmk_RestrictList[] =
7963   "stdio.h\0stdlib.h\0wchar.h\0";
7964 /*
7965  *  Machine/OS name selection pattern
7966  */
7967 tSCC* apzUnicosmk_RestrictMachs[] = {
7968         "*-*-unicosmk*",
7969         (const char*)NULL };
7970
7971 /*
7972  *  content selection pattern - do fix if pattern found
7973  */
7974 tSCC zUnicosmk_RestrictSelect0[] =
7975        "(\\*[ \t]*)restrict([ \t]+)";
7976
7977 #define    UNICOSMK_RESTRICT_TEST_CT  1
7978 static tTestDesc aUnicosmk_RestrictTests[] = {
7979   { TT_EGREP,    zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
7980
7981 /*
7982  *  Fix Command Arguments for Unicosmk_Restrict
7983  */
7984 static const char* apzUnicosmk_RestrictPatch[] = {
7985     "format",
7986     "%1__restrict__%2",
7987     (char*)NULL };
7988
7989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7990  *
7991  *  Description of Uw7_Byteorder_Fix fix
7992  */
7993 tSCC zUw7_Byteorder_FixName[] =
7994      "uw7_byteorder_fix";
7995
7996 /*
7997  *  File name selection pattern
7998  */
7999 tSCC zUw7_Byteorder_FixList[] =
8000   "arpa/inet.h\0";
8001 /*
8002  *  Machine/OS name selection pattern
8003  */
8004 tSCC* apzUw7_Byteorder_FixMachs[] = {
8005         "*-*-sysv4*",
8006         "i?86-*-sysv5*",
8007         "i?86-*-udk*",
8008         "i?86-*-solaris2.[0-4]",
8009         "powerpcle-*-solaris2.[0-4]",
8010         "sparc-*-solaris2.[0-4]",
8011         (const char*)NULL };
8012
8013 /*
8014  *  content selection pattern - do fix if pattern found
8015  */
8016 tSCC zUw7_Byteorder_FixSelect0[] =
8017        "in_port_t";
8018
8019 /*
8020  *  perform the 'test' shell command - do fix on success
8021  */
8022 tSCC zUw7_Byteorder_FixTest0[] =
8023        "-f sys/byteorder.h";
8024
8025 #define    UW7_BYTEORDER_FIX_TEST_CT  2
8026 static tTestDesc aUw7_Byteorder_FixTests[] = {
8027   { TT_TEST,     zUw7_Byteorder_FixTest0,   0 /* unused */ },
8028   { TT_EGREP,    zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
8029
8030 /*
8031  *  Fix Command Arguments for Uw7_Byteorder_Fix
8032  */
8033 static const char* apzUw7_Byteorder_FixPatch[] = {
8034     "format",
8035     "",
8036     "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
8037     (char*)NULL };
8038
8039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8040  *
8041  *  Description of Va_I960_Macro fix
8042  */
8043 tSCC zVa_I960_MacroName[] =
8044      "va_i960_macro";
8045
8046 /*
8047  *  File name selection pattern
8048  */
8049 tSCC zVa_I960_MacroList[] =
8050   "arch/i960/archI960.h\0";
8051 /*
8052  *  Machine/OS name selection pattern
8053  */
8054 #define apzVa_I960_MacroMachs (const char**)NULL
8055
8056 /*
8057  *  content selection pattern - do fix if pattern found
8058  */
8059 tSCC zVa_I960_MacroSelect0[] =
8060        "__(vsiz|vali|vpad|alignof__)";
8061
8062 #define    VA_I960_MACRO_TEST_CT  1
8063 static tTestDesc aVa_I960_MacroTests[] = {
8064   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8065
8066 /*
8067  *  Fix Command Arguments for Va_I960_Macro
8068  */
8069 static const char* apzVa_I960_MacroPatch[] = {
8070     "format",
8071     "__vx%1",
8072     (char*)NULL };
8073
8074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8075  *
8076  *  Description of Void_Null fix
8077  */
8078 tSCC zVoid_NullName[] =
8079      "void_null";
8080
8081 /*
8082  *  File name selection pattern
8083  */
8084 tSCC zVoid_NullList[] =
8085   "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";
8086 /*
8087  *  Machine/OS name selection pattern
8088  */
8089 #define apzVoid_NullMachs (const char**)NULL
8090
8091 /*
8092  *  content selection pattern - do fix if pattern found
8093  */
8094 tSCC zVoid_NullSelect0[] =
8095        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8096
8097 /*
8098  *  content bypass pattern - skip fix if pattern found
8099  */
8100 tSCC zVoid_NullBypass0[] =
8101        "__cplusplus";
8102
8103 #define    VOID_NULL_TEST_CT  2
8104 static tTestDesc aVoid_NullTests[] = {
8105   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8106   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8107
8108 /*
8109  *  Fix Command Arguments for Void_Null
8110  */
8111 static const char* apzVoid_NullPatch[] = {
8112     "format",
8113     "#define NULL 0",
8114     (char*)NULL };
8115
8116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8117  *
8118  *  Description of Vxworks_Gcc_Problem fix
8119  */
8120 tSCC zVxworks_Gcc_ProblemName[] =
8121      "vxworks_gcc_problem";
8122
8123 /*
8124  *  File name selection pattern
8125  */
8126 tSCC zVxworks_Gcc_ProblemList[] =
8127   "types/vxTypesBase.h\0";
8128 /*
8129  *  Machine/OS name selection pattern
8130  */
8131 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8132
8133 /*
8134  *  content selection pattern - do fix if pattern found
8135  */
8136 tSCC zVxworks_Gcc_ProblemSelect0[] =
8137        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8138
8139 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8140 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8141   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8142
8143 /*
8144  *  Fix Command Arguments for Vxworks_Gcc_Problem
8145  */
8146 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8147     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8148     "-e", "/[ \t]size_t/i\\\n\
8149 #ifndef _GCC_SIZE_T\\\n\
8150 #define _GCC_SIZE_T\n",
8151     "-e", "/[ \t]size_t/a\\\n\
8152 #endif\n",
8153     "-e", "/[ \t]ptrdiff_t/i\\\n\
8154 #ifndef _GCC_PTRDIFF_T\\\n\
8155 #define _GCC_PTRDIFF_T\n",
8156     "-e", "/[ \t]ptrdiff_t/a\\\n\
8157 #endif\n",
8158     "-e", "/[ \t]wchar_t/i\\\n\
8159 #ifndef _GCC_WCHAR_T\\\n\
8160 #define _GCC_WCHAR_T\n",
8161     "-e", "/[ \t]wchar_t/a\\\n\
8162 #endif\n",
8163     (char*)NULL };
8164
8165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8166  *
8167  *  Description of Vxworks_Needs_Vxtypes fix
8168  */
8169 tSCC zVxworks_Needs_VxtypesName[] =
8170      "vxworks_needs_vxtypes";
8171
8172 /*
8173  *  File name selection pattern
8174  */
8175 tSCC zVxworks_Needs_VxtypesList[] =
8176   "time.h\0";
8177 /*
8178  *  Machine/OS name selection pattern
8179  */
8180 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8181
8182 /*
8183  *  content selection pattern - do fix if pattern found
8184  */
8185 tSCC zVxworks_Needs_VxtypesSelect0[] =
8186        "uint_t([ \t]+_clocks_per_sec)";
8187
8188 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8189 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8190   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8191
8192 /*
8193  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8194  */
8195 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8196     "format",
8197     "unsigned int%1",
8198     (char*)NULL };
8199
8200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8201  *
8202  *  Description of Vxworks_Needs_Vxworks fix
8203  */
8204 tSCC zVxworks_Needs_VxworksName[] =
8205      "vxworks_needs_vxworks";
8206
8207 /*
8208  *  File name selection pattern
8209  */
8210 tSCC zVxworks_Needs_VxworksList[] =
8211   "sys/stat.h\0";
8212 /*
8213  *  Machine/OS name selection pattern
8214  */
8215 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8216
8217 /*
8218  *  content selection pattern - do fix if pattern found
8219  */
8220 tSCC zVxworks_Needs_VxworksSelect0[] =
8221        "#[ \t]define[ \t]+__INCstath";
8222
8223 /*
8224  *  perform the 'test' shell command - do fix on success
8225  */
8226 tSCC zVxworks_Needs_VxworksTest0[] =
8227        " -r types/vxTypesOld.h";
8228 tSCC zVxworks_Needs_VxworksTest1[] =
8229        " -n \"`egrep '#include' $file`\"";
8230 tSCC zVxworks_Needs_VxworksTest2[] =
8231        " -n \"`egrep ULONG $file`\"";
8232
8233 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8234 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8235   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8236   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8237   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8238   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8239
8240 /*
8241  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8242  */
8243 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8244     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8245 #include <types/vxTypesOld.h>\n",
8246     (char*)NULL };
8247
8248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8249  *
8250  *  Description of Vxworks_Time fix
8251  */
8252 tSCC zVxworks_TimeName[] =
8253      "vxworks_time";
8254
8255 /*
8256  *  File name selection pattern
8257  */
8258 tSCC zVxworks_TimeList[] =
8259   "time.h\0";
8260 /*
8261  *  Machine/OS name selection pattern
8262  */
8263 #define apzVxworks_TimeMachs (const char**)NULL
8264
8265 /*
8266  *  content selection pattern - do fix if pattern found
8267  */
8268 tSCC zVxworks_TimeSelect0[] =
8269        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8270
8271 /*
8272  *  perform the 'test' shell command - do fix on success
8273  */
8274 tSCC zVxworks_TimeTest0[] =
8275        " -r vxWorks.h";
8276
8277 #define    VXWORKS_TIME_TEST_CT  2
8278 static tTestDesc aVxworks_TimeTests[] = {
8279   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8280   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8281
8282 /*
8283  *  Fix Command Arguments for Vxworks_Time
8284  */
8285 static const char* apzVxworks_TimePatch[] = {
8286     "format",
8287     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8288 #ifdef __cplusplus\n\
8289 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8290 #else\n\
8291 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8292 #endif\n\
8293 #define __gcc_VOIDFUNCPTR_defined\n\
8294 #endif\n\
8295 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8296     (char*)NULL };
8297
8298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8299  *
8300  *  Description of Windiss_Math1 fix
8301  */
8302 tSCC zWindiss_Math1Name[] =
8303      "windiss_math1";
8304
8305 /*
8306  *  File name selection pattern
8307  */
8308 tSCC zWindiss_Math1List[] =
8309   "math.h\0";
8310 /*
8311  *  Machine/OS name selection pattern
8312  */
8313 tSCC* apzWindiss_Math1Machs[] = {
8314         "*-*-windiss",
8315         (const char*)NULL };
8316 #define WINDISS_MATH1_TEST_CT  0
8317 #define aWindiss_Math1Tests   (tTestDesc*)NULL
8318
8319 /*
8320  *  Fix Command Arguments for Windiss_Math1
8321  */
8322 static const char* apzWindiss_Math1Patch[] = { "sed",
8323     "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8324     (char*)NULL };
8325
8326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8327  *
8328  *  Description of Windiss_Math2 fix
8329  */
8330 tSCC zWindiss_Math2Name[] =
8331      "windiss_math2";
8332
8333 /*
8334  *  File name selection pattern
8335  */
8336 tSCC zWindiss_Math2List[] =
8337   "math.h\0";
8338 /*
8339  *  Machine/OS name selection pattern
8340  */
8341 tSCC* apzWindiss_Math2Machs[] = {
8342         "*-*-windiss",
8343         (const char*)NULL };
8344 #define WINDISS_MATH2_TEST_CT  0
8345 #define aWindiss_Math2Tests   (tTestDesc*)NULL
8346
8347 /*
8348  *  Fix Command Arguments for Windiss_Math2
8349  */
8350 static const char* apzWindiss_Math2Patch[] = { "sed",
8351     "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8352     (char*)NULL };
8353
8354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8355  *
8356  *  Description of Windiss_Valist fix
8357  */
8358 tSCC zWindiss_ValistName[] =
8359      "windiss_valist";
8360
8361 /*
8362  *  File name selection pattern
8363  */
8364 #define zWindiss_ValistList (char*)NULL
8365 /*
8366  *  Machine/OS name selection pattern
8367  */
8368 tSCC* apzWindiss_ValistMachs[] = {
8369         "*-*-windiss",
8370         (const char*)NULL };
8371
8372 /*
8373  *  content selection pattern - do fix if pattern found
8374  */
8375 tSCC zWindiss_ValistSelect0[] =
8376        "(#include.*)diab/va_list.h";
8377
8378 #define    WINDISS_VALIST_TEST_CT  1
8379 static tTestDesc aWindiss_ValistTests[] = {
8380   { TT_EGREP,    zWindiss_ValistSelect0, (regex_t*)NULL }, };
8381
8382 /*
8383  *  Fix Command Arguments for Windiss_Valist
8384  */
8385 static const char* apzWindiss_ValistPatch[] = { "sed",
8386     "-e", "s|diab/va_list.h|stdarg.h|",
8387     (char*)NULL };
8388
8389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8390  *
8391  *  Description of X11_Class fix
8392  */
8393 tSCC zX11_ClassName[] =
8394      "x11_class";
8395
8396 /*
8397  *  File name selection pattern
8398  */
8399 tSCC zX11_ClassList[] =
8400   "X11/ShellP.h\0";
8401 /*
8402  *  Machine/OS name selection pattern
8403  */
8404 #define apzX11_ClassMachs (const char**)NULL
8405
8406 /*
8407  *  content selection pattern - do fix if pattern found
8408  */
8409 tSCC zX11_ClassSelect0[] =
8410        "^([ \t]*char \\*)class;(.*)";
8411
8412 /*
8413  *  content bypass pattern - skip fix if pattern found
8414  */
8415 tSCC zX11_ClassBypass0[] =
8416        "__cplusplus";
8417
8418 #define    X11_CLASS_TEST_CT  2
8419 static tTestDesc aX11_ClassTests[] = {
8420   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
8421   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
8422
8423 /*
8424  *  Fix Command Arguments for X11_Class
8425  */
8426 static const char* apzX11_ClassPatch[] = {
8427     "format",
8428     "#ifdef __cplusplus\n\
8429 %1c_class;%2\n\
8430 #else\n\
8431 %1class;%2\n\
8432 #endif",
8433     (char*)NULL };
8434
8435 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8436  *
8437  *  Description of X11_Class_Usage fix
8438  */
8439 tSCC zX11_Class_UsageName[] =
8440      "x11_class_usage";
8441
8442 /*
8443  *  File name selection pattern
8444  */
8445 tSCC zX11_Class_UsageList[] =
8446   "Xm/BaseClassI.h\0";
8447 /*
8448  *  Machine/OS name selection pattern
8449  */
8450 #define apzX11_Class_UsageMachs (const char**)NULL
8451
8452 /*
8453  *  content selection pattern - do fix if pattern found
8454  */
8455 tSCC zX11_Class_UsageSelect0[] =
8456        " class\\)";
8457
8458 /*
8459  *  content bypass pattern - skip fix if pattern found
8460  */
8461 tSCC zX11_Class_UsageBypass0[] =
8462        "__cplusplus";
8463
8464 #define    X11_CLASS_USAGE_TEST_CT  2
8465 static tTestDesc aX11_Class_UsageTests[] = {
8466   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
8467   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8468
8469 /*
8470  *  Fix Command Arguments for X11_Class_Usage
8471  */
8472 static const char* apzX11_Class_UsagePatch[] = {
8473     "format",
8474     " c_class)",
8475     (char*)NULL };
8476
8477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8478  *
8479  *  Description of X11_New fix
8480  */
8481 tSCC zX11_NewName[] =
8482      "x11_new";
8483
8484 /*
8485  *  File name selection pattern
8486  */
8487 tSCC zX11_NewList[] =
8488   "Xm/Traversal.h\0";
8489 /*
8490  *  Machine/OS name selection pattern
8491  */
8492 #define apzX11_NewMachs (const char**)NULL
8493
8494 /*
8495  *  content bypass pattern - skip fix if pattern found
8496  */
8497 tSCC zX11_NewBypass0[] =
8498        "__cplusplus";
8499
8500 #define    X11_NEW_TEST_CT  1
8501 static tTestDesc aX11_NewTests[] = {
8502   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
8503
8504 /*
8505  *  Fix Command Arguments for X11_New
8506  */
8507 static const char* apzX11_NewPatch[] = { "sed",
8508     "-e", "/Widget\told, new;/i\\\n\
8509 #ifdef __cplusplus\\\n\
8510 \tWidget\told, c_new;\\\n\
8511 #else\n",
8512     "-e", "/Widget\told, new;/a\\\n\
8513 #endif\n",
8514     "-e", "s/Widget new,/Widget c_new,/g",
8515     (char*)NULL };
8516
8517 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8518  *
8519  *  Description of X11_Sprintf fix
8520  */
8521 tSCC zX11_SprintfName[] =
8522      "x11_sprintf";
8523
8524 /*
8525  *  File name selection pattern
8526  */
8527 tSCC zX11_SprintfList[] =
8528   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8529 /*
8530  *  Machine/OS name selection pattern
8531  */
8532 #define apzX11_SprintfMachs (const char**)NULL
8533
8534 /*
8535  *  content selection pattern - do fix if pattern found
8536  */
8537 tSCC zX11_SprintfSelect0[] =
8538        "^extern char \\*\tsprintf\\(\\);$";
8539
8540 #define    X11_SPRINTF_TEST_CT  1
8541 static tTestDesc aX11_SprintfTests[] = {
8542   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
8543
8544 /*
8545  *  Fix Command Arguments for X11_Sprintf
8546  */
8547 static const char* apzX11_SprintfPatch[] = {
8548     "format",
8549     "#ifndef __STDC__\n\
8550 %0\n\
8551 #endif /* !defined __STDC__ */",
8552     (char*)NULL };
8553
8554
8555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8556  *
8557  *  List of all fixes
8558  */
8559 #define REGEX_COUNT          255
8560 #define MACH_LIST_SIZE_LIMIT 261
8561 #define FIX_COUNT            210
8562
8563 /*
8564  *  Enumerate the fixes
8565  */
8566 typedef enum {
8567     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8568     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8569     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8570     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8571     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8572     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8573     AAB_SUN_MEMCPY_FIXIDX,
8574     AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8575     AAB_ULTRIX_LIMITS_FIXIDX,
8576     AAB_ULTRIX_MEMORY_FIXIDX,
8577     AAB_ULTRIX_STRING_FIXIDX,
8578     AIX_PTHREAD_FIXIDX,
8579     AIX_SYSMACHINE_FIXIDX,
8580     AIX_SYSWAIT_FIXIDX,
8581     AIX_SYSWAIT_2_FIXIDX,
8582     AIX_VOLATILE_FIXIDX,
8583     ALPHA___ASSERT_FIXIDX,
8584     ALPHA___EXTERN_PREFIX_FIXIDX,
8585     ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8586     ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8587     ALPHA_ASSERT_FIXIDX,
8588     ALPHA_BAD_LVAL_FIXIDX,
8589     ALPHA_GETOPT_FIXIDX,
8590     ALPHA_PARENS_FIXIDX,
8591     ALPHA_PTHREAD_FIXIDX,
8592     ALPHA_PTHREAD_GCC_FIXIDX,
8593     ALPHA_PTHREAD_INIT_FIXIDX,
8594     ALPHA_SBRK_FIXIDX,
8595     ALPHA_WCHAR_FIXIDX,
8596     AVOID_BOOL_DEFINE_FIXIDX,
8597     AVOID_BOOL_TYPE_FIXIDX,
8598     AVOID_WCHAR_T_TYPE_FIXIDX,
8599     BAD_STRUCT_TERM_FIXIDX,
8600     BADQUOTE_FIXIDX,
8601     BROKEN_ASSERT_STDIO_FIXIDX,
8602     BROKEN_ASSERT_STDLIB_FIXIDX,
8603     BROKEN_CABS_FIXIDX,
8604     BROKEN_NAN_FIXIDX,
8605     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8606     CTRL_QUOTES_DEF_FIXIDX,
8607     CTRL_QUOTES_USE_FIXIDX,
8608     CXX_UNREADY_FIXIDX,
8609     DARWIN_GCC4_BREAKAGE_FIXIDX,
8610     DARWIN_PRIVATE_EXTERN_FIXIDX,
8611     DEC_INTERN_ASM_FIXIDX,
8612     DJGPP_WCHAR_H_FIXIDX,
8613     ECD_CURSOR_FIXIDX,
8614     EXCEPTION_STRUCTURE_FIXIDX,
8615     FREEBSD_GCC3_BREAKAGE_FIXIDX,
8616     FREEBSD_GCC4_BREAKAGE_FIXIDX,
8617     GLIBC_C99_INLINE_1_FIXIDX,
8618     GLIBC_C99_INLINE_2_FIXIDX,
8619     GLIBC_C99_INLINE_3_FIXIDX,
8620     GLIBC_C99_INLINE_4_FIXIDX,
8621     GLIBC_MUTEX_INIT_FIXIDX,
8622     GNU_TYPES_FIXIDX,
8623     HP_INLINE_FIXIDX,
8624     HP_SYSFILE_FIXIDX,
8625     HPUX10_CPP_POW_INLINE_FIXIDX,
8626     HPUX11_CPP_POW_INLINE_FIXIDX,
8627     HPPA_HPUX_FP_MACROS_FIXIDX,
8628     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8629     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8630     HPUX10_STDIO_DECLARATIONS_FIXIDX,
8631     HPUX11_ABS_FIXIDX,
8632     HPUX11_FABSF_FIXIDX,
8633     HPUX11_SIZE_T_FIXIDX,
8634     HPUX11_SNPRINTF_FIXIDX,
8635     HPUX11_UINT32_C_FIXIDX,
8636     HPUX11_VSNPRINTF_FIXIDX,
8637     HPUX8_BOGUS_INLINES_FIXIDX,
8638     HPUX_CTYPE_MACROS_FIXIDX,
8639     HPUX_HTONL_FIXIDX,
8640     HPUX_LONG_DOUBLE_FIXIDX,
8641     HPUX_SYSTIME_FIXIDX,
8642     HPUX_SPU_INFO_FIXIDX,
8643     HPUX11_EXTERN_SENDFILE_FIXIDX,
8644     HPUX11_EXTERN_SENDPATH_FIXIDX,
8645     HPUX_EXTERN_ERRNO_FIXIDX,
8646     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8647     HUGE_VAL_HEX_FIXIDX,
8648     HUGE_VALF_HEX_FIXIDX,
8649     HUGE_VALL_HEX_FIXIDX,
8650     INT_ABORT_FREE_AND_EXIT_FIXIDX,
8651     IO_QUOTES_DEF_FIXIDX,
8652     IO_QUOTES_USE_FIXIDX,
8653     IP_MISSING_SEMI_FIXIDX,
8654     IRIX___RESTRICT_FIXIDX,
8655     IRIX___GENERIC1_FIXIDX,
8656     IRIX___GENERIC2_FIXIDX,
8657     IRIX_ASM_APOSTROPHE_FIXIDX,
8658     IRIX_LIMITS_CONST_FIXIDX,
8659     IRIX_SOCKLEN_T_FIXIDX,
8660     IRIX_STDINT_C99_FIXIDX,
8661     IRIX_STDIO_VA_LIST_FIXIDX,
8662     IRIX_WCSFTIME_FIXIDX,
8663     ISC_FMOD_FIXIDX,
8664     ISC_OMITS_WITH_STDC_FIXIDX,
8665     KANDR_CONCAT_FIXIDX,
8666     LIBC1_G_VA_LIST_FIXIDX,
8667     LIBC1_IFDEFD_MEMX_FIXIDX,
8668     LINUX_IA64_UCONTEXT_FIXIDX,
8669     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8670     LYNXOS_MISSING_PUTENV_FIXIDX,
8671     MACHINE_ANSI_H_VA_LIST_FIXIDX,
8672     MACHINE_NAME_FIXIDX,
8673     MATH_EXCEPTION_FIXIDX,
8674     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8675     NESTED_AUTH_DES_FIXIDX,
8676     NESTED_MOTOROLA_FIXIDX,
8677     NESTED_SYS_LIMITS_FIXIDX,
8678     NETBSD_C99_INLINE_1_FIXIDX,
8679     NETBSD_EXTRA_SEMICOLON_FIXIDX,
8680     NEXT_MATH_PREFIX_FIXIDX,
8681     NEXT_TEMPLATE_FIXIDX,
8682     NEXT_VOLITILE_FIXIDX,
8683     NEXT_WAIT_UNION_FIXIDX,
8684     NODEENT_SYNTAX_FIXIDX,
8685     OBSTACK_LVALUE_CAST_FIXIDX,
8686     OSF_NAMESPACE_A_FIXIDX,
8687     OSF_NAMESPACE_C_FIXIDX,
8688     PTHREAD_PAGE_SIZE_FIXIDX,
8689     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8690     READ_RET_TYPE_FIXIDX,
8691     RPC_XDR_LVALUE_CAST_A_FIXIDX,
8692     RPC_XDR_LVALUE_CAST_B_FIXIDX,
8693     RS6000_DOUBLE_FIXIDX,
8694     RS6000_FCHMOD_FIXIDX,
8695     RS6000_PARAM_FIXIDX,
8696     SCO_MATH_FIXIDX,
8697     SCO_REGSET_FIXIDX,
8698     SCO_STATIC_FUNC_FIXIDX,
8699     SCO_UTIME_FIXIDX,
8700     SOLARIS_MATH_1_FIXIDX,
8701     SOLARIS_MATH_2_FIXIDX,
8702     SOLARIS_MATH_3_FIXIDX,
8703     SOLARIS_MATH_4_FIXIDX,
8704     SOLARIS_MATH_5_FIXIDX,
8705     SOLARIS_MATH_6_FIXIDX,
8706     SOLARIS_MATH_7_FIXIDX,
8707     SOLARIS_MATH_8_FIXIDX,
8708     SOLARIS_MATH_9_FIXIDX,
8709     SOLARIS_MUTEX_INIT_1_FIXIDX,
8710     SOLARIS_MUTEX_INIT_2_FIXIDX,
8711     SOLARIS_RWLOCK_INIT_1_FIXIDX,
8712     SOLARIS_ONCE_INIT_1_FIXIDX,
8713     SOLARIS_ONCE_INIT_2_FIXIDX,
8714     SOLARIS_SOCKET_FIXIDX,
8715     SOLARIS_STDIO_TAG_FIXIDX,
8716     SOLARIS_UNISTD_FIXIDX,
8717     SOLARIS_WIDEC_FIXIDX,
8718     STATSSWTCH_FIXIDX,
8719     STDIO_STDARG_H_FIXIDX,
8720     STDIO_VA_LIST_FIXIDX,
8721     STDIO_VA_LIST_CLIENTS_FIXIDX,
8722     STRICT_ANSI_NOT_FIXIDX,
8723     STRICT_ANSI_NOT_CTD_FIXIDX,
8724     STRICT_ANSI_ONLY_FIXIDX,
8725     STRUCT_FILE_FIXIDX,
8726     STRUCT_SOCKADDR_FIXIDX,
8727     SUN_AUTH_PROTO_FIXIDX,
8728     SUN_BOGUS_IFDEF_FIXIDX,
8729     SUN_CATMACRO_FIXIDX,
8730     SUN_MALLOC_FIXIDX,
8731     SUN_RUSERS_SEMI_FIXIDX,
8732     SUN_SIGNAL_FIXIDX,
8733     SUNOS_STRLEN_FIXIDX,
8734     SVR4_DISABLE_OPT_FIXIDX,
8735     SVR4_GETCWD_FIXIDX,
8736     SVR4_KRNL_FIXIDX,
8737     SVR4_PROFIL_FIXIDX,
8738     SVR4_SIGHANDLER_TYPE_FIXIDX,
8739     SVR4_UNDECLARED_GETRNGE_FIXIDX,
8740     SYSV68_STRING_FIXIDX,
8741     SYSZ_STDLIB_FOR_SUN_FIXIDX,
8742     THREAD_KEYWORD_FIXIDX,
8743     TINFO_CPLUSPLUS_FIXIDX,
8744     ULTRIX_ATEXIT_PARAM_FIXIDX,
8745     ULTRIX_ATOF_PARAM_FIXIDX,
8746     ULTRIX_CONST_FIXIDX,
8747     ULTRIX_CONST2_FIXIDX,
8748     ULTRIX_CONST3_FIXIDX,
8749     ULTRIX_FIX_FIXPROTO_FIXIDX,
8750     ULTRIX_IFDEF_FIXIDX,
8751     ULTRIX_LOCALE_FIXIDX,
8752     ULTRIX_MATH_IFDEF_FIXIDX,
8753     ULTRIX_NESTED_IOCTL_FIXIDX,
8754     ULTRIX_NESTED_SVC_FIXIDX,
8755     ULTRIX_STAT_FIXIDX,
8756     ULTRIX_STATIC_FIXIDX,
8757     ULTRIX_STDLIB_FIXIDX,
8758     ULTRIX_STRINGS_FIXIDX,
8759     ULTRIX_STRINGS2_FIXIDX,
8760     ULTRIX_SYS_TIME_FIXIDX,
8761     ULTRIX_UNISTD_FIXIDX,
8762     UNICOSMK_RESTRICT_FIXIDX,
8763     UW7_BYTEORDER_FIX_FIXIDX,
8764     VA_I960_MACRO_FIXIDX,
8765     VOID_NULL_FIXIDX,
8766     VXWORKS_GCC_PROBLEM_FIXIDX,
8767     VXWORKS_NEEDS_VXTYPES_FIXIDX,
8768     VXWORKS_NEEDS_VXWORKS_FIXIDX,
8769     VXWORKS_TIME_FIXIDX,
8770     WINDISS_MATH1_FIXIDX,
8771     WINDISS_MATH2_FIXIDX,
8772     WINDISS_VALIST_FIXIDX,
8773     X11_CLASS_FIXIDX,
8774     X11_CLASS_USAGE_FIXIDX,
8775     X11_NEW_FIXIDX,
8776     X11_SPRINTF_FIXIDX
8777 } t_fixinc_idx;
8778
8779 tFixDesc fixDescList[ FIX_COUNT ] = {
8780   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
8781      apzAab_Darwin7_9_Long_Double_FuncsMachs,
8782      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8783      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8784
8785   {  zAab_Darwin7_9_Long_Double_Funcs_2Name,    zAab_Darwin7_9_Long_Double_Funcs_2List,
8786      apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8787      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8788      aAab_Darwin7_9_Long_Double_Funcs_2Tests,   apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8789
8790   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
8791      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8792      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8793      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8794
8795   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
8796      apzAab_Fd_Zero_Gnu_Types_HMachs,
8797      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8798      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8799
8800   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
8801      apzAab_Fd_Zero_Selectbits_HMachs,
8802      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8803      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8804
8805   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
8806      apzAab_Solaris_Sys_Varargs_HMachs,
8807      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8808      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8809
8810   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
8811      apzAab_Sun_MemcpyMachs,
8812      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8813      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
8814
8815   {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
8816      apzAab_Ultrix_Ansi_CompatMachs,
8817      AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8818      aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch, 0 },
8819
8820   {  zAab_Ultrix_LimitsName,    zAab_Ultrix_LimitsList,
8821      apzAab_Ultrix_LimitsMachs,
8822      AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8823      aAab_Ultrix_LimitsTests,   apzAab_Ultrix_LimitsPatch, 0 },
8824
8825   {  zAab_Ultrix_MemoryName,    zAab_Ultrix_MemoryList,
8826      apzAab_Ultrix_MemoryMachs,
8827      AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8828      aAab_Ultrix_MemoryTests,   apzAab_Ultrix_MemoryPatch, 0 },
8829
8830   {  zAab_Ultrix_StringName,    zAab_Ultrix_StringList,
8831      apzAab_Ultrix_StringMachs,
8832      AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8833      aAab_Ultrix_StringTests,   apzAab_Ultrix_StringPatch, 0 },
8834
8835   {  zAix_PthreadName,    zAix_PthreadList,
8836      apzAix_PthreadMachs,
8837      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8838      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
8839
8840   {  zAix_SysmachineName,    zAix_SysmachineList,
8841      apzAix_SysmachineMachs,
8842      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8843      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
8844
8845   {  zAix_SyswaitName,    zAix_SyswaitList,
8846      apzAix_SyswaitMachs,
8847      AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8848      aAix_SyswaitTests,   apzAix_SyswaitPatch, 0 },
8849
8850   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
8851      apzAix_Syswait_2Machs,
8852      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8853      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
8854
8855   {  zAix_VolatileName,    zAix_VolatileList,
8856      apzAix_VolatileMachs,
8857      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8858      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
8859
8860   {  zAlpha___AssertName,    zAlpha___AssertList,
8861      apzAlpha___AssertMachs,
8862      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8863      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
8864
8865   {  zAlpha___Extern_PrefixName,    zAlpha___Extern_PrefixList,
8866      apzAlpha___Extern_PrefixMachs,
8867      ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8868      aAlpha___Extern_PrefixTests,   apzAlpha___Extern_PrefixPatch, 0 },
8869
8870   {  zAlpha___Extern_Prefix_StandardsName,    zAlpha___Extern_Prefix_StandardsList,
8871      apzAlpha___Extern_Prefix_StandardsMachs,
8872      ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8873      aAlpha___Extern_Prefix_StandardsTests,   apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8874
8875   {  zAlpha___Extern_Prefix_Sys_StatName,    zAlpha___Extern_Prefix_Sys_StatList,
8876      apzAlpha___Extern_Prefix_Sys_StatMachs,
8877      ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8878      aAlpha___Extern_Prefix_Sys_StatTests,   apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8879
8880   {  zAlpha_AssertName,    zAlpha_AssertList,
8881      apzAlpha_AssertMachs,
8882      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8883      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
8884
8885   {  zAlpha_Bad_LvalName,    zAlpha_Bad_LvalList,
8886      apzAlpha_Bad_LvalMachs,
8887      ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8888      aAlpha_Bad_LvalTests,   apzAlpha_Bad_LvalPatch, 0 },
8889
8890   {  zAlpha_GetoptName,    zAlpha_GetoptList,
8891      apzAlpha_GetoptMachs,
8892      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8893      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
8894
8895   {  zAlpha_ParensName,    zAlpha_ParensList,
8896      apzAlpha_ParensMachs,
8897      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8898      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
8899
8900   {  zAlpha_PthreadName,    zAlpha_PthreadList,
8901      apzAlpha_PthreadMachs,
8902      ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8903      aAlpha_PthreadTests,   apzAlpha_PthreadPatch, 0 },
8904
8905   {  zAlpha_Pthread_GccName,    zAlpha_Pthread_GccList,
8906      apzAlpha_Pthread_GccMachs,
8907      ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8908      aAlpha_Pthread_GccTests,   apzAlpha_Pthread_GccPatch, 0 },
8909
8910   {  zAlpha_Pthread_InitName,    zAlpha_Pthread_InitList,
8911      apzAlpha_Pthread_InitMachs,
8912      ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8913      aAlpha_Pthread_InitTests,   apzAlpha_Pthread_InitPatch, 0 },
8914
8915   {  zAlpha_SbrkName,    zAlpha_SbrkList,
8916      apzAlpha_SbrkMachs,
8917      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8918      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
8919
8920   {  zAlpha_WcharName,    zAlpha_WcharList,
8921      apzAlpha_WcharMachs,
8922      ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8923      aAlpha_WcharTests,   apzAlpha_WcharPatch, 0 },
8924
8925   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
8926      apzAvoid_Bool_DefineMachs,
8927      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8928      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
8929
8930   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
8931      apzAvoid_Bool_TypeMachs,
8932      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8933      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
8934
8935   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
8936      apzAvoid_Wchar_T_TypeMachs,
8937      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8938      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
8939
8940   {  zBad_Struct_TermName,    zBad_Struct_TermList,
8941      apzBad_Struct_TermMachs,
8942      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8943      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
8944
8945   {  zBadquoteName,    zBadquoteList,
8946      apzBadquoteMachs,
8947      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8948      aBadquoteTests,   apzBadquotePatch, 0 },
8949
8950   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
8951      apzBroken_Assert_StdioMachs,
8952      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8953      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
8954
8955   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
8956      apzBroken_Assert_StdlibMachs,
8957      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8958      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
8959
8960   {  zBroken_CabsName,    zBroken_CabsList,
8961      apzBroken_CabsMachs,
8962      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8963      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
8964
8965   {  zBroken_NanName,    zBroken_NanList,
8966      apzBroken_NanMachs,
8967      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8968      aBroken_NanTests,   apzBroken_NanPatch, 0 },
8969
8970   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
8971      apzBsd_Stdio_Attrs_ConflictMachs,
8972      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8973      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8974
8975   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
8976      apzCtrl_Quotes_DefMachs,
8977      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8978      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
8979
8980   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
8981      apzCtrl_Quotes_UseMachs,
8982      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8983      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
8984
8985   {  zCxx_UnreadyName,    zCxx_UnreadyList,
8986      apzCxx_UnreadyMachs,
8987      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8988      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
8989
8990   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
8991      apzDarwin_Gcc4_BreakageMachs,
8992      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8993      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
8994
8995   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
8996      apzDarwin_Private_ExternMachs,
8997      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8998      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
8999
9000   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9001      apzDec_Intern_AsmMachs,
9002      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9003      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9004
9005   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9006      apzDjgpp_Wchar_HMachs,
9007      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9008      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9009
9010   {  zEcd_CursorName,    zEcd_CursorList,
9011      apzEcd_CursorMachs,
9012      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9013      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9014
9015   {  zException_StructureName,    zException_StructureList,
9016      apzException_StructureMachs,
9017      EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9018      aException_StructureTests,   apzException_StructurePatch, 0 },
9019
9020   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9021      apzFreebsd_Gcc3_BreakageMachs,
9022      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9023      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9024
9025   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9026      apzFreebsd_Gcc4_BreakageMachs,
9027      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9028      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9029
9030   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9031      apzGlibc_C99_Inline_1Machs,
9032      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9033      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9034
9035   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9036      apzGlibc_C99_Inline_2Machs,
9037      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9038      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9039
9040   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9041      apzGlibc_C99_Inline_3Machs,
9042      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9043      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9044
9045   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9046      apzGlibc_C99_Inline_4Machs,
9047      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9048      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9049
9050   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9051      apzGlibc_Mutex_InitMachs,
9052      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9053      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9054
9055   {  zGnu_TypesName,    zGnu_TypesList,
9056      apzGnu_TypesMachs,
9057      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9058      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9059
9060   {  zHp_InlineName,    zHp_InlineList,
9061      apzHp_InlineMachs,
9062      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9063      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9064
9065   {  zHp_SysfileName,    zHp_SysfileList,
9066      apzHp_SysfileMachs,
9067      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9068      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
9069
9070   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
9071      apzHpux10_Cpp_Pow_InlineMachs,
9072      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9073      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
9074
9075   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
9076      apzHpux11_Cpp_Pow_InlineMachs,
9077      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9078      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
9079
9080   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
9081      apzHppa_Hpux_Fp_MacrosMachs,
9082      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9083      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
9084
9085   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
9086      apzHpux10_Ctype_Declarations1Machs,
9087      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9088      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
9089
9090   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
9091      apzHpux10_Ctype_Declarations2Machs,
9092      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9093      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
9094
9095   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
9096      apzHpux10_Stdio_DeclarationsMachs,
9097      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9098      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
9099
9100   {  zHpux11_AbsName,    zHpux11_AbsList,
9101      apzHpux11_AbsMachs,
9102      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9103      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
9104
9105   {  zHpux11_FabsfName,    zHpux11_FabsfList,
9106      apzHpux11_FabsfMachs,
9107      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9108      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
9109
9110   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9111      apzHpux11_Size_TMachs,
9112      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9113      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9114
9115   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9116      apzHpux11_SnprintfMachs,
9117      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9118      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9119
9120   {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
9121      apzHpux11_Uint32_CMachs,
9122      HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9123      aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch, 0 },
9124
9125   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9126      apzHpux11_VsnprintfMachs,
9127      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9128      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9129
9130   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9131      apzHpux8_Bogus_InlinesMachs,
9132      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9133      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9134
9135   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9136      apzHpux_Ctype_MacrosMachs,
9137      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9138      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9139
9140   {  zHpux_HtonlName,    zHpux_HtonlList,
9141      apzHpux_HtonlMachs,
9142      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9143      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9144
9145   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9146      apzHpux_Long_DoubleMachs,
9147      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9148      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9149
9150   {  zHpux_SystimeName,    zHpux_SystimeList,
9151      apzHpux_SystimeMachs,
9152      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9153      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9154
9155   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9156      apzHpux_Spu_InfoMachs,
9157      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9158      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9159
9160   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9161      apzHpux11_Extern_SendfileMachs,
9162      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9163      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9164
9165   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9166      apzHpux11_Extern_SendpathMachs,
9167      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9168      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9169
9170   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9171      apzHpux_Extern_ErrnoMachs,
9172      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9173      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9174
9175   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
9176      apzHpux_Pthread_InitializersMachs,
9177      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9178      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
9179
9180   {  zHuge_Val_HexName,    zHuge_Val_HexList,
9181      apzHuge_Val_HexMachs,
9182      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9183      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
9184
9185   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
9186      apzHuge_Valf_HexMachs,
9187      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9188      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
9189
9190   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
9191      apzHuge_Vall_HexMachs,
9192      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9193      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
9194
9195   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
9196      apzInt_Abort_Free_And_ExitMachs,
9197      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9198      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
9199
9200   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
9201      apzIo_Quotes_DefMachs,
9202      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9203      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
9204
9205   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
9206      apzIo_Quotes_UseMachs,
9207      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9208      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
9209
9210   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
9211      apzIp_Missing_SemiMachs,
9212      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9213      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
9214
9215   {  zIrix___RestrictName,    zIrix___RestrictList,
9216      apzIrix___RestrictMachs,
9217      IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9218      aIrix___RestrictTests,   apzIrix___RestrictPatch, 0 },
9219
9220   {  zIrix___Generic1Name,    zIrix___Generic1List,
9221      apzIrix___Generic1Machs,
9222      IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9223      aIrix___Generic1Tests,   apzIrix___Generic1Patch, 0 },
9224
9225   {  zIrix___Generic2Name,    zIrix___Generic2List,
9226      apzIrix___Generic2Machs,
9227      IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9228      aIrix___Generic2Tests,   apzIrix___Generic2Patch, 0 },
9229
9230   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
9231      apzIrix_Asm_ApostropheMachs,
9232      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9233      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch, 0 },
9234
9235   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
9236      apzIrix_Limits_ConstMachs,
9237      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9238      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
9239
9240   {  zIrix_Socklen_TName,    zIrix_Socklen_TList,
9241      apzIrix_Socklen_TMachs,
9242      IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9243      aIrix_Socklen_TTests,   apzIrix_Socklen_TPatch, 0 },
9244
9245   {  zIrix_Stdint_C99Name,    zIrix_Stdint_C99List,
9246      apzIrix_Stdint_C99Machs,
9247      IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9248      aIrix_Stdint_C99Tests,   apzIrix_Stdint_C99Patch, 0 },
9249
9250   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
9251      apzIrix_Stdio_Va_ListMachs,
9252      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9253      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
9254
9255   {  zIrix_WcsftimeName,    zIrix_WcsftimeList,
9256      apzIrix_WcsftimeMachs,
9257      IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9258      aIrix_WcsftimeTests,   apzIrix_WcsftimePatch, 0 },
9259
9260   {  zIsc_FmodName,    zIsc_FmodList,
9261      apzIsc_FmodMachs,
9262      ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9263      aIsc_FmodTests,   apzIsc_FmodPatch, 0 },
9264
9265   {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
9266      apzIsc_Omits_With_StdcMachs,
9267      ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9268      aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch, 0 },
9269
9270   {  zKandr_ConcatName,    zKandr_ConcatList,
9271      apzKandr_ConcatMachs,
9272      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
9274
9275   {  zLibc1_G_Va_ListName,    zLibc1_G_Va_ListList,
9276      apzLibc1_G_Va_ListMachs,
9277      LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9278      aLibc1_G_Va_ListTests,   apzLibc1_G_Va_ListPatch, 0 },
9279
9280   {  zLibc1_Ifdefd_MemxName,    zLibc1_Ifdefd_MemxList,
9281      apzLibc1_Ifdefd_MemxMachs,
9282      LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283      aLibc1_Ifdefd_MemxTests,   apzLibc1_Ifdefd_MemxPatch, 0 },
9284
9285   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
9286      apzLinux_Ia64_UcontextMachs,
9287      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9288      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
9289
9290   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
9291      apzLynxos_No_Warning_In_Sys_Time_HMachs,
9292      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9293      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9294
9295   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
9296      apzLynxos_Missing_PutenvMachs,
9297      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9298      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
9299
9300   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
9301      apzMachine_Ansi_H_Va_ListMachs,
9302      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9303      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
9304
9305   {  zMachine_NameName,    zMachine_NameList,
9306      apzMachine_NameMachs,
9307      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308      aMachine_NameTests,   apzMachine_NamePatch, 0 },
9309
9310   {  zMath_ExceptionName,    zMath_ExceptionList,
9311      apzMath_ExceptionMachs,
9312      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9313      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
9314
9315   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
9316      apzMath_Huge_Val_From_Dbl_MaxMachs,
9317      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9318      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9319
9320   {  zNested_Auth_DesName,    zNested_Auth_DesList,
9321      apzNested_Auth_DesMachs,
9322      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9323      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
9324
9325   {  zNested_MotorolaName,    zNested_MotorolaList,
9326      apzNested_MotorolaMachs,
9327      NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9328      aNested_MotorolaTests,   apzNested_MotorolaPatch, 0 },
9329
9330   {  zNested_Sys_LimitsName,    zNested_Sys_LimitsList,
9331      apzNested_Sys_LimitsMachs,
9332      NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9333      aNested_Sys_LimitsTests,   apzNested_Sys_LimitsPatch, 0 },
9334
9335   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
9336      apzNetbsd_C99_Inline_1Machs,
9337      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
9339
9340   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
9341      apzNetbsd_Extra_SemicolonMachs,
9342      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
9344
9345   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
9346      apzNext_Math_PrefixMachs,
9347      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
9349
9350   {  zNext_TemplateName,    zNext_TemplateList,
9351      apzNext_TemplateMachs,
9352      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
9354
9355   {  zNext_VolitileName,    zNext_VolitileList,
9356      apzNext_VolitileMachs,
9357      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
9359
9360   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
9361      apzNext_Wait_UnionMachs,
9362      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
9364
9365   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
9366      apzNodeent_SyntaxMachs,
9367      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
9369
9370   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
9371      apzObstack_Lvalue_CastMachs,
9372      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
9374
9375   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
9376      apzOsf_Namespace_AMachs,
9377      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
9379
9380   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
9381      apzOsf_Namespace_CMachs,
9382      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
9384
9385   {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
9386      apzPthread_Page_SizeMachs,
9387      PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388      aPthread_Page_SizeTests,   apzPthread_Page_SizePatch, 0 },
9389
9390   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
9391      apzPthread_Incomplete_Struct_ArgumentMachs,
9392      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9394
9395   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
9396      apzRead_Ret_TypeMachs,
9397      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
9399
9400   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
9401      apzRpc_Xdr_Lvalue_Cast_AMachs,
9402      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9404
9405   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
9406      apzRpc_Xdr_Lvalue_Cast_BMachs,
9407      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9409
9410   {  zRs6000_DoubleName,    zRs6000_DoubleList,
9411      apzRs6000_DoubleMachs,
9412      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
9414
9415   {  zRs6000_FchmodName,    zRs6000_FchmodList,
9416      apzRs6000_FchmodMachs,
9417      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
9419
9420   {  zRs6000_ParamName,    zRs6000_ParamList,
9421      apzRs6000_ParamMachs,
9422      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
9424
9425   {  zSco_MathName,    zSco_MathList,
9426      apzSco_MathMachs,
9427      SCO_MATH_TEST_CT, FD_MACH_ONLY,
9428      aSco_MathTests,   apzSco_MathPatch, 0 },
9429
9430   {  zSco_RegsetName,    zSco_RegsetList,
9431      apzSco_RegsetMachs,
9432      SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433      aSco_RegsetTests,   apzSco_RegsetPatch, 0 },
9434
9435   {  zSco_Static_FuncName,    zSco_Static_FuncList,
9436      apzSco_Static_FuncMachs,
9437      SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9438      aSco_Static_FuncTests,   apzSco_Static_FuncPatch, 0 },
9439
9440   {  zSco_UtimeName,    zSco_UtimeList,
9441      apzSco_UtimeMachs,
9442      SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443      aSco_UtimeTests,   apzSco_UtimePatch, 0 },
9444
9445   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
9446      apzSolaris_Math_1Machs,
9447      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
9449
9450   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
9451      apzSolaris_Math_2Machs,
9452      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9453      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
9454
9455   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
9456      apzSolaris_Math_3Machs,
9457      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
9459
9460   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
9461      apzSolaris_Math_4Machs,
9462      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
9464
9465   {  zSolaris_Math_5Name,    zSolaris_Math_5List,
9466      apzSolaris_Math_5Machs,
9467      SOLARIS_MATH_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468      aSolaris_Math_5Tests,   apzSolaris_Math_5Patch, 0 },
9469
9470   {  zSolaris_Math_6Name,    zSolaris_Math_6List,
9471      apzSolaris_Math_6Machs,
9472      SOLARIS_MATH_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473      aSolaris_Math_6Tests,   apzSolaris_Math_6Patch, 0 },
9474
9475   {  zSolaris_Math_7Name,    zSolaris_Math_7List,
9476      apzSolaris_Math_7Machs,
9477      SOLARIS_MATH_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9478      aSolaris_Math_7Tests,   apzSolaris_Math_7Patch, 0 },
9479
9480   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
9481      apzSolaris_Math_8Machs,
9482      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
9484
9485   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
9486      apzSolaris_Math_9Machs,
9487      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
9489
9490   {  zSolaris_Mutex_Init_1Name,    zSolaris_Mutex_Init_1List,
9491      apzSolaris_Mutex_Init_1Machs,
9492      SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9493      aSolaris_Mutex_Init_1Tests,   apzSolaris_Mutex_Init_1Patch, 0 },
9494
9495   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
9496      apzSolaris_Mutex_Init_2Machs,
9497      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
9499
9500   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
9501      apzSolaris_Rwlock_Init_1Machs,
9502      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
9504
9505   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
9506      apzSolaris_Once_Init_1Machs,
9507      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
9509
9510   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
9511      apzSolaris_Once_Init_2Machs,
9512      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
9514
9515   {  zSolaris_SocketName,    zSolaris_SocketList,
9516      apzSolaris_SocketMachs,
9517      SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518      aSolaris_SocketTests,   apzSolaris_SocketPatch, 0 },
9519
9520   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
9521      apzSolaris_Stdio_TagMachs,
9522      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9523      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
9524
9525   {  zSolaris_UnistdName,    zSolaris_UnistdList,
9526      apzSolaris_UnistdMachs,
9527      SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528      aSolaris_UnistdTests,   apzSolaris_UnistdPatch, 0 },
9529
9530   {  zSolaris_WidecName,    zSolaris_WidecList,
9531      apzSolaris_WidecMachs,
9532      SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533      aSolaris_WidecTests,   apzSolaris_WidecPatch, 0 },
9534
9535   {  zStatsswtchName,    zStatsswtchList,
9536      apzStatsswtchMachs,
9537      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538      aStatsswtchTests,   apzStatsswtchPatch, 0 },
9539
9540   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
9541      apzStdio_Stdarg_HMachs,
9542      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9543      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
9544
9545   {  zStdio_Va_ListName,    zStdio_Va_ListList,
9546      apzStdio_Va_ListMachs,
9547      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9548      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
9549
9550   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
9551      apzStdio_Va_List_ClientsMachs,
9552      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9553      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
9554
9555   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
9556      apzStrict_Ansi_NotMachs,
9557      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9558      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
9559
9560   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
9561      apzStrict_Ansi_Not_CtdMachs,
9562      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
9564
9565   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
9566      apzStrict_Ansi_OnlyMachs,
9567      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
9569
9570   {  zStruct_FileName,    zStruct_FileList,
9571      apzStruct_FileMachs,
9572      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573      aStruct_FileTests,   apzStruct_FilePatch, 0 },
9574
9575   {  zStruct_SockaddrName,    zStruct_SockaddrList,
9576      apzStruct_SockaddrMachs,
9577      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
9579
9580   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
9581      apzSun_Auth_ProtoMachs,
9582      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
9584
9585   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
9586      apzSun_Bogus_IfdefMachs,
9587      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
9589
9590   {  zSun_CatmacroName,    zSun_CatmacroList,
9591      apzSun_CatmacroMachs,
9592      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
9594
9595   {  zSun_MallocName,    zSun_MallocList,
9596      apzSun_MallocMachs,
9597      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9598      aSun_MallocTests,   apzSun_MallocPatch, 0 },
9599
9600   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
9601      apzSun_Rusers_SemiMachs,
9602      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9603      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
9604
9605   {  zSun_SignalName,    zSun_SignalList,
9606      apzSun_SignalMachs,
9607      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608      aSun_SignalTests,   apzSun_SignalPatch, 0 },
9609
9610   {  zSunos_StrlenName,    zSunos_StrlenList,
9611      apzSunos_StrlenMachs,
9612      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
9614
9615   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
9616      apzSvr4_Disable_OptMachs,
9617      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9618      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
9619
9620   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
9621      apzSvr4_GetcwdMachs,
9622      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
9624
9625   {  zSvr4_KrnlName,    zSvr4_KrnlList,
9626      apzSvr4_KrnlMachs,
9627      SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628      aSvr4_KrnlTests,   apzSvr4_KrnlPatch, 0 },
9629
9630   {  zSvr4_ProfilName,    zSvr4_ProfilList,
9631      apzSvr4_ProfilMachs,
9632      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
9634
9635   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
9636      apzSvr4_Sighandler_TypeMachs,
9637      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
9639
9640   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
9641      apzSvr4_Undeclared_GetrngeMachs,
9642      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
9644
9645   {  zSysv68_StringName,    zSysv68_StringList,
9646      apzSysv68_StringMachs,
9647      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9648      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
9649
9650   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
9651      apzSysz_Stdlib_For_SunMachs,
9652      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
9654
9655   {  zThread_KeywordName,    zThread_KeywordList,
9656      apzThread_KeywordMachs,
9657      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
9659
9660   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
9661      apzTinfo_CplusplusMachs,
9662      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
9664
9665   {  zUltrix_Atexit_ParamName,    zUltrix_Atexit_ParamList,
9666      apzUltrix_Atexit_ParamMachs,
9667      ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668      aUltrix_Atexit_ParamTests,   apzUltrix_Atexit_ParamPatch, 0 },
9669
9670   {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
9671      apzUltrix_Atof_ParamMachs,
9672      ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673      aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch, 0 },
9674
9675   {  zUltrix_ConstName,    zUltrix_ConstList,
9676      apzUltrix_ConstMachs,
9677      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
9679
9680   {  zUltrix_Const2Name,    zUltrix_Const2List,
9681      apzUltrix_Const2Machs,
9682      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
9684
9685   {  zUltrix_Const3Name,    zUltrix_Const3List,
9686      apzUltrix_Const3Machs,
9687      ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688      aUltrix_Const3Tests,   apzUltrix_Const3Patch, 0 },
9689
9690   {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
9691      apzUltrix_Fix_FixprotoMachs,
9692      ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693      aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch, 0 },
9694
9695   {  zUltrix_IfdefName,    zUltrix_IfdefList,
9696      apzUltrix_IfdefMachs,
9697      ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698      aUltrix_IfdefTests,   apzUltrix_IfdefPatch, 0 },
9699
9700   {  zUltrix_LocaleName,    zUltrix_LocaleList,
9701      apzUltrix_LocaleMachs,
9702      ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703      aUltrix_LocaleTests,   apzUltrix_LocalePatch, 0 },
9704
9705   {  zUltrix_Math_IfdefName,    zUltrix_Math_IfdefList,
9706      apzUltrix_Math_IfdefMachs,
9707      ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708      aUltrix_Math_IfdefTests,   apzUltrix_Math_IfdefPatch, 0 },
9709
9710   {  zUltrix_Nested_IoctlName,    zUltrix_Nested_IoctlList,
9711      apzUltrix_Nested_IoctlMachs,
9712      ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9713      aUltrix_Nested_IoctlTests,   apzUltrix_Nested_IoctlPatch, 0 },
9714
9715   {  zUltrix_Nested_SvcName,    zUltrix_Nested_SvcList,
9716      apzUltrix_Nested_SvcMachs,
9717      ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9718      aUltrix_Nested_SvcTests,   apzUltrix_Nested_SvcPatch, 0 },
9719
9720   {  zUltrix_StatName,    zUltrix_StatList,
9721      apzUltrix_StatMachs,
9722      ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9723      aUltrix_StatTests,   apzUltrix_StatPatch, 0 },
9724
9725   {  zUltrix_StaticName,    zUltrix_StaticList,
9726      apzUltrix_StaticMachs,
9727      ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9728      aUltrix_StaticTests,   apzUltrix_StaticPatch, 0 },
9729
9730   {  zUltrix_StdlibName,    zUltrix_StdlibList,
9731      apzUltrix_StdlibMachs,
9732      ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9733      aUltrix_StdlibTests,   apzUltrix_StdlibPatch, 0 },
9734
9735   {  zUltrix_StringsName,    zUltrix_StringsList,
9736      apzUltrix_StringsMachs,
9737      ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738      aUltrix_StringsTests,   apzUltrix_StringsPatch, 0 },
9739
9740   {  zUltrix_Strings2Name,    zUltrix_Strings2List,
9741      apzUltrix_Strings2Machs,
9742      ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9743      aUltrix_Strings2Tests,   apzUltrix_Strings2Patch, 0 },
9744
9745   {  zUltrix_Sys_TimeName,    zUltrix_Sys_TimeList,
9746      apzUltrix_Sys_TimeMachs,
9747      ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9748      aUltrix_Sys_TimeTests,   apzUltrix_Sys_TimePatch, 0 },
9749
9750   {  zUltrix_UnistdName,    zUltrix_UnistdList,
9751      apzUltrix_UnistdMachs,
9752      ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9753      aUltrix_UnistdTests,   apzUltrix_UnistdPatch, 0 },
9754
9755   {  zUnicosmk_RestrictName,    zUnicosmk_RestrictList,
9756      apzUnicosmk_RestrictMachs,
9757      UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758      aUnicosmk_RestrictTests,   apzUnicosmk_RestrictPatch, 0 },
9759
9760   {  zUw7_Byteorder_FixName,    zUw7_Byteorder_FixList,
9761      apzUw7_Byteorder_FixMachs,
9762      UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9763      aUw7_Byteorder_FixTests,   apzUw7_Byteorder_FixPatch, 0 },
9764
9765   {  zVa_I960_MacroName,    zVa_I960_MacroList,
9766      apzVa_I960_MacroMachs,
9767      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
9769
9770   {  zVoid_NullName,    zVoid_NullList,
9771      apzVoid_NullMachs,
9772      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773      aVoid_NullTests,   apzVoid_NullPatch, 0 },
9774
9775   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
9776      apzVxworks_Gcc_ProblemMachs,
9777      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9778      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
9779
9780   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
9781      apzVxworks_Needs_VxtypesMachs,
9782      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
9784
9785   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
9786      apzVxworks_Needs_VxworksMachs,
9787      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9788      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
9789
9790   {  zVxworks_TimeName,    zVxworks_TimeList,
9791      apzVxworks_TimeMachs,
9792      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
9794
9795   {  zWindiss_Math1Name,    zWindiss_Math1List,
9796      apzWindiss_Math1Machs,
9797      WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9798      aWindiss_Math1Tests,   apzWindiss_Math1Patch, 0 },
9799
9800   {  zWindiss_Math2Name,    zWindiss_Math2List,
9801      apzWindiss_Math2Machs,
9802      WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9803      aWindiss_Math2Tests,   apzWindiss_Math2Patch, 0 },
9804
9805   {  zWindiss_ValistName,    zWindiss_ValistList,
9806      apzWindiss_ValistMachs,
9807      WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9808      aWindiss_ValistTests,   apzWindiss_ValistPatch, 0 },
9809
9810   {  zX11_ClassName,    zX11_ClassList,
9811      apzX11_ClassMachs,
9812      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813      aX11_ClassTests,   apzX11_ClassPatch, 0 },
9814
9815   {  zX11_Class_UsageName,    zX11_Class_UsageList,
9816      apzX11_Class_UsageMachs,
9817      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
9819
9820   {  zX11_NewName,    zX11_NewList,
9821      apzX11_NewMachs,
9822      X11_NEW_TEST_CT, FD_MACH_ONLY,
9823      aX11_NewTests,   apzX11_NewPatch, 0 },
9824
9825   {  zX11_SprintfName,    zX11_SprintfList,
9826      apzX11_SprintfMachs,
9827      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }
9829 };