Daily bump.
[official-gcc.git] / fixincludes / fixincl.x
blobe28a84267fe0cb63fc90fcd3a8bf24c7e879061b
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  Thursday May 16, 2013 at 03:34:25 PM MEST
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Thu May 16 15:34:25 MEST 2013
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 226 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_Fd_Zero_Asm_Posix_Types_H fix
273  */
274 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
275      "AAB_fd_zero_asm_posix_types_h";
278  *  File name selection pattern
279  */
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
281   "asm/posix_types.h\0";
283  *  Machine/OS name selection pattern
284  */
285 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
286         "i[34567]86-*-linux*",
287         (const char*)NULL };
290  *  content bypass pattern - skip fix if pattern found
291  */
292 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
293        "} while";
294 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
295        "x86_64";
296 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
297        "posix_types_64";
299 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  3
300 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
301   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
302   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
303   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
306  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
307  */
308 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
309 "/* This file fixes a bug in the __FD_ZERO macro\n\
310    for older versions of the Linux kernel. */\n\
311 #ifndef _POSIX_TYPES_H_WRAPPER\n\
312 #include <features.h>\n\
313  #include_next <asm/posix_types.h>\n\n\
314 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
315 #undef __FD_ZERO\n\
316 #define __FD_ZERO(fdsetp) \\\n\
317   do { \\\n\
318     int __d0, __d1; \\\n\
319 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
320 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
321 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
322   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
323   } while (0)\n\
324 #endif\n\n\
325 #define _POSIX_TYPES_H_WRAPPER\n\
326 #endif /* _POSIX_TYPES_H_WRAPPER */",
327     (char*)NULL };
329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
331  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
332  */
333 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
334      "AAB_fd_zero_gnu_types_h";
337  *  File name selection pattern
338  */
339 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
340   "gnu/types.h\0";
342  *  Machine/OS name selection pattern
343  */
344 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
345         "i[34567]86-*-linux*",
346         (const char*)NULL };
347 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
348 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
351  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
352  */
353 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
354 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
355 #ifndef _TYPES_H_WRAPPER\n\
356 #include <features.h>\n\
357 #include_next <gnu/types.h>\n\n\
358 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
359 #undef __FD_ZERO\n\
360 # define __FD_ZERO(fdsetp) \\\n\
361   do { \\\n\
362     int __d0, __d1; \\\n\
363         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
364         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
365         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
366           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
367   } while (0)\n\
368 #endif\n\n\
369 #define _TYPES_H_WRAPPER\n\
370 #endif /* _TYPES_H_WRAPPER */",
371     (char*)NULL };
373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
375  *  Description of Aab_Fd_Zero_Selectbits_H fix
376  */
377 tSCC zAab_Fd_Zero_Selectbits_HName[] =
378      "AAB_fd_zero_selectbits_h";
381  *  File name selection pattern
382  */
383 tSCC zAab_Fd_Zero_Selectbits_HList[] =
384   "selectbits.h\0";
386  *  Machine/OS name selection pattern
387  */
388 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
389         "i[34567]86-*-linux*",
390         (const char*)NULL };
391 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
392 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
395  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
396  */
397 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
398 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
399 #ifndef _SELECTBITS_H_WRAPPER\n\
400   #include <features.h>\n\
401   #include_next <selectbits.h>\n\n\
402   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
403   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
404   && __GLIBC_MINOR__ == 0\n\
405      #undef __FD_ZERO\n\
406      #define __FD_ZERO(fdsetp) \\\\\n\
407      do { \\\\\n\
408         int __d0, __d1; \\\\\n\
409       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
410                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
411                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
412                                         / sizeof (__fd_mask)), \\\\\n\
413                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
414                         : \"memory\"); \\\\\n\
415       } while (0)\n\
416   #endif\n\n\
417   #define _SELECTBITS_H_WRAPPER\n\
418 #endif /* _SELECTBITS_H_WRAPPER */",
419     (char*)NULL };
421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
423  *  Description of Aab_Solaris_Sys_Varargs_H fix
424  */
425 tSCC zAab_Solaris_Sys_Varargs_HName[] =
426      "AAB_solaris_sys_varargs_h";
429  *  File name selection pattern
430  */
431 tSCC zAab_Solaris_Sys_Varargs_HList[] =
432   "sys/varargs.h\0";
434  *  Machine/OS name selection pattern
435  */
436 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
437         "*-*-solaris*",
438         (const char*)NULL };
439 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
440 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
443  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
444  */
445 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
446 "#ifdef __STDC__\n\
447   #include <stdarg.h>\n\
448 #else\n\
449   #include <varargs.h>\n\
450 #endif",
451     (char*)NULL };
453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
455  *  Description of Aab_Sun_Memcpy fix
456  */
457 tSCC zAab_Sun_MemcpyName[] =
458      "AAB_sun_memcpy";
461  *  File name selection pattern
462  */
463 tSCC zAab_Sun_MemcpyList[] =
464   "memory.h\0";
466  *  Machine/OS name selection pattern
467  */
468 #define apzAab_Sun_MemcpyMachs (const char**)NULL
471  *  content selection pattern - do fix if pattern found
472  */
473 tSCC zAab_Sun_MemcpySelect0[] =
474        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
476 #define    AAB_SUN_MEMCPY_TEST_CT  1
477 static tTestDesc aAab_Sun_MemcpyTests[] = {
478   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
481  *  Fix Command Arguments for Aab_Sun_Memcpy
482  */
483 static const char* apzAab_Sun_MemcpyPatch[] = {
484 "/* This file was generated by fixincludes */\n\
485 #ifndef __memory_h__\n\
486   #define __memory_h__\n\n\
487   #ifdef __STDC__\n\
488     extern void *memccpy();\n\
489     extern void *memchr();\n\
490     extern void *memcpy();\n\
491     extern void *memset();\n\
492   #else\n\
493     extern char *memccpy();\n\
494     extern char *memchr();\n\
495     extern char *memcpy();\n\
496     extern char *memset();\n\
497   #endif /* __STDC__ */\n\n\
498   extern int memcmp();\n\n\
499 #endif /* __memory_h__ */",
500     (char*)NULL };
502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
504  *  Description of Aab_Vxworks_Assert fix
505  */
506 tSCC zAab_Vxworks_AssertName[] =
507      "AAB_vxworks_assert";
510  *  File name selection pattern
511  */
512 tSCC zAab_Vxworks_AssertList[] =
513   "assert.h\0";
515  *  Machine/OS name selection pattern
516  */
517 tSCC* apzAab_Vxworks_AssertMachs[] = {
518         "*-*-vxworks*",
519         (const char*)NULL };
520 #define AAB_VXWORKS_ASSERT_TEST_CT  0
521 #define aAab_Vxworks_AssertTests   (tTestDesc*)NULL
524  *  Fix Command Arguments for Aab_Vxworks_Assert
525  */
526 static const char* apzAab_Vxworks_AssertPatch[] = {
527 "#ifndef _ASSERT_H\n\
528 #define _ASSERT_H\n\n\
529 #ifdef assert\n\
530 #undef assert\n\
531 #endif\n\n\
532 #if defined(__STDC__) || defined(__cplusplus)\n\
533 extern void __assert (const char*);\n\
534 #else\n\
535 extern void __assert ();\n\
536 #endif\n\n\
537 #ifdef NDEBUG\n\
538 #define assert(ign) ((void)0)\n\
539 #else\n\n\
540 #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
541 #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
542 #define assert(test) ((void) \\\n\
543         ((test) ? ((void)0) : \\\n\
544         __assert(\"Assertion failed: \" ASSERT_STRINGIFY(test) \", file \" \\\n\
545         __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
546 #endif\n\n\
547 #endif",
548     (char*)NULL };
550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
552  *  Description of Aab_Vxworks_Regs_Vxtypes fix
553  */
554 tSCC zAab_Vxworks_Regs_VxtypesName[] =
555      "AAB_vxworks_regs_vxtypes";
558  *  File name selection pattern
559  */
560 tSCC zAab_Vxworks_Regs_VxtypesList[] =
561   "regs.h\0";
563  *  Machine/OS name selection pattern
564  */
565 tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
566         "*-*-vxworks*",
567         (const char*)NULL };
568 #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT  0
569 #define aAab_Vxworks_Regs_VxtypesTests   (tTestDesc*)NULL
572  *  Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
573  */
574 static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
575 "#ifndef _REGS_H\n\
576 #define _REGS_H\n\
577 #include <types/vxTypesOld.h>\n\
578 #include_next <arch/../regs.h>\n\
579 #endif",
580     (char*)NULL };
582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
584  *  Description of Aab_Vxworks_Stdint fix
585  */
586 tSCC zAab_Vxworks_StdintName[] =
587      "AAB_vxworks_stdint";
590  *  File name selection pattern
591  */
592 tSCC zAab_Vxworks_StdintList[] =
593   "stdint.h\0";
595  *  Machine/OS name selection pattern
596  */
597 tSCC* apzAab_Vxworks_StdintMachs[] = {
598         "*-*-vxworks*",
599         (const char*)NULL };
600 #define AAB_VXWORKS_STDINT_TEST_CT  0
601 #define aAab_Vxworks_StdintTests   (tTestDesc*)NULL
604  *  Fix Command Arguments for Aab_Vxworks_Stdint
605  */
606 static const char* apzAab_Vxworks_StdintPatch[] = {
607 "#ifndef _STDINT_H\n\
608 #define _STDINT_H\n\
609 /* get int*_t, uint*_t */\n\
610 #include <types/vxTypes.h>\n\n\
611 /* get legacy vxworks types for compatibility */\n\
612 #include <types/vxTypesOld.h>\n\n\
613 typedef long intptr_t;\n\
614 typedef unsigned long uintptr_t;\n\n\
615 typedef int64_t intmax_t;\n\
616 typedef uint64_t uintmax_t;\n\n\
617 typedef int8_t int_least8_t;\n\
618 typedef int16_t int_least16_t;\n\
619 typedef int32_t int_least32_t;\n\
620 typedef int64_t int_least64_t;\n\n\
621 typedef uint8_t uint_least8_t;\n\
622 typedef uint16_t uint_least16_t;\n\
623 typedef uint32_t uint_least32_t;\n\
624 typedef uint64_t uint_least64_t;\n\n\
625 typedef int8_t int_fast8_t;\n\
626 typedef int int_fast16_t;\n\
627 typedef int32_t int_fast32_t;\n\
628 typedef int64_t int_fast64_t;\n\n\
629 typedef uint8_t uint_fast8_t;\n\
630 typedef unsigned int uint_fast16_t;\n\
631 typedef uint32_t uint_fast32_t;\n\
632 typedef uint64_t uint_fast64_t;\n\n\
633 /* Ranges */\n\
634 #define UINT8_MAX (~(uint8_t)0)\n\
635 #define UINT8_MIN 0\n\
636 #define UINT16_MAX (~(uint16_t)0)\n\
637 #define UINT16_MIN 0\n\
638 #define UINT32_MAX (~(uint32_t)0)\n\
639 #define UINT32_MIN 0\n\
640 #define UINT64_MAX (~(uint64_t)0)\n\
641 #define UINT64_MIN 0\n\n\
642 #define UINTPTR_MAX (~(uintptr_t)0)\n\
643 #define UINTPTR_MIN 0\n\n\
644 /* Need to do int_fast16_t as well, as type\n\
645    size may be architecture dependent */\n\
646 #define UINT_FAST16_MAX (~(uint_fast16_t)0)\n\
647 #define UINT_FAST16_MAX 0\n\n\
648 #define INT8_MAX (UINT8_MAX>>1)\n\
649 #define INT8_MIN (INT8_MAX+1)\n\
650 #define INT16_MAX (UINT16_MAX>>1)\n\
651 #define INT16_MIN (INT16_MAX+1)\n\
652 #define INT32_MAX (UINT32_MAX>>1)\n\
653 #define INT32_MIN (INT32_MAX+1)\n\
654 #define INT64_MAX (UINT64_MAX>>1)\n\
655 #define INT64_MIN (INT64_MAX+1)\n\n\
656 #define INTPTR_MAX (UINTPTR_MAX>>1)\n\
657 #define INTPTR_MIN (INTPTR_MAX+1)\t\n\n\
658 #define INT_FAST16_MAX (UINT_FAST16_MAX>>1)\n\
659 #define INT_FAST16_MIN (INT_FAST16_MAX+1)\n\n\
660 /* now define equiv. constants */\n\
661 #define UINT_FAST8_MAX UINT8_MAX\n\
662 #define UINT_FAST8_MIN UINT_FAST8_MIN\n\
663 #define INT_FAST8_MAX INT8_MAX\n\
664 #define INT_FAST8_MIN INT8_MIN\n\
665 #define UINT_FAST32_MAX UINT32_MAX\n\
666 #define UINT_FAST32_MIN UINT32_MIN\n\
667 #define INT_FAST32_MAX INT32_MAX\n\
668 #define INT_FAST32_MIN INT32_MIN\n\
669 #define UINT_FAST64_MAX UINT64_MAX\n\
670 #define UINT_FAST64_MIN UINT64_MIN\n\
671 #define INT_FAST64_MAX INT64_MAX\n\
672 #define INT_FAST64_MIN INT64_MIN\n\n\
673 #define UINT_LEAST8_MAX UINT8_MAX\n\
674 #define UINT_LEAST8_MIN UINT8_MIN\n\
675 #define INT_LEAST8_MAX INT8_MAX\n\
676 #define INT_LEAST8_MIN INT8_MIN\n\
677 #define UINT_LEAST16_MAX UINT16_MAX\n\
678 #define UINT_LEAST16_MIN UINT16_MIN\n\
679 #define INT_LEAST16_MAX INT16_MAX\n\
680 #define INT_LEAST16_MIN INT16_MIN\n\
681 #define UINT_LEAST32_MAX UINT32_MAX\n\
682 #define UINT_LEAST32_MIN UINT32_MIN\n\
683 #define INT_LEAST32_MAX INT32_MAX\n\
684 #define INT_LEAST32_MIN INT32_MIN\n\
685 #define UINT_LEAST64_MAX UINT64_MAX\n\
686 #define UINT_LEAST64_MIN UINT64_MIN\n\
687 #define INT_LEAST64_MAX INT64_MAX\n\
688 #define INT_LEAST64_MIN INT64_MIN\n\n\
689 #define UINTMAX_MAX UINT64_MAX\n\
690 #define UINTMAX_MIN UINT64_MIN\n\
691 #define INTMAX_MAX INT64_MAX\n\
692 #define INTMAX_MIN INT64_MIN\n\n\
693 #endif",
694     (char*)NULL };
696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
698  *  Description of Aab_Vxworks_Unistd fix
699  */
700 tSCC zAab_Vxworks_UnistdName[] =
701      "AAB_vxworks_unistd";
704  *  File name selection pattern
705  */
706 tSCC zAab_Vxworks_UnistdList[] =
707   "unistd.h\0";
709  *  Machine/OS name selection pattern
710  */
711 tSCC* apzAab_Vxworks_UnistdMachs[] = {
712         "*-*-vxworks*",
713         (const char*)NULL };
714 #define AAB_VXWORKS_UNISTD_TEST_CT  0
715 #define aAab_Vxworks_UnistdTests   (tTestDesc*)NULL
718  *  Fix Command Arguments for Aab_Vxworks_Unistd
719  */
720 static const char* apzAab_Vxworks_UnistdPatch[] = {
721 "#ifndef _UNISTD_H\n\
722 #define _UNISTD_H\n\
723 #include_next <unistd.h>\n\
724 #include <ioLib.h>\n\
725 #ifndef STDIN_FILENO\n\
726 #define STDIN_FILENO 0\n\
727 #endif\n\
728 #ifndef STDOUT_FILENO\n\
729 #define STDOUT_FILENO 1\n\
730 #endif\n\
731 #ifndef STDERR_FILENO\n\
732 #define STDERR_FILENO 2\n\
733 #endif\n\
734 #endif /* _UNISTD_H */",
735     (char*)NULL };
737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
739  *  Description of Aix_Complex fix
740  */
741 tSCC zAix_ComplexName[] =
742      "aix_complex";
745  *  File name selection pattern
746  */
747 tSCC zAix_ComplexList[] =
748   "complex.h\0";
750  *  Machine/OS name selection pattern
751  */
752 tSCC* apzAix_ComplexMachs[] = {
753         "*-*-aix*",
754         (const char*)NULL };
757  *  content selection pattern - do fix if pattern found
758  */
759 tSCC zAix_ComplexSelect0[] =
760        "#define[ \t]_Complex_I[ \t]__I";
762 #define    AIX_COMPLEX_TEST_CT  1
763 static tTestDesc aAix_ComplexTests[] = {
764   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
767  *  Fix Command Arguments for Aix_Complex
768  */
769 static const char* apzAix_ComplexPatch[] = {
770     "format",
771     "#define _Complex_I (__extension__ 1.0iF)",
772     (char*)NULL };
774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
776  *  Description of Aix_Malloc fix
777  */
778 tSCC zAix_MallocName[] =
779      "aix_malloc";
782  *  File name selection pattern
783  */
784 tSCC zAix_MallocList[] =
785   "malloc.h\0";
787  *  Machine/OS name selection pattern
788  */
789 tSCC* apzAix_MallocMachs[] = {
790         "*-*-aix*",
791         (const char*)NULL };
794  *  content selection pattern - do fix if pattern found
795  */
796 tSCC zAix_MallocSelect0[] =
797        "#ifdef __cplusplus";
799 #define    AIX_MALLOC_TEST_CT  1
800 static tTestDesc aAix_MallocTests[] = {
801   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
804  *  Fix Command Arguments for Aix_Malloc
805  */
806 static const char* apzAix_MallocPatch[] = {
807     "format",
808     "#if (defined(__cplusplus) && defined(__IBMCPP__))",
809     (char*)NULL };
811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
813  *  Description of Aix_Net_If_Arp fix
814  */
815 tSCC zAix_Net_If_ArpName[] =
816      "aix_net_if_arp";
819  *  File name selection pattern
820  */
821 tSCC zAix_Net_If_ArpList[] =
822   "net/if_arp.h\0";
824  *  Machine/OS name selection pattern
825  */
826 tSCC* apzAix_Net_If_ArpMachs[] = {
827         "*-*-aix*",
828         (const char*)NULL };
831  *  content selection pattern - do fix if pattern found
832  */
833 tSCC zAix_Net_If_ArpSelect0[] =
834        "^struct  fc_softc \\{";
836 #define    AIX_NET_IF_ARP_TEST_CT  1
837 static tTestDesc aAix_Net_If_ArpTests[] = {
838   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
841  *  Fix Command Arguments for Aix_Net_If_Arp
842  */
843 static const char* apzAix_Net_If_ArpPatch[] = {
844     "format",
845     "typedef struct _fc_softc {",
846     (char*)NULL };
848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
850  *  Description of Aix_Once_Init_1 fix
851  */
852 tSCC zAix_Once_Init_1Name[] =
853      "aix_once_init_1";
856  *  File name selection pattern
857  */
858 tSCC zAix_Once_Init_1List[] =
859   "pthread.h\0";
861  *  Machine/OS name selection pattern
862  */
863 tSCC* apzAix_Once_Init_1Machs[] = {
864         "*-*-aix*",
865         (const char*)NULL };
868  *  content selection pattern - do fix if pattern found
869  */
870 tSCC zAix_Once_Init_1Select0[] =
871        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
872 \\{ \\\\\n";
874 #define    AIX_ONCE_INIT_1_TEST_CT  1
875 static tTestDesc aAix_Once_Init_1Tests[] = {
876   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
879  *  Fix Command Arguments for Aix_Once_Init_1
880  */
881 static const char* apzAix_Once_Init_1Patch[] = {
882     "format",
883     "#define PTHREAD_ONCE_INIT \\\n\
884 {{ \\\n",
885     (char*)NULL };
887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
889  *  Description of Aix_Once_Init_2 fix
890  */
891 tSCC zAix_Once_Init_2Name[] =
892      "aix_once_init_2";
895  *  File name selection pattern
896  */
897 tSCC zAix_Once_Init_2List[] =
898   "pthread.h\0";
900  *  Machine/OS name selection pattern
901  */
902 tSCC* apzAix_Once_Init_2Machs[] = {
903         "*-*-aix*",
904         (const char*)NULL };
907  *  content selection pattern - do fix if pattern found
908  */
909 tSCC zAix_Once_Init_2Select0[] =
910        "[ \t]0 \\\\\n\
911 \\}\n";
913 #define    AIX_ONCE_INIT_2_TEST_CT  1
914 static tTestDesc aAix_Once_Init_2Tests[] = {
915   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
918  *  Fix Command Arguments for Aix_Once_Init_2
919  */
920 static const char* apzAix_Once_Init_2Patch[] = {
921     "format",
922     "\t0 \\\n\
923 }}\n",
924     (char*)NULL };
926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
928  *  Description of Aix_Mutex_Initializer_1 fix
929  */
930 tSCC zAix_Mutex_Initializer_1Name[] =
931      "aix_mutex_initializer_1";
934  *  File name selection pattern
935  */
936 tSCC zAix_Mutex_Initializer_1List[] =
937   "pthread.h\0";
939  *  Machine/OS name selection pattern
940  */
941 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
942         "*-*-aix*",
943         (const char*)NULL };
946  *  content selection pattern - do fix if pattern found
947  */
948 tSCC zAix_Mutex_Initializer_1Select0[] =
949        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
950 \\{ \\\\\n";
952 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
953 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
954   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
957  *  Fix Command Arguments for Aix_Mutex_Initializer_1
958  */
959 static const char* apzAix_Mutex_Initializer_1Patch[] = {
960     "format",
961     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
962 {{ \\\n",
963     (char*)NULL };
965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
967  *  Description of Aix_Cond_Initializer_1 fix
968  */
969 tSCC zAix_Cond_Initializer_1Name[] =
970      "aix_cond_initializer_1";
973  *  File name selection pattern
974  */
975 tSCC zAix_Cond_Initializer_1List[] =
976   "pthread.h\0";
978  *  Machine/OS name selection pattern
979  */
980 tSCC* apzAix_Cond_Initializer_1Machs[] = {
981         "*-*-aix*",
982         (const char*)NULL };
985  *  content selection pattern - do fix if pattern found
986  */
987 tSCC zAix_Cond_Initializer_1Select0[] =
988        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
989 \\{ \\\\\n";
991 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
992 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
993   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
996  *  Fix Command Arguments for Aix_Cond_Initializer_1
997  */
998 static const char* apzAix_Cond_Initializer_1Patch[] = {
999     "format",
1000     "#define PTHREAD_COND_INITIALIZER \\\n\
1001 {{ \\\n",
1002     (char*)NULL };
1004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1006  *  Description of Aix_Rwlock_Initializer_1 fix
1007  */
1008 tSCC zAix_Rwlock_Initializer_1Name[] =
1009      "aix_rwlock_initializer_1";
1012  *  File name selection pattern
1013  */
1014 tSCC zAix_Rwlock_Initializer_1List[] =
1015   "pthread.h\0";
1017  *  Machine/OS name selection pattern
1018  */
1019 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1020         "*-*-aix*",
1021         (const char*)NULL };
1024  *  content selection pattern - do fix if pattern found
1025  */
1026 tSCC zAix_Rwlock_Initializer_1Select0[] =
1027        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1028 \\{ \\\\\n";
1030 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1031 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1032   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1035  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1036  */
1037 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1038     "format",
1039     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1040 {{ \\\n",
1041     (char*)NULL };
1043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1045  *  Description of Aix_Pthread fix
1046  */
1047 tSCC zAix_PthreadName[] =
1048      "aix_pthread";
1051  *  File name selection pattern
1052  */
1053 tSCC zAix_PthreadList[] =
1054   "pthread.h\0";
1056  *  Machine/OS name selection pattern
1057  */
1058 #define apzAix_PthreadMachs (const char**)NULL
1061  *  content selection pattern - do fix if pattern found
1062  */
1063 tSCC zAix_PthreadSelect0[] =
1064        "(#define [A-Za-z_0-9]+)(\\\\\n\
1065 [^A-Za-z_0-9 \t\n\
1066 (])";
1068 #define    AIX_PTHREAD_TEST_CT  1
1069 static tTestDesc aAix_PthreadTests[] = {
1070   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1073  *  Fix Command Arguments for Aix_Pthread
1074  */
1075 static const char* apzAix_PthreadPatch[] = {
1076     "format",
1077     "%1 %2",
1078     (char*)NULL };
1080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1082  *  Description of Aix_Stdint_1 fix
1083  */
1084 tSCC zAix_Stdint_1Name[] =
1085      "aix_stdint_1";
1088  *  File name selection pattern
1089  */
1090 tSCC zAix_Stdint_1List[] =
1091   "stdint-aix.h\0stdint.h\0";
1093  *  Machine/OS name selection pattern
1094  */
1095 tSCC* apzAix_Stdint_1Machs[] = {
1096         "*-*-aix*",
1097         (const char*)NULL };
1100  *  content selection pattern - do fix if pattern found
1101  */
1102 tSCC zAix_Stdint_1Select0[] =
1103        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1104 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1106 #define    AIX_STDINT_1_TEST_CT  1
1107 static tTestDesc aAix_Stdint_1Tests[] = {
1108   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1111  *  Fix Command Arguments for Aix_Stdint_1
1112  */
1113 static const char* apzAix_Stdint_1Patch[] = {
1114     "format",
1115     "#define UINT8_MAX\t(255)\n\
1116 #define UINT16_MAX\t(65535)",
1117     (char*)NULL };
1119 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1121  *  Description of Aix_Stdint_2 fix
1122  */
1123 tSCC zAix_Stdint_2Name[] =
1124      "aix_stdint_2";
1127  *  File name selection pattern
1128  */
1129 tSCC zAix_Stdint_2List[] =
1130   "stdint-aix.h\0stdint.h\0";
1132  *  Machine/OS name selection pattern
1133  */
1134 tSCC* apzAix_Stdint_2Machs[] = {
1135         "*-*-aix*",
1136         (const char*)NULL };
1139  *  content selection pattern - do fix if pattern found
1140  */
1141 tSCC zAix_Stdint_2Select0[] =
1142        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1143 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1144 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1145 #else\n\
1146 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1147 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1148 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1150 #define    AIX_STDINT_2_TEST_CT  1
1151 static tTestDesc aAix_Stdint_2Tests[] = {
1152   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1155  *  Fix Command Arguments for Aix_Stdint_2
1156  */
1157 static const char* apzAix_Stdint_2Patch[] = {
1158     "format",
1159     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1160 #define INTPTR_MAX\t9223372036854775807L\n\
1161 #define UINTPTR_MAX\t18446744073709551615UL\n\
1162 #else\n\
1163 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1164 #define INTPTR_MAX\t2147483647L\n\
1165 #define UINTPTR_MAX\t4294967295UL",
1166     (char*)NULL };
1168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1170  *  Description of Aix_Stdint_3 fix
1171  */
1172 tSCC zAix_Stdint_3Name[] =
1173      "aix_stdint_3";
1176  *  File name selection pattern
1177  */
1178 tSCC zAix_Stdint_3List[] =
1179   "stdint-aix.h\0stdint.h\0";
1181  *  Machine/OS name selection pattern
1182  */
1183 tSCC* apzAix_Stdint_3Machs[] = {
1184         "*-*-aix*",
1185         (const char*)NULL };
1188  *  content selection pattern - do fix if pattern found
1189  */
1190 tSCC zAix_Stdint_3Select0[] =
1191        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1192 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1193 #else\n\
1194 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1195 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1197 #define    AIX_STDINT_3_TEST_CT  1
1198 static tTestDesc aAix_Stdint_3Tests[] = {
1199   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1202  *  Fix Command Arguments for Aix_Stdint_3
1203  */
1204 static const char* apzAix_Stdint_3Patch[] = {
1205     "format",
1206     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1207 #define PTRDIFF_MAX\t9223372036854775807L\n\
1208 #else\n\
1209 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1210 #define PTRDIFF_MAX\t2147483647L",
1211     (char*)NULL };
1213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1215  *  Description of Aix_Stdint_4 fix
1216  */
1217 tSCC zAix_Stdint_4Name[] =
1218      "aix_stdint_4";
1221  *  File name selection pattern
1222  */
1223 tSCC zAix_Stdint_4List[] =
1224   "stdint-aix.h\0stdint.h\0";
1226  *  Machine/OS name selection pattern
1227  */
1228 tSCC* apzAix_Stdint_4Machs[] = {
1229         "*-*-aix*",
1230         (const char*)NULL };
1233  *  content selection pattern - do fix if pattern found
1234  */
1235 tSCC zAix_Stdint_4Select0[] =
1236        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1237 #else\n\
1238 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1240 #define    AIX_STDINT_4_TEST_CT  1
1241 static tTestDesc aAix_Stdint_4Tests[] = {
1242   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1245  *  Fix Command Arguments for Aix_Stdint_4
1246  */
1247 static const char* apzAix_Stdint_4Patch[] = {
1248     "format",
1249     "#define SIZE_MAX\t18446744073709551615UL\n\
1250 #else\n\
1251 #define SIZE_MAX\t4294967295UL",
1252     (char*)NULL };
1254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1256  *  Description of Aix_Stdint_5 fix
1257  */
1258 tSCC zAix_Stdint_5Name[] =
1259      "aix_stdint_5";
1262  *  File name selection pattern
1263  */
1264 tSCC zAix_Stdint_5List[] =
1265   "stdint-aix.h\0stdint.h\0";
1267  *  Machine/OS name selection pattern
1268  */
1269 tSCC* apzAix_Stdint_5Machs[] = {
1270         "*-*-aix*",
1271         (const char*)NULL };
1274  *  content selection pattern - do fix if pattern found
1275  */
1276 tSCC zAix_Stdint_5Select0[] =
1277        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1278 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1280 #define    AIX_STDINT_5_TEST_CT  1
1281 static tTestDesc aAix_Stdint_5Tests[] = {
1282   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1285  *  Fix Command Arguments for Aix_Stdint_5
1286  */
1287 static const char* apzAix_Stdint_5Patch[] = {
1288     "format",
1289     "#define UINT8_C(c)\tc\n\
1290 #define UINT16_C(c)\tc",
1291     (char*)NULL };
1293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1295  *  Description of Aix_Sysmachine fix
1296  */
1297 tSCC zAix_SysmachineName[] =
1298      "aix_sysmachine";
1301  *  File name selection pattern
1302  */
1303 tSCC zAix_SysmachineList[] =
1304   "sys/machine.h\0";
1306  *  Machine/OS name selection pattern
1307  */
1308 #define apzAix_SysmachineMachs (const char**)NULL
1311  *  content selection pattern - do fix if pattern found
1312  */
1313 tSCC zAix_SysmachineSelect0[] =
1314        "\\\\ +\n";
1316 #define    AIX_SYSMACHINE_TEST_CT  1
1317 static tTestDesc aAix_SysmachineTests[] = {
1318   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1321  *  Fix Command Arguments for Aix_Sysmachine
1322  */
1323 static const char* apzAix_SysmachinePatch[] = {
1324     "format",
1325     "\\\n",
1326     (char*)NULL };
1328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1330  *  Description of Aix_Syswait_2 fix
1331  */
1332 tSCC zAix_Syswait_2Name[] =
1333      "aix_syswait_2";
1336  *  File name selection pattern
1337  */
1338 tSCC zAix_Syswait_2List[] =
1339   "sys/wait.h\0";
1341  *  Machine/OS name selection pattern
1342  */
1343 #define apzAix_Syswait_2Machs (const char**)NULL
1346  *  content selection pattern - do fix if pattern found
1347  */
1348 tSCC zAix_Syswait_2Select0[] =
1349        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1351 #define    AIX_SYSWAIT_2_TEST_CT  1
1352 static tTestDesc aAix_Syswait_2Tests[] = {
1353   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1356  *  Fix Command Arguments for Aix_Syswait_2
1357  */
1358 static const char* apzAix_Syswait_2Patch[] = {
1359     "format",
1360     "? (int)%1",
1361     (char*)NULL };
1363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1365  *  Description of Aix_Volatile fix
1366  */
1367 tSCC zAix_VolatileName[] =
1368      "aix_volatile";
1371  *  File name selection pattern
1372  */
1373 tSCC zAix_VolatileList[] =
1374   "sys/signal.h\0";
1376  *  Machine/OS name selection pattern
1377  */
1378 #define apzAix_VolatileMachs (const char**)NULL
1381  *  content selection pattern - do fix if pattern found
1382  */
1383 tSCC zAix_VolatileSelect0[] =
1384        "typedef volatile int sig_atomic_t";
1386 #define    AIX_VOLATILE_TEST_CT  1
1387 static tTestDesc aAix_VolatileTests[] = {
1388   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1391  *  Fix Command Arguments for Aix_Volatile
1392  */
1393 static const char* apzAix_VolatilePatch[] = {
1394     "format",
1395     "typedef int sig_atomic_t",
1396     (char*)NULL };
1398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1400  *  Description of Alpha___Assert fix
1401  */
1402 tSCC zAlpha___AssertName[] =
1403      "alpha___assert";
1406  *  File name selection pattern
1407  */
1408 tSCC zAlpha___AssertList[] =
1409   "assert.h\0";
1411  *  Machine/OS name selection pattern
1412  */
1413 #define apzAlpha___AssertMachs (const char**)NULL
1416  *  content selection pattern - do fix if pattern found
1417  */
1418 tSCC zAlpha___AssertSelect0[] =
1419        "__assert\\(char \\*, char \\*, int\\)";
1421 #define    ALPHA___ASSERT_TEST_CT  1
1422 static tTestDesc aAlpha___AssertTests[] = {
1423   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1426  *  Fix Command Arguments for Alpha___Assert
1427  */
1428 static const char* apzAlpha___AssertPatch[] = {
1429     "format",
1430     "__assert(const char *, const char *, int)",
1431     (char*)NULL };
1433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1435  *  Description of Alpha_Assert fix
1436  */
1437 tSCC zAlpha_AssertName[] =
1438      "alpha_assert";
1441  *  File name selection pattern
1442  */
1443 tSCC zAlpha_AssertList[] =
1444   "assert.h\0";
1446  *  Machine/OS name selection pattern
1447  */
1448 #define apzAlpha_AssertMachs (const char**)NULL
1451  *  content selection pattern - do fix if pattern found
1452  */
1453 tSCC zAlpha_AssertSelect0[] =
1454        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1456 #define    ALPHA_ASSERT_TEST_CT  1
1457 static tTestDesc aAlpha_AssertTests[] = {
1458   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1461  *  Fix Command Arguments for Alpha_Assert
1462  */
1463 static const char* apzAlpha_AssertPatch[] = {
1464     "format",
1465     "%1(EX)",
1466     (char*)NULL };
1468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1470  *  Description of Alpha_Getopt fix
1471  */
1472 tSCC zAlpha_GetoptName[] =
1473      "alpha_getopt";
1476  *  File name selection pattern
1477  */
1478 tSCC zAlpha_GetoptList[] =
1479   "stdio.h\0stdlib.h\0";
1481  *  Machine/OS name selection pattern
1482  */
1483 #define apzAlpha_GetoptMachs (const char**)NULL
1486  *  content selection pattern - do fix if pattern found
1487  */
1488 tSCC zAlpha_GetoptSelect0[] =
1489        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1491 #define    ALPHA_GETOPT_TEST_CT  1
1492 static tTestDesc aAlpha_GetoptTests[] = {
1493   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1496  *  Fix Command Arguments for Alpha_Getopt
1497  */
1498 static const char* apzAlpha_GetoptPatch[] = {
1499     "format",
1500     "getopt(int, char *const[], const char *)",
1501     (char*)NULL };
1503 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1505  *  Description of Alpha_If_Semicolon fix
1506  */
1507 tSCC zAlpha_If_SemicolonName[] =
1508      "alpha_if_semicolon";
1511  *  File name selection pattern
1512  */
1513 tSCC zAlpha_If_SemicolonList[] =
1514   "net/if.h\0";
1516  *  Machine/OS name selection pattern
1517  */
1518 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1521  *  content selection pattern - do fix if pattern found
1522  */
1523 tSCC zAlpha_If_SemicolonSelect0[] =
1524        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1526 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1527 static tTestDesc aAlpha_If_SemicolonTests[] = {
1528   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1531  *  Fix Command Arguments for Alpha_If_Semicolon
1532  */
1533 static const char* apzAlpha_If_SemicolonPatch[] = {
1534     "format",
1535     "struct sockaddr vmif_paddr;\t/*",
1536     (char*)NULL };
1538 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1540  *  Description of Alpha_Parens fix
1541  */
1542 tSCC zAlpha_ParensName[] =
1543      "alpha_parens";
1546  *  File name selection pattern
1547  */
1548 tSCC zAlpha_ParensList[] =
1549   "sym.h\0";
1551  *  Machine/OS name selection pattern
1552  */
1553 #define apzAlpha_ParensMachs (const char**)NULL
1556  *  content selection pattern - do fix if pattern found
1557  */
1558 tSCC zAlpha_ParensSelect0[] =
1559        "#ifndef\\(__mips64\\)";
1561 #define    ALPHA_PARENS_TEST_CT  1
1562 static tTestDesc aAlpha_ParensTests[] = {
1563   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1566  *  Fix Command Arguments for Alpha_Parens
1567  */
1568 static const char* apzAlpha_ParensPatch[] = {
1569     "format",
1570     "#ifndef __mips64",
1571     (char*)NULL };
1573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1575  *  Description of Alpha_Sbrk fix
1576  */
1577 tSCC zAlpha_SbrkName[] =
1578      "alpha_sbrk";
1581  *  File name selection pattern
1582  */
1583 tSCC zAlpha_SbrkList[] =
1584   "unistd.h\0";
1586  *  Machine/OS name selection pattern
1587  */
1588 #define apzAlpha_SbrkMachs (const char**)NULL
1591  *  content selection pattern - do fix if pattern found
1592  */
1593 tSCC zAlpha_SbrkSelect0[] =
1594        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1596 #define    ALPHA_SBRK_TEST_CT  1
1597 static tTestDesc aAlpha_SbrkTests[] = {
1598   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1601  *  Fix Command Arguments for Alpha_Sbrk
1602  */
1603 static const char* apzAlpha_SbrkPatch[] = {
1604     "format",
1605     "void *sbrk(",
1606     (char*)NULL };
1608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1610  *  Description of Avoid_Bool_Define fix
1611  */
1612 tSCC zAvoid_Bool_DefineName[] =
1613      "avoid_bool_define";
1616  *  File name selection pattern
1617  */
1618 tSCC zAvoid_Bool_DefineList[] =
1619   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1621  *  Machine/OS name selection pattern
1622  */
1623 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1626  *  content selection pattern - do fix if pattern found
1627  */
1628 tSCC zAvoid_Bool_DefineSelect0[] =
1629        "#[ \t]*define[ \t]+bool[ \t]";
1632  *  content bypass pattern - skip fix if pattern found
1633  */
1634 tSCC zAvoid_Bool_DefineBypass0[] =
1635        "__cplusplus";
1637 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1638 static tTestDesc aAvoid_Bool_DefineTests[] = {
1639   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1640   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1643  *  Fix Command Arguments for Avoid_Bool_Define
1644  */
1645 static const char* apzAvoid_Bool_DefinePatch[] = {
1646     "format",
1647     "#ifndef __cplusplus\n\
1648 %0\n\
1649 #endif",
1650     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1651     (char*)NULL };
1653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1655  *  Description of Avoid_Bool_Type fix
1656  */
1657 tSCC zAvoid_Bool_TypeName[] =
1658      "avoid_bool_type";
1661  *  File name selection pattern
1662  */
1663 tSCC zAvoid_Bool_TypeList[] =
1664   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1666  *  Machine/OS name selection pattern
1667  */
1668 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1671  *  content selection pattern - do fix if pattern found
1672  */
1673 tSCC zAvoid_Bool_TypeSelect0[] =
1674        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1677  *  content bypass pattern - skip fix if pattern found
1678  */
1679 tSCC zAvoid_Bool_TypeBypass0[] =
1680        "__cplusplus";
1682 #define    AVOID_BOOL_TYPE_TEST_CT  2
1683 static tTestDesc aAvoid_Bool_TypeTests[] = {
1684   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1685   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1688  *  Fix Command Arguments for Avoid_Bool_Type
1689  */
1690 static const char* apzAvoid_Bool_TypePatch[] = {
1691     "format",
1692     "#ifndef __cplusplus\n\
1693 %0\n\
1694 #endif",
1695     (char*)NULL };
1697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1699  *  Description of Avoid_Wchar_T_Type fix
1700  */
1701 tSCC zAvoid_Wchar_T_TypeName[] =
1702      "avoid_wchar_t_type";
1705  *  File name selection pattern
1706  */
1707 #define zAvoid_Wchar_T_TypeList (char*)NULL
1709  *  Machine/OS name selection pattern
1710  */
1711 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1714  *  content selection pattern - do fix if pattern found
1715  */
1716 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1717        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1720  *  content bypass pattern - skip fix if pattern found
1721  */
1722 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1723        "__cplusplus";
1724 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1725        "_LINUX_NLS_H";
1726 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1727        "XFree86: xc/lib/X11/Xlib\\.h";
1729 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1730 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1731   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1732   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1733   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1734   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1737  *  Fix Command Arguments for Avoid_Wchar_T_Type
1738  */
1739 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1740     "format",
1741     "#ifndef __cplusplus\n\
1742 %0\n\
1743 #endif",
1744     (char*)NULL };
1746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1748  *  Description of Bad_Struct_Term fix
1749  */
1750 tSCC zBad_Struct_TermName[] =
1751      "bad_struct_term";
1754  *  File name selection pattern
1755  */
1756 tSCC zBad_Struct_TermList[] =
1757   "curses.h\0";
1759  *  Machine/OS name selection pattern
1760  */
1761 #define apzBad_Struct_TermMachs (const char**)NULL
1764  *  content selection pattern - do fix if pattern found
1765  */
1766 tSCC zBad_Struct_TermSelect0[] =
1767        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1769 #define    BAD_STRUCT_TERM_TEST_CT  1
1770 static tTestDesc aBad_Struct_TermTests[] = {
1771   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1774  *  Fix Command Arguments for Bad_Struct_Term
1775  */
1776 static const char* apzBad_Struct_TermPatch[] = {
1777     "format",
1778     "struct term;",
1779     (char*)NULL };
1781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1783  *  Description of Badquote fix
1784  */
1785 tSCC zBadquoteName[] =
1786      "badquote";
1789  *  File name selection pattern
1790  */
1791 tSCC zBadquoteList[] =
1792   "sundev/vuid_event.h\0";
1794  *  Machine/OS name selection pattern
1795  */
1796 #define apzBadquoteMachs (const char**)NULL
1799  *  content selection pattern - do fix if pattern found
1800  */
1801 tSCC zBadquoteSelect0[] =
1802        "doesn't";
1804 #define    BADQUOTE_TEST_CT  1
1805 static tTestDesc aBadquoteTests[] = {
1806   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1809  *  Fix Command Arguments for Badquote
1810  */
1811 static const char* apzBadquotePatch[] = {
1812     "format",
1813     "does not",
1814     (char*)NULL };
1816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1818  *  Description of Broken_Assert_Stdio fix
1819  */
1820 tSCC zBroken_Assert_StdioName[] =
1821      "broken_assert_stdio";
1824  *  File name selection pattern
1825  */
1826 tSCC zBroken_Assert_StdioList[] =
1827   "assert.h\0";
1829  *  Machine/OS name selection pattern
1830  */
1831 #define apzBroken_Assert_StdioMachs (const char**)NULL
1834  *  content selection pattern - do fix if pattern found
1835  */
1836 tSCC zBroken_Assert_StdioSelect0[] =
1837        "stderr";
1840  *  content bypass pattern - skip fix if pattern found
1841  */
1842 tSCC zBroken_Assert_StdioBypass0[] =
1843        "include.*stdio\\.h";
1845 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1846 static tTestDesc aBroken_Assert_StdioTests[] = {
1847   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1848   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1851  *  Fix Command Arguments for Broken_Assert_Stdio
1852  */
1853 static const char* apzBroken_Assert_StdioPatch[] = {
1854     "wrap",
1855     "#include <stdio.h>\n",
1856     (char*)NULL };
1858 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1860  *  Description of Broken_Assert_Stdlib fix
1861  */
1862 tSCC zBroken_Assert_StdlibName[] =
1863      "broken_assert_stdlib";
1866  *  File name selection pattern
1867  */
1868 tSCC zBroken_Assert_StdlibList[] =
1869   "assert.h\0";
1871  *  Machine/OS name selection pattern
1872  */
1873 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1876  *  content selection pattern - do fix if pattern found
1877  */
1878 tSCC zBroken_Assert_StdlibSelect0[] =
1879        "exit *\\(|abort *\\(";
1882  *  content bypass pattern - skip fix if pattern found
1883  */
1884 tSCC zBroken_Assert_StdlibBypass0[] =
1885        "include.*stdlib\\.h";
1887 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1888 static tTestDesc aBroken_Assert_StdlibTests[] = {
1889   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1890   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1893  *  Fix Command Arguments for Broken_Assert_Stdlib
1894  */
1895 static const char* apzBroken_Assert_StdlibPatch[] = {
1896     "wrap",
1897     "#ifdef __cplusplus\n\
1898 #include <stdlib.h>\n\
1899 #endif\n",
1900     (char*)NULL };
1902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1904  *  Description of Broken_Cabs fix
1905  */
1906 tSCC zBroken_CabsName[] =
1907      "broken_cabs";
1910  *  File name selection pattern
1911  */
1912 tSCC zBroken_CabsList[] =
1913   "math.h\0architecture/*/math.h\0";
1915  *  Machine/OS name selection pattern
1916  */
1917 #define apzBroken_CabsMachs (const char**)NULL
1920  *  content selection pattern - do fix if pattern found
1921  */
1922 tSCC zBroken_CabsSelect0[] =
1923        "^extern[ \t]+double[ \t]+cabs";
1925 #define    BROKEN_CABS_TEST_CT  1
1926 static tTestDesc aBroken_CabsTests[] = {
1927   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1930  *  Fix Command Arguments for Broken_Cabs
1931  */
1932 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1933     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1934     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1935     (char*)NULL };
1937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1939  *  Description of Broken_Nan fix
1940  */
1941 tSCC zBroken_NanName[] =
1942      "broken_nan";
1945  *  File name selection pattern
1946  */
1947 tSCC zBroken_NanList[] =
1948   "architecture/ppc/math.h\0architecture/*/math.h\0";
1950  *  Machine/OS name selection pattern
1951  */
1952 #define apzBroken_NanMachs (const char**)NULL
1955  *  content selection pattern - do fix if pattern found
1956  */
1957 tSCC zBroken_NanSelect0[] =
1958        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
1961  *  content bypass pattern - skip fix if pattern found
1962  */
1963 tSCC zBroken_NanBypass0[] =
1964        "powl";
1966 #define    BROKEN_NAN_TEST_CT  2
1967 static tTestDesc aBroken_NanTests[] = {
1968   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
1969   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
1972  *  Fix Command Arguments for Broken_Nan
1973  */
1974 static const char* apzBroken_NanPatch[] = {
1975     "format",
1976     "#if 1",
1977     (char*)NULL };
1979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1981  *  Description of Bsd_Stdio_Attrs_Conflict fix
1982  */
1983 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1984      "bsd_stdio_attrs_conflict";
1987  *  File name selection pattern
1988  */
1989 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1990   "stdio.h\0";
1992  *  Machine/OS name selection pattern
1993  */
1994 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1995         "*-*-*bsd*",
1996         "*-*-*darwin*",
1997         (const char*)NULL };
2000  *  content selection pattern - do fix if pattern found
2001  */
2002 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2003        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2005 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2006 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2007   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2010  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2011  */
2012 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2013     "format",
2014     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2015 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2016 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2017     (char*)NULL };
2019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2021  *  Description of Cdef_Cplusplus fix
2022  */
2023 tSCC zCdef_CplusplusName[] =
2024      "cdef_cplusplus";
2027  *  File name selection pattern
2028  */
2029 tSCC zCdef_CplusplusList[] =
2030   "sys/cdefs.h\0";
2032  *  Machine/OS name selection pattern
2033  */
2034 #define apzCdef_CplusplusMachs (const char**)NULL
2037  *  content selection pattern - do fix if pattern found
2038  */
2039 tSCC zCdef_CplusplusSelect0[] =
2040        "\\[\\[noreturn\\]\\]";
2042 #define    CDEF_CPLUSPLUS_TEST_CT  1
2043 static tTestDesc aCdef_CplusplusTests[] = {
2044   { TT_EGREP,    zCdef_CplusplusSelect0, (regex_t*)NULL }, };
2047  *  Fix Command Arguments for Cdef_Cplusplus
2048  */
2049 static const char* apzCdef_CplusplusPatch[] = {
2050     "format",
2051     "__attribute__((__noreturn__))",
2052     (char*)NULL };
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2056  *  Description of Ctrl_Quotes_Def fix
2057  */
2058 tSCC zCtrl_Quotes_DefName[] =
2059      "ctrl_quotes_def";
2062  *  File name selection pattern
2063  */
2064 #define zCtrl_Quotes_DefList (char*)NULL
2066  *  Machine/OS name selection pattern
2067  */
2068 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2071  *  content selection pattern - do fix if pattern found
2072  */
2073 tSCC zCtrl_Quotes_DefSelect0[] =
2074        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2076 #define    CTRL_QUOTES_DEF_TEST_CT  1
2077 static tTestDesc aCtrl_Quotes_DefTests[] = {
2078   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2081  *  Fix Command Arguments for Ctrl_Quotes_Def
2082  */
2083 static const char* apzCtrl_Quotes_DefPatch[] = {
2084     "char_macro_def",
2085     "CTRL",
2086     (char*)NULL };
2088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2090  *  Description of Ctrl_Quotes_Use fix
2091  */
2092 tSCC zCtrl_Quotes_UseName[] =
2093      "ctrl_quotes_use";
2096  *  File name selection pattern
2097  */
2098 #define zCtrl_Quotes_UseList (char*)NULL
2100  *  Machine/OS name selection pattern
2101  */
2102 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2105  *  content selection pattern - do fix if pattern found
2106  */
2107 tSCC zCtrl_Quotes_UseSelect0[] =
2108        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2110 #define    CTRL_QUOTES_USE_TEST_CT  1
2111 static tTestDesc aCtrl_Quotes_UseTests[] = {
2112   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2115  *  Fix Command Arguments for Ctrl_Quotes_Use
2116  */
2117 static const char* apzCtrl_Quotes_UsePatch[] = {
2118     "char_macro_use",
2119     "CTRL",
2120     (char*)NULL };
2122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2124  *  Description of Cxx_Unready fix
2125  */
2126 tSCC zCxx_UnreadyName[] =
2127      "cxx_unready";
2130  *  File name selection pattern
2131  */
2132 tSCC zCxx_UnreadyList[] =
2133   "sys/mman.h\0rpc/types.h\0";
2135  *  Machine/OS name selection pattern
2136  */
2137 #define apzCxx_UnreadyMachs (const char**)NULL
2140  *  content selection pattern - do fix if pattern found
2141  */
2142 tSCC zCxx_UnreadySelect0[] =
2143        "[^#]+malloc.*;";
2146  *  content bypass pattern - skip fix if pattern found
2147  */
2148 tSCC zCxx_UnreadyBypass0[] =
2149        "\"C\"|__BEGIN_DECLS";
2151 #define    CXX_UNREADY_TEST_CT  2
2152 static tTestDesc aCxx_UnreadyTests[] = {
2153   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2154   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2157  *  Fix Command Arguments for Cxx_Unready
2158  */
2159 static const char* apzCxx_UnreadyPatch[] = {
2160     "wrap",
2161     "#ifdef __cplusplus\n\
2162 extern \"C\" {\n\
2163 #endif\n",
2164     "#ifdef __cplusplus\n\
2165 }\n\
2166 #endif\n",
2167     (char*)NULL };
2169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2171  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2172  */
2173 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2174      "darwin_9_long_double_funcs_2";
2177  *  File name selection pattern
2178  */
2179 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2180   "math.h\0";
2182  *  Machine/OS name selection pattern
2183  */
2184 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2185         "*-*-darwin7.9*",
2186         (const char*)NULL };
2189  *  content selection pattern - do fix if pattern found
2190  */
2191 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2192        "#include[ \\t]+\\\"";
2194 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2195 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2196   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2199  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2200  */
2201 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2202     "format",
2203     "%1<%2.h>",
2204     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2205     (char*)NULL };
2207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2209  *  Description of Darwin_Externc fix
2210  */
2211 tSCC zDarwin_ExterncName[] =
2212      "darwin_externc";
2215  *  File name selection pattern
2216  */
2217 tSCC zDarwin_ExterncList[] =
2218   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2220  *  Machine/OS name selection pattern
2221  */
2222 tSCC* apzDarwin_ExterncMachs[] = {
2223         "*-*-darwin*",
2224         (const char*)NULL };
2227  *  content bypass pattern - skip fix if pattern found
2228  */
2229 tSCC zDarwin_ExterncBypass0[] =
2230        "extern \"C\"";
2231 tSCC zDarwin_ExterncBypass1[] =
2232        "__BEGIN_DECLS";
2234 #define    DARWIN_EXTERNC_TEST_CT  2
2235 static tTestDesc aDarwin_ExterncTests[] = {
2236   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2237   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2240  *  Fix Command Arguments for Darwin_Externc
2241  */
2242 static const char* apzDarwin_ExterncPatch[] = {
2243     "wrap",
2244     "#ifdef __cplusplus\n\
2245 extern \"C\" {\n\
2246 #endif\n",
2247     "#ifdef __cplusplus\n\
2248 }\n\
2249 #endif\n",
2250     (char*)NULL };
2252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2254  *  Description of Darwin_Gcc4_Breakage fix
2255  */
2256 tSCC zDarwin_Gcc4_BreakageName[] =
2257      "darwin_gcc4_breakage";
2260  *  File name selection pattern
2261  */
2262 tSCC zDarwin_Gcc4_BreakageList[] =
2263   "AvailabilityMacros.h\0";
2265  *  Machine/OS name selection pattern
2266  */
2267 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2268         "*-*-darwin*",
2269         (const char*)NULL };
2272  *  content selection pattern - do fix if pattern found
2273  */
2274 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2275        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2277 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2278 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2279   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2282  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2283  */
2284 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2285     "format",
2286     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2287     (char*)NULL };
2289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2291  *  Description of Darwin_Private_Extern fix
2292  */
2293 tSCC zDarwin_Private_ExternName[] =
2294      "darwin_private_extern";
2297  *  File name selection pattern
2298  */
2299 tSCC zDarwin_Private_ExternList[] =
2300   "mach-o/dyld.h\0";
2302  *  Machine/OS name selection pattern
2303  */
2304 tSCC* apzDarwin_Private_ExternMachs[] = {
2305         "*-*-darwin*",
2306         (const char*)NULL };
2309  *  content selection pattern - do fix if pattern found
2310  */
2311 tSCC zDarwin_Private_ExternSelect0[] =
2312        "__private_extern__ [a-z_]+ _dyld_";
2314 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2315 static tTestDesc aDarwin_Private_ExternTests[] = {
2316   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2319  *  Fix Command Arguments for Darwin_Private_Extern
2320  */
2321 static const char* apzDarwin_Private_ExternPatch[] = {
2322     "format",
2323     "extern",
2324     "__private_extern__",
2325     (char*)NULL };
2327 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2329  *  Description of Darwin_Stdint_1 fix
2330  */
2331 tSCC zDarwin_Stdint_1Name[] =
2332      "darwin_stdint_1";
2335  *  File name selection pattern
2336  */
2337 tSCC zDarwin_Stdint_1List[] =
2338   "stdint-darwin.h\0stdint.h\0";
2340  *  Machine/OS name selection pattern
2341  */
2342 tSCC* apzDarwin_Stdint_1Machs[] = {
2343         "*-*-darwin*",
2344         (const char*)NULL };
2347  *  content selection pattern - do fix if pattern found
2348  */
2349 tSCC zDarwin_Stdint_1Select0[] =
2350        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2351 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2353 #define    DARWIN_STDINT_1_TEST_CT  1
2354 static tTestDesc aDarwin_Stdint_1Tests[] = {
2355   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2358  *  Fix Command Arguments for Darwin_Stdint_1
2359  */
2360 static const char* apzDarwin_Stdint_1Patch[] = {
2361     "format",
2362     "#define UINT8_C(v)\tv\n\
2363 #define UINT16_C(v)\tv",
2364     (char*)NULL };
2366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2368  *  Description of Darwin_Stdint_2 fix
2369  */
2370 tSCC zDarwin_Stdint_2Name[] =
2371      "darwin_stdint_2";
2374  *  File name selection pattern
2375  */
2376 tSCC zDarwin_Stdint_2List[] =
2377   "stdint-darwin.h\0stdint.h\0";
2379  *  Machine/OS name selection pattern
2380  */
2381 tSCC* apzDarwin_Stdint_2Machs[] = {
2382         "*-*-darwin*",
2383         (const char*)NULL };
2386  *  content selection pattern - do fix if pattern found
2387  */
2388 tSCC zDarwin_Stdint_2Select0[] =
2389        "#if __WORDSIZE == 64\n\
2390 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2391 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2392 #else\n\
2393 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2394 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2395 #endif";
2397 #define    DARWIN_STDINT_2_TEST_CT  1
2398 static tTestDesc aDarwin_Stdint_2Tests[] = {
2399   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2402  *  Fix Command Arguments for Darwin_Stdint_2
2403  */
2404 static const char* apzDarwin_Stdint_2Patch[] = {
2405     "format",
2406     "#if __WORDSIZE == 64\n\
2407 #define INTPTR_MAX 9223372036854775807L\n\
2408 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2409 #else\n\
2410 #define INTPTR_MAX 2147483647L\n\
2411 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2412 #endif",
2413     (char*)NULL };
2415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2417  *  Description of Darwin_Stdint_3 fix
2418  */
2419 tSCC zDarwin_Stdint_3Name[] =
2420      "darwin_stdint_3";
2423  *  File name selection pattern
2424  */
2425 tSCC zDarwin_Stdint_3List[] =
2426   "stdint-darwin.h\0stdint.h\0";
2428  *  Machine/OS name selection pattern
2429  */
2430 tSCC* apzDarwin_Stdint_3Machs[] = {
2431         "*-*-darwin*",
2432         (const char*)NULL };
2435  *  content selection pattern - do fix if pattern found
2436  */
2437 tSCC zDarwin_Stdint_3Select0[] =
2438        "#if __WORDSIZE == 64\n\
2439 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2440 #else\n\
2441 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2442 #endif";
2444 #define    DARWIN_STDINT_3_TEST_CT  1
2445 static tTestDesc aDarwin_Stdint_3Tests[] = {
2446   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2449  *  Fix Command Arguments for Darwin_Stdint_3
2450  */
2451 static const char* apzDarwin_Stdint_3Patch[] = {
2452     "format",
2453     "#if __WORDSIZE == 64\n\
2454 #define UINTPTR_MAX 18446744073709551615UL\n\
2455 #else\n\
2456 #define UINTPTR_MAX 4294967295UL\n\
2457 #endif",
2458     (char*)NULL };
2460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2462  *  Description of Darwin_Stdint_4 fix
2463  */
2464 tSCC zDarwin_Stdint_4Name[] =
2465      "darwin_stdint_4";
2468  *  File name selection pattern
2469  */
2470 tSCC zDarwin_Stdint_4List[] =
2471   "stdint-darwin.h\0stdint.h\0";
2473  *  Machine/OS name selection pattern
2474  */
2475 tSCC* apzDarwin_Stdint_4Machs[] = {
2476         "*-*-darwin*",
2477         (const char*)NULL };
2480  *  content selection pattern - do fix if pattern found
2481  */
2482 tSCC zDarwin_Stdint_4Select0[] =
2483        "#if __WORDSIZE == 64\n\
2484 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2485 #else\n\
2486 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2487 #endif";
2489 #define    DARWIN_STDINT_4_TEST_CT  1
2490 static tTestDesc aDarwin_Stdint_4Tests[] = {
2491   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2494  *  Fix Command Arguments for Darwin_Stdint_4
2495  */
2496 static const char* apzDarwin_Stdint_4Patch[] = {
2497     "format",
2498     "#if __WORDSIZE == 64\n\
2499 #define SIZE_MAX 18446744073709551615UL\n\
2500 #else\n\
2501 #define SIZE_MAX 4294967295UL\n\
2502 #endif",
2503     (char*)NULL };
2505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2507  *  Description of Darwin_Stdint_5 fix
2508  */
2509 tSCC zDarwin_Stdint_5Name[] =
2510      "darwin_stdint_5";
2513  *  File name selection pattern
2514  */
2515 tSCC zDarwin_Stdint_5List[] =
2516   "stdint-darwin.h\0stdint.h\0";
2518  *  Machine/OS name selection pattern
2519  */
2520 tSCC* apzDarwin_Stdint_5Machs[] = {
2521         "*-*-darwin*",
2522         (const char*)NULL };
2525  *  content selection pattern - do fix if pattern found
2526  */
2527 tSCC zDarwin_Stdint_5Select0[] =
2528        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2529 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2530 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2532 #define    DARWIN_STDINT_5_TEST_CT  1
2533 static tTestDesc aDarwin_Stdint_5Tests[] = {
2534   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2537  *  Fix Command Arguments for Darwin_Stdint_5
2538  */
2539 static const char* apzDarwin_Stdint_5Patch[] = {
2540     "format",
2541     "#if __WORDSIZE == 64\n\
2542 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
2543 #define INTMAX_MAX   9223372036854775807L\n\
2544 #define UINTMAX_MAX  18446744073709551615UL\n\
2545 #else\n\
2546 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
2547 #define INTMAX_MAX   9223372036854775807LL\n\
2548 #define UINTMAX_MAX  18446744073709551615ULL\n\
2549 #endif",
2550     (char*)NULL };
2552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2554  *  Description of Darwin_Stdint_6 fix
2555  */
2556 tSCC zDarwin_Stdint_6Name[] =
2557      "darwin_stdint_6";
2560  *  File name selection pattern
2561  */
2562 tSCC zDarwin_Stdint_6List[] =
2563   "stdint-darwin.h\0stdint.h\0";
2565  *  Machine/OS name selection pattern
2566  */
2567 tSCC* apzDarwin_Stdint_6Machs[] = {
2568         "*-*-darwin*",
2569         (const char*)NULL };
2572  *  content selection pattern - do fix if pattern found
2573  */
2574 tSCC zDarwin_Stdint_6Select0[] =
2575        "#if __WORDSIZE == 64\n\
2576 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2577 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2578 #else\n\
2579 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2580 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2581 #endif";
2583 #define    DARWIN_STDINT_6_TEST_CT  1
2584 static tTestDesc aDarwin_Stdint_6Tests[] = {
2585   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2588  *  Fix Command Arguments for Darwin_Stdint_6
2589  */
2590 static const char* apzDarwin_Stdint_6Patch[] = {
2591     "format",
2592     "#if __WORDSIZE == 64\n\
2593 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2594 #define PTRDIFF_MAX 9223372036854775807L\n\
2595 #else\n\
2596 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2597 #define PTRDIFF_MAX 2147483647\n\
2598 #endif",
2599     (char*)NULL };
2601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2603  *  Description of Darwin_Stdint_7 fix
2604  */
2605 tSCC zDarwin_Stdint_7Name[] =
2606      "darwin_stdint_7";
2609  *  File name selection pattern
2610  */
2611 tSCC zDarwin_Stdint_7List[] =
2612   "stdint-darwin.h\0stdint.h\0";
2614  *  Machine/OS name selection pattern
2615  */
2616 tSCC* apzDarwin_Stdint_7Machs[] = {
2617         "*-*-darwin*",
2618         (const char*)NULL };
2621  *  content selection pattern - do fix if pattern found
2622  */
2623 tSCC zDarwin_Stdint_7Select0[] =
2624        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2625 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2627 #define    DARWIN_STDINT_7_TEST_CT  1
2628 static tTestDesc aDarwin_Stdint_7Tests[] = {
2629   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2632  *  Fix Command Arguments for Darwin_Stdint_7
2633  */
2634 static const char* apzDarwin_Stdint_7Patch[] = {
2635     "format",
2636     "#if __WORDSIZE == 64\n\
2637 #define INTMAX_C(v)  (v ## L)\n\
2638 #define UINTMAX_C(v) (v ## UL)\n\
2639 #else\n\
2640 #define INTMAX_C(v)  (v ## LL)\n\
2641 #define UINTMAX_C(v) (v ## ULL)\n\
2642 #endif",
2643     (char*)NULL };
2645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2647  *  Description of Dec_Intern_Asm fix
2648  */
2649 tSCC zDec_Intern_AsmName[] =
2650      "dec_intern_asm";
2653  *  File name selection pattern
2654  */
2655 tSCC zDec_Intern_AsmList[] =
2656   "c_asm.h\0";
2658  *  Machine/OS name selection pattern
2659  */
2660 #define apzDec_Intern_AsmMachs (const char**)NULL
2661 #define DEC_INTERN_ASM_TEST_CT  0
2662 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2665  *  Fix Command Arguments for Dec_Intern_Asm
2666  */
2667 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2668     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2669 #ifdef __DECC\n",
2670     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2671 #endif\n",
2672     (char*)NULL };
2674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2676  *  Description of Djgpp_Wchar_H fix
2677  */
2678 tSCC zDjgpp_Wchar_HName[] =
2679      "djgpp_wchar_h";
2682  *  File name selection pattern
2683  */
2684 #define zDjgpp_Wchar_HList (char*)NULL
2686  *  Machine/OS name selection pattern
2687  */
2688 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2691  *  content selection pattern - do fix if pattern found
2692  */
2693 tSCC zDjgpp_Wchar_HSelect0[] =
2694        "__DJ_wint_t";
2697  *  content bypass pattern - skip fix if pattern found
2698  */
2699 tSCC zDjgpp_Wchar_HBypass0[] =
2700        "sys/djtypes.h";
2702 #define    DJGPP_WCHAR_H_TEST_CT  2
2703 static tTestDesc aDjgpp_Wchar_HTests[] = {
2704   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2705   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2708  *  Fix Command Arguments for Djgpp_Wchar_H
2709  */
2710 static const char* apzDjgpp_Wchar_HPatch[] = {
2711     "format",
2712     "%0\n\
2713 #include <sys/djtypes.h>",
2714     "#include <stddef.h>",
2715     (char*)NULL };
2717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2719  *  Description of Ecd_Cursor fix
2720  */
2721 tSCC zEcd_CursorName[] =
2722      "ecd_cursor";
2725  *  File name selection pattern
2726  */
2727 tSCC zEcd_CursorList[] =
2728   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2730  *  Machine/OS name selection pattern
2731  */
2732 #define apzEcd_CursorMachs (const char**)NULL
2735  *  content selection pattern - do fix if pattern found
2736  */
2737 tSCC zEcd_CursorSelect0[] =
2738        "ecd\\.cursor";
2740 #define    ECD_CURSOR_TEST_CT  1
2741 static tTestDesc aEcd_CursorTests[] = {
2742   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2745  *  Fix Command Arguments for Ecd_Cursor
2746  */
2747 static const char* apzEcd_CursorPatch[] = {
2748     "format",
2749     "ecd_cursor",
2750     (char*)NULL };
2752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2754  *  Description of Freebsd_Gcc3_Breakage fix
2755  */
2756 tSCC zFreebsd_Gcc3_BreakageName[] =
2757      "freebsd_gcc3_breakage";
2760  *  File name selection pattern
2761  */
2762 tSCC zFreebsd_Gcc3_BreakageList[] =
2763   "sys/cdefs.h\0";
2765  *  Machine/OS name selection pattern
2766  */
2767 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2768         "*-*-freebsd*",
2769         (const char*)NULL };
2772  *  content selection pattern - do fix if pattern found
2773  */
2774 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2775        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2778  *  content bypass pattern - skip fix if pattern found
2779  */
2780 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2781        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2783 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2784 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2785   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2786   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2789  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2790  */
2791 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2792     "format",
2793     "%0 || __GNUC__ >= 3",
2794     (char*)NULL };
2796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2798  *  Description of Freebsd_Gcc4_Breakage fix
2799  */
2800 tSCC zFreebsd_Gcc4_BreakageName[] =
2801      "freebsd_gcc4_breakage";
2804  *  File name selection pattern
2805  */
2806 tSCC zFreebsd_Gcc4_BreakageList[] =
2807   "sys/cdefs.h\0";
2809  *  Machine/OS name selection pattern
2810  */
2811 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2812         "*-*-freebsd*",
2813         (const char*)NULL };
2816  *  content selection pattern - do fix if pattern found
2817  */
2818 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2819        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2821 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2822 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2823   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2826  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2827  */
2828 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2829     "format",
2830     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2831     (char*)NULL };
2833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2835  *  Description of Glibc_C99_Inline_1 fix
2836  */
2837 tSCC zGlibc_C99_Inline_1Name[] =
2838      "glibc_c99_inline_1";
2841  *  File name selection pattern
2842  */
2843 tSCC zGlibc_C99_Inline_1List[] =
2844   "features.h\0*/features.h\0";
2846  *  Machine/OS name selection pattern
2847  */
2848 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2851  *  content selection pattern - do fix if pattern found
2852  */
2853 tSCC zGlibc_C99_Inline_1Select0[] =
2854        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2856 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2857 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2858   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2861  *  Fix Command Arguments for Glibc_C99_Inline_1
2862  */
2863 static const char* apzGlibc_C99_Inline_1Patch[] = {
2864     "format",
2865     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2866     (char*)NULL };
2868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2870  *  Description of Glibc_C99_Inline_1a fix
2871  */
2872 tSCC zGlibc_C99_Inline_1aName[] =
2873      "glibc_c99_inline_1a";
2876  *  File name selection pattern
2877  */
2878 tSCC zGlibc_C99_Inline_1aList[] =
2879   "features.h\0*/features.h\0";
2881  *  Machine/OS name selection pattern
2882  */
2883 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2886  *  content selection pattern - do fix if pattern found
2887  */
2888 tSCC zGlibc_C99_Inline_1aSelect0[] =
2889        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2890 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2892 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
2893 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2894   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2897  *  Fix Command Arguments for Glibc_C99_Inline_1a
2898  */
2899 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2900     "format",
2901     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2902 %2",
2903     (char*)NULL };
2905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2907  *  Description of Glibc_C99_Inline_2 fix
2908  */
2909 tSCC zGlibc_C99_Inline_2Name[] =
2910      "glibc_c99_inline_2";
2913  *  File name selection pattern
2914  */
2915 tSCC zGlibc_C99_Inline_2List[] =
2916   "sys/stat.h\0*/sys/stat.h\0";
2918  *  Machine/OS name selection pattern
2919  */
2920 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2923  *  content selection pattern - do fix if pattern found
2924  */
2925 tSCC zGlibc_C99_Inline_2Select0[] =
2926        "extern __inline__ int";
2928 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2929 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2930   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2933  *  Fix Command Arguments for Glibc_C99_Inline_2
2934  */
2935 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2936     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2937 extern\\\n\
2938 #endif\\\n\
2939 __inline__ int \\1/",
2940     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2941 extern\\\n\
2942 #endif\\\n\
2943 __inline__ int \\1/",
2944     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2945 extern\\\n\
2946 #endif\\\n\
2947 __inline__ int \\1/",
2948     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2949 extern\\\n\
2950 #endif\\\n\
2951 __inline__ int __REDIRECT\\1 (\\2/",
2952     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2953 extern\\\n\
2954 #endif\\\n\
2955 __inline__ int __REDIRECT\\1 (\\2/",
2956     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2957 extern\\\n\
2958 #endif\\\n\
2959 __inline__ int/",
2960     (char*)NULL };
2962 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2964  *  Description of Glibc_C99_Inline_3 fix
2965  */
2966 tSCC zGlibc_C99_Inline_3Name[] =
2967      "glibc_c99_inline_3";
2970  *  File name selection pattern
2971  */
2972 tSCC zGlibc_C99_Inline_3List[] =
2973   "bits/string2.h\0*/bits/string2.h\0";
2975  *  Machine/OS name selection pattern
2976  */
2977 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2980  *  content selection pattern - do fix if pattern found
2981  */
2982 tSCC zGlibc_C99_Inline_3Select0[] =
2983        "extern __inline";
2986  *  content bypass pattern - skip fix if pattern found
2987  */
2988 tSCC zGlibc_C99_Inline_3Bypass0[] =
2989        "__extern_inline|__GNU_STDC_INLINE__";
2991 #define    GLIBC_C99_INLINE_3_TEST_CT  2
2992 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2993   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2994   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2997  *  Fix Command Arguments for Glibc_C99_Inline_3
2998  */
2999 static const char* apzGlibc_C99_Inline_3Patch[] = {
3000     "format",
3001     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3002     "^# ifdef __cplusplus$",
3003     (char*)NULL };
3005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3007  *  Description of Glibc_C99_Inline_4 fix
3008  */
3009 tSCC zGlibc_C99_Inline_4Name[] =
3010      "glibc_c99_inline_4";
3013  *  File name selection pattern
3014  */
3015 tSCC zGlibc_C99_Inline_4List[] =
3016   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
3018  *  Machine/OS name selection pattern
3019  */
3020 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3023  *  content selection pattern - do fix if pattern found
3024  */
3025 tSCC zGlibc_C99_Inline_4Select0[] =
3026        "(^| )extern __inline";
3029  *  content bypass pattern - skip fix if pattern found
3030  */
3031 tSCC zGlibc_C99_Inline_4Bypass0[] =
3032        "__extern_inline|__gnu_inline__";
3034 #define    GLIBC_C99_INLINE_4_TEST_CT  2
3035 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3036   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3037   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3040  *  Fix Command Arguments for Glibc_C99_Inline_4
3041  */
3042 static const char* apzGlibc_C99_Inline_4Patch[] = {
3043     "format",
3044     "%0 __attribute__ ((__gnu_inline__))",
3045     (char*)NULL };
3047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3049  *  Description of Glibc_Mutex_Init fix
3050  */
3051 tSCC zGlibc_Mutex_InitName[] =
3052      "glibc_mutex_init";
3055  *  File name selection pattern
3056  */
3057 tSCC zGlibc_Mutex_InitList[] =
3058   "pthread.h\0";
3060  *  Machine/OS name selection pattern
3061  */
3062 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3065  *  content selection pattern - do fix if pattern found
3066  */
3067 tSCC zGlibc_Mutex_InitSelect0[] =
3068        "\\{ *\\{ *0, *\\} *\\}";
3070 #define    GLIBC_MUTEX_INIT_TEST_CT  1
3071 static tTestDesc aGlibc_Mutex_InitTests[] = {
3072   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3075  *  Fix Command Arguments for Glibc_Mutex_Init
3076  */
3077 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3078     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3079 N\n\
3080 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3082     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3083     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3084     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3085     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3086     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3087     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3088     "-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\
3089 #  \\1\\\n\
3090   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3091 # else\\\n\
3092 #  \\1\\\n\
3093   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3094 # endif/",
3095     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3096     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3097     (char*)NULL };
3099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3101  *  Description of Glibc_Stdint fix
3102  */
3103 tSCC zGlibc_StdintName[] =
3104      "glibc_stdint";
3107  *  File name selection pattern
3108  */
3109 tSCC zGlibc_StdintList[] =
3110   "stdint.h\0";
3112  *  Machine/OS name selection pattern
3113  */
3114 #define apzGlibc_StdintMachs (const char**)NULL
3117  *  content selection pattern - do fix if pattern found
3118  */
3119 tSCC zGlibc_StdintSelect0[] =
3120        "GNU C Library";
3122 #define    GLIBC_STDINT_TEST_CT  1
3123 static tTestDesc aGlibc_StdintTests[] = {
3124   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
3127  *  Fix Command Arguments for Glibc_Stdint
3128  */
3129 static const char* apzGlibc_StdintPatch[] = {
3130     "format",
3131     "# define UINT8_C(c)\tc\n\
3132 # define UINT16_C(c)\tc",
3133     "# define UINT8_C\\(c\\)\tc ## U\n\
3134 # define UINT16_C\\(c\\)\tc ## U",
3135     (char*)NULL };
3137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3139  *  Description of Glibc_Strncpy fix
3140  */
3141 tSCC zGlibc_StrncpyName[] =
3142      "glibc_strncpy";
3145  *  File name selection pattern
3146  */
3147 tSCC zGlibc_StrncpyList[] =
3148   "bits/string2.h\0";
3150  *  Machine/OS name selection pattern
3151  */
3152 #define apzGlibc_StrncpyMachs (const char**)NULL
3155  *  content bypass pattern - skip fix if pattern found
3156  */
3157 tSCC zGlibc_StrncpyBypass0[] =
3158        "__builtin_strncpy";
3160 #define    GLIBC_STRNCPY_TEST_CT  1
3161 static tTestDesc aGlibc_StrncpyTests[] = {
3162   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3165  *  Fix Command Arguments for Glibc_Strncpy
3166  */
3167 static const char* apzGlibc_StrncpyPatch[] = {
3168     "format",
3169     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3170     "#  define strncpy([^\n\
3171 ]*\\\\\n\
3172 )*[^\n\
3173 ]*",
3174     (char*)NULL };
3176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3178  *  Description of Glibc_Tgmath fix
3179  */
3180 tSCC zGlibc_TgmathName[] =
3181      "glibc_tgmath";
3184  *  File name selection pattern
3185  */
3186 tSCC zGlibc_TgmathList[] =
3187   "tgmath.h\0";
3189  *  Machine/OS name selection pattern
3190  */
3191 #define apzGlibc_TgmathMachs (const char**)NULL
3194  *  content selection pattern - do fix if pattern found
3195  */
3196 tSCC zGlibc_TgmathSelect0[] =
3197        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3200  *  content bypass pattern - skip fix if pattern found
3201  */
3202 tSCC zGlibc_TgmathBypass0[] =
3203        "__floating_type\\(type\\) \\\\\n\
3204 .*__builtin_classify_type";
3206 #define    GLIBC_TGMATH_TEST_CT  2
3207 static tTestDesc aGlibc_TgmathTests[] = {
3208   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
3209   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3212  *  Fix Command Arguments for Glibc_Tgmath
3213  */
3214 static const char* apzGlibc_TgmathPatch[] = {
3215     "format",
3216     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3217     (char*)NULL };
3219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3221  *  Description of Gnu_Types fix
3222  */
3223 tSCC zGnu_TypesName[] =
3224      "gnu_types";
3227  *  File name selection pattern
3228  */
3229 tSCC zGnu_TypesList[] =
3230   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3232  *  Machine/OS name selection pattern
3233  */
3234 tSCC* apzGnu_TypesMachs[] = {
3235         "*-*-solaris2.1[0-9]*",
3236         (const char*)NULL };
3239  *  content selection pattern - do fix if pattern found
3240  */
3241 tSCC zGnu_TypesSelect0[] =
3242        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3245  *  content bypass pattern - skip fix if pattern found
3246  */
3247 tSCC zGnu_TypesBypass0[] =
3248        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3250 #define    GNU_TYPES_TEST_CT  2
3251 static tTestDesc aGnu_TypesTests[] = {
3252   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3253   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3256  *  Fix Command Arguments for Gnu_Types
3257  */
3258 static const char* apzGnu_TypesPatch[] = {
3259     "gnu_type",
3260     (char*)NULL };
3262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3264  *  Description of Hp_Inline fix
3265  */
3266 tSCC zHp_InlineName[] =
3267      "hp_inline";
3270  *  File name selection pattern
3271  */
3272 tSCC zHp_InlineList[] =
3273   "sys/spinlock.h\0machine/machparam.h\0";
3275  *  Machine/OS name selection pattern
3276  */
3277 #define apzHp_InlineMachs (const char**)NULL
3280  *  content selection pattern - do fix if pattern found
3281  */
3282 tSCC zHp_InlineSelect0[] =
3283        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3285 #define    HP_INLINE_TEST_CT  1
3286 static tTestDesc aHp_InlineTests[] = {
3287   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
3290  *  Fix Command Arguments for Hp_Inline
3291  */
3292 static const char* apzHp_InlinePatch[] = {
3293     "format",
3294     "%1<machine/%2.h>",
3295     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3296     (char*)NULL };
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3300  *  Description of Hp_Sysfile fix
3301  */
3302 tSCC zHp_SysfileName[] =
3303      "hp_sysfile";
3306  *  File name selection pattern
3307  */
3308 tSCC zHp_SysfileList[] =
3309   "sys/file.h\0";
3311  *  Machine/OS name selection pattern
3312  */
3313 #define apzHp_SysfileMachs (const char**)NULL
3316  *  content selection pattern - do fix if pattern found
3317  */
3318 tSCC zHp_SysfileSelect0[] =
3319        "HPUX_SOURCE";
3321 #define    HP_SYSFILE_TEST_CT  1
3322 static tTestDesc aHp_SysfileTests[] = {
3323   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
3326  *  Fix Command Arguments for Hp_Sysfile
3327  */
3328 static const char* apzHp_SysfilePatch[] = {
3329     "format",
3330     "(struct file *, ...)",
3331     "\\(\\.\\.\\.\\)",
3332     (char*)NULL };
3334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3336  *  Description of Hppa_Hpux_Fp_Macros fix
3337  */
3338 tSCC zHppa_Hpux_Fp_MacrosName[] =
3339      "hppa_hpux_fp_macros";
3342  *  File name selection pattern
3343  */
3344 tSCC zHppa_Hpux_Fp_MacrosList[] =
3345   "math.h\0";
3347  *  Machine/OS name selection pattern
3348  */
3349 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3350         "hppa*-hp-hpux11*",
3351         (const char*)NULL };
3354  *  content selection pattern - do fix if pattern found
3355  */
3356 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3357        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3358 #[ \t]*define[ \t]*FP_ZERO.*\n\
3359 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3360 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3361 #[ \t]*define[ \t]*FP_NAN.*\n";
3363 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
3364 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3365   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3368  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
3369  */
3370 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3371     "format",
3372     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3373 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3374    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3375 %0#endif\n\n\
3376 #ifdef _INCLUDE_HPUX_SOURCE\n",
3377     (char*)NULL };
3379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3381  *  Description of Hpux10_Cpp_Pow_Inline fix
3382  */
3383 tSCC zHpux10_Cpp_Pow_InlineName[] =
3384      "hpux10_cpp_pow_inline";
3387  *  File name selection pattern
3388  */
3389 tSCC zHpux10_Cpp_Pow_InlineList[] =
3390   "fixinc-test-limits.h\0math.h\0";
3392  *  Machine/OS name selection pattern
3393  */
3394 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3397  *  content selection pattern - do fix if pattern found
3398  */
3399 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3400        "^# +ifdef +__cplusplus\n\
3401  +\\}\n\
3402  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3403 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3404  +\\}\n\
3405  +extern +\"C\" +\\{\n\
3406 #else\n\
3407 # +endif";
3409 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
3410 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3411   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3414  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3415  */
3416 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3417     "format",
3418     "",
3419     (char*)NULL };
3421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3423  *  Description of Hpux11_Cpp_Pow_Inline fix
3424  */
3425 tSCC zHpux11_Cpp_Pow_InlineName[] =
3426      "hpux11_cpp_pow_inline";
3429  *  File name selection pattern
3430  */
3431 tSCC zHpux11_Cpp_Pow_InlineList[] =
3432   "math.h\0";
3434  *  Machine/OS name selection pattern
3435  */
3436 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3439  *  content selection pattern - do fix if pattern found
3440  */
3441 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3442        " +inline double pow\\(double d,int expon\\) \\{\n\
3443  +return pow\\(d, \\(double\\)expon\\);\n\
3444  +\\}\n";
3446 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
3447 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3448   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3451  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3452  */
3453 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3454     "format",
3455     "",
3456     (char*)NULL };
3458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3460  *  Description of Hpux10_Ctype_Declarations1 fix
3461  */
3462 tSCC zHpux10_Ctype_Declarations1Name[] =
3463      "hpux10_ctype_declarations1";
3466  *  File name selection pattern
3467  */
3468 tSCC zHpux10_Ctype_Declarations1List[] =
3469   "ctype.h\0";
3471  *  Machine/OS name selection pattern
3472  */
3473 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3476  *  content selection pattern - do fix if pattern found
3477  */
3478 tSCC zHpux10_Ctype_Declarations1Select0[] =
3479        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3482  *  content bypass pattern - skip fix if pattern found
3483  */
3484 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3485        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3487 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
3488 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3489   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3490   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3493  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
3494  */
3495 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3496     "format",
3497     "#ifdef _PROTOTYPES\n\
3498 extern int __tolower(int);\n\
3499 extern int __toupper(int);\n\
3500 #else /* NOT _PROTOTYPES */\n\
3501 extern int __tolower();\n\
3502 extern int __toupper();\n\
3503 #endif /* _PROTOTYPES */\n\n\
3504 %0\n",
3505     (char*)NULL };
3507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3509  *  Description of Hpux10_Ctype_Declarations2 fix
3510  */
3511 tSCC zHpux10_Ctype_Declarations2Name[] =
3512      "hpux10_ctype_declarations2";
3515  *  File name selection pattern
3516  */
3517 tSCC zHpux10_Ctype_Declarations2List[] =
3518   "ctype.h\0";
3520  *  Machine/OS name selection pattern
3521  */
3522 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3525  *  content selection pattern - do fix if pattern found
3526  */
3527 tSCC zHpux10_Ctype_Declarations2Select0[] =
3528        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3531  *  content bypass pattern - skip fix if pattern found
3532  */
3533 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3534        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3536 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
3537 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3538   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3539   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3542  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
3543  */
3544 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3545     "format",
3546     "%0\n\n\
3547 #ifdef _PROTOTYPES\n\
3548      extern int _isalnum(int);\n\
3549      extern int _isalpha(int);\n\
3550      extern int _iscntrl(int);\n\
3551      extern int _isdigit(int);\n\
3552      extern int _isgraph(int);\n\
3553      extern int _islower(int);\n\
3554      extern int _isprint(int);\n\
3555      extern int _ispunct(int);\n\
3556      extern int _isspace(int);\n\
3557      extern int _isupper(int);\n\
3558      extern int _isxdigit(int);\n\
3559 #  else /* not _PROTOTYPES */\n\
3560      extern int _isalnum();\n\
3561      extern int _isalpha();\n\
3562      extern int _iscntrl();\n\
3563      extern int _isdigit();\n\
3564      extern int _isgraph();\n\
3565      extern int _islower();\n\
3566      extern int _isprint();\n\
3567      extern int _ispunct();\n\
3568      extern int _isspace();\n\
3569      extern int _isupper();\n\
3570      extern int _isxdigit();\n\
3571 #endif /* _PROTOTYPES */\n",
3572     (char*)NULL };
3574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3576  *  Description of Hpux10_Stdio_Declarations fix
3577  */
3578 tSCC zHpux10_Stdio_DeclarationsName[] =
3579      "hpux10_stdio_declarations";
3582  *  File name selection pattern
3583  */
3584 tSCC zHpux10_Stdio_DeclarationsList[] =
3585   "stdio.h\0";
3587  *  Machine/OS name selection pattern
3588  */
3589 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3592  *  content selection pattern - do fix if pattern found
3593  */
3594 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3595        "^#[ \t]*define _iob[ \t]*__iob";
3598  *  content bypass pattern - skip fix if pattern found
3599  */
3600 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3601        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3603 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
3604 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3605   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3606   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3609  *  Fix Command Arguments for Hpux10_Stdio_Declarations
3610  */
3611 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3612     "format",
3613     "%0\n\n\
3614 #  if defined(__STDC__) || defined(__cplusplus)\n\
3615      extern int snprintf(char *, size_t, const char *, ...);\n\
3616      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3617 #  else /* not __STDC__) || __cplusplus */\n\
3618      extern int snprintf();\n\
3619      extern int vsnprintf();\n\
3620 #  endif /* __STDC__) || __cplusplus */\n",
3621     (char*)NULL };
3623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3625  *  Description of Hpux11_Abs fix
3626  */
3627 tSCC zHpux11_AbsName[] =
3628      "hpux11_abs";
3631  *  File name selection pattern
3632  */
3633 tSCC zHpux11_AbsList[] =
3634   "stdlib.h\0";
3636  *  Machine/OS name selection pattern
3637  */
3638 tSCC* apzHpux11_AbsMachs[] = {
3639         "*-hp-hpux11*",
3640         (const char*)NULL };
3643  *  content selection pattern - do fix if pattern found
3644  */
3645 tSCC zHpux11_AbsSelect0[] =
3646        "ifndef _MATH_INCLUDED";
3648 #define    HPUX11_ABS_TEST_CT  1
3649 static tTestDesc aHpux11_AbsTests[] = {
3650   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
3653  *  Fix Command Arguments for Hpux11_Abs
3654  */
3655 static const char* apzHpux11_AbsPatch[] = {
3656     "format",
3657     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3658     (char*)NULL };
3660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3662  *  Description of Hpux11_Fabsf fix
3663  */
3664 tSCC zHpux11_FabsfName[] =
3665      "hpux11_fabsf";
3668  *  File name selection pattern
3669  */
3670 tSCC zHpux11_FabsfList[] =
3671   "math.h\0";
3673  *  Machine/OS name selection pattern
3674  */
3675 #define apzHpux11_FabsfMachs (const char**)NULL
3678  *  content selection pattern - do fix if pattern found
3679  */
3680 tSCC zHpux11_FabsfSelect0[] =
3681        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3684  *  content bypass pattern - skip fix if pattern found
3685  */
3686 tSCC zHpux11_FabsfBypass0[] =
3687        "__cplusplus";
3689 #define    HPUX11_FABSF_TEST_CT  2
3690 static tTestDesc aHpux11_FabsfTests[] = {
3691   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
3692   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3695  *  Fix Command Arguments for Hpux11_Fabsf
3696  */
3697 static const char* apzHpux11_FabsfPatch[] = {
3698     "format",
3699     "#ifndef __cplusplus\n\
3700 %0\n\
3701 #endif",
3702     (char*)NULL };
3704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3706  *  Description of Hpux11_Pthread_Const fix
3707  */
3708 tSCC zHpux11_Pthread_ConstName[] =
3709      "hpux11_pthread_const";
3712  *  File name selection pattern
3713  */
3714 tSCC zHpux11_Pthread_ConstList[] =
3715   "sys/pthread.h\0";
3717  *  Machine/OS name selection pattern
3718  */
3719 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3720         "*-hp-hpux11.[0-3]*",
3721         (const char*)NULL };
3724  *  content selection pattern - do fix if pattern found
3725  */
3726 tSCC zHpux11_Pthread_ConstSelect0[] =
3727        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3729 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
3730 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3731   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3734  *  Fix Command Arguments for Hpux11_Pthread_Const
3735  */
3736 static const char* apzHpux11_Pthread_ConstPatch[] = {
3737     "format",
3738     "#define __POINTER_SET\t\t((void *) 1L)",
3739     (char*)NULL };
3741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3743  *  Description of Hpux11_Size_T fix
3744  */
3745 tSCC zHpux11_Size_TName[] =
3746      "hpux11_size_t";
3749  *  File name selection pattern
3750  */
3751 #define zHpux11_Size_TList (char*)NULL
3753  *  Machine/OS name selection pattern
3754  */
3755 tSCC* apzHpux11_Size_TMachs[] = {
3756         "*-hp-hpux11*",
3757         (const char*)NULL };
3760  *  content selection pattern - do fix if pattern found
3761  */
3762 tSCC zHpux11_Size_TSelect0[] =
3763        "__size_t";
3765 #define    HPUX11_SIZE_T_TEST_CT  1
3766 static tTestDesc aHpux11_Size_TTests[] = {
3767   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3770  *  Fix Command Arguments for Hpux11_Size_T
3771  */
3772 static const char* apzHpux11_Size_TPatch[] = {
3773     "format",
3774     "_hpux_size_t",
3775     (char*)NULL };
3777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3779  *  Description of Hpux11_Snprintf fix
3780  */
3781 tSCC zHpux11_SnprintfName[] =
3782      "hpux11_snprintf";
3785  *  File name selection pattern
3786  */
3787 tSCC zHpux11_SnprintfList[] =
3788   "stdio.h\0";
3790  *  Machine/OS name selection pattern
3791  */
3792 #define apzHpux11_SnprintfMachs (const char**)NULL
3795  *  content selection pattern - do fix if pattern found
3796  */
3797 tSCC zHpux11_SnprintfSelect0[] =
3798        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3800 #define    HPUX11_SNPRINTF_TEST_CT  1
3801 static tTestDesc aHpux11_SnprintfTests[] = {
3802   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3805  *  Fix Command Arguments for Hpux11_Snprintf
3806  */
3807 static const char* apzHpux11_SnprintfPatch[] = {
3808     "format",
3809     "%1 const %3",
3810     (char*)NULL };
3812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3814  *  Description of Hpux11_Vsnprintf fix
3815  */
3816 tSCC zHpux11_VsnprintfName[] =
3817      "hpux11_vsnprintf";
3820  *  File name selection pattern
3821  */
3822 tSCC zHpux11_VsnprintfList[] =
3823   "stdio.h\0";
3825  *  Machine/OS name selection pattern
3826  */
3827 #define apzHpux11_VsnprintfMachs (const char**)NULL
3830  *  content selection pattern - do fix if pattern found
3831  */
3832 tSCC zHpux11_VsnprintfSelect0[] =
3833        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3835 #define    HPUX11_VSNPRINTF_TEST_CT  1
3836 static tTestDesc aHpux11_VsnprintfTests[] = {
3837   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3840  *  Fix Command Arguments for Hpux11_Vsnprintf
3841  */
3842 static const char* apzHpux11_VsnprintfPatch[] = {
3843     "format",
3844     "%1 __va_list);",
3845     (char*)NULL };
3847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3849  *  Description of Hpux8_Bogus_Inlines fix
3850  */
3851 tSCC zHpux8_Bogus_InlinesName[] =
3852      "hpux8_bogus_inlines";
3855  *  File name selection pattern
3856  */
3857 tSCC zHpux8_Bogus_InlinesList[] =
3858   "math.h\0";
3860  *  Machine/OS name selection pattern
3861  */
3862 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3865  *  content selection pattern - do fix if pattern found
3866  */
3867 tSCC zHpux8_Bogus_InlinesSelect0[] =
3868        "inline";
3871  *  content bypass pattern - skip fix if pattern found
3872  */
3873 tSCC zHpux8_Bogus_InlinesBypass0[] =
3874        "__GNUG__";
3876 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
3877 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3878   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3879   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3882  *  Fix Command Arguments for Hpux8_Bogus_Inlines
3883  */
3884 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3885     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3886     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3887     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3888     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3889     (char*)NULL };
3891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3893  *  Description of Hpux_Ctype_Macros fix
3894  */
3895 tSCC zHpux_Ctype_MacrosName[] =
3896      "hpux_ctype_macros";
3899  *  File name selection pattern
3900  */
3901 tSCC zHpux_Ctype_MacrosList[] =
3902   "ctype.h\0";
3904  *  Machine/OS name selection pattern
3905  */
3906 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3909  *  content selection pattern - do fix if pattern found
3910  */
3911 tSCC zHpux_Ctype_MacrosSelect0[] =
3912        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3914 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3915 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3916   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3919  *  Fix Command Arguments for Hpux_Ctype_Macros
3920  */
3921 static const char* apzHpux_Ctype_MacrosPatch[] = {
3922     "format",
3923     "%1(int)%3",
3924     (char*)NULL };
3926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3928  *  Description of Hpux_Htonl fix
3929  */
3930 tSCC zHpux_HtonlName[] =
3931      "hpux_htonl";
3934  *  File name selection pattern
3935  */
3936 tSCC zHpux_HtonlList[] =
3937   "netinet/in.h\0";
3939  *  Machine/OS name selection pattern
3940  */
3941 #define apzHpux_HtonlMachs (const char**)NULL
3944  *  content selection pattern - do fix if pattern found
3945  */
3946 tSCC zHpux_HtonlSelect0[] =
3947        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3948 (/\\*\n\
3949  \\* Macros for number representation conversion\\.\n\
3950  \\*/\n\
3951 #ifndef ntohl)";
3953 #define    HPUX_HTONL_TEST_CT  1
3954 static tTestDesc aHpux_HtonlTests[] = {
3955   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
3958  *  Fix Command Arguments for Hpux_Htonl
3959  */
3960 static const char* apzHpux_HtonlPatch[] = {
3961     "format",
3962     "#if 1\n\
3963 %1",
3964     (char*)NULL };
3966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3968  *  Description of Hpux_Long_Double fix
3969  */
3970 tSCC zHpux_Long_DoubleName[] =
3971      "hpux_long_double";
3974  *  File name selection pattern
3975  */
3976 tSCC zHpux_Long_DoubleList[] =
3977   "stdlib.h\0";
3979  *  Machine/OS name selection pattern
3980  */
3981 tSCC* apzHpux_Long_DoubleMachs[] = {
3982         "*-*-hpux10*",
3983         "*-*-hpux11.[012]*",
3984         (const char*)NULL };
3987  *  content selection pattern - do fix if pattern found
3988  */
3989 tSCC zHpux_Long_DoubleSelect0[] =
3990        "extern[ \t]long_double[ \t]strtold";
3993  *  content bypass pattern - skip fix if pattern found
3994  */
3995 tSCC zHpux_Long_DoubleBypass0[] =
3996        "long_double_t";
3998 #define    HPUX_LONG_DOUBLE_TEST_CT  2
3999 static tTestDesc aHpux_Long_DoubleTests[] = {
4000   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
4001   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
4004  *  Fix Command Arguments for Hpux_Long_Double
4005  */
4006 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
4007     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
4008     "-e", "s/long_double/long double/g",
4009     (char*)NULL };
4011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4013  *  Description of Hpux_Long_Double_2 fix
4014  */
4015 tSCC zHpux_Long_Double_2Name[] =
4016      "hpux_long_double_2";
4019  *  File name selection pattern
4020  */
4021 tSCC zHpux_Long_Double_2List[] =
4022   "stdlib.h\0";
4024  *  Machine/OS name selection pattern
4025  */
4026 tSCC* apzHpux_Long_Double_2Machs[] = {
4027         "hppa*-*-hpux11.3*",
4028         (const char*)NULL };
4031  *  content selection pattern - do fix if pattern found
4032  */
4033 tSCC zHpux_Long_Double_2Select0[] =
4034        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
4036 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
4037 static tTestDesc aHpux_Long_Double_2Tests[] = {
4038   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
4041  *  Fix Command Arguments for Hpux_Long_Double_2
4042  */
4043 static const char* apzHpux_Long_Double_2Patch[] = {
4044     "format",
4045     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
4046     (char*)NULL };
4048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4050  *  Description of Hpux_Systime fix
4051  */
4052 tSCC zHpux_SystimeName[] =
4053      "hpux_systime";
4056  *  File name selection pattern
4057  */
4058 tSCC zHpux_SystimeList[] =
4059   "sys/time.h\0";
4061  *  Machine/OS name selection pattern
4062  */
4063 #define apzHpux_SystimeMachs (const char**)NULL
4066  *  content selection pattern - do fix if pattern found
4067  */
4068 tSCC zHpux_SystimeSelect0[] =
4069        "^extern struct sigevent;";
4071 #define    HPUX_SYSTIME_TEST_CT  1
4072 static tTestDesc aHpux_SystimeTests[] = {
4073   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
4076  *  Fix Command Arguments for Hpux_Systime
4077  */
4078 static const char* apzHpux_SystimePatch[] = {
4079     "format",
4080     "struct sigevent;",
4081     (char*)NULL };
4083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4085  *  Description of Hpux_Spu_Info fix
4086  */
4087 tSCC zHpux_Spu_InfoName[] =
4088      "hpux_spu_info";
4091  *  File name selection pattern
4092  */
4093 tSCC zHpux_Spu_InfoList[] =
4094   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
4096  *  Machine/OS name selection pattern
4097  */
4098 tSCC* apzHpux_Spu_InfoMachs[] = {
4099         "*-hp-hpux*",
4100         (const char*)NULL };
4103  *  content selection pattern - do fix if pattern found
4104  */
4105 tSCC zHpux_Spu_InfoSelect0[] =
4106        "^.*extern.*spu_info.*";
4108 #define    HPUX_SPU_INFO_TEST_CT  1
4109 static tTestDesc aHpux_Spu_InfoTests[] = {
4110   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
4113  *  Fix Command Arguments for Hpux_Spu_Info
4114  */
4115 static const char* apzHpux_Spu_InfoPatch[] = {
4116     "format",
4117     "#ifdef _KERNEL\n\
4118 %0\n\
4119 #endif",
4120     (char*)NULL };
4122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4124  *  Description of Hpux11_Extern_Sendfile fix
4125  */
4126 tSCC zHpux11_Extern_SendfileName[] =
4127      "hpux11_extern_sendfile";
4130  *  File name selection pattern
4131  */
4132 tSCC zHpux11_Extern_SendfileList[] =
4133   "sys/socket.h\0";
4135  *  Machine/OS name selection pattern
4136  */
4137 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4138         "*-hp-hpux11.[12]*",
4139         (const char*)NULL };
4142  *  content selection pattern - do fix if pattern found
4143  */
4144 tSCC zHpux11_Extern_SendfileSelect0[] =
4145        "^[ \t]*extern sbsize_t sendfile.*\n\
4146 .*, int\\)\\);\n";
4148 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
4149 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4150   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4153  *  Fix Command Arguments for Hpux11_Extern_Sendfile
4154  */
4155 static const char* apzHpux11_Extern_SendfilePatch[] = {
4156     "format",
4157     "#ifndef _APP32_64BIT_OFF_T\n\
4158 %0#endif\n",
4159     (char*)NULL };
4161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4163  *  Description of Hpux11_Extern_Sendpath fix
4164  */
4165 tSCC zHpux11_Extern_SendpathName[] =
4166      "hpux11_extern_sendpath";
4169  *  File name selection pattern
4170  */
4171 tSCC zHpux11_Extern_SendpathList[] =
4172   "sys/socket.h\0";
4174  *  Machine/OS name selection pattern
4175  */
4176 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4177         "*-hp-hpux11.[12]*",
4178         (const char*)NULL };
4181  *  content selection pattern - do fix if pattern found
4182  */
4183 tSCC zHpux11_Extern_SendpathSelect0[] =
4184        "^[ \t]*extern sbsize_t sendpath.*\n\
4185 .*, int\\)\\);\n";
4187 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
4188 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4189   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4192  *  Fix Command Arguments for Hpux11_Extern_Sendpath
4193  */
4194 static const char* apzHpux11_Extern_SendpathPatch[] = {
4195     "format",
4196     "#ifndef _APP32_64BIT_OFF_T\n\
4197 %0#endif\n",
4198     (char*)NULL };
4200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4202  *  Description of Hpux_Extern_Errno fix
4203  */
4204 tSCC zHpux_Extern_ErrnoName[] =
4205      "hpux_extern_errno";
4208  *  File name selection pattern
4209  */
4210 tSCC zHpux_Extern_ErrnoList[] =
4211   "errno.h\0";
4213  *  Machine/OS name selection pattern
4214  */
4215 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4216         "*-hp-hpux10.*",
4217         "*-hp-hpux11.[0-2]*",
4218         (const char*)NULL };
4221  *  content selection pattern - do fix if pattern found
4222  */
4223 tSCC zHpux_Extern_ErrnoSelect0[] =
4224        "^[ \t]*extern int errno;$";
4226 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
4227 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4228   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4231  *  Fix Command Arguments for Hpux_Extern_Errno
4232  */
4233 static const char* apzHpux_Extern_ErrnoPatch[] = {
4234     "format",
4235     "#ifdef __cplusplus\n\
4236 extern \"C\" {\n\
4237 #endif\n\
4238 %0\n\
4239 #ifdef __cplusplus\n\
4240 }\n\
4241 #endif",
4242     (char*)NULL };
4244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4246  *  Description of Hpux_Pthread_Initializers fix
4247  */
4248 tSCC zHpux_Pthread_InitializersName[] =
4249      "hpux_pthread_initializers";
4252  *  File name selection pattern
4253  */
4254 tSCC zHpux_Pthread_InitializersList[] =
4255   "sys/pthread.h\0";
4257  *  Machine/OS name selection pattern
4258  */
4259 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4260         "*-hp-hpux11.[0-3]*",
4261         (const char*)NULL };
4262 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
4263 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
4266  *  Fix Command Arguments for Hpux_Pthread_Initializers
4267  */
4268 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4269     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4270     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4271     "-e", "/^[ \t]*0$/d",
4272     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4273     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4274     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4275     "-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\\\\@",
4276     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4277     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4278     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4279     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4280     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4281     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4282     (char*)NULL };
4284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4286  *  Description of Hpux_C99_Intptr fix
4287  */
4288 tSCC zHpux_C99_IntptrName[] =
4289      "hpux_c99_intptr";
4292  *  File name selection pattern
4293  */
4294 tSCC zHpux_C99_IntptrList[] =
4295   "stdint-hpux11.h\0stdint.h\0";
4297  *  Machine/OS name selection pattern
4298  */
4299 tSCC* apzHpux_C99_IntptrMachs[] = {
4300         "*-hp-hpux11.3*",
4301         (const char*)NULL };
4302 #define HPUX_C99_INTPTR_TEST_CT  0
4303 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4306  *  Fix Command Arguments for Hpux_C99_Intptr
4307  */
4308 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4309     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4310     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4311     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4312     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4313     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4314     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4315     (char*)NULL };
4317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4319  *  Description of Hpux_C99_Inttypes fix
4320  */
4321 tSCC zHpux_C99_InttypesName[] =
4322      "hpux_c99_inttypes";
4325  *  File name selection pattern
4326  */
4327 tSCC zHpux_C99_InttypesList[] =
4328   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4330  *  Machine/OS name selection pattern
4331  */
4332 tSCC* apzHpux_C99_InttypesMachs[] = {
4333         "*-hp-hpux11.[23]*",
4334         (const char*)NULL };
4335 #define HPUX_C99_INTTYPES_TEST_CT  0
4336 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4339  *  Fix Command Arguments for Hpux_C99_Inttypes
4340  */
4341 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4342     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4343     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4344     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4345     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4346     (char*)NULL };
4348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4350  *  Description of Hpux_C99_Inttypes2 fix
4351  */
4352 tSCC zHpux_C99_Inttypes2Name[] =
4353      "hpux_c99_inttypes2";
4356  *  File name selection pattern
4357  */
4358 tSCC zHpux_C99_Inttypes2List[] =
4359   "stdint-hpux11.h\0stdint.h\0";
4361  *  Machine/OS name selection pattern
4362  */
4363 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4364         "*-hp-hpux11.2*",
4365         (const char*)NULL };
4366 #define HPUX_C99_INTTYPES2_TEST_CT  0
4367 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4370  *  Fix Command Arguments for Hpux_C99_Inttypes2
4371  */
4372 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4373     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4374     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4375     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4376     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4377     (char*)NULL };
4379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4381  *  Description of Hpux_Stdint_Least_Fast fix
4382  */
4383 tSCC zHpux_Stdint_Least_FastName[] =
4384      "hpux_stdint_least_fast";
4387  *  File name selection pattern
4388  */
4389 tSCC zHpux_Stdint_Least_FastList[] =
4390   "stdint-hpux11.h\0stdint.h\0";
4392  *  Machine/OS name selection pattern
4393  */
4394 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4395         "*-hp-hpux11.2*",
4396         (const char*)NULL };
4399  *  content selection pattern - do fix if pattern found
4400  */
4401 tSCC zHpux_Stdint_Least_FastSelect0[] =
4402        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4404 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
4405 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4406   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4409  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
4410  */
4411 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4412     "format",
4413     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
4414     (char*)NULL };
4416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4418  *  Description of Hpux_Inttype_Int8_T fix
4419  */
4420 tSCC zHpux_Inttype_Int8_TName[] =
4421      "hpux_inttype_int8_t";
4424  *  File name selection pattern
4425  */
4426 tSCC zHpux_Inttype_Int8_TList[] =
4427   "sys/_inttypes.h\0";
4429  *  Machine/OS name selection pattern
4430  */
4431 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4432         "*-hp-hpux1[01].*",
4433         (const char*)NULL };
4436  *  content selection pattern - do fix if pattern found
4437  */
4438 tSCC zHpux_Inttype_Int8_TSelect0[] =
4439        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4441 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4442 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4443   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4446  *  Fix Command Arguments for Hpux_Inttype_Int8_T
4447  */
4448 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4449     "format",
4450     "typedef signed char int%18_t;",
4451     (char*)NULL };
4453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4455  *  Description of Hpux_Imaginary_I fix
4456  */
4457 tSCC zHpux_Imaginary_IName[] =
4458      "hpux_imaginary_i";
4461  *  File name selection pattern
4462  */
4463 tSCC zHpux_Imaginary_IList[] =
4464   "complex.h\0";
4466  *  Machine/OS name selection pattern
4467  */
4468 tSCC* apzHpux_Imaginary_IMachs[] = {
4469         "ia64-hp-hpux11.*",
4470         (const char*)NULL };
4473  *  content selection pattern - do fix if pattern found
4474  */
4475 tSCC zHpux_Imaginary_ISelect0[] =
4476        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4478 #define    HPUX_IMAGINARY_I_TEST_CT  1
4479 static tTestDesc aHpux_Imaginary_ITests[] = {
4480   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4483  *  Fix Command Arguments for Hpux_Imaginary_I
4484  */
4485 static const char* apzHpux_Imaginary_IPatch[] = {
4486     "format",
4487     "#define _Complex_I (__extension__ 1.0iF)",
4488     (char*)NULL };
4490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4492  *  Description of Huge_Val_Hex fix
4493  */
4494 tSCC zHuge_Val_HexName[] =
4495      "huge_val_hex";
4498  *  File name selection pattern
4499  */
4500 tSCC zHuge_Val_HexList[] =
4501   "bits/huge_val.h\0";
4503  *  Machine/OS name selection pattern
4504  */
4505 #define apzHuge_Val_HexMachs (const char**)NULL
4508  *  content selection pattern - do fix if pattern found
4509  */
4510 tSCC zHuge_Val_HexSelect0[] =
4511        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4514  *  content bypass pattern - skip fix if pattern found
4515  */
4516 tSCC zHuge_Val_HexBypass0[] =
4517        "__builtin_huge_val";
4519 #define    HUGE_VAL_HEX_TEST_CT  2
4520 static tTestDesc aHuge_Val_HexTests[] = {
4521   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
4522   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4525  *  Fix Command Arguments for Huge_Val_Hex
4526  */
4527 static const char* apzHuge_Val_HexPatch[] = {
4528     "format",
4529     "#define HUGE_VAL (__builtin_huge_val())\n",
4530     (char*)NULL };
4532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4534  *  Description of Huge_Valf_Hex fix
4535  */
4536 tSCC zHuge_Valf_HexName[] =
4537      "huge_valf_hex";
4540  *  File name selection pattern
4541  */
4542 tSCC zHuge_Valf_HexList[] =
4543   "bits/huge_val.h\0";
4545  *  Machine/OS name selection pattern
4546  */
4547 #define apzHuge_Valf_HexMachs (const char**)NULL
4550  *  content selection pattern - do fix if pattern found
4551  */
4552 tSCC zHuge_Valf_HexSelect0[] =
4553        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4556  *  content bypass pattern - skip fix if pattern found
4557  */
4558 tSCC zHuge_Valf_HexBypass0[] =
4559        "__builtin_huge_valf";
4561 #define    HUGE_VALF_HEX_TEST_CT  2
4562 static tTestDesc aHuge_Valf_HexTests[] = {
4563   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
4564   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4567  *  Fix Command Arguments for Huge_Valf_Hex
4568  */
4569 static const char* apzHuge_Valf_HexPatch[] = {
4570     "format",
4571     "#define HUGE_VALF (__builtin_huge_valf())\n",
4572     (char*)NULL };
4574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4576  *  Description of Huge_Vall_Hex fix
4577  */
4578 tSCC zHuge_Vall_HexName[] =
4579      "huge_vall_hex";
4582  *  File name selection pattern
4583  */
4584 tSCC zHuge_Vall_HexList[] =
4585   "bits/huge_val.h\0";
4587  *  Machine/OS name selection pattern
4588  */
4589 #define apzHuge_Vall_HexMachs (const char**)NULL
4592  *  content selection pattern - do fix if pattern found
4593  */
4594 tSCC zHuge_Vall_HexSelect0[] =
4595        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4598  *  content bypass pattern - skip fix if pattern found
4599  */
4600 tSCC zHuge_Vall_HexBypass0[] =
4601        "__builtin_huge_vall";
4603 #define    HUGE_VALL_HEX_TEST_CT  2
4604 static tTestDesc aHuge_Vall_HexTests[] = {
4605   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
4606   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4609  *  Fix Command Arguments for Huge_Vall_Hex
4610  */
4611 static const char* apzHuge_Vall_HexPatch[] = {
4612     "format",
4613     "#define HUGE_VALL (__builtin_huge_vall())\n",
4614     (char*)NULL };
4616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4618  *  Description of Int_Abort_Free_And_Exit fix
4619  */
4620 tSCC zInt_Abort_Free_And_ExitName[] =
4621      "int_abort_free_and_exit";
4624  *  File name selection pattern
4625  */
4626 tSCC zInt_Abort_Free_And_ExitList[] =
4627   "stdlib.h\0";
4629  *  Machine/OS name selection pattern
4630  */
4631 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4634  *  content selection pattern - do fix if pattern found
4635  */
4636 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4637        "int[ \t]+(abort|free|exit)[ \t]*\\(";
4640  *  content bypass pattern - skip fix if pattern found
4641  */
4642 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4643        "_CLASSIC_ANSI_TYPES";
4645 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
4646 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4647   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4648   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4651  *  Fix Command Arguments for Int_Abort_Free_And_Exit
4652  */
4653 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4654     "format",
4655     "void\t%1(",
4656     (char*)NULL };
4658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4660  *  Description of Io_Quotes_Def fix
4661  */
4662 tSCC zIo_Quotes_DefName[] =
4663      "io_quotes_def";
4666  *  File name selection pattern
4667  */
4668 #define zIo_Quotes_DefList (char*)NULL
4670  *  Machine/OS name selection pattern
4671  */
4672 #define apzIo_Quotes_DefMachs (const char**)NULL
4675  *  content selection pattern - do fix if pattern found
4676  */
4677 tSCC zIo_Quotes_DefSelect0[] =
4678        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4680 #define    IO_QUOTES_DEF_TEST_CT  1
4681 static tTestDesc aIo_Quotes_DefTests[] = {
4682   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4685  *  Fix Command Arguments for Io_Quotes_Def
4686  */
4687 static const char* apzIo_Quotes_DefPatch[] = {
4688     "char_macro_def",
4689     "IO",
4690     (char*)NULL };
4692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4694  *  Description of Io_Quotes_Use fix
4695  */
4696 tSCC zIo_Quotes_UseName[] =
4697      "io_quotes_use";
4700  *  File name selection pattern
4701  */
4702 #define zIo_Quotes_UseList (char*)NULL
4704  *  Machine/OS name selection pattern
4705  */
4706 #define apzIo_Quotes_UseMachs (const char**)NULL
4709  *  content selection pattern - do fix if pattern found
4710  */
4711 tSCC zIo_Quotes_UseSelect0[] =
4712        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4714 #define    IO_QUOTES_USE_TEST_CT  1
4715 static tTestDesc aIo_Quotes_UseTests[] = {
4716   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4719  *  Fix Command Arguments for Io_Quotes_Use
4720  */
4721 static const char* apzIo_Quotes_UsePatch[] = {
4722     "char_macro_use",
4723     "IO",
4724     (char*)NULL };
4726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4728  *  Description of Ip_Missing_Semi fix
4729  */
4730 tSCC zIp_Missing_SemiName[] =
4731      "ip_missing_semi";
4734  *  File name selection pattern
4735  */
4736 tSCC zIp_Missing_SemiList[] =
4737   "netinet/ip.h\0";
4739  *  Machine/OS name selection pattern
4740  */
4741 #define apzIp_Missing_SemiMachs (const char**)NULL
4744  *  content selection pattern - do fix if pattern found
4745  */
4746 tSCC zIp_Missing_SemiSelect0[] =
4747        "}$";
4749 #define    IP_MISSING_SEMI_TEST_CT  1
4750 static tTestDesc aIp_Missing_SemiTests[] = {
4751   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4754  *  Fix Command Arguments for Ip_Missing_Semi
4755  */
4756 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4757     "-e", "/^struct/,/^};/s/}$/};/",
4758     (char*)NULL };
4760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4762  *  Description of Irix_Limits_Const fix
4763  */
4764 tSCC zIrix_Limits_ConstName[] =
4765      "irix_limits_const";
4768  *  File name selection pattern
4769  */
4770 tSCC zIrix_Limits_ConstList[] =
4771   "fixinc-test-limits.h\0limits.h\0";
4773  *  Machine/OS name selection pattern
4774  */
4775 #define apzIrix_Limits_ConstMachs (const char**)NULL
4778  *  content selection pattern - do fix if pattern found
4779  */
4780 tSCC zIrix_Limits_ConstSelect0[] =
4781        "^extern const ";
4783 #define    IRIX_LIMITS_CONST_TEST_CT  1
4784 static tTestDesc aIrix_Limits_ConstTests[] = {
4785   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4788  *  Fix Command Arguments for Irix_Limits_Const
4789  */
4790 static const char* apzIrix_Limits_ConstPatch[] = {
4791     "format",
4792     "extern __const ",
4793     (char*)NULL };
4795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4797  *  Description of Irix_Stdio_Va_List fix
4798  */
4799 tSCC zIrix_Stdio_Va_ListName[] =
4800      "irix_stdio_va_list";
4803  *  File name selection pattern
4804  */
4805 tSCC zIrix_Stdio_Va_ListList[] =
4806   "stdio.h\0";
4808  *  Machine/OS name selection pattern
4809  */
4810 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4813  *  content selection pattern - do fix if pattern found
4814  */
4815 tSCC zIrix_Stdio_Va_ListSelect0[] =
4816        "/\\* va_list \\*/ char \\*";
4818 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
4819 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4820   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4823  *  Fix Command Arguments for Irix_Stdio_Va_List
4824  */
4825 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4826     "format",
4827     "__gnuc_va_list",
4828     (char*)NULL };
4830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4832  *  Description of Kandr_Concat fix
4833  */
4834 tSCC zKandr_ConcatName[] =
4835      "kandr_concat";
4838  *  File name selection pattern
4839  */
4840 tSCC zKandr_ConcatList[] =
4841   "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";
4843  *  Machine/OS name selection pattern
4844  */
4845 #define apzKandr_ConcatMachs (const char**)NULL
4848  *  content selection pattern - do fix if pattern found
4849  */
4850 tSCC zKandr_ConcatSelect0[] =
4851        "/\\*\\*/";
4853 #define    KANDR_CONCAT_TEST_CT  1
4854 static tTestDesc aKandr_ConcatTests[] = {
4855   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
4858  *  Fix Command Arguments for Kandr_Concat
4859  */
4860 static const char* apzKandr_ConcatPatch[] = {
4861     "format",
4862     "##",
4863     (char*)NULL };
4865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4867  *  Description of Linux_Ia64_Ucontext fix
4868  */
4869 tSCC zLinux_Ia64_UcontextName[] =
4870      "linux_ia64_ucontext";
4873  *  File name selection pattern
4874  */
4875 tSCC zLinux_Ia64_UcontextList[] =
4876   "sys/ucontext.h\0";
4878  *  Machine/OS name selection pattern
4879  */
4880 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4881         "ia64-*-linux*",
4882         (const char*)NULL };
4885  *  content selection pattern - do fix if pattern found
4886  */
4887 tSCC zLinux_Ia64_UcontextSelect0[] =
4888        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4890 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
4891 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4892   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4895  *  Fix Command Arguments for Linux_Ia64_Ucontext
4896  */
4897 static const char* apzLinux_Ia64_UcontextPatch[] = {
4898     "format",
4899     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4900     (char*)NULL };
4902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4904  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
4905  */
4906 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4907      "lynxos_no_warning_in_sys_time_h";
4910  *  File name selection pattern
4911  */
4912 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4913   "sys/time.h\0";
4915  *  Machine/OS name selection pattern
4916  */
4917 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4920  *  content selection pattern - do fix if pattern found
4921  */
4922 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4923        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4925 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
4926 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4927   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4930  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4931  */
4932 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4933     "format",
4934     "",
4935     (char*)NULL };
4937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4939  *  Description of Lynxos_Missing_Putenv fix
4940  */
4941 tSCC zLynxos_Missing_PutenvName[] =
4942      "lynxos_missing_putenv";
4945  *  File name selection pattern
4946  */
4947 tSCC zLynxos_Missing_PutenvList[] =
4948   "stdlib.h\0";
4950  *  Machine/OS name selection pattern
4951  */
4952 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4953         "*-*-lynxos*",
4954         (const char*)NULL };
4957  *  content selection pattern - do fix if pattern found
4958  */
4959 tSCC zLynxos_Missing_PutenvSelect0[] =
4960        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4963  *  content bypass pattern - skip fix if pattern found
4964  */
4965 tSCC zLynxos_Missing_PutenvBypass0[] =
4966        "putenv[ \\t]*\\(";
4968 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
4969 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4970   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4971   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4974  *  Fix Command Arguments for Lynxos_Missing_Putenv
4975  */
4976 static const char* apzLynxos_Missing_PutenvPatch[] = {
4977     "format",
4978     "%0\n\
4979 extern int putenv\t\t\t\t_AP((char *));",
4980     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4981     (char*)NULL };
4983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4985  *  Description of Machine_Ansi_H_Va_List fix
4986  */
4987 tSCC zMachine_Ansi_H_Va_ListName[] =
4988      "machine_ansi_h_va_list";
4991  *  File name selection pattern
4992  */
4993 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4995  *  Machine/OS name selection pattern
4996  */
4997 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5000  *  content selection pattern - do fix if pattern found
5001  */
5002 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5003        "define[ \t]+_BSD_VA_LIST_[ \t]";
5006  *  content bypass pattern - skip fix if pattern found
5007  */
5008 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5009        "__builtin_va_list";
5011 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5012 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5013   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5014   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5017  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5018  */
5019 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5020     "format",
5021     "%1__builtin_va_list",
5022     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5023     (char*)NULL };
5025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5027  *  Description of Machine_Name fix
5028  */
5029 tSCC zMachine_NameName[] =
5030      "machine_name";
5033  *  File name selection pattern
5034  */
5035 #define zMachine_NameList (char*)NULL
5037  *  Machine/OS name selection pattern
5038  */
5039 #define apzMachine_NameMachs (const char**)NULL
5042  *  perform the C function call test
5043  */
5044 tSCC zMachine_NameFTst0[] = "machine_name";
5046 #define    MACHINE_NAME_TEST_CT  1
5047 static tTestDesc aMachine_NameTests[] = {
5048   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5051  *  Fix Command Arguments for Machine_Name
5052  */
5053 static const char* apzMachine_NamePatch[] = {
5054     "machine_name",
5055     (char*)NULL };
5057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5059  *  Description of Math_Exception fix
5060  */
5061 tSCC zMath_ExceptionName[] =
5062      "math_exception";
5065  *  File name selection pattern
5066  */
5067 tSCC zMath_ExceptionList[] =
5068   "math.h\0";
5070  *  Machine/OS name selection pattern
5071  */
5072 #define apzMath_ExceptionMachs (const char**)NULL
5075  *  content selection pattern - do fix if pattern found
5076  */
5077 tSCC zMath_ExceptionSelect0[] =
5078        "struct exception";
5081  *  content bypass pattern - skip fix if pattern found
5082  */
5083 tSCC zMath_ExceptionBypass0[] =
5084        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5086 #define    MATH_EXCEPTION_TEST_CT  2
5087 static tTestDesc aMath_ExceptionTests[] = {
5088   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5089   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5092  *  Fix Command Arguments for Math_Exception
5093  */
5094 static const char* apzMath_ExceptionPatch[] = {
5095     "wrap",
5096     "#ifdef __cplusplus\n\
5097 #define exception __math_exception\n\
5098 #endif\n",
5099     "#ifdef __cplusplus\n\
5100 #undef exception\n\
5101 #endif\n",
5102     (char*)NULL };
5104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5106  *  Description of Math_Huge_Val_From_Dbl_Max fix
5107  */
5108 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5109      "math_huge_val_from_dbl_max";
5112  *  File name selection pattern
5113  */
5114 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5115   "math.h\0";
5117  *  Machine/OS name selection pattern
5118  */
5119 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5122  *  content selection pattern - do fix if pattern found
5123  */
5124 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5125        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5128  *  content bypass pattern - skip fix if pattern found
5129  */
5130 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5131        "define[ \t]+DBL_MAX";
5133 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
5134 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5135   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5136   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5139  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5140  */
5141 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5142     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5143 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5144 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5145 \telse cat\n\
5146 \tfi",
5147     (char*)NULL };
5149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5151  *  Description of Nested_Auth_Des fix
5152  */
5153 tSCC zNested_Auth_DesName[] =
5154      "nested_auth_des";
5157  *  File name selection pattern
5158  */
5159 tSCC zNested_Auth_DesList[] =
5160   "rpc/rpc.h\0";
5162  *  Machine/OS name selection pattern
5163  */
5164 #define apzNested_Auth_DesMachs (const char**)NULL
5167  *  content selection pattern - do fix if pattern found
5168  */
5169 tSCC zNested_Auth_DesSelect0[] =
5170        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5172 #define    NESTED_AUTH_DES_TEST_CT  1
5173 static tTestDesc aNested_Auth_DesTests[] = {
5174   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5177  *  Fix Command Arguments for Nested_Auth_Des
5178  */
5179 static const char* apzNested_Auth_DesPatch[] = {
5180     "format",
5181     "%1*/ /*",
5182     (char*)NULL };
5184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5186  *  Description of Netbsd_C99_Inline_1 fix
5187  */
5188 tSCC zNetbsd_C99_Inline_1Name[] =
5189      "netbsd_c99_inline_1";
5192  *  File name selection pattern
5193  */
5194 tSCC zNetbsd_C99_Inline_1List[] =
5195   "signal.h\0";
5197  *  Machine/OS name selection pattern
5198  */
5199 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5200         "*-*-netbsd*",
5201         (const char*)NULL };
5204  *  content selection pattern - do fix if pattern found
5205  */
5206 tSCC zNetbsd_C99_Inline_1Select0[] =
5207        "extern __inline int";
5209 #define    NETBSD_C99_INLINE_1_TEST_CT  1
5210 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5211   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5214  *  Fix Command Arguments for Netbsd_C99_Inline_1
5215  */
5216 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5217     "format",
5218     "extern\n\
5219 #ifdef __GNUC_STDC_INLINE__\n\
5220 __attribute__((__gnu_inline__))\n\
5221 #endif\n\
5222 __inline int",
5223     (char*)NULL };
5225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5227  *  Description of Netbsd_C99_Inline_2 fix
5228  */
5229 tSCC zNetbsd_C99_Inline_2Name[] =
5230      "netbsd_c99_inline_2";
5233  *  File name selection pattern
5234  */
5235 tSCC zNetbsd_C99_Inline_2List[] =
5236   "signal.h\0";
5238  *  Machine/OS name selection pattern
5239  */
5240 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5241         "*-*-netbsd*",
5242         (const char*)NULL };
5245  *  content selection pattern - do fix if pattern found
5246  */
5247 tSCC zNetbsd_C99_Inline_2Select0[] =
5248        "#define _SIGINLINE extern __inline";
5250 #define    NETBSD_C99_INLINE_2_TEST_CT  1
5251 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5252   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5255  *  Fix Command Arguments for Netbsd_C99_Inline_2
5256  */
5257 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5258     "format",
5259     "#ifdef __GNUC_STDC_INLINE__\n\
5260 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5261 #else\n\
5262 %0\n\
5263 #endif",
5264     (char*)NULL };
5266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5268  *  Description of Netbsd_Extra_Semicolon fix
5269  */
5270 tSCC zNetbsd_Extra_SemicolonName[] =
5271      "netbsd_extra_semicolon";
5274  *  File name selection pattern
5275  */
5276 tSCC zNetbsd_Extra_SemicolonList[] =
5277   "sys/cdefs.h\0";
5279  *  Machine/OS name selection pattern
5280  */
5281 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5282         "*-*-netbsd*",
5283         (const char*)NULL };
5286  *  content selection pattern - do fix if pattern found
5287  */
5288 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5289        "#define[ \t]*__END_DECLS[ \t]*};";
5291 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
5292 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5293   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5296  *  Fix Command Arguments for Netbsd_Extra_Semicolon
5297  */
5298 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5299     "format",
5300     "#define __END_DECLS }",
5301     (char*)NULL };
5303 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5305  *  Description of Newlib_Stdint_1 fix
5306  */
5307 tSCC zNewlib_Stdint_1Name[] =
5308      "newlib_stdint_1";
5311  *  File name selection pattern
5312  */
5313 tSCC zNewlib_Stdint_1List[] =
5314   "stdint-newlib.h\0stdint.h\0";
5316  *  Machine/OS name selection pattern
5317  */
5318 #define apzNewlib_Stdint_1Machs (const char**)NULL
5321  *  content selection pattern - do fix if pattern found
5322  */
5323 tSCC zNewlib_Stdint_1Select0[] =
5324        "@todo - Add support for wint_t types";
5326 #define    NEWLIB_STDINT_1_TEST_CT  1
5327 static tTestDesc aNewlib_Stdint_1Tests[] = {
5328   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5331  *  Fix Command Arguments for Newlib_Stdint_1
5332  */
5333 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5334     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5335     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5336     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5337     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5338     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5339     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5340     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5341     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5342     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5343     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5344     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5345     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5346     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5347     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5348     (char*)NULL };
5350 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5352  *  Description of Newlib_Stdint_2 fix
5353  */
5354 tSCC zNewlib_Stdint_2Name[] =
5355      "newlib_stdint_2";
5358  *  File name selection pattern
5359  */
5360 tSCC zNewlib_Stdint_2List[] =
5361   "stdint-newlib.h\0stdint.h\0";
5363  *  Machine/OS name selection pattern
5364  */
5365 #define apzNewlib_Stdint_2Machs (const char**)NULL
5368  *  content selection pattern - do fix if pattern found
5369  */
5370 tSCC zNewlib_Stdint_2Select0[] =
5371        "@todo - Add support for wint_t types";
5373 #define    NEWLIB_STDINT_2_TEST_CT  1
5374 static tTestDesc aNewlib_Stdint_2Tests[] = {
5375   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5378  *  Fix Command Arguments for Newlib_Stdint_2
5379  */
5380 static const char* apzNewlib_Stdint_2Patch[] = {
5381     "format",
5382     "#define INTMAX_MAX __INTMAX_MAX__\n\
5383 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5384 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5385 #define WCHAR_MAX __WCHAR_MAX__\n\
5386 #define WCHAR_MIN __WCHAR_MIN__\n\
5387 #define WINT_MAX __WINT_MAX__\n\
5388 #define WINT_MIN __WINT_MIN__\n\n\
5389 %0",
5390     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5391     (char*)NULL };
5393 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5395  *  Description of Next_Math_Prefix fix
5396  */
5397 tSCC zNext_Math_PrefixName[] =
5398      "next_math_prefix";
5401  *  File name selection pattern
5402  */
5403 tSCC zNext_Math_PrefixList[] =
5404   "ansi/math.h\0";
5406  *  Machine/OS name selection pattern
5407  */
5408 #define apzNext_Math_PrefixMachs (const char**)NULL
5411  *  content selection pattern - do fix if pattern found
5412  */
5413 tSCC zNext_Math_PrefixSelect0[] =
5414        "^extern[ \t]+double[ \t]+__const__[ \t]";
5416 #define    NEXT_MATH_PREFIX_TEST_CT  1
5417 static tTestDesc aNext_Math_PrefixTests[] = {
5418   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5421  *  Fix Command Arguments for Next_Math_Prefix
5422  */
5423 static const char* apzNext_Math_PrefixPatch[] = {
5424     "format",
5425     "extern double %1(",
5426     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5427     (char*)NULL };
5429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5431  *  Description of Next_Template fix
5432  */
5433 tSCC zNext_TemplateName[] =
5434      "next_template";
5437  *  File name selection pattern
5438  */
5439 tSCC zNext_TemplateList[] =
5440   "bsd/libc.h\0";
5442  *  Machine/OS name selection pattern
5443  */
5444 #define apzNext_TemplateMachs (const char**)NULL
5447  *  content selection pattern - do fix if pattern found
5448  */
5449 tSCC zNext_TemplateSelect0[] =
5450        "[ \t]template\\)";
5452 #define    NEXT_TEMPLATE_TEST_CT  1
5453 static tTestDesc aNext_TemplateTests[] = {
5454   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
5457  *  Fix Command Arguments for Next_Template
5458  */
5459 static const char* apzNext_TemplatePatch[] = {
5460     "format",
5461     "(%1)",
5462     "\\(([^)]*)[ \t]template\\)",
5463     (char*)NULL };
5465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5467  *  Description of Next_Volitile fix
5468  */
5469 tSCC zNext_VolitileName[] =
5470      "next_volitile";
5473  *  File name selection pattern
5474  */
5475 tSCC zNext_VolitileList[] =
5476   "ansi/stdlib.h\0";
5478  *  Machine/OS name selection pattern
5479  */
5480 #define apzNext_VolitileMachs (const char**)NULL
5483  *  content selection pattern - do fix if pattern found
5484  */
5485 tSCC zNext_VolitileSelect0[] =
5486        "^extern[ \t]+volatile[ \t]+void[ \t]";
5488 #define    NEXT_VOLITILE_TEST_CT  1
5489 static tTestDesc aNext_VolitileTests[] = {
5490   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5493  *  Fix Command Arguments for Next_Volitile
5494  */
5495 static const char* apzNext_VolitilePatch[] = {
5496     "format",
5497     "extern void %1(",
5498     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5499     (char*)NULL };
5501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5503  *  Description of Next_Wait_Union fix
5504  */
5505 tSCC zNext_Wait_UnionName[] =
5506      "next_wait_union";
5509  *  File name selection pattern
5510  */
5511 tSCC zNext_Wait_UnionList[] =
5512   "sys/wait.h\0";
5514  *  Machine/OS name selection pattern
5515  */
5516 #define apzNext_Wait_UnionMachs (const char**)NULL
5519  *  content selection pattern - do fix if pattern found
5520  */
5521 tSCC zNext_Wait_UnionSelect0[] =
5522        "wait\\(union wait";
5524 #define    NEXT_WAIT_UNION_TEST_CT  1
5525 static tTestDesc aNext_Wait_UnionTests[] = {
5526   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5529  *  Fix Command Arguments for Next_Wait_Union
5530  */
5531 static const char* apzNext_Wait_UnionPatch[] = {
5532     "format",
5533     "wait(void",
5534     (char*)NULL };
5536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5538  *  Description of Nodeent_Syntax fix
5539  */
5540 tSCC zNodeent_SyntaxName[] =
5541      "nodeent_syntax";
5544  *  File name selection pattern
5545  */
5546 tSCC zNodeent_SyntaxList[] =
5547   "netdnet/dnetdb.h\0";
5549  *  Machine/OS name selection pattern
5550  */
5551 #define apzNodeent_SyntaxMachs (const char**)NULL
5554  *  content selection pattern - do fix if pattern found
5555  */
5556 tSCC zNodeent_SyntaxSelect0[] =
5557        "char[ \t]*\\*na_addr[ \t]*$";
5559 #define    NODEENT_SYNTAX_TEST_CT  1
5560 static tTestDesc aNodeent_SyntaxTests[] = {
5561   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5564  *  Fix Command Arguments for Nodeent_Syntax
5565  */
5566 static const char* apzNodeent_SyntaxPatch[] = {
5567     "format",
5568     "%0;",
5569     (char*)NULL };
5571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5573  *  Description of Openbsd_Null_Definition fix
5574  */
5575 tSCC zOpenbsd_Null_DefinitionName[] =
5576      "openbsd_null_definition";
5579  *  File name selection pattern
5580  */
5581 tSCC zOpenbsd_Null_DefinitionList[] =
5582   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5584  *  Machine/OS name selection pattern
5585  */
5586 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5587         "*-*-openbsd*",
5588         (const char*)NULL };
5591  *  content selection pattern - do fix if pattern found
5592  */
5593 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5594        "__GNUG__";
5596 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
5597 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5598   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5601  *  Fix Command Arguments for Openbsd_Null_Definition
5602  */
5603 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5604     "format",
5605     "#ifndef NULL\n\
5606 #ifdef __cplusplus\n\
5607 #ifdef __GNUG__\n\
5608 #define NULL\t__null\n\
5609 #else\t /* ! __GNUG__  */\n\
5610 #define NULL\t0L\n\
5611 #endif\t /* __GNUG__  */\n\
5612 #else\t /* ! __cplusplus  */\n\
5613 #define NULL\t((void *)0)\n\
5614 #endif\t /* __cplusplus  */\n\
5615 #endif\t /* !NULL  */",
5616     "^#ifndef[ \t]*NULL\n\
5617 ^#ifdef[ \t]*__GNUG__\n\
5618 ^#define[ \t]*NULL[ \t]*__null\n\
5619 ^#else\n\
5620 ^#define[ \t]*NULL[ \t]*0L\n\
5621 ^#endif\n\
5622 ^#endif",
5623     (char*)NULL };
5625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5627  *  Description of Obstack_Lvalue_Cast fix
5628  */
5629 tSCC zObstack_Lvalue_CastName[] =
5630      "obstack_lvalue_cast";
5633  *  File name selection pattern
5634  */
5635 tSCC zObstack_Lvalue_CastList[] =
5636   "obstack.h\0";
5638  *  Machine/OS name selection pattern
5639  */
5640 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5643  *  content selection pattern - do fix if pattern found
5644  */
5645 tSCC zObstack_Lvalue_CastSelect0[] =
5646        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5648 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5649 static tTestDesc aObstack_Lvalue_CastTests[] = {
5650   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5653  *  Fix Command Arguments for Obstack_Lvalue_Cast
5654  */
5655 static const char* apzObstack_Lvalue_CastPatch[] = {
5656     "format",
5657     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5658     (char*)NULL };
5660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5662  *  Description of Openbsd_Va_Start fix
5663  */
5664 tSCC zOpenbsd_Va_StartName[] =
5665      "openbsd_va_start";
5668  *  File name selection pattern
5669  */
5670 tSCC zOpenbsd_Va_StartList[] =
5671   "stdarg.h\0";
5673  *  Machine/OS name selection pattern
5674  */
5675 tSCC* apzOpenbsd_Va_StartMachs[] = {
5676         "*-*-openbsd*",
5677         (const char*)NULL };
5680  *  content selection pattern - do fix if pattern found
5681  */
5682 tSCC zOpenbsd_Va_StartSelect0[] =
5683        "__builtin_stdarg_start";
5685 #define    OPENBSD_VA_START_TEST_CT  1
5686 static tTestDesc aOpenbsd_Va_StartTests[] = {
5687   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5690  *  Fix Command Arguments for Openbsd_Va_Start
5691  */
5692 static const char* apzOpenbsd_Va_StartPatch[] = {
5693     "format",
5694     "__builtin_va_start",
5695     (char*)NULL };
5697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5699  *  Description of Osf_Namespace_A fix
5700  */
5701 tSCC zOsf_Namespace_AName[] =
5702      "osf_namespace_a";
5705  *  File name selection pattern
5706  */
5707 tSCC zOsf_Namespace_AList[] =
5708   "reg_types.h\0sys/lc_core.h\0";
5710  *  Machine/OS name selection pattern
5711  */
5712 #define apzOsf_Namespace_AMachs (const char**)NULL
5715  *  perform the 'test' shell command - do fix on success
5716  */
5717 tSCC zOsf_Namespace_ATest0[] =
5718        " -r reg_types.h";
5719 tSCC zOsf_Namespace_ATest1[] =
5720        " -r sys/lc_core.h";
5721 tSCC zOsf_Namespace_ATest2[] =
5722        " -n \"`grep '} regex_t;' reg_types.h`\"";
5723 tSCC zOsf_Namespace_ATest3[] =
5724        " -z \"`grep __regex_t regex.h`\"";
5726 #define    OSF_NAMESPACE_A_TEST_CT  4
5727 static tTestDesc aOsf_Namespace_ATests[] = {
5728   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5729   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5730   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5731   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5734  *  Fix Command Arguments for Osf_Namespace_A
5735  */
5736 static const char* apzOsf_Namespace_APatch[] = {
5737     "format",
5738     "__%0",
5739     "reg(ex|off|match)_t",
5740     (char*)NULL };
5742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5744  *  Description of Osf_Namespace_C fix
5745  */
5746 tSCC zOsf_Namespace_CName[] =
5747      "osf_namespace_c";
5750  *  File name selection pattern
5751  */
5752 tSCC zOsf_Namespace_CList[] =
5753   "regex.h\0";
5755  *  Machine/OS name selection pattern
5756  */
5757 #define apzOsf_Namespace_CMachs (const char**)NULL
5760  *  content selection pattern - do fix if pattern found
5761  */
5762 tSCC zOsf_Namespace_CSelect0[] =
5763        "#include <reg_types.h>.*";
5766  *  perform the 'test' shell command - do fix on success
5767  */
5768 tSCC zOsf_Namespace_CTest0[] =
5769        " -r reg_types.h";
5770 tSCC zOsf_Namespace_CTest1[] =
5771        " -r sys/lc_core.h";
5772 tSCC zOsf_Namespace_CTest2[] =
5773        " -n \"`grep '} regex_t;' reg_types.h`\"";
5774 tSCC zOsf_Namespace_CTest3[] =
5775        " -z \"`grep __regex_t regex.h`\"";
5777 #define    OSF_NAMESPACE_C_TEST_CT  5
5778 static tTestDesc aOsf_Namespace_CTests[] = {
5779   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
5780   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
5781   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
5782   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
5783   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5786  *  Fix Command Arguments for Osf_Namespace_C
5787  */
5788 static const char* apzOsf_Namespace_CPatch[] = {
5789     "format",
5790     "%0\n\
5791 typedef __regex_t\tregex_t;\n\
5792 typedef __regoff_t\tregoff_t;\n\
5793 typedef __regmatch_t\tregmatch_t;",
5794     (char*)NULL };
5796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5798  *  Description of Pthread_Incomplete_Struct_Argument fix
5799  */
5800 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5801      "pthread_incomplete_struct_argument";
5804  *  File name selection pattern
5805  */
5806 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5807   "pthread.h\0";
5809  *  Machine/OS name selection pattern
5810  */
5811 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5814  *  content selection pattern - do fix if pattern found
5815  */
5816 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5817        "struct __jmp_buf_tag";
5819 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
5820 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5821   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5824  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5825  */
5826 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5827     "format",
5828     "%1 *%2%3",
5829     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5830     (char*)NULL };
5832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5834  *  Description of Read_Ret_Type fix
5835  */
5836 tSCC zRead_Ret_TypeName[] =
5837      "read_ret_type";
5840  *  File name selection pattern
5841  */
5842 tSCC zRead_Ret_TypeList[] =
5843   "stdio.h\0";
5845  *  Machine/OS name selection pattern
5846  */
5847 #define apzRead_Ret_TypeMachs (const char**)NULL
5850  *  content selection pattern - do fix if pattern found
5851  */
5852 tSCC zRead_Ret_TypeSelect0[] =
5853        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5855 #define    READ_RET_TYPE_TEST_CT  1
5856 static tTestDesc aRead_Ret_TypeTests[] = {
5857   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5860  *  Fix Command Arguments for Read_Ret_Type
5861  */
5862 static const char* apzRead_Ret_TypePatch[] = {
5863     "format",
5864     "extern unsigned int fread(), fwrite();\n\
5865 %1%2",
5866     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5867     (char*)NULL };
5869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5871  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
5872  */
5873 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5874      "rpc_xdr_lvalue_cast_a";
5877  *  File name selection pattern
5878  */
5879 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5880   "rpc/xdr.h\0";
5882  *  Machine/OS name selection pattern
5883  */
5884 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5887  *  content selection pattern - do fix if pattern found
5888  */
5889 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5890        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5891 .*__extension__.*";
5893 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5894 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5895   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5898  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5899  */
5900 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5901     "format",
5902     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5903     (char*)NULL };
5905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5907  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5908  */
5909 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5910      "rpc_xdr_lvalue_cast_b";
5913  *  File name selection pattern
5914  */
5915 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5916   "rpc/xdr.h\0";
5918  *  Machine/OS name selection pattern
5919  */
5920 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5923  *  content selection pattern - do fix if pattern found
5924  */
5925 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5926        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5927 .*__extension__.*";
5929 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
5930 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5931   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5934  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5935  */
5936 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5937     "format",
5938     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5939     (char*)NULL };
5941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5943  *  Description of Rs6000_Double fix
5944  */
5945 tSCC zRs6000_DoubleName[] =
5946      "rs6000_double";
5949  *  File name selection pattern
5950  */
5951 tSCC zRs6000_DoubleList[] =
5952   "math.h\0";
5954  *  Machine/OS name selection pattern
5955  */
5956 #define apzRs6000_DoubleMachs (const char**)NULL
5959  *  content selection pattern - do fix if pattern found
5960  */
5961 tSCC zRs6000_DoubleSelect0[] =
5962        "[^a-zA-Z_]class\\(";
5964 #define    RS6000_DOUBLE_TEST_CT  1
5965 static tTestDesc aRs6000_DoubleTests[] = {
5966   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5969  *  Fix Command Arguments for Rs6000_Double
5970  */
5971 static const char* apzRs6000_DoublePatch[] = {
5972     "format",
5973     "#ifndef __cplusplus\n\
5974 %0\n\
5975 #endif",
5976     "^.*[^a-zA-Z_]class\\(.*",
5977     (char*)NULL };
5979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5981  *  Description of Rs6000_Fchmod fix
5982  */
5983 tSCC zRs6000_FchmodName[] =
5984      "rs6000_fchmod";
5987  *  File name selection pattern
5988  */
5989 tSCC zRs6000_FchmodList[] =
5990   "sys/stat.h\0";
5992  *  Machine/OS name selection pattern
5993  */
5994 #define apzRs6000_FchmodMachs (const char**)NULL
5997  *  content selection pattern - do fix if pattern found
5998  */
5999 tSCC zRs6000_FchmodSelect0[] =
6000        "fchmod\\(char \\*";
6002 #define    RS6000_FCHMOD_TEST_CT  1
6003 static tTestDesc aRs6000_FchmodTests[] = {
6004   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6007  *  Fix Command Arguments for Rs6000_Fchmod
6008  */
6009 static const char* apzRs6000_FchmodPatch[] = {
6010     "format",
6011     "fchmod(int",
6012     (char*)NULL };
6014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6016  *  Description of Rs6000_Param fix
6017  */
6018 tSCC zRs6000_ParamName[] =
6019      "rs6000_param";
6022  *  File name selection pattern
6023  */
6024 tSCC zRs6000_ParamList[] =
6025   "stdio.h\0unistd.h\0";
6027  *  Machine/OS name selection pattern
6028  */
6029 #define apzRs6000_ParamMachs (const char**)NULL
6032  *  content selection pattern - do fix if pattern found
6033  */
6034 tSCC zRs6000_ParamSelect0[] =
6035        "rename\\(const char \\*old, const char \\*new\\)";
6037 #define    RS6000_PARAM_TEST_CT  1
6038 static tTestDesc aRs6000_ParamTests[] = {
6039   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6042  *  Fix Command Arguments for Rs6000_Param
6043  */
6044 static const char* apzRs6000_ParamPatch[] = {
6045     "format",
6046     "rename(const char *_old, const char *_new)",
6047     (char*)NULL };
6049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6051  *  Description of Solaris___Restrict fix
6052  */
6053 tSCC zSolaris___RestrictName[] =
6054      "solaris___restrict";
6057  *  File name selection pattern
6058  */
6059 tSCC zSolaris___RestrictList[] =
6060   "sys/feature_tests.h\0";
6062  *  Machine/OS name selection pattern
6063  */
6064 tSCC* apzSolaris___RestrictMachs[] = {
6065         "*-*-solaris2*",
6066         (const char*)NULL };
6069  *  content selection pattern - do fix if pattern found
6070  */
6071 tSCC zSolaris___RestrictSelect0[] =
6072        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6074 #define    SOLARIS___RESTRICT_TEST_CT  1
6075 static tTestDesc aSolaris___RestrictTests[] = {
6076   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6079  *  Fix Command Arguments for Solaris___Restrict
6080  */
6081 static const char* apzSolaris___RestrictPatch[] = {
6082     "format",
6083     "#ifdef __cplusplus\n\
6084 #define\t_RESTRICT_KYWD\t__restrict\n\
6085 #else\n\
6086 %0\n\
6087 #endif",
6088     (char*)NULL };
6090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6092  *  Description of Solaris_Complex fix
6093  */
6094 tSCC zSolaris_ComplexName[] =
6095      "solaris_complex";
6098  *  File name selection pattern
6099  */
6100 tSCC zSolaris_ComplexList[] =
6101   "complex.h\0";
6103  *  Machine/OS name selection pattern
6104  */
6105 tSCC* apzSolaris_ComplexMachs[] = {
6106         "*-*-solaris2.*",
6107         (const char*)NULL };
6110  *  content selection pattern - do fix if pattern found
6111  */
6112 tSCC zSolaris_ComplexSelect0[] =
6113        "#define[ \t]_Complex_I[ \t]_Complex_I";
6115 #define    SOLARIS_COMPLEX_TEST_CT  1
6116 static tTestDesc aSolaris_ComplexTests[] = {
6117   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6120  *  Fix Command Arguments for Solaris_Complex
6121  */
6122 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6123     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6124     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6125     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6126     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6127     (char*)NULL };
6129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6131  *  Description of Solaris_Complex_Cxx fix
6132  */
6133 tSCC zSolaris_Complex_CxxName[] =
6134      "solaris_complex_cxx";
6137  *  File name selection pattern
6138  */
6139 tSCC zSolaris_Complex_CxxList[] =
6140   "complex.h\0";
6142  *  Machine/OS name selection pattern
6143  */
6144 tSCC* apzSolaris_Complex_CxxMachs[] = {
6145         "*-*-solaris2.*",
6146         (const char*)NULL };
6147 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
6148 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
6151  *  Fix Command Arguments for Solaris_Complex_Cxx
6152  */
6153 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6154     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6155 #ifdef\t__cplusplus\\\n\
6156 extern \"C\" {\\\n\
6157 #endif",
6158     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6159 #ifdef\t__cplusplus\\\n\
6160 }\\\n\
6161 #endif",
6162     (char*)NULL };
6164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6166  *  Description of Solaris_Cxx_Linkage fix
6167  */
6168 tSCC zSolaris_Cxx_LinkageName[] =
6169      "solaris_cxx_linkage";
6172  *  File name selection pattern
6173  */
6174 tSCC zSolaris_Cxx_LinkageList[] =
6175   "iso/stdlib_iso.h\0";
6177  *  Machine/OS name selection pattern
6178  */
6179 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6180         "*-*-solaris2*",
6181         (const char*)NULL };
6184  *  content selection pattern - do fix if pattern found
6185  */
6186 tSCC zSolaris_Cxx_LinkageSelect0[] =
6187        "(#if __cplusplus >= 199711L)\n\
6188 (extern \"C\\+\\+\" \\{\n\
6189 )(.*(bsearch|qsort).*)";
6191 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
6192 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6193   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6196  *  Fix Command Arguments for Solaris_Cxx_Linkage
6197  */
6198 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6199     "format",
6200     "%1 && !__GNUG__\n\
6201 %2%3",
6202     (char*)NULL };
6204 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6206  *  Description of Solaris_Getc_Strict_Stdc fix
6207  */
6208 tSCC zSolaris_Getc_Strict_StdcName[] =
6209      "solaris_getc_strict_stdc";
6212  *  File name selection pattern
6213  */
6214 tSCC zSolaris_Getc_Strict_StdcList[] =
6215   "iso/stdio_iso.h\0";
6217  *  Machine/OS name selection pattern
6218  */
6219 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6220         "*-*-solaris2*",
6221         (const char*)NULL };
6224  *  content selection pattern - do fix if pattern found
6225  */
6226 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6227        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6229 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
6230 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6231   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6234  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
6235  */
6236 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6237     "format",
6238     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6239     (char*)NULL };
6241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6243  *  Description of Solaris_Longjmp_Noreturn fix
6244  */
6245 tSCC zSolaris_Longjmp_NoreturnName[] =
6246      "solaris_longjmp_noreturn";
6249  *  File name selection pattern
6250  */
6251 tSCC zSolaris_Longjmp_NoreturnList[] =
6252   "iso/setjmp_iso.h\0";
6254  *  Machine/OS name selection pattern
6255  */
6256 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6257         "*-*-solaris2*",
6258         (const char*)NULL };
6261  *  content selection pattern - do fix if pattern found
6262  */
6263 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6264        "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6267  *  content bypass pattern - skip fix if pattern found
6268  */
6269 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6270        "__NORETURN";
6272 #define    SOLARIS_LONGJMP_NORETURN_TEST_CT  2
6273 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6274   { TT_NEGREP,   zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6275   { TT_EGREP,    zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6278  *  Fix Command Arguments for Solaris_Longjmp_Noreturn
6279  */
6280 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6281     "format",
6282     "%1 __attribute__ ((__noreturn__));",
6283     (char*)NULL };
6285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6287  *  Description of Solaris_Math_1 fix
6288  */
6289 tSCC zSolaris_Math_1Name[] =
6290      "solaris_math_1";
6293  *  File name selection pattern
6294  */
6295 tSCC zSolaris_Math_1List[] =
6296   "iso/math_c99.h\0";
6298  *  Machine/OS name selection pattern
6299  */
6300 #define apzSolaris_Math_1Machs (const char**)NULL
6303  *  content selection pattern - do fix if pattern found
6304  */
6305 tSCC zSolaris_Math_1Select0[] =
6306        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6309  *  content bypass pattern - skip fix if pattern found
6310  */
6311 tSCC zSolaris_Math_1Bypass0[] =
6312        "__GNUC__";
6314 #define    SOLARIS_MATH_1_TEST_CT  2
6315 static tTestDesc aSolaris_Math_1Tests[] = {
6316   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
6317   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
6320  *  Fix Command Arguments for Solaris_Math_1
6321  */
6322 static const char* apzSolaris_Math_1Patch[] = {
6323     "format",
6324     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6325     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6326     (char*)NULL };
6328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6330  *  Description of Solaris_Math_2 fix
6331  */
6332 tSCC zSolaris_Math_2Name[] =
6333      "solaris_math_2";
6336  *  File name selection pattern
6337  */
6338 tSCC zSolaris_Math_2List[] =
6339   "iso/math_c99.h\0";
6341  *  Machine/OS name selection pattern
6342  */
6343 #define apzSolaris_Math_2Machs (const char**)NULL
6346  *  content selection pattern - do fix if pattern found
6347  */
6348 tSCC zSolaris_Math_2Select0[] =
6349        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6352  *  content bypass pattern - skip fix if pattern found
6353  */
6354 tSCC zSolaris_Math_2Bypass0[] =
6355        "__GNUC__";
6357 #define    SOLARIS_MATH_2_TEST_CT  2
6358 static tTestDesc aSolaris_Math_2Tests[] = {
6359   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
6360   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
6363  *  Fix Command Arguments for Solaris_Math_2
6364  */
6365 static const char* apzSolaris_Math_2Patch[] = {
6366     "format",
6367     "#define\tINFINITY\t(__builtin_inff())",
6368     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6369     (char*)NULL };
6371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6373  *  Description of Solaris_Math_3 fix
6374  */
6375 tSCC zSolaris_Math_3Name[] =
6376      "solaris_math_3";
6379  *  File name selection pattern
6380  */
6381 tSCC zSolaris_Math_3List[] =
6382   "iso/math_c99.h\0";
6384  *  Machine/OS name selection pattern
6385  */
6386 #define apzSolaris_Math_3Machs (const char**)NULL
6389  *  content selection pattern - do fix if pattern found
6390  */
6391 tSCC zSolaris_Math_3Select0[] =
6392        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6395  *  content bypass pattern - skip fix if pattern found
6396  */
6397 tSCC zSolaris_Math_3Bypass0[] =
6398        "__GNUC__";
6400 #define    SOLARIS_MATH_3_TEST_CT  2
6401 static tTestDesc aSolaris_Math_3Tests[] = {
6402   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
6403   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
6406  *  Fix Command Arguments for Solaris_Math_3
6407  */
6408 static const char* apzSolaris_Math_3Patch[] = {
6409     "format",
6410     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6411     "^#define[ \t]+NAN[ \t]+__builtin_nan",
6412     (char*)NULL };
6414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6416  *  Description of Solaris_Math_4 fix
6417  */
6418 tSCC zSolaris_Math_4Name[] =
6419      "solaris_math_4";
6422  *  File name selection pattern
6423  */
6424 tSCC zSolaris_Math_4List[] =
6425   "iso/math_c99.h\0";
6427  *  Machine/OS name selection pattern
6428  */
6429 #define apzSolaris_Math_4Machs (const char**)NULL
6432  *  content selection pattern - do fix if pattern found
6433  */
6434 tSCC zSolaris_Math_4Select0[] =
6435        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6438  *  content bypass pattern - skip fix if pattern found
6439  */
6440 tSCC zSolaris_Math_4Bypass0[] =
6441        "__GNUC__";
6443 #define    SOLARIS_MATH_4_TEST_CT  2
6444 static tTestDesc aSolaris_Math_4Tests[] = {
6445   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
6446   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
6449  *  Fix Command Arguments for Solaris_Math_4
6450  */
6451 static const char* apzSolaris_Math_4Patch[] = {
6452     "format",
6453     "#define\tfpclassify(x) \\\n\
6454   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6455     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6456     (char*)NULL };
6458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6460  *  Description of Solaris_Math_8 fix
6461  */
6462 tSCC zSolaris_Math_8Name[] =
6463      "solaris_math_8";
6466  *  File name selection pattern
6467  */
6468 tSCC zSolaris_Math_8List[] =
6469   "iso/math_c99.h\0";
6471  *  Machine/OS name selection pattern
6472  */
6473 #define apzSolaris_Math_8Machs (const char**)NULL
6476  *  content selection pattern - do fix if pattern found
6477  */
6478 tSCC zSolaris_Math_8Select0[] =
6479        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6482  *  content bypass pattern - skip fix if pattern found
6483  */
6484 tSCC zSolaris_Math_8Bypass0[] =
6485        "__GNUC__";
6487 #define    SOLARIS_MATH_8_TEST_CT  2
6488 static tTestDesc aSolaris_Math_8Tests[] = {
6489   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
6490   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
6493  *  Fix Command Arguments for Solaris_Math_8
6494  */
6495 static const char* apzSolaris_Math_8Patch[] = {
6496     "format",
6497     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6498 \t\t\t   ? __builtin_signbitf(x) \\\n\
6499 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6500 \t\t\t     ? __builtin_signbitl(x) \\\n\
6501 \t\t\t     : __builtin_signbit(x))",
6502     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6503     (char*)NULL };
6505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6507  *  Description of Solaris_Math_9 fix
6508  */
6509 tSCC zSolaris_Math_9Name[] =
6510      "solaris_math_9";
6513  *  File name selection pattern
6514  */
6515 tSCC zSolaris_Math_9List[] =
6516   "iso/math_c99.h\0";
6518  *  Machine/OS name selection pattern
6519  */
6520 #define apzSolaris_Math_9Machs (const char**)NULL
6523  *  content selection pattern - do fix if pattern found
6524  */
6525 tSCC zSolaris_Math_9Select0[] =
6526        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6529  *  content bypass pattern - skip fix if pattern found
6530  */
6531 tSCC zSolaris_Math_9Bypass0[] =
6532        "__GNUC__";
6534 #define    SOLARIS_MATH_9_TEST_CT  2
6535 static tTestDesc aSolaris_Math_9Tests[] = {
6536   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
6537   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
6540  *  Fix Command Arguments for Solaris_Math_9
6541  */
6542 static const char* apzSolaris_Math_9Patch[] = {
6543     "format",
6544     "#define\t%1(x, y)%2__builtin_%1(x, y)",
6545     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6546     (char*)NULL };
6548 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6550  *  Description of Solaris_Math_10 fix
6551  */
6552 tSCC zSolaris_Math_10Name[] =
6553      "solaris_math_10";
6556  *  File name selection pattern
6557  */
6558 tSCC zSolaris_Math_10List[] =
6559   "iso/math_c99.h\0";
6561  *  Machine/OS name selection pattern
6562  */
6563 #define apzSolaris_Math_10Machs (const char**)NULL
6566  *  content selection pattern - do fix if pattern found
6567  */
6568 tSCC zSolaris_Math_10Select0[] =
6569        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6571 #define    SOLARIS_MATH_10_TEST_CT  1
6572 static tTestDesc aSolaris_Math_10Tests[] = {
6573   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
6576  *  Fix Command Arguments for Solaris_Math_10
6577  */
6578 static const char* apzSolaris_Math_10Patch[] = {
6579     "format",
6580     "#define\tisinf(x) __builtin_isinf(x)",
6581     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6582 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6583 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6584 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6585     (char*)NULL };
6587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6589  *  Description of Solaris_Mutex_Init_2 fix
6590  */
6591 tSCC zSolaris_Mutex_Init_2Name[] =
6592      "solaris_mutex_init_2";
6595  *  File name selection pattern
6596  */
6597 tSCC zSolaris_Mutex_Init_2List[] =
6598   "pthread.h\0";
6600  *  Machine/OS name selection pattern
6601  */
6602 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6603         "*-*-solaris2.[0-9]",
6604         "*-*-solaris2.[0-9][!0-9]*",
6605         (const char*)NULL };
6608  *  content selection pattern - do fix if pattern found
6609  */
6610 tSCC zSolaris_Mutex_Init_2Select0[] =
6611        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6613 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
6614 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6615   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6618  *  Fix Command Arguments for Solaris_Mutex_Init_2
6619  */
6620 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6621     "format",
6622     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6623 %0\n\
6624 #else\n\
6625 %1, {0}}%4\n\
6626 #endif",
6627     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6628 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6629     (char*)NULL };
6631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6633  *  Description of Solaris_Pow_Int_Overload fix
6634  */
6635 tSCC zSolaris_Pow_Int_OverloadName[] =
6636      "solaris_pow_int_overload";
6639  *  File name selection pattern
6640  */
6641 tSCC zSolaris_Pow_Int_OverloadList[] =
6642   "iso/math_iso.h\0";
6644  *  Machine/OS name selection pattern
6645  */
6646 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6647         "*-*-solaris2*",
6648         (const char*)NULL };
6651  *  content selection pattern - do fix if pattern found
6652  */
6653 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6654        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6655 [^{}]*\\}";
6657 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
6658 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6659   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6662  *  Fix Command Arguments for Solaris_Pow_Int_Overload
6663  */
6664 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6665     "format",
6666     "#if __cplusplus < 201103L\n\
6667 %0\n\
6668 #endif",
6669     (char*)NULL };
6671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6673  *  Description of Solaris_Rwlock_Init_1 fix
6674  */
6675 tSCC zSolaris_Rwlock_Init_1Name[] =
6676      "solaris_rwlock_init_1";
6679  *  File name selection pattern
6680  */
6681 tSCC zSolaris_Rwlock_Init_1List[] =
6682   "pthread.h\0";
6684  *  Machine/OS name selection pattern
6685  */
6686 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6687         "*-*-solaris*",
6688         (const char*)NULL };
6691  *  content selection pattern - do fix if pattern found
6692  */
6693 tSCC zSolaris_Rwlock_Init_1Select0[] =
6694        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6696 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
6697 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6698   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6701  *  Fix Command Arguments for Solaris_Rwlock_Init_1
6702  */
6703 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6704     "format",
6705     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6706 %0\n\
6707 #else\n\
6708 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6709 #endif",
6710     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6711     (char*)NULL };
6713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6715  *  Description of Solaris_Once_Init_1 fix
6716  */
6717 tSCC zSolaris_Once_Init_1Name[] =
6718      "solaris_once_init_1";
6721  *  File name selection pattern
6722  */
6723 tSCC zSolaris_Once_Init_1List[] =
6724   "pthread.h\0";
6726  *  Machine/OS name selection pattern
6727  */
6728 tSCC* apzSolaris_Once_Init_1Machs[] = {
6729         "*-*-solaris*",
6730         (const char*)NULL };
6733  *  content selection pattern - do fix if pattern found
6734  */
6735 tSCC zSolaris_Once_Init_1Select0[] =
6736        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6738 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6739 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6740   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6743  *  Fix Command Arguments for Solaris_Once_Init_1
6744  */
6745 static const char* apzSolaris_Once_Init_1Patch[] = {
6746     "format",
6747     "%1{%2}%3",
6748     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6749     (char*)NULL };
6751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6753  *  Description of Solaris_Once_Init_2 fix
6754  */
6755 tSCC zSolaris_Once_Init_2Name[] =
6756      "solaris_once_init_2";
6759  *  File name selection pattern
6760  */
6761 tSCC zSolaris_Once_Init_2List[] =
6762   "pthread.h\0";
6764  *  Machine/OS name selection pattern
6765  */
6766 tSCC* apzSolaris_Once_Init_2Machs[] = {
6767         "*-*-solaris2.[0-9]",
6768         "*-*-solaris2.[0-9][!0-9]*",
6769         (const char*)NULL };
6772  *  content selection pattern - do fix if pattern found
6773  */
6774 tSCC zSolaris_Once_Init_2Select0[] =
6775        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6777 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
6778 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6779   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6782  *  Fix Command Arguments for Solaris_Once_Init_2
6783  */
6784 static const char* apzSolaris_Once_Init_2Patch[] = {
6785     "format",
6786     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6787 %0\n\
6788 #else\n\
6789 %1{0}, {0}, {0}, {%3}%4\n\
6790 #endif",
6791     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6792     (char*)NULL };
6794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6796  *  Description of Solaris_Int_Const fix
6797  */
6798 tSCC zSolaris_Int_ConstName[] =
6799      "solaris_int_const";
6802  *  File name selection pattern
6803  */
6804 tSCC zSolaris_Int_ConstList[] =
6805   "sys/int_const.h\0";
6807  *  Machine/OS name selection pattern
6808  */
6809 tSCC* apzSolaris_Int_ConstMachs[] = {
6810         "*-*-solaris2*",
6811         (const char*)NULL };
6814  *  content selection pattern - do fix if pattern found
6815  */
6816 tSCC zSolaris_Int_ConstSelect0[] =
6817        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6818 (/*.**/)\n\
6819 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6821 #define    SOLARIS_INT_CONST_TEST_CT  1
6822 static tTestDesc aSolaris_Int_ConstTests[] = {
6823   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6826  *  Fix Command Arguments for Solaris_Int_Const
6827  */
6828 static const char* apzSolaris_Int_ConstPatch[] = {
6829     "format",
6830     "#define\tUINT8_C(c)\t(c)\n\
6831 %1\n\
6832 #define\tUINT16_C(c)\t(c)",
6833     (char*)NULL };
6835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6837  *  Description of Solaris_Int_Limits_1 fix
6838  */
6839 tSCC zSolaris_Int_Limits_1Name[] =
6840      "solaris_int_limits_1";
6843  *  File name selection pattern
6844  */
6845 tSCC zSolaris_Int_Limits_1List[] =
6846   "sys/int_limits.h\0";
6848  *  Machine/OS name selection pattern
6849  */
6850 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6851         "*-*-solaris2*",
6852         (const char*)NULL };
6855  *  content selection pattern - do fix if pattern found
6856  */
6857 tSCC zSolaris_Int_Limits_1Select0[] =
6858        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6859 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6861 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
6862 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6863   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6866  *  Fix Command Arguments for Solaris_Int_Limits_1
6867  */
6868 static const char* apzSolaris_Int_Limits_1Patch[] = {
6869     "format",
6870     "#define\tUINT8_MAX\t(255)\n\
6871 #define\tUINT16_MAX\t(65535)",
6872     (char*)NULL };
6874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6876  *  Description of Solaris_Int_Limits_2 fix
6877  */
6878 tSCC zSolaris_Int_Limits_2Name[] =
6879      "solaris_int_limits_2";
6882  *  File name selection pattern
6883  */
6884 tSCC zSolaris_Int_Limits_2List[] =
6885   "sys/int_limits.h\0";
6887  *  Machine/OS name selection pattern
6888  */
6889 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6890         "*-*-solaris2*",
6891         (const char*)NULL };
6894  *  content selection pattern - do fix if pattern found
6895  */
6896 tSCC zSolaris_Int_Limits_2Select0[] =
6897        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6899 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
6900 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6901   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6904  *  Fix Command Arguments for Solaris_Int_Limits_2
6905  */
6906 static const char* apzSolaris_Int_Limits_2Patch[] = {
6907     "format",
6908     "#define\t%1_FAST16_%2 %132_%2",
6909     (char*)NULL };
6911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6913  *  Description of Solaris_Int_Limits_3 fix
6914  */
6915 tSCC zSolaris_Int_Limits_3Name[] =
6916      "solaris_int_limits_3";
6919  *  File name selection pattern
6920  */
6921 tSCC zSolaris_Int_Limits_3List[] =
6922   "sys/int_limits.h\0";
6924  *  Machine/OS name selection pattern
6925  */
6926 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6927         "*-*-solaris2*",
6928         (const char*)NULL };
6931  *  content selection pattern - do fix if pattern found
6932  */
6933 tSCC zSolaris_Int_Limits_3Select0[] =
6934        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6936 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
6937 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6938   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6941  *  Fix Command Arguments for Solaris_Int_Limits_3
6942  */
6943 static const char* apzSolaris_Int_Limits_3Patch[] = {
6944     "format",
6945     "#define\tSIZE_MAX\t4294967295U",
6946     (char*)NULL };
6948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6950  *  Description of Solaris_Int_Types fix
6951  */
6952 tSCC zSolaris_Int_TypesName[] =
6953      "solaris_int_types";
6956  *  File name selection pattern
6957  */
6958 tSCC zSolaris_Int_TypesList[] =
6959   "sys/int_types.h\0";
6961  *  Machine/OS name selection pattern
6962  */
6963 #define apzSolaris_Int_TypesMachs (const char**)NULL
6966  *  content selection pattern - do fix if pattern found
6967  */
6968 tSCC zSolaris_Int_TypesSelect0[] =
6969        "__STDC__ - 0 == 0";
6972  *  content bypass pattern - skip fix if pattern found
6973  */
6974 tSCC zSolaris_Int_TypesBypass0[] =
6975        "_LONGLONG_TYPE";
6977 #define    SOLARIS_INT_TYPES_TEST_CT  2
6978 static tTestDesc aSolaris_Int_TypesTests[] = {
6979   { TT_NEGREP,   zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6980   { TT_EGREP,    zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6983  *  Fix Command Arguments for Solaris_Int_Types
6984  */
6985 static const char* apzSolaris_Int_TypesPatch[] = {
6986     "format",
6987     "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6988     (char*)NULL };
6990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6992  *  Description of Solaris_Posix_Spawn_Restrict fix
6993  */
6994 tSCC zSolaris_Posix_Spawn_RestrictName[] =
6995      "solaris_posix_spawn_restrict";
6998  *  File name selection pattern
6999  */
7000 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7001   "spawn.h\0";
7003  *  Machine/OS name selection pattern
7004  */
7005 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7006         "*-*-solaris2*",
7007         (const char*)NULL };
7010  *  content selection pattern - do fix if pattern found
7011  */
7012 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7013        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7015 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
7016 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7017   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7020  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7021  */
7022 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7023     "format",
7024     "%1*_RESTRICT_KYWD %2%3",
7025     (char*)NULL };
7027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7029  *  Description of Solaris_Std___Filbuf fix
7030  */
7031 tSCC zSolaris_Std___FilbufName[] =
7032      "solaris_std___filbuf";
7035  *  File name selection pattern
7036  */
7037 tSCC zSolaris_Std___FilbufList[] =
7038   "stdio.h\0";
7040  *  Machine/OS name selection pattern
7041  */
7042 tSCC* apzSolaris_Std___FilbufMachs[] = {
7043         "*-*-solaris2*",
7044         (const char*)NULL };
7047  *  content selection pattern - do fix if pattern found
7048  */
7049 tSCC zSolaris_Std___FilbufSelect0[] =
7050        "(using std::perror;\n\
7051 )(#endif)";
7054  *  content bypass pattern - skip fix if pattern found
7055  */
7056 tSCC zSolaris_Std___FilbufBypass0[] =
7057        "using std::__filbuf";
7059 #define    SOLARIS_STD___FILBUF_TEST_CT  2
7060 static tTestDesc aSolaris_Std___FilbufTests[] = {
7061   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7062   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7065  *  Fix Command Arguments for Solaris_Std___Filbuf
7066  */
7067 static const char* apzSolaris_Std___FilbufPatch[] = {
7068     "format",
7069     "%1#ifndef _LP64\n\
7070 using std::__filbuf;\n\
7071 using std::__flsbuf;\n\
7072 #endif\n\
7073 %2",
7074     (char*)NULL };
7076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7078  *  Description of Solaris_Stdio_Tag fix
7079  */
7080 tSCC zSolaris_Stdio_TagName[] =
7081      "solaris_stdio_tag";
7084  *  File name selection pattern
7085  */
7086 tSCC zSolaris_Stdio_TagList[] =
7087   "stdio_tag.h\0";
7089  *  Machine/OS name selection pattern
7090  */
7091 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7094  *  content selection pattern - do fix if pattern found
7095  */
7096 tSCC zSolaris_Stdio_TagSelect0[] =
7097        "__cplusplus < 54321L";
7100  *  content bypass pattern - skip fix if pattern found
7101  */
7102 tSCC zSolaris_Stdio_TagBypass0[] =
7103        "__GNUC__";
7105 #define    SOLARIS_STDIO_TAG_TEST_CT  2
7106 static tTestDesc aSolaris_Stdio_TagTests[] = {
7107   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7108   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7111  *  Fix Command Arguments for Solaris_Stdio_Tag
7112  */
7113 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7114     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7115     (char*)NULL };
7117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7119  *  Description of Solaris_Sys_Va_List fix
7120  */
7121 tSCC zSolaris_Sys_Va_ListName[] =
7122      "solaris_sys_va_list";
7125  *  File name selection pattern
7126  */
7127 tSCC zSolaris_Sys_Va_ListList[] =
7128   "sys/va_list.h\0";
7130  *  Machine/OS name selection pattern
7131  */
7132 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7133         "*-*-solaris2.9",
7134         (const char*)NULL };
7137  *  content selection pattern - do fix if pattern found
7138  */
7139 tSCC zSolaris_Sys_Va_ListSelect0[] =
7140        "#if.*__STDC__.*\n\
7141 typedef void \\*__va_list;\n\
7142 #else\n\
7143 typedef char \\*__va_list;\n\
7144 #endif";
7146 #define    SOLARIS_SYS_VA_LIST_TEST_CT  1
7147 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7148   { TT_EGREP,    zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7151  *  Fix Command Arguments for Solaris_Sys_Va_List
7152  */
7153 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7154     "format",
7155     "#ifdef __GNUC__\n\
7156 typedef __builtin_va_list __va_list;\n\
7157 #else\n\
7158 %0\n\
7159 #endif",
7160     (char*)NULL };
7162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7164  *  Description of Statsswtch fix
7165  */
7166 tSCC zStatsswtchName[] =
7167      "statsswtch";
7170  *  File name selection pattern
7171  */
7172 tSCC zStatsswtchList[] =
7173   "rpcsvc/rstat.h\0";
7175  *  Machine/OS name selection pattern
7176  */
7177 #define apzStatsswtchMachs (const char**)NULL
7180  *  content selection pattern - do fix if pattern found
7181  */
7182 tSCC zStatsswtchSelect0[] =
7183        "boottime$";
7185 #define    STATSSWTCH_TEST_CT  1
7186 static tTestDesc aStatsswtchTests[] = {
7187   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
7190  *  Fix Command Arguments for Statsswtch
7191  */
7192 static const char* apzStatsswtchPatch[] = {
7193     "format",
7194     "boottime;",
7195     (char*)NULL };
7197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7199  *  Description of Stdio_Stdarg_H fix
7200  */
7201 tSCC zStdio_Stdarg_HName[] =
7202      "stdio_stdarg_h";
7205  *  File name selection pattern
7206  */
7207 tSCC zStdio_Stdarg_HList[] =
7208   "stdio.h\0";
7210  *  Machine/OS name selection pattern
7211  */
7212 tSCC* apzStdio_Stdarg_HMachs[] = {
7213         "*-*-solaris2.1[0-9]*",
7214         (const char*)NULL };
7217  *  content bypass pattern - skip fix if pattern found
7218  */
7219 tSCC zStdio_Stdarg_HBypass0[] =
7220        "include.*(stdarg.h|machine/ansi.h)";
7222 #define    STDIO_STDARG_H_TEST_CT  1
7223 static tTestDesc aStdio_Stdarg_HTests[] = {
7224   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7227  *  Fix Command Arguments for Stdio_Stdarg_H
7228  */
7229 static const char* apzStdio_Stdarg_HPatch[] = {
7230     "wrap",
7231     "#define __need___va_list\n\
7232 #include <stdarg.h>\n",
7233     (char*)NULL };
7235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7237  *  Description of Stdio_Va_List fix
7238  */
7239 tSCC zStdio_Va_ListName[] =
7240      "stdio_va_list";
7243  *  File name selection pattern
7244  */
7245 tSCC zStdio_Va_ListList[] =
7246   "stdio.h\0";
7248  *  Machine/OS name selection pattern
7249  */
7250 tSCC* apzStdio_Va_ListMachs[] = {
7251         "*-*-solaris2.1[0-9]*",
7252         (const char*)NULL };
7255  *  content bypass pattern - skip fix if pattern found
7256  */
7257 tSCC zStdio_Va_ListBypass0[] =
7258        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7260 #define    STDIO_VA_LIST_TEST_CT  1
7261 static tTestDesc aStdio_Va_ListTests[] = {
7262   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7265  *  Fix Command Arguments for Stdio_Va_List
7266  */
7267 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7268     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7269 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7270 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7271 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7272 s@ va_list@ __not_va_list__@\n\
7273 s@\\*va_list@*__not_va_list__@\n\
7274 s@ __va_list)@ __gnuc_va_list)@\n\
7275 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7276 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7277 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7278 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7279 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7280 s@VA_LIST@DUMMY_VA_LIST@\n\
7281 s@_Va_LIST@_VA_LIST@",
7282     (char*)NULL };
7284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7286  *  Description of Stdio_Va_List_Clients fix
7287  */
7288 tSCC zStdio_Va_List_ClientsName[] =
7289      "stdio_va_list_clients";
7292  *  File name selection pattern
7293  */
7294 tSCC zStdio_Va_List_ClientsList[] =
7295   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7297  *  Machine/OS name selection pattern
7298  */
7299 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7302  *  content bypass pattern - skip fix if pattern found
7303  */
7304 tSCC zStdio_Va_List_ClientsBypass0[] =
7305        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7306 tSCC zStdio_Va_List_ClientsBypass1[] =
7307        "include <stdarg\\.h>|#ifdef va_start";
7309 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
7310 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7311   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7312   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7315  *  Fix Command Arguments for Stdio_Va_List_Clients
7316  */
7317 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7318     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7319 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7320 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7321 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7322 s@ va_list@ __not_va_list__@\n\
7323 s@\\*va_list@*__not_va_list__@\n\
7324 s@ __va_list)@ __gnuc_va_list)@\n\
7325 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7326 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7327 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7328 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7329 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7330 s@VA_LIST@DUMMY_VA_LIST@\n\
7331 s@_Va_LIST@_VA_LIST@",
7332     (char*)NULL };
7334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7336  *  Description of Strict_Ansi_Not fix
7337  */
7338 tSCC zStrict_Ansi_NotName[] =
7339      "strict_ansi_not";
7342  *  File name selection pattern
7343  */
7344 #define zStrict_Ansi_NotList (char*)NULL
7346  *  Machine/OS name selection pattern
7347  */
7348 #define apzStrict_Ansi_NotMachs (const char**)NULL
7351  *  content selection pattern - do fix if pattern found
7352  */
7353 tSCC zStrict_Ansi_NotSelect0[] =
7354        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7357  *  content bypass pattern - skip fix if pattern found
7358  */
7359 tSCC zStrict_Ansi_NotBypass0[] =
7360        "GNU and MIPS C compilers define __STDC__ differently";
7361 tSCC zStrict_Ansi_NotBypass1[] =
7362        "__SCO_VERSION__.*__STDC__ != 1";
7365  *  perform the C function call test
7366  */
7367 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7369 #define    STRICT_ANSI_NOT_TEST_CT  4
7370 static tTestDesc aStrict_Ansi_NotTests[] = {
7371   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
7372   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7373   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7374   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7377  *  Fix Command Arguments for Strict_Ansi_Not
7378  */
7379 static const char* apzStrict_Ansi_NotPatch[] = {
7380     "format",
7381     "%1 !defined(__STRICT_ANSI__)",
7382     (char*)NULL };
7384 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7386  *  Description of Strict_Ansi_Not_Ctd fix
7387  */
7388 tSCC zStrict_Ansi_Not_CtdName[] =
7389      "strict_ansi_not_ctd";
7392  *  File name selection pattern
7393  */
7394 tSCC zStrict_Ansi_Not_CtdList[] =
7395   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7397  *  Machine/OS name selection pattern
7398  */
7399 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7402  *  content selection pattern - do fix if pattern found
7403  */
7404 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7405        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7408  *  perform the C function call test
7409  */
7410 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7412 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
7413 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7414   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
7415   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7418  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
7419  */
7420 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7421     "format",
7422     "%1 !defined(__STRICT_ANSI__)",
7423     (char*)NULL };
7425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7427  *  Description of Strict_Ansi_Only fix
7428  */
7429 tSCC zStrict_Ansi_OnlyName[] =
7430      "strict_ansi_only";
7433  *  File name selection pattern
7434  */
7435 #define zStrict_Ansi_OnlyList (char*)NULL
7437  *  Machine/OS name selection pattern
7438  */
7439 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7442  *  content selection pattern - do fix if pattern found
7443  */
7444 tSCC zStrict_Ansi_OnlySelect0[] =
7445        "^([ \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)";
7448  *  perform the C function call test
7449  */
7450 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7452 #define    STRICT_ANSI_ONLY_TEST_CT  2
7453 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7454   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
7455   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7458  *  Fix Command Arguments for Strict_Ansi_Only
7459  */
7460 static const char* apzStrict_Ansi_OnlyPatch[] = {
7461     "format",
7462     "%1 defined(__STRICT_ANSI__)",
7463     (char*)NULL };
7465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7467  *  Description of Struct_File fix
7468  */
7469 tSCC zStruct_FileName[] =
7470      "struct_file";
7473  *  File name selection pattern
7474  */
7475 tSCC zStruct_FileList[] =
7476   "rpc/xdr.h\0";
7478  *  Machine/OS name selection pattern
7479  */
7480 #define apzStruct_FileMachs (const char**)NULL
7483  *  content selection pattern - do fix if pattern found
7484  */
7485 tSCC zStruct_FileSelect0[] =
7486        "^.*xdrstdio_create.*struct __file_s";
7488 #define    STRUCT_FILE_TEST_CT  1
7489 static tTestDesc aStruct_FileTests[] = {
7490   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
7493  *  Fix Command Arguments for Struct_File
7494  */
7495 static const char* apzStruct_FilePatch[] = {
7496     "format",
7497     "struct __file_s;\n\
7498 %0",
7499     (char*)NULL };
7501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7503  *  Description of Struct_Sockaddr fix
7504  */
7505 tSCC zStruct_SockaddrName[] =
7506      "struct_sockaddr";
7509  *  File name selection pattern
7510  */
7511 tSCC zStruct_SockaddrList[] =
7512   "rpc/auth.h\0";
7514  *  Machine/OS name selection pattern
7515  */
7516 #define apzStruct_SockaddrMachs (const char**)NULL
7519  *  content selection pattern - do fix if pattern found
7520  */
7521 tSCC zStruct_SockaddrSelect0[] =
7522        "^.*authdes_create.*struct sockaddr[^_]";
7525  *  content bypass pattern - skip fix if pattern found
7526  */
7527 tSCC zStruct_SockaddrBypass0[] =
7528        "<sys/socket.h>";
7529 tSCC zStruct_SockaddrBypass1[] =
7530        "struct sockaddr;\n";
7532 #define    STRUCT_SOCKADDR_TEST_CT  3
7533 static tTestDesc aStruct_SockaddrTests[] = {
7534   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
7535   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
7536   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7539  *  Fix Command Arguments for Struct_Sockaddr
7540  */
7541 static const char* apzStruct_SockaddrPatch[] = {
7542     "format",
7543     "struct sockaddr;\n\
7544 %0",
7545     (char*)NULL };
7547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7549  *  Description of Sun_Auth_Proto fix
7550  */
7551 tSCC zSun_Auth_ProtoName[] =
7552      "sun_auth_proto";
7555  *  File name selection pattern
7556  */
7557 tSCC zSun_Auth_ProtoList[] =
7558   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7560  *  Machine/OS name selection pattern
7561  */
7562 #define apzSun_Auth_ProtoMachs (const char**)NULL
7565  *  content selection pattern - do fix if pattern found
7566  */
7567 tSCC zSun_Auth_ProtoSelect0[] =
7568        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7571  *  content bypass pattern - skip fix if pattern found
7572  */
7573 tSCC zSun_Auth_ProtoBypass0[] =
7574        "__cplusplus";
7576 #define    SUN_AUTH_PROTO_TEST_CT  2
7577 static tTestDesc aSun_Auth_ProtoTests[] = {
7578   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7579   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7582  *  Fix Command Arguments for Sun_Auth_Proto
7583  */
7584 static const char* apzSun_Auth_ProtoPatch[] = {
7585     "format",
7586     "#ifdef __cplusplus\n\
7587 %1(...);%2\n\
7588 #else\n\
7589 %1();%2\n\
7590 #endif",
7591     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7592     (char*)NULL };
7594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7596  *  Description of Sun_Bogus_Ifdef fix
7597  */
7598 tSCC zSun_Bogus_IfdefName[] =
7599      "sun_bogus_ifdef";
7602  *  File name selection pattern
7603  */
7604 tSCC zSun_Bogus_IfdefList[] =
7605   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7607  *  Machine/OS name selection pattern
7608  */
7609 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7612  *  content selection pattern - do fix if pattern found
7613  */
7614 tSCC zSun_Bogus_IfdefSelect0[] =
7615        "#ifdef(.*\\|\\|.*)";
7617 #define    SUN_BOGUS_IFDEF_TEST_CT  1
7618 static tTestDesc aSun_Bogus_IfdefTests[] = {
7619   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7622  *  Fix Command Arguments for Sun_Bogus_Ifdef
7623  */
7624 static const char* apzSun_Bogus_IfdefPatch[] = {
7625     "format",
7626     "#if%1",
7627     (char*)NULL };
7629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7631  *  Description of Sun_Catmacro fix
7632  */
7633 tSCC zSun_CatmacroName[] =
7634      "sun_catmacro";
7637  *  File name selection pattern
7638  */
7639 tSCC zSun_CatmacroList[] =
7640   "pixrect/memvar.h\0";
7642  *  Machine/OS name selection pattern
7643  */
7644 #define apzSun_CatmacroMachs (const char**)NULL
7647  *  content selection pattern - do fix if pattern found
7648  */
7649 tSCC zSun_CatmacroSelect0[] =
7650        "^#define[ \t]+CAT\\(a,b\\).*";
7652 #define    SUN_CATMACRO_TEST_CT  1
7653 static tTestDesc aSun_CatmacroTests[] = {
7654   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
7657  *  Fix Command Arguments for Sun_Catmacro
7658  */
7659 static const char* apzSun_CatmacroPatch[] = {
7660     "format",
7661     "#ifdef __STDC__\n\
7662 #  define CAT(a,b) a##b\n\
7663 #else\n\
7664 %0\n\
7665 #endif",
7666     (char*)NULL };
7668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7670  *  Description of Sun_Malloc fix
7671  */
7672 tSCC zSun_MallocName[] =
7673      "sun_malloc";
7676  *  File name selection pattern
7677  */
7678 tSCC zSun_MallocList[] =
7679   "malloc.h\0";
7681  *  Machine/OS name selection pattern
7682  */
7683 #define apzSun_MallocMachs (const char**)NULL
7686  *  content bypass pattern - skip fix if pattern found
7687  */
7688 tSCC zSun_MallocBypass0[] =
7689        "_CLASSIC_ANSI_TYPES";
7691 #define    SUN_MALLOC_TEST_CT  1
7692 static tTestDesc aSun_MallocTests[] = {
7693   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
7696  *  Fix Command Arguments for Sun_Malloc
7697  */
7698 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7699     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7700     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7701     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7702     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7703     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7704     (char*)NULL };
7706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7708  *  Description of Sun_Rusers_Semi fix
7709  */
7710 tSCC zSun_Rusers_SemiName[] =
7711      "sun_rusers_semi";
7714  *  File name selection pattern
7715  */
7716 tSCC zSun_Rusers_SemiList[] =
7717   "rpcsvc/rusers.h\0";
7719  *  Machine/OS name selection pattern
7720  */
7721 #define apzSun_Rusers_SemiMachs (const char**)NULL
7724  *  content selection pattern - do fix if pattern found
7725  */
7726 tSCC zSun_Rusers_SemiSelect0[] =
7727        "_cnt$";
7729 #define    SUN_RUSERS_SEMI_TEST_CT  1
7730 static tTestDesc aSun_Rusers_SemiTests[] = {
7731   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7734  *  Fix Command Arguments for Sun_Rusers_Semi
7735  */
7736 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7737     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7738     (char*)NULL };
7740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7742  *  Description of Sun_Signal fix
7743  */
7744 tSCC zSun_SignalName[] =
7745      "sun_signal";
7748  *  File name selection pattern
7749  */
7750 tSCC zSun_SignalList[] =
7751   "sys/signal.h\0signal.h\0";
7753  *  Machine/OS name selection pattern
7754  */
7755 #define apzSun_SignalMachs (const char**)NULL
7758  *  content selection pattern - do fix if pattern found
7759  */
7760 tSCC zSun_SignalSelect0[] =
7761        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7763 #define    SUN_SIGNAL_TEST_CT  1
7764 static tTestDesc aSun_SignalTests[] = {
7765   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
7768  *  Fix Command Arguments for Sun_Signal
7769  */
7770 static const char* apzSun_SignalPatch[] = {
7771     "format",
7772     "#ifdef __cplusplus\n\
7773 void\t(*signal(...))(...);\n\
7774 #else\n\
7775 %0\n\
7776 #endif",
7777     (char*)NULL };
7779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7781  *  Description of Sunos_Strlen fix
7782  */
7783 tSCC zSunos_StrlenName[] =
7784      "sunos_strlen";
7787  *  File name selection pattern
7788  */
7789 tSCC zSunos_StrlenList[] =
7790   "strings.h\0";
7792  *  Machine/OS name selection pattern
7793  */
7794 #define apzSunos_StrlenMachs (const char**)NULL
7797  *  content selection pattern - do fix if pattern found
7798  */
7799 tSCC zSunos_StrlenSelect0[] =
7800        "int[ \t]*strlen\\(\\);(.*)";
7802 #define    SUNOS_STRLEN_TEST_CT  1
7803 static tTestDesc aSunos_StrlenTests[] = {
7804   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
7807  *  Fix Command Arguments for Sunos_Strlen
7808  */
7809 static const char* apzSunos_StrlenPatch[] = {
7810     "format",
7811     "__SIZE_TYPE__ strlen();%1",
7812     (char*)NULL };
7814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7816  *  Description of Svr4_Disable_Opt fix
7817  */
7818 tSCC zSvr4_Disable_OptName[] =
7819      "svr4_disable_opt";
7822  *  File name selection pattern
7823  */
7824 tSCC zSvr4_Disable_OptList[] =
7825   "string.h\0";
7827  *  Machine/OS name selection pattern
7828  */
7829 #define apzSvr4_Disable_OptMachs (const char**)NULL
7832  *  content selection pattern - do fix if pattern found
7833  */
7834 tSCC zSvr4_Disable_OptSelect0[] =
7835        "#define.*__std_hdr_";
7837 #define    SVR4_DISABLE_OPT_TEST_CT  1
7838 static tTestDesc aSvr4_Disable_OptTests[] = {
7839   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7842  *  Fix Command Arguments for Svr4_Disable_Opt
7843  */
7844 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7845     "-e", "/#define.*__std_hdr_/d",
7846     (char*)NULL };
7848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7850  *  Description of Svr4_Getcwd fix
7851  */
7852 tSCC zSvr4_GetcwdName[] =
7853      "svr4_getcwd";
7856  *  File name selection pattern
7857  */
7858 tSCC zSvr4_GetcwdList[] =
7859   "stdlib.h\0unistd.h\0prototypes.h\0";
7861  *  Machine/OS name selection pattern
7862  */
7863 #define apzSvr4_GetcwdMachs (const char**)NULL
7866  *  content selection pattern - do fix if pattern found
7867  */
7868 tSCC zSvr4_GetcwdSelect0[] =
7869        "getcwd\\(char \\*, int\\)";
7871 #define    SVR4_GETCWD_TEST_CT  1
7872 static tTestDesc aSvr4_GetcwdTests[] = {
7873   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7876  *  Fix Command Arguments for Svr4_Getcwd
7877  */
7878 static const char* apzSvr4_GetcwdPatch[] = {
7879     "format",
7880     "getcwd(char *, size_t)",
7881     (char*)NULL };
7883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7885  *  Description of Svr4_Profil fix
7886  */
7887 tSCC zSvr4_ProfilName[] =
7888      "svr4_profil";
7891  *  File name selection pattern
7892  */
7893 tSCC zSvr4_ProfilList[] =
7894   "stdlib.h\0unistd.h\0";
7896  *  Machine/OS name selection pattern
7897  */
7898 #define apzSvr4_ProfilMachs (const char**)NULL
7901  *  content selection pattern - do fix if pattern found
7902  */
7903 tSCC zSvr4_ProfilSelect0[] =
7904        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7906 #define    SVR4_PROFIL_TEST_CT  1
7907 static tTestDesc aSvr4_ProfilTests[] = {
7908   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7911  *  Fix Command Arguments for Svr4_Profil
7912  */
7913 static const char* apzSvr4_ProfilPatch[] = {
7914     "format",
7915     "profil(unsigned short *, size_t, int, unsigned int)",
7916     (char*)NULL };
7918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7920  *  Description of Svr4_Sighandler_Type fix
7921  */
7922 tSCC zSvr4_Sighandler_TypeName[] =
7923      "svr4_sighandler_type";
7926  *  File name selection pattern
7927  */
7928 tSCC zSvr4_Sighandler_TypeList[] =
7929   "sys/signal.h\0";
7931  *  Machine/OS name selection pattern
7932  */
7933 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7936  *  content selection pattern - do fix if pattern found
7937  */
7938 tSCC zSvr4_Sighandler_TypeSelect0[] =
7939        "void *\\(\\*\\)\\(\\)";
7941 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
7942 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7943   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7946  *  Fix Command Arguments for Svr4_Sighandler_Type
7947  */
7948 static const char* apzSvr4_Sighandler_TypePatch[] = {
7949     "format",
7950     "void (*)(int)",
7951     (char*)NULL };
7953 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7955  *  Description of Svr4_Undeclared_Getrnge fix
7956  */
7957 tSCC zSvr4_Undeclared_GetrngeName[] =
7958      "svr4_undeclared_getrnge";
7961  *  File name selection pattern
7962  */
7963 tSCC zSvr4_Undeclared_GetrngeList[] =
7964   "regexp.h\0";
7966  *  Machine/OS name selection pattern
7967  */
7968 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7971  *  content selection pattern - do fix if pattern found
7972  */
7973 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7974        "getrnge";
7977  *  content bypass pattern - skip fix if pattern found
7978  */
7979 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7980        "static void getrnge";
7982 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
7983 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7984   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7985   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7988  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
7989  */
7990 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7991     "format",
7992     "%0\n\
7993 static int getrnge ();",
7994     "^static int[ \t]+size;",
7995     (char*)NULL };
7997 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7999  *  Description of Sysv68_String fix
8000  */
8001 tSCC zSysv68_StringName[] =
8002      "sysv68_string";
8005  *  File name selection pattern
8006  */
8007 tSCC zSysv68_StringList[] =
8008   "testing.h\0string.h\0";
8010  *  Machine/OS name selection pattern
8011  */
8012 #define apzSysv68_StringMachs (const char**)NULL
8015  *  content bypass pattern - skip fix if pattern found
8016  */
8017 tSCC zSysv68_StringBypass0[] =
8018        "_CLASSIC_ANSI_TYPES";
8020 #define    SYSV68_STRING_TEST_CT  1
8021 static tTestDesc aSysv68_StringTests[] = {
8022   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
8025  *  Fix Command Arguments for Sysv68_String
8026  */
8027 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8028     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8029     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8030     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8031     "-e", "/^extern char$/N",
8032     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8033     "-e", "/^extern int$/N",
8034     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8035     "-e", "/^\tstrncmp(),$/N",
8036     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8037 extern unsigned int\\\n\
8038 \\2/",
8039     (char*)NULL };
8041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8043  *  Description of Sysz_Stdlib_For_Sun fix
8044  */
8045 tSCC zSysz_Stdlib_For_SunName[] =
8046      "sysz_stdlib_for_sun";
8049  *  File name selection pattern
8050  */
8051 tSCC zSysz_Stdlib_For_SunList[] =
8052   "stdlib.h\0";
8054  *  Machine/OS name selection pattern
8055  */
8056 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8059  *  content selection pattern - do fix if pattern found
8060  */
8061 tSCC zSysz_Stdlib_For_SunSelect0[] =
8062        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8065  *  content bypass pattern - skip fix if pattern found
8066  */
8067 tSCC zSysz_Stdlib_For_SunBypass0[] =
8068        "_CLASSIC_ANSI_TYPES";
8070 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
8071 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8072   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8073   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8076  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
8077  */
8078 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8079     "format",
8080     "void *\t%1(",
8081     (char*)NULL };
8083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8085  *  Description of Thread_Keyword fix
8086  */
8087 tSCC zThread_KeywordName[] =
8088      "thread_keyword";
8091  *  File name selection pattern
8092  */
8093 tSCC zThread_KeywordList[] =
8094   "pthread.h\0bits/sigthread.h\0";
8096  *  Machine/OS name selection pattern
8097  */
8098 #define apzThread_KeywordMachs (const char**)NULL
8101  *  content selection pattern - do fix if pattern found
8102  */
8103 tSCC zThread_KeywordSelect0[] =
8104        "([* ])__thread([,)])";
8106 #define    THREAD_KEYWORD_TEST_CT  1
8107 static tTestDesc aThread_KeywordTests[] = {
8108   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
8111  *  Fix Command Arguments for Thread_Keyword
8112  */
8113 static const char* apzThread_KeywordPatch[] = {
8114     "format",
8115     "%1__thr%2",
8116     (char*)NULL };
8118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8120  *  Description of Tinfo_Cplusplus fix
8121  */
8122 tSCC zTinfo_CplusplusName[] =
8123      "tinfo_cplusplus";
8126  *  File name selection pattern
8127  */
8128 tSCC zTinfo_CplusplusList[] =
8129   "tinfo.h\0";
8131  *  Machine/OS name selection pattern
8132  */
8133 #define apzTinfo_CplusplusMachs (const char**)NULL
8136  *  content selection pattern - do fix if pattern found
8137  */
8138 tSCC zTinfo_CplusplusSelect0[] =
8139        "[ \t]_cplusplus";
8141 #define    TINFO_CPLUSPLUS_TEST_CT  1
8142 static tTestDesc aTinfo_CplusplusTests[] = {
8143   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8146  *  Fix Command Arguments for Tinfo_Cplusplus
8147  */
8148 static const char* apzTinfo_CplusplusPatch[] = {
8149     "format",
8150     " __cplusplus",
8151     (char*)NULL };
8153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8155  *  Description of Ultrix_Const fix
8156  */
8157 tSCC zUltrix_ConstName[] =
8158      "ultrix_const";
8161  *  File name selection pattern
8162  */
8163 tSCC zUltrix_ConstList[] =
8164   "stdio.h\0";
8166  *  Machine/OS name selection pattern
8167  */
8168 #define apzUltrix_ConstMachs (const char**)NULL
8171  *  content selection pattern - do fix if pattern found
8172  */
8173 tSCC zUltrix_ConstSelect0[] =
8174        "perror\\( char \\*";
8176 #define    ULTRIX_CONST_TEST_CT  1
8177 static tTestDesc aUltrix_ConstTests[] = {
8178   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
8181  *  Fix Command Arguments for Ultrix_Const
8182  */
8183 static const char* apzUltrix_ConstPatch[] = {
8184     "format",
8185     "%1 const %3 *__",
8186     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8187     (char*)NULL };
8189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8191  *  Description of Ultrix_Const2 fix
8192  */
8193 tSCC zUltrix_Const2Name[] =
8194      "ultrix_const2";
8197  *  File name selection pattern
8198  */
8199 tSCC zUltrix_Const2List[] =
8200   "stdio.h\0";
8202  *  Machine/OS name selection pattern
8203  */
8204 #define apzUltrix_Const2Machs (const char**)NULL
8207  *  content selection pattern - do fix if pattern found
8208  */
8209 tSCC zUltrix_Const2Select0[] =
8210        "\\*fopen\\( char \\*";
8212 #define    ULTRIX_CONST2_TEST_CT  1
8213 static tTestDesc aUltrix_Const2Tests[] = {
8214   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
8217  *  Fix Command Arguments for Ultrix_Const2
8218  */
8219 static const char* apzUltrix_Const2Patch[] = {
8220     "format",
8221     "%1( const char *%3, const char *",
8222     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8223     (char*)NULL };
8225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8227  *  Description of Va_I960_Macro fix
8228  */
8229 tSCC zVa_I960_MacroName[] =
8230      "va_i960_macro";
8233  *  File name selection pattern
8234  */
8235 tSCC zVa_I960_MacroList[] =
8236   "arch/i960/archI960.h\0";
8238  *  Machine/OS name selection pattern
8239  */
8240 #define apzVa_I960_MacroMachs (const char**)NULL
8243  *  content selection pattern - do fix if pattern found
8244  */
8245 tSCC zVa_I960_MacroSelect0[] =
8246        "__(vsiz|vali|vpad|alignof__)";
8248 #define    VA_I960_MACRO_TEST_CT  1
8249 static tTestDesc aVa_I960_MacroTests[] = {
8250   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8253  *  Fix Command Arguments for Va_I960_Macro
8254  */
8255 static const char* apzVa_I960_MacroPatch[] = {
8256     "format",
8257     "__vx%1",
8258     (char*)NULL };
8260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8262  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
8263  */
8264 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8265      "vms_define_can_use_extern_prefix";
8268  *  File name selection pattern
8269  */
8270 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8271   "rtldef/decc$types.h\0";
8273  *  Machine/OS name selection pattern
8274  */
8275 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8276         "*-*-*vms*",
8277         (const char*)NULL };
8280  *  content selection pattern - do fix if pattern found
8281  */
8282 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8283        "#[ \t]*else\n\
8284 #[ \t]*if defined\\(__DECCXX\\)\n\
8285 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8287 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
8288 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8289   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8292  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8293  */
8294 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8295     "format",
8296     "%0#    elif defined (__GNUC__)\n\
8297 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8298     (char*)NULL };
8300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8302  *  Description of Vms_Use_Pragma_Extern_Model fix
8303  */
8304 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8305      "vms_use_pragma_extern_model";
8308  *  File name selection pattern
8309  */
8310 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8312  *  Machine/OS name selection pattern
8313  */
8314 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8315         "*-*-*vms*",
8316         (const char*)NULL };
8319  *  content selection pattern - do fix if pattern found
8320  */
8321 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8322        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8323 # pragma extern_model __save\n";
8325 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
8326 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8327   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8330  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8331  */
8332 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8333     "format",
8334     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8335 # pragma extern_model __save\n",
8336     (char*)NULL };
8338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8340  *  Description of Vms_Disable_Decc_String_Builtins fix
8341  */
8342 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8343      "vms_disable_decc_string_builtins";
8346  *  File name selection pattern
8347  */
8348 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8349   "rtldef/string.h\0";
8351  *  Machine/OS name selection pattern
8352  */
8353 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8354         "*-*-*vms*",
8355         (const char*)NULL };
8358  *  content selection pattern - do fix if pattern found
8359  */
8360 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8361        "#if !defined\\(__VAX\\)\n";
8363 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
8364 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8365   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8368  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8369  */
8370 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8371     "format",
8372     "#if !defined(__VAX) && !defined(__GNUC__)\n",
8373     (char*)NULL };
8375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8377  *  Description of Vms_Use_Quoted_Include fix
8378  */
8379 tSCC zVms_Use_Quoted_IncludeName[] =
8380      "vms_use_quoted_include";
8383  *  File name selection pattern
8384  */
8385 tSCC zVms_Use_Quoted_IncludeList[] =
8386   "rtldef/wait.h\0starlet_c/pthread.h\0";
8388  *  Machine/OS name selection pattern
8389  */
8390 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
8391         "*-*-*vms*",
8392         (const char*)NULL };
8395  *  content selection pattern - do fix if pattern found
8396  */
8397 tSCC zVms_Use_Quoted_IncludeSelect0[] =
8398        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
8400 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
8401 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
8402   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
8405  *  Fix Command Arguments for Vms_Use_Quoted_Include
8406  */
8407 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8408     "format",
8409     "%1<sys/%2.h>",
8410     (char*)NULL };
8412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8414  *  Description of Vms_Add_Missing_Braces fix
8415  */
8416 tSCC zVms_Add_Missing_BracesName[] =
8417      "vms_add_missing_braces";
8420  *  File name selection pattern
8421  */
8422 tSCC zVms_Add_Missing_BracesList[] =
8423   "rtldef/signal.h\0";
8425  *  Machine/OS name selection pattern
8426  */
8427 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8428         "*-*-*vms*",
8429         (const char*)NULL };
8432  *  content selection pattern - do fix if pattern found
8433  */
8434 tSCC zVms_Add_Missing_BracesSelect0[] =
8435        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8437 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
8438 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8439   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8442  *  Fix Command Arguments for Vms_Add_Missing_Braces
8443  */
8444 static const char* apzVms_Add_Missing_BracesPatch[] = {
8445     "format",
8446     "%1 {%2} ",
8447     (char*)NULL };
8449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8451  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
8452  */
8453 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8454      "vms_do_not_redeclare_hostalias";
8457  *  File name selection pattern
8458  */
8459 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8460   "rtldef/resolv.h\0";
8462  *  Machine/OS name selection pattern
8463  */
8464 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8465         "*-*-*vms*",
8466         (const char*)NULL };
8469  *  content selection pattern - do fix if pattern found
8470  */
8471 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8472        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8473 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8475 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
8476 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8477   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8480  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8481  */
8482 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8483     "format",
8484     "%1\n\
8485 /* %2 */",
8486     (char*)NULL };
8488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8490  *  Description of Vms_Decc_Builtin fix
8491  */
8492 tSCC zVms_Decc_BuiltinName[] =
8493      "vms_decc_builtin";
8496  *  File name selection pattern
8497  */
8498 tSCC zVms_Decc_BuiltinList[] =
8499   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8501  *  Machine/OS name selection pattern
8502  */
8503 tSCC* apzVms_Decc_BuiltinMachs[] = {
8504         "*-*-*vms*",
8505         (const char*)NULL };
8508  *  content selection pattern - do fix if pattern found
8509  */
8510 tSCC zVms_Decc_BuiltinSelect0[] =
8511        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8513 #define    VMS_DECC_BUILTIN_TEST_CT  1
8514 static tTestDesc aVms_Decc_BuiltinTests[] = {
8515   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8518  *  Fix Command Arguments for Vms_Decc_Builtin
8519  */
8520 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8521     "-e", "s@__MEMSET@memset@",
8522     "-e", "s@__MEMMOVE@memmove@",
8523     "-e", "s@__MEMCPY@memcpy@",
8524     "-e", "s@__STRLEN@strlen@",
8525     "-e", "s@__STRCPY@strcpy@",
8526     (char*)NULL };
8528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8530  *  Description of Vms_No_64bit_Getopt fix
8531  */
8532 tSCC zVms_No_64bit_GetoptName[] =
8533      "vms_no_64bit_getopt";
8536  *  File name selection pattern
8537  */
8538 tSCC zVms_No_64bit_GetoptList[] =
8539   "rtldef/stdio.h\0rtldef/unistd.h\0";
8541  *  Machine/OS name selection pattern
8542  */
8543 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8544         "*-*-*vms*",
8545         (const char*)NULL };
8548  *  content selection pattern - do fix if pattern found
8549  */
8550 tSCC zVms_No_64bit_GetoptSelect0[] =
8551        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8553 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
8554 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8555   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8558  *  Fix Command Arguments for Vms_No_64bit_Getopt
8559  */
8560 static const char* apzVms_No_64bit_GetoptPatch[] = {
8561     "format",
8562     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
8563 %0#endif\n",
8564     (char*)NULL };
8566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8568  *  Description of Vms_Forward_Declare_Struct fix
8569  */
8570 tSCC zVms_Forward_Declare_StructName[] =
8571      "vms_forward_declare_struct";
8574  *  File name selection pattern
8575  */
8576 tSCC zVms_Forward_Declare_StructList[] =
8577   "rtldef/if.h\0";
8579  *  Machine/OS name selection pattern
8580  */
8581 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8582         "*-*-*vms*",
8583         (const char*)NULL };
8586  *  content selection pattern - do fix if pattern found
8587  */
8588 tSCC zVms_Forward_Declare_StructSelect0[] =
8589        "(/\\* forward decls for C\\+\\+ \\*/\n\
8590 )#ifdef __cplusplus\n";
8592 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
8593 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8594   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8597  *  Fix Command Arguments for Vms_Forward_Declare_Struct
8598  */
8599 static const char* apzVms_Forward_Declare_StructPatch[] = {
8600     "format",
8601     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8602     (char*)NULL };
8604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8606  *  Description of Vms_Use_Fast_Setjmp fix
8607  */
8608 tSCC zVms_Use_Fast_SetjmpName[] =
8609      "vms_use_fast_setjmp";
8612  *  File name selection pattern
8613  */
8614 tSCC zVms_Use_Fast_SetjmpList[] =
8615   "rtldef/setjmp.h\0";
8617  *  Machine/OS name selection pattern
8618  */
8619 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8620         "*-*-*vms*",
8621         (const char*)NULL };
8624  *  content selection pattern - do fix if pattern found
8625  */
8626 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8627        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8629 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
8630 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8631   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8634  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
8635  */
8636 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8637     "format",
8638     "%0 defined (__GNUC__) ||",
8639     (char*)NULL };
8641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8643  *  Description of Void_Null fix
8644  */
8645 tSCC zVoid_NullName[] =
8646      "void_null";
8649  *  File name selection pattern
8650  */
8651 tSCC zVoid_NullList[] =
8652   "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";
8654  *  Machine/OS name selection pattern
8655  */
8656 #define apzVoid_NullMachs (const char**)NULL
8659  *  content selection pattern - do fix if pattern found
8660  */
8661 tSCC zVoid_NullSelect0[] =
8662        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8665  *  content bypass pattern - skip fix if pattern found
8666  */
8667 tSCC zVoid_NullBypass0[] =
8668        "__cplusplus";
8669 tSCC zVoid_NullBypass1[] =
8670        "__null";
8672 #define    VOID_NULL_TEST_CT  3
8673 static tTestDesc aVoid_NullTests[] = {
8674   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8675   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
8676   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8679  *  Fix Command Arguments for Void_Null
8680  */
8681 static const char* apzVoid_NullPatch[] = {
8682     "format",
8683     "#define NULL 0",
8684     (char*)NULL };
8686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8688  *  Description of Vxworks_Gcc_Problem fix
8689  */
8690 tSCC zVxworks_Gcc_ProblemName[] =
8691      "vxworks_gcc_problem";
8694  *  File name selection pattern
8695  */
8696 tSCC zVxworks_Gcc_ProblemList[] =
8697   "types/vxTypesBase.h\0";
8699  *  Machine/OS name selection pattern
8700  */
8701 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8704  *  content selection pattern - do fix if pattern found
8705  */
8706 tSCC zVxworks_Gcc_ProblemSelect0[] =
8707        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8709 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8710 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8711   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8714  *  Fix Command Arguments for Vxworks_Gcc_Problem
8715  */
8716 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8717     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8718     "-e", "/[ \t]size_t/i\\\n\
8719 #ifndef _GCC_SIZE_T\\\n\
8720 #define _GCC_SIZE_T\n",
8721     "-e", "/[ \t]size_t/a\\\n\
8722 #endif\n",
8723     "-e", "/[ \t]ptrdiff_t/i\\\n\
8724 #ifndef _GCC_PTRDIFF_T\\\n\
8725 #define _GCC_PTRDIFF_T\n",
8726     "-e", "/[ \t]ptrdiff_t/a\\\n\
8727 #endif\n",
8728     "-e", "/[ \t]wchar_t/i\\\n\
8729 #ifndef _GCC_WCHAR_T\\\n\
8730 #define _GCC_WCHAR_T\n",
8731     "-e", "/[ \t]wchar_t/a\\\n\
8732 #endif\n",
8733     (char*)NULL };
8735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8737  *  Description of Vxworks_Ioctl_Macro fix
8738  */
8739 tSCC zVxworks_Ioctl_MacroName[] =
8740      "vxworks_ioctl_macro";
8743  *  File name selection pattern
8744  */
8745 tSCC zVxworks_Ioctl_MacroList[] =
8746   "ioLib.h\0";
8748  *  Machine/OS name selection pattern
8749  */
8750 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
8751         "*-*-vxworks*",
8752         (const char*)NULL };
8753 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
8754 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
8757  *  Fix Command Arguments for Vxworks_Ioctl_Macro
8758  */
8759 static const char* apzVxworks_Ioctl_MacroPatch[] = {
8760     "format",
8761     "%0\n\
8762 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
8763     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
8764     (char*)NULL };
8766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8768  *  Description of Vxworks_Mkdir_Macro fix
8769  */
8770 tSCC zVxworks_Mkdir_MacroName[] =
8771      "vxworks_mkdir_macro";
8774  *  File name selection pattern
8775  */
8776 tSCC zVxworks_Mkdir_MacroList[] =
8777   "sys/stat.h\0";
8779  *  Machine/OS name selection pattern
8780  */
8781 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
8782         "*-*-vxworks*",
8783         (const char*)NULL };
8784 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
8785 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
8788  *  Fix Command Arguments for Vxworks_Mkdir_Macro
8789  */
8790 static const char* apzVxworks_Mkdir_MacroPatch[] = {
8791     "format",
8792     "%0\n\
8793 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
8794     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
8795     (char*)NULL };
8797 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8799  *  Description of Vxworks_Needs_Vxtypes fix
8800  */
8801 tSCC zVxworks_Needs_VxtypesName[] =
8802      "vxworks_needs_vxtypes";
8805  *  File name selection pattern
8806  */
8807 tSCC zVxworks_Needs_VxtypesList[] =
8808   "time.h\0";
8810  *  Machine/OS name selection pattern
8811  */
8812 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8815  *  content selection pattern - do fix if pattern found
8816  */
8817 tSCC zVxworks_Needs_VxtypesSelect0[] =
8818        "uint_t([ \t]+_clocks_per_sec)";
8820 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8821 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8822   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8825  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8826  */
8827 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8828     "format",
8829     "unsigned int%1",
8830     (char*)NULL };
8832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8834  *  Description of Vxworks_Needs_Vxworks fix
8835  */
8836 tSCC zVxworks_Needs_VxworksName[] =
8837      "vxworks_needs_vxworks";
8840  *  File name selection pattern
8841  */
8842 tSCC zVxworks_Needs_VxworksList[] =
8843   "sys/stat.h\0";
8845  *  Machine/OS name selection pattern
8846  */
8847 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8850  *  content selection pattern - do fix if pattern found
8851  */
8852 tSCC zVxworks_Needs_VxworksSelect0[] =
8853        "#[ \t]define[ \t]+__INCstath";
8856  *  perform the 'test' shell command - do fix on success
8857  */
8858 tSCC zVxworks_Needs_VxworksTest0[] =
8859        " -r types/vxTypesOld.h";
8860 tSCC zVxworks_Needs_VxworksTest1[] =
8861        " -n \"`egrep '#include' $file`\"";
8862 tSCC zVxworks_Needs_VxworksTest2[] =
8863        " -n \"`egrep ULONG $file`\"";
8865 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8866 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8867   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8868   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8869   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8870   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8873  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8874  */
8875 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8876     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8877 #include <types/vxTypesOld.h>\n",
8878     (char*)NULL };
8880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8882  *  Description of Vxworks_Regs fix
8883  */
8884 tSCC zVxworks_RegsName[] =
8885      "vxworks_regs";
8888  *  File name selection pattern
8889  */
8890 #define zVxworks_RegsList (char*)NULL
8892  *  Machine/OS name selection pattern
8893  */
8894 tSCC* apzVxworks_RegsMachs[] = {
8895         "*-*-vxworks*",
8896         (const char*)NULL };
8899  *  content selection pattern - do fix if pattern found
8900  */
8901 tSCC zVxworks_RegsSelect0[] =
8902        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
8904 #define    VXWORKS_REGS_TEST_CT  1
8905 static tTestDesc aVxworks_RegsTests[] = {
8906   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
8909  *  Fix Command Arguments for Vxworks_Regs
8910  */
8911 static const char* apzVxworks_RegsPatch[] = {
8912     "format",
8913     "#include <arch/../regs.h>",
8914     (char*)NULL };
8916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8918  *  Description of Vxworks_Time fix
8919  */
8920 tSCC zVxworks_TimeName[] =
8921      "vxworks_time";
8924  *  File name selection pattern
8925  */
8926 tSCC zVxworks_TimeList[] =
8927   "time.h\0";
8929  *  Machine/OS name selection pattern
8930  */
8931 #define apzVxworks_TimeMachs (const char**)NULL
8934  *  content selection pattern - do fix if pattern found
8935  */
8936 tSCC zVxworks_TimeSelect0[] =
8937        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8940  *  perform the 'test' shell command - do fix on success
8941  */
8942 tSCC zVxworks_TimeTest0[] =
8943        " -r vxWorks.h";
8945 #define    VXWORKS_TIME_TEST_CT  2
8946 static tTestDesc aVxworks_TimeTests[] = {
8947   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8948   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8951  *  Fix Command Arguments for Vxworks_Time
8952  */
8953 static const char* apzVxworks_TimePatch[] = {
8954     "format",
8955     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8956 #ifdef __cplusplus\n\
8957 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8958 #else\n\
8959 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8960 #endif\n\
8961 #define __gcc_VOIDFUNCPTR_defined\n\
8962 #endif\n\
8963 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8964     (char*)NULL };
8966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8968  *  Description of Vxworks_Write_Const fix
8969  */
8970 tSCC zVxworks_Write_ConstName[] =
8971      "vxworks_write_const";
8974  *  File name selection pattern
8975  */
8976 tSCC zVxworks_Write_ConstList[] =
8977   "ioLib.h\0";
8979  *  Machine/OS name selection pattern
8980  */
8981 tSCC* apzVxworks_Write_ConstMachs[] = {
8982         "*-*-vxworks*",
8983         (const char*)NULL };
8984 #define VXWORKS_WRITE_CONST_TEST_CT  0
8985 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
8988  *  Fix Command Arguments for Vxworks_Write_Const
8989  */
8990 static const char* apzVxworks_Write_ConstPatch[] = {
8991     "format",
8992     "extern int  write (int, const char*, size_t);",
8993     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
8994     (char*)NULL };
8996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8998  *  Description of X11_Class fix
8999  */
9000 tSCC zX11_ClassName[] =
9001      "x11_class";
9004  *  File name selection pattern
9005  */
9006 tSCC zX11_ClassList[] =
9007   "X11/ShellP.h\0";
9009  *  Machine/OS name selection pattern
9010  */
9011 #define apzX11_ClassMachs (const char**)NULL
9014  *  content selection pattern - do fix if pattern found
9015  */
9016 tSCC zX11_ClassSelect0[] =
9017        "^([ \t]*char \\*)class;(.*)";
9020  *  content bypass pattern - skip fix if pattern found
9021  */
9022 tSCC zX11_ClassBypass0[] =
9023        "__cplusplus";
9025 #define    X11_CLASS_TEST_CT  2
9026 static tTestDesc aX11_ClassTests[] = {
9027   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
9028   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
9031  *  Fix Command Arguments for X11_Class
9032  */
9033 static const char* apzX11_ClassPatch[] = {
9034     "format",
9035     "#ifdef __cplusplus\n\
9036 %1c_class;%2\n\
9037 #else\n\
9038 %1class;%2\n\
9039 #endif",
9040     (char*)NULL };
9042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9044  *  Description of X11_Class_Usage fix
9045  */
9046 tSCC zX11_Class_UsageName[] =
9047      "x11_class_usage";
9050  *  File name selection pattern
9051  */
9052 tSCC zX11_Class_UsageList[] =
9053   "Xm/BaseClassI.h\0";
9055  *  Machine/OS name selection pattern
9056  */
9057 #define apzX11_Class_UsageMachs (const char**)NULL
9060  *  content selection pattern - do fix if pattern found
9061  */
9062 tSCC zX11_Class_UsageSelect0[] =
9063        " class\\)";
9066  *  content bypass pattern - skip fix if pattern found
9067  */
9068 tSCC zX11_Class_UsageBypass0[] =
9069        "__cplusplus";
9071 #define    X11_CLASS_USAGE_TEST_CT  2
9072 static tTestDesc aX11_Class_UsageTests[] = {
9073   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
9074   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
9077  *  Fix Command Arguments for X11_Class_Usage
9078  */
9079 static const char* apzX11_Class_UsagePatch[] = {
9080     "format",
9081     " c_class)",
9082     (char*)NULL };
9084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9086  *  Description of X11_New fix
9087  */
9088 tSCC zX11_NewName[] =
9089      "x11_new";
9092  *  File name selection pattern
9093  */
9094 tSCC zX11_NewList[] =
9095   "Xm/Traversal.h\0";
9097  *  Machine/OS name selection pattern
9098  */
9099 #define apzX11_NewMachs (const char**)NULL
9102  *  content bypass pattern - skip fix if pattern found
9103  */
9104 tSCC zX11_NewBypass0[] =
9105        "__cplusplus";
9107 #define    X11_NEW_TEST_CT  1
9108 static tTestDesc aX11_NewTests[] = {
9109   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
9112  *  Fix Command Arguments for X11_New
9113  */
9114 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9115     "-e", "/Widget\told, new;/i\\\n\
9116 #ifdef __cplusplus\\\n\
9117 \\\tWidget\told, c_new;\\\n\
9118 #else\n",
9119     "-e", "/Widget\told, new;/a\\\n\
9120 #endif\n",
9121     "-e", "s/Widget new,/Widget c_new,/g",
9122     (char*)NULL };
9124 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9126  *  Description of X11_Sprintf fix
9127  */
9128 tSCC zX11_SprintfName[] =
9129      "x11_sprintf";
9132  *  File name selection pattern
9133  */
9134 tSCC zX11_SprintfList[] =
9135   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9137  *  Machine/OS name selection pattern
9138  */
9139 #define apzX11_SprintfMachs (const char**)NULL
9142  *  content selection pattern - do fix if pattern found
9143  */
9144 tSCC zX11_SprintfSelect0[] =
9145        "^extern char \\*\tsprintf\\(\\);$";
9147 #define    X11_SPRINTF_TEST_CT  1
9148 static tTestDesc aX11_SprintfTests[] = {
9149   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
9152  *  Fix Command Arguments for X11_Sprintf
9153  */
9154 static const char* apzX11_SprintfPatch[] = {
9155     "format",
9156     "#ifndef __STDC__\n\
9157 %0\n\
9158 #endif /* !defined __STDC__ */",
9159     (char*)NULL };
9161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9163  *  Description of Feraiseexcept_Nosse_Invalid fix
9164  */
9165 tSCC zFeraiseexcept_Nosse_InvalidName[] =
9166      "feraiseexcept_nosse_invalid";
9169  *  File name selection pattern
9170  */
9171 tSCC zFeraiseexcept_Nosse_InvalidList[] =
9172   "bits/fenv.h\0";
9174  *  Machine/OS name selection pattern
9175  */
9176 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
9177         "i[34567]86-*-linux*",
9178         "x86*-linux*",
9179         "amd64-*-linux*",
9180         (const char*)NULL };
9183  *  content selection pattern - do fix if pattern found
9184  */
9185 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
9186        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
9189  *  content bypass pattern - skip fix if pattern found
9190  */
9191 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
9192        "\"fdiv .*; fwait\"";
9194 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
9195 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
9196   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
9197   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
9200  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
9201  */
9202 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
9203     "format",
9204     "# ifdef __SSE_MATH__\n\
9205 %0\n\
9206 # else\n\
9207 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
9208 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
9209 # endif",
9210     (char*)NULL };
9212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9214  *  Description of Feraiseexcept_Nosse_Divbyzero fix
9215  */
9216 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
9217      "feraiseexcept_nosse_divbyzero";
9220  *  File name selection pattern
9221  */
9222 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
9223   "bits/fenv.h\0";
9225  *  Machine/OS name selection pattern
9226  */
9227 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
9228         "i[34567]86-*-linux*",
9229         "x86*-linux*",
9230         "amd64-*-linux*",
9231         (const char*)NULL };
9234  *  content selection pattern - do fix if pattern found
9235  */
9236 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
9237        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
9240  *  content bypass pattern - skip fix if pattern found
9241  */
9242 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
9243        "\"fdivp .*; fwait\"";
9245 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
9246 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
9247   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
9248   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
9251  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
9252  */
9253 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
9254     "format",
9255     "# ifdef __SSE_MATH__\n\
9256 %0\n\
9257 # else\n\
9258 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
9259 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
9260 # endif",
9261     (char*)NULL };
9264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9266  *  List of all fixes
9267  */
9268 #define REGEX_COUNT          264
9269 #define MACH_LIST_SIZE_LIMIT 187
9270 #define FIX_COUNT            226
9273  *  Enumerate the fixes
9274  */
9275 typedef enum {
9276     AAB_AIX_STDIO_FIXIDX,
9277     AAB_AIX_FCNTL_FIXIDX,
9278     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9279     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9280     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9281     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9282     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9283     AAB_SUN_MEMCPY_FIXIDX,
9284     AAB_VXWORKS_ASSERT_FIXIDX,
9285     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
9286     AAB_VXWORKS_STDINT_FIXIDX,
9287     AAB_VXWORKS_UNISTD_FIXIDX,
9288     AIX_COMPLEX_FIXIDX,
9289     AIX_MALLOC_FIXIDX,
9290     AIX_NET_IF_ARP_FIXIDX,
9291     AIX_ONCE_INIT_1_FIXIDX,
9292     AIX_ONCE_INIT_2_FIXIDX,
9293     AIX_MUTEX_INITIALIZER_1_FIXIDX,
9294     AIX_COND_INITIALIZER_1_FIXIDX,
9295     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
9296     AIX_PTHREAD_FIXIDX,
9297     AIX_STDINT_1_FIXIDX,
9298     AIX_STDINT_2_FIXIDX,
9299     AIX_STDINT_3_FIXIDX,
9300     AIX_STDINT_4_FIXIDX,
9301     AIX_STDINT_5_FIXIDX,
9302     AIX_SYSMACHINE_FIXIDX,
9303     AIX_SYSWAIT_2_FIXIDX,
9304     AIX_VOLATILE_FIXIDX,
9305     ALPHA___ASSERT_FIXIDX,
9306     ALPHA_ASSERT_FIXIDX,
9307     ALPHA_GETOPT_FIXIDX,
9308     ALPHA_IF_SEMICOLON_FIXIDX,
9309     ALPHA_PARENS_FIXIDX,
9310     ALPHA_SBRK_FIXIDX,
9311     AVOID_BOOL_DEFINE_FIXIDX,
9312     AVOID_BOOL_TYPE_FIXIDX,
9313     AVOID_WCHAR_T_TYPE_FIXIDX,
9314     BAD_STRUCT_TERM_FIXIDX,
9315     BADQUOTE_FIXIDX,
9316     BROKEN_ASSERT_STDIO_FIXIDX,
9317     BROKEN_ASSERT_STDLIB_FIXIDX,
9318     BROKEN_CABS_FIXIDX,
9319     BROKEN_NAN_FIXIDX,
9320     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9321     CDEF_CPLUSPLUS_FIXIDX,
9322     CTRL_QUOTES_DEF_FIXIDX,
9323     CTRL_QUOTES_USE_FIXIDX,
9324     CXX_UNREADY_FIXIDX,
9325     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9326     DARWIN_EXTERNC_FIXIDX,
9327     DARWIN_GCC4_BREAKAGE_FIXIDX,
9328     DARWIN_PRIVATE_EXTERN_FIXIDX,
9329     DARWIN_STDINT_1_FIXIDX,
9330     DARWIN_STDINT_2_FIXIDX,
9331     DARWIN_STDINT_3_FIXIDX,
9332     DARWIN_STDINT_4_FIXIDX,
9333     DARWIN_STDINT_5_FIXIDX,
9334     DARWIN_STDINT_6_FIXIDX,
9335     DARWIN_STDINT_7_FIXIDX,
9336     DEC_INTERN_ASM_FIXIDX,
9337     DJGPP_WCHAR_H_FIXIDX,
9338     ECD_CURSOR_FIXIDX,
9339     FREEBSD_GCC3_BREAKAGE_FIXIDX,
9340     FREEBSD_GCC4_BREAKAGE_FIXIDX,
9341     GLIBC_C99_INLINE_1_FIXIDX,
9342     GLIBC_C99_INLINE_1A_FIXIDX,
9343     GLIBC_C99_INLINE_2_FIXIDX,
9344     GLIBC_C99_INLINE_3_FIXIDX,
9345     GLIBC_C99_INLINE_4_FIXIDX,
9346     GLIBC_MUTEX_INIT_FIXIDX,
9347     GLIBC_STDINT_FIXIDX,
9348     GLIBC_STRNCPY_FIXIDX,
9349     GLIBC_TGMATH_FIXIDX,
9350     GNU_TYPES_FIXIDX,
9351     HP_INLINE_FIXIDX,
9352     HP_SYSFILE_FIXIDX,
9353     HPPA_HPUX_FP_MACROS_FIXIDX,
9354     HPUX10_CPP_POW_INLINE_FIXIDX,
9355     HPUX11_CPP_POW_INLINE_FIXIDX,
9356     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9357     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9358     HPUX10_STDIO_DECLARATIONS_FIXIDX,
9359     HPUX11_ABS_FIXIDX,
9360     HPUX11_FABSF_FIXIDX,
9361     HPUX11_PTHREAD_CONST_FIXIDX,
9362     HPUX11_SIZE_T_FIXIDX,
9363     HPUX11_SNPRINTF_FIXIDX,
9364     HPUX11_VSNPRINTF_FIXIDX,
9365     HPUX8_BOGUS_INLINES_FIXIDX,
9366     HPUX_CTYPE_MACROS_FIXIDX,
9367     HPUX_HTONL_FIXIDX,
9368     HPUX_LONG_DOUBLE_FIXIDX,
9369     HPUX_LONG_DOUBLE_2_FIXIDX,
9370     HPUX_SYSTIME_FIXIDX,
9371     HPUX_SPU_INFO_FIXIDX,
9372     HPUX11_EXTERN_SENDFILE_FIXIDX,
9373     HPUX11_EXTERN_SENDPATH_FIXIDX,
9374     HPUX_EXTERN_ERRNO_FIXIDX,
9375     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9376     HPUX_C99_INTPTR_FIXIDX,
9377     HPUX_C99_INTTYPES_FIXIDX,
9378     HPUX_C99_INTTYPES2_FIXIDX,
9379     HPUX_STDINT_LEAST_FAST_FIXIDX,
9380     HPUX_INTTYPE_INT8_T_FIXIDX,
9381     HPUX_IMAGINARY_I_FIXIDX,
9382     HUGE_VAL_HEX_FIXIDX,
9383     HUGE_VALF_HEX_FIXIDX,
9384     HUGE_VALL_HEX_FIXIDX,
9385     INT_ABORT_FREE_AND_EXIT_FIXIDX,
9386     IO_QUOTES_DEF_FIXIDX,
9387     IO_QUOTES_USE_FIXIDX,
9388     IP_MISSING_SEMI_FIXIDX,
9389     IRIX_LIMITS_CONST_FIXIDX,
9390     IRIX_STDIO_VA_LIST_FIXIDX,
9391     KANDR_CONCAT_FIXIDX,
9392     LINUX_IA64_UCONTEXT_FIXIDX,
9393     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9394     LYNXOS_MISSING_PUTENV_FIXIDX,
9395     MACHINE_ANSI_H_VA_LIST_FIXIDX,
9396     MACHINE_NAME_FIXIDX,
9397     MATH_EXCEPTION_FIXIDX,
9398     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9399     NESTED_AUTH_DES_FIXIDX,
9400     NETBSD_C99_INLINE_1_FIXIDX,
9401     NETBSD_C99_INLINE_2_FIXIDX,
9402     NETBSD_EXTRA_SEMICOLON_FIXIDX,
9403     NEWLIB_STDINT_1_FIXIDX,
9404     NEWLIB_STDINT_2_FIXIDX,
9405     NEXT_MATH_PREFIX_FIXIDX,
9406     NEXT_TEMPLATE_FIXIDX,
9407     NEXT_VOLITILE_FIXIDX,
9408     NEXT_WAIT_UNION_FIXIDX,
9409     NODEENT_SYNTAX_FIXIDX,
9410     OPENBSD_NULL_DEFINITION_FIXIDX,
9411     OBSTACK_LVALUE_CAST_FIXIDX,
9412     OPENBSD_VA_START_FIXIDX,
9413     OSF_NAMESPACE_A_FIXIDX,
9414     OSF_NAMESPACE_C_FIXIDX,
9415     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9416     READ_RET_TYPE_FIXIDX,
9417     RPC_XDR_LVALUE_CAST_A_FIXIDX,
9418     RPC_XDR_LVALUE_CAST_B_FIXIDX,
9419     RS6000_DOUBLE_FIXIDX,
9420     RS6000_FCHMOD_FIXIDX,
9421     RS6000_PARAM_FIXIDX,
9422     SOLARIS___RESTRICT_FIXIDX,
9423     SOLARIS_COMPLEX_FIXIDX,
9424     SOLARIS_COMPLEX_CXX_FIXIDX,
9425     SOLARIS_CXX_LINKAGE_FIXIDX,
9426     SOLARIS_GETC_STRICT_STDC_FIXIDX,
9427     SOLARIS_LONGJMP_NORETURN_FIXIDX,
9428     SOLARIS_MATH_1_FIXIDX,
9429     SOLARIS_MATH_2_FIXIDX,
9430     SOLARIS_MATH_3_FIXIDX,
9431     SOLARIS_MATH_4_FIXIDX,
9432     SOLARIS_MATH_8_FIXIDX,
9433     SOLARIS_MATH_9_FIXIDX,
9434     SOLARIS_MATH_10_FIXIDX,
9435     SOLARIS_MUTEX_INIT_2_FIXIDX,
9436     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9437     SOLARIS_RWLOCK_INIT_1_FIXIDX,
9438     SOLARIS_ONCE_INIT_1_FIXIDX,
9439     SOLARIS_ONCE_INIT_2_FIXIDX,
9440     SOLARIS_INT_CONST_FIXIDX,
9441     SOLARIS_INT_LIMITS_1_FIXIDX,
9442     SOLARIS_INT_LIMITS_2_FIXIDX,
9443     SOLARIS_INT_LIMITS_3_FIXIDX,
9444     SOLARIS_INT_TYPES_FIXIDX,
9445     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9446     SOLARIS_STD___FILBUF_FIXIDX,
9447     SOLARIS_STDIO_TAG_FIXIDX,
9448     SOLARIS_SYS_VA_LIST_FIXIDX,
9449     STATSSWTCH_FIXIDX,
9450     STDIO_STDARG_H_FIXIDX,
9451     STDIO_VA_LIST_FIXIDX,
9452     STDIO_VA_LIST_CLIENTS_FIXIDX,
9453     STRICT_ANSI_NOT_FIXIDX,
9454     STRICT_ANSI_NOT_CTD_FIXIDX,
9455     STRICT_ANSI_ONLY_FIXIDX,
9456     STRUCT_FILE_FIXIDX,
9457     STRUCT_SOCKADDR_FIXIDX,
9458     SUN_AUTH_PROTO_FIXIDX,
9459     SUN_BOGUS_IFDEF_FIXIDX,
9460     SUN_CATMACRO_FIXIDX,
9461     SUN_MALLOC_FIXIDX,
9462     SUN_RUSERS_SEMI_FIXIDX,
9463     SUN_SIGNAL_FIXIDX,
9464     SUNOS_STRLEN_FIXIDX,
9465     SVR4_DISABLE_OPT_FIXIDX,
9466     SVR4_GETCWD_FIXIDX,
9467     SVR4_PROFIL_FIXIDX,
9468     SVR4_SIGHANDLER_TYPE_FIXIDX,
9469     SVR4_UNDECLARED_GETRNGE_FIXIDX,
9470     SYSV68_STRING_FIXIDX,
9471     SYSZ_STDLIB_FOR_SUN_FIXIDX,
9472     THREAD_KEYWORD_FIXIDX,
9473     TINFO_CPLUSPLUS_FIXIDX,
9474     ULTRIX_CONST_FIXIDX,
9475     ULTRIX_CONST2_FIXIDX,
9476     VA_I960_MACRO_FIXIDX,
9477     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9478     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9479     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9480     VMS_USE_QUOTED_INCLUDE_FIXIDX,
9481     VMS_ADD_MISSING_BRACES_FIXIDX,
9482     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
9483     VMS_DECC_BUILTIN_FIXIDX,
9484     VMS_NO_64BIT_GETOPT_FIXIDX,
9485     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
9486     VMS_USE_FAST_SETJMP_FIXIDX,
9487     VOID_NULL_FIXIDX,
9488     VXWORKS_GCC_PROBLEM_FIXIDX,
9489     VXWORKS_IOCTL_MACRO_FIXIDX,
9490     VXWORKS_MKDIR_MACRO_FIXIDX,
9491     VXWORKS_NEEDS_VXTYPES_FIXIDX,
9492     VXWORKS_NEEDS_VXWORKS_FIXIDX,
9493     VXWORKS_REGS_FIXIDX,
9494     VXWORKS_TIME_FIXIDX,
9495     VXWORKS_WRITE_CONST_FIXIDX,
9496     X11_CLASS_FIXIDX,
9497     X11_CLASS_USAGE_FIXIDX,
9498     X11_NEW_FIXIDX,
9499     X11_SPRINTF_FIXIDX,
9500     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
9501     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX
9502 } t_fixinc_idx;
9504 tFixDesc fixDescList[ FIX_COUNT ] = {
9505   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
9506      apzAab_Aix_StdioMachs,
9507      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
9510   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
9511      apzAab_Aix_FcntlMachs,
9512      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
9515   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
9516      apzAab_Darwin7_9_Long_Double_FuncsMachs,
9517      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9518      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9520   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
9521      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9522      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9523      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9525   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
9526      apzAab_Fd_Zero_Gnu_Types_HMachs,
9527      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9528      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9530   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
9531      apzAab_Fd_Zero_Selectbits_HMachs,
9532      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9533      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9535   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
9536      apzAab_Solaris_Sys_Varargs_HMachs,
9537      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9538      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9540   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
9541      apzAab_Sun_MemcpyMachs,
9542      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9543      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
9545   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
9546      apzAab_Vxworks_AssertMachs,
9547      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9548      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
9550   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
9551      apzAab_Vxworks_Regs_VxtypesMachs,
9552      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9553      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
9555   {  zAab_Vxworks_StdintName,    zAab_Vxworks_StdintList,
9556      apzAab_Vxworks_StdintMachs,
9557      AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9558      aAab_Vxworks_StdintTests,   apzAab_Vxworks_StdintPatch, 0 },
9560   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
9561      apzAab_Vxworks_UnistdMachs,
9562      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9563      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
9565   {  zAix_ComplexName,    zAix_ComplexList,
9566      apzAix_ComplexMachs,
9567      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
9570   {  zAix_MallocName,    zAix_MallocList,
9571      apzAix_MallocMachs,
9572      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573      aAix_MallocTests,   apzAix_MallocPatch, 0 },
9575   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
9576      apzAix_Net_If_ArpMachs,
9577      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
9580   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
9581      apzAix_Once_Init_1Machs,
9582      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
9585   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
9586      apzAix_Once_Init_2Machs,
9587      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
9590   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
9591      apzAix_Mutex_Initializer_1Machs,
9592      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
9595   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
9596      apzAix_Cond_Initializer_1Machs,
9597      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
9600   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
9601      apzAix_Rwlock_Initializer_1Machs,
9602      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
9605   {  zAix_PthreadName,    zAix_PthreadList,
9606      apzAix_PthreadMachs,
9607      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
9610   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
9611      apzAix_Stdint_1Machs,
9612      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
9615   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
9616      apzAix_Stdint_2Machs,
9617      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
9620   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
9621      apzAix_Stdint_3Machs,
9622      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
9625   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
9626      apzAix_Stdint_4Machs,
9627      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
9630   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
9631      apzAix_Stdint_5Machs,
9632      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
9635   {  zAix_SysmachineName,    zAix_SysmachineList,
9636      apzAix_SysmachineMachs,
9637      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
9640   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
9641      apzAix_Syswait_2Machs,
9642      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
9645   {  zAix_VolatileName,    zAix_VolatileList,
9646      apzAix_VolatileMachs,
9647      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
9650   {  zAlpha___AssertName,    zAlpha___AssertList,
9651      apzAlpha___AssertMachs,
9652      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
9655   {  zAlpha_AssertName,    zAlpha_AssertList,
9656      apzAlpha_AssertMachs,
9657      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
9660   {  zAlpha_GetoptName,    zAlpha_GetoptList,
9661      apzAlpha_GetoptMachs,
9662      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
9665   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
9666      apzAlpha_If_SemicolonMachs,
9667      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
9670   {  zAlpha_ParensName,    zAlpha_ParensList,
9671      apzAlpha_ParensMachs,
9672      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
9675   {  zAlpha_SbrkName,    zAlpha_SbrkList,
9676      apzAlpha_SbrkMachs,
9677      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
9680   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
9681      apzAvoid_Bool_DefineMachs,
9682      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
9685   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
9686      apzAvoid_Bool_TypeMachs,
9687      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
9690   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
9691      apzAvoid_Wchar_T_TypeMachs,
9692      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
9695   {  zBad_Struct_TermName,    zBad_Struct_TermList,
9696      apzBad_Struct_TermMachs,
9697      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
9700   {  zBadquoteName,    zBadquoteList,
9701      apzBadquoteMachs,
9702      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703      aBadquoteTests,   apzBadquotePatch, 0 },
9705   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
9706      apzBroken_Assert_StdioMachs,
9707      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
9710   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
9711      apzBroken_Assert_StdlibMachs,
9712      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
9715   {  zBroken_CabsName,    zBroken_CabsList,
9716      apzBroken_CabsMachs,
9717      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9718      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
9720   {  zBroken_NanName,    zBroken_NanList,
9721      apzBroken_NanMachs,
9722      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723      aBroken_NanTests,   apzBroken_NanPatch, 0 },
9725   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
9726      apzBsd_Stdio_Attrs_ConflictMachs,
9727      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9730   {  zCdef_CplusplusName,    zCdef_CplusplusList,
9731      apzCdef_CplusplusMachs,
9732      CDEF_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733      aCdef_CplusplusTests,   apzCdef_CplusplusPatch, 0 },
9735   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
9736      apzCtrl_Quotes_DefMachs,
9737      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
9740   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
9741      apzCtrl_Quotes_UseMachs,
9742      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
9745   {  zCxx_UnreadyName,    zCxx_UnreadyList,
9746      apzCxx_UnreadyMachs,
9747      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
9750   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
9751      apzDarwin_9_Long_Double_Funcs_2Machs,
9752      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9753      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
9755   {  zDarwin_ExterncName,    zDarwin_ExterncList,
9756      apzDarwin_ExterncMachs,
9757      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
9760   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
9761      apzDarwin_Gcc4_BreakageMachs,
9762      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9763      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
9765   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
9766      apzDarwin_Private_ExternMachs,
9767      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
9770   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
9771      apzDarwin_Stdint_1Machs,
9772      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
9775   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
9776      apzDarwin_Stdint_2Machs,
9777      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
9780   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
9781      apzDarwin_Stdint_3Machs,
9782      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
9785   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
9786      apzDarwin_Stdint_4Machs,
9787      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
9790   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
9791      apzDarwin_Stdint_5Machs,
9792      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
9795   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
9796      apzDarwin_Stdint_6Machs,
9797      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
9800   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
9801      apzDarwin_Stdint_7Machs,
9802      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
9805   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9806      apzDec_Intern_AsmMachs,
9807      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9808      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9810   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9811      apzDjgpp_Wchar_HMachs,
9812      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9815   {  zEcd_CursorName,    zEcd_CursorList,
9816      apzEcd_CursorMachs,
9817      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9820   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9821      apzFreebsd_Gcc3_BreakageMachs,
9822      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9825   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9826      apzFreebsd_Gcc4_BreakageMachs,
9827      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9830   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9831      apzGlibc_C99_Inline_1Machs,
9832      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9835   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
9836      apzGlibc_C99_Inline_1aMachs,
9837      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
9840   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9841      apzGlibc_C99_Inline_2Machs,
9842      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9843      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9845   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9846      apzGlibc_C99_Inline_3Machs,
9847      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9850   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9851      apzGlibc_C99_Inline_4Machs,
9852      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9855   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9856      apzGlibc_Mutex_InitMachs,
9857      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9858      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9860   {  zGlibc_StdintName,    zGlibc_StdintList,
9861      apzGlibc_StdintMachs,
9862      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
9865   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
9866      apzGlibc_StrncpyMachs,
9867      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
9870   {  zGlibc_TgmathName,    zGlibc_TgmathList,
9871      apzGlibc_TgmathMachs,
9872      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9873      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
9875   {  zGnu_TypesName,    zGnu_TypesList,
9876      apzGnu_TypesMachs,
9877      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9878      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9880   {  zHp_InlineName,    zHp_InlineList,
9881      apzHp_InlineMachs,
9882      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9885   {  zHp_SysfileName,    zHp_SysfileList,
9886      apzHp_SysfileMachs,
9887      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
9890   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
9891      apzHppa_Hpux_Fp_MacrosMachs,
9892      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
9895   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
9896      apzHpux10_Cpp_Pow_InlineMachs,
9897      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
9900   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
9901      apzHpux11_Cpp_Pow_InlineMachs,
9902      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
9905   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
9906      apzHpux10_Ctype_Declarations1Machs,
9907      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
9910   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
9911      apzHpux10_Ctype_Declarations2Machs,
9912      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
9915   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
9916      apzHpux10_Stdio_DeclarationsMachs,
9917      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9918      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
9920   {  zHpux11_AbsName,    zHpux11_AbsList,
9921      apzHpux11_AbsMachs,
9922      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9923      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
9925   {  zHpux11_FabsfName,    zHpux11_FabsfList,
9926      apzHpux11_FabsfMachs,
9927      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
9930   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
9931      apzHpux11_Pthread_ConstMachs,
9932      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
9935   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9936      apzHpux11_Size_TMachs,
9937      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9940   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9941      apzHpux11_SnprintfMachs,
9942      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9945   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9946      apzHpux11_VsnprintfMachs,
9947      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9948      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9950   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9951      apzHpux8_Bogus_InlinesMachs,
9952      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9953      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9955   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9956      apzHpux_Ctype_MacrosMachs,
9957      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9958      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9960   {  zHpux_HtonlName,    zHpux_HtonlList,
9961      apzHpux_HtonlMachs,
9962      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9963      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9965   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9966      apzHpux_Long_DoubleMachs,
9967      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9968      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9970   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
9971      apzHpux_Long_Double_2Machs,
9972      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
9975   {  zHpux_SystimeName,    zHpux_SystimeList,
9976      apzHpux_SystimeMachs,
9977      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9980   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9981      apzHpux_Spu_InfoMachs,
9982      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9985   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9986      apzHpux11_Extern_SendfileMachs,
9987      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9990   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9991      apzHpux11_Extern_SendpathMachs,
9992      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9995   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9996      apzHpux_Extern_ErrnoMachs,
9997      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
10000   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
10001      apzHpux_Pthread_InitializersMachs,
10002      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
10003      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
10005   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
10006      apzHpux_C99_IntptrMachs,
10007      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
10008      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
10010   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
10011      apzHpux_C99_InttypesMachs,
10012      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
10013      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
10015   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
10016      apzHpux_C99_Inttypes2Machs,
10017      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
10018      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
10020   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
10021      apzHpux_Stdint_Least_FastMachs,
10022      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
10025   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
10026      apzHpux_Inttype_Int8_TMachs,
10027      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
10030   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
10031      apzHpux_Imaginary_IMachs,
10032      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
10035   {  zHuge_Val_HexName,    zHuge_Val_HexList,
10036      apzHuge_Val_HexMachs,
10037      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
10040   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
10041      apzHuge_Valf_HexMachs,
10042      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
10045   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
10046      apzHuge_Vall_HexMachs,
10047      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10048      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
10050   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
10051      apzInt_Abort_Free_And_ExitMachs,
10052      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10053      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
10055   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
10056      apzIo_Quotes_DefMachs,
10057      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10058      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
10060   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
10061      apzIo_Quotes_UseMachs,
10062      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10063      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
10065   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
10066      apzIp_Missing_SemiMachs,
10067      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
10068      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
10070   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
10071      apzIrix_Limits_ConstMachs,
10072      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
10075   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
10076      apzIrix_Stdio_Va_ListMachs,
10077      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
10080   {  zKandr_ConcatName,    zKandr_ConcatList,
10081      apzKandr_ConcatMachs,
10082      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10083      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
10085   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
10086      apzLinux_Ia64_UcontextMachs,
10087      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
10090   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
10091      apzLynxos_No_Warning_In_Sys_Time_HMachs,
10092      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
10095   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
10096      apzLynxos_Missing_PutenvMachs,
10097      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
10100   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
10101      apzMachine_Ansi_H_Va_ListMachs,
10102      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10103      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
10105   {  zMachine_NameName,    zMachine_NameList,
10106      apzMachine_NameMachs,
10107      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10108      aMachine_NameTests,   apzMachine_NamePatch, 0 },
10110   {  zMath_ExceptionName,    zMath_ExceptionList,
10111      apzMath_ExceptionMachs,
10112      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10113      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
10115   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
10116      apzMath_Huge_Val_From_Dbl_MaxMachs,
10117      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
10118      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
10120   {  zNested_Auth_DesName,    zNested_Auth_DesList,
10121      apzNested_Auth_DesMachs,
10122      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10123      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
10125   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
10126      apzNetbsd_C99_Inline_1Machs,
10127      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10128      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
10130   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
10131      apzNetbsd_C99_Inline_2Machs,
10132      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
10135   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
10136      apzNetbsd_Extra_SemicolonMachs,
10137      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10138      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
10140   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
10141      apzNewlib_Stdint_1Machs,
10142      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
10143      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
10145   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
10146      apzNewlib_Stdint_2Machs,
10147      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
10150   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
10151      apzNext_Math_PrefixMachs,
10152      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10153      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
10155   {  zNext_TemplateName,    zNext_TemplateList,
10156      apzNext_TemplateMachs,
10157      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10158      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
10160   {  zNext_VolitileName,    zNext_VolitileList,
10161      apzNext_VolitileMachs,
10162      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
10165   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
10166      apzNext_Wait_UnionMachs,
10167      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
10170   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
10171      apzNodeent_SyntaxMachs,
10172      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10173      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
10175   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
10176      apzOpenbsd_Null_DefinitionMachs,
10177      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10178      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
10180   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
10181      apzObstack_Lvalue_CastMachs,
10182      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10183      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
10185   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
10186      apzOpenbsd_Va_StartMachs,
10187      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10188      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
10190   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
10191      apzOsf_Namespace_AMachs,
10192      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10193      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
10195   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
10196      apzOsf_Namespace_CMachs,
10197      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10198      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
10200   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
10201      apzPthread_Incomplete_Struct_ArgumentMachs,
10202      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10203      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10205   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
10206      apzRead_Ret_TypeMachs,
10207      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
10210   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
10211      apzRpc_Xdr_Lvalue_Cast_AMachs,
10212      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10215   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
10216      apzRpc_Xdr_Lvalue_Cast_BMachs,
10217      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10220   {  zRs6000_DoubleName,    zRs6000_DoubleList,
10221      apzRs6000_DoubleMachs,
10222      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
10225   {  zRs6000_FchmodName,    zRs6000_FchmodList,
10226      apzRs6000_FchmodMachs,
10227      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10228      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
10230   {  zRs6000_ParamName,    zRs6000_ParamList,
10231      apzRs6000_ParamMachs,
10232      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
10235   {  zSolaris___RestrictName,    zSolaris___RestrictList,
10236      apzSolaris___RestrictMachs,
10237      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10238      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
10240   {  zSolaris_ComplexName,    zSolaris_ComplexList,
10241      apzSolaris_ComplexMachs,
10242      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10243      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
10245   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
10246      apzSolaris_Complex_CxxMachs,
10247      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10248      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
10250   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
10251      apzSolaris_Cxx_LinkageMachs,
10252      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10253      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
10255   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
10256      apzSolaris_Getc_Strict_StdcMachs,
10257      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
10260   {  zSolaris_Longjmp_NoreturnName,    zSolaris_Longjmp_NoreturnList,
10261      apzSolaris_Longjmp_NoreturnMachs,
10262      SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10263      aSolaris_Longjmp_NoreturnTests,   apzSolaris_Longjmp_NoreturnPatch, 0 },
10265   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
10266      apzSolaris_Math_1Machs,
10267      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10268      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
10270   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
10271      apzSolaris_Math_2Machs,
10272      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
10275   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
10276      apzSolaris_Math_3Machs,
10277      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
10280   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
10281      apzSolaris_Math_4Machs,
10282      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10283      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
10285   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
10286      apzSolaris_Math_8Machs,
10287      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10288      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
10290   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
10291      apzSolaris_Math_9Machs,
10292      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10293      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
10295   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
10296      apzSolaris_Math_10Machs,
10297      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10298      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
10300   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
10301      apzSolaris_Mutex_Init_2Machs,
10302      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10303      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
10305   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
10306      apzSolaris_Pow_Int_OverloadMachs,
10307      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10308      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
10310   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
10311      apzSolaris_Rwlock_Init_1Machs,
10312      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10313      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
10315   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
10316      apzSolaris_Once_Init_1Machs,
10317      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10318      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
10320   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
10321      apzSolaris_Once_Init_2Machs,
10322      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10323      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
10325   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
10326      apzSolaris_Int_ConstMachs,
10327      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10328      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
10330   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
10331      apzSolaris_Int_Limits_1Machs,
10332      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10333      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
10335   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
10336      apzSolaris_Int_Limits_2Machs,
10337      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10338      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
10340   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
10341      apzSolaris_Int_Limits_3Machs,
10342      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10343      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
10345   {  zSolaris_Int_TypesName,    zSolaris_Int_TypesList,
10346      apzSolaris_Int_TypesMachs,
10347      SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10348      aSolaris_Int_TypesTests,   apzSolaris_Int_TypesPatch, 0 },
10350   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
10351      apzSolaris_Posix_Spawn_RestrictMachs,
10352      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10353      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10355   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
10356      apzSolaris_Std___FilbufMachs,
10357      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10358      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
10360   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
10361      apzSolaris_Stdio_TagMachs,
10362      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10363      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
10365   {  zSolaris_Sys_Va_ListName,    zSolaris_Sys_Va_ListList,
10366      apzSolaris_Sys_Va_ListMachs,
10367      SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10368      aSolaris_Sys_Va_ListTests,   apzSolaris_Sys_Va_ListPatch, 0 },
10370   {  zStatsswtchName,    zStatsswtchList,
10371      apzStatsswtchMachs,
10372      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10373      aStatsswtchTests,   apzStatsswtchPatch, 0 },
10375   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
10376      apzStdio_Stdarg_HMachs,
10377      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10378      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
10380   {  zStdio_Va_ListName,    zStdio_Va_ListList,
10381      apzStdio_Va_ListMachs,
10382      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10383      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
10385   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
10386      apzStdio_Va_List_ClientsMachs,
10387      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10388      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
10390   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
10391      apzStrict_Ansi_NotMachs,
10392      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10393      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
10395   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
10396      apzStrict_Ansi_Not_CtdMachs,
10397      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10398      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
10400   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
10401      apzStrict_Ansi_OnlyMachs,
10402      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10403      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
10405   {  zStruct_FileName,    zStruct_FileList,
10406      apzStruct_FileMachs,
10407      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10408      aStruct_FileTests,   apzStruct_FilePatch, 0 },
10410   {  zStruct_SockaddrName,    zStruct_SockaddrList,
10411      apzStruct_SockaddrMachs,
10412      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10413      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
10415   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
10416      apzSun_Auth_ProtoMachs,
10417      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10418      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
10420   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
10421      apzSun_Bogus_IfdefMachs,
10422      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10423      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
10425   {  zSun_CatmacroName,    zSun_CatmacroList,
10426      apzSun_CatmacroMachs,
10427      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10428      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
10430   {  zSun_MallocName,    zSun_MallocList,
10431      apzSun_MallocMachs,
10432      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10433      aSun_MallocTests,   apzSun_MallocPatch, 0 },
10435   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
10436      apzSun_Rusers_SemiMachs,
10437      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10438      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
10440   {  zSun_SignalName,    zSun_SignalList,
10441      apzSun_SignalMachs,
10442      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10443      aSun_SignalTests,   apzSun_SignalPatch, 0 },
10445   {  zSunos_StrlenName,    zSunos_StrlenList,
10446      apzSunos_StrlenMachs,
10447      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10448      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
10450   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
10451      apzSvr4_Disable_OptMachs,
10452      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10453      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
10455   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
10456      apzSvr4_GetcwdMachs,
10457      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10458      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
10460   {  zSvr4_ProfilName,    zSvr4_ProfilList,
10461      apzSvr4_ProfilMachs,
10462      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10463      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
10465   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
10466      apzSvr4_Sighandler_TypeMachs,
10467      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10468      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
10470   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
10471      apzSvr4_Undeclared_GetrngeMachs,
10472      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10473      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
10475   {  zSysv68_StringName,    zSysv68_StringList,
10476      apzSysv68_StringMachs,
10477      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10478      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
10480   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
10481      apzSysz_Stdlib_For_SunMachs,
10482      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10483      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
10485   {  zThread_KeywordName,    zThread_KeywordList,
10486      apzThread_KeywordMachs,
10487      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10488      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
10490   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
10491      apzTinfo_CplusplusMachs,
10492      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10493      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
10495   {  zUltrix_ConstName,    zUltrix_ConstList,
10496      apzUltrix_ConstMachs,
10497      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10498      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
10500   {  zUltrix_Const2Name,    zUltrix_Const2List,
10501      apzUltrix_Const2Machs,
10502      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10503      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
10505   {  zVa_I960_MacroName,    zVa_I960_MacroList,
10506      apzVa_I960_MacroMachs,
10507      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10508      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
10510   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
10511      apzVms_Define_Can_Use_Extern_PrefixMachs,
10512      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10513      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10515   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
10516      apzVms_Use_Pragma_Extern_ModelMachs,
10517      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10518      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10520   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
10521      apzVms_Disable_Decc_String_BuiltinsMachs,
10522      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10523      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10525   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
10526      apzVms_Use_Quoted_IncludeMachs,
10527      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10528      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
10530   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
10531      apzVms_Add_Missing_BracesMachs,
10532      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10533      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
10535   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
10536      apzVms_Do_Not_Redeclare_HostaliasMachs,
10537      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10538      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
10540   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
10541      apzVms_Decc_BuiltinMachs,
10542      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
10543      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
10545   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
10546      apzVms_No_64bit_GetoptMachs,
10547      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10548      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
10550   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
10551      apzVms_Forward_Declare_StructMachs,
10552      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10553      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
10555   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
10556      apzVms_Use_Fast_SetjmpMachs,
10557      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10558      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
10560   {  zVoid_NullName,    zVoid_NullList,
10561      apzVoid_NullMachs,
10562      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10563      aVoid_NullTests,   apzVoid_NullPatch, 0 },
10565   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
10566      apzVxworks_Gcc_ProblemMachs,
10567      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10568      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
10570   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
10571      apzVxworks_Ioctl_MacroMachs,
10572      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10573      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
10575   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
10576      apzVxworks_Mkdir_MacroMachs,
10577      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10578      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
10580   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
10581      apzVxworks_Needs_VxtypesMachs,
10582      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10583      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
10585   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
10586      apzVxworks_Needs_VxworksMachs,
10587      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10588      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
10590   {  zVxworks_RegsName,    zVxworks_RegsList,
10591      apzVxworks_RegsMachs,
10592      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10593      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
10595   {  zVxworks_TimeName,    zVxworks_TimeList,
10596      apzVxworks_TimeMachs,
10597      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10598      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
10600   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
10601      apzVxworks_Write_ConstMachs,
10602      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10603      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
10605   {  zX11_ClassName,    zX11_ClassList,
10606      apzX11_ClassMachs,
10607      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10608      aX11_ClassTests,   apzX11_ClassPatch, 0 },
10610   {  zX11_Class_UsageName,    zX11_Class_UsageList,
10611      apzX11_Class_UsageMachs,
10612      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10613      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
10615   {  zX11_NewName,    zX11_NewList,
10616      apzX11_NewMachs,
10617      X11_NEW_TEST_CT, FD_MACH_ONLY,
10618      aX11_NewTests,   apzX11_NewPatch, 0 },
10620   {  zX11_SprintfName,    zX11_SprintfList,
10621      apzX11_SprintfMachs,
10622      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10623      aX11_SprintfTests,   apzX11_SprintfPatch, 0 },
10625   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
10626      apzFeraiseexcept_Nosse_InvalidMachs,
10627      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10628      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
10630   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
10631      apzFeraiseexcept_Nosse_DivbyzeroMachs,
10632      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10633      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 }