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