OSDN Git Service

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