PR c++/54988
[official-gcc.git] / fixincludes / fixincl.x
blob50a553fa125dfdae5493a2cae19aec75b3a6965d
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  Saturday September 29, 2012 at 01:58:03 PM PDT
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Sep 29 13:58:03 PDT 2012
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 216 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_Aix_Fcntl fix
105  */
106 tSCC zAab_Aix_FcntlName[] =
107      "AAB_aix_fcntl";
110  *  File name selection pattern
111  */
112 tSCC zAab_Aix_FcntlList[] =
113   "fcntl.h\0";
115  *  Machine/OS name selection pattern
116  */
117 tSCC* apzAab_Aix_FcntlMachs[] = {
118         "*-*-aix*",
119         (const char*)NULL };
122  *  content selection pattern - do fix if pattern found
123  */
124 tSCC zAab_Aix_FcntlSelect0[] =
125        "define open[ \t]open64";
127 #define    AAB_AIX_FCNTL_TEST_CT  1
128 static tTestDesc aAab_Aix_FcntlTests[] = {
129   { TT_EGREP,    zAab_Aix_FcntlSelect0, (regex_t*)NULL }, };
132  *  Fix Command Arguments for Aab_Aix_Fcntl
133  */
134 static const char* apzAab_Aix_FcntlPatch[] = {
135     "wrap",
136     "",
137     "\n\
138 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
139 #define __need__aix_fcntl_h_fix\n\
140 #ifdef __need__aix_fcntl_h_fix\n\
141 #undef open\n\
142 #undef creat\n\
143 #undef openat\n\
144 /* Alias the symbols using asm */\n\
145 extern \"C\" {\n\
146 extern int open(const char *, int, ...) __asm__(\"open64\");\n\
147 extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\
148 #if (_XOPEN_SOURCE >= 700)\n\
149 extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\
150 #endif\n\
151 }\n\
152 #endif\n\
153 #endif\n",
154     (char*)NULL };
156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
158  *  Description of Aab_Darwin7_9_Long_Double_Funcs fix
159  */
160 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
161      "AAB_darwin7_9_long_double_funcs";
164  *  File name selection pattern
165  */
166 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
167   "architecture/ppc/math.h\0";
169  *  Machine/OS name selection pattern
170  */
171 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
172         "*-*-darwin7.9*",
173         (const char*)NULL };
176  *  content bypass pattern - skip fix if pattern found
177  */
178 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
179        "powl";
181 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT  1
182 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
183   { TT_NEGREP,   zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
186  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
187  */
188 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
189 "/* This file prototypes the long double functions available on Mac OS\n\
190    10.3.9.  */\n\
191 #ifndef __MATH__\n\
192 # undef __APPLE_CC__\n\
193 # define __APPLE_CC__  1345\n\
194 # include_next <architecture/ppc/math.h>\n\
195 # undef __APPLE_CC__\n\
196 # define __APPLE_CC__ 1\n\
197 # ifndef __LIBMLDBL_COMPAT\n\
198 #  ifdef __LONG_DOUBLE_128__\n\
199 #   define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
200 #  else\n\
201 #   define __LIBMLDBL_COMPAT(sym)\n\
202 #  endif /* __LONG_DOUBLE_128__ */\n\
203 # endif /* __LIBMLDBL_COMPAT */\n\
204 # ifdef __cplusplus\n\
205    extern \"C\" {\n\
206 # endif\n\
207   extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
208   extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
209   extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
210   extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
211   extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
212   extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
213   extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
214   extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
215   extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
216   extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
217   extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
218   extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
219   extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
220   extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
221   extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
222   extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
223   extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
224   extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
225   extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
226   extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
227   extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
228   extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
229   extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
230   extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
231   extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
232   extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
233   extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
234   extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
235   extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
236   extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
237   extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
238   extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
239   extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
240   extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
241   extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
242   extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
243   extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
244   extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
245   extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
246   extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
247   extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
248   extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
249   extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
250   extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
251   extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
252   extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
253   extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
254   extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
255   extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
256   extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
257   extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
258   extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
259   extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
260   extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
261   extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
262   extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
263   extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
264 # ifdef __cplusplus\n\
265    }\n\
266 # endif\n\
267 #endif /* __MATH__ */",
268     (char*)NULL };
270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
272  *  Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
273  */
274 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
275      "AAB_darwin7_9_long_double_funcs_2";
278  *  File name selection pattern
279  */
280 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
281   "math.h\0";
283  *  Machine/OS name selection pattern
284  */
285 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
286         "*-*-darwin7.9*",
287         (const char*)NULL };
290  *  content selection pattern - do fix if pattern found
291  */
292 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
293        "#include[ \\t]+\\\"";
295 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
296 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
297   { TT_EGREP,    zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
300  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
301  */
302 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
303     "format",
304     "%1<%2.h>",
305     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
306     (char*)NULL };
308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
310  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
311  */
312 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
313      "AAB_fd_zero_asm_posix_types_h";
316  *  File name selection pattern
317  */
318 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
319   "asm/posix_types.h\0";
321  *  Machine/OS name selection pattern
322  */
323 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
324         "i[34567]86-*-linux*",
325         (const char*)NULL };
328  *  content bypass pattern - skip fix if pattern found
329  */
330 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
331        "} while";
332 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
333        "x86_64";
334 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
335        "posix_types_64";
337 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  3
338 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
339   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
340   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
341   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
344  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
345  */
346 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
347 "/* This file fixes a bug in the __FD_ZERO macro\n\
348    for older versions of the Linux kernel. */\n\
349 #ifndef _POSIX_TYPES_H_WRAPPER\n\
350 #include <features.h>\n\
351  #include_next <asm/posix_types.h>\n\n\
352 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
353 #undef __FD_ZERO\n\
354 #define __FD_ZERO(fdsetp) \\\n\
355   do { \\\n\
356     int __d0, __d1; \\\n\
357 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
358 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
359 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
360   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
361   } while (0)\n\
362 #endif\n\n\
363 #define _POSIX_TYPES_H_WRAPPER\n\
364 #endif /* _POSIX_TYPES_H_WRAPPER */",
365     (char*)NULL };
367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
369  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
370  */
371 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
372      "AAB_fd_zero_gnu_types_h";
375  *  File name selection pattern
376  */
377 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
378   "gnu/types.h\0";
380  *  Machine/OS name selection pattern
381  */
382 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
383         "i[34567]86-*-linux*",
384         (const char*)NULL };
385 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
386 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
389  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
390  */
391 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
392 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
393 #ifndef _TYPES_H_WRAPPER\n\
394 #include <features.h>\n\
395 #include_next <gnu/types.h>\n\n\
396 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
397 #undef __FD_ZERO\n\
398 # define __FD_ZERO(fdsetp) \\\n\
399   do { \\\n\
400     int __d0, __d1; \\\n\
401         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
402         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
403         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
404           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
405   } while (0)\n\
406 #endif\n\n\
407 #define _TYPES_H_WRAPPER\n\
408 #endif /* _TYPES_H_WRAPPER */",
409     (char*)NULL };
411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
413  *  Description of Aab_Fd_Zero_Selectbits_H fix
414  */
415 tSCC zAab_Fd_Zero_Selectbits_HName[] =
416      "AAB_fd_zero_selectbits_h";
419  *  File name selection pattern
420  */
421 tSCC zAab_Fd_Zero_Selectbits_HList[] =
422   "selectbits.h\0";
424  *  Machine/OS name selection pattern
425  */
426 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
427         "i[34567]86-*-linux*",
428         (const char*)NULL };
429 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
430 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
433  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
434  */
435 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
436 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
437 #ifndef _SELECTBITS_H_WRAPPER\n\
438   #include <features.h>\n\
439   #include_next <selectbits.h>\n\n\
440   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
441   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
442   && __GLIBC_MINOR__ == 0\n\
443      #undef __FD_ZERO\n\
444      #define __FD_ZERO(fdsetp) \\\\\n\
445      do { \\\\\n\
446         int __d0, __d1; \\\\\n\
447       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
448                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
449                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
450                                         / sizeof (__fd_mask)), \\\\\n\
451                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
452                         : \"memory\"); \\\\\n\
453       } while (0)\n\
454   #endif\n\n\
455   #define _SELECTBITS_H_WRAPPER\n\
456 #endif /* _SELECTBITS_H_WRAPPER */",
457     (char*)NULL };
459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
461  *  Description of Aab_Solaris_Sys_Varargs_H fix
462  */
463 tSCC zAab_Solaris_Sys_Varargs_HName[] =
464      "AAB_solaris_sys_varargs_h";
467  *  File name selection pattern
468  */
469 tSCC zAab_Solaris_Sys_Varargs_HList[] =
470   "sys/varargs.h\0";
472  *  Machine/OS name selection pattern
473  */
474 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
475         "*-*-solaris*",
476         (const char*)NULL };
477 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
478 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
481  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
482  */
483 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
484 "#ifdef __STDC__\n\
485   #include <stdarg.h>\n\
486 #else\n\
487   #include <varargs.h>\n\
488 #endif",
489     (char*)NULL };
491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
493  *  Description of Aab_Sun_Memcpy fix
494  */
495 tSCC zAab_Sun_MemcpyName[] =
496      "AAB_sun_memcpy";
499  *  File name selection pattern
500  */
501 tSCC zAab_Sun_MemcpyList[] =
502   "memory.h\0";
504  *  Machine/OS name selection pattern
505  */
506 #define apzAab_Sun_MemcpyMachs (const char**)NULL
509  *  content selection pattern - do fix if pattern found
510  */
511 tSCC zAab_Sun_MemcpySelect0[] =
512        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
514 #define    AAB_SUN_MEMCPY_TEST_CT  1
515 static tTestDesc aAab_Sun_MemcpyTests[] = {
516   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
519  *  Fix Command Arguments for Aab_Sun_Memcpy
520  */
521 static const char* apzAab_Sun_MemcpyPatch[] = {
522 "/* This file was generated by fixincludes */\n\
523 #ifndef __memory_h__\n\
524   #define __memory_h__\n\n\
525   #ifdef __STDC__\n\
526     extern void *memccpy();\n\
527     extern void *memchr();\n\
528     extern void *memcpy();\n\
529     extern void *memset();\n\
530   #else\n\
531     extern char *memccpy();\n\
532     extern char *memchr();\n\
533     extern char *memcpy();\n\
534     extern char *memset();\n\
535   #endif /* __STDC__ */\n\n\
536   extern int memcmp();\n\n\
537 #endif /* __memory_h__ */",
538     (char*)NULL };
540 /* * * * * * * * * * * * * * * * * * * * * * * * * *
542  *  Description of Aix_Complex fix
543  */
544 tSCC zAix_ComplexName[] =
545      "aix_complex";
548  *  File name selection pattern
549  */
550 tSCC zAix_ComplexList[] =
551   "complex.h\0";
553  *  Machine/OS name selection pattern
554  */
555 tSCC* apzAix_ComplexMachs[] = {
556         "*-*-aix*",
557         (const char*)NULL };
560  *  content selection pattern - do fix if pattern found
561  */
562 tSCC zAix_ComplexSelect0[] =
563        "#define[ \t]_Complex_I[ \t]__I";
565 #define    AIX_COMPLEX_TEST_CT  1
566 static tTestDesc aAix_ComplexTests[] = {
567   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
570  *  Fix Command Arguments for Aix_Complex
571  */
572 static const char* apzAix_ComplexPatch[] = {
573     "format",
574     "#define _Complex_I (__extension__ 1.0iF)",
575     (char*)NULL };
577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
579  *  Description of Aix_Malloc fix
580  */
581 tSCC zAix_MallocName[] =
582      "aix_malloc";
585  *  File name selection pattern
586  */
587 tSCC zAix_MallocList[] =
588   "malloc.h\0";
590  *  Machine/OS name selection pattern
591  */
592 tSCC* apzAix_MallocMachs[] = {
593         "*-*-aix*",
594         (const char*)NULL };
597  *  content selection pattern - do fix if pattern found
598  */
599 tSCC zAix_MallocSelect0[] =
600        "#ifdef __cplusplus";
602 #define    AIX_MALLOC_TEST_CT  1
603 static tTestDesc aAix_MallocTests[] = {
604   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
607  *  Fix Command Arguments for Aix_Malloc
608  */
609 static const char* apzAix_MallocPatch[] = {
610     "format",
611     "#if (defined(__cplusplus) && defined(__IBMCPP__))",
612     (char*)NULL };
614 /* * * * * * * * * * * * * * * * * * * * * * * * * *
616  *  Description of Aix_Net_If_Arp fix
617  */
618 tSCC zAix_Net_If_ArpName[] =
619      "aix_net_if_arp";
622  *  File name selection pattern
623  */
624 tSCC zAix_Net_If_ArpList[] =
625   "net/if_arp.h\0";
627  *  Machine/OS name selection pattern
628  */
629 tSCC* apzAix_Net_If_ArpMachs[] = {
630         "*-*-aix*",
631         (const char*)NULL };
634  *  content selection pattern - do fix if pattern found
635  */
636 tSCC zAix_Net_If_ArpSelect0[] =
637        "^struct  fc_softc \\{";
639 #define    AIX_NET_IF_ARP_TEST_CT  1
640 static tTestDesc aAix_Net_If_ArpTests[] = {
641   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
644  *  Fix Command Arguments for Aix_Net_If_Arp
645  */
646 static const char* apzAix_Net_If_ArpPatch[] = {
647     "format",
648     "typedef struct _fc_softc {",
649     (char*)NULL };
651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
653  *  Description of Aix_Once_Init_1 fix
654  */
655 tSCC zAix_Once_Init_1Name[] =
656      "aix_once_init_1";
659  *  File name selection pattern
660  */
661 tSCC zAix_Once_Init_1List[] =
662   "pthread.h\0";
664  *  Machine/OS name selection pattern
665  */
666 tSCC* apzAix_Once_Init_1Machs[] = {
667         "*-*-aix*",
668         (const char*)NULL };
671  *  content selection pattern - do fix if pattern found
672  */
673 tSCC zAix_Once_Init_1Select0[] =
674        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
675 \\{ \\\\\n";
677 #define    AIX_ONCE_INIT_1_TEST_CT  1
678 static tTestDesc aAix_Once_Init_1Tests[] = {
679   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
682  *  Fix Command Arguments for Aix_Once_Init_1
683  */
684 static const char* apzAix_Once_Init_1Patch[] = {
685     "format",
686     "#define PTHREAD_ONCE_INIT \\\n\
687 {{ \\\n",
688     (char*)NULL };
690 /* * * * * * * * * * * * * * * * * * * * * * * * * *
692  *  Description of Aix_Once_Init_2 fix
693  */
694 tSCC zAix_Once_Init_2Name[] =
695      "aix_once_init_2";
698  *  File name selection pattern
699  */
700 tSCC zAix_Once_Init_2List[] =
701   "pthread.h\0";
703  *  Machine/OS name selection pattern
704  */
705 tSCC* apzAix_Once_Init_2Machs[] = {
706         "*-*-aix*",
707         (const char*)NULL };
710  *  content selection pattern - do fix if pattern found
711  */
712 tSCC zAix_Once_Init_2Select0[] =
713        "[ \t]0 \\\\\n\
714 \\}\n";
716 #define    AIX_ONCE_INIT_2_TEST_CT  1
717 static tTestDesc aAix_Once_Init_2Tests[] = {
718   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
721  *  Fix Command Arguments for Aix_Once_Init_2
722  */
723 static const char* apzAix_Once_Init_2Patch[] = {
724     "format",
725     "\t0 \\\n\
726 }}\n",
727     (char*)NULL };
729 /* * * * * * * * * * * * * * * * * * * * * * * * * *
731  *  Description of Aix_Mutex_Initializer_1 fix
732  */
733 tSCC zAix_Mutex_Initializer_1Name[] =
734      "aix_mutex_initializer_1";
737  *  File name selection pattern
738  */
739 tSCC zAix_Mutex_Initializer_1List[] =
740   "pthread.h\0";
742  *  Machine/OS name selection pattern
743  */
744 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
745         "*-*-aix*",
746         (const char*)NULL };
749  *  content selection pattern - do fix if pattern found
750  */
751 tSCC zAix_Mutex_Initializer_1Select0[] =
752        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
753 \\{ \\\\\n";
755 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
756 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
757   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
760  *  Fix Command Arguments for Aix_Mutex_Initializer_1
761  */
762 static const char* apzAix_Mutex_Initializer_1Patch[] = {
763     "format",
764     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
765 {{ \\\n",
766     (char*)NULL };
768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
770  *  Description of Aix_Cond_Initializer_1 fix
771  */
772 tSCC zAix_Cond_Initializer_1Name[] =
773      "aix_cond_initializer_1";
776  *  File name selection pattern
777  */
778 tSCC zAix_Cond_Initializer_1List[] =
779   "pthread.h\0";
781  *  Machine/OS name selection pattern
782  */
783 tSCC* apzAix_Cond_Initializer_1Machs[] = {
784         "*-*-aix*",
785         (const char*)NULL };
788  *  content selection pattern - do fix if pattern found
789  */
790 tSCC zAix_Cond_Initializer_1Select0[] =
791        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
792 \\{ \\\\\n";
794 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
795 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
796   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
799  *  Fix Command Arguments for Aix_Cond_Initializer_1
800  */
801 static const char* apzAix_Cond_Initializer_1Patch[] = {
802     "format",
803     "#define PTHREAD_COND_INITIALIZER \\\n\
804 {{ \\\n",
805     (char*)NULL };
807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
809  *  Description of Aix_Rwlock_Initializer_1 fix
810  */
811 tSCC zAix_Rwlock_Initializer_1Name[] =
812      "aix_rwlock_initializer_1";
815  *  File name selection pattern
816  */
817 tSCC zAix_Rwlock_Initializer_1List[] =
818   "pthread.h\0";
820  *  Machine/OS name selection pattern
821  */
822 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
823         "*-*-aix*",
824         (const char*)NULL };
827  *  content selection pattern - do fix if pattern found
828  */
829 tSCC zAix_Rwlock_Initializer_1Select0[] =
830        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
831 \\{ \\\\\n";
833 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
834 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
835   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
838  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
839  */
840 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
841     "format",
842     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
843 {{ \\\n",
844     (char*)NULL };
846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
848  *  Description of Aix_Pthread fix
849  */
850 tSCC zAix_PthreadName[] =
851      "aix_pthread";
854  *  File name selection pattern
855  */
856 tSCC zAix_PthreadList[] =
857   "pthread.h\0";
859  *  Machine/OS name selection pattern
860  */
861 #define apzAix_PthreadMachs (const char**)NULL
864  *  content selection pattern - do fix if pattern found
865  */
866 tSCC zAix_PthreadSelect0[] =
867        "(#define [A-Za-z_0-9]+)(\\\\\n\
868 [^A-Za-z_0-9 \t\n\
869 (])";
871 #define    AIX_PTHREAD_TEST_CT  1
872 static tTestDesc aAix_PthreadTests[] = {
873   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
876  *  Fix Command Arguments for Aix_Pthread
877  */
878 static const char* apzAix_PthreadPatch[] = {
879     "format",
880     "%1 %2",
881     (char*)NULL };
883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
885  *  Description of Aix_Stdint_1 fix
886  */
887 tSCC zAix_Stdint_1Name[] =
888      "aix_stdint_1";
891  *  File name selection pattern
892  */
893 tSCC zAix_Stdint_1List[] =
894   "stdint-aix.h\0stdint.h\0";
896  *  Machine/OS name selection pattern
897  */
898 tSCC* apzAix_Stdint_1Machs[] = {
899         "*-*-aix*",
900         (const char*)NULL };
903  *  content selection pattern - do fix if pattern found
904  */
905 tSCC zAix_Stdint_1Select0[] =
906        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
907 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
909 #define    AIX_STDINT_1_TEST_CT  1
910 static tTestDesc aAix_Stdint_1Tests[] = {
911   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
914  *  Fix Command Arguments for Aix_Stdint_1
915  */
916 static const char* apzAix_Stdint_1Patch[] = {
917     "format",
918     "#define UINT8_MAX\t(255)\n\
919 #define UINT16_MAX\t(65535)",
920     (char*)NULL };
922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
924  *  Description of Aix_Stdint_2 fix
925  */
926 tSCC zAix_Stdint_2Name[] =
927      "aix_stdint_2";
930  *  File name selection pattern
931  */
932 tSCC zAix_Stdint_2List[] =
933   "stdint-aix.h\0stdint.h\0";
935  *  Machine/OS name selection pattern
936  */
937 tSCC* apzAix_Stdint_2Machs[] = {
938         "*-*-aix*",
939         (const char*)NULL };
942  *  content selection pattern - do fix if pattern found
943  */
944 tSCC zAix_Stdint_2Select0[] =
945        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
946 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
947 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
948 #else\n\
949 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
950 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
951 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
953 #define    AIX_STDINT_2_TEST_CT  1
954 static tTestDesc aAix_Stdint_2Tests[] = {
955   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
958  *  Fix Command Arguments for Aix_Stdint_2
959  */
960 static const char* apzAix_Stdint_2Patch[] = {
961     "format",
962     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
963 #define INTPTR_MAX\t9223372036854775807L\n\
964 #define UINTPTR_MAX\t18446744073709551615UL\n\
965 #else\n\
966 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
967 #define INTPTR_MAX\t2147483647L\n\
968 #define UINTPTR_MAX\t4294967295UL",
969     (char*)NULL };
971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
973  *  Description of Aix_Stdint_3 fix
974  */
975 tSCC zAix_Stdint_3Name[] =
976      "aix_stdint_3";
979  *  File name selection pattern
980  */
981 tSCC zAix_Stdint_3List[] =
982   "stdint-aix.h\0stdint.h\0";
984  *  Machine/OS name selection pattern
985  */
986 tSCC* apzAix_Stdint_3Machs[] = {
987         "*-*-aix*",
988         (const char*)NULL };
991  *  content selection pattern - do fix if pattern found
992  */
993 tSCC zAix_Stdint_3Select0[] =
994        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
995 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
996 #else\n\
997 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
998 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1000 #define    AIX_STDINT_3_TEST_CT  1
1001 static tTestDesc aAix_Stdint_3Tests[] = {
1002   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1005  *  Fix Command Arguments for Aix_Stdint_3
1006  */
1007 static const char* apzAix_Stdint_3Patch[] = {
1008     "format",
1009     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1010 #define PTRDIFF_MAX\t9223372036854775807L\n\
1011 #else\n\
1012 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1013 #define PTRDIFF_MAX\t2147483647L",
1014     (char*)NULL };
1016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1018  *  Description of Aix_Stdint_4 fix
1019  */
1020 tSCC zAix_Stdint_4Name[] =
1021      "aix_stdint_4";
1024  *  File name selection pattern
1025  */
1026 tSCC zAix_Stdint_4List[] =
1027   "stdint-aix.h\0stdint.h\0";
1029  *  Machine/OS name selection pattern
1030  */
1031 tSCC* apzAix_Stdint_4Machs[] = {
1032         "*-*-aix*",
1033         (const char*)NULL };
1036  *  content selection pattern - do fix if pattern found
1037  */
1038 tSCC zAix_Stdint_4Select0[] =
1039        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1040 #else\n\
1041 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1043 #define    AIX_STDINT_4_TEST_CT  1
1044 static tTestDesc aAix_Stdint_4Tests[] = {
1045   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1048  *  Fix Command Arguments for Aix_Stdint_4
1049  */
1050 static const char* apzAix_Stdint_4Patch[] = {
1051     "format",
1052     "#define SIZE_MAX\t18446744073709551615UL\n\
1053 #else\n\
1054 #define SIZE_MAX\t4294967295UL",
1055     (char*)NULL };
1057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1059  *  Description of Aix_Stdint_5 fix
1060  */
1061 tSCC zAix_Stdint_5Name[] =
1062      "aix_stdint_5";
1065  *  File name selection pattern
1066  */
1067 tSCC zAix_Stdint_5List[] =
1068   "stdint-aix.h\0stdint.h\0";
1070  *  Machine/OS name selection pattern
1071  */
1072 tSCC* apzAix_Stdint_5Machs[] = {
1073         "*-*-aix*",
1074         (const char*)NULL };
1077  *  content selection pattern - do fix if pattern found
1078  */
1079 tSCC zAix_Stdint_5Select0[] =
1080        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1081 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1083 #define    AIX_STDINT_5_TEST_CT  1
1084 static tTestDesc aAix_Stdint_5Tests[] = {
1085   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1088  *  Fix Command Arguments for Aix_Stdint_5
1089  */
1090 static const char* apzAix_Stdint_5Patch[] = {
1091     "format",
1092     "#define UINT8_C(c)\tc\n\
1093 #define UINT16_C(c)\tc",
1094     (char*)NULL };
1096 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1098  *  Description of Aix_Sysmachine fix
1099  */
1100 tSCC zAix_SysmachineName[] =
1101      "aix_sysmachine";
1104  *  File name selection pattern
1105  */
1106 tSCC zAix_SysmachineList[] =
1107   "sys/machine.h\0";
1109  *  Machine/OS name selection pattern
1110  */
1111 #define apzAix_SysmachineMachs (const char**)NULL
1114  *  content selection pattern - do fix if pattern found
1115  */
1116 tSCC zAix_SysmachineSelect0[] =
1117        "\\\\ +\n";
1119 #define    AIX_SYSMACHINE_TEST_CT  1
1120 static tTestDesc aAix_SysmachineTests[] = {
1121   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1124  *  Fix Command Arguments for Aix_Sysmachine
1125  */
1126 static const char* apzAix_SysmachinePatch[] = {
1127     "format",
1128     "\\\n",
1129     (char*)NULL };
1131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1133  *  Description of Aix_Syswait_2 fix
1134  */
1135 tSCC zAix_Syswait_2Name[] =
1136      "aix_syswait_2";
1139  *  File name selection pattern
1140  */
1141 tSCC zAix_Syswait_2List[] =
1142   "sys/wait.h\0";
1144  *  Machine/OS name selection pattern
1145  */
1146 #define apzAix_Syswait_2Machs (const char**)NULL
1149  *  content selection pattern - do fix if pattern found
1150  */
1151 tSCC zAix_Syswait_2Select0[] =
1152        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1154 #define    AIX_SYSWAIT_2_TEST_CT  1
1155 static tTestDesc aAix_Syswait_2Tests[] = {
1156   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1159  *  Fix Command Arguments for Aix_Syswait_2
1160  */
1161 static const char* apzAix_Syswait_2Patch[] = {
1162     "format",
1163     "? (int)%1",
1164     (char*)NULL };
1166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1168  *  Description of Aix_Volatile fix
1169  */
1170 tSCC zAix_VolatileName[] =
1171      "aix_volatile";
1174  *  File name selection pattern
1175  */
1176 tSCC zAix_VolatileList[] =
1177   "sys/signal.h\0";
1179  *  Machine/OS name selection pattern
1180  */
1181 #define apzAix_VolatileMachs (const char**)NULL
1184  *  content selection pattern - do fix if pattern found
1185  */
1186 tSCC zAix_VolatileSelect0[] =
1187        "typedef volatile int sig_atomic_t";
1189 #define    AIX_VOLATILE_TEST_CT  1
1190 static tTestDesc aAix_VolatileTests[] = {
1191   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1194  *  Fix Command Arguments for Aix_Volatile
1195  */
1196 static const char* apzAix_VolatilePatch[] = {
1197     "format",
1198     "typedef int sig_atomic_t",
1199     (char*)NULL };
1201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1203  *  Description of Alpha___Assert fix
1204  */
1205 tSCC zAlpha___AssertName[] =
1206      "alpha___assert";
1209  *  File name selection pattern
1210  */
1211 tSCC zAlpha___AssertList[] =
1212   "assert.h\0";
1214  *  Machine/OS name selection pattern
1215  */
1216 #define apzAlpha___AssertMachs (const char**)NULL
1219  *  content selection pattern - do fix if pattern found
1220  */
1221 tSCC zAlpha___AssertSelect0[] =
1222        "__assert\\(char \\*, char \\*, int\\)";
1224 #define    ALPHA___ASSERT_TEST_CT  1
1225 static tTestDesc aAlpha___AssertTests[] = {
1226   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1229  *  Fix Command Arguments for Alpha___Assert
1230  */
1231 static const char* apzAlpha___AssertPatch[] = {
1232     "format",
1233     "__assert(const char *, const char *, int)",
1234     (char*)NULL };
1236 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1238  *  Description of Alpha_Assert fix
1239  */
1240 tSCC zAlpha_AssertName[] =
1241      "alpha_assert";
1244  *  File name selection pattern
1245  */
1246 tSCC zAlpha_AssertList[] =
1247   "assert.h\0";
1249  *  Machine/OS name selection pattern
1250  */
1251 #define apzAlpha_AssertMachs (const char**)NULL
1254  *  content selection pattern - do fix if pattern found
1255  */
1256 tSCC zAlpha_AssertSelect0[] =
1257        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1259 #define    ALPHA_ASSERT_TEST_CT  1
1260 static tTestDesc aAlpha_AssertTests[] = {
1261   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1264  *  Fix Command Arguments for Alpha_Assert
1265  */
1266 static const char* apzAlpha_AssertPatch[] = {
1267     "format",
1268     "%1(EX)",
1269     (char*)NULL };
1271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1273  *  Description of Alpha_Getopt fix
1274  */
1275 tSCC zAlpha_GetoptName[] =
1276      "alpha_getopt";
1279  *  File name selection pattern
1280  */
1281 tSCC zAlpha_GetoptList[] =
1282   "stdio.h\0stdlib.h\0";
1284  *  Machine/OS name selection pattern
1285  */
1286 #define apzAlpha_GetoptMachs (const char**)NULL
1289  *  content selection pattern - do fix if pattern found
1290  */
1291 tSCC zAlpha_GetoptSelect0[] =
1292        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1294 #define    ALPHA_GETOPT_TEST_CT  1
1295 static tTestDesc aAlpha_GetoptTests[] = {
1296   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1299  *  Fix Command Arguments for Alpha_Getopt
1300  */
1301 static const char* apzAlpha_GetoptPatch[] = {
1302     "format",
1303     "getopt(int, char *const[], const char *)",
1304     (char*)NULL };
1306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1308  *  Description of Alpha_If_Semicolon fix
1309  */
1310 tSCC zAlpha_If_SemicolonName[] =
1311      "alpha_if_semicolon";
1314  *  File name selection pattern
1315  */
1316 tSCC zAlpha_If_SemicolonList[] =
1317   "net/if.h\0";
1319  *  Machine/OS name selection pattern
1320  */
1321 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1324  *  content selection pattern - do fix if pattern found
1325  */
1326 tSCC zAlpha_If_SemicolonSelect0[] =
1327        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1329 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1330 static tTestDesc aAlpha_If_SemicolonTests[] = {
1331   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1334  *  Fix Command Arguments for Alpha_If_Semicolon
1335  */
1336 static const char* apzAlpha_If_SemicolonPatch[] = {
1337     "format",
1338     "struct sockaddr vmif_paddr;\t/*",
1339     (char*)NULL };
1341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1343  *  Description of Alpha_Parens fix
1344  */
1345 tSCC zAlpha_ParensName[] =
1346      "alpha_parens";
1349  *  File name selection pattern
1350  */
1351 tSCC zAlpha_ParensList[] =
1352   "sym.h\0";
1354  *  Machine/OS name selection pattern
1355  */
1356 #define apzAlpha_ParensMachs (const char**)NULL
1359  *  content selection pattern - do fix if pattern found
1360  */
1361 tSCC zAlpha_ParensSelect0[] =
1362        "#ifndef\\(__mips64\\)";
1364 #define    ALPHA_PARENS_TEST_CT  1
1365 static tTestDesc aAlpha_ParensTests[] = {
1366   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1369  *  Fix Command Arguments for Alpha_Parens
1370  */
1371 static const char* apzAlpha_ParensPatch[] = {
1372     "format",
1373     "#ifndef __mips64",
1374     (char*)NULL };
1376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1378  *  Description of Alpha_Sbrk fix
1379  */
1380 tSCC zAlpha_SbrkName[] =
1381      "alpha_sbrk";
1384  *  File name selection pattern
1385  */
1386 tSCC zAlpha_SbrkList[] =
1387   "unistd.h\0";
1389  *  Machine/OS name selection pattern
1390  */
1391 #define apzAlpha_SbrkMachs (const char**)NULL
1394  *  content selection pattern - do fix if pattern found
1395  */
1396 tSCC zAlpha_SbrkSelect0[] =
1397        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1399 #define    ALPHA_SBRK_TEST_CT  1
1400 static tTestDesc aAlpha_SbrkTests[] = {
1401   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1404  *  Fix Command Arguments for Alpha_Sbrk
1405  */
1406 static const char* apzAlpha_SbrkPatch[] = {
1407     "format",
1408     "void *sbrk(",
1409     (char*)NULL };
1411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1413  *  Description of Avoid_Bool_Define fix
1414  */
1415 tSCC zAvoid_Bool_DefineName[] =
1416      "avoid_bool_define";
1419  *  File name selection pattern
1420  */
1421 tSCC zAvoid_Bool_DefineList[] =
1422   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1424  *  Machine/OS name selection pattern
1425  */
1426 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1429  *  content selection pattern - do fix if pattern found
1430  */
1431 tSCC zAvoid_Bool_DefineSelect0[] =
1432        "#[ \t]*define[ \t]+bool[ \t]";
1435  *  content bypass pattern - skip fix if pattern found
1436  */
1437 tSCC zAvoid_Bool_DefineBypass0[] =
1438        "__cplusplus";
1440 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1441 static tTestDesc aAvoid_Bool_DefineTests[] = {
1442   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1443   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1446  *  Fix Command Arguments for Avoid_Bool_Define
1447  */
1448 static const char* apzAvoid_Bool_DefinePatch[] = {
1449     "format",
1450     "#ifndef __cplusplus\n\
1451 %0\n\
1452 #endif",
1453     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1454     (char*)NULL };
1456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1458  *  Description of Avoid_Bool_Type fix
1459  */
1460 tSCC zAvoid_Bool_TypeName[] =
1461      "avoid_bool_type";
1464  *  File name selection pattern
1465  */
1466 tSCC zAvoid_Bool_TypeList[] =
1467   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1469  *  Machine/OS name selection pattern
1470  */
1471 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1474  *  content selection pattern - do fix if pattern found
1475  */
1476 tSCC zAvoid_Bool_TypeSelect0[] =
1477        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1480  *  content bypass pattern - skip fix if pattern found
1481  */
1482 tSCC zAvoid_Bool_TypeBypass0[] =
1483        "__cplusplus";
1485 #define    AVOID_BOOL_TYPE_TEST_CT  2
1486 static tTestDesc aAvoid_Bool_TypeTests[] = {
1487   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1488   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1491  *  Fix Command Arguments for Avoid_Bool_Type
1492  */
1493 static const char* apzAvoid_Bool_TypePatch[] = {
1494     "format",
1495     "#ifndef __cplusplus\n\
1496 %0\n\
1497 #endif",
1498     (char*)NULL };
1500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1502  *  Description of Avoid_Wchar_T_Type fix
1503  */
1504 tSCC zAvoid_Wchar_T_TypeName[] =
1505      "avoid_wchar_t_type";
1508  *  File name selection pattern
1509  */
1510 #define zAvoid_Wchar_T_TypeList (char*)NULL
1512  *  Machine/OS name selection pattern
1513  */
1514 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1517  *  content selection pattern - do fix if pattern found
1518  */
1519 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1520        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1523  *  content bypass pattern - skip fix if pattern found
1524  */
1525 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1526        "__cplusplus";
1527 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1528        "_LINUX_NLS_H";
1529 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1530        "XFree86: xc/lib/X11/Xlib\\.h";
1532 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1533 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1534   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1535   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1536   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1537   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1540  *  Fix Command Arguments for Avoid_Wchar_T_Type
1541  */
1542 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1543     "format",
1544     "#ifndef __cplusplus\n\
1545 %0\n\
1546 #endif",
1547     (char*)NULL };
1549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1551  *  Description of Bad_Struct_Term fix
1552  */
1553 tSCC zBad_Struct_TermName[] =
1554      "bad_struct_term";
1557  *  File name selection pattern
1558  */
1559 tSCC zBad_Struct_TermList[] =
1560   "curses.h\0";
1562  *  Machine/OS name selection pattern
1563  */
1564 #define apzBad_Struct_TermMachs (const char**)NULL
1567  *  content selection pattern - do fix if pattern found
1568  */
1569 tSCC zBad_Struct_TermSelect0[] =
1570        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1572 #define    BAD_STRUCT_TERM_TEST_CT  1
1573 static tTestDesc aBad_Struct_TermTests[] = {
1574   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1577  *  Fix Command Arguments for Bad_Struct_Term
1578  */
1579 static const char* apzBad_Struct_TermPatch[] = {
1580     "format",
1581     "struct term;",
1582     (char*)NULL };
1584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1586  *  Description of Badquote fix
1587  */
1588 tSCC zBadquoteName[] =
1589      "badquote";
1592  *  File name selection pattern
1593  */
1594 tSCC zBadquoteList[] =
1595   "sundev/vuid_event.h\0";
1597  *  Machine/OS name selection pattern
1598  */
1599 #define apzBadquoteMachs (const char**)NULL
1602  *  content selection pattern - do fix if pattern found
1603  */
1604 tSCC zBadquoteSelect0[] =
1605        "doesn't";
1607 #define    BADQUOTE_TEST_CT  1
1608 static tTestDesc aBadquoteTests[] = {
1609   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1612  *  Fix Command Arguments for Badquote
1613  */
1614 static const char* apzBadquotePatch[] = {
1615     "format",
1616     "does not",
1617     (char*)NULL };
1619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1621  *  Description of Broken_Assert_Stdio fix
1622  */
1623 tSCC zBroken_Assert_StdioName[] =
1624      "broken_assert_stdio";
1627  *  File name selection pattern
1628  */
1629 tSCC zBroken_Assert_StdioList[] =
1630   "assert.h\0";
1632  *  Machine/OS name selection pattern
1633  */
1634 #define apzBroken_Assert_StdioMachs (const char**)NULL
1637  *  content selection pattern - do fix if pattern found
1638  */
1639 tSCC zBroken_Assert_StdioSelect0[] =
1640        "stderr";
1643  *  content bypass pattern - skip fix if pattern found
1644  */
1645 tSCC zBroken_Assert_StdioBypass0[] =
1646        "include.*stdio\\.h";
1648 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1649 static tTestDesc aBroken_Assert_StdioTests[] = {
1650   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1651   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1654  *  Fix Command Arguments for Broken_Assert_Stdio
1655  */
1656 static const char* apzBroken_Assert_StdioPatch[] = {
1657     "wrap",
1658     "#include <stdio.h>\n",
1659     (char*)NULL };
1661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1663  *  Description of Broken_Assert_Stdlib fix
1664  */
1665 tSCC zBroken_Assert_StdlibName[] =
1666      "broken_assert_stdlib";
1669  *  File name selection pattern
1670  */
1671 tSCC zBroken_Assert_StdlibList[] =
1672   "assert.h\0";
1674  *  Machine/OS name selection pattern
1675  */
1676 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1679  *  content selection pattern - do fix if pattern found
1680  */
1681 tSCC zBroken_Assert_StdlibSelect0[] =
1682        "exit *\\(|abort *\\(";
1685  *  content bypass pattern - skip fix if pattern found
1686  */
1687 tSCC zBroken_Assert_StdlibBypass0[] =
1688        "include.*stdlib\\.h";
1690 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1691 static tTestDesc aBroken_Assert_StdlibTests[] = {
1692   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1693   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1696  *  Fix Command Arguments for Broken_Assert_Stdlib
1697  */
1698 static const char* apzBroken_Assert_StdlibPatch[] = {
1699     "wrap",
1700     "#ifdef __cplusplus\n\
1701 #include <stdlib.h>\n\
1702 #endif\n",
1703     (char*)NULL };
1705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1707  *  Description of Broken_Cabs fix
1708  */
1709 tSCC zBroken_CabsName[] =
1710      "broken_cabs";
1713  *  File name selection pattern
1714  */
1715 tSCC zBroken_CabsList[] =
1716   "math.h\0architecture/*/math.h\0";
1718  *  Machine/OS name selection pattern
1719  */
1720 #define apzBroken_CabsMachs (const char**)NULL
1723  *  content selection pattern - do fix if pattern found
1724  */
1725 tSCC zBroken_CabsSelect0[] =
1726        "^extern[ \t]+double[ \t]+cabs";
1728 #define    BROKEN_CABS_TEST_CT  1
1729 static tTestDesc aBroken_CabsTests[] = {
1730   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1733  *  Fix Command Arguments for Broken_Cabs
1734  */
1735 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1736     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1737     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1738     (char*)NULL };
1740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1742  *  Description of Broken_Nan fix
1743  */
1744 tSCC zBroken_NanName[] =
1745      "broken_nan";
1748  *  File name selection pattern
1749  */
1750 tSCC zBroken_NanList[] =
1751   "architecture/ppc/math.h\0architecture/*/math.h\0";
1753  *  Machine/OS name selection pattern
1754  */
1755 #define apzBroken_NanMachs (const char**)NULL
1758  *  content selection pattern - do fix if pattern found
1759  */
1760 tSCC zBroken_NanSelect0[] =
1761        "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1764  *  content bypass pattern - skip fix if pattern found
1765  */
1766 tSCC zBroken_NanBypass0[] =
1767        "powl";
1769 #define    BROKEN_NAN_TEST_CT  2
1770 static tTestDesc aBroken_NanTests[] = {
1771   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
1772   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
1775  *  Fix Command Arguments for Broken_Nan
1776  */
1777 static const char* apzBroken_NanPatch[] = {
1778     "format",
1779     "#if 1",
1780     (char*)NULL };
1782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1784  *  Description of Bsd_Stdio_Attrs_Conflict fix
1785  */
1786 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1787      "bsd_stdio_attrs_conflict";
1790  *  File name selection pattern
1791  */
1792 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1793   "stdio.h\0";
1795  *  Machine/OS name selection pattern
1796  */
1797 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1798         "*-*-*bsd*",
1799         "*-*-*darwin*",
1800         (const char*)NULL };
1803  *  content selection pattern - do fix if pattern found
1804  */
1805 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1806        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1808 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
1809 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1810   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1813  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1814  */
1815 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1816     "format",
1817     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1818 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1819 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1820     (char*)NULL };
1822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1824  *  Description of Cdef_Cplusplus fix
1825  */
1826 tSCC zCdef_CplusplusName[] =
1827      "cdef_cplusplus";
1830  *  File name selection pattern
1831  */
1832 tSCC zCdef_CplusplusList[] =
1833   "sys/cdefs.h\0";
1835  *  Machine/OS name selection pattern
1836  */
1837 #define apzCdef_CplusplusMachs (const char**)NULL
1840  *  content selection pattern - do fix if pattern found
1841  */
1842 tSCC zCdef_CplusplusSelect0[] =
1843        "\\[\\[noreturn\\]\\]";
1845 #define    CDEF_CPLUSPLUS_TEST_CT  1
1846 static tTestDesc aCdef_CplusplusTests[] = {
1847   { TT_EGREP,    zCdef_CplusplusSelect0, (regex_t*)NULL }, };
1850  *  Fix Command Arguments for Cdef_Cplusplus
1851  */
1852 static const char* apzCdef_CplusplusPatch[] = {
1853     "format",
1854     "__attribute__((__noreturn__))",
1855     (char*)NULL };
1857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1859  *  Description of Ctrl_Quotes_Def fix
1860  */
1861 tSCC zCtrl_Quotes_DefName[] =
1862      "ctrl_quotes_def";
1865  *  File name selection pattern
1866  */
1867 #define zCtrl_Quotes_DefList (char*)NULL
1869  *  Machine/OS name selection pattern
1870  */
1871 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1874  *  content selection pattern - do fix if pattern found
1875  */
1876 tSCC zCtrl_Quotes_DefSelect0[] =
1877        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1879 #define    CTRL_QUOTES_DEF_TEST_CT  1
1880 static tTestDesc aCtrl_Quotes_DefTests[] = {
1881   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1884  *  Fix Command Arguments for Ctrl_Quotes_Def
1885  */
1886 static const char* apzCtrl_Quotes_DefPatch[] = {
1887     "char_macro_def",
1888     "CTRL",
1889     (char*)NULL };
1891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1893  *  Description of Ctrl_Quotes_Use fix
1894  */
1895 tSCC zCtrl_Quotes_UseName[] =
1896      "ctrl_quotes_use";
1899  *  File name selection pattern
1900  */
1901 #define zCtrl_Quotes_UseList (char*)NULL
1903  *  Machine/OS name selection pattern
1904  */
1905 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1908  *  content selection pattern - do fix if pattern found
1909  */
1910 tSCC zCtrl_Quotes_UseSelect0[] =
1911        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1913 #define    CTRL_QUOTES_USE_TEST_CT  1
1914 static tTestDesc aCtrl_Quotes_UseTests[] = {
1915   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1918  *  Fix Command Arguments for Ctrl_Quotes_Use
1919  */
1920 static const char* apzCtrl_Quotes_UsePatch[] = {
1921     "char_macro_use",
1922     "CTRL",
1923     (char*)NULL };
1925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1927  *  Description of Cxx_Unready fix
1928  */
1929 tSCC zCxx_UnreadyName[] =
1930      "cxx_unready";
1933  *  File name selection pattern
1934  */
1935 tSCC zCxx_UnreadyList[] =
1936   "sys/mman.h\0rpc/types.h\0";
1938  *  Machine/OS name selection pattern
1939  */
1940 #define apzCxx_UnreadyMachs (const char**)NULL
1943  *  content selection pattern - do fix if pattern found
1944  */
1945 tSCC zCxx_UnreadySelect0[] =
1946        "[^#]+malloc.*;";
1949  *  content bypass pattern - skip fix if pattern found
1950  */
1951 tSCC zCxx_UnreadyBypass0[] =
1952        "\"C\"|__BEGIN_DECLS";
1954 #define    CXX_UNREADY_TEST_CT  2
1955 static tTestDesc aCxx_UnreadyTests[] = {
1956   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1957   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1960  *  Fix Command Arguments for Cxx_Unready
1961  */
1962 static const char* apzCxx_UnreadyPatch[] = {
1963     "wrap",
1964     "#ifdef __cplusplus\n\
1965 extern \"C\" {\n\
1966 #endif\n",
1967     "#ifdef __cplusplus\n\
1968 }\n\
1969 #endif\n",
1970     (char*)NULL };
1972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1974  *  Description of Darwin_Externc fix
1975  */
1976 tSCC zDarwin_ExterncName[] =
1977      "darwin_externc";
1980  *  File name selection pattern
1981  */
1982 tSCC zDarwin_ExterncList[] =
1983   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1985  *  Machine/OS name selection pattern
1986  */
1987 tSCC* apzDarwin_ExterncMachs[] = {
1988         "*-*-darwin*",
1989         (const char*)NULL };
1992  *  content bypass pattern - skip fix if pattern found
1993  */
1994 tSCC zDarwin_ExterncBypass0[] =
1995        "extern \"C\"";
1996 tSCC zDarwin_ExterncBypass1[] =
1997        "__BEGIN_DECLS";
1999 #define    DARWIN_EXTERNC_TEST_CT  2
2000 static tTestDesc aDarwin_ExterncTests[] = {
2001   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2002   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2005  *  Fix Command Arguments for Darwin_Externc
2006  */
2007 static const char* apzDarwin_ExterncPatch[] = {
2008     "wrap",
2009     "#ifdef __cplusplus\n\
2010 extern \"C\" {\n\
2011 #endif\n",
2012     "#ifdef __cplusplus\n\
2013 }\n\
2014 #endif\n",
2015     (char*)NULL };
2017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2019  *  Description of Darwin_Gcc4_Breakage fix
2020  */
2021 tSCC zDarwin_Gcc4_BreakageName[] =
2022      "darwin_gcc4_breakage";
2025  *  File name selection pattern
2026  */
2027 tSCC zDarwin_Gcc4_BreakageList[] =
2028   "AvailabilityMacros.h\0";
2030  *  Machine/OS name selection pattern
2031  */
2032 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2033         "*-*-darwin*",
2034         (const char*)NULL };
2037  *  content selection pattern - do fix if pattern found
2038  */
2039 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2040        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2042 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2043 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2044   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2047  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2048  */
2049 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2050     "format",
2051     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2052     (char*)NULL };
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2056  *  Description of Darwin_Private_Extern fix
2057  */
2058 tSCC zDarwin_Private_ExternName[] =
2059      "darwin_private_extern";
2062  *  File name selection pattern
2063  */
2064 tSCC zDarwin_Private_ExternList[] =
2065   "mach-o/dyld.h\0";
2067  *  Machine/OS name selection pattern
2068  */
2069 tSCC* apzDarwin_Private_ExternMachs[] = {
2070         "*-*-darwin*",
2071         (const char*)NULL };
2074  *  content selection pattern - do fix if pattern found
2075  */
2076 tSCC zDarwin_Private_ExternSelect0[] =
2077        "__private_extern__ [a-z_]+ _dyld_";
2079 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2080 static tTestDesc aDarwin_Private_ExternTests[] = {
2081   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2084  *  Fix Command Arguments for Darwin_Private_Extern
2085  */
2086 static const char* apzDarwin_Private_ExternPatch[] = {
2087     "format",
2088     "extern",
2089     "__private_extern__",
2090     (char*)NULL };
2092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2094  *  Description of Darwin_Stdint_1 fix
2095  */
2096 tSCC zDarwin_Stdint_1Name[] =
2097      "darwin_stdint_1";
2100  *  File name selection pattern
2101  */
2102 tSCC zDarwin_Stdint_1List[] =
2103   "stdint-darwin.h\0stdint.h\0";
2105  *  Machine/OS name selection pattern
2106  */
2107 tSCC* apzDarwin_Stdint_1Machs[] = {
2108         "*-*-darwin*",
2109         (const char*)NULL };
2112  *  content selection pattern - do fix if pattern found
2113  */
2114 tSCC zDarwin_Stdint_1Select0[] =
2115        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2116 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2118 #define    DARWIN_STDINT_1_TEST_CT  1
2119 static tTestDesc aDarwin_Stdint_1Tests[] = {
2120   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2123  *  Fix Command Arguments for Darwin_Stdint_1
2124  */
2125 static const char* apzDarwin_Stdint_1Patch[] = {
2126     "format",
2127     "#define UINT8_C(v)\tv\n\
2128 #define UINT16_C(v)\tv",
2129     (char*)NULL };
2131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2133  *  Description of Darwin_Stdint_2 fix
2134  */
2135 tSCC zDarwin_Stdint_2Name[] =
2136      "darwin_stdint_2";
2139  *  File name selection pattern
2140  */
2141 tSCC zDarwin_Stdint_2List[] =
2142   "stdint-darwin.h\0stdint.h\0";
2144  *  Machine/OS name selection pattern
2145  */
2146 tSCC* apzDarwin_Stdint_2Machs[] = {
2147         "*-*-darwin*",
2148         (const char*)NULL };
2151  *  content selection pattern - do fix if pattern found
2152  */
2153 tSCC zDarwin_Stdint_2Select0[] =
2154        "#if __WORDSIZE == 64\n\
2155 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2156 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2157 #else\n\
2158 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2159 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2160 #endif";
2162 #define    DARWIN_STDINT_2_TEST_CT  1
2163 static tTestDesc aDarwin_Stdint_2Tests[] = {
2164   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2167  *  Fix Command Arguments for Darwin_Stdint_2
2168  */
2169 static const char* apzDarwin_Stdint_2Patch[] = {
2170     "format",
2171     "#if __WORDSIZE == 64\n\
2172 #define INTPTR_MAX 9223372036854775807L\n\
2173 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2174 #else\n\
2175 #define INTPTR_MAX 2147483647L\n\
2176 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2177 #endif",
2178     (char*)NULL };
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2182  *  Description of Darwin_Stdint_3 fix
2183  */
2184 tSCC zDarwin_Stdint_3Name[] =
2185      "darwin_stdint_3";
2188  *  File name selection pattern
2189  */
2190 tSCC zDarwin_Stdint_3List[] =
2191   "stdint-darwin.h\0stdint.h\0";
2193  *  Machine/OS name selection pattern
2194  */
2195 tSCC* apzDarwin_Stdint_3Machs[] = {
2196         "*-*-darwin*",
2197         (const char*)NULL };
2200  *  content selection pattern - do fix if pattern found
2201  */
2202 tSCC zDarwin_Stdint_3Select0[] =
2203        "#if __WORDSIZE == 64\n\
2204 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2205 #else\n\
2206 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2207 #endif";
2209 #define    DARWIN_STDINT_3_TEST_CT  1
2210 static tTestDesc aDarwin_Stdint_3Tests[] = {
2211   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2214  *  Fix Command Arguments for Darwin_Stdint_3
2215  */
2216 static const char* apzDarwin_Stdint_3Patch[] = {
2217     "format",
2218     "#if __WORDSIZE == 64\n\
2219 #define UINTPTR_MAX 18446744073709551615UL\n\
2220 #else\n\
2221 #define UINTPTR_MAX 4294967295UL\n\
2222 #endif",
2223     (char*)NULL };
2225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2227  *  Description of Darwin_Stdint_4 fix
2228  */
2229 tSCC zDarwin_Stdint_4Name[] =
2230      "darwin_stdint_4";
2233  *  File name selection pattern
2234  */
2235 tSCC zDarwin_Stdint_4List[] =
2236   "stdint-darwin.h\0stdint.h\0";
2238  *  Machine/OS name selection pattern
2239  */
2240 tSCC* apzDarwin_Stdint_4Machs[] = {
2241         "*-*-darwin*",
2242         (const char*)NULL };
2245  *  content selection pattern - do fix if pattern found
2246  */
2247 tSCC zDarwin_Stdint_4Select0[] =
2248        "#if __WORDSIZE == 64\n\
2249 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2250 #else\n\
2251 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2252 #endif";
2254 #define    DARWIN_STDINT_4_TEST_CT  1
2255 static tTestDesc aDarwin_Stdint_4Tests[] = {
2256   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2259  *  Fix Command Arguments for Darwin_Stdint_4
2260  */
2261 static const char* apzDarwin_Stdint_4Patch[] = {
2262     "format",
2263     "#if __WORDSIZE == 64\n\
2264 #define SIZE_MAX 18446744073709551615UL\n\
2265 #else\n\
2266 #define SIZE_MAX 4294967295UL\n\
2267 #endif",
2268     (char*)NULL };
2270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2272  *  Description of Darwin_Stdint_5 fix
2273  */
2274 tSCC zDarwin_Stdint_5Name[] =
2275      "darwin_stdint_5";
2278  *  File name selection pattern
2279  */
2280 tSCC zDarwin_Stdint_5List[] =
2281   "stdint-darwin.h\0stdint.h\0";
2283  *  Machine/OS name selection pattern
2284  */
2285 tSCC* apzDarwin_Stdint_5Machs[] = {
2286         "*-*-darwin*",
2287         (const char*)NULL };
2290  *  content selection pattern - do fix if pattern found
2291  */
2292 tSCC zDarwin_Stdint_5Select0[] =
2293        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2294 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2295 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2297 #define    DARWIN_STDINT_5_TEST_CT  1
2298 static tTestDesc aDarwin_Stdint_5Tests[] = {
2299   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2302  *  Fix Command Arguments for Darwin_Stdint_5
2303  */
2304 static const char* apzDarwin_Stdint_5Patch[] = {
2305     "format",
2306     "#if __WORDSIZE == 64\n\
2307 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
2308 #define INTMAX_MAX   9223372036854775807L\n\
2309 #define UINTMAX_MAX  18446744073709551615UL\n\
2310 #else\n\
2311 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
2312 #define INTMAX_MAX   9223372036854775807LL\n\
2313 #define UINTMAX_MAX  18446744073709551615ULL\n\
2314 #endif",
2315     (char*)NULL };
2317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2319  *  Description of Darwin_Stdint_6 fix
2320  */
2321 tSCC zDarwin_Stdint_6Name[] =
2322      "darwin_stdint_6";
2325  *  File name selection pattern
2326  */
2327 tSCC zDarwin_Stdint_6List[] =
2328   "stdint-darwin.h\0stdint.h\0";
2330  *  Machine/OS name selection pattern
2331  */
2332 tSCC* apzDarwin_Stdint_6Machs[] = {
2333         "*-*-darwin*",
2334         (const char*)NULL };
2337  *  content selection pattern - do fix if pattern found
2338  */
2339 tSCC zDarwin_Stdint_6Select0[] =
2340        "#if __WORDSIZE == 64\n\
2341 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2342 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2343 #else\n\
2344 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2345 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2346 #endif";
2348 #define    DARWIN_STDINT_6_TEST_CT  1
2349 static tTestDesc aDarwin_Stdint_6Tests[] = {
2350   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2353  *  Fix Command Arguments for Darwin_Stdint_6
2354  */
2355 static const char* apzDarwin_Stdint_6Patch[] = {
2356     "format",
2357     "#if __WORDSIZE == 64\n\
2358 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2359 #define PTRDIFF_MAX 9223372036854775807L\n\
2360 #else\n\
2361 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2362 #define PTRDIFF_MAX 2147483647\n\
2363 #endif",
2364     (char*)NULL };
2366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2368  *  Description of Darwin_Stdint_7 fix
2369  */
2370 tSCC zDarwin_Stdint_7Name[] =
2371      "darwin_stdint_7";
2374  *  File name selection pattern
2375  */
2376 tSCC zDarwin_Stdint_7List[] =
2377   "stdint-darwin.h\0stdint.h\0";
2379  *  Machine/OS name selection pattern
2380  */
2381 tSCC* apzDarwin_Stdint_7Machs[] = {
2382         "*-*-darwin*",
2383         (const char*)NULL };
2386  *  content selection pattern - do fix if pattern found
2387  */
2388 tSCC zDarwin_Stdint_7Select0[] =
2389        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2390 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2392 #define    DARWIN_STDINT_7_TEST_CT  1
2393 static tTestDesc aDarwin_Stdint_7Tests[] = {
2394   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2397  *  Fix Command Arguments for Darwin_Stdint_7
2398  */
2399 static const char* apzDarwin_Stdint_7Patch[] = {
2400     "format",
2401     "#if __WORDSIZE == 64\n\
2402 #define INTMAX_C(v)  (v ## L)\n\
2403 #define UINTMAX_C(v) (v ## UL)\n\
2404 #else\n\
2405 #define INTMAX_C(v)  (v ## LL)\n\
2406 #define UINTMAX_C(v) (v ## ULL)\n\
2407 #endif",
2408     (char*)NULL };
2410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2412  *  Description of Dec_Intern_Asm fix
2413  */
2414 tSCC zDec_Intern_AsmName[] =
2415      "dec_intern_asm";
2418  *  File name selection pattern
2419  */
2420 tSCC zDec_Intern_AsmList[] =
2421   "c_asm.h\0";
2423  *  Machine/OS name selection pattern
2424  */
2425 #define apzDec_Intern_AsmMachs (const char**)NULL
2426 #define DEC_INTERN_ASM_TEST_CT  0
2427 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2430  *  Fix Command Arguments for Dec_Intern_Asm
2431  */
2432 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2433     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2434 #ifdef __DECC\n",
2435     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2436 #endif\n",
2437     (char*)NULL };
2439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2441  *  Description of Djgpp_Wchar_H fix
2442  */
2443 tSCC zDjgpp_Wchar_HName[] =
2444      "djgpp_wchar_h";
2447  *  File name selection pattern
2448  */
2449 #define zDjgpp_Wchar_HList (char*)NULL
2451  *  Machine/OS name selection pattern
2452  */
2453 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2456  *  content selection pattern - do fix if pattern found
2457  */
2458 tSCC zDjgpp_Wchar_HSelect0[] =
2459        "__DJ_wint_t";
2462  *  content bypass pattern - skip fix if pattern found
2463  */
2464 tSCC zDjgpp_Wchar_HBypass0[] =
2465        "sys/djtypes.h";
2467 #define    DJGPP_WCHAR_H_TEST_CT  2
2468 static tTestDesc aDjgpp_Wchar_HTests[] = {
2469   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2470   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2473  *  Fix Command Arguments for Djgpp_Wchar_H
2474  */
2475 static const char* apzDjgpp_Wchar_HPatch[] = {
2476     "format",
2477     "%0\n\
2478 #include <sys/djtypes.h>",
2479     "#include <stddef.h>",
2480     (char*)NULL };
2482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2484  *  Description of Ecd_Cursor fix
2485  */
2486 tSCC zEcd_CursorName[] =
2487      "ecd_cursor";
2490  *  File name selection pattern
2491  */
2492 tSCC zEcd_CursorList[] =
2493   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2495  *  Machine/OS name selection pattern
2496  */
2497 #define apzEcd_CursorMachs (const char**)NULL
2500  *  content selection pattern - do fix if pattern found
2501  */
2502 tSCC zEcd_CursorSelect0[] =
2503        "ecd\\.cursor";
2505 #define    ECD_CURSOR_TEST_CT  1
2506 static tTestDesc aEcd_CursorTests[] = {
2507   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2510  *  Fix Command Arguments for Ecd_Cursor
2511  */
2512 static const char* apzEcd_CursorPatch[] = {
2513     "format",
2514     "ecd_cursor",
2515     (char*)NULL };
2517 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2519  *  Description of Freebsd_Gcc3_Breakage fix
2520  */
2521 tSCC zFreebsd_Gcc3_BreakageName[] =
2522      "freebsd_gcc3_breakage";
2525  *  File name selection pattern
2526  */
2527 tSCC zFreebsd_Gcc3_BreakageList[] =
2528   "sys/cdefs.h\0";
2530  *  Machine/OS name selection pattern
2531  */
2532 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2533         "*-*-freebsd*",
2534         (const char*)NULL };
2537  *  content selection pattern - do fix if pattern found
2538  */
2539 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2540        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2543  *  content bypass pattern - skip fix if pattern found
2544  */
2545 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2546        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2548 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2549 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2550   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2551   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2554  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2555  */
2556 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2557     "format",
2558     "%0 || __GNUC__ >= 3",
2559     (char*)NULL };
2561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2563  *  Description of Freebsd_Gcc4_Breakage fix
2564  */
2565 tSCC zFreebsd_Gcc4_BreakageName[] =
2566      "freebsd_gcc4_breakage";
2569  *  File name selection pattern
2570  */
2571 tSCC zFreebsd_Gcc4_BreakageList[] =
2572   "sys/cdefs.h\0";
2574  *  Machine/OS name selection pattern
2575  */
2576 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2577         "*-*-freebsd*",
2578         (const char*)NULL };
2581  *  content selection pattern - do fix if pattern found
2582  */
2583 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2584        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2586 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2587 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2588   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2591  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2592  */
2593 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2594     "format",
2595     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2596     (char*)NULL };
2598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2600  *  Description of Glibc_C99_Inline_1 fix
2601  */
2602 tSCC zGlibc_C99_Inline_1Name[] =
2603      "glibc_c99_inline_1";
2606  *  File name selection pattern
2607  */
2608 tSCC zGlibc_C99_Inline_1List[] =
2609   "features.h\0*/features.h\0";
2611  *  Machine/OS name selection pattern
2612  */
2613 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2616  *  content selection pattern - do fix if pattern found
2617  */
2618 tSCC zGlibc_C99_Inline_1Select0[] =
2619        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2621 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2622 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2623   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2626  *  Fix Command Arguments for Glibc_C99_Inline_1
2627  */
2628 static const char* apzGlibc_C99_Inline_1Patch[] = {
2629     "format",
2630     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2631     (char*)NULL };
2633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2635  *  Description of Glibc_C99_Inline_1a fix
2636  */
2637 tSCC zGlibc_C99_Inline_1aName[] =
2638      "glibc_c99_inline_1a";
2641  *  File name selection pattern
2642  */
2643 tSCC zGlibc_C99_Inline_1aList[] =
2644   "features.h\0*/features.h\0";
2646  *  Machine/OS name selection pattern
2647  */
2648 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2651  *  content selection pattern - do fix if pattern found
2652  */
2653 tSCC zGlibc_C99_Inline_1aSelect0[] =
2654        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2655 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2657 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
2658 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2659   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2662  *  Fix Command Arguments for Glibc_C99_Inline_1a
2663  */
2664 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2665     "format",
2666     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2667 %2",
2668     (char*)NULL };
2670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2672  *  Description of Glibc_C99_Inline_2 fix
2673  */
2674 tSCC zGlibc_C99_Inline_2Name[] =
2675      "glibc_c99_inline_2";
2678  *  File name selection pattern
2679  */
2680 tSCC zGlibc_C99_Inline_2List[] =
2681   "sys/stat.h\0*/sys/stat.h\0";
2683  *  Machine/OS name selection pattern
2684  */
2685 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2688  *  content selection pattern - do fix if pattern found
2689  */
2690 tSCC zGlibc_C99_Inline_2Select0[] =
2691        "extern __inline__ int";
2693 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2694 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2695   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2698  *  Fix Command Arguments for Glibc_C99_Inline_2
2699  */
2700 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2701     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2702 extern\\\n\
2703 #endif\\\n\
2704 __inline__ int \\1/",
2705     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2706 extern\\\n\
2707 #endif\\\n\
2708 __inline__ int \\1/",
2709     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2710 extern\\\n\
2711 #endif\\\n\
2712 __inline__ int \\1/",
2713     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2714 extern\\\n\
2715 #endif\\\n\
2716 __inline__ int __REDIRECT\\1 (\\2/",
2717     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2718 extern\\\n\
2719 #endif\\\n\
2720 __inline__ int __REDIRECT\\1 (\\2/",
2721     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2722 extern\\\n\
2723 #endif\\\n\
2724 __inline__ int/",
2725     (char*)NULL };
2727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2729  *  Description of Glibc_C99_Inline_3 fix
2730  */
2731 tSCC zGlibc_C99_Inline_3Name[] =
2732      "glibc_c99_inline_3";
2735  *  File name selection pattern
2736  */
2737 tSCC zGlibc_C99_Inline_3List[] =
2738   "bits/string2.h\0*/bits/string2.h\0";
2740  *  Machine/OS name selection pattern
2741  */
2742 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2745  *  content selection pattern - do fix if pattern found
2746  */
2747 tSCC zGlibc_C99_Inline_3Select0[] =
2748        "extern __inline";
2751  *  content bypass pattern - skip fix if pattern found
2752  */
2753 tSCC zGlibc_C99_Inline_3Bypass0[] =
2754        "__extern_inline|__GNU_STDC_INLINE__";
2756 #define    GLIBC_C99_INLINE_3_TEST_CT  2
2757 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2758   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2759   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2762  *  Fix Command Arguments for Glibc_C99_Inline_3
2763  */
2764 static const char* apzGlibc_C99_Inline_3Patch[] = {
2765     "format",
2766     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2767     "^# ifdef __cplusplus$",
2768     (char*)NULL };
2770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2772  *  Description of Glibc_C99_Inline_4 fix
2773  */
2774 tSCC zGlibc_C99_Inline_4Name[] =
2775      "glibc_c99_inline_4";
2778  *  File name selection pattern
2779  */
2780 tSCC zGlibc_C99_Inline_4List[] =
2781   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2783  *  Machine/OS name selection pattern
2784  */
2785 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2788  *  content selection pattern - do fix if pattern found
2789  */
2790 tSCC zGlibc_C99_Inline_4Select0[] =
2791        "(^| )extern __inline";
2794  *  content bypass pattern - skip fix if pattern found
2795  */
2796 tSCC zGlibc_C99_Inline_4Bypass0[] =
2797        "__extern_inline|__gnu_inline__";
2799 #define    GLIBC_C99_INLINE_4_TEST_CT  2
2800 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2801   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2802   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2805  *  Fix Command Arguments for Glibc_C99_Inline_4
2806  */
2807 static const char* apzGlibc_C99_Inline_4Patch[] = {
2808     "format",
2809     "%0 __attribute__ ((__gnu_inline__))",
2810     (char*)NULL };
2812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2814  *  Description of Glibc_Mutex_Init fix
2815  */
2816 tSCC zGlibc_Mutex_InitName[] =
2817      "glibc_mutex_init";
2820  *  File name selection pattern
2821  */
2822 tSCC zGlibc_Mutex_InitList[] =
2823   "pthread.h\0";
2825  *  Machine/OS name selection pattern
2826  */
2827 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2830  *  content selection pattern - do fix if pattern found
2831  */
2832 tSCC zGlibc_Mutex_InitSelect0[] =
2833        "\\{ *\\{ *0, *\\} *\\}";
2835 #define    GLIBC_MUTEX_INIT_TEST_CT  1
2836 static tTestDesc aGlibc_Mutex_InitTests[] = {
2837   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2840  *  Fix Command Arguments for Glibc_Mutex_Init
2841  */
2842 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2843     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2844 N\n\
2845 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2847     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2848     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2849     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2850     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2851     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2852     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2853     "-e", "/define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\\n\
2854 #  \\1\\\n\
2855   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2856 # else\\\n\
2857 #  \\1\\\n\
2858   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2859 # endif/",
2860     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2861     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2862     (char*)NULL };
2864 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2866  *  Description of Glibc_Stdint fix
2867  */
2868 tSCC zGlibc_StdintName[] =
2869      "glibc_stdint";
2872  *  File name selection pattern
2873  */
2874 tSCC zGlibc_StdintList[] =
2875   "stdint.h\0";
2877  *  Machine/OS name selection pattern
2878  */
2879 #define apzGlibc_StdintMachs (const char**)NULL
2882  *  content selection pattern - do fix if pattern found
2883  */
2884 tSCC zGlibc_StdintSelect0[] =
2885        "GNU C Library";
2887 #define    GLIBC_STDINT_TEST_CT  1
2888 static tTestDesc aGlibc_StdintTests[] = {
2889   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
2892  *  Fix Command Arguments for Glibc_Stdint
2893  */
2894 static const char* apzGlibc_StdintPatch[] = {
2895     "format",
2896     "# define UINT8_C(c)\tc\n\
2897 # define UINT16_C(c)\tc",
2898     "# define UINT8_C\\(c\\)\tc ## U\n\
2899 # define UINT16_C\\(c\\)\tc ## U",
2900     (char*)NULL };
2902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2904  *  Description of Glibc_Strncpy fix
2905  */
2906 tSCC zGlibc_StrncpyName[] =
2907      "glibc_strncpy";
2910  *  File name selection pattern
2911  */
2912 tSCC zGlibc_StrncpyList[] =
2913   "bits/string2.h\0";
2915  *  Machine/OS name selection pattern
2916  */
2917 #define apzGlibc_StrncpyMachs (const char**)NULL
2920  *  content bypass pattern - skip fix if pattern found
2921  */
2922 tSCC zGlibc_StrncpyBypass0[] =
2923        "__builtin_strncpy";
2925 #define    GLIBC_STRNCPY_TEST_CT  1
2926 static tTestDesc aGlibc_StrncpyTests[] = {
2927   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2930  *  Fix Command Arguments for Glibc_Strncpy
2931  */
2932 static const char* apzGlibc_StrncpyPatch[] = {
2933     "format",
2934     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2935     "#  define strncpy([^\n\
2936 ]*\\\\\n\
2937 )*[^\n\
2938 ]*",
2939     (char*)NULL };
2941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2943  *  Description of Glibc_Tgmath fix
2944  */
2945 tSCC zGlibc_TgmathName[] =
2946      "glibc_tgmath";
2949  *  File name selection pattern
2950  */
2951 tSCC zGlibc_TgmathList[] =
2952   "tgmath.h\0";
2954  *  Machine/OS name selection pattern
2955  */
2956 #define apzGlibc_TgmathMachs (const char**)NULL
2959  *  content selection pattern - do fix if pattern found
2960  */
2961 tSCC zGlibc_TgmathSelect0[] =
2962        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2965  *  content bypass pattern - skip fix if pattern found
2966  */
2967 tSCC zGlibc_TgmathBypass0[] =
2968        "__floating_type\\(type\\) \\\\\n\
2969 .*__builtin_classify_type";
2971 #define    GLIBC_TGMATH_TEST_CT  2
2972 static tTestDesc aGlibc_TgmathTests[] = {
2973   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
2974   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2977  *  Fix Command Arguments for Glibc_Tgmath
2978  */
2979 static const char* apzGlibc_TgmathPatch[] = {
2980     "format",
2981     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2982     (char*)NULL };
2984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2986  *  Description of Gnu_Types fix
2987  */
2988 tSCC zGnu_TypesName[] =
2989      "gnu_types";
2992  *  File name selection pattern
2993  */
2994 tSCC zGnu_TypesList[] =
2995   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2997  *  Machine/OS name selection pattern
2998  */
2999 tSCC* apzGnu_TypesMachs[] = {
3000         "*-*-solaris2.1[0-9]*",
3001         (const char*)NULL };
3004  *  content selection pattern - do fix if pattern found
3005  */
3006 tSCC zGnu_TypesSelect0[] =
3007        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3010  *  content bypass pattern - skip fix if pattern found
3011  */
3012 tSCC zGnu_TypesBypass0[] =
3013        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3015 #define    GNU_TYPES_TEST_CT  2
3016 static tTestDesc aGnu_TypesTests[] = {
3017   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3018   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3021  *  Fix Command Arguments for Gnu_Types
3022  */
3023 static const char* apzGnu_TypesPatch[] = {
3024     "gnu_type",
3025     (char*)NULL };
3027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3029  *  Description of Hp_Inline fix
3030  */
3031 tSCC zHp_InlineName[] =
3032      "hp_inline";
3035  *  File name selection pattern
3036  */
3037 tSCC zHp_InlineList[] =
3038   "sys/spinlock.h\0machine/machparam.h\0";
3040  *  Machine/OS name selection pattern
3041  */
3042 #define apzHp_InlineMachs (const char**)NULL
3045  *  content selection pattern - do fix if pattern found
3046  */
3047 tSCC zHp_InlineSelect0[] =
3048        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3050 #define    HP_INLINE_TEST_CT  1
3051 static tTestDesc aHp_InlineTests[] = {
3052   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
3055  *  Fix Command Arguments for Hp_Inline
3056  */
3057 static const char* apzHp_InlinePatch[] = {
3058     "format",
3059     "%1<machine/%2.h>",
3060     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3061     (char*)NULL };
3063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3065  *  Description of Hp_Sysfile fix
3066  */
3067 tSCC zHp_SysfileName[] =
3068      "hp_sysfile";
3071  *  File name selection pattern
3072  */
3073 tSCC zHp_SysfileList[] =
3074   "sys/file.h\0";
3076  *  Machine/OS name selection pattern
3077  */
3078 #define apzHp_SysfileMachs (const char**)NULL
3081  *  content selection pattern - do fix if pattern found
3082  */
3083 tSCC zHp_SysfileSelect0[] =
3084        "HPUX_SOURCE";
3086 #define    HP_SYSFILE_TEST_CT  1
3087 static tTestDesc aHp_SysfileTests[] = {
3088   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
3091  *  Fix Command Arguments for Hp_Sysfile
3092  */
3093 static const char* apzHp_SysfilePatch[] = {
3094     "format",
3095     "(struct file *, ...)",
3096     "\\(\\.\\.\\.\\)",
3097     (char*)NULL };
3099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3101  *  Description of Hppa_Hpux_Fp_Macros fix
3102  */
3103 tSCC zHppa_Hpux_Fp_MacrosName[] =
3104      "hppa_hpux_fp_macros";
3107  *  File name selection pattern
3108  */
3109 tSCC zHppa_Hpux_Fp_MacrosList[] =
3110   "math.h\0";
3112  *  Machine/OS name selection pattern
3113  */
3114 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3115         "hppa*-hp-hpux11*",
3116         (const char*)NULL };
3119  *  content selection pattern - do fix if pattern found
3120  */
3121 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3122        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3123 #[ \t]*define[ \t]*FP_ZERO.*\n\
3124 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3125 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3126 #[ \t]*define[ \t]*FP_NAN.*\n";
3128 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
3129 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3130   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3133  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
3134  */
3135 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3136     "format",
3137     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3138 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3139    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3140 %0#endif\n\n\
3141 #ifdef _INCLUDE_HPUX_SOURCE\n",
3142     (char*)NULL };
3144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3146  *  Description of Hpux10_Cpp_Pow_Inline fix
3147  */
3148 tSCC zHpux10_Cpp_Pow_InlineName[] =
3149      "hpux10_cpp_pow_inline";
3152  *  File name selection pattern
3153  */
3154 tSCC zHpux10_Cpp_Pow_InlineList[] =
3155   "fixinc-test-limits.h\0math.h\0";
3157  *  Machine/OS name selection pattern
3158  */
3159 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3162  *  content selection pattern - do fix if pattern found
3163  */
3164 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3165        "^# +ifdef +__cplusplus\n\
3166  +\\}\n\
3167  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3168 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3169  +\\}\n\
3170  +extern +\"C\" +\\{\n\
3171 #else\n\
3172 # +endif";
3174 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
3175 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3176   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3179  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3180  */
3181 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3182     "format",
3183     "",
3184     (char*)NULL };
3186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3188  *  Description of Hpux11_Cpp_Pow_Inline fix
3189  */
3190 tSCC zHpux11_Cpp_Pow_InlineName[] =
3191      "hpux11_cpp_pow_inline";
3194  *  File name selection pattern
3195  */
3196 tSCC zHpux11_Cpp_Pow_InlineList[] =
3197   "math.h\0";
3199  *  Machine/OS name selection pattern
3200  */
3201 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3204  *  content selection pattern - do fix if pattern found
3205  */
3206 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3207        " +inline double pow\\(double d,int expon\\) \\{\n\
3208  +return pow\\(d, \\(double\\)expon\\);\n\
3209  +\\}\n";
3211 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
3212 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3213   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3216  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3217  */
3218 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3219     "format",
3220     "",
3221     (char*)NULL };
3223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3225  *  Description of Hpux10_Ctype_Declarations1 fix
3226  */
3227 tSCC zHpux10_Ctype_Declarations1Name[] =
3228      "hpux10_ctype_declarations1";
3231  *  File name selection pattern
3232  */
3233 tSCC zHpux10_Ctype_Declarations1List[] =
3234   "ctype.h\0";
3236  *  Machine/OS name selection pattern
3237  */
3238 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3241  *  content selection pattern - do fix if pattern found
3242  */
3243 tSCC zHpux10_Ctype_Declarations1Select0[] =
3244        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3247  *  content bypass pattern - skip fix if pattern found
3248  */
3249 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3250        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3252 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
3253 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3254   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3255   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3258  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
3259  */
3260 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3261     "format",
3262     "#ifdef _PROTOTYPES\n\
3263 extern int __tolower(int);\n\
3264 extern int __toupper(int);\n\
3265 #else /* NOT _PROTOTYPES */\n\
3266 extern int __tolower();\n\
3267 extern int __toupper();\n\
3268 #endif /* _PROTOTYPES */\n\n\
3269 %0\n",
3270     (char*)NULL };
3272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3274  *  Description of Hpux10_Ctype_Declarations2 fix
3275  */
3276 tSCC zHpux10_Ctype_Declarations2Name[] =
3277      "hpux10_ctype_declarations2";
3280  *  File name selection pattern
3281  */
3282 tSCC zHpux10_Ctype_Declarations2List[] =
3283   "ctype.h\0";
3285  *  Machine/OS name selection pattern
3286  */
3287 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3290  *  content selection pattern - do fix if pattern found
3291  */
3292 tSCC zHpux10_Ctype_Declarations2Select0[] =
3293        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3296  *  content bypass pattern - skip fix if pattern found
3297  */
3298 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3299        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3301 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
3302 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3303   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3304   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3307  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
3308  */
3309 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3310     "format",
3311     "%0\n\n\
3312 #ifdef _PROTOTYPES\n\
3313      extern int _isalnum(int);\n\
3314      extern int _isalpha(int);\n\
3315      extern int _iscntrl(int);\n\
3316      extern int _isdigit(int);\n\
3317      extern int _isgraph(int);\n\
3318      extern int _islower(int);\n\
3319      extern int _isprint(int);\n\
3320      extern int _ispunct(int);\n\
3321      extern int _isspace(int);\n\
3322      extern int _isupper(int);\n\
3323      extern int _isxdigit(int);\n\
3324 #  else /* not _PROTOTYPES */\n\
3325      extern int _isalnum();\n\
3326      extern int _isalpha();\n\
3327      extern int _iscntrl();\n\
3328      extern int _isdigit();\n\
3329      extern int _isgraph();\n\
3330      extern int _islower();\n\
3331      extern int _isprint();\n\
3332      extern int _ispunct();\n\
3333      extern int _isspace();\n\
3334      extern int _isupper();\n\
3335      extern int _isxdigit();\n\
3336 #endif /* _PROTOTYPES */\n",
3337     (char*)NULL };
3339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3341  *  Description of Hpux10_Stdio_Declarations fix
3342  */
3343 tSCC zHpux10_Stdio_DeclarationsName[] =
3344      "hpux10_stdio_declarations";
3347  *  File name selection pattern
3348  */
3349 tSCC zHpux10_Stdio_DeclarationsList[] =
3350   "stdio.h\0";
3352  *  Machine/OS name selection pattern
3353  */
3354 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3357  *  content selection pattern - do fix if pattern found
3358  */
3359 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3360        "^#[ \t]*define _iob[ \t]*__iob";
3363  *  content bypass pattern - skip fix if pattern found
3364  */
3365 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3366        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3368 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
3369 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3370   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3371   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3374  *  Fix Command Arguments for Hpux10_Stdio_Declarations
3375  */
3376 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3377     "format",
3378     "%0\n\n\
3379 #  if defined(__STDC__) || defined(__cplusplus)\n\
3380      extern int snprintf(char *, size_t, const char *, ...);\n\
3381      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3382 #  else /* not __STDC__) || __cplusplus */\n\
3383      extern int snprintf();\n\
3384      extern int vsnprintf();\n\
3385 #  endif /* __STDC__) || __cplusplus */\n",
3386     (char*)NULL };
3388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3390  *  Description of Hpux11_Abs fix
3391  */
3392 tSCC zHpux11_AbsName[] =
3393      "hpux11_abs";
3396  *  File name selection pattern
3397  */
3398 tSCC zHpux11_AbsList[] =
3399   "stdlib.h\0";
3401  *  Machine/OS name selection pattern
3402  */
3403 tSCC* apzHpux11_AbsMachs[] = {
3404         "*-hp-hpux11*",
3405         (const char*)NULL };
3408  *  content selection pattern - do fix if pattern found
3409  */
3410 tSCC zHpux11_AbsSelect0[] =
3411        "ifndef _MATH_INCLUDED";
3413 #define    HPUX11_ABS_TEST_CT  1
3414 static tTestDesc aHpux11_AbsTests[] = {
3415   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
3418  *  Fix Command Arguments for Hpux11_Abs
3419  */
3420 static const char* apzHpux11_AbsPatch[] = {
3421     "format",
3422     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3423     (char*)NULL };
3425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3427  *  Description of Hpux11_Fabsf fix
3428  */
3429 tSCC zHpux11_FabsfName[] =
3430      "hpux11_fabsf";
3433  *  File name selection pattern
3434  */
3435 tSCC zHpux11_FabsfList[] =
3436   "math.h\0";
3438  *  Machine/OS name selection pattern
3439  */
3440 #define apzHpux11_FabsfMachs (const char**)NULL
3443  *  content selection pattern - do fix if pattern found
3444  */
3445 tSCC zHpux11_FabsfSelect0[] =
3446        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3449  *  content bypass pattern - skip fix if pattern found
3450  */
3451 tSCC zHpux11_FabsfBypass0[] =
3452        "__cplusplus";
3454 #define    HPUX11_FABSF_TEST_CT  2
3455 static tTestDesc aHpux11_FabsfTests[] = {
3456   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
3457   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3460  *  Fix Command Arguments for Hpux11_Fabsf
3461  */
3462 static const char* apzHpux11_FabsfPatch[] = {
3463     "format",
3464     "#ifndef __cplusplus\n\
3465 %0\n\
3466 #endif",
3467     (char*)NULL };
3469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3471  *  Description of Hpux11_Pthread_Const fix
3472  */
3473 tSCC zHpux11_Pthread_ConstName[] =
3474      "hpux11_pthread_const";
3477  *  File name selection pattern
3478  */
3479 tSCC zHpux11_Pthread_ConstList[] =
3480   "sys/pthread.h\0";
3482  *  Machine/OS name selection pattern
3483  */
3484 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3485         "*-hp-hpux11.[0-3]*",
3486         (const char*)NULL };
3489  *  content selection pattern - do fix if pattern found
3490  */
3491 tSCC zHpux11_Pthread_ConstSelect0[] =
3492        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3494 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
3495 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3496   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3499  *  Fix Command Arguments for Hpux11_Pthread_Const
3500  */
3501 static const char* apzHpux11_Pthread_ConstPatch[] = {
3502     "format",
3503     "#define __POINTER_SET\t\t((void *) 1L)",
3504     (char*)NULL };
3506 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3508  *  Description of Hpux11_Size_T fix
3509  */
3510 tSCC zHpux11_Size_TName[] =
3511      "hpux11_size_t";
3514  *  File name selection pattern
3515  */
3516 #define zHpux11_Size_TList (char*)NULL
3518  *  Machine/OS name selection pattern
3519  */
3520 tSCC* apzHpux11_Size_TMachs[] = {
3521         "*-hp-hpux11*",
3522         (const char*)NULL };
3525  *  content selection pattern - do fix if pattern found
3526  */
3527 tSCC zHpux11_Size_TSelect0[] =
3528        "__size_t";
3530 #define    HPUX11_SIZE_T_TEST_CT  1
3531 static tTestDesc aHpux11_Size_TTests[] = {
3532   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3535  *  Fix Command Arguments for Hpux11_Size_T
3536  */
3537 static const char* apzHpux11_Size_TPatch[] = {
3538     "format",
3539     "_hpux_size_t",
3540     (char*)NULL };
3542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3544  *  Description of Hpux11_Snprintf fix
3545  */
3546 tSCC zHpux11_SnprintfName[] =
3547      "hpux11_snprintf";
3550  *  File name selection pattern
3551  */
3552 tSCC zHpux11_SnprintfList[] =
3553   "stdio.h\0";
3555  *  Machine/OS name selection pattern
3556  */
3557 #define apzHpux11_SnprintfMachs (const char**)NULL
3560  *  content selection pattern - do fix if pattern found
3561  */
3562 tSCC zHpux11_SnprintfSelect0[] =
3563        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3565 #define    HPUX11_SNPRINTF_TEST_CT  1
3566 static tTestDesc aHpux11_SnprintfTests[] = {
3567   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3570  *  Fix Command Arguments for Hpux11_Snprintf
3571  */
3572 static const char* apzHpux11_SnprintfPatch[] = {
3573     "format",
3574     "%1 const %3",
3575     (char*)NULL };
3577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3579  *  Description of Hpux11_Vsnprintf fix
3580  */
3581 tSCC zHpux11_VsnprintfName[] =
3582      "hpux11_vsnprintf";
3585  *  File name selection pattern
3586  */
3587 tSCC zHpux11_VsnprintfList[] =
3588   "stdio.h\0";
3590  *  Machine/OS name selection pattern
3591  */
3592 #define apzHpux11_VsnprintfMachs (const char**)NULL
3595  *  content selection pattern - do fix if pattern found
3596  */
3597 tSCC zHpux11_VsnprintfSelect0[] =
3598        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3600 #define    HPUX11_VSNPRINTF_TEST_CT  1
3601 static tTestDesc aHpux11_VsnprintfTests[] = {
3602   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3605  *  Fix Command Arguments for Hpux11_Vsnprintf
3606  */
3607 static const char* apzHpux11_VsnprintfPatch[] = {
3608     "format",
3609     "%1 __va_list);",
3610     (char*)NULL };
3612 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3614  *  Description of Hpux8_Bogus_Inlines fix
3615  */
3616 tSCC zHpux8_Bogus_InlinesName[] =
3617      "hpux8_bogus_inlines";
3620  *  File name selection pattern
3621  */
3622 tSCC zHpux8_Bogus_InlinesList[] =
3623   "math.h\0";
3625  *  Machine/OS name selection pattern
3626  */
3627 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3630  *  content selection pattern - do fix if pattern found
3631  */
3632 tSCC zHpux8_Bogus_InlinesSelect0[] =
3633        "inline";
3636  *  content bypass pattern - skip fix if pattern found
3637  */
3638 tSCC zHpux8_Bogus_InlinesBypass0[] =
3639        "__GNUG__";
3641 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
3642 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3643   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3644   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3647  *  Fix Command Arguments for Hpux8_Bogus_Inlines
3648  */
3649 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3650     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3651     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3652     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3653     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3654     (char*)NULL };
3656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3658  *  Description of Hpux_Ctype_Macros fix
3659  */
3660 tSCC zHpux_Ctype_MacrosName[] =
3661      "hpux_ctype_macros";
3664  *  File name selection pattern
3665  */
3666 tSCC zHpux_Ctype_MacrosList[] =
3667   "ctype.h\0";
3669  *  Machine/OS name selection pattern
3670  */
3671 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3674  *  content selection pattern - do fix if pattern found
3675  */
3676 tSCC zHpux_Ctype_MacrosSelect0[] =
3677        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3679 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3680 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3681   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3684  *  Fix Command Arguments for Hpux_Ctype_Macros
3685  */
3686 static const char* apzHpux_Ctype_MacrosPatch[] = {
3687     "format",
3688     "%1(int)%3",
3689     (char*)NULL };
3691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3693  *  Description of Hpux_Htonl fix
3694  */
3695 tSCC zHpux_HtonlName[] =
3696      "hpux_htonl";
3699  *  File name selection pattern
3700  */
3701 tSCC zHpux_HtonlList[] =
3702   "netinet/in.h\0";
3704  *  Machine/OS name selection pattern
3705  */
3706 #define apzHpux_HtonlMachs (const char**)NULL
3709  *  content selection pattern - do fix if pattern found
3710  */
3711 tSCC zHpux_HtonlSelect0[] =
3712        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3713 (/\\*\n\
3714  \\* Macros for number representation conversion\\.\n\
3715  \\*/\n\
3716 #ifndef ntohl)";
3718 #define    HPUX_HTONL_TEST_CT  1
3719 static tTestDesc aHpux_HtonlTests[] = {
3720   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
3723  *  Fix Command Arguments for Hpux_Htonl
3724  */
3725 static const char* apzHpux_HtonlPatch[] = {
3726     "format",
3727     "#if 1\n\
3728 %1",
3729     (char*)NULL };
3731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3733  *  Description of Hpux_Long_Double fix
3734  */
3735 tSCC zHpux_Long_DoubleName[] =
3736      "hpux_long_double";
3739  *  File name selection pattern
3740  */
3741 tSCC zHpux_Long_DoubleList[] =
3742   "stdlib.h\0";
3744  *  Machine/OS name selection pattern
3745  */
3746 tSCC* apzHpux_Long_DoubleMachs[] = {
3747         "*-*-hpux10*",
3748         "*-*-hpux11.[012]*",
3749         (const char*)NULL };
3752  *  content selection pattern - do fix if pattern found
3753  */
3754 tSCC zHpux_Long_DoubleSelect0[] =
3755        "extern[ \t]long_double[ \t]strtold";
3758  *  content bypass pattern - skip fix if pattern found
3759  */
3760 tSCC zHpux_Long_DoubleBypass0[] =
3761        "long_double_t";
3763 #define    HPUX_LONG_DOUBLE_TEST_CT  2
3764 static tTestDesc aHpux_Long_DoubleTests[] = {
3765   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3766   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3769  *  Fix Command Arguments for Hpux_Long_Double
3770  */
3771 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3772     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3773     "-e", "s/long_double/long double/g",
3774     (char*)NULL };
3776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3778  *  Description of Hpux_Long_Double_2 fix
3779  */
3780 tSCC zHpux_Long_Double_2Name[] =
3781      "hpux_long_double_2";
3784  *  File name selection pattern
3785  */
3786 tSCC zHpux_Long_Double_2List[] =
3787   "stdlib.h\0";
3789  *  Machine/OS name selection pattern
3790  */
3791 tSCC* apzHpux_Long_Double_2Machs[] = {
3792         "hppa*-*-hpux11.3*",
3793         (const char*)NULL };
3796  *  content selection pattern - do fix if pattern found
3797  */
3798 tSCC zHpux_Long_Double_2Select0[] =
3799        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3801 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
3802 static tTestDesc aHpux_Long_Double_2Tests[] = {
3803   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3806  *  Fix Command Arguments for Hpux_Long_Double_2
3807  */
3808 static const char* apzHpux_Long_Double_2Patch[] = {
3809     "format",
3810     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3811     (char*)NULL };
3813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3815  *  Description of Hpux_Systime fix
3816  */
3817 tSCC zHpux_SystimeName[] =
3818      "hpux_systime";
3821  *  File name selection pattern
3822  */
3823 tSCC zHpux_SystimeList[] =
3824   "sys/time.h\0";
3826  *  Machine/OS name selection pattern
3827  */
3828 #define apzHpux_SystimeMachs (const char**)NULL
3831  *  content selection pattern - do fix if pattern found
3832  */
3833 tSCC zHpux_SystimeSelect0[] =
3834        "^extern struct sigevent;";
3836 #define    HPUX_SYSTIME_TEST_CT  1
3837 static tTestDesc aHpux_SystimeTests[] = {
3838   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
3841  *  Fix Command Arguments for Hpux_Systime
3842  */
3843 static const char* apzHpux_SystimePatch[] = {
3844     "format",
3845     "struct sigevent;",
3846     (char*)NULL };
3848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3850  *  Description of Hpux_Spu_Info fix
3851  */
3852 tSCC zHpux_Spu_InfoName[] =
3853      "hpux_spu_info";
3856  *  File name selection pattern
3857  */
3858 tSCC zHpux_Spu_InfoList[] =
3859   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3861  *  Machine/OS name selection pattern
3862  */
3863 tSCC* apzHpux_Spu_InfoMachs[] = {
3864         "*-hp-hpux*",
3865         (const char*)NULL };
3868  *  content selection pattern - do fix if pattern found
3869  */
3870 tSCC zHpux_Spu_InfoSelect0[] =
3871        "^.*extern.*spu_info.*";
3873 #define    HPUX_SPU_INFO_TEST_CT  1
3874 static tTestDesc aHpux_Spu_InfoTests[] = {
3875   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3878  *  Fix Command Arguments for Hpux_Spu_Info
3879  */
3880 static const char* apzHpux_Spu_InfoPatch[] = {
3881     "format",
3882     "#ifdef _KERNEL\n\
3883 %0\n\
3884 #endif",
3885     (char*)NULL };
3887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3889  *  Description of Hpux11_Extern_Sendfile fix
3890  */
3891 tSCC zHpux11_Extern_SendfileName[] =
3892      "hpux11_extern_sendfile";
3895  *  File name selection pattern
3896  */
3897 tSCC zHpux11_Extern_SendfileList[] =
3898   "sys/socket.h\0";
3900  *  Machine/OS name selection pattern
3901  */
3902 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3903         "*-hp-hpux11.[12]*",
3904         (const char*)NULL };
3907  *  content selection pattern - do fix if pattern found
3908  */
3909 tSCC zHpux11_Extern_SendfileSelect0[] =
3910        "^[ \t]*extern sbsize_t sendfile.*\n\
3911 .*, int\\)\\);\n";
3913 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
3914 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3915   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3918  *  Fix Command Arguments for Hpux11_Extern_Sendfile
3919  */
3920 static const char* apzHpux11_Extern_SendfilePatch[] = {
3921     "format",
3922     "#ifndef _APP32_64BIT_OFF_T\n\
3923 %0#endif\n",
3924     (char*)NULL };
3926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3928  *  Description of Hpux11_Extern_Sendpath fix
3929  */
3930 tSCC zHpux11_Extern_SendpathName[] =
3931      "hpux11_extern_sendpath";
3934  *  File name selection pattern
3935  */
3936 tSCC zHpux11_Extern_SendpathList[] =
3937   "sys/socket.h\0";
3939  *  Machine/OS name selection pattern
3940  */
3941 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3942         "*-hp-hpux11.[12]*",
3943         (const char*)NULL };
3946  *  content selection pattern - do fix if pattern found
3947  */
3948 tSCC zHpux11_Extern_SendpathSelect0[] =
3949        "^[ \t]*extern sbsize_t sendpath.*\n\
3950 .*, int\\)\\);\n";
3952 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
3953 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3954   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3957  *  Fix Command Arguments for Hpux11_Extern_Sendpath
3958  */
3959 static const char* apzHpux11_Extern_SendpathPatch[] = {
3960     "format",
3961     "#ifndef _APP32_64BIT_OFF_T\n\
3962 %0#endif\n",
3963     (char*)NULL };
3965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3967  *  Description of Hpux_Extern_Errno fix
3968  */
3969 tSCC zHpux_Extern_ErrnoName[] =
3970      "hpux_extern_errno";
3973  *  File name selection pattern
3974  */
3975 tSCC zHpux_Extern_ErrnoList[] =
3976   "errno.h\0";
3978  *  Machine/OS name selection pattern
3979  */
3980 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3981         "*-hp-hpux10.*",
3982         "*-hp-hpux11.[0-2]*",
3983         (const char*)NULL };
3986  *  content selection pattern - do fix if pattern found
3987  */
3988 tSCC zHpux_Extern_ErrnoSelect0[] =
3989        "^[ \t]*extern int errno;$";
3991 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
3992 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3993   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3996  *  Fix Command Arguments for Hpux_Extern_Errno
3997  */
3998 static const char* apzHpux_Extern_ErrnoPatch[] = {
3999     "format",
4000     "#ifdef __cplusplus\n\
4001 extern \"C\" {\n\
4002 #endif\n\
4003 %0\n\
4004 #ifdef __cplusplus\n\
4005 }\n\
4006 #endif",
4007     (char*)NULL };
4009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4011  *  Description of Hpux_Pthread_Initializers fix
4012  */
4013 tSCC zHpux_Pthread_InitializersName[] =
4014      "hpux_pthread_initializers";
4017  *  File name selection pattern
4018  */
4019 tSCC zHpux_Pthread_InitializersList[] =
4020   "sys/pthread.h\0";
4022  *  Machine/OS name selection pattern
4023  */
4024 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4025         "*-hp-hpux11.[0-3]*",
4026         (const char*)NULL };
4027 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
4028 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
4031  *  Fix Command Arguments for Hpux_Pthread_Initializers
4032  */
4033 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4034     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4035     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4036     "-e", "/^[ \t]*0$/d",
4037     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4038     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4039     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4040     "-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\\\\@",
4041     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4042     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4043     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4044     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4045     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4046     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4047     (char*)NULL };
4049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4051  *  Description of Hpux_C99_Intptr fix
4052  */
4053 tSCC zHpux_C99_IntptrName[] =
4054      "hpux_c99_intptr";
4057  *  File name selection pattern
4058  */
4059 tSCC zHpux_C99_IntptrList[] =
4060   "stdint-hpux11.h\0stdint.h\0";
4062  *  Machine/OS name selection pattern
4063  */
4064 tSCC* apzHpux_C99_IntptrMachs[] = {
4065         "*-hp-hpux11.3*",
4066         (const char*)NULL };
4067 #define HPUX_C99_INTPTR_TEST_CT  0
4068 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4071  *  Fix Command Arguments for Hpux_C99_Intptr
4072  */
4073 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4074     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4075     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4076     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4077     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4078     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4079     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4080     (char*)NULL };
4082 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4084  *  Description of Hpux_C99_Inttypes fix
4085  */
4086 tSCC zHpux_C99_InttypesName[] =
4087      "hpux_c99_inttypes";
4090  *  File name selection pattern
4091  */
4092 tSCC zHpux_C99_InttypesList[] =
4093   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4095  *  Machine/OS name selection pattern
4096  */
4097 tSCC* apzHpux_C99_InttypesMachs[] = {
4098         "*-hp-hpux11.[23]*",
4099         (const char*)NULL };
4100 #define HPUX_C99_INTTYPES_TEST_CT  0
4101 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4104  *  Fix Command Arguments for Hpux_C99_Inttypes
4105  */
4106 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4107     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4108     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4109     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4110     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4111     (char*)NULL };
4113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4115  *  Description of Hpux_C99_Inttypes2 fix
4116  */
4117 tSCC zHpux_C99_Inttypes2Name[] =
4118      "hpux_c99_inttypes2";
4121  *  File name selection pattern
4122  */
4123 tSCC zHpux_C99_Inttypes2List[] =
4124   "stdint-hpux11.h\0stdint.h\0";
4126  *  Machine/OS name selection pattern
4127  */
4128 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4129         "*-hp-hpux11.2*",
4130         (const char*)NULL };
4131 #define HPUX_C99_INTTYPES2_TEST_CT  0
4132 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4135  *  Fix Command Arguments for Hpux_C99_Inttypes2
4136  */
4137 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4138     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4139     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4140     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4141     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4142     (char*)NULL };
4144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4146  *  Description of Hpux_Stdint_Least_Fast fix
4147  */
4148 tSCC zHpux_Stdint_Least_FastName[] =
4149      "hpux_stdint_least_fast";
4152  *  File name selection pattern
4153  */
4154 tSCC zHpux_Stdint_Least_FastList[] =
4155   "stdint-hpux11.h\0stdint.h\0";
4157  *  Machine/OS name selection pattern
4158  */
4159 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4160         "*-hp-hpux11.2*",
4161         (const char*)NULL };
4164  *  content selection pattern - do fix if pattern found
4165  */
4166 tSCC zHpux_Stdint_Least_FastSelect0[] =
4167        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4169 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
4170 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4171   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4174  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
4175  */
4176 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4177     "format",
4178     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
4179     (char*)NULL };
4181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4183  *  Description of Hpux_Inttype_Int8_T fix
4184  */
4185 tSCC zHpux_Inttype_Int8_TName[] =
4186      "hpux_inttype_int8_t";
4189  *  File name selection pattern
4190  */
4191 tSCC zHpux_Inttype_Int8_TList[] =
4192   "sys/_inttypes.h\0";
4194  *  Machine/OS name selection pattern
4195  */
4196 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4197         "*-hp-hpux1[01].*",
4198         (const char*)NULL };
4201  *  content selection pattern - do fix if pattern found
4202  */
4203 tSCC zHpux_Inttype_Int8_TSelect0[] =
4204        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4206 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4207 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4208   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4211  *  Fix Command Arguments for Hpux_Inttype_Int8_T
4212  */
4213 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4214     "format",
4215     "typedef signed char int%18_t;",
4216     (char*)NULL };
4218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4220  *  Description of Hpux_Imaginary_I fix
4221  */
4222 tSCC zHpux_Imaginary_IName[] =
4223      "hpux_imaginary_i";
4226  *  File name selection pattern
4227  */
4228 tSCC zHpux_Imaginary_IList[] =
4229   "complex.h\0";
4231  *  Machine/OS name selection pattern
4232  */
4233 tSCC* apzHpux_Imaginary_IMachs[] = {
4234         "ia64-hp-hpux11.*",
4235         (const char*)NULL };
4238  *  content selection pattern - do fix if pattern found
4239  */
4240 tSCC zHpux_Imaginary_ISelect0[] =
4241        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4243 #define    HPUX_IMAGINARY_I_TEST_CT  1
4244 static tTestDesc aHpux_Imaginary_ITests[] = {
4245   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4248  *  Fix Command Arguments for Hpux_Imaginary_I
4249  */
4250 static const char* apzHpux_Imaginary_IPatch[] = {
4251     "format",
4252     "#define _Complex_I (__extension__ 1.0iF)",
4253     (char*)NULL };
4255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4257  *  Description of Huge_Val_Hex fix
4258  */
4259 tSCC zHuge_Val_HexName[] =
4260      "huge_val_hex";
4263  *  File name selection pattern
4264  */
4265 tSCC zHuge_Val_HexList[] =
4266   "bits/huge_val.h\0";
4268  *  Machine/OS name selection pattern
4269  */
4270 #define apzHuge_Val_HexMachs (const char**)NULL
4273  *  content selection pattern - do fix if pattern found
4274  */
4275 tSCC zHuge_Val_HexSelect0[] =
4276        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4279  *  content bypass pattern - skip fix if pattern found
4280  */
4281 tSCC zHuge_Val_HexBypass0[] =
4282        "__builtin_huge_val";
4284 #define    HUGE_VAL_HEX_TEST_CT  2
4285 static tTestDesc aHuge_Val_HexTests[] = {
4286   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
4287   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4290  *  Fix Command Arguments for Huge_Val_Hex
4291  */
4292 static const char* apzHuge_Val_HexPatch[] = {
4293     "format",
4294     "#define HUGE_VAL (__builtin_huge_val())\n",
4295     (char*)NULL };
4297 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4299  *  Description of Huge_Valf_Hex fix
4300  */
4301 tSCC zHuge_Valf_HexName[] =
4302      "huge_valf_hex";
4305  *  File name selection pattern
4306  */
4307 tSCC zHuge_Valf_HexList[] =
4308   "bits/huge_val.h\0";
4310  *  Machine/OS name selection pattern
4311  */
4312 #define apzHuge_Valf_HexMachs (const char**)NULL
4315  *  content selection pattern - do fix if pattern found
4316  */
4317 tSCC zHuge_Valf_HexSelect0[] =
4318        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4321  *  content bypass pattern - skip fix if pattern found
4322  */
4323 tSCC zHuge_Valf_HexBypass0[] =
4324        "__builtin_huge_valf";
4326 #define    HUGE_VALF_HEX_TEST_CT  2
4327 static tTestDesc aHuge_Valf_HexTests[] = {
4328   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
4329   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4332  *  Fix Command Arguments for Huge_Valf_Hex
4333  */
4334 static const char* apzHuge_Valf_HexPatch[] = {
4335     "format",
4336     "#define HUGE_VALF (__builtin_huge_valf())\n",
4337     (char*)NULL };
4339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4341  *  Description of Huge_Vall_Hex fix
4342  */
4343 tSCC zHuge_Vall_HexName[] =
4344      "huge_vall_hex";
4347  *  File name selection pattern
4348  */
4349 tSCC zHuge_Vall_HexList[] =
4350   "bits/huge_val.h\0";
4352  *  Machine/OS name selection pattern
4353  */
4354 #define apzHuge_Vall_HexMachs (const char**)NULL
4357  *  content selection pattern - do fix if pattern found
4358  */
4359 tSCC zHuge_Vall_HexSelect0[] =
4360        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4363  *  content bypass pattern - skip fix if pattern found
4364  */
4365 tSCC zHuge_Vall_HexBypass0[] =
4366        "__builtin_huge_vall";
4368 #define    HUGE_VALL_HEX_TEST_CT  2
4369 static tTestDesc aHuge_Vall_HexTests[] = {
4370   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
4371   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4374  *  Fix Command Arguments for Huge_Vall_Hex
4375  */
4376 static const char* apzHuge_Vall_HexPatch[] = {
4377     "format",
4378     "#define HUGE_VALL (__builtin_huge_vall())\n",
4379     (char*)NULL };
4381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4383  *  Description of Int_Abort_Free_And_Exit fix
4384  */
4385 tSCC zInt_Abort_Free_And_ExitName[] =
4386      "int_abort_free_and_exit";
4389  *  File name selection pattern
4390  */
4391 tSCC zInt_Abort_Free_And_ExitList[] =
4392   "stdlib.h\0";
4394  *  Machine/OS name selection pattern
4395  */
4396 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4399  *  content selection pattern - do fix if pattern found
4400  */
4401 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4402        "int[ \t]+(abort|free|exit)[ \t]*\\(";
4405  *  content bypass pattern - skip fix if pattern found
4406  */
4407 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4408        "_CLASSIC_ANSI_TYPES";
4410 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
4411 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4412   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4413   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4416  *  Fix Command Arguments for Int_Abort_Free_And_Exit
4417  */
4418 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4419     "format",
4420     "void\t%1(",
4421     (char*)NULL };
4423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4425  *  Description of Io_Quotes_Def fix
4426  */
4427 tSCC zIo_Quotes_DefName[] =
4428      "io_quotes_def";
4431  *  File name selection pattern
4432  */
4433 #define zIo_Quotes_DefList (char*)NULL
4435  *  Machine/OS name selection pattern
4436  */
4437 #define apzIo_Quotes_DefMachs (const char**)NULL
4440  *  content selection pattern - do fix if pattern found
4441  */
4442 tSCC zIo_Quotes_DefSelect0[] =
4443        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4445 #define    IO_QUOTES_DEF_TEST_CT  1
4446 static tTestDesc aIo_Quotes_DefTests[] = {
4447   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4450  *  Fix Command Arguments for Io_Quotes_Def
4451  */
4452 static const char* apzIo_Quotes_DefPatch[] = {
4453     "char_macro_def",
4454     "IO",
4455     (char*)NULL };
4457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4459  *  Description of Io_Quotes_Use fix
4460  */
4461 tSCC zIo_Quotes_UseName[] =
4462      "io_quotes_use";
4465  *  File name selection pattern
4466  */
4467 #define zIo_Quotes_UseList (char*)NULL
4469  *  Machine/OS name selection pattern
4470  */
4471 #define apzIo_Quotes_UseMachs (const char**)NULL
4474  *  content selection pattern - do fix if pattern found
4475  */
4476 tSCC zIo_Quotes_UseSelect0[] =
4477        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4479 #define    IO_QUOTES_USE_TEST_CT  1
4480 static tTestDesc aIo_Quotes_UseTests[] = {
4481   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4484  *  Fix Command Arguments for Io_Quotes_Use
4485  */
4486 static const char* apzIo_Quotes_UsePatch[] = {
4487     "char_macro_use",
4488     "IO",
4489     (char*)NULL };
4491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4493  *  Description of Ip_Missing_Semi fix
4494  */
4495 tSCC zIp_Missing_SemiName[] =
4496      "ip_missing_semi";
4499  *  File name selection pattern
4500  */
4501 tSCC zIp_Missing_SemiList[] =
4502   "netinet/ip.h\0";
4504  *  Machine/OS name selection pattern
4505  */
4506 #define apzIp_Missing_SemiMachs (const char**)NULL
4509  *  content selection pattern - do fix if pattern found
4510  */
4511 tSCC zIp_Missing_SemiSelect0[] =
4512        "}$";
4514 #define    IP_MISSING_SEMI_TEST_CT  1
4515 static tTestDesc aIp_Missing_SemiTests[] = {
4516   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4519  *  Fix Command Arguments for Ip_Missing_Semi
4520  */
4521 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4522     "-e", "/^struct/,/^};/s/}$/};/",
4523     (char*)NULL };
4525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4527  *  Description of Irix_Limits_Const fix
4528  */
4529 tSCC zIrix_Limits_ConstName[] =
4530      "irix_limits_const";
4533  *  File name selection pattern
4534  */
4535 tSCC zIrix_Limits_ConstList[] =
4536   "fixinc-test-limits.h\0limits.h\0";
4538  *  Machine/OS name selection pattern
4539  */
4540 #define apzIrix_Limits_ConstMachs (const char**)NULL
4543  *  content selection pattern - do fix if pattern found
4544  */
4545 tSCC zIrix_Limits_ConstSelect0[] =
4546        "^extern const ";
4548 #define    IRIX_LIMITS_CONST_TEST_CT  1
4549 static tTestDesc aIrix_Limits_ConstTests[] = {
4550   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4553  *  Fix Command Arguments for Irix_Limits_Const
4554  */
4555 static const char* apzIrix_Limits_ConstPatch[] = {
4556     "format",
4557     "extern __const ",
4558     (char*)NULL };
4560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4562  *  Description of Irix_Stdio_Va_List fix
4563  */
4564 tSCC zIrix_Stdio_Va_ListName[] =
4565      "irix_stdio_va_list";
4568  *  File name selection pattern
4569  */
4570 tSCC zIrix_Stdio_Va_ListList[] =
4571   "stdio.h\0";
4573  *  Machine/OS name selection pattern
4574  */
4575 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4578  *  content selection pattern - do fix if pattern found
4579  */
4580 tSCC zIrix_Stdio_Va_ListSelect0[] =
4581        "/\\* va_list \\*/ char \\*";
4583 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
4584 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4585   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4588  *  Fix Command Arguments for Irix_Stdio_Va_List
4589  */
4590 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4591     "format",
4592     "__gnuc_va_list",
4593     (char*)NULL };
4595 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4597  *  Description of Kandr_Concat fix
4598  */
4599 tSCC zKandr_ConcatName[] =
4600      "kandr_concat";
4603  *  File name selection pattern
4604  */
4605 tSCC zKandr_ConcatList[] =
4606   "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";
4608  *  Machine/OS name selection pattern
4609  */
4610 #define apzKandr_ConcatMachs (const char**)NULL
4613  *  content selection pattern - do fix if pattern found
4614  */
4615 tSCC zKandr_ConcatSelect0[] =
4616        "/\\*\\*/";
4618 #define    KANDR_CONCAT_TEST_CT  1
4619 static tTestDesc aKandr_ConcatTests[] = {
4620   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
4623  *  Fix Command Arguments for Kandr_Concat
4624  */
4625 static const char* apzKandr_ConcatPatch[] = {
4626     "format",
4627     "##",
4628     (char*)NULL };
4630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4632  *  Description of Linux_Ia64_Ucontext fix
4633  */
4634 tSCC zLinux_Ia64_UcontextName[] =
4635      "linux_ia64_ucontext";
4638  *  File name selection pattern
4639  */
4640 tSCC zLinux_Ia64_UcontextList[] =
4641   "sys/ucontext.h\0";
4643  *  Machine/OS name selection pattern
4644  */
4645 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4646         "ia64-*-linux*",
4647         (const char*)NULL };
4650  *  content selection pattern - do fix if pattern found
4651  */
4652 tSCC zLinux_Ia64_UcontextSelect0[] =
4653        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4655 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
4656 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4657   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4660  *  Fix Command Arguments for Linux_Ia64_Ucontext
4661  */
4662 static const char* apzLinux_Ia64_UcontextPatch[] = {
4663     "format",
4664     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4665     (char*)NULL };
4667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4669  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
4670  */
4671 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4672      "lynxos_no_warning_in_sys_time_h";
4675  *  File name selection pattern
4676  */
4677 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4678   "sys/time.h\0";
4680  *  Machine/OS name selection pattern
4681  */
4682 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4685  *  content selection pattern - do fix if pattern found
4686  */
4687 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4688        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4690 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
4691 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4692   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4695  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4696  */
4697 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4698     "format",
4699     "",
4700     (char*)NULL };
4702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4704  *  Description of Lynxos_Missing_Putenv fix
4705  */
4706 tSCC zLynxos_Missing_PutenvName[] =
4707      "lynxos_missing_putenv";
4710  *  File name selection pattern
4711  */
4712 tSCC zLynxos_Missing_PutenvList[] =
4713   "stdlib.h\0";
4715  *  Machine/OS name selection pattern
4716  */
4717 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4718         "*-*-lynxos*",
4719         (const char*)NULL };
4722  *  content selection pattern - do fix if pattern found
4723  */
4724 tSCC zLynxos_Missing_PutenvSelect0[] =
4725        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4728  *  content bypass pattern - skip fix if pattern found
4729  */
4730 tSCC zLynxos_Missing_PutenvBypass0[] =
4731        "putenv[ \\t]*\\(";
4733 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
4734 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4735   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4736   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4739  *  Fix Command Arguments for Lynxos_Missing_Putenv
4740  */
4741 static const char* apzLynxos_Missing_PutenvPatch[] = {
4742     "format",
4743     "%0\n\
4744 extern int putenv\t\t\t\t_AP((char *));",
4745     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4746     (char*)NULL };
4748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4750  *  Description of Machine_Ansi_H_Va_List fix
4751  */
4752 tSCC zMachine_Ansi_H_Va_ListName[] =
4753      "machine_ansi_h_va_list";
4756  *  File name selection pattern
4757  */
4758 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4760  *  Machine/OS name selection pattern
4761  */
4762 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4765  *  content selection pattern - do fix if pattern found
4766  */
4767 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4768        "define[ \t]+_BSD_VA_LIST_[ \t]";
4771  *  content bypass pattern - skip fix if pattern found
4772  */
4773 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4774        "__builtin_va_list";
4776 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
4777 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4778   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4779   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4782  *  Fix Command Arguments for Machine_Ansi_H_Va_List
4783  */
4784 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4785     "format",
4786     "%1__builtin_va_list",
4787     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4788     (char*)NULL };
4790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4792  *  Description of Machine_Name fix
4793  */
4794 tSCC zMachine_NameName[] =
4795      "machine_name";
4798  *  File name selection pattern
4799  */
4800 #define zMachine_NameList (char*)NULL
4802  *  Machine/OS name selection pattern
4803  */
4804 #define apzMachine_NameMachs (const char**)NULL
4807  *  perform the C function call test
4808  */
4809 tSCC zMachine_NameFTst0[] = "machine_name";
4811 #define    MACHINE_NAME_TEST_CT  1
4812 static tTestDesc aMachine_NameTests[] = {
4813   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
4816  *  Fix Command Arguments for Machine_Name
4817  */
4818 static const char* apzMachine_NamePatch[] = {
4819     "machine_name",
4820     (char*)NULL };
4822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4824  *  Description of Math_Exception fix
4825  */
4826 tSCC zMath_ExceptionName[] =
4827      "math_exception";
4830  *  File name selection pattern
4831  */
4832 tSCC zMath_ExceptionList[] =
4833   "math.h\0";
4835  *  Machine/OS name selection pattern
4836  */
4837 #define apzMath_ExceptionMachs (const char**)NULL
4840  *  content selection pattern - do fix if pattern found
4841  */
4842 tSCC zMath_ExceptionSelect0[] =
4843        "struct exception";
4846  *  content bypass pattern - skip fix if pattern found
4847  */
4848 tSCC zMath_ExceptionBypass0[] =
4849        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4851 #define    MATH_EXCEPTION_TEST_CT  2
4852 static tTestDesc aMath_ExceptionTests[] = {
4853   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
4854   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
4857  *  Fix Command Arguments for Math_Exception
4858  */
4859 static const char* apzMath_ExceptionPatch[] = {
4860     "wrap",
4861     "#ifdef __cplusplus\n\
4862 #define exception __math_exception\n\
4863 #endif\n",
4864     "#ifdef __cplusplus\n\
4865 #undef exception\n\
4866 #endif\n",
4867     (char*)NULL };
4869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4871  *  Description of Math_Huge_Val_From_Dbl_Max fix
4872  */
4873 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4874      "math_huge_val_from_dbl_max";
4877  *  File name selection pattern
4878  */
4879 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4880   "math.h\0";
4882  *  Machine/OS name selection pattern
4883  */
4884 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4887  *  content selection pattern - do fix if pattern found
4888  */
4889 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4890        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4893  *  content bypass pattern - skip fix if pattern found
4894  */
4895 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4896        "define[ \t]+DBL_MAX";
4898 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
4899 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4900   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4901   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4904  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4905  */
4906 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4907     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4908 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4909 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4910 \telse cat\n\
4911 \tfi",
4912     (char*)NULL };
4914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4916  *  Description of Nested_Auth_Des fix
4917  */
4918 tSCC zNested_Auth_DesName[] =
4919      "nested_auth_des";
4922  *  File name selection pattern
4923  */
4924 tSCC zNested_Auth_DesList[] =
4925   "rpc/rpc.h\0";
4927  *  Machine/OS name selection pattern
4928  */
4929 #define apzNested_Auth_DesMachs (const char**)NULL
4932  *  content selection pattern - do fix if pattern found
4933  */
4934 tSCC zNested_Auth_DesSelect0[] =
4935        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4937 #define    NESTED_AUTH_DES_TEST_CT  1
4938 static tTestDesc aNested_Auth_DesTests[] = {
4939   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4942  *  Fix Command Arguments for Nested_Auth_Des
4943  */
4944 static const char* apzNested_Auth_DesPatch[] = {
4945     "format",
4946     "%1*/ /*",
4947     (char*)NULL };
4949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4951  *  Description of Netbsd_C99_Inline_1 fix
4952  */
4953 tSCC zNetbsd_C99_Inline_1Name[] =
4954      "netbsd_c99_inline_1";
4957  *  File name selection pattern
4958  */
4959 tSCC zNetbsd_C99_Inline_1List[] =
4960   "signal.h\0";
4962  *  Machine/OS name selection pattern
4963  */
4964 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4965         "*-*-netbsd*",
4966         (const char*)NULL };
4969  *  content selection pattern - do fix if pattern found
4970  */
4971 tSCC zNetbsd_C99_Inline_1Select0[] =
4972        "extern __inline int";
4974 #define    NETBSD_C99_INLINE_1_TEST_CT  1
4975 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4976   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4979  *  Fix Command Arguments for Netbsd_C99_Inline_1
4980  */
4981 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4982     "format",
4983     "extern\n\
4984 #ifdef __GNUC_STDC_INLINE__\n\
4985 __attribute__((__gnu_inline__))\n\
4986 #endif\n\
4987 __inline int",
4988     (char*)NULL };
4990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4992  *  Description of Netbsd_C99_Inline_2 fix
4993  */
4994 tSCC zNetbsd_C99_Inline_2Name[] =
4995      "netbsd_c99_inline_2";
4998  *  File name selection pattern
4999  */
5000 tSCC zNetbsd_C99_Inline_2List[] =
5001   "signal.h\0";
5003  *  Machine/OS name selection pattern
5004  */
5005 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5006         "*-*-netbsd*",
5007         (const char*)NULL };
5010  *  content selection pattern - do fix if pattern found
5011  */
5012 tSCC zNetbsd_C99_Inline_2Select0[] =
5013        "#define _SIGINLINE extern __inline";
5015 #define    NETBSD_C99_INLINE_2_TEST_CT  1
5016 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5017   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5020  *  Fix Command Arguments for Netbsd_C99_Inline_2
5021  */
5022 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5023     "format",
5024     "#ifdef __GNUC_STDC_INLINE__\n\
5025 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5026 #else\n\
5027 %0\n\
5028 #endif",
5029     (char*)NULL };
5031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5033  *  Description of Netbsd_Extra_Semicolon fix
5034  */
5035 tSCC zNetbsd_Extra_SemicolonName[] =
5036      "netbsd_extra_semicolon";
5039  *  File name selection pattern
5040  */
5041 tSCC zNetbsd_Extra_SemicolonList[] =
5042   "sys/cdefs.h\0";
5044  *  Machine/OS name selection pattern
5045  */
5046 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5047         "*-*-netbsd*",
5048         (const char*)NULL };
5051  *  content selection pattern - do fix if pattern found
5052  */
5053 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5054        "#define[ \t]*__END_DECLS[ \t]*};";
5056 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
5057 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5058   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5061  *  Fix Command Arguments for Netbsd_Extra_Semicolon
5062  */
5063 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5064     "format",
5065     "#define __END_DECLS }",
5066     (char*)NULL };
5068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5070  *  Description of Newlib_Stdint_1 fix
5071  */
5072 tSCC zNewlib_Stdint_1Name[] =
5073      "newlib_stdint_1";
5076  *  File name selection pattern
5077  */
5078 tSCC zNewlib_Stdint_1List[] =
5079   "stdint-newlib.h\0stdint.h\0";
5081  *  Machine/OS name selection pattern
5082  */
5083 #define apzNewlib_Stdint_1Machs (const char**)NULL
5086  *  content selection pattern - do fix if pattern found
5087  */
5088 tSCC zNewlib_Stdint_1Select0[] =
5089        "@todo - Add support for wint_t types";
5091 #define    NEWLIB_STDINT_1_TEST_CT  1
5092 static tTestDesc aNewlib_Stdint_1Tests[] = {
5093   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5096  *  Fix Command Arguments for Newlib_Stdint_1
5097  */
5098 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5099     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5100     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5101     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5102     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5103     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5104     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5105     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5106     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5107     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5108     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5109     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5110     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5111     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5112     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5113     (char*)NULL };
5115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5117  *  Description of Newlib_Stdint_2 fix
5118  */
5119 tSCC zNewlib_Stdint_2Name[] =
5120      "newlib_stdint_2";
5123  *  File name selection pattern
5124  */
5125 tSCC zNewlib_Stdint_2List[] =
5126   "stdint-newlib.h\0stdint.h\0";
5128  *  Machine/OS name selection pattern
5129  */
5130 #define apzNewlib_Stdint_2Machs (const char**)NULL
5133  *  content selection pattern - do fix if pattern found
5134  */
5135 tSCC zNewlib_Stdint_2Select0[] =
5136        "@todo - Add support for wint_t types";
5138 #define    NEWLIB_STDINT_2_TEST_CT  1
5139 static tTestDesc aNewlib_Stdint_2Tests[] = {
5140   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5143  *  Fix Command Arguments for Newlib_Stdint_2
5144  */
5145 static const char* apzNewlib_Stdint_2Patch[] = {
5146     "format",
5147     "#define INTMAX_MAX __INTMAX_MAX__\n\
5148 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5149 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5150 #define WCHAR_MAX __WCHAR_MAX__\n\
5151 #define WCHAR_MIN __WCHAR_MIN__\n\
5152 #define WINT_MAX __WINT_MAX__\n\
5153 #define WINT_MIN __WINT_MIN__\n\n\
5154 %0",
5155     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5156     (char*)NULL };
5158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5160  *  Description of Next_Math_Prefix fix
5161  */
5162 tSCC zNext_Math_PrefixName[] =
5163      "next_math_prefix";
5166  *  File name selection pattern
5167  */
5168 tSCC zNext_Math_PrefixList[] =
5169   "ansi/math.h\0";
5171  *  Machine/OS name selection pattern
5172  */
5173 #define apzNext_Math_PrefixMachs (const char**)NULL
5176  *  content selection pattern - do fix if pattern found
5177  */
5178 tSCC zNext_Math_PrefixSelect0[] =
5179        "^extern[ \t]+double[ \t]+__const__[ \t]";
5181 #define    NEXT_MATH_PREFIX_TEST_CT  1
5182 static tTestDesc aNext_Math_PrefixTests[] = {
5183   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5186  *  Fix Command Arguments for Next_Math_Prefix
5187  */
5188 static const char* apzNext_Math_PrefixPatch[] = {
5189     "format",
5190     "extern double %1(",
5191     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5192     (char*)NULL };
5194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5196  *  Description of Next_Template fix
5197  */
5198 tSCC zNext_TemplateName[] =
5199      "next_template";
5202  *  File name selection pattern
5203  */
5204 tSCC zNext_TemplateList[] =
5205   "bsd/libc.h\0";
5207  *  Machine/OS name selection pattern
5208  */
5209 #define apzNext_TemplateMachs (const char**)NULL
5212  *  content selection pattern - do fix if pattern found
5213  */
5214 tSCC zNext_TemplateSelect0[] =
5215        "[ \t]template\\)";
5217 #define    NEXT_TEMPLATE_TEST_CT  1
5218 static tTestDesc aNext_TemplateTests[] = {
5219   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
5222  *  Fix Command Arguments for Next_Template
5223  */
5224 static const char* apzNext_TemplatePatch[] = {
5225     "format",
5226     "(%1)",
5227     "\\(([^)]*)[ \t]template\\)",
5228     (char*)NULL };
5230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5232  *  Description of Next_Volitile fix
5233  */
5234 tSCC zNext_VolitileName[] =
5235      "next_volitile";
5238  *  File name selection pattern
5239  */
5240 tSCC zNext_VolitileList[] =
5241   "ansi/stdlib.h\0";
5243  *  Machine/OS name selection pattern
5244  */
5245 #define apzNext_VolitileMachs (const char**)NULL
5248  *  content selection pattern - do fix if pattern found
5249  */
5250 tSCC zNext_VolitileSelect0[] =
5251        "^extern[ \t]+volatile[ \t]+void[ \t]";
5253 #define    NEXT_VOLITILE_TEST_CT  1
5254 static tTestDesc aNext_VolitileTests[] = {
5255   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5258  *  Fix Command Arguments for Next_Volitile
5259  */
5260 static const char* apzNext_VolitilePatch[] = {
5261     "format",
5262     "extern void %1(",
5263     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5264     (char*)NULL };
5266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5268  *  Description of Next_Wait_Union fix
5269  */
5270 tSCC zNext_Wait_UnionName[] =
5271      "next_wait_union";
5274  *  File name selection pattern
5275  */
5276 tSCC zNext_Wait_UnionList[] =
5277   "sys/wait.h\0";
5279  *  Machine/OS name selection pattern
5280  */
5281 #define apzNext_Wait_UnionMachs (const char**)NULL
5284  *  content selection pattern - do fix if pattern found
5285  */
5286 tSCC zNext_Wait_UnionSelect0[] =
5287        "wait\\(union wait";
5289 #define    NEXT_WAIT_UNION_TEST_CT  1
5290 static tTestDesc aNext_Wait_UnionTests[] = {
5291   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5294  *  Fix Command Arguments for Next_Wait_Union
5295  */
5296 static const char* apzNext_Wait_UnionPatch[] = {
5297     "format",
5298     "wait(void",
5299     (char*)NULL };
5301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5303  *  Description of Nodeent_Syntax fix
5304  */
5305 tSCC zNodeent_SyntaxName[] =
5306      "nodeent_syntax";
5309  *  File name selection pattern
5310  */
5311 tSCC zNodeent_SyntaxList[] =
5312   "netdnet/dnetdb.h\0";
5314  *  Machine/OS name selection pattern
5315  */
5316 #define apzNodeent_SyntaxMachs (const char**)NULL
5319  *  content selection pattern - do fix if pattern found
5320  */
5321 tSCC zNodeent_SyntaxSelect0[] =
5322        "char[ \t]*\\*na_addr[ \t]*$";
5324 #define    NODEENT_SYNTAX_TEST_CT  1
5325 static tTestDesc aNodeent_SyntaxTests[] = {
5326   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5329  *  Fix Command Arguments for Nodeent_Syntax
5330  */
5331 static const char* apzNodeent_SyntaxPatch[] = {
5332     "format",
5333     "%0;",
5334     (char*)NULL };
5336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5338  *  Description of Openbsd_Null_Definition fix
5339  */
5340 tSCC zOpenbsd_Null_DefinitionName[] =
5341      "openbsd_null_definition";
5344  *  File name selection pattern
5345  */
5346 tSCC zOpenbsd_Null_DefinitionList[] =
5347   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5349  *  Machine/OS name selection pattern
5350  */
5351 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5352         "*-*-openbsd*",
5353         (const char*)NULL };
5356  *  content selection pattern - do fix if pattern found
5357  */
5358 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5359        "__GNUG__";
5361 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
5362 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5363   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5366  *  Fix Command Arguments for Openbsd_Null_Definition
5367  */
5368 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5369     "format",
5370     "#ifndef NULL\n\
5371 #ifdef __cplusplus\n\
5372 #ifdef __GNUG__\n\
5373 #define NULL\t__null\n\
5374 #else\t /* ! __GNUG__  */\n\
5375 #define NULL\t0L\n\
5376 #endif\t /* __GNUG__  */\n\
5377 #else\t /* ! __cplusplus  */\n\
5378 #define NULL\t((void *)0)\n\
5379 #endif\t /* __cplusplus  */\n\
5380 #endif\t /* !NULL  */",
5381     "^#ifndef[ \t]*NULL\n\
5382 ^#ifdef[ \t]*__GNUG__\n\
5383 ^#define[ \t]*NULL[ \t]*__null\n\
5384 ^#else\n\
5385 ^#define[ \t]*NULL[ \t]*0L\n\
5386 ^#endif\n\
5387 ^#endif",
5388     (char*)NULL };
5390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5392  *  Description of Obstack_Lvalue_Cast fix
5393  */
5394 tSCC zObstack_Lvalue_CastName[] =
5395      "obstack_lvalue_cast";
5398  *  File name selection pattern
5399  */
5400 tSCC zObstack_Lvalue_CastList[] =
5401   "obstack.h\0";
5403  *  Machine/OS name selection pattern
5404  */
5405 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5408  *  content selection pattern - do fix if pattern found
5409  */
5410 tSCC zObstack_Lvalue_CastSelect0[] =
5411        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5413 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5414 static tTestDesc aObstack_Lvalue_CastTests[] = {
5415   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5418  *  Fix Command Arguments for Obstack_Lvalue_Cast
5419  */
5420 static const char* apzObstack_Lvalue_CastPatch[] = {
5421     "format",
5422     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5423     (char*)NULL };
5425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5427  *  Description of Openbsd_Va_Start fix
5428  */
5429 tSCC zOpenbsd_Va_StartName[] =
5430      "openbsd_va_start";
5433  *  File name selection pattern
5434  */
5435 tSCC zOpenbsd_Va_StartList[] =
5436   "stdarg.h\0";
5438  *  Machine/OS name selection pattern
5439  */
5440 tSCC* apzOpenbsd_Va_StartMachs[] = {
5441         "*-*-openbsd*",
5442         (const char*)NULL };
5445  *  content selection pattern - do fix if pattern found
5446  */
5447 tSCC zOpenbsd_Va_StartSelect0[] =
5448        "__builtin_stdarg_start";
5450 #define    OPENBSD_VA_START_TEST_CT  1
5451 static tTestDesc aOpenbsd_Va_StartTests[] = {
5452   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5455  *  Fix Command Arguments for Openbsd_Va_Start
5456  */
5457 static const char* apzOpenbsd_Va_StartPatch[] = {
5458     "format",
5459     "__builtin_va_start",
5460     (char*)NULL };
5462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5464  *  Description of Osf_Namespace_A fix
5465  */
5466 tSCC zOsf_Namespace_AName[] =
5467      "osf_namespace_a";
5470  *  File name selection pattern
5471  */
5472 tSCC zOsf_Namespace_AList[] =
5473   "reg_types.h\0sys/lc_core.h\0";
5475  *  Machine/OS name selection pattern
5476  */
5477 #define apzOsf_Namespace_AMachs (const char**)NULL
5480  *  perform the 'test' shell command - do fix on success
5481  */
5482 tSCC zOsf_Namespace_ATest0[] =
5483        " -r reg_types.h";
5484 tSCC zOsf_Namespace_ATest1[] =
5485        " -r sys/lc_core.h";
5486 tSCC zOsf_Namespace_ATest2[] =
5487        " -n \"`grep '} regex_t;' reg_types.h`\"";
5488 tSCC zOsf_Namespace_ATest3[] =
5489        " -z \"`grep __regex_t regex.h`\"";
5491 #define    OSF_NAMESPACE_A_TEST_CT  4
5492 static tTestDesc aOsf_Namespace_ATests[] = {
5493   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5494   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5495   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5496   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5499  *  Fix Command Arguments for Osf_Namespace_A
5500  */
5501 static const char* apzOsf_Namespace_APatch[] = {
5502     "format",
5503     "__%0",
5504     "reg(ex|off|match)_t",
5505     (char*)NULL };
5507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5509  *  Description of Osf_Namespace_C fix
5510  */
5511 tSCC zOsf_Namespace_CName[] =
5512      "osf_namespace_c";
5515  *  File name selection pattern
5516  */
5517 tSCC zOsf_Namespace_CList[] =
5518   "regex.h\0";
5520  *  Machine/OS name selection pattern
5521  */
5522 #define apzOsf_Namespace_CMachs (const char**)NULL
5525  *  content selection pattern - do fix if pattern found
5526  */
5527 tSCC zOsf_Namespace_CSelect0[] =
5528        "#include <reg_types.h>.*";
5531  *  perform the 'test' shell command - do fix on success
5532  */
5533 tSCC zOsf_Namespace_CTest0[] =
5534        " -r reg_types.h";
5535 tSCC zOsf_Namespace_CTest1[] =
5536        " -r sys/lc_core.h";
5537 tSCC zOsf_Namespace_CTest2[] =
5538        " -n \"`grep '} regex_t;' reg_types.h`\"";
5539 tSCC zOsf_Namespace_CTest3[] =
5540        " -z \"`grep __regex_t regex.h`\"";
5542 #define    OSF_NAMESPACE_C_TEST_CT  5
5543 static tTestDesc aOsf_Namespace_CTests[] = {
5544   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
5545   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
5546   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
5547   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
5548   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5551  *  Fix Command Arguments for Osf_Namespace_C
5552  */
5553 static const char* apzOsf_Namespace_CPatch[] = {
5554     "format",
5555     "%0\n\
5556 typedef __regex_t\tregex_t;\n\
5557 typedef __regoff_t\tregoff_t;\n\
5558 typedef __regmatch_t\tregmatch_t;",
5559     (char*)NULL };
5561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5563  *  Description of Pthread_Incomplete_Struct_Argument fix
5564  */
5565 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5566      "pthread_incomplete_struct_argument";
5569  *  File name selection pattern
5570  */
5571 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5572   "pthread.h\0";
5574  *  Machine/OS name selection pattern
5575  */
5576 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5579  *  content selection pattern - do fix if pattern found
5580  */
5581 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5582        "struct __jmp_buf_tag";
5584 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
5585 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5586   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5589  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5590  */
5591 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5592     "format",
5593     "%1 *%2%3",
5594     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5595     (char*)NULL };
5597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5599  *  Description of Read_Ret_Type fix
5600  */
5601 tSCC zRead_Ret_TypeName[] =
5602      "read_ret_type";
5605  *  File name selection pattern
5606  */
5607 tSCC zRead_Ret_TypeList[] =
5608   "stdio.h\0";
5610  *  Machine/OS name selection pattern
5611  */
5612 #define apzRead_Ret_TypeMachs (const char**)NULL
5615  *  content selection pattern - do fix if pattern found
5616  */
5617 tSCC zRead_Ret_TypeSelect0[] =
5618        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5620 #define    READ_RET_TYPE_TEST_CT  1
5621 static tTestDesc aRead_Ret_TypeTests[] = {
5622   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5625  *  Fix Command Arguments for Read_Ret_Type
5626  */
5627 static const char* apzRead_Ret_TypePatch[] = {
5628     "format",
5629     "extern unsigned int fread(), fwrite();\n\
5630 %1%2",
5631     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5632     (char*)NULL };
5634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5636  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
5637  */
5638 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5639      "rpc_xdr_lvalue_cast_a";
5642  *  File name selection pattern
5643  */
5644 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5645   "rpc/xdr.h\0";
5647  *  Machine/OS name selection pattern
5648  */
5649 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5652  *  content selection pattern - do fix if pattern found
5653  */
5654 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5655        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5656 .*__extension__.*";
5658 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5659 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5660   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5663  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5664  */
5665 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5666     "format",
5667     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5668     (char*)NULL };
5670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5672  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5673  */
5674 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5675      "rpc_xdr_lvalue_cast_b";
5678  *  File name selection pattern
5679  */
5680 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5681   "rpc/xdr.h\0";
5683  *  Machine/OS name selection pattern
5684  */
5685 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5688  *  content selection pattern - do fix if pattern found
5689  */
5690 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5691        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5692 .*__extension__.*";
5694 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
5695 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5696   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5699  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5700  */
5701 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5702     "format",
5703     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5704     (char*)NULL };
5706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5708  *  Description of Rs6000_Double fix
5709  */
5710 tSCC zRs6000_DoubleName[] =
5711      "rs6000_double";
5714  *  File name selection pattern
5715  */
5716 tSCC zRs6000_DoubleList[] =
5717   "math.h\0";
5719  *  Machine/OS name selection pattern
5720  */
5721 #define apzRs6000_DoubleMachs (const char**)NULL
5724  *  content selection pattern - do fix if pattern found
5725  */
5726 tSCC zRs6000_DoubleSelect0[] =
5727        "[^a-zA-Z_]class\\(";
5729 #define    RS6000_DOUBLE_TEST_CT  1
5730 static tTestDesc aRs6000_DoubleTests[] = {
5731   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5734  *  Fix Command Arguments for Rs6000_Double
5735  */
5736 static const char* apzRs6000_DoublePatch[] = {
5737     "format",
5738     "#ifndef __cplusplus\n\
5739 %0\n\
5740 #endif",
5741     "^.*[^a-zA-Z_]class\\(.*",
5742     (char*)NULL };
5744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5746  *  Description of Rs6000_Fchmod fix
5747  */
5748 tSCC zRs6000_FchmodName[] =
5749      "rs6000_fchmod";
5752  *  File name selection pattern
5753  */
5754 tSCC zRs6000_FchmodList[] =
5755   "sys/stat.h\0";
5757  *  Machine/OS name selection pattern
5758  */
5759 #define apzRs6000_FchmodMachs (const char**)NULL
5762  *  content selection pattern - do fix if pattern found
5763  */
5764 tSCC zRs6000_FchmodSelect0[] =
5765        "fchmod\\(char \\*";
5767 #define    RS6000_FCHMOD_TEST_CT  1
5768 static tTestDesc aRs6000_FchmodTests[] = {
5769   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5772  *  Fix Command Arguments for Rs6000_Fchmod
5773  */
5774 static const char* apzRs6000_FchmodPatch[] = {
5775     "format",
5776     "fchmod(int",
5777     (char*)NULL };
5779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5781  *  Description of Rs6000_Param fix
5782  */
5783 tSCC zRs6000_ParamName[] =
5784      "rs6000_param";
5787  *  File name selection pattern
5788  */
5789 tSCC zRs6000_ParamList[] =
5790   "stdio.h\0unistd.h\0";
5792  *  Machine/OS name selection pattern
5793  */
5794 #define apzRs6000_ParamMachs (const char**)NULL
5797  *  content selection pattern - do fix if pattern found
5798  */
5799 tSCC zRs6000_ParamSelect0[] =
5800        "rename\\(const char \\*old, const char \\*new\\)";
5802 #define    RS6000_PARAM_TEST_CT  1
5803 static tTestDesc aRs6000_ParamTests[] = {
5804   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
5807  *  Fix Command Arguments for Rs6000_Param
5808  */
5809 static const char* apzRs6000_ParamPatch[] = {
5810     "format",
5811     "rename(const char *_old, const char *_new)",
5812     (char*)NULL };
5814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5816  *  Description of Solaris___Restrict fix
5817  */
5818 tSCC zSolaris___RestrictName[] =
5819      "solaris___restrict";
5822  *  File name selection pattern
5823  */
5824 tSCC zSolaris___RestrictList[] =
5825   "sys/feature_tests.h\0";
5827  *  Machine/OS name selection pattern
5828  */
5829 tSCC* apzSolaris___RestrictMachs[] = {
5830         "*-*-solaris2*",
5831         (const char*)NULL };
5834  *  content selection pattern - do fix if pattern found
5835  */
5836 tSCC zSolaris___RestrictSelect0[] =
5837        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
5839 #define    SOLARIS___RESTRICT_TEST_CT  1
5840 static tTestDesc aSolaris___RestrictTests[] = {
5841   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
5844  *  Fix Command Arguments for Solaris___Restrict
5845  */
5846 static const char* apzSolaris___RestrictPatch[] = {
5847     "format",
5848     "#ifdef __cplusplus\n\
5849 #define\t_RESTRICT_KYWD\t__restrict\n\
5850 #else\n\
5851 %0\n\
5852 #endif",
5853     (char*)NULL };
5855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5857  *  Description of Solaris_Complex fix
5858  */
5859 tSCC zSolaris_ComplexName[] =
5860      "solaris_complex";
5863  *  File name selection pattern
5864  */
5865 tSCC zSolaris_ComplexList[] =
5866   "complex.h\0";
5868  *  Machine/OS name selection pattern
5869  */
5870 tSCC* apzSolaris_ComplexMachs[] = {
5871         "*-*-solaris2.*",
5872         (const char*)NULL };
5875  *  content selection pattern - do fix if pattern found
5876  */
5877 tSCC zSolaris_ComplexSelect0[] =
5878        "#define[ \t]_Complex_I[ \t]_Complex_I";
5880 #define    SOLARIS_COMPLEX_TEST_CT  1
5881 static tTestDesc aSolaris_ComplexTests[] = {
5882   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
5885  *  Fix Command Arguments for Solaris_Complex
5886  */
5887 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
5888     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
5889     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
5890     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
5891     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
5892     (char*)NULL };
5894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5896  *  Description of Solaris_Complex_Cxx fix
5897  */
5898 tSCC zSolaris_Complex_CxxName[] =
5899      "solaris_complex_cxx";
5902  *  File name selection pattern
5903  */
5904 tSCC zSolaris_Complex_CxxList[] =
5905   "complex.h\0";
5907  *  Machine/OS name selection pattern
5908  */
5909 tSCC* apzSolaris_Complex_CxxMachs[] = {
5910         "*-*-solaris2.*",
5911         (const char*)NULL };
5912 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
5913 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
5916  *  Fix Command Arguments for Solaris_Complex_Cxx
5917  */
5918 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
5919     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
5920 #ifdef\t__cplusplus\\\n\
5921 extern \"C\" {\\\n\
5922 #endif",
5923     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
5924 #ifdef\t__cplusplus\\\n\
5925 }\\\n\
5926 #endif",
5927     (char*)NULL };
5929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5931  *  Description of Solaris_Cxx_Linkage fix
5932  */
5933 tSCC zSolaris_Cxx_LinkageName[] =
5934      "solaris_cxx_linkage";
5937  *  File name selection pattern
5938  */
5939 tSCC zSolaris_Cxx_LinkageList[] =
5940   "iso/stdlib_iso.h\0";
5942  *  Machine/OS name selection pattern
5943  */
5944 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
5945         "*-*-solaris2*",
5946         (const char*)NULL };
5949  *  content selection pattern - do fix if pattern found
5950  */
5951 tSCC zSolaris_Cxx_LinkageSelect0[] =
5952        "(#if __cplusplus >= 199711L)\n\
5953 (extern \"C\\+\\+\" \\{\n\
5954 )(.*(bsearch|qsort).*)";
5956 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
5957 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
5958   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
5961  *  Fix Command Arguments for Solaris_Cxx_Linkage
5962  */
5963 static const char* apzSolaris_Cxx_LinkagePatch[] = {
5964     "format",
5965     "%1 && !__GNUG__\n\
5966 %2%3",
5967     (char*)NULL };
5969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5971  *  Description of Solaris_Getc_Strict_Stdc fix
5972  */
5973 tSCC zSolaris_Getc_Strict_StdcName[] =
5974      "solaris_getc_strict_stdc";
5977  *  File name selection pattern
5978  */
5979 tSCC zSolaris_Getc_Strict_StdcList[] =
5980   "iso/stdio_iso.h\0";
5982  *  Machine/OS name selection pattern
5983  */
5984 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
5985         "*-*-solaris2*",
5986         (const char*)NULL };
5989  *  content selection pattern - do fix if pattern found
5990  */
5991 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
5992        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
5994 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
5995 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
5996   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
5999  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
6000  */
6001 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6002     "format",
6003     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6004     (char*)NULL };
6006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6008  *  Description of Solaris_Longjmp_Noreturn fix
6009  */
6010 tSCC zSolaris_Longjmp_NoreturnName[] =
6011      "solaris_longjmp_noreturn";
6014  *  File name selection pattern
6015  */
6016 tSCC zSolaris_Longjmp_NoreturnList[] =
6017   "iso/setjmp_iso.h\0";
6019  *  Machine/OS name selection pattern
6020  */
6021 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6022         "*-*-solaris2*",
6023         (const char*)NULL };
6026  *  content selection pattern - do fix if pattern found
6027  */
6028 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6029        "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6032  *  content bypass pattern - skip fix if pattern found
6033  */
6034 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6035        "__NORETURN";
6037 #define    SOLARIS_LONGJMP_NORETURN_TEST_CT  2
6038 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6039   { TT_NEGREP,   zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6040   { TT_EGREP,    zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6043  *  Fix Command Arguments for Solaris_Longjmp_Noreturn
6044  */
6045 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6046     "format",
6047     "%1 __attribute__ ((__noreturn__));",
6048     (char*)NULL };
6050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6052  *  Description of Solaris_Math_1 fix
6053  */
6054 tSCC zSolaris_Math_1Name[] =
6055      "solaris_math_1";
6058  *  File name selection pattern
6059  */
6060 tSCC zSolaris_Math_1List[] =
6061   "iso/math_c99.h\0";
6063  *  Machine/OS name selection pattern
6064  */
6065 #define apzSolaris_Math_1Machs (const char**)NULL
6068  *  content selection pattern - do fix if pattern found
6069  */
6070 tSCC zSolaris_Math_1Select0[] =
6071        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6074  *  content bypass pattern - skip fix if pattern found
6075  */
6076 tSCC zSolaris_Math_1Bypass0[] =
6077        "__GNUC__";
6079 #define    SOLARIS_MATH_1_TEST_CT  2
6080 static tTestDesc aSolaris_Math_1Tests[] = {
6081   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
6082   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
6085  *  Fix Command Arguments for Solaris_Math_1
6086  */
6087 static const char* apzSolaris_Math_1Patch[] = {
6088     "format",
6089     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6090     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6091     (char*)NULL };
6093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6095  *  Description of Solaris_Math_2 fix
6096  */
6097 tSCC zSolaris_Math_2Name[] =
6098      "solaris_math_2";
6101  *  File name selection pattern
6102  */
6103 tSCC zSolaris_Math_2List[] =
6104   "iso/math_c99.h\0";
6106  *  Machine/OS name selection pattern
6107  */
6108 #define apzSolaris_Math_2Machs (const char**)NULL
6111  *  content selection pattern - do fix if pattern found
6112  */
6113 tSCC zSolaris_Math_2Select0[] =
6114        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6117  *  content bypass pattern - skip fix if pattern found
6118  */
6119 tSCC zSolaris_Math_2Bypass0[] =
6120        "__GNUC__";
6122 #define    SOLARIS_MATH_2_TEST_CT  2
6123 static tTestDesc aSolaris_Math_2Tests[] = {
6124   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
6125   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
6128  *  Fix Command Arguments for Solaris_Math_2
6129  */
6130 static const char* apzSolaris_Math_2Patch[] = {
6131     "format",
6132     "#define\tINFINITY\t(__builtin_inff())",
6133     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6134     (char*)NULL };
6136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6138  *  Description of Solaris_Math_3 fix
6139  */
6140 tSCC zSolaris_Math_3Name[] =
6141      "solaris_math_3";
6144  *  File name selection pattern
6145  */
6146 tSCC zSolaris_Math_3List[] =
6147   "iso/math_c99.h\0";
6149  *  Machine/OS name selection pattern
6150  */
6151 #define apzSolaris_Math_3Machs (const char**)NULL
6154  *  content selection pattern - do fix if pattern found
6155  */
6156 tSCC zSolaris_Math_3Select0[] =
6157        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6160  *  content bypass pattern - skip fix if pattern found
6161  */
6162 tSCC zSolaris_Math_3Bypass0[] =
6163        "__GNUC__";
6165 #define    SOLARIS_MATH_3_TEST_CT  2
6166 static tTestDesc aSolaris_Math_3Tests[] = {
6167   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
6168   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
6171  *  Fix Command Arguments for Solaris_Math_3
6172  */
6173 static const char* apzSolaris_Math_3Patch[] = {
6174     "format",
6175     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6176     "^#define[ \t]+NAN[ \t]+__builtin_nan",
6177     (char*)NULL };
6179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6181  *  Description of Solaris_Math_4 fix
6182  */
6183 tSCC zSolaris_Math_4Name[] =
6184      "solaris_math_4";
6187  *  File name selection pattern
6188  */
6189 tSCC zSolaris_Math_4List[] =
6190   "iso/math_c99.h\0";
6192  *  Machine/OS name selection pattern
6193  */
6194 #define apzSolaris_Math_4Machs (const char**)NULL
6197  *  content selection pattern - do fix if pattern found
6198  */
6199 tSCC zSolaris_Math_4Select0[] =
6200        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6203  *  content bypass pattern - skip fix if pattern found
6204  */
6205 tSCC zSolaris_Math_4Bypass0[] =
6206        "__GNUC__";
6208 #define    SOLARIS_MATH_4_TEST_CT  2
6209 static tTestDesc aSolaris_Math_4Tests[] = {
6210   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
6211   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
6214  *  Fix Command Arguments for Solaris_Math_4
6215  */
6216 static const char* apzSolaris_Math_4Patch[] = {
6217     "format",
6218     "#define\tfpclassify(x) \\\n\
6219   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6220     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6221     (char*)NULL };
6223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6225  *  Description of Solaris_Math_8 fix
6226  */
6227 tSCC zSolaris_Math_8Name[] =
6228      "solaris_math_8";
6231  *  File name selection pattern
6232  */
6233 tSCC zSolaris_Math_8List[] =
6234   "iso/math_c99.h\0";
6236  *  Machine/OS name selection pattern
6237  */
6238 #define apzSolaris_Math_8Machs (const char**)NULL
6241  *  content selection pattern - do fix if pattern found
6242  */
6243 tSCC zSolaris_Math_8Select0[] =
6244        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6247  *  content bypass pattern - skip fix if pattern found
6248  */
6249 tSCC zSolaris_Math_8Bypass0[] =
6250        "__GNUC__";
6252 #define    SOLARIS_MATH_8_TEST_CT  2
6253 static tTestDesc aSolaris_Math_8Tests[] = {
6254   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
6255   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
6258  *  Fix Command Arguments for Solaris_Math_8
6259  */
6260 static const char* apzSolaris_Math_8Patch[] = {
6261     "format",
6262     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6263 \t\t\t   ? __builtin_signbitf(x) \\\n\
6264 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6265 \t\t\t     ? __builtin_signbitl(x) \\\n\
6266 \t\t\t     : __builtin_signbit(x))",
6267     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6268     (char*)NULL };
6270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6272  *  Description of Solaris_Math_9 fix
6273  */
6274 tSCC zSolaris_Math_9Name[] =
6275      "solaris_math_9";
6278  *  File name selection pattern
6279  */
6280 tSCC zSolaris_Math_9List[] =
6281   "iso/math_c99.h\0";
6283  *  Machine/OS name selection pattern
6284  */
6285 #define apzSolaris_Math_9Machs (const char**)NULL
6288  *  content selection pattern - do fix if pattern found
6289  */
6290 tSCC zSolaris_Math_9Select0[] =
6291        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6294  *  content bypass pattern - skip fix if pattern found
6295  */
6296 tSCC zSolaris_Math_9Bypass0[] =
6297        "__GNUC__";
6299 #define    SOLARIS_MATH_9_TEST_CT  2
6300 static tTestDesc aSolaris_Math_9Tests[] = {
6301   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
6302   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
6305  *  Fix Command Arguments for Solaris_Math_9
6306  */
6307 static const char* apzSolaris_Math_9Patch[] = {
6308     "format",
6309     "#define\t%1(x, y)%2__builtin_%1(x, y)",
6310     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6311     (char*)NULL };
6313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6315  *  Description of Solaris_Math_10 fix
6316  */
6317 tSCC zSolaris_Math_10Name[] =
6318      "solaris_math_10";
6321  *  File name selection pattern
6322  */
6323 tSCC zSolaris_Math_10List[] =
6324   "iso/math_c99.h\0";
6326  *  Machine/OS name selection pattern
6327  */
6328 #define apzSolaris_Math_10Machs (const char**)NULL
6331  *  content selection pattern - do fix if pattern found
6332  */
6333 tSCC zSolaris_Math_10Select0[] =
6334        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6336 #define    SOLARIS_MATH_10_TEST_CT  1
6337 static tTestDesc aSolaris_Math_10Tests[] = {
6338   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
6341  *  Fix Command Arguments for Solaris_Math_10
6342  */
6343 static const char* apzSolaris_Math_10Patch[] = {
6344     "format",
6345     "#define\tisinf(x) __builtin_isinf(x)",
6346     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6347 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6348 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6349 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6350     (char*)NULL };
6352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6354  *  Description of Solaris_Mutex_Init_2 fix
6355  */
6356 tSCC zSolaris_Mutex_Init_2Name[] =
6357      "solaris_mutex_init_2";
6360  *  File name selection pattern
6361  */
6362 tSCC zSolaris_Mutex_Init_2List[] =
6363   "pthread.h\0";
6365  *  Machine/OS name selection pattern
6366  */
6367 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6368         "*-*-solaris2.[0-9]",
6369         "*-*-solaris2.[0-9][!0-9]*",
6370         (const char*)NULL };
6373  *  content selection pattern - do fix if pattern found
6374  */
6375 tSCC zSolaris_Mutex_Init_2Select0[] =
6376        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6378 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
6379 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6380   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6383  *  Fix Command Arguments for Solaris_Mutex_Init_2
6384  */
6385 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6386     "format",
6387     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6388 %0\n\
6389 #else\n\
6390 %1, {0}}%4\n\
6391 #endif",
6392     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6393 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6394     (char*)NULL };
6396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6398  *  Description of Solaris_Pow_Int_Overload fix
6399  */
6400 tSCC zSolaris_Pow_Int_OverloadName[] =
6401      "solaris_pow_int_overload";
6404  *  File name selection pattern
6405  */
6406 tSCC zSolaris_Pow_Int_OverloadList[] =
6407   "iso/math_iso.h\0";
6409  *  Machine/OS name selection pattern
6410  */
6411 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6412         "*-*-solaris2*",
6413         (const char*)NULL };
6416  *  content selection pattern - do fix if pattern found
6417  */
6418 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6419        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6420 [^{}]*\\}";
6422 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
6423 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6424   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6427  *  Fix Command Arguments for Solaris_Pow_Int_Overload
6428  */
6429 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6430     "format",
6431     "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6432 %0\n\
6433 #endif",
6434     (char*)NULL };
6436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6438  *  Description of Solaris_Rwlock_Init_1 fix
6439  */
6440 tSCC zSolaris_Rwlock_Init_1Name[] =
6441      "solaris_rwlock_init_1";
6444  *  File name selection pattern
6445  */
6446 tSCC zSolaris_Rwlock_Init_1List[] =
6447   "pthread.h\0";
6449  *  Machine/OS name selection pattern
6450  */
6451 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6452         "*-*-solaris*",
6453         (const char*)NULL };
6456  *  content selection pattern - do fix if pattern found
6457  */
6458 tSCC zSolaris_Rwlock_Init_1Select0[] =
6459        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6461 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
6462 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6463   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6466  *  Fix Command Arguments for Solaris_Rwlock_Init_1
6467  */
6468 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6469     "format",
6470     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6471 %0\n\
6472 #else\n\
6473 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6474 #endif",
6475     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6476     (char*)NULL };
6478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6480  *  Description of Solaris_Once_Init_1 fix
6481  */
6482 tSCC zSolaris_Once_Init_1Name[] =
6483      "solaris_once_init_1";
6486  *  File name selection pattern
6487  */
6488 tSCC zSolaris_Once_Init_1List[] =
6489   "pthread.h\0";
6491  *  Machine/OS name selection pattern
6492  */
6493 tSCC* apzSolaris_Once_Init_1Machs[] = {
6494         "*-*-solaris*",
6495         (const char*)NULL };
6498  *  content selection pattern - do fix if pattern found
6499  */
6500 tSCC zSolaris_Once_Init_1Select0[] =
6501        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6503 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6504 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6505   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6508  *  Fix Command Arguments for Solaris_Once_Init_1
6509  */
6510 static const char* apzSolaris_Once_Init_1Patch[] = {
6511     "format",
6512     "%1{%2}%3",
6513     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6514     (char*)NULL };
6516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6518  *  Description of Solaris_Once_Init_2 fix
6519  */
6520 tSCC zSolaris_Once_Init_2Name[] =
6521      "solaris_once_init_2";
6524  *  File name selection pattern
6525  */
6526 tSCC zSolaris_Once_Init_2List[] =
6527   "pthread.h\0";
6529  *  Machine/OS name selection pattern
6530  */
6531 tSCC* apzSolaris_Once_Init_2Machs[] = {
6532         "*-*-solaris2.[0-9]",
6533         "*-*-solaris2.[0-9][!0-9]*",
6534         (const char*)NULL };
6537  *  content selection pattern - do fix if pattern found
6538  */
6539 tSCC zSolaris_Once_Init_2Select0[] =
6540        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6542 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
6543 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6544   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6547  *  Fix Command Arguments for Solaris_Once_Init_2
6548  */
6549 static const char* apzSolaris_Once_Init_2Patch[] = {
6550     "format",
6551     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6552 %0\n\
6553 #else\n\
6554 %1{0}, {0}, {0}, {%3}%4\n\
6555 #endif",
6556     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6557     (char*)NULL };
6559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6561  *  Description of Solaris_Int_Const fix
6562  */
6563 tSCC zSolaris_Int_ConstName[] =
6564      "solaris_int_const";
6567  *  File name selection pattern
6568  */
6569 tSCC zSolaris_Int_ConstList[] =
6570   "sys/int_const.h\0";
6572  *  Machine/OS name selection pattern
6573  */
6574 tSCC* apzSolaris_Int_ConstMachs[] = {
6575         "*-*-solaris2*",
6576         (const char*)NULL };
6579  *  content selection pattern - do fix if pattern found
6580  */
6581 tSCC zSolaris_Int_ConstSelect0[] =
6582        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6583 (/*.**/)\n\
6584 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6586 #define    SOLARIS_INT_CONST_TEST_CT  1
6587 static tTestDesc aSolaris_Int_ConstTests[] = {
6588   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6591  *  Fix Command Arguments for Solaris_Int_Const
6592  */
6593 static const char* apzSolaris_Int_ConstPatch[] = {
6594     "format",
6595     "#define\tUINT8_C(c)\t(c)\n\
6596 %1\n\
6597 #define\tUINT16_C(c)\t(c)",
6598     (char*)NULL };
6600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6602  *  Description of Solaris_Int_Limits_1 fix
6603  */
6604 tSCC zSolaris_Int_Limits_1Name[] =
6605      "solaris_int_limits_1";
6608  *  File name selection pattern
6609  */
6610 tSCC zSolaris_Int_Limits_1List[] =
6611   "sys/int_limits.h\0";
6613  *  Machine/OS name selection pattern
6614  */
6615 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6616         "*-*-solaris2*",
6617         (const char*)NULL };
6620  *  content selection pattern - do fix if pattern found
6621  */
6622 tSCC zSolaris_Int_Limits_1Select0[] =
6623        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6624 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6626 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
6627 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6628   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6631  *  Fix Command Arguments for Solaris_Int_Limits_1
6632  */
6633 static const char* apzSolaris_Int_Limits_1Patch[] = {
6634     "format",
6635     "#define\tUINT8_MAX\t(255)\n\
6636 #define\tUINT16_MAX\t(65535)",
6637     (char*)NULL };
6639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6641  *  Description of Solaris_Int_Limits_2 fix
6642  */
6643 tSCC zSolaris_Int_Limits_2Name[] =
6644      "solaris_int_limits_2";
6647  *  File name selection pattern
6648  */
6649 tSCC zSolaris_Int_Limits_2List[] =
6650   "sys/int_limits.h\0";
6652  *  Machine/OS name selection pattern
6653  */
6654 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6655         "*-*-solaris2*",
6656         (const char*)NULL };
6659  *  content selection pattern - do fix if pattern found
6660  */
6661 tSCC zSolaris_Int_Limits_2Select0[] =
6662        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6664 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
6665 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6666   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6669  *  Fix Command Arguments for Solaris_Int_Limits_2
6670  */
6671 static const char* apzSolaris_Int_Limits_2Patch[] = {
6672     "format",
6673     "#define\t%1_FAST16_%2 %132_%2",
6674     (char*)NULL };
6676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6678  *  Description of Solaris_Int_Limits_3 fix
6679  */
6680 tSCC zSolaris_Int_Limits_3Name[] =
6681      "solaris_int_limits_3";
6684  *  File name selection pattern
6685  */
6686 tSCC zSolaris_Int_Limits_3List[] =
6687   "sys/int_limits.h\0";
6689  *  Machine/OS name selection pattern
6690  */
6691 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6692         "*-*-solaris2*",
6693         (const char*)NULL };
6696  *  content selection pattern - do fix if pattern found
6697  */
6698 tSCC zSolaris_Int_Limits_3Select0[] =
6699        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6701 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
6702 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6703   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6706  *  Fix Command Arguments for Solaris_Int_Limits_3
6707  */
6708 static const char* apzSolaris_Int_Limits_3Patch[] = {
6709     "format",
6710     "#define\tSIZE_MAX\t4294967295U",
6711     (char*)NULL };
6713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6715  *  Description of Solaris_Int_Types fix
6716  */
6717 tSCC zSolaris_Int_TypesName[] =
6718      "solaris_int_types";
6721  *  File name selection pattern
6722  */
6723 tSCC zSolaris_Int_TypesList[] =
6724   "sys/int_types.h\0";
6726  *  Machine/OS name selection pattern
6727  */
6728 #define apzSolaris_Int_TypesMachs (const char**)NULL
6731  *  content selection pattern - do fix if pattern found
6732  */
6733 tSCC zSolaris_Int_TypesSelect0[] =
6734        "__STDC__ - 0 == 0";
6737  *  content bypass pattern - skip fix if pattern found
6738  */
6739 tSCC zSolaris_Int_TypesBypass0[] =
6740        "_LONGLONG_TYPE";
6742 #define    SOLARIS_INT_TYPES_TEST_CT  2
6743 static tTestDesc aSolaris_Int_TypesTests[] = {
6744   { TT_NEGREP,   zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6745   { TT_EGREP,    zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6748  *  Fix Command Arguments for Solaris_Int_Types
6749  */
6750 static const char* apzSolaris_Int_TypesPatch[] = {
6751     "format",
6752     "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6753     (char*)NULL };
6755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6757  *  Description of Solaris_Posix_Spawn_Restrict fix
6758  */
6759 tSCC zSolaris_Posix_Spawn_RestrictName[] =
6760      "solaris_posix_spawn_restrict";
6763  *  File name selection pattern
6764  */
6765 tSCC zSolaris_Posix_Spawn_RestrictList[] =
6766   "spawn.h\0";
6768  *  Machine/OS name selection pattern
6769  */
6770 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
6771         "*-*-solaris2*",
6772         (const char*)NULL };
6775  *  content selection pattern - do fix if pattern found
6776  */
6777 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
6778        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
6780 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
6781 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
6782   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
6785  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
6786  */
6787 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
6788     "format",
6789     "%1*_RESTRICT_KYWD %2%3",
6790     (char*)NULL };
6792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6794  *  Description of Solaris_Std___Filbuf fix
6795  */
6796 tSCC zSolaris_Std___FilbufName[] =
6797      "solaris_std___filbuf";
6800  *  File name selection pattern
6801  */
6802 tSCC zSolaris_Std___FilbufList[] =
6803   "stdio.h\0";
6805  *  Machine/OS name selection pattern
6806  */
6807 tSCC* apzSolaris_Std___FilbufMachs[] = {
6808         "*-*-solaris2*",
6809         (const char*)NULL };
6812  *  content selection pattern - do fix if pattern found
6813  */
6814 tSCC zSolaris_Std___FilbufSelect0[] =
6815        "(using std::perror;\n\
6816 )(#endif)";
6819  *  content bypass pattern - skip fix if pattern found
6820  */
6821 tSCC zSolaris_Std___FilbufBypass0[] =
6822        "using std::__filbuf";
6824 #define    SOLARIS_STD___FILBUF_TEST_CT  2
6825 static tTestDesc aSolaris_Std___FilbufTests[] = {
6826   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
6827   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
6830  *  Fix Command Arguments for Solaris_Std___Filbuf
6831  */
6832 static const char* apzSolaris_Std___FilbufPatch[] = {
6833     "format",
6834     "%1#ifndef _LP64\n\
6835 using std::__filbuf;\n\
6836 using std::__flsbuf;\n\
6837 #endif\n\
6838 %2",
6839     (char*)NULL };
6841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6843  *  Description of Solaris_Stdio_Tag fix
6844  */
6845 tSCC zSolaris_Stdio_TagName[] =
6846      "solaris_stdio_tag";
6849  *  File name selection pattern
6850  */
6851 tSCC zSolaris_Stdio_TagList[] =
6852   "stdio_tag.h\0";
6854  *  Machine/OS name selection pattern
6855  */
6856 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6859  *  content selection pattern - do fix if pattern found
6860  */
6861 tSCC zSolaris_Stdio_TagSelect0[] =
6862        "__cplusplus < 54321L";
6865  *  content bypass pattern - skip fix if pattern found
6866  */
6867 tSCC zSolaris_Stdio_TagBypass0[] =
6868        "__GNUC__";
6870 #define    SOLARIS_STDIO_TAG_TEST_CT  2
6871 static tTestDesc aSolaris_Stdio_TagTests[] = {
6872   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6873   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6876  *  Fix Command Arguments for Solaris_Stdio_Tag
6877  */
6878 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
6879     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6880     (char*)NULL };
6882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6884  *  Description of Solaris_Sys_Va_List fix
6885  */
6886 tSCC zSolaris_Sys_Va_ListName[] =
6887      "solaris_sys_va_list";
6890  *  File name selection pattern
6891  */
6892 tSCC zSolaris_Sys_Va_ListList[] =
6893   "sys/va_list.h\0";
6895  *  Machine/OS name selection pattern
6896  */
6897 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
6898         "*-*-solaris2.9",
6899         (const char*)NULL };
6902  *  content selection pattern - do fix if pattern found
6903  */
6904 tSCC zSolaris_Sys_Va_ListSelect0[] =
6905        "#if.*__STDC__.*\n\
6906 typedef void \\*__va_list;\n\
6907 #else\n\
6908 typedef char \\*__va_list;\n\
6909 #endif";
6911 #define    SOLARIS_SYS_VA_LIST_TEST_CT  1
6912 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
6913   { TT_EGREP,    zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
6916  *  Fix Command Arguments for Solaris_Sys_Va_List
6917  */
6918 static const char* apzSolaris_Sys_Va_ListPatch[] = {
6919     "format",
6920     "#ifdef __GNUC__\n\
6921 typedef __builtin_va_list __va_list;\n\
6922 #else\n\
6923 %0\n\
6924 #endif",
6925     (char*)NULL };
6927 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6929  *  Description of Statsswtch fix
6930  */
6931 tSCC zStatsswtchName[] =
6932      "statsswtch";
6935  *  File name selection pattern
6936  */
6937 tSCC zStatsswtchList[] =
6938   "rpcsvc/rstat.h\0";
6940  *  Machine/OS name selection pattern
6941  */
6942 #define apzStatsswtchMachs (const char**)NULL
6945  *  content selection pattern - do fix if pattern found
6946  */
6947 tSCC zStatsswtchSelect0[] =
6948        "boottime$";
6950 #define    STATSSWTCH_TEST_CT  1
6951 static tTestDesc aStatsswtchTests[] = {
6952   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
6955  *  Fix Command Arguments for Statsswtch
6956  */
6957 static const char* apzStatsswtchPatch[] = {
6958     "format",
6959     "boottime;",
6960     (char*)NULL };
6962 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6964  *  Description of Stdio_Stdarg_H fix
6965  */
6966 tSCC zStdio_Stdarg_HName[] =
6967      "stdio_stdarg_h";
6970  *  File name selection pattern
6971  */
6972 tSCC zStdio_Stdarg_HList[] =
6973   "stdio.h\0";
6975  *  Machine/OS name selection pattern
6976  */
6977 tSCC* apzStdio_Stdarg_HMachs[] = {
6978         "*-*-solaris2.1[0-9]*",
6979         (const char*)NULL };
6982  *  content bypass pattern - skip fix if pattern found
6983  */
6984 tSCC zStdio_Stdarg_HBypass0[] =
6985        "include.*(stdarg.h|machine/ansi.h)";
6987 #define    STDIO_STDARG_H_TEST_CT  1
6988 static tTestDesc aStdio_Stdarg_HTests[] = {
6989   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6992  *  Fix Command Arguments for Stdio_Stdarg_H
6993  */
6994 static const char* apzStdio_Stdarg_HPatch[] = {
6995     "wrap",
6996     "#define __need___va_list\n\
6997 #include <stdarg.h>\n",
6998     (char*)NULL };
7000 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7002  *  Description of Stdio_Va_List fix
7003  */
7004 tSCC zStdio_Va_ListName[] =
7005      "stdio_va_list";
7008  *  File name selection pattern
7009  */
7010 tSCC zStdio_Va_ListList[] =
7011   "stdio.h\0";
7013  *  Machine/OS name selection pattern
7014  */
7015 tSCC* apzStdio_Va_ListMachs[] = {
7016         "*-*-solaris2.1[0-9]*",
7017         (const char*)NULL };
7020  *  content bypass pattern - skip fix if pattern found
7021  */
7022 tSCC zStdio_Va_ListBypass0[] =
7023        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7025 #define    STDIO_VA_LIST_TEST_CT  1
7026 static tTestDesc aStdio_Va_ListTests[] = {
7027   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7030  *  Fix Command Arguments for Stdio_Va_List
7031  */
7032 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7033     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7034 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7035 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7036 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7037 s@ va_list@ __not_va_list__@\n\
7038 s@\\*va_list@*__not_va_list__@\n\
7039 s@ __va_list)@ __gnuc_va_list)@\n\
7040 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7041 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7042 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7043 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7044 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7045 s@VA_LIST@DUMMY_VA_LIST@\n\
7046 s@_Va_LIST@_VA_LIST@",
7047     (char*)NULL };
7049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7051  *  Description of Stdio_Va_List_Clients fix
7052  */
7053 tSCC zStdio_Va_List_ClientsName[] =
7054      "stdio_va_list_clients";
7057  *  File name selection pattern
7058  */
7059 tSCC zStdio_Va_List_ClientsList[] =
7060   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7062  *  Machine/OS name selection pattern
7063  */
7064 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7067  *  content bypass pattern - skip fix if pattern found
7068  */
7069 tSCC zStdio_Va_List_ClientsBypass0[] =
7070        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7071 tSCC zStdio_Va_List_ClientsBypass1[] =
7072        "include <stdarg\\.h>|#ifdef va_start";
7074 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
7075 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7076   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7077   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7080  *  Fix Command Arguments for Stdio_Va_List_Clients
7081  */
7082 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7083     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7084 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7085 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7086 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7087 s@ va_list@ __not_va_list__@\n\
7088 s@\\*va_list@*__not_va_list__@\n\
7089 s@ __va_list)@ __gnuc_va_list)@\n\
7090 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7091 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7092 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7093 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7094 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7095 s@VA_LIST@DUMMY_VA_LIST@\n\
7096 s@_Va_LIST@_VA_LIST@",
7097     (char*)NULL };
7099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7101  *  Description of Strict_Ansi_Not fix
7102  */
7103 tSCC zStrict_Ansi_NotName[] =
7104      "strict_ansi_not";
7107  *  File name selection pattern
7108  */
7109 #define zStrict_Ansi_NotList (char*)NULL
7111  *  Machine/OS name selection pattern
7112  */
7113 #define apzStrict_Ansi_NotMachs (const char**)NULL
7116  *  content selection pattern - do fix if pattern found
7117  */
7118 tSCC zStrict_Ansi_NotSelect0[] =
7119        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7122  *  content bypass pattern - skip fix if pattern found
7123  */
7124 tSCC zStrict_Ansi_NotBypass0[] =
7125        "GNU and MIPS C compilers define __STDC__ differently";
7126 tSCC zStrict_Ansi_NotBypass1[] =
7127        "__SCO_VERSION__.*__STDC__ != 1";
7130  *  perform the C function call test
7131  */
7132 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7134 #define    STRICT_ANSI_NOT_TEST_CT  4
7135 static tTestDesc aStrict_Ansi_NotTests[] = {
7136   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
7137   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7138   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7139   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7142  *  Fix Command Arguments for Strict_Ansi_Not
7143  */
7144 static const char* apzStrict_Ansi_NotPatch[] = {
7145     "format",
7146     "%1 !defined(__STRICT_ANSI__)",
7147     (char*)NULL };
7149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7151  *  Description of Strict_Ansi_Not_Ctd fix
7152  */
7153 tSCC zStrict_Ansi_Not_CtdName[] =
7154      "strict_ansi_not_ctd";
7157  *  File name selection pattern
7158  */
7159 tSCC zStrict_Ansi_Not_CtdList[] =
7160   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7162  *  Machine/OS name selection pattern
7163  */
7164 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7167  *  content selection pattern - do fix if pattern found
7168  */
7169 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7170        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7173  *  perform the C function call test
7174  */
7175 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7177 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
7178 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7179   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
7180   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7183  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
7184  */
7185 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7186     "format",
7187     "%1 !defined(__STRICT_ANSI__)",
7188     (char*)NULL };
7190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7192  *  Description of Strict_Ansi_Only fix
7193  */
7194 tSCC zStrict_Ansi_OnlyName[] =
7195      "strict_ansi_only";
7198  *  File name selection pattern
7199  */
7200 #define zStrict_Ansi_OnlyList (char*)NULL
7202  *  Machine/OS name selection pattern
7203  */
7204 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7207  *  content selection pattern - do fix if pattern found
7208  */
7209 tSCC zStrict_Ansi_OnlySelect0[] =
7210        "^([ \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)";
7213  *  perform the C function call test
7214  */
7215 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7217 #define    STRICT_ANSI_ONLY_TEST_CT  2
7218 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7219   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
7220   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7223  *  Fix Command Arguments for Strict_Ansi_Only
7224  */
7225 static const char* apzStrict_Ansi_OnlyPatch[] = {
7226     "format",
7227     "%1 defined(__STRICT_ANSI__)",
7228     (char*)NULL };
7230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7232  *  Description of Struct_File fix
7233  */
7234 tSCC zStruct_FileName[] =
7235      "struct_file";
7238  *  File name selection pattern
7239  */
7240 tSCC zStruct_FileList[] =
7241   "rpc/xdr.h\0";
7243  *  Machine/OS name selection pattern
7244  */
7245 #define apzStruct_FileMachs (const char**)NULL
7248  *  content selection pattern - do fix if pattern found
7249  */
7250 tSCC zStruct_FileSelect0[] =
7251        "^.*xdrstdio_create.*struct __file_s";
7253 #define    STRUCT_FILE_TEST_CT  1
7254 static tTestDesc aStruct_FileTests[] = {
7255   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
7258  *  Fix Command Arguments for Struct_File
7259  */
7260 static const char* apzStruct_FilePatch[] = {
7261     "format",
7262     "struct __file_s;\n\
7263 %0",
7264     (char*)NULL };
7266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7268  *  Description of Struct_Sockaddr fix
7269  */
7270 tSCC zStruct_SockaddrName[] =
7271      "struct_sockaddr";
7274  *  File name selection pattern
7275  */
7276 tSCC zStruct_SockaddrList[] =
7277   "rpc/auth.h\0";
7279  *  Machine/OS name selection pattern
7280  */
7281 #define apzStruct_SockaddrMachs (const char**)NULL
7284  *  content selection pattern - do fix if pattern found
7285  */
7286 tSCC zStruct_SockaddrSelect0[] =
7287        "^.*authdes_create.*struct sockaddr[^_]";
7290  *  content bypass pattern - skip fix if pattern found
7291  */
7292 tSCC zStruct_SockaddrBypass0[] =
7293        "<sys/socket.h>";
7294 tSCC zStruct_SockaddrBypass1[] =
7295        "struct sockaddr;\n";
7297 #define    STRUCT_SOCKADDR_TEST_CT  3
7298 static tTestDesc aStruct_SockaddrTests[] = {
7299   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
7300   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
7301   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7304  *  Fix Command Arguments for Struct_Sockaddr
7305  */
7306 static const char* apzStruct_SockaddrPatch[] = {
7307     "format",
7308     "struct sockaddr;\n\
7309 %0",
7310     (char*)NULL };
7312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7314  *  Description of Sun_Auth_Proto fix
7315  */
7316 tSCC zSun_Auth_ProtoName[] =
7317      "sun_auth_proto";
7320  *  File name selection pattern
7321  */
7322 tSCC zSun_Auth_ProtoList[] =
7323   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7325  *  Machine/OS name selection pattern
7326  */
7327 #define apzSun_Auth_ProtoMachs (const char**)NULL
7330  *  content selection pattern - do fix if pattern found
7331  */
7332 tSCC zSun_Auth_ProtoSelect0[] =
7333        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7336  *  content bypass pattern - skip fix if pattern found
7337  */
7338 tSCC zSun_Auth_ProtoBypass0[] =
7339        "__cplusplus";
7341 #define    SUN_AUTH_PROTO_TEST_CT  2
7342 static tTestDesc aSun_Auth_ProtoTests[] = {
7343   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7344   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7347  *  Fix Command Arguments for Sun_Auth_Proto
7348  */
7349 static const char* apzSun_Auth_ProtoPatch[] = {
7350     "format",
7351     "#ifdef __cplusplus\n\
7352 %1(...);%2\n\
7353 #else\n\
7354 %1();%2\n\
7355 #endif",
7356     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7357     (char*)NULL };
7359 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7361  *  Description of Sun_Bogus_Ifdef fix
7362  */
7363 tSCC zSun_Bogus_IfdefName[] =
7364      "sun_bogus_ifdef";
7367  *  File name selection pattern
7368  */
7369 tSCC zSun_Bogus_IfdefList[] =
7370   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7372  *  Machine/OS name selection pattern
7373  */
7374 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7377  *  content selection pattern - do fix if pattern found
7378  */
7379 tSCC zSun_Bogus_IfdefSelect0[] =
7380        "#ifdef(.*\\|\\|.*)";
7382 #define    SUN_BOGUS_IFDEF_TEST_CT  1
7383 static tTestDesc aSun_Bogus_IfdefTests[] = {
7384   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7387  *  Fix Command Arguments for Sun_Bogus_Ifdef
7388  */
7389 static const char* apzSun_Bogus_IfdefPatch[] = {
7390     "format",
7391     "#if%1",
7392     (char*)NULL };
7394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7396  *  Description of Sun_Catmacro fix
7397  */
7398 tSCC zSun_CatmacroName[] =
7399      "sun_catmacro";
7402  *  File name selection pattern
7403  */
7404 tSCC zSun_CatmacroList[] =
7405   "pixrect/memvar.h\0";
7407  *  Machine/OS name selection pattern
7408  */
7409 #define apzSun_CatmacroMachs (const char**)NULL
7412  *  content selection pattern - do fix if pattern found
7413  */
7414 tSCC zSun_CatmacroSelect0[] =
7415        "^#define[ \t]+CAT\\(a,b\\).*";
7417 #define    SUN_CATMACRO_TEST_CT  1
7418 static tTestDesc aSun_CatmacroTests[] = {
7419   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
7422  *  Fix Command Arguments for Sun_Catmacro
7423  */
7424 static const char* apzSun_CatmacroPatch[] = {
7425     "format",
7426     "#ifdef __STDC__\n\
7427 #  define CAT(a,b) a##b\n\
7428 #else\n\
7429 %0\n\
7430 #endif",
7431     (char*)NULL };
7433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7435  *  Description of Sun_Malloc fix
7436  */
7437 tSCC zSun_MallocName[] =
7438      "sun_malloc";
7441  *  File name selection pattern
7442  */
7443 tSCC zSun_MallocList[] =
7444   "malloc.h\0";
7446  *  Machine/OS name selection pattern
7447  */
7448 #define apzSun_MallocMachs (const char**)NULL
7451  *  content bypass pattern - skip fix if pattern found
7452  */
7453 tSCC zSun_MallocBypass0[] =
7454        "_CLASSIC_ANSI_TYPES";
7456 #define    SUN_MALLOC_TEST_CT  1
7457 static tTestDesc aSun_MallocTests[] = {
7458   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
7461  *  Fix Command Arguments for Sun_Malloc
7462  */
7463 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7464     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7465     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7466     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7467     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7468     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7469     (char*)NULL };
7471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7473  *  Description of Sun_Rusers_Semi fix
7474  */
7475 tSCC zSun_Rusers_SemiName[] =
7476      "sun_rusers_semi";
7479  *  File name selection pattern
7480  */
7481 tSCC zSun_Rusers_SemiList[] =
7482   "rpcsvc/rusers.h\0";
7484  *  Machine/OS name selection pattern
7485  */
7486 #define apzSun_Rusers_SemiMachs (const char**)NULL
7489  *  content selection pattern - do fix if pattern found
7490  */
7491 tSCC zSun_Rusers_SemiSelect0[] =
7492        "_cnt$";
7494 #define    SUN_RUSERS_SEMI_TEST_CT  1
7495 static tTestDesc aSun_Rusers_SemiTests[] = {
7496   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7499  *  Fix Command Arguments for Sun_Rusers_Semi
7500  */
7501 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7502     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7503     (char*)NULL };
7505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7507  *  Description of Sun_Signal fix
7508  */
7509 tSCC zSun_SignalName[] =
7510      "sun_signal";
7513  *  File name selection pattern
7514  */
7515 tSCC zSun_SignalList[] =
7516   "sys/signal.h\0signal.h\0";
7518  *  Machine/OS name selection pattern
7519  */
7520 #define apzSun_SignalMachs (const char**)NULL
7523  *  content selection pattern - do fix if pattern found
7524  */
7525 tSCC zSun_SignalSelect0[] =
7526        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7528 #define    SUN_SIGNAL_TEST_CT  1
7529 static tTestDesc aSun_SignalTests[] = {
7530   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
7533  *  Fix Command Arguments for Sun_Signal
7534  */
7535 static const char* apzSun_SignalPatch[] = {
7536     "format",
7537     "#ifdef __cplusplus\n\
7538 void\t(*signal(...))(...);\n\
7539 #else\n\
7540 %0\n\
7541 #endif",
7542     (char*)NULL };
7544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7546  *  Description of Sunos_Strlen fix
7547  */
7548 tSCC zSunos_StrlenName[] =
7549      "sunos_strlen";
7552  *  File name selection pattern
7553  */
7554 tSCC zSunos_StrlenList[] =
7555   "strings.h\0";
7557  *  Machine/OS name selection pattern
7558  */
7559 #define apzSunos_StrlenMachs (const char**)NULL
7562  *  content selection pattern - do fix if pattern found
7563  */
7564 tSCC zSunos_StrlenSelect0[] =
7565        "int[ \t]*strlen\\(\\);(.*)";
7567 #define    SUNOS_STRLEN_TEST_CT  1
7568 static tTestDesc aSunos_StrlenTests[] = {
7569   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
7572  *  Fix Command Arguments for Sunos_Strlen
7573  */
7574 static const char* apzSunos_StrlenPatch[] = {
7575     "format",
7576     "__SIZE_TYPE__ strlen();%1",
7577     (char*)NULL };
7579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7581  *  Description of Svr4_Disable_Opt fix
7582  */
7583 tSCC zSvr4_Disable_OptName[] =
7584      "svr4_disable_opt";
7587  *  File name selection pattern
7588  */
7589 tSCC zSvr4_Disable_OptList[] =
7590   "string.h\0";
7592  *  Machine/OS name selection pattern
7593  */
7594 #define apzSvr4_Disable_OptMachs (const char**)NULL
7597  *  content selection pattern - do fix if pattern found
7598  */
7599 tSCC zSvr4_Disable_OptSelect0[] =
7600        "#define.*__std_hdr_";
7602 #define    SVR4_DISABLE_OPT_TEST_CT  1
7603 static tTestDesc aSvr4_Disable_OptTests[] = {
7604   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7607  *  Fix Command Arguments for Svr4_Disable_Opt
7608  */
7609 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7610     "-e", "/#define.*__std_hdr_/d",
7611     (char*)NULL };
7613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7615  *  Description of Svr4_Getcwd fix
7616  */
7617 tSCC zSvr4_GetcwdName[] =
7618      "svr4_getcwd";
7621  *  File name selection pattern
7622  */
7623 tSCC zSvr4_GetcwdList[] =
7624   "stdlib.h\0unistd.h\0prototypes.h\0";
7626  *  Machine/OS name selection pattern
7627  */
7628 #define apzSvr4_GetcwdMachs (const char**)NULL
7631  *  content selection pattern - do fix if pattern found
7632  */
7633 tSCC zSvr4_GetcwdSelect0[] =
7634        "getcwd\\(char \\*, int\\)";
7636 #define    SVR4_GETCWD_TEST_CT  1
7637 static tTestDesc aSvr4_GetcwdTests[] = {
7638   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7641  *  Fix Command Arguments for Svr4_Getcwd
7642  */
7643 static const char* apzSvr4_GetcwdPatch[] = {
7644     "format",
7645     "getcwd(char *, size_t)",
7646     (char*)NULL };
7648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7650  *  Description of Svr4_Profil fix
7651  */
7652 tSCC zSvr4_ProfilName[] =
7653      "svr4_profil";
7656  *  File name selection pattern
7657  */
7658 tSCC zSvr4_ProfilList[] =
7659   "stdlib.h\0unistd.h\0";
7661  *  Machine/OS name selection pattern
7662  */
7663 #define apzSvr4_ProfilMachs (const char**)NULL
7666  *  content selection pattern - do fix if pattern found
7667  */
7668 tSCC zSvr4_ProfilSelect0[] =
7669        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7671 #define    SVR4_PROFIL_TEST_CT  1
7672 static tTestDesc aSvr4_ProfilTests[] = {
7673   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7676  *  Fix Command Arguments for Svr4_Profil
7677  */
7678 static const char* apzSvr4_ProfilPatch[] = {
7679     "format",
7680     "profil(unsigned short *, size_t, int, unsigned int)",
7681     (char*)NULL };
7683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7685  *  Description of Svr4_Sighandler_Type fix
7686  */
7687 tSCC zSvr4_Sighandler_TypeName[] =
7688      "svr4_sighandler_type";
7691  *  File name selection pattern
7692  */
7693 tSCC zSvr4_Sighandler_TypeList[] =
7694   "sys/signal.h\0";
7696  *  Machine/OS name selection pattern
7697  */
7698 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7701  *  content selection pattern - do fix if pattern found
7702  */
7703 tSCC zSvr4_Sighandler_TypeSelect0[] =
7704        "void *\\(\\*\\)\\(\\)";
7706 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
7707 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7708   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7711  *  Fix Command Arguments for Svr4_Sighandler_Type
7712  */
7713 static const char* apzSvr4_Sighandler_TypePatch[] = {
7714     "format",
7715     "void (*)(int)",
7716     (char*)NULL };
7718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7720  *  Description of Svr4_Undeclared_Getrnge fix
7721  */
7722 tSCC zSvr4_Undeclared_GetrngeName[] =
7723      "svr4_undeclared_getrnge";
7726  *  File name selection pattern
7727  */
7728 tSCC zSvr4_Undeclared_GetrngeList[] =
7729   "regexp.h\0";
7731  *  Machine/OS name selection pattern
7732  */
7733 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7736  *  content selection pattern - do fix if pattern found
7737  */
7738 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7739        "getrnge";
7742  *  content bypass pattern - skip fix if pattern found
7743  */
7744 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7745        "static void getrnge";
7747 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
7748 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7749   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7750   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7753  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
7754  */
7755 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7756     "format",
7757     "%0\n\
7758 static int getrnge ();",
7759     "^static int[ \t]+size;",
7760     (char*)NULL };
7762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7764  *  Description of Sysv68_String fix
7765  */
7766 tSCC zSysv68_StringName[] =
7767      "sysv68_string";
7770  *  File name selection pattern
7771  */
7772 tSCC zSysv68_StringList[] =
7773   "testing.h\0string.h\0";
7775  *  Machine/OS name selection pattern
7776  */
7777 #define apzSysv68_StringMachs (const char**)NULL
7780  *  content bypass pattern - skip fix if pattern found
7781  */
7782 tSCC zSysv68_StringBypass0[] =
7783        "_CLASSIC_ANSI_TYPES";
7785 #define    SYSV68_STRING_TEST_CT  1
7786 static tTestDesc aSysv68_StringTests[] = {
7787   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
7790  *  Fix Command Arguments for Sysv68_String
7791  */
7792 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7793     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7794     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7795     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7796     "-e", "/^extern char$/N",
7797     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7798     "-e", "/^extern int$/N",
7799     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7800     "-e", "/^\tstrncmp(),$/N",
7801     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7802 extern unsigned int\\\n\
7803 \\2/",
7804     (char*)NULL };
7806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7808  *  Description of Sysz_Stdlib_For_Sun fix
7809  */
7810 tSCC zSysz_Stdlib_For_SunName[] =
7811      "sysz_stdlib_for_sun";
7814  *  File name selection pattern
7815  */
7816 tSCC zSysz_Stdlib_For_SunList[] =
7817   "stdlib.h\0";
7819  *  Machine/OS name selection pattern
7820  */
7821 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7824  *  content selection pattern - do fix if pattern found
7825  */
7826 tSCC zSysz_Stdlib_For_SunSelect0[] =
7827        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7830  *  content bypass pattern - skip fix if pattern found
7831  */
7832 tSCC zSysz_Stdlib_For_SunBypass0[] =
7833        "_CLASSIC_ANSI_TYPES";
7835 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
7836 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7837   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7838   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7841  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
7842  */
7843 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7844     "format",
7845     "void *\t%1(",
7846     (char*)NULL };
7848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7850  *  Description of Thread_Keyword fix
7851  */
7852 tSCC zThread_KeywordName[] =
7853      "thread_keyword";
7856  *  File name selection pattern
7857  */
7858 tSCC zThread_KeywordList[] =
7859   "pthread.h\0bits/sigthread.h\0";
7861  *  Machine/OS name selection pattern
7862  */
7863 #define apzThread_KeywordMachs (const char**)NULL
7866  *  content selection pattern - do fix if pattern found
7867  */
7868 tSCC zThread_KeywordSelect0[] =
7869        "([* ])__thread([,)])";
7871 #define    THREAD_KEYWORD_TEST_CT  1
7872 static tTestDesc aThread_KeywordTests[] = {
7873   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
7876  *  Fix Command Arguments for Thread_Keyword
7877  */
7878 static const char* apzThread_KeywordPatch[] = {
7879     "format",
7880     "%1__thr%2",
7881     (char*)NULL };
7883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7885  *  Description of Tinfo_Cplusplus fix
7886  */
7887 tSCC zTinfo_CplusplusName[] =
7888      "tinfo_cplusplus";
7891  *  File name selection pattern
7892  */
7893 tSCC zTinfo_CplusplusList[] =
7894   "tinfo.h\0";
7896  *  Machine/OS name selection pattern
7897  */
7898 #define apzTinfo_CplusplusMachs (const char**)NULL
7901  *  content selection pattern - do fix if pattern found
7902  */
7903 tSCC zTinfo_CplusplusSelect0[] =
7904        "[ \t]_cplusplus";
7906 #define    TINFO_CPLUSPLUS_TEST_CT  1
7907 static tTestDesc aTinfo_CplusplusTests[] = {
7908   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7911  *  Fix Command Arguments for Tinfo_Cplusplus
7912  */
7913 static const char* apzTinfo_CplusplusPatch[] = {
7914     "format",
7915     " __cplusplus",
7916     (char*)NULL };
7918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7920  *  Description of Ultrix_Const fix
7921  */
7922 tSCC zUltrix_ConstName[] =
7923      "ultrix_const";
7926  *  File name selection pattern
7927  */
7928 tSCC zUltrix_ConstList[] =
7929   "stdio.h\0";
7931  *  Machine/OS name selection pattern
7932  */
7933 #define apzUltrix_ConstMachs (const char**)NULL
7936  *  content selection pattern - do fix if pattern found
7937  */
7938 tSCC zUltrix_ConstSelect0[] =
7939        "perror\\( char \\*";
7941 #define    ULTRIX_CONST_TEST_CT  1
7942 static tTestDesc aUltrix_ConstTests[] = {
7943   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
7946  *  Fix Command Arguments for Ultrix_Const
7947  */
7948 static const char* apzUltrix_ConstPatch[] = {
7949     "format",
7950     "%1 const %3 *__",
7951     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7952     (char*)NULL };
7954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7956  *  Description of Ultrix_Const2 fix
7957  */
7958 tSCC zUltrix_Const2Name[] =
7959      "ultrix_const2";
7962  *  File name selection pattern
7963  */
7964 tSCC zUltrix_Const2List[] =
7965   "stdio.h\0";
7967  *  Machine/OS name selection pattern
7968  */
7969 #define apzUltrix_Const2Machs (const char**)NULL
7972  *  content selection pattern - do fix if pattern found
7973  */
7974 tSCC zUltrix_Const2Select0[] =
7975        "\\*fopen\\( char \\*";
7977 #define    ULTRIX_CONST2_TEST_CT  1
7978 static tTestDesc aUltrix_Const2Tests[] = {
7979   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
7982  *  Fix Command Arguments for Ultrix_Const2
7983  */
7984 static const char* apzUltrix_Const2Patch[] = {
7985     "format",
7986     "%1( const char *%3, const char *",
7987     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7988     (char*)NULL };
7990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7992  *  Description of Va_I960_Macro fix
7993  */
7994 tSCC zVa_I960_MacroName[] =
7995      "va_i960_macro";
7998  *  File name selection pattern
7999  */
8000 tSCC zVa_I960_MacroList[] =
8001   "arch/i960/archI960.h\0";
8003  *  Machine/OS name selection pattern
8004  */
8005 #define apzVa_I960_MacroMachs (const char**)NULL
8008  *  content selection pattern - do fix if pattern found
8009  */
8010 tSCC zVa_I960_MacroSelect0[] =
8011        "__(vsiz|vali|vpad|alignof__)";
8013 #define    VA_I960_MACRO_TEST_CT  1
8014 static tTestDesc aVa_I960_MacroTests[] = {
8015   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8018  *  Fix Command Arguments for Va_I960_Macro
8019  */
8020 static const char* apzVa_I960_MacroPatch[] = {
8021     "format",
8022     "__vx%1",
8023     (char*)NULL };
8025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8027  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
8028  */
8029 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8030      "vms_define_can_use_extern_prefix";
8033  *  File name selection pattern
8034  */
8035 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8036   "rtldef/decc$types.h\0";
8038  *  Machine/OS name selection pattern
8039  */
8040 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8041         "*-*-*vms*",
8042         (const char*)NULL };
8045  *  content selection pattern - do fix if pattern found
8046  */
8047 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8048        "#[ \t]*else\n\
8049 #[ \t]*if defined\\(__DECCXX\\)\n\
8050 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8052 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
8053 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8054   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8057  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8058  */
8059 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8060     "format",
8061     "%0#    elif defined (__GNUC__)\n\
8062 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8063     (char*)NULL };
8065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8067  *  Description of Vms_Use_Pragma_Extern_Model fix
8068  */
8069 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8070      "vms_use_pragma_extern_model";
8073  *  File name selection pattern
8074  */
8075 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8077  *  Machine/OS name selection pattern
8078  */
8079 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8080         "*-*-*vms*",
8081         (const char*)NULL };
8084  *  content selection pattern - do fix if pattern found
8085  */
8086 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8087        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8088 # pragma extern_model __save\n";
8090 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
8091 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8092   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8095  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8096  */
8097 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8098     "format",
8099     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8100 # pragma extern_model __save\n",
8101     (char*)NULL };
8103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8105  *  Description of Vms_Disable_Decc_String_Builtins fix
8106  */
8107 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8108      "vms_disable_decc_string_builtins";
8111  *  File name selection pattern
8112  */
8113 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8114   "rtldef/string.h\0";
8116  *  Machine/OS name selection pattern
8117  */
8118 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8119         "*-*-*vms*",
8120         (const char*)NULL };
8123  *  content selection pattern - do fix if pattern found
8124  */
8125 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8126        "#if !defined\\(__VAX\\)\n";
8128 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
8129 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8130   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8133  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8134  */
8135 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8136     "format",
8137     "#if !defined(__VAX) && !defined(__GNUC__)\n",
8138     (char*)NULL };
8140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8142  *  Description of Vms_Use_Quoted_Include fix
8143  */
8144 tSCC zVms_Use_Quoted_IncludeName[] =
8145      "vms_use_quoted_include";
8148  *  File name selection pattern
8149  */
8150 tSCC zVms_Use_Quoted_IncludeList[] =
8151   "rtldef/wait.h\0starlet_c/pthread.h\0";
8153  *  Machine/OS name selection pattern
8154  */
8155 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
8156         "*-*-*vms*",
8157         (const char*)NULL };
8160  *  content selection pattern - do fix if pattern found
8161  */
8162 tSCC zVms_Use_Quoted_IncludeSelect0[] =
8163        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
8165 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
8166 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
8167   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
8170  *  Fix Command Arguments for Vms_Use_Quoted_Include
8171  */
8172 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8173     "format",
8174     "%1<sys/%2.h>",
8175     (char*)NULL };
8177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8179  *  Description of Vms_Add_Missing_Braces fix
8180  */
8181 tSCC zVms_Add_Missing_BracesName[] =
8182      "vms_add_missing_braces";
8185  *  File name selection pattern
8186  */
8187 tSCC zVms_Add_Missing_BracesList[] =
8188   "rtldef/signal.h\0";
8190  *  Machine/OS name selection pattern
8191  */
8192 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8193         "*-*-*vms*",
8194         (const char*)NULL };
8197  *  content selection pattern - do fix if pattern found
8198  */
8199 tSCC zVms_Add_Missing_BracesSelect0[] =
8200        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8202 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
8203 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8204   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8207  *  Fix Command Arguments for Vms_Add_Missing_Braces
8208  */
8209 static const char* apzVms_Add_Missing_BracesPatch[] = {
8210     "format",
8211     "%1 {%2} ",
8212     (char*)NULL };
8214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8216  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
8217  */
8218 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8219      "vms_do_not_redeclare_hostalias";
8222  *  File name selection pattern
8223  */
8224 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8225   "rtldef/resolv.h\0";
8227  *  Machine/OS name selection pattern
8228  */
8229 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8230         "*-*-*vms*",
8231         (const char*)NULL };
8234  *  content selection pattern - do fix if pattern found
8235  */
8236 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8237        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8238 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8240 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
8241 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8242   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8245  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8246  */
8247 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8248     "format",
8249     "%1\n\
8250 /* %2 */",
8251     (char*)NULL };
8253 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8255  *  Description of Vms_Decc_Builtin fix
8256  */
8257 tSCC zVms_Decc_BuiltinName[] =
8258      "vms_decc_builtin";
8261  *  File name selection pattern
8262  */
8263 tSCC zVms_Decc_BuiltinList[] =
8264   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8266  *  Machine/OS name selection pattern
8267  */
8268 tSCC* apzVms_Decc_BuiltinMachs[] = {
8269         "*-*-*vms*",
8270         (const char*)NULL };
8273  *  content selection pattern - do fix if pattern found
8274  */
8275 tSCC zVms_Decc_BuiltinSelect0[] =
8276        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8278 #define    VMS_DECC_BUILTIN_TEST_CT  1
8279 static tTestDesc aVms_Decc_BuiltinTests[] = {
8280   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8283  *  Fix Command Arguments for Vms_Decc_Builtin
8284  */
8285 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8286     "-e", "s@__MEMSET@memset@",
8287     "-e", "s@__MEMMOVE@memmove@",
8288     "-e", "s@__MEMCPY@memcpy@",
8289     "-e", "s@__STRLEN@strlen@",
8290     "-e", "s@__STRCPY@strcpy@",
8291     (char*)NULL };
8293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8295  *  Description of Vms_No_64bit_Getopt fix
8296  */
8297 tSCC zVms_No_64bit_GetoptName[] =
8298      "vms_no_64bit_getopt";
8301  *  File name selection pattern
8302  */
8303 tSCC zVms_No_64bit_GetoptList[] =
8304   "rtldef/stdio.h\0rtldef/unistd.h\0";
8306  *  Machine/OS name selection pattern
8307  */
8308 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8309         "*-*-*vms*",
8310         (const char*)NULL };
8313  *  content selection pattern - do fix if pattern found
8314  */
8315 tSCC zVms_No_64bit_GetoptSelect0[] =
8316        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8318 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
8319 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8320   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8323  *  Fix Command Arguments for Vms_No_64bit_Getopt
8324  */
8325 static const char* apzVms_No_64bit_GetoptPatch[] = {
8326     "format",
8327     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
8328 %0#endif\n",
8329     (char*)NULL };
8331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8333  *  Description of Vms_Forward_Declare_Struct fix
8334  */
8335 tSCC zVms_Forward_Declare_StructName[] =
8336      "vms_forward_declare_struct";
8339  *  File name selection pattern
8340  */
8341 tSCC zVms_Forward_Declare_StructList[] =
8342   "rtldef/if.h\0";
8344  *  Machine/OS name selection pattern
8345  */
8346 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8347         "*-*-*vms*",
8348         (const char*)NULL };
8351  *  content selection pattern - do fix if pattern found
8352  */
8353 tSCC zVms_Forward_Declare_StructSelect0[] =
8354        "(/\\* forward decls for C\\+\\+ \\*/\n\
8355 )#ifdef __cplusplus\n";
8357 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
8358 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8359   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8362  *  Fix Command Arguments for Vms_Forward_Declare_Struct
8363  */
8364 static const char* apzVms_Forward_Declare_StructPatch[] = {
8365     "format",
8366     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8367     (char*)NULL };
8369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8371  *  Description of Vms_Use_Fast_Setjmp fix
8372  */
8373 tSCC zVms_Use_Fast_SetjmpName[] =
8374      "vms_use_fast_setjmp";
8377  *  File name selection pattern
8378  */
8379 tSCC zVms_Use_Fast_SetjmpList[] =
8380   "rtldef/setjmp.h\0";
8382  *  Machine/OS name selection pattern
8383  */
8384 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8385         "*-*-*vms*",
8386         (const char*)NULL };
8389  *  content selection pattern - do fix if pattern found
8390  */
8391 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8392        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8394 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
8395 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8396   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8399  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
8400  */
8401 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8402     "format",
8403     "%0 defined (__GNUC__) ||",
8404     (char*)NULL };
8406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8408  *  Description of Void_Null fix
8409  */
8410 tSCC zVoid_NullName[] =
8411      "void_null";
8414  *  File name selection pattern
8415  */
8416 tSCC zVoid_NullList[] =
8417   "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";
8419  *  Machine/OS name selection pattern
8420  */
8421 #define apzVoid_NullMachs (const char**)NULL
8424  *  content selection pattern - do fix if pattern found
8425  */
8426 tSCC zVoid_NullSelect0[] =
8427        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8430  *  content bypass pattern - skip fix if pattern found
8431  */
8432 tSCC zVoid_NullBypass0[] =
8433        "__cplusplus";
8434 tSCC zVoid_NullBypass1[] =
8435        "__null";
8437 #define    VOID_NULL_TEST_CT  3
8438 static tTestDesc aVoid_NullTests[] = {
8439   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8440   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
8441   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8444  *  Fix Command Arguments for Void_Null
8445  */
8446 static const char* apzVoid_NullPatch[] = {
8447     "format",
8448     "#define NULL 0",
8449     (char*)NULL };
8451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8453  *  Description of Vxworks_Gcc_Problem fix
8454  */
8455 tSCC zVxworks_Gcc_ProblemName[] =
8456      "vxworks_gcc_problem";
8459  *  File name selection pattern
8460  */
8461 tSCC zVxworks_Gcc_ProblemList[] =
8462   "types/vxTypesBase.h\0";
8464  *  Machine/OS name selection pattern
8465  */
8466 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8469  *  content selection pattern - do fix if pattern found
8470  */
8471 tSCC zVxworks_Gcc_ProblemSelect0[] =
8472        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8474 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8475 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8476   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8479  *  Fix Command Arguments for Vxworks_Gcc_Problem
8480  */
8481 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8482     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8483     "-e", "/[ \t]size_t/i\\\n\
8484 #ifndef _GCC_SIZE_T\\\n\
8485 #define _GCC_SIZE_T\n",
8486     "-e", "/[ \t]size_t/a\\\n\
8487 #endif\n",
8488     "-e", "/[ \t]ptrdiff_t/i\\\n\
8489 #ifndef _GCC_PTRDIFF_T\\\n\
8490 #define _GCC_PTRDIFF_T\n",
8491     "-e", "/[ \t]ptrdiff_t/a\\\n\
8492 #endif\n",
8493     "-e", "/[ \t]wchar_t/i\\\n\
8494 #ifndef _GCC_WCHAR_T\\\n\
8495 #define _GCC_WCHAR_T\n",
8496     "-e", "/[ \t]wchar_t/a\\\n\
8497 #endif\n",
8498     (char*)NULL };
8500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8502  *  Description of Vxworks_Needs_Vxtypes fix
8503  */
8504 tSCC zVxworks_Needs_VxtypesName[] =
8505      "vxworks_needs_vxtypes";
8508  *  File name selection pattern
8509  */
8510 tSCC zVxworks_Needs_VxtypesList[] =
8511   "time.h\0";
8513  *  Machine/OS name selection pattern
8514  */
8515 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8518  *  content selection pattern - do fix if pattern found
8519  */
8520 tSCC zVxworks_Needs_VxtypesSelect0[] =
8521        "uint_t([ \t]+_clocks_per_sec)";
8523 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8524 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8525   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8528  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8529  */
8530 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8531     "format",
8532     "unsigned int%1",
8533     (char*)NULL };
8535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8537  *  Description of Vxworks_Needs_Vxworks fix
8538  */
8539 tSCC zVxworks_Needs_VxworksName[] =
8540      "vxworks_needs_vxworks";
8543  *  File name selection pattern
8544  */
8545 tSCC zVxworks_Needs_VxworksList[] =
8546   "sys/stat.h\0";
8548  *  Machine/OS name selection pattern
8549  */
8550 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8553  *  content selection pattern - do fix if pattern found
8554  */
8555 tSCC zVxworks_Needs_VxworksSelect0[] =
8556        "#[ \t]define[ \t]+__INCstath";
8559  *  perform the 'test' shell command - do fix on success
8560  */
8561 tSCC zVxworks_Needs_VxworksTest0[] =
8562        " -r types/vxTypesOld.h";
8563 tSCC zVxworks_Needs_VxworksTest1[] =
8564        " -n \"`egrep '#include' $file`\"";
8565 tSCC zVxworks_Needs_VxworksTest2[] =
8566        " -n \"`egrep ULONG $file`\"";
8568 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8569 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8570   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8571   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8572   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8573   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8576  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8577  */
8578 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8579     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8580 #include <types/vxTypesOld.h>\n",
8581     (char*)NULL };
8583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8585  *  Description of Vxworks_Time fix
8586  */
8587 tSCC zVxworks_TimeName[] =
8588      "vxworks_time";
8591  *  File name selection pattern
8592  */
8593 tSCC zVxworks_TimeList[] =
8594   "time.h\0";
8596  *  Machine/OS name selection pattern
8597  */
8598 #define apzVxworks_TimeMachs (const char**)NULL
8601  *  content selection pattern - do fix if pattern found
8602  */
8603 tSCC zVxworks_TimeSelect0[] =
8604        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8607  *  perform the 'test' shell command - do fix on success
8608  */
8609 tSCC zVxworks_TimeTest0[] =
8610        " -r vxWorks.h";
8612 #define    VXWORKS_TIME_TEST_CT  2
8613 static tTestDesc aVxworks_TimeTests[] = {
8614   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8615   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8618  *  Fix Command Arguments for Vxworks_Time
8619  */
8620 static const char* apzVxworks_TimePatch[] = {
8621     "format",
8622     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8623 #ifdef __cplusplus\n\
8624 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8625 #else\n\
8626 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8627 #endif\n\
8628 #define __gcc_VOIDFUNCPTR_defined\n\
8629 #endif\n\
8630 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8631     (char*)NULL };
8633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8635  *  Description of X11_Class fix
8636  */
8637 tSCC zX11_ClassName[] =
8638      "x11_class";
8641  *  File name selection pattern
8642  */
8643 tSCC zX11_ClassList[] =
8644   "X11/ShellP.h\0";
8646  *  Machine/OS name selection pattern
8647  */
8648 #define apzX11_ClassMachs (const char**)NULL
8651  *  content selection pattern - do fix if pattern found
8652  */
8653 tSCC zX11_ClassSelect0[] =
8654        "^([ \t]*char \\*)class;(.*)";
8657  *  content bypass pattern - skip fix if pattern found
8658  */
8659 tSCC zX11_ClassBypass0[] =
8660        "__cplusplus";
8662 #define    X11_CLASS_TEST_CT  2
8663 static tTestDesc aX11_ClassTests[] = {
8664   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
8665   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
8668  *  Fix Command Arguments for X11_Class
8669  */
8670 static const char* apzX11_ClassPatch[] = {
8671     "format",
8672     "#ifdef __cplusplus\n\
8673 %1c_class;%2\n\
8674 #else\n\
8675 %1class;%2\n\
8676 #endif",
8677     (char*)NULL };
8679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8681  *  Description of X11_Class_Usage fix
8682  */
8683 tSCC zX11_Class_UsageName[] =
8684      "x11_class_usage";
8687  *  File name selection pattern
8688  */
8689 tSCC zX11_Class_UsageList[] =
8690   "Xm/BaseClassI.h\0";
8692  *  Machine/OS name selection pattern
8693  */
8694 #define apzX11_Class_UsageMachs (const char**)NULL
8697  *  content selection pattern - do fix if pattern found
8698  */
8699 tSCC zX11_Class_UsageSelect0[] =
8700        " class\\)";
8703  *  content bypass pattern - skip fix if pattern found
8704  */
8705 tSCC zX11_Class_UsageBypass0[] =
8706        "__cplusplus";
8708 #define    X11_CLASS_USAGE_TEST_CT  2
8709 static tTestDesc aX11_Class_UsageTests[] = {
8710   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
8711   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8714  *  Fix Command Arguments for X11_Class_Usage
8715  */
8716 static const char* apzX11_Class_UsagePatch[] = {
8717     "format",
8718     " c_class)",
8719     (char*)NULL };
8721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8723  *  Description of X11_New fix
8724  */
8725 tSCC zX11_NewName[] =
8726      "x11_new";
8729  *  File name selection pattern
8730  */
8731 tSCC zX11_NewList[] =
8732   "Xm/Traversal.h\0";
8734  *  Machine/OS name selection pattern
8735  */
8736 #define apzX11_NewMachs (const char**)NULL
8739  *  content bypass pattern - skip fix if pattern found
8740  */
8741 tSCC zX11_NewBypass0[] =
8742        "__cplusplus";
8744 #define    X11_NEW_TEST_CT  1
8745 static tTestDesc aX11_NewTests[] = {
8746   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
8749  *  Fix Command Arguments for X11_New
8750  */
8751 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8752     "-e", "/Widget\told, new;/i\\\n\
8753 #ifdef __cplusplus\\\n\
8754 \\\tWidget\told, c_new;\\\n\
8755 #else\n",
8756     "-e", "/Widget\told, new;/a\\\n\
8757 #endif\n",
8758     "-e", "s/Widget new,/Widget c_new,/g",
8759     (char*)NULL };
8761 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8763  *  Description of X11_Sprintf fix
8764  */
8765 tSCC zX11_SprintfName[] =
8766      "x11_sprintf";
8769  *  File name selection pattern
8770  */
8771 tSCC zX11_SprintfList[] =
8772   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8774  *  Machine/OS name selection pattern
8775  */
8776 #define apzX11_SprintfMachs (const char**)NULL
8779  *  content selection pattern - do fix if pattern found
8780  */
8781 tSCC zX11_SprintfSelect0[] =
8782        "^extern char \\*\tsprintf\\(\\);$";
8784 #define    X11_SPRINTF_TEST_CT  1
8785 static tTestDesc aX11_SprintfTests[] = {
8786   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
8789  *  Fix Command Arguments for X11_Sprintf
8790  */
8791 static const char* apzX11_SprintfPatch[] = {
8792     "format",
8793     "#ifndef __STDC__\n\
8794 %0\n\
8795 #endif /* !defined __STDC__ */",
8796     (char*)NULL };
8799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8801  *  List of all fixes
8802  */
8803 #define REGEX_COUNT          259
8804 #define MACH_LIST_SIZE_LIMIT 181
8805 #define FIX_COUNT            216
8808  *  Enumerate the fixes
8809  */
8810 typedef enum {
8811     AAB_AIX_STDIO_FIXIDX,
8812     AAB_AIX_FCNTL_FIXIDX,
8813     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8814     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8815     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8816     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8817     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8818     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8819     AAB_SUN_MEMCPY_FIXIDX,
8820     AIX_COMPLEX_FIXIDX,
8821     AIX_MALLOC_FIXIDX,
8822     AIX_NET_IF_ARP_FIXIDX,
8823     AIX_ONCE_INIT_1_FIXIDX,
8824     AIX_ONCE_INIT_2_FIXIDX,
8825     AIX_MUTEX_INITIALIZER_1_FIXIDX,
8826     AIX_COND_INITIALIZER_1_FIXIDX,
8827     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
8828     AIX_PTHREAD_FIXIDX,
8829     AIX_STDINT_1_FIXIDX,
8830     AIX_STDINT_2_FIXIDX,
8831     AIX_STDINT_3_FIXIDX,
8832     AIX_STDINT_4_FIXIDX,
8833     AIX_STDINT_5_FIXIDX,
8834     AIX_SYSMACHINE_FIXIDX,
8835     AIX_SYSWAIT_2_FIXIDX,
8836     AIX_VOLATILE_FIXIDX,
8837     ALPHA___ASSERT_FIXIDX,
8838     ALPHA_ASSERT_FIXIDX,
8839     ALPHA_GETOPT_FIXIDX,
8840     ALPHA_IF_SEMICOLON_FIXIDX,
8841     ALPHA_PARENS_FIXIDX,
8842     ALPHA_SBRK_FIXIDX,
8843     AVOID_BOOL_DEFINE_FIXIDX,
8844     AVOID_BOOL_TYPE_FIXIDX,
8845     AVOID_WCHAR_T_TYPE_FIXIDX,
8846     BAD_STRUCT_TERM_FIXIDX,
8847     BADQUOTE_FIXIDX,
8848     BROKEN_ASSERT_STDIO_FIXIDX,
8849     BROKEN_ASSERT_STDLIB_FIXIDX,
8850     BROKEN_CABS_FIXIDX,
8851     BROKEN_NAN_FIXIDX,
8852     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8853     CDEF_CPLUSPLUS_FIXIDX,
8854     CTRL_QUOTES_DEF_FIXIDX,
8855     CTRL_QUOTES_USE_FIXIDX,
8856     CXX_UNREADY_FIXIDX,
8857     DARWIN_EXTERNC_FIXIDX,
8858     DARWIN_GCC4_BREAKAGE_FIXIDX,
8859     DARWIN_PRIVATE_EXTERN_FIXIDX,
8860     DARWIN_STDINT_1_FIXIDX,
8861     DARWIN_STDINT_2_FIXIDX,
8862     DARWIN_STDINT_3_FIXIDX,
8863     DARWIN_STDINT_4_FIXIDX,
8864     DARWIN_STDINT_5_FIXIDX,
8865     DARWIN_STDINT_6_FIXIDX,
8866     DARWIN_STDINT_7_FIXIDX,
8867     DEC_INTERN_ASM_FIXIDX,
8868     DJGPP_WCHAR_H_FIXIDX,
8869     ECD_CURSOR_FIXIDX,
8870     FREEBSD_GCC3_BREAKAGE_FIXIDX,
8871     FREEBSD_GCC4_BREAKAGE_FIXIDX,
8872     GLIBC_C99_INLINE_1_FIXIDX,
8873     GLIBC_C99_INLINE_1A_FIXIDX,
8874     GLIBC_C99_INLINE_2_FIXIDX,
8875     GLIBC_C99_INLINE_3_FIXIDX,
8876     GLIBC_C99_INLINE_4_FIXIDX,
8877     GLIBC_MUTEX_INIT_FIXIDX,
8878     GLIBC_STDINT_FIXIDX,
8879     GLIBC_STRNCPY_FIXIDX,
8880     GLIBC_TGMATH_FIXIDX,
8881     GNU_TYPES_FIXIDX,
8882     HP_INLINE_FIXIDX,
8883     HP_SYSFILE_FIXIDX,
8884     HPPA_HPUX_FP_MACROS_FIXIDX,
8885     HPUX10_CPP_POW_INLINE_FIXIDX,
8886     HPUX11_CPP_POW_INLINE_FIXIDX,
8887     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8888     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8889     HPUX10_STDIO_DECLARATIONS_FIXIDX,
8890     HPUX11_ABS_FIXIDX,
8891     HPUX11_FABSF_FIXIDX,
8892     HPUX11_PTHREAD_CONST_FIXIDX,
8893     HPUX11_SIZE_T_FIXIDX,
8894     HPUX11_SNPRINTF_FIXIDX,
8895     HPUX11_VSNPRINTF_FIXIDX,
8896     HPUX8_BOGUS_INLINES_FIXIDX,
8897     HPUX_CTYPE_MACROS_FIXIDX,
8898     HPUX_HTONL_FIXIDX,
8899     HPUX_LONG_DOUBLE_FIXIDX,
8900     HPUX_LONG_DOUBLE_2_FIXIDX,
8901     HPUX_SYSTIME_FIXIDX,
8902     HPUX_SPU_INFO_FIXIDX,
8903     HPUX11_EXTERN_SENDFILE_FIXIDX,
8904     HPUX11_EXTERN_SENDPATH_FIXIDX,
8905     HPUX_EXTERN_ERRNO_FIXIDX,
8906     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8907     HPUX_C99_INTPTR_FIXIDX,
8908     HPUX_C99_INTTYPES_FIXIDX,
8909     HPUX_C99_INTTYPES2_FIXIDX,
8910     HPUX_STDINT_LEAST_FAST_FIXIDX,
8911     HPUX_INTTYPE_INT8_T_FIXIDX,
8912     HPUX_IMAGINARY_I_FIXIDX,
8913     HUGE_VAL_HEX_FIXIDX,
8914     HUGE_VALF_HEX_FIXIDX,
8915     HUGE_VALL_HEX_FIXIDX,
8916     INT_ABORT_FREE_AND_EXIT_FIXIDX,
8917     IO_QUOTES_DEF_FIXIDX,
8918     IO_QUOTES_USE_FIXIDX,
8919     IP_MISSING_SEMI_FIXIDX,
8920     IRIX_LIMITS_CONST_FIXIDX,
8921     IRIX_STDIO_VA_LIST_FIXIDX,
8922     KANDR_CONCAT_FIXIDX,
8923     LINUX_IA64_UCONTEXT_FIXIDX,
8924     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8925     LYNXOS_MISSING_PUTENV_FIXIDX,
8926     MACHINE_ANSI_H_VA_LIST_FIXIDX,
8927     MACHINE_NAME_FIXIDX,
8928     MATH_EXCEPTION_FIXIDX,
8929     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8930     NESTED_AUTH_DES_FIXIDX,
8931     NETBSD_C99_INLINE_1_FIXIDX,
8932     NETBSD_C99_INLINE_2_FIXIDX,
8933     NETBSD_EXTRA_SEMICOLON_FIXIDX,
8934     NEWLIB_STDINT_1_FIXIDX,
8935     NEWLIB_STDINT_2_FIXIDX,
8936     NEXT_MATH_PREFIX_FIXIDX,
8937     NEXT_TEMPLATE_FIXIDX,
8938     NEXT_VOLITILE_FIXIDX,
8939     NEXT_WAIT_UNION_FIXIDX,
8940     NODEENT_SYNTAX_FIXIDX,
8941     OPENBSD_NULL_DEFINITION_FIXIDX,
8942     OBSTACK_LVALUE_CAST_FIXIDX,
8943     OPENBSD_VA_START_FIXIDX,
8944     OSF_NAMESPACE_A_FIXIDX,
8945     OSF_NAMESPACE_C_FIXIDX,
8946     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8947     READ_RET_TYPE_FIXIDX,
8948     RPC_XDR_LVALUE_CAST_A_FIXIDX,
8949     RPC_XDR_LVALUE_CAST_B_FIXIDX,
8950     RS6000_DOUBLE_FIXIDX,
8951     RS6000_FCHMOD_FIXIDX,
8952     RS6000_PARAM_FIXIDX,
8953     SOLARIS___RESTRICT_FIXIDX,
8954     SOLARIS_COMPLEX_FIXIDX,
8955     SOLARIS_COMPLEX_CXX_FIXIDX,
8956     SOLARIS_CXX_LINKAGE_FIXIDX,
8957     SOLARIS_GETC_STRICT_STDC_FIXIDX,
8958     SOLARIS_LONGJMP_NORETURN_FIXIDX,
8959     SOLARIS_MATH_1_FIXIDX,
8960     SOLARIS_MATH_2_FIXIDX,
8961     SOLARIS_MATH_3_FIXIDX,
8962     SOLARIS_MATH_4_FIXIDX,
8963     SOLARIS_MATH_8_FIXIDX,
8964     SOLARIS_MATH_9_FIXIDX,
8965     SOLARIS_MATH_10_FIXIDX,
8966     SOLARIS_MUTEX_INIT_2_FIXIDX,
8967     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
8968     SOLARIS_RWLOCK_INIT_1_FIXIDX,
8969     SOLARIS_ONCE_INIT_1_FIXIDX,
8970     SOLARIS_ONCE_INIT_2_FIXIDX,
8971     SOLARIS_INT_CONST_FIXIDX,
8972     SOLARIS_INT_LIMITS_1_FIXIDX,
8973     SOLARIS_INT_LIMITS_2_FIXIDX,
8974     SOLARIS_INT_LIMITS_3_FIXIDX,
8975     SOLARIS_INT_TYPES_FIXIDX,
8976     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
8977     SOLARIS_STD___FILBUF_FIXIDX,
8978     SOLARIS_STDIO_TAG_FIXIDX,
8979     SOLARIS_SYS_VA_LIST_FIXIDX,
8980     STATSSWTCH_FIXIDX,
8981     STDIO_STDARG_H_FIXIDX,
8982     STDIO_VA_LIST_FIXIDX,
8983     STDIO_VA_LIST_CLIENTS_FIXIDX,
8984     STRICT_ANSI_NOT_FIXIDX,
8985     STRICT_ANSI_NOT_CTD_FIXIDX,
8986     STRICT_ANSI_ONLY_FIXIDX,
8987     STRUCT_FILE_FIXIDX,
8988     STRUCT_SOCKADDR_FIXIDX,
8989     SUN_AUTH_PROTO_FIXIDX,
8990     SUN_BOGUS_IFDEF_FIXIDX,
8991     SUN_CATMACRO_FIXIDX,
8992     SUN_MALLOC_FIXIDX,
8993     SUN_RUSERS_SEMI_FIXIDX,
8994     SUN_SIGNAL_FIXIDX,
8995     SUNOS_STRLEN_FIXIDX,
8996     SVR4_DISABLE_OPT_FIXIDX,
8997     SVR4_GETCWD_FIXIDX,
8998     SVR4_PROFIL_FIXIDX,
8999     SVR4_SIGHANDLER_TYPE_FIXIDX,
9000     SVR4_UNDECLARED_GETRNGE_FIXIDX,
9001     SYSV68_STRING_FIXIDX,
9002     SYSZ_STDLIB_FOR_SUN_FIXIDX,
9003     THREAD_KEYWORD_FIXIDX,
9004     TINFO_CPLUSPLUS_FIXIDX,
9005     ULTRIX_CONST_FIXIDX,
9006     ULTRIX_CONST2_FIXIDX,
9007     VA_I960_MACRO_FIXIDX,
9008     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9009     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9010     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9011     VMS_USE_QUOTED_INCLUDE_FIXIDX,
9012     VMS_ADD_MISSING_BRACES_FIXIDX,
9013     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
9014     VMS_DECC_BUILTIN_FIXIDX,
9015     VMS_NO_64BIT_GETOPT_FIXIDX,
9016     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
9017     VMS_USE_FAST_SETJMP_FIXIDX,
9018     VOID_NULL_FIXIDX,
9019     VXWORKS_GCC_PROBLEM_FIXIDX,
9020     VXWORKS_NEEDS_VXTYPES_FIXIDX,
9021     VXWORKS_NEEDS_VXWORKS_FIXIDX,
9022     VXWORKS_TIME_FIXIDX,
9023     X11_CLASS_FIXIDX,
9024     X11_CLASS_USAGE_FIXIDX,
9025     X11_NEW_FIXIDX,
9026     X11_SPRINTF_FIXIDX
9027 } t_fixinc_idx;
9029 tFixDesc fixDescList[ FIX_COUNT ] = {
9030   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
9031      apzAab_Aix_StdioMachs,
9032      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9033      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
9035   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
9036      apzAab_Aix_FcntlMachs,
9037      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9038      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
9040   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
9041      apzAab_Darwin7_9_Long_Double_FuncsMachs,
9042      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9043      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9045   {  zAab_Darwin7_9_Long_Double_Funcs_2Name,    zAab_Darwin7_9_Long_Double_Funcs_2List,
9046      apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
9047      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9048      aAab_Darwin7_9_Long_Double_Funcs_2Tests,   apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
9050   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
9051      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9052      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9053      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9055   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
9056      apzAab_Fd_Zero_Gnu_Types_HMachs,
9057      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9058      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9060   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
9061      apzAab_Fd_Zero_Selectbits_HMachs,
9062      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9063      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9065   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
9066      apzAab_Solaris_Sys_Varargs_HMachs,
9067      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9068      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9070   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
9071      apzAab_Sun_MemcpyMachs,
9072      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9073      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
9075   {  zAix_ComplexName,    zAix_ComplexList,
9076      apzAix_ComplexMachs,
9077      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9078      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
9080   {  zAix_MallocName,    zAix_MallocList,
9081      apzAix_MallocMachs,
9082      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9083      aAix_MallocTests,   apzAix_MallocPatch, 0 },
9085   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
9086      apzAix_Net_If_ArpMachs,
9087      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9088      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
9090   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
9091      apzAix_Once_Init_1Machs,
9092      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9093      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
9095   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
9096      apzAix_Once_Init_2Machs,
9097      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9098      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
9100   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
9101      apzAix_Mutex_Initializer_1Machs,
9102      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9103      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
9105   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
9106      apzAix_Cond_Initializer_1Machs,
9107      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9108      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
9110   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
9111      apzAix_Rwlock_Initializer_1Machs,
9112      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9113      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
9115   {  zAix_PthreadName,    zAix_PthreadList,
9116      apzAix_PthreadMachs,
9117      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9118      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
9120   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
9121      apzAix_Stdint_1Machs,
9122      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9123      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
9125   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
9126      apzAix_Stdint_2Machs,
9127      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9128      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
9130   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
9131      apzAix_Stdint_3Machs,
9132      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9133      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
9135   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
9136      apzAix_Stdint_4Machs,
9137      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9138      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
9140   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
9141      apzAix_Stdint_5Machs,
9142      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9143      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
9145   {  zAix_SysmachineName,    zAix_SysmachineList,
9146      apzAix_SysmachineMachs,
9147      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9148      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
9150   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
9151      apzAix_Syswait_2Machs,
9152      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9153      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
9155   {  zAix_VolatileName,    zAix_VolatileList,
9156      apzAix_VolatileMachs,
9157      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9158      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
9160   {  zAlpha___AssertName,    zAlpha___AssertList,
9161      apzAlpha___AssertMachs,
9162      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9163      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
9165   {  zAlpha_AssertName,    zAlpha_AssertList,
9166      apzAlpha_AssertMachs,
9167      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9168      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
9170   {  zAlpha_GetoptName,    zAlpha_GetoptList,
9171      apzAlpha_GetoptMachs,
9172      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9173      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
9175   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
9176      apzAlpha_If_SemicolonMachs,
9177      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9178      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
9180   {  zAlpha_ParensName,    zAlpha_ParensList,
9181      apzAlpha_ParensMachs,
9182      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9183      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
9185   {  zAlpha_SbrkName,    zAlpha_SbrkList,
9186      apzAlpha_SbrkMachs,
9187      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9188      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
9190   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
9191      apzAvoid_Bool_DefineMachs,
9192      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9193      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
9195   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
9196      apzAvoid_Bool_TypeMachs,
9197      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9198      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
9200   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
9201      apzAvoid_Wchar_T_TypeMachs,
9202      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9203      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
9205   {  zBad_Struct_TermName,    zBad_Struct_TermList,
9206      apzBad_Struct_TermMachs,
9207      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9208      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
9210   {  zBadquoteName,    zBadquoteList,
9211      apzBadquoteMachs,
9212      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9213      aBadquoteTests,   apzBadquotePatch, 0 },
9215   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
9216      apzBroken_Assert_StdioMachs,
9217      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9218      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
9220   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
9221      apzBroken_Assert_StdlibMachs,
9222      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9223      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
9225   {  zBroken_CabsName,    zBroken_CabsList,
9226      apzBroken_CabsMachs,
9227      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9228      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
9230   {  zBroken_NanName,    zBroken_NanList,
9231      apzBroken_NanMachs,
9232      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9233      aBroken_NanTests,   apzBroken_NanPatch, 0 },
9235   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
9236      apzBsd_Stdio_Attrs_ConflictMachs,
9237      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9238      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9240   {  zCdef_CplusplusName,    zCdef_CplusplusList,
9241      apzCdef_CplusplusMachs,
9242      CDEF_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9243      aCdef_CplusplusTests,   apzCdef_CplusplusPatch, 0 },
9245   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
9246      apzCtrl_Quotes_DefMachs,
9247      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9248      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
9250   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
9251      apzCtrl_Quotes_UseMachs,
9252      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9253      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
9255   {  zCxx_UnreadyName,    zCxx_UnreadyList,
9256      apzCxx_UnreadyMachs,
9257      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9258      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
9260   {  zDarwin_ExterncName,    zDarwin_ExterncList,
9261      apzDarwin_ExterncMachs,
9262      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9263      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
9265   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
9266      apzDarwin_Gcc4_BreakageMachs,
9267      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9268      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
9270   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
9271      apzDarwin_Private_ExternMachs,
9272      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
9275   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
9276      apzDarwin_Stdint_1Machs,
9277      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9278      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
9280   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
9281      apzDarwin_Stdint_2Machs,
9282      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
9285   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
9286      apzDarwin_Stdint_3Machs,
9287      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9288      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
9290   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
9291      apzDarwin_Stdint_4Machs,
9292      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9293      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
9295   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
9296      apzDarwin_Stdint_5Machs,
9297      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9298      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
9300   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
9301      apzDarwin_Stdint_6Machs,
9302      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9303      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
9305   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
9306      apzDarwin_Stdint_7Machs,
9307      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
9310   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9311      apzDec_Intern_AsmMachs,
9312      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9313      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9315   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9316      apzDjgpp_Wchar_HMachs,
9317      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9318      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9320   {  zEcd_CursorName,    zEcd_CursorList,
9321      apzEcd_CursorMachs,
9322      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9323      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9325   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9326      apzFreebsd_Gcc3_BreakageMachs,
9327      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9328      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9330   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9331      apzFreebsd_Gcc4_BreakageMachs,
9332      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9335   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9336      apzGlibc_C99_Inline_1Machs,
9337      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9340   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
9341      apzGlibc_C99_Inline_1aMachs,
9342      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
9345   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9346      apzGlibc_C99_Inline_2Machs,
9347      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9348      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9350   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9351      apzGlibc_C99_Inline_3Machs,
9352      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9355   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9356      apzGlibc_C99_Inline_4Machs,
9357      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9360   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9361      apzGlibc_Mutex_InitMachs,
9362      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9363      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9365   {  zGlibc_StdintName,    zGlibc_StdintList,
9366      apzGlibc_StdintMachs,
9367      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
9370   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
9371      apzGlibc_StrncpyMachs,
9372      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
9375   {  zGlibc_TgmathName,    zGlibc_TgmathList,
9376      apzGlibc_TgmathMachs,
9377      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
9380   {  zGnu_TypesName,    zGnu_TypesList,
9381      apzGnu_TypesMachs,
9382      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9383      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9385   {  zHp_InlineName,    zHp_InlineList,
9386      apzHp_InlineMachs,
9387      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9390   {  zHp_SysfileName,    zHp_SysfileList,
9391      apzHp_SysfileMachs,
9392      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
9395   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
9396      apzHppa_Hpux_Fp_MacrosMachs,
9397      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
9400   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
9401      apzHpux10_Cpp_Pow_InlineMachs,
9402      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
9405   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
9406      apzHpux11_Cpp_Pow_InlineMachs,
9407      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
9410   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
9411      apzHpux10_Ctype_Declarations1Machs,
9412      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
9415   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
9416      apzHpux10_Ctype_Declarations2Machs,
9417      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
9420   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
9421      apzHpux10_Stdio_DeclarationsMachs,
9422      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
9425   {  zHpux11_AbsName,    zHpux11_AbsList,
9426      apzHpux11_AbsMachs,
9427      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
9430   {  zHpux11_FabsfName,    zHpux11_FabsfList,
9431      apzHpux11_FabsfMachs,
9432      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
9435   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
9436      apzHpux11_Pthread_ConstMachs,
9437      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
9440   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9441      apzHpux11_Size_TMachs,
9442      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9445   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9446      apzHpux11_SnprintfMachs,
9447      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9450   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9451      apzHpux11_VsnprintfMachs,
9452      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9453      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9455   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9456      apzHpux8_Bogus_InlinesMachs,
9457      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9458      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9460   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9461      apzHpux_Ctype_MacrosMachs,
9462      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9465   {  zHpux_HtonlName,    zHpux_HtonlList,
9466      apzHpux_HtonlMachs,
9467      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9470   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9471      apzHpux_Long_DoubleMachs,
9472      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9473      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9475   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
9476      apzHpux_Long_Double_2Machs,
9477      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9478      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
9480   {  zHpux_SystimeName,    zHpux_SystimeList,
9481      apzHpux_SystimeMachs,
9482      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9485   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9486      apzHpux_Spu_InfoMachs,
9487      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9490   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9491      apzHpux11_Extern_SendfileMachs,
9492      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9495   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9496      apzHpux11_Extern_SendpathMachs,
9497      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9500   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9501      apzHpux_Extern_ErrnoMachs,
9502      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9505   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
9506      apzHpux_Pthread_InitializersMachs,
9507      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9508      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
9510   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
9511      apzHpux_C99_IntptrMachs,
9512      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9513      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
9515   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
9516      apzHpux_C99_InttypesMachs,
9517      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9518      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
9520   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
9521      apzHpux_C99_Inttypes2Machs,
9522      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9523      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
9525   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
9526      apzHpux_Stdint_Least_FastMachs,
9527      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
9530   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
9531      apzHpux_Inttype_Int8_TMachs,
9532      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
9535   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
9536      apzHpux_Imaginary_IMachs,
9537      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
9540   {  zHuge_Val_HexName,    zHuge_Val_HexList,
9541      apzHuge_Val_HexMachs,
9542      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
9545   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
9546      apzHuge_Valf_HexMachs,
9547      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
9550   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
9551      apzHuge_Vall_HexMachs,
9552      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
9555   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
9556      apzInt_Abort_Free_And_ExitMachs,
9557      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9558      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
9560   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
9561      apzIo_Quotes_DefMachs,
9562      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
9565   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
9566      apzIo_Quotes_UseMachs,
9567      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
9570   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
9571      apzIp_Missing_SemiMachs,
9572      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9573      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
9575   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
9576      apzIrix_Limits_ConstMachs,
9577      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
9580   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
9581      apzIrix_Stdio_Va_ListMachs,
9582      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
9585   {  zKandr_ConcatName,    zKandr_ConcatList,
9586      apzKandr_ConcatMachs,
9587      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
9590   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
9591      apzLinux_Ia64_UcontextMachs,
9592      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
9595   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
9596      apzLynxos_No_Warning_In_Sys_Time_HMachs,
9597      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9600   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
9601      apzLynxos_Missing_PutenvMachs,
9602      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
9605   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
9606      apzMachine_Ansi_H_Va_ListMachs,
9607      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
9610   {  zMachine_NameName,    zMachine_NameList,
9611      apzMachine_NameMachs,
9612      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aMachine_NameTests,   apzMachine_NamePatch, 0 },
9615   {  zMath_ExceptionName,    zMath_ExceptionList,
9616      apzMath_ExceptionMachs,
9617      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
9620   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
9621      apzMath_Huge_Val_From_Dbl_MaxMachs,
9622      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9623      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9625   {  zNested_Auth_DesName,    zNested_Auth_DesList,
9626      apzNested_Auth_DesMachs,
9627      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
9630   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
9631      apzNetbsd_C99_Inline_1Machs,
9632      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
9635   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
9636      apzNetbsd_C99_Inline_2Machs,
9637      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
9640   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
9641      apzNetbsd_Extra_SemicolonMachs,
9642      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
9645   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
9646      apzNewlib_Stdint_1Machs,
9647      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9648      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
9650   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
9651      apzNewlib_Stdint_2Machs,
9652      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
9655   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
9656      apzNext_Math_PrefixMachs,
9657      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
9660   {  zNext_TemplateName,    zNext_TemplateList,
9661      apzNext_TemplateMachs,
9662      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
9665   {  zNext_VolitileName,    zNext_VolitileList,
9666      apzNext_VolitileMachs,
9667      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
9670   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
9671      apzNext_Wait_UnionMachs,
9672      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
9675   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
9676      apzNodeent_SyntaxMachs,
9677      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
9680   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
9681      apzOpenbsd_Null_DefinitionMachs,
9682      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
9685   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
9686      apzObstack_Lvalue_CastMachs,
9687      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
9690   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
9691      apzOpenbsd_Va_StartMachs,
9692      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
9695   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
9696      apzOsf_Namespace_AMachs,
9697      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
9700   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
9701      apzOsf_Namespace_CMachs,
9702      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
9705   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
9706      apzPthread_Incomplete_Struct_ArgumentMachs,
9707      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9710   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
9711      apzRead_Ret_TypeMachs,
9712      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
9715   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
9716      apzRpc_Xdr_Lvalue_Cast_AMachs,
9717      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9720   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
9721      apzRpc_Xdr_Lvalue_Cast_BMachs,
9722      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9725   {  zRs6000_DoubleName,    zRs6000_DoubleList,
9726      apzRs6000_DoubleMachs,
9727      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
9730   {  zRs6000_FchmodName,    zRs6000_FchmodList,
9731      apzRs6000_FchmodMachs,
9732      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
9735   {  zRs6000_ParamName,    zRs6000_ParamList,
9736      apzRs6000_ParamMachs,
9737      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
9740   {  zSolaris___RestrictName,    zSolaris___RestrictList,
9741      apzSolaris___RestrictMachs,
9742      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
9745   {  zSolaris_ComplexName,    zSolaris_ComplexList,
9746      apzSolaris_ComplexMachs,
9747      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
9748      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
9750   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
9751      apzSolaris_Complex_CxxMachs,
9752      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
9753      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
9755   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
9756      apzSolaris_Cxx_LinkageMachs,
9757      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
9760   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
9761      apzSolaris_Getc_Strict_StdcMachs,
9762      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9763      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
9765   {  zSolaris_Longjmp_NoreturnName,    zSolaris_Longjmp_NoreturnList,
9766      apzSolaris_Longjmp_NoreturnMachs,
9767      SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768      aSolaris_Longjmp_NoreturnTests,   apzSolaris_Longjmp_NoreturnPatch, 0 },
9770   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
9771      apzSolaris_Math_1Machs,
9772      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
9775   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
9776      apzSolaris_Math_2Machs,
9777      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
9780   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
9781      apzSolaris_Math_3Machs,
9782      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
9785   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
9786      apzSolaris_Math_4Machs,
9787      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
9790   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
9791      apzSolaris_Math_8Machs,
9792      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
9795   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
9796      apzSolaris_Math_9Machs,
9797      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
9800   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
9801      apzSolaris_Math_10Machs,
9802      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
9805   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
9806      apzSolaris_Mutex_Init_2Machs,
9807      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
9810   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
9811      apzSolaris_Pow_Int_OverloadMachs,
9812      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
9815   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
9816      apzSolaris_Rwlock_Init_1Machs,
9817      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
9820   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
9821      apzSolaris_Once_Init_1Machs,
9822      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
9825   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
9826      apzSolaris_Once_Init_2Machs,
9827      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
9830   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
9831      apzSolaris_Int_ConstMachs,
9832      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
9835   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
9836      apzSolaris_Int_Limits_1Machs,
9837      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
9840   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
9841      apzSolaris_Int_Limits_2Machs,
9842      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
9845   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
9846      apzSolaris_Int_Limits_3Machs,
9847      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
9850   {  zSolaris_Int_TypesName,    zSolaris_Int_TypesList,
9851      apzSolaris_Int_TypesMachs,
9852      SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853      aSolaris_Int_TypesTests,   apzSolaris_Int_TypesPatch, 0 },
9855   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
9856      apzSolaris_Posix_Spawn_RestrictMachs,
9857      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
9860   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
9861      apzSolaris_Std___FilbufMachs,
9862      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
9865   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
9866      apzSolaris_Stdio_TagMachs,
9867      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9868      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
9870   {  zSolaris_Sys_Va_ListName,    zSolaris_Sys_Va_ListList,
9871      apzSolaris_Sys_Va_ListMachs,
9872      SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9873      aSolaris_Sys_Va_ListTests,   apzSolaris_Sys_Va_ListPatch, 0 },
9875   {  zStatsswtchName,    zStatsswtchList,
9876      apzStatsswtchMachs,
9877      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9878      aStatsswtchTests,   apzStatsswtchPatch, 0 },
9880   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
9881      apzStdio_Stdarg_HMachs,
9882      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9883      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
9885   {  zStdio_Va_ListName,    zStdio_Va_ListList,
9886      apzStdio_Va_ListMachs,
9887      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9888      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
9890   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
9891      apzStdio_Va_List_ClientsMachs,
9892      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9893      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
9895   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
9896      apzStrict_Ansi_NotMachs,
9897      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
9900   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
9901      apzStrict_Ansi_Not_CtdMachs,
9902      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
9905   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
9906      apzStrict_Ansi_OnlyMachs,
9907      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
9910   {  zStruct_FileName,    zStruct_FileList,
9911      apzStruct_FileMachs,
9912      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913      aStruct_FileTests,   apzStruct_FilePatch, 0 },
9915   {  zStruct_SockaddrName,    zStruct_SockaddrList,
9916      apzStruct_SockaddrMachs,
9917      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9918      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
9920   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
9921      apzSun_Auth_ProtoMachs,
9922      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9923      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
9925   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
9926      apzSun_Bogus_IfdefMachs,
9927      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
9930   {  zSun_CatmacroName,    zSun_CatmacroList,
9931      apzSun_CatmacroMachs,
9932      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
9935   {  zSun_MallocName,    zSun_MallocList,
9936      apzSun_MallocMachs,
9937      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9938      aSun_MallocTests,   apzSun_MallocPatch, 0 },
9940   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
9941      apzSun_Rusers_SemiMachs,
9942      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9943      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
9945   {  zSun_SignalName,    zSun_SignalList,
9946      apzSun_SignalMachs,
9947      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9948      aSun_SignalTests,   apzSun_SignalPatch, 0 },
9950   {  zSunos_StrlenName,    zSunos_StrlenList,
9951      apzSunos_StrlenMachs,
9952      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9953      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
9955   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
9956      apzSvr4_Disable_OptMachs,
9957      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9958      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
9960   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
9961      apzSvr4_GetcwdMachs,
9962      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9963      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
9965   {  zSvr4_ProfilName,    zSvr4_ProfilList,
9966      apzSvr4_ProfilMachs,
9967      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9968      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
9970   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
9971      apzSvr4_Sighandler_TypeMachs,
9972      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
9975   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
9976      apzSvr4_Undeclared_GetrngeMachs,
9977      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
9980   {  zSysv68_StringName,    zSysv68_StringList,
9981      apzSysv68_StringMachs,
9982      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9983      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
9985   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
9986      apzSysz_Stdlib_For_SunMachs,
9987      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
9990   {  zThread_KeywordName,    zThread_KeywordList,
9991      apzThread_KeywordMachs,
9992      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
9995   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
9996      apzTinfo_CplusplusMachs,
9997      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
10000   {  zUltrix_ConstName,    zUltrix_ConstList,
10001      apzUltrix_ConstMachs,
10002      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10003      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
10005   {  zUltrix_Const2Name,    zUltrix_Const2List,
10006      apzUltrix_Const2Machs,
10007      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10008      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
10010   {  zVa_I960_MacroName,    zVa_I960_MacroList,
10011      apzVa_I960_MacroMachs,
10012      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10013      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
10015   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
10016      apzVms_Define_Can_Use_Extern_PrefixMachs,
10017      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10020   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
10021      apzVms_Use_Pragma_Extern_ModelMachs,
10022      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10025   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
10026      apzVms_Disable_Decc_String_BuiltinsMachs,
10027      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10030   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
10031      apzVms_Use_Quoted_IncludeMachs,
10032      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
10035   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
10036      apzVms_Add_Missing_BracesMachs,
10037      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
10040   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
10041      apzVms_Do_Not_Redeclare_HostaliasMachs,
10042      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
10045   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
10046      apzVms_Decc_BuiltinMachs,
10047      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
10048      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
10050   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
10051      apzVms_No_64bit_GetoptMachs,
10052      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10053      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
10055   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
10056      apzVms_Forward_Declare_StructMachs,
10057      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10058      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
10060   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
10061      apzVms_Use_Fast_SetjmpMachs,
10062      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10063      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
10065   {  zVoid_NullName,    zVoid_NullList,
10066      apzVoid_NullMachs,
10067      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068      aVoid_NullTests,   apzVoid_NullPatch, 0 },
10070   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
10071      apzVxworks_Gcc_ProblemMachs,
10072      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10073      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
10075   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
10076      apzVxworks_Needs_VxtypesMachs,
10077      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
10080   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
10081      apzVxworks_Needs_VxworksMachs,
10082      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10083      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
10085   {  zVxworks_TimeName,    zVxworks_TimeList,
10086      apzVxworks_TimeMachs,
10087      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
10090   {  zX11_ClassName,    zX11_ClassList,
10091      apzX11_ClassMachs,
10092      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093      aX11_ClassTests,   apzX11_ClassPatch, 0 },
10095   {  zX11_Class_UsageName,    zX11_Class_UsageList,
10096      apzX11_Class_UsageMachs,
10097      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
10100   {  zX11_NewName,    zX11_NewList,
10101      apzX11_NewMachs,
10102      X11_NEW_TEST_CT, FD_MACH_ONLY,
10103      aX11_NewTests,   apzX11_NewPatch, 0 },
10105   {  zX11_SprintfName,    zX11_SprintfList,
10106      apzX11_SprintfMachs,
10107      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10108      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }