* inclhack.def (aix_assert): New fix.
[official-gcc.git] / fixincludes / fixincl.x
blobeb2ee648fba3582b22dcbfdf854818ca98bc7983
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  August 31, 2013 at 04:29:02 PM by AutoGen 5.12
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Aug 31 16:29:02 PDT 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 228 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_Assert fix
740  */
741 tSCC zAix_AssertName[] =
742      "aix_assert";
745  *  File name selection pattern
746  */
747 tSCC zAix_AssertList[] =
748   "assert.h\0";
750  *  Machine/OS name selection pattern
751  */
752 tSCC* apzAix_AssertMachs[] = {
753         "*-*-aix*",
754         (const char*)NULL };
757  *  content selection pattern - do fix if pattern found
758  */
759 tSCC zAix_AssertSelect0[] =
760        "#define[ \t]static_assert[ \t]_Static_assert";
762 #define    AIX_ASSERT_TEST_CT  1
763 static tTestDesc aAix_AssertTests[] = {
764   { TT_EGREP,    zAix_AssertSelect0, (regex_t*)NULL }, };
767  *  Fix Command Arguments for Aix_Assert
768  */
769 static const char* apzAix_AssertPatch[] = {
770     "format",
771     "#ifndef __cplusplus\n\
772 %0\n\
773 #endif",
774     (char*)NULL };
776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
778  *  Description of Aix_Complex fix
779  */
780 tSCC zAix_ComplexName[] =
781      "aix_complex";
784  *  File name selection pattern
785  */
786 tSCC zAix_ComplexList[] =
787   "complex.h\0";
789  *  Machine/OS name selection pattern
790  */
791 tSCC* apzAix_ComplexMachs[] = {
792         "*-*-aix*",
793         (const char*)NULL };
796  *  content selection pattern - do fix if pattern found
797  */
798 tSCC zAix_ComplexSelect0[] =
799        "#define[ \t]_Complex_I[ \t]__I";
801 #define    AIX_COMPLEX_TEST_CT  1
802 static tTestDesc aAix_ComplexTests[] = {
803   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
806  *  Fix Command Arguments for Aix_Complex
807  */
808 static const char* apzAix_ComplexPatch[] = {
809     "format",
810     "#define _Complex_I (__extension__ 1.0iF)",
811     (char*)NULL };
813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
815  *  Description of Aix_Malloc fix
816  */
817 tSCC zAix_MallocName[] =
818      "aix_malloc";
821  *  File name selection pattern
822  */
823 tSCC zAix_MallocList[] =
824   "malloc.h\0";
826  *  Machine/OS name selection pattern
827  */
828 tSCC* apzAix_MallocMachs[] = {
829         "*-*-aix*",
830         (const char*)NULL };
833  *  content selection pattern - do fix if pattern found
834  */
835 tSCC zAix_MallocSelect0[] =
836        "#ifdef __cplusplus";
838 #define    AIX_MALLOC_TEST_CT  1
839 static tTestDesc aAix_MallocTests[] = {
840   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
843  *  Fix Command Arguments for Aix_Malloc
844  */
845 static const char* apzAix_MallocPatch[] = {
846     "format",
847     "#if (defined(__cplusplus) && defined(__IBMCPP__))",
848     (char*)NULL };
850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
852  *  Description of Aix_Net_If_Arp fix
853  */
854 tSCC zAix_Net_If_ArpName[] =
855      "aix_net_if_arp";
858  *  File name selection pattern
859  */
860 tSCC zAix_Net_If_ArpList[] =
861   "net/if_arp.h\0";
863  *  Machine/OS name selection pattern
864  */
865 tSCC* apzAix_Net_If_ArpMachs[] = {
866         "*-*-aix*",
867         (const char*)NULL };
870  *  content selection pattern - do fix if pattern found
871  */
872 tSCC zAix_Net_If_ArpSelect0[] =
873        "^struct  fc_softc \\{";
875 #define    AIX_NET_IF_ARP_TEST_CT  1
876 static tTestDesc aAix_Net_If_ArpTests[] = {
877   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
880  *  Fix Command Arguments for Aix_Net_If_Arp
881  */
882 static const char* apzAix_Net_If_ArpPatch[] = {
883     "format",
884     "typedef struct _fc_softc {",
885     (char*)NULL };
887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
889  *  Description of Aix_Null fix
890  */
891 tSCC zAix_NullName[] =
892      "aix_null";
895  *  File name selection pattern
896  */
897 tSCC zAix_NullList[] =
898   "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
900  *  Machine/OS name selection pattern
901  */
902 tSCC* apzAix_NullMachs[] = {
903         "*-*-aix*",
904         (const char*)NULL };
907  *  content selection pattern - do fix if pattern found
908  */
909 tSCC zAix_NullSelect0[] =
910        "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
913  *  content bypass pattern - skip fix if pattern found
914  */
915 tSCC zAix_NullBypass0[] =
916        "__null";
918 #define    AIX_NULL_TEST_CT  2
919 static tTestDesc aAix_NullTests[] = {
920   { TT_NEGREP,   zAix_NullBypass0, (regex_t*)NULL },
921   { TT_EGREP,    zAix_NullSelect0, (regex_t*)NULL }, };
924  *  Fix Command Arguments for Aix_Null
925  */
926 static const char* apzAix_NullPatch[] = {
927     "format",
928     "#ifndef NULL\n\
929 #ifdef __cplusplus\n\
930 #ifdef __GNUG__\n\
931 #define NULL __null\n\
932 #else /* ! __GNUG__  */\n\
933 #define NULL 0L\n\
934 #endif /* __GNUG__  */\n\
935 #else /* ! __cplusplus  */\n\
936 #define NULL ((void *)0)\n\
937 #endif /* __cplusplus  */\n\
938 #endif /* !NULL  */",
939     (char*)NULL };
941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
943  *  Description of Aix_Once_Init_1 fix
944  */
945 tSCC zAix_Once_Init_1Name[] =
946      "aix_once_init_1";
949  *  File name selection pattern
950  */
951 tSCC zAix_Once_Init_1List[] =
952   "pthread.h\0";
954  *  Machine/OS name selection pattern
955  */
956 tSCC* apzAix_Once_Init_1Machs[] = {
957         "*-*-aix*",
958         (const char*)NULL };
961  *  content selection pattern - do fix if pattern found
962  */
963 tSCC zAix_Once_Init_1Select0[] =
964        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
965 \\{ \\\\\n";
967 #define    AIX_ONCE_INIT_1_TEST_CT  1
968 static tTestDesc aAix_Once_Init_1Tests[] = {
969   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
972  *  Fix Command Arguments for Aix_Once_Init_1
973  */
974 static const char* apzAix_Once_Init_1Patch[] = {
975     "format",
976     "#define PTHREAD_ONCE_INIT \\\n\
977 {{ \\\n",
978     (char*)NULL };
980 /* * * * * * * * * * * * * * * * * * * * * * * * * *
982  *  Description of Aix_Once_Init_2 fix
983  */
984 tSCC zAix_Once_Init_2Name[] =
985      "aix_once_init_2";
988  *  File name selection pattern
989  */
990 tSCC zAix_Once_Init_2List[] =
991   "pthread.h\0";
993  *  Machine/OS name selection pattern
994  */
995 tSCC* apzAix_Once_Init_2Machs[] = {
996         "*-*-aix*",
997         (const char*)NULL };
1000  *  content selection pattern - do fix if pattern found
1001  */
1002 tSCC zAix_Once_Init_2Select0[] =
1003        "[ \t]0 \\\\\n\
1004 \\}\n";
1006 #define    AIX_ONCE_INIT_2_TEST_CT  1
1007 static tTestDesc aAix_Once_Init_2Tests[] = {
1008   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1011  *  Fix Command Arguments for Aix_Once_Init_2
1012  */
1013 static const char* apzAix_Once_Init_2Patch[] = {
1014     "format",
1015     "\t0 \\\n\
1016 }}\n",
1017     (char*)NULL };
1019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1021  *  Description of Aix_Mutex_Initializer_1 fix
1022  */
1023 tSCC zAix_Mutex_Initializer_1Name[] =
1024      "aix_mutex_initializer_1";
1027  *  File name selection pattern
1028  */
1029 tSCC zAix_Mutex_Initializer_1List[] =
1030   "pthread.h\0";
1032  *  Machine/OS name selection pattern
1033  */
1034 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1035         "*-*-aix*",
1036         (const char*)NULL };
1039  *  content selection pattern - do fix if pattern found
1040  */
1041 tSCC zAix_Mutex_Initializer_1Select0[] =
1042        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1043 \\{ \\\\\n";
1045 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
1046 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1047   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1050  *  Fix Command Arguments for Aix_Mutex_Initializer_1
1051  */
1052 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1053     "format",
1054     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1055 {{ \\\n",
1056     (char*)NULL };
1058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1060  *  Description of Aix_Cond_Initializer_1 fix
1061  */
1062 tSCC zAix_Cond_Initializer_1Name[] =
1063      "aix_cond_initializer_1";
1066  *  File name selection pattern
1067  */
1068 tSCC zAix_Cond_Initializer_1List[] =
1069   "pthread.h\0";
1071  *  Machine/OS name selection pattern
1072  */
1073 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1074         "*-*-aix*",
1075         (const char*)NULL };
1078  *  content selection pattern - do fix if pattern found
1079  */
1080 tSCC zAix_Cond_Initializer_1Select0[] =
1081        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1082 \\{ \\\\\n";
1084 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
1085 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1086   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1089  *  Fix Command Arguments for Aix_Cond_Initializer_1
1090  */
1091 static const char* apzAix_Cond_Initializer_1Patch[] = {
1092     "format",
1093     "#define PTHREAD_COND_INITIALIZER \\\n\
1094 {{ \\\n",
1095     (char*)NULL };
1097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1099  *  Description of Aix_Rwlock_Initializer_1 fix
1100  */
1101 tSCC zAix_Rwlock_Initializer_1Name[] =
1102      "aix_rwlock_initializer_1";
1105  *  File name selection pattern
1106  */
1107 tSCC zAix_Rwlock_Initializer_1List[] =
1108   "pthread.h\0";
1110  *  Machine/OS name selection pattern
1111  */
1112 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1113         "*-*-aix*",
1114         (const char*)NULL };
1117  *  content selection pattern - do fix if pattern found
1118  */
1119 tSCC zAix_Rwlock_Initializer_1Select0[] =
1120        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1121 \\{ \\\\\n";
1123 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1124 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1125   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1128  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1129  */
1130 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1131     "format",
1132     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1133 {{ \\\n",
1134     (char*)NULL };
1136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1138  *  Description of Aix_Pthread fix
1139  */
1140 tSCC zAix_PthreadName[] =
1141      "aix_pthread";
1144  *  File name selection pattern
1145  */
1146 tSCC zAix_PthreadList[] =
1147   "pthread.h\0";
1149  *  Machine/OS name selection pattern
1150  */
1151 #define apzAix_PthreadMachs (const char**)NULL
1154  *  content selection pattern - do fix if pattern found
1155  */
1156 tSCC zAix_PthreadSelect0[] =
1157        "(#define [A-Za-z_0-9]+)(\\\\\n\
1158 [^A-Za-z_0-9 \t\n\
1159 (])";
1161 #define    AIX_PTHREAD_TEST_CT  1
1162 static tTestDesc aAix_PthreadTests[] = {
1163   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1166  *  Fix Command Arguments for Aix_Pthread
1167  */
1168 static const char* apzAix_PthreadPatch[] = {
1169     "format",
1170     "%1 %2",
1171     (char*)NULL };
1173 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1175  *  Description of Aix_Stdint_1 fix
1176  */
1177 tSCC zAix_Stdint_1Name[] =
1178      "aix_stdint_1";
1181  *  File name selection pattern
1182  */
1183 tSCC zAix_Stdint_1List[] =
1184   "stdint-aix.h\0stdint.h\0";
1186  *  Machine/OS name selection pattern
1187  */
1188 tSCC* apzAix_Stdint_1Machs[] = {
1189         "*-*-aix*",
1190         (const char*)NULL };
1193  *  content selection pattern - do fix if pattern found
1194  */
1195 tSCC zAix_Stdint_1Select0[] =
1196        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1197 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1199 #define    AIX_STDINT_1_TEST_CT  1
1200 static tTestDesc aAix_Stdint_1Tests[] = {
1201   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1204  *  Fix Command Arguments for Aix_Stdint_1
1205  */
1206 static const char* apzAix_Stdint_1Patch[] = {
1207     "format",
1208     "#define UINT8_MAX\t(255)\n\
1209 #define UINT16_MAX\t(65535)",
1210     (char*)NULL };
1212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1214  *  Description of Aix_Stdint_2 fix
1215  */
1216 tSCC zAix_Stdint_2Name[] =
1217      "aix_stdint_2";
1220  *  File name selection pattern
1221  */
1222 tSCC zAix_Stdint_2List[] =
1223   "stdint-aix.h\0stdint.h\0";
1225  *  Machine/OS name selection pattern
1226  */
1227 tSCC* apzAix_Stdint_2Machs[] = {
1228         "*-*-aix*",
1229         (const char*)NULL };
1232  *  content selection pattern - do fix if pattern found
1233  */
1234 tSCC zAix_Stdint_2Select0[] =
1235        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1236 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1237 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1238 #else\n\
1239 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1240 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1241 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1243 #define    AIX_STDINT_2_TEST_CT  1
1244 static tTestDesc aAix_Stdint_2Tests[] = {
1245   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1248  *  Fix Command Arguments for Aix_Stdint_2
1249  */
1250 static const char* apzAix_Stdint_2Patch[] = {
1251     "format",
1252     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1253 #define INTPTR_MAX\t9223372036854775807L\n\
1254 #define UINTPTR_MAX\t18446744073709551615UL\n\
1255 #else\n\
1256 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1257 #define INTPTR_MAX\t2147483647L\n\
1258 #define UINTPTR_MAX\t4294967295UL",
1259     (char*)NULL };
1261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1263  *  Description of Aix_Stdint_3 fix
1264  */
1265 tSCC zAix_Stdint_3Name[] =
1266      "aix_stdint_3";
1269  *  File name selection pattern
1270  */
1271 tSCC zAix_Stdint_3List[] =
1272   "stdint-aix.h\0stdint.h\0";
1274  *  Machine/OS name selection pattern
1275  */
1276 tSCC* apzAix_Stdint_3Machs[] = {
1277         "*-*-aix*",
1278         (const char*)NULL };
1281  *  content selection pattern - do fix if pattern found
1282  */
1283 tSCC zAix_Stdint_3Select0[] =
1284        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1285 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1286 #else\n\
1287 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1288 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1290 #define    AIX_STDINT_3_TEST_CT  1
1291 static tTestDesc aAix_Stdint_3Tests[] = {
1292   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1295  *  Fix Command Arguments for Aix_Stdint_3
1296  */
1297 static const char* apzAix_Stdint_3Patch[] = {
1298     "format",
1299     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1300 #define PTRDIFF_MAX\t9223372036854775807L\n\
1301 #else\n\
1302 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1303 #define PTRDIFF_MAX\t2147483647L",
1304     (char*)NULL };
1306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1308  *  Description of Aix_Stdint_4 fix
1309  */
1310 tSCC zAix_Stdint_4Name[] =
1311      "aix_stdint_4";
1314  *  File name selection pattern
1315  */
1316 tSCC zAix_Stdint_4List[] =
1317   "stdint-aix.h\0stdint.h\0";
1319  *  Machine/OS name selection pattern
1320  */
1321 tSCC* apzAix_Stdint_4Machs[] = {
1322         "*-*-aix*",
1323         (const char*)NULL };
1326  *  content selection pattern - do fix if pattern found
1327  */
1328 tSCC zAix_Stdint_4Select0[] =
1329        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1330 #else\n\
1331 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1333 #define    AIX_STDINT_4_TEST_CT  1
1334 static tTestDesc aAix_Stdint_4Tests[] = {
1335   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1338  *  Fix Command Arguments for Aix_Stdint_4
1339  */
1340 static const char* apzAix_Stdint_4Patch[] = {
1341     "format",
1342     "#define SIZE_MAX\t18446744073709551615UL\n\
1343 #else\n\
1344 #define SIZE_MAX\t4294967295UL",
1345     (char*)NULL };
1347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1349  *  Description of Aix_Stdint_5 fix
1350  */
1351 tSCC zAix_Stdint_5Name[] =
1352      "aix_stdint_5";
1355  *  File name selection pattern
1356  */
1357 tSCC zAix_Stdint_5List[] =
1358   "stdint-aix.h\0stdint.h\0";
1360  *  Machine/OS name selection pattern
1361  */
1362 tSCC* apzAix_Stdint_5Machs[] = {
1363         "*-*-aix*",
1364         (const char*)NULL };
1367  *  content selection pattern - do fix if pattern found
1368  */
1369 tSCC zAix_Stdint_5Select0[] =
1370        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1371 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1373 #define    AIX_STDINT_5_TEST_CT  1
1374 static tTestDesc aAix_Stdint_5Tests[] = {
1375   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1378  *  Fix Command Arguments for Aix_Stdint_5
1379  */
1380 static const char* apzAix_Stdint_5Patch[] = {
1381     "format",
1382     "#define UINT8_C(c)\tc\n\
1383 #define UINT16_C(c)\tc",
1384     (char*)NULL };
1386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1388  *  Description of Aix_Sysmachine fix
1389  */
1390 tSCC zAix_SysmachineName[] =
1391      "aix_sysmachine";
1394  *  File name selection pattern
1395  */
1396 tSCC zAix_SysmachineList[] =
1397   "sys/machine.h\0";
1399  *  Machine/OS name selection pattern
1400  */
1401 #define apzAix_SysmachineMachs (const char**)NULL
1404  *  content selection pattern - do fix if pattern found
1405  */
1406 tSCC zAix_SysmachineSelect0[] =
1407        "\\\\ +\n";
1409 #define    AIX_SYSMACHINE_TEST_CT  1
1410 static tTestDesc aAix_SysmachineTests[] = {
1411   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1414  *  Fix Command Arguments for Aix_Sysmachine
1415  */
1416 static const char* apzAix_SysmachinePatch[] = {
1417     "format",
1418     "\\\n",
1419     (char*)NULL };
1421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1423  *  Description of Aix_Syswait_2 fix
1424  */
1425 tSCC zAix_Syswait_2Name[] =
1426      "aix_syswait_2";
1429  *  File name selection pattern
1430  */
1431 tSCC zAix_Syswait_2List[] =
1432   "sys/wait.h\0";
1434  *  Machine/OS name selection pattern
1435  */
1436 #define apzAix_Syswait_2Machs (const char**)NULL
1439  *  content selection pattern - do fix if pattern found
1440  */
1441 tSCC zAix_Syswait_2Select0[] =
1442        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1444 #define    AIX_SYSWAIT_2_TEST_CT  1
1445 static tTestDesc aAix_Syswait_2Tests[] = {
1446   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1449  *  Fix Command Arguments for Aix_Syswait_2
1450  */
1451 static const char* apzAix_Syswait_2Patch[] = {
1452     "format",
1453     "? (int)%1",
1454     (char*)NULL };
1456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1458  *  Description of Aix_Volatile fix
1459  */
1460 tSCC zAix_VolatileName[] =
1461      "aix_volatile";
1464  *  File name selection pattern
1465  */
1466 tSCC zAix_VolatileList[] =
1467   "sys/signal.h\0";
1469  *  Machine/OS name selection pattern
1470  */
1471 #define apzAix_VolatileMachs (const char**)NULL
1474  *  content selection pattern - do fix if pattern found
1475  */
1476 tSCC zAix_VolatileSelect0[] =
1477        "typedef volatile int sig_atomic_t";
1479 #define    AIX_VOLATILE_TEST_CT  1
1480 static tTestDesc aAix_VolatileTests[] = {
1481   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1484  *  Fix Command Arguments for Aix_Volatile
1485  */
1486 static const char* apzAix_VolatilePatch[] = {
1487     "format",
1488     "typedef int sig_atomic_t",
1489     (char*)NULL };
1491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1493  *  Description of Alpha___Assert fix
1494  */
1495 tSCC zAlpha___AssertName[] =
1496      "alpha___assert";
1499  *  File name selection pattern
1500  */
1501 tSCC zAlpha___AssertList[] =
1502   "assert.h\0";
1504  *  Machine/OS name selection pattern
1505  */
1506 #define apzAlpha___AssertMachs (const char**)NULL
1509  *  content selection pattern - do fix if pattern found
1510  */
1511 tSCC zAlpha___AssertSelect0[] =
1512        "__assert\\(char \\*, char \\*, int\\)";
1514 #define    ALPHA___ASSERT_TEST_CT  1
1515 static tTestDesc aAlpha___AssertTests[] = {
1516   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1519  *  Fix Command Arguments for Alpha___Assert
1520  */
1521 static const char* apzAlpha___AssertPatch[] = {
1522     "format",
1523     "__assert(const char *, const char *, int)",
1524     (char*)NULL };
1526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1528  *  Description of Alpha_Assert fix
1529  */
1530 tSCC zAlpha_AssertName[] =
1531      "alpha_assert";
1534  *  File name selection pattern
1535  */
1536 tSCC zAlpha_AssertList[] =
1537   "assert.h\0";
1539  *  Machine/OS name selection pattern
1540  */
1541 #define apzAlpha_AssertMachs (const char**)NULL
1544  *  content selection pattern - do fix if pattern found
1545  */
1546 tSCC zAlpha_AssertSelect0[] =
1547        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1549 #define    ALPHA_ASSERT_TEST_CT  1
1550 static tTestDesc aAlpha_AssertTests[] = {
1551   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1554  *  Fix Command Arguments for Alpha_Assert
1555  */
1556 static const char* apzAlpha_AssertPatch[] = {
1557     "format",
1558     "%1(EX)",
1559     (char*)NULL };
1561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1563  *  Description of Alpha_Getopt fix
1564  */
1565 tSCC zAlpha_GetoptName[] =
1566      "alpha_getopt";
1569  *  File name selection pattern
1570  */
1571 tSCC zAlpha_GetoptList[] =
1572   "stdio.h\0stdlib.h\0";
1574  *  Machine/OS name selection pattern
1575  */
1576 #define apzAlpha_GetoptMachs (const char**)NULL
1579  *  content selection pattern - do fix if pattern found
1580  */
1581 tSCC zAlpha_GetoptSelect0[] =
1582        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1584 #define    ALPHA_GETOPT_TEST_CT  1
1585 static tTestDesc aAlpha_GetoptTests[] = {
1586   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1589  *  Fix Command Arguments for Alpha_Getopt
1590  */
1591 static const char* apzAlpha_GetoptPatch[] = {
1592     "format",
1593     "getopt(int, char *const[], const char *)",
1594     (char*)NULL };
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1598  *  Description of Alpha_If_Semicolon fix
1599  */
1600 tSCC zAlpha_If_SemicolonName[] =
1601      "alpha_if_semicolon";
1604  *  File name selection pattern
1605  */
1606 tSCC zAlpha_If_SemicolonList[] =
1607   "net/if.h\0";
1609  *  Machine/OS name selection pattern
1610  */
1611 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1614  *  content selection pattern - do fix if pattern found
1615  */
1616 tSCC zAlpha_If_SemicolonSelect0[] =
1617        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1619 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1620 static tTestDesc aAlpha_If_SemicolonTests[] = {
1621   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1624  *  Fix Command Arguments for Alpha_If_Semicolon
1625  */
1626 static const char* apzAlpha_If_SemicolonPatch[] = {
1627     "format",
1628     "struct sockaddr vmif_paddr;\t/*",
1629     (char*)NULL };
1631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1633  *  Description of Alpha_Parens fix
1634  */
1635 tSCC zAlpha_ParensName[] =
1636      "alpha_parens";
1639  *  File name selection pattern
1640  */
1641 tSCC zAlpha_ParensList[] =
1642   "sym.h\0";
1644  *  Machine/OS name selection pattern
1645  */
1646 #define apzAlpha_ParensMachs (const char**)NULL
1649  *  content selection pattern - do fix if pattern found
1650  */
1651 tSCC zAlpha_ParensSelect0[] =
1652        "#ifndef\\(__mips64\\)";
1654 #define    ALPHA_PARENS_TEST_CT  1
1655 static tTestDesc aAlpha_ParensTests[] = {
1656   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1659  *  Fix Command Arguments for Alpha_Parens
1660  */
1661 static const char* apzAlpha_ParensPatch[] = {
1662     "format",
1663     "#ifndef __mips64",
1664     (char*)NULL };
1666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1668  *  Description of Alpha_Sbrk fix
1669  */
1670 tSCC zAlpha_SbrkName[] =
1671      "alpha_sbrk";
1674  *  File name selection pattern
1675  */
1676 tSCC zAlpha_SbrkList[] =
1677   "unistd.h\0";
1679  *  Machine/OS name selection pattern
1680  */
1681 #define apzAlpha_SbrkMachs (const char**)NULL
1684  *  content selection pattern - do fix if pattern found
1685  */
1686 tSCC zAlpha_SbrkSelect0[] =
1687        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1689 #define    ALPHA_SBRK_TEST_CT  1
1690 static tTestDesc aAlpha_SbrkTests[] = {
1691   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1694  *  Fix Command Arguments for Alpha_Sbrk
1695  */
1696 static const char* apzAlpha_SbrkPatch[] = {
1697     "format",
1698     "void *sbrk(",
1699     (char*)NULL };
1701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1703  *  Description of Avoid_Bool_Define fix
1704  */
1705 tSCC zAvoid_Bool_DefineName[] =
1706      "avoid_bool_define";
1709  *  File name selection pattern
1710  */
1711 tSCC zAvoid_Bool_DefineList[] =
1712   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1714  *  Machine/OS name selection pattern
1715  */
1716 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1719  *  content selection pattern - do fix if pattern found
1720  */
1721 tSCC zAvoid_Bool_DefineSelect0[] =
1722        "#[ \t]*define[ \t]+bool[ \t]";
1725  *  content bypass pattern - skip fix if pattern found
1726  */
1727 tSCC zAvoid_Bool_DefineBypass0[] =
1728        "__cplusplus";
1730 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1731 static tTestDesc aAvoid_Bool_DefineTests[] = {
1732   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1733   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1736  *  Fix Command Arguments for Avoid_Bool_Define
1737  */
1738 static const char* apzAvoid_Bool_DefinePatch[] = {
1739     "format",
1740     "#ifndef __cplusplus\n\
1741 %0\n\
1742 #endif",
1743     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1744     (char*)NULL };
1746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1748  *  Description of Avoid_Bool_Type fix
1749  */
1750 tSCC zAvoid_Bool_TypeName[] =
1751      "avoid_bool_type";
1754  *  File name selection pattern
1755  */
1756 tSCC zAvoid_Bool_TypeList[] =
1757   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1759  *  Machine/OS name selection pattern
1760  */
1761 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1764  *  content selection pattern - do fix if pattern found
1765  */
1766 tSCC zAvoid_Bool_TypeSelect0[] =
1767        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1770  *  content bypass pattern - skip fix if pattern found
1771  */
1772 tSCC zAvoid_Bool_TypeBypass0[] =
1773        "__cplusplus";
1775 #define    AVOID_BOOL_TYPE_TEST_CT  2
1776 static tTestDesc aAvoid_Bool_TypeTests[] = {
1777   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1778   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1781  *  Fix Command Arguments for Avoid_Bool_Type
1782  */
1783 static const char* apzAvoid_Bool_TypePatch[] = {
1784     "format",
1785     "#ifndef __cplusplus\n\
1786 %0\n\
1787 #endif",
1788     (char*)NULL };
1790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1792  *  Description of Avoid_Wchar_T_Type fix
1793  */
1794 tSCC zAvoid_Wchar_T_TypeName[] =
1795      "avoid_wchar_t_type";
1798  *  File name selection pattern
1799  */
1800 #define zAvoid_Wchar_T_TypeList (char*)NULL
1802  *  Machine/OS name selection pattern
1803  */
1804 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1807  *  content selection pattern - do fix if pattern found
1808  */
1809 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1810        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1813  *  content bypass pattern - skip fix if pattern found
1814  */
1815 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1816        "__cplusplus";
1817 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1818        "_LINUX_NLS_H";
1819 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1820        "XFree86: xc/lib/X11/Xlib\\.h";
1822 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1823 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1824   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1825   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1826   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1827   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1830  *  Fix Command Arguments for Avoid_Wchar_T_Type
1831  */
1832 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1833     "format",
1834     "#ifndef __cplusplus\n\
1835 %0\n\
1836 #endif",
1837     (char*)NULL };
1839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1841  *  Description of Bad_Struct_Term fix
1842  */
1843 tSCC zBad_Struct_TermName[] =
1844      "bad_struct_term";
1847  *  File name selection pattern
1848  */
1849 tSCC zBad_Struct_TermList[] =
1850   "curses.h\0";
1852  *  Machine/OS name selection pattern
1853  */
1854 #define apzBad_Struct_TermMachs (const char**)NULL
1857  *  content selection pattern - do fix if pattern found
1858  */
1859 tSCC zBad_Struct_TermSelect0[] =
1860        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1862 #define    BAD_STRUCT_TERM_TEST_CT  1
1863 static tTestDesc aBad_Struct_TermTests[] = {
1864   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1867  *  Fix Command Arguments for Bad_Struct_Term
1868  */
1869 static const char* apzBad_Struct_TermPatch[] = {
1870     "format",
1871     "struct term;",
1872     (char*)NULL };
1874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1876  *  Description of Badquote fix
1877  */
1878 tSCC zBadquoteName[] =
1879      "badquote";
1882  *  File name selection pattern
1883  */
1884 tSCC zBadquoteList[] =
1885   "sundev/vuid_event.h\0";
1887  *  Machine/OS name selection pattern
1888  */
1889 #define apzBadquoteMachs (const char**)NULL
1892  *  content selection pattern - do fix if pattern found
1893  */
1894 tSCC zBadquoteSelect0[] =
1895        "doesn't";
1897 #define    BADQUOTE_TEST_CT  1
1898 static tTestDesc aBadquoteTests[] = {
1899   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1902  *  Fix Command Arguments for Badquote
1903  */
1904 static const char* apzBadquotePatch[] = {
1905     "format",
1906     "does not",
1907     (char*)NULL };
1909 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1911  *  Description of Broken_Assert_Stdio fix
1912  */
1913 tSCC zBroken_Assert_StdioName[] =
1914      "broken_assert_stdio";
1917  *  File name selection pattern
1918  */
1919 tSCC zBroken_Assert_StdioList[] =
1920   "assert.h\0";
1922  *  Machine/OS name selection pattern
1923  */
1924 #define apzBroken_Assert_StdioMachs (const char**)NULL
1927  *  content selection pattern - do fix if pattern found
1928  */
1929 tSCC zBroken_Assert_StdioSelect0[] =
1930        "stderr";
1933  *  content bypass pattern - skip fix if pattern found
1934  */
1935 tSCC zBroken_Assert_StdioBypass0[] =
1936        "include.*stdio\\.h";
1938 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1939 static tTestDesc aBroken_Assert_StdioTests[] = {
1940   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1941   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1944  *  Fix Command Arguments for Broken_Assert_Stdio
1945  */
1946 static const char* apzBroken_Assert_StdioPatch[] = {
1947     "wrap",
1948     "#include <stdio.h>\n",
1949     (char*)NULL };
1951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1953  *  Description of Broken_Assert_Stdlib fix
1954  */
1955 tSCC zBroken_Assert_StdlibName[] =
1956      "broken_assert_stdlib";
1959  *  File name selection pattern
1960  */
1961 tSCC zBroken_Assert_StdlibList[] =
1962   "assert.h\0";
1964  *  Machine/OS name selection pattern
1965  */
1966 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1969  *  content selection pattern - do fix if pattern found
1970  */
1971 tSCC zBroken_Assert_StdlibSelect0[] =
1972        "exit *\\(|abort *\\(";
1975  *  content bypass pattern - skip fix if pattern found
1976  */
1977 tSCC zBroken_Assert_StdlibBypass0[] =
1978        "include.*stdlib\\.h";
1980 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1981 static tTestDesc aBroken_Assert_StdlibTests[] = {
1982   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1983   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1986  *  Fix Command Arguments for Broken_Assert_Stdlib
1987  */
1988 static const char* apzBroken_Assert_StdlibPatch[] = {
1989     "wrap",
1990     "#ifdef __cplusplus\n\
1991 #include <stdlib.h>\n\
1992 #endif\n",
1993     (char*)NULL };
1995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1997  *  Description of Broken_Cabs fix
1998  */
1999 tSCC zBroken_CabsName[] =
2000      "broken_cabs";
2003  *  File name selection pattern
2004  */
2005 tSCC zBroken_CabsList[] =
2006   "math.h\0architecture/*/math.h\0";
2008  *  Machine/OS name selection pattern
2009  */
2010 #define apzBroken_CabsMachs (const char**)NULL
2013  *  content selection pattern - do fix if pattern found
2014  */
2015 tSCC zBroken_CabsSelect0[] =
2016        "^extern[ \t]+double[ \t]+cabs";
2018 #define    BROKEN_CABS_TEST_CT  1
2019 static tTestDesc aBroken_CabsTests[] = {
2020   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2023  *  Fix Command Arguments for Broken_Cabs
2024  */
2025 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2026     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2027     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2028     (char*)NULL };
2030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2032  *  Description of Broken_Nan fix
2033  */
2034 tSCC zBroken_NanName[] =
2035      "broken_nan";
2038  *  File name selection pattern
2039  */
2040 tSCC zBroken_NanList[] =
2041   "architecture/ppc/math.h\0architecture/*/math.h\0";
2043  *  Machine/OS name selection pattern
2044  */
2045 #define apzBroken_NanMachs (const char**)NULL
2048  *  content selection pattern - do fix if pattern found
2049  */
2050 tSCC zBroken_NanSelect0[] =
2051        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2054  *  content bypass pattern - skip fix if pattern found
2055  */
2056 tSCC zBroken_NanBypass0[] =
2057        "powl";
2059 #define    BROKEN_NAN_TEST_CT  2
2060 static tTestDesc aBroken_NanTests[] = {
2061   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2062   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2065  *  Fix Command Arguments for Broken_Nan
2066  */
2067 static const char* apzBroken_NanPatch[] = {
2068     "format",
2069     "#if 1",
2070     (char*)NULL };
2072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2074  *  Description of Bsd_Stdio_Attrs_Conflict fix
2075  */
2076 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2077      "bsd_stdio_attrs_conflict";
2080  *  File name selection pattern
2081  */
2082 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2083   "stdio.h\0";
2085  *  Machine/OS name selection pattern
2086  */
2087 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2088         "*-*-*bsd*",
2089         "*-*-*darwin*",
2090         (const char*)NULL };
2093  *  content selection pattern - do fix if pattern found
2094  */
2095 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2096        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2098 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2099 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2100   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2103  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2104  */
2105 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2106     "format",
2107     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2108 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2109 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2110     (char*)NULL };
2112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2114  *  Description of Ctrl_Quotes_Def fix
2115  */
2116 tSCC zCtrl_Quotes_DefName[] =
2117      "ctrl_quotes_def";
2120  *  File name selection pattern
2121  */
2122 #define zCtrl_Quotes_DefList (char*)NULL
2124  *  Machine/OS name selection pattern
2125  */
2126 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2129  *  content selection pattern - do fix if pattern found
2130  */
2131 tSCC zCtrl_Quotes_DefSelect0[] =
2132        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2134 #define    CTRL_QUOTES_DEF_TEST_CT  1
2135 static tTestDesc aCtrl_Quotes_DefTests[] = {
2136   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2139  *  Fix Command Arguments for Ctrl_Quotes_Def
2140  */
2141 static const char* apzCtrl_Quotes_DefPatch[] = {
2142     "char_macro_def",
2143     "CTRL",
2144     (char*)NULL };
2146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2148  *  Description of Ctrl_Quotes_Use fix
2149  */
2150 tSCC zCtrl_Quotes_UseName[] =
2151      "ctrl_quotes_use";
2154  *  File name selection pattern
2155  */
2156 #define zCtrl_Quotes_UseList (char*)NULL
2158  *  Machine/OS name selection pattern
2159  */
2160 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2163  *  content selection pattern - do fix if pattern found
2164  */
2165 tSCC zCtrl_Quotes_UseSelect0[] =
2166        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2168 #define    CTRL_QUOTES_USE_TEST_CT  1
2169 static tTestDesc aCtrl_Quotes_UseTests[] = {
2170   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2173  *  Fix Command Arguments for Ctrl_Quotes_Use
2174  */
2175 static const char* apzCtrl_Quotes_UsePatch[] = {
2176     "char_macro_use",
2177     "CTRL",
2178     (char*)NULL };
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2182  *  Description of Cxx_Unready fix
2183  */
2184 tSCC zCxx_UnreadyName[] =
2185      "cxx_unready";
2188  *  File name selection pattern
2189  */
2190 tSCC zCxx_UnreadyList[] =
2191   "sys/mman.h\0rpc/types.h\0";
2193  *  Machine/OS name selection pattern
2194  */
2195 #define apzCxx_UnreadyMachs (const char**)NULL
2198  *  content selection pattern - do fix if pattern found
2199  */
2200 tSCC zCxx_UnreadySelect0[] =
2201        "[^#]+malloc.*;";
2204  *  content bypass pattern - skip fix if pattern found
2205  */
2206 tSCC zCxx_UnreadyBypass0[] =
2207        "\"C\"|__BEGIN_DECLS";
2209 #define    CXX_UNREADY_TEST_CT  2
2210 static tTestDesc aCxx_UnreadyTests[] = {
2211   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2212   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2215  *  Fix Command Arguments for Cxx_Unready
2216  */
2217 static const char* apzCxx_UnreadyPatch[] = {
2218     "wrap",
2219     "#ifdef __cplusplus\n\
2220 extern \"C\" {\n\
2221 #endif\n",
2222     "#ifdef __cplusplus\n\
2223 }\n\
2224 #endif\n",
2225     (char*)NULL };
2227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2229  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2230  */
2231 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2232      "darwin_9_long_double_funcs_2";
2235  *  File name selection pattern
2236  */
2237 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2238   "math.h\0";
2240  *  Machine/OS name selection pattern
2241  */
2242 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2243         "*-*-darwin7.9*",
2244         (const char*)NULL };
2247  *  content selection pattern - do fix if pattern found
2248  */
2249 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2250        "#include[ \\t]+\\\"";
2252 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2253 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2254   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2257  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2258  */
2259 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2260     "format",
2261     "%1<%2.h>",
2262     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2263     (char*)NULL };
2265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2267  *  Description of Darwin_Externc fix
2268  */
2269 tSCC zDarwin_ExterncName[] =
2270      "darwin_externc";
2273  *  File name selection pattern
2274  */
2275 tSCC zDarwin_ExterncList[] =
2276   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2278  *  Machine/OS name selection pattern
2279  */
2280 tSCC* apzDarwin_ExterncMachs[] = {
2281         "*-*-darwin*",
2282         (const char*)NULL };
2285  *  content bypass pattern - skip fix if pattern found
2286  */
2287 tSCC zDarwin_ExterncBypass0[] =
2288        "extern \"C\"";
2289 tSCC zDarwin_ExterncBypass1[] =
2290        "__BEGIN_DECLS";
2292 #define    DARWIN_EXTERNC_TEST_CT  2
2293 static tTestDesc aDarwin_ExterncTests[] = {
2294   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2295   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2298  *  Fix Command Arguments for Darwin_Externc
2299  */
2300 static const char* apzDarwin_ExterncPatch[] = {
2301     "wrap",
2302     "#ifdef __cplusplus\n\
2303 extern \"C\" {\n\
2304 #endif\n",
2305     "#ifdef __cplusplus\n\
2306 }\n\
2307 #endif\n",
2308     (char*)NULL };
2310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2312  *  Description of Darwin_Gcc4_Breakage fix
2313  */
2314 tSCC zDarwin_Gcc4_BreakageName[] =
2315      "darwin_gcc4_breakage";
2318  *  File name selection pattern
2319  */
2320 tSCC zDarwin_Gcc4_BreakageList[] =
2321   "AvailabilityMacros.h\0";
2323  *  Machine/OS name selection pattern
2324  */
2325 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2326         "*-*-darwin*",
2327         (const char*)NULL };
2330  *  content selection pattern - do fix if pattern found
2331  */
2332 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2333        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2335 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2336 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2337   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2340  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2341  */
2342 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2343     "format",
2344     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2345     (char*)NULL };
2347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2349  *  Description of Darwin_Private_Extern fix
2350  */
2351 tSCC zDarwin_Private_ExternName[] =
2352      "darwin_private_extern";
2355  *  File name selection pattern
2356  */
2357 tSCC zDarwin_Private_ExternList[] =
2358   "mach-o/dyld.h\0";
2360  *  Machine/OS name selection pattern
2361  */
2362 tSCC* apzDarwin_Private_ExternMachs[] = {
2363         "*-*-darwin*",
2364         (const char*)NULL };
2367  *  content selection pattern - do fix if pattern found
2368  */
2369 tSCC zDarwin_Private_ExternSelect0[] =
2370        "__private_extern__ [a-z_]+ _dyld_";
2372 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2373 static tTestDesc aDarwin_Private_ExternTests[] = {
2374   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2377  *  Fix Command Arguments for Darwin_Private_Extern
2378  */
2379 static const char* apzDarwin_Private_ExternPatch[] = {
2380     "format",
2381     "extern",
2382     "__private_extern__",
2383     (char*)NULL };
2385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2387  *  Description of Darwin_Stdint_1 fix
2388  */
2389 tSCC zDarwin_Stdint_1Name[] =
2390      "darwin_stdint_1";
2393  *  File name selection pattern
2394  */
2395 tSCC zDarwin_Stdint_1List[] =
2396   "stdint-darwin.h\0stdint.h\0";
2398  *  Machine/OS name selection pattern
2399  */
2400 tSCC* apzDarwin_Stdint_1Machs[] = {
2401         "*-*-darwin*",
2402         (const char*)NULL };
2405  *  content selection pattern - do fix if pattern found
2406  */
2407 tSCC zDarwin_Stdint_1Select0[] =
2408        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2409 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2411 #define    DARWIN_STDINT_1_TEST_CT  1
2412 static tTestDesc aDarwin_Stdint_1Tests[] = {
2413   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2416  *  Fix Command Arguments for Darwin_Stdint_1
2417  */
2418 static const char* apzDarwin_Stdint_1Patch[] = {
2419     "format",
2420     "#define UINT8_C(v)\tv\n\
2421 #define UINT16_C(v)\tv",
2422     (char*)NULL };
2424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2426  *  Description of Darwin_Stdint_2 fix
2427  */
2428 tSCC zDarwin_Stdint_2Name[] =
2429      "darwin_stdint_2";
2432  *  File name selection pattern
2433  */
2434 tSCC zDarwin_Stdint_2List[] =
2435   "stdint-darwin.h\0stdint.h\0";
2437  *  Machine/OS name selection pattern
2438  */
2439 tSCC* apzDarwin_Stdint_2Machs[] = {
2440         "*-*-darwin*",
2441         (const char*)NULL };
2444  *  content selection pattern - do fix if pattern found
2445  */
2446 tSCC zDarwin_Stdint_2Select0[] =
2447        "#if __WORDSIZE == 64\n\
2448 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2449 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2450 #else\n\
2451 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2452 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2453 #endif";
2455 #define    DARWIN_STDINT_2_TEST_CT  1
2456 static tTestDesc aDarwin_Stdint_2Tests[] = {
2457   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2460  *  Fix Command Arguments for Darwin_Stdint_2
2461  */
2462 static const char* apzDarwin_Stdint_2Patch[] = {
2463     "format",
2464     "#if __WORDSIZE == 64\n\
2465 #define INTPTR_MAX 9223372036854775807L\n\
2466 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2467 #else\n\
2468 #define INTPTR_MAX 2147483647L\n\
2469 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2470 #endif",
2471     (char*)NULL };
2473 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2475  *  Description of Darwin_Stdint_3 fix
2476  */
2477 tSCC zDarwin_Stdint_3Name[] =
2478      "darwin_stdint_3";
2481  *  File name selection pattern
2482  */
2483 tSCC zDarwin_Stdint_3List[] =
2484   "stdint-darwin.h\0stdint.h\0";
2486  *  Machine/OS name selection pattern
2487  */
2488 tSCC* apzDarwin_Stdint_3Machs[] = {
2489         "*-*-darwin*",
2490         (const char*)NULL };
2493  *  content selection pattern - do fix if pattern found
2494  */
2495 tSCC zDarwin_Stdint_3Select0[] =
2496        "#if __WORDSIZE == 64\n\
2497 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2498 #else\n\
2499 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2500 #endif";
2502 #define    DARWIN_STDINT_3_TEST_CT  1
2503 static tTestDesc aDarwin_Stdint_3Tests[] = {
2504   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2507  *  Fix Command Arguments for Darwin_Stdint_3
2508  */
2509 static const char* apzDarwin_Stdint_3Patch[] = {
2510     "format",
2511     "#if __WORDSIZE == 64\n\
2512 #define UINTPTR_MAX 18446744073709551615UL\n\
2513 #else\n\
2514 #define UINTPTR_MAX 4294967295UL\n\
2515 #endif",
2516     (char*)NULL };
2518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2520  *  Description of Darwin_Stdint_4 fix
2521  */
2522 tSCC zDarwin_Stdint_4Name[] =
2523      "darwin_stdint_4";
2526  *  File name selection pattern
2527  */
2528 tSCC zDarwin_Stdint_4List[] =
2529   "stdint-darwin.h\0stdint.h\0";
2531  *  Machine/OS name selection pattern
2532  */
2533 tSCC* apzDarwin_Stdint_4Machs[] = {
2534         "*-*-darwin*",
2535         (const char*)NULL };
2538  *  content selection pattern - do fix if pattern found
2539  */
2540 tSCC zDarwin_Stdint_4Select0[] =
2541        "#if __WORDSIZE == 64\n\
2542 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2543 #else\n\
2544 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2545 #endif";
2547 #define    DARWIN_STDINT_4_TEST_CT  1
2548 static tTestDesc aDarwin_Stdint_4Tests[] = {
2549   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2552  *  Fix Command Arguments for Darwin_Stdint_4
2553  */
2554 static const char* apzDarwin_Stdint_4Patch[] = {
2555     "format",
2556     "#if __WORDSIZE == 64\n\
2557 #define SIZE_MAX 18446744073709551615UL\n\
2558 #else\n\
2559 #define SIZE_MAX 4294967295UL\n\
2560 #endif",
2561     (char*)NULL };
2563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2565  *  Description of Darwin_Stdint_5 fix
2566  */
2567 tSCC zDarwin_Stdint_5Name[] =
2568      "darwin_stdint_5";
2571  *  File name selection pattern
2572  */
2573 tSCC zDarwin_Stdint_5List[] =
2574   "stdint-darwin.h\0stdint.h\0";
2576  *  Machine/OS name selection pattern
2577  */
2578 tSCC* apzDarwin_Stdint_5Machs[] = {
2579         "*-*-darwin*",
2580         (const char*)NULL };
2583  *  content selection pattern - do fix if pattern found
2584  */
2585 tSCC zDarwin_Stdint_5Select0[] =
2586        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2587 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2588 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2590 #define    DARWIN_STDINT_5_TEST_CT  1
2591 static tTestDesc aDarwin_Stdint_5Tests[] = {
2592   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2595  *  Fix Command Arguments for Darwin_Stdint_5
2596  */
2597 static const char* apzDarwin_Stdint_5Patch[] = {
2598     "format",
2599     "#if __WORDSIZE == 64\n\
2600 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
2601 #define INTMAX_MAX   9223372036854775807L\n\
2602 #define UINTMAX_MAX  18446744073709551615UL\n\
2603 #else\n\
2604 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
2605 #define INTMAX_MAX   9223372036854775807LL\n\
2606 #define UINTMAX_MAX  18446744073709551615ULL\n\
2607 #endif",
2608     (char*)NULL };
2610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2612  *  Description of Darwin_Stdint_6 fix
2613  */
2614 tSCC zDarwin_Stdint_6Name[] =
2615      "darwin_stdint_6";
2618  *  File name selection pattern
2619  */
2620 tSCC zDarwin_Stdint_6List[] =
2621   "stdint-darwin.h\0stdint.h\0";
2623  *  Machine/OS name selection pattern
2624  */
2625 tSCC* apzDarwin_Stdint_6Machs[] = {
2626         "*-*-darwin*",
2627         (const char*)NULL };
2630  *  content selection pattern - do fix if pattern found
2631  */
2632 tSCC zDarwin_Stdint_6Select0[] =
2633        "#if __WORDSIZE == 64\n\
2634 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2635 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2636 #else\n\
2637 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2638 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2639 #endif";
2641 #define    DARWIN_STDINT_6_TEST_CT  1
2642 static tTestDesc aDarwin_Stdint_6Tests[] = {
2643   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2646  *  Fix Command Arguments for Darwin_Stdint_6
2647  */
2648 static const char* apzDarwin_Stdint_6Patch[] = {
2649     "format",
2650     "#if __WORDSIZE == 64\n\
2651 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2652 #define PTRDIFF_MAX 9223372036854775807L\n\
2653 #else\n\
2654 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2655 #define PTRDIFF_MAX 2147483647\n\
2656 #endif",
2657     (char*)NULL };
2659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2661  *  Description of Darwin_Stdint_7 fix
2662  */
2663 tSCC zDarwin_Stdint_7Name[] =
2664      "darwin_stdint_7";
2667  *  File name selection pattern
2668  */
2669 tSCC zDarwin_Stdint_7List[] =
2670   "stdint-darwin.h\0stdint.h\0";
2672  *  Machine/OS name selection pattern
2673  */
2674 tSCC* apzDarwin_Stdint_7Machs[] = {
2675         "*-*-darwin*",
2676         (const char*)NULL };
2679  *  content selection pattern - do fix if pattern found
2680  */
2681 tSCC zDarwin_Stdint_7Select0[] =
2682        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2683 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2685 #define    DARWIN_STDINT_7_TEST_CT  1
2686 static tTestDesc aDarwin_Stdint_7Tests[] = {
2687   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2690  *  Fix Command Arguments for Darwin_Stdint_7
2691  */
2692 static const char* apzDarwin_Stdint_7Patch[] = {
2693     "format",
2694     "#if __WORDSIZE == 64\n\
2695 #define INTMAX_C(v)  (v ## L)\n\
2696 #define UINTMAX_C(v) (v ## UL)\n\
2697 #else\n\
2698 #define INTMAX_C(v)  (v ## LL)\n\
2699 #define UINTMAX_C(v) (v ## ULL)\n\
2700 #endif",
2701     (char*)NULL };
2703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2705  *  Description of Dec_Intern_Asm fix
2706  */
2707 tSCC zDec_Intern_AsmName[] =
2708      "dec_intern_asm";
2711  *  File name selection pattern
2712  */
2713 tSCC zDec_Intern_AsmList[] =
2714   "c_asm.h\0";
2716  *  Machine/OS name selection pattern
2717  */
2718 #define apzDec_Intern_AsmMachs (const char**)NULL
2719 #define DEC_INTERN_ASM_TEST_CT  0
2720 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2723  *  Fix Command Arguments for Dec_Intern_Asm
2724  */
2725 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2726     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2727 #ifdef __DECC\n",
2728     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2729 #endif\n",
2730     (char*)NULL };
2732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2734  *  Description of Djgpp_Wchar_H fix
2735  */
2736 tSCC zDjgpp_Wchar_HName[] =
2737      "djgpp_wchar_h";
2740  *  File name selection pattern
2741  */
2742 #define zDjgpp_Wchar_HList (char*)NULL
2744  *  Machine/OS name selection pattern
2745  */
2746 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2749  *  content selection pattern - do fix if pattern found
2750  */
2751 tSCC zDjgpp_Wchar_HSelect0[] =
2752        "__DJ_wint_t";
2755  *  content bypass pattern - skip fix if pattern found
2756  */
2757 tSCC zDjgpp_Wchar_HBypass0[] =
2758        "sys/djtypes.h";
2760 #define    DJGPP_WCHAR_H_TEST_CT  2
2761 static tTestDesc aDjgpp_Wchar_HTests[] = {
2762   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2763   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2766  *  Fix Command Arguments for Djgpp_Wchar_H
2767  */
2768 static const char* apzDjgpp_Wchar_HPatch[] = {
2769     "format",
2770     "%0\n\
2771 #include <sys/djtypes.h>",
2772     "#include <stddef.h>",
2773     (char*)NULL };
2775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2777  *  Description of Ecd_Cursor fix
2778  */
2779 tSCC zEcd_CursorName[] =
2780      "ecd_cursor";
2783  *  File name selection pattern
2784  */
2785 tSCC zEcd_CursorList[] =
2786   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2788  *  Machine/OS name selection pattern
2789  */
2790 #define apzEcd_CursorMachs (const char**)NULL
2793  *  content selection pattern - do fix if pattern found
2794  */
2795 tSCC zEcd_CursorSelect0[] =
2796        "ecd\\.cursor";
2798 #define    ECD_CURSOR_TEST_CT  1
2799 static tTestDesc aEcd_CursorTests[] = {
2800   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2803  *  Fix Command Arguments for Ecd_Cursor
2804  */
2805 static const char* apzEcd_CursorPatch[] = {
2806     "format",
2807     "ecd_cursor",
2808     (char*)NULL };
2810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2812  *  Description of Freebsd_Gcc3_Breakage fix
2813  */
2814 tSCC zFreebsd_Gcc3_BreakageName[] =
2815      "freebsd_gcc3_breakage";
2818  *  File name selection pattern
2819  */
2820 tSCC zFreebsd_Gcc3_BreakageList[] =
2821   "sys/cdefs.h\0";
2823  *  Machine/OS name selection pattern
2824  */
2825 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2826         "*-*-freebsd*",
2827         (const char*)NULL };
2830  *  content selection pattern - do fix if pattern found
2831  */
2832 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2833        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2836  *  content bypass pattern - skip fix if pattern found
2837  */
2838 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2839        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2841 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2842 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2843   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2844   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2847  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2848  */
2849 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2850     "format",
2851     "%0 || __GNUC__ >= 3",
2852     (char*)NULL };
2854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2856  *  Description of Freebsd_Gcc4_Breakage fix
2857  */
2858 tSCC zFreebsd_Gcc4_BreakageName[] =
2859      "freebsd_gcc4_breakage";
2862  *  File name selection pattern
2863  */
2864 tSCC zFreebsd_Gcc4_BreakageList[] =
2865   "sys/cdefs.h\0";
2867  *  Machine/OS name selection pattern
2868  */
2869 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2870         "*-*-freebsd*",
2871         (const char*)NULL };
2874  *  content selection pattern - do fix if pattern found
2875  */
2876 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2877        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2879 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2880 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2881   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2884  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2885  */
2886 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2887     "format",
2888     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2889     (char*)NULL };
2891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2893  *  Description of Glibc_C99_Inline_1 fix
2894  */
2895 tSCC zGlibc_C99_Inline_1Name[] =
2896      "glibc_c99_inline_1";
2899  *  File name selection pattern
2900  */
2901 tSCC zGlibc_C99_Inline_1List[] =
2902   "features.h\0*/features.h\0";
2904  *  Machine/OS name selection pattern
2905  */
2906 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2909  *  content selection pattern - do fix if pattern found
2910  */
2911 tSCC zGlibc_C99_Inline_1Select0[] =
2912        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2914 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2915 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2916   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2919  *  Fix Command Arguments for Glibc_C99_Inline_1
2920  */
2921 static const char* apzGlibc_C99_Inline_1Patch[] = {
2922     "format",
2923     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2924     (char*)NULL };
2926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2928  *  Description of Glibc_C99_Inline_1a fix
2929  */
2930 tSCC zGlibc_C99_Inline_1aName[] =
2931      "glibc_c99_inline_1a";
2934  *  File name selection pattern
2935  */
2936 tSCC zGlibc_C99_Inline_1aList[] =
2937   "features.h\0*/features.h\0";
2939  *  Machine/OS name selection pattern
2940  */
2941 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2944  *  content selection pattern - do fix if pattern found
2945  */
2946 tSCC zGlibc_C99_Inline_1aSelect0[] =
2947        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2948 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2950 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
2951 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2952   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2955  *  Fix Command Arguments for Glibc_C99_Inline_1a
2956  */
2957 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2958     "format",
2959     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2960 %2",
2961     (char*)NULL };
2963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2965  *  Description of Glibc_C99_Inline_2 fix
2966  */
2967 tSCC zGlibc_C99_Inline_2Name[] =
2968      "glibc_c99_inline_2";
2971  *  File name selection pattern
2972  */
2973 tSCC zGlibc_C99_Inline_2List[] =
2974   "sys/stat.h\0*/sys/stat.h\0";
2976  *  Machine/OS name selection pattern
2977  */
2978 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2981  *  content selection pattern - do fix if pattern found
2982  */
2983 tSCC zGlibc_C99_Inline_2Select0[] =
2984        "extern __inline__ int";
2986 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2987 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2988   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2991  *  Fix Command Arguments for Glibc_C99_Inline_2
2992  */
2993 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2994     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2995 extern\\\n\
2996 #endif\\\n\
2997 __inline__ int \\1/",
2998     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2999 extern\\\n\
3000 #endif\\\n\
3001 __inline__ int \\1/",
3002     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3003 extern\\\n\
3004 #endif\\\n\
3005 __inline__ int \\1/",
3006     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3007 extern\\\n\
3008 #endif\\\n\
3009 __inline__ int __REDIRECT\\1 (\\2/",
3010     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3011 extern\\\n\
3012 #endif\\\n\
3013 __inline__ int __REDIRECT\\1 (\\2/",
3014     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
3015 extern\\\n\
3016 #endif\\\n\
3017 __inline__ int/",
3018     (char*)NULL };
3020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3022  *  Description of Glibc_C99_Inline_3 fix
3023  */
3024 tSCC zGlibc_C99_Inline_3Name[] =
3025      "glibc_c99_inline_3";
3028  *  File name selection pattern
3029  */
3030 tSCC zGlibc_C99_Inline_3List[] =
3031   "bits/string2.h\0*/bits/string2.h\0";
3033  *  Machine/OS name selection pattern
3034  */
3035 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
3038  *  content selection pattern - do fix if pattern found
3039  */
3040 tSCC zGlibc_C99_Inline_3Select0[] =
3041        "extern __inline";
3044  *  content bypass pattern - skip fix if pattern found
3045  */
3046 tSCC zGlibc_C99_Inline_3Bypass0[] =
3047        "__extern_inline|__GNU_STDC_INLINE__";
3049 #define    GLIBC_C99_INLINE_3_TEST_CT  2
3050 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
3051   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3052   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
3055  *  Fix Command Arguments for Glibc_C99_Inline_3
3056  */
3057 static const char* apzGlibc_C99_Inline_3Patch[] = {
3058     "format",
3059     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3060     "^# ifdef __cplusplus$",
3061     (char*)NULL };
3063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3065  *  Description of Glibc_C99_Inline_4 fix
3066  */
3067 tSCC zGlibc_C99_Inline_4Name[] =
3068      "glibc_c99_inline_4";
3071  *  File name selection pattern
3072  */
3073 tSCC zGlibc_C99_Inline_4List[] =
3074   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
3076  *  Machine/OS name selection pattern
3077  */
3078 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3081  *  content selection pattern - do fix if pattern found
3082  */
3083 tSCC zGlibc_C99_Inline_4Select0[] =
3084        "(^| )extern __inline";
3087  *  content bypass pattern - skip fix if pattern found
3088  */
3089 tSCC zGlibc_C99_Inline_4Bypass0[] =
3090        "__extern_inline|__gnu_inline__";
3092 #define    GLIBC_C99_INLINE_4_TEST_CT  2
3093 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3094   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3095   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3098  *  Fix Command Arguments for Glibc_C99_Inline_4
3099  */
3100 static const char* apzGlibc_C99_Inline_4Patch[] = {
3101     "format",
3102     "%0 __attribute__ ((__gnu_inline__))",
3103     (char*)NULL };
3105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3107  *  Description of Glibc_Mutex_Init fix
3108  */
3109 tSCC zGlibc_Mutex_InitName[] =
3110      "glibc_mutex_init";
3113  *  File name selection pattern
3114  */
3115 tSCC zGlibc_Mutex_InitList[] =
3116   "pthread.h\0";
3118  *  Machine/OS name selection pattern
3119  */
3120 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3123  *  content selection pattern - do fix if pattern found
3124  */
3125 tSCC zGlibc_Mutex_InitSelect0[] =
3126        "\\{ *\\{ *0, *\\} *\\}";
3128 #define    GLIBC_MUTEX_INIT_TEST_CT  1
3129 static tTestDesc aGlibc_Mutex_InitTests[] = {
3130   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3133  *  Fix Command Arguments for Glibc_Mutex_Init
3134  */
3135 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3136     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3137 N\n\
3138 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3140     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3141     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3142     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3143     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3144     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3145     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3146     "-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\
3147 #  \\1\\\n\
3148   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3149 # else\\\n\
3150 #  \\1\\\n\
3151   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3152 # endif/",
3153     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3154     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3155     (char*)NULL };
3157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3159  *  Description of Glibc_Stdint fix
3160  */
3161 tSCC zGlibc_StdintName[] =
3162      "glibc_stdint";
3165  *  File name selection pattern
3166  */
3167 tSCC zGlibc_StdintList[] =
3168   "stdint.h\0";
3170  *  Machine/OS name selection pattern
3171  */
3172 #define apzGlibc_StdintMachs (const char**)NULL
3175  *  content selection pattern - do fix if pattern found
3176  */
3177 tSCC zGlibc_StdintSelect0[] =
3178        "GNU C Library";
3180 #define    GLIBC_STDINT_TEST_CT  1
3181 static tTestDesc aGlibc_StdintTests[] = {
3182   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
3185  *  Fix Command Arguments for Glibc_Stdint
3186  */
3187 static const char* apzGlibc_StdintPatch[] = {
3188     "format",
3189     "# define UINT8_C(c)\tc\n\
3190 # define UINT16_C(c)\tc",
3191     "# define UINT8_C\\(c\\)\tc ## U\n\
3192 # define UINT16_C\\(c\\)\tc ## U",
3193     (char*)NULL };
3195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3197  *  Description of Glibc_Strncpy fix
3198  */
3199 tSCC zGlibc_StrncpyName[] =
3200      "glibc_strncpy";
3203  *  File name selection pattern
3204  */
3205 tSCC zGlibc_StrncpyList[] =
3206   "bits/string2.h\0";
3208  *  Machine/OS name selection pattern
3209  */
3210 #define apzGlibc_StrncpyMachs (const char**)NULL
3213  *  content bypass pattern - skip fix if pattern found
3214  */
3215 tSCC zGlibc_StrncpyBypass0[] =
3216        "__builtin_strncpy";
3218 #define    GLIBC_STRNCPY_TEST_CT  1
3219 static tTestDesc aGlibc_StrncpyTests[] = {
3220   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3223  *  Fix Command Arguments for Glibc_Strncpy
3224  */
3225 static const char* apzGlibc_StrncpyPatch[] = {
3226     "format",
3227     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3228     "#  define strncpy([^\n\
3229 ]*\\\\\n\
3230 )*[^\n\
3231 ]*",
3232     (char*)NULL };
3234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3236  *  Description of Glibc_Tgmath fix
3237  */
3238 tSCC zGlibc_TgmathName[] =
3239      "glibc_tgmath";
3242  *  File name selection pattern
3243  */
3244 tSCC zGlibc_TgmathList[] =
3245   "tgmath.h\0";
3247  *  Machine/OS name selection pattern
3248  */
3249 #define apzGlibc_TgmathMachs (const char**)NULL
3252  *  content selection pattern - do fix if pattern found
3253  */
3254 tSCC zGlibc_TgmathSelect0[] =
3255        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3258  *  content bypass pattern - skip fix if pattern found
3259  */
3260 tSCC zGlibc_TgmathBypass0[] =
3261        "__floating_type\\(type\\) \\\\\n\
3262 .*__builtin_classify_type";
3264 #define    GLIBC_TGMATH_TEST_CT  2
3265 static tTestDesc aGlibc_TgmathTests[] = {
3266   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
3267   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3270  *  Fix Command Arguments for Glibc_Tgmath
3271  */
3272 static const char* apzGlibc_TgmathPatch[] = {
3273     "format",
3274     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3275     (char*)NULL };
3277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3279  *  Description of Gnu_Types fix
3280  */
3281 tSCC zGnu_TypesName[] =
3282      "gnu_types";
3285  *  File name selection pattern
3286  */
3287 tSCC zGnu_TypesList[] =
3288   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3290  *  Machine/OS name selection pattern
3291  */
3292 tSCC* apzGnu_TypesMachs[] = {
3293         "*-*-solaris2.1[0-9]*",
3294         (const char*)NULL };
3297  *  content selection pattern - do fix if pattern found
3298  */
3299 tSCC zGnu_TypesSelect0[] =
3300        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3303  *  content bypass pattern - skip fix if pattern found
3304  */
3305 tSCC zGnu_TypesBypass0[] =
3306        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3308 #define    GNU_TYPES_TEST_CT  2
3309 static tTestDesc aGnu_TypesTests[] = {
3310   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3311   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3314  *  Fix Command Arguments for Gnu_Types
3315  */
3316 static const char* apzGnu_TypesPatch[] = {
3317     "gnu_type",
3318     (char*)NULL };
3320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3322  *  Description of Hp_Inline fix
3323  */
3324 tSCC zHp_InlineName[] =
3325      "hp_inline";
3328  *  File name selection pattern
3329  */
3330 tSCC zHp_InlineList[] =
3331   "sys/spinlock.h\0machine/machparam.h\0";
3333  *  Machine/OS name selection pattern
3334  */
3335 #define apzHp_InlineMachs (const char**)NULL
3338  *  content selection pattern - do fix if pattern found
3339  */
3340 tSCC zHp_InlineSelect0[] =
3341        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3343 #define    HP_INLINE_TEST_CT  1
3344 static tTestDesc aHp_InlineTests[] = {
3345   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
3348  *  Fix Command Arguments for Hp_Inline
3349  */
3350 static const char* apzHp_InlinePatch[] = {
3351     "format",
3352     "%1<machine/%2.h>",
3353     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3354     (char*)NULL };
3356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3358  *  Description of Hp_Sysfile fix
3359  */
3360 tSCC zHp_SysfileName[] =
3361      "hp_sysfile";
3364  *  File name selection pattern
3365  */
3366 tSCC zHp_SysfileList[] =
3367   "sys/file.h\0";
3369  *  Machine/OS name selection pattern
3370  */
3371 #define apzHp_SysfileMachs (const char**)NULL
3374  *  content selection pattern - do fix if pattern found
3375  */
3376 tSCC zHp_SysfileSelect0[] =
3377        "HPUX_SOURCE";
3379 #define    HP_SYSFILE_TEST_CT  1
3380 static tTestDesc aHp_SysfileTests[] = {
3381   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
3384  *  Fix Command Arguments for Hp_Sysfile
3385  */
3386 static const char* apzHp_SysfilePatch[] = {
3387     "format",
3388     "(struct file *, ...)",
3389     "\\(\\.\\.\\.\\)",
3390     (char*)NULL };
3392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3394  *  Description of Hppa_Hpux_Fp_Macros fix
3395  */
3396 tSCC zHppa_Hpux_Fp_MacrosName[] =
3397      "hppa_hpux_fp_macros";
3400  *  File name selection pattern
3401  */
3402 tSCC zHppa_Hpux_Fp_MacrosList[] =
3403   "math.h\0";
3405  *  Machine/OS name selection pattern
3406  */
3407 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3408         "hppa*-hp-hpux11*",
3409         (const char*)NULL };
3412  *  content selection pattern - do fix if pattern found
3413  */
3414 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3415        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3416 #[ \t]*define[ \t]*FP_ZERO.*\n\
3417 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3418 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3419 #[ \t]*define[ \t]*FP_NAN.*\n";
3421 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
3422 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3423   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3426  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
3427  */
3428 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3429     "format",
3430     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3431 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3432    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3433 %0#endif\n\n\
3434 #ifdef _INCLUDE_HPUX_SOURCE\n",
3435     (char*)NULL };
3437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3439  *  Description of Hpux10_Cpp_Pow_Inline fix
3440  */
3441 tSCC zHpux10_Cpp_Pow_InlineName[] =
3442      "hpux10_cpp_pow_inline";
3445  *  File name selection pattern
3446  */
3447 tSCC zHpux10_Cpp_Pow_InlineList[] =
3448   "fixinc-test-limits.h\0math.h\0";
3450  *  Machine/OS name selection pattern
3451  */
3452 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3455  *  content selection pattern - do fix if pattern found
3456  */
3457 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3458        "^# +ifdef +__cplusplus\n\
3459  +\\}\n\
3460  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3461 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3462  +\\}\n\
3463  +extern +\"C\" +\\{\n\
3464 #else\n\
3465 # +endif";
3467 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
3468 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3469   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3472  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3473  */
3474 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3475     "format",
3476     "",
3477     (char*)NULL };
3479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3481  *  Description of Hpux11_Cpp_Pow_Inline fix
3482  */
3483 tSCC zHpux11_Cpp_Pow_InlineName[] =
3484      "hpux11_cpp_pow_inline";
3487  *  File name selection pattern
3488  */
3489 tSCC zHpux11_Cpp_Pow_InlineList[] =
3490   "math.h\0";
3492  *  Machine/OS name selection pattern
3493  */
3494 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3497  *  content selection pattern - do fix if pattern found
3498  */
3499 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3500        " +inline double pow\\(double d,int expon\\) \\{\n\
3501  +return pow\\(d, \\(double\\)expon\\);\n\
3502  +\\}\n";
3504 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
3505 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3506   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3509  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3510  */
3511 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3512     "format",
3513     "",
3514     (char*)NULL };
3516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3518  *  Description of Hpux10_Ctype_Declarations1 fix
3519  */
3520 tSCC zHpux10_Ctype_Declarations1Name[] =
3521      "hpux10_ctype_declarations1";
3524  *  File name selection pattern
3525  */
3526 tSCC zHpux10_Ctype_Declarations1List[] =
3527   "ctype.h\0";
3529  *  Machine/OS name selection pattern
3530  */
3531 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3534  *  content selection pattern - do fix if pattern found
3535  */
3536 tSCC zHpux10_Ctype_Declarations1Select0[] =
3537        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3540  *  content bypass pattern - skip fix if pattern found
3541  */
3542 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3543        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3545 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
3546 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3547   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3548   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3551  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
3552  */
3553 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3554     "format",
3555     "#ifdef _PROTOTYPES\n\
3556 extern int __tolower(int);\n\
3557 extern int __toupper(int);\n\
3558 #else /* NOT _PROTOTYPES */\n\
3559 extern int __tolower();\n\
3560 extern int __toupper();\n\
3561 #endif /* _PROTOTYPES */\n\n\
3562 %0\n",
3563     (char*)NULL };
3565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3567  *  Description of Hpux10_Ctype_Declarations2 fix
3568  */
3569 tSCC zHpux10_Ctype_Declarations2Name[] =
3570      "hpux10_ctype_declarations2";
3573  *  File name selection pattern
3574  */
3575 tSCC zHpux10_Ctype_Declarations2List[] =
3576   "ctype.h\0";
3578  *  Machine/OS name selection pattern
3579  */
3580 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3583  *  content selection pattern - do fix if pattern found
3584  */
3585 tSCC zHpux10_Ctype_Declarations2Select0[] =
3586        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3589  *  content bypass pattern - skip fix if pattern found
3590  */
3591 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3592        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3594 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
3595 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3596   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3597   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3600  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
3601  */
3602 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3603     "format",
3604     "%0\n\n\
3605 #ifdef _PROTOTYPES\n\
3606      extern int _isalnum(int);\n\
3607      extern int _isalpha(int);\n\
3608      extern int _iscntrl(int);\n\
3609      extern int _isdigit(int);\n\
3610      extern int _isgraph(int);\n\
3611      extern int _islower(int);\n\
3612      extern int _isprint(int);\n\
3613      extern int _ispunct(int);\n\
3614      extern int _isspace(int);\n\
3615      extern int _isupper(int);\n\
3616      extern int _isxdigit(int);\n\
3617 #  else /* not _PROTOTYPES */\n\
3618      extern int _isalnum();\n\
3619      extern int _isalpha();\n\
3620      extern int _iscntrl();\n\
3621      extern int _isdigit();\n\
3622      extern int _isgraph();\n\
3623      extern int _islower();\n\
3624      extern int _isprint();\n\
3625      extern int _ispunct();\n\
3626      extern int _isspace();\n\
3627      extern int _isupper();\n\
3628      extern int _isxdigit();\n\
3629 #endif /* _PROTOTYPES */\n",
3630     (char*)NULL };
3632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3634  *  Description of Hpux10_Stdio_Declarations fix
3635  */
3636 tSCC zHpux10_Stdio_DeclarationsName[] =
3637      "hpux10_stdio_declarations";
3640  *  File name selection pattern
3641  */
3642 tSCC zHpux10_Stdio_DeclarationsList[] =
3643   "stdio.h\0";
3645  *  Machine/OS name selection pattern
3646  */
3647 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3650  *  content selection pattern - do fix if pattern found
3651  */
3652 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3653        "^#[ \t]*define _iob[ \t]*__iob";
3656  *  content bypass pattern - skip fix if pattern found
3657  */
3658 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3659        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3661 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
3662 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3663   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3664   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3667  *  Fix Command Arguments for Hpux10_Stdio_Declarations
3668  */
3669 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3670     "format",
3671     "%0\n\n\
3672 #  if defined(__STDC__) || defined(__cplusplus)\n\
3673      extern int snprintf(char *, size_t, const char *, ...);\n\
3674      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3675 #  else /* not __STDC__) || __cplusplus */\n\
3676      extern int snprintf();\n\
3677      extern int vsnprintf();\n\
3678 #  endif /* __STDC__) || __cplusplus */\n",
3679     (char*)NULL };
3681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3683  *  Description of Hpux11_Abs fix
3684  */
3685 tSCC zHpux11_AbsName[] =
3686      "hpux11_abs";
3689  *  File name selection pattern
3690  */
3691 tSCC zHpux11_AbsList[] =
3692   "stdlib.h\0";
3694  *  Machine/OS name selection pattern
3695  */
3696 tSCC* apzHpux11_AbsMachs[] = {
3697         "*-hp-hpux11*",
3698         (const char*)NULL };
3701  *  content selection pattern - do fix if pattern found
3702  */
3703 tSCC zHpux11_AbsSelect0[] =
3704        "ifndef _MATH_INCLUDED";
3706 #define    HPUX11_ABS_TEST_CT  1
3707 static tTestDesc aHpux11_AbsTests[] = {
3708   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
3711  *  Fix Command Arguments for Hpux11_Abs
3712  */
3713 static const char* apzHpux11_AbsPatch[] = {
3714     "format",
3715     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3716     (char*)NULL };
3718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3720  *  Description of Hpux11_Fabsf fix
3721  */
3722 tSCC zHpux11_FabsfName[] =
3723      "hpux11_fabsf";
3726  *  File name selection pattern
3727  */
3728 tSCC zHpux11_FabsfList[] =
3729   "math.h\0";
3731  *  Machine/OS name selection pattern
3732  */
3733 #define apzHpux11_FabsfMachs (const char**)NULL
3736  *  content selection pattern - do fix if pattern found
3737  */
3738 tSCC zHpux11_FabsfSelect0[] =
3739        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3742  *  content bypass pattern - skip fix if pattern found
3743  */
3744 tSCC zHpux11_FabsfBypass0[] =
3745        "__cplusplus";
3747 #define    HPUX11_FABSF_TEST_CT  2
3748 static tTestDesc aHpux11_FabsfTests[] = {
3749   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
3750   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3753  *  Fix Command Arguments for Hpux11_Fabsf
3754  */
3755 static const char* apzHpux11_FabsfPatch[] = {
3756     "format",
3757     "#ifndef __cplusplus\n\
3758 %0\n\
3759 #endif",
3760     (char*)NULL };
3762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3764  *  Description of Hpux11_Pthread_Const fix
3765  */
3766 tSCC zHpux11_Pthread_ConstName[] =
3767      "hpux11_pthread_const";
3770  *  File name selection pattern
3771  */
3772 tSCC zHpux11_Pthread_ConstList[] =
3773   "sys/pthread.h\0";
3775  *  Machine/OS name selection pattern
3776  */
3777 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3778         "*-hp-hpux11.[0-3]*",
3779         (const char*)NULL };
3782  *  content selection pattern - do fix if pattern found
3783  */
3784 tSCC zHpux11_Pthread_ConstSelect0[] =
3785        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3787 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
3788 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3789   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3792  *  Fix Command Arguments for Hpux11_Pthread_Const
3793  */
3794 static const char* apzHpux11_Pthread_ConstPatch[] = {
3795     "format",
3796     "#define __POINTER_SET\t\t((void *) 1L)",
3797     (char*)NULL };
3799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3801  *  Description of Hpux11_Size_T fix
3802  */
3803 tSCC zHpux11_Size_TName[] =
3804      "hpux11_size_t";
3807  *  File name selection pattern
3808  */
3809 #define zHpux11_Size_TList (char*)NULL
3811  *  Machine/OS name selection pattern
3812  */
3813 tSCC* apzHpux11_Size_TMachs[] = {
3814         "*-hp-hpux11*",
3815         (const char*)NULL };
3818  *  content selection pattern - do fix if pattern found
3819  */
3820 tSCC zHpux11_Size_TSelect0[] =
3821        "__size_t";
3823 #define    HPUX11_SIZE_T_TEST_CT  1
3824 static tTestDesc aHpux11_Size_TTests[] = {
3825   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3828  *  Fix Command Arguments for Hpux11_Size_T
3829  */
3830 static const char* apzHpux11_Size_TPatch[] = {
3831     "format",
3832     "_hpux_size_t",
3833     (char*)NULL };
3835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3837  *  Description of Hpux11_Snprintf fix
3838  */
3839 tSCC zHpux11_SnprintfName[] =
3840      "hpux11_snprintf";
3843  *  File name selection pattern
3844  */
3845 tSCC zHpux11_SnprintfList[] =
3846   "stdio.h\0";
3848  *  Machine/OS name selection pattern
3849  */
3850 #define apzHpux11_SnprintfMachs (const char**)NULL
3853  *  content selection pattern - do fix if pattern found
3854  */
3855 tSCC zHpux11_SnprintfSelect0[] =
3856        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3858 #define    HPUX11_SNPRINTF_TEST_CT  1
3859 static tTestDesc aHpux11_SnprintfTests[] = {
3860   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3863  *  Fix Command Arguments for Hpux11_Snprintf
3864  */
3865 static const char* apzHpux11_SnprintfPatch[] = {
3866     "format",
3867     "%1 const %3",
3868     (char*)NULL };
3870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3872  *  Description of Hpux11_Vsnprintf fix
3873  */
3874 tSCC zHpux11_VsnprintfName[] =
3875      "hpux11_vsnprintf";
3878  *  File name selection pattern
3879  */
3880 tSCC zHpux11_VsnprintfList[] =
3881   "stdio.h\0";
3883  *  Machine/OS name selection pattern
3884  */
3885 #define apzHpux11_VsnprintfMachs (const char**)NULL
3888  *  content selection pattern - do fix if pattern found
3889  */
3890 tSCC zHpux11_VsnprintfSelect0[] =
3891        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3893 #define    HPUX11_VSNPRINTF_TEST_CT  1
3894 static tTestDesc aHpux11_VsnprintfTests[] = {
3895   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3898  *  Fix Command Arguments for Hpux11_Vsnprintf
3899  */
3900 static const char* apzHpux11_VsnprintfPatch[] = {
3901     "format",
3902     "%1 __va_list);",
3903     (char*)NULL };
3905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3907  *  Description of Hpux8_Bogus_Inlines fix
3908  */
3909 tSCC zHpux8_Bogus_InlinesName[] =
3910      "hpux8_bogus_inlines";
3913  *  File name selection pattern
3914  */
3915 tSCC zHpux8_Bogus_InlinesList[] =
3916   "math.h\0";
3918  *  Machine/OS name selection pattern
3919  */
3920 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3923  *  content selection pattern - do fix if pattern found
3924  */
3925 tSCC zHpux8_Bogus_InlinesSelect0[] =
3926        "inline";
3929  *  content bypass pattern - skip fix if pattern found
3930  */
3931 tSCC zHpux8_Bogus_InlinesBypass0[] =
3932        "__GNUG__";
3934 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
3935 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3936   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3937   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3940  *  Fix Command Arguments for Hpux8_Bogus_Inlines
3941  */
3942 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3943     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3944     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3945     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3946     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3947     (char*)NULL };
3949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3951  *  Description of Hpux_Ctype_Macros fix
3952  */
3953 tSCC zHpux_Ctype_MacrosName[] =
3954      "hpux_ctype_macros";
3957  *  File name selection pattern
3958  */
3959 tSCC zHpux_Ctype_MacrosList[] =
3960   "ctype.h\0";
3962  *  Machine/OS name selection pattern
3963  */
3964 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3967  *  content selection pattern - do fix if pattern found
3968  */
3969 tSCC zHpux_Ctype_MacrosSelect0[] =
3970        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3972 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3973 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3974   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3977  *  Fix Command Arguments for Hpux_Ctype_Macros
3978  */
3979 static const char* apzHpux_Ctype_MacrosPatch[] = {
3980     "format",
3981     "%1(int)%3",
3982     (char*)NULL };
3984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3986  *  Description of Hpux_Htonl fix
3987  */
3988 tSCC zHpux_HtonlName[] =
3989      "hpux_htonl";
3992  *  File name selection pattern
3993  */
3994 tSCC zHpux_HtonlList[] =
3995   "netinet/in.h\0";
3997  *  Machine/OS name selection pattern
3998  */
3999 #define apzHpux_HtonlMachs (const char**)NULL
4002  *  content selection pattern - do fix if pattern found
4003  */
4004 tSCC zHpux_HtonlSelect0[] =
4005        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
4006 (/\\*\n\
4007  \\* Macros for number representation conversion\\.\n\
4008  \\*/\n\
4009 #ifndef ntohl)";
4011 #define    HPUX_HTONL_TEST_CT  1
4012 static tTestDesc aHpux_HtonlTests[] = {
4013   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
4016  *  Fix Command Arguments for Hpux_Htonl
4017  */
4018 static const char* apzHpux_HtonlPatch[] = {
4019     "format",
4020     "#if 1\n\
4021 %1",
4022     (char*)NULL };
4024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4026  *  Description of Hpux_Long_Double fix
4027  */
4028 tSCC zHpux_Long_DoubleName[] =
4029      "hpux_long_double";
4032  *  File name selection pattern
4033  */
4034 tSCC zHpux_Long_DoubleList[] =
4035   "stdlib.h\0";
4037  *  Machine/OS name selection pattern
4038  */
4039 tSCC* apzHpux_Long_DoubleMachs[] = {
4040         "*-*-hpux10*",
4041         "*-*-hpux11.[012]*",
4042         (const char*)NULL };
4045  *  content selection pattern - do fix if pattern found
4046  */
4047 tSCC zHpux_Long_DoubleSelect0[] =
4048        "extern[ \t]long_double[ \t]strtold";
4051  *  content bypass pattern - skip fix if pattern found
4052  */
4053 tSCC zHpux_Long_DoubleBypass0[] =
4054        "long_double_t";
4056 #define    HPUX_LONG_DOUBLE_TEST_CT  2
4057 static tTestDesc aHpux_Long_DoubleTests[] = {
4058   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
4059   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
4062  *  Fix Command Arguments for Hpux_Long_Double
4063  */
4064 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
4065     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
4066     "-e", "s/long_double/long double/g",
4067     (char*)NULL };
4069 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4071  *  Description of Hpux_Long_Double_2 fix
4072  */
4073 tSCC zHpux_Long_Double_2Name[] =
4074      "hpux_long_double_2";
4077  *  File name selection pattern
4078  */
4079 tSCC zHpux_Long_Double_2List[] =
4080   "stdlib.h\0";
4082  *  Machine/OS name selection pattern
4083  */
4084 tSCC* apzHpux_Long_Double_2Machs[] = {
4085         "hppa*-*-hpux11.3*",
4086         (const char*)NULL };
4089  *  content selection pattern - do fix if pattern found
4090  */
4091 tSCC zHpux_Long_Double_2Select0[] =
4092        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
4094 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
4095 static tTestDesc aHpux_Long_Double_2Tests[] = {
4096   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
4099  *  Fix Command Arguments for Hpux_Long_Double_2
4100  */
4101 static const char* apzHpux_Long_Double_2Patch[] = {
4102     "format",
4103     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
4104     (char*)NULL };
4106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4108  *  Description of Hpux_Systime fix
4109  */
4110 tSCC zHpux_SystimeName[] =
4111      "hpux_systime";
4114  *  File name selection pattern
4115  */
4116 tSCC zHpux_SystimeList[] =
4117   "sys/time.h\0";
4119  *  Machine/OS name selection pattern
4120  */
4121 #define apzHpux_SystimeMachs (const char**)NULL
4124  *  content selection pattern - do fix if pattern found
4125  */
4126 tSCC zHpux_SystimeSelect0[] =
4127        "^extern struct sigevent;";
4129 #define    HPUX_SYSTIME_TEST_CT  1
4130 static tTestDesc aHpux_SystimeTests[] = {
4131   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
4134  *  Fix Command Arguments for Hpux_Systime
4135  */
4136 static const char* apzHpux_SystimePatch[] = {
4137     "format",
4138     "struct sigevent;",
4139     (char*)NULL };
4141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4143  *  Description of Hpux_Spu_Info fix
4144  */
4145 tSCC zHpux_Spu_InfoName[] =
4146      "hpux_spu_info";
4149  *  File name selection pattern
4150  */
4151 tSCC zHpux_Spu_InfoList[] =
4152   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
4154  *  Machine/OS name selection pattern
4155  */
4156 tSCC* apzHpux_Spu_InfoMachs[] = {
4157         "*-hp-hpux*",
4158         (const char*)NULL };
4161  *  content selection pattern - do fix if pattern found
4162  */
4163 tSCC zHpux_Spu_InfoSelect0[] =
4164        "^.*extern.*spu_info.*";
4166 #define    HPUX_SPU_INFO_TEST_CT  1
4167 static tTestDesc aHpux_Spu_InfoTests[] = {
4168   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
4171  *  Fix Command Arguments for Hpux_Spu_Info
4172  */
4173 static const char* apzHpux_Spu_InfoPatch[] = {
4174     "format",
4175     "#ifdef _KERNEL\n\
4176 %0\n\
4177 #endif",
4178     (char*)NULL };
4180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4182  *  Description of Hpux11_Extern_Sendfile fix
4183  */
4184 tSCC zHpux11_Extern_SendfileName[] =
4185      "hpux11_extern_sendfile";
4188  *  File name selection pattern
4189  */
4190 tSCC zHpux11_Extern_SendfileList[] =
4191   "sys/socket.h\0";
4193  *  Machine/OS name selection pattern
4194  */
4195 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4196         "*-hp-hpux11.[12]*",
4197         (const char*)NULL };
4200  *  content selection pattern - do fix if pattern found
4201  */
4202 tSCC zHpux11_Extern_SendfileSelect0[] =
4203        "^[ \t]*extern sbsize_t sendfile.*\n\
4204 .*, int\\)\\);\n";
4206 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
4207 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4208   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4211  *  Fix Command Arguments for Hpux11_Extern_Sendfile
4212  */
4213 static const char* apzHpux11_Extern_SendfilePatch[] = {
4214     "format",
4215     "#ifndef _APP32_64BIT_OFF_T\n\
4216 %0#endif\n",
4217     (char*)NULL };
4219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4221  *  Description of Hpux11_Extern_Sendpath fix
4222  */
4223 tSCC zHpux11_Extern_SendpathName[] =
4224      "hpux11_extern_sendpath";
4227  *  File name selection pattern
4228  */
4229 tSCC zHpux11_Extern_SendpathList[] =
4230   "sys/socket.h\0";
4232  *  Machine/OS name selection pattern
4233  */
4234 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4235         "*-hp-hpux11.[12]*",
4236         (const char*)NULL };
4239  *  content selection pattern - do fix if pattern found
4240  */
4241 tSCC zHpux11_Extern_SendpathSelect0[] =
4242        "^[ \t]*extern sbsize_t sendpath.*\n\
4243 .*, int\\)\\);\n";
4245 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
4246 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4247   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4250  *  Fix Command Arguments for Hpux11_Extern_Sendpath
4251  */
4252 static const char* apzHpux11_Extern_SendpathPatch[] = {
4253     "format",
4254     "#ifndef _APP32_64BIT_OFF_T\n\
4255 %0#endif\n",
4256     (char*)NULL };
4258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4260  *  Description of Hpux_Extern_Errno fix
4261  */
4262 tSCC zHpux_Extern_ErrnoName[] =
4263      "hpux_extern_errno";
4266  *  File name selection pattern
4267  */
4268 tSCC zHpux_Extern_ErrnoList[] =
4269   "errno.h\0";
4271  *  Machine/OS name selection pattern
4272  */
4273 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4274         "*-hp-hpux10.*",
4275         "*-hp-hpux11.[0-2]*",
4276         (const char*)NULL };
4279  *  content selection pattern - do fix if pattern found
4280  */
4281 tSCC zHpux_Extern_ErrnoSelect0[] =
4282        "^[ \t]*extern int errno;$";
4284 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
4285 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4286   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4289  *  Fix Command Arguments for Hpux_Extern_Errno
4290  */
4291 static const char* apzHpux_Extern_ErrnoPatch[] = {
4292     "format",
4293     "#ifdef __cplusplus\n\
4294 extern \"C\" {\n\
4295 #endif\n\
4296 %0\n\
4297 #ifdef __cplusplus\n\
4298 }\n\
4299 #endif",
4300     (char*)NULL };
4302 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4304  *  Description of Hpux_Pthread_Initializers fix
4305  */
4306 tSCC zHpux_Pthread_InitializersName[] =
4307      "hpux_pthread_initializers";
4310  *  File name selection pattern
4311  */
4312 tSCC zHpux_Pthread_InitializersList[] =
4313   "sys/pthread.h\0";
4315  *  Machine/OS name selection pattern
4316  */
4317 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4318         "*-hp-hpux11.[0-3]*",
4319         (const char*)NULL };
4320 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
4321 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
4324  *  Fix Command Arguments for Hpux_Pthread_Initializers
4325  */
4326 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4327     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4328     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4329     "-e", "/^[ \t]*0$/d",
4330     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4331     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4332     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4333     "-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\\\\@",
4334     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4335     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4336     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4337     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4338     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4339     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4340     (char*)NULL };
4342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4344  *  Description of Hpux_C99_Intptr fix
4345  */
4346 tSCC zHpux_C99_IntptrName[] =
4347      "hpux_c99_intptr";
4350  *  File name selection pattern
4351  */
4352 tSCC zHpux_C99_IntptrList[] =
4353   "stdint-hpux11.h\0stdint.h\0";
4355  *  Machine/OS name selection pattern
4356  */
4357 tSCC* apzHpux_C99_IntptrMachs[] = {
4358         "*-hp-hpux11.3*",
4359         (const char*)NULL };
4360 #define HPUX_C99_INTPTR_TEST_CT  0
4361 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4364  *  Fix Command Arguments for Hpux_C99_Intptr
4365  */
4366 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4367     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4368     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4369     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4370     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4371     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4372     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4373     (char*)NULL };
4375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4377  *  Description of Hpux_C99_Inttypes fix
4378  */
4379 tSCC zHpux_C99_InttypesName[] =
4380      "hpux_c99_inttypes";
4383  *  File name selection pattern
4384  */
4385 tSCC zHpux_C99_InttypesList[] =
4386   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4388  *  Machine/OS name selection pattern
4389  */
4390 tSCC* apzHpux_C99_InttypesMachs[] = {
4391         "*-hp-hpux11.[23]*",
4392         (const char*)NULL };
4393 #define HPUX_C99_INTTYPES_TEST_CT  0
4394 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4397  *  Fix Command Arguments for Hpux_C99_Inttypes
4398  */
4399 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4400     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4401     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4402     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4403     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4404     (char*)NULL };
4406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4408  *  Description of Hpux_C99_Inttypes2 fix
4409  */
4410 tSCC zHpux_C99_Inttypes2Name[] =
4411      "hpux_c99_inttypes2";
4414  *  File name selection pattern
4415  */
4416 tSCC zHpux_C99_Inttypes2List[] =
4417   "stdint-hpux11.h\0stdint.h\0";
4419  *  Machine/OS name selection pattern
4420  */
4421 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4422         "*-hp-hpux11.2*",
4423         (const char*)NULL };
4424 #define HPUX_C99_INTTYPES2_TEST_CT  0
4425 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4428  *  Fix Command Arguments for Hpux_C99_Inttypes2
4429  */
4430 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4431     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4432     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4433     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4434     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4435     (char*)NULL };
4437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4439  *  Description of Hpux_Stdint_Least_Fast fix
4440  */
4441 tSCC zHpux_Stdint_Least_FastName[] =
4442      "hpux_stdint_least_fast";
4445  *  File name selection pattern
4446  */
4447 tSCC zHpux_Stdint_Least_FastList[] =
4448   "stdint-hpux11.h\0stdint.h\0";
4450  *  Machine/OS name selection pattern
4451  */
4452 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4453         "*-hp-hpux11.2*",
4454         (const char*)NULL };
4457  *  content selection pattern - do fix if pattern found
4458  */
4459 tSCC zHpux_Stdint_Least_FastSelect0[] =
4460        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4462 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
4463 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4464   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4467  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
4468  */
4469 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4470     "format",
4471     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
4472     (char*)NULL };
4474 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4476  *  Description of Hpux_Inttype_Int8_T fix
4477  */
4478 tSCC zHpux_Inttype_Int8_TName[] =
4479      "hpux_inttype_int8_t";
4482  *  File name selection pattern
4483  */
4484 tSCC zHpux_Inttype_Int8_TList[] =
4485   "sys/_inttypes.h\0";
4487  *  Machine/OS name selection pattern
4488  */
4489 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4490         "*-hp-hpux1[01].*",
4491         (const char*)NULL };
4494  *  content selection pattern - do fix if pattern found
4495  */
4496 tSCC zHpux_Inttype_Int8_TSelect0[] =
4497        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4499 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4500 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4501   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4504  *  Fix Command Arguments for Hpux_Inttype_Int8_T
4505  */
4506 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4507     "format",
4508     "typedef signed char int%18_t;",
4509     (char*)NULL };
4511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4513  *  Description of Hpux_Imaginary_I fix
4514  */
4515 tSCC zHpux_Imaginary_IName[] =
4516      "hpux_imaginary_i";
4519  *  File name selection pattern
4520  */
4521 tSCC zHpux_Imaginary_IList[] =
4522   "complex.h\0";
4524  *  Machine/OS name selection pattern
4525  */
4526 tSCC* apzHpux_Imaginary_IMachs[] = {
4527         "ia64-hp-hpux11.*",
4528         (const char*)NULL };
4531  *  content selection pattern - do fix if pattern found
4532  */
4533 tSCC zHpux_Imaginary_ISelect0[] =
4534        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4536 #define    HPUX_IMAGINARY_I_TEST_CT  1
4537 static tTestDesc aHpux_Imaginary_ITests[] = {
4538   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4541  *  Fix Command Arguments for Hpux_Imaginary_I
4542  */
4543 static const char* apzHpux_Imaginary_IPatch[] = {
4544     "format",
4545     "#define _Complex_I (__extension__ 1.0iF)",
4546     (char*)NULL };
4548 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4550  *  Description of Huge_Val_Hex fix
4551  */
4552 tSCC zHuge_Val_HexName[] =
4553      "huge_val_hex";
4556  *  File name selection pattern
4557  */
4558 tSCC zHuge_Val_HexList[] =
4559   "bits/huge_val.h\0";
4561  *  Machine/OS name selection pattern
4562  */
4563 #define apzHuge_Val_HexMachs (const char**)NULL
4566  *  content selection pattern - do fix if pattern found
4567  */
4568 tSCC zHuge_Val_HexSelect0[] =
4569        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4572  *  content bypass pattern - skip fix if pattern found
4573  */
4574 tSCC zHuge_Val_HexBypass0[] =
4575        "__builtin_huge_val";
4577 #define    HUGE_VAL_HEX_TEST_CT  2
4578 static tTestDesc aHuge_Val_HexTests[] = {
4579   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
4580   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4583  *  Fix Command Arguments for Huge_Val_Hex
4584  */
4585 static const char* apzHuge_Val_HexPatch[] = {
4586     "format",
4587     "#define HUGE_VAL (__builtin_huge_val())\n",
4588     (char*)NULL };
4590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4592  *  Description of Huge_Valf_Hex fix
4593  */
4594 tSCC zHuge_Valf_HexName[] =
4595      "huge_valf_hex";
4598  *  File name selection pattern
4599  */
4600 tSCC zHuge_Valf_HexList[] =
4601   "bits/huge_val.h\0";
4603  *  Machine/OS name selection pattern
4604  */
4605 #define apzHuge_Valf_HexMachs (const char**)NULL
4608  *  content selection pattern - do fix if pattern found
4609  */
4610 tSCC zHuge_Valf_HexSelect0[] =
4611        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4614  *  content bypass pattern - skip fix if pattern found
4615  */
4616 tSCC zHuge_Valf_HexBypass0[] =
4617        "__builtin_huge_valf";
4619 #define    HUGE_VALF_HEX_TEST_CT  2
4620 static tTestDesc aHuge_Valf_HexTests[] = {
4621   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
4622   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4625  *  Fix Command Arguments for Huge_Valf_Hex
4626  */
4627 static const char* apzHuge_Valf_HexPatch[] = {
4628     "format",
4629     "#define HUGE_VALF (__builtin_huge_valf())\n",
4630     (char*)NULL };
4632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4634  *  Description of Huge_Vall_Hex fix
4635  */
4636 tSCC zHuge_Vall_HexName[] =
4637      "huge_vall_hex";
4640  *  File name selection pattern
4641  */
4642 tSCC zHuge_Vall_HexList[] =
4643   "bits/huge_val.h\0";
4645  *  Machine/OS name selection pattern
4646  */
4647 #define apzHuge_Vall_HexMachs (const char**)NULL
4650  *  content selection pattern - do fix if pattern found
4651  */
4652 tSCC zHuge_Vall_HexSelect0[] =
4653        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4656  *  content bypass pattern - skip fix if pattern found
4657  */
4658 tSCC zHuge_Vall_HexBypass0[] =
4659        "__builtin_huge_vall";
4661 #define    HUGE_VALL_HEX_TEST_CT  2
4662 static tTestDesc aHuge_Vall_HexTests[] = {
4663   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
4664   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4667  *  Fix Command Arguments for Huge_Vall_Hex
4668  */
4669 static const char* apzHuge_Vall_HexPatch[] = {
4670     "format",
4671     "#define HUGE_VALL (__builtin_huge_vall())\n",
4672     (char*)NULL };
4674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4676  *  Description of Int_Abort_Free_And_Exit fix
4677  */
4678 tSCC zInt_Abort_Free_And_ExitName[] =
4679      "int_abort_free_and_exit";
4682  *  File name selection pattern
4683  */
4684 tSCC zInt_Abort_Free_And_ExitList[] =
4685   "stdlib.h\0";
4687  *  Machine/OS name selection pattern
4688  */
4689 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4692  *  content selection pattern - do fix if pattern found
4693  */
4694 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4695        "int[ \t]+(abort|free|exit)[ \t]*\\(";
4698  *  content bypass pattern - skip fix if pattern found
4699  */
4700 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4701        "_CLASSIC_ANSI_TYPES";
4703 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
4704 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4705   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4706   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4709  *  Fix Command Arguments for Int_Abort_Free_And_Exit
4710  */
4711 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4712     "format",
4713     "void\t%1(",
4714     (char*)NULL };
4716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4718  *  Description of Io_Quotes_Def fix
4719  */
4720 tSCC zIo_Quotes_DefName[] =
4721      "io_quotes_def";
4724  *  File name selection pattern
4725  */
4726 #define zIo_Quotes_DefList (char*)NULL
4728  *  Machine/OS name selection pattern
4729  */
4730 #define apzIo_Quotes_DefMachs (const char**)NULL
4733  *  content selection pattern - do fix if pattern found
4734  */
4735 tSCC zIo_Quotes_DefSelect0[] =
4736        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4738 #define    IO_QUOTES_DEF_TEST_CT  1
4739 static tTestDesc aIo_Quotes_DefTests[] = {
4740   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4743  *  Fix Command Arguments for Io_Quotes_Def
4744  */
4745 static const char* apzIo_Quotes_DefPatch[] = {
4746     "char_macro_def",
4747     "IO",
4748     (char*)NULL };
4750 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4752  *  Description of Io_Quotes_Use fix
4753  */
4754 tSCC zIo_Quotes_UseName[] =
4755      "io_quotes_use";
4758  *  File name selection pattern
4759  */
4760 #define zIo_Quotes_UseList (char*)NULL
4762  *  Machine/OS name selection pattern
4763  */
4764 #define apzIo_Quotes_UseMachs (const char**)NULL
4767  *  content selection pattern - do fix if pattern found
4768  */
4769 tSCC zIo_Quotes_UseSelect0[] =
4770        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4772 #define    IO_QUOTES_USE_TEST_CT  1
4773 static tTestDesc aIo_Quotes_UseTests[] = {
4774   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4777  *  Fix Command Arguments for Io_Quotes_Use
4778  */
4779 static const char* apzIo_Quotes_UsePatch[] = {
4780     "char_macro_use",
4781     "IO",
4782     (char*)NULL };
4784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4786  *  Description of Ip_Missing_Semi fix
4787  */
4788 tSCC zIp_Missing_SemiName[] =
4789      "ip_missing_semi";
4792  *  File name selection pattern
4793  */
4794 tSCC zIp_Missing_SemiList[] =
4795   "netinet/ip.h\0";
4797  *  Machine/OS name selection pattern
4798  */
4799 #define apzIp_Missing_SemiMachs (const char**)NULL
4802  *  content selection pattern - do fix if pattern found
4803  */
4804 tSCC zIp_Missing_SemiSelect0[] =
4805        "}$";
4807 #define    IP_MISSING_SEMI_TEST_CT  1
4808 static tTestDesc aIp_Missing_SemiTests[] = {
4809   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4812  *  Fix Command Arguments for Ip_Missing_Semi
4813  */
4814 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4815     "-e", "/^struct/,/^};/s/}$/};/",
4816     (char*)NULL };
4818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4820  *  Description of Irix_Limits_Const fix
4821  */
4822 tSCC zIrix_Limits_ConstName[] =
4823      "irix_limits_const";
4826  *  File name selection pattern
4827  */
4828 tSCC zIrix_Limits_ConstList[] =
4829   "fixinc-test-limits.h\0limits.h\0";
4831  *  Machine/OS name selection pattern
4832  */
4833 #define apzIrix_Limits_ConstMachs (const char**)NULL
4836  *  content selection pattern - do fix if pattern found
4837  */
4838 tSCC zIrix_Limits_ConstSelect0[] =
4839        "^extern const ";
4841 #define    IRIX_LIMITS_CONST_TEST_CT  1
4842 static tTestDesc aIrix_Limits_ConstTests[] = {
4843   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4846  *  Fix Command Arguments for Irix_Limits_Const
4847  */
4848 static const char* apzIrix_Limits_ConstPatch[] = {
4849     "format",
4850     "extern __const ",
4851     (char*)NULL };
4853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4855  *  Description of Irix_Stdio_Va_List fix
4856  */
4857 tSCC zIrix_Stdio_Va_ListName[] =
4858      "irix_stdio_va_list";
4861  *  File name selection pattern
4862  */
4863 tSCC zIrix_Stdio_Va_ListList[] =
4864   "stdio.h\0";
4866  *  Machine/OS name selection pattern
4867  */
4868 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4871  *  content selection pattern - do fix if pattern found
4872  */
4873 tSCC zIrix_Stdio_Va_ListSelect0[] =
4874        "/\\* va_list \\*/ char \\*";
4876 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
4877 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4878   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4881  *  Fix Command Arguments for Irix_Stdio_Va_List
4882  */
4883 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4884     "format",
4885     "__gnuc_va_list",
4886     (char*)NULL };
4888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4890  *  Description of Kandr_Concat fix
4891  */
4892 tSCC zKandr_ConcatName[] =
4893      "kandr_concat";
4896  *  File name selection pattern
4897  */
4898 tSCC zKandr_ConcatList[] =
4899   "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";
4901  *  Machine/OS name selection pattern
4902  */
4903 #define apzKandr_ConcatMachs (const char**)NULL
4906  *  content selection pattern - do fix if pattern found
4907  */
4908 tSCC zKandr_ConcatSelect0[] =
4909        "/\\*\\*/";
4911 #define    KANDR_CONCAT_TEST_CT  1
4912 static tTestDesc aKandr_ConcatTests[] = {
4913   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
4916  *  Fix Command Arguments for Kandr_Concat
4917  */
4918 static const char* apzKandr_ConcatPatch[] = {
4919     "format",
4920     "##",
4921     (char*)NULL };
4923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4925  *  Description of Linux_Ia64_Ucontext fix
4926  */
4927 tSCC zLinux_Ia64_UcontextName[] =
4928      "linux_ia64_ucontext";
4931  *  File name selection pattern
4932  */
4933 tSCC zLinux_Ia64_UcontextList[] =
4934   "sys/ucontext.h\0";
4936  *  Machine/OS name selection pattern
4937  */
4938 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4939         "ia64-*-linux*",
4940         (const char*)NULL };
4943  *  content selection pattern - do fix if pattern found
4944  */
4945 tSCC zLinux_Ia64_UcontextSelect0[] =
4946        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4948 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
4949 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4950   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4953  *  Fix Command Arguments for Linux_Ia64_Ucontext
4954  */
4955 static const char* apzLinux_Ia64_UcontextPatch[] = {
4956     "format",
4957     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4958     (char*)NULL };
4960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4962  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
4963  */
4964 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4965      "lynxos_no_warning_in_sys_time_h";
4968  *  File name selection pattern
4969  */
4970 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4971   "sys/time.h\0";
4973  *  Machine/OS name selection pattern
4974  */
4975 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4978  *  content selection pattern - do fix if pattern found
4979  */
4980 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4981        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4983 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
4984 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4985   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4988  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4989  */
4990 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4991     "format",
4992     "",
4993     (char*)NULL };
4995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4997  *  Description of Lynxos_Missing_Putenv fix
4998  */
4999 tSCC zLynxos_Missing_PutenvName[] =
5000      "lynxos_missing_putenv";
5003  *  File name selection pattern
5004  */
5005 tSCC zLynxos_Missing_PutenvList[] =
5006   "stdlib.h\0";
5008  *  Machine/OS name selection pattern
5009  */
5010 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5011         "*-*-lynxos*",
5012         (const char*)NULL };
5015  *  content selection pattern - do fix if pattern found
5016  */
5017 tSCC zLynxos_Missing_PutenvSelect0[] =
5018        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5021  *  content bypass pattern - skip fix if pattern found
5022  */
5023 tSCC zLynxos_Missing_PutenvBypass0[] =
5024        "putenv[ \\t]*\\(";
5026 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
5027 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5028   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5029   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5032  *  Fix Command Arguments for Lynxos_Missing_Putenv
5033  */
5034 static const char* apzLynxos_Missing_PutenvPatch[] = {
5035     "format",
5036     "%0\n\
5037 extern int putenv\t\t\t\t_AP((char *));",
5038     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5039     (char*)NULL };
5041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5043  *  Description of Machine_Ansi_H_Va_List fix
5044  */
5045 tSCC zMachine_Ansi_H_Va_ListName[] =
5046      "machine_ansi_h_va_list";
5049  *  File name selection pattern
5050  */
5051 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5053  *  Machine/OS name selection pattern
5054  */
5055 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5058  *  content selection pattern - do fix if pattern found
5059  */
5060 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5061        "define[ \t]+_BSD_VA_LIST_[ \t]";
5064  *  content bypass pattern - skip fix if pattern found
5065  */
5066 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5067        "__builtin_va_list";
5069 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5070 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5071   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5072   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5075  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5076  */
5077 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5078     "format",
5079     "%1__builtin_va_list",
5080     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5081     (char*)NULL };
5083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5085  *  Description of Machine_Name fix
5086  */
5087 tSCC zMachine_NameName[] =
5088      "machine_name";
5091  *  File name selection pattern
5092  */
5093 #define zMachine_NameList (char*)NULL
5095  *  Machine/OS name selection pattern
5096  */
5097 #define apzMachine_NameMachs (const char**)NULL
5100  *  perform the C function call test
5101  */
5102 tSCC zMachine_NameFTst0[] = "machine_name";
5104 #define    MACHINE_NAME_TEST_CT  1
5105 static tTestDesc aMachine_NameTests[] = {
5106   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5109  *  Fix Command Arguments for Machine_Name
5110  */
5111 static const char* apzMachine_NamePatch[] = {
5112     "machine_name",
5113     (char*)NULL };
5115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5117  *  Description of Math_Exception fix
5118  */
5119 tSCC zMath_ExceptionName[] =
5120      "math_exception";
5123  *  File name selection pattern
5124  */
5125 tSCC zMath_ExceptionList[] =
5126   "math.h\0";
5128  *  Machine/OS name selection pattern
5129  */
5130 #define apzMath_ExceptionMachs (const char**)NULL
5133  *  content selection pattern - do fix if pattern found
5134  */
5135 tSCC zMath_ExceptionSelect0[] =
5136        "struct exception";
5139  *  content bypass pattern - skip fix if pattern found
5140  */
5141 tSCC zMath_ExceptionBypass0[] =
5142        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5144 #define    MATH_EXCEPTION_TEST_CT  2
5145 static tTestDesc aMath_ExceptionTests[] = {
5146   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5147   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5150  *  Fix Command Arguments for Math_Exception
5151  */
5152 static const char* apzMath_ExceptionPatch[] = {
5153     "wrap",
5154     "#ifdef __cplusplus\n\
5155 #define exception __math_exception\n\
5156 #endif\n",
5157     "#ifdef __cplusplus\n\
5158 #undef exception\n\
5159 #endif\n",
5160     (char*)NULL };
5162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5164  *  Description of Math_Huge_Val_From_Dbl_Max fix
5165  */
5166 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5167      "math_huge_val_from_dbl_max";
5170  *  File name selection pattern
5171  */
5172 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5173   "math.h\0";
5175  *  Machine/OS name selection pattern
5176  */
5177 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5180  *  content selection pattern - do fix if pattern found
5181  */
5182 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5183        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5186  *  content bypass pattern - skip fix if pattern found
5187  */
5188 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5189        "define[ \t]+DBL_MAX";
5191 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
5192 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5193   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5194   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5197  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5198  */
5199 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5200     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5201 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5202 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5203 \telse cat\n\
5204 \tfi",
5205     (char*)NULL };
5207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5209  *  Description of Nested_Auth_Des fix
5210  */
5211 tSCC zNested_Auth_DesName[] =
5212      "nested_auth_des";
5215  *  File name selection pattern
5216  */
5217 tSCC zNested_Auth_DesList[] =
5218   "rpc/rpc.h\0";
5220  *  Machine/OS name selection pattern
5221  */
5222 #define apzNested_Auth_DesMachs (const char**)NULL
5225  *  content selection pattern - do fix if pattern found
5226  */
5227 tSCC zNested_Auth_DesSelect0[] =
5228        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5230 #define    NESTED_AUTH_DES_TEST_CT  1
5231 static tTestDesc aNested_Auth_DesTests[] = {
5232   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5235  *  Fix Command Arguments for Nested_Auth_Des
5236  */
5237 static const char* apzNested_Auth_DesPatch[] = {
5238     "format",
5239     "%1*/ /*",
5240     (char*)NULL };
5242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5244  *  Description of Netbsd_C99_Inline_1 fix
5245  */
5246 tSCC zNetbsd_C99_Inline_1Name[] =
5247      "netbsd_c99_inline_1";
5250  *  File name selection pattern
5251  */
5252 tSCC zNetbsd_C99_Inline_1List[] =
5253   "signal.h\0";
5255  *  Machine/OS name selection pattern
5256  */
5257 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5258         "*-*-netbsd*",
5259         (const char*)NULL };
5262  *  content selection pattern - do fix if pattern found
5263  */
5264 tSCC zNetbsd_C99_Inline_1Select0[] =
5265        "extern __inline int";
5267 #define    NETBSD_C99_INLINE_1_TEST_CT  1
5268 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5269   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5272  *  Fix Command Arguments for Netbsd_C99_Inline_1
5273  */
5274 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5275     "format",
5276     "extern\n\
5277 #ifdef __GNUC_STDC_INLINE__\n\
5278 __attribute__((__gnu_inline__))\n\
5279 #endif\n\
5280 __inline int",
5281     (char*)NULL };
5283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5285  *  Description of Netbsd_C99_Inline_2 fix
5286  */
5287 tSCC zNetbsd_C99_Inline_2Name[] =
5288      "netbsd_c99_inline_2";
5291  *  File name selection pattern
5292  */
5293 tSCC zNetbsd_C99_Inline_2List[] =
5294   "signal.h\0";
5296  *  Machine/OS name selection pattern
5297  */
5298 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5299         "*-*-netbsd*",
5300         (const char*)NULL };
5303  *  content selection pattern - do fix if pattern found
5304  */
5305 tSCC zNetbsd_C99_Inline_2Select0[] =
5306        "#define _SIGINLINE extern __inline";
5308 #define    NETBSD_C99_INLINE_2_TEST_CT  1
5309 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5310   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5313  *  Fix Command Arguments for Netbsd_C99_Inline_2
5314  */
5315 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5316     "format",
5317     "#ifdef __GNUC_STDC_INLINE__\n\
5318 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5319 #else\n\
5320 %0\n\
5321 #endif",
5322     (char*)NULL };
5324 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5326  *  Description of Netbsd_Extra_Semicolon fix
5327  */
5328 tSCC zNetbsd_Extra_SemicolonName[] =
5329      "netbsd_extra_semicolon";
5332  *  File name selection pattern
5333  */
5334 tSCC zNetbsd_Extra_SemicolonList[] =
5335   "sys/cdefs.h\0";
5337  *  Machine/OS name selection pattern
5338  */
5339 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5340         "*-*-netbsd*",
5341         (const char*)NULL };
5344  *  content selection pattern - do fix if pattern found
5345  */
5346 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5347        "#define[ \t]*__END_DECLS[ \t]*};";
5349 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
5350 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5351   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5354  *  Fix Command Arguments for Netbsd_Extra_Semicolon
5355  */
5356 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5357     "format",
5358     "#define __END_DECLS }",
5359     (char*)NULL };
5361 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5363  *  Description of Newlib_Stdint_1 fix
5364  */
5365 tSCC zNewlib_Stdint_1Name[] =
5366      "newlib_stdint_1";
5369  *  File name selection pattern
5370  */
5371 tSCC zNewlib_Stdint_1List[] =
5372   "stdint-newlib.h\0stdint.h\0";
5374  *  Machine/OS name selection pattern
5375  */
5376 #define apzNewlib_Stdint_1Machs (const char**)NULL
5379  *  content selection pattern - do fix if pattern found
5380  */
5381 tSCC zNewlib_Stdint_1Select0[] =
5382        "@todo - Add support for wint_t types";
5384 #define    NEWLIB_STDINT_1_TEST_CT  1
5385 static tTestDesc aNewlib_Stdint_1Tests[] = {
5386   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5389  *  Fix Command Arguments for Newlib_Stdint_1
5390  */
5391 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5392     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5393     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5394     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5395     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5396     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5397     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5398     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5399     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5400     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5401     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5402     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5403     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5404     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5405     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5406     (char*)NULL };
5408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5410  *  Description of Newlib_Stdint_2 fix
5411  */
5412 tSCC zNewlib_Stdint_2Name[] =
5413      "newlib_stdint_2";
5416  *  File name selection pattern
5417  */
5418 tSCC zNewlib_Stdint_2List[] =
5419   "stdint-newlib.h\0stdint.h\0";
5421  *  Machine/OS name selection pattern
5422  */
5423 #define apzNewlib_Stdint_2Machs (const char**)NULL
5426  *  content selection pattern - do fix if pattern found
5427  */
5428 tSCC zNewlib_Stdint_2Select0[] =
5429        "@todo - Add support for wint_t types";
5431 #define    NEWLIB_STDINT_2_TEST_CT  1
5432 static tTestDesc aNewlib_Stdint_2Tests[] = {
5433   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5436  *  Fix Command Arguments for Newlib_Stdint_2
5437  */
5438 static const char* apzNewlib_Stdint_2Patch[] = {
5439     "format",
5440     "#define INTMAX_MAX __INTMAX_MAX__\n\
5441 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5442 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5443 #define WCHAR_MAX __WCHAR_MAX__\n\
5444 #define WCHAR_MIN __WCHAR_MIN__\n\
5445 #define WINT_MAX __WINT_MAX__\n\
5446 #define WINT_MIN __WINT_MIN__\n\n\
5447 %0",
5448     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5449     (char*)NULL };
5451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5453  *  Description of Next_Math_Prefix fix
5454  */
5455 tSCC zNext_Math_PrefixName[] =
5456      "next_math_prefix";
5459  *  File name selection pattern
5460  */
5461 tSCC zNext_Math_PrefixList[] =
5462   "ansi/math.h\0";
5464  *  Machine/OS name selection pattern
5465  */
5466 #define apzNext_Math_PrefixMachs (const char**)NULL
5469  *  content selection pattern - do fix if pattern found
5470  */
5471 tSCC zNext_Math_PrefixSelect0[] =
5472        "^extern[ \t]+double[ \t]+__const__[ \t]";
5474 #define    NEXT_MATH_PREFIX_TEST_CT  1
5475 static tTestDesc aNext_Math_PrefixTests[] = {
5476   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5479  *  Fix Command Arguments for Next_Math_Prefix
5480  */
5481 static const char* apzNext_Math_PrefixPatch[] = {
5482     "format",
5483     "extern double %1(",
5484     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5485     (char*)NULL };
5487 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5489  *  Description of Next_Template fix
5490  */
5491 tSCC zNext_TemplateName[] =
5492      "next_template";
5495  *  File name selection pattern
5496  */
5497 tSCC zNext_TemplateList[] =
5498   "bsd/libc.h\0";
5500  *  Machine/OS name selection pattern
5501  */
5502 #define apzNext_TemplateMachs (const char**)NULL
5505  *  content selection pattern - do fix if pattern found
5506  */
5507 tSCC zNext_TemplateSelect0[] =
5508        "[ \t]template\\)";
5510 #define    NEXT_TEMPLATE_TEST_CT  1
5511 static tTestDesc aNext_TemplateTests[] = {
5512   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
5515  *  Fix Command Arguments for Next_Template
5516  */
5517 static const char* apzNext_TemplatePatch[] = {
5518     "format",
5519     "(%1)",
5520     "\\(([^)]*)[ \t]template\\)",
5521     (char*)NULL };
5523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5525  *  Description of Next_Volitile fix
5526  */
5527 tSCC zNext_VolitileName[] =
5528      "next_volitile";
5531  *  File name selection pattern
5532  */
5533 tSCC zNext_VolitileList[] =
5534   "ansi/stdlib.h\0";
5536  *  Machine/OS name selection pattern
5537  */
5538 #define apzNext_VolitileMachs (const char**)NULL
5541  *  content selection pattern - do fix if pattern found
5542  */
5543 tSCC zNext_VolitileSelect0[] =
5544        "^extern[ \t]+volatile[ \t]+void[ \t]";
5546 #define    NEXT_VOLITILE_TEST_CT  1
5547 static tTestDesc aNext_VolitileTests[] = {
5548   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5551  *  Fix Command Arguments for Next_Volitile
5552  */
5553 static const char* apzNext_VolitilePatch[] = {
5554     "format",
5555     "extern void %1(",
5556     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5557     (char*)NULL };
5559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5561  *  Description of Next_Wait_Union fix
5562  */
5563 tSCC zNext_Wait_UnionName[] =
5564      "next_wait_union";
5567  *  File name selection pattern
5568  */
5569 tSCC zNext_Wait_UnionList[] =
5570   "sys/wait.h\0";
5572  *  Machine/OS name selection pattern
5573  */
5574 #define apzNext_Wait_UnionMachs (const char**)NULL
5577  *  content selection pattern - do fix if pattern found
5578  */
5579 tSCC zNext_Wait_UnionSelect0[] =
5580        "wait\\(union wait";
5582 #define    NEXT_WAIT_UNION_TEST_CT  1
5583 static tTestDesc aNext_Wait_UnionTests[] = {
5584   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5587  *  Fix Command Arguments for Next_Wait_Union
5588  */
5589 static const char* apzNext_Wait_UnionPatch[] = {
5590     "format",
5591     "wait(void",
5592     (char*)NULL };
5594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5596  *  Description of Nodeent_Syntax fix
5597  */
5598 tSCC zNodeent_SyntaxName[] =
5599      "nodeent_syntax";
5602  *  File name selection pattern
5603  */
5604 tSCC zNodeent_SyntaxList[] =
5605   "netdnet/dnetdb.h\0";
5607  *  Machine/OS name selection pattern
5608  */
5609 #define apzNodeent_SyntaxMachs (const char**)NULL
5612  *  content selection pattern - do fix if pattern found
5613  */
5614 tSCC zNodeent_SyntaxSelect0[] =
5615        "char[ \t]*\\*na_addr[ \t]*$";
5617 #define    NODEENT_SYNTAX_TEST_CT  1
5618 static tTestDesc aNodeent_SyntaxTests[] = {
5619   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5622  *  Fix Command Arguments for Nodeent_Syntax
5623  */
5624 static const char* apzNodeent_SyntaxPatch[] = {
5625     "format",
5626     "%0;",
5627     (char*)NULL };
5629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5631  *  Description of Openbsd_Null_Definition fix
5632  */
5633 tSCC zOpenbsd_Null_DefinitionName[] =
5634      "openbsd_null_definition";
5637  *  File name selection pattern
5638  */
5639 tSCC zOpenbsd_Null_DefinitionList[] =
5640   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5642  *  Machine/OS name selection pattern
5643  */
5644 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5645         "*-*-openbsd*",
5646         (const char*)NULL };
5649  *  content selection pattern - do fix if pattern found
5650  */
5651 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5652        "__GNUG__";
5654 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
5655 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5656   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5659  *  Fix Command Arguments for Openbsd_Null_Definition
5660  */
5661 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5662     "format",
5663     "#ifndef NULL\n\
5664 #ifdef __cplusplus\n\
5665 #ifdef __GNUG__\n\
5666 #define NULL\t__null\n\
5667 #else\t /* ! __GNUG__  */\n\
5668 #define NULL\t0L\n\
5669 #endif\t /* __GNUG__  */\n\
5670 #else\t /* ! __cplusplus  */\n\
5671 #define NULL\t((void *)0)\n\
5672 #endif\t /* __cplusplus  */\n\
5673 #endif\t /* !NULL  */",
5674     "^#ifndef[ \t]*NULL\n\
5675 ^#ifdef[ \t]*__GNUG__\n\
5676 ^#define[ \t]*NULL[ \t]*__null\n\
5677 ^#else\n\
5678 ^#define[ \t]*NULL[ \t]*0L\n\
5679 ^#endif\n\
5680 ^#endif",
5681     (char*)NULL };
5683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5685  *  Description of Obstack_Lvalue_Cast fix
5686  */
5687 tSCC zObstack_Lvalue_CastName[] =
5688      "obstack_lvalue_cast";
5691  *  File name selection pattern
5692  */
5693 tSCC zObstack_Lvalue_CastList[] =
5694   "obstack.h\0";
5696  *  Machine/OS name selection pattern
5697  */
5698 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5701  *  content selection pattern - do fix if pattern found
5702  */
5703 tSCC zObstack_Lvalue_CastSelect0[] =
5704        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5706 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5707 static tTestDesc aObstack_Lvalue_CastTests[] = {
5708   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5711  *  Fix Command Arguments for Obstack_Lvalue_Cast
5712  */
5713 static const char* apzObstack_Lvalue_CastPatch[] = {
5714     "format",
5715     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5716     (char*)NULL };
5718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5720  *  Description of Openbsd_Va_Start fix
5721  */
5722 tSCC zOpenbsd_Va_StartName[] =
5723      "openbsd_va_start";
5726  *  File name selection pattern
5727  */
5728 tSCC zOpenbsd_Va_StartList[] =
5729   "stdarg.h\0";
5731  *  Machine/OS name selection pattern
5732  */
5733 tSCC* apzOpenbsd_Va_StartMachs[] = {
5734         "*-*-openbsd*",
5735         (const char*)NULL };
5738  *  content selection pattern - do fix if pattern found
5739  */
5740 tSCC zOpenbsd_Va_StartSelect0[] =
5741        "__builtin_stdarg_start";
5743 #define    OPENBSD_VA_START_TEST_CT  1
5744 static tTestDesc aOpenbsd_Va_StartTests[] = {
5745   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5748  *  Fix Command Arguments for Openbsd_Va_Start
5749  */
5750 static const char* apzOpenbsd_Va_StartPatch[] = {
5751     "format",
5752     "__builtin_va_start",
5753     (char*)NULL };
5755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5757  *  Description of Osf_Namespace_A fix
5758  */
5759 tSCC zOsf_Namespace_AName[] =
5760      "osf_namespace_a";
5763  *  File name selection pattern
5764  */
5765 tSCC zOsf_Namespace_AList[] =
5766   "reg_types.h\0sys/lc_core.h\0";
5768  *  Machine/OS name selection pattern
5769  */
5770 #define apzOsf_Namespace_AMachs (const char**)NULL
5773  *  perform the 'test' shell command - do fix on success
5774  */
5775 tSCC zOsf_Namespace_ATest0[] =
5776        " -r reg_types.h";
5777 tSCC zOsf_Namespace_ATest1[] =
5778        " -r sys/lc_core.h";
5779 tSCC zOsf_Namespace_ATest2[] =
5780        " -n \"`grep '} regex_t;' reg_types.h`\"";
5781 tSCC zOsf_Namespace_ATest3[] =
5782        " -z \"`grep __regex_t regex.h`\"";
5784 #define    OSF_NAMESPACE_A_TEST_CT  4
5785 static tTestDesc aOsf_Namespace_ATests[] = {
5786   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5787   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5788   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5789   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5792  *  Fix Command Arguments for Osf_Namespace_A
5793  */
5794 static const char* apzOsf_Namespace_APatch[] = {
5795     "format",
5796     "__%0",
5797     "reg(ex|off|match)_t",
5798     (char*)NULL };
5800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5802  *  Description of Osf_Namespace_C fix
5803  */
5804 tSCC zOsf_Namespace_CName[] =
5805      "osf_namespace_c";
5808  *  File name selection pattern
5809  */
5810 tSCC zOsf_Namespace_CList[] =
5811   "regex.h\0";
5813  *  Machine/OS name selection pattern
5814  */
5815 #define apzOsf_Namespace_CMachs (const char**)NULL
5818  *  content selection pattern - do fix if pattern found
5819  */
5820 tSCC zOsf_Namespace_CSelect0[] =
5821        "#include <reg_types.h>.*";
5824  *  perform the 'test' shell command - do fix on success
5825  */
5826 tSCC zOsf_Namespace_CTest0[] =
5827        " -r reg_types.h";
5828 tSCC zOsf_Namespace_CTest1[] =
5829        " -r sys/lc_core.h";
5830 tSCC zOsf_Namespace_CTest2[] =
5831        " -n \"`grep '} regex_t;' reg_types.h`\"";
5832 tSCC zOsf_Namespace_CTest3[] =
5833        " -z \"`grep __regex_t regex.h`\"";
5835 #define    OSF_NAMESPACE_C_TEST_CT  5
5836 static tTestDesc aOsf_Namespace_CTests[] = {
5837   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
5838   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
5839   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
5840   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
5841   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5844  *  Fix Command Arguments for Osf_Namespace_C
5845  */
5846 static const char* apzOsf_Namespace_CPatch[] = {
5847     "format",
5848     "%0\n\
5849 typedef __regex_t\tregex_t;\n\
5850 typedef __regoff_t\tregoff_t;\n\
5851 typedef __regmatch_t\tregmatch_t;",
5852     (char*)NULL };
5854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5856  *  Description of Pthread_Incomplete_Struct_Argument fix
5857  */
5858 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5859      "pthread_incomplete_struct_argument";
5862  *  File name selection pattern
5863  */
5864 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5865   "pthread.h\0";
5867  *  Machine/OS name selection pattern
5868  */
5869 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5872  *  content selection pattern - do fix if pattern found
5873  */
5874 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5875        "struct __jmp_buf_tag";
5877 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
5878 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5879   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5882  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5883  */
5884 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5885     "format",
5886     "%1 *%2%3",
5887     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5888     (char*)NULL };
5890 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5892  *  Description of Read_Ret_Type fix
5893  */
5894 tSCC zRead_Ret_TypeName[] =
5895      "read_ret_type";
5898  *  File name selection pattern
5899  */
5900 tSCC zRead_Ret_TypeList[] =
5901   "stdio.h\0";
5903  *  Machine/OS name selection pattern
5904  */
5905 #define apzRead_Ret_TypeMachs (const char**)NULL
5908  *  content selection pattern - do fix if pattern found
5909  */
5910 tSCC zRead_Ret_TypeSelect0[] =
5911        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5913 #define    READ_RET_TYPE_TEST_CT  1
5914 static tTestDesc aRead_Ret_TypeTests[] = {
5915   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5918  *  Fix Command Arguments for Read_Ret_Type
5919  */
5920 static const char* apzRead_Ret_TypePatch[] = {
5921     "format",
5922     "extern unsigned int fread(), fwrite();\n\
5923 %1%2",
5924     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5925     (char*)NULL };
5927 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5929  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
5930  */
5931 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5932      "rpc_xdr_lvalue_cast_a";
5935  *  File name selection pattern
5936  */
5937 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5938   "rpc/xdr.h\0";
5940  *  Machine/OS name selection pattern
5941  */
5942 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5945  *  content selection pattern - do fix if pattern found
5946  */
5947 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5948        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5949 .*__extension__.*";
5951 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5952 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5953   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5956  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5957  */
5958 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5959     "format",
5960     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5961     (char*)NULL };
5963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5965  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5966  */
5967 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5968      "rpc_xdr_lvalue_cast_b";
5971  *  File name selection pattern
5972  */
5973 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5974   "rpc/xdr.h\0";
5976  *  Machine/OS name selection pattern
5977  */
5978 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5981  *  content selection pattern - do fix if pattern found
5982  */
5983 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5984        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5985 .*__extension__.*";
5987 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
5988 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5989   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5992  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5993  */
5994 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5995     "format",
5996     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5997     (char*)NULL };
5999 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6001  *  Description of Rs6000_Double fix
6002  */
6003 tSCC zRs6000_DoubleName[] =
6004      "rs6000_double";
6007  *  File name selection pattern
6008  */
6009 tSCC zRs6000_DoubleList[] =
6010   "math.h\0";
6012  *  Machine/OS name selection pattern
6013  */
6014 #define apzRs6000_DoubleMachs (const char**)NULL
6017  *  content selection pattern - do fix if pattern found
6018  */
6019 tSCC zRs6000_DoubleSelect0[] =
6020        "[^a-zA-Z_]class\\(";
6022 #define    RS6000_DOUBLE_TEST_CT  1
6023 static tTestDesc aRs6000_DoubleTests[] = {
6024   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6027  *  Fix Command Arguments for Rs6000_Double
6028  */
6029 static const char* apzRs6000_DoublePatch[] = {
6030     "format",
6031     "#ifndef __cplusplus\n\
6032 %0\n\
6033 #endif",
6034     "^.*[^a-zA-Z_]class\\(.*",
6035     (char*)NULL };
6037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6039  *  Description of Rs6000_Fchmod fix
6040  */
6041 tSCC zRs6000_FchmodName[] =
6042      "rs6000_fchmod";
6045  *  File name selection pattern
6046  */
6047 tSCC zRs6000_FchmodList[] =
6048   "sys/stat.h\0";
6050  *  Machine/OS name selection pattern
6051  */
6052 #define apzRs6000_FchmodMachs (const char**)NULL
6055  *  content selection pattern - do fix if pattern found
6056  */
6057 tSCC zRs6000_FchmodSelect0[] =
6058        "fchmod\\(char \\*";
6060 #define    RS6000_FCHMOD_TEST_CT  1
6061 static tTestDesc aRs6000_FchmodTests[] = {
6062   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6065  *  Fix Command Arguments for Rs6000_Fchmod
6066  */
6067 static const char* apzRs6000_FchmodPatch[] = {
6068     "format",
6069     "fchmod(int",
6070     (char*)NULL };
6072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6074  *  Description of Rs6000_Param fix
6075  */
6076 tSCC zRs6000_ParamName[] =
6077      "rs6000_param";
6080  *  File name selection pattern
6081  */
6082 tSCC zRs6000_ParamList[] =
6083   "stdio.h\0unistd.h\0";
6085  *  Machine/OS name selection pattern
6086  */
6087 #define apzRs6000_ParamMachs (const char**)NULL
6090  *  content selection pattern - do fix if pattern found
6091  */
6092 tSCC zRs6000_ParamSelect0[] =
6093        "rename\\(const char \\*old, const char \\*new\\)";
6095 #define    RS6000_PARAM_TEST_CT  1
6096 static tTestDesc aRs6000_ParamTests[] = {
6097   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6100  *  Fix Command Arguments for Rs6000_Param
6101  */
6102 static const char* apzRs6000_ParamPatch[] = {
6103     "format",
6104     "rename(const char *_old, const char *_new)",
6105     (char*)NULL };
6107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6109  *  Description of Solaris___Restrict fix
6110  */
6111 tSCC zSolaris___RestrictName[] =
6112      "solaris___restrict";
6115  *  File name selection pattern
6116  */
6117 tSCC zSolaris___RestrictList[] =
6118   "sys/feature_tests.h\0";
6120  *  Machine/OS name selection pattern
6121  */
6122 tSCC* apzSolaris___RestrictMachs[] = {
6123         "*-*-solaris2*",
6124         (const char*)NULL };
6127  *  content selection pattern - do fix if pattern found
6128  */
6129 tSCC zSolaris___RestrictSelect0[] =
6130        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6132 #define    SOLARIS___RESTRICT_TEST_CT  1
6133 static tTestDesc aSolaris___RestrictTests[] = {
6134   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6137  *  Fix Command Arguments for Solaris___Restrict
6138  */
6139 static const char* apzSolaris___RestrictPatch[] = {
6140     "format",
6141     "#ifdef __cplusplus\n\
6142 #define\t_RESTRICT_KYWD\t__restrict\n\
6143 #else\n\
6144 %0\n\
6145 #endif",
6146     (char*)NULL };
6148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6150  *  Description of Solaris_Complex fix
6151  */
6152 tSCC zSolaris_ComplexName[] =
6153      "solaris_complex";
6156  *  File name selection pattern
6157  */
6158 tSCC zSolaris_ComplexList[] =
6159   "complex.h\0";
6161  *  Machine/OS name selection pattern
6162  */
6163 tSCC* apzSolaris_ComplexMachs[] = {
6164         "*-*-solaris2.*",
6165         (const char*)NULL };
6168  *  content selection pattern - do fix if pattern found
6169  */
6170 tSCC zSolaris_ComplexSelect0[] =
6171        "#define[ \t]_Complex_I[ \t]_Complex_I";
6173 #define    SOLARIS_COMPLEX_TEST_CT  1
6174 static tTestDesc aSolaris_ComplexTests[] = {
6175   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6178  *  Fix Command Arguments for Solaris_Complex
6179  */
6180 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6181     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6182     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6183     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6184     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6185     (char*)NULL };
6187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6189  *  Description of Solaris_Complex_Cxx fix
6190  */
6191 tSCC zSolaris_Complex_CxxName[] =
6192      "solaris_complex_cxx";
6195  *  File name selection pattern
6196  */
6197 tSCC zSolaris_Complex_CxxList[] =
6198   "complex.h\0";
6200  *  Machine/OS name selection pattern
6201  */
6202 tSCC* apzSolaris_Complex_CxxMachs[] = {
6203         "*-*-solaris2.*",
6204         (const char*)NULL };
6205 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
6206 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
6209  *  Fix Command Arguments for Solaris_Complex_Cxx
6210  */
6211 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6212     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6213 #ifdef\t__cplusplus\\\n\
6214 extern \"C\" {\\\n\
6215 #endif",
6216     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6217 #ifdef\t__cplusplus\\\n\
6218 }\\\n\
6219 #endif",
6220     (char*)NULL };
6222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6224  *  Description of Solaris_Cxx_Linkage fix
6225  */
6226 tSCC zSolaris_Cxx_LinkageName[] =
6227      "solaris_cxx_linkage";
6230  *  File name selection pattern
6231  */
6232 tSCC zSolaris_Cxx_LinkageList[] =
6233   "iso/stdlib_iso.h\0";
6235  *  Machine/OS name selection pattern
6236  */
6237 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6238         "*-*-solaris2*",
6239         (const char*)NULL };
6242  *  content selection pattern - do fix if pattern found
6243  */
6244 tSCC zSolaris_Cxx_LinkageSelect0[] =
6245        "(#if __cplusplus >= 199711L)\n\
6246 (extern \"C\\+\\+\" \\{\n\
6247 )(.*(bsearch|qsort).*)";
6249 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
6250 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6251   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6254  *  Fix Command Arguments for Solaris_Cxx_Linkage
6255  */
6256 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6257     "format",
6258     "%1 && !__GNUG__\n\
6259 %2%3",
6260     (char*)NULL };
6262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6264  *  Description of Solaris_Getc_Strict_Stdc fix
6265  */
6266 tSCC zSolaris_Getc_Strict_StdcName[] =
6267      "solaris_getc_strict_stdc";
6270  *  File name selection pattern
6271  */
6272 tSCC zSolaris_Getc_Strict_StdcList[] =
6273   "iso/stdio_iso.h\0";
6275  *  Machine/OS name selection pattern
6276  */
6277 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6278         "*-*-solaris2*",
6279         (const char*)NULL };
6282  *  content selection pattern - do fix if pattern found
6283  */
6284 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6285        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6287 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
6288 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6289   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6292  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
6293  */
6294 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6295     "format",
6296     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6297     (char*)NULL };
6299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6301  *  Description of Solaris_Longjmp_Noreturn fix
6302  */
6303 tSCC zSolaris_Longjmp_NoreturnName[] =
6304      "solaris_longjmp_noreturn";
6307  *  File name selection pattern
6308  */
6309 tSCC zSolaris_Longjmp_NoreturnList[] =
6310   "iso/setjmp_iso.h\0";
6312  *  Machine/OS name selection pattern
6313  */
6314 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6315         "*-*-solaris2*",
6316         (const char*)NULL };
6319  *  content selection pattern - do fix if pattern found
6320  */
6321 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6322        "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6325  *  content bypass pattern - skip fix if pattern found
6326  */
6327 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6328        "__NORETURN";
6330 #define    SOLARIS_LONGJMP_NORETURN_TEST_CT  2
6331 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6332   { TT_NEGREP,   zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6333   { TT_EGREP,    zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6336  *  Fix Command Arguments for Solaris_Longjmp_Noreturn
6337  */
6338 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6339     "format",
6340     "%1 __attribute__ ((__noreturn__));",
6341     (char*)NULL };
6343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6345  *  Description of Solaris_Math_1 fix
6346  */
6347 tSCC zSolaris_Math_1Name[] =
6348      "solaris_math_1";
6351  *  File name selection pattern
6352  */
6353 tSCC zSolaris_Math_1List[] =
6354   "iso/math_c99.h\0";
6356  *  Machine/OS name selection pattern
6357  */
6358 #define apzSolaris_Math_1Machs (const char**)NULL
6361  *  content selection pattern - do fix if pattern found
6362  */
6363 tSCC zSolaris_Math_1Select0[] =
6364        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6367  *  content bypass pattern - skip fix if pattern found
6368  */
6369 tSCC zSolaris_Math_1Bypass0[] =
6370        "__GNUC__";
6372 #define    SOLARIS_MATH_1_TEST_CT  2
6373 static tTestDesc aSolaris_Math_1Tests[] = {
6374   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
6375   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
6378  *  Fix Command Arguments for Solaris_Math_1
6379  */
6380 static const char* apzSolaris_Math_1Patch[] = {
6381     "format",
6382     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6383     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6384     (char*)NULL };
6386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6388  *  Description of Solaris_Math_2 fix
6389  */
6390 tSCC zSolaris_Math_2Name[] =
6391      "solaris_math_2";
6394  *  File name selection pattern
6395  */
6396 tSCC zSolaris_Math_2List[] =
6397   "iso/math_c99.h\0";
6399  *  Machine/OS name selection pattern
6400  */
6401 #define apzSolaris_Math_2Machs (const char**)NULL
6404  *  content selection pattern - do fix if pattern found
6405  */
6406 tSCC zSolaris_Math_2Select0[] =
6407        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6410  *  content bypass pattern - skip fix if pattern found
6411  */
6412 tSCC zSolaris_Math_2Bypass0[] =
6413        "__GNUC__";
6415 #define    SOLARIS_MATH_2_TEST_CT  2
6416 static tTestDesc aSolaris_Math_2Tests[] = {
6417   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
6418   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
6421  *  Fix Command Arguments for Solaris_Math_2
6422  */
6423 static const char* apzSolaris_Math_2Patch[] = {
6424     "format",
6425     "#define\tINFINITY\t(__builtin_inff())",
6426     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6427     (char*)NULL };
6429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6431  *  Description of Solaris_Math_3 fix
6432  */
6433 tSCC zSolaris_Math_3Name[] =
6434      "solaris_math_3";
6437  *  File name selection pattern
6438  */
6439 tSCC zSolaris_Math_3List[] =
6440   "iso/math_c99.h\0";
6442  *  Machine/OS name selection pattern
6443  */
6444 #define apzSolaris_Math_3Machs (const char**)NULL
6447  *  content selection pattern - do fix if pattern found
6448  */
6449 tSCC zSolaris_Math_3Select0[] =
6450        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6453  *  content bypass pattern - skip fix if pattern found
6454  */
6455 tSCC zSolaris_Math_3Bypass0[] =
6456        "__GNUC__";
6458 #define    SOLARIS_MATH_3_TEST_CT  2
6459 static tTestDesc aSolaris_Math_3Tests[] = {
6460   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
6461   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
6464  *  Fix Command Arguments for Solaris_Math_3
6465  */
6466 static const char* apzSolaris_Math_3Patch[] = {
6467     "format",
6468     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6469     "^#define[ \t]+NAN[ \t]+__builtin_nan",
6470     (char*)NULL };
6472 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6474  *  Description of Solaris_Math_4 fix
6475  */
6476 tSCC zSolaris_Math_4Name[] =
6477      "solaris_math_4";
6480  *  File name selection pattern
6481  */
6482 tSCC zSolaris_Math_4List[] =
6483   "iso/math_c99.h\0";
6485  *  Machine/OS name selection pattern
6486  */
6487 #define apzSolaris_Math_4Machs (const char**)NULL
6490  *  content selection pattern - do fix if pattern found
6491  */
6492 tSCC zSolaris_Math_4Select0[] =
6493        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6496  *  content bypass pattern - skip fix if pattern found
6497  */
6498 tSCC zSolaris_Math_4Bypass0[] =
6499        "__GNUC__";
6501 #define    SOLARIS_MATH_4_TEST_CT  2
6502 static tTestDesc aSolaris_Math_4Tests[] = {
6503   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
6504   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
6507  *  Fix Command Arguments for Solaris_Math_4
6508  */
6509 static const char* apzSolaris_Math_4Patch[] = {
6510     "format",
6511     "#define\tfpclassify(x) \\\n\
6512   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6513     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6514     (char*)NULL };
6516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6518  *  Description of Solaris_Math_8 fix
6519  */
6520 tSCC zSolaris_Math_8Name[] =
6521      "solaris_math_8";
6524  *  File name selection pattern
6525  */
6526 tSCC zSolaris_Math_8List[] =
6527   "iso/math_c99.h\0";
6529  *  Machine/OS name selection pattern
6530  */
6531 #define apzSolaris_Math_8Machs (const char**)NULL
6534  *  content selection pattern - do fix if pattern found
6535  */
6536 tSCC zSolaris_Math_8Select0[] =
6537        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6540  *  content bypass pattern - skip fix if pattern found
6541  */
6542 tSCC zSolaris_Math_8Bypass0[] =
6543        "__GNUC__";
6545 #define    SOLARIS_MATH_8_TEST_CT  2
6546 static tTestDesc aSolaris_Math_8Tests[] = {
6547   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
6548   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
6551  *  Fix Command Arguments for Solaris_Math_8
6552  */
6553 static const char* apzSolaris_Math_8Patch[] = {
6554     "format",
6555     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6556 \t\t\t   ? __builtin_signbitf(x) \\\n\
6557 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6558 \t\t\t     ? __builtin_signbitl(x) \\\n\
6559 \t\t\t     : __builtin_signbit(x))",
6560     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6561     (char*)NULL };
6563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6565  *  Description of Solaris_Math_9 fix
6566  */
6567 tSCC zSolaris_Math_9Name[] =
6568      "solaris_math_9";
6571  *  File name selection pattern
6572  */
6573 tSCC zSolaris_Math_9List[] =
6574   "iso/math_c99.h\0";
6576  *  Machine/OS name selection pattern
6577  */
6578 #define apzSolaris_Math_9Machs (const char**)NULL
6581  *  content selection pattern - do fix if pattern found
6582  */
6583 tSCC zSolaris_Math_9Select0[] =
6584        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6587  *  content bypass pattern - skip fix if pattern found
6588  */
6589 tSCC zSolaris_Math_9Bypass0[] =
6590        "__GNUC__";
6592 #define    SOLARIS_MATH_9_TEST_CT  2
6593 static tTestDesc aSolaris_Math_9Tests[] = {
6594   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
6595   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
6598  *  Fix Command Arguments for Solaris_Math_9
6599  */
6600 static const char* apzSolaris_Math_9Patch[] = {
6601     "format",
6602     "#define\t%1(x, y)%2__builtin_%1(x, y)",
6603     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6604     (char*)NULL };
6606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6608  *  Description of Solaris_Math_10 fix
6609  */
6610 tSCC zSolaris_Math_10Name[] =
6611      "solaris_math_10";
6614  *  File name selection pattern
6615  */
6616 tSCC zSolaris_Math_10List[] =
6617   "iso/math_c99.h\0";
6619  *  Machine/OS name selection pattern
6620  */
6621 #define apzSolaris_Math_10Machs (const char**)NULL
6624  *  content selection pattern - do fix if pattern found
6625  */
6626 tSCC zSolaris_Math_10Select0[] =
6627        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6629 #define    SOLARIS_MATH_10_TEST_CT  1
6630 static tTestDesc aSolaris_Math_10Tests[] = {
6631   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
6634  *  Fix Command Arguments for Solaris_Math_10
6635  */
6636 static const char* apzSolaris_Math_10Patch[] = {
6637     "format",
6638     "#define\tisinf(x) __builtin_isinf(x)",
6639     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6640 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6641 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6642 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6643     (char*)NULL };
6645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6647  *  Description of Solaris_Mutex_Init_2 fix
6648  */
6649 tSCC zSolaris_Mutex_Init_2Name[] =
6650      "solaris_mutex_init_2";
6653  *  File name selection pattern
6654  */
6655 tSCC zSolaris_Mutex_Init_2List[] =
6656   "pthread.h\0";
6658  *  Machine/OS name selection pattern
6659  */
6660 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6661         "*-*-solaris2.[0-9]",
6662         "*-*-solaris2.[0-9][!0-9]*",
6663         (const char*)NULL };
6666  *  content selection pattern - do fix if pattern found
6667  */
6668 tSCC zSolaris_Mutex_Init_2Select0[] =
6669        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6671 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
6672 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6673   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6676  *  Fix Command Arguments for Solaris_Mutex_Init_2
6677  */
6678 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6679     "format",
6680     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6681 %0\n\
6682 #else\n\
6683 %1, {0}}%4\n\
6684 #endif",
6685     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6686 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6687     (char*)NULL };
6689 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6691  *  Description of Solaris_Pow_Int_Overload fix
6692  */
6693 tSCC zSolaris_Pow_Int_OverloadName[] =
6694      "solaris_pow_int_overload";
6697  *  File name selection pattern
6698  */
6699 tSCC zSolaris_Pow_Int_OverloadList[] =
6700   "iso/math_iso.h\0";
6702  *  Machine/OS name selection pattern
6703  */
6704 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6705         "*-*-solaris2*",
6706         (const char*)NULL };
6709  *  content selection pattern - do fix if pattern found
6710  */
6711 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6712        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6713 [^{}]*\\}";
6715 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
6716 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6717   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6720  *  Fix Command Arguments for Solaris_Pow_Int_Overload
6721  */
6722 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6723     "format",
6724     "#if __cplusplus < 201103L\n\
6725 %0\n\
6726 #endif",
6727     (char*)NULL };
6729 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6731  *  Description of Solaris_Rwlock_Init_1 fix
6732  */
6733 tSCC zSolaris_Rwlock_Init_1Name[] =
6734      "solaris_rwlock_init_1";
6737  *  File name selection pattern
6738  */
6739 tSCC zSolaris_Rwlock_Init_1List[] =
6740   "pthread.h\0";
6742  *  Machine/OS name selection pattern
6743  */
6744 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6745         "*-*-solaris*",
6746         (const char*)NULL };
6749  *  content selection pattern - do fix if pattern found
6750  */
6751 tSCC zSolaris_Rwlock_Init_1Select0[] =
6752        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6754 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
6755 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6756   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6759  *  Fix Command Arguments for Solaris_Rwlock_Init_1
6760  */
6761 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6762     "format",
6763     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6764 %0\n\
6765 #else\n\
6766 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6767 #endif",
6768     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6769     (char*)NULL };
6771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6773  *  Description of Solaris_Once_Init_1 fix
6774  */
6775 tSCC zSolaris_Once_Init_1Name[] =
6776      "solaris_once_init_1";
6779  *  File name selection pattern
6780  */
6781 tSCC zSolaris_Once_Init_1List[] =
6782   "pthread.h\0";
6784  *  Machine/OS name selection pattern
6785  */
6786 tSCC* apzSolaris_Once_Init_1Machs[] = {
6787         "*-*-solaris*",
6788         (const char*)NULL };
6791  *  content selection pattern - do fix if pattern found
6792  */
6793 tSCC zSolaris_Once_Init_1Select0[] =
6794        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6796 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6797 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6798   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6801  *  Fix Command Arguments for Solaris_Once_Init_1
6802  */
6803 static const char* apzSolaris_Once_Init_1Patch[] = {
6804     "format",
6805     "%1{%2}%3",
6806     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6807     (char*)NULL };
6809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6811  *  Description of Solaris_Once_Init_2 fix
6812  */
6813 tSCC zSolaris_Once_Init_2Name[] =
6814      "solaris_once_init_2";
6817  *  File name selection pattern
6818  */
6819 tSCC zSolaris_Once_Init_2List[] =
6820   "pthread.h\0";
6822  *  Machine/OS name selection pattern
6823  */
6824 tSCC* apzSolaris_Once_Init_2Machs[] = {
6825         "*-*-solaris2.[0-9]",
6826         "*-*-solaris2.[0-9][!0-9]*",
6827         (const char*)NULL };
6830  *  content selection pattern - do fix if pattern found
6831  */
6832 tSCC zSolaris_Once_Init_2Select0[] =
6833        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6835 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
6836 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6837   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6840  *  Fix Command Arguments for Solaris_Once_Init_2
6841  */
6842 static const char* apzSolaris_Once_Init_2Patch[] = {
6843     "format",
6844     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6845 %0\n\
6846 #else\n\
6847 %1{0}, {0}, {0}, {%3}%4\n\
6848 #endif",
6849     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6850     (char*)NULL };
6852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6854  *  Description of Solaris_Int_Const fix
6855  */
6856 tSCC zSolaris_Int_ConstName[] =
6857      "solaris_int_const";
6860  *  File name selection pattern
6861  */
6862 tSCC zSolaris_Int_ConstList[] =
6863   "sys/int_const.h\0";
6865  *  Machine/OS name selection pattern
6866  */
6867 tSCC* apzSolaris_Int_ConstMachs[] = {
6868         "*-*-solaris2*",
6869         (const char*)NULL };
6872  *  content selection pattern - do fix if pattern found
6873  */
6874 tSCC zSolaris_Int_ConstSelect0[] =
6875        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6876 (/*.**/)\n\
6877 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6879 #define    SOLARIS_INT_CONST_TEST_CT  1
6880 static tTestDesc aSolaris_Int_ConstTests[] = {
6881   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6884  *  Fix Command Arguments for Solaris_Int_Const
6885  */
6886 static const char* apzSolaris_Int_ConstPatch[] = {
6887     "format",
6888     "#define\tUINT8_C(c)\t(c)\n\
6889 %1\n\
6890 #define\tUINT16_C(c)\t(c)",
6891     (char*)NULL };
6893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6895  *  Description of Solaris_Int_Limits_1 fix
6896  */
6897 tSCC zSolaris_Int_Limits_1Name[] =
6898      "solaris_int_limits_1";
6901  *  File name selection pattern
6902  */
6903 tSCC zSolaris_Int_Limits_1List[] =
6904   "sys/int_limits.h\0";
6906  *  Machine/OS name selection pattern
6907  */
6908 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6909         "*-*-solaris2*",
6910         (const char*)NULL };
6913  *  content selection pattern - do fix if pattern found
6914  */
6915 tSCC zSolaris_Int_Limits_1Select0[] =
6916        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6917 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6919 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
6920 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6921   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6924  *  Fix Command Arguments for Solaris_Int_Limits_1
6925  */
6926 static const char* apzSolaris_Int_Limits_1Patch[] = {
6927     "format",
6928     "#define\tUINT8_MAX\t(255)\n\
6929 #define\tUINT16_MAX\t(65535)",
6930     (char*)NULL };
6932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6934  *  Description of Solaris_Int_Limits_2 fix
6935  */
6936 tSCC zSolaris_Int_Limits_2Name[] =
6937      "solaris_int_limits_2";
6940  *  File name selection pattern
6941  */
6942 tSCC zSolaris_Int_Limits_2List[] =
6943   "sys/int_limits.h\0";
6945  *  Machine/OS name selection pattern
6946  */
6947 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6948         "*-*-solaris2*",
6949         (const char*)NULL };
6952  *  content selection pattern - do fix if pattern found
6953  */
6954 tSCC zSolaris_Int_Limits_2Select0[] =
6955        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6957 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
6958 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6959   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6962  *  Fix Command Arguments for Solaris_Int_Limits_2
6963  */
6964 static const char* apzSolaris_Int_Limits_2Patch[] = {
6965     "format",
6966     "#define\t%1_FAST16_%2 %132_%2",
6967     (char*)NULL };
6969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6971  *  Description of Solaris_Int_Limits_3 fix
6972  */
6973 tSCC zSolaris_Int_Limits_3Name[] =
6974      "solaris_int_limits_3";
6977  *  File name selection pattern
6978  */
6979 tSCC zSolaris_Int_Limits_3List[] =
6980   "sys/int_limits.h\0";
6982  *  Machine/OS name selection pattern
6983  */
6984 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6985         "*-*-solaris2*",
6986         (const char*)NULL };
6989  *  content selection pattern - do fix if pattern found
6990  */
6991 tSCC zSolaris_Int_Limits_3Select0[] =
6992        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6994 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
6995 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6996   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6999  *  Fix Command Arguments for Solaris_Int_Limits_3
7000  */
7001 static const char* apzSolaris_Int_Limits_3Patch[] = {
7002     "format",
7003     "#define\tSIZE_MAX\t4294967295U",
7004     (char*)NULL };
7006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7008  *  Description of Solaris_Int_Types fix
7009  */
7010 tSCC zSolaris_Int_TypesName[] =
7011      "solaris_int_types";
7014  *  File name selection pattern
7015  */
7016 tSCC zSolaris_Int_TypesList[] =
7017   "sys/int_types.h\0";
7019  *  Machine/OS name selection pattern
7020  */
7021 #define apzSolaris_Int_TypesMachs (const char**)NULL
7024  *  content selection pattern - do fix if pattern found
7025  */
7026 tSCC zSolaris_Int_TypesSelect0[] =
7027        "__STDC__ - 0 == 0";
7030  *  content bypass pattern - skip fix if pattern found
7031  */
7032 tSCC zSolaris_Int_TypesBypass0[] =
7033        "_LONGLONG_TYPE";
7035 #define    SOLARIS_INT_TYPES_TEST_CT  2
7036 static tTestDesc aSolaris_Int_TypesTests[] = {
7037   { TT_NEGREP,   zSolaris_Int_TypesBypass0, (regex_t*)NULL },
7038   { TT_EGREP,    zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
7041  *  Fix Command Arguments for Solaris_Int_Types
7042  */
7043 static const char* apzSolaris_Int_TypesPatch[] = {
7044     "format",
7045     "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
7046     (char*)NULL };
7048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7050  *  Description of Solaris_Posix_Spawn_Restrict fix
7051  */
7052 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7053      "solaris_posix_spawn_restrict";
7056  *  File name selection pattern
7057  */
7058 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7059   "spawn.h\0";
7061  *  Machine/OS name selection pattern
7062  */
7063 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7064         "*-*-solaris2*",
7065         (const char*)NULL };
7068  *  content selection pattern - do fix if pattern found
7069  */
7070 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7071        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7073 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
7074 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7075   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7078  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7079  */
7080 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7081     "format",
7082     "%1*_RESTRICT_KYWD %2%3",
7083     (char*)NULL };
7085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7087  *  Description of Solaris_Std___Filbuf fix
7088  */
7089 tSCC zSolaris_Std___FilbufName[] =
7090      "solaris_std___filbuf";
7093  *  File name selection pattern
7094  */
7095 tSCC zSolaris_Std___FilbufList[] =
7096   "stdio.h\0";
7098  *  Machine/OS name selection pattern
7099  */
7100 tSCC* apzSolaris_Std___FilbufMachs[] = {
7101         "*-*-solaris2*",
7102         (const char*)NULL };
7105  *  content selection pattern - do fix if pattern found
7106  */
7107 tSCC zSolaris_Std___FilbufSelect0[] =
7108        "(using std::perror;\n\
7109 )(#endif)";
7112  *  content bypass pattern - skip fix if pattern found
7113  */
7114 tSCC zSolaris_Std___FilbufBypass0[] =
7115        "using std::__filbuf";
7117 #define    SOLARIS_STD___FILBUF_TEST_CT  2
7118 static tTestDesc aSolaris_Std___FilbufTests[] = {
7119   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7120   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7123  *  Fix Command Arguments for Solaris_Std___Filbuf
7124  */
7125 static const char* apzSolaris_Std___FilbufPatch[] = {
7126     "format",
7127     "%1#ifndef _LP64\n\
7128 using std::__filbuf;\n\
7129 using std::__flsbuf;\n\
7130 #endif\n\
7131 %2",
7132     (char*)NULL };
7134 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7136  *  Description of Solaris_Stdio_Tag fix
7137  */
7138 tSCC zSolaris_Stdio_TagName[] =
7139      "solaris_stdio_tag";
7142  *  File name selection pattern
7143  */
7144 tSCC zSolaris_Stdio_TagList[] =
7145   "stdio_tag.h\0";
7147  *  Machine/OS name selection pattern
7148  */
7149 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7152  *  content selection pattern - do fix if pattern found
7153  */
7154 tSCC zSolaris_Stdio_TagSelect0[] =
7155        "__cplusplus < 54321L";
7158  *  content bypass pattern - skip fix if pattern found
7159  */
7160 tSCC zSolaris_Stdio_TagBypass0[] =
7161        "__GNUC__";
7163 #define    SOLARIS_STDIO_TAG_TEST_CT  2
7164 static tTestDesc aSolaris_Stdio_TagTests[] = {
7165   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7166   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7169  *  Fix Command Arguments for Solaris_Stdio_Tag
7170  */
7171 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7172     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7173     (char*)NULL };
7175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7177  *  Description of Solaris_Sys_Va_List fix
7178  */
7179 tSCC zSolaris_Sys_Va_ListName[] =
7180      "solaris_sys_va_list";
7183  *  File name selection pattern
7184  */
7185 tSCC zSolaris_Sys_Va_ListList[] =
7186   "sys/va_list.h\0";
7188  *  Machine/OS name selection pattern
7189  */
7190 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7191         "*-*-solaris2.9",
7192         (const char*)NULL };
7195  *  content selection pattern - do fix if pattern found
7196  */
7197 tSCC zSolaris_Sys_Va_ListSelect0[] =
7198        "#if.*__STDC__.*\n\
7199 typedef void \\*__va_list;\n\
7200 #else\n\
7201 typedef char \\*__va_list;\n\
7202 #endif";
7204 #define    SOLARIS_SYS_VA_LIST_TEST_CT  1
7205 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7206   { TT_EGREP,    zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7209  *  Fix Command Arguments for Solaris_Sys_Va_List
7210  */
7211 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7212     "format",
7213     "#ifdef __GNUC__\n\
7214 typedef __builtin_va_list __va_list;\n\
7215 #else\n\
7216 %0\n\
7217 #endif",
7218     (char*)NULL };
7220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7222  *  Description of Statsswtch fix
7223  */
7224 tSCC zStatsswtchName[] =
7225      "statsswtch";
7228  *  File name selection pattern
7229  */
7230 tSCC zStatsswtchList[] =
7231   "rpcsvc/rstat.h\0";
7233  *  Machine/OS name selection pattern
7234  */
7235 #define apzStatsswtchMachs (const char**)NULL
7238  *  content selection pattern - do fix if pattern found
7239  */
7240 tSCC zStatsswtchSelect0[] =
7241        "boottime$";
7243 #define    STATSSWTCH_TEST_CT  1
7244 static tTestDesc aStatsswtchTests[] = {
7245   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
7248  *  Fix Command Arguments for Statsswtch
7249  */
7250 static const char* apzStatsswtchPatch[] = {
7251     "format",
7252     "boottime;",
7253     (char*)NULL };
7255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7257  *  Description of Stdio_Stdarg_H fix
7258  */
7259 tSCC zStdio_Stdarg_HName[] =
7260      "stdio_stdarg_h";
7263  *  File name selection pattern
7264  */
7265 tSCC zStdio_Stdarg_HList[] =
7266   "stdio.h\0";
7268  *  Machine/OS name selection pattern
7269  */
7270 tSCC* apzStdio_Stdarg_HMachs[] = {
7271         "*-*-solaris2.1[0-9]*",
7272         (const char*)NULL };
7275  *  content bypass pattern - skip fix if pattern found
7276  */
7277 tSCC zStdio_Stdarg_HBypass0[] =
7278        "include.*(stdarg.h|machine/ansi.h)";
7280 #define    STDIO_STDARG_H_TEST_CT  1
7281 static tTestDesc aStdio_Stdarg_HTests[] = {
7282   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7285  *  Fix Command Arguments for Stdio_Stdarg_H
7286  */
7287 static const char* apzStdio_Stdarg_HPatch[] = {
7288     "wrap",
7289     "#define __need___va_list\n\
7290 #include <stdarg.h>\n",
7291     (char*)NULL };
7293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7295  *  Description of Stdio_Va_List fix
7296  */
7297 tSCC zStdio_Va_ListName[] =
7298      "stdio_va_list";
7301  *  File name selection pattern
7302  */
7303 tSCC zStdio_Va_ListList[] =
7304   "stdio.h\0";
7306  *  Machine/OS name selection pattern
7307  */
7308 tSCC* apzStdio_Va_ListMachs[] = {
7309         "*-*-solaris2.1[0-9]*",
7310         (const char*)NULL };
7313  *  content bypass pattern - skip fix if pattern found
7314  */
7315 tSCC zStdio_Va_ListBypass0[] =
7316        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7318 #define    STDIO_VA_LIST_TEST_CT  1
7319 static tTestDesc aStdio_Va_ListTests[] = {
7320   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7323  *  Fix Command Arguments for Stdio_Va_List
7324  */
7325 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7326     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7327 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7328 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7329 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7330 s@ va_list@ __not_va_list__@\n\
7331 s@\\*va_list@*__not_va_list__@\n\
7332 s@ __va_list)@ __gnuc_va_list)@\n\
7333 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7334 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7335 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7336 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7337 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7338 s@VA_LIST@DUMMY_VA_LIST@\n\
7339 s@_Va_LIST@_VA_LIST@",
7340     (char*)NULL };
7342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7344  *  Description of Stdio_Va_List_Clients fix
7345  */
7346 tSCC zStdio_Va_List_ClientsName[] =
7347      "stdio_va_list_clients";
7350  *  File name selection pattern
7351  */
7352 tSCC zStdio_Va_List_ClientsList[] =
7353   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7355  *  Machine/OS name selection pattern
7356  */
7357 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7360  *  content bypass pattern - skip fix if pattern found
7361  */
7362 tSCC zStdio_Va_List_ClientsBypass0[] =
7363        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7364 tSCC zStdio_Va_List_ClientsBypass1[] =
7365        "include <stdarg\\.h>|#ifdef va_start";
7367 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
7368 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7369   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7370   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7373  *  Fix Command Arguments for Stdio_Va_List_Clients
7374  */
7375 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7376     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7377 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7378 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7379 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7380 s@ va_list@ __not_va_list__@\n\
7381 s@\\*va_list@*__not_va_list__@\n\
7382 s@ __va_list)@ __gnuc_va_list)@\n\
7383 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7384 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7385 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7386 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7387 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7388 s@VA_LIST@DUMMY_VA_LIST@\n\
7389 s@_Va_LIST@_VA_LIST@",
7390     (char*)NULL };
7392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7394  *  Description of Strict_Ansi_Not fix
7395  */
7396 tSCC zStrict_Ansi_NotName[] =
7397      "strict_ansi_not";
7400  *  File name selection pattern
7401  */
7402 #define zStrict_Ansi_NotList (char*)NULL
7404  *  Machine/OS name selection pattern
7405  */
7406 #define apzStrict_Ansi_NotMachs (const char**)NULL
7409  *  content selection pattern - do fix if pattern found
7410  */
7411 tSCC zStrict_Ansi_NotSelect0[] =
7412        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7415  *  content bypass pattern - skip fix if pattern found
7416  */
7417 tSCC zStrict_Ansi_NotBypass0[] =
7418        "GNU and MIPS C compilers define __STDC__ differently";
7419 tSCC zStrict_Ansi_NotBypass1[] =
7420        "__SCO_VERSION__.*__STDC__ != 1";
7423  *  perform the C function call test
7424  */
7425 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7427 #define    STRICT_ANSI_NOT_TEST_CT  4
7428 static tTestDesc aStrict_Ansi_NotTests[] = {
7429   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
7430   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7431   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7432   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7435  *  Fix Command Arguments for Strict_Ansi_Not
7436  */
7437 static const char* apzStrict_Ansi_NotPatch[] = {
7438     "format",
7439     "%1 !defined(__STRICT_ANSI__)",
7440     (char*)NULL };
7442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7444  *  Description of Strict_Ansi_Not_Ctd fix
7445  */
7446 tSCC zStrict_Ansi_Not_CtdName[] =
7447      "strict_ansi_not_ctd";
7450  *  File name selection pattern
7451  */
7452 tSCC zStrict_Ansi_Not_CtdList[] =
7453   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7455  *  Machine/OS name selection pattern
7456  */
7457 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7460  *  content selection pattern - do fix if pattern found
7461  */
7462 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7463        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7466  *  perform the C function call test
7467  */
7468 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7470 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
7471 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7472   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
7473   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7476  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
7477  */
7478 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7479     "format",
7480     "%1 !defined(__STRICT_ANSI__)",
7481     (char*)NULL };
7483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7485  *  Description of Strict_Ansi_Only fix
7486  */
7487 tSCC zStrict_Ansi_OnlyName[] =
7488      "strict_ansi_only";
7491  *  File name selection pattern
7492  */
7493 #define zStrict_Ansi_OnlyList (char*)NULL
7495  *  Machine/OS name selection pattern
7496  */
7497 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7500  *  content selection pattern - do fix if pattern found
7501  */
7502 tSCC zStrict_Ansi_OnlySelect0[] =
7503        "^([ \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)";
7506  *  perform the C function call test
7507  */
7508 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7510 #define    STRICT_ANSI_ONLY_TEST_CT  2
7511 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7512   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
7513   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7516  *  Fix Command Arguments for Strict_Ansi_Only
7517  */
7518 static const char* apzStrict_Ansi_OnlyPatch[] = {
7519     "format",
7520     "%1 defined(__STRICT_ANSI__)",
7521     (char*)NULL };
7523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7525  *  Description of Struct_File fix
7526  */
7527 tSCC zStruct_FileName[] =
7528      "struct_file";
7531  *  File name selection pattern
7532  */
7533 tSCC zStruct_FileList[] =
7534   "rpc/xdr.h\0";
7536  *  Machine/OS name selection pattern
7537  */
7538 #define apzStruct_FileMachs (const char**)NULL
7541  *  content selection pattern - do fix if pattern found
7542  */
7543 tSCC zStruct_FileSelect0[] =
7544        "^.*xdrstdio_create.*struct __file_s";
7546 #define    STRUCT_FILE_TEST_CT  1
7547 static tTestDesc aStruct_FileTests[] = {
7548   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
7551  *  Fix Command Arguments for Struct_File
7552  */
7553 static const char* apzStruct_FilePatch[] = {
7554     "format",
7555     "struct __file_s;\n\
7556 %0",
7557     (char*)NULL };
7559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7561  *  Description of Struct_Sockaddr fix
7562  */
7563 tSCC zStruct_SockaddrName[] =
7564      "struct_sockaddr";
7567  *  File name selection pattern
7568  */
7569 tSCC zStruct_SockaddrList[] =
7570   "rpc/auth.h\0";
7572  *  Machine/OS name selection pattern
7573  */
7574 #define apzStruct_SockaddrMachs (const char**)NULL
7577  *  content selection pattern - do fix if pattern found
7578  */
7579 tSCC zStruct_SockaddrSelect0[] =
7580        "^.*authdes_create.*struct sockaddr[^_]";
7583  *  content bypass pattern - skip fix if pattern found
7584  */
7585 tSCC zStruct_SockaddrBypass0[] =
7586        "<sys/socket.h>";
7587 tSCC zStruct_SockaddrBypass1[] =
7588        "struct sockaddr;\n";
7590 #define    STRUCT_SOCKADDR_TEST_CT  3
7591 static tTestDesc aStruct_SockaddrTests[] = {
7592   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
7593   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
7594   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7597  *  Fix Command Arguments for Struct_Sockaddr
7598  */
7599 static const char* apzStruct_SockaddrPatch[] = {
7600     "format",
7601     "struct sockaddr;\n\
7602 %0",
7603     (char*)NULL };
7605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7607  *  Description of Sun_Auth_Proto fix
7608  */
7609 tSCC zSun_Auth_ProtoName[] =
7610      "sun_auth_proto";
7613  *  File name selection pattern
7614  */
7615 tSCC zSun_Auth_ProtoList[] =
7616   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7618  *  Machine/OS name selection pattern
7619  */
7620 #define apzSun_Auth_ProtoMachs (const char**)NULL
7623  *  content selection pattern - do fix if pattern found
7624  */
7625 tSCC zSun_Auth_ProtoSelect0[] =
7626        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7629  *  content bypass pattern - skip fix if pattern found
7630  */
7631 tSCC zSun_Auth_ProtoBypass0[] =
7632        "__cplusplus";
7634 #define    SUN_AUTH_PROTO_TEST_CT  2
7635 static tTestDesc aSun_Auth_ProtoTests[] = {
7636   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7637   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7640  *  Fix Command Arguments for Sun_Auth_Proto
7641  */
7642 static const char* apzSun_Auth_ProtoPatch[] = {
7643     "format",
7644     "#ifdef __cplusplus\n\
7645 %1(...);%2\n\
7646 #else\n\
7647 %1();%2\n\
7648 #endif",
7649     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7650     (char*)NULL };
7652 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7654  *  Description of Sun_Bogus_Ifdef fix
7655  */
7656 tSCC zSun_Bogus_IfdefName[] =
7657      "sun_bogus_ifdef";
7660  *  File name selection pattern
7661  */
7662 tSCC zSun_Bogus_IfdefList[] =
7663   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7665  *  Machine/OS name selection pattern
7666  */
7667 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7670  *  content selection pattern - do fix if pattern found
7671  */
7672 tSCC zSun_Bogus_IfdefSelect0[] =
7673        "#ifdef(.*\\|\\|.*)";
7675 #define    SUN_BOGUS_IFDEF_TEST_CT  1
7676 static tTestDesc aSun_Bogus_IfdefTests[] = {
7677   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7680  *  Fix Command Arguments for Sun_Bogus_Ifdef
7681  */
7682 static const char* apzSun_Bogus_IfdefPatch[] = {
7683     "format",
7684     "#if%1",
7685     (char*)NULL };
7687 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7689  *  Description of Sun_Catmacro fix
7690  */
7691 tSCC zSun_CatmacroName[] =
7692      "sun_catmacro";
7695  *  File name selection pattern
7696  */
7697 tSCC zSun_CatmacroList[] =
7698   "pixrect/memvar.h\0";
7700  *  Machine/OS name selection pattern
7701  */
7702 #define apzSun_CatmacroMachs (const char**)NULL
7705  *  content selection pattern - do fix if pattern found
7706  */
7707 tSCC zSun_CatmacroSelect0[] =
7708        "^#define[ \t]+CAT\\(a,b\\).*";
7710 #define    SUN_CATMACRO_TEST_CT  1
7711 static tTestDesc aSun_CatmacroTests[] = {
7712   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
7715  *  Fix Command Arguments for Sun_Catmacro
7716  */
7717 static const char* apzSun_CatmacroPatch[] = {
7718     "format",
7719     "#ifdef __STDC__\n\
7720 #  define CAT(a,b) a##b\n\
7721 #else\n\
7722 %0\n\
7723 #endif",
7724     (char*)NULL };
7726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7728  *  Description of Sun_Malloc fix
7729  */
7730 tSCC zSun_MallocName[] =
7731      "sun_malloc";
7734  *  File name selection pattern
7735  */
7736 tSCC zSun_MallocList[] =
7737   "malloc.h\0";
7739  *  Machine/OS name selection pattern
7740  */
7741 #define apzSun_MallocMachs (const char**)NULL
7744  *  content bypass pattern - skip fix if pattern found
7745  */
7746 tSCC zSun_MallocBypass0[] =
7747        "_CLASSIC_ANSI_TYPES";
7749 #define    SUN_MALLOC_TEST_CT  1
7750 static tTestDesc aSun_MallocTests[] = {
7751   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
7754  *  Fix Command Arguments for Sun_Malloc
7755  */
7756 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7757     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7758     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7759     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7760     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7761     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7762     (char*)NULL };
7764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7766  *  Description of Sun_Rusers_Semi fix
7767  */
7768 tSCC zSun_Rusers_SemiName[] =
7769      "sun_rusers_semi";
7772  *  File name selection pattern
7773  */
7774 tSCC zSun_Rusers_SemiList[] =
7775   "rpcsvc/rusers.h\0";
7777  *  Machine/OS name selection pattern
7778  */
7779 #define apzSun_Rusers_SemiMachs (const char**)NULL
7782  *  content selection pattern - do fix if pattern found
7783  */
7784 tSCC zSun_Rusers_SemiSelect0[] =
7785        "_cnt$";
7787 #define    SUN_RUSERS_SEMI_TEST_CT  1
7788 static tTestDesc aSun_Rusers_SemiTests[] = {
7789   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7792  *  Fix Command Arguments for Sun_Rusers_Semi
7793  */
7794 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7795     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7796     (char*)NULL };
7798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7800  *  Description of Sun_Signal fix
7801  */
7802 tSCC zSun_SignalName[] =
7803      "sun_signal";
7806  *  File name selection pattern
7807  */
7808 tSCC zSun_SignalList[] =
7809   "sys/signal.h\0signal.h\0";
7811  *  Machine/OS name selection pattern
7812  */
7813 #define apzSun_SignalMachs (const char**)NULL
7816  *  content selection pattern - do fix if pattern found
7817  */
7818 tSCC zSun_SignalSelect0[] =
7819        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7821 #define    SUN_SIGNAL_TEST_CT  1
7822 static tTestDesc aSun_SignalTests[] = {
7823   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
7826  *  Fix Command Arguments for Sun_Signal
7827  */
7828 static const char* apzSun_SignalPatch[] = {
7829     "format",
7830     "#ifdef __cplusplus\n\
7831 void\t(*signal(...))(...);\n\
7832 #else\n\
7833 %0\n\
7834 #endif",
7835     (char*)NULL };
7837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7839  *  Description of Sunos_Strlen fix
7840  */
7841 tSCC zSunos_StrlenName[] =
7842      "sunos_strlen";
7845  *  File name selection pattern
7846  */
7847 tSCC zSunos_StrlenList[] =
7848   "strings.h\0";
7850  *  Machine/OS name selection pattern
7851  */
7852 #define apzSunos_StrlenMachs (const char**)NULL
7855  *  content selection pattern - do fix if pattern found
7856  */
7857 tSCC zSunos_StrlenSelect0[] =
7858        "int[ \t]*strlen\\(\\);(.*)";
7860 #define    SUNOS_STRLEN_TEST_CT  1
7861 static tTestDesc aSunos_StrlenTests[] = {
7862   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
7865  *  Fix Command Arguments for Sunos_Strlen
7866  */
7867 static const char* apzSunos_StrlenPatch[] = {
7868     "format",
7869     "__SIZE_TYPE__ strlen();%1",
7870     (char*)NULL };
7872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7874  *  Description of Svr4_Disable_Opt fix
7875  */
7876 tSCC zSvr4_Disable_OptName[] =
7877      "svr4_disable_opt";
7880  *  File name selection pattern
7881  */
7882 tSCC zSvr4_Disable_OptList[] =
7883   "string.h\0";
7885  *  Machine/OS name selection pattern
7886  */
7887 #define apzSvr4_Disable_OptMachs (const char**)NULL
7890  *  content selection pattern - do fix if pattern found
7891  */
7892 tSCC zSvr4_Disable_OptSelect0[] =
7893        "#define.*__std_hdr_";
7895 #define    SVR4_DISABLE_OPT_TEST_CT  1
7896 static tTestDesc aSvr4_Disable_OptTests[] = {
7897   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7900  *  Fix Command Arguments for Svr4_Disable_Opt
7901  */
7902 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7903     "-e", "/#define.*__std_hdr_/d",
7904     (char*)NULL };
7906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7908  *  Description of Svr4_Getcwd fix
7909  */
7910 tSCC zSvr4_GetcwdName[] =
7911      "svr4_getcwd";
7914  *  File name selection pattern
7915  */
7916 tSCC zSvr4_GetcwdList[] =
7917   "stdlib.h\0unistd.h\0prototypes.h\0";
7919  *  Machine/OS name selection pattern
7920  */
7921 #define apzSvr4_GetcwdMachs (const char**)NULL
7924  *  content selection pattern - do fix if pattern found
7925  */
7926 tSCC zSvr4_GetcwdSelect0[] =
7927        "getcwd\\(char \\*, int\\)";
7929 #define    SVR4_GETCWD_TEST_CT  1
7930 static tTestDesc aSvr4_GetcwdTests[] = {
7931   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7934  *  Fix Command Arguments for Svr4_Getcwd
7935  */
7936 static const char* apzSvr4_GetcwdPatch[] = {
7937     "format",
7938     "getcwd(char *, size_t)",
7939     (char*)NULL };
7941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7943  *  Description of Svr4_Profil fix
7944  */
7945 tSCC zSvr4_ProfilName[] =
7946      "svr4_profil";
7949  *  File name selection pattern
7950  */
7951 tSCC zSvr4_ProfilList[] =
7952   "stdlib.h\0unistd.h\0";
7954  *  Machine/OS name selection pattern
7955  */
7956 #define apzSvr4_ProfilMachs (const char**)NULL
7959  *  content selection pattern - do fix if pattern found
7960  */
7961 tSCC zSvr4_ProfilSelect0[] =
7962        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7964 #define    SVR4_PROFIL_TEST_CT  1
7965 static tTestDesc aSvr4_ProfilTests[] = {
7966   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7969  *  Fix Command Arguments for Svr4_Profil
7970  */
7971 static const char* apzSvr4_ProfilPatch[] = {
7972     "format",
7973     "profil(unsigned short *, size_t, int, unsigned int)",
7974     (char*)NULL };
7976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7978  *  Description of Svr4_Sighandler_Type fix
7979  */
7980 tSCC zSvr4_Sighandler_TypeName[] =
7981      "svr4_sighandler_type";
7984  *  File name selection pattern
7985  */
7986 tSCC zSvr4_Sighandler_TypeList[] =
7987   "sys/signal.h\0";
7989  *  Machine/OS name selection pattern
7990  */
7991 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7994  *  content selection pattern - do fix if pattern found
7995  */
7996 tSCC zSvr4_Sighandler_TypeSelect0[] =
7997        "void *\\(\\*\\)\\(\\)";
7999 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
8000 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8001   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8004  *  Fix Command Arguments for Svr4_Sighandler_Type
8005  */
8006 static const char* apzSvr4_Sighandler_TypePatch[] = {
8007     "format",
8008     "void (*)(int)",
8009     (char*)NULL };
8011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8013  *  Description of Svr4_Undeclared_Getrnge fix
8014  */
8015 tSCC zSvr4_Undeclared_GetrngeName[] =
8016      "svr4_undeclared_getrnge";
8019  *  File name selection pattern
8020  */
8021 tSCC zSvr4_Undeclared_GetrngeList[] =
8022   "regexp.h\0";
8024  *  Machine/OS name selection pattern
8025  */
8026 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8029  *  content selection pattern - do fix if pattern found
8030  */
8031 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8032        "getrnge";
8035  *  content bypass pattern - skip fix if pattern found
8036  */
8037 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8038        "static void getrnge";
8040 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
8041 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8042   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8043   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8046  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
8047  */
8048 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8049     "format",
8050     "%0\n\
8051 static int getrnge ();",
8052     "^static int[ \t]+size;",
8053     (char*)NULL };
8055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8057  *  Description of Sysv68_String fix
8058  */
8059 tSCC zSysv68_StringName[] =
8060      "sysv68_string";
8063  *  File name selection pattern
8064  */
8065 tSCC zSysv68_StringList[] =
8066   "testing.h\0string.h\0";
8068  *  Machine/OS name selection pattern
8069  */
8070 #define apzSysv68_StringMachs (const char**)NULL
8073  *  content bypass pattern - skip fix if pattern found
8074  */
8075 tSCC zSysv68_StringBypass0[] =
8076        "_CLASSIC_ANSI_TYPES";
8078 #define    SYSV68_STRING_TEST_CT  1
8079 static tTestDesc aSysv68_StringTests[] = {
8080   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
8083  *  Fix Command Arguments for Sysv68_String
8084  */
8085 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8086     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8087     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8088     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8089     "-e", "/^extern char$/N",
8090     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8091     "-e", "/^extern int$/N",
8092     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8093     "-e", "/^\tstrncmp(),$/N",
8094     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8095 extern unsigned int\\\n\
8096 \\2/",
8097     (char*)NULL };
8099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8101  *  Description of Sysz_Stdlib_For_Sun fix
8102  */
8103 tSCC zSysz_Stdlib_For_SunName[] =
8104      "sysz_stdlib_for_sun";
8107  *  File name selection pattern
8108  */
8109 tSCC zSysz_Stdlib_For_SunList[] =
8110   "stdlib.h\0";
8112  *  Machine/OS name selection pattern
8113  */
8114 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8117  *  content selection pattern - do fix if pattern found
8118  */
8119 tSCC zSysz_Stdlib_For_SunSelect0[] =
8120        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8123  *  content bypass pattern - skip fix if pattern found
8124  */
8125 tSCC zSysz_Stdlib_For_SunBypass0[] =
8126        "_CLASSIC_ANSI_TYPES";
8128 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
8129 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8130   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8131   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8134  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
8135  */
8136 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8137     "format",
8138     "void *\t%1(",
8139     (char*)NULL };
8141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8143  *  Description of Thread_Keyword fix
8144  */
8145 tSCC zThread_KeywordName[] =
8146      "thread_keyword";
8149  *  File name selection pattern
8150  */
8151 tSCC zThread_KeywordList[] =
8152   "pthread.h\0bits/sigthread.h\0";
8154  *  Machine/OS name selection pattern
8155  */
8156 #define apzThread_KeywordMachs (const char**)NULL
8159  *  content selection pattern - do fix if pattern found
8160  */
8161 tSCC zThread_KeywordSelect0[] =
8162        "([* ])__thread([,)])";
8164 #define    THREAD_KEYWORD_TEST_CT  1
8165 static tTestDesc aThread_KeywordTests[] = {
8166   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
8169  *  Fix Command Arguments for Thread_Keyword
8170  */
8171 static const char* apzThread_KeywordPatch[] = {
8172     "format",
8173     "%1__thr%2",
8174     (char*)NULL };
8176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8178  *  Description of Tinfo_Cplusplus fix
8179  */
8180 tSCC zTinfo_CplusplusName[] =
8181      "tinfo_cplusplus";
8184  *  File name selection pattern
8185  */
8186 tSCC zTinfo_CplusplusList[] =
8187   "tinfo.h\0";
8189  *  Machine/OS name selection pattern
8190  */
8191 #define apzTinfo_CplusplusMachs (const char**)NULL
8194  *  content selection pattern - do fix if pattern found
8195  */
8196 tSCC zTinfo_CplusplusSelect0[] =
8197        "[ \t]_cplusplus";
8199 #define    TINFO_CPLUSPLUS_TEST_CT  1
8200 static tTestDesc aTinfo_CplusplusTests[] = {
8201   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8204  *  Fix Command Arguments for Tinfo_Cplusplus
8205  */
8206 static const char* apzTinfo_CplusplusPatch[] = {
8207     "format",
8208     " __cplusplus",
8209     (char*)NULL };
8211 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8213  *  Description of Ultrix_Const fix
8214  */
8215 tSCC zUltrix_ConstName[] =
8216      "ultrix_const";
8219  *  File name selection pattern
8220  */
8221 tSCC zUltrix_ConstList[] =
8222   "stdio.h\0";
8224  *  Machine/OS name selection pattern
8225  */
8226 #define apzUltrix_ConstMachs (const char**)NULL
8229  *  content selection pattern - do fix if pattern found
8230  */
8231 tSCC zUltrix_ConstSelect0[] =
8232        "perror\\( char \\*";
8234 #define    ULTRIX_CONST_TEST_CT  1
8235 static tTestDesc aUltrix_ConstTests[] = {
8236   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
8239  *  Fix Command Arguments for Ultrix_Const
8240  */
8241 static const char* apzUltrix_ConstPatch[] = {
8242     "format",
8243     "%1 const %3 *__",
8244     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8245     (char*)NULL };
8247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8249  *  Description of Ultrix_Const2 fix
8250  */
8251 tSCC zUltrix_Const2Name[] =
8252      "ultrix_const2";
8255  *  File name selection pattern
8256  */
8257 tSCC zUltrix_Const2List[] =
8258   "stdio.h\0";
8260  *  Machine/OS name selection pattern
8261  */
8262 #define apzUltrix_Const2Machs (const char**)NULL
8265  *  content selection pattern - do fix if pattern found
8266  */
8267 tSCC zUltrix_Const2Select0[] =
8268        "\\*fopen\\( char \\*";
8270 #define    ULTRIX_CONST2_TEST_CT  1
8271 static tTestDesc aUltrix_Const2Tests[] = {
8272   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
8275  *  Fix Command Arguments for Ultrix_Const2
8276  */
8277 static const char* apzUltrix_Const2Patch[] = {
8278     "format",
8279     "%1( const char *%3, const char *",
8280     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8281     (char*)NULL };
8283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8285  *  Description of Va_I960_Macro fix
8286  */
8287 tSCC zVa_I960_MacroName[] =
8288      "va_i960_macro";
8291  *  File name selection pattern
8292  */
8293 tSCC zVa_I960_MacroList[] =
8294   "arch/i960/archI960.h\0";
8296  *  Machine/OS name selection pattern
8297  */
8298 #define apzVa_I960_MacroMachs (const char**)NULL
8301  *  content selection pattern - do fix if pattern found
8302  */
8303 tSCC zVa_I960_MacroSelect0[] =
8304        "__(vsiz|vali|vpad|alignof__)";
8306 #define    VA_I960_MACRO_TEST_CT  1
8307 static tTestDesc aVa_I960_MacroTests[] = {
8308   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8311  *  Fix Command Arguments for Va_I960_Macro
8312  */
8313 static const char* apzVa_I960_MacroPatch[] = {
8314     "format",
8315     "__vx%1",
8316     (char*)NULL };
8318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8320  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
8321  */
8322 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8323      "vms_define_can_use_extern_prefix";
8326  *  File name selection pattern
8327  */
8328 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8329   "rtldef/decc$types.h\0";
8331  *  Machine/OS name selection pattern
8332  */
8333 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8334         "*-*-*vms*",
8335         (const char*)NULL };
8338  *  content selection pattern - do fix if pattern found
8339  */
8340 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8341        "#[ \t]*else\n\
8342 #[ \t]*if defined\\(__DECCXX\\)\n\
8343 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8345 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
8346 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8347   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8350  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8351  */
8352 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8353     "format",
8354     "%0#    elif defined (__GNUC__)\n\
8355 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8356     (char*)NULL };
8358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8360  *  Description of Vms_Use_Pragma_Extern_Model fix
8361  */
8362 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8363      "vms_use_pragma_extern_model";
8366  *  File name selection pattern
8367  */
8368 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8370  *  Machine/OS name selection pattern
8371  */
8372 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8373         "*-*-*vms*",
8374         (const char*)NULL };
8377  *  content selection pattern - do fix if pattern found
8378  */
8379 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8380        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8381 # pragma extern_model __save\n";
8383 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
8384 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8385   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8388  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8389  */
8390 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8391     "format",
8392     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8393 # pragma extern_model __save\n",
8394     (char*)NULL };
8396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8398  *  Description of Vms_Disable_Decc_String_Builtins fix
8399  */
8400 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8401      "vms_disable_decc_string_builtins";
8404  *  File name selection pattern
8405  */
8406 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8407   "rtldef/string.h\0";
8409  *  Machine/OS name selection pattern
8410  */
8411 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8412         "*-*-*vms*",
8413         (const char*)NULL };
8416  *  content selection pattern - do fix if pattern found
8417  */
8418 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8419        "#if !defined\\(__VAX\\)\n";
8421 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
8422 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8423   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8426  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8427  */
8428 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8429     "format",
8430     "#if !defined(__VAX) && !defined(__GNUC__)\n",
8431     (char*)NULL };
8433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8435  *  Description of Vms_Use_Quoted_Include fix
8436  */
8437 tSCC zVms_Use_Quoted_IncludeName[] =
8438      "vms_use_quoted_include";
8441  *  File name selection pattern
8442  */
8443 tSCC zVms_Use_Quoted_IncludeList[] =
8444   "rtldef/wait.h\0starlet_c/pthread.h\0";
8446  *  Machine/OS name selection pattern
8447  */
8448 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
8449         "*-*-*vms*",
8450         (const char*)NULL };
8453  *  content selection pattern - do fix if pattern found
8454  */
8455 tSCC zVms_Use_Quoted_IncludeSelect0[] =
8456        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
8458 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
8459 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
8460   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
8463  *  Fix Command Arguments for Vms_Use_Quoted_Include
8464  */
8465 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8466     "format",
8467     "%1<sys/%2.h>",
8468     (char*)NULL };
8470 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8472  *  Description of Vms_Add_Missing_Braces fix
8473  */
8474 tSCC zVms_Add_Missing_BracesName[] =
8475      "vms_add_missing_braces";
8478  *  File name selection pattern
8479  */
8480 tSCC zVms_Add_Missing_BracesList[] =
8481   "rtldef/signal.h\0";
8483  *  Machine/OS name selection pattern
8484  */
8485 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8486         "*-*-*vms*",
8487         (const char*)NULL };
8490  *  content selection pattern - do fix if pattern found
8491  */
8492 tSCC zVms_Add_Missing_BracesSelect0[] =
8493        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8495 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
8496 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8497   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8500  *  Fix Command Arguments for Vms_Add_Missing_Braces
8501  */
8502 static const char* apzVms_Add_Missing_BracesPatch[] = {
8503     "format",
8504     "%1 {%2} ",
8505     (char*)NULL };
8507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8509  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
8510  */
8511 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8512      "vms_do_not_redeclare_hostalias";
8515  *  File name selection pattern
8516  */
8517 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8518   "rtldef/resolv.h\0";
8520  *  Machine/OS name selection pattern
8521  */
8522 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8523         "*-*-*vms*",
8524         (const char*)NULL };
8527  *  content selection pattern - do fix if pattern found
8528  */
8529 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8530        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8531 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8533 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
8534 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8535   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8538  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8539  */
8540 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8541     "format",
8542     "%1\n\
8543 /* %2 */",
8544     (char*)NULL };
8546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8548  *  Description of Vms_Decc_Builtin fix
8549  */
8550 tSCC zVms_Decc_BuiltinName[] =
8551      "vms_decc_builtin";
8554  *  File name selection pattern
8555  */
8556 tSCC zVms_Decc_BuiltinList[] =
8557   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8559  *  Machine/OS name selection pattern
8560  */
8561 tSCC* apzVms_Decc_BuiltinMachs[] = {
8562         "*-*-*vms*",
8563         (const char*)NULL };
8566  *  content selection pattern - do fix if pattern found
8567  */
8568 tSCC zVms_Decc_BuiltinSelect0[] =
8569        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8571 #define    VMS_DECC_BUILTIN_TEST_CT  1
8572 static tTestDesc aVms_Decc_BuiltinTests[] = {
8573   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8576  *  Fix Command Arguments for Vms_Decc_Builtin
8577  */
8578 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8579     "-e", "s@__MEMSET@memset@",
8580     "-e", "s@__MEMMOVE@memmove@",
8581     "-e", "s@__MEMCPY@memcpy@",
8582     "-e", "s@__STRLEN@strlen@",
8583     "-e", "s@__STRCPY@strcpy@",
8584     (char*)NULL };
8586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8588  *  Description of Vms_No_64bit_Getopt fix
8589  */
8590 tSCC zVms_No_64bit_GetoptName[] =
8591      "vms_no_64bit_getopt";
8594  *  File name selection pattern
8595  */
8596 tSCC zVms_No_64bit_GetoptList[] =
8597   "rtldef/stdio.h\0rtldef/unistd.h\0";
8599  *  Machine/OS name selection pattern
8600  */
8601 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8602         "*-*-*vms*",
8603         (const char*)NULL };
8606  *  content selection pattern - do fix if pattern found
8607  */
8608 tSCC zVms_No_64bit_GetoptSelect0[] =
8609        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8611 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
8612 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8613   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8616  *  Fix Command Arguments for Vms_No_64bit_Getopt
8617  */
8618 static const char* apzVms_No_64bit_GetoptPatch[] = {
8619     "format",
8620     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
8621 %0#endif\n",
8622     (char*)NULL };
8624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8626  *  Description of Vms_Forward_Declare_Struct fix
8627  */
8628 tSCC zVms_Forward_Declare_StructName[] =
8629      "vms_forward_declare_struct";
8632  *  File name selection pattern
8633  */
8634 tSCC zVms_Forward_Declare_StructList[] =
8635   "rtldef/if.h\0";
8637  *  Machine/OS name selection pattern
8638  */
8639 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8640         "*-*-*vms*",
8641         (const char*)NULL };
8644  *  content selection pattern - do fix if pattern found
8645  */
8646 tSCC zVms_Forward_Declare_StructSelect0[] =
8647        "(/\\* forward decls for C\\+\\+ \\*/\n\
8648 )#ifdef __cplusplus\n";
8650 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
8651 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8652   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8655  *  Fix Command Arguments for Vms_Forward_Declare_Struct
8656  */
8657 static const char* apzVms_Forward_Declare_StructPatch[] = {
8658     "format",
8659     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8660     (char*)NULL };
8662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8664  *  Description of Vms_Use_Fast_Setjmp fix
8665  */
8666 tSCC zVms_Use_Fast_SetjmpName[] =
8667      "vms_use_fast_setjmp";
8670  *  File name selection pattern
8671  */
8672 tSCC zVms_Use_Fast_SetjmpList[] =
8673   "rtldef/setjmp.h\0";
8675  *  Machine/OS name selection pattern
8676  */
8677 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8678         "*-*-*vms*",
8679         (const char*)NULL };
8682  *  content selection pattern - do fix if pattern found
8683  */
8684 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8685        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8687 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
8688 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8689   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8692  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
8693  */
8694 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8695     "format",
8696     "%0 defined (__GNUC__) ||",
8697     (char*)NULL };
8699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8701  *  Description of Void_Null fix
8702  */
8703 tSCC zVoid_NullName[] =
8704      "void_null";
8707  *  File name selection pattern
8708  */
8709 tSCC zVoid_NullList[] =
8710   "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";
8712  *  Machine/OS name selection pattern
8713  */
8714 #define apzVoid_NullMachs (const char**)NULL
8717  *  content selection pattern - do fix if pattern found
8718  */
8719 tSCC zVoid_NullSelect0[] =
8720        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8723  *  content bypass pattern - skip fix if pattern found
8724  */
8725 tSCC zVoid_NullBypass0[] =
8726        "__cplusplus";
8727 tSCC zVoid_NullBypass1[] =
8728        "__null";
8730 #define    VOID_NULL_TEST_CT  3
8731 static tTestDesc aVoid_NullTests[] = {
8732   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8733   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
8734   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8737  *  Fix Command Arguments for Void_Null
8738  */
8739 static const char* apzVoid_NullPatch[] = {
8740     "format",
8741     "#ifndef NULL\n\
8742 #ifdef __cplusplus\n\
8743 #ifdef __GNUG__\n\
8744 #define NULL __null\n\
8745 #else /* ! __GNUG__  */\n\
8746 #define NULL 0L\n\
8747 #endif /* __GNUG__  */\n\
8748 #else /* ! __cplusplus  */\n\
8749 #define NULL ((void *)0)\n\
8750 #endif /* __cplusplus  */\n\
8751 #endif /* !NULL  */",
8752     (char*)NULL };
8754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8756  *  Description of Vxworks_Gcc_Problem fix
8757  */
8758 tSCC zVxworks_Gcc_ProblemName[] =
8759      "vxworks_gcc_problem";
8762  *  File name selection pattern
8763  */
8764 tSCC zVxworks_Gcc_ProblemList[] =
8765   "types/vxTypesBase.h\0";
8767  *  Machine/OS name selection pattern
8768  */
8769 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8772  *  content selection pattern - do fix if pattern found
8773  */
8774 tSCC zVxworks_Gcc_ProblemSelect0[] =
8775        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8777 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8778 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8779   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8782  *  Fix Command Arguments for Vxworks_Gcc_Problem
8783  */
8784 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8785     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8786     "-e", "/[ \t]size_t/i\\\n\
8787 #ifndef _GCC_SIZE_T\\\n\
8788 #define _GCC_SIZE_T\n",
8789     "-e", "/[ \t]size_t/a\\\n\
8790 #endif\n",
8791     "-e", "/[ \t]ptrdiff_t/i\\\n\
8792 #ifndef _GCC_PTRDIFF_T\\\n\
8793 #define _GCC_PTRDIFF_T\n",
8794     "-e", "/[ \t]ptrdiff_t/a\\\n\
8795 #endif\n",
8796     "-e", "/[ \t]wchar_t/i\\\n\
8797 #ifndef _GCC_WCHAR_T\\\n\
8798 #define _GCC_WCHAR_T\n",
8799     "-e", "/[ \t]wchar_t/a\\\n\
8800 #endif\n",
8801     (char*)NULL };
8803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8805  *  Description of Vxworks_Ioctl_Macro fix
8806  */
8807 tSCC zVxworks_Ioctl_MacroName[] =
8808      "vxworks_ioctl_macro";
8811  *  File name selection pattern
8812  */
8813 tSCC zVxworks_Ioctl_MacroList[] =
8814   "ioLib.h\0";
8816  *  Machine/OS name selection pattern
8817  */
8818 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
8819         "*-*-vxworks*",
8820         (const char*)NULL };
8821 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
8822 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
8825  *  Fix Command Arguments for Vxworks_Ioctl_Macro
8826  */
8827 static const char* apzVxworks_Ioctl_MacroPatch[] = {
8828     "format",
8829     "%0\n\
8830 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
8831     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
8832     (char*)NULL };
8834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8836  *  Description of Vxworks_Mkdir_Macro fix
8837  */
8838 tSCC zVxworks_Mkdir_MacroName[] =
8839      "vxworks_mkdir_macro";
8842  *  File name selection pattern
8843  */
8844 tSCC zVxworks_Mkdir_MacroList[] =
8845   "sys/stat.h\0";
8847  *  Machine/OS name selection pattern
8848  */
8849 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
8850         "*-*-vxworks*",
8851         (const char*)NULL };
8852 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
8853 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
8856  *  Fix Command Arguments for Vxworks_Mkdir_Macro
8857  */
8858 static const char* apzVxworks_Mkdir_MacroPatch[] = {
8859     "format",
8860     "%0\n\
8861 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
8862     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
8863     (char*)NULL };
8865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8867  *  Description of Vxworks_Needs_Vxtypes fix
8868  */
8869 tSCC zVxworks_Needs_VxtypesName[] =
8870      "vxworks_needs_vxtypes";
8873  *  File name selection pattern
8874  */
8875 tSCC zVxworks_Needs_VxtypesList[] =
8876   "time.h\0";
8878  *  Machine/OS name selection pattern
8879  */
8880 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8883  *  content selection pattern - do fix if pattern found
8884  */
8885 tSCC zVxworks_Needs_VxtypesSelect0[] =
8886        "uint_t([ \t]+_clocks_per_sec)";
8888 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8889 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8890   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8893  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8894  */
8895 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8896     "format",
8897     "unsigned int%1",
8898     (char*)NULL };
8900 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8902  *  Description of Vxworks_Needs_Vxworks fix
8903  */
8904 tSCC zVxworks_Needs_VxworksName[] =
8905      "vxworks_needs_vxworks";
8908  *  File name selection pattern
8909  */
8910 tSCC zVxworks_Needs_VxworksList[] =
8911   "sys/stat.h\0";
8913  *  Machine/OS name selection pattern
8914  */
8915 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8918  *  content selection pattern - do fix if pattern found
8919  */
8920 tSCC zVxworks_Needs_VxworksSelect0[] =
8921        "#[ \t]define[ \t]+__INCstath";
8924  *  perform the 'test' shell command - do fix on success
8925  */
8926 tSCC zVxworks_Needs_VxworksTest0[] =
8927        " -r types/vxTypesOld.h";
8928 tSCC zVxworks_Needs_VxworksTest1[] =
8929        " -n \"`egrep '#include' $file`\"";
8930 tSCC zVxworks_Needs_VxworksTest2[] =
8931        " -n \"`egrep ULONG $file`\"";
8933 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8934 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8935   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8936   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8937   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8938   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8941  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8942  */
8943 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8944     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8945 #include <types/vxTypesOld.h>\n",
8946     (char*)NULL };
8948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8950  *  Description of Vxworks_Regs fix
8951  */
8952 tSCC zVxworks_RegsName[] =
8953      "vxworks_regs";
8956  *  File name selection pattern
8957  */
8958 #define zVxworks_RegsList (char*)NULL
8960  *  Machine/OS name selection pattern
8961  */
8962 tSCC* apzVxworks_RegsMachs[] = {
8963         "*-*-vxworks*",
8964         (const char*)NULL };
8967  *  content selection pattern - do fix if pattern found
8968  */
8969 tSCC zVxworks_RegsSelect0[] =
8970        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
8972 #define    VXWORKS_REGS_TEST_CT  1
8973 static tTestDesc aVxworks_RegsTests[] = {
8974   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
8977  *  Fix Command Arguments for Vxworks_Regs
8978  */
8979 static const char* apzVxworks_RegsPatch[] = {
8980     "format",
8981     "#include <arch/../regs.h>",
8982     (char*)NULL };
8984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8986  *  Description of Vxworks_Time fix
8987  */
8988 tSCC zVxworks_TimeName[] =
8989      "vxworks_time";
8992  *  File name selection pattern
8993  */
8994 tSCC zVxworks_TimeList[] =
8995   "time.h\0";
8997  *  Machine/OS name selection pattern
8998  */
8999 #define apzVxworks_TimeMachs (const char**)NULL
9002  *  content selection pattern - do fix if pattern found
9003  */
9004 tSCC zVxworks_TimeSelect0[] =
9005        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
9008  *  perform the 'test' shell command - do fix on success
9009  */
9010 tSCC zVxworks_TimeTest0[] =
9011        " -r vxWorks.h";
9013 #define    VXWORKS_TIME_TEST_CT  2
9014 static tTestDesc aVxworks_TimeTests[] = {
9015   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
9016   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
9019  *  Fix Command Arguments for Vxworks_Time
9020  */
9021 static const char* apzVxworks_TimePatch[] = {
9022     "format",
9023     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
9024 #ifdef __cplusplus\n\
9025 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
9026 #else\n\
9027 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
9028 #endif\n\
9029 #define __gcc_VOIDFUNCPTR_defined\n\
9030 #endif\n\
9031 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
9032     (char*)NULL };
9034 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9036  *  Description of Vxworks_Write_Const fix
9037  */
9038 tSCC zVxworks_Write_ConstName[] =
9039      "vxworks_write_const";
9042  *  File name selection pattern
9043  */
9044 tSCC zVxworks_Write_ConstList[] =
9045   "ioLib.h\0";
9047  *  Machine/OS name selection pattern
9048  */
9049 tSCC* apzVxworks_Write_ConstMachs[] = {
9050         "*-*-vxworks*",
9051         (const char*)NULL };
9052 #define VXWORKS_WRITE_CONST_TEST_CT  0
9053 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
9056  *  Fix Command Arguments for Vxworks_Write_Const
9057  */
9058 static const char* apzVxworks_Write_ConstPatch[] = {
9059     "format",
9060     "extern int  write (int, const char*, size_t);",
9061     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
9062     (char*)NULL };
9064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9066  *  Description of X11_Class fix
9067  */
9068 tSCC zX11_ClassName[] =
9069      "x11_class";
9072  *  File name selection pattern
9073  */
9074 tSCC zX11_ClassList[] =
9075   "X11/ShellP.h\0";
9077  *  Machine/OS name selection pattern
9078  */
9079 #define apzX11_ClassMachs (const char**)NULL
9082  *  content selection pattern - do fix if pattern found
9083  */
9084 tSCC zX11_ClassSelect0[] =
9085        "^([ \t]*char \\*)class;(.*)";
9088  *  content bypass pattern - skip fix if pattern found
9089  */
9090 tSCC zX11_ClassBypass0[] =
9091        "__cplusplus";
9093 #define    X11_CLASS_TEST_CT  2
9094 static tTestDesc aX11_ClassTests[] = {
9095   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
9096   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
9099  *  Fix Command Arguments for X11_Class
9100  */
9101 static const char* apzX11_ClassPatch[] = {
9102     "format",
9103     "#ifdef __cplusplus\n\
9104 %1c_class;%2\n\
9105 #else\n\
9106 %1class;%2\n\
9107 #endif",
9108     (char*)NULL };
9110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9112  *  Description of X11_Class_Usage fix
9113  */
9114 tSCC zX11_Class_UsageName[] =
9115      "x11_class_usage";
9118  *  File name selection pattern
9119  */
9120 tSCC zX11_Class_UsageList[] =
9121   "Xm/BaseClassI.h\0";
9123  *  Machine/OS name selection pattern
9124  */
9125 #define apzX11_Class_UsageMachs (const char**)NULL
9128  *  content selection pattern - do fix if pattern found
9129  */
9130 tSCC zX11_Class_UsageSelect0[] =
9131        " class\\)";
9134  *  content bypass pattern - skip fix if pattern found
9135  */
9136 tSCC zX11_Class_UsageBypass0[] =
9137        "__cplusplus";
9139 #define    X11_CLASS_USAGE_TEST_CT  2
9140 static tTestDesc aX11_Class_UsageTests[] = {
9141   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
9142   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
9145  *  Fix Command Arguments for X11_Class_Usage
9146  */
9147 static const char* apzX11_Class_UsagePatch[] = {
9148     "format",
9149     " c_class)",
9150     (char*)NULL };
9152 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9154  *  Description of X11_New fix
9155  */
9156 tSCC zX11_NewName[] =
9157      "x11_new";
9160  *  File name selection pattern
9161  */
9162 tSCC zX11_NewList[] =
9163   "Xm/Traversal.h\0";
9165  *  Machine/OS name selection pattern
9166  */
9167 #define apzX11_NewMachs (const char**)NULL
9170  *  content bypass pattern - skip fix if pattern found
9171  */
9172 tSCC zX11_NewBypass0[] =
9173        "__cplusplus";
9175 #define    X11_NEW_TEST_CT  1
9176 static tTestDesc aX11_NewTests[] = {
9177   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
9180  *  Fix Command Arguments for X11_New
9181  */
9182 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9183     "-e", "/Widget\told, new;/i\\\n\
9184 #ifdef __cplusplus\\\n\
9185 \\\tWidget\told, c_new;\\\n\
9186 #else\n",
9187     "-e", "/Widget\told, new;/a\\\n\
9188 #endif\n",
9189     "-e", "s/Widget new,/Widget c_new,/g",
9190     (char*)NULL };
9192 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9194  *  Description of X11_Sprintf fix
9195  */
9196 tSCC zX11_SprintfName[] =
9197      "x11_sprintf";
9200  *  File name selection pattern
9201  */
9202 tSCC zX11_SprintfList[] =
9203   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9205  *  Machine/OS name selection pattern
9206  */
9207 #define apzX11_SprintfMachs (const char**)NULL
9210  *  content selection pattern - do fix if pattern found
9211  */
9212 tSCC zX11_SprintfSelect0[] =
9213        "^extern char \\*\tsprintf\\(\\);$";
9215 #define    X11_SPRINTF_TEST_CT  1
9216 static tTestDesc aX11_SprintfTests[] = {
9217   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
9220  *  Fix Command Arguments for X11_Sprintf
9221  */
9222 static const char* apzX11_SprintfPatch[] = {
9223     "format",
9224     "#ifndef __STDC__\n\
9225 %0\n\
9226 #endif /* !defined __STDC__ */",
9227     (char*)NULL };
9229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9231  *  Description of Feraiseexcept_Nosse_Invalid fix
9232  */
9233 tSCC zFeraiseexcept_Nosse_InvalidName[] =
9234      "feraiseexcept_nosse_invalid";
9237  *  File name selection pattern
9238  */
9239 tSCC zFeraiseexcept_Nosse_InvalidList[] =
9240   "bits/fenv.h\0";
9242  *  Machine/OS name selection pattern
9243  */
9244 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
9245         "i[34567]86-*-linux*",
9246         "x86*-linux*",
9247         "amd64-*-linux*",
9248         (const char*)NULL };
9251  *  content selection pattern - do fix if pattern found
9252  */
9253 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
9254        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
9257  *  content bypass pattern - skip fix if pattern found
9258  */
9259 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
9260        "\"fdiv .*; fwait\"";
9262 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
9263 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
9264   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
9265   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
9268  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
9269  */
9270 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
9271     "format",
9272     "# ifdef __SSE_MATH__\n\
9273 %0\n\
9274 # else\n\
9275 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
9276 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
9277 # endif",
9278     (char*)NULL };
9280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9282  *  Description of Feraiseexcept_Nosse_Divbyzero fix
9283  */
9284 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
9285      "feraiseexcept_nosse_divbyzero";
9288  *  File name selection pattern
9289  */
9290 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
9291   "bits/fenv.h\0";
9293  *  Machine/OS name selection pattern
9294  */
9295 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
9296         "i[34567]86-*-linux*",
9297         "x86*-linux*",
9298         "amd64-*-linux*",
9299         (const char*)NULL };
9302  *  content selection pattern - do fix if pattern found
9303  */
9304 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
9305        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
9308  *  content bypass pattern - skip fix if pattern found
9309  */
9310 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
9311        "\"fdivp .*; fwait\"";
9313 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
9314 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
9315   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
9316   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
9319  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
9320  */
9321 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
9322     "format",
9323     "# ifdef __SSE_MATH__\n\
9324 %0\n\
9325 # else\n\
9326 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
9327 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
9328 # endif",
9329     (char*)NULL };
9331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9333  *  Description of Complier_H_Tradcpp fix
9334  */
9335 tSCC zComplier_H_TradcppName[] =
9336      "complier_h_tradcpp";
9339  *  File name selection pattern
9340  */
9341 tSCC zComplier_H_TradcppList[] =
9342   "linux/compiler.h\0";
9344  *  Machine/OS name selection pattern
9345  */
9346 #define apzComplier_H_TradcppMachs (const char**)NULL
9349  *  content selection pattern - do fix if pattern found
9350  */
9351 tSCC zComplier_H_TradcppSelect0[] =
9352        "#define __builtin_warning\\(x, y\\.\\.\\.\\) \\(1\\)";
9354 #define    COMPLIER_H_TRADCPP_TEST_CT  1
9355 static tTestDesc aComplier_H_TradcppTests[] = {
9356   { TT_EGREP,    zComplier_H_TradcppSelect0, (regex_t*)NULL }, };
9359  *  Fix Command Arguments for Complier_H_Tradcpp
9360  */
9361 static const char* apzComplier_H_TradcppPatch[] = {
9362     "format",
9363     "/* __builtin_warning(x, y...) is obsolete */",
9364     (char*)NULL };
9367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9369  *  List of all fixes
9370  */
9371 #define REGEX_COUNT          267
9372 #define MACH_LIST_SIZE_LIMIT 187
9373 #define FIX_COUNT            228
9376  *  Enumerate the fixes
9377  */
9378 typedef enum {
9379     AAB_AIX_STDIO_FIXIDX,
9380     AAB_AIX_FCNTL_FIXIDX,
9381     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9382     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9383     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9384     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9385     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9386     AAB_SUN_MEMCPY_FIXIDX,
9387     AAB_VXWORKS_ASSERT_FIXIDX,
9388     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
9389     AAB_VXWORKS_STDINT_FIXIDX,
9390     AAB_VXWORKS_UNISTD_FIXIDX,
9391     AIX_ASSERT_FIXIDX,
9392     AIX_COMPLEX_FIXIDX,
9393     AIX_MALLOC_FIXIDX,
9394     AIX_NET_IF_ARP_FIXIDX,
9395     AIX_NULL_FIXIDX,
9396     AIX_ONCE_INIT_1_FIXIDX,
9397     AIX_ONCE_INIT_2_FIXIDX,
9398     AIX_MUTEX_INITIALIZER_1_FIXIDX,
9399     AIX_COND_INITIALIZER_1_FIXIDX,
9400     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
9401     AIX_PTHREAD_FIXIDX,
9402     AIX_STDINT_1_FIXIDX,
9403     AIX_STDINT_2_FIXIDX,
9404     AIX_STDINT_3_FIXIDX,
9405     AIX_STDINT_4_FIXIDX,
9406     AIX_STDINT_5_FIXIDX,
9407     AIX_SYSMACHINE_FIXIDX,
9408     AIX_SYSWAIT_2_FIXIDX,
9409     AIX_VOLATILE_FIXIDX,
9410     ALPHA___ASSERT_FIXIDX,
9411     ALPHA_ASSERT_FIXIDX,
9412     ALPHA_GETOPT_FIXIDX,
9413     ALPHA_IF_SEMICOLON_FIXIDX,
9414     ALPHA_PARENS_FIXIDX,
9415     ALPHA_SBRK_FIXIDX,
9416     AVOID_BOOL_DEFINE_FIXIDX,
9417     AVOID_BOOL_TYPE_FIXIDX,
9418     AVOID_WCHAR_T_TYPE_FIXIDX,
9419     BAD_STRUCT_TERM_FIXIDX,
9420     BADQUOTE_FIXIDX,
9421     BROKEN_ASSERT_STDIO_FIXIDX,
9422     BROKEN_ASSERT_STDLIB_FIXIDX,
9423     BROKEN_CABS_FIXIDX,
9424     BROKEN_NAN_FIXIDX,
9425     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9426     CTRL_QUOTES_DEF_FIXIDX,
9427     CTRL_QUOTES_USE_FIXIDX,
9428     CXX_UNREADY_FIXIDX,
9429     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9430     DARWIN_EXTERNC_FIXIDX,
9431     DARWIN_GCC4_BREAKAGE_FIXIDX,
9432     DARWIN_PRIVATE_EXTERN_FIXIDX,
9433     DARWIN_STDINT_1_FIXIDX,
9434     DARWIN_STDINT_2_FIXIDX,
9435     DARWIN_STDINT_3_FIXIDX,
9436     DARWIN_STDINT_4_FIXIDX,
9437     DARWIN_STDINT_5_FIXIDX,
9438     DARWIN_STDINT_6_FIXIDX,
9439     DARWIN_STDINT_7_FIXIDX,
9440     DEC_INTERN_ASM_FIXIDX,
9441     DJGPP_WCHAR_H_FIXIDX,
9442     ECD_CURSOR_FIXIDX,
9443     FREEBSD_GCC3_BREAKAGE_FIXIDX,
9444     FREEBSD_GCC4_BREAKAGE_FIXIDX,
9445     GLIBC_C99_INLINE_1_FIXIDX,
9446     GLIBC_C99_INLINE_1A_FIXIDX,
9447     GLIBC_C99_INLINE_2_FIXIDX,
9448     GLIBC_C99_INLINE_3_FIXIDX,
9449     GLIBC_C99_INLINE_4_FIXIDX,
9450     GLIBC_MUTEX_INIT_FIXIDX,
9451     GLIBC_STDINT_FIXIDX,
9452     GLIBC_STRNCPY_FIXIDX,
9453     GLIBC_TGMATH_FIXIDX,
9454     GNU_TYPES_FIXIDX,
9455     HP_INLINE_FIXIDX,
9456     HP_SYSFILE_FIXIDX,
9457     HPPA_HPUX_FP_MACROS_FIXIDX,
9458     HPUX10_CPP_POW_INLINE_FIXIDX,
9459     HPUX11_CPP_POW_INLINE_FIXIDX,
9460     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9461     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9462     HPUX10_STDIO_DECLARATIONS_FIXIDX,
9463     HPUX11_ABS_FIXIDX,
9464     HPUX11_FABSF_FIXIDX,
9465     HPUX11_PTHREAD_CONST_FIXIDX,
9466     HPUX11_SIZE_T_FIXIDX,
9467     HPUX11_SNPRINTF_FIXIDX,
9468     HPUX11_VSNPRINTF_FIXIDX,
9469     HPUX8_BOGUS_INLINES_FIXIDX,
9470     HPUX_CTYPE_MACROS_FIXIDX,
9471     HPUX_HTONL_FIXIDX,
9472     HPUX_LONG_DOUBLE_FIXIDX,
9473     HPUX_LONG_DOUBLE_2_FIXIDX,
9474     HPUX_SYSTIME_FIXIDX,
9475     HPUX_SPU_INFO_FIXIDX,
9476     HPUX11_EXTERN_SENDFILE_FIXIDX,
9477     HPUX11_EXTERN_SENDPATH_FIXIDX,
9478     HPUX_EXTERN_ERRNO_FIXIDX,
9479     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9480     HPUX_C99_INTPTR_FIXIDX,
9481     HPUX_C99_INTTYPES_FIXIDX,
9482     HPUX_C99_INTTYPES2_FIXIDX,
9483     HPUX_STDINT_LEAST_FAST_FIXIDX,
9484     HPUX_INTTYPE_INT8_T_FIXIDX,
9485     HPUX_IMAGINARY_I_FIXIDX,
9486     HUGE_VAL_HEX_FIXIDX,
9487     HUGE_VALF_HEX_FIXIDX,
9488     HUGE_VALL_HEX_FIXIDX,
9489     INT_ABORT_FREE_AND_EXIT_FIXIDX,
9490     IO_QUOTES_DEF_FIXIDX,
9491     IO_QUOTES_USE_FIXIDX,
9492     IP_MISSING_SEMI_FIXIDX,
9493     IRIX_LIMITS_CONST_FIXIDX,
9494     IRIX_STDIO_VA_LIST_FIXIDX,
9495     KANDR_CONCAT_FIXIDX,
9496     LINUX_IA64_UCONTEXT_FIXIDX,
9497     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9498     LYNXOS_MISSING_PUTENV_FIXIDX,
9499     MACHINE_ANSI_H_VA_LIST_FIXIDX,
9500     MACHINE_NAME_FIXIDX,
9501     MATH_EXCEPTION_FIXIDX,
9502     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9503     NESTED_AUTH_DES_FIXIDX,
9504     NETBSD_C99_INLINE_1_FIXIDX,
9505     NETBSD_C99_INLINE_2_FIXIDX,
9506     NETBSD_EXTRA_SEMICOLON_FIXIDX,
9507     NEWLIB_STDINT_1_FIXIDX,
9508     NEWLIB_STDINT_2_FIXIDX,
9509     NEXT_MATH_PREFIX_FIXIDX,
9510     NEXT_TEMPLATE_FIXIDX,
9511     NEXT_VOLITILE_FIXIDX,
9512     NEXT_WAIT_UNION_FIXIDX,
9513     NODEENT_SYNTAX_FIXIDX,
9514     OPENBSD_NULL_DEFINITION_FIXIDX,
9515     OBSTACK_LVALUE_CAST_FIXIDX,
9516     OPENBSD_VA_START_FIXIDX,
9517     OSF_NAMESPACE_A_FIXIDX,
9518     OSF_NAMESPACE_C_FIXIDX,
9519     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9520     READ_RET_TYPE_FIXIDX,
9521     RPC_XDR_LVALUE_CAST_A_FIXIDX,
9522     RPC_XDR_LVALUE_CAST_B_FIXIDX,
9523     RS6000_DOUBLE_FIXIDX,
9524     RS6000_FCHMOD_FIXIDX,
9525     RS6000_PARAM_FIXIDX,
9526     SOLARIS___RESTRICT_FIXIDX,
9527     SOLARIS_COMPLEX_FIXIDX,
9528     SOLARIS_COMPLEX_CXX_FIXIDX,
9529     SOLARIS_CXX_LINKAGE_FIXIDX,
9530     SOLARIS_GETC_STRICT_STDC_FIXIDX,
9531     SOLARIS_LONGJMP_NORETURN_FIXIDX,
9532     SOLARIS_MATH_1_FIXIDX,
9533     SOLARIS_MATH_2_FIXIDX,
9534     SOLARIS_MATH_3_FIXIDX,
9535     SOLARIS_MATH_4_FIXIDX,
9536     SOLARIS_MATH_8_FIXIDX,
9537     SOLARIS_MATH_9_FIXIDX,
9538     SOLARIS_MATH_10_FIXIDX,
9539     SOLARIS_MUTEX_INIT_2_FIXIDX,
9540     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9541     SOLARIS_RWLOCK_INIT_1_FIXIDX,
9542     SOLARIS_ONCE_INIT_1_FIXIDX,
9543     SOLARIS_ONCE_INIT_2_FIXIDX,
9544     SOLARIS_INT_CONST_FIXIDX,
9545     SOLARIS_INT_LIMITS_1_FIXIDX,
9546     SOLARIS_INT_LIMITS_2_FIXIDX,
9547     SOLARIS_INT_LIMITS_3_FIXIDX,
9548     SOLARIS_INT_TYPES_FIXIDX,
9549     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9550     SOLARIS_STD___FILBUF_FIXIDX,
9551     SOLARIS_STDIO_TAG_FIXIDX,
9552     SOLARIS_SYS_VA_LIST_FIXIDX,
9553     STATSSWTCH_FIXIDX,
9554     STDIO_STDARG_H_FIXIDX,
9555     STDIO_VA_LIST_FIXIDX,
9556     STDIO_VA_LIST_CLIENTS_FIXIDX,
9557     STRICT_ANSI_NOT_FIXIDX,
9558     STRICT_ANSI_NOT_CTD_FIXIDX,
9559     STRICT_ANSI_ONLY_FIXIDX,
9560     STRUCT_FILE_FIXIDX,
9561     STRUCT_SOCKADDR_FIXIDX,
9562     SUN_AUTH_PROTO_FIXIDX,
9563     SUN_BOGUS_IFDEF_FIXIDX,
9564     SUN_CATMACRO_FIXIDX,
9565     SUN_MALLOC_FIXIDX,
9566     SUN_RUSERS_SEMI_FIXIDX,
9567     SUN_SIGNAL_FIXIDX,
9568     SUNOS_STRLEN_FIXIDX,
9569     SVR4_DISABLE_OPT_FIXIDX,
9570     SVR4_GETCWD_FIXIDX,
9571     SVR4_PROFIL_FIXIDX,
9572     SVR4_SIGHANDLER_TYPE_FIXIDX,
9573     SVR4_UNDECLARED_GETRNGE_FIXIDX,
9574     SYSV68_STRING_FIXIDX,
9575     SYSZ_STDLIB_FOR_SUN_FIXIDX,
9576     THREAD_KEYWORD_FIXIDX,
9577     TINFO_CPLUSPLUS_FIXIDX,
9578     ULTRIX_CONST_FIXIDX,
9579     ULTRIX_CONST2_FIXIDX,
9580     VA_I960_MACRO_FIXIDX,
9581     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9582     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9583     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9584     VMS_USE_QUOTED_INCLUDE_FIXIDX,
9585     VMS_ADD_MISSING_BRACES_FIXIDX,
9586     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
9587     VMS_DECC_BUILTIN_FIXIDX,
9588     VMS_NO_64BIT_GETOPT_FIXIDX,
9589     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
9590     VMS_USE_FAST_SETJMP_FIXIDX,
9591     VOID_NULL_FIXIDX,
9592     VXWORKS_GCC_PROBLEM_FIXIDX,
9593     VXWORKS_IOCTL_MACRO_FIXIDX,
9594     VXWORKS_MKDIR_MACRO_FIXIDX,
9595     VXWORKS_NEEDS_VXTYPES_FIXIDX,
9596     VXWORKS_NEEDS_VXWORKS_FIXIDX,
9597     VXWORKS_REGS_FIXIDX,
9598     VXWORKS_TIME_FIXIDX,
9599     VXWORKS_WRITE_CONST_FIXIDX,
9600     X11_CLASS_FIXIDX,
9601     X11_CLASS_USAGE_FIXIDX,
9602     X11_NEW_FIXIDX,
9603     X11_SPRINTF_FIXIDX,
9604     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
9605     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
9606     COMPLIER_H_TRADCPP_FIXIDX
9607 } t_fixinc_idx;
9609 tFixDesc fixDescList[ FIX_COUNT ] = {
9610   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
9611      apzAab_Aix_StdioMachs,
9612      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
9615   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
9616      apzAab_Aix_FcntlMachs,
9617      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
9620   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
9621      apzAab_Darwin7_9_Long_Double_FuncsMachs,
9622      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9623      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9625   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
9626      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9627      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9628      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9630   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
9631      apzAab_Fd_Zero_Gnu_Types_HMachs,
9632      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9633      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9635   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
9636      apzAab_Fd_Zero_Selectbits_HMachs,
9637      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9638      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9640   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
9641      apzAab_Solaris_Sys_Varargs_HMachs,
9642      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9643      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9645   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
9646      apzAab_Sun_MemcpyMachs,
9647      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9648      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
9650   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
9651      apzAab_Vxworks_AssertMachs,
9652      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9653      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
9655   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
9656      apzAab_Vxworks_Regs_VxtypesMachs,
9657      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9658      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
9660   {  zAab_Vxworks_StdintName,    zAab_Vxworks_StdintList,
9661      apzAab_Vxworks_StdintMachs,
9662      AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9663      aAab_Vxworks_StdintTests,   apzAab_Vxworks_StdintPatch, 0 },
9665   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
9666      apzAab_Vxworks_UnistdMachs,
9667      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9668      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
9670   {  zAix_AssertName,    zAix_AssertList,
9671      apzAix_AssertMachs,
9672      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673      aAix_AssertTests,   apzAix_AssertPatch, 0 },
9675   {  zAix_ComplexName,    zAix_ComplexList,
9676      apzAix_ComplexMachs,
9677      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
9680   {  zAix_MallocName,    zAix_MallocList,
9681      apzAix_MallocMachs,
9682      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683      aAix_MallocTests,   apzAix_MallocPatch, 0 },
9685   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
9686      apzAix_Net_If_ArpMachs,
9687      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
9690   {  zAix_NullName,    zAix_NullList,
9691      apzAix_NullMachs,
9692      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693      aAix_NullTests,   apzAix_NullPatch, 0 },
9695   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
9696      apzAix_Once_Init_1Machs,
9697      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
9700   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
9701      apzAix_Once_Init_2Machs,
9702      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
9705   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
9706      apzAix_Mutex_Initializer_1Machs,
9707      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
9710   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
9711      apzAix_Cond_Initializer_1Machs,
9712      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
9715   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
9716      apzAix_Rwlock_Initializer_1Machs,
9717      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
9720   {  zAix_PthreadName,    zAix_PthreadList,
9721      apzAix_PthreadMachs,
9722      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
9725   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
9726      apzAix_Stdint_1Machs,
9727      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
9730   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
9731      apzAix_Stdint_2Machs,
9732      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
9735   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
9736      apzAix_Stdint_3Machs,
9737      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
9740   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
9741      apzAix_Stdint_4Machs,
9742      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
9745   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
9746      apzAix_Stdint_5Machs,
9747      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
9750   {  zAix_SysmachineName,    zAix_SysmachineList,
9751      apzAix_SysmachineMachs,
9752      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9753      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
9755   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
9756      apzAix_Syswait_2Machs,
9757      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
9760   {  zAix_VolatileName,    zAix_VolatileList,
9761      apzAix_VolatileMachs,
9762      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9763      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
9765   {  zAlpha___AssertName,    zAlpha___AssertList,
9766      apzAlpha___AssertMachs,
9767      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
9770   {  zAlpha_AssertName,    zAlpha_AssertList,
9771      apzAlpha_AssertMachs,
9772      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
9775   {  zAlpha_GetoptName,    zAlpha_GetoptList,
9776      apzAlpha_GetoptMachs,
9777      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
9780   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
9781      apzAlpha_If_SemicolonMachs,
9782      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
9785   {  zAlpha_ParensName,    zAlpha_ParensList,
9786      apzAlpha_ParensMachs,
9787      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
9790   {  zAlpha_SbrkName,    zAlpha_SbrkList,
9791      apzAlpha_SbrkMachs,
9792      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
9795   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
9796      apzAvoid_Bool_DefineMachs,
9797      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
9800   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
9801      apzAvoid_Bool_TypeMachs,
9802      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
9805   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
9806      apzAvoid_Wchar_T_TypeMachs,
9807      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
9810   {  zBad_Struct_TermName,    zBad_Struct_TermList,
9811      apzBad_Struct_TermMachs,
9812      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
9815   {  zBadquoteName,    zBadquoteList,
9816      apzBadquoteMachs,
9817      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818      aBadquoteTests,   apzBadquotePatch, 0 },
9820   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
9821      apzBroken_Assert_StdioMachs,
9822      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
9825   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
9826      apzBroken_Assert_StdlibMachs,
9827      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
9830   {  zBroken_CabsName,    zBroken_CabsList,
9831      apzBroken_CabsMachs,
9832      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9833      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
9835   {  zBroken_NanName,    zBroken_NanList,
9836      apzBroken_NanMachs,
9837      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838      aBroken_NanTests,   apzBroken_NanPatch, 0 },
9840   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
9841      apzBsd_Stdio_Attrs_ConflictMachs,
9842      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9845   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
9846      apzCtrl_Quotes_DefMachs,
9847      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
9850   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
9851      apzCtrl_Quotes_UseMachs,
9852      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
9855   {  zCxx_UnreadyName,    zCxx_UnreadyList,
9856      apzCxx_UnreadyMachs,
9857      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
9860   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
9861      apzDarwin_9_Long_Double_Funcs_2Machs,
9862      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
9865   {  zDarwin_ExterncName,    zDarwin_ExterncList,
9866      apzDarwin_ExterncMachs,
9867      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
9870   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
9871      apzDarwin_Gcc4_BreakageMachs,
9872      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9873      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
9875   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
9876      apzDarwin_Private_ExternMachs,
9877      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9878      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
9880   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
9881      apzDarwin_Stdint_1Machs,
9882      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
9885   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
9886      apzDarwin_Stdint_2Machs,
9887      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
9890   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
9891      apzDarwin_Stdint_3Machs,
9892      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
9895   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
9896      apzDarwin_Stdint_4Machs,
9897      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
9900   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
9901      apzDarwin_Stdint_5Machs,
9902      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
9905   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
9906      apzDarwin_Stdint_6Machs,
9907      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
9910   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
9911      apzDarwin_Stdint_7Machs,
9912      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
9915   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9916      apzDec_Intern_AsmMachs,
9917      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9918      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9920   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9921      apzDjgpp_Wchar_HMachs,
9922      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9923      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9925   {  zEcd_CursorName,    zEcd_CursorList,
9926      apzEcd_CursorMachs,
9927      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9930   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9931      apzFreebsd_Gcc3_BreakageMachs,
9932      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9935   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9936      apzFreebsd_Gcc4_BreakageMachs,
9937      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9940   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9941      apzGlibc_C99_Inline_1Machs,
9942      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9945   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
9946      apzGlibc_C99_Inline_1aMachs,
9947      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9948      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
9950   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9951      apzGlibc_C99_Inline_2Machs,
9952      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9953      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9955   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9956      apzGlibc_C99_Inline_3Machs,
9957      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9958      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9960   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9961      apzGlibc_C99_Inline_4Machs,
9962      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9963      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9965   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9966      apzGlibc_Mutex_InitMachs,
9967      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9968      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9970   {  zGlibc_StdintName,    zGlibc_StdintList,
9971      apzGlibc_StdintMachs,
9972      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
9975   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
9976      apzGlibc_StrncpyMachs,
9977      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
9980   {  zGlibc_TgmathName,    zGlibc_TgmathList,
9981      apzGlibc_TgmathMachs,
9982      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
9985   {  zGnu_TypesName,    zGnu_TypesList,
9986      apzGnu_TypesMachs,
9987      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9988      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9990   {  zHp_InlineName,    zHp_InlineList,
9991      apzHp_InlineMachs,
9992      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9995   {  zHp_SysfileName,    zHp_SysfileList,
9996      apzHp_SysfileMachs,
9997      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
10000   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
10001      apzHppa_Hpux_Fp_MacrosMachs,
10002      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10003      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
10005   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
10006      apzHpux10_Cpp_Pow_InlineMachs,
10007      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10008      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
10010   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
10011      apzHpux11_Cpp_Pow_InlineMachs,
10012      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10013      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
10015   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
10016      apzHpux10_Ctype_Declarations1Machs,
10017      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
10020   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
10021      apzHpux10_Ctype_Declarations2Machs,
10022      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
10025   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
10026      apzHpux10_Stdio_DeclarationsMachs,
10027      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
10030   {  zHpux11_AbsName,    zHpux11_AbsList,
10031      apzHpux11_AbsMachs,
10032      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
10035   {  zHpux11_FabsfName,    zHpux11_FabsfList,
10036      apzHpux11_FabsfMachs,
10037      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
10040   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
10041      apzHpux11_Pthread_ConstMachs,
10042      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
10045   {  zHpux11_Size_TName,    zHpux11_Size_TList,
10046      apzHpux11_Size_TMachs,
10047      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10048      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
10050   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
10051      apzHpux11_SnprintfMachs,
10052      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10053      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
10055   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
10056      apzHpux11_VsnprintfMachs,
10057      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10058      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
10060   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
10061      apzHpux8_Bogus_InlinesMachs,
10062      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
10063      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
10065   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
10066      apzHpux_Ctype_MacrosMachs,
10067      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
10070   {  zHpux_HtonlName,    zHpux_HtonlList,
10071      apzHpux_HtonlMachs,
10072      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
10075   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
10076      apzHpux_Long_DoubleMachs,
10077      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
10078      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
10080   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
10081      apzHpux_Long_Double_2Machs,
10082      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10083      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
10085   {  zHpux_SystimeName,    zHpux_SystimeList,
10086      apzHpux_SystimeMachs,
10087      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
10090   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
10091      apzHpux_Spu_InfoMachs,
10092      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
10095   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
10096      apzHpux11_Extern_SendfileMachs,
10097      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
10100   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
10101      apzHpux11_Extern_SendpathMachs,
10102      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10103      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
10105   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
10106      apzHpux_Extern_ErrnoMachs,
10107      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10108      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
10110   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
10111      apzHpux_Pthread_InitializersMachs,
10112      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
10113      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
10115   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
10116      apzHpux_C99_IntptrMachs,
10117      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
10118      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
10120   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
10121      apzHpux_C99_InttypesMachs,
10122      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
10123      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
10125   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
10126      apzHpux_C99_Inttypes2Machs,
10127      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
10128      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
10130   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
10131      apzHpux_Stdint_Least_FastMachs,
10132      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
10135   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
10136      apzHpux_Inttype_Int8_TMachs,
10137      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10138      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
10140   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
10141      apzHpux_Imaginary_IMachs,
10142      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10143      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
10145   {  zHuge_Val_HexName,    zHuge_Val_HexList,
10146      apzHuge_Val_HexMachs,
10147      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
10150   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
10151      apzHuge_Valf_HexMachs,
10152      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10153      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
10155   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
10156      apzHuge_Vall_HexMachs,
10157      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10158      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
10160   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
10161      apzInt_Abort_Free_And_ExitMachs,
10162      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
10165   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
10166      apzIo_Quotes_DefMachs,
10167      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
10170   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
10171      apzIo_Quotes_UseMachs,
10172      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10173      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
10175   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
10176      apzIp_Missing_SemiMachs,
10177      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
10178      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
10180   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
10181      apzIrix_Limits_ConstMachs,
10182      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10183      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
10185   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
10186      apzIrix_Stdio_Va_ListMachs,
10187      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10188      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
10190   {  zKandr_ConcatName,    zKandr_ConcatList,
10191      apzKandr_ConcatMachs,
10192      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10193      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
10195   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
10196      apzLinux_Ia64_UcontextMachs,
10197      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10198      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
10200   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
10201      apzLynxos_No_Warning_In_Sys_Time_HMachs,
10202      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10203      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
10205   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
10206      apzLynxos_Missing_PutenvMachs,
10207      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
10210   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
10211      apzMachine_Ansi_H_Va_ListMachs,
10212      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
10215   {  zMachine_NameName,    zMachine_NameList,
10216      apzMachine_NameMachs,
10217      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218      aMachine_NameTests,   apzMachine_NamePatch, 0 },
10220   {  zMath_ExceptionName,    zMath_ExceptionList,
10221      apzMath_ExceptionMachs,
10222      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
10225   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
10226      apzMath_Huge_Val_From_Dbl_MaxMachs,
10227      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
10228      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
10230   {  zNested_Auth_DesName,    zNested_Auth_DesList,
10231      apzNested_Auth_DesMachs,
10232      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
10235   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
10236      apzNetbsd_C99_Inline_1Machs,
10237      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10238      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
10240   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
10241      apzNetbsd_C99_Inline_2Machs,
10242      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10243      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
10245   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
10246      apzNetbsd_Extra_SemicolonMachs,
10247      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10248      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
10250   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
10251      apzNewlib_Stdint_1Machs,
10252      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
10253      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
10255   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
10256      apzNewlib_Stdint_2Machs,
10257      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
10260   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
10261      apzNext_Math_PrefixMachs,
10262      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10263      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
10265   {  zNext_TemplateName,    zNext_TemplateList,
10266      apzNext_TemplateMachs,
10267      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10268      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
10270   {  zNext_VolitileName,    zNext_VolitileList,
10271      apzNext_VolitileMachs,
10272      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
10275   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
10276      apzNext_Wait_UnionMachs,
10277      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
10280   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
10281      apzNodeent_SyntaxMachs,
10282      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10283      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
10285   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
10286      apzOpenbsd_Null_DefinitionMachs,
10287      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10288      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
10290   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
10291      apzObstack_Lvalue_CastMachs,
10292      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10293      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
10295   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
10296      apzOpenbsd_Va_StartMachs,
10297      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10298      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
10300   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
10301      apzOsf_Namespace_AMachs,
10302      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10303      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
10305   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
10306      apzOsf_Namespace_CMachs,
10307      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10308      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
10310   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
10311      apzPthread_Incomplete_Struct_ArgumentMachs,
10312      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10313      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10315   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
10316      apzRead_Ret_TypeMachs,
10317      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10318      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
10320   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
10321      apzRpc_Xdr_Lvalue_Cast_AMachs,
10322      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10323      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10325   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
10326      apzRpc_Xdr_Lvalue_Cast_BMachs,
10327      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10328      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10330   {  zRs6000_DoubleName,    zRs6000_DoubleList,
10331      apzRs6000_DoubleMachs,
10332      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10333      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
10335   {  zRs6000_FchmodName,    zRs6000_FchmodList,
10336      apzRs6000_FchmodMachs,
10337      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10338      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
10340   {  zRs6000_ParamName,    zRs6000_ParamList,
10341      apzRs6000_ParamMachs,
10342      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10343      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
10345   {  zSolaris___RestrictName,    zSolaris___RestrictList,
10346      apzSolaris___RestrictMachs,
10347      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10348      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
10350   {  zSolaris_ComplexName,    zSolaris_ComplexList,
10351      apzSolaris_ComplexMachs,
10352      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10353      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
10355   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
10356      apzSolaris_Complex_CxxMachs,
10357      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10358      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
10360   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
10361      apzSolaris_Cxx_LinkageMachs,
10362      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10363      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
10365   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
10366      apzSolaris_Getc_Strict_StdcMachs,
10367      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10368      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
10370   {  zSolaris_Longjmp_NoreturnName,    zSolaris_Longjmp_NoreturnList,
10371      apzSolaris_Longjmp_NoreturnMachs,
10372      SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10373      aSolaris_Longjmp_NoreturnTests,   apzSolaris_Longjmp_NoreturnPatch, 0 },
10375   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
10376      apzSolaris_Math_1Machs,
10377      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10378      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
10380   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
10381      apzSolaris_Math_2Machs,
10382      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10383      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
10385   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
10386      apzSolaris_Math_3Machs,
10387      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10388      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
10390   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
10391      apzSolaris_Math_4Machs,
10392      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10393      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
10395   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
10396      apzSolaris_Math_8Machs,
10397      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10398      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
10400   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
10401      apzSolaris_Math_9Machs,
10402      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10403      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
10405   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
10406      apzSolaris_Math_10Machs,
10407      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10408      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
10410   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
10411      apzSolaris_Mutex_Init_2Machs,
10412      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10413      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
10415   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
10416      apzSolaris_Pow_Int_OverloadMachs,
10417      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10418      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
10420   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
10421      apzSolaris_Rwlock_Init_1Machs,
10422      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10423      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
10425   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
10426      apzSolaris_Once_Init_1Machs,
10427      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10428      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
10430   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
10431      apzSolaris_Once_Init_2Machs,
10432      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10433      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
10435   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
10436      apzSolaris_Int_ConstMachs,
10437      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10438      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
10440   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
10441      apzSolaris_Int_Limits_1Machs,
10442      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10443      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
10445   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
10446      apzSolaris_Int_Limits_2Machs,
10447      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10448      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
10450   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
10451      apzSolaris_Int_Limits_3Machs,
10452      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10453      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
10455   {  zSolaris_Int_TypesName,    zSolaris_Int_TypesList,
10456      apzSolaris_Int_TypesMachs,
10457      SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10458      aSolaris_Int_TypesTests,   apzSolaris_Int_TypesPatch, 0 },
10460   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
10461      apzSolaris_Posix_Spawn_RestrictMachs,
10462      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10463      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10465   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
10466      apzSolaris_Std___FilbufMachs,
10467      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10468      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
10470   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
10471      apzSolaris_Stdio_TagMachs,
10472      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10473      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
10475   {  zSolaris_Sys_Va_ListName,    zSolaris_Sys_Va_ListList,
10476      apzSolaris_Sys_Va_ListMachs,
10477      SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10478      aSolaris_Sys_Va_ListTests,   apzSolaris_Sys_Va_ListPatch, 0 },
10480   {  zStatsswtchName,    zStatsswtchList,
10481      apzStatsswtchMachs,
10482      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10483      aStatsswtchTests,   apzStatsswtchPatch, 0 },
10485   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
10486      apzStdio_Stdarg_HMachs,
10487      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10488      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
10490   {  zStdio_Va_ListName,    zStdio_Va_ListList,
10491      apzStdio_Va_ListMachs,
10492      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10493      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
10495   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
10496      apzStdio_Va_List_ClientsMachs,
10497      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10498      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
10500   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
10501      apzStrict_Ansi_NotMachs,
10502      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10503      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
10505   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
10506      apzStrict_Ansi_Not_CtdMachs,
10507      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10508      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
10510   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
10511      apzStrict_Ansi_OnlyMachs,
10512      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10513      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
10515   {  zStruct_FileName,    zStruct_FileList,
10516      apzStruct_FileMachs,
10517      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10518      aStruct_FileTests,   apzStruct_FilePatch, 0 },
10520   {  zStruct_SockaddrName,    zStruct_SockaddrList,
10521      apzStruct_SockaddrMachs,
10522      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10523      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
10525   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
10526      apzSun_Auth_ProtoMachs,
10527      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10528      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
10530   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
10531      apzSun_Bogus_IfdefMachs,
10532      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10533      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
10535   {  zSun_CatmacroName,    zSun_CatmacroList,
10536      apzSun_CatmacroMachs,
10537      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10538      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
10540   {  zSun_MallocName,    zSun_MallocList,
10541      apzSun_MallocMachs,
10542      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10543      aSun_MallocTests,   apzSun_MallocPatch, 0 },
10545   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
10546      apzSun_Rusers_SemiMachs,
10547      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10548      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
10550   {  zSun_SignalName,    zSun_SignalList,
10551      apzSun_SignalMachs,
10552      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10553      aSun_SignalTests,   apzSun_SignalPatch, 0 },
10555   {  zSunos_StrlenName,    zSunos_StrlenList,
10556      apzSunos_StrlenMachs,
10557      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10558      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
10560   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
10561      apzSvr4_Disable_OptMachs,
10562      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10563      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
10565   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
10566      apzSvr4_GetcwdMachs,
10567      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10568      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
10570   {  zSvr4_ProfilName,    zSvr4_ProfilList,
10571      apzSvr4_ProfilMachs,
10572      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10573      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
10575   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
10576      apzSvr4_Sighandler_TypeMachs,
10577      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10578      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
10580   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
10581      apzSvr4_Undeclared_GetrngeMachs,
10582      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10583      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
10585   {  zSysv68_StringName,    zSysv68_StringList,
10586      apzSysv68_StringMachs,
10587      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10588      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
10590   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
10591      apzSysz_Stdlib_For_SunMachs,
10592      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10593      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
10595   {  zThread_KeywordName,    zThread_KeywordList,
10596      apzThread_KeywordMachs,
10597      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10598      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
10600   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
10601      apzTinfo_CplusplusMachs,
10602      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10603      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
10605   {  zUltrix_ConstName,    zUltrix_ConstList,
10606      apzUltrix_ConstMachs,
10607      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10608      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
10610   {  zUltrix_Const2Name,    zUltrix_Const2List,
10611      apzUltrix_Const2Machs,
10612      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10613      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
10615   {  zVa_I960_MacroName,    zVa_I960_MacroList,
10616      apzVa_I960_MacroMachs,
10617      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10618      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
10620   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
10621      apzVms_Define_Can_Use_Extern_PrefixMachs,
10622      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10623      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10625   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
10626      apzVms_Use_Pragma_Extern_ModelMachs,
10627      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10628      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10630   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
10631      apzVms_Disable_Decc_String_BuiltinsMachs,
10632      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10633      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10635   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
10636      apzVms_Use_Quoted_IncludeMachs,
10637      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10638      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
10640   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
10641      apzVms_Add_Missing_BracesMachs,
10642      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10643      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
10645   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
10646      apzVms_Do_Not_Redeclare_HostaliasMachs,
10647      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10648      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
10650   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
10651      apzVms_Decc_BuiltinMachs,
10652      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
10653      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
10655   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
10656      apzVms_No_64bit_GetoptMachs,
10657      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10658      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
10660   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
10661      apzVms_Forward_Declare_StructMachs,
10662      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10663      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
10665   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
10666      apzVms_Use_Fast_SetjmpMachs,
10667      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10668      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
10670   {  zVoid_NullName,    zVoid_NullList,
10671      apzVoid_NullMachs,
10672      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10673      aVoid_NullTests,   apzVoid_NullPatch, 0 },
10675   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
10676      apzVxworks_Gcc_ProblemMachs,
10677      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10678      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
10680   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
10681      apzVxworks_Ioctl_MacroMachs,
10682      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10683      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
10685   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
10686      apzVxworks_Mkdir_MacroMachs,
10687      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10688      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
10690   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
10691      apzVxworks_Needs_VxtypesMachs,
10692      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10693      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
10695   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
10696      apzVxworks_Needs_VxworksMachs,
10697      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10698      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
10700   {  zVxworks_RegsName,    zVxworks_RegsList,
10701      apzVxworks_RegsMachs,
10702      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10703      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
10705   {  zVxworks_TimeName,    zVxworks_TimeList,
10706      apzVxworks_TimeMachs,
10707      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10708      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
10710   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
10711      apzVxworks_Write_ConstMachs,
10712      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10713      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
10715   {  zX11_ClassName,    zX11_ClassList,
10716      apzX11_ClassMachs,
10717      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10718      aX11_ClassTests,   apzX11_ClassPatch, 0 },
10720   {  zX11_Class_UsageName,    zX11_Class_UsageList,
10721      apzX11_Class_UsageMachs,
10722      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10723      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
10725   {  zX11_NewName,    zX11_NewList,
10726      apzX11_NewMachs,
10727      X11_NEW_TEST_CT, FD_MACH_ONLY,
10728      aX11_NewTests,   apzX11_NewPatch, 0 },
10730   {  zX11_SprintfName,    zX11_SprintfList,
10731      apzX11_SprintfMachs,
10732      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10733      aX11_SprintfTests,   apzX11_SprintfPatch, 0 },
10735   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
10736      apzFeraiseexcept_Nosse_InvalidMachs,
10737      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10738      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
10740   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
10741      apzFeraiseexcept_Nosse_DivbyzeroMachs,
10742      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10743      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
10745   {  zComplier_H_TradcppName,    zComplier_H_TradcppList,
10746      apzComplier_H_TradcppMachs,
10747      COMPLIER_H_TRADCPP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10748      aComplier_H_TradcppTests,   apzComplier_H_TradcppPatch, 0 }