* var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
[official-gcc.git] / fixincludes / fixincl.x
blobd9c194f217b3a60c935fe5fa74a548d013a9ec4e
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  Wednesday September  2, 2009 at 04:57:56 PM MEST
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Wed Sep  2 16:57:56 MEST 2009
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 206 fixup descriptions.
19  *
20  * See README for more information.
21  *
22  *  inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
23  *                         2006, 2007, 2008
24  *  The Free Software Foundation, Inc.
25  *
26  *  inclhack is free software: you can redistribute it and/or modify it
27  *  under the terms of the GNU General Public License as published by the
28  *  Free Software Foundation, either version 3 of the License, or
29  *  (at your option) any later version.
30  *  
31  *  inclhack is distributed in the hope that it will be useful, but
32  *  WITHOUT ANY WARRANTY; without even the implied warranty of
33  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34  *  See the GNU General Public License for more details.
35  *  
36  *  You should have received a copy of the GNU General Public License along
37  *  with this program.  If not, see <http://www.gnu.org/licenses/>.
38  */
39 #ifndef SED_PROGRAM
40 #define SED_PROGRAM "/usr/bin/sed"
41 #endif
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45  *
46  *  Description of Aab_Aix_Stdio fix
47  */
48 tSCC zAab_Aix_StdioName[] =
49      "AAB_aix_stdio";
52  *  File name selection pattern
53  */
54 tSCC zAab_Aix_StdioList[] =
55   "stdio.h\0";
57  *  Machine/OS name selection pattern
58  */
59 tSCC* apzAab_Aix_StdioMachs[] = {
60         "*-*-aix*",
61         (const char*)NULL };
64  *  content selection pattern - do fix if pattern found
65  */
66 tSCC zAab_Aix_StdioSelect0[] =
67        "define fopen fopen64";
69 #define    AAB_AIX_STDIO_TEST_CT  1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71   { TT_EGREP,    zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74  *  Fix Command Arguments for Aab_Aix_Stdio
75  */
76 static const char* apzAab_Aix_StdioPatch[] = {
77     "wrap",
78     "",
79     "\n\
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
83 #undef fseeko\n\
84 #undef ftello\n\
85 #undef fgetpos\n\
86 #undef fsetpos\n\
87 #undef fopen\n\
88 #undef freopen\n\
89 /* Alias the symbols using asm */\n\
90 extern \"C\" {\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
97 }\n\
98 #endif\n\
99 #endif\n",
100     (char*)NULL };
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104  *  Description of Aab_Darwin7_9_Long_Double_Funcs fix
105  */
106 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107      "AAB_darwin7_9_long_double_funcs";
110  *  File name selection pattern
111  */
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113   "architecture/ppc/math.h\0";
115  *  Machine/OS name selection pattern
116  */
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
118         "*-*-darwin7.9*",
119         (const char*)NULL };
122  *  content bypass pattern - skip fix if pattern found
123  */
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
125        "powl";
127 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT  1
128 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129   { TT_NEGREP,   zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
132  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
133  */
134 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135 "/* This file prototypes the long double functions available on Mac OS\n\
136    10.3.9.  */\n\
137 #ifndef __MATH__\n\
138 # undef __APPLE_CC__\n\
139 # define __APPLE_CC__  1345\n\
140 # include_next <architecture/ppc/math.h>\n\
141 # undef __APPLE_CC__\n\
142 # define __APPLE_CC__ 1\n\
143 # ifndef __LIBMLDBL_COMPAT\n\
144 #  ifdef __LONG_DOUBLE_128__\n\
145 #   define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
146 #  else\n\
147 #   define __LIBMLDBL_COMPAT(sym)\n\
148 #  endif /* __LONG_DOUBLE_128__ */\n\
149 # endif /* __LIBMLDBL_COMPAT */\n\
150 # ifdef __cplusplus\n\
151    extern \"C\" {\n\
152 # endif\n\
153   extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
154   extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
155   extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
156   extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
157   extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
158   extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
159   extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
160   extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
161   extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
162   extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
163   extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
164   extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
165   extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
166   extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
167   extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
168   extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
169   extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
170   extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
171   extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
172   extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
173   extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
174   extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
175   extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
176   extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
177   extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
178   extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
179   extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
180   extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
181   extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
182   extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
183   extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
184   extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
185   extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
186   extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
187   extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
188   extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
189   extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
190   extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
191   extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
192   extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
193   extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
194   extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
195   extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
196   extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
197   extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
198   extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
199   extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
200   extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
201   extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
202   extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
203   extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
204   extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
205   extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
206   extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
207   extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
208   extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
209   extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
210 # ifdef __cplusplus\n\
211    }\n\
212 # endif\n\
213 #endif /* __MATH__ */",
214     (char*)NULL };
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
218  *  Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
219  */
220 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221      "AAB_darwin7_9_long_double_funcs_2";
224  *  File name selection pattern
225  */
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
227   "math.h\0";
229  *  Machine/OS name selection pattern
230  */
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
232         "*-*-darwin7.9*",
233         (const char*)NULL };
236  *  content selection pattern - do fix if pattern found
237  */
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239        "#include[ \\t]+\\\"";
241 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
242 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243   { TT_EGREP,    zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
246  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
247  */
248 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
249     "format",
250     "%1<%2.h>",
251     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
252     (char*)NULL };
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
256  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
257  */
258 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
259      "AAB_fd_zero_asm_posix_types_h";
262  *  File name selection pattern
263  */
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265   "asm/posix_types.h\0";
267  *  Machine/OS name selection pattern
268  */
269 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
270         "i[34567]86-*-linux*",
271         (const char*)NULL };
274  *  content bypass pattern - skip fix if pattern found
275  */
276 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
277        "} while";
278 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
279        "x86_64";
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
281        "posix_types_64";
283 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  3
284 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
285   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
286   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
287   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
290  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
291  */
292 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
293 "/* This file fixes a bug in the __FD_ZERO macro\n\
294    for older versions of the Linux kernel. */\n\
295 #ifndef _POSIX_TYPES_H_WRAPPER\n\
296 #include <features.h>\n\
297  #include_next <asm/posix_types.h>\n\n\
298 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
299 #undef __FD_ZERO\n\
300 #define __FD_ZERO(fdsetp) \\\n\
301   do { \\\n\
302     int __d0, __d1; \\\n\
303 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
304 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
305 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
306   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
307   } while (0)\n\
308 #endif\n\n\
309 #define _POSIX_TYPES_H_WRAPPER\n\
310 #endif /* _POSIX_TYPES_H_WRAPPER */",
311     (char*)NULL };
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
315  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
316  */
317 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
318      "AAB_fd_zero_gnu_types_h";
321  *  File name selection pattern
322  */
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
324   "gnu/types.h\0";
326  *  Machine/OS name selection pattern
327  */
328 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
329         "i[34567]86-*-linux*",
330         (const char*)NULL };
331 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
332 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
335  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
336  */
337 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
338 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
339 #ifndef _TYPES_H_WRAPPER\n\
340 #include <features.h>\n\
341 #include_next <gnu/types.h>\n\n\
342 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
343 #undef __FD_ZERO\n\
344 # define __FD_ZERO(fdsetp) \\\n\
345   do { \\\n\
346     int __d0, __d1; \\\n\
347         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
348         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
349         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
350           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
351   } while (0)\n\
352 #endif\n\n\
353 #define _TYPES_H_WRAPPER\n\
354 #endif /* _TYPES_H_WRAPPER */",
355     (char*)NULL };
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
359  *  Description of Aab_Fd_Zero_Selectbits_H fix
360  */
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362      "AAB_fd_zero_selectbits_h";
365  *  File name selection pattern
366  */
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
368   "selectbits.h\0";
370  *  Machine/OS name selection pattern
371  */
372 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
373         "i[34567]86-*-linux*",
374         (const char*)NULL };
375 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
376 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
379  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
380  */
381 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
382 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
383 #ifndef _SELECTBITS_H_WRAPPER\n\
384   #include <features.h>\n\
385   #include_next <selectbits.h>\n\n\
386   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
387   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
388   && __GLIBC_MINOR__ == 0\n\
389      #undef __FD_ZERO\n\
390      #define __FD_ZERO(fdsetp) \\\\\n\
391      do { \\\\\n\
392         int __d0, __d1; \\\\\n\
393       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
394                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
395                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
396                                         / sizeof (__fd_mask)), \\\\\n\
397                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
398                         : \"memory\"); \\\\\n\
399       } while (0)\n\
400   #endif\n\n\
401   #define _SELECTBITS_H_WRAPPER\n\
402 #endif /* _SELECTBITS_H_WRAPPER */",
403     (char*)NULL };
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
407  *  Description of Aab_Solaris_Sys_Varargs_H fix
408  */
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410      "AAB_solaris_sys_varargs_h";
413  *  File name selection pattern
414  */
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
416   "sys/varargs.h\0";
418  *  Machine/OS name selection pattern
419  */
420 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
421         "*-*-solaris*",
422         (const char*)NULL };
423 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
424 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
427  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
428  */
429 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
430 "#ifdef __STDC__\n\
431   #include <stdarg.h>\n\
432 #else\n\
433   #include <varargs.h>\n\
434 #endif",
435     (char*)NULL };
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439  *  Description of Aab_Sun_Memcpy fix
440  */
441 tSCC zAab_Sun_MemcpyName[] =
442      "AAB_sun_memcpy";
445  *  File name selection pattern
446  */
447 tSCC zAab_Sun_MemcpyList[] =
448   "memory.h\0";
450  *  Machine/OS name selection pattern
451  */
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
455  *  content selection pattern - do fix if pattern found
456  */
457 tSCC zAab_Sun_MemcpySelect0[] =
458        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
460 #define    AAB_SUN_MEMCPY_TEST_CT  1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
465  *  Fix Command Arguments for Aab_Sun_Memcpy
466  */
467 static const char* apzAab_Sun_MemcpyPatch[] = {
468 "/* This file was generated by fixincludes */\n\
469 #ifndef __memory_h__\n\
470   #define __memory_h__\n\n\
471   #ifdef __STDC__\n\
472     extern void *memccpy();\n\
473     extern void *memchr();\n\
474     extern void *memcpy();\n\
475     extern void *memset();\n\
476   #else\n\
477     extern char *memccpy();\n\
478     extern char *memchr();\n\
479     extern char *memcpy();\n\
480     extern char *memset();\n\
481   #endif /* __STDC__ */\n\n\
482   extern int memcmp();\n\n\
483 #endif /* __memory_h__ */",
484     (char*)NULL };
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
488  *  Description of Aix_Complex fix
489  */
490 tSCC zAix_ComplexName[] =
491      "aix_complex";
494  *  File name selection pattern
495  */
496 tSCC zAix_ComplexList[] =
497   "complex.h\0";
499  *  Machine/OS name selection pattern
500  */
501 tSCC* apzAix_ComplexMachs[] = {
502         "*-*-aix*",
503         (const char*)NULL };
506  *  content selection pattern - do fix if pattern found
507  */
508 tSCC zAix_ComplexSelect0[] =
509        "#define[ \t]_Complex_I[ \t]__I";
511 #define    AIX_COMPLEX_TEST_CT  1
512 static tTestDesc aAix_ComplexTests[] = {
513   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
516  *  Fix Command Arguments for Aix_Complex
517  */
518 static const char* apzAix_ComplexPatch[] = {
519     "format",
520     "#define _Complex_I (__extension__ 1.0iF)",
521     (char*)NULL };
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525  *  Description of Aix_Pthread fix
526  */
527 tSCC zAix_PthreadName[] =
528      "aix_pthread";
531  *  File name selection pattern
532  */
533 tSCC zAix_PthreadList[] =
534   "pthread.h\0";
536  *  Machine/OS name selection pattern
537  */
538 #define apzAix_PthreadMachs (const char**)NULL
541  *  content selection pattern - do fix if pattern found
542  */
543 tSCC zAix_PthreadSelect0[] =
544        "(#define [A-Za-z_0-9]+)(\\\\\n\
545 [^A-Za-z_0-9 \t\n\
546 (])";
548 #define    AIX_PTHREAD_TEST_CT  1
549 static tTestDesc aAix_PthreadTests[] = {
550   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
553  *  Fix Command Arguments for Aix_Pthread
554  */
555 static const char* apzAix_PthreadPatch[] = {
556     "format",
557     "%1 %2",
558     (char*)NULL };
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
562  *  Description of Aix_Stdint_1 fix
563  */
564 tSCC zAix_Stdint_1Name[] =
565      "aix_stdint_1";
568  *  File name selection pattern
569  */
570 tSCC zAix_Stdint_1List[] =
571   "stdint.h\0";
573  *  Machine/OS name selection pattern
574  */
575 tSCC* apzAix_Stdint_1Machs[] = {
576         "*-*-aix*",
577         (const char*)NULL };
580  *  content selection pattern - do fix if pattern found
581  */
582 tSCC zAix_Stdint_1Select0[] =
583        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
584 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
586 #define    AIX_STDINT_1_TEST_CT  1
587 static tTestDesc aAix_Stdint_1Tests[] = {
588   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
591  *  Fix Command Arguments for Aix_Stdint_1
592  */
593 static const char* apzAix_Stdint_1Patch[] = {
594     "format",
595     "#define UINT8_MAX\t(255)\n\
596 #define UINT16_MAX\t(65535)",
597     (char*)NULL };
599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
601  *  Description of Aix_Stdint_2 fix
602  */
603 tSCC zAix_Stdint_2Name[] =
604      "aix_stdint_2";
607  *  File name selection pattern
608  */
609 tSCC zAix_Stdint_2List[] =
610   "stdint.h\0";
612  *  Machine/OS name selection pattern
613  */
614 tSCC* apzAix_Stdint_2Machs[] = {
615         "*-*-aix*",
616         (const char*)NULL };
619  *  content selection pattern - do fix if pattern found
620  */
621 tSCC zAix_Stdint_2Select0[] =
622        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
623 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
624 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
625 #else\n\
626 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
627 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
628 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
630 #define    AIX_STDINT_2_TEST_CT  1
631 static tTestDesc aAix_Stdint_2Tests[] = {
632   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
635  *  Fix Command Arguments for Aix_Stdint_2
636  */
637 static const char* apzAix_Stdint_2Patch[] = {
638     "format",
639     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
640 #define INTPTR_MAX\t9223372036854775807L\n\
641 #define UINTPTR_MAX\t18446744073709551615UL\n\
642 #else\n\
643 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
644 #define INTPTR_MAX\t2147483647L\n\
645 #define UINTPTR_MAX\t4294967295UL",
646     (char*)NULL };
648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
650  *  Description of Aix_Stdint_3 fix
651  */
652 tSCC zAix_Stdint_3Name[] =
653      "aix_stdint_3";
656  *  File name selection pattern
657  */
658 tSCC zAix_Stdint_3List[] =
659   "stdint.h\0";
661  *  Machine/OS name selection pattern
662  */
663 tSCC* apzAix_Stdint_3Machs[] = {
664         "*-*-aix*",
665         (const char*)NULL };
668  *  content selection pattern - do fix if pattern found
669  */
670 tSCC zAix_Stdint_3Select0[] =
671        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
672 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
673 #else\n\
674 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
675 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
677 #define    AIX_STDINT_3_TEST_CT  1
678 static tTestDesc aAix_Stdint_3Tests[] = {
679   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
682  *  Fix Command Arguments for Aix_Stdint_3
683  */
684 static const char* apzAix_Stdint_3Patch[] = {
685     "format",
686     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
687 #define PTRDIFF_MAX\t9223372036854775807L\n\
688 #else\n\
689 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
690 #define PTRDIFF_MAX\t2147483647L",
691     (char*)NULL };
693 /* * * * * * * * * * * * * * * * * * * * * * * * * *
695  *  Description of Aix_Stdint_4 fix
696  */
697 tSCC zAix_Stdint_4Name[] =
698      "aix_stdint_4";
701  *  File name selection pattern
702  */
703 tSCC zAix_Stdint_4List[] =
704   "stdint.h\0";
706  *  Machine/OS name selection pattern
707  */
708 tSCC* apzAix_Stdint_4Machs[] = {
709         "*-*-aix*",
710         (const char*)NULL };
713  *  content selection pattern - do fix if pattern found
714  */
715 tSCC zAix_Stdint_4Select0[] =
716        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
717 #else\n\
718 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
720 #define    AIX_STDINT_4_TEST_CT  1
721 static tTestDesc aAix_Stdint_4Tests[] = {
722   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
725  *  Fix Command Arguments for Aix_Stdint_4
726  */
727 static const char* apzAix_Stdint_4Patch[] = {
728     "format",
729     "#define SIZE_MAX\t18446744073709551615UL\n\
730 #else\n\
731 #define SIZE_MAX\t4294967295UL",
732     (char*)NULL };
734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
736  *  Description of Aix_Stdint_5 fix
737  */
738 tSCC zAix_Stdint_5Name[] =
739      "aix_stdint_5";
742  *  File name selection pattern
743  */
744 tSCC zAix_Stdint_5List[] =
745   "stdint.h\0";
747  *  Machine/OS name selection pattern
748  */
749 tSCC* apzAix_Stdint_5Machs[] = {
750         "*-*-aix*",
751         (const char*)NULL };
754  *  content selection pattern - do fix if pattern found
755  */
756 tSCC zAix_Stdint_5Select0[] =
757        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
758 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
760 #define    AIX_STDINT_5_TEST_CT  1
761 static tTestDesc aAix_Stdint_5Tests[] = {
762   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
765  *  Fix Command Arguments for Aix_Stdint_5
766  */
767 static const char* apzAix_Stdint_5Patch[] = {
768     "format",
769     "#define UINT8_C(c)\tc\n\
770 #define UINT16_C(c)\tc",
771     (char*)NULL };
773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
775  *  Description of Aix_Sysmachine fix
776  */
777 tSCC zAix_SysmachineName[] =
778      "aix_sysmachine";
781  *  File name selection pattern
782  */
783 tSCC zAix_SysmachineList[] =
784   "sys/machine.h\0";
786  *  Machine/OS name selection pattern
787  */
788 #define apzAix_SysmachineMachs (const char**)NULL
791  *  content selection pattern - do fix if pattern found
792  */
793 tSCC zAix_SysmachineSelect0[] =
794        "\\\\ +\n";
796 #define    AIX_SYSMACHINE_TEST_CT  1
797 static tTestDesc aAix_SysmachineTests[] = {
798   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
801  *  Fix Command Arguments for Aix_Sysmachine
802  */
803 static const char* apzAix_SysmachinePatch[] = {
804     "format",
805     "\\\n",
806     (char*)NULL };
808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
810  *  Description of Aix_Syswait_2 fix
811  */
812 tSCC zAix_Syswait_2Name[] =
813      "aix_syswait_2";
816  *  File name selection pattern
817  */
818 tSCC zAix_Syswait_2List[] =
819   "sys/wait.h\0";
821  *  Machine/OS name selection pattern
822  */
823 #define apzAix_Syswait_2Machs (const char**)NULL
826  *  content selection pattern - do fix if pattern found
827  */
828 tSCC zAix_Syswait_2Select0[] =
829        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
831 #define    AIX_SYSWAIT_2_TEST_CT  1
832 static tTestDesc aAix_Syswait_2Tests[] = {
833   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
836  *  Fix Command Arguments for Aix_Syswait_2
837  */
838 static const char* apzAix_Syswait_2Patch[] = {
839     "format",
840     "? (int)%1",
841     (char*)NULL };
843 /* * * * * * * * * * * * * * * * * * * * * * * * * *
845  *  Description of Aix_Volatile fix
846  */
847 tSCC zAix_VolatileName[] =
848      "aix_volatile";
851  *  File name selection pattern
852  */
853 tSCC zAix_VolatileList[] =
854   "sys/signal.h\0";
856  *  Machine/OS name selection pattern
857  */
858 #define apzAix_VolatileMachs (const char**)NULL
861  *  content selection pattern - do fix if pattern found
862  */
863 tSCC zAix_VolatileSelect0[] =
864        "typedef volatile int sig_atomic_t";
866 #define    AIX_VOLATILE_TEST_CT  1
867 static tTestDesc aAix_VolatileTests[] = {
868   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
871  *  Fix Command Arguments for Aix_Volatile
872  */
873 static const char* apzAix_VolatilePatch[] = {
874     "format",
875     "typedef int sig_atomic_t",
876     (char*)NULL };
878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
880  *  Description of Alpha___Assert fix
881  */
882 tSCC zAlpha___AssertName[] =
883      "alpha___assert";
886  *  File name selection pattern
887  */
888 tSCC zAlpha___AssertList[] =
889   "assert.h\0";
891  *  Machine/OS name selection pattern
892  */
893 #define apzAlpha___AssertMachs (const char**)NULL
896  *  content selection pattern - do fix if pattern found
897  */
898 tSCC zAlpha___AssertSelect0[] =
899        "__assert\\(char \\*, char \\*, int\\)";
901 #define    ALPHA___ASSERT_TEST_CT  1
902 static tTestDesc aAlpha___AssertTests[] = {
903   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
906  *  Fix Command Arguments for Alpha___Assert
907  */
908 static const char* apzAlpha___AssertPatch[] = {
909     "format",
910     "__assert(const char *, const char *, int)",
911     (char*)NULL };
913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
915  *  Description of Alpha___Extern_Prefix fix
916  */
917 tSCC zAlpha___Extern_PrefixName[] =
918      "alpha___extern_prefix";
921  *  File name selection pattern
922  */
923 #define zAlpha___Extern_PrefixList (char*)NULL
925  *  Machine/OS name selection pattern
926  */
927 tSCC* apzAlpha___Extern_PrefixMachs[] = {
928         "alpha*-dec-osf*",
929         (const char*)NULL };
932  *  content selection pattern - do fix if pattern found
933  */
934 tSCC zAlpha___Extern_PrefixSelect0[] =
935        "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
936 (#[ \t]*pragma[ \t]*extern_prefix.*)";
938 #define    ALPHA___EXTERN_PREFIX_TEST_CT  1
939 static tTestDesc aAlpha___Extern_PrefixTests[] = {
940   { TT_EGREP,    zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
943  *  Fix Command Arguments for Alpha___Extern_Prefix
944  */
945 static const char* apzAlpha___Extern_PrefixPatch[] = {
946     "format",
947     "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
948 %3",
949     (char*)NULL };
951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
953  *  Description of Alpha___Extern_Prefix_Standards fix
954  */
955 tSCC zAlpha___Extern_Prefix_StandardsName[] =
956      "alpha___extern_prefix_standards";
959  *  File name selection pattern
960  */
961 tSCC zAlpha___Extern_Prefix_StandardsList[] =
962   "standards.h\0";
964  *  Machine/OS name selection pattern
965  */
966 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
967         "alpha*-dec-osf*",
968         (const char*)NULL };
971  *  content selection pattern - do fix if pattern found
972  */
973 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
974        ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
976 #define    ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT  1
977 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
978   { TT_EGREP,    zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
981  *  Fix Command Arguments for Alpha___Extern_Prefix_Standards
982  */
983 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
984     "format",
985     "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
986     (char*)NULL };
988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
990  *  Description of Alpha___Extern_Prefix_Sys_Stat fix
991  */
992 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
993      "alpha___extern_prefix_sys_stat";
996  *  File name selection pattern
997  */
998 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
999   "sys/stat.h\0sys/mount.h\0";
1001  *  Machine/OS name selection pattern
1002  */
1003 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1004         "alpha*-dec-osf5*",
1005         (const char*)NULL };
1008  *  content selection pattern - do fix if pattern found
1009  */
1010 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1011        "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1013 #define    ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT  1
1014 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1015   { TT_EGREP,    zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1018  *  Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1019  */
1020 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1021     "format",
1022     "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1023     (char*)NULL };
1025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1027  *  Description of Alpha_Assert fix
1028  */
1029 tSCC zAlpha_AssertName[] =
1030      "alpha_assert";
1033  *  File name selection pattern
1034  */
1035 tSCC zAlpha_AssertList[] =
1036   "assert.h\0";
1038  *  Machine/OS name selection pattern
1039  */
1040 #define apzAlpha_AssertMachs (const char**)NULL
1043  *  content selection pattern - do fix if pattern found
1044  */
1045 tSCC zAlpha_AssertSelect0[] =
1046        "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1048 #define    ALPHA_ASSERT_TEST_CT  1
1049 static tTestDesc aAlpha_AssertTests[] = {
1050   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1053  *  Fix Command Arguments for Alpha_Assert
1054  */
1055 static const char* apzAlpha_AssertPatch[] = {
1056     "format",
1057     "%1(EX)",
1058     (char*)NULL };
1060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1062  *  Description of Alpha_Bad_Lval fix
1063  */
1064 tSCC zAlpha_Bad_LvalName[] =
1065      "alpha_bad_lval";
1068  *  File name selection pattern
1069  */
1070 #define zAlpha_Bad_LvalList (char*)NULL
1072  *  Machine/OS name selection pattern
1073  */
1074 tSCC* apzAlpha_Bad_LvalMachs[] = {
1075         "alpha*-dec-osf*",
1076         (const char*)NULL };
1079  *  content selection pattern - do fix if pattern found
1080  */
1081 tSCC zAlpha_Bad_LvalSelect0[] =
1082        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1084 #define    ALPHA_BAD_LVAL_TEST_CT  1
1085 static tTestDesc aAlpha_Bad_LvalTests[] = {
1086   { TT_EGREP,    zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1089  *  Fix Command Arguments for Alpha_Bad_Lval
1090  */
1091 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
1092     "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1093     (char*)NULL };
1095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1097  *  Description of Alpha_Getopt fix
1098  */
1099 tSCC zAlpha_GetoptName[] =
1100      "alpha_getopt";
1103  *  File name selection pattern
1104  */
1105 tSCC zAlpha_GetoptList[] =
1106   "stdio.h\0stdlib.h\0";
1108  *  Machine/OS name selection pattern
1109  */
1110 #define apzAlpha_GetoptMachs (const char**)NULL
1113  *  content selection pattern - do fix if pattern found
1114  */
1115 tSCC zAlpha_GetoptSelect0[] =
1116        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1118 #define    ALPHA_GETOPT_TEST_CT  1
1119 static tTestDesc aAlpha_GetoptTests[] = {
1120   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1123  *  Fix Command Arguments for Alpha_Getopt
1124  */
1125 static const char* apzAlpha_GetoptPatch[] = {
1126     "format",
1127     "getopt(int, char *const[], const char *)",
1128     (char*)NULL };
1130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1132  *  Description of Alpha_If_Semicolon fix
1133  */
1134 tSCC zAlpha_If_SemicolonName[] =
1135      "alpha_if_semicolon";
1138  *  File name selection pattern
1139  */
1140 tSCC zAlpha_If_SemicolonList[] =
1141   "net/if.h\0";
1143  *  Machine/OS name selection pattern
1144  */
1145 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1148  *  content selection pattern - do fix if pattern found
1149  */
1150 tSCC zAlpha_If_SemicolonSelect0[] =
1151        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1153 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1154 static tTestDesc aAlpha_If_SemicolonTests[] = {
1155   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1158  *  Fix Command Arguments for Alpha_If_Semicolon
1159  */
1160 static const char* apzAlpha_If_SemicolonPatch[] = {
1161     "format",
1162     "struct sockaddr vmif_paddr;\t/*",
1163     (char*)NULL };
1165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1167  *  Description of Alpha_Parens fix
1168  */
1169 tSCC zAlpha_ParensName[] =
1170      "alpha_parens";
1173  *  File name selection pattern
1174  */
1175 tSCC zAlpha_ParensList[] =
1176   "sym.h\0";
1178  *  Machine/OS name selection pattern
1179  */
1180 #define apzAlpha_ParensMachs (const char**)NULL
1183  *  content selection pattern - do fix if pattern found
1184  */
1185 tSCC zAlpha_ParensSelect0[] =
1186        "#ifndef\\(__mips64\\)";
1188 #define    ALPHA_PARENS_TEST_CT  1
1189 static tTestDesc aAlpha_ParensTests[] = {
1190   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1193  *  Fix Command Arguments for Alpha_Parens
1194  */
1195 static const char* apzAlpha_ParensPatch[] = {
1196     "format",
1197     "#ifndef __mips64",
1198     (char*)NULL };
1200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1202  *  Description of Alpha_Pthread fix
1203  */
1204 tSCC zAlpha_PthreadName[] =
1205      "alpha_pthread";
1208  *  File name selection pattern
1209  */
1210 tSCC zAlpha_PthreadList[] =
1211   "pthread.h\0";
1213  *  Machine/OS name selection pattern
1214  */
1215 tSCC* apzAlpha_PthreadMachs[] = {
1216         "alpha*-dec-osf*",
1217         (const char*)NULL };
1220  *  content selection pattern - do fix if pattern found
1221  */
1222 tSCC zAlpha_PthreadSelect0[] =
1223        "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1224 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1226 #define    ALPHA_PTHREAD_TEST_CT  1
1227 static tTestDesc aAlpha_PthreadTests[] = {
1228   { TT_EGREP,    zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1231  *  Fix Command Arguments for Alpha_Pthread
1232  */
1233 static const char* apzAlpha_PthreadPatch[] = {
1234     "format",
1235     "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1236 %5",
1237     (char*)NULL };
1239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1241  *  Description of Alpha_Pthread_Gcc fix
1242  */
1243 tSCC zAlpha_Pthread_GccName[] =
1244      "alpha_pthread_gcc";
1247  *  File name selection pattern
1248  */
1249 tSCC zAlpha_Pthread_GccList[] =
1250   "pthread.h\0";
1252  *  Machine/OS name selection pattern
1253  */
1254 tSCC* apzAlpha_Pthread_GccMachs[] = {
1255         "alpha*-dec-osf*",
1256         (const char*)NULL };
1259  *  content selection pattern - do fix if pattern found
1260  */
1261 tSCC zAlpha_Pthread_GccSelect0[] =
1262        "#else\n\
1263 # error <pthread.h>: unrecognized compiler.";
1265 #define    ALPHA_PTHREAD_GCC_TEST_CT  1
1266 static tTestDesc aAlpha_Pthread_GccTests[] = {
1267   { TT_EGREP,    zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1270  *  Fix Command Arguments for Alpha_Pthread_Gcc
1271  */
1272 static const char* apzAlpha_Pthread_GccPatch[] = {
1273     "format",
1274     "#elif defined (__GNUC__)\n\
1275 # define _PTHREAD_ENV_GCC\n\
1276 %0",
1277     (char*)NULL };
1279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1281  *  Description of Alpha_Pthread_Init fix
1282  */
1283 tSCC zAlpha_Pthread_InitName[] =
1284      "alpha_pthread_init";
1287  *  File name selection pattern
1288  */
1289 tSCC zAlpha_Pthread_InitList[] =
1290   "pthread.h\0";
1292  *  Machine/OS name selection pattern
1293  */
1294 tSCC* apzAlpha_Pthread_InitMachs[] = {
1295         "alpha*-dec-osf*",
1296         (const char*)NULL };
1299  *  content selection pattern - do fix if pattern found
1300  */
1301 tSCC zAlpha_Pthread_InitSelect0[] =
1302        " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1304 #define    ALPHA_PTHREAD_INIT_TEST_CT  1
1305 static tTestDesc aAlpha_Pthread_InitTests[] = {
1306   { TT_EGREP,    zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1309  *  Fix Command Arguments for Alpha_Pthread_Init
1310  */
1311 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1312     "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1313 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1314 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1315 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1316 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1317 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1318     (char*)NULL };
1320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1322  *  Description of Alpha_Sbrk fix
1323  */
1324 tSCC zAlpha_SbrkName[] =
1325      "alpha_sbrk";
1328  *  File name selection pattern
1329  */
1330 tSCC zAlpha_SbrkList[] =
1331   "unistd.h\0";
1333  *  Machine/OS name selection pattern
1334  */
1335 #define apzAlpha_SbrkMachs (const char**)NULL
1338  *  content selection pattern - do fix if pattern found
1339  */
1340 tSCC zAlpha_SbrkSelect0[] =
1341        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1343 #define    ALPHA_SBRK_TEST_CT  1
1344 static tTestDesc aAlpha_SbrkTests[] = {
1345   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1348  *  Fix Command Arguments for Alpha_Sbrk
1349  */
1350 static const char* apzAlpha_SbrkPatch[] = {
1351     "format",
1352     "void *sbrk(",
1353     (char*)NULL };
1355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1357  *  Description of Alpha_Wchar fix
1358  */
1359 tSCC zAlpha_WcharName[] =
1360      "alpha_wchar";
1363  *  File name selection pattern
1364  */
1365 tSCC zAlpha_WcharList[] =
1366   "wchar.h\0";
1368  *  Machine/OS name selection pattern
1369  */
1370 tSCC* apzAlpha_WcharMachs[] = {
1371         "alpha*-dec-osf4*",
1372         (const char*)NULL };
1375  *  content selection pattern - do fix if pattern found
1376  */
1377 tSCC zAlpha_WcharSelect0[] =
1378        "#define wcstok wcstok_r";
1380 #define    ALPHA_WCHAR_TEST_CT  1
1381 static tTestDesc aAlpha_WcharTests[] = {
1382   { TT_EGREP,    zAlpha_WcharSelect0, (regex_t*)NULL }, };
1385  *  Fix Command Arguments for Alpha_Wchar
1386  */
1387 static const char* apzAlpha_WcharPatch[] = { sed_cmd_z,
1388     "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1389     "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t   wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1390     (char*)NULL };
1392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1394  *  Description of Avoid_Bool_Define fix
1395  */
1396 tSCC zAvoid_Bool_DefineName[] =
1397      "avoid_bool_define";
1400  *  File name selection pattern
1401  */
1402 tSCC zAvoid_Bool_DefineList[] =
1403   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1405  *  Machine/OS name selection pattern
1406  */
1407 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1410  *  content selection pattern - do fix if pattern found
1411  */
1412 tSCC zAvoid_Bool_DefineSelect0[] =
1413        "#[ \t]*define[ \t]+bool[ \t]";
1416  *  content bypass pattern - skip fix if pattern found
1417  */
1418 tSCC zAvoid_Bool_DefineBypass0[] =
1419        "__cplusplus";
1421 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1422 static tTestDesc aAvoid_Bool_DefineTests[] = {
1423   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1424   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1427  *  Fix Command Arguments for Avoid_Bool_Define
1428  */
1429 static const char* apzAvoid_Bool_DefinePatch[] = {
1430     "format",
1431     "#ifndef __cplusplus\n\
1432 %0\n\
1433 #endif",
1434     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1435     (char*)NULL };
1437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1439  *  Description of Avoid_Bool_Type fix
1440  */
1441 tSCC zAvoid_Bool_TypeName[] =
1442      "avoid_bool_type";
1445  *  File name selection pattern
1446  */
1447 tSCC zAvoid_Bool_TypeList[] =
1448   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1450  *  Machine/OS name selection pattern
1451  */
1452 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1455  *  content selection pattern - do fix if pattern found
1456  */
1457 tSCC zAvoid_Bool_TypeSelect0[] =
1458        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1461  *  content bypass pattern - skip fix if pattern found
1462  */
1463 tSCC zAvoid_Bool_TypeBypass0[] =
1464        "__cplusplus";
1466 #define    AVOID_BOOL_TYPE_TEST_CT  2
1467 static tTestDesc aAvoid_Bool_TypeTests[] = {
1468   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1469   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1472  *  Fix Command Arguments for Avoid_Bool_Type
1473  */
1474 static const char* apzAvoid_Bool_TypePatch[] = {
1475     "format",
1476     "#ifndef __cplusplus\n\
1477 %0\n\
1478 #endif",
1479     (char*)NULL };
1481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1483  *  Description of Avoid_Wchar_T_Type fix
1484  */
1485 tSCC zAvoid_Wchar_T_TypeName[] =
1486      "avoid_wchar_t_type";
1489  *  File name selection pattern
1490  */
1491 #define zAvoid_Wchar_T_TypeList (char*)NULL
1493  *  Machine/OS name selection pattern
1494  */
1495 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1498  *  content selection pattern - do fix if pattern found
1499  */
1500 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1501        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1504  *  content bypass pattern - skip fix if pattern found
1505  */
1506 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1507        "__cplusplus";
1508 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1509        "_LINUX_NLS_H";
1510 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1511        "XFree86: xc/lib/X11/Xlib\\.h";
1513 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1514 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1515   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1516   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1517   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1518   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1521  *  Fix Command Arguments for Avoid_Wchar_T_Type
1522  */
1523 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1524     "format",
1525     "#ifndef __cplusplus\n\
1526 %0\n\
1527 #endif",
1528     (char*)NULL };
1530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1532  *  Description of Bad_Struct_Term fix
1533  */
1534 tSCC zBad_Struct_TermName[] =
1535      "bad_struct_term";
1538  *  File name selection pattern
1539  */
1540 tSCC zBad_Struct_TermList[] =
1541   "curses.h\0";
1543  *  Machine/OS name selection pattern
1544  */
1545 #define apzBad_Struct_TermMachs (const char**)NULL
1548  *  content selection pattern - do fix if pattern found
1549  */
1550 tSCC zBad_Struct_TermSelect0[] =
1551        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1553 #define    BAD_STRUCT_TERM_TEST_CT  1
1554 static tTestDesc aBad_Struct_TermTests[] = {
1555   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1558  *  Fix Command Arguments for Bad_Struct_Term
1559  */
1560 static const char* apzBad_Struct_TermPatch[] = {
1561     "format",
1562     "struct term;",
1563     (char*)NULL };
1565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1567  *  Description of Badquote fix
1568  */
1569 tSCC zBadquoteName[] =
1570      "badquote";
1573  *  File name selection pattern
1574  */
1575 tSCC zBadquoteList[] =
1576   "sundev/vuid_event.h\0";
1578  *  Machine/OS name selection pattern
1579  */
1580 #define apzBadquoteMachs (const char**)NULL
1583  *  content selection pattern - do fix if pattern found
1584  */
1585 tSCC zBadquoteSelect0[] =
1586        "doesn't";
1588 #define    BADQUOTE_TEST_CT  1
1589 static tTestDesc aBadquoteTests[] = {
1590   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1593  *  Fix Command Arguments for Badquote
1594  */
1595 static const char* apzBadquotePatch[] = {
1596     "format",
1597     "does not",
1598     (char*)NULL };
1600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1602  *  Description of Broken_Assert_Stdio fix
1603  */
1604 tSCC zBroken_Assert_StdioName[] =
1605      "broken_assert_stdio";
1608  *  File name selection pattern
1609  */
1610 tSCC zBroken_Assert_StdioList[] =
1611   "assert.h\0";
1613  *  Machine/OS name selection pattern
1614  */
1615 #define apzBroken_Assert_StdioMachs (const char**)NULL
1618  *  content selection pattern - do fix if pattern found
1619  */
1620 tSCC zBroken_Assert_StdioSelect0[] =
1621        "stderr";
1624  *  content bypass pattern - skip fix if pattern found
1625  */
1626 tSCC zBroken_Assert_StdioBypass0[] =
1627        "include.*stdio\\.h";
1629 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1630 static tTestDesc aBroken_Assert_StdioTests[] = {
1631   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1632   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1635  *  Fix Command Arguments for Broken_Assert_Stdio
1636  */
1637 static const char* apzBroken_Assert_StdioPatch[] = {
1638     "wrap",
1639     "#include <stdio.h>\n",
1640     (char*)NULL };
1642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1644  *  Description of Broken_Assert_Stdlib fix
1645  */
1646 tSCC zBroken_Assert_StdlibName[] =
1647      "broken_assert_stdlib";
1650  *  File name selection pattern
1651  */
1652 tSCC zBroken_Assert_StdlibList[] =
1653   "assert.h\0";
1655  *  Machine/OS name selection pattern
1656  */
1657 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1660  *  content selection pattern - do fix if pattern found
1661  */
1662 tSCC zBroken_Assert_StdlibSelect0[] =
1663        "exit *\\(|abort *\\(";
1666  *  content bypass pattern - skip fix if pattern found
1667  */
1668 tSCC zBroken_Assert_StdlibBypass0[] =
1669        "include.*stdlib\\.h";
1671 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1672 static tTestDesc aBroken_Assert_StdlibTests[] = {
1673   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1674   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1677  *  Fix Command Arguments for Broken_Assert_Stdlib
1678  */
1679 static const char* apzBroken_Assert_StdlibPatch[] = {
1680     "wrap",
1681     "#ifdef __cplusplus\n\
1682 #include <stdlib.h>\n\
1683 #endif\n",
1684     (char*)NULL };
1686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1688  *  Description of Broken_Cabs fix
1689  */
1690 tSCC zBroken_CabsName[] =
1691      "broken_cabs";
1694  *  File name selection pattern
1695  */
1696 tSCC zBroken_CabsList[] =
1697   "math.h\0architecture/*/math.h\0";
1699  *  Machine/OS name selection pattern
1700  */
1701 #define apzBroken_CabsMachs (const char**)NULL
1704  *  content selection pattern - do fix if pattern found
1705  */
1706 tSCC zBroken_CabsSelect0[] =
1707        "^extern[ \t]+double[ \t]+cabs";
1709 #define    BROKEN_CABS_TEST_CT  1
1710 static tTestDesc aBroken_CabsTests[] = {
1711   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1714  *  Fix Command Arguments for Broken_Cabs
1715  */
1716 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1717     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1718     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1719     (char*)NULL };
1721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1723  *  Description of Broken_Nan fix
1724  */
1725 tSCC zBroken_NanName[] =
1726      "broken_nan";
1729  *  File name selection pattern
1730  */
1731 tSCC zBroken_NanList[] =
1732   "architecture/ppc/math.h\0architecture/*/math.h\0";
1734  *  Machine/OS name selection pattern
1735  */
1736 #define apzBroken_NanMachs (const char**)NULL
1739  *  content selection pattern - do fix if pattern found
1740  */
1741 tSCC zBroken_NanSelect0[] =
1742        "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1745  *  content bypass pattern - skip fix if pattern found
1746  */
1747 tSCC zBroken_NanBypass0[] =
1748        "powl";
1750 #define    BROKEN_NAN_TEST_CT  2
1751 static tTestDesc aBroken_NanTests[] = {
1752   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
1753   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
1756  *  Fix Command Arguments for Broken_Nan
1757  */
1758 static const char* apzBroken_NanPatch[] = {
1759     "format",
1760     "#if 1",
1761     (char*)NULL };
1763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1765  *  Description of Bsd_Stdio_Attrs_Conflict fix
1766  */
1767 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1768      "bsd_stdio_attrs_conflict";
1771  *  File name selection pattern
1772  */
1773 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1774   "stdio.h\0";
1776  *  Machine/OS name selection pattern
1777  */
1778 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1779         "*-*-*bsd*",
1780         "*-*-*darwin*",
1781         (const char*)NULL };
1784  *  content selection pattern - do fix if pattern found
1785  */
1786 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1787        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1789 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
1790 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1791   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1794  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1795  */
1796 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1797     "format",
1798     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1799 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1800 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1801     (char*)NULL };
1803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1805  *  Description of Ctrl_Quotes_Def fix
1806  */
1807 tSCC zCtrl_Quotes_DefName[] =
1808      "ctrl_quotes_def";
1811  *  File name selection pattern
1812  */
1813 #define zCtrl_Quotes_DefList (char*)NULL
1815  *  Machine/OS name selection pattern
1816  */
1817 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1820  *  content selection pattern - do fix if pattern found
1821  */
1822 tSCC zCtrl_Quotes_DefSelect0[] =
1823        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1825 #define    CTRL_QUOTES_DEF_TEST_CT  1
1826 static tTestDesc aCtrl_Quotes_DefTests[] = {
1827   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1830  *  Fix Command Arguments for Ctrl_Quotes_Def
1831  */
1832 static const char* apzCtrl_Quotes_DefPatch[] = {
1833     "char_macro_def",
1834     "CTRL",
1835     (char*)NULL };
1837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1839  *  Description of Ctrl_Quotes_Use fix
1840  */
1841 tSCC zCtrl_Quotes_UseName[] =
1842      "ctrl_quotes_use";
1845  *  File name selection pattern
1846  */
1847 #define zCtrl_Quotes_UseList (char*)NULL
1849  *  Machine/OS name selection pattern
1850  */
1851 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1854  *  content selection pattern - do fix if pattern found
1855  */
1856 tSCC zCtrl_Quotes_UseSelect0[] =
1857        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1859 #define    CTRL_QUOTES_USE_TEST_CT  1
1860 static tTestDesc aCtrl_Quotes_UseTests[] = {
1861   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1864  *  Fix Command Arguments for Ctrl_Quotes_Use
1865  */
1866 static const char* apzCtrl_Quotes_UsePatch[] = {
1867     "char_macro_use",
1868     "CTRL",
1869     (char*)NULL };
1871 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1873  *  Description of Cxx_Unready fix
1874  */
1875 tSCC zCxx_UnreadyName[] =
1876      "cxx_unready";
1879  *  File name selection pattern
1880  */
1881 tSCC zCxx_UnreadyList[] =
1882   "sys/mman.h\0rpc/types.h\0";
1884  *  Machine/OS name selection pattern
1885  */
1886 #define apzCxx_UnreadyMachs (const char**)NULL
1889  *  content selection pattern - do fix if pattern found
1890  */
1891 tSCC zCxx_UnreadySelect0[] =
1892        "[^#]+malloc.*;";
1895  *  content bypass pattern - skip fix if pattern found
1896  */
1897 tSCC zCxx_UnreadyBypass0[] =
1898        "\"C\"|__BEGIN_DECLS";
1900 #define    CXX_UNREADY_TEST_CT  2
1901 static tTestDesc aCxx_UnreadyTests[] = {
1902   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1903   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1906  *  Fix Command Arguments for Cxx_Unready
1907  */
1908 static const char* apzCxx_UnreadyPatch[] = {
1909     "wrap",
1910     "#ifdef __cplusplus\n\
1911 extern \"C\" {\n\
1912 #endif\n",
1913     "#ifdef __cplusplus\n\
1914 }\n\
1915 #endif\n",
1916     (char*)NULL };
1918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1920  *  Description of Darwin_Externc fix
1921  */
1922 tSCC zDarwin_ExterncName[] =
1923      "darwin_externc";
1926  *  File name selection pattern
1927  */
1928 tSCC zDarwin_ExterncList[] =
1929   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1931  *  Machine/OS name selection pattern
1932  */
1933 tSCC* apzDarwin_ExterncMachs[] = {
1934         "*-*-darwin*",
1935         (const char*)NULL };
1938  *  content bypass pattern - skip fix if pattern found
1939  */
1940 tSCC zDarwin_ExterncBypass0[] =
1941        "extern \"C\"";
1942 tSCC zDarwin_ExterncBypass1[] =
1943        "__BEGIN_DECLS";
1945 #define    DARWIN_EXTERNC_TEST_CT  2
1946 static tTestDesc aDarwin_ExterncTests[] = {
1947   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
1948   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1951  *  Fix Command Arguments for Darwin_Externc
1952  */
1953 static const char* apzDarwin_ExterncPatch[] = {
1954     "wrap",
1955     "#ifdef __cplusplus\n\
1956 extern \"C\" {\n\
1957 #endif\n",
1958     "#ifdef __cplusplus\n\
1959 }\n\
1960 #endif\n",
1961     (char*)NULL };
1963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1965  *  Description of Darwin_Gcc4_Breakage fix
1966  */
1967 tSCC zDarwin_Gcc4_BreakageName[] =
1968      "darwin_gcc4_breakage";
1971  *  File name selection pattern
1972  */
1973 tSCC zDarwin_Gcc4_BreakageList[] =
1974   "AvailabilityMacros.h\0";
1976  *  Machine/OS name selection pattern
1977  */
1978 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1979         "*-*-darwin*",
1980         (const char*)NULL };
1983  *  content selection pattern - do fix if pattern found
1984  */
1985 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1986        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1988 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
1989 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1990   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1993  *  Fix Command Arguments for Darwin_Gcc4_Breakage
1994  */
1995 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1996     "format",
1997     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1998     (char*)NULL };
2000 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2002  *  Description of Darwin_Private_Extern fix
2003  */
2004 tSCC zDarwin_Private_ExternName[] =
2005      "darwin_private_extern";
2008  *  File name selection pattern
2009  */
2010 tSCC zDarwin_Private_ExternList[] =
2011   "mach-o/dyld.h\0";
2013  *  Machine/OS name selection pattern
2014  */
2015 tSCC* apzDarwin_Private_ExternMachs[] = {
2016         "*-*-darwin*",
2017         (const char*)NULL };
2020  *  content selection pattern - do fix if pattern found
2021  */
2022 tSCC zDarwin_Private_ExternSelect0[] =
2023        "__private_extern__ [a-z_]+ _dyld_";
2025 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2026 static tTestDesc aDarwin_Private_ExternTests[] = {
2027   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2030  *  Fix Command Arguments for Darwin_Private_Extern
2031  */
2032 static const char* apzDarwin_Private_ExternPatch[] = {
2033     "format",
2034     "extern",
2035     "__private_extern__",
2036     (char*)NULL };
2038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2040  *  Description of Darwin_Stdint_1 fix
2041  */
2042 tSCC zDarwin_Stdint_1Name[] =
2043      "darwin_stdint_1";
2046  *  File name selection pattern
2047  */
2048 tSCC zDarwin_Stdint_1List[] =
2049   "stdint.h\0";
2051  *  Machine/OS name selection pattern
2052  */
2053 tSCC* apzDarwin_Stdint_1Machs[] = {
2054         "*-*-darwin*",
2055         (const char*)NULL };
2058  *  content selection pattern - do fix if pattern found
2059  */
2060 tSCC zDarwin_Stdint_1Select0[] =
2061        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2062 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2064 #define    DARWIN_STDINT_1_TEST_CT  1
2065 static tTestDesc aDarwin_Stdint_1Tests[] = {
2066   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2069  *  Fix Command Arguments for Darwin_Stdint_1
2070  */
2071 static const char* apzDarwin_Stdint_1Patch[] = {
2072     "format",
2073     "#define UINT8_C(v)\tv\n\
2074 #define UINT16_C(v)\tv",
2075     (char*)NULL };
2077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2079  *  Description of Darwin_Stdint_2 fix
2080  */
2081 tSCC zDarwin_Stdint_2Name[] =
2082      "darwin_stdint_2";
2085  *  File name selection pattern
2086  */
2087 tSCC zDarwin_Stdint_2List[] =
2088   "stdint.h\0";
2090  *  Machine/OS name selection pattern
2091  */
2092 tSCC* apzDarwin_Stdint_2Machs[] = {
2093         "*-*-darwin*",
2094         (const char*)NULL };
2097  *  content selection pattern - do fix if pattern found
2098  */
2099 tSCC zDarwin_Stdint_2Select0[] =
2100        "#if __WORDSIZE == 64\n\
2101 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2102 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2103 #else\n\
2104 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2105 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2106 #endif";
2108 #define    DARWIN_STDINT_2_TEST_CT  1
2109 static tTestDesc aDarwin_Stdint_2Tests[] = {
2110   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2113  *  Fix Command Arguments for Darwin_Stdint_2
2114  */
2115 static const char* apzDarwin_Stdint_2Patch[] = {
2116     "format",
2117     "#if __WORDSIZE == 64\n\
2118 #define INTPTR_MAX 9223372036854775807L\n\
2119 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2120 #else\n\
2121 #define INTPTR_MAX 2147483647L\n\
2122 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2123 #endif",
2124     (char*)NULL };
2126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2128  *  Description of Darwin_Stdint_3 fix
2129  */
2130 tSCC zDarwin_Stdint_3Name[] =
2131      "darwin_stdint_3";
2134  *  File name selection pattern
2135  */
2136 tSCC zDarwin_Stdint_3List[] =
2137   "stdint.h\0";
2139  *  Machine/OS name selection pattern
2140  */
2141 tSCC* apzDarwin_Stdint_3Machs[] = {
2142         "*-*-darwin*",
2143         (const char*)NULL };
2146  *  content selection pattern - do fix if pattern found
2147  */
2148 tSCC zDarwin_Stdint_3Select0[] =
2149        "#if __WORDSIZE == 64\n\
2150 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2151 #else\n\
2152 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2153 #endif";
2155 #define    DARWIN_STDINT_3_TEST_CT  1
2156 static tTestDesc aDarwin_Stdint_3Tests[] = {
2157   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2160  *  Fix Command Arguments for Darwin_Stdint_3
2161  */
2162 static const char* apzDarwin_Stdint_3Patch[] = {
2163     "format",
2164     "#if __WORDSIZE == 64\n\
2165 #define UINTPTR_MAX 18446744073709551615UL\n\
2166 #else\n\
2167 #define UINTPTR_MAX 4294967295UL\n\
2168 #endif",
2169     (char*)NULL };
2171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2173  *  Description of Darwin_Stdint_4 fix
2174  */
2175 tSCC zDarwin_Stdint_4Name[] =
2176      "darwin_stdint_4";
2179  *  File name selection pattern
2180  */
2181 tSCC zDarwin_Stdint_4List[] =
2182   "stdint.h\0";
2184  *  Machine/OS name selection pattern
2185  */
2186 tSCC* apzDarwin_Stdint_4Machs[] = {
2187         "*-*-darwin*",
2188         (const char*)NULL };
2191  *  content selection pattern - do fix if pattern found
2192  */
2193 tSCC zDarwin_Stdint_4Select0[] =
2194        "#if __WORDSIZE == 64\n\
2195 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2196 #else\n\
2197 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2198 #endif";
2200 #define    DARWIN_STDINT_4_TEST_CT  1
2201 static tTestDesc aDarwin_Stdint_4Tests[] = {
2202   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2205  *  Fix Command Arguments for Darwin_Stdint_4
2206  */
2207 static const char* apzDarwin_Stdint_4Patch[] = {
2208     "format",
2209     "#if __WORDSIZE == 64\n\
2210 #define SIZE_MAX 18446744073709551615UL\n\
2211 #else\n\
2212 #define SIZE_MAX 4294967295UL\n\
2213 #endif",
2214     (char*)NULL };
2216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2218  *  Description of Darwin_Stdint_5 fix
2219  */
2220 tSCC zDarwin_Stdint_5Name[] =
2221      "darwin_stdint_5";
2224  *  File name selection pattern
2225  */
2226 tSCC zDarwin_Stdint_5List[] =
2227   "stdint.h\0";
2229  *  Machine/OS name selection pattern
2230  */
2231 tSCC* apzDarwin_Stdint_5Machs[] = {
2232         "*-*-darwin*",
2233         (const char*)NULL };
2236  *  content selection pattern - do fix if pattern found
2237  */
2238 tSCC zDarwin_Stdint_5Select0[] =
2239        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2240 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2241 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2243 #define    DARWIN_STDINT_5_TEST_CT  1
2244 static tTestDesc aDarwin_Stdint_5Tests[] = {
2245   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2248  *  Fix Command Arguments for Darwin_Stdint_5
2249  */
2250 static const char* apzDarwin_Stdint_5Patch[] = {
2251     "format",
2252     "#if __WORDSIZE == 64\n\
2253 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
2254 #define INTMAX_MAX   9223372036854775807L\n\
2255 #define UINTMAX_MAX  18446744073709551615UL\n\
2256 #else\n\
2257 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
2258 #define INTMAX_MAX   9223372036854775807LL\n\
2259 #define UINTMAX_MAX  18446744073709551615ULL\n\
2260 #endif",
2261     (char*)NULL };
2263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2265  *  Description of Darwin_Stdint_6 fix
2266  */
2267 tSCC zDarwin_Stdint_6Name[] =
2268      "darwin_stdint_6";
2271  *  File name selection pattern
2272  */
2273 tSCC zDarwin_Stdint_6List[] =
2274   "stdint.h\0";
2276  *  Machine/OS name selection pattern
2277  */
2278 tSCC* apzDarwin_Stdint_6Machs[] = {
2279         "*-*-darwin*",
2280         (const char*)NULL };
2283  *  content selection pattern - do fix if pattern found
2284  */
2285 tSCC zDarwin_Stdint_6Select0[] =
2286        "#if __WORDSIZE == 64\n\
2287 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2288 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2289 #else\n\
2290 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2291 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2292 #endif";
2294 #define    DARWIN_STDINT_6_TEST_CT  1
2295 static tTestDesc aDarwin_Stdint_6Tests[] = {
2296   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2299  *  Fix Command Arguments for Darwin_Stdint_6
2300  */
2301 static const char* apzDarwin_Stdint_6Patch[] = {
2302     "format",
2303     "#if __WORDSIZE == 64\n\
2304 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2305 #define PTRDIFF_MAX 9223372036854775807L\n\
2306 #else\n\
2307 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2308 #define PTRDIFF_MAX 2147483647\n\
2309 #endif",
2310     (char*)NULL };
2312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2314  *  Description of Darwin_Stdint_7 fix
2315  */
2316 tSCC zDarwin_Stdint_7Name[] =
2317      "darwin_stdint_7";
2320  *  File name selection pattern
2321  */
2322 tSCC zDarwin_Stdint_7List[] =
2323   "stdint.h\0";
2325  *  Machine/OS name selection pattern
2326  */
2327 tSCC* apzDarwin_Stdint_7Machs[] = {
2328         "*-*-darwin*",
2329         (const char*)NULL };
2332  *  content selection pattern - do fix if pattern found
2333  */
2334 tSCC zDarwin_Stdint_7Select0[] =
2335        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2336 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2338 #define    DARWIN_STDINT_7_TEST_CT  1
2339 static tTestDesc aDarwin_Stdint_7Tests[] = {
2340   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2343  *  Fix Command Arguments for Darwin_Stdint_7
2344  */
2345 static const char* apzDarwin_Stdint_7Patch[] = {
2346     "format",
2347     "#if __WORDSIZE == 64\n\
2348 #define INTMAX_C(v)  (v ## L)\n\
2349 #define UINTMAX_C(v) (v ## UL)\n\
2350 #else\n\
2351 #define INTMAX_C(v)  (v ## LL)\n\
2352 #define UINTMAX_C(v) (v ## ULL)\n\
2353 #endif",
2354     (char*)NULL };
2356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2358  *  Description of Dec_Intern_Asm fix
2359  */
2360 tSCC zDec_Intern_AsmName[] =
2361      "dec_intern_asm";
2364  *  File name selection pattern
2365  */
2366 tSCC zDec_Intern_AsmList[] =
2367   "c_asm.h\0";
2369  *  Machine/OS name selection pattern
2370  */
2371 #define apzDec_Intern_AsmMachs (const char**)NULL
2372 #define DEC_INTERN_ASM_TEST_CT  0
2373 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2376  *  Fix Command Arguments for Dec_Intern_Asm
2377  */
2378 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2379     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2380 #ifdef __DECC\n",
2381     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2382 #endif\n",
2383     (char*)NULL };
2385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2387  *  Description of Djgpp_Wchar_H fix
2388  */
2389 tSCC zDjgpp_Wchar_HName[] =
2390      "djgpp_wchar_h";
2393  *  File name selection pattern
2394  */
2395 #define zDjgpp_Wchar_HList (char*)NULL
2397  *  Machine/OS name selection pattern
2398  */
2399 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2402  *  content selection pattern - do fix if pattern found
2403  */
2404 tSCC zDjgpp_Wchar_HSelect0[] =
2405        "__DJ_wint_t";
2408  *  content bypass pattern - skip fix if pattern found
2409  */
2410 tSCC zDjgpp_Wchar_HBypass0[] =
2411        "sys/djtypes.h";
2413 #define    DJGPP_WCHAR_H_TEST_CT  2
2414 static tTestDesc aDjgpp_Wchar_HTests[] = {
2415   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2416   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2419  *  Fix Command Arguments for Djgpp_Wchar_H
2420  */
2421 static const char* apzDjgpp_Wchar_HPatch[] = {
2422     "format",
2423     "%0\n\
2424 #include <sys/djtypes.h>",
2425     "#include <stddef.h>",
2426     (char*)NULL };
2428 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2430  *  Description of Ecd_Cursor fix
2431  */
2432 tSCC zEcd_CursorName[] =
2433      "ecd_cursor";
2436  *  File name selection pattern
2437  */
2438 tSCC zEcd_CursorList[] =
2439   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2441  *  Machine/OS name selection pattern
2442  */
2443 #define apzEcd_CursorMachs (const char**)NULL
2446  *  content selection pattern - do fix if pattern found
2447  */
2448 tSCC zEcd_CursorSelect0[] =
2449        "ecd\\.cursor";
2451 #define    ECD_CURSOR_TEST_CT  1
2452 static tTestDesc aEcd_CursorTests[] = {
2453   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2456  *  Fix Command Arguments for Ecd_Cursor
2457  */
2458 static const char* apzEcd_CursorPatch[] = {
2459     "format",
2460     "ecd_cursor",
2461     (char*)NULL };
2463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2465  *  Description of Freebsd_Gcc3_Breakage fix
2466  */
2467 tSCC zFreebsd_Gcc3_BreakageName[] =
2468      "freebsd_gcc3_breakage";
2471  *  File name selection pattern
2472  */
2473 tSCC zFreebsd_Gcc3_BreakageList[] =
2474   "sys/cdefs.h\0";
2476  *  Machine/OS name selection pattern
2477  */
2478 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2479         "*-*-freebsd*",
2480         (const char*)NULL };
2483  *  content selection pattern - do fix if pattern found
2484  */
2485 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2486        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2489  *  content bypass pattern - skip fix if pattern found
2490  */
2491 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2492        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2494 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2495 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2496   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2497   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2500  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2501  */
2502 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2503     "format",
2504     "%0 || __GNUC__ >= 3",
2505     (char*)NULL };
2507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2509  *  Description of Freebsd_Gcc4_Breakage fix
2510  */
2511 tSCC zFreebsd_Gcc4_BreakageName[] =
2512      "freebsd_gcc4_breakage";
2515  *  File name selection pattern
2516  */
2517 tSCC zFreebsd_Gcc4_BreakageList[] =
2518   "sys/cdefs.h\0";
2520  *  Machine/OS name selection pattern
2521  */
2522 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2523         "*-*-freebsd*",
2524         (const char*)NULL };
2527  *  content selection pattern - do fix if pattern found
2528  */
2529 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2530        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2532 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2533 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2534   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2537  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2538  */
2539 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2540     "format",
2541     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2542     (char*)NULL };
2544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2546  *  Description of Glibc_C99_Inline_1 fix
2547  */
2548 tSCC zGlibc_C99_Inline_1Name[] =
2549      "glibc_c99_inline_1";
2552  *  File name selection pattern
2553  */
2554 tSCC zGlibc_C99_Inline_1List[] =
2555   "features.h\0*/features.h\0";
2557  *  Machine/OS name selection pattern
2558  */
2559 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2562  *  content selection pattern - do fix if pattern found
2563  */
2564 tSCC zGlibc_C99_Inline_1Select0[] =
2565        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2567 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2568 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2569   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2572  *  Fix Command Arguments for Glibc_C99_Inline_1
2573  */
2574 static const char* apzGlibc_C99_Inline_1Patch[] = {
2575     "format",
2576     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2577     (char*)NULL };
2579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2581  *  Description of Glibc_C99_Inline_1a fix
2582  */
2583 tSCC zGlibc_C99_Inline_1aName[] =
2584      "glibc_c99_inline_1a";
2587  *  File name selection pattern
2588  */
2589 tSCC zGlibc_C99_Inline_1aList[] =
2590   "features.h\0*/features.h\0";
2592  *  Machine/OS name selection pattern
2593  */
2594 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2597  *  content selection pattern - do fix if pattern found
2598  */
2599 tSCC zGlibc_C99_Inline_1aSelect0[] =
2600        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2601 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2603 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
2604 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2605   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2608  *  Fix Command Arguments for Glibc_C99_Inline_1a
2609  */
2610 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2611     "format",
2612     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2613 %2",
2614     (char*)NULL };
2616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2618  *  Description of Glibc_C99_Inline_2 fix
2619  */
2620 tSCC zGlibc_C99_Inline_2Name[] =
2621      "glibc_c99_inline_2";
2624  *  File name selection pattern
2625  */
2626 tSCC zGlibc_C99_Inline_2List[] =
2627   "sys/stat.h\0*/sys/stat.h\0";
2629  *  Machine/OS name selection pattern
2630  */
2631 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2634  *  content selection pattern - do fix if pattern found
2635  */
2636 tSCC zGlibc_C99_Inline_2Select0[] =
2637        "extern __inline__ int";
2639 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2640 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2641   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2644  *  Fix Command Arguments for Glibc_C99_Inline_2
2645  */
2646 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2647     "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2648 extern\\\n\
2649 #endif\\\n\
2650 __inline__ int \\1/",
2651     "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2652 extern\\\n\
2653 #endif\\\n\
2654 __inline__ int __REDIRECT\\1 (\\2/",
2655     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2656 extern\\\n\
2657 #endif\\\n\
2658 __inline__ int/",
2659     (char*)NULL };
2661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2663  *  Description of Glibc_C99_Inline_3 fix
2664  */
2665 tSCC zGlibc_C99_Inline_3Name[] =
2666      "glibc_c99_inline_3";
2669  *  File name selection pattern
2670  */
2671 tSCC zGlibc_C99_Inline_3List[] =
2672   "bits/string2.h\0*/bits/string2.h\0";
2674  *  Machine/OS name selection pattern
2675  */
2676 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2679  *  content selection pattern - do fix if pattern found
2680  */
2681 tSCC zGlibc_C99_Inline_3Select0[] =
2682        "extern __inline";
2685  *  content bypass pattern - skip fix if pattern found
2686  */
2687 tSCC zGlibc_C99_Inline_3Bypass0[] =
2688        "__extern_inline|__GNU_STDC_INLINE__";
2690 #define    GLIBC_C99_INLINE_3_TEST_CT  2
2691 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2692   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2693   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2696  *  Fix Command Arguments for Glibc_C99_Inline_3
2697  */
2698 static const char* apzGlibc_C99_Inline_3Patch[] = {
2699     "format",
2700     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2701     "^# ifdef __cplusplus$",
2702     (char*)NULL };
2704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2706  *  Description of Glibc_C99_Inline_4 fix
2707  */
2708 tSCC zGlibc_C99_Inline_4Name[] =
2709      "glibc_c99_inline_4";
2712  *  File name selection pattern
2713  */
2714 tSCC zGlibc_C99_Inline_4List[] =
2715   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2717  *  Machine/OS name selection pattern
2718  */
2719 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2722  *  content selection pattern - do fix if pattern found
2723  */
2724 tSCC zGlibc_C99_Inline_4Select0[] =
2725        "(^| )extern __inline";
2728  *  content bypass pattern - skip fix if pattern found
2729  */
2730 tSCC zGlibc_C99_Inline_4Bypass0[] =
2731        "__extern_inline|__gnu_inline__";
2733 #define    GLIBC_C99_INLINE_4_TEST_CT  2
2734 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2735   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2736   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2739  *  Fix Command Arguments for Glibc_C99_Inline_4
2740  */
2741 static const char* apzGlibc_C99_Inline_4Patch[] = {
2742     "format",
2743     "%0 __attribute__ ((__gnu_inline__))",
2744     (char*)NULL };
2746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2748  *  Description of Glibc_Mutex_Init fix
2749  */
2750 tSCC zGlibc_Mutex_InitName[] =
2751      "glibc_mutex_init";
2754  *  File name selection pattern
2755  */
2756 tSCC zGlibc_Mutex_InitList[] =
2757   "pthread.h\0";
2759  *  Machine/OS name selection pattern
2760  */
2761 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2764  *  content selection pattern - do fix if pattern found
2765  */
2766 tSCC zGlibc_Mutex_InitSelect0[] =
2767        "\\{ *\\{ *0, *\\} *\\}";
2769 #define    GLIBC_MUTEX_INIT_TEST_CT  1
2770 static tTestDesc aGlibc_Mutex_InitTests[] = {
2771   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2774  *  Fix Command Arguments for Glibc_Mutex_Init
2775  */
2776 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2777     "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2778 N\n\
2779 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2781     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2782     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2783     "-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/",
2784     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2785     "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2786     (char*)NULL };
2788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2790  *  Description of Glibc_Stdint fix
2791  */
2792 tSCC zGlibc_StdintName[] =
2793      "glibc_stdint";
2796  *  File name selection pattern
2797  */
2798 tSCC zGlibc_StdintList[] =
2799   "stdint.h\0";
2801  *  Machine/OS name selection pattern
2802  */
2803 #define apzGlibc_StdintMachs (const char**)NULL
2806  *  content selection pattern - do fix if pattern found
2807  */
2808 tSCC zGlibc_StdintSelect0[] =
2809        "GNU C Library";
2811 #define    GLIBC_STDINT_TEST_CT  1
2812 static tTestDesc aGlibc_StdintTests[] = {
2813   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
2816  *  Fix Command Arguments for Glibc_Stdint
2817  */
2818 static const char* apzGlibc_StdintPatch[] = {
2819     "format",
2820     "# define UINT8_C(c)\tc\n\
2821 # define UINT16_C(c)\tc",
2822     "# define UINT8_C\\(c\\)\tc ## U\n\
2823 # define UINT16_C\\(c\\)\tc ## U",
2824     (char*)NULL };
2826 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2828  *  Description of Glibc_Tgmath fix
2829  */
2830 tSCC zGlibc_TgmathName[] =
2831      "glibc_tgmath";
2834  *  File name selection pattern
2835  */
2836 tSCC zGlibc_TgmathList[] =
2837   "tgmath.h\0";
2839  *  Machine/OS name selection pattern
2840  */
2841 #define apzGlibc_TgmathMachs (const char**)NULL
2844  *  content selection pattern - do fix if pattern found
2845  */
2846 tSCC zGlibc_TgmathSelect0[] =
2847        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2850  *  content bypass pattern - skip fix if pattern found
2851  */
2852 tSCC zGlibc_TgmathBypass0[] =
2853        "__floating_type\\(type\\) \\\\\n\
2854 .*__builtin_classify_type";
2856 #define    GLIBC_TGMATH_TEST_CT  2
2857 static tTestDesc aGlibc_TgmathTests[] = {
2858   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
2859   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2862  *  Fix Command Arguments for Glibc_Tgmath
2863  */
2864 static const char* apzGlibc_TgmathPatch[] = {
2865     "format",
2866     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2867     (char*)NULL };
2869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2871  *  Description of Gnu_Types fix
2872  */
2873 tSCC zGnu_TypesName[] =
2874      "gnu_types";
2877  *  File name selection pattern
2878  */
2879 tSCC zGnu_TypesList[] =
2880   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2882  *  Machine/OS name selection pattern
2883  */
2884 tSCC* apzGnu_TypesMachs[] = {
2885         "*-*-solaris2.1[0-9]*",
2886         (const char*)NULL };
2889  *  content selection pattern - do fix if pattern found
2890  */
2891 tSCC zGnu_TypesSelect0[] =
2892        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2895  *  content bypass pattern - skip fix if pattern found
2896  */
2897 tSCC zGnu_TypesBypass0[] =
2898        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2900 #define    GNU_TYPES_TEST_CT  2
2901 static tTestDesc aGnu_TypesTests[] = {
2902   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
2903   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
2906  *  Fix Command Arguments for Gnu_Types
2907  */
2908 static const char* apzGnu_TypesPatch[] = {
2909     "gnu_type",
2910     (char*)NULL };
2912 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2914  *  Description of Hp_Inline fix
2915  */
2916 tSCC zHp_InlineName[] =
2917      "hp_inline";
2920  *  File name selection pattern
2921  */
2922 tSCC zHp_InlineList[] =
2923   "sys/spinlock.h\0machine/machparam.h\0";
2925  *  Machine/OS name selection pattern
2926  */
2927 #define apzHp_InlineMachs (const char**)NULL
2930  *  content selection pattern - do fix if pattern found
2931  */
2932 tSCC zHp_InlineSelect0[] =
2933        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2935 #define    HP_INLINE_TEST_CT  1
2936 static tTestDesc aHp_InlineTests[] = {
2937   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
2940  *  Fix Command Arguments for Hp_Inline
2941  */
2942 static const char* apzHp_InlinePatch[] = {
2943     "format",
2944     "%1<machine/%2.h>",
2945     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2946     (char*)NULL };
2948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2950  *  Description of Hp_Sysfile fix
2951  */
2952 tSCC zHp_SysfileName[] =
2953      "hp_sysfile";
2956  *  File name selection pattern
2957  */
2958 tSCC zHp_SysfileList[] =
2959   "sys/file.h\0";
2961  *  Machine/OS name selection pattern
2962  */
2963 #define apzHp_SysfileMachs (const char**)NULL
2966  *  content selection pattern - do fix if pattern found
2967  */
2968 tSCC zHp_SysfileSelect0[] =
2969        "HPUX_SOURCE";
2971 #define    HP_SYSFILE_TEST_CT  1
2972 static tTestDesc aHp_SysfileTests[] = {
2973   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
2976  *  Fix Command Arguments for Hp_Sysfile
2977  */
2978 static const char* apzHp_SysfilePatch[] = {
2979     "format",
2980     "(struct file *, ...)",
2981     "\\(\\.\\.\\.\\)",
2982     (char*)NULL };
2984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2986  *  Description of Hppa_Hpux_Fp_Macros fix
2987  */
2988 tSCC zHppa_Hpux_Fp_MacrosName[] =
2989      "hppa_hpux_fp_macros";
2992  *  File name selection pattern
2993  */
2994 tSCC zHppa_Hpux_Fp_MacrosList[] =
2995   "math.h\0";
2997  *  Machine/OS name selection pattern
2998  */
2999 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3000         "hppa*-hp-hpux11*",
3001         (const char*)NULL };
3004  *  content selection pattern - do fix if pattern found
3005  */
3006 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3007        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3008 #[ \t]*define[ \t]*FP_ZERO.*\n\
3009 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3010 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3011 #[ \t]*define[ \t]*FP_NAN.*\n";
3013 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
3014 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3015   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3018  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
3019  */
3020 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3021     "format",
3022     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3023 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3024    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3025 %0#endif\n\n\
3026 #ifdef _INCLUDE_HPUX_SOURCE\n",
3027     (char*)NULL };
3029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3031  *  Description of Hpux10_Cpp_Pow_Inline fix
3032  */
3033 tSCC zHpux10_Cpp_Pow_InlineName[] =
3034      "hpux10_cpp_pow_inline";
3037  *  File name selection pattern
3038  */
3039 tSCC zHpux10_Cpp_Pow_InlineList[] =
3040   "fixinc-test-limits.h\0math.h\0";
3042  *  Machine/OS name selection pattern
3043  */
3044 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3047  *  content selection pattern - do fix if pattern found
3048  */
3049 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3050        "^# +ifdef +__cplusplus\n\
3051  +\\}\n\
3052  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3053 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3054  +\\}\n\
3055  +extern +\"C\" +\\{\n\
3056 #else\n\
3057 # +endif";
3059 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
3060 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3061   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3064  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3065  */
3066 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3067     "format",
3068     "",
3069     (char*)NULL };
3071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3073  *  Description of Hpux11_Cpp_Pow_Inline fix
3074  */
3075 tSCC zHpux11_Cpp_Pow_InlineName[] =
3076      "hpux11_cpp_pow_inline";
3079  *  File name selection pattern
3080  */
3081 tSCC zHpux11_Cpp_Pow_InlineList[] =
3082   "math.h\0";
3084  *  Machine/OS name selection pattern
3085  */
3086 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3089  *  content selection pattern - do fix if pattern found
3090  */
3091 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3092        " +inline double pow\\(double d,int expon\\) \\{\n\
3093  +return pow\\(d, \\(double\\)expon\\);\n\
3094  +\\}\n";
3096 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
3097 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3098   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3101  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3102  */
3103 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3104     "format",
3105     "",
3106     (char*)NULL };
3108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3110  *  Description of Hpux10_Ctype_Declarations1 fix
3111  */
3112 tSCC zHpux10_Ctype_Declarations1Name[] =
3113      "hpux10_ctype_declarations1";
3116  *  File name selection pattern
3117  */
3118 tSCC zHpux10_Ctype_Declarations1List[] =
3119   "ctype.h\0";
3121  *  Machine/OS name selection pattern
3122  */
3123 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3126  *  content selection pattern - do fix if pattern found
3127  */
3128 tSCC zHpux10_Ctype_Declarations1Select0[] =
3129        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3132  *  content bypass pattern - skip fix if pattern found
3133  */
3134 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3135        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3137 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
3138 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3139   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3140   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3143  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
3144  */
3145 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3146     "format",
3147     "#ifdef _PROTOTYPES\n\
3148 extern int __tolower(int);\n\
3149 extern int __toupper(int);\n\
3150 #else /* NOT _PROTOTYPES */\n\
3151 extern int __tolower();\n\
3152 extern int __toupper();\n\
3153 #endif /* _PROTOTYPES */\n\n\
3154 %0\n",
3155     (char*)NULL };
3157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3159  *  Description of Hpux10_Ctype_Declarations2 fix
3160  */
3161 tSCC zHpux10_Ctype_Declarations2Name[] =
3162      "hpux10_ctype_declarations2";
3165  *  File name selection pattern
3166  */
3167 tSCC zHpux10_Ctype_Declarations2List[] =
3168   "ctype.h\0";
3170  *  Machine/OS name selection pattern
3171  */
3172 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3175  *  content selection pattern - do fix if pattern found
3176  */
3177 tSCC zHpux10_Ctype_Declarations2Select0[] =
3178        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3181  *  content bypass pattern - skip fix if pattern found
3182  */
3183 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3184        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3186 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
3187 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3188   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3189   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3192  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
3193  */
3194 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3195     "format",
3196     "%0\n\n\
3197 #ifdef _PROTOTYPES\n\
3198      extern int _isalnum(int);\n\
3199      extern int _isalpha(int);\n\
3200      extern int _iscntrl(int);\n\
3201      extern int _isdigit(int);\n\
3202      extern int _isgraph(int);\n\
3203      extern int _islower(int);\n\
3204      extern int _isprint(int);\n\
3205      extern int _ispunct(int);\n\
3206      extern int _isspace(int);\n\
3207      extern int _isupper(int);\n\
3208      extern int _isxdigit(int);\n\
3209 #  else /* not _PROTOTYPES */\n\
3210      extern int _isalnum();\n\
3211      extern int _isalpha();\n\
3212      extern int _iscntrl();\n\
3213      extern int _isdigit();\n\
3214      extern int _isgraph();\n\
3215      extern int _islower();\n\
3216      extern int _isprint();\n\
3217      extern int _ispunct();\n\
3218      extern int _isspace();\n\
3219      extern int _isupper();\n\
3220      extern int _isxdigit();\n\
3221 #endif /* _PROTOTYPES */\n",
3222     (char*)NULL };
3224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3226  *  Description of Hpux10_Stdio_Declarations fix
3227  */
3228 tSCC zHpux10_Stdio_DeclarationsName[] =
3229      "hpux10_stdio_declarations";
3232  *  File name selection pattern
3233  */
3234 tSCC zHpux10_Stdio_DeclarationsList[] =
3235   "stdio.h\0";
3237  *  Machine/OS name selection pattern
3238  */
3239 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3242  *  content selection pattern - do fix if pattern found
3243  */
3244 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3245        "^#[ \t]*define _iob[ \t]*__iob";
3248  *  content bypass pattern - skip fix if pattern found
3249  */
3250 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3251        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3253 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
3254 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3255   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3256   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3259  *  Fix Command Arguments for Hpux10_Stdio_Declarations
3260  */
3261 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3262     "format",
3263     "%0\n\n\
3264 #  if defined(__STDC__) || defined(__cplusplus)\n\
3265      extern int snprintf(char *, size_t, const char *, ...);\n\
3266      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3267 #  else /* not __STDC__) || __cplusplus */\n\
3268      extern int snprintf();\n\
3269      extern int vsnprintf();\n\
3270 #  endif /* __STDC__) || __cplusplus */\n",
3271     (char*)NULL };
3273 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3275  *  Description of Hpux11_Abs fix
3276  */
3277 tSCC zHpux11_AbsName[] =
3278      "hpux11_abs";
3281  *  File name selection pattern
3282  */
3283 tSCC zHpux11_AbsList[] =
3284   "stdlib.h\0";
3286  *  Machine/OS name selection pattern
3287  */
3288 tSCC* apzHpux11_AbsMachs[] = {
3289         "ia64-hp-hpux11*",
3290         (const char*)NULL };
3293  *  content selection pattern - do fix if pattern found
3294  */
3295 tSCC zHpux11_AbsSelect0[] =
3296        "ifndef _MATH_INCLUDED";
3298 #define    HPUX11_ABS_TEST_CT  1
3299 static tTestDesc aHpux11_AbsTests[] = {
3300   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
3303  *  Fix Command Arguments for Hpux11_Abs
3304  */
3305 static const char* apzHpux11_AbsPatch[] = {
3306     "format",
3307     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3308     (char*)NULL };
3310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3312  *  Description of Hpux11_Fabsf fix
3313  */
3314 tSCC zHpux11_FabsfName[] =
3315      "hpux11_fabsf";
3318  *  File name selection pattern
3319  */
3320 tSCC zHpux11_FabsfList[] =
3321   "math.h\0";
3323  *  Machine/OS name selection pattern
3324  */
3325 #define apzHpux11_FabsfMachs (const char**)NULL
3328  *  content selection pattern - do fix if pattern found
3329  */
3330 tSCC zHpux11_FabsfSelect0[] =
3331        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3334  *  content bypass pattern - skip fix if pattern found
3335  */
3336 tSCC zHpux11_FabsfBypass0[] =
3337        "__cplusplus";
3339 #define    HPUX11_FABSF_TEST_CT  2
3340 static tTestDesc aHpux11_FabsfTests[] = {
3341   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
3342   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3345  *  Fix Command Arguments for Hpux11_Fabsf
3346  */
3347 static const char* apzHpux11_FabsfPatch[] = {
3348     "format",
3349     "#ifndef __cplusplus\n\
3350 %0\n\
3351 #endif",
3352     (char*)NULL };
3354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3356  *  Description of Hpux11_Pthread_Const fix
3357  */
3358 tSCC zHpux11_Pthread_ConstName[] =
3359      "hpux11_pthread_const";
3362  *  File name selection pattern
3363  */
3364 tSCC zHpux11_Pthread_ConstList[] =
3365   "sys/pthread.h\0";
3367  *  Machine/OS name selection pattern
3368  */
3369 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3370         "*-hp-hpux11.[0-3]*",
3371         (const char*)NULL };
3374  *  content selection pattern - do fix if pattern found
3375  */
3376 tSCC zHpux11_Pthread_ConstSelect0[] =
3377        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3379 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
3380 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3381   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3384  *  Fix Command Arguments for Hpux11_Pthread_Const
3385  */
3386 static const char* apzHpux11_Pthread_ConstPatch[] = {
3387     "format",
3388     "#define __POINTER_SET\t\t((void *) 1L)",
3389     (char*)NULL };
3391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3393  *  Description of Hpux11_Size_T fix
3394  */
3395 tSCC zHpux11_Size_TName[] =
3396      "hpux11_size_t";
3399  *  File name selection pattern
3400  */
3401 #define zHpux11_Size_TList (char*)NULL
3403  *  Machine/OS name selection pattern
3404  */
3405 tSCC* apzHpux11_Size_TMachs[] = {
3406         "*-hp-hpux11*",
3407         (const char*)NULL };
3410  *  content selection pattern - do fix if pattern found
3411  */
3412 tSCC zHpux11_Size_TSelect0[] =
3413        "__size_t";
3415 #define    HPUX11_SIZE_T_TEST_CT  1
3416 static tTestDesc aHpux11_Size_TTests[] = {
3417   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3420  *  Fix Command Arguments for Hpux11_Size_T
3421  */
3422 static const char* apzHpux11_Size_TPatch[] = {
3423     "format",
3424     "_hpux_size_t",
3425     (char*)NULL };
3427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3429  *  Description of Hpux11_Snprintf fix
3430  */
3431 tSCC zHpux11_SnprintfName[] =
3432      "hpux11_snprintf";
3435  *  File name selection pattern
3436  */
3437 tSCC zHpux11_SnprintfList[] =
3438   "stdio.h\0";
3440  *  Machine/OS name selection pattern
3441  */
3442 #define apzHpux11_SnprintfMachs (const char**)NULL
3445  *  content selection pattern - do fix if pattern found
3446  */
3447 tSCC zHpux11_SnprintfSelect0[] =
3448        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3450 #define    HPUX11_SNPRINTF_TEST_CT  1
3451 static tTestDesc aHpux11_SnprintfTests[] = {
3452   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3455  *  Fix Command Arguments for Hpux11_Snprintf
3456  */
3457 static const char* apzHpux11_SnprintfPatch[] = {
3458     "format",
3459     "%1 const %3",
3460     (char*)NULL };
3462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3464  *  Description of Hpux11_Vsnprintf fix
3465  */
3466 tSCC zHpux11_VsnprintfName[] =
3467      "hpux11_vsnprintf";
3470  *  File name selection pattern
3471  */
3472 tSCC zHpux11_VsnprintfList[] =
3473   "stdio.h\0";
3475  *  Machine/OS name selection pattern
3476  */
3477 #define apzHpux11_VsnprintfMachs (const char**)NULL
3480  *  content selection pattern - do fix if pattern found
3481  */
3482 tSCC zHpux11_VsnprintfSelect0[] =
3483        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3485 #define    HPUX11_VSNPRINTF_TEST_CT  1
3486 static tTestDesc aHpux11_VsnprintfTests[] = {
3487   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3490  *  Fix Command Arguments for Hpux11_Vsnprintf
3491  */
3492 static const char* apzHpux11_VsnprintfPatch[] = {
3493     "format",
3494     "%1 __va_list);",
3495     (char*)NULL };
3497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3499  *  Description of Hpux8_Bogus_Inlines fix
3500  */
3501 tSCC zHpux8_Bogus_InlinesName[] =
3502      "hpux8_bogus_inlines";
3505  *  File name selection pattern
3506  */
3507 tSCC zHpux8_Bogus_InlinesList[] =
3508   "math.h\0";
3510  *  Machine/OS name selection pattern
3511  */
3512 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3515  *  content selection pattern - do fix if pattern found
3516  */
3517 tSCC zHpux8_Bogus_InlinesSelect0[] =
3518        "inline";
3521  *  content bypass pattern - skip fix if pattern found
3522  */
3523 tSCC zHpux8_Bogus_InlinesBypass0[] =
3524        "__GNUG__";
3526 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
3527 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3528   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3529   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3532  *  Fix Command Arguments for Hpux8_Bogus_Inlines
3533  */
3534 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3535     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3536     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3537     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3538     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3539     (char*)NULL };
3541 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3543  *  Description of Hpux_Ctype_Macros fix
3544  */
3545 tSCC zHpux_Ctype_MacrosName[] =
3546      "hpux_ctype_macros";
3549  *  File name selection pattern
3550  */
3551 tSCC zHpux_Ctype_MacrosList[] =
3552   "ctype.h\0";
3554  *  Machine/OS name selection pattern
3555  */
3556 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3559  *  content selection pattern - do fix if pattern found
3560  */
3561 tSCC zHpux_Ctype_MacrosSelect0[] =
3562        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3564 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3565 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3566   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3569  *  Fix Command Arguments for Hpux_Ctype_Macros
3570  */
3571 static const char* apzHpux_Ctype_MacrosPatch[] = {
3572     "format",
3573     "%1(int)%3",
3574     (char*)NULL };
3576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3578  *  Description of Hpux_Htonl fix
3579  */
3580 tSCC zHpux_HtonlName[] =
3581      "hpux_htonl";
3584  *  File name selection pattern
3585  */
3586 tSCC zHpux_HtonlList[] =
3587   "netinet/in.h\0";
3589  *  Machine/OS name selection pattern
3590  */
3591 #define apzHpux_HtonlMachs (const char**)NULL
3594  *  content selection pattern - do fix if pattern found
3595  */
3596 tSCC zHpux_HtonlSelect0[] =
3597        "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3598 (/\\*\n\
3599  \\* Macros for number representation conversion\\.\n\
3600  \\*/\n\
3601 #ifndef ntohl)";
3603 #define    HPUX_HTONL_TEST_CT  1
3604 static tTestDesc aHpux_HtonlTests[] = {
3605   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
3608  *  Fix Command Arguments for Hpux_Htonl
3609  */
3610 static const char* apzHpux_HtonlPatch[] = {
3611     "format",
3612     "#if 1\n\
3613 %1",
3614     (char*)NULL };
3616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3618  *  Description of Hpux_Long_Double fix
3619  */
3620 tSCC zHpux_Long_DoubleName[] =
3621      "hpux_long_double";
3624  *  File name selection pattern
3625  */
3626 tSCC zHpux_Long_DoubleList[] =
3627   "stdlib.h\0";
3629  *  Machine/OS name selection pattern
3630  */
3631 tSCC* apzHpux_Long_DoubleMachs[] = {
3632         "*-*-hpux10*",
3633         "*-*-hpux11.[012]*",
3634         (const char*)NULL };
3637  *  content selection pattern - do fix if pattern found
3638  */
3639 tSCC zHpux_Long_DoubleSelect0[] =
3640        "extern[ \t]long_double[ \t]strtold";
3643  *  content bypass pattern - skip fix if pattern found
3644  */
3645 tSCC zHpux_Long_DoubleBypass0[] =
3646        "long_double_t";
3648 #define    HPUX_LONG_DOUBLE_TEST_CT  2
3649 static tTestDesc aHpux_Long_DoubleTests[] = {
3650   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3651   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3654  *  Fix Command Arguments for Hpux_Long_Double
3655  */
3656 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3657     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3658     "-e", "s/long_double/long double/g",
3659     (char*)NULL };
3661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3663  *  Description of Hpux_Long_Double_2 fix
3664  */
3665 tSCC zHpux_Long_Double_2Name[] =
3666      "hpux_long_double_2";
3669  *  File name selection pattern
3670  */
3671 tSCC zHpux_Long_Double_2List[] =
3672   "stdlib.h\0";
3674  *  Machine/OS name selection pattern
3675  */
3676 tSCC* apzHpux_Long_Double_2Machs[] = {
3677         "hppa*-*-hpux11.3*",
3678         (const char*)NULL };
3681  *  content selection pattern - do fix if pattern found
3682  */
3683 tSCC zHpux_Long_Double_2Select0[] =
3684        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3686 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
3687 static tTestDesc aHpux_Long_Double_2Tests[] = {
3688   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3691  *  Fix Command Arguments for Hpux_Long_Double_2
3692  */
3693 static const char* apzHpux_Long_Double_2Patch[] = {
3694     "format",
3695     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3696     (char*)NULL };
3698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3700  *  Description of Hpux_Systime fix
3701  */
3702 tSCC zHpux_SystimeName[] =
3703      "hpux_systime";
3706  *  File name selection pattern
3707  */
3708 tSCC zHpux_SystimeList[] =
3709   "sys/time.h\0";
3711  *  Machine/OS name selection pattern
3712  */
3713 #define apzHpux_SystimeMachs (const char**)NULL
3716  *  content selection pattern - do fix if pattern found
3717  */
3718 tSCC zHpux_SystimeSelect0[] =
3719        "^extern struct sigevent;";
3721 #define    HPUX_SYSTIME_TEST_CT  1
3722 static tTestDesc aHpux_SystimeTests[] = {
3723   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
3726  *  Fix Command Arguments for Hpux_Systime
3727  */
3728 static const char* apzHpux_SystimePatch[] = {
3729     "format",
3730     "struct sigevent;",
3731     (char*)NULL };
3733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3735  *  Description of Hpux_Spu_Info fix
3736  */
3737 tSCC zHpux_Spu_InfoName[] =
3738      "hpux_spu_info";
3741  *  File name selection pattern
3742  */
3743 tSCC zHpux_Spu_InfoList[] =
3744   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3746  *  Machine/OS name selection pattern
3747  */
3748 tSCC* apzHpux_Spu_InfoMachs[] = {
3749         "*-hp-hpux*",
3750         (const char*)NULL };
3753  *  content selection pattern - do fix if pattern found
3754  */
3755 tSCC zHpux_Spu_InfoSelect0[] =
3756        "^.*extern.*spu_info.*";
3758 #define    HPUX_SPU_INFO_TEST_CT  1
3759 static tTestDesc aHpux_Spu_InfoTests[] = {
3760   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3763  *  Fix Command Arguments for Hpux_Spu_Info
3764  */
3765 static const char* apzHpux_Spu_InfoPatch[] = {
3766     "format",
3767     "#ifdef _KERNEL\n\
3768 %0\n\
3769 #endif",
3770     (char*)NULL };
3772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3774  *  Description of Hpux11_Extern_Sendfile fix
3775  */
3776 tSCC zHpux11_Extern_SendfileName[] =
3777      "hpux11_extern_sendfile";
3780  *  File name selection pattern
3781  */
3782 tSCC zHpux11_Extern_SendfileList[] =
3783   "sys/socket.h\0";
3785  *  Machine/OS name selection pattern
3786  */
3787 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3788         "*-hp-hpux11.[12]*",
3789         (const char*)NULL };
3792  *  content selection pattern - do fix if pattern found
3793  */
3794 tSCC zHpux11_Extern_SendfileSelect0[] =
3795        "^[ \t]*extern sbsize_t sendfile.*\n\
3796 .*, int\\)\\);\n";
3798 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
3799 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3800   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3803  *  Fix Command Arguments for Hpux11_Extern_Sendfile
3804  */
3805 static const char* apzHpux11_Extern_SendfilePatch[] = {
3806     "format",
3807     "#ifndef _APP32_64BIT_OFF_T\n\
3808 %0#endif\n",
3809     (char*)NULL };
3811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3813  *  Description of Hpux11_Extern_Sendpath fix
3814  */
3815 tSCC zHpux11_Extern_SendpathName[] =
3816      "hpux11_extern_sendpath";
3819  *  File name selection pattern
3820  */
3821 tSCC zHpux11_Extern_SendpathList[] =
3822   "sys/socket.h\0";
3824  *  Machine/OS name selection pattern
3825  */
3826 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3827         "*-hp-hpux11.[12]*",
3828         (const char*)NULL };
3831  *  content selection pattern - do fix if pattern found
3832  */
3833 tSCC zHpux11_Extern_SendpathSelect0[] =
3834        "^[ \t]*extern sbsize_t sendpath.*\n\
3835 .*, int\\)\\);\n";
3837 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
3838 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3839   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3842  *  Fix Command Arguments for Hpux11_Extern_Sendpath
3843  */
3844 static const char* apzHpux11_Extern_SendpathPatch[] = {
3845     "format",
3846     "#ifndef _APP32_64BIT_OFF_T\n\
3847 %0#endif\n",
3848     (char*)NULL };
3850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3852  *  Description of Hpux_Extern_Errno fix
3853  */
3854 tSCC zHpux_Extern_ErrnoName[] =
3855      "hpux_extern_errno";
3858  *  File name selection pattern
3859  */
3860 tSCC zHpux_Extern_ErrnoList[] =
3861   "errno.h\0";
3863  *  Machine/OS name selection pattern
3864  */
3865 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3866         "*-hp-hpux10.*",
3867         "*-hp-hpux11.[0-2]*",
3868         (const char*)NULL };
3871  *  content selection pattern - do fix if pattern found
3872  */
3873 tSCC zHpux_Extern_ErrnoSelect0[] =
3874        "^[ \t]*extern int errno;$";
3876 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
3877 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3878   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3881  *  Fix Command Arguments for Hpux_Extern_Errno
3882  */
3883 static const char* apzHpux_Extern_ErrnoPatch[] = {
3884     "format",
3885     "#ifdef __cplusplus\n\
3886 extern \"C\" {\n\
3887 #endif\n\
3888 %0\n\
3889 #ifdef __cplusplus\n\
3890 }\n\
3891 #endif",
3892     (char*)NULL };
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3896  *  Description of Hpux_Pthread_Initializers fix
3897  */
3898 tSCC zHpux_Pthread_InitializersName[] =
3899      "hpux_pthread_initializers";
3902  *  File name selection pattern
3903  */
3904 tSCC zHpux_Pthread_InitializersList[] =
3905   "sys/pthread.h\0";
3907  *  Machine/OS name selection pattern
3908  */
3909 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3910         "*-hp-hpux11.[0-3]*",
3911         (const char*)NULL };
3912 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
3913 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
3916  *  Fix Command Arguments for Hpux_Pthread_Initializers
3917  */
3918 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3919     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3920     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3921     "-e", "/^[ \t]*0$/d",
3922     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3923     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3924     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3925     "-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\\\\@",
3926     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3927     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3928     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3929     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3930     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3931     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3932     (char*)NULL };
3934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3936  *  Description of Hpux_C99_Intptr fix
3937  */
3938 tSCC zHpux_C99_IntptrName[] =
3939      "hpux_c99_intptr";
3942  *  File name selection pattern
3943  */
3944 tSCC zHpux_C99_IntptrList[] =
3945   "stdint.h\0";
3947  *  Machine/OS name selection pattern
3948  */
3949 tSCC* apzHpux_C99_IntptrMachs[] = {
3950         "*-hp-hpux11.3*",
3951         (const char*)NULL };
3952 #define HPUX_C99_INTPTR_TEST_CT  0
3953 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
3956  *  Fix Command Arguments for Hpux_C99_Intptr
3957  */
3958 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3959     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3960     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3961     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3962     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3963     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3964     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3965     (char*)NULL };
3967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3969  *  Description of Hpux_C99_Inttypes fix
3970  */
3971 tSCC zHpux_C99_InttypesName[] =
3972      "hpux_c99_inttypes";
3975  *  File name selection pattern
3976  */
3977 tSCC zHpux_C99_InttypesList[] =
3978   "inttypes.h\0stdint.h\0";
3980  *  Machine/OS name selection pattern
3981  */
3982 tSCC* apzHpux_C99_InttypesMachs[] = {
3983         "*-hp-hpux11.[23]*",
3984         (const char*)NULL };
3985 #define HPUX_C99_INTTYPES_TEST_CT  0
3986 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
3989  *  Fix Command Arguments for Hpux_C99_Inttypes
3990  */
3991 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3992     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3993     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3994     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3995     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3996     (char*)NULL };
3998 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4000  *  Description of Hpux_C99_Inttypes2 fix
4001  */
4002 tSCC zHpux_C99_Inttypes2Name[] =
4003      "hpux_c99_inttypes2";
4006  *  File name selection pattern
4007  */
4008 tSCC zHpux_C99_Inttypes2List[] =
4009   "stdint.h\0";
4011  *  Machine/OS name selection pattern
4012  */
4013 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4014         "*-hp-hpux11.2*",
4015         (const char*)NULL };
4016 #define HPUX_C99_INTTYPES2_TEST_CT  0
4017 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4020  *  Fix Command Arguments for Hpux_C99_Inttypes2
4021  */
4022 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4023     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4024     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4025     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4026     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4027     (char*)NULL };
4029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4031  *  Description of Hpux_Stdint_Least_Fast fix
4032  */
4033 tSCC zHpux_Stdint_Least_FastName[] =
4034      "hpux_stdint_least_fast";
4037  *  File name selection pattern
4038  */
4039 tSCC zHpux_Stdint_Least_FastList[] =
4040   "stdint.h\0";
4042  *  Machine/OS name selection pattern
4043  */
4044 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4045         "*-hp-hpux11.2*",
4046         (const char*)NULL };
4049  *  content selection pattern - do fix if pattern found
4050  */
4051 tSCC zHpux_Stdint_Least_FastSelect0[] =
4052        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4054 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
4055 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4056   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4059  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
4060  */
4061 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4062     "format",
4063     "#ifdef __LP64__\n\
4064 #  define\tUINT_%164_MAX\tULONG_MAX\n\
4065 #else\n\
4066 %0\n\
4067 #endif",
4068     (char*)NULL };
4070 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4072  *  Description of Hpux_Inttype_Int8_T fix
4073  */
4074 tSCC zHpux_Inttype_Int8_TName[] =
4075      "hpux_inttype_int8_t";
4078  *  File name selection pattern
4079  */
4080 tSCC zHpux_Inttype_Int8_TList[] =
4081   "sys/_inttypes.h\0";
4083  *  Machine/OS name selection pattern
4084  */
4085 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4086         "*-hp-hpux1[01].*",
4087         (const char*)NULL };
4090  *  content selection pattern - do fix if pattern found
4091  */
4092 tSCC zHpux_Inttype_Int8_TSelect0[] =
4093        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4095 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4096 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4097   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4100  *  Fix Command Arguments for Hpux_Inttype_Int8_T
4101  */
4102 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4103     "format",
4104     "typedef signed char int%18_t;",
4105     (char*)NULL };
4107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4109  *  Description of Hpux_Imaginary_I fix
4110  */
4111 tSCC zHpux_Imaginary_IName[] =
4112      "hpux_imaginary_i";
4115  *  File name selection pattern
4116  */
4117 tSCC zHpux_Imaginary_IList[] =
4118   "complex.h\0";
4120  *  Machine/OS name selection pattern
4121  */
4122 tSCC* apzHpux_Imaginary_IMachs[] = {
4123         "ia64-hp-hpux11.*",
4124         (const char*)NULL };
4127  *  content selection pattern - do fix if pattern found
4128  */
4129 tSCC zHpux_Imaginary_ISelect0[] =
4130        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4132 #define    HPUX_IMAGINARY_I_TEST_CT  1
4133 static tTestDesc aHpux_Imaginary_ITests[] = {
4134   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4137  *  Fix Command Arguments for Hpux_Imaginary_I
4138  */
4139 static const char* apzHpux_Imaginary_IPatch[] = {
4140     "format",
4141     "#define _Complex_I (__extension__ 1.0iF)",
4142     (char*)NULL };
4144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4146  *  Description of Huge_Val_Hex fix
4147  */
4148 tSCC zHuge_Val_HexName[] =
4149      "huge_val_hex";
4152  *  File name selection pattern
4153  */
4154 tSCC zHuge_Val_HexList[] =
4155   "bits/huge_val.h\0";
4157  *  Machine/OS name selection pattern
4158  */
4159 #define apzHuge_Val_HexMachs (const char**)NULL
4162  *  content selection pattern - do fix if pattern found
4163  */
4164 tSCC zHuge_Val_HexSelect0[] =
4165        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4168  *  content bypass pattern - skip fix if pattern found
4169  */
4170 tSCC zHuge_Val_HexBypass0[] =
4171        "__builtin_huge_val";
4173 #define    HUGE_VAL_HEX_TEST_CT  2
4174 static tTestDesc aHuge_Val_HexTests[] = {
4175   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
4176   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4179  *  Fix Command Arguments for Huge_Val_Hex
4180  */
4181 static const char* apzHuge_Val_HexPatch[] = {
4182     "format",
4183     "#define HUGE_VAL (__builtin_huge_val())\n",
4184     (char*)NULL };
4186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4188  *  Description of Huge_Valf_Hex fix
4189  */
4190 tSCC zHuge_Valf_HexName[] =
4191      "huge_valf_hex";
4194  *  File name selection pattern
4195  */
4196 tSCC zHuge_Valf_HexList[] =
4197   "bits/huge_val.h\0";
4199  *  Machine/OS name selection pattern
4200  */
4201 #define apzHuge_Valf_HexMachs (const char**)NULL
4204  *  content selection pattern - do fix if pattern found
4205  */
4206 tSCC zHuge_Valf_HexSelect0[] =
4207        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4210  *  content bypass pattern - skip fix if pattern found
4211  */
4212 tSCC zHuge_Valf_HexBypass0[] =
4213        "__builtin_huge_valf";
4215 #define    HUGE_VALF_HEX_TEST_CT  2
4216 static tTestDesc aHuge_Valf_HexTests[] = {
4217   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
4218   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4221  *  Fix Command Arguments for Huge_Valf_Hex
4222  */
4223 static const char* apzHuge_Valf_HexPatch[] = {
4224     "format",
4225     "#define HUGE_VALF (__builtin_huge_valf())\n",
4226     (char*)NULL };
4228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4230  *  Description of Huge_Vall_Hex fix
4231  */
4232 tSCC zHuge_Vall_HexName[] =
4233      "huge_vall_hex";
4236  *  File name selection pattern
4237  */
4238 tSCC zHuge_Vall_HexList[] =
4239   "bits/huge_val.h\0";
4241  *  Machine/OS name selection pattern
4242  */
4243 #define apzHuge_Vall_HexMachs (const char**)NULL
4246  *  content selection pattern - do fix if pattern found
4247  */
4248 tSCC zHuge_Vall_HexSelect0[] =
4249        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4252  *  content bypass pattern - skip fix if pattern found
4253  */
4254 tSCC zHuge_Vall_HexBypass0[] =
4255        "__builtin_huge_vall";
4257 #define    HUGE_VALL_HEX_TEST_CT  2
4258 static tTestDesc aHuge_Vall_HexTests[] = {
4259   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
4260   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4263  *  Fix Command Arguments for Huge_Vall_Hex
4264  */
4265 static const char* apzHuge_Vall_HexPatch[] = {
4266     "format",
4267     "#define HUGE_VALL (__builtin_huge_vall())\n",
4268     (char*)NULL };
4270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4272  *  Description of Int_Abort_Free_And_Exit fix
4273  */
4274 tSCC zInt_Abort_Free_And_ExitName[] =
4275      "int_abort_free_and_exit";
4278  *  File name selection pattern
4279  */
4280 tSCC zInt_Abort_Free_And_ExitList[] =
4281   "stdlib.h\0";
4283  *  Machine/OS name selection pattern
4284  */
4285 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4288  *  content selection pattern - do fix if pattern found
4289  */
4290 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4291        "int[ \t]+(abort|free|exit)[ \t]*\\(";
4294  *  content bypass pattern - skip fix if pattern found
4295  */
4296 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4297        "_CLASSIC_ANSI_TYPES";
4299 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
4300 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4301   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4302   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4305  *  Fix Command Arguments for Int_Abort_Free_And_Exit
4306  */
4307 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4308     "format",
4309     "void\t%1(",
4310     (char*)NULL };
4312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4314  *  Description of Io_Quotes_Def fix
4315  */
4316 tSCC zIo_Quotes_DefName[] =
4317      "io_quotes_def";
4320  *  File name selection pattern
4321  */
4322 #define zIo_Quotes_DefList (char*)NULL
4324  *  Machine/OS name selection pattern
4325  */
4326 #define apzIo_Quotes_DefMachs (const char**)NULL
4329  *  content selection pattern - do fix if pattern found
4330  */
4331 tSCC zIo_Quotes_DefSelect0[] =
4332        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4334 #define    IO_QUOTES_DEF_TEST_CT  1
4335 static tTestDesc aIo_Quotes_DefTests[] = {
4336   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4339  *  Fix Command Arguments for Io_Quotes_Def
4340  */
4341 static const char* apzIo_Quotes_DefPatch[] = {
4342     "char_macro_def",
4343     "IO",
4344     (char*)NULL };
4346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4348  *  Description of Io_Quotes_Use fix
4349  */
4350 tSCC zIo_Quotes_UseName[] =
4351      "io_quotes_use";
4354  *  File name selection pattern
4355  */
4356 #define zIo_Quotes_UseList (char*)NULL
4358  *  Machine/OS name selection pattern
4359  */
4360 #define apzIo_Quotes_UseMachs (const char**)NULL
4363  *  content selection pattern - do fix if pattern found
4364  */
4365 tSCC zIo_Quotes_UseSelect0[] =
4366        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4368 #define    IO_QUOTES_USE_TEST_CT  1
4369 static tTestDesc aIo_Quotes_UseTests[] = {
4370   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4373  *  Fix Command Arguments for Io_Quotes_Use
4374  */
4375 static const char* apzIo_Quotes_UsePatch[] = {
4376     "char_macro_use",
4377     "IO",
4378     (char*)NULL };
4380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4382  *  Description of Ip_Missing_Semi fix
4383  */
4384 tSCC zIp_Missing_SemiName[] =
4385      "ip_missing_semi";
4388  *  File name selection pattern
4389  */
4390 tSCC zIp_Missing_SemiList[] =
4391   "netinet/ip.h\0";
4393  *  Machine/OS name selection pattern
4394  */
4395 #define apzIp_Missing_SemiMachs (const char**)NULL
4398  *  content selection pattern - do fix if pattern found
4399  */
4400 tSCC zIp_Missing_SemiSelect0[] =
4401        "}$";
4403 #define    IP_MISSING_SEMI_TEST_CT  1
4404 static tTestDesc aIp_Missing_SemiTests[] = {
4405   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4408  *  Fix Command Arguments for Ip_Missing_Semi
4409  */
4410 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4411     "-e", "/^struct/,/^};/s/}$/};/",
4412     (char*)NULL };
4414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4416  *  Description of Irix___Restrict fix
4417  */
4418 tSCC zIrix___RestrictName[] =
4419      "irix___restrict";
4422  *  File name selection pattern
4423  */
4424 tSCC zIrix___RestrictList[] =
4425   "internal/sgimacros.h\0";
4427  *  Machine/OS name selection pattern
4428  */
4429 tSCC* apzIrix___RestrictMachs[] = {
4430         "mips-sgi-irix6.5",
4431         (const char*)NULL };
4434  *  content selection pattern - do fix if pattern found
4435  */
4436 tSCC zIrix___RestrictSelect0[] =
4437        "(#ifdef __c99\n\
4438 )(#[ \t]*define __restrict restrict)";
4440 #define    IRIX___RESTRICT_TEST_CT  1
4441 static tTestDesc aIrix___RestrictTests[] = {
4442   { TT_EGREP,    zIrix___RestrictSelect0, (regex_t*)NULL }, };
4445  *  Fix Command Arguments for Irix___Restrict
4446  */
4447 static const char* apzIrix___RestrictPatch[] = {
4448     "format",
4449     "%1#  ifndef __cplusplus\n\
4450 %2\n\
4451 #  endif",
4452     (char*)NULL };
4454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4456  *  Description of Irix___Generic1 fix
4457  */
4458 tSCC zIrix___Generic1Name[] =
4459      "irix___generic1";
4462  *  File name selection pattern
4463  */
4464 tSCC zIrix___Generic1List[] =
4465   "internal/math_core.h\0";
4467  *  Machine/OS name selection pattern
4468  */
4469 tSCC* apzIrix___Generic1Machs[] = {
4470         "mips-sgi-irix6.5",
4471         (const char*)NULL };
4474  *  content selection pattern - do fix if pattern found
4475  */
4476 tSCC zIrix___Generic1Select0[] =
4477        "#define ([a-z]+)\\(x\\) *__generic.*";
4479 #define    IRIX___GENERIC1_TEST_CT  1
4480 static tTestDesc aIrix___Generic1Tests[] = {
4481   { TT_EGREP,    zIrix___Generic1Select0, (regex_t*)NULL }, };
4484  *  Fix Command Arguments for Irix___Generic1
4485  */
4486 static const char* apzIrix___Generic1Patch[] = {
4487     "format",
4488     "extern int %1(double);\n\
4489 extern int %1f(float);\n\
4490 extern int %1l(long double);\n\
4491 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4492                : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4493                : _%1l(x))\n",
4494     (char*)NULL };
4496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4498  *  Description of Irix___Generic2 fix
4499  */
4500 tSCC zIrix___Generic2Name[] =
4501      "irix___generic2";
4504  *  File name selection pattern
4505  */
4506 tSCC zIrix___Generic2List[] =
4507   "internal/math_core.h\0";
4509  *  Machine/OS name selection pattern
4510  */
4511 tSCC* apzIrix___Generic2Machs[] = {
4512         "mips-sgi-irix6.5",
4513         (const char*)NULL };
4516  *  content selection pattern - do fix if pattern found
4517  */
4518 tSCC zIrix___Generic2Select0[] =
4519        "#define ([a-z]+)\\(x,y\\) *__generic.*";
4521 #define    IRIX___GENERIC2_TEST_CT  1
4522 static tTestDesc aIrix___Generic2Tests[] = {
4523   { TT_EGREP,    zIrix___Generic2Select0, (regex_t*)NULL }, };
4526  *  Fix Command Arguments for Irix___Generic2
4527  */
4528 static const char* apzIrix___Generic2Patch[] = {
4529     "format",
4530     "#define %1(x,y) \\\n\
4531   ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4532    : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4533    : _%1l(x,y))\n",
4534     (char*)NULL };
4536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4538  *  Description of Irix_Asm_Apostrophe fix
4539  */
4540 tSCC zIrix_Asm_ApostropheName[] =
4541      "irix_asm_apostrophe";
4544  *  File name selection pattern
4545  */
4546 tSCC zIrix_Asm_ApostropheList[] =
4547   "sys/asm.h\0";
4549  *  Machine/OS name selection pattern
4550  */
4551 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4554  *  content selection pattern - do fix if pattern found
4555  */
4556 tSCC zIrix_Asm_ApostropheSelect0[] =
4557        "^[ \t]*#.*[Ww]e're";
4559 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
4560 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4561   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4564  *  Fix Command Arguments for Irix_Asm_Apostrophe
4565  */
4566 static const char* apzIrix_Asm_ApostrophePatch[] = {
4567     "format",
4568     "%1 are",
4569     "^([ \t]*#.*[Ww]e)'re",
4570     (char*)NULL };
4572 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4574  *  Description of Irix_Complex fix
4575  */
4576 tSCC zIrix_ComplexName[] =
4577      "irix_complex";
4580  *  File name selection pattern
4581  */
4582 tSCC zIrix_ComplexList[] =
4583   "complex.h\0";
4585  *  Machine/OS name selection pattern
4586  */
4587 tSCC* apzIrix_ComplexMachs[] = {
4588         "mips-sgi-irix6.5",
4589         (const char*)NULL };
4592  *  content selection pattern - do fix if pattern found
4593  */
4594 tSCC zIrix_ComplexSelect0[] =
4595        "#define[ \t]_Complex_I[ \t]\\(\\(float[ \t]_Complex\\)[ \t]\\(__I__\\)\\)";
4597 #define    IRIX_COMPLEX_TEST_CT  1
4598 static tTestDesc aIrix_ComplexTests[] = {
4599   { TT_EGREP,    zIrix_ComplexSelect0, (regex_t*)NULL }, };
4602  *  Fix Command Arguments for Irix_Complex
4603  */
4604 static const char* apzIrix_ComplexPatch[] = { sed_cmd_z,
4605     "-e", "s/#define[ \t]_Complex_I[ \t]((float[ \t]_Complex)[ \t](__I__))/#define _Complex_I (__extension__ 1.0iF)/",
4606     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
4607     "-e", "/#define[ \t]_Imaginary_I/d",
4608     "-e", "s/#define[ \t]I[ \t]_Imaginary_I/#define I _Complex_I/",
4609     (char*)NULL };
4611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4613  *  Description of Irix_Limits_Const fix
4614  */
4615 tSCC zIrix_Limits_ConstName[] =
4616      "irix_limits_const";
4619  *  File name selection pattern
4620  */
4621 tSCC zIrix_Limits_ConstList[] =
4622   "fixinc-test-limits.h\0limits.h\0";
4624  *  Machine/OS name selection pattern
4625  */
4626 #define apzIrix_Limits_ConstMachs (const char**)NULL
4629  *  content selection pattern - do fix if pattern found
4630  */
4631 tSCC zIrix_Limits_ConstSelect0[] =
4632        "^extern const ";
4634 #define    IRIX_LIMITS_CONST_TEST_CT  1
4635 static tTestDesc aIrix_Limits_ConstTests[] = {
4636   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4639  *  Fix Command Arguments for Irix_Limits_Const
4640  */
4641 static const char* apzIrix_Limits_ConstPatch[] = {
4642     "format",
4643     "extern __const ",
4644     (char*)NULL };
4646 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4648  *  Description of Irix_Socklen_T fix
4649  */
4650 tSCC zIrix_Socklen_TName[] =
4651      "irix_socklen_t";
4654  *  File name selection pattern
4655  */
4656 tSCC zIrix_Socklen_TList[] =
4657   "sys/socket.h\0";
4659  *  Machine/OS name selection pattern
4660  */
4661 tSCC* apzIrix_Socklen_TMachs[] = {
4662         "mips-sgi-irix6.5",
4663         (const char*)NULL };
4666  *  content selection pattern - do fix if pattern found
4667  */
4668 tSCC zIrix_Socklen_TSelect0[] =
4669        "(#define _SOCKLEN_T\n\
4670 )(typedef u_int32_t socklen_t;)";
4672 #define    IRIX_SOCKLEN_T_TEST_CT  1
4673 static tTestDesc aIrix_Socklen_TTests[] = {
4674   { TT_EGREP,    zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4677  *  Fix Command Arguments for Irix_Socklen_T
4678  */
4679 static const char* apzIrix_Socklen_TPatch[] = {
4680     "format",
4681     "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4682 typedef int socklen_t;\n\
4683 #else\n\
4684 %2\n\
4685 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4686     (char*)NULL };
4688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4690  *  Description of Irix_Stdint_C99 fix
4691  */
4692 tSCC zIrix_Stdint_C99Name[] =
4693      "irix_stdint_c99";
4696  *  File name selection pattern
4697  */
4698 tSCC zIrix_Stdint_C99List[] =
4699   "stdint.h\0";
4701  *  Machine/OS name selection pattern
4702  */
4703 tSCC* apzIrix_Stdint_C99Machs[] = {
4704         "mips-sgi-irix6.5",
4705         (const char*)NULL };
4708  *  content selection pattern - do fix if pattern found
4709  */
4710 tSCC zIrix_Stdint_C99Select0[] =
4711        "(#ifndef __c99\n\
4712 )(#error This header file is to be used only for c99 mode compilations)";
4714 #define    IRIX_STDINT_C99_TEST_CT  1
4715 static tTestDesc aIrix_Stdint_C99Tests[] = {
4716   { TT_EGREP,    zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4719  *  Fix Command Arguments for Irix_Stdint_C99
4720  */
4721 static const char* apzIrix_Stdint_C99Patch[] = {
4722     "format",
4723     "#if 0\n\
4724 %2",
4725     (char*)NULL };
4727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4729  *  Description of Irix_Stdio_Va_List fix
4730  */
4731 tSCC zIrix_Stdio_Va_ListName[] =
4732      "irix_stdio_va_list";
4735  *  File name selection pattern
4736  */
4737 tSCC zIrix_Stdio_Va_ListList[] =
4738   "stdio.h\0internal/stdio_core.h\0";
4740  *  Machine/OS name selection pattern
4741  */
4742 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4745  *  content selection pattern - do fix if pattern found
4746  */
4747 tSCC zIrix_Stdio_Va_ListSelect0[] =
4748        "/\\* va_list \\*/ char \\*";
4750 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
4751 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4752   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4755  *  Fix Command Arguments for Irix_Stdio_Va_List
4756  */
4757 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4758     "format",
4759     "__gnuc_va_list",
4760     (char*)NULL };
4762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4764  *  Description of Irix_Wcsftime fix
4765  */
4766 tSCC zIrix_WcsftimeName[] =
4767      "irix_wcsftime";
4770  *  File name selection pattern
4771  */
4772 tSCC zIrix_WcsftimeList[] =
4773   "internal/wchar_core.h\0";
4775  *  Machine/OS name selection pattern
4776  */
4777 tSCC* apzIrix_WcsftimeMachs[] = {
4778         "mips-sgi-irix6.5",
4779         (const char*)NULL };
4782  *  content selection pattern - do fix if pattern found
4783  */
4784 tSCC zIrix_WcsftimeSelect0[] =
4785        "#if _NO_XOPEN5\n\
4786 (extern size_t[ \t]+wcsftime.*const char *.*)";
4788 #define    IRIX_WCSFTIME_TEST_CT  1
4789 static tTestDesc aIrix_WcsftimeTests[] = {
4790   { TT_EGREP,    zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4793  *  Fix Command Arguments for Irix_Wcsftime
4794  */
4795 static const char* apzIrix_WcsftimePatch[] = {
4796     "format",
4797     "#if _NO_XOPEN5 && !defined(__c99)\n\
4798 %1",
4799     (char*)NULL };
4801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4803  *  Description of Isc_Fmod fix
4804  */
4805 tSCC zIsc_FmodName[] =
4806      "isc_fmod";
4809  *  File name selection pattern
4810  */
4811 tSCC zIsc_FmodList[] =
4812   "math.h\0";
4814  *  Machine/OS name selection pattern
4815  */
4816 #define apzIsc_FmodMachs (const char**)NULL
4819  *  content selection pattern - do fix if pattern found
4820  */
4821 tSCC zIsc_FmodSelect0[] =
4822        "fmod\\(double\\)";
4824 #define    ISC_FMOD_TEST_CT  1
4825 static tTestDesc aIsc_FmodTests[] = {
4826   { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
4829  *  Fix Command Arguments for Isc_Fmod
4830  */
4831 static const char* apzIsc_FmodPatch[] = {
4832     "format",
4833     "fmod(double, double)",
4834     (char*)NULL };
4836 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4838  *  Description of Isc_Omits_With_Stdc fix
4839  */
4840 tSCC zIsc_Omits_With_StdcName[] =
4841      "isc_omits_with_stdc";
4844  *  File name selection pattern
4845  */
4846 tSCC zIsc_Omits_With_StdcList[] =
4847   "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4849  *  Machine/OS name selection pattern
4850  */
4851 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4854  *  content selection pattern - do fix if pattern found
4855  */
4856 tSCC zIsc_Omits_With_StdcSelect0[] =
4857        "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4859 #define    ISC_OMITS_WITH_STDC_TEST_CT  1
4860 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4861   { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4864  *  Fix Command Arguments for Isc_Omits_With_Stdc
4865  */
4866 static const char* apzIsc_Omits_With_StdcPatch[] = {
4867     "format",
4868     "!defined(_POSIX_SOURCE)",
4869     (char*)NULL };
4871 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4873  *  Description of Kandr_Concat fix
4874  */
4875 tSCC zKandr_ConcatName[] =
4876      "kandr_concat";
4879  *  File name selection pattern
4880  */
4881 tSCC zKandr_ConcatList[] =
4882   "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";
4884  *  Machine/OS name selection pattern
4885  */
4886 #define apzKandr_ConcatMachs (const char**)NULL
4889  *  content selection pattern - do fix if pattern found
4890  */
4891 tSCC zKandr_ConcatSelect0[] =
4892        "/\\*\\*/";
4894 #define    KANDR_CONCAT_TEST_CT  1
4895 static tTestDesc aKandr_ConcatTests[] = {
4896   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
4899  *  Fix Command Arguments for Kandr_Concat
4900  */
4901 static const char* apzKandr_ConcatPatch[] = {
4902     "format",
4903     "##",
4904     (char*)NULL };
4906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4908  *  Description of Linux_Ia64_Ucontext fix
4909  */
4910 tSCC zLinux_Ia64_UcontextName[] =
4911      "linux_ia64_ucontext";
4914  *  File name selection pattern
4915  */
4916 tSCC zLinux_Ia64_UcontextList[] =
4917   "sys/ucontext.h\0";
4919  *  Machine/OS name selection pattern
4920  */
4921 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4922         "ia64-*-linux*",
4923         (const char*)NULL };
4926  *  content selection pattern - do fix if pattern found
4927  */
4928 tSCC zLinux_Ia64_UcontextSelect0[] =
4929        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4931 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
4932 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4933   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4936  *  Fix Command Arguments for Linux_Ia64_Ucontext
4937  */
4938 static const char* apzLinux_Ia64_UcontextPatch[] = {
4939     "format",
4940     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4941     (char*)NULL };
4943 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4945  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
4946  */
4947 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4948      "lynxos_no_warning_in_sys_time_h";
4951  *  File name selection pattern
4952  */
4953 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4954   "sys/time.h\0";
4956  *  Machine/OS name selection pattern
4957  */
4958 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4961  *  content selection pattern - do fix if pattern found
4962  */
4963 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4964        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4966 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
4967 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4968   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4971  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4972  */
4973 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4974     "format",
4975     "",
4976     (char*)NULL };
4978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4980  *  Description of Lynxos_Missing_Putenv fix
4981  */
4982 tSCC zLynxos_Missing_PutenvName[] =
4983      "lynxos_missing_putenv";
4986  *  File name selection pattern
4987  */
4988 tSCC zLynxos_Missing_PutenvList[] =
4989   "stdlib.h\0";
4991  *  Machine/OS name selection pattern
4992  */
4993 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4994         "*-*-lynxos*",
4995         (const char*)NULL };
4998  *  content selection pattern - do fix if pattern found
4999  */
5000 tSCC zLynxos_Missing_PutenvSelect0[] =
5001        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5004  *  content bypass pattern - skip fix if pattern found
5005  */
5006 tSCC zLynxos_Missing_PutenvBypass0[] =
5007        "putenv[ \\t]*\\(";
5009 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
5010 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5011   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5012   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5015  *  Fix Command Arguments for Lynxos_Missing_Putenv
5016  */
5017 static const char* apzLynxos_Missing_PutenvPatch[] = {
5018     "format",
5019     "%0\n\
5020 extern int putenv\t\t\t\t_AP((char *));",
5021     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5022     (char*)NULL };
5024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5026  *  Description of Machine_Ansi_H_Va_List fix
5027  */
5028 tSCC zMachine_Ansi_H_Va_ListName[] =
5029      "machine_ansi_h_va_list";
5032  *  File name selection pattern
5033  */
5034 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5036  *  Machine/OS name selection pattern
5037  */
5038 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5041  *  content selection pattern - do fix if pattern found
5042  */
5043 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5044        "define[ \t]+_BSD_VA_LIST_[ \t]";
5047  *  content bypass pattern - skip fix if pattern found
5048  */
5049 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5050        "__builtin_va_list";
5052 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5053 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5054   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5055   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5058  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5059  */
5060 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5061     "format",
5062     "%1__builtin_va_list",
5063     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5064     (char*)NULL };
5066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5068  *  Description of Machine_Name fix
5069  */
5070 tSCC zMachine_NameName[] =
5071      "machine_name";
5074  *  File name selection pattern
5075  */
5076 #define zMachine_NameList (char*)NULL
5078  *  Machine/OS name selection pattern
5079  */
5080 #define apzMachine_NameMachs (const char**)NULL
5083  *  perform the C function call test
5084  */
5085 tSCC zMachine_NameFTst0[] = "machine_name";
5087 #define    MACHINE_NAME_TEST_CT  1
5088 static tTestDesc aMachine_NameTests[] = {
5089   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5092  *  Fix Command Arguments for Machine_Name
5093  */
5094 static const char* apzMachine_NamePatch[] = {
5095     "machine_name",
5096     (char*)NULL };
5098 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5100  *  Description of Math_Exception fix
5101  */
5102 tSCC zMath_ExceptionName[] =
5103      "math_exception";
5106  *  File name selection pattern
5107  */
5108 tSCC zMath_ExceptionList[] =
5109   "math.h\0";
5111  *  Machine/OS name selection pattern
5112  */
5113 #define apzMath_ExceptionMachs (const char**)NULL
5116  *  content selection pattern - do fix if pattern found
5117  */
5118 tSCC zMath_ExceptionSelect0[] =
5119        "struct exception";
5122  *  content bypass pattern - skip fix if pattern found
5123  */
5124 tSCC zMath_ExceptionBypass0[] =
5125        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5127 #define    MATH_EXCEPTION_TEST_CT  2
5128 static tTestDesc aMath_ExceptionTests[] = {
5129   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5130   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5133  *  Fix Command Arguments for Math_Exception
5134  */
5135 static const char* apzMath_ExceptionPatch[] = {
5136     "wrap",
5137     "#ifdef __cplusplus\n\
5138 #define exception __math_exception\n\
5139 #endif\n",
5140     "#ifdef __cplusplus\n\
5141 #undef exception\n\
5142 #endif\n",
5143     (char*)NULL };
5145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5147  *  Description of Math_Huge_Val_From_Dbl_Max fix
5148  */
5149 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5150      "math_huge_val_from_dbl_max";
5153  *  File name selection pattern
5154  */
5155 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5156   "math.h\0";
5158  *  Machine/OS name selection pattern
5159  */
5160 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5163  *  content selection pattern - do fix if pattern found
5164  */
5165 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5166        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5169  *  content bypass pattern - skip fix if pattern found
5170  */
5171 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5172        "define[ \t]+DBL_MAX";
5174 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
5175 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5176   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5177   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5180  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5181  */
5182 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5183     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5184 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5185 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5186 \telse cat\n\
5187 \tfi",
5188     (char*)NULL };
5190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5192  *  Description of Nested_Auth_Des fix
5193  */
5194 tSCC zNested_Auth_DesName[] =
5195      "nested_auth_des";
5198  *  File name selection pattern
5199  */
5200 tSCC zNested_Auth_DesList[] =
5201   "rpc/rpc.h\0";
5203  *  Machine/OS name selection pattern
5204  */
5205 #define apzNested_Auth_DesMachs (const char**)NULL
5208  *  content selection pattern - do fix if pattern found
5209  */
5210 tSCC zNested_Auth_DesSelect0[] =
5211        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5213 #define    NESTED_AUTH_DES_TEST_CT  1
5214 static tTestDesc aNested_Auth_DesTests[] = {
5215   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5218  *  Fix Command Arguments for Nested_Auth_Des
5219  */
5220 static const char* apzNested_Auth_DesPatch[] = {
5221     "format",
5222     "%1*/ /*",
5223     (char*)NULL };
5225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5227  *  Description of Nested_Sys_Limits fix
5228  */
5229 tSCC zNested_Sys_LimitsName[] =
5230      "nested_sys_limits";
5233  *  File name selection pattern
5234  */
5235 tSCC zNested_Sys_LimitsList[] =
5236   "sys/limits.h\0";
5238  *  Machine/OS name selection pattern
5239  */
5240 #define apzNested_Sys_LimitsMachs (const char**)NULL
5243  *  content selection pattern - do fix if pattern found
5244  */
5245 tSCC zNested_Sys_LimitsSelect0[] =
5246        "CHILD_MAX";
5248 #define    NESTED_SYS_LIMITS_TEST_CT  1
5249 static tTestDesc aNested_Sys_LimitsTests[] = {
5250   { TT_EGREP,    zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
5253  *  Fix Command Arguments for Nested_Sys_Limits
5254  */
5255 static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
5256     "-e", "/CHILD_MAX/s,/\\* Max, Max,",
5257     "-e", "/OPEN_MAX/s,/\\* Max, Max,",
5258     (char*)NULL };
5260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5262  *  Description of Netbsd_C99_Inline_1 fix
5263  */
5264 tSCC zNetbsd_C99_Inline_1Name[] =
5265      "netbsd_c99_inline_1";
5268  *  File name selection pattern
5269  */
5270 tSCC zNetbsd_C99_Inline_1List[] =
5271   "signal.h\0";
5273  *  Machine/OS name selection pattern
5274  */
5275 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5276         "*-*-netbsd*",
5277         (const char*)NULL };
5280  *  content selection pattern - do fix if pattern found
5281  */
5282 tSCC zNetbsd_C99_Inline_1Select0[] =
5283        "extern __inline int";
5285 #define    NETBSD_C99_INLINE_1_TEST_CT  1
5286 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5287   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5290  *  Fix Command Arguments for Netbsd_C99_Inline_1
5291  */
5292 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5293     "format",
5294     "extern\n\
5295 #ifdef __GNUC_STDC_INLINE__\n\
5296 __attribute__((__gnu_inline__))\n\
5297 #endif\n\
5298 __inline int",
5299     (char*)NULL };
5301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5303  *  Description of Netbsd_C99_Inline_2 fix
5304  */
5305 tSCC zNetbsd_C99_Inline_2Name[] =
5306      "netbsd_c99_inline_2";
5309  *  File name selection pattern
5310  */
5311 tSCC zNetbsd_C99_Inline_2List[] =
5312   "signal.h\0";
5314  *  Machine/OS name selection pattern
5315  */
5316 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5317         "*-*-netbsd*",
5318         (const char*)NULL };
5321  *  content selection pattern - do fix if pattern found
5322  */
5323 tSCC zNetbsd_C99_Inline_2Select0[] =
5324        "#define _SIGINLINE extern __inline";
5326 #define    NETBSD_C99_INLINE_2_TEST_CT  1
5327 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5328   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5331  *  Fix Command Arguments for Netbsd_C99_Inline_2
5332  */
5333 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5334     "format",
5335     "#ifdef __GNUC_STDC_INLINE__\n\
5336 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5337 #else\n\
5338 %0\n\
5339 #endif",
5340     (char*)NULL };
5342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5344  *  Description of Netbsd_Extra_Semicolon fix
5345  */
5346 tSCC zNetbsd_Extra_SemicolonName[] =
5347      "netbsd_extra_semicolon";
5350  *  File name selection pattern
5351  */
5352 tSCC zNetbsd_Extra_SemicolonList[] =
5353   "sys/cdefs.h\0";
5355  *  Machine/OS name selection pattern
5356  */
5357 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5358         "*-*-netbsd*",
5359         (const char*)NULL };
5362  *  content selection pattern - do fix if pattern found
5363  */
5364 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5365        "#define[ \t]*__END_DECLS[ \t]*};";
5367 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
5368 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5369   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5372  *  Fix Command Arguments for Netbsd_Extra_Semicolon
5373  */
5374 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5375     "format",
5376     "#define __END_DECLS }",
5377     (char*)NULL };
5379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5381  *  Description of Newlib_Stdint_1 fix
5382  */
5383 tSCC zNewlib_Stdint_1Name[] =
5384      "newlib_stdint_1";
5387  *  File name selection pattern
5388  */
5389 tSCC zNewlib_Stdint_1List[] =
5390   "stdint.h\0";
5392  *  Machine/OS name selection pattern
5393  */
5394 #define apzNewlib_Stdint_1Machs (const char**)NULL
5397  *  content selection pattern - do fix if pattern found
5398  */
5399 tSCC zNewlib_Stdint_1Select0[] =
5400        "@todo - Add support for wint_t types";
5402 #define    NEWLIB_STDINT_1_TEST_CT  1
5403 static tTestDesc aNewlib_Stdint_1Tests[] = {
5404   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5407  *  Fix Command Arguments for Newlib_Stdint_1
5408  */
5409 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5410     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5411     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5412     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5413     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5414     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5415     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5416     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5417     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5418     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5419     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5420     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5421     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5422     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5423     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5424     (char*)NULL };
5426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5428  *  Description of Newlib_Stdint_2 fix
5429  */
5430 tSCC zNewlib_Stdint_2Name[] =
5431      "newlib_stdint_2";
5434  *  File name selection pattern
5435  */
5436 tSCC zNewlib_Stdint_2List[] =
5437   "stdint.h\0";
5439  *  Machine/OS name selection pattern
5440  */
5441 #define apzNewlib_Stdint_2Machs (const char**)NULL
5444  *  content selection pattern - do fix if pattern found
5445  */
5446 tSCC zNewlib_Stdint_2Select0[] =
5447        "@todo - Add support for wint_t types";
5449 #define    NEWLIB_STDINT_2_TEST_CT  1
5450 static tTestDesc aNewlib_Stdint_2Tests[] = {
5451   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5454  *  Fix Command Arguments for Newlib_Stdint_2
5455  */
5456 static const char* apzNewlib_Stdint_2Patch[] = {
5457     "format",
5458     "#define INTMAX_MAX __INTMAX_MAX__\n\
5459 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5460 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5461 #define WCHAR_MAX __WCHAR_MAX__\n\
5462 #define WCHAR_MIN __WCHAR_MIN__\n\
5463 #define WINT_MAX __WINT_MAX__\n\
5464 #define WINT_MIN __WINT_MIN__\n\n\
5465 %0",
5466     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5467     (char*)NULL };
5469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5471  *  Description of Next_Math_Prefix fix
5472  */
5473 tSCC zNext_Math_PrefixName[] =
5474      "next_math_prefix";
5477  *  File name selection pattern
5478  */
5479 tSCC zNext_Math_PrefixList[] =
5480   "ansi/math.h\0";
5482  *  Machine/OS name selection pattern
5483  */
5484 #define apzNext_Math_PrefixMachs (const char**)NULL
5487  *  content selection pattern - do fix if pattern found
5488  */
5489 tSCC zNext_Math_PrefixSelect0[] =
5490        "^extern[ \t]+double[ \t]+__const__[ \t]";
5492 #define    NEXT_MATH_PREFIX_TEST_CT  1
5493 static tTestDesc aNext_Math_PrefixTests[] = {
5494   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5497  *  Fix Command Arguments for Next_Math_Prefix
5498  */
5499 static const char* apzNext_Math_PrefixPatch[] = {
5500     "format",
5501     "extern double %1(",
5502     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5503     (char*)NULL };
5505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5507  *  Description of Next_Template fix
5508  */
5509 tSCC zNext_TemplateName[] =
5510      "next_template";
5513  *  File name selection pattern
5514  */
5515 tSCC zNext_TemplateList[] =
5516   "bsd/libc.h\0";
5518  *  Machine/OS name selection pattern
5519  */
5520 #define apzNext_TemplateMachs (const char**)NULL
5523  *  content selection pattern - do fix if pattern found
5524  */
5525 tSCC zNext_TemplateSelect0[] =
5526        "[ \t]template\\)";
5528 #define    NEXT_TEMPLATE_TEST_CT  1
5529 static tTestDesc aNext_TemplateTests[] = {
5530   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
5533  *  Fix Command Arguments for Next_Template
5534  */
5535 static const char* apzNext_TemplatePatch[] = {
5536     "format",
5537     "(%1)",
5538     "\\(([^)]*)[ \t]template\\)",
5539     (char*)NULL };
5541 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5543  *  Description of Next_Volitile fix
5544  */
5545 tSCC zNext_VolitileName[] =
5546      "next_volitile";
5549  *  File name selection pattern
5550  */
5551 tSCC zNext_VolitileList[] =
5552   "ansi/stdlib.h\0";
5554  *  Machine/OS name selection pattern
5555  */
5556 #define apzNext_VolitileMachs (const char**)NULL
5559  *  content selection pattern - do fix if pattern found
5560  */
5561 tSCC zNext_VolitileSelect0[] =
5562        "^extern[ \t]+volatile[ \t]+void[ \t]";
5564 #define    NEXT_VOLITILE_TEST_CT  1
5565 static tTestDesc aNext_VolitileTests[] = {
5566   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5569  *  Fix Command Arguments for Next_Volitile
5570  */
5571 static const char* apzNext_VolitilePatch[] = {
5572     "format",
5573     "extern void %1(",
5574     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5575     (char*)NULL };
5577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5579  *  Description of Next_Wait_Union fix
5580  */
5581 tSCC zNext_Wait_UnionName[] =
5582      "next_wait_union";
5585  *  File name selection pattern
5586  */
5587 tSCC zNext_Wait_UnionList[] =
5588   "sys/wait.h\0";
5590  *  Machine/OS name selection pattern
5591  */
5592 #define apzNext_Wait_UnionMachs (const char**)NULL
5595  *  content selection pattern - do fix if pattern found
5596  */
5597 tSCC zNext_Wait_UnionSelect0[] =
5598        "wait\\(union wait";
5600 #define    NEXT_WAIT_UNION_TEST_CT  1
5601 static tTestDesc aNext_Wait_UnionTests[] = {
5602   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5605  *  Fix Command Arguments for Next_Wait_Union
5606  */
5607 static const char* apzNext_Wait_UnionPatch[] = {
5608     "format",
5609     "wait(void",
5610     (char*)NULL };
5612 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5614  *  Description of Nodeent_Syntax fix
5615  */
5616 tSCC zNodeent_SyntaxName[] =
5617      "nodeent_syntax";
5620  *  File name selection pattern
5621  */
5622 tSCC zNodeent_SyntaxList[] =
5623   "netdnet/dnetdb.h\0";
5625  *  Machine/OS name selection pattern
5626  */
5627 #define apzNodeent_SyntaxMachs (const char**)NULL
5630  *  content selection pattern - do fix if pattern found
5631  */
5632 tSCC zNodeent_SyntaxSelect0[] =
5633        "char[ \t]*\\*na_addr[ \t]*$";
5635 #define    NODEENT_SYNTAX_TEST_CT  1
5636 static tTestDesc aNodeent_SyntaxTests[] = {
5637   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5640  *  Fix Command Arguments for Nodeent_Syntax
5641  */
5642 static const char* apzNodeent_SyntaxPatch[] = {
5643     "format",
5644     "%0;",
5645     (char*)NULL };
5647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5649  *  Description of Openbsd_Null_Definition fix
5650  */
5651 tSCC zOpenbsd_Null_DefinitionName[] =
5652      "openbsd_null_definition";
5655  *  File name selection pattern
5656  */
5657 tSCC zOpenbsd_Null_DefinitionList[] =
5658   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5660  *  Machine/OS name selection pattern
5661  */
5662 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5663         "*-*-openbsd*",
5664         (const char*)NULL };
5667  *  content selection pattern - do fix if pattern found
5668  */
5669 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5670        "__GNUG__";
5672 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
5673 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5674   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5677  *  Fix Command Arguments for Openbsd_Null_Definition
5678  */
5679 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5680     "format",
5681     "#ifndef NULL\n\
5682 #ifdef __cplusplus\n\
5683 #ifdef __GNUG__\n\
5684 #define NULL\t__null\n\
5685 #else\t /* ! __GNUG__  */\n\
5686 #define NULL\t0L\n\
5687 #endif\t /* __GNUG__  */\n\
5688 #else\t /* ! __cplusplus  */\n\
5689 #define NULL\t((void *)0)\n\
5690 #endif\t /* __cplusplus  */\n\
5691 #endif\t /* !NULL  */",
5692     "^#ifndef[ \t]*NULL\n\
5693 ^#ifdef[ \t]*__GNUG__\n\
5694 ^#define[ \t]*NULL[ \t]*__null\n\
5695 ^#else\n\
5696 ^#define[ \t]*NULL[ \t]*0L\n\
5697 ^#endif\n\
5698 ^#endif",
5699     (char*)NULL };
5701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5703  *  Description of Obstack_Lvalue_Cast fix
5704  */
5705 tSCC zObstack_Lvalue_CastName[] =
5706      "obstack_lvalue_cast";
5709  *  File name selection pattern
5710  */
5711 tSCC zObstack_Lvalue_CastList[] =
5712   "obstack.h\0";
5714  *  Machine/OS name selection pattern
5715  */
5716 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5719  *  content selection pattern - do fix if pattern found
5720  */
5721 tSCC zObstack_Lvalue_CastSelect0[] =
5722        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5724 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5725 static tTestDesc aObstack_Lvalue_CastTests[] = {
5726   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5729  *  Fix Command Arguments for Obstack_Lvalue_Cast
5730  */
5731 static const char* apzObstack_Lvalue_CastPatch[] = {
5732     "format",
5733     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5734     (char*)NULL };
5736 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5738  *  Description of Openbsd_Va_Start fix
5739  */
5740 tSCC zOpenbsd_Va_StartName[] =
5741      "openbsd_va_start";
5744  *  File name selection pattern
5745  */
5746 tSCC zOpenbsd_Va_StartList[] =
5747   "stdarg.h\0";
5749  *  Machine/OS name selection pattern
5750  */
5751 tSCC* apzOpenbsd_Va_StartMachs[] = {
5752         "*-*-openbsd*",
5753         (const char*)NULL };
5756  *  content selection pattern - do fix if pattern found
5757  */
5758 tSCC zOpenbsd_Va_StartSelect0[] =
5759        "__builtin_stdarg_start";
5761 #define    OPENBSD_VA_START_TEST_CT  1
5762 static tTestDesc aOpenbsd_Va_StartTests[] = {
5763   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5766  *  Fix Command Arguments for Openbsd_Va_Start
5767  */
5768 static const char* apzOpenbsd_Va_StartPatch[] = {
5769     "format",
5770     "__builtin_va_start",
5771     (char*)NULL };
5773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5775  *  Description of Osf_Namespace_A fix
5776  */
5777 tSCC zOsf_Namespace_AName[] =
5778      "osf_namespace_a";
5781  *  File name selection pattern
5782  */
5783 tSCC zOsf_Namespace_AList[] =
5784   "reg_types.h\0sys/lc_core.h\0";
5786  *  Machine/OS name selection pattern
5787  */
5788 #define apzOsf_Namespace_AMachs (const char**)NULL
5791  *  perform the 'test' shell command - do fix on success
5792  */
5793 tSCC zOsf_Namespace_ATest0[] =
5794        " -r reg_types.h";
5795 tSCC zOsf_Namespace_ATest1[] =
5796        " -r sys/lc_core.h";
5797 tSCC zOsf_Namespace_ATest2[] =
5798        " -n \"`grep '} regex_t;' reg_types.h`\"";
5799 tSCC zOsf_Namespace_ATest3[] =
5800        " -z \"`grep __regex_t regex.h`\"";
5802 #define    OSF_NAMESPACE_A_TEST_CT  4
5803 static tTestDesc aOsf_Namespace_ATests[] = {
5804   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5805   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5806   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5807   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5810  *  Fix Command Arguments for Osf_Namespace_A
5811  */
5812 static const char* apzOsf_Namespace_APatch[] = {
5813     "format",
5814     "__%0",
5815     "reg(ex|off|match)_t",
5816     (char*)NULL };
5818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5820  *  Description of Osf_Namespace_C fix
5821  */
5822 tSCC zOsf_Namespace_CName[] =
5823      "osf_namespace_c";
5826  *  File name selection pattern
5827  */
5828 tSCC zOsf_Namespace_CList[] =
5829   "regex.h\0";
5831  *  Machine/OS name selection pattern
5832  */
5833 #define apzOsf_Namespace_CMachs (const char**)NULL
5836  *  content selection pattern - do fix if pattern found
5837  */
5838 tSCC zOsf_Namespace_CSelect0[] =
5839        "#include <reg_types.h>.*";
5842  *  perform the 'test' shell command - do fix on success
5843  */
5844 tSCC zOsf_Namespace_CTest0[] =
5845        " -r reg_types.h";
5846 tSCC zOsf_Namespace_CTest1[] =
5847        " -r sys/lc_core.h";
5848 tSCC zOsf_Namespace_CTest2[] =
5849        " -n \"`grep '} regex_t;' reg_types.h`\"";
5850 tSCC zOsf_Namespace_CTest3[] =
5851        " -z \"`grep __regex_t regex.h`\"";
5853 #define    OSF_NAMESPACE_C_TEST_CT  5
5854 static tTestDesc aOsf_Namespace_CTests[] = {
5855   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
5856   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
5857   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
5858   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
5859   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5862  *  Fix Command Arguments for Osf_Namespace_C
5863  */
5864 static const char* apzOsf_Namespace_CPatch[] = {
5865     "format",
5866     "%0\n\
5867 typedef __regex_t\tregex_t;\n\
5868 typedef __regoff_t\tregoff_t;\n\
5869 typedef __regmatch_t\tregmatch_t;",
5870     (char*)NULL };
5872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5874  *  Description of Pthread_Incomplete_Struct_Argument fix
5875  */
5876 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5877      "pthread_incomplete_struct_argument";
5880  *  File name selection pattern
5881  */
5882 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5883   "pthread.h\0";
5885  *  Machine/OS name selection pattern
5886  */
5887 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5890  *  content selection pattern - do fix if pattern found
5891  */
5892 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5893        "struct __jmp_buf_tag";
5895 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
5896 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5897   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5900  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5901  */
5902 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5903     "format",
5904     "%1 *%2%3",
5905     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5906     (char*)NULL };
5908 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5910  *  Description of Read_Ret_Type fix
5911  */
5912 tSCC zRead_Ret_TypeName[] =
5913      "read_ret_type";
5916  *  File name selection pattern
5917  */
5918 tSCC zRead_Ret_TypeList[] =
5919   "stdio.h\0";
5921  *  Machine/OS name selection pattern
5922  */
5923 #define apzRead_Ret_TypeMachs (const char**)NULL
5926  *  content selection pattern - do fix if pattern found
5927  */
5928 tSCC zRead_Ret_TypeSelect0[] =
5929        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5931 #define    READ_RET_TYPE_TEST_CT  1
5932 static tTestDesc aRead_Ret_TypeTests[] = {
5933   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5936  *  Fix Command Arguments for Read_Ret_Type
5937  */
5938 static const char* apzRead_Ret_TypePatch[] = {
5939     "format",
5940     "extern unsigned int fread(), fwrite();\n\
5941 %1%2",
5942     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5943     (char*)NULL };
5945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5947  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
5948  */
5949 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5950      "rpc_xdr_lvalue_cast_a";
5953  *  File name selection pattern
5954  */
5955 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5956   "rpc/xdr.h\0";
5958  *  Machine/OS name selection pattern
5959  */
5960 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5963  *  content selection pattern - do fix if pattern found
5964  */
5965 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5966        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5967 .*__extension__.*";
5969 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5970 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5971   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5974  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5975  */
5976 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5977     "format",
5978     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5979     (char*)NULL };
5981 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5983  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5984  */
5985 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5986      "rpc_xdr_lvalue_cast_b";
5989  *  File name selection pattern
5990  */
5991 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5992   "rpc/xdr.h\0";
5994  *  Machine/OS name selection pattern
5995  */
5996 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5999  *  content selection pattern - do fix if pattern found
6000  */
6001 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6002        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6003 .*__extension__.*";
6005 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
6006 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6007   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6010  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6011  */
6012 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6013     "format",
6014     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6015     (char*)NULL };
6017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6019  *  Description of Rs6000_Double fix
6020  */
6021 tSCC zRs6000_DoubleName[] =
6022      "rs6000_double";
6025  *  File name selection pattern
6026  */
6027 tSCC zRs6000_DoubleList[] =
6028   "math.h\0";
6030  *  Machine/OS name selection pattern
6031  */
6032 #define apzRs6000_DoubleMachs (const char**)NULL
6035  *  content selection pattern - do fix if pattern found
6036  */
6037 tSCC zRs6000_DoubleSelect0[] =
6038        "[^a-zA-Z_]class\\(";
6040 #define    RS6000_DOUBLE_TEST_CT  1
6041 static tTestDesc aRs6000_DoubleTests[] = {
6042   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6045  *  Fix Command Arguments for Rs6000_Double
6046  */
6047 static const char* apzRs6000_DoublePatch[] = {
6048     "format",
6049     "#ifndef __cplusplus\n\
6050 %0\n\
6051 #endif",
6052     "^.*[^a-zA-Z_]class\\(.*",
6053     (char*)NULL };
6055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6057  *  Description of Rs6000_Fchmod fix
6058  */
6059 tSCC zRs6000_FchmodName[] =
6060      "rs6000_fchmod";
6063  *  File name selection pattern
6064  */
6065 tSCC zRs6000_FchmodList[] =
6066   "sys/stat.h\0";
6068  *  Machine/OS name selection pattern
6069  */
6070 #define apzRs6000_FchmodMachs (const char**)NULL
6073  *  content selection pattern - do fix if pattern found
6074  */
6075 tSCC zRs6000_FchmodSelect0[] =
6076        "fchmod\\(char \\*";
6078 #define    RS6000_FCHMOD_TEST_CT  1
6079 static tTestDesc aRs6000_FchmodTests[] = {
6080   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6083  *  Fix Command Arguments for Rs6000_Fchmod
6084  */
6085 static const char* apzRs6000_FchmodPatch[] = {
6086     "format",
6087     "fchmod(int",
6088     (char*)NULL };
6090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6092  *  Description of Rs6000_Param fix
6093  */
6094 tSCC zRs6000_ParamName[] =
6095      "rs6000_param";
6098  *  File name selection pattern
6099  */
6100 tSCC zRs6000_ParamList[] =
6101   "stdio.h\0unistd.h\0";
6103  *  Machine/OS name selection pattern
6104  */
6105 #define apzRs6000_ParamMachs (const char**)NULL
6108  *  content selection pattern - do fix if pattern found
6109  */
6110 tSCC zRs6000_ParamSelect0[] =
6111        "rename\\(const char \\*old, const char \\*new\\)";
6113 #define    RS6000_PARAM_TEST_CT  1
6114 static tTestDesc aRs6000_ParamTests[] = {
6115   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6118  *  Fix Command Arguments for Rs6000_Param
6119  */
6120 static const char* apzRs6000_ParamPatch[] = {
6121     "format",
6122     "rename(const char *_old, const char *_new)",
6123     (char*)NULL };
6125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6127  *  Description of Sco_Math fix
6128  */
6129 tSCC zSco_MathName[] =
6130      "sco_math";
6133  *  File name selection pattern
6134  */
6135 tSCC zSco_MathList[] =
6136   "math.h\0*/math.h\0";
6138  *  Machine/OS name selection pattern
6139  */
6140 #define apzSco_MathMachs (const char**)NULL
6143  *  content selection pattern - do fix if pattern found
6144  */
6145 tSCC zSco_MathSelect0[] =
6146        "inline double abs";
6149  *  content bypass pattern - skip fix if pattern found
6150  */
6151 tSCC zSco_MathBypass0[] =
6152        "__GNUG__";
6154 #define    SCO_MATH_TEST_CT  2
6155 static tTestDesc aSco_MathTests[] = {
6156   { TT_NEGREP,   zSco_MathBypass0, (regex_t*)NULL },
6157   { TT_EGREP,    zSco_MathSelect0, (regex_t*)NULL }, };
6160  *  Fix Command Arguments for Sco_Math
6161  */
6162 static const char* apzSco_MathPatch[] = { sed_cmd_z,
6163     "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
6164 #ifndef __GNUC__\n",
6165     "-e", "/.*__builtin_generic/a\\\n\
6166 #else\\\n\
6167 #define __fp_class(a) \\\\\\\n\
6168   __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
6169    __fpclassifyl(a), \\\\\\\n\
6170     __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
6171       __fpclassifyf(a),__fpclassify(a)))\\\n\
6172 #endif",
6173     "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
6174 #ifndef __GNUC__\n",
6175     "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
6176 #endif /* ! __GNUC__ */",
6177     (char*)NULL };
6179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6181  *  Description of Solaris_Complex fix
6182  */
6183 tSCC zSolaris_ComplexName[] =
6184      "solaris_complex";
6187  *  File name selection pattern
6188  */
6189 tSCC zSolaris_ComplexList[] =
6190   "complex.h\0";
6192  *  Machine/OS name selection pattern
6193  */
6194 tSCC* apzSolaris_ComplexMachs[] = {
6195         "*-*-solaris2.*",
6196         (const char*)NULL };
6199  *  content selection pattern - do fix if pattern found
6200  */
6201 tSCC zSolaris_ComplexSelect0[] =
6202        "#define[ \t]_Complex_I[ \t]_Complex_I";
6204 #define    SOLARIS_COMPLEX_TEST_CT  1
6205 static tTestDesc aSolaris_ComplexTests[] = {
6206   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6209  *  Fix Command Arguments for Solaris_Complex
6210  */
6211 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6212     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t\\(__extension__ 1.0iF\\)/",
6213     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6214     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6215     "-e", "s/#define[ \t]I[ \t]\\+_Imaginary_I/#define\tI\t\t_Complex_I/",
6216     (char*)NULL };
6218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6220  *  Description of Solaris_Math_1 fix
6221  */
6222 tSCC zSolaris_Math_1Name[] =
6223      "solaris_math_1";
6226  *  File name selection pattern
6227  */
6228 tSCC zSolaris_Math_1List[] =
6229   "iso/math_c99.h\0";
6231  *  Machine/OS name selection pattern
6232  */
6233 #define apzSolaris_Math_1Machs (const char**)NULL
6236  *  content selection pattern - do fix if pattern found
6237  */
6238 tSCC zSolaris_Math_1Select0[] =
6239        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6242  *  content bypass pattern - skip fix if pattern found
6243  */
6244 tSCC zSolaris_Math_1Bypass0[] =
6245        "__GNUC__";
6247 #define    SOLARIS_MATH_1_TEST_CT  2
6248 static tTestDesc aSolaris_Math_1Tests[] = {
6249   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
6250   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
6253  *  Fix Command Arguments for Solaris_Math_1
6254  */
6255 static const char* apzSolaris_Math_1Patch[] = {
6256     "format",
6257     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6258     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6259     (char*)NULL };
6261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6263  *  Description of Solaris_Math_2 fix
6264  */
6265 tSCC zSolaris_Math_2Name[] =
6266      "solaris_math_2";
6269  *  File name selection pattern
6270  */
6271 tSCC zSolaris_Math_2List[] =
6272   "iso/math_c99.h\0";
6274  *  Machine/OS name selection pattern
6275  */
6276 #define apzSolaris_Math_2Machs (const char**)NULL
6279  *  content selection pattern - do fix if pattern found
6280  */
6281 tSCC zSolaris_Math_2Select0[] =
6282        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6285  *  content bypass pattern - skip fix if pattern found
6286  */
6287 tSCC zSolaris_Math_2Bypass0[] =
6288        "__GNUC__";
6290 #define    SOLARIS_MATH_2_TEST_CT  2
6291 static tTestDesc aSolaris_Math_2Tests[] = {
6292   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
6293   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
6296  *  Fix Command Arguments for Solaris_Math_2
6297  */
6298 static const char* apzSolaris_Math_2Patch[] = {
6299     "format",
6300     "#define\tINFINITY\t(__builtin_inff())",
6301     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6302     (char*)NULL };
6304 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6306  *  Description of Solaris_Math_3 fix
6307  */
6308 tSCC zSolaris_Math_3Name[] =
6309      "solaris_math_3";
6312  *  File name selection pattern
6313  */
6314 tSCC zSolaris_Math_3List[] =
6315   "iso/math_c99.h\0";
6317  *  Machine/OS name selection pattern
6318  */
6319 #define apzSolaris_Math_3Machs (const char**)NULL
6322  *  content selection pattern - do fix if pattern found
6323  */
6324 tSCC zSolaris_Math_3Select0[] =
6325        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6328  *  content bypass pattern - skip fix if pattern found
6329  */
6330 tSCC zSolaris_Math_3Bypass0[] =
6331        "__GNUC__";
6333 #define    SOLARIS_MATH_3_TEST_CT  2
6334 static tTestDesc aSolaris_Math_3Tests[] = {
6335   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
6336   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
6339  *  Fix Command Arguments for Solaris_Math_3
6340  */
6341 static const char* apzSolaris_Math_3Patch[] = {
6342     "format",
6343     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6344     "^#define[ \t]+NAN[ \t]+__builtin_nan",
6345     (char*)NULL };
6347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6349  *  Description of Solaris_Math_4 fix
6350  */
6351 tSCC zSolaris_Math_4Name[] =
6352      "solaris_math_4";
6355  *  File name selection pattern
6356  */
6357 tSCC zSolaris_Math_4List[] =
6358   "iso/math_c99.h\0";
6360  *  Machine/OS name selection pattern
6361  */
6362 #define apzSolaris_Math_4Machs (const char**)NULL
6365  *  content selection pattern - do fix if pattern found
6366  */
6367 tSCC zSolaris_Math_4Select0[] =
6368        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6371  *  content bypass pattern - skip fix if pattern found
6372  */
6373 tSCC zSolaris_Math_4Bypass0[] =
6374        "__GNUC__";
6376 #define    SOLARIS_MATH_4_TEST_CT  2
6377 static tTestDesc aSolaris_Math_4Tests[] = {
6378   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
6379   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
6382  *  Fix Command Arguments for Solaris_Math_4
6383  */
6384 static const char* apzSolaris_Math_4Patch[] = {
6385     "format",
6386     "#define\tfpclassify(x) \\\n\
6387   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6388     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6389     (char*)NULL };
6391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6393  *  Description of Solaris_Math_8 fix
6394  */
6395 tSCC zSolaris_Math_8Name[] =
6396      "solaris_math_8";
6399  *  File name selection pattern
6400  */
6401 tSCC zSolaris_Math_8List[] =
6402   "iso/math_c99.h\0";
6404  *  Machine/OS name selection pattern
6405  */
6406 #define apzSolaris_Math_8Machs (const char**)NULL
6409  *  content selection pattern - do fix if pattern found
6410  */
6411 tSCC zSolaris_Math_8Select0[] =
6412        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6415  *  content bypass pattern - skip fix if pattern found
6416  */
6417 tSCC zSolaris_Math_8Bypass0[] =
6418        "__GNUC__";
6420 #define    SOLARIS_MATH_8_TEST_CT  2
6421 static tTestDesc aSolaris_Math_8Tests[] = {
6422   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
6423   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
6426  *  Fix Command Arguments for Solaris_Math_8
6427  */
6428 static const char* apzSolaris_Math_8Patch[] = {
6429     "format",
6430     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6431 \t\t\t   ? __builtin_signbitf(x) \\\n\
6432 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6433 \t\t\t     ? __builtin_signbitl(x) \\\n\
6434 \t\t\t     : __builtin_signbit(x))",
6435     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6436     (char*)NULL };
6438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6440  *  Description of Solaris_Math_9 fix
6441  */
6442 tSCC zSolaris_Math_9Name[] =
6443      "solaris_math_9";
6446  *  File name selection pattern
6447  */
6448 tSCC zSolaris_Math_9List[] =
6449   "iso/math_c99.h\0";
6451  *  Machine/OS name selection pattern
6452  */
6453 #define apzSolaris_Math_9Machs (const char**)NULL
6456  *  content selection pattern - do fix if pattern found
6457  */
6458 tSCC zSolaris_Math_9Select0[] =
6459        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6462  *  content bypass pattern - skip fix if pattern found
6463  */
6464 tSCC zSolaris_Math_9Bypass0[] =
6465        "__GNUC__";
6467 #define    SOLARIS_MATH_9_TEST_CT  2
6468 static tTestDesc aSolaris_Math_9Tests[] = {
6469   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
6470   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
6473  *  Fix Command Arguments for Solaris_Math_9
6474  */
6475 static const char* apzSolaris_Math_9Patch[] = {
6476     "format",
6477     "#define\t%1(x, y)%2__builtin_%1(x, y)",
6478     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6479     (char*)NULL };
6481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6483  *  Description of Solaris_Math_10 fix
6484  */
6485 tSCC zSolaris_Math_10Name[] =
6486      "solaris_math_10";
6489  *  File name selection pattern
6490  */
6491 tSCC zSolaris_Math_10List[] =
6492   "iso/math_c99.h\0";
6494  *  Machine/OS name selection pattern
6495  */
6496 #define apzSolaris_Math_10Machs (const char**)NULL
6499  *  content selection pattern - do fix if pattern found
6500  */
6501 tSCC zSolaris_Math_10Select0[] =
6502        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6504 #define    SOLARIS_MATH_10_TEST_CT  1
6505 static tTestDesc aSolaris_Math_10Tests[] = {
6506   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
6509  *  Fix Command Arguments for Solaris_Math_10
6510  */
6511 static const char* apzSolaris_Math_10Patch[] = {
6512     "format",
6513     "#define\tisinf(x) __builtin_isinf(x)",
6514     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6515 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6516 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6517 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6518     (char*)NULL };
6520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6522  *  Description of Solaris_Mutex_Init_2 fix
6523  */
6524 tSCC zSolaris_Mutex_Init_2Name[] =
6525      "solaris_mutex_init_2";
6528  *  File name selection pattern
6529  */
6530 tSCC zSolaris_Mutex_Init_2List[] =
6531   "pthread.h\0";
6533  *  Machine/OS name selection pattern
6534  */
6535 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6536         "*-*-solaris2.[0-9]",
6537         "*-*-solaris2.[0-9][!0-9]*",
6538         (const char*)NULL };
6541  *  content selection pattern - do fix if pattern found
6542  */
6543 tSCC zSolaris_Mutex_Init_2Select0[] =
6544        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6546 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
6547 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6548   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6551  *  Fix Command Arguments for Solaris_Mutex_Init_2
6552  */
6553 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6554     "format",
6555     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6556 %0\n\
6557 #else\n\
6558 %1, {0}}%4\n\
6559 #endif",
6560     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6561 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6562     (char*)NULL };
6564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6566  *  Description of Solaris_Rwlock_Init_1 fix
6567  */
6568 tSCC zSolaris_Rwlock_Init_1Name[] =
6569      "solaris_rwlock_init_1";
6572  *  File name selection pattern
6573  */
6574 tSCC zSolaris_Rwlock_Init_1List[] =
6575   "pthread.h\0";
6577  *  Machine/OS name selection pattern
6578  */
6579 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6580         "*-*-solaris*",
6581         (const char*)NULL };
6584  *  content selection pattern - do fix if pattern found
6585  */
6586 tSCC zSolaris_Rwlock_Init_1Select0[] =
6587        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6589 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
6590 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6591   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6594  *  Fix Command Arguments for Solaris_Rwlock_Init_1
6595  */
6596 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6597     "format",
6598     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6599 %0\n\
6600 #else\n\
6601 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6602 #endif",
6603     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6604     (char*)NULL };
6606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6608  *  Description of Solaris_Once_Init_1 fix
6609  */
6610 tSCC zSolaris_Once_Init_1Name[] =
6611      "solaris_once_init_1";
6614  *  File name selection pattern
6615  */
6616 tSCC zSolaris_Once_Init_1List[] =
6617   "pthread.h\0";
6619  *  Machine/OS name selection pattern
6620  */
6621 tSCC* apzSolaris_Once_Init_1Machs[] = {
6622         "*-*-solaris*",
6623         (const char*)NULL };
6626  *  content selection pattern - do fix if pattern found
6627  */
6628 tSCC zSolaris_Once_Init_1Select0[] =
6629        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6631 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6632 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6633   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6636  *  Fix Command Arguments for Solaris_Once_Init_1
6637  */
6638 static const char* apzSolaris_Once_Init_1Patch[] = {
6639     "format",
6640     "%1{%2}%3",
6641     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6642     (char*)NULL };
6644 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6646  *  Description of Solaris_Once_Init_2 fix
6647  */
6648 tSCC zSolaris_Once_Init_2Name[] =
6649      "solaris_once_init_2";
6652  *  File name selection pattern
6653  */
6654 tSCC zSolaris_Once_Init_2List[] =
6655   "pthread.h\0";
6657  *  Machine/OS name selection pattern
6658  */
6659 tSCC* apzSolaris_Once_Init_2Machs[] = {
6660         "*-*-solaris2.[0-9]",
6661         "*-*-solaris2.[0-9][!0-9]*",
6662         (const char*)NULL };
6665  *  content selection pattern - do fix if pattern found
6666  */
6667 tSCC zSolaris_Once_Init_2Select0[] =
6668        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6670 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
6671 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6672   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6675  *  Fix Command Arguments for Solaris_Once_Init_2
6676  */
6677 static const char* apzSolaris_Once_Init_2Patch[] = {
6678     "format",
6679     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6680 %0\n\
6681 #else\n\
6682 %1{0}, {0}, {0}, {%3}%4\n\
6683 #endif",
6684     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6685     (char*)NULL };
6687 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6689  *  Description of Solaris_Int_Const fix
6690  */
6691 tSCC zSolaris_Int_ConstName[] =
6692      "solaris_int_const";
6695  *  File name selection pattern
6696  */
6697 tSCC zSolaris_Int_ConstList[] =
6698   "sys/int_const.h\0";
6700  *  Machine/OS name selection pattern
6701  */
6702 #define apzSolaris_Int_ConstMachs (const char**)NULL
6705  *  content selection pattern - do fix if pattern found
6706  */
6707 tSCC zSolaris_Int_ConstSelect0[] =
6708        "@\\(#\\)int_const.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6710 #define    SOLARIS_INT_CONST_TEST_CT  1
6711 static tTestDesc aSolaris_Int_ConstTests[] = {
6712   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6715  *  Fix Command Arguments for Solaris_Int_Const
6716  */
6717 static const char* apzSolaris_Int_ConstPatch[] = {
6718     "format",
6719     "#define\tUINT8_C(c)\t(c)\n\
6720 %1\n\
6721 #define\tUINT16_C(c)\t(c)",
6722     "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6723 (/*.**/)\n\
6724 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*",
6725     (char*)NULL };
6727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6729  *  Description of Solaris_Int_Limits_1 fix
6730  */
6731 tSCC zSolaris_Int_Limits_1Name[] =
6732      "solaris_int_limits_1";
6735  *  File name selection pattern
6736  */
6737 tSCC zSolaris_Int_Limits_1List[] =
6738   "sys/int_limits.h\0";
6740  *  Machine/OS name selection pattern
6741  */
6742 #define apzSolaris_Int_Limits_1Machs (const char**)NULL
6745  *  content selection pattern - do fix if pattern found
6746  */
6747 tSCC zSolaris_Int_Limits_1Select0[] =
6748        "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6750 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
6751 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6752   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6755  *  Fix Command Arguments for Solaris_Int_Limits_1
6756  */
6757 static const char* apzSolaris_Int_Limits_1Patch[] = {
6758     "format",
6759     "#define\tUINT8_MAX\t(255)\n\
6760 #define\tUINT16_MAX\t(65535)",
6761     "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6762 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)",
6763     (char*)NULL };
6765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6767  *  Description of Solaris_Int_Limits_2 fix
6768  */
6769 tSCC zSolaris_Int_Limits_2Name[] =
6770      "solaris_int_limits_2";
6773  *  File name selection pattern
6774  */
6775 tSCC zSolaris_Int_Limits_2List[] =
6776   "sys/int_limits.h\0";
6778  *  Machine/OS name selection pattern
6779  */
6780 #define apzSolaris_Int_Limits_2Machs (const char**)NULL
6783  *  content selection pattern - do fix if pattern found
6784  */
6785 tSCC zSolaris_Int_Limits_2Select0[] =
6786        "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6788 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
6789 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6790   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6793  *  Fix Command Arguments for Solaris_Int_Limits_2
6794  */
6795 static const char* apzSolaris_Int_Limits_2Patch[] = {
6796     "format",
6797     "#define\t%1_FAST16_%2 %132_%2",
6798     "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*",
6799     (char*)NULL };
6801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6803  *  Description of Solaris_Int_Types fix
6804  */
6805 tSCC zSolaris_Int_TypesName[] =
6806      "solaris_int_types";
6809  *  File name selection pattern
6810  */
6811 tSCC zSolaris_Int_TypesList[] =
6812   "sys/int_types.h\0";
6814  *  Machine/OS name selection pattern
6815  */
6816 #define apzSolaris_Int_TypesMachs (const char**)NULL
6819  *  content selection pattern - do fix if pattern found
6820  */
6821 tSCC zSolaris_Int_TypesSelect0[] =
6822        "__STDC__ - 0 == 0";
6825  *  content bypass pattern - skip fix if pattern found
6826  */
6827 tSCC zSolaris_Int_TypesBypass0[] =
6828        "_LONGLONG_TYPE";
6830 #define    SOLARIS_INT_TYPES_TEST_CT  2
6831 static tTestDesc aSolaris_Int_TypesTests[] = {
6832   { TT_NEGREP,   zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6833   { TT_EGREP,    zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6836  *  Fix Command Arguments for Solaris_Int_Types
6837  */
6838 static const char* apzSolaris_Int_TypesPatch[] = {
6839     "format",
6840     "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6841     (char*)NULL };
6843 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6845  *  Description of Solaris_Stdio_Tag fix
6846  */
6847 tSCC zSolaris_Stdio_TagName[] =
6848      "solaris_stdio_tag";
6851  *  File name selection pattern
6852  */
6853 tSCC zSolaris_Stdio_TagList[] =
6854   "stdio_tag.h\0";
6856  *  Machine/OS name selection pattern
6857  */
6858 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6861  *  content selection pattern - do fix if pattern found
6862  */
6863 tSCC zSolaris_Stdio_TagSelect0[] =
6864        "__cplusplus < 54321L";
6867  *  content bypass pattern - skip fix if pattern found
6868  */
6869 tSCC zSolaris_Stdio_TagBypass0[] =
6870        "__GNUC__";
6872 #define    SOLARIS_STDIO_TAG_TEST_CT  2
6873 static tTestDesc aSolaris_Stdio_TagTests[] = {
6874   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6875   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6878  *  Fix Command Arguments for Solaris_Stdio_Tag
6879  */
6880 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
6881     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6882     (char*)NULL };
6884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6886  *  Description of Statsswtch fix
6887  */
6888 tSCC zStatsswtchName[] =
6889      "statsswtch";
6892  *  File name selection pattern
6893  */
6894 tSCC zStatsswtchList[] =
6895   "rpcsvc/rstat.h\0";
6897  *  Machine/OS name selection pattern
6898  */
6899 #define apzStatsswtchMachs (const char**)NULL
6902  *  content selection pattern - do fix if pattern found
6903  */
6904 tSCC zStatsswtchSelect0[] =
6905        "boottime$";
6907 #define    STATSSWTCH_TEST_CT  1
6908 static tTestDesc aStatsswtchTests[] = {
6909   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
6912  *  Fix Command Arguments for Statsswtch
6913  */
6914 static const char* apzStatsswtchPatch[] = {
6915     "format",
6916     "boottime;",
6917     (char*)NULL };
6919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6921  *  Description of Stdio_Stdarg_H fix
6922  */
6923 tSCC zStdio_Stdarg_HName[] =
6924      "stdio_stdarg_h";
6927  *  File name selection pattern
6928  */
6929 tSCC zStdio_Stdarg_HList[] =
6930   "stdio.h\0";
6932  *  Machine/OS name selection pattern
6933  */
6934 tSCC* apzStdio_Stdarg_HMachs[] = {
6935         "*-*-solaris2.1[0-9]*",
6936         (const char*)NULL };
6939  *  content bypass pattern - skip fix if pattern found
6940  */
6941 tSCC zStdio_Stdarg_HBypass0[] =
6942        "include.*(stdarg.h|machine/ansi.h)";
6944 #define    STDIO_STDARG_H_TEST_CT  1
6945 static tTestDesc aStdio_Stdarg_HTests[] = {
6946   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6949  *  Fix Command Arguments for Stdio_Stdarg_H
6950  */
6951 static const char* apzStdio_Stdarg_HPatch[] = {
6952     "wrap",
6953     "#define __need___va_list\n\
6954 #include <stdarg.h>\n",
6955     (char*)NULL };
6957 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6959  *  Description of Stdio_Va_List fix
6960  */
6961 tSCC zStdio_Va_ListName[] =
6962      "stdio_va_list";
6965  *  File name selection pattern
6966  */
6967 tSCC zStdio_Va_ListList[] =
6968   "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6970  *  Machine/OS name selection pattern
6971  */
6972 tSCC* apzStdio_Va_ListMachs[] = {
6973         "*-*-solaris2.1[0-9]*",
6974         (const char*)NULL };
6977  *  content bypass pattern - skip fix if pattern found
6978  */
6979 tSCC zStdio_Va_ListBypass0[] =
6980        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6982 #define    STDIO_VA_LIST_TEST_CT  1
6983 static tTestDesc aStdio_Va_ListTests[] = {
6984   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6987  *  Fix Command Arguments for Stdio_Va_List
6988  */
6989 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
6990     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6991 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6992 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6993 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6994 s@ va_list@ __not_va_list__@\n\
6995 s@\\*va_list@*__not_va_list__@\n\
6996 s@ __va_list)@ __gnuc_va_list)@\n\
6997 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6998 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6999 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7000 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7001 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7002 s@VA_LIST@DUMMY_VA_LIST@\n\
7003 s@_Va_LIST@_VA_LIST@",
7004     (char*)NULL };
7006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7008  *  Description of Stdio_Va_List_Clients fix
7009  */
7010 tSCC zStdio_Va_List_ClientsName[] =
7011      "stdio_va_list_clients";
7014  *  File name selection pattern
7015  */
7016 tSCC zStdio_Va_List_ClientsList[] =
7017   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7019  *  Machine/OS name selection pattern
7020  */
7021 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7024  *  content bypass pattern - skip fix if pattern found
7025  */
7026 tSCC zStdio_Va_List_ClientsBypass0[] =
7027        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7028 tSCC zStdio_Va_List_ClientsBypass1[] =
7029        "include <stdarg\\.h>|#ifdef va_start";
7031 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
7032 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7033   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7034   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7037  *  Fix Command Arguments for Stdio_Va_List_Clients
7038  */
7039 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7040     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7041 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7042 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7043 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7044 s@ va_list@ __not_va_list__@\n\
7045 s@\\*va_list@*__not_va_list__@\n\
7046 s@ __va_list)@ __gnuc_va_list)@\n\
7047 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7048 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7049 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7050 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7051 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7052 s@VA_LIST@DUMMY_VA_LIST@\n\
7053 s@_Va_LIST@_VA_LIST@",
7054     (char*)NULL };
7056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7058  *  Description of Strict_Ansi_Not fix
7059  */
7060 tSCC zStrict_Ansi_NotName[] =
7061      "strict_ansi_not";
7064  *  File name selection pattern
7065  */
7066 #define zStrict_Ansi_NotList (char*)NULL
7068  *  Machine/OS name selection pattern
7069  */
7070 #define apzStrict_Ansi_NotMachs (const char**)NULL
7073  *  content selection pattern - do fix if pattern found
7074  */
7075 tSCC zStrict_Ansi_NotSelect0[] =
7076        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7079  *  content bypass pattern - skip fix if pattern found
7080  */
7081 tSCC zStrict_Ansi_NotBypass0[] =
7082        "GNU and MIPS C compilers define __STDC__ differently";
7083 tSCC zStrict_Ansi_NotBypass1[] =
7084        "__SCO_VERSION__.*__STDC__ != 1";
7087  *  perform the C function call test
7088  */
7089 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7091 #define    STRICT_ANSI_NOT_TEST_CT  4
7092 static tTestDesc aStrict_Ansi_NotTests[] = {
7093   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
7094   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7095   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7096   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7099  *  Fix Command Arguments for Strict_Ansi_Not
7100  */
7101 static const char* apzStrict_Ansi_NotPatch[] = {
7102     "format",
7103     "%1 !defined(__STRICT_ANSI__)",
7104     (char*)NULL };
7106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7108  *  Description of Strict_Ansi_Not_Ctd fix
7109  */
7110 tSCC zStrict_Ansi_Not_CtdName[] =
7111      "strict_ansi_not_ctd";
7114  *  File name selection pattern
7115  */
7116 tSCC zStrict_Ansi_Not_CtdList[] =
7117   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7119  *  Machine/OS name selection pattern
7120  */
7121 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7124  *  content selection pattern - do fix if pattern found
7125  */
7126 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7127        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7130  *  perform the C function call test
7131  */
7132 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7134 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
7135 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7136   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
7137   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7140  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
7141  */
7142 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7143     "format",
7144     "%1 !defined(__STRICT_ANSI__)",
7145     (char*)NULL };
7147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7149  *  Description of Strict_Ansi_Only fix
7150  */
7151 tSCC zStrict_Ansi_OnlyName[] =
7152      "strict_ansi_only";
7155  *  File name selection pattern
7156  */
7157 #define zStrict_Ansi_OnlyList (char*)NULL
7159  *  Machine/OS name selection pattern
7160  */
7161 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7164  *  content selection pattern - do fix if pattern found
7165  */
7166 tSCC zStrict_Ansi_OnlySelect0[] =
7167        "^([ \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)";
7170  *  perform the C function call test
7171  */
7172 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7174 #define    STRICT_ANSI_ONLY_TEST_CT  2
7175 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7176   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
7177   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7180  *  Fix Command Arguments for Strict_Ansi_Only
7181  */
7182 static const char* apzStrict_Ansi_OnlyPatch[] = {
7183     "format",
7184     "%1 defined(__STRICT_ANSI__)",
7185     (char*)NULL };
7187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7189  *  Description of Struct_File fix
7190  */
7191 tSCC zStruct_FileName[] =
7192      "struct_file";
7195  *  File name selection pattern
7196  */
7197 tSCC zStruct_FileList[] =
7198   "rpc/xdr.h\0";
7200  *  Machine/OS name selection pattern
7201  */
7202 #define apzStruct_FileMachs (const char**)NULL
7205  *  content selection pattern - do fix if pattern found
7206  */
7207 tSCC zStruct_FileSelect0[] =
7208        "^.*xdrstdio_create.*struct __file_s";
7210 #define    STRUCT_FILE_TEST_CT  1
7211 static tTestDesc aStruct_FileTests[] = {
7212   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
7215  *  Fix Command Arguments for Struct_File
7216  */
7217 static const char* apzStruct_FilePatch[] = {
7218     "format",
7219     "struct __file_s;\n\
7220 %0",
7221     (char*)NULL };
7223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7225  *  Description of Struct_Sockaddr fix
7226  */
7227 tSCC zStruct_SockaddrName[] =
7228      "struct_sockaddr";
7231  *  File name selection pattern
7232  */
7233 tSCC zStruct_SockaddrList[] =
7234   "rpc/auth.h\0";
7236  *  Machine/OS name selection pattern
7237  */
7238 #define apzStruct_SockaddrMachs (const char**)NULL
7241  *  content selection pattern - do fix if pattern found
7242  */
7243 tSCC zStruct_SockaddrSelect0[] =
7244        "^.*authdes_create.*struct sockaddr[^_]";
7247  *  content bypass pattern - skip fix if pattern found
7248  */
7249 tSCC zStruct_SockaddrBypass0[] =
7250        "<sys/socket.h>";
7251 tSCC zStruct_SockaddrBypass1[] =
7252        "struct sockaddr;\n";
7254 #define    STRUCT_SOCKADDR_TEST_CT  3
7255 static tTestDesc aStruct_SockaddrTests[] = {
7256   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
7257   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
7258   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7261  *  Fix Command Arguments for Struct_Sockaddr
7262  */
7263 static const char* apzStruct_SockaddrPatch[] = {
7264     "format",
7265     "struct sockaddr;\n\
7266 %0",
7267     (char*)NULL };
7269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7271  *  Description of Sun_Auth_Proto fix
7272  */
7273 tSCC zSun_Auth_ProtoName[] =
7274      "sun_auth_proto";
7277  *  File name selection pattern
7278  */
7279 tSCC zSun_Auth_ProtoList[] =
7280   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7282  *  Machine/OS name selection pattern
7283  */
7284 #define apzSun_Auth_ProtoMachs (const char**)NULL
7287  *  content selection pattern - do fix if pattern found
7288  */
7289 tSCC zSun_Auth_ProtoSelect0[] =
7290        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7293  *  content bypass pattern - skip fix if pattern found
7294  */
7295 tSCC zSun_Auth_ProtoBypass0[] =
7296        "__cplusplus";
7298 #define    SUN_AUTH_PROTO_TEST_CT  2
7299 static tTestDesc aSun_Auth_ProtoTests[] = {
7300   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7301   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7304  *  Fix Command Arguments for Sun_Auth_Proto
7305  */
7306 static const char* apzSun_Auth_ProtoPatch[] = {
7307     "format",
7308     "#ifdef __cplusplus\n\
7309 %1(...);%2\n\
7310 #else\n\
7311 %1();%2\n\
7312 #endif",
7313     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7314     (char*)NULL };
7316 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7318  *  Description of Sun_Bogus_Ifdef fix
7319  */
7320 tSCC zSun_Bogus_IfdefName[] =
7321      "sun_bogus_ifdef";
7324  *  File name selection pattern
7325  */
7326 tSCC zSun_Bogus_IfdefList[] =
7327   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7329  *  Machine/OS name selection pattern
7330  */
7331 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7334  *  content selection pattern - do fix if pattern found
7335  */
7336 tSCC zSun_Bogus_IfdefSelect0[] =
7337        "#ifdef(.*\\|\\|.*)";
7339 #define    SUN_BOGUS_IFDEF_TEST_CT  1
7340 static tTestDesc aSun_Bogus_IfdefTests[] = {
7341   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7344  *  Fix Command Arguments for Sun_Bogus_Ifdef
7345  */
7346 static const char* apzSun_Bogus_IfdefPatch[] = {
7347     "format",
7348     "#if%1",
7349     (char*)NULL };
7351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7353  *  Description of Sun_Catmacro fix
7354  */
7355 tSCC zSun_CatmacroName[] =
7356      "sun_catmacro";
7359  *  File name selection pattern
7360  */
7361 tSCC zSun_CatmacroList[] =
7362   "pixrect/memvar.h\0";
7364  *  Machine/OS name selection pattern
7365  */
7366 #define apzSun_CatmacroMachs (const char**)NULL
7369  *  content selection pattern - do fix if pattern found
7370  */
7371 tSCC zSun_CatmacroSelect0[] =
7372        "^#define[ \t]+CAT\\(a,b\\).*";
7374 #define    SUN_CATMACRO_TEST_CT  1
7375 static tTestDesc aSun_CatmacroTests[] = {
7376   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
7379  *  Fix Command Arguments for Sun_Catmacro
7380  */
7381 static const char* apzSun_CatmacroPatch[] = {
7382     "format",
7383     "#ifdef __STDC__\n\
7384 #  define CAT(a,b) a##b\n\
7385 #else\n\
7386 %0\n\
7387 #endif",
7388     (char*)NULL };
7390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7392  *  Description of Sun_Malloc fix
7393  */
7394 tSCC zSun_MallocName[] =
7395      "sun_malloc";
7398  *  File name selection pattern
7399  */
7400 tSCC zSun_MallocList[] =
7401   "malloc.h\0";
7403  *  Machine/OS name selection pattern
7404  */
7405 #define apzSun_MallocMachs (const char**)NULL
7408  *  content bypass pattern - skip fix if pattern found
7409  */
7410 tSCC zSun_MallocBypass0[] =
7411        "_CLASSIC_ANSI_TYPES";
7413 #define    SUN_MALLOC_TEST_CT  1
7414 static tTestDesc aSun_MallocTests[] = {
7415   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
7418  *  Fix Command Arguments for Sun_Malloc
7419  */
7420 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7421     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7422     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7423     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7424     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7425     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7426     (char*)NULL };
7428 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7430  *  Description of Sun_Rusers_Semi fix
7431  */
7432 tSCC zSun_Rusers_SemiName[] =
7433      "sun_rusers_semi";
7436  *  File name selection pattern
7437  */
7438 tSCC zSun_Rusers_SemiList[] =
7439   "rpcsvc/rusers.h\0";
7441  *  Machine/OS name selection pattern
7442  */
7443 #define apzSun_Rusers_SemiMachs (const char**)NULL
7446  *  content selection pattern - do fix if pattern found
7447  */
7448 tSCC zSun_Rusers_SemiSelect0[] =
7449        "_cnt$";
7451 #define    SUN_RUSERS_SEMI_TEST_CT  1
7452 static tTestDesc aSun_Rusers_SemiTests[] = {
7453   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7456  *  Fix Command Arguments for Sun_Rusers_Semi
7457  */
7458 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7459     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7460     (char*)NULL };
7462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7464  *  Description of Sun_Signal fix
7465  */
7466 tSCC zSun_SignalName[] =
7467      "sun_signal";
7470  *  File name selection pattern
7471  */
7472 tSCC zSun_SignalList[] =
7473   "sys/signal.h\0signal.h\0";
7475  *  Machine/OS name selection pattern
7476  */
7477 #define apzSun_SignalMachs (const char**)NULL
7480  *  content selection pattern - do fix if pattern found
7481  */
7482 tSCC zSun_SignalSelect0[] =
7483        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7485 #define    SUN_SIGNAL_TEST_CT  1
7486 static tTestDesc aSun_SignalTests[] = {
7487   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
7490  *  Fix Command Arguments for Sun_Signal
7491  */
7492 static const char* apzSun_SignalPatch[] = {
7493     "format",
7494     "#ifdef __cplusplus\n\
7495 void\t(*signal(...))(...);\n\
7496 #else\n\
7497 %0\n\
7498 #endif",
7499     (char*)NULL };
7501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7503  *  Description of Sunos_Strlen fix
7504  */
7505 tSCC zSunos_StrlenName[] =
7506      "sunos_strlen";
7509  *  File name selection pattern
7510  */
7511 tSCC zSunos_StrlenList[] =
7512   "strings.h\0";
7514  *  Machine/OS name selection pattern
7515  */
7516 #define apzSunos_StrlenMachs (const char**)NULL
7519  *  content selection pattern - do fix if pattern found
7520  */
7521 tSCC zSunos_StrlenSelect0[] =
7522        "int[ \t]*strlen\\(\\);(.*)";
7524 #define    SUNOS_STRLEN_TEST_CT  1
7525 static tTestDesc aSunos_StrlenTests[] = {
7526   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
7529  *  Fix Command Arguments for Sunos_Strlen
7530  */
7531 static const char* apzSunos_StrlenPatch[] = {
7532     "format",
7533     "__SIZE_TYPE__ strlen();%1",
7534     (char*)NULL };
7536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7538  *  Description of Svr4_Disable_Opt fix
7539  */
7540 tSCC zSvr4_Disable_OptName[] =
7541      "svr4_disable_opt";
7544  *  File name selection pattern
7545  */
7546 tSCC zSvr4_Disable_OptList[] =
7547   "string.h\0";
7549  *  Machine/OS name selection pattern
7550  */
7551 #define apzSvr4_Disable_OptMachs (const char**)NULL
7554  *  content selection pattern - do fix if pattern found
7555  */
7556 tSCC zSvr4_Disable_OptSelect0[] =
7557        "#define.*__std_hdr_";
7559 #define    SVR4_DISABLE_OPT_TEST_CT  1
7560 static tTestDesc aSvr4_Disable_OptTests[] = {
7561   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7564  *  Fix Command Arguments for Svr4_Disable_Opt
7565  */
7566 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7567     "-e", "/#define.*__std_hdr_/d",
7568     (char*)NULL };
7570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7572  *  Description of Svr4_Getcwd fix
7573  */
7574 tSCC zSvr4_GetcwdName[] =
7575      "svr4_getcwd";
7578  *  File name selection pattern
7579  */
7580 tSCC zSvr4_GetcwdList[] =
7581   "stdlib.h\0unistd.h\0prototypes.h\0";
7583  *  Machine/OS name selection pattern
7584  */
7585 #define apzSvr4_GetcwdMachs (const char**)NULL
7588  *  content selection pattern - do fix if pattern found
7589  */
7590 tSCC zSvr4_GetcwdSelect0[] =
7591        "getcwd\\(char \\*, int\\)";
7593 #define    SVR4_GETCWD_TEST_CT  1
7594 static tTestDesc aSvr4_GetcwdTests[] = {
7595   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7598  *  Fix Command Arguments for Svr4_Getcwd
7599  */
7600 static const char* apzSvr4_GetcwdPatch[] = {
7601     "format",
7602     "getcwd(char *, size_t)",
7603     (char*)NULL };
7605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7607  *  Description of Svr4_Profil fix
7608  */
7609 tSCC zSvr4_ProfilName[] =
7610      "svr4_profil";
7613  *  File name selection pattern
7614  */
7615 tSCC zSvr4_ProfilList[] =
7616   "stdlib.h\0unistd.h\0";
7618  *  Machine/OS name selection pattern
7619  */
7620 #define apzSvr4_ProfilMachs (const char**)NULL
7623  *  content selection pattern - do fix if pattern found
7624  */
7625 tSCC zSvr4_ProfilSelect0[] =
7626        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7629  *  content bypass pattern - skip fix if pattern found
7630  */
7631 tSCC zSvr4_ProfilBypass0[] =
7632        "Silicon Graphics";
7634 #define    SVR4_PROFIL_TEST_CT  2
7635 static tTestDesc aSvr4_ProfilTests[] = {
7636   { TT_NEGREP,   zSvr4_ProfilBypass0, (regex_t*)NULL },
7637   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7640  *  Fix Command Arguments for Svr4_Profil
7641  */
7642 static const char* apzSvr4_ProfilPatch[] = {
7643     "format",
7644     "profil(unsigned short *, size_t, int, unsigned int)",
7645     (char*)NULL };
7647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7649  *  Description of Svr4_Sighandler_Type fix
7650  */
7651 tSCC zSvr4_Sighandler_TypeName[] =
7652      "svr4_sighandler_type";
7655  *  File name selection pattern
7656  */
7657 tSCC zSvr4_Sighandler_TypeList[] =
7658   "sys/signal.h\0";
7660  *  Machine/OS name selection pattern
7661  */
7662 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7665  *  content selection pattern - do fix if pattern found
7666  */
7667 tSCC zSvr4_Sighandler_TypeSelect0[] =
7668        "void *\\(\\*\\)\\(\\)";
7670 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
7671 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7672   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7675  *  Fix Command Arguments for Svr4_Sighandler_Type
7676  */
7677 static const char* apzSvr4_Sighandler_TypePatch[] = {
7678     "format",
7679     "void (*)(int)",
7680     (char*)NULL };
7682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7684  *  Description of Svr4_Undeclared_Getrnge fix
7685  */
7686 tSCC zSvr4_Undeclared_GetrngeName[] =
7687      "svr4_undeclared_getrnge";
7690  *  File name selection pattern
7691  */
7692 tSCC zSvr4_Undeclared_GetrngeList[] =
7693   "regexp.h\0";
7695  *  Machine/OS name selection pattern
7696  */
7697 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7700  *  content selection pattern - do fix if pattern found
7701  */
7702 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7703        "getrnge";
7706  *  content bypass pattern - skip fix if pattern found
7707  */
7708 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7709        "static void getrnge";
7711 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
7712 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7713   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7714   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7717  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
7718  */
7719 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7720     "format",
7721     "%0\n\
7722 static int getrnge ();",
7723     "^static int[ \t]+size;",
7724     (char*)NULL };
7726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7728  *  Description of Sysv68_String fix
7729  */
7730 tSCC zSysv68_StringName[] =
7731      "sysv68_string";
7734  *  File name selection pattern
7735  */
7736 tSCC zSysv68_StringList[] =
7737   "testing.h\0string.h\0";
7739  *  Machine/OS name selection pattern
7740  */
7741 #define apzSysv68_StringMachs (const char**)NULL
7744  *  content bypass pattern - skip fix if pattern found
7745  */
7746 tSCC zSysv68_StringBypass0[] =
7747        "_CLASSIC_ANSI_TYPES";
7749 #define    SYSV68_STRING_TEST_CT  1
7750 static tTestDesc aSysv68_StringTests[] = {
7751   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
7754  *  Fix Command Arguments for Sysv68_String
7755  */
7756 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7757     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7758     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7759     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7760     "-e", "/^extern char$/N",
7761     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7762     "-e", "/^extern int$/N",
7763     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7764     "-e", "/^\tstrncmp(),$/N",
7765     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7766 extern unsigned int\\\n\
7767 \\2/",
7768     (char*)NULL };
7770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7772  *  Description of Sysz_Stdlib_For_Sun fix
7773  */
7774 tSCC zSysz_Stdlib_For_SunName[] =
7775      "sysz_stdlib_for_sun";
7778  *  File name selection pattern
7779  */
7780 tSCC zSysz_Stdlib_For_SunList[] =
7781   "stdlib.h\0";
7783  *  Machine/OS name selection pattern
7784  */
7785 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7788  *  content selection pattern - do fix if pattern found
7789  */
7790 tSCC zSysz_Stdlib_For_SunSelect0[] =
7791        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7794  *  content bypass pattern - skip fix if pattern found
7795  */
7796 tSCC zSysz_Stdlib_For_SunBypass0[] =
7797        "_CLASSIC_ANSI_TYPES";
7799 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
7800 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7801   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7802   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7805  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
7806  */
7807 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7808     "format",
7809     "void *\t%1(",
7810     (char*)NULL };
7812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7814  *  Description of Thread_Keyword fix
7815  */
7816 tSCC zThread_KeywordName[] =
7817      "thread_keyword";
7820  *  File name selection pattern
7821  */
7822 tSCC zThread_KeywordList[] =
7823   "pthread.h\0bits/sigthread.h\0";
7825  *  Machine/OS name selection pattern
7826  */
7827 #define apzThread_KeywordMachs (const char**)NULL
7830  *  content selection pattern - do fix if pattern found
7831  */
7832 tSCC zThread_KeywordSelect0[] =
7833        "([* ])__thread([,)])";
7835 #define    THREAD_KEYWORD_TEST_CT  1
7836 static tTestDesc aThread_KeywordTests[] = {
7837   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
7840  *  Fix Command Arguments for Thread_Keyword
7841  */
7842 static const char* apzThread_KeywordPatch[] = {
7843     "format",
7844     "%1__thr%2",
7845     (char*)NULL };
7847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7849  *  Description of Tinfo_Cplusplus fix
7850  */
7851 tSCC zTinfo_CplusplusName[] =
7852      "tinfo_cplusplus";
7855  *  File name selection pattern
7856  */
7857 tSCC zTinfo_CplusplusList[] =
7858   "tinfo.h\0";
7860  *  Machine/OS name selection pattern
7861  */
7862 #define apzTinfo_CplusplusMachs (const char**)NULL
7865  *  content selection pattern - do fix if pattern found
7866  */
7867 tSCC zTinfo_CplusplusSelect0[] =
7868        "[ \t]_cplusplus";
7870 #define    TINFO_CPLUSPLUS_TEST_CT  1
7871 static tTestDesc aTinfo_CplusplusTests[] = {
7872   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7875  *  Fix Command Arguments for Tinfo_Cplusplus
7876  */
7877 static const char* apzTinfo_CplusplusPatch[] = {
7878     "format",
7879     " __cplusplus",
7880     (char*)NULL };
7882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7884  *  Description of Ultrix_Const fix
7885  */
7886 tSCC zUltrix_ConstName[] =
7887      "ultrix_const";
7890  *  File name selection pattern
7891  */
7892 tSCC zUltrix_ConstList[] =
7893   "stdio.h\0";
7895  *  Machine/OS name selection pattern
7896  */
7897 #define apzUltrix_ConstMachs (const char**)NULL
7900  *  content selection pattern - do fix if pattern found
7901  */
7902 tSCC zUltrix_ConstSelect0[] =
7903        "perror\\( char \\*";
7905 #define    ULTRIX_CONST_TEST_CT  1
7906 static tTestDesc aUltrix_ConstTests[] = {
7907   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
7910  *  Fix Command Arguments for Ultrix_Const
7911  */
7912 static const char* apzUltrix_ConstPatch[] = {
7913     "format",
7914     "%1 const %3 *__",
7915     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7916     (char*)NULL };
7918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7920  *  Description of Ultrix_Const2 fix
7921  */
7922 tSCC zUltrix_Const2Name[] =
7923      "ultrix_const2";
7926  *  File name selection pattern
7927  */
7928 tSCC zUltrix_Const2List[] =
7929   "stdio.h\0";
7931  *  Machine/OS name selection pattern
7932  */
7933 #define apzUltrix_Const2Machs (const char**)NULL
7936  *  content selection pattern - do fix if pattern found
7937  */
7938 tSCC zUltrix_Const2Select0[] =
7939        "\\*fopen\\( char \\*";
7941 #define    ULTRIX_CONST2_TEST_CT  1
7942 static tTestDesc aUltrix_Const2Tests[] = {
7943   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
7946  *  Fix Command Arguments for Ultrix_Const2
7947  */
7948 static const char* apzUltrix_Const2Patch[] = {
7949     "format",
7950     "%1( const char *%3, const char *",
7951     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7952     (char*)NULL };
7954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7956  *  Description of Va_I960_Macro fix
7957  */
7958 tSCC zVa_I960_MacroName[] =
7959      "va_i960_macro";
7962  *  File name selection pattern
7963  */
7964 tSCC zVa_I960_MacroList[] =
7965   "arch/i960/archI960.h\0";
7967  *  Machine/OS name selection pattern
7968  */
7969 #define apzVa_I960_MacroMachs (const char**)NULL
7972  *  content selection pattern - do fix if pattern found
7973  */
7974 tSCC zVa_I960_MacroSelect0[] =
7975        "__(vsiz|vali|vpad|alignof__)";
7977 #define    VA_I960_MACRO_TEST_CT  1
7978 static tTestDesc aVa_I960_MacroTests[] = {
7979   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7982  *  Fix Command Arguments for Va_I960_Macro
7983  */
7984 static const char* apzVa_I960_MacroPatch[] = {
7985     "format",
7986     "__vx%1",
7987     (char*)NULL };
7989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7991  *  Description of Void_Null fix
7992  */
7993 tSCC zVoid_NullName[] =
7994      "void_null";
7997  *  File name selection pattern
7998  */
7999 tSCC zVoid_NullList[] =
8000   "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";
8002  *  Machine/OS name selection pattern
8003  */
8004 #define apzVoid_NullMachs (const char**)NULL
8007  *  content selection pattern - do fix if pattern found
8008  */
8009 tSCC zVoid_NullSelect0[] =
8010        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8013  *  content bypass pattern - skip fix if pattern found
8014  */
8015 tSCC zVoid_NullBypass0[] =
8016        "__cplusplus";
8018 #define    VOID_NULL_TEST_CT  2
8019 static tTestDesc aVoid_NullTests[] = {
8020   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8021   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8024  *  Fix Command Arguments for Void_Null
8025  */
8026 static const char* apzVoid_NullPatch[] = {
8027     "format",
8028     "#define NULL 0",
8029     (char*)NULL };
8031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8033  *  Description of Vxworks_Gcc_Problem fix
8034  */
8035 tSCC zVxworks_Gcc_ProblemName[] =
8036      "vxworks_gcc_problem";
8039  *  File name selection pattern
8040  */
8041 tSCC zVxworks_Gcc_ProblemList[] =
8042   "types/vxTypesBase.h\0";
8044  *  Machine/OS name selection pattern
8045  */
8046 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8049  *  content selection pattern - do fix if pattern found
8050  */
8051 tSCC zVxworks_Gcc_ProblemSelect0[] =
8052        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8054 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8055 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8056   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8059  *  Fix Command Arguments for Vxworks_Gcc_Problem
8060  */
8061 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8062     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8063     "-e", "/[ \t]size_t/i\\\n\
8064 #ifndef _GCC_SIZE_T\\\n\
8065 #define _GCC_SIZE_T\n",
8066     "-e", "/[ \t]size_t/a\\\n\
8067 #endif\n",
8068     "-e", "/[ \t]ptrdiff_t/i\\\n\
8069 #ifndef _GCC_PTRDIFF_T\\\n\
8070 #define _GCC_PTRDIFF_T\n",
8071     "-e", "/[ \t]ptrdiff_t/a\\\n\
8072 #endif\n",
8073     "-e", "/[ \t]wchar_t/i\\\n\
8074 #ifndef _GCC_WCHAR_T\\\n\
8075 #define _GCC_WCHAR_T\n",
8076     "-e", "/[ \t]wchar_t/a\\\n\
8077 #endif\n",
8078     (char*)NULL };
8080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8082  *  Description of Vxworks_Needs_Vxtypes fix
8083  */
8084 tSCC zVxworks_Needs_VxtypesName[] =
8085      "vxworks_needs_vxtypes";
8088  *  File name selection pattern
8089  */
8090 tSCC zVxworks_Needs_VxtypesList[] =
8091   "time.h\0";
8093  *  Machine/OS name selection pattern
8094  */
8095 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8098  *  content selection pattern - do fix if pattern found
8099  */
8100 tSCC zVxworks_Needs_VxtypesSelect0[] =
8101        "uint_t([ \t]+_clocks_per_sec)";
8103 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8104 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8105   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8108  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8109  */
8110 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8111     "format",
8112     "unsigned int%1",
8113     (char*)NULL };
8115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8117  *  Description of Vxworks_Needs_Vxworks fix
8118  */
8119 tSCC zVxworks_Needs_VxworksName[] =
8120      "vxworks_needs_vxworks";
8123  *  File name selection pattern
8124  */
8125 tSCC zVxworks_Needs_VxworksList[] =
8126   "sys/stat.h\0";
8128  *  Machine/OS name selection pattern
8129  */
8130 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8133  *  content selection pattern - do fix if pattern found
8134  */
8135 tSCC zVxworks_Needs_VxworksSelect0[] =
8136        "#[ \t]define[ \t]+__INCstath";
8139  *  perform the 'test' shell command - do fix on success
8140  */
8141 tSCC zVxworks_Needs_VxworksTest0[] =
8142        " -r types/vxTypesOld.h";
8143 tSCC zVxworks_Needs_VxworksTest1[] =
8144        " -n \"`egrep '#include' $file`\"";
8145 tSCC zVxworks_Needs_VxworksTest2[] =
8146        " -n \"`egrep ULONG $file`\"";
8148 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8149 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8150   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8151   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8152   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8153   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8156  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8157  */
8158 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8159     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8160 #include <types/vxTypesOld.h>\n",
8161     (char*)NULL };
8163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8165  *  Description of Vxworks_Time fix
8166  */
8167 tSCC zVxworks_TimeName[] =
8168      "vxworks_time";
8171  *  File name selection pattern
8172  */
8173 tSCC zVxworks_TimeList[] =
8174   "time.h\0";
8176  *  Machine/OS name selection pattern
8177  */
8178 #define apzVxworks_TimeMachs (const char**)NULL
8181  *  content selection pattern - do fix if pattern found
8182  */
8183 tSCC zVxworks_TimeSelect0[] =
8184        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8187  *  perform the 'test' shell command - do fix on success
8188  */
8189 tSCC zVxworks_TimeTest0[] =
8190        " -r vxWorks.h";
8192 #define    VXWORKS_TIME_TEST_CT  2
8193 static tTestDesc aVxworks_TimeTests[] = {
8194   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8195   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8198  *  Fix Command Arguments for Vxworks_Time
8199  */
8200 static const char* apzVxworks_TimePatch[] = {
8201     "format",
8202     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8203 #ifdef __cplusplus\n\
8204 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8205 #else\n\
8206 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8207 #endif\n\
8208 #define __gcc_VOIDFUNCPTR_defined\n\
8209 #endif\n\
8210 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8211     (char*)NULL };
8213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8215  *  Description of X11_Class fix
8216  */
8217 tSCC zX11_ClassName[] =
8218      "x11_class";
8221  *  File name selection pattern
8222  */
8223 tSCC zX11_ClassList[] =
8224   "X11/ShellP.h\0";
8226  *  Machine/OS name selection pattern
8227  */
8228 #define apzX11_ClassMachs (const char**)NULL
8231  *  content selection pattern - do fix if pattern found
8232  */
8233 tSCC zX11_ClassSelect0[] =
8234        "^([ \t]*char \\*)class;(.*)";
8237  *  content bypass pattern - skip fix if pattern found
8238  */
8239 tSCC zX11_ClassBypass0[] =
8240        "__cplusplus";
8242 #define    X11_CLASS_TEST_CT  2
8243 static tTestDesc aX11_ClassTests[] = {
8244   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
8245   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
8248  *  Fix Command Arguments for X11_Class
8249  */
8250 static const char* apzX11_ClassPatch[] = {
8251     "format",
8252     "#ifdef __cplusplus\n\
8253 %1c_class;%2\n\
8254 #else\n\
8255 %1class;%2\n\
8256 #endif",
8257     (char*)NULL };
8259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8261  *  Description of X11_Class_Usage fix
8262  */
8263 tSCC zX11_Class_UsageName[] =
8264      "x11_class_usage";
8267  *  File name selection pattern
8268  */
8269 tSCC zX11_Class_UsageList[] =
8270   "Xm/BaseClassI.h\0";
8272  *  Machine/OS name selection pattern
8273  */
8274 #define apzX11_Class_UsageMachs (const char**)NULL
8277  *  content selection pattern - do fix if pattern found
8278  */
8279 tSCC zX11_Class_UsageSelect0[] =
8280        " class\\)";
8283  *  content bypass pattern - skip fix if pattern found
8284  */
8285 tSCC zX11_Class_UsageBypass0[] =
8286        "__cplusplus";
8288 #define    X11_CLASS_USAGE_TEST_CT  2
8289 static tTestDesc aX11_Class_UsageTests[] = {
8290   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
8291   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8294  *  Fix Command Arguments for X11_Class_Usage
8295  */
8296 static const char* apzX11_Class_UsagePatch[] = {
8297     "format",
8298     " c_class)",
8299     (char*)NULL };
8301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8303  *  Description of X11_New fix
8304  */
8305 tSCC zX11_NewName[] =
8306      "x11_new";
8309  *  File name selection pattern
8310  */
8311 tSCC zX11_NewList[] =
8312   "Xm/Traversal.h\0";
8314  *  Machine/OS name selection pattern
8315  */
8316 #define apzX11_NewMachs (const char**)NULL
8319  *  content bypass pattern - skip fix if pattern found
8320  */
8321 tSCC zX11_NewBypass0[] =
8322        "__cplusplus";
8324 #define    X11_NEW_TEST_CT  1
8325 static tTestDesc aX11_NewTests[] = {
8326   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
8329  *  Fix Command Arguments for X11_New
8330  */
8331 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8332     "-e", "/Widget\told, new;/i\\\n\
8333 #ifdef __cplusplus\\\n\
8334 \tWidget\told, c_new;\\\n\
8335 #else\n",
8336     "-e", "/Widget\told, new;/a\\\n\
8337 #endif\n",
8338     "-e", "s/Widget new,/Widget c_new,/g",
8339     (char*)NULL };
8341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8343  *  Description of X11_Sprintf fix
8344  */
8345 tSCC zX11_SprintfName[] =
8346      "x11_sprintf";
8349  *  File name selection pattern
8350  */
8351 tSCC zX11_SprintfList[] =
8352   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8354  *  Machine/OS name selection pattern
8355  */
8356 #define apzX11_SprintfMachs (const char**)NULL
8359  *  content selection pattern - do fix if pattern found
8360  */
8361 tSCC zX11_SprintfSelect0[] =
8362        "^extern char \\*\tsprintf\\(\\);$";
8364 #define    X11_SPRINTF_TEST_CT  1
8365 static tTestDesc aX11_SprintfTests[] = {
8366   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
8369  *  Fix Command Arguments for X11_Sprintf
8370  */
8371 static const char* apzX11_SprintfPatch[] = {
8372     "format",
8373     "#ifndef __STDC__\n\
8374 %0\n\
8375 #endif /* !defined __STDC__ */",
8376     (char*)NULL };
8379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8381  *  List of all fixes
8382  */
8383 #define REGEX_COUNT          249
8384 #define MACH_LIST_SIZE_LIMIT 181
8385 #define FIX_COUNT            206
8388  *  Enumerate the fixes
8389  */
8390 typedef enum {
8391     AAB_AIX_STDIO_FIXIDX,
8392     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8393     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8394     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8395     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8396     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8397     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8398     AAB_SUN_MEMCPY_FIXIDX,
8399     AIX_COMPLEX_FIXIDX,
8400     AIX_PTHREAD_FIXIDX,
8401     AIX_STDINT_1_FIXIDX,
8402     AIX_STDINT_2_FIXIDX,
8403     AIX_STDINT_3_FIXIDX,
8404     AIX_STDINT_4_FIXIDX,
8405     AIX_STDINT_5_FIXIDX,
8406     AIX_SYSMACHINE_FIXIDX,
8407     AIX_SYSWAIT_2_FIXIDX,
8408     AIX_VOLATILE_FIXIDX,
8409     ALPHA___ASSERT_FIXIDX,
8410     ALPHA___EXTERN_PREFIX_FIXIDX,
8411     ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8412     ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8413     ALPHA_ASSERT_FIXIDX,
8414     ALPHA_BAD_LVAL_FIXIDX,
8415     ALPHA_GETOPT_FIXIDX,
8416     ALPHA_IF_SEMICOLON_FIXIDX,
8417     ALPHA_PARENS_FIXIDX,
8418     ALPHA_PTHREAD_FIXIDX,
8419     ALPHA_PTHREAD_GCC_FIXIDX,
8420     ALPHA_PTHREAD_INIT_FIXIDX,
8421     ALPHA_SBRK_FIXIDX,
8422     ALPHA_WCHAR_FIXIDX,
8423     AVOID_BOOL_DEFINE_FIXIDX,
8424     AVOID_BOOL_TYPE_FIXIDX,
8425     AVOID_WCHAR_T_TYPE_FIXIDX,
8426     BAD_STRUCT_TERM_FIXIDX,
8427     BADQUOTE_FIXIDX,
8428     BROKEN_ASSERT_STDIO_FIXIDX,
8429     BROKEN_ASSERT_STDLIB_FIXIDX,
8430     BROKEN_CABS_FIXIDX,
8431     BROKEN_NAN_FIXIDX,
8432     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8433     CTRL_QUOTES_DEF_FIXIDX,
8434     CTRL_QUOTES_USE_FIXIDX,
8435     CXX_UNREADY_FIXIDX,
8436     DARWIN_EXTERNC_FIXIDX,
8437     DARWIN_GCC4_BREAKAGE_FIXIDX,
8438     DARWIN_PRIVATE_EXTERN_FIXIDX,
8439     DARWIN_STDINT_1_FIXIDX,
8440     DARWIN_STDINT_2_FIXIDX,
8441     DARWIN_STDINT_3_FIXIDX,
8442     DARWIN_STDINT_4_FIXIDX,
8443     DARWIN_STDINT_5_FIXIDX,
8444     DARWIN_STDINT_6_FIXIDX,
8445     DARWIN_STDINT_7_FIXIDX,
8446     DEC_INTERN_ASM_FIXIDX,
8447     DJGPP_WCHAR_H_FIXIDX,
8448     ECD_CURSOR_FIXIDX,
8449     FREEBSD_GCC3_BREAKAGE_FIXIDX,
8450     FREEBSD_GCC4_BREAKAGE_FIXIDX,
8451     GLIBC_C99_INLINE_1_FIXIDX,
8452     GLIBC_C99_INLINE_1A_FIXIDX,
8453     GLIBC_C99_INLINE_2_FIXIDX,
8454     GLIBC_C99_INLINE_3_FIXIDX,
8455     GLIBC_C99_INLINE_4_FIXIDX,
8456     GLIBC_MUTEX_INIT_FIXIDX,
8457     GLIBC_STDINT_FIXIDX,
8458     GLIBC_TGMATH_FIXIDX,
8459     GNU_TYPES_FIXIDX,
8460     HP_INLINE_FIXIDX,
8461     HP_SYSFILE_FIXIDX,
8462     HPPA_HPUX_FP_MACROS_FIXIDX,
8463     HPUX10_CPP_POW_INLINE_FIXIDX,
8464     HPUX11_CPP_POW_INLINE_FIXIDX,
8465     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8466     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8467     HPUX10_STDIO_DECLARATIONS_FIXIDX,
8468     HPUX11_ABS_FIXIDX,
8469     HPUX11_FABSF_FIXIDX,
8470     HPUX11_PTHREAD_CONST_FIXIDX,
8471     HPUX11_SIZE_T_FIXIDX,
8472     HPUX11_SNPRINTF_FIXIDX,
8473     HPUX11_VSNPRINTF_FIXIDX,
8474     HPUX8_BOGUS_INLINES_FIXIDX,
8475     HPUX_CTYPE_MACROS_FIXIDX,
8476     HPUX_HTONL_FIXIDX,
8477     HPUX_LONG_DOUBLE_FIXIDX,
8478     HPUX_LONG_DOUBLE_2_FIXIDX,
8479     HPUX_SYSTIME_FIXIDX,
8480     HPUX_SPU_INFO_FIXIDX,
8481     HPUX11_EXTERN_SENDFILE_FIXIDX,
8482     HPUX11_EXTERN_SENDPATH_FIXIDX,
8483     HPUX_EXTERN_ERRNO_FIXIDX,
8484     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8485     HPUX_C99_INTPTR_FIXIDX,
8486     HPUX_C99_INTTYPES_FIXIDX,
8487     HPUX_C99_INTTYPES2_FIXIDX,
8488     HPUX_STDINT_LEAST_FAST_FIXIDX,
8489     HPUX_INTTYPE_INT8_T_FIXIDX,
8490     HPUX_IMAGINARY_I_FIXIDX,
8491     HUGE_VAL_HEX_FIXIDX,
8492     HUGE_VALF_HEX_FIXIDX,
8493     HUGE_VALL_HEX_FIXIDX,
8494     INT_ABORT_FREE_AND_EXIT_FIXIDX,
8495     IO_QUOTES_DEF_FIXIDX,
8496     IO_QUOTES_USE_FIXIDX,
8497     IP_MISSING_SEMI_FIXIDX,
8498     IRIX___RESTRICT_FIXIDX,
8499     IRIX___GENERIC1_FIXIDX,
8500     IRIX___GENERIC2_FIXIDX,
8501     IRIX_ASM_APOSTROPHE_FIXIDX,
8502     IRIX_COMPLEX_FIXIDX,
8503     IRIX_LIMITS_CONST_FIXIDX,
8504     IRIX_SOCKLEN_T_FIXIDX,
8505     IRIX_STDINT_C99_FIXIDX,
8506     IRIX_STDIO_VA_LIST_FIXIDX,
8507     IRIX_WCSFTIME_FIXIDX,
8508     ISC_FMOD_FIXIDX,
8509     ISC_OMITS_WITH_STDC_FIXIDX,
8510     KANDR_CONCAT_FIXIDX,
8511     LINUX_IA64_UCONTEXT_FIXIDX,
8512     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8513     LYNXOS_MISSING_PUTENV_FIXIDX,
8514     MACHINE_ANSI_H_VA_LIST_FIXIDX,
8515     MACHINE_NAME_FIXIDX,
8516     MATH_EXCEPTION_FIXIDX,
8517     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8518     NESTED_AUTH_DES_FIXIDX,
8519     NESTED_SYS_LIMITS_FIXIDX,
8520     NETBSD_C99_INLINE_1_FIXIDX,
8521     NETBSD_C99_INLINE_2_FIXIDX,
8522     NETBSD_EXTRA_SEMICOLON_FIXIDX,
8523     NEWLIB_STDINT_1_FIXIDX,
8524     NEWLIB_STDINT_2_FIXIDX,
8525     NEXT_MATH_PREFIX_FIXIDX,
8526     NEXT_TEMPLATE_FIXIDX,
8527     NEXT_VOLITILE_FIXIDX,
8528     NEXT_WAIT_UNION_FIXIDX,
8529     NODEENT_SYNTAX_FIXIDX,
8530     OPENBSD_NULL_DEFINITION_FIXIDX,
8531     OBSTACK_LVALUE_CAST_FIXIDX,
8532     OPENBSD_VA_START_FIXIDX,
8533     OSF_NAMESPACE_A_FIXIDX,
8534     OSF_NAMESPACE_C_FIXIDX,
8535     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8536     READ_RET_TYPE_FIXIDX,
8537     RPC_XDR_LVALUE_CAST_A_FIXIDX,
8538     RPC_XDR_LVALUE_CAST_B_FIXIDX,
8539     RS6000_DOUBLE_FIXIDX,
8540     RS6000_FCHMOD_FIXIDX,
8541     RS6000_PARAM_FIXIDX,
8542     SCO_MATH_FIXIDX,
8543     SOLARIS_COMPLEX_FIXIDX,
8544     SOLARIS_MATH_1_FIXIDX,
8545     SOLARIS_MATH_2_FIXIDX,
8546     SOLARIS_MATH_3_FIXIDX,
8547     SOLARIS_MATH_4_FIXIDX,
8548     SOLARIS_MATH_8_FIXIDX,
8549     SOLARIS_MATH_9_FIXIDX,
8550     SOLARIS_MATH_10_FIXIDX,
8551     SOLARIS_MUTEX_INIT_2_FIXIDX,
8552     SOLARIS_RWLOCK_INIT_1_FIXIDX,
8553     SOLARIS_ONCE_INIT_1_FIXIDX,
8554     SOLARIS_ONCE_INIT_2_FIXIDX,
8555     SOLARIS_INT_CONST_FIXIDX,
8556     SOLARIS_INT_LIMITS_1_FIXIDX,
8557     SOLARIS_INT_LIMITS_2_FIXIDX,
8558     SOLARIS_INT_TYPES_FIXIDX,
8559     SOLARIS_STDIO_TAG_FIXIDX,
8560     STATSSWTCH_FIXIDX,
8561     STDIO_STDARG_H_FIXIDX,
8562     STDIO_VA_LIST_FIXIDX,
8563     STDIO_VA_LIST_CLIENTS_FIXIDX,
8564     STRICT_ANSI_NOT_FIXIDX,
8565     STRICT_ANSI_NOT_CTD_FIXIDX,
8566     STRICT_ANSI_ONLY_FIXIDX,
8567     STRUCT_FILE_FIXIDX,
8568     STRUCT_SOCKADDR_FIXIDX,
8569     SUN_AUTH_PROTO_FIXIDX,
8570     SUN_BOGUS_IFDEF_FIXIDX,
8571     SUN_CATMACRO_FIXIDX,
8572     SUN_MALLOC_FIXIDX,
8573     SUN_RUSERS_SEMI_FIXIDX,
8574     SUN_SIGNAL_FIXIDX,
8575     SUNOS_STRLEN_FIXIDX,
8576     SVR4_DISABLE_OPT_FIXIDX,
8577     SVR4_GETCWD_FIXIDX,
8578     SVR4_PROFIL_FIXIDX,
8579     SVR4_SIGHANDLER_TYPE_FIXIDX,
8580     SVR4_UNDECLARED_GETRNGE_FIXIDX,
8581     SYSV68_STRING_FIXIDX,
8582     SYSZ_STDLIB_FOR_SUN_FIXIDX,
8583     THREAD_KEYWORD_FIXIDX,
8584     TINFO_CPLUSPLUS_FIXIDX,
8585     ULTRIX_CONST_FIXIDX,
8586     ULTRIX_CONST2_FIXIDX,
8587     VA_I960_MACRO_FIXIDX,
8588     VOID_NULL_FIXIDX,
8589     VXWORKS_GCC_PROBLEM_FIXIDX,
8590     VXWORKS_NEEDS_VXTYPES_FIXIDX,
8591     VXWORKS_NEEDS_VXWORKS_FIXIDX,
8592     VXWORKS_TIME_FIXIDX,
8593     X11_CLASS_FIXIDX,
8594     X11_CLASS_USAGE_FIXIDX,
8595     X11_NEW_FIXIDX,
8596     X11_SPRINTF_FIXIDX
8597 } t_fixinc_idx;
8599 tFixDesc fixDescList[ FIX_COUNT ] = {
8600   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
8601      apzAab_Aix_StdioMachs,
8602      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8603      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
8605   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
8606      apzAab_Darwin7_9_Long_Double_FuncsMachs,
8607      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8608      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8610   {  zAab_Darwin7_9_Long_Double_Funcs_2Name,    zAab_Darwin7_9_Long_Double_Funcs_2List,
8611      apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8612      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8613      aAab_Darwin7_9_Long_Double_Funcs_2Tests,   apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8615   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
8616      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8617      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8618      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8620   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
8621      apzAab_Fd_Zero_Gnu_Types_HMachs,
8622      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8623      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8625   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
8626      apzAab_Fd_Zero_Selectbits_HMachs,
8627      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8628      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8630   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
8631      apzAab_Solaris_Sys_Varargs_HMachs,
8632      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8633      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8635   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
8636      apzAab_Sun_MemcpyMachs,
8637      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8638      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
8640   {  zAix_ComplexName,    zAix_ComplexList,
8641      apzAix_ComplexMachs,
8642      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8643      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
8645   {  zAix_PthreadName,    zAix_PthreadList,
8646      apzAix_PthreadMachs,
8647      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8648      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
8650   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
8651      apzAix_Stdint_1Machs,
8652      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8653      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
8655   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
8656      apzAix_Stdint_2Machs,
8657      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8658      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
8660   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
8661      apzAix_Stdint_3Machs,
8662      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8663      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
8665   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
8666      apzAix_Stdint_4Machs,
8667      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8668      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
8670   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
8671      apzAix_Stdint_5Machs,
8672      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8673      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
8675   {  zAix_SysmachineName,    zAix_SysmachineList,
8676      apzAix_SysmachineMachs,
8677      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8678      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
8680   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
8681      apzAix_Syswait_2Machs,
8682      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8683      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
8685   {  zAix_VolatileName,    zAix_VolatileList,
8686      apzAix_VolatileMachs,
8687      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8688      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
8690   {  zAlpha___AssertName,    zAlpha___AssertList,
8691      apzAlpha___AssertMachs,
8692      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8693      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
8695   {  zAlpha___Extern_PrefixName,    zAlpha___Extern_PrefixList,
8696      apzAlpha___Extern_PrefixMachs,
8697      ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8698      aAlpha___Extern_PrefixTests,   apzAlpha___Extern_PrefixPatch, 0 },
8700   {  zAlpha___Extern_Prefix_StandardsName,    zAlpha___Extern_Prefix_StandardsList,
8701      apzAlpha___Extern_Prefix_StandardsMachs,
8702      ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8703      aAlpha___Extern_Prefix_StandardsTests,   apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8705   {  zAlpha___Extern_Prefix_Sys_StatName,    zAlpha___Extern_Prefix_Sys_StatList,
8706      apzAlpha___Extern_Prefix_Sys_StatMachs,
8707      ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8708      aAlpha___Extern_Prefix_Sys_StatTests,   apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8710   {  zAlpha_AssertName,    zAlpha_AssertList,
8711      apzAlpha_AssertMachs,
8712      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8713      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
8715   {  zAlpha_Bad_LvalName,    zAlpha_Bad_LvalList,
8716      apzAlpha_Bad_LvalMachs,
8717      ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8718      aAlpha_Bad_LvalTests,   apzAlpha_Bad_LvalPatch, 0 },
8720   {  zAlpha_GetoptName,    zAlpha_GetoptList,
8721      apzAlpha_GetoptMachs,
8722      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8723      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
8725   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
8726      apzAlpha_If_SemicolonMachs,
8727      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8728      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
8730   {  zAlpha_ParensName,    zAlpha_ParensList,
8731      apzAlpha_ParensMachs,
8732      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8733      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
8735   {  zAlpha_PthreadName,    zAlpha_PthreadList,
8736      apzAlpha_PthreadMachs,
8737      ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8738      aAlpha_PthreadTests,   apzAlpha_PthreadPatch, 0 },
8740   {  zAlpha_Pthread_GccName,    zAlpha_Pthread_GccList,
8741      apzAlpha_Pthread_GccMachs,
8742      ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8743      aAlpha_Pthread_GccTests,   apzAlpha_Pthread_GccPatch, 0 },
8745   {  zAlpha_Pthread_InitName,    zAlpha_Pthread_InitList,
8746      apzAlpha_Pthread_InitMachs,
8747      ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8748      aAlpha_Pthread_InitTests,   apzAlpha_Pthread_InitPatch, 0 },
8750   {  zAlpha_SbrkName,    zAlpha_SbrkList,
8751      apzAlpha_SbrkMachs,
8752      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8753      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
8755   {  zAlpha_WcharName,    zAlpha_WcharList,
8756      apzAlpha_WcharMachs,
8757      ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8758      aAlpha_WcharTests,   apzAlpha_WcharPatch, 0 },
8760   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
8761      apzAvoid_Bool_DefineMachs,
8762      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8763      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
8765   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
8766      apzAvoid_Bool_TypeMachs,
8767      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8768      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
8770   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
8771      apzAvoid_Wchar_T_TypeMachs,
8772      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8773      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
8775   {  zBad_Struct_TermName,    zBad_Struct_TermList,
8776      apzBad_Struct_TermMachs,
8777      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8778      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
8780   {  zBadquoteName,    zBadquoteList,
8781      apzBadquoteMachs,
8782      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8783      aBadquoteTests,   apzBadquotePatch, 0 },
8785   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
8786      apzBroken_Assert_StdioMachs,
8787      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8788      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
8790   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
8791      apzBroken_Assert_StdlibMachs,
8792      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8793      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
8795   {  zBroken_CabsName,    zBroken_CabsList,
8796      apzBroken_CabsMachs,
8797      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8798      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
8800   {  zBroken_NanName,    zBroken_NanList,
8801      apzBroken_NanMachs,
8802      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8803      aBroken_NanTests,   apzBroken_NanPatch, 0 },
8805   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
8806      apzBsd_Stdio_Attrs_ConflictMachs,
8807      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8808      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8810   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
8811      apzCtrl_Quotes_DefMachs,
8812      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8813      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
8815   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
8816      apzCtrl_Quotes_UseMachs,
8817      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8818      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
8820   {  zCxx_UnreadyName,    zCxx_UnreadyList,
8821      apzCxx_UnreadyMachs,
8822      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8823      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
8825   {  zDarwin_ExterncName,    zDarwin_ExterncList,
8826      apzDarwin_ExterncMachs,
8827      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8828      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
8830   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
8831      apzDarwin_Gcc4_BreakageMachs,
8832      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8833      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
8835   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
8836      apzDarwin_Private_ExternMachs,
8837      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8838      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
8840   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
8841      apzDarwin_Stdint_1Machs,
8842      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8843      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
8845   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
8846      apzDarwin_Stdint_2Machs,
8847      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8848      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
8850   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
8851      apzDarwin_Stdint_3Machs,
8852      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8853      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
8855   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
8856      apzDarwin_Stdint_4Machs,
8857      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8858      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
8860   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
8861      apzDarwin_Stdint_5Machs,
8862      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8863      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
8865   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
8866      apzDarwin_Stdint_6Machs,
8867      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8868      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
8870   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
8871      apzDarwin_Stdint_7Machs,
8872      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8873      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
8875   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
8876      apzDec_Intern_AsmMachs,
8877      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8878      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
8880   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
8881      apzDjgpp_Wchar_HMachs,
8882      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8883      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
8885   {  zEcd_CursorName,    zEcd_CursorList,
8886      apzEcd_CursorMachs,
8887      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8888      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
8890   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
8891      apzFreebsd_Gcc3_BreakageMachs,
8892      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8893      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
8895   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
8896      apzFreebsd_Gcc4_BreakageMachs,
8897      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8898      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
8900   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
8901      apzGlibc_C99_Inline_1Machs,
8902      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8903      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
8905   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
8906      apzGlibc_C99_Inline_1aMachs,
8907      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8908      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
8910   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
8911      apzGlibc_C99_Inline_2Machs,
8912      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
8913      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
8915   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
8916      apzGlibc_C99_Inline_3Machs,
8917      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8918      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
8920   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
8921      apzGlibc_C99_Inline_4Machs,
8922      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8923      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
8925   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
8926      apzGlibc_Mutex_InitMachs,
8927      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8928      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
8930   {  zGlibc_StdintName,    zGlibc_StdintList,
8931      apzGlibc_StdintMachs,
8932      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8933      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
8935   {  zGlibc_TgmathName,    zGlibc_TgmathList,
8936      apzGlibc_TgmathMachs,
8937      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8938      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
8940   {  zGnu_TypesName,    zGnu_TypesList,
8941      apzGnu_TypesMachs,
8942      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8943      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
8945   {  zHp_InlineName,    zHp_InlineList,
8946      apzHp_InlineMachs,
8947      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8948      aHp_InlineTests,   apzHp_InlinePatch, 0 },
8950   {  zHp_SysfileName,    zHp_SysfileList,
8951      apzHp_SysfileMachs,
8952      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8953      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
8955   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
8956      apzHppa_Hpux_Fp_MacrosMachs,
8957      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8958      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
8960   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
8961      apzHpux10_Cpp_Pow_InlineMachs,
8962      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8963      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
8965   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
8966      apzHpux11_Cpp_Pow_InlineMachs,
8967      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8968      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
8970   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
8971      apzHpux10_Ctype_Declarations1Machs,
8972      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8973      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
8975   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
8976      apzHpux10_Ctype_Declarations2Machs,
8977      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8978      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
8980   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
8981      apzHpux10_Stdio_DeclarationsMachs,
8982      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8983      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
8985   {  zHpux11_AbsName,    zHpux11_AbsList,
8986      apzHpux11_AbsMachs,
8987      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8988      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
8990   {  zHpux11_FabsfName,    zHpux11_FabsfList,
8991      apzHpux11_FabsfMachs,
8992      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8993      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
8995   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
8996      apzHpux11_Pthread_ConstMachs,
8997      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8998      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
9000   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9001      apzHpux11_Size_TMachs,
9002      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9003      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9005   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9006      apzHpux11_SnprintfMachs,
9007      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9008      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9010   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9011      apzHpux11_VsnprintfMachs,
9012      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9013      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9015   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9016      apzHpux8_Bogus_InlinesMachs,
9017      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9018      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9020   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9021      apzHpux_Ctype_MacrosMachs,
9022      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9023      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9025   {  zHpux_HtonlName,    zHpux_HtonlList,
9026      apzHpux_HtonlMachs,
9027      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9028      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9030   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9031      apzHpux_Long_DoubleMachs,
9032      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9033      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9035   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
9036      apzHpux_Long_Double_2Machs,
9037      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9038      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
9040   {  zHpux_SystimeName,    zHpux_SystimeList,
9041      apzHpux_SystimeMachs,
9042      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9043      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9045   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9046      apzHpux_Spu_InfoMachs,
9047      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9048      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9050   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9051      apzHpux11_Extern_SendfileMachs,
9052      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9053      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9055   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9056      apzHpux11_Extern_SendpathMachs,
9057      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9058      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9060   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9061      apzHpux_Extern_ErrnoMachs,
9062      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9063      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9065   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
9066      apzHpux_Pthread_InitializersMachs,
9067      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9068      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
9070   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
9071      apzHpux_C99_IntptrMachs,
9072      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9073      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
9075   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
9076      apzHpux_C99_InttypesMachs,
9077      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9078      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
9080   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
9081      apzHpux_C99_Inttypes2Machs,
9082      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9083      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
9085   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
9086      apzHpux_Stdint_Least_FastMachs,
9087      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9088      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
9090   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
9091      apzHpux_Inttype_Int8_TMachs,
9092      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9093      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
9095   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
9096      apzHpux_Imaginary_IMachs,
9097      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9098      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
9100   {  zHuge_Val_HexName,    zHuge_Val_HexList,
9101      apzHuge_Val_HexMachs,
9102      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9103      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
9105   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
9106      apzHuge_Valf_HexMachs,
9107      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9108      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
9110   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
9111      apzHuge_Vall_HexMachs,
9112      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9113      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
9115   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
9116      apzInt_Abort_Free_And_ExitMachs,
9117      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9118      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
9120   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
9121      apzIo_Quotes_DefMachs,
9122      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9123      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
9125   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
9126      apzIo_Quotes_UseMachs,
9127      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9128      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
9130   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
9131      apzIp_Missing_SemiMachs,
9132      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9133      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
9135   {  zIrix___RestrictName,    zIrix___RestrictList,
9136      apzIrix___RestrictMachs,
9137      IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9138      aIrix___RestrictTests,   apzIrix___RestrictPatch, 0 },
9140   {  zIrix___Generic1Name,    zIrix___Generic1List,
9141      apzIrix___Generic1Machs,
9142      IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9143      aIrix___Generic1Tests,   apzIrix___Generic1Patch, 0 },
9145   {  zIrix___Generic2Name,    zIrix___Generic2List,
9146      apzIrix___Generic2Machs,
9147      IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9148      aIrix___Generic2Tests,   apzIrix___Generic2Patch, 0 },
9150   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
9151      apzIrix_Asm_ApostropheMachs,
9152      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9153      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch, 0 },
9155   {  zIrix_ComplexName,    zIrix_ComplexList,
9156      apzIrix_ComplexMachs,
9157      IRIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
9158      aIrix_ComplexTests,   apzIrix_ComplexPatch, 0 },
9160   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
9161      apzIrix_Limits_ConstMachs,
9162      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9163      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
9165   {  zIrix_Socklen_TName,    zIrix_Socklen_TList,
9166      apzIrix_Socklen_TMachs,
9167      IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9168      aIrix_Socklen_TTests,   apzIrix_Socklen_TPatch, 0 },
9170   {  zIrix_Stdint_C99Name,    zIrix_Stdint_C99List,
9171      apzIrix_Stdint_C99Machs,
9172      IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9173      aIrix_Stdint_C99Tests,   apzIrix_Stdint_C99Patch, 0 },
9175   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
9176      apzIrix_Stdio_Va_ListMachs,
9177      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9178      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
9180   {  zIrix_WcsftimeName,    zIrix_WcsftimeList,
9181      apzIrix_WcsftimeMachs,
9182      IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9183      aIrix_WcsftimeTests,   apzIrix_WcsftimePatch, 0 },
9185   {  zIsc_FmodName,    zIsc_FmodList,
9186      apzIsc_FmodMachs,
9187      ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9188      aIsc_FmodTests,   apzIsc_FmodPatch, 0 },
9190   {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
9191      apzIsc_Omits_With_StdcMachs,
9192      ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9193      aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch, 0 },
9195   {  zKandr_ConcatName,    zKandr_ConcatList,
9196      apzKandr_ConcatMachs,
9197      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9198      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
9200   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
9201      apzLinux_Ia64_UcontextMachs,
9202      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9203      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
9205   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
9206      apzLynxos_No_Warning_In_Sys_Time_HMachs,
9207      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9208      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9210   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
9211      apzLynxos_Missing_PutenvMachs,
9212      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9213      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
9215   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
9216      apzMachine_Ansi_H_Va_ListMachs,
9217      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9218      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
9220   {  zMachine_NameName,    zMachine_NameList,
9221      apzMachine_NameMachs,
9222      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9223      aMachine_NameTests,   apzMachine_NamePatch, 0 },
9225   {  zMath_ExceptionName,    zMath_ExceptionList,
9226      apzMath_ExceptionMachs,
9227      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9228      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
9230   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
9231      apzMath_Huge_Val_From_Dbl_MaxMachs,
9232      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9233      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9235   {  zNested_Auth_DesName,    zNested_Auth_DesList,
9236      apzNested_Auth_DesMachs,
9237      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9238      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
9240   {  zNested_Sys_LimitsName,    zNested_Sys_LimitsList,
9241      apzNested_Sys_LimitsMachs,
9242      NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9243      aNested_Sys_LimitsTests,   apzNested_Sys_LimitsPatch, 0 },
9245   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
9246      apzNetbsd_C99_Inline_1Machs,
9247      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9248      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
9250   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
9251      apzNetbsd_C99_Inline_2Machs,
9252      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9253      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
9255   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
9256      apzNetbsd_Extra_SemicolonMachs,
9257      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9258      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
9260   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
9261      apzNewlib_Stdint_1Machs,
9262      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9263      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
9265   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
9266      apzNewlib_Stdint_2Machs,
9267      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9268      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
9270   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
9271      apzNext_Math_PrefixMachs,
9272      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
9275   {  zNext_TemplateName,    zNext_TemplateList,
9276      apzNext_TemplateMachs,
9277      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9278      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
9280   {  zNext_VolitileName,    zNext_VolitileList,
9281      apzNext_VolitileMachs,
9282      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
9285   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
9286      apzNext_Wait_UnionMachs,
9287      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9288      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
9290   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
9291      apzNodeent_SyntaxMachs,
9292      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9293      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
9295   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
9296      apzOpenbsd_Null_DefinitionMachs,
9297      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9298      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
9300   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
9301      apzObstack_Lvalue_CastMachs,
9302      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9303      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
9305   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
9306      apzOpenbsd_Va_StartMachs,
9307      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
9310   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
9311      apzOsf_Namespace_AMachs,
9312      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9313      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
9315   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
9316      apzOsf_Namespace_CMachs,
9317      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9318      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
9320   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
9321      apzPthread_Incomplete_Struct_ArgumentMachs,
9322      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9323      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9325   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
9326      apzRead_Ret_TypeMachs,
9327      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9328      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
9330   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
9331      apzRpc_Xdr_Lvalue_Cast_AMachs,
9332      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9335   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
9336      apzRpc_Xdr_Lvalue_Cast_BMachs,
9337      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9340   {  zRs6000_DoubleName,    zRs6000_DoubleList,
9341      apzRs6000_DoubleMachs,
9342      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
9345   {  zRs6000_FchmodName,    zRs6000_FchmodList,
9346      apzRs6000_FchmodMachs,
9347      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
9350   {  zRs6000_ParamName,    zRs6000_ParamList,
9351      apzRs6000_ParamMachs,
9352      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
9355   {  zSco_MathName,    zSco_MathList,
9356      apzSco_MathMachs,
9357      SCO_MATH_TEST_CT, FD_MACH_ONLY,
9358      aSco_MathTests,   apzSco_MathPatch, 0 },
9360   {  zSolaris_ComplexName,    zSolaris_ComplexList,
9361      apzSolaris_ComplexMachs,
9362      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
9363      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
9365   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
9366      apzSolaris_Math_1Machs,
9367      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
9370   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
9371      apzSolaris_Math_2Machs,
9372      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
9375   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
9376      apzSolaris_Math_3Machs,
9377      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
9380   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
9381      apzSolaris_Math_4Machs,
9382      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
9385   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
9386      apzSolaris_Math_8Machs,
9387      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
9390   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
9391      apzSolaris_Math_9Machs,
9392      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
9395   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
9396      apzSolaris_Math_10Machs,
9397      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
9400   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
9401      apzSolaris_Mutex_Init_2Machs,
9402      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
9405   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
9406      apzSolaris_Rwlock_Init_1Machs,
9407      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
9410   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
9411      apzSolaris_Once_Init_1Machs,
9412      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
9415   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
9416      apzSolaris_Once_Init_2Machs,
9417      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
9420   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
9421      apzSolaris_Int_ConstMachs,
9422      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
9425   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
9426      apzSolaris_Int_Limits_1Machs,
9427      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
9430   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
9431      apzSolaris_Int_Limits_2Machs,
9432      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
9435   {  zSolaris_Int_TypesName,    zSolaris_Int_TypesList,
9436      apzSolaris_Int_TypesMachs,
9437      SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438      aSolaris_Int_TypesTests,   apzSolaris_Int_TypesPatch, 0 },
9440   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
9441      apzSolaris_Stdio_TagMachs,
9442      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9443      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
9445   {  zStatsswtchName,    zStatsswtchList,
9446      apzStatsswtchMachs,
9447      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448      aStatsswtchTests,   apzStatsswtchPatch, 0 },
9450   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
9451      apzStdio_Stdarg_HMachs,
9452      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9453      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
9455   {  zStdio_Va_ListName,    zStdio_Va_ListList,
9456      apzStdio_Va_ListMachs,
9457      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9458      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
9460   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
9461      apzStdio_Va_List_ClientsMachs,
9462      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9463      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
9465   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
9466      apzStrict_Ansi_NotMachs,
9467      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
9470   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
9471      apzStrict_Ansi_Not_CtdMachs,
9472      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
9475   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
9476      apzStrict_Ansi_OnlyMachs,
9477      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9478      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
9480   {  zStruct_FileName,    zStruct_FileList,
9481      apzStruct_FileMachs,
9482      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483      aStruct_FileTests,   apzStruct_FilePatch, 0 },
9485   {  zStruct_SockaddrName,    zStruct_SockaddrList,
9486      apzStruct_SockaddrMachs,
9487      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
9490   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
9491      apzSun_Auth_ProtoMachs,
9492      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
9495   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
9496      apzSun_Bogus_IfdefMachs,
9497      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
9500   {  zSun_CatmacroName,    zSun_CatmacroList,
9501      apzSun_CatmacroMachs,
9502      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
9505   {  zSun_MallocName,    zSun_MallocList,
9506      apzSun_MallocMachs,
9507      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9508      aSun_MallocTests,   apzSun_MallocPatch, 0 },
9510   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
9511      apzSun_Rusers_SemiMachs,
9512      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9513      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
9515   {  zSun_SignalName,    zSun_SignalList,
9516      apzSun_SignalMachs,
9517      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518      aSun_SignalTests,   apzSun_SignalPatch, 0 },
9520   {  zSunos_StrlenName,    zSunos_StrlenList,
9521      apzSunos_StrlenMachs,
9522      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
9525   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
9526      apzSvr4_Disable_OptMachs,
9527      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9528      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
9530   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
9531      apzSvr4_GetcwdMachs,
9532      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
9535   {  zSvr4_ProfilName,    zSvr4_ProfilList,
9536      apzSvr4_ProfilMachs,
9537      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
9540   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
9541      apzSvr4_Sighandler_TypeMachs,
9542      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
9545   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
9546      apzSvr4_Undeclared_GetrngeMachs,
9547      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
9550   {  zSysv68_StringName,    zSysv68_StringList,
9551      apzSysv68_StringMachs,
9552      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9553      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
9555   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
9556      apzSysz_Stdlib_For_SunMachs,
9557      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9558      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
9560   {  zThread_KeywordName,    zThread_KeywordList,
9561      apzThread_KeywordMachs,
9562      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
9565   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
9566      apzTinfo_CplusplusMachs,
9567      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
9570   {  zUltrix_ConstName,    zUltrix_ConstList,
9571      apzUltrix_ConstMachs,
9572      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
9575   {  zUltrix_Const2Name,    zUltrix_Const2List,
9576      apzUltrix_Const2Machs,
9577      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
9580   {  zVa_I960_MacroName,    zVa_I960_MacroList,
9581      apzVa_I960_MacroMachs,
9582      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
9585   {  zVoid_NullName,    zVoid_NullList,
9586      apzVoid_NullMachs,
9587      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588      aVoid_NullTests,   apzVoid_NullPatch, 0 },
9590   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
9591      apzVxworks_Gcc_ProblemMachs,
9592      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9593      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
9595   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
9596      apzVxworks_Needs_VxtypesMachs,
9597      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
9600   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
9601      apzVxworks_Needs_VxworksMachs,
9602      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9603      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
9605   {  zVxworks_TimeName,    zVxworks_TimeList,
9606      apzVxworks_TimeMachs,
9607      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
9610   {  zX11_ClassName,    zX11_ClassList,
9611      apzX11_ClassMachs,
9612      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aX11_ClassTests,   apzX11_ClassPatch, 0 },
9615   {  zX11_Class_UsageName,    zX11_Class_UsageList,
9616      apzX11_Class_UsageMachs,
9617      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
9620   {  zX11_NewName,    zX11_NewList,
9621      apzX11_NewMachs,
9622      X11_NEW_TEST_CT, FD_MACH_ONLY,
9623      aX11_NewTests,   apzX11_NewPatch, 0 },
9625   {  zX11_SprintfName,    zX11_SprintfList,
9626      apzX11_SprintfMachs,
9627      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }