2015-03-13 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / fixincludes / fixincl.x
blob77b8f77aa992858ae49e5dbe38e98cd014427700
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  February 15, 2015 at 12:33:10 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 Sun Feb 15 12:33:10 PST 2015
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 225 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[\t ][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_Strtof_Const fix
1389  */
1390 tSCC zAix_Strtof_ConstName[] =
1391      "aix_strtof_const";
1394  *  File name selection pattern
1395  */
1396 tSCC zAix_Strtof_ConstList[] =
1397   "stdlib.h\0";
1399  *  Machine/OS name selection pattern
1400  */
1401 #define apzAix_Strtof_ConstMachs (const char**)NULL
1404  *  content selection pattern - do fix if pattern found
1405  */
1406 tSCC zAix_Strtof_ConstSelect0[] =
1407        "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1409 #define    AIX_STRTOF_CONST_TEST_CT  1
1410 static tTestDesc aAix_Strtof_ConstTests[] = {
1411   { TT_EGREP,    zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1414  *  Fix Command Arguments for Aix_Strtof_Const
1415  */
1416 static const char* apzAix_Strtof_ConstPatch[] = {
1417     "format",
1418     "%1(const char *, char **);",
1419     (char*)NULL };
1421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1423  *  Description of Aix_Sysmachine fix
1424  */
1425 tSCC zAix_SysmachineName[] =
1426      "aix_sysmachine";
1429  *  File name selection pattern
1430  */
1431 tSCC zAix_SysmachineList[] =
1432   "sys/machine.h\0";
1434  *  Machine/OS name selection pattern
1435  */
1436 #define apzAix_SysmachineMachs (const char**)NULL
1439  *  content selection pattern - do fix if pattern found
1440  */
1441 tSCC zAix_SysmachineSelect0[] =
1442        "\\\\ +\n";
1444 #define    AIX_SYSMACHINE_TEST_CT  1
1445 static tTestDesc aAix_SysmachineTests[] = {
1446   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1449  *  Fix Command Arguments for Aix_Sysmachine
1450  */
1451 static const char* apzAix_SysmachinePatch[] = {
1452     "format",
1453     "\\\n",
1454     (char*)NULL };
1456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1458  *  Description of Aix_Syswait_2 fix
1459  */
1460 tSCC zAix_Syswait_2Name[] =
1461      "aix_syswait_2";
1464  *  File name selection pattern
1465  */
1466 tSCC zAix_Syswait_2List[] =
1467   "sys/wait.h\0";
1469  *  Machine/OS name selection pattern
1470  */
1471 #define apzAix_Syswait_2Machs (const char**)NULL
1474  *  content selection pattern - do fix if pattern found
1475  */
1476 tSCC zAix_Syswait_2Select0[] =
1477        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1479 #define    AIX_SYSWAIT_2_TEST_CT  1
1480 static tTestDesc aAix_Syswait_2Tests[] = {
1481   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1484  *  Fix Command Arguments for Aix_Syswait_2
1485  */
1486 static const char* apzAix_Syswait_2Patch[] = {
1487     "format",
1488     "? (int)%1",
1489     (char*)NULL };
1491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1493  *  Description of Aix_Volatile fix
1494  */
1495 tSCC zAix_VolatileName[] =
1496      "aix_volatile";
1499  *  File name selection pattern
1500  */
1501 tSCC zAix_VolatileList[] =
1502   "sys/signal.h\0";
1504  *  Machine/OS name selection pattern
1505  */
1506 #define apzAix_VolatileMachs (const char**)NULL
1509  *  content selection pattern - do fix if pattern found
1510  */
1511 tSCC zAix_VolatileSelect0[] =
1512        "typedef volatile int sig_atomic_t";
1514 #define    AIX_VOLATILE_TEST_CT  1
1515 static tTestDesc aAix_VolatileTests[] = {
1516   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1519  *  Fix Command Arguments for Aix_Volatile
1520  */
1521 static const char* apzAix_VolatilePatch[] = {
1522     "format",
1523     "typedef int sig_atomic_t",
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        "__assert\\(char \\*, char \\*, int\\)";
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     "__assert(const char *, const char *, int)",
1559     (char*)NULL };
1561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1563  *  Description of Alpha_Assert fix
1564  */
1565 tSCC zAlpha_AssertName[] =
1566      "alpha_assert";
1569  *  File name selection pattern
1570  */
1571 tSCC zAlpha_AssertList[] =
1572   "assert.h\0";
1574  *  Machine/OS name selection pattern
1575  */
1576 #define apzAlpha_AssertMachs (const char**)NULL
1579  *  content selection pattern - do fix if pattern found
1580  */
1581 tSCC zAlpha_AssertSelect0[] =
1582        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1584 #define    ALPHA_ASSERT_TEST_CT  1
1585 static tTestDesc aAlpha_AssertTests[] = {
1586   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1589  *  Fix Command Arguments for Alpha_Assert
1590  */
1591 static const char* apzAlpha_AssertPatch[] = {
1592     "format",
1593     "%1(EX)",
1594     (char*)NULL };
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1598  *  Description of Alpha_Getopt fix
1599  */
1600 tSCC zAlpha_GetoptName[] =
1601      "alpha_getopt";
1604  *  File name selection pattern
1605  */
1606 tSCC zAlpha_GetoptList[] =
1607   "stdio.h\0stdlib.h\0";
1609  *  Machine/OS name selection pattern
1610  */
1611 #define apzAlpha_GetoptMachs (const char**)NULL
1614  *  content selection pattern - do fix if pattern found
1615  */
1616 tSCC zAlpha_GetoptSelect0[] =
1617        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1619 #define    ALPHA_GETOPT_TEST_CT  1
1620 static tTestDesc aAlpha_GetoptTests[] = {
1621   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1624  *  Fix Command Arguments for Alpha_Getopt
1625  */
1626 static const char* apzAlpha_GetoptPatch[] = {
1627     "format",
1628     "getopt(int, char *const[], const char *)",
1629     (char*)NULL };
1631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1633  *  Description of Alpha_If_Semicolon fix
1634  */
1635 tSCC zAlpha_If_SemicolonName[] =
1636      "alpha_if_semicolon";
1639  *  File name selection pattern
1640  */
1641 tSCC zAlpha_If_SemicolonList[] =
1642   "net/if.h\0";
1644  *  Machine/OS name selection pattern
1645  */
1646 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1649  *  content selection pattern - do fix if pattern found
1650  */
1651 tSCC zAlpha_If_SemicolonSelect0[] =
1652        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1654 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1655 static tTestDesc aAlpha_If_SemicolonTests[] = {
1656   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1659  *  Fix Command Arguments for Alpha_If_Semicolon
1660  */
1661 static const char* apzAlpha_If_SemicolonPatch[] = {
1662     "format",
1663     "struct sockaddr vmif_paddr;\t/*",
1664     (char*)NULL };
1666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1668  *  Description of Alpha_Parens fix
1669  */
1670 tSCC zAlpha_ParensName[] =
1671      "alpha_parens";
1674  *  File name selection pattern
1675  */
1676 tSCC zAlpha_ParensList[] =
1677   "sym.h\0";
1679  *  Machine/OS name selection pattern
1680  */
1681 #define apzAlpha_ParensMachs (const char**)NULL
1684  *  content selection pattern - do fix if pattern found
1685  */
1686 tSCC zAlpha_ParensSelect0[] =
1687        "#ifndef\\(__mips64\\)";
1689 #define    ALPHA_PARENS_TEST_CT  1
1690 static tTestDesc aAlpha_ParensTests[] = {
1691   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1694  *  Fix Command Arguments for Alpha_Parens
1695  */
1696 static const char* apzAlpha_ParensPatch[] = {
1697     "format",
1698     "#ifndef __mips64",
1699     (char*)NULL };
1701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1703  *  Description of Alpha_Sbrk fix
1704  */
1705 tSCC zAlpha_SbrkName[] =
1706      "alpha_sbrk";
1709  *  File name selection pattern
1710  */
1711 tSCC zAlpha_SbrkList[] =
1712   "unistd.h\0";
1714  *  Machine/OS name selection pattern
1715  */
1716 #define apzAlpha_SbrkMachs (const char**)NULL
1719  *  content selection pattern - do fix if pattern found
1720  */
1721 tSCC zAlpha_SbrkSelect0[] =
1722        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1724 #define    ALPHA_SBRK_TEST_CT  1
1725 static tTestDesc aAlpha_SbrkTests[] = {
1726   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1729  *  Fix Command Arguments for Alpha_Sbrk
1730  */
1731 static const char* apzAlpha_SbrkPatch[] = {
1732     "format",
1733     "void *sbrk(",
1734     (char*)NULL };
1736 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1738  *  Description of Avoid_Bool_Define fix
1739  */
1740 tSCC zAvoid_Bool_DefineName[] =
1741      "avoid_bool_define";
1744  *  File name selection pattern
1745  */
1746 tSCC zAvoid_Bool_DefineList[] =
1747   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1749  *  Machine/OS name selection pattern
1750  */
1751 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1754  *  content selection pattern - do fix if pattern found
1755  */
1756 tSCC zAvoid_Bool_DefineSelect0[] =
1757        "#[ \t]*define[ \t]+bool[ \t]";
1760  *  content bypass pattern - skip fix if pattern found
1761  */
1762 tSCC zAvoid_Bool_DefineBypass0[] =
1763        "__cplusplus";
1765 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1766 static tTestDesc aAvoid_Bool_DefineTests[] = {
1767   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1768   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1771  *  Fix Command Arguments for Avoid_Bool_Define
1772  */
1773 static const char* apzAvoid_Bool_DefinePatch[] = {
1774     "format",
1775     "#ifndef __cplusplus\n\
1776 %0\n\
1777 #endif",
1778     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1779     (char*)NULL };
1781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1783  *  Description of Avoid_Bool_Type fix
1784  */
1785 tSCC zAvoid_Bool_TypeName[] =
1786      "avoid_bool_type";
1789  *  File name selection pattern
1790  */
1791 tSCC zAvoid_Bool_TypeList[] =
1792   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1794  *  Machine/OS name selection pattern
1795  */
1796 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1799  *  content selection pattern - do fix if pattern found
1800  */
1801 tSCC zAvoid_Bool_TypeSelect0[] =
1802        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1805  *  content bypass pattern - skip fix if pattern found
1806  */
1807 tSCC zAvoid_Bool_TypeBypass0[] =
1808        "__cplusplus";
1810 #define    AVOID_BOOL_TYPE_TEST_CT  2
1811 static tTestDesc aAvoid_Bool_TypeTests[] = {
1812   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1813   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1816  *  Fix Command Arguments for Avoid_Bool_Type
1817  */
1818 static const char* apzAvoid_Bool_TypePatch[] = {
1819     "format",
1820     "#ifndef __cplusplus\n\
1821 %0\n\
1822 #endif",
1823     (char*)NULL };
1825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1827  *  Description of Avoid_Wchar_T_Type fix
1828  */
1829 tSCC zAvoid_Wchar_T_TypeName[] =
1830      "avoid_wchar_t_type";
1833  *  File name selection pattern
1834  */
1835 #define zAvoid_Wchar_T_TypeList (char*)NULL
1837  *  Machine/OS name selection pattern
1838  */
1839 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1842  *  content selection pattern - do fix if pattern found
1843  */
1844 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1845        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1848  *  content bypass pattern - skip fix if pattern found
1849  */
1850 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1851        "__cplusplus";
1852 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1853        "_LINUX_NLS_H";
1854 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1855        "XFree86: xc/lib/X11/Xlib\\.h";
1857 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1858 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1859   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1860   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1861   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1862   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1865  *  Fix Command Arguments for Avoid_Wchar_T_Type
1866  */
1867 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1868     "format",
1869     "#ifndef __cplusplus\n\
1870 %0\n\
1871 #endif",
1872     (char*)NULL };
1874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1876  *  Description of Bad_Struct_Term fix
1877  */
1878 tSCC zBad_Struct_TermName[] =
1879      "bad_struct_term";
1882  *  File name selection pattern
1883  */
1884 tSCC zBad_Struct_TermList[] =
1885   "curses.h\0";
1887  *  Machine/OS name selection pattern
1888  */
1889 #define apzBad_Struct_TermMachs (const char**)NULL
1892  *  content selection pattern - do fix if pattern found
1893  */
1894 tSCC zBad_Struct_TermSelect0[] =
1895        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1897 #define    BAD_STRUCT_TERM_TEST_CT  1
1898 static tTestDesc aBad_Struct_TermTests[] = {
1899   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1902  *  Fix Command Arguments for Bad_Struct_Term
1903  */
1904 static const char* apzBad_Struct_TermPatch[] = {
1905     "format",
1906     "struct term;",
1907     (char*)NULL };
1909 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1911  *  Description of Badquote fix
1912  */
1913 tSCC zBadquoteName[] =
1914      "badquote";
1917  *  File name selection pattern
1918  */
1919 tSCC zBadquoteList[] =
1920   "sundev/vuid_event.h\0";
1922  *  Machine/OS name selection pattern
1923  */
1924 #define apzBadquoteMachs (const char**)NULL
1927  *  content selection pattern - do fix if pattern found
1928  */
1929 tSCC zBadquoteSelect0[] =
1930        "doesn't";
1932 #define    BADQUOTE_TEST_CT  1
1933 static tTestDesc aBadquoteTests[] = {
1934   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1937  *  Fix Command Arguments for Badquote
1938  */
1939 static const char* apzBadquotePatch[] = {
1940     "format",
1941     "does not",
1942     (char*)NULL };
1944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1946  *  Description of Broken_Assert_Stdio fix
1947  */
1948 tSCC zBroken_Assert_StdioName[] =
1949      "broken_assert_stdio";
1952  *  File name selection pattern
1953  */
1954 tSCC zBroken_Assert_StdioList[] =
1955   "assert.h\0";
1957  *  Machine/OS name selection pattern
1958  */
1959 #define apzBroken_Assert_StdioMachs (const char**)NULL
1962  *  content selection pattern - do fix if pattern found
1963  */
1964 tSCC zBroken_Assert_StdioSelect0[] =
1965        "stderr";
1968  *  content bypass pattern - skip fix if pattern found
1969  */
1970 tSCC zBroken_Assert_StdioBypass0[] =
1971        "include.*stdio\\.h";
1973 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1974 static tTestDesc aBroken_Assert_StdioTests[] = {
1975   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1976   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1979  *  Fix Command Arguments for Broken_Assert_Stdio
1980  */
1981 static const char* apzBroken_Assert_StdioPatch[] = {
1982     "wrap",
1983     "#include <stdio.h>\n",
1984     (char*)NULL };
1986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1988  *  Description of Broken_Assert_Stdlib fix
1989  */
1990 tSCC zBroken_Assert_StdlibName[] =
1991      "broken_assert_stdlib";
1994  *  File name selection pattern
1995  */
1996 tSCC zBroken_Assert_StdlibList[] =
1997   "assert.h\0";
1999  *  Machine/OS name selection pattern
2000  */
2001 #define apzBroken_Assert_StdlibMachs (const char**)NULL
2004  *  content selection pattern - do fix if pattern found
2005  */
2006 tSCC zBroken_Assert_StdlibSelect0[] =
2007        "exit *\\(|abort *\\(";
2010  *  content bypass pattern - skip fix if pattern found
2011  */
2012 tSCC zBroken_Assert_StdlibBypass0[] =
2013        "include.*stdlib\\.h";
2015 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
2016 static tTestDesc aBroken_Assert_StdlibTests[] = {
2017   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2018   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
2021  *  Fix Command Arguments for Broken_Assert_Stdlib
2022  */
2023 static const char* apzBroken_Assert_StdlibPatch[] = {
2024     "wrap",
2025     "#ifdef __cplusplus\n\
2026 #include <stdlib.h>\n\
2027 #endif\n",
2028     (char*)NULL };
2030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2032  *  Description of Broken_Cabs fix
2033  */
2034 tSCC zBroken_CabsName[] =
2035      "broken_cabs";
2038  *  File name selection pattern
2039  */
2040 tSCC zBroken_CabsList[] =
2041   "math.h\0architecture/*/math.h\0";
2043  *  Machine/OS name selection pattern
2044  */
2045 #define apzBroken_CabsMachs (const char**)NULL
2048  *  content selection pattern - do fix if pattern found
2049  */
2050 tSCC zBroken_CabsSelect0[] =
2051        "^extern[ \t]+double[ \t]+cabs";
2053 #define    BROKEN_CABS_TEST_CT  1
2054 static tTestDesc aBroken_CabsTests[] = {
2055   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2058  *  Fix Command Arguments for Broken_Cabs
2059  */
2060 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2061     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2062     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2063     (char*)NULL };
2065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2067  *  Description of Broken_Nan fix
2068  */
2069 tSCC zBroken_NanName[] =
2070      "broken_nan";
2073  *  File name selection pattern
2074  */
2075 tSCC zBroken_NanList[] =
2076   "architecture/ppc/math.h\0architecture/*/math.h\0";
2078  *  Machine/OS name selection pattern
2079  */
2080 #define apzBroken_NanMachs (const char**)NULL
2083  *  content selection pattern - do fix if pattern found
2084  */
2085 tSCC zBroken_NanSelect0[] =
2086        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2089  *  content bypass pattern - skip fix if pattern found
2090  */
2091 tSCC zBroken_NanBypass0[] =
2092        "powl";
2094 #define    BROKEN_NAN_TEST_CT  2
2095 static tTestDesc aBroken_NanTests[] = {
2096   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2097   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2100  *  Fix Command Arguments for Broken_Nan
2101  */
2102 static const char* apzBroken_NanPatch[] = {
2103     "format",
2104     "#if 1",
2105     (char*)NULL };
2107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2109  *  Description of Bsd_Stdio_Attrs_Conflict fix
2110  */
2111 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2112      "bsd_stdio_attrs_conflict";
2115  *  File name selection pattern
2116  */
2117 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2118   "stdio.h\0";
2120  *  Machine/OS name selection pattern
2121  */
2122 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2123         "*-*-*bsd*",
2124         "*-*-*darwin*",
2125         (const char*)NULL };
2128  *  content selection pattern - do fix if pattern found
2129  */
2130 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2131        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2133 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2134 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2135   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2138  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2139  */
2140 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2141     "format",
2142     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2143 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2144 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2145     (char*)NULL };
2147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2149  *  Description of Ctrl_Quotes_Def fix
2150  */
2151 tSCC zCtrl_Quotes_DefName[] =
2152      "ctrl_quotes_def";
2155  *  File name selection pattern
2156  */
2157 #define zCtrl_Quotes_DefList (char*)NULL
2159  *  Machine/OS name selection pattern
2160  */
2161 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2164  *  content selection pattern - do fix if pattern found
2165  */
2166 tSCC zCtrl_Quotes_DefSelect0[] =
2167        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2169 #define    CTRL_QUOTES_DEF_TEST_CT  1
2170 static tTestDesc aCtrl_Quotes_DefTests[] = {
2171   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2174  *  Fix Command Arguments for Ctrl_Quotes_Def
2175  */
2176 static const char* apzCtrl_Quotes_DefPatch[] = {
2177     "char_macro_def",
2178     "CTRL",
2179     (char*)NULL };
2181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2183  *  Description of Ctrl_Quotes_Use fix
2184  */
2185 tSCC zCtrl_Quotes_UseName[] =
2186      "ctrl_quotes_use";
2189  *  File name selection pattern
2190  */
2191 #define zCtrl_Quotes_UseList (char*)NULL
2193  *  Machine/OS name selection pattern
2194  */
2195 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2198  *  content selection pattern - do fix if pattern found
2199  */
2200 tSCC zCtrl_Quotes_UseSelect0[] =
2201        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2203 #define    CTRL_QUOTES_USE_TEST_CT  1
2204 static tTestDesc aCtrl_Quotes_UseTests[] = {
2205   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2208  *  Fix Command Arguments for Ctrl_Quotes_Use
2209  */
2210 static const char* apzCtrl_Quotes_UsePatch[] = {
2211     "char_macro_use",
2212     "CTRL",
2213     (char*)NULL };
2215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2217  *  Description of Cxx_Unready fix
2218  */
2219 tSCC zCxx_UnreadyName[] =
2220      "cxx_unready";
2223  *  File name selection pattern
2224  */
2225 tSCC zCxx_UnreadyList[] =
2226   "sys/mman.h\0rpc/types.h\0";
2228  *  Machine/OS name selection pattern
2229  */
2230 #define apzCxx_UnreadyMachs (const char**)NULL
2233  *  content selection pattern - do fix if pattern found
2234  */
2235 tSCC zCxx_UnreadySelect0[] =
2236        "[^#]+malloc.*;";
2239  *  content bypass pattern - skip fix if pattern found
2240  */
2241 tSCC zCxx_UnreadyBypass0[] =
2242        "\"C\"|__BEGIN_DECLS";
2244 #define    CXX_UNREADY_TEST_CT  2
2245 static tTestDesc aCxx_UnreadyTests[] = {
2246   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2247   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2250  *  Fix Command Arguments for Cxx_Unready
2251  */
2252 static const char* apzCxx_UnreadyPatch[] = {
2253     "wrap",
2254     "#ifdef __cplusplus\n\
2255 extern \"C\" {\n\
2256 #endif\n",
2257     "#ifdef __cplusplus\n\
2258 }\n\
2259 #endif\n",
2260     (char*)NULL };
2262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2264  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2265  */
2266 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2267      "darwin_9_long_double_funcs_2";
2270  *  File name selection pattern
2271  */
2272 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2273   "math.h\0";
2275  *  Machine/OS name selection pattern
2276  */
2277 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2278         "*-*-darwin7.9*",
2279         (const char*)NULL };
2282  *  content selection pattern - do fix if pattern found
2283  */
2284 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2285        "#include[ \\t]+\\\"";
2287 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2288 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2289   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2292  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2293  */
2294 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2295     "format",
2296     "%1<%2.h>",
2297     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2298     (char*)NULL };
2300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2302  *  Description of Darwin_Externc fix
2303  */
2304 tSCC zDarwin_ExterncName[] =
2305      "darwin_externc";
2308  *  File name selection pattern
2309  */
2310 tSCC zDarwin_ExterncList[] =
2311   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2313  *  Machine/OS name selection pattern
2314  */
2315 tSCC* apzDarwin_ExterncMachs[] = {
2316         "*-*-darwin*",
2317         (const char*)NULL };
2320  *  content bypass pattern - skip fix if pattern found
2321  */
2322 tSCC zDarwin_ExterncBypass0[] =
2323        "extern \"C\"";
2324 tSCC zDarwin_ExterncBypass1[] =
2325        "__BEGIN_DECLS";
2327 #define    DARWIN_EXTERNC_TEST_CT  2
2328 static tTestDesc aDarwin_ExterncTests[] = {
2329   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2330   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2333  *  Fix Command Arguments for Darwin_Externc
2334  */
2335 static const char* apzDarwin_ExterncPatch[] = {
2336     "wrap",
2337     "#ifdef __cplusplus\n\
2338 extern \"C\" {\n\
2339 #endif\n",
2340     "#ifdef __cplusplus\n\
2341 }\n\
2342 #endif\n",
2343     (char*)NULL };
2345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2347  *  Description of Darwin_Gcc4_Breakage fix
2348  */
2349 tSCC zDarwin_Gcc4_BreakageName[] =
2350      "darwin_gcc4_breakage";
2353  *  File name selection pattern
2354  */
2355 tSCC zDarwin_Gcc4_BreakageList[] =
2356   "AvailabilityMacros.h\0";
2358  *  Machine/OS name selection pattern
2359  */
2360 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2361         "*-*-darwin*",
2362         (const char*)NULL };
2365  *  content selection pattern - do fix if pattern found
2366  */
2367 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2368        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2370 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2371 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2372   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2375  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2376  */
2377 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2378     "format",
2379     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2380     (char*)NULL };
2382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2384  *  Description of Darwin_Private_Extern fix
2385  */
2386 tSCC zDarwin_Private_ExternName[] =
2387      "darwin_private_extern";
2390  *  File name selection pattern
2391  */
2392 tSCC zDarwin_Private_ExternList[] =
2393   "mach-o/dyld.h\0";
2395  *  Machine/OS name selection pattern
2396  */
2397 tSCC* apzDarwin_Private_ExternMachs[] = {
2398         "*-*-darwin*",
2399         (const char*)NULL };
2402  *  content selection pattern - do fix if pattern found
2403  */
2404 tSCC zDarwin_Private_ExternSelect0[] =
2405        "__private_extern__ [a-z_]+ _dyld_";
2407 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2408 static tTestDesc aDarwin_Private_ExternTests[] = {
2409   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2412  *  Fix Command Arguments for Darwin_Private_Extern
2413  */
2414 static const char* apzDarwin_Private_ExternPatch[] = {
2415     "format",
2416     "extern",
2417     "__private_extern__",
2418     (char*)NULL };
2420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2422  *  Description of Darwin_Stdint_1 fix
2423  */
2424 tSCC zDarwin_Stdint_1Name[] =
2425      "darwin_stdint_1";
2428  *  File name selection pattern
2429  */
2430 tSCC zDarwin_Stdint_1List[] =
2431   "stdint-darwin.h\0stdint.h\0";
2433  *  Machine/OS name selection pattern
2434  */
2435 tSCC* apzDarwin_Stdint_1Machs[] = {
2436         "*-*-darwin*",
2437         (const char*)NULL };
2440  *  content selection pattern - do fix if pattern found
2441  */
2442 tSCC zDarwin_Stdint_1Select0[] =
2443        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2444 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2446 #define    DARWIN_STDINT_1_TEST_CT  1
2447 static tTestDesc aDarwin_Stdint_1Tests[] = {
2448   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2451  *  Fix Command Arguments for Darwin_Stdint_1
2452  */
2453 static const char* apzDarwin_Stdint_1Patch[] = {
2454     "format",
2455     "#define UINT8_C(v)\tv\n\
2456 #define UINT16_C(v)\tv",
2457     (char*)NULL };
2459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2461  *  Description of Darwin_Stdint_2 fix
2462  */
2463 tSCC zDarwin_Stdint_2Name[] =
2464      "darwin_stdint_2";
2467  *  File name selection pattern
2468  */
2469 tSCC zDarwin_Stdint_2List[] =
2470   "stdint-darwin.h\0stdint.h\0";
2472  *  Machine/OS name selection pattern
2473  */
2474 tSCC* apzDarwin_Stdint_2Machs[] = {
2475         "*-*-darwin*",
2476         (const char*)NULL };
2479  *  content selection pattern - do fix if pattern found
2480  */
2481 tSCC zDarwin_Stdint_2Select0[] =
2482        "#if __WORDSIZE == 64\n\
2483 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2484 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2485 #else\n\
2486 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2487 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2488 #endif";
2490 #define    DARWIN_STDINT_2_TEST_CT  1
2491 static tTestDesc aDarwin_Stdint_2Tests[] = {
2492   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2495  *  Fix Command Arguments for Darwin_Stdint_2
2496  */
2497 static const char* apzDarwin_Stdint_2Patch[] = {
2498     "format",
2499     "#if __WORDSIZE == 64\n\
2500 #define INTPTR_MAX 9223372036854775807L\n\
2501 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2502 #else\n\
2503 #define INTPTR_MAX 2147483647L\n\
2504 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2505 #endif",
2506     (char*)NULL };
2508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2510  *  Description of Darwin_Stdint_3 fix
2511  */
2512 tSCC zDarwin_Stdint_3Name[] =
2513      "darwin_stdint_3";
2516  *  File name selection pattern
2517  */
2518 tSCC zDarwin_Stdint_3List[] =
2519   "stdint-darwin.h\0stdint.h\0";
2521  *  Machine/OS name selection pattern
2522  */
2523 tSCC* apzDarwin_Stdint_3Machs[] = {
2524         "*-*-darwin*",
2525         (const char*)NULL };
2528  *  content selection pattern - do fix if pattern found
2529  */
2530 tSCC zDarwin_Stdint_3Select0[] =
2531        "#if __WORDSIZE == 64\n\
2532 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2533 #else\n\
2534 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2535 #endif";
2537 #define    DARWIN_STDINT_3_TEST_CT  1
2538 static tTestDesc aDarwin_Stdint_3Tests[] = {
2539   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2542  *  Fix Command Arguments for Darwin_Stdint_3
2543  */
2544 static const char* apzDarwin_Stdint_3Patch[] = {
2545     "format",
2546     "#if __WORDSIZE == 64\n\
2547 #define UINTPTR_MAX 18446744073709551615UL\n\
2548 #else\n\
2549 #define UINTPTR_MAX 4294967295UL\n\
2550 #endif",
2551     (char*)NULL };
2553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2555  *  Description of Darwin_Stdint_4 fix
2556  */
2557 tSCC zDarwin_Stdint_4Name[] =
2558      "darwin_stdint_4";
2561  *  File name selection pattern
2562  */
2563 tSCC zDarwin_Stdint_4List[] =
2564   "stdint-darwin.h\0stdint.h\0";
2566  *  Machine/OS name selection pattern
2567  */
2568 tSCC* apzDarwin_Stdint_4Machs[] = {
2569         "*-*-darwin*",
2570         (const char*)NULL };
2573  *  content selection pattern - do fix if pattern found
2574  */
2575 tSCC zDarwin_Stdint_4Select0[] =
2576        "#if __WORDSIZE == 64\n\
2577 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2578 #else\n\
2579 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2580 #endif";
2582 #define    DARWIN_STDINT_4_TEST_CT  1
2583 static tTestDesc aDarwin_Stdint_4Tests[] = {
2584   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2587  *  Fix Command Arguments for Darwin_Stdint_4
2588  */
2589 static const char* apzDarwin_Stdint_4Patch[] = {
2590     "format",
2591     "#if __WORDSIZE == 64\n\
2592 #define SIZE_MAX 18446744073709551615UL\n\
2593 #else\n\
2594 #define SIZE_MAX 4294967295UL\n\
2595 #endif",
2596     (char*)NULL };
2598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2600  *  Description of Darwin_Stdint_5 fix
2601  */
2602 tSCC zDarwin_Stdint_5Name[] =
2603      "darwin_stdint_5";
2606  *  File name selection pattern
2607  */
2608 tSCC zDarwin_Stdint_5List[] =
2609   "stdint-darwin.h\0stdint.h\0";
2611  *  Machine/OS name selection pattern
2612  */
2613 tSCC* apzDarwin_Stdint_5Machs[] = {
2614         "*-*-darwin*",
2615         (const char*)NULL };
2618  *  content selection pattern - do fix if pattern found
2619  */
2620 tSCC zDarwin_Stdint_5Select0[] =
2621        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2622 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2623 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2625 #define    DARWIN_STDINT_5_TEST_CT  1
2626 static tTestDesc aDarwin_Stdint_5Tests[] = {
2627   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2630  *  Fix Command Arguments for Darwin_Stdint_5
2631  */
2632 static const char* apzDarwin_Stdint_5Patch[] = {
2633     "format",
2634     "#if __WORDSIZE == 64\n\
2635 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
2636 #define INTMAX_MAX   9223372036854775807L\n\
2637 #define UINTMAX_MAX  18446744073709551615UL\n\
2638 #else\n\
2639 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
2640 #define INTMAX_MAX   9223372036854775807LL\n\
2641 #define UINTMAX_MAX  18446744073709551615ULL\n\
2642 #endif",
2643     (char*)NULL };
2645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2647  *  Description of Darwin_Stdint_6 fix
2648  */
2649 tSCC zDarwin_Stdint_6Name[] =
2650      "darwin_stdint_6";
2653  *  File name selection pattern
2654  */
2655 tSCC zDarwin_Stdint_6List[] =
2656   "stdint-darwin.h\0stdint.h\0";
2658  *  Machine/OS name selection pattern
2659  */
2660 tSCC* apzDarwin_Stdint_6Machs[] = {
2661         "*-*-darwin*",
2662         (const char*)NULL };
2665  *  content selection pattern - do fix if pattern found
2666  */
2667 tSCC zDarwin_Stdint_6Select0[] =
2668        "#if __WORDSIZE == 64\n\
2669 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2670 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2671 #else\n\
2672 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2673 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2674 #endif";
2676 #define    DARWIN_STDINT_6_TEST_CT  1
2677 static tTestDesc aDarwin_Stdint_6Tests[] = {
2678   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2681  *  Fix Command Arguments for Darwin_Stdint_6
2682  */
2683 static const char* apzDarwin_Stdint_6Patch[] = {
2684     "format",
2685     "#if __WORDSIZE == 64\n\
2686 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2687 #define PTRDIFF_MAX 9223372036854775807L\n\
2688 #else\n\
2689 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2690 #define PTRDIFF_MAX 2147483647\n\
2691 #endif",
2692     (char*)NULL };
2694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2696  *  Description of Darwin_Stdint_7 fix
2697  */
2698 tSCC zDarwin_Stdint_7Name[] =
2699      "darwin_stdint_7";
2702  *  File name selection pattern
2703  */
2704 tSCC zDarwin_Stdint_7List[] =
2705   "stdint-darwin.h\0stdint.h\0";
2707  *  Machine/OS name selection pattern
2708  */
2709 tSCC* apzDarwin_Stdint_7Machs[] = {
2710         "*-*-darwin*",
2711         (const char*)NULL };
2714  *  content selection pattern - do fix if pattern found
2715  */
2716 tSCC zDarwin_Stdint_7Select0[] =
2717        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2718 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2720 #define    DARWIN_STDINT_7_TEST_CT  1
2721 static tTestDesc aDarwin_Stdint_7Tests[] = {
2722   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2725  *  Fix Command Arguments for Darwin_Stdint_7
2726  */
2727 static const char* apzDarwin_Stdint_7Patch[] = {
2728     "format",
2729     "#if __WORDSIZE == 64\n\
2730 #define INTMAX_C(v)  (v ## L)\n\
2731 #define UINTMAX_C(v) (v ## UL)\n\
2732 #else\n\
2733 #define INTMAX_C(v)  (v ## LL)\n\
2734 #define UINTMAX_C(v) (v ## ULL)\n\
2735 #endif",
2736     (char*)NULL };
2738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2740  *  Description of Dec_Intern_Asm fix
2741  */
2742 tSCC zDec_Intern_AsmName[] =
2743      "dec_intern_asm";
2746  *  File name selection pattern
2747  */
2748 tSCC zDec_Intern_AsmList[] =
2749   "c_asm.h\0";
2751  *  Machine/OS name selection pattern
2752  */
2753 #define apzDec_Intern_AsmMachs (const char**)NULL
2754 #define DEC_INTERN_ASM_TEST_CT  0
2755 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
2758  *  Fix Command Arguments for Dec_Intern_Asm
2759  */
2760 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2761     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2762 #ifdef __DECC\n",
2763     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2764 #endif\n",
2765     (char*)NULL };
2767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2769  *  Description of Djgpp_Wchar_H fix
2770  */
2771 tSCC zDjgpp_Wchar_HName[] =
2772      "djgpp_wchar_h";
2775  *  File name selection pattern
2776  */
2777 #define zDjgpp_Wchar_HList (char*)NULL
2779  *  Machine/OS name selection pattern
2780  */
2781 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2784  *  content selection pattern - do fix if pattern found
2785  */
2786 tSCC zDjgpp_Wchar_HSelect0[] =
2787        "__DJ_wint_t";
2790  *  content bypass pattern - skip fix if pattern found
2791  */
2792 tSCC zDjgpp_Wchar_HBypass0[] =
2793        "sys/djtypes.h";
2795 #define    DJGPP_WCHAR_H_TEST_CT  2
2796 static tTestDesc aDjgpp_Wchar_HTests[] = {
2797   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2798   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2801  *  Fix Command Arguments for Djgpp_Wchar_H
2802  */
2803 static const char* apzDjgpp_Wchar_HPatch[] = {
2804     "format",
2805     "%0\n\
2806 #include <sys/djtypes.h>",
2807     "#include <stddef.h>",
2808     (char*)NULL };
2810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2812  *  Description of Ecd_Cursor fix
2813  */
2814 tSCC zEcd_CursorName[] =
2815      "ecd_cursor";
2818  *  File name selection pattern
2819  */
2820 tSCC zEcd_CursorList[] =
2821   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2823  *  Machine/OS name selection pattern
2824  */
2825 #define apzEcd_CursorMachs (const char**)NULL
2828  *  content selection pattern - do fix if pattern found
2829  */
2830 tSCC zEcd_CursorSelect0[] =
2831        "ecd\\.cursor";
2833 #define    ECD_CURSOR_TEST_CT  1
2834 static tTestDesc aEcd_CursorTests[] = {
2835   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2838  *  Fix Command Arguments for Ecd_Cursor
2839  */
2840 static const char* apzEcd_CursorPatch[] = {
2841     "format",
2842     "ecd_cursor",
2843     (char*)NULL };
2845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2847  *  Description of Feraiseexcept_Nosse_Divbyzero fix
2848  */
2849 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
2850      "feraiseexcept_nosse_divbyzero";
2853  *  File name selection pattern
2854  */
2855 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
2856   "bits/fenv.h\0*/bits/fenv.h\0";
2858  *  Machine/OS name selection pattern
2859  */
2860 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
2861         "i[34567]86-*-linux*",
2862         "x86*-linux*",
2863         "amd64-*-linux*",
2864         (const char*)NULL };
2867  *  content selection pattern - do fix if pattern found
2868  */
2869 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
2870        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
2873  *  content bypass pattern - skip fix if pattern found
2874  */
2875 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
2876        "\"fdivp .*; fwait\"";
2878 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
2879 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
2880   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
2881   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
2884  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
2885  */
2886 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
2887     "format",
2888     "# ifdef __SSE_MATH__\n\
2889 %0\n\
2890 # else\n\
2891 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
2892 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
2893 # endif",
2894     (char*)NULL };
2896 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2898  *  Description of Feraiseexcept_Nosse_Invalid fix
2899  */
2900 tSCC zFeraiseexcept_Nosse_InvalidName[] =
2901      "feraiseexcept_nosse_invalid";
2904  *  File name selection pattern
2905  */
2906 tSCC zFeraiseexcept_Nosse_InvalidList[] =
2907   "bits/fenv.h\0*/bits/fenv.h\0";
2909  *  Machine/OS name selection pattern
2910  */
2911 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
2912         "i[34567]86-*-linux*",
2913         "x86*-linux*",
2914         "amd64-*-linux*",
2915         (const char*)NULL };
2918  *  content selection pattern - do fix if pattern found
2919  */
2920 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
2921        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
2924  *  content bypass pattern - skip fix if pattern found
2925  */
2926 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
2927        "\"fdiv .*; fwait\"";
2929 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
2930 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
2931   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
2932   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
2935  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
2936  */
2937 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
2938     "format",
2939     "# ifdef __SSE_MATH__\n\
2940 %0\n\
2941 # else\n\
2942 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
2943 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
2944 # endif",
2945     (char*)NULL };
2947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2949  *  Description of Freebsd_Gcc3_Breakage fix
2950  */
2951 tSCC zFreebsd_Gcc3_BreakageName[] =
2952      "freebsd_gcc3_breakage";
2955  *  File name selection pattern
2956  */
2957 tSCC zFreebsd_Gcc3_BreakageList[] =
2958   "sys/cdefs.h\0";
2960  *  Machine/OS name selection pattern
2961  */
2962 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2963         "*-*-freebsd*",
2964         (const char*)NULL };
2967  *  content selection pattern - do fix if pattern found
2968  */
2969 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2970        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2973  *  content bypass pattern - skip fix if pattern found
2974  */
2975 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2976        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2978 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2979 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2980   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2981   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2984  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2985  */
2986 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2987     "format",
2988     "%0 || __GNUC__ >= 3",
2989     (char*)NULL };
2991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2993  *  Description of Freebsd_Gcc4_Breakage fix
2994  */
2995 tSCC zFreebsd_Gcc4_BreakageName[] =
2996      "freebsd_gcc4_breakage";
2999  *  File name selection pattern
3000  */
3001 tSCC zFreebsd_Gcc4_BreakageList[] =
3002   "sys/cdefs.h\0";
3004  *  Machine/OS name selection pattern
3005  */
3006 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3007         "*-*-freebsd*",
3008         (const char*)NULL };
3011  *  content selection pattern - do fix if pattern found
3012  */
3013 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3014        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3016 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
3017 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3018   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3021  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
3022  */
3023 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3024     "format",
3025     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3026     (char*)NULL };
3028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3030  *  Description of Glibc_C99_Inline_1 fix
3031  */
3032 tSCC zGlibc_C99_Inline_1Name[] =
3033      "glibc_c99_inline_1";
3036  *  File name selection pattern
3037  */
3038 tSCC zGlibc_C99_Inline_1List[] =
3039   "features.h\0*/features.h\0";
3041  *  Machine/OS name selection pattern
3042  */
3043 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3046  *  content selection pattern - do fix if pattern found
3047  */
3048 tSCC zGlibc_C99_Inline_1Select0[] =
3049        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3051 #define    GLIBC_C99_INLINE_1_TEST_CT  1
3052 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3053   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3056  *  Fix Command Arguments for Glibc_C99_Inline_1
3057  */
3058 static const char* apzGlibc_C99_Inline_1Patch[] = {
3059     "format",
3060     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3061     (char*)NULL };
3063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3065  *  Description of Glibc_C99_Inline_1a fix
3066  */
3067 tSCC zGlibc_C99_Inline_1aName[] =
3068      "glibc_c99_inline_1a";
3071  *  File name selection pattern
3072  */
3073 tSCC zGlibc_C99_Inline_1aList[] =
3074   "features.h\0*/features.h\0";
3076  *  Machine/OS name selection pattern
3077  */
3078 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3081  *  content selection pattern - do fix if pattern found
3082  */
3083 tSCC zGlibc_C99_Inline_1aSelect0[] =
3084        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3085 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3087 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
3088 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3089   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3092  *  Fix Command Arguments for Glibc_C99_Inline_1a
3093  */
3094 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3095     "format",
3096     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3097 %2",
3098     (char*)NULL };
3100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3102  *  Description of Glibc_C99_Inline_2 fix
3103  */
3104 tSCC zGlibc_C99_Inline_2Name[] =
3105      "glibc_c99_inline_2";
3108  *  File name selection pattern
3109  */
3110 tSCC zGlibc_C99_Inline_2List[] =
3111   "sys/stat.h\0*/sys/stat.h\0";
3113  *  Machine/OS name selection pattern
3114  */
3115 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3118  *  content selection pattern - do fix if pattern found
3119  */
3120 tSCC zGlibc_C99_Inline_2Select0[] =
3121        "extern __inline__ int";
3123 #define    GLIBC_C99_INLINE_2_TEST_CT  1
3124 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3125   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3128  *  Fix Command Arguments for Glibc_C99_Inline_2
3129  */
3130 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3131     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3132 extern\\\n\
3133 #endif\\\n\
3134 __inline__ int \\1/",
3135     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3136 extern\\\n\
3137 #endif\\\n\
3138 __inline__ int \\1/",
3139     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3140 extern\\\n\
3141 #endif\\\n\
3142 __inline__ int \\1/",
3143     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3144 extern\\\n\
3145 #endif\\\n\
3146 __inline__ int __REDIRECT\\1 (\\2/",
3147     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3148 extern\\\n\
3149 #endif\\\n\
3150 __inline__ int __REDIRECT\\1 (\\2/",
3151     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
3152 extern\\\n\
3153 #endif\\\n\
3154 __inline__ int/",
3155     (char*)NULL };
3157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3159  *  Description of Glibc_C99_Inline_3 fix
3160  */
3161 tSCC zGlibc_C99_Inline_3Name[] =
3162      "glibc_c99_inline_3";
3165  *  File name selection pattern
3166  */
3167 tSCC zGlibc_C99_Inline_3List[] =
3168   "bits/string2.h\0*/bits/string2.h\0";
3170  *  Machine/OS name selection pattern
3171  */
3172 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
3175  *  content selection pattern - do fix if pattern found
3176  */
3177 tSCC zGlibc_C99_Inline_3Select0[] =
3178        "extern __inline";
3181  *  content bypass pattern - skip fix if pattern found
3182  */
3183 tSCC zGlibc_C99_Inline_3Bypass0[] =
3184        "__extern_inline|__GNU_STDC_INLINE__";
3186 #define    GLIBC_C99_INLINE_3_TEST_CT  2
3187 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
3188   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3189   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
3192  *  Fix Command Arguments for Glibc_C99_Inline_3
3193  */
3194 static const char* apzGlibc_C99_Inline_3Patch[] = {
3195     "format",
3196     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3197     "^# ifdef __cplusplus$",
3198     (char*)NULL };
3200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3202  *  Description of Glibc_C99_Inline_4 fix
3203  */
3204 tSCC zGlibc_C99_Inline_4Name[] =
3205      "glibc_c99_inline_4";
3208  *  File name selection pattern
3209  */
3210 tSCC zGlibc_C99_Inline_4List[] =
3211   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
3213  *  Machine/OS name selection pattern
3214  */
3215 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3218  *  content selection pattern - do fix if pattern found
3219  */
3220 tSCC zGlibc_C99_Inline_4Select0[] =
3221        "(^| )extern __inline";
3224  *  content bypass pattern - skip fix if pattern found
3225  */
3226 tSCC zGlibc_C99_Inline_4Bypass0[] =
3227        "__extern_inline|__gnu_inline__";
3229 #define    GLIBC_C99_INLINE_4_TEST_CT  2
3230 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3231   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3232   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3235  *  Fix Command Arguments for Glibc_C99_Inline_4
3236  */
3237 static const char* apzGlibc_C99_Inline_4Patch[] = {
3238     "format",
3239     "%0 __attribute__ ((__gnu_inline__))",
3240     (char*)NULL };
3242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3244  *  Description of Glibc_Mutex_Init fix
3245  */
3246 tSCC zGlibc_Mutex_InitName[] =
3247      "glibc_mutex_init";
3250  *  File name selection pattern
3251  */
3252 tSCC zGlibc_Mutex_InitList[] =
3253   "pthread.h\0";
3255  *  Machine/OS name selection pattern
3256  */
3257 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3260  *  content selection pattern - do fix if pattern found
3261  */
3262 tSCC zGlibc_Mutex_InitSelect0[] =
3263        "\\{ *\\{ *0, *\\} *\\}";
3265 #define    GLIBC_MUTEX_INIT_TEST_CT  1
3266 static tTestDesc aGlibc_Mutex_InitTests[] = {
3267   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3270  *  Fix Command Arguments for Glibc_Mutex_Init
3271  */
3272 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3273     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3274 N\n\
3275 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3277     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3278     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3279     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3280     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3281     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3282     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3283     "-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\
3284 #  \\1\\\n\
3285   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3286 # else\\\n\
3287 #  \\1\\\n\
3288   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3289 # endif/",
3290     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3291     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3292     (char*)NULL };
3294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3296  *  Description of Glibc_Stdint fix
3297  */
3298 tSCC zGlibc_StdintName[] =
3299      "glibc_stdint";
3302  *  File name selection pattern
3303  */
3304 tSCC zGlibc_StdintList[] =
3305   "stdint.h\0";
3307  *  Machine/OS name selection pattern
3308  */
3309 #define apzGlibc_StdintMachs (const char**)NULL
3312  *  content selection pattern - do fix if pattern found
3313  */
3314 tSCC zGlibc_StdintSelect0[] =
3315        "GNU C Library";
3317 #define    GLIBC_STDINT_TEST_CT  1
3318 static tTestDesc aGlibc_StdintTests[] = {
3319   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
3322  *  Fix Command Arguments for Glibc_Stdint
3323  */
3324 static const char* apzGlibc_StdintPatch[] = {
3325     "format",
3326     "# define UINT8_C(c)\tc\n\
3327 # define UINT16_C(c)\tc",
3328     "# define UINT8_C\\(c\\)\tc ## U\n\
3329 # define UINT16_C\\(c\\)\tc ## U",
3330     (char*)NULL };
3332 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3334  *  Description of Glibc_Strncpy fix
3335  */
3336 tSCC zGlibc_StrncpyName[] =
3337      "glibc_strncpy";
3340  *  File name selection pattern
3341  */
3342 tSCC zGlibc_StrncpyList[] =
3343   "bits/string2.h\0*/bits/string2.h\0";
3345  *  Machine/OS name selection pattern
3346  */
3347 #define apzGlibc_StrncpyMachs (const char**)NULL
3350  *  content bypass pattern - skip fix if pattern found
3351  */
3352 tSCC zGlibc_StrncpyBypass0[] =
3353        "__builtin_strncpy";
3355 #define    GLIBC_STRNCPY_TEST_CT  1
3356 static tTestDesc aGlibc_StrncpyTests[] = {
3357   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3360  *  Fix Command Arguments for Glibc_Strncpy
3361  */
3362 static const char* apzGlibc_StrncpyPatch[] = {
3363     "format",
3364     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3365     "#  define strncpy([^\n\
3366 ]*\\\\\n\
3367 )*[^\n\
3368 ]*",
3369     (char*)NULL };
3371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3373  *  Description of Glibc_Tgmath fix
3374  */
3375 tSCC zGlibc_TgmathName[] =
3376      "glibc_tgmath";
3379  *  File name selection pattern
3380  */
3381 tSCC zGlibc_TgmathList[] =
3382   "tgmath.h\0";
3384  *  Machine/OS name selection pattern
3385  */
3386 #define apzGlibc_TgmathMachs (const char**)NULL
3389  *  content selection pattern - do fix if pattern found
3390  */
3391 tSCC zGlibc_TgmathSelect0[] =
3392        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3395  *  content bypass pattern - skip fix if pattern found
3396  */
3397 tSCC zGlibc_TgmathBypass0[] =
3398        "__floating_type\\(type\\) \\\\\n\
3399 .*__builtin_classify_type";
3401 #define    GLIBC_TGMATH_TEST_CT  2
3402 static tTestDesc aGlibc_TgmathTests[] = {
3403   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
3404   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3407  *  Fix Command Arguments for Glibc_Tgmath
3408  */
3409 static const char* apzGlibc_TgmathPatch[] = {
3410     "format",
3411     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3412     (char*)NULL };
3414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3416  *  Description of Gnu_Types fix
3417  */
3418 tSCC zGnu_TypesName[] =
3419      "gnu_types";
3422  *  File name selection pattern
3423  */
3424 tSCC zGnu_TypesList[] =
3425   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3427  *  Machine/OS name selection pattern
3428  */
3429 tSCC* apzGnu_TypesMachs[] = {
3430         "*-*-solaris2.1[0-9]*",
3431         (const char*)NULL };
3434  *  content selection pattern - do fix if pattern found
3435  */
3436 tSCC zGnu_TypesSelect0[] =
3437        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3440  *  content bypass pattern - skip fix if pattern found
3441  */
3442 tSCC zGnu_TypesBypass0[] =
3443        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3445 #define    GNU_TYPES_TEST_CT  2
3446 static tTestDesc aGnu_TypesTests[] = {
3447   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3448   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3451  *  Fix Command Arguments for Gnu_Types
3452  */
3453 static const char* apzGnu_TypesPatch[] = {
3454     "gnu_type",
3455     (char*)NULL };
3457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3459  *  Description of Hp_Inline fix
3460  */
3461 tSCC zHp_InlineName[] =
3462      "hp_inline";
3465  *  File name selection pattern
3466  */
3467 tSCC zHp_InlineList[] =
3468   "sys/spinlock.h\0machine/machparam.h\0";
3470  *  Machine/OS name selection pattern
3471  */
3472 #define apzHp_InlineMachs (const char**)NULL
3475  *  content selection pattern - do fix if pattern found
3476  */
3477 tSCC zHp_InlineSelect0[] =
3478        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3480 #define    HP_INLINE_TEST_CT  1
3481 static tTestDesc aHp_InlineTests[] = {
3482   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
3485  *  Fix Command Arguments for Hp_Inline
3486  */
3487 static const char* apzHp_InlinePatch[] = {
3488     "format",
3489     "%1<machine/%2.h>",
3490     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3491     (char*)NULL };
3493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3495  *  Description of Hp_Sysfile fix
3496  */
3497 tSCC zHp_SysfileName[] =
3498      "hp_sysfile";
3501  *  File name selection pattern
3502  */
3503 tSCC zHp_SysfileList[] =
3504   "sys/file.h\0";
3506  *  Machine/OS name selection pattern
3507  */
3508 #define apzHp_SysfileMachs (const char**)NULL
3511  *  content selection pattern - do fix if pattern found
3512  */
3513 tSCC zHp_SysfileSelect0[] =
3514        "HPUX_SOURCE";
3516 #define    HP_SYSFILE_TEST_CT  1
3517 static tTestDesc aHp_SysfileTests[] = {
3518   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
3521  *  Fix Command Arguments for Hp_Sysfile
3522  */
3523 static const char* apzHp_SysfilePatch[] = {
3524     "format",
3525     "(struct file *, ...)",
3526     "\\(\\.\\.\\.\\)",
3527     (char*)NULL };
3529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3531  *  Description of Hppa_Hpux_Fp_Macros fix
3532  */
3533 tSCC zHppa_Hpux_Fp_MacrosName[] =
3534      "hppa_hpux_fp_macros";
3537  *  File name selection pattern
3538  */
3539 tSCC zHppa_Hpux_Fp_MacrosList[] =
3540   "math.h\0";
3542  *  Machine/OS name selection pattern
3543  */
3544 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3545         "hppa*-hp-hpux11*",
3546         (const char*)NULL };
3549  *  content selection pattern - do fix if pattern found
3550  */
3551 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3552        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3553 #[ \t]*define[ \t]*FP_ZERO.*\n\
3554 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3555 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3556 #[ \t]*define[ \t]*FP_NAN.*\n";
3558 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
3559 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3560   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3563  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
3564  */
3565 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3566     "format",
3567     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3568 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3569    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3570 %0#endif\n\n\
3571 #ifdef _INCLUDE_HPUX_SOURCE\n",
3572     (char*)NULL };
3574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3576  *  Description of Hpux10_Cpp_Pow_Inline fix
3577  */
3578 tSCC zHpux10_Cpp_Pow_InlineName[] =
3579      "hpux10_cpp_pow_inline";
3582  *  File name selection pattern
3583  */
3584 tSCC zHpux10_Cpp_Pow_InlineList[] =
3585   "fixinc-test-limits.h\0math.h\0";
3587  *  Machine/OS name selection pattern
3588  */
3589 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3592  *  content selection pattern - do fix if pattern found
3593  */
3594 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3595        "^# +ifdef +__cplusplus\n\
3596  +\\}\n\
3597  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3598 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3599  +\\}\n\
3600  +extern +\"C\" +\\{\n\
3601 #else\n\
3602 # +endif";
3604 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
3605 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3606   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3609  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3610  */
3611 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3612     "format",
3613     "",
3614     (char*)NULL };
3616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3618  *  Description of Hpux11_Cpp_Pow_Inline fix
3619  */
3620 tSCC zHpux11_Cpp_Pow_InlineName[] =
3621      "hpux11_cpp_pow_inline";
3624  *  File name selection pattern
3625  */
3626 tSCC zHpux11_Cpp_Pow_InlineList[] =
3627   "math.h\0";
3629  *  Machine/OS name selection pattern
3630  */
3631 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3634  *  content selection pattern - do fix if pattern found
3635  */
3636 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3637        " +inline double pow\\(double d,int expon\\) \\{\n\
3638  +return pow\\(d, \\(double\\)expon\\);\n\
3639  +\\}\n";
3641 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
3642 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3643   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3646  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3647  */
3648 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3649     "format",
3650     "",
3651     (char*)NULL };
3653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3655  *  Description of Hpux10_Ctype_Declarations1 fix
3656  */
3657 tSCC zHpux10_Ctype_Declarations1Name[] =
3658      "hpux10_ctype_declarations1";
3661  *  File name selection pattern
3662  */
3663 tSCC zHpux10_Ctype_Declarations1List[] =
3664   "ctype.h\0";
3666  *  Machine/OS name selection pattern
3667  */
3668 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3671  *  content selection pattern - do fix if pattern found
3672  */
3673 tSCC zHpux10_Ctype_Declarations1Select0[] =
3674        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3677  *  content bypass pattern - skip fix if pattern found
3678  */
3679 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3680        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3682 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
3683 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3684   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3685   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3688  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
3689  */
3690 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3691     "format",
3692     "#ifdef _PROTOTYPES\n\
3693 extern int __tolower(int);\n\
3694 extern int __toupper(int);\n\
3695 #else /* NOT _PROTOTYPES */\n\
3696 extern int __tolower();\n\
3697 extern int __toupper();\n\
3698 #endif /* _PROTOTYPES */\n\n\
3699 %0\n",
3700     (char*)NULL };
3702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3704  *  Description of Hpux10_Ctype_Declarations2 fix
3705  */
3706 tSCC zHpux10_Ctype_Declarations2Name[] =
3707      "hpux10_ctype_declarations2";
3710  *  File name selection pattern
3711  */
3712 tSCC zHpux10_Ctype_Declarations2List[] =
3713   "ctype.h\0";
3715  *  Machine/OS name selection pattern
3716  */
3717 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3720  *  content selection pattern - do fix if pattern found
3721  */
3722 tSCC zHpux10_Ctype_Declarations2Select0[] =
3723        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3726  *  content bypass pattern - skip fix if pattern found
3727  */
3728 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3729        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3731 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
3732 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3733   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3734   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3737  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
3738  */
3739 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3740     "format",
3741     "%0\n\n\
3742 #ifdef _PROTOTYPES\n\
3743      extern int _isalnum(int);\n\
3744      extern int _isalpha(int);\n\
3745      extern int _iscntrl(int);\n\
3746      extern int _isdigit(int);\n\
3747      extern int _isgraph(int);\n\
3748      extern int _islower(int);\n\
3749      extern int _isprint(int);\n\
3750      extern int _ispunct(int);\n\
3751      extern int _isspace(int);\n\
3752      extern int _isupper(int);\n\
3753      extern int _isxdigit(int);\n\
3754 #  else /* not _PROTOTYPES */\n\
3755      extern int _isalnum();\n\
3756      extern int _isalpha();\n\
3757      extern int _iscntrl();\n\
3758      extern int _isdigit();\n\
3759      extern int _isgraph();\n\
3760      extern int _islower();\n\
3761      extern int _isprint();\n\
3762      extern int _ispunct();\n\
3763      extern int _isspace();\n\
3764      extern int _isupper();\n\
3765      extern int _isxdigit();\n\
3766 #endif /* _PROTOTYPES */\n",
3767     (char*)NULL };
3769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3771  *  Description of Hpux10_Stdio_Declarations fix
3772  */
3773 tSCC zHpux10_Stdio_DeclarationsName[] =
3774      "hpux10_stdio_declarations";
3777  *  File name selection pattern
3778  */
3779 tSCC zHpux10_Stdio_DeclarationsList[] =
3780   "stdio.h\0";
3782  *  Machine/OS name selection pattern
3783  */
3784 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3787  *  content selection pattern - do fix if pattern found
3788  */
3789 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3790        "^#[ \t]*define _iob[ \t]*__iob";
3793  *  content bypass pattern - skip fix if pattern found
3794  */
3795 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3796        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3798 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
3799 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3800   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3801   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3804  *  Fix Command Arguments for Hpux10_Stdio_Declarations
3805  */
3806 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3807     "format",
3808     "%0\n\n\
3809 #  if defined(__STDC__) || defined(__cplusplus)\n\
3810      extern int snprintf(char *, size_t, const char *, ...);\n\
3811      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3812 #  else /* not __STDC__) || __cplusplus */\n\
3813      extern int snprintf();\n\
3814      extern int vsnprintf();\n\
3815 #  endif /* __STDC__) || __cplusplus */\n",
3816     (char*)NULL };
3818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3820  *  Description of Hpux11_Abs fix
3821  */
3822 tSCC zHpux11_AbsName[] =
3823      "hpux11_abs";
3826  *  File name selection pattern
3827  */
3828 tSCC zHpux11_AbsList[] =
3829   "stdlib.h\0";
3831  *  Machine/OS name selection pattern
3832  */
3833 tSCC* apzHpux11_AbsMachs[] = {
3834         "*-hp-hpux11*",
3835         (const char*)NULL };
3838  *  content selection pattern - do fix if pattern found
3839  */
3840 tSCC zHpux11_AbsSelect0[] =
3841        "ifndef _MATH_INCLUDED";
3843 #define    HPUX11_ABS_TEST_CT  1
3844 static tTestDesc aHpux11_AbsTests[] = {
3845   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
3848  *  Fix Command Arguments for Hpux11_Abs
3849  */
3850 static const char* apzHpux11_AbsPatch[] = {
3851     "format",
3852     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3853     (char*)NULL };
3855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3857  *  Description of Hpux11_Extern_Sendfile fix
3858  */
3859 tSCC zHpux11_Extern_SendfileName[] =
3860      "hpux11_extern_sendfile";
3863  *  File name selection pattern
3864  */
3865 tSCC zHpux11_Extern_SendfileList[] =
3866   "sys/socket.h\0";
3868  *  Machine/OS name selection pattern
3869  */
3870 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3871         "*-hp-hpux11.[12]*",
3872         (const char*)NULL };
3875  *  content selection pattern - do fix if pattern found
3876  */
3877 tSCC zHpux11_Extern_SendfileSelect0[] =
3878        "^[ \t]*extern sbsize_t sendfile.*\n\
3879 .*, int\\)\\);\n";
3881 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
3882 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3883   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3886  *  Fix Command Arguments for Hpux11_Extern_Sendfile
3887  */
3888 static const char* apzHpux11_Extern_SendfilePatch[] = {
3889     "format",
3890     "#ifndef _APP32_64BIT_OFF_T\n\
3891 %0#endif\n",
3892     (char*)NULL };
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3896  *  Description of Hpux11_Extern_Sendpath fix
3897  */
3898 tSCC zHpux11_Extern_SendpathName[] =
3899      "hpux11_extern_sendpath";
3902  *  File name selection pattern
3903  */
3904 tSCC zHpux11_Extern_SendpathList[] =
3905   "sys/socket.h\0";
3907  *  Machine/OS name selection pattern
3908  */
3909 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3910         "*-hp-hpux11.[12]*",
3911         (const char*)NULL };
3914  *  content selection pattern - do fix if pattern found
3915  */
3916 tSCC zHpux11_Extern_SendpathSelect0[] =
3917        "^[ \t]*extern sbsize_t sendpath.*\n\
3918 .*, int\\)\\);\n";
3920 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
3921 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3922   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3925  *  Fix Command Arguments for Hpux11_Extern_Sendpath
3926  */
3927 static const char* apzHpux11_Extern_SendpathPatch[] = {
3928     "format",
3929     "#ifndef _APP32_64BIT_OFF_T\n\
3930 %0#endif\n",
3931     (char*)NULL };
3933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3935  *  Description of Hpux11_Fabsf fix
3936  */
3937 tSCC zHpux11_FabsfName[] =
3938      "hpux11_fabsf";
3941  *  File name selection pattern
3942  */
3943 tSCC zHpux11_FabsfList[] =
3944   "math.h\0";
3946  *  Machine/OS name selection pattern
3947  */
3948 #define apzHpux11_FabsfMachs (const char**)NULL
3951  *  content selection pattern - do fix if pattern found
3952  */
3953 tSCC zHpux11_FabsfSelect0[] =
3954        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3957  *  content bypass pattern - skip fix if pattern found
3958  */
3959 tSCC zHpux11_FabsfBypass0[] =
3960        "__cplusplus";
3962 #define    HPUX11_FABSF_TEST_CT  2
3963 static tTestDesc aHpux11_FabsfTests[] = {
3964   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
3965   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3968  *  Fix Command Arguments for Hpux11_Fabsf
3969  */
3970 static const char* apzHpux11_FabsfPatch[] = {
3971     "format",
3972     "#ifndef __cplusplus\n\
3973 %0\n\
3974 #endif",
3975     (char*)NULL };
3977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3979  *  Description of Hpux11_Pthread_Const fix
3980  */
3981 tSCC zHpux11_Pthread_ConstName[] =
3982      "hpux11_pthread_const";
3985  *  File name selection pattern
3986  */
3987 tSCC zHpux11_Pthread_ConstList[] =
3988   "sys/pthread.h\0";
3990  *  Machine/OS name selection pattern
3991  */
3992 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3993         "*-hp-hpux11.[0-3]*",
3994         (const char*)NULL };
3997  *  content selection pattern - do fix if pattern found
3998  */
3999 tSCC zHpux11_Pthread_ConstSelect0[] =
4000        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
4002 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
4003 static tTestDesc aHpux11_Pthread_ConstTests[] = {
4004   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4007  *  Fix Command Arguments for Hpux11_Pthread_Const
4008  */
4009 static const char* apzHpux11_Pthread_ConstPatch[] = {
4010     "format",
4011     "#define __POINTER_SET\t\t((void *) 1L)",
4012     (char*)NULL };
4014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4016  *  Description of Hpux11_Size_T fix
4017  */
4018 tSCC zHpux11_Size_TName[] =
4019      "hpux11_size_t";
4022  *  File name selection pattern
4023  */
4024 #define zHpux11_Size_TList (char*)NULL
4026  *  Machine/OS name selection pattern
4027  */
4028 tSCC* apzHpux11_Size_TMachs[] = {
4029         "*-hp-hpux11*",
4030         (const char*)NULL };
4033  *  content selection pattern - do fix if pattern found
4034  */
4035 tSCC zHpux11_Size_TSelect0[] =
4036        "__size_t";
4038 #define    HPUX11_SIZE_T_TEST_CT  1
4039 static tTestDesc aHpux11_Size_TTests[] = {
4040   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
4043  *  Fix Command Arguments for Hpux11_Size_T
4044  */
4045 static const char* apzHpux11_Size_TPatch[] = {
4046     "format",
4047     "_hpux_size_t",
4048     (char*)NULL };
4050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4052  *  Description of Hpux11_Snprintf fix
4053  */
4054 tSCC zHpux11_SnprintfName[] =
4055      "hpux11_snprintf";
4058  *  File name selection pattern
4059  */
4060 tSCC zHpux11_SnprintfList[] =
4061   "stdio.h\0";
4063  *  Machine/OS name selection pattern
4064  */
4065 #define apzHpux11_SnprintfMachs (const char**)NULL
4068  *  content selection pattern - do fix if pattern found
4069  */
4070 tSCC zHpux11_SnprintfSelect0[] =
4071        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
4073 #define    HPUX11_SNPRINTF_TEST_CT  1
4074 static tTestDesc aHpux11_SnprintfTests[] = {
4075   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
4078  *  Fix Command Arguments for Hpux11_Snprintf
4079  */
4080 static const char* apzHpux11_SnprintfPatch[] = {
4081     "format",
4082     "%1 const %3",
4083     (char*)NULL };
4085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4087  *  Description of Hpux11_Vsnprintf fix
4088  */
4089 tSCC zHpux11_VsnprintfName[] =
4090      "hpux11_vsnprintf";
4093  *  File name selection pattern
4094  */
4095 tSCC zHpux11_VsnprintfList[] =
4096   "stdio.h\0";
4098  *  Machine/OS name selection pattern
4099  */
4100 #define apzHpux11_VsnprintfMachs (const char**)NULL
4103  *  content selection pattern - do fix if pattern found
4104  */
4105 tSCC zHpux11_VsnprintfSelect0[] =
4106        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
4108 #define    HPUX11_VSNPRINTF_TEST_CT  1
4109 static tTestDesc aHpux11_VsnprintfTests[] = {
4110   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
4113  *  Fix Command Arguments for Hpux11_Vsnprintf
4114  */
4115 static const char* apzHpux11_VsnprintfPatch[] = {
4116     "format",
4117     "%1 __va_list);",
4118     (char*)NULL };
4120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4122  *  Description of Hpux8_Bogus_Inlines fix
4123  */
4124 tSCC zHpux8_Bogus_InlinesName[] =
4125      "hpux8_bogus_inlines";
4128  *  File name selection pattern
4129  */
4130 tSCC zHpux8_Bogus_InlinesList[] =
4131   "math.h\0";
4133  *  Machine/OS name selection pattern
4134  */
4135 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
4138  *  content selection pattern - do fix if pattern found
4139  */
4140 tSCC zHpux8_Bogus_InlinesSelect0[] =
4141        "inline";
4144  *  content bypass pattern - skip fix if pattern found
4145  */
4146 tSCC zHpux8_Bogus_InlinesBypass0[] =
4147        "__GNUG__";
4149 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
4150 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
4151   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
4152   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
4155  *  Fix Command Arguments for Hpux8_Bogus_Inlines
4156  */
4157 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
4158     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
4159     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
4160     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
4161     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
4162     (char*)NULL };
4164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4166  *  Description of Hpux_C99_Intptr fix
4167  */
4168 tSCC zHpux_C99_IntptrName[] =
4169      "hpux_c99_intptr";
4172  *  File name selection pattern
4173  */
4174 tSCC zHpux_C99_IntptrList[] =
4175   "stdint-hpux11.h\0stdint.h\0";
4177  *  Machine/OS name selection pattern
4178  */
4179 tSCC* apzHpux_C99_IntptrMachs[] = {
4180         "*-hp-hpux11.3*",
4181         (const char*)NULL };
4182 #define HPUX_C99_INTPTR_TEST_CT  0
4183 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4186  *  Fix Command Arguments for Hpux_C99_Intptr
4187  */
4188 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4189     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4190     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4191     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4192     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4193     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4194     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4195     (char*)NULL };
4197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4199  *  Description of Hpux_C99_Inttypes fix
4200  */
4201 tSCC zHpux_C99_InttypesName[] =
4202      "hpux_c99_inttypes";
4205  *  File name selection pattern
4206  */
4207 tSCC zHpux_C99_InttypesList[] =
4208   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4210  *  Machine/OS name selection pattern
4211  */
4212 tSCC* apzHpux_C99_InttypesMachs[] = {
4213         "*-hp-hpux11.[23]*",
4214         (const char*)NULL };
4215 #define HPUX_C99_INTTYPES_TEST_CT  0
4216 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4219  *  Fix Command Arguments for Hpux_C99_Inttypes
4220  */
4221 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4222     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4223     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4224     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4225     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4226     (char*)NULL };
4228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4230  *  Description of Hpux_C99_Inttypes2 fix
4231  */
4232 tSCC zHpux_C99_Inttypes2Name[] =
4233      "hpux_c99_inttypes2";
4236  *  File name selection pattern
4237  */
4238 tSCC zHpux_C99_Inttypes2List[] =
4239   "stdint-hpux11.h\0stdint.h\0";
4241  *  Machine/OS name selection pattern
4242  */
4243 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4244         "*-hp-hpux11.2*",
4245         (const char*)NULL };
4246 #define HPUX_C99_INTTYPES2_TEST_CT  0
4247 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4250  *  Fix Command Arguments for Hpux_C99_Inttypes2
4251  */
4252 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4253     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4254     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4255     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4256     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4257     (char*)NULL };
4259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4261  *  Description of Hpux_Ctype_Macros fix
4262  */
4263 tSCC zHpux_Ctype_MacrosName[] =
4264      "hpux_ctype_macros";
4267  *  File name selection pattern
4268  */
4269 tSCC zHpux_Ctype_MacrosList[] =
4270   "ctype.h\0";
4272  *  Machine/OS name selection pattern
4273  */
4274 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
4277  *  content selection pattern - do fix if pattern found
4278  */
4279 tSCC zHpux_Ctype_MacrosSelect0[] =
4280        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
4282 #define    HPUX_CTYPE_MACROS_TEST_CT  1
4283 static tTestDesc aHpux_Ctype_MacrosTests[] = {
4284   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
4287  *  Fix Command Arguments for Hpux_Ctype_Macros
4288  */
4289 static const char* apzHpux_Ctype_MacrosPatch[] = {
4290     "format",
4291     "%1(int)%3",
4292     (char*)NULL };
4294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4296  *  Description of Hpux_Extern_Errno fix
4297  */
4298 tSCC zHpux_Extern_ErrnoName[] =
4299      "hpux_extern_errno";
4302  *  File name selection pattern
4303  */
4304 tSCC zHpux_Extern_ErrnoList[] =
4305   "errno.h\0";
4307  *  Machine/OS name selection pattern
4308  */
4309 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4310         "*-hp-hpux10.*",
4311         "*-hp-hpux11.[0-2]*",
4312         (const char*)NULL };
4315  *  content selection pattern - do fix if pattern found
4316  */
4317 tSCC zHpux_Extern_ErrnoSelect0[] =
4318        "^[ \t]*extern int errno;$";
4320 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
4321 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4322   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4325  *  Fix Command Arguments for Hpux_Extern_Errno
4326  */
4327 static const char* apzHpux_Extern_ErrnoPatch[] = {
4328     "format",
4329     "#ifdef __cplusplus\n\
4330 extern \"C\" {\n\
4331 #endif\n\
4332 %0\n\
4333 #ifdef __cplusplus\n\
4334 }\n\
4335 #endif",
4336     (char*)NULL };
4338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4340  *  Description of Hpux_Htonl fix
4341  */
4342 tSCC zHpux_HtonlName[] =
4343      "hpux_htonl";
4346  *  File name selection pattern
4347  */
4348 tSCC zHpux_HtonlList[] =
4349   "netinet/in.h\0";
4351  *  Machine/OS name selection pattern
4352  */
4353 #define apzHpux_HtonlMachs (const char**)NULL
4356  *  content selection pattern - do fix if pattern found
4357  */
4358 tSCC zHpux_HtonlSelect0[] =
4359        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
4360 (/\\*\n\
4361  \\* Macros for number representation conversion\\.\n\
4362  \\*/\n\
4363 #ifndef ntohl)";
4365 #define    HPUX_HTONL_TEST_CT  1
4366 static tTestDesc aHpux_HtonlTests[] = {
4367   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
4370  *  Fix Command Arguments for Hpux_Htonl
4371  */
4372 static const char* apzHpux_HtonlPatch[] = {
4373     "format",
4374     "#if 1\n\
4375 %1",
4376     (char*)NULL };
4378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4380  *  Description of Hpux_Imaginary_I fix
4381  */
4382 tSCC zHpux_Imaginary_IName[] =
4383      "hpux_imaginary_i";
4386  *  File name selection pattern
4387  */
4388 tSCC zHpux_Imaginary_IList[] =
4389   "complex.h\0";
4391  *  Machine/OS name selection pattern
4392  */
4393 tSCC* apzHpux_Imaginary_IMachs[] = {
4394         "ia64-hp-hpux11.*",
4395         (const char*)NULL };
4398  *  content selection pattern - do fix if pattern found
4399  */
4400 tSCC zHpux_Imaginary_ISelect0[] =
4401        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4403 #define    HPUX_IMAGINARY_I_TEST_CT  1
4404 static tTestDesc aHpux_Imaginary_ITests[] = {
4405   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4408  *  Fix Command Arguments for Hpux_Imaginary_I
4409  */
4410 static const char* apzHpux_Imaginary_IPatch[] = {
4411     "format",
4412     "#define _Complex_I (__extension__ 1.0iF)",
4413     (char*)NULL };
4415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4417  *  Description of Hpux_Inttype_Int8_T fix
4418  */
4419 tSCC zHpux_Inttype_Int8_TName[] =
4420      "hpux_inttype_int8_t";
4423  *  File name selection pattern
4424  */
4425 tSCC zHpux_Inttype_Int8_TList[] =
4426   "sys/_inttypes.h\0";
4428  *  Machine/OS name selection pattern
4429  */
4430 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4431         "*-hp-hpux1[01].*",
4432         (const char*)NULL };
4435  *  content selection pattern - do fix if pattern found
4436  */
4437 tSCC zHpux_Inttype_Int8_TSelect0[] =
4438        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4440 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4441 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4442   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4445  *  Fix Command Arguments for Hpux_Inttype_Int8_T
4446  */
4447 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4448     "format",
4449     "typedef signed char int%18_t;",
4450     (char*)NULL };
4452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4454  *  Description of Hpux_Long_Double fix
4455  */
4456 tSCC zHpux_Long_DoubleName[] =
4457      "hpux_long_double";
4460  *  File name selection pattern
4461  */
4462 tSCC zHpux_Long_DoubleList[] =
4463   "stdlib.h\0";
4465  *  Machine/OS name selection pattern
4466  */
4467 tSCC* apzHpux_Long_DoubleMachs[] = {
4468         "*-*-hpux10*",
4469         "*-*-hpux11.[012]*",
4470         (const char*)NULL };
4473  *  content selection pattern - do fix if pattern found
4474  */
4475 tSCC zHpux_Long_DoubleSelect0[] =
4476        "extern[ \t]long_double[ \t]strtold";
4479  *  content bypass pattern - skip fix if pattern found
4480  */
4481 tSCC zHpux_Long_DoubleBypass0[] =
4482        "long_double_t";
4484 #define    HPUX_LONG_DOUBLE_TEST_CT  2
4485 static tTestDesc aHpux_Long_DoubleTests[] = {
4486   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
4487   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
4490  *  Fix Command Arguments for Hpux_Long_Double
4491  */
4492 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
4493     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
4494     "-e", "s/long_double/long double/g",
4495     (char*)NULL };
4497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4499  *  Description of Hpux_Long_Double_2 fix
4500  */
4501 tSCC zHpux_Long_Double_2Name[] =
4502      "hpux_long_double_2";
4505  *  File name selection pattern
4506  */
4507 tSCC zHpux_Long_Double_2List[] =
4508   "stdlib.h\0";
4510  *  Machine/OS name selection pattern
4511  */
4512 tSCC* apzHpux_Long_Double_2Machs[] = {
4513         "hppa*-*-hpux11.3*",
4514         (const char*)NULL };
4517  *  content selection pattern - do fix if pattern found
4518  */
4519 tSCC zHpux_Long_Double_2Select0[] =
4520        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
4522 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
4523 static tTestDesc aHpux_Long_Double_2Tests[] = {
4524   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
4527  *  Fix Command Arguments for Hpux_Long_Double_2
4528  */
4529 static const char* apzHpux_Long_Double_2Patch[] = {
4530     "format",
4531     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
4532     (char*)NULL };
4534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4536  *  Description of Hpux_Pthread_Initializers fix
4537  */
4538 tSCC zHpux_Pthread_InitializersName[] =
4539      "hpux_pthread_initializers";
4542  *  File name selection pattern
4543  */
4544 tSCC zHpux_Pthread_InitializersList[] =
4545   "sys/pthread.h\0";
4547  *  Machine/OS name selection pattern
4548  */
4549 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4550         "*-hp-hpux11.[0-3]*",
4551         (const char*)NULL };
4552 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
4553 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
4556  *  Fix Command Arguments for Hpux_Pthread_Initializers
4557  */
4558 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4559     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4560     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4561     "-e", "/^[ \t]*0$/d",
4562     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4563     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4564     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4565     "-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\\\\@",
4566     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4567     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4568     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4569     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4570     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4571     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4572     (char*)NULL };
4574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4576  *  Description of Hpux_Spu_Info fix
4577  */
4578 tSCC zHpux_Spu_InfoName[] =
4579      "hpux_spu_info";
4582  *  File name selection pattern
4583  */
4584 tSCC zHpux_Spu_InfoList[] =
4585   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
4587  *  Machine/OS name selection pattern
4588  */
4589 tSCC* apzHpux_Spu_InfoMachs[] = {
4590         "*-hp-hpux*",
4591         (const char*)NULL };
4594  *  content selection pattern - do fix if pattern found
4595  */
4596 tSCC zHpux_Spu_InfoSelect0[] =
4597        "^.*extern.*spu_info.*";
4599 #define    HPUX_SPU_INFO_TEST_CT  1
4600 static tTestDesc aHpux_Spu_InfoTests[] = {
4601   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
4604  *  Fix Command Arguments for Hpux_Spu_Info
4605  */
4606 static const char* apzHpux_Spu_InfoPatch[] = {
4607     "format",
4608     "#ifdef _KERNEL\n\
4609 %0\n\
4610 #endif",
4611     (char*)NULL };
4613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4615  *  Description of Hpux_Stdint_Least_Fast fix
4616  */
4617 tSCC zHpux_Stdint_Least_FastName[] =
4618      "hpux_stdint_least_fast";
4621  *  File name selection pattern
4622  */
4623 tSCC zHpux_Stdint_Least_FastList[] =
4624   "stdint-hpux11.h\0stdint.h\0";
4626  *  Machine/OS name selection pattern
4627  */
4628 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4629         "*-hp-hpux11.2*",
4630         (const char*)NULL };
4633  *  content selection pattern - do fix if pattern found
4634  */
4635 tSCC zHpux_Stdint_Least_FastSelect0[] =
4636        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4638 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
4639 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4640   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4643  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
4644  */
4645 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4646     "format",
4647     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
4648     (char*)NULL };
4650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4652  *  Description of Hpux_Systime fix
4653  */
4654 tSCC zHpux_SystimeName[] =
4655      "hpux_systime";
4658  *  File name selection pattern
4659  */
4660 tSCC zHpux_SystimeList[] =
4661   "sys/time.h\0";
4663  *  Machine/OS name selection pattern
4664  */
4665 #define apzHpux_SystimeMachs (const char**)NULL
4668  *  content selection pattern - do fix if pattern found
4669  */
4670 tSCC zHpux_SystimeSelect0[] =
4671        "^extern struct sigevent;";
4673 #define    HPUX_SYSTIME_TEST_CT  1
4674 static tTestDesc aHpux_SystimeTests[] = {
4675   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
4678  *  Fix Command Arguments for Hpux_Systime
4679  */
4680 static const char* apzHpux_SystimePatch[] = {
4681     "format",
4682     "struct sigevent;",
4683     (char*)NULL };
4685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4687  *  Description of Huge_Val_Hex fix
4688  */
4689 tSCC zHuge_Val_HexName[] =
4690      "huge_val_hex";
4693  *  File name selection pattern
4694  */
4695 tSCC zHuge_Val_HexList[] =
4696   "bits/huge_val.h\0*/bits/huge_val.h\0";
4698  *  Machine/OS name selection pattern
4699  */
4700 #define apzHuge_Val_HexMachs (const char**)NULL
4703  *  content selection pattern - do fix if pattern found
4704  */
4705 tSCC zHuge_Val_HexSelect0[] =
4706        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4709  *  content bypass pattern - skip fix if pattern found
4710  */
4711 tSCC zHuge_Val_HexBypass0[] =
4712        "__builtin_huge_val";
4714 #define    HUGE_VAL_HEX_TEST_CT  2
4715 static tTestDesc aHuge_Val_HexTests[] = {
4716   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
4717   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4720  *  Fix Command Arguments for Huge_Val_Hex
4721  */
4722 static const char* apzHuge_Val_HexPatch[] = {
4723     "format",
4724     "#define HUGE_VAL (__builtin_huge_val())\n",
4725     (char*)NULL };
4727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4729  *  Description of Huge_Valf_Hex fix
4730  */
4731 tSCC zHuge_Valf_HexName[] =
4732      "huge_valf_hex";
4735  *  File name selection pattern
4736  */
4737 tSCC zHuge_Valf_HexList[] =
4738   "bits/huge_val.h\0*/bits/huge_val.h\0";
4740  *  Machine/OS name selection pattern
4741  */
4742 #define apzHuge_Valf_HexMachs (const char**)NULL
4745  *  content selection pattern - do fix if pattern found
4746  */
4747 tSCC zHuge_Valf_HexSelect0[] =
4748        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4751  *  content bypass pattern - skip fix if pattern found
4752  */
4753 tSCC zHuge_Valf_HexBypass0[] =
4754        "__builtin_huge_valf";
4756 #define    HUGE_VALF_HEX_TEST_CT  2
4757 static tTestDesc aHuge_Valf_HexTests[] = {
4758   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
4759   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4762  *  Fix Command Arguments for Huge_Valf_Hex
4763  */
4764 static const char* apzHuge_Valf_HexPatch[] = {
4765     "format",
4766     "#define HUGE_VALF (__builtin_huge_valf())\n",
4767     (char*)NULL };
4769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4771  *  Description of Huge_Vall_Hex fix
4772  */
4773 tSCC zHuge_Vall_HexName[] =
4774      "huge_vall_hex";
4777  *  File name selection pattern
4778  */
4779 tSCC zHuge_Vall_HexList[] =
4780   "bits/huge_val.h\0*/bits/huge_val.h\0";
4782  *  Machine/OS name selection pattern
4783  */
4784 #define apzHuge_Vall_HexMachs (const char**)NULL
4787  *  content selection pattern - do fix if pattern found
4788  */
4789 tSCC zHuge_Vall_HexSelect0[] =
4790        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4793  *  content bypass pattern - skip fix if pattern found
4794  */
4795 tSCC zHuge_Vall_HexBypass0[] =
4796        "__builtin_huge_vall";
4798 #define    HUGE_VALL_HEX_TEST_CT  2
4799 static tTestDesc aHuge_Vall_HexTests[] = {
4800   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
4801   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4804  *  Fix Command Arguments for Huge_Vall_Hex
4805  */
4806 static const char* apzHuge_Vall_HexPatch[] = {
4807     "format",
4808     "#define HUGE_VALL (__builtin_huge_vall())\n",
4809     (char*)NULL };
4811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4813  *  Description of Int_Abort_Free_And_Exit fix
4814  */
4815 tSCC zInt_Abort_Free_And_ExitName[] =
4816      "int_abort_free_and_exit";
4819  *  File name selection pattern
4820  */
4821 tSCC zInt_Abort_Free_And_ExitList[] =
4822   "stdlib.h\0";
4824  *  Machine/OS name selection pattern
4825  */
4826 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4829  *  content selection pattern - do fix if pattern found
4830  */
4831 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4832        "int[ \t]+(abort|free|exit)[ \t]*\\(";
4835  *  content bypass pattern - skip fix if pattern found
4836  */
4837 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4838        "_CLASSIC_ANSI_TYPES";
4840 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
4841 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4842   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4843   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4846  *  Fix Command Arguments for Int_Abort_Free_And_Exit
4847  */
4848 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4849     "format",
4850     "void\t%1(",
4851     (char*)NULL };
4853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4855  *  Description of Io_Quotes_Def fix
4856  */
4857 tSCC zIo_Quotes_DefName[] =
4858      "io_quotes_def";
4861  *  File name selection pattern
4862  */
4863 #define zIo_Quotes_DefList (char*)NULL
4865  *  Machine/OS name selection pattern
4866  */
4867 #define apzIo_Quotes_DefMachs (const char**)NULL
4870  *  content selection pattern - do fix if pattern found
4871  */
4872 tSCC zIo_Quotes_DefSelect0[] =
4873        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4875 #define    IO_QUOTES_DEF_TEST_CT  1
4876 static tTestDesc aIo_Quotes_DefTests[] = {
4877   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4880  *  Fix Command Arguments for Io_Quotes_Def
4881  */
4882 static const char* apzIo_Quotes_DefPatch[] = {
4883     "char_macro_def",
4884     "IO",
4885     (char*)NULL };
4887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4889  *  Description of Io_Quotes_Use fix
4890  */
4891 tSCC zIo_Quotes_UseName[] =
4892      "io_quotes_use";
4895  *  File name selection pattern
4896  */
4897 #define zIo_Quotes_UseList (char*)NULL
4899  *  Machine/OS name selection pattern
4900  */
4901 #define apzIo_Quotes_UseMachs (const char**)NULL
4904  *  content selection pattern - do fix if pattern found
4905  */
4906 tSCC zIo_Quotes_UseSelect0[] =
4907        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4909 #define    IO_QUOTES_USE_TEST_CT  1
4910 static tTestDesc aIo_Quotes_UseTests[] = {
4911   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4914  *  Fix Command Arguments for Io_Quotes_Use
4915  */
4916 static const char* apzIo_Quotes_UsePatch[] = {
4917     "char_macro_use",
4918     "IO",
4919     (char*)NULL };
4921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4923  *  Description of Ip_Missing_Semi fix
4924  */
4925 tSCC zIp_Missing_SemiName[] =
4926      "ip_missing_semi";
4929  *  File name selection pattern
4930  */
4931 tSCC zIp_Missing_SemiList[] =
4932   "netinet/ip.h\0";
4934  *  Machine/OS name selection pattern
4935  */
4936 #define apzIp_Missing_SemiMachs (const char**)NULL
4939  *  content selection pattern - do fix if pattern found
4940  */
4941 tSCC zIp_Missing_SemiSelect0[] =
4942        "}$";
4944 #define    IP_MISSING_SEMI_TEST_CT  1
4945 static tTestDesc aIp_Missing_SemiTests[] = {
4946   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4949  *  Fix Command Arguments for Ip_Missing_Semi
4950  */
4951 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4952     "-e", "/^struct/,/^};/s/}$/};/",
4953     (char*)NULL };
4955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4957  *  Description of Irix_Limits_Const fix
4958  */
4959 tSCC zIrix_Limits_ConstName[] =
4960      "irix_limits_const";
4963  *  File name selection pattern
4964  */
4965 tSCC zIrix_Limits_ConstList[] =
4966   "fixinc-test-limits.h\0limits.h\0";
4968  *  Machine/OS name selection pattern
4969  */
4970 #define apzIrix_Limits_ConstMachs (const char**)NULL
4973  *  content selection pattern - do fix if pattern found
4974  */
4975 tSCC zIrix_Limits_ConstSelect0[] =
4976        "^extern const ";
4978 #define    IRIX_LIMITS_CONST_TEST_CT  1
4979 static tTestDesc aIrix_Limits_ConstTests[] = {
4980   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4983  *  Fix Command Arguments for Irix_Limits_Const
4984  */
4985 static const char* apzIrix_Limits_ConstPatch[] = {
4986     "format",
4987     "extern __const ",
4988     (char*)NULL };
4990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4992  *  Description of Irix_Stdio_Va_List fix
4993  */
4994 tSCC zIrix_Stdio_Va_ListName[] =
4995      "irix_stdio_va_list";
4998  *  File name selection pattern
4999  */
5000 tSCC zIrix_Stdio_Va_ListList[] =
5001   "stdio.h\0";
5003  *  Machine/OS name selection pattern
5004  */
5005 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
5008  *  content selection pattern - do fix if pattern found
5009  */
5010 tSCC zIrix_Stdio_Va_ListSelect0[] =
5011        "/\\* va_list \\*/ char \\*";
5013 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
5014 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5015   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5018  *  Fix Command Arguments for Irix_Stdio_Va_List
5019  */
5020 static const char* apzIrix_Stdio_Va_ListPatch[] = {
5021     "format",
5022     "__gnuc_va_list",
5023     (char*)NULL };
5025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5027  *  Description of Kandr_Concat fix
5028  */
5029 tSCC zKandr_ConcatName[] =
5030      "kandr_concat";
5033  *  File name selection pattern
5034  */
5035 tSCC zKandr_ConcatList[] =
5036   "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";
5038  *  Machine/OS name selection pattern
5039  */
5040 #define apzKandr_ConcatMachs (const char**)NULL
5043  *  content selection pattern - do fix if pattern found
5044  */
5045 tSCC zKandr_ConcatSelect0[] =
5046        "/\\*\\*/";
5048 #define    KANDR_CONCAT_TEST_CT  1
5049 static tTestDesc aKandr_ConcatTests[] = {
5050   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
5053  *  Fix Command Arguments for Kandr_Concat
5054  */
5055 static const char* apzKandr_ConcatPatch[] = {
5056     "format",
5057     "##",
5058     (char*)NULL };
5060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5062  *  Description of Linux_Ia64_Ucontext fix
5063  */
5064 tSCC zLinux_Ia64_UcontextName[] =
5065      "linux_ia64_ucontext";
5068  *  File name selection pattern
5069  */
5070 tSCC zLinux_Ia64_UcontextList[] =
5071   "sys/ucontext.h\0";
5073  *  Machine/OS name selection pattern
5074  */
5075 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5076         "ia64-*-linux*",
5077         (const char*)NULL };
5080  *  content selection pattern - do fix if pattern found
5081  */
5082 tSCC zLinux_Ia64_UcontextSelect0[] =
5083        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5085 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
5086 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5087   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5090  *  Fix Command Arguments for Linux_Ia64_Ucontext
5091  */
5092 static const char* apzLinux_Ia64_UcontextPatch[] = {
5093     "format",
5094     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5095     (char*)NULL };
5097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5099  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
5100  */
5101 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5102      "lynxos_no_warning_in_sys_time_h";
5105  *  File name selection pattern
5106  */
5107 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5108   "sys/time.h\0";
5110  *  Machine/OS name selection pattern
5111  */
5112 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5115  *  content selection pattern - do fix if pattern found
5116  */
5117 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5118        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5120 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
5121 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5122   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5125  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5126  */
5127 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5128     "format",
5129     "",
5130     (char*)NULL };
5132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5134  *  Description of Lynxos_Missing_Putenv fix
5135  */
5136 tSCC zLynxos_Missing_PutenvName[] =
5137      "lynxos_missing_putenv";
5140  *  File name selection pattern
5141  */
5142 tSCC zLynxos_Missing_PutenvList[] =
5143   "stdlib.h\0";
5145  *  Machine/OS name selection pattern
5146  */
5147 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5148         "*-*-lynxos*",
5149         (const char*)NULL };
5152  *  content selection pattern - do fix if pattern found
5153  */
5154 tSCC zLynxos_Missing_PutenvSelect0[] =
5155        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5158  *  content bypass pattern - skip fix if pattern found
5159  */
5160 tSCC zLynxos_Missing_PutenvBypass0[] =
5161        "putenv[ \\t]*\\(";
5163 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
5164 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5165   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5166   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5169  *  Fix Command Arguments for Lynxos_Missing_Putenv
5170  */
5171 static const char* apzLynxos_Missing_PutenvPatch[] = {
5172     "format",
5173     "%0\n\
5174 extern int putenv\t\t\t\t_AP((char *));",
5175     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5176     (char*)NULL };
5178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5180  *  Description of Machine_Ansi_H_Va_List fix
5181  */
5182 tSCC zMachine_Ansi_H_Va_ListName[] =
5183      "machine_ansi_h_va_list";
5186  *  File name selection pattern
5187  */
5188 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5190  *  Machine/OS name selection pattern
5191  */
5192 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5195  *  content selection pattern - do fix if pattern found
5196  */
5197 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5198        "define[ \t]+_BSD_VA_LIST_[ \t]";
5201  *  content bypass pattern - skip fix if pattern found
5202  */
5203 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5204        "__builtin_va_list";
5206 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5207 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5208   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5209   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5212  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5213  */
5214 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5215     "format",
5216     "%1__builtin_va_list",
5217     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5218     (char*)NULL };
5220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5222  *  Description of Machine_Name fix
5223  */
5224 tSCC zMachine_NameName[] =
5225      "machine_name";
5228  *  File name selection pattern
5229  */
5230 #define zMachine_NameList (char*)NULL
5232  *  Machine/OS name selection pattern
5233  */
5234 #define apzMachine_NameMachs (const char**)NULL
5237  *  perform the C function call test
5238  */
5239 tSCC zMachine_NameFTst0[] = "machine_name";
5241 #define    MACHINE_NAME_TEST_CT  1
5242 static tTestDesc aMachine_NameTests[] = {
5243   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5246  *  Fix Command Arguments for Machine_Name
5247  */
5248 static const char* apzMachine_NamePatch[] = {
5249     "machine_name",
5250     (char*)NULL };
5252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5254  *  Description of Math_Exception fix
5255  */
5256 tSCC zMath_ExceptionName[] =
5257      "math_exception";
5260  *  File name selection pattern
5261  */
5262 tSCC zMath_ExceptionList[] =
5263   "math.h\0";
5265  *  Machine/OS name selection pattern
5266  */
5267 tSCC* apzMath_ExceptionMachs[] = {
5268         "*-*-solaris2.1[0-9]*",
5269         (const char*)NULL };
5272  *  content selection pattern - do fix if pattern found
5273  */
5274 tSCC zMath_ExceptionSelect0[] =
5275        "struct exception";
5278  *  content bypass pattern - skip fix if pattern found
5279  */
5280 tSCC zMath_ExceptionBypass0[] =
5281        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5283 #define    MATH_EXCEPTION_TEST_CT  2
5284 static tTestDesc aMath_ExceptionTests[] = {
5285   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5286   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5289  *  Fix Command Arguments for Math_Exception
5290  */
5291 static const char* apzMath_ExceptionPatch[] = {
5292     "wrap",
5293     "#ifdef __cplusplus\n\
5294 #define exception __math_exception\n\
5295 #endif\n",
5296     "#ifdef __cplusplus\n\
5297 #undef exception\n\
5298 #endif\n",
5299     (char*)NULL };
5301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5303  *  Description of Math_Huge_Val_From_Dbl_Max fix
5304  */
5305 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5306      "math_huge_val_from_dbl_max";
5309  *  File name selection pattern
5310  */
5311 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5312   "math.h\0";
5314  *  Machine/OS name selection pattern
5315  */
5316 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5319  *  content selection pattern - do fix if pattern found
5320  */
5321 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5322        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5325  *  content bypass pattern - skip fix if pattern found
5326  */
5327 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5328        "define[ \t]+DBL_MAX";
5330 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
5331 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5332   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5333   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5336  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5337  */
5338 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5339     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5340 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5341 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5342 \telse cat\n\
5343 \tfi",
5344     (char*)NULL };
5346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5348  *  Description of Nested_Auth_Des fix
5349  */
5350 tSCC zNested_Auth_DesName[] =
5351      "nested_auth_des";
5354  *  File name selection pattern
5355  */
5356 tSCC zNested_Auth_DesList[] =
5357   "rpc/rpc.h\0";
5359  *  Machine/OS name selection pattern
5360  */
5361 #define apzNested_Auth_DesMachs (const char**)NULL
5364  *  content selection pattern - do fix if pattern found
5365  */
5366 tSCC zNested_Auth_DesSelect0[] =
5367        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5369 #define    NESTED_AUTH_DES_TEST_CT  1
5370 static tTestDesc aNested_Auth_DesTests[] = {
5371   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5374  *  Fix Command Arguments for Nested_Auth_Des
5375  */
5376 static const char* apzNested_Auth_DesPatch[] = {
5377     "format",
5378     "%1*/ /*",
5379     (char*)NULL };
5381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5383  *  Description of Netbsd_C99_Inline_1 fix
5384  */
5385 tSCC zNetbsd_C99_Inline_1Name[] =
5386      "netbsd_c99_inline_1";
5389  *  File name selection pattern
5390  */
5391 tSCC zNetbsd_C99_Inline_1List[] =
5392   "signal.h\0";
5394  *  Machine/OS name selection pattern
5395  */
5396 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5397         "*-*-netbsd*",
5398         (const char*)NULL };
5401  *  content selection pattern - do fix if pattern found
5402  */
5403 tSCC zNetbsd_C99_Inline_1Select0[] =
5404        "extern __inline int";
5406 #define    NETBSD_C99_INLINE_1_TEST_CT  1
5407 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5408   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5411  *  Fix Command Arguments for Netbsd_C99_Inline_1
5412  */
5413 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5414     "format",
5415     "extern\n\
5416 #ifdef __GNUC_STDC_INLINE__\n\
5417 __attribute__((__gnu_inline__))\n\
5418 #endif\n\
5419 __inline int",
5420     (char*)NULL };
5422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5424  *  Description of Netbsd_C99_Inline_2 fix
5425  */
5426 tSCC zNetbsd_C99_Inline_2Name[] =
5427      "netbsd_c99_inline_2";
5430  *  File name selection pattern
5431  */
5432 tSCC zNetbsd_C99_Inline_2List[] =
5433   "signal.h\0";
5435  *  Machine/OS name selection pattern
5436  */
5437 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5438         "*-*-netbsd*",
5439         (const char*)NULL };
5442  *  content selection pattern - do fix if pattern found
5443  */
5444 tSCC zNetbsd_C99_Inline_2Select0[] =
5445        "#define _SIGINLINE extern __inline";
5447 #define    NETBSD_C99_INLINE_2_TEST_CT  1
5448 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5449   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5452  *  Fix Command Arguments for Netbsd_C99_Inline_2
5453  */
5454 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5455     "format",
5456     "#ifdef __GNUC_STDC_INLINE__\n\
5457 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5458 #else\n\
5459 %0\n\
5460 #endif",
5461     (char*)NULL };
5463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5465  *  Description of Netbsd_Extra_Semicolon fix
5466  */
5467 tSCC zNetbsd_Extra_SemicolonName[] =
5468      "netbsd_extra_semicolon";
5471  *  File name selection pattern
5472  */
5473 tSCC zNetbsd_Extra_SemicolonList[] =
5474   "sys/cdefs.h\0";
5476  *  Machine/OS name selection pattern
5477  */
5478 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5479         "*-*-netbsd*",
5480         (const char*)NULL };
5483  *  content selection pattern - do fix if pattern found
5484  */
5485 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5486        "#define[ \t]*__END_DECLS[ \t]*};";
5488 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
5489 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5490   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5493  *  Fix Command Arguments for Netbsd_Extra_Semicolon
5494  */
5495 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5496     "format",
5497     "#define __END_DECLS }",
5498     (char*)NULL };
5500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5502  *  Description of Newlib_Stdint_1 fix
5503  */
5504 tSCC zNewlib_Stdint_1Name[] =
5505      "newlib_stdint_1";
5508  *  File name selection pattern
5509  */
5510 tSCC zNewlib_Stdint_1List[] =
5511   "stdint-newlib.h\0stdint.h\0";
5513  *  Machine/OS name selection pattern
5514  */
5515 #define apzNewlib_Stdint_1Machs (const char**)NULL
5518  *  content selection pattern - do fix if pattern found
5519  */
5520 tSCC zNewlib_Stdint_1Select0[] =
5521        "@todo - Add support for wint_t types";
5523 #define    NEWLIB_STDINT_1_TEST_CT  1
5524 static tTestDesc aNewlib_Stdint_1Tests[] = {
5525   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5528  *  Fix Command Arguments for Newlib_Stdint_1
5529  */
5530 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5531     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5532     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5533     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5534     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5535     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5536     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5537     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5538     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5539     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5540     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5541     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5542     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5543     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5544     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5545     (char*)NULL };
5547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5549  *  Description of Newlib_Stdint_2 fix
5550  */
5551 tSCC zNewlib_Stdint_2Name[] =
5552      "newlib_stdint_2";
5555  *  File name selection pattern
5556  */
5557 tSCC zNewlib_Stdint_2List[] =
5558   "stdint-newlib.h\0stdint.h\0";
5560  *  Machine/OS name selection pattern
5561  */
5562 #define apzNewlib_Stdint_2Machs (const char**)NULL
5565  *  content selection pattern - do fix if pattern found
5566  */
5567 tSCC zNewlib_Stdint_2Select0[] =
5568        "@todo - Add support for wint_t types";
5570 #define    NEWLIB_STDINT_2_TEST_CT  1
5571 static tTestDesc aNewlib_Stdint_2Tests[] = {
5572   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5575  *  Fix Command Arguments for Newlib_Stdint_2
5576  */
5577 static const char* apzNewlib_Stdint_2Patch[] = {
5578     "format",
5579     "#define INTMAX_MAX __INTMAX_MAX__\n\
5580 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5581 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5582 #define WCHAR_MAX __WCHAR_MAX__\n\
5583 #define WCHAR_MIN __WCHAR_MIN__\n\
5584 #define WINT_MAX __WINT_MAX__\n\
5585 #define WINT_MIN __WINT_MIN__\n\n\
5586 %0",
5587     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5588     (char*)NULL };
5590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5592  *  Description of Next_Math_Prefix fix
5593  */
5594 tSCC zNext_Math_PrefixName[] =
5595      "next_math_prefix";
5598  *  File name selection pattern
5599  */
5600 tSCC zNext_Math_PrefixList[] =
5601   "ansi/math.h\0";
5603  *  Machine/OS name selection pattern
5604  */
5605 #define apzNext_Math_PrefixMachs (const char**)NULL
5608  *  content selection pattern - do fix if pattern found
5609  */
5610 tSCC zNext_Math_PrefixSelect0[] =
5611        "^extern[ \t]+double[ \t]+__const__[ \t]";
5613 #define    NEXT_MATH_PREFIX_TEST_CT  1
5614 static tTestDesc aNext_Math_PrefixTests[] = {
5615   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5618  *  Fix Command Arguments for Next_Math_Prefix
5619  */
5620 static const char* apzNext_Math_PrefixPatch[] = {
5621     "format",
5622     "extern double %1(",
5623     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5624     (char*)NULL };
5626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5628  *  Description of Next_Template fix
5629  */
5630 tSCC zNext_TemplateName[] =
5631      "next_template";
5634  *  File name selection pattern
5635  */
5636 tSCC zNext_TemplateList[] =
5637   "bsd/libc.h\0";
5639  *  Machine/OS name selection pattern
5640  */
5641 #define apzNext_TemplateMachs (const char**)NULL
5644  *  content selection pattern - do fix if pattern found
5645  */
5646 tSCC zNext_TemplateSelect0[] =
5647        "[ \t]template\\)";
5649 #define    NEXT_TEMPLATE_TEST_CT  1
5650 static tTestDesc aNext_TemplateTests[] = {
5651   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
5654  *  Fix Command Arguments for Next_Template
5655  */
5656 static const char* apzNext_TemplatePatch[] = {
5657     "format",
5658     "(%1)",
5659     "\\(([^)]*)[ \t]template\\)",
5660     (char*)NULL };
5662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5664  *  Description of Next_Volitile fix
5665  */
5666 tSCC zNext_VolitileName[] =
5667      "next_volitile";
5670  *  File name selection pattern
5671  */
5672 tSCC zNext_VolitileList[] =
5673   "ansi/stdlib.h\0";
5675  *  Machine/OS name selection pattern
5676  */
5677 #define apzNext_VolitileMachs (const char**)NULL
5680  *  content selection pattern - do fix if pattern found
5681  */
5682 tSCC zNext_VolitileSelect0[] =
5683        "^extern[ \t]+volatile[ \t]+void[ \t]";
5685 #define    NEXT_VOLITILE_TEST_CT  1
5686 static tTestDesc aNext_VolitileTests[] = {
5687   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
5690  *  Fix Command Arguments for Next_Volitile
5691  */
5692 static const char* apzNext_VolitilePatch[] = {
5693     "format",
5694     "extern void %1(",
5695     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5696     (char*)NULL };
5698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5700  *  Description of Next_Wait_Union fix
5701  */
5702 tSCC zNext_Wait_UnionName[] =
5703      "next_wait_union";
5706  *  File name selection pattern
5707  */
5708 tSCC zNext_Wait_UnionList[] =
5709   "sys/wait.h\0";
5711  *  Machine/OS name selection pattern
5712  */
5713 #define apzNext_Wait_UnionMachs (const char**)NULL
5716  *  content selection pattern - do fix if pattern found
5717  */
5718 tSCC zNext_Wait_UnionSelect0[] =
5719        "wait\\(union wait";
5721 #define    NEXT_WAIT_UNION_TEST_CT  1
5722 static tTestDesc aNext_Wait_UnionTests[] = {
5723   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5726  *  Fix Command Arguments for Next_Wait_Union
5727  */
5728 static const char* apzNext_Wait_UnionPatch[] = {
5729     "format",
5730     "wait(void",
5731     (char*)NULL };
5733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5735  *  Description of Nodeent_Syntax fix
5736  */
5737 tSCC zNodeent_SyntaxName[] =
5738      "nodeent_syntax";
5741  *  File name selection pattern
5742  */
5743 tSCC zNodeent_SyntaxList[] =
5744   "netdnet/dnetdb.h\0";
5746  *  Machine/OS name selection pattern
5747  */
5748 #define apzNodeent_SyntaxMachs (const char**)NULL
5751  *  content selection pattern - do fix if pattern found
5752  */
5753 tSCC zNodeent_SyntaxSelect0[] =
5754        "char[ \t]*\\*na_addr[ \t]*$";
5756 #define    NODEENT_SYNTAX_TEST_CT  1
5757 static tTestDesc aNodeent_SyntaxTests[] = {
5758   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5761  *  Fix Command Arguments for Nodeent_Syntax
5762  */
5763 static const char* apzNodeent_SyntaxPatch[] = {
5764     "format",
5765     "%0;",
5766     (char*)NULL };
5768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5770  *  Description of Openbsd_Null_Definition fix
5771  */
5772 tSCC zOpenbsd_Null_DefinitionName[] =
5773      "openbsd_null_definition";
5776  *  File name selection pattern
5777  */
5778 tSCC zOpenbsd_Null_DefinitionList[] =
5779   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5781  *  Machine/OS name selection pattern
5782  */
5783 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5784         "*-*-openbsd*",
5785         (const char*)NULL };
5788  *  content selection pattern - do fix if pattern found
5789  */
5790 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5791        "__GNUG__";
5793 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
5794 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5795   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5798  *  Fix Command Arguments for Openbsd_Null_Definition
5799  */
5800 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5801     "format",
5802     "#ifndef NULL\n\
5803 #ifdef __cplusplus\n\
5804 #ifdef __GNUG__\n\
5805 #define NULL\t__null\n\
5806 #else\t /* ! __GNUG__  */\n\
5807 #define NULL\t0L\n\
5808 #endif\t /* __GNUG__  */\n\
5809 #else\t /* ! __cplusplus  */\n\
5810 #define NULL\t((void *)0)\n\
5811 #endif\t /* __cplusplus  */\n\
5812 #endif\t /* !NULL  */",
5813     "^#ifndef[ \t]*NULL\n\
5814 ^#ifdef[ \t]*__GNUG__\n\
5815 ^#define[ \t]*NULL[ \t]*__null\n\
5816 ^#else\n\
5817 ^#define[ \t]*NULL[ \t]*0L\n\
5818 ^#endif\n\
5819 ^#endif",
5820     (char*)NULL };
5822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5824  *  Description of Obstack_Lvalue_Cast fix
5825  */
5826 tSCC zObstack_Lvalue_CastName[] =
5827      "obstack_lvalue_cast";
5830  *  File name selection pattern
5831  */
5832 tSCC zObstack_Lvalue_CastList[] =
5833   "obstack.h\0";
5835  *  Machine/OS name selection pattern
5836  */
5837 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5840  *  content selection pattern - do fix if pattern found
5841  */
5842 tSCC zObstack_Lvalue_CastSelect0[] =
5843        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5845 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
5846 static tTestDesc aObstack_Lvalue_CastTests[] = {
5847   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5850  *  Fix Command Arguments for Obstack_Lvalue_Cast
5851  */
5852 static const char* apzObstack_Lvalue_CastPatch[] = {
5853     "format",
5854     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5855     (char*)NULL };
5857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5859  *  Description of Openbsd_Va_Start fix
5860  */
5861 tSCC zOpenbsd_Va_StartName[] =
5862      "openbsd_va_start";
5865  *  File name selection pattern
5866  */
5867 tSCC zOpenbsd_Va_StartList[] =
5868   "stdarg.h\0";
5870  *  Machine/OS name selection pattern
5871  */
5872 tSCC* apzOpenbsd_Va_StartMachs[] = {
5873         "*-*-openbsd*",
5874         (const char*)NULL };
5877  *  content selection pattern - do fix if pattern found
5878  */
5879 tSCC zOpenbsd_Va_StartSelect0[] =
5880        "__builtin_stdarg_start";
5882 #define    OPENBSD_VA_START_TEST_CT  1
5883 static tTestDesc aOpenbsd_Va_StartTests[] = {
5884   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5887  *  Fix Command Arguments for Openbsd_Va_Start
5888  */
5889 static const char* apzOpenbsd_Va_StartPatch[] = {
5890     "format",
5891     "__builtin_va_start",
5892     (char*)NULL };
5894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5896  *  Description of Osf_Namespace_A fix
5897  */
5898 tSCC zOsf_Namespace_AName[] =
5899      "osf_namespace_a";
5902  *  File name selection pattern
5903  */
5904 tSCC zOsf_Namespace_AList[] =
5905   "reg_types.h\0sys/lc_core.h\0";
5907  *  Machine/OS name selection pattern
5908  */
5909 #define apzOsf_Namespace_AMachs (const char**)NULL
5912  *  perform the 'test' shell command - do fix on success
5913  */
5914 tSCC zOsf_Namespace_ATest0[] =
5915        " -r reg_types.h";
5916 tSCC zOsf_Namespace_ATest1[] =
5917        " -r sys/lc_core.h";
5918 tSCC zOsf_Namespace_ATest2[] =
5919        " -n \"`grep '} regex_t;' reg_types.h`\"";
5920 tSCC zOsf_Namespace_ATest3[] =
5921        " -z \"`grep __regex_t regex.h`\"";
5923 #define    OSF_NAMESPACE_A_TEST_CT  4
5924 static tTestDesc aOsf_Namespace_ATests[] = {
5925   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
5926   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
5927   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
5928   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
5931  *  Fix Command Arguments for Osf_Namespace_A
5932  */
5933 static const char* apzOsf_Namespace_APatch[] = {
5934     "format",
5935     "__%0",
5936     "reg(ex|off|match)_t",
5937     (char*)NULL };
5939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5941  *  Description of Osf_Namespace_C fix
5942  */
5943 tSCC zOsf_Namespace_CName[] =
5944      "osf_namespace_c";
5947  *  File name selection pattern
5948  */
5949 tSCC zOsf_Namespace_CList[] =
5950   "regex.h\0";
5952  *  Machine/OS name selection pattern
5953  */
5954 #define apzOsf_Namespace_CMachs (const char**)NULL
5957  *  content selection pattern - do fix if pattern found
5958  */
5959 tSCC zOsf_Namespace_CSelect0[] =
5960        "#include <reg_types.h>.*";
5963  *  perform the 'test' shell command - do fix on success
5964  */
5965 tSCC zOsf_Namespace_CTest0[] =
5966        " -r reg_types.h";
5967 tSCC zOsf_Namespace_CTest1[] =
5968        " -r sys/lc_core.h";
5969 tSCC zOsf_Namespace_CTest2[] =
5970        " -n \"`grep '} regex_t;' reg_types.h`\"";
5971 tSCC zOsf_Namespace_CTest3[] =
5972        " -z \"`grep __regex_t regex.h`\"";
5974 #define    OSF_NAMESPACE_C_TEST_CT  5
5975 static tTestDesc aOsf_Namespace_CTests[] = {
5976   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
5977   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
5978   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
5979   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
5980   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5983  *  Fix Command Arguments for Osf_Namespace_C
5984  */
5985 static const char* apzOsf_Namespace_CPatch[] = {
5986     "format",
5987     "%0\n\
5988 typedef __regex_t\tregex_t;\n\
5989 typedef __regoff_t\tregoff_t;\n\
5990 typedef __regmatch_t\tregmatch_t;",
5991     (char*)NULL };
5993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5995  *  Description of Pthread_Incomplete_Struct_Argument fix
5996  */
5997 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5998      "pthread_incomplete_struct_argument";
6001  *  File name selection pattern
6002  */
6003 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
6004   "pthread.h\0";
6006  *  Machine/OS name selection pattern
6007  */
6008 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6011  *  content selection pattern - do fix if pattern found
6012  */
6013 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6014        "struct __jmp_buf_tag";
6016 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
6017 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6018   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6021  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6022  */
6023 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6024     "format",
6025     "%1 *%2%3",
6026     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6027     (char*)NULL };
6029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6031  *  Description of Read_Ret_Type fix
6032  */
6033 tSCC zRead_Ret_TypeName[] =
6034      "read_ret_type";
6037  *  File name selection pattern
6038  */
6039 tSCC zRead_Ret_TypeList[] =
6040   "stdio.h\0";
6042  *  Machine/OS name selection pattern
6043  */
6044 #define apzRead_Ret_TypeMachs (const char**)NULL
6047  *  content selection pattern - do fix if pattern found
6048  */
6049 tSCC zRead_Ret_TypeSelect0[] =
6050        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6052 #define    READ_RET_TYPE_TEST_CT  1
6053 static tTestDesc aRead_Ret_TypeTests[] = {
6054   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6057  *  Fix Command Arguments for Read_Ret_Type
6058  */
6059 static const char* apzRead_Ret_TypePatch[] = {
6060     "format",
6061     "extern unsigned int fread(), fwrite();\n\
6062 %1%2",
6063     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6064     (char*)NULL };
6066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6068  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
6069  */
6070 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6071      "rpc_xdr_lvalue_cast_a";
6074  *  File name selection pattern
6075  */
6076 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6077   "rpc/xdr.h\0";
6079  *  Machine/OS name selection pattern
6080  */
6081 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6084  *  content selection pattern - do fix if pattern found
6085  */
6086 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6087        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6088 .*__extension__.*";
6090 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
6091 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6092   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6095  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6096  */
6097 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6098     "format",
6099     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6100     (char*)NULL };
6102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6104  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
6105  */
6106 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6107      "rpc_xdr_lvalue_cast_b";
6110  *  File name selection pattern
6111  */
6112 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6113   "rpc/xdr.h\0";
6115  *  Machine/OS name selection pattern
6116  */
6117 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6120  *  content selection pattern - do fix if pattern found
6121  */
6122 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6123        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6124 .*__extension__.*";
6126 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
6127 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6128   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6131  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6132  */
6133 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6134     "format",
6135     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6136     (char*)NULL };
6138 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6140  *  Description of Rs6000_Double fix
6141  */
6142 tSCC zRs6000_DoubleName[] =
6143      "rs6000_double";
6146  *  File name selection pattern
6147  */
6148 tSCC zRs6000_DoubleList[] =
6149   "math.h\0";
6151  *  Machine/OS name selection pattern
6152  */
6153 #define apzRs6000_DoubleMachs (const char**)NULL
6156  *  content selection pattern - do fix if pattern found
6157  */
6158 tSCC zRs6000_DoubleSelect0[] =
6159        "[^a-zA-Z_]class\\(";
6161 #define    RS6000_DOUBLE_TEST_CT  1
6162 static tTestDesc aRs6000_DoubleTests[] = {
6163   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6166  *  Fix Command Arguments for Rs6000_Double
6167  */
6168 static const char* apzRs6000_DoublePatch[] = {
6169     "format",
6170     "#ifndef __cplusplus\n\
6171 %0\n\
6172 #endif",
6173     "^.*[^a-zA-Z_]class\\(.*",
6174     (char*)NULL };
6176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6178  *  Description of Rs6000_Fchmod fix
6179  */
6180 tSCC zRs6000_FchmodName[] =
6181      "rs6000_fchmod";
6184  *  File name selection pattern
6185  */
6186 tSCC zRs6000_FchmodList[] =
6187   "sys/stat.h\0";
6189  *  Machine/OS name selection pattern
6190  */
6191 #define apzRs6000_FchmodMachs (const char**)NULL
6194  *  content selection pattern - do fix if pattern found
6195  */
6196 tSCC zRs6000_FchmodSelect0[] =
6197        "fchmod\\(char \\*";
6199 #define    RS6000_FCHMOD_TEST_CT  1
6200 static tTestDesc aRs6000_FchmodTests[] = {
6201   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6204  *  Fix Command Arguments for Rs6000_Fchmod
6205  */
6206 static const char* apzRs6000_FchmodPatch[] = {
6207     "format",
6208     "fchmod(int",
6209     (char*)NULL };
6211 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6213  *  Description of Rs6000_Param fix
6214  */
6215 tSCC zRs6000_ParamName[] =
6216      "rs6000_param";
6219  *  File name selection pattern
6220  */
6221 tSCC zRs6000_ParamList[] =
6222   "stdio.h\0unistd.h\0";
6224  *  Machine/OS name selection pattern
6225  */
6226 #define apzRs6000_ParamMachs (const char**)NULL
6229  *  content selection pattern - do fix if pattern found
6230  */
6231 tSCC zRs6000_ParamSelect0[] =
6232        "rename\\(const char \\*old, const char \\*new\\)";
6234 #define    RS6000_PARAM_TEST_CT  1
6235 static tTestDesc aRs6000_ParamTests[] = {
6236   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6239  *  Fix Command Arguments for Rs6000_Param
6240  */
6241 static const char* apzRs6000_ParamPatch[] = {
6242     "format",
6243     "rename(const char *_old, const char *_new)",
6244     (char*)NULL };
6246 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6248  *  Description of Solaris___Restrict fix
6249  */
6250 tSCC zSolaris___RestrictName[] =
6251      "solaris___restrict";
6254  *  File name selection pattern
6255  */
6256 tSCC zSolaris___RestrictList[] =
6257   "sys/feature_tests.h\0";
6259  *  Machine/OS name selection pattern
6260  */
6261 tSCC* apzSolaris___RestrictMachs[] = {
6262         "*-*-solaris2*",
6263         (const char*)NULL };
6266  *  content selection pattern - do fix if pattern found
6267  */
6268 tSCC zSolaris___RestrictSelect0[] =
6269        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6271 #define    SOLARIS___RESTRICT_TEST_CT  1
6272 static tTestDesc aSolaris___RestrictTests[] = {
6273   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6276  *  Fix Command Arguments for Solaris___Restrict
6277  */
6278 static const char* apzSolaris___RestrictPatch[] = {
6279     "format",
6280     "#ifdef __cplusplus\n\
6281 #define\t_RESTRICT_KYWD\t__restrict\n\
6282 #else\n\
6283 %0\n\
6284 #endif",
6285     (char*)NULL };
6287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6289  *  Description of Solaris_Complex fix
6290  */
6291 tSCC zSolaris_ComplexName[] =
6292      "solaris_complex";
6295  *  File name selection pattern
6296  */
6297 tSCC zSolaris_ComplexList[] =
6298   "complex.h\0";
6300  *  Machine/OS name selection pattern
6301  */
6302 tSCC* apzSolaris_ComplexMachs[] = {
6303         "*-*-solaris2.*",
6304         (const char*)NULL };
6307  *  content selection pattern - do fix if pattern found
6308  */
6309 tSCC zSolaris_ComplexSelect0[] =
6310        "#define[ \t]_Complex_I[ \t]_Complex_I";
6312 #define    SOLARIS_COMPLEX_TEST_CT  1
6313 static tTestDesc aSolaris_ComplexTests[] = {
6314   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6317  *  Fix Command Arguments for Solaris_Complex
6318  */
6319 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6320     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6321     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6322     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6323     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6324     (char*)NULL };
6326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6328  *  Description of Solaris_Complex_Cxx fix
6329  */
6330 tSCC zSolaris_Complex_CxxName[] =
6331      "solaris_complex_cxx";
6334  *  File name selection pattern
6335  */
6336 tSCC zSolaris_Complex_CxxList[] =
6337   "complex.h\0";
6339  *  Machine/OS name selection pattern
6340  */
6341 tSCC* apzSolaris_Complex_CxxMachs[] = {
6342         "*-*-solaris2.*",
6343         (const char*)NULL };
6344 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
6345 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
6348  *  Fix Command Arguments for Solaris_Complex_Cxx
6349  */
6350 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6351     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6352 #ifdef\t__cplusplus\\\n\
6353 extern \"C\" {\\\n\
6354 #endif",
6355     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6356 #ifdef\t__cplusplus\\\n\
6357 }\\\n\
6358 #endif",
6359     (char*)NULL };
6361 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6363  *  Description of Solaris_Cxx_Linkage fix
6364  */
6365 tSCC zSolaris_Cxx_LinkageName[] =
6366      "solaris_cxx_linkage";
6369  *  File name selection pattern
6370  */
6371 tSCC zSolaris_Cxx_LinkageList[] =
6372   "iso/stdlib_iso.h\0";
6374  *  Machine/OS name selection pattern
6375  */
6376 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6377         "*-*-solaris2*",
6378         (const char*)NULL };
6381  *  content selection pattern - do fix if pattern found
6382  */
6383 tSCC zSolaris_Cxx_LinkageSelect0[] =
6384        "(#if __cplusplus >= 199711L)\n\
6385 (extern \"C\\+\\+\" \\{\n\
6386 )(.*(bsearch|qsort).*)";
6388 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
6389 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6390   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6393  *  Fix Command Arguments for Solaris_Cxx_Linkage
6394  */
6395 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6396     "format",
6397     "%1 && !__GNUG__\n\
6398 %2%3",
6399     (char*)NULL };
6401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6403  *  Description of Solaris_Getc_Strict_Stdc fix
6404  */
6405 tSCC zSolaris_Getc_Strict_StdcName[] =
6406      "solaris_getc_strict_stdc";
6409  *  File name selection pattern
6410  */
6411 tSCC zSolaris_Getc_Strict_StdcList[] =
6412   "iso/stdio_iso.h\0";
6414  *  Machine/OS name selection pattern
6415  */
6416 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6417         "*-*-solaris2*",
6418         (const char*)NULL };
6421  *  content selection pattern - do fix if pattern found
6422  */
6423 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6424        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6426 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
6427 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6428   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6431  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
6432  */
6433 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6434     "format",
6435     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6436     (char*)NULL };
6438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6440  *  Description of Solaris_Int_Const fix
6441  */
6442 tSCC zSolaris_Int_ConstName[] =
6443      "solaris_int_const";
6446  *  File name selection pattern
6447  */
6448 tSCC zSolaris_Int_ConstList[] =
6449   "sys/int_const.h\0";
6451  *  Machine/OS name selection pattern
6452  */
6453 tSCC* apzSolaris_Int_ConstMachs[] = {
6454         "*-*-solaris2*",
6455         (const char*)NULL };
6458  *  content selection pattern - do fix if pattern found
6459  */
6460 tSCC zSolaris_Int_ConstSelect0[] =
6461        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6462 (/*.**/)\n\
6463 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6465 #define    SOLARIS_INT_CONST_TEST_CT  1
6466 static tTestDesc aSolaris_Int_ConstTests[] = {
6467   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6470  *  Fix Command Arguments for Solaris_Int_Const
6471  */
6472 static const char* apzSolaris_Int_ConstPatch[] = {
6473     "format",
6474     "#define\tUINT8_C(c)\t(c)\n\
6475 %1\n\
6476 #define\tUINT16_C(c)\t(c)",
6477     (char*)NULL };
6479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6481  *  Description of Solaris_Int_Limits_1 fix
6482  */
6483 tSCC zSolaris_Int_Limits_1Name[] =
6484      "solaris_int_limits_1";
6487  *  File name selection pattern
6488  */
6489 tSCC zSolaris_Int_Limits_1List[] =
6490   "sys/int_limits.h\0";
6492  *  Machine/OS name selection pattern
6493  */
6494 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6495         "*-*-solaris2*",
6496         (const char*)NULL };
6499  *  content selection pattern - do fix if pattern found
6500  */
6501 tSCC zSolaris_Int_Limits_1Select0[] =
6502        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6503 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6505 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
6506 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6507   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6510  *  Fix Command Arguments for Solaris_Int_Limits_1
6511  */
6512 static const char* apzSolaris_Int_Limits_1Patch[] = {
6513     "format",
6514     "#define\tUINT8_MAX\t(255)\n\
6515 #define\tUINT16_MAX\t(65535)",
6516     (char*)NULL };
6518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6520  *  Description of Solaris_Int_Limits_2 fix
6521  */
6522 tSCC zSolaris_Int_Limits_2Name[] =
6523      "solaris_int_limits_2";
6526  *  File name selection pattern
6527  */
6528 tSCC zSolaris_Int_Limits_2List[] =
6529   "sys/int_limits.h\0";
6531  *  Machine/OS name selection pattern
6532  */
6533 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6534         "*-*-solaris2*",
6535         (const char*)NULL };
6538  *  content selection pattern - do fix if pattern found
6539  */
6540 tSCC zSolaris_Int_Limits_2Select0[] =
6541        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6543 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
6544 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6545   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6548  *  Fix Command Arguments for Solaris_Int_Limits_2
6549  */
6550 static const char* apzSolaris_Int_Limits_2Patch[] = {
6551     "format",
6552     "#define\t%1_FAST16_%2 %132_%2",
6553     (char*)NULL };
6555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6557  *  Description of Solaris_Int_Limits_3 fix
6558  */
6559 tSCC zSolaris_Int_Limits_3Name[] =
6560      "solaris_int_limits_3";
6563  *  File name selection pattern
6564  */
6565 tSCC zSolaris_Int_Limits_3List[] =
6566   "sys/int_limits.h\0";
6568  *  Machine/OS name selection pattern
6569  */
6570 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6571         "*-*-solaris2*",
6572         (const char*)NULL };
6575  *  content selection pattern - do fix if pattern found
6576  */
6577 tSCC zSolaris_Int_Limits_3Select0[] =
6578        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6580 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
6581 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6582   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6585  *  Fix Command Arguments for Solaris_Int_Limits_3
6586  */
6587 static const char* apzSolaris_Int_Limits_3Patch[] = {
6588     "format",
6589     "#define\tSIZE_MAX\t4294967295U",
6590     (char*)NULL };
6592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6594  *  Description of Solaris_Math_1 fix
6595  */
6596 tSCC zSolaris_Math_1Name[] =
6597      "solaris_math_1";
6600  *  File name selection pattern
6601  */
6602 tSCC zSolaris_Math_1List[] =
6603   "iso/math_c99.h\0";
6605  *  Machine/OS name selection pattern
6606  */
6607 #define apzSolaris_Math_1Machs (const char**)NULL
6610  *  content selection pattern - do fix if pattern found
6611  */
6612 tSCC zSolaris_Math_1Select0[] =
6613        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6616  *  content bypass pattern - skip fix if pattern found
6617  */
6618 tSCC zSolaris_Math_1Bypass0[] =
6619        "__GNUC__";
6621 #define    SOLARIS_MATH_1_TEST_CT  2
6622 static tTestDesc aSolaris_Math_1Tests[] = {
6623   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
6624   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
6627  *  Fix Command Arguments for Solaris_Math_1
6628  */
6629 static const char* apzSolaris_Math_1Patch[] = {
6630     "format",
6631     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6632     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6633     (char*)NULL };
6635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6637  *  Description of Solaris_Math_10 fix
6638  */
6639 tSCC zSolaris_Math_10Name[] =
6640      "solaris_math_10";
6643  *  File name selection pattern
6644  */
6645 tSCC zSolaris_Math_10List[] =
6646   "iso/math_c99.h\0";
6648  *  Machine/OS name selection pattern
6649  */
6650 #define apzSolaris_Math_10Machs (const char**)NULL
6653  *  content selection pattern - do fix if pattern found
6654  */
6655 tSCC zSolaris_Math_10Select0[] =
6656        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6658 #define    SOLARIS_MATH_10_TEST_CT  1
6659 static tTestDesc aSolaris_Math_10Tests[] = {
6660   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
6663  *  Fix Command Arguments for Solaris_Math_10
6664  */
6665 static const char* apzSolaris_Math_10Patch[] = {
6666     "format",
6667     "#define\tisinf(x) __builtin_isinf(x)",
6668     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6669 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6670 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6671 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6672     (char*)NULL };
6674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6676  *  Description of Solaris_Math_2 fix
6677  */
6678 tSCC zSolaris_Math_2Name[] =
6679      "solaris_math_2";
6682  *  File name selection pattern
6683  */
6684 tSCC zSolaris_Math_2List[] =
6685   "iso/math_c99.h\0";
6687  *  Machine/OS name selection pattern
6688  */
6689 #define apzSolaris_Math_2Machs (const char**)NULL
6692  *  content selection pattern - do fix if pattern found
6693  */
6694 tSCC zSolaris_Math_2Select0[] =
6695        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6698  *  content bypass pattern - skip fix if pattern found
6699  */
6700 tSCC zSolaris_Math_2Bypass0[] =
6701        "__GNUC__";
6703 #define    SOLARIS_MATH_2_TEST_CT  2
6704 static tTestDesc aSolaris_Math_2Tests[] = {
6705   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
6706   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
6709  *  Fix Command Arguments for Solaris_Math_2
6710  */
6711 static const char* apzSolaris_Math_2Patch[] = {
6712     "format",
6713     "#define\tINFINITY\t(__builtin_inff())",
6714     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6715     (char*)NULL };
6717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6719  *  Description of Solaris_Math_3 fix
6720  */
6721 tSCC zSolaris_Math_3Name[] =
6722      "solaris_math_3";
6725  *  File name selection pattern
6726  */
6727 tSCC zSolaris_Math_3List[] =
6728   "iso/math_c99.h\0";
6730  *  Machine/OS name selection pattern
6731  */
6732 #define apzSolaris_Math_3Machs (const char**)NULL
6735  *  content selection pattern - do fix if pattern found
6736  */
6737 tSCC zSolaris_Math_3Select0[] =
6738        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6741  *  content bypass pattern - skip fix if pattern found
6742  */
6743 tSCC zSolaris_Math_3Bypass0[] =
6744        "__GNUC__";
6746 #define    SOLARIS_MATH_3_TEST_CT  2
6747 static tTestDesc aSolaris_Math_3Tests[] = {
6748   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
6749   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
6752  *  Fix Command Arguments for Solaris_Math_3
6753  */
6754 static const char* apzSolaris_Math_3Patch[] = {
6755     "format",
6756     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6757     "^#define[ \t]+NAN[ \t]+__builtin_nan",
6758     (char*)NULL };
6760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6762  *  Description of Solaris_Math_4 fix
6763  */
6764 tSCC zSolaris_Math_4Name[] =
6765      "solaris_math_4";
6768  *  File name selection pattern
6769  */
6770 tSCC zSolaris_Math_4List[] =
6771   "iso/math_c99.h\0";
6773  *  Machine/OS name selection pattern
6774  */
6775 #define apzSolaris_Math_4Machs (const char**)NULL
6778  *  content selection pattern - do fix if pattern found
6779  */
6780 tSCC zSolaris_Math_4Select0[] =
6781        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6784  *  content bypass pattern - skip fix if pattern found
6785  */
6786 tSCC zSolaris_Math_4Bypass0[] =
6787        "__GNUC__";
6789 #define    SOLARIS_MATH_4_TEST_CT  2
6790 static tTestDesc aSolaris_Math_4Tests[] = {
6791   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
6792   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
6795  *  Fix Command Arguments for Solaris_Math_4
6796  */
6797 static const char* apzSolaris_Math_4Patch[] = {
6798     "format",
6799     "#define\tfpclassify(x) \\\n\
6800   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6801     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6802     (char*)NULL };
6804 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6806  *  Description of Solaris_Math_8 fix
6807  */
6808 tSCC zSolaris_Math_8Name[] =
6809      "solaris_math_8";
6812  *  File name selection pattern
6813  */
6814 tSCC zSolaris_Math_8List[] =
6815   "iso/math_c99.h\0";
6817  *  Machine/OS name selection pattern
6818  */
6819 #define apzSolaris_Math_8Machs (const char**)NULL
6822  *  content selection pattern - do fix if pattern found
6823  */
6824 tSCC zSolaris_Math_8Select0[] =
6825        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6828  *  content bypass pattern - skip fix if pattern found
6829  */
6830 tSCC zSolaris_Math_8Bypass0[] =
6831        "__GNUC__";
6833 #define    SOLARIS_MATH_8_TEST_CT  2
6834 static tTestDesc aSolaris_Math_8Tests[] = {
6835   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
6836   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
6839  *  Fix Command Arguments for Solaris_Math_8
6840  */
6841 static const char* apzSolaris_Math_8Patch[] = {
6842     "format",
6843     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6844 \t\t\t   ? __builtin_signbitf(x) \\\n\
6845 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6846 \t\t\t     ? __builtin_signbitl(x) \\\n\
6847 \t\t\t     : __builtin_signbit(x))",
6848     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6849     (char*)NULL };
6851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6853  *  Description of Solaris_Math_9 fix
6854  */
6855 tSCC zSolaris_Math_9Name[] =
6856      "solaris_math_9";
6859  *  File name selection pattern
6860  */
6861 tSCC zSolaris_Math_9List[] =
6862   "iso/math_c99.h\0";
6864  *  Machine/OS name selection pattern
6865  */
6866 #define apzSolaris_Math_9Machs (const char**)NULL
6869  *  content selection pattern - do fix if pattern found
6870  */
6871 tSCC zSolaris_Math_9Select0[] =
6872        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6875  *  content bypass pattern - skip fix if pattern found
6876  */
6877 tSCC zSolaris_Math_9Bypass0[] =
6878        "__GNUC__";
6880 #define    SOLARIS_MATH_9_TEST_CT  2
6881 static tTestDesc aSolaris_Math_9Tests[] = {
6882   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
6883   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
6886  *  Fix Command Arguments for Solaris_Math_9
6887  */
6888 static const char* apzSolaris_Math_9Patch[] = {
6889     "format",
6890     "#define\t%1(x, y)%2__builtin_%1(x, y)",
6891     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6892     (char*)NULL };
6894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6896  *  Description of Solaris_Math_11 fix
6897  */
6898 tSCC zSolaris_Math_11Name[] =
6899      "solaris_math_11";
6902  *  File name selection pattern
6903  */
6904 tSCC zSolaris_Math_11List[] =
6905   "iso/math_c99.h\0";
6907  *  Machine/OS name selection pattern
6908  */
6909 #define apzSolaris_Math_11Machs (const char**)NULL
6912  *  content selection pattern - do fix if pattern found
6913  */
6914 tSCC zSolaris_Math_11Select0[] =
6915        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
6917 #define    SOLARIS_MATH_11_TEST_CT  1
6918 static tTestDesc aSolaris_Math_11Tests[] = {
6919   { TT_EGREP,    zSolaris_Math_11Select0, (regex_t*)NULL }, };
6922  *  Fix Command Arguments for Solaris_Math_11
6923  */
6924 static const char* apzSolaris_Math_11Patch[] = {
6925     "format",
6926     "#undef\tsignbit\n\
6927 #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6928 \t\t\t   ? __builtin_signbitf(x) \\\n\
6929 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
6930 \t\t\t     ? __builtin_signbitl(x) \\\n\
6931 \t\t\t     : __builtin_signbit(x))",
6932     "^#undef[ \t]+signbit\n\
6933 #if defined\\(__sparc\\)\n\
6934 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
6935 [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6936 [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
6937 #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
6938 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
6939 [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
6940 [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
6941 [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
6942 [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
6943 [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
6944 [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
6945 #endif",
6946     (char*)NULL };
6948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6950  *  Description of Solaris_Once_Init_1 fix
6951  */
6952 tSCC zSolaris_Once_Init_1Name[] =
6953      "solaris_once_init_1";
6956  *  File name selection pattern
6957  */
6958 tSCC zSolaris_Once_Init_1List[] =
6959   "pthread.h\0";
6961  *  Machine/OS name selection pattern
6962  */
6963 tSCC* apzSolaris_Once_Init_1Machs[] = {
6964         "*-*-solaris*",
6965         (const char*)NULL };
6968  *  content selection pattern - do fix if pattern found
6969  */
6970 tSCC zSolaris_Once_Init_1Select0[] =
6971        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6973 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
6974 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6975   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6978  *  Fix Command Arguments for Solaris_Once_Init_1
6979  */
6980 static const char* apzSolaris_Once_Init_1Patch[] = {
6981     "format",
6982     "%1{%2}%3",
6983     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6984     (char*)NULL };
6986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6988  *  Description of Solaris_Posix_Spawn_Restrict fix
6989  */
6990 tSCC zSolaris_Posix_Spawn_RestrictName[] =
6991      "solaris_posix_spawn_restrict";
6994  *  File name selection pattern
6995  */
6996 tSCC zSolaris_Posix_Spawn_RestrictList[] =
6997   "spawn.h\0";
6999  *  Machine/OS name selection pattern
7000  */
7001 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7002         "*-*-solaris2*",
7003         (const char*)NULL };
7006  *  content selection pattern - do fix if pattern found
7007  */
7008 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7009        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7011 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
7012 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7013   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7016  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7017  */
7018 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7019     "format",
7020     "%1*_RESTRICT_KYWD %2%3",
7021     (char*)NULL };
7023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7025  *  Description of Solaris_Pow_Int_Overload fix
7026  */
7027 tSCC zSolaris_Pow_Int_OverloadName[] =
7028      "solaris_pow_int_overload";
7031  *  File name selection pattern
7032  */
7033 tSCC zSolaris_Pow_Int_OverloadList[] =
7034   "iso/math_iso.h\0";
7036  *  Machine/OS name selection pattern
7037  */
7038 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
7039         "*-*-solaris2*",
7040         (const char*)NULL };
7043  *  content selection pattern - do fix if pattern found
7044  */
7045 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
7046        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
7047 [^{}]*\\}";
7049 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
7050 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
7051   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
7054  *  Fix Command Arguments for Solaris_Pow_Int_Overload
7055  */
7056 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
7057     "format",
7058     "#if __cplusplus < 201103L\n\
7059 %0\n\
7060 #endif",
7061     (char*)NULL };
7063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7065  *  Description of Solaris_Rwlock_Init_1 fix
7066  */
7067 tSCC zSolaris_Rwlock_Init_1Name[] =
7068      "solaris_rwlock_init_1";
7071  *  File name selection pattern
7072  */
7073 tSCC zSolaris_Rwlock_Init_1List[] =
7074   "pthread.h\0";
7076  *  Machine/OS name selection pattern
7077  */
7078 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
7079         "*-*-solaris*",
7080         (const char*)NULL };
7083  *  content selection pattern - do fix if pattern found
7084  */
7085 tSCC zSolaris_Rwlock_Init_1Select0[] =
7086        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7088 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
7089 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
7090   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
7093  *  Fix Command Arguments for Solaris_Rwlock_Init_1
7094  */
7095 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
7096     "format",
7097     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7098 %0\n\
7099 #else\n\
7100 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
7101 #endif",
7102     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
7103     (char*)NULL };
7105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7107  *  Description of Solaris_Std___Filbuf fix
7108  */
7109 tSCC zSolaris_Std___FilbufName[] =
7110      "solaris_std___filbuf";
7113  *  File name selection pattern
7114  */
7115 tSCC zSolaris_Std___FilbufList[] =
7116   "stdio.h\0";
7118  *  Machine/OS name selection pattern
7119  */
7120 tSCC* apzSolaris_Std___FilbufMachs[] = {
7121         "*-*-solaris2*",
7122         (const char*)NULL };
7125  *  content selection pattern - do fix if pattern found
7126  */
7127 tSCC zSolaris_Std___FilbufSelect0[] =
7128        "(using std::perror;\n\
7129 )(#endif)";
7132  *  content bypass pattern - skip fix if pattern found
7133  */
7134 tSCC zSolaris_Std___FilbufBypass0[] =
7135        "using std::__filbuf";
7137 #define    SOLARIS_STD___FILBUF_TEST_CT  2
7138 static tTestDesc aSolaris_Std___FilbufTests[] = {
7139   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7140   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7143  *  Fix Command Arguments for Solaris_Std___Filbuf
7144  */
7145 static const char* apzSolaris_Std___FilbufPatch[] = {
7146     "format",
7147     "%1#ifndef _LP64\n\
7148 using std::__filbuf;\n\
7149 using std::__flsbuf;\n\
7150 #endif\n\
7151 %2",
7152     (char*)NULL };
7154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7156  *  Description of Solaris_Stdio_Tag fix
7157  */
7158 tSCC zSolaris_Stdio_TagName[] =
7159      "solaris_stdio_tag";
7162  *  File name selection pattern
7163  */
7164 tSCC zSolaris_Stdio_TagList[] =
7165   "stdio_tag.h\0";
7167  *  Machine/OS name selection pattern
7168  */
7169 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7172  *  content selection pattern - do fix if pattern found
7173  */
7174 tSCC zSolaris_Stdio_TagSelect0[] =
7175        "__cplusplus < 54321L";
7178  *  content bypass pattern - skip fix if pattern found
7179  */
7180 tSCC zSolaris_Stdio_TagBypass0[] =
7181        "__GNUC__";
7183 #define    SOLARIS_STDIO_TAG_TEST_CT  2
7184 static tTestDesc aSolaris_Stdio_TagTests[] = {
7185   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7186   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7189  *  Fix Command Arguments for Solaris_Stdio_Tag
7190  */
7191 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7192     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7193     (char*)NULL };
7195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7197  *  Description of Statsswtch fix
7198  */
7199 tSCC zStatsswtchName[] =
7200      "statsswtch";
7203  *  File name selection pattern
7204  */
7205 tSCC zStatsswtchList[] =
7206   "rpcsvc/rstat.h\0";
7208  *  Machine/OS name selection pattern
7209  */
7210 #define apzStatsswtchMachs (const char**)NULL
7213  *  content selection pattern - do fix if pattern found
7214  */
7215 tSCC zStatsswtchSelect0[] =
7216        "boottime$";
7218 #define    STATSSWTCH_TEST_CT  1
7219 static tTestDesc aStatsswtchTests[] = {
7220   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
7223  *  Fix Command Arguments for Statsswtch
7224  */
7225 static const char* apzStatsswtchPatch[] = {
7226     "format",
7227     "boottime;",
7228     (char*)NULL };
7230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7232  *  Description of Stdio_Stdarg_H fix
7233  */
7234 tSCC zStdio_Stdarg_HName[] =
7235      "stdio_stdarg_h";
7238  *  File name selection pattern
7239  */
7240 tSCC zStdio_Stdarg_HList[] =
7241   "stdio.h\0";
7243  *  Machine/OS name selection pattern
7244  */
7245 tSCC* apzStdio_Stdarg_HMachs[] = {
7246         "*-*-solaris2.1[0-9]*",
7247         (const char*)NULL };
7250  *  content bypass pattern - skip fix if pattern found
7251  */
7252 tSCC zStdio_Stdarg_HBypass0[] =
7253        "include.*(stdarg.h|machine/ansi.h)";
7255 #define    STDIO_STDARG_H_TEST_CT  1
7256 static tTestDesc aStdio_Stdarg_HTests[] = {
7257   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7260  *  Fix Command Arguments for Stdio_Stdarg_H
7261  */
7262 static const char* apzStdio_Stdarg_HPatch[] = {
7263     "wrap",
7264     "#define __need___va_list\n\
7265 #include <stdarg.h>\n",
7266     (char*)NULL };
7268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7270  *  Description of Stdio_Va_List fix
7271  */
7272 tSCC zStdio_Va_ListName[] =
7273      "stdio_va_list";
7276  *  File name selection pattern
7277  */
7278 tSCC zStdio_Va_ListList[] =
7279   "stdio.h\0";
7281  *  Machine/OS name selection pattern
7282  */
7283 tSCC* apzStdio_Va_ListMachs[] = {
7284         "*-*-solaris2.1[0-9]*",
7285         (const char*)NULL };
7288  *  content bypass pattern - skip fix if pattern found
7289  */
7290 tSCC zStdio_Va_ListBypass0[] =
7291        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7293 #define    STDIO_VA_LIST_TEST_CT  1
7294 static tTestDesc aStdio_Va_ListTests[] = {
7295   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7298  *  Fix Command Arguments for Stdio_Va_List
7299  */
7300 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7301     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7302 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7303 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7304 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7305 s@ va_list@ __not_va_list__@\n\
7306 s@\\*va_list@*__not_va_list__@\n\
7307 s@ __va_list)@ __gnuc_va_list)@\n\
7308 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7309 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7310 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7311 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7312 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7313 s@VA_LIST@DUMMY_VA_LIST@\n\
7314 s@_Va_LIST@_VA_LIST@",
7315     (char*)NULL };
7317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7319  *  Description of Stdio_Va_List_Clients fix
7320  */
7321 tSCC zStdio_Va_List_ClientsName[] =
7322      "stdio_va_list_clients";
7325  *  File name selection pattern
7326  */
7327 tSCC zStdio_Va_List_ClientsList[] =
7328   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7330  *  Machine/OS name selection pattern
7331  */
7332 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7335  *  content bypass pattern - skip fix if pattern found
7336  */
7337 tSCC zStdio_Va_List_ClientsBypass0[] =
7338        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7339 tSCC zStdio_Va_List_ClientsBypass1[] =
7340        "include <stdarg\\.h>|#ifdef va_start";
7342 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
7343 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7344   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7345   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7348  *  Fix Command Arguments for Stdio_Va_List_Clients
7349  */
7350 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7351     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7352 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7353 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7354 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7355 s@ va_list@ __not_va_list__@\n\
7356 s@\\*va_list@*__not_va_list__@\n\
7357 s@ __va_list)@ __gnuc_va_list)@\n\
7358 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7359 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7360 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7361 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7362 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7363 s@VA_LIST@DUMMY_VA_LIST@\n\
7364 s@_Va_LIST@_VA_LIST@",
7365     (char*)NULL };
7367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7369  *  Description of Strict_Ansi_Not fix
7370  */
7371 tSCC zStrict_Ansi_NotName[] =
7372      "strict_ansi_not";
7375  *  File name selection pattern
7376  */
7377 #define zStrict_Ansi_NotList (char*)NULL
7379  *  Machine/OS name selection pattern
7380  */
7381 #define apzStrict_Ansi_NotMachs (const char**)NULL
7384  *  content selection pattern - do fix if pattern found
7385  */
7386 tSCC zStrict_Ansi_NotSelect0[] =
7387        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7390  *  content bypass pattern - skip fix if pattern found
7391  */
7392 tSCC zStrict_Ansi_NotBypass0[] =
7393        "GNU and MIPS C compilers define __STDC__ differently";
7394 tSCC zStrict_Ansi_NotBypass1[] =
7395        "__SCO_VERSION__.*__STDC__ != 1";
7398  *  perform the C function call test
7399  */
7400 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7402 #define    STRICT_ANSI_NOT_TEST_CT  4
7403 static tTestDesc aStrict_Ansi_NotTests[] = {
7404   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
7405   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7406   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7407   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7410  *  Fix Command Arguments for Strict_Ansi_Not
7411  */
7412 static const char* apzStrict_Ansi_NotPatch[] = {
7413     "format",
7414     "%1 !defined(__STRICT_ANSI__)",
7415     (char*)NULL };
7417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7419  *  Description of Strict_Ansi_Not_Ctd fix
7420  */
7421 tSCC zStrict_Ansi_Not_CtdName[] =
7422      "strict_ansi_not_ctd";
7425  *  File name selection pattern
7426  */
7427 tSCC zStrict_Ansi_Not_CtdList[] =
7428   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7430  *  Machine/OS name selection pattern
7431  */
7432 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7435  *  content selection pattern - do fix if pattern found
7436  */
7437 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7438        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7441  *  perform the C function call test
7442  */
7443 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7445 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
7446 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7447   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
7448   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7451  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
7452  */
7453 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7454     "format",
7455     "%1 !defined(__STRICT_ANSI__)",
7456     (char*)NULL };
7458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7460  *  Description of Strict_Ansi_Only fix
7461  */
7462 tSCC zStrict_Ansi_OnlyName[] =
7463      "strict_ansi_only";
7466  *  File name selection pattern
7467  */
7468 #define zStrict_Ansi_OnlyList (char*)NULL
7470  *  Machine/OS name selection pattern
7471  */
7472 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7475  *  content selection pattern - do fix if pattern found
7476  */
7477 tSCC zStrict_Ansi_OnlySelect0[] =
7478        "^([ \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)";
7481  *  perform the C function call test
7482  */
7483 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7485 #define    STRICT_ANSI_ONLY_TEST_CT  2
7486 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7487   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
7488   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7491  *  Fix Command Arguments for Strict_Ansi_Only
7492  */
7493 static const char* apzStrict_Ansi_OnlyPatch[] = {
7494     "format",
7495     "%1 defined(__STRICT_ANSI__)",
7496     (char*)NULL };
7498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7500  *  Description of Struct_File fix
7501  */
7502 tSCC zStruct_FileName[] =
7503      "struct_file";
7506  *  File name selection pattern
7507  */
7508 tSCC zStruct_FileList[] =
7509   "rpc/xdr.h\0";
7511  *  Machine/OS name selection pattern
7512  */
7513 #define apzStruct_FileMachs (const char**)NULL
7516  *  content selection pattern - do fix if pattern found
7517  */
7518 tSCC zStruct_FileSelect0[] =
7519        "^.*xdrstdio_create.*struct __file_s";
7521 #define    STRUCT_FILE_TEST_CT  1
7522 static tTestDesc aStruct_FileTests[] = {
7523   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
7526  *  Fix Command Arguments for Struct_File
7527  */
7528 static const char* apzStruct_FilePatch[] = {
7529     "format",
7530     "struct __file_s;\n\
7531 %0",
7532     (char*)NULL };
7534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7536  *  Description of Struct_Sockaddr fix
7537  */
7538 tSCC zStruct_SockaddrName[] =
7539      "struct_sockaddr";
7542  *  File name selection pattern
7543  */
7544 tSCC zStruct_SockaddrList[] =
7545   "rpc/auth.h\0";
7547  *  Machine/OS name selection pattern
7548  */
7549 #define apzStruct_SockaddrMachs (const char**)NULL
7552  *  content selection pattern - do fix if pattern found
7553  */
7554 tSCC zStruct_SockaddrSelect0[] =
7555        "^.*authdes_create.*struct sockaddr[^_]";
7558  *  content bypass pattern - skip fix if pattern found
7559  */
7560 tSCC zStruct_SockaddrBypass0[] =
7561        "<sys/socket.h>";
7562 tSCC zStruct_SockaddrBypass1[] =
7563        "struct sockaddr;\n";
7565 #define    STRUCT_SOCKADDR_TEST_CT  3
7566 static tTestDesc aStruct_SockaddrTests[] = {
7567   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
7568   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
7569   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7572  *  Fix Command Arguments for Struct_Sockaddr
7573  */
7574 static const char* apzStruct_SockaddrPatch[] = {
7575     "format",
7576     "struct sockaddr;\n\
7577 %0",
7578     (char*)NULL };
7580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7582  *  Description of Sun_Auth_Proto fix
7583  */
7584 tSCC zSun_Auth_ProtoName[] =
7585      "sun_auth_proto";
7588  *  File name selection pattern
7589  */
7590 tSCC zSun_Auth_ProtoList[] =
7591   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7593  *  Machine/OS name selection pattern
7594  */
7595 #define apzSun_Auth_ProtoMachs (const char**)NULL
7598  *  content selection pattern - do fix if pattern found
7599  */
7600 tSCC zSun_Auth_ProtoSelect0[] =
7601        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7604  *  content bypass pattern - skip fix if pattern found
7605  */
7606 tSCC zSun_Auth_ProtoBypass0[] =
7607        "__cplusplus";
7609 #define    SUN_AUTH_PROTO_TEST_CT  2
7610 static tTestDesc aSun_Auth_ProtoTests[] = {
7611   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7612   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7615  *  Fix Command Arguments for Sun_Auth_Proto
7616  */
7617 static const char* apzSun_Auth_ProtoPatch[] = {
7618     "format",
7619     "#ifdef __cplusplus\n\
7620 %1(...);%2\n\
7621 #else\n\
7622 %1();%2\n\
7623 #endif",
7624     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7625     (char*)NULL };
7627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7629  *  Description of Sun_Bogus_Ifdef fix
7630  */
7631 tSCC zSun_Bogus_IfdefName[] =
7632      "sun_bogus_ifdef";
7635  *  File name selection pattern
7636  */
7637 tSCC zSun_Bogus_IfdefList[] =
7638   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7640  *  Machine/OS name selection pattern
7641  */
7642 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7645  *  content selection pattern - do fix if pattern found
7646  */
7647 tSCC zSun_Bogus_IfdefSelect0[] =
7648        "#ifdef(.*\\|\\|.*)";
7650 #define    SUN_BOGUS_IFDEF_TEST_CT  1
7651 static tTestDesc aSun_Bogus_IfdefTests[] = {
7652   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7655  *  Fix Command Arguments for Sun_Bogus_Ifdef
7656  */
7657 static const char* apzSun_Bogus_IfdefPatch[] = {
7658     "format",
7659     "#if%1",
7660     (char*)NULL };
7662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7664  *  Description of Sun_Catmacro fix
7665  */
7666 tSCC zSun_CatmacroName[] =
7667      "sun_catmacro";
7670  *  File name selection pattern
7671  */
7672 tSCC zSun_CatmacroList[] =
7673   "pixrect/memvar.h\0";
7675  *  Machine/OS name selection pattern
7676  */
7677 #define apzSun_CatmacroMachs (const char**)NULL
7680  *  content selection pattern - do fix if pattern found
7681  */
7682 tSCC zSun_CatmacroSelect0[] =
7683        "^#define[ \t]+CAT\\(a,b\\).*";
7685 #define    SUN_CATMACRO_TEST_CT  1
7686 static tTestDesc aSun_CatmacroTests[] = {
7687   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
7690  *  Fix Command Arguments for Sun_Catmacro
7691  */
7692 static const char* apzSun_CatmacroPatch[] = {
7693     "format",
7694     "#ifdef __STDC__\n\
7695 #  define CAT(a,b) a##b\n\
7696 #else\n\
7697 %0\n\
7698 #endif",
7699     (char*)NULL };
7701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7703  *  Description of Sun_Malloc fix
7704  */
7705 tSCC zSun_MallocName[] =
7706      "sun_malloc";
7709  *  File name selection pattern
7710  */
7711 tSCC zSun_MallocList[] =
7712   "malloc.h\0";
7714  *  Machine/OS name selection pattern
7715  */
7716 #define apzSun_MallocMachs (const char**)NULL
7719  *  content bypass pattern - skip fix if pattern found
7720  */
7721 tSCC zSun_MallocBypass0[] =
7722        "_CLASSIC_ANSI_TYPES";
7724 #define    SUN_MALLOC_TEST_CT  1
7725 static tTestDesc aSun_MallocTests[] = {
7726   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
7729  *  Fix Command Arguments for Sun_Malloc
7730  */
7731 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7732     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7733     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7734     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7735     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7736     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7737     (char*)NULL };
7739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7741  *  Description of Sun_Rusers_Semi fix
7742  */
7743 tSCC zSun_Rusers_SemiName[] =
7744      "sun_rusers_semi";
7747  *  File name selection pattern
7748  */
7749 tSCC zSun_Rusers_SemiList[] =
7750   "rpcsvc/rusers.h\0";
7752  *  Machine/OS name selection pattern
7753  */
7754 #define apzSun_Rusers_SemiMachs (const char**)NULL
7757  *  content selection pattern - do fix if pattern found
7758  */
7759 tSCC zSun_Rusers_SemiSelect0[] =
7760        "_cnt$";
7762 #define    SUN_RUSERS_SEMI_TEST_CT  1
7763 static tTestDesc aSun_Rusers_SemiTests[] = {
7764   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7767  *  Fix Command Arguments for Sun_Rusers_Semi
7768  */
7769 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7770     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7771     (char*)NULL };
7773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7775  *  Description of Sun_Signal fix
7776  */
7777 tSCC zSun_SignalName[] =
7778      "sun_signal";
7781  *  File name selection pattern
7782  */
7783 tSCC zSun_SignalList[] =
7784   "sys/signal.h\0signal.h\0";
7786  *  Machine/OS name selection pattern
7787  */
7788 #define apzSun_SignalMachs (const char**)NULL
7791  *  content selection pattern - do fix if pattern found
7792  */
7793 tSCC zSun_SignalSelect0[] =
7794        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7796 #define    SUN_SIGNAL_TEST_CT  1
7797 static tTestDesc aSun_SignalTests[] = {
7798   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
7801  *  Fix Command Arguments for Sun_Signal
7802  */
7803 static const char* apzSun_SignalPatch[] = {
7804     "format",
7805     "#ifdef __cplusplus\n\
7806 void\t(*signal(...))(...);\n\
7807 #else\n\
7808 %0\n\
7809 #endif",
7810     (char*)NULL };
7812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7814  *  Description of Sunos_Strlen fix
7815  */
7816 tSCC zSunos_StrlenName[] =
7817      "sunos_strlen";
7820  *  File name selection pattern
7821  */
7822 tSCC zSunos_StrlenList[] =
7823   "strings.h\0";
7825  *  Machine/OS name selection pattern
7826  */
7827 #define apzSunos_StrlenMachs (const char**)NULL
7830  *  content selection pattern - do fix if pattern found
7831  */
7832 tSCC zSunos_StrlenSelect0[] =
7833        "int[ \t]*strlen\\(\\);(.*)";
7835 #define    SUNOS_STRLEN_TEST_CT  1
7836 static tTestDesc aSunos_StrlenTests[] = {
7837   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
7840  *  Fix Command Arguments for Sunos_Strlen
7841  */
7842 static const char* apzSunos_StrlenPatch[] = {
7843     "format",
7844     "__SIZE_TYPE__ strlen();%1",
7845     (char*)NULL };
7847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7849  *  Description of Suse_Linux_Vt_Cxx fix
7850  */
7851 tSCC zSuse_Linux_Vt_CxxName[] =
7852      "suse_linux_vt_cxx";
7855  *  File name selection pattern
7856  */
7857 tSCC zSuse_Linux_Vt_CxxList[] =
7858   "linux/vt.h\0";
7860  *  Machine/OS name selection pattern
7861  */
7862 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
7865  *  content selection pattern - do fix if pattern found
7866  */
7867 tSCC zSuse_Linux_Vt_CxxSelect0[] =
7868        "^[ \t]*unsigned int new;";
7870 #define    SUSE_LINUX_VT_CXX_TEST_CT  1
7871 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
7872   { TT_EGREP,    zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
7875  *  Fix Command Arguments for Suse_Linux_Vt_Cxx
7876  */
7877 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
7878     "format",
7879     "unsigned int newev;",
7880     (char*)NULL };
7882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7884  *  Description of Svr4_Disable_Opt fix
7885  */
7886 tSCC zSvr4_Disable_OptName[] =
7887      "svr4_disable_opt";
7890  *  File name selection pattern
7891  */
7892 tSCC zSvr4_Disable_OptList[] =
7893   "string.h\0";
7895  *  Machine/OS name selection pattern
7896  */
7897 #define apzSvr4_Disable_OptMachs (const char**)NULL
7900  *  content selection pattern - do fix if pattern found
7901  */
7902 tSCC zSvr4_Disable_OptSelect0[] =
7903        "#define.*__std_hdr_";
7905 #define    SVR4_DISABLE_OPT_TEST_CT  1
7906 static tTestDesc aSvr4_Disable_OptTests[] = {
7907   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7910  *  Fix Command Arguments for Svr4_Disable_Opt
7911  */
7912 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7913     "-e", "/#define.*__std_hdr_/d",
7914     (char*)NULL };
7916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7918  *  Description of Svr4_Getcwd fix
7919  */
7920 tSCC zSvr4_GetcwdName[] =
7921      "svr4_getcwd";
7924  *  File name selection pattern
7925  */
7926 tSCC zSvr4_GetcwdList[] =
7927   "stdlib.h\0unistd.h\0prototypes.h\0";
7929  *  Machine/OS name selection pattern
7930  */
7931 #define apzSvr4_GetcwdMachs (const char**)NULL
7934  *  content selection pattern - do fix if pattern found
7935  */
7936 tSCC zSvr4_GetcwdSelect0[] =
7937        "getcwd\\(char \\*, int\\)";
7939 #define    SVR4_GETCWD_TEST_CT  1
7940 static tTestDesc aSvr4_GetcwdTests[] = {
7941   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7944  *  Fix Command Arguments for Svr4_Getcwd
7945  */
7946 static const char* apzSvr4_GetcwdPatch[] = {
7947     "format",
7948     "getcwd(char *, size_t)",
7949     (char*)NULL };
7951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7953  *  Description of Svr4_Profil fix
7954  */
7955 tSCC zSvr4_ProfilName[] =
7956      "svr4_profil";
7959  *  File name selection pattern
7960  */
7961 tSCC zSvr4_ProfilList[] =
7962   "stdlib.h\0unistd.h\0";
7964  *  Machine/OS name selection pattern
7965  */
7966 #define apzSvr4_ProfilMachs (const char**)NULL
7969  *  content selection pattern - do fix if pattern found
7970  */
7971 tSCC zSvr4_ProfilSelect0[] =
7972        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7974 #define    SVR4_PROFIL_TEST_CT  1
7975 static tTestDesc aSvr4_ProfilTests[] = {
7976   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7979  *  Fix Command Arguments for Svr4_Profil
7980  */
7981 static const char* apzSvr4_ProfilPatch[] = {
7982     "format",
7983     "profil(unsigned short *, size_t, int, unsigned int)",
7984     (char*)NULL };
7986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7988  *  Description of Svr4_Sighandler_Type fix
7989  */
7990 tSCC zSvr4_Sighandler_TypeName[] =
7991      "svr4_sighandler_type";
7994  *  File name selection pattern
7995  */
7996 tSCC zSvr4_Sighandler_TypeList[] =
7997   "sys/signal.h\0";
7999  *  Machine/OS name selection pattern
8000  */
8001 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
8004  *  content selection pattern - do fix if pattern found
8005  */
8006 tSCC zSvr4_Sighandler_TypeSelect0[] =
8007        "void *\\(\\*\\)\\(\\)";
8009 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
8010 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8011   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8014  *  Fix Command Arguments for Svr4_Sighandler_Type
8015  */
8016 static const char* apzSvr4_Sighandler_TypePatch[] = {
8017     "format",
8018     "void (*)(int)",
8019     (char*)NULL };
8021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8023  *  Description of Svr4_Undeclared_Getrnge fix
8024  */
8025 tSCC zSvr4_Undeclared_GetrngeName[] =
8026      "svr4_undeclared_getrnge";
8029  *  File name selection pattern
8030  */
8031 tSCC zSvr4_Undeclared_GetrngeList[] =
8032   "regexp.h\0";
8034  *  Machine/OS name selection pattern
8035  */
8036 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8039  *  content selection pattern - do fix if pattern found
8040  */
8041 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8042        "getrnge";
8045  *  content bypass pattern - skip fix if pattern found
8046  */
8047 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8048        "static void getrnge";
8050 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
8051 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8052   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8053   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8056  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
8057  */
8058 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8059     "format",
8060     "%0\n\
8061 static int getrnge ();",
8062     "^static int[ \t]+size;",
8063     (char*)NULL };
8065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8067  *  Description of Sysv68_String fix
8068  */
8069 tSCC zSysv68_StringName[] =
8070      "sysv68_string";
8073  *  File name selection pattern
8074  */
8075 tSCC zSysv68_StringList[] =
8076   "testing.h\0string.h\0";
8078  *  Machine/OS name selection pattern
8079  */
8080 #define apzSysv68_StringMachs (const char**)NULL
8083  *  content bypass pattern - skip fix if pattern found
8084  */
8085 tSCC zSysv68_StringBypass0[] =
8086        "_CLASSIC_ANSI_TYPES";
8088 #define    SYSV68_STRING_TEST_CT  1
8089 static tTestDesc aSysv68_StringTests[] = {
8090   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
8093  *  Fix Command Arguments for Sysv68_String
8094  */
8095 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8096     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8097     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8098     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8099     "-e", "/^extern char$/N",
8100     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8101     "-e", "/^extern int$/N",
8102     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8103     "-e", "/^\tstrncmp(),$/N",
8104     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8105 extern unsigned int\\\n\
8106 \\2/",
8107     (char*)NULL };
8109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8111  *  Description of Sysz_Stdlib_For_Sun fix
8112  */
8113 tSCC zSysz_Stdlib_For_SunName[] =
8114      "sysz_stdlib_for_sun";
8117  *  File name selection pattern
8118  */
8119 tSCC zSysz_Stdlib_For_SunList[] =
8120   "stdlib.h\0";
8122  *  Machine/OS name selection pattern
8123  */
8124 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8127  *  content selection pattern - do fix if pattern found
8128  */
8129 tSCC zSysz_Stdlib_For_SunSelect0[] =
8130        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8133  *  content bypass pattern - skip fix if pattern found
8134  */
8135 tSCC zSysz_Stdlib_For_SunBypass0[] =
8136        "_CLASSIC_ANSI_TYPES";
8138 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
8139 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8140   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8141   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8144  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
8145  */
8146 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8147     "format",
8148     "void *\t%1(",
8149     (char*)NULL };
8151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8153  *  Description of Thread_Keyword fix
8154  */
8155 tSCC zThread_KeywordName[] =
8156      "thread_keyword";
8159  *  File name selection pattern
8160  */
8161 tSCC zThread_KeywordList[] =
8162   "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
8164  *  Machine/OS name selection pattern
8165  */
8166 #define apzThread_KeywordMachs (const char**)NULL
8169  *  content selection pattern - do fix if pattern found
8170  */
8171 tSCC zThread_KeywordSelect0[] =
8172        "([* ])__thread([,)])";
8174 #define    THREAD_KEYWORD_TEST_CT  1
8175 static tTestDesc aThread_KeywordTests[] = {
8176   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
8179  *  Fix Command Arguments for Thread_Keyword
8180  */
8181 static const char* apzThread_KeywordPatch[] = {
8182     "format",
8183     "%1__thr%2",
8184     (char*)NULL };
8186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8188  *  Description of Tinfo_Cplusplus fix
8189  */
8190 tSCC zTinfo_CplusplusName[] =
8191      "tinfo_cplusplus";
8194  *  File name selection pattern
8195  */
8196 tSCC zTinfo_CplusplusList[] =
8197   "tinfo.h\0";
8199  *  Machine/OS name selection pattern
8200  */
8201 #define apzTinfo_CplusplusMachs (const char**)NULL
8204  *  content selection pattern - do fix if pattern found
8205  */
8206 tSCC zTinfo_CplusplusSelect0[] =
8207        "[ \t]_cplusplus";
8209 #define    TINFO_CPLUSPLUS_TEST_CT  1
8210 static tTestDesc aTinfo_CplusplusTests[] = {
8211   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8214  *  Fix Command Arguments for Tinfo_Cplusplus
8215  */
8216 static const char* apzTinfo_CplusplusPatch[] = {
8217     "format",
8218     " __cplusplus",
8219     (char*)NULL };
8221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8223  *  Description of Ultrix_Const fix
8224  */
8225 tSCC zUltrix_ConstName[] =
8226      "ultrix_const";
8229  *  File name selection pattern
8230  */
8231 tSCC zUltrix_ConstList[] =
8232   "stdio.h\0";
8234  *  Machine/OS name selection pattern
8235  */
8236 #define apzUltrix_ConstMachs (const char**)NULL
8239  *  content selection pattern - do fix if pattern found
8240  */
8241 tSCC zUltrix_ConstSelect0[] =
8242        "perror\\( char \\*";
8244 #define    ULTRIX_CONST_TEST_CT  1
8245 static tTestDesc aUltrix_ConstTests[] = {
8246   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
8249  *  Fix Command Arguments for Ultrix_Const
8250  */
8251 static const char* apzUltrix_ConstPatch[] = {
8252     "format",
8253     "%1 const %3 *__",
8254     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8255     (char*)NULL };
8257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8259  *  Description of Ultrix_Const2 fix
8260  */
8261 tSCC zUltrix_Const2Name[] =
8262      "ultrix_const2";
8265  *  File name selection pattern
8266  */
8267 tSCC zUltrix_Const2List[] =
8268   "stdio.h\0";
8270  *  Machine/OS name selection pattern
8271  */
8272 #define apzUltrix_Const2Machs (const char**)NULL
8275  *  content selection pattern - do fix if pattern found
8276  */
8277 tSCC zUltrix_Const2Select0[] =
8278        "\\*fopen\\( char \\*";
8280 #define    ULTRIX_CONST2_TEST_CT  1
8281 static tTestDesc aUltrix_Const2Tests[] = {
8282   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
8285  *  Fix Command Arguments for Ultrix_Const2
8286  */
8287 static const char* apzUltrix_Const2Patch[] = {
8288     "format",
8289     "%1( const char *%3, const char *",
8290     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8291     (char*)NULL };
8293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8295  *  Description of Va_I960_Macro fix
8296  */
8297 tSCC zVa_I960_MacroName[] =
8298      "va_i960_macro";
8301  *  File name selection pattern
8302  */
8303 tSCC zVa_I960_MacroList[] =
8304   "arch/i960/archI960.h\0";
8306  *  Machine/OS name selection pattern
8307  */
8308 #define apzVa_I960_MacroMachs (const char**)NULL
8311  *  content selection pattern - do fix if pattern found
8312  */
8313 tSCC zVa_I960_MacroSelect0[] =
8314        "__(vsiz|vali|vpad|alignof__)";
8316 #define    VA_I960_MACRO_TEST_CT  1
8317 static tTestDesc aVa_I960_MacroTests[] = {
8318   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8321  *  Fix Command Arguments for Va_I960_Macro
8322  */
8323 static const char* apzVa_I960_MacroPatch[] = {
8324     "format",
8325     "__vx%1",
8326     (char*)NULL };
8328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8330  *  Description of Vms_Add_Missing_Braces fix
8331  */
8332 tSCC zVms_Add_Missing_BracesName[] =
8333      "vms_add_missing_braces";
8336  *  File name selection pattern
8337  */
8338 tSCC zVms_Add_Missing_BracesList[] =
8339   "rtldef/signal.h\0";
8341  *  Machine/OS name selection pattern
8342  */
8343 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8344         "*-*-*vms*",
8345         (const char*)NULL };
8348  *  content selection pattern - do fix if pattern found
8349  */
8350 tSCC zVms_Add_Missing_BracesSelect0[] =
8351        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8353 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
8354 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8355   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8358  *  Fix Command Arguments for Vms_Add_Missing_Braces
8359  */
8360 static const char* apzVms_Add_Missing_BracesPatch[] = {
8361     "format",
8362     "%1 {%2} ",
8363     (char*)NULL };
8365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8367  *  Description of Vms_Decc_Builtin fix
8368  */
8369 tSCC zVms_Decc_BuiltinName[] =
8370      "vms_decc_builtin";
8373  *  File name selection pattern
8374  */
8375 tSCC zVms_Decc_BuiltinList[] =
8376   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8378  *  Machine/OS name selection pattern
8379  */
8380 tSCC* apzVms_Decc_BuiltinMachs[] = {
8381         "*-*-*vms*",
8382         (const char*)NULL };
8385  *  content selection pattern - do fix if pattern found
8386  */
8387 tSCC zVms_Decc_BuiltinSelect0[] =
8388        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8390 #define    VMS_DECC_BUILTIN_TEST_CT  1
8391 static tTestDesc aVms_Decc_BuiltinTests[] = {
8392   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8395  *  Fix Command Arguments for Vms_Decc_Builtin
8396  */
8397 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8398     "-e", "s@__MEMSET@memset@",
8399     "-e", "s@__MEMMOVE@memmove@",
8400     "-e", "s@__MEMCPY@memcpy@",
8401     "-e", "s@__STRLEN@strlen@",
8402     "-e", "s@__STRCPY@strcpy@",
8403     (char*)NULL };
8405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8407  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
8408  */
8409 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8410      "vms_define_can_use_extern_prefix";
8413  *  File name selection pattern
8414  */
8415 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8416   "rtldef/decc$types.h\0";
8418  *  Machine/OS name selection pattern
8419  */
8420 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8421         "*-*-*vms*",
8422         (const char*)NULL };
8425  *  content selection pattern - do fix if pattern found
8426  */
8427 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8428        "#[ \t]*else\n\
8429 #[ \t]*if defined\\(__DECCXX\\)\n\
8430 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8432 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
8433 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8434   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8437  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8438  */
8439 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8440     "format",
8441     "%0#    elif defined (__GNUC__)\n\
8442 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8443     (char*)NULL };
8445 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8447  *  Description of Vms_Disable_Decc_String_Builtins fix
8448  */
8449 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8450      "vms_disable_decc_string_builtins";
8453  *  File name selection pattern
8454  */
8455 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8456   "rtldef/string.h\0";
8458  *  Machine/OS name selection pattern
8459  */
8460 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8461         "*-*-*vms*",
8462         (const char*)NULL };
8465  *  content selection pattern - do fix if pattern found
8466  */
8467 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8468        "#if !defined\\(__VAX\\)\n";
8470 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
8471 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8472   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8475  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8476  */
8477 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8478     "format",
8479     "#if !defined(__VAX) && !defined(__GNUC__)\n",
8480     (char*)NULL };
8482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8484  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
8485  */
8486 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8487      "vms_do_not_redeclare_hostalias";
8490  *  File name selection pattern
8491  */
8492 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8493   "rtldef/resolv.h\0";
8495  *  Machine/OS name selection pattern
8496  */
8497 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8498         "*-*-*vms*",
8499         (const char*)NULL };
8502  *  content selection pattern - do fix if pattern found
8503  */
8504 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8505        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8506 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8508 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
8509 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8510   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8513  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8514  */
8515 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8516     "format",
8517     "%1\n\
8518 /* %2 */",
8519     (char*)NULL };
8521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8523  *  Description of Vms_Forward_Declare_Struct fix
8524  */
8525 tSCC zVms_Forward_Declare_StructName[] =
8526      "vms_forward_declare_struct";
8529  *  File name selection pattern
8530  */
8531 tSCC zVms_Forward_Declare_StructList[] =
8532   "rtldef/if.h\0";
8534  *  Machine/OS name selection pattern
8535  */
8536 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8537         "*-*-*vms*",
8538         (const char*)NULL };
8541  *  content selection pattern - do fix if pattern found
8542  */
8543 tSCC zVms_Forward_Declare_StructSelect0[] =
8544        "(/\\* forward decls for C\\+\\+ \\*/\n\
8545 )#ifdef __cplusplus\n";
8547 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
8548 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8549   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8552  *  Fix Command Arguments for Vms_Forward_Declare_Struct
8553  */
8554 static const char* apzVms_Forward_Declare_StructPatch[] = {
8555     "format",
8556     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8557     (char*)NULL };
8559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8561  *  Description of Vms_No_64bit_Getopt fix
8562  */
8563 tSCC zVms_No_64bit_GetoptName[] =
8564      "vms_no_64bit_getopt";
8567  *  File name selection pattern
8568  */
8569 tSCC zVms_No_64bit_GetoptList[] =
8570   "rtldef/stdio.h\0rtldef/unistd.h\0";
8572  *  Machine/OS name selection pattern
8573  */
8574 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8575         "*-*-*vms*",
8576         (const char*)NULL };
8579  *  content selection pattern - do fix if pattern found
8580  */
8581 tSCC zVms_No_64bit_GetoptSelect0[] =
8582        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8584 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
8585 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8586   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8589  *  Fix Command Arguments for Vms_No_64bit_Getopt
8590  */
8591 static const char* apzVms_No_64bit_GetoptPatch[] = {
8592     "format",
8593     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
8594 %0#endif\n",
8595     (char*)NULL };
8597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8599  *  Description of Vms_Use_Fast_Setjmp fix
8600  */
8601 tSCC zVms_Use_Fast_SetjmpName[] =
8602      "vms_use_fast_setjmp";
8605  *  File name selection pattern
8606  */
8607 tSCC zVms_Use_Fast_SetjmpList[] =
8608   "rtldef/setjmp.h\0";
8610  *  Machine/OS name selection pattern
8611  */
8612 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8613         "*-*-*vms*",
8614         (const char*)NULL };
8617  *  content selection pattern - do fix if pattern found
8618  */
8619 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8620        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8622 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
8623 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8624   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8627  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
8628  */
8629 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8630     "format",
8631     "%0 defined (__GNUC__) ||",
8632     (char*)NULL };
8634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8636  *  Description of Vms_Use_Pragma_Extern_Model fix
8637  */
8638 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8639      "vms_use_pragma_extern_model";
8642  *  File name selection pattern
8643  */
8644 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8646  *  Machine/OS name selection pattern
8647  */
8648 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8649         "*-*-*vms*",
8650         (const char*)NULL };
8653  *  content selection pattern - do fix if pattern found
8654  */
8655 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8656        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8657 # pragma extern_model __save\n";
8659 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
8660 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8661   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8664  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8665  */
8666 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8667     "format",
8668     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8669 # pragma extern_model __save\n",
8670     (char*)NULL };
8672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8674  *  Description of Vms_Use_Quoted_Include fix
8675  */
8676 tSCC zVms_Use_Quoted_IncludeName[] =
8677      "vms_use_quoted_include";
8680  *  File name selection pattern
8681  */
8682 tSCC zVms_Use_Quoted_IncludeList[] =
8683   "rtldef/wait.h\0starlet_c/pthread.h\0";
8685  *  Machine/OS name selection pattern
8686  */
8687 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
8688         "*-*-*vms*",
8689         (const char*)NULL };
8692  *  content selection pattern - do fix if pattern found
8693  */
8694 tSCC zVms_Use_Quoted_IncludeSelect0[] =
8695        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
8697 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
8698 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
8699   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
8702  *  Fix Command Arguments for Vms_Use_Quoted_Include
8703  */
8704 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8705     "format",
8706     "%1<sys/%2.h>",
8707     (char*)NULL };
8709 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8711  *  Description of Void_Null fix
8712  */
8713 tSCC zVoid_NullName[] =
8714      "void_null";
8717  *  File name selection pattern
8718  */
8719 tSCC zVoid_NullList[] =
8720   "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";
8722  *  Machine/OS name selection pattern
8723  */
8724 #define apzVoid_NullMachs (const char**)NULL
8727  *  content selection pattern - do fix if pattern found
8728  */
8729 tSCC zVoid_NullSelect0[] =
8730        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8733  *  content bypass pattern - skip fix if pattern found
8734  */
8735 tSCC zVoid_NullBypass0[] =
8736        "__cplusplus";
8737 tSCC zVoid_NullBypass1[] =
8738        "__null";
8740 #define    VOID_NULL_TEST_CT  3
8741 static tTestDesc aVoid_NullTests[] = {
8742   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
8743   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
8744   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
8747  *  Fix Command Arguments for Void_Null
8748  */
8749 static const char* apzVoid_NullPatch[] = {
8750     "format",
8751     "#ifndef NULL\n\
8752 #ifdef __cplusplus\n\
8753 #ifdef __GNUG__\n\
8754 #define NULL __null\n\
8755 #else /* ! __GNUG__  */\n\
8756 #define NULL 0L\n\
8757 #endif /* __GNUG__  */\n\
8758 #else /* ! __cplusplus  */\n\
8759 #define NULL ((void *)0)\n\
8760 #endif /* __cplusplus  */\n\
8761 #endif /* !NULL  */",
8762     (char*)NULL };
8764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8766  *  Description of Vxworks_Gcc_Problem fix
8767  */
8768 tSCC zVxworks_Gcc_ProblemName[] =
8769      "vxworks_gcc_problem";
8772  *  File name selection pattern
8773  */
8774 tSCC zVxworks_Gcc_ProblemList[] =
8775   "types/vxTypesBase.h\0";
8777  *  Machine/OS name selection pattern
8778  */
8779 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8782  *  content selection pattern - do fix if pattern found
8783  */
8784 tSCC zVxworks_Gcc_ProblemSelect0[] =
8785        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8787 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8788 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8789   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8792  *  Fix Command Arguments for Vxworks_Gcc_Problem
8793  */
8794 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8795     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8796     "-e", "/[ \t]size_t/i\\\n\
8797 #ifndef _GCC_SIZE_T\\\n\
8798 #define _GCC_SIZE_T\n",
8799     "-e", "/[ \t]size_t/a\\\n\
8800 #endif\n",
8801     "-e", "/[ \t]ptrdiff_t/i\\\n\
8802 #ifndef _GCC_PTRDIFF_T\\\n\
8803 #define _GCC_PTRDIFF_T\n",
8804     "-e", "/[ \t]ptrdiff_t/a\\\n\
8805 #endif\n",
8806     "-e", "/[ \t]wchar_t/i\\\n\
8807 #ifndef _GCC_WCHAR_T\\\n\
8808 #define _GCC_WCHAR_T\n",
8809     "-e", "/[ \t]wchar_t/a\\\n\
8810 #endif\n",
8811     (char*)NULL };
8813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8815  *  Description of Vxworks_Ioctl_Macro fix
8816  */
8817 tSCC zVxworks_Ioctl_MacroName[] =
8818      "vxworks_ioctl_macro";
8821  *  File name selection pattern
8822  */
8823 tSCC zVxworks_Ioctl_MacroList[] =
8824   "ioLib.h\0";
8826  *  Machine/OS name selection pattern
8827  */
8828 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
8829         "*-*-vxworks*",
8830         (const char*)NULL };
8831 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
8832 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
8835  *  Fix Command Arguments for Vxworks_Ioctl_Macro
8836  */
8837 static const char* apzVxworks_Ioctl_MacroPatch[] = {
8838     "format",
8839     "%0\n\
8840 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
8841     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
8842     (char*)NULL };
8844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8846  *  Description of Vxworks_Mkdir_Macro fix
8847  */
8848 tSCC zVxworks_Mkdir_MacroName[] =
8849      "vxworks_mkdir_macro";
8852  *  File name selection pattern
8853  */
8854 tSCC zVxworks_Mkdir_MacroList[] =
8855   "sys/stat.h\0";
8857  *  Machine/OS name selection pattern
8858  */
8859 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
8860         "*-*-vxworks*",
8861         (const char*)NULL };
8862 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
8863 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
8866  *  Fix Command Arguments for Vxworks_Mkdir_Macro
8867  */
8868 static const char* apzVxworks_Mkdir_MacroPatch[] = {
8869     "format",
8870     "%0\n\
8871 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
8872     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
8873     (char*)NULL };
8875 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8877  *  Description of Vxworks_Needs_Vxtypes fix
8878  */
8879 tSCC zVxworks_Needs_VxtypesName[] =
8880      "vxworks_needs_vxtypes";
8883  *  File name selection pattern
8884  */
8885 tSCC zVxworks_Needs_VxtypesList[] =
8886   "time.h\0";
8888  *  Machine/OS name selection pattern
8889  */
8890 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8893  *  content selection pattern - do fix if pattern found
8894  */
8895 tSCC zVxworks_Needs_VxtypesSelect0[] =
8896        "uint_t([ \t]+_clocks_per_sec)";
8898 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8899 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8900   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8903  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8904  */
8905 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8906     "format",
8907     "unsigned int%1",
8908     (char*)NULL };
8910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8912  *  Description of Vxworks_Needs_Vxworks fix
8913  */
8914 tSCC zVxworks_Needs_VxworksName[] =
8915      "vxworks_needs_vxworks";
8918  *  File name selection pattern
8919  */
8920 tSCC zVxworks_Needs_VxworksList[] =
8921   "sys/stat.h\0";
8923  *  Machine/OS name selection pattern
8924  */
8925 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8928  *  content selection pattern - do fix if pattern found
8929  */
8930 tSCC zVxworks_Needs_VxworksSelect0[] =
8931        "#[ \t]define[ \t]+__INCstath";
8934  *  perform the 'test' shell command - do fix on success
8935  */
8936 tSCC zVxworks_Needs_VxworksTest0[] =
8937        " -r types/vxTypesOld.h";
8938 tSCC zVxworks_Needs_VxworksTest1[] =
8939        " -n \"`egrep '#include' $file`\"";
8940 tSCC zVxworks_Needs_VxworksTest2[] =
8941        " -n \"`egrep ULONG $file`\"";
8943 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8944 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8945   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8946   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8947   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8948   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8951  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8952  */
8953 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8954     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8955 #include <types/vxTypesOld.h>\n",
8956     (char*)NULL };
8958 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8960  *  Description of Vxworks_Regs fix
8961  */
8962 tSCC zVxworks_RegsName[] =
8963      "vxworks_regs";
8966  *  File name selection pattern
8967  */
8968 #define zVxworks_RegsList (char*)NULL
8970  *  Machine/OS name selection pattern
8971  */
8972 tSCC* apzVxworks_RegsMachs[] = {
8973         "*-*-vxworks*",
8974         (const char*)NULL };
8977  *  content selection pattern - do fix if pattern found
8978  */
8979 tSCC zVxworks_RegsSelect0[] =
8980        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
8982 #define    VXWORKS_REGS_TEST_CT  1
8983 static tTestDesc aVxworks_RegsTests[] = {
8984   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
8987  *  Fix Command Arguments for Vxworks_Regs
8988  */
8989 static const char* apzVxworks_RegsPatch[] = {
8990     "format",
8991     "#include <arch/../regs.h>",
8992     (char*)NULL };
8994 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8996  *  Description of Vxworks_Time fix
8997  */
8998 tSCC zVxworks_TimeName[] =
8999      "vxworks_time";
9002  *  File name selection pattern
9003  */
9004 tSCC zVxworks_TimeList[] =
9005   "time.h\0";
9007  *  Machine/OS name selection pattern
9008  */
9009 #define apzVxworks_TimeMachs (const char**)NULL
9012  *  content selection pattern - do fix if pattern found
9013  */
9014 tSCC zVxworks_TimeSelect0[] =
9015        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
9018  *  perform the 'test' shell command - do fix on success
9019  */
9020 tSCC zVxworks_TimeTest0[] =
9021        " -r vxWorks.h";
9023 #define    VXWORKS_TIME_TEST_CT  2
9024 static tTestDesc aVxworks_TimeTests[] = {
9025   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
9026   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
9029  *  Fix Command Arguments for Vxworks_Time
9030  */
9031 static const char* apzVxworks_TimePatch[] = {
9032     "format",
9033     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
9034 #ifdef __cplusplus\n\
9035 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
9036 #else\n\
9037 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
9038 #endif\n\
9039 #define __gcc_VOIDFUNCPTR_defined\n\
9040 #endif\n\
9041 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
9042     (char*)NULL };
9044 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9046  *  Description of Vxworks_Write_Const fix
9047  */
9048 tSCC zVxworks_Write_ConstName[] =
9049      "vxworks_write_const";
9052  *  File name selection pattern
9053  */
9054 tSCC zVxworks_Write_ConstList[] =
9055   "ioLib.h\0";
9057  *  Machine/OS name selection pattern
9058  */
9059 tSCC* apzVxworks_Write_ConstMachs[] = {
9060         "*-*-vxworks*",
9061         (const char*)NULL };
9062 #define VXWORKS_WRITE_CONST_TEST_CT  0
9063 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
9066  *  Fix Command Arguments for Vxworks_Write_Const
9067  */
9068 static const char* apzVxworks_Write_ConstPatch[] = {
9069     "format",
9070     "extern int  write (int, const char*, size_t);",
9071     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
9072     (char*)NULL };
9074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9076  *  Description of X11_Class fix
9077  */
9078 tSCC zX11_ClassName[] =
9079      "x11_class";
9082  *  File name selection pattern
9083  */
9084 tSCC zX11_ClassList[] =
9085   "X11/ShellP.h\0";
9087  *  Machine/OS name selection pattern
9088  */
9089 #define apzX11_ClassMachs (const char**)NULL
9092  *  content selection pattern - do fix if pattern found
9093  */
9094 tSCC zX11_ClassSelect0[] =
9095        "^([ \t]*char \\*)class;(.*)";
9098  *  content bypass pattern - skip fix if pattern found
9099  */
9100 tSCC zX11_ClassBypass0[] =
9101        "__cplusplus";
9103 #define    X11_CLASS_TEST_CT  2
9104 static tTestDesc aX11_ClassTests[] = {
9105   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
9106   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
9109  *  Fix Command Arguments for X11_Class
9110  */
9111 static const char* apzX11_ClassPatch[] = {
9112     "format",
9113     "#ifdef __cplusplus\n\
9114 %1c_class;%2\n\
9115 #else\n\
9116 %1class;%2\n\
9117 #endif",
9118     (char*)NULL };
9120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9122  *  Description of X11_Class_Usage fix
9123  */
9124 tSCC zX11_Class_UsageName[] =
9125      "x11_class_usage";
9128  *  File name selection pattern
9129  */
9130 tSCC zX11_Class_UsageList[] =
9131   "Xm/BaseClassI.h\0";
9133  *  Machine/OS name selection pattern
9134  */
9135 #define apzX11_Class_UsageMachs (const char**)NULL
9138  *  content selection pattern - do fix if pattern found
9139  */
9140 tSCC zX11_Class_UsageSelect0[] =
9141        " class\\)";
9144  *  content bypass pattern - skip fix if pattern found
9145  */
9146 tSCC zX11_Class_UsageBypass0[] =
9147        "__cplusplus";
9149 #define    X11_CLASS_USAGE_TEST_CT  2
9150 static tTestDesc aX11_Class_UsageTests[] = {
9151   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
9152   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
9155  *  Fix Command Arguments for X11_Class_Usage
9156  */
9157 static const char* apzX11_Class_UsagePatch[] = {
9158     "format",
9159     " c_class)",
9160     (char*)NULL };
9162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9164  *  Description of X11_New fix
9165  */
9166 tSCC zX11_NewName[] =
9167      "x11_new";
9170  *  File name selection pattern
9171  */
9172 tSCC zX11_NewList[] =
9173   "Xm/Traversal.h\0";
9175  *  Machine/OS name selection pattern
9176  */
9177 #define apzX11_NewMachs (const char**)NULL
9180  *  content bypass pattern - skip fix if pattern found
9181  */
9182 tSCC zX11_NewBypass0[] =
9183        "__cplusplus";
9185 #define    X11_NEW_TEST_CT  1
9186 static tTestDesc aX11_NewTests[] = {
9187   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
9190  *  Fix Command Arguments for X11_New
9191  */
9192 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9193     "-e", "/Widget\told, new;/i\\\n\
9194 #ifdef __cplusplus\\\n\
9195 \\\tWidget\told, c_new;\\\n\
9196 #else\n",
9197     "-e", "/Widget\told, new;/a\\\n\
9198 #endif\n",
9199     "-e", "s/Widget new,/Widget c_new,/g",
9200     (char*)NULL };
9202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9204  *  Description of X11_Sprintf fix
9205  */
9206 tSCC zX11_SprintfName[] =
9207      "x11_sprintf";
9210  *  File name selection pattern
9211  */
9212 tSCC zX11_SprintfList[] =
9213   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9215  *  Machine/OS name selection pattern
9216  */
9217 #define apzX11_SprintfMachs (const char**)NULL
9220  *  content selection pattern - do fix if pattern found
9221  */
9222 tSCC zX11_SprintfSelect0[] =
9223        "^extern char \\*\tsprintf\\(\\);$";
9225 #define    X11_SPRINTF_TEST_CT  1
9226 static tTestDesc aX11_SprintfTests[] = {
9227   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
9230  *  Fix Command Arguments for X11_Sprintf
9231  */
9232 static const char* apzX11_SprintfPatch[] = {
9233     "format",
9234     "#ifndef __STDC__\n\
9235 %0\n\
9236 #endif /* !defined __STDC__ */",
9237     (char*)NULL };
9240 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9242  *  List of all fixes
9243  */
9244 #define REGEX_COUNT          262
9245 #define MACH_LIST_SIZE_LIMIT 187
9246 #define FIX_COUNT            225
9249  *  Enumerate the fixes
9250  */
9251 typedef enum {
9252     AAB_AIX_STDIO_FIXIDX,
9253     AAB_AIX_FCNTL_FIXIDX,
9254     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9255     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9256     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9257     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9258     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9259     AAB_SUN_MEMCPY_FIXIDX,
9260     AAB_VXWORKS_ASSERT_FIXIDX,
9261     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
9262     AAB_VXWORKS_STDINT_FIXIDX,
9263     AAB_VXWORKS_UNISTD_FIXIDX,
9264     AIX_ASSERT_FIXIDX,
9265     AIX_COMPLEX_FIXIDX,
9266     AIX_MALLOC_FIXIDX,
9267     AIX_NET_IF_ARP_FIXIDX,
9268     AIX_NULL_FIXIDX,
9269     AIX_ONCE_INIT_1_FIXIDX,
9270     AIX_ONCE_INIT_2_FIXIDX,
9271     AIX_MUTEX_INITIALIZER_1_FIXIDX,
9272     AIX_COND_INITIALIZER_1_FIXIDX,
9273     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
9274     AIX_PTHREAD_FIXIDX,
9275     AIX_STDINT_1_FIXIDX,
9276     AIX_STDINT_2_FIXIDX,
9277     AIX_STDINT_3_FIXIDX,
9278     AIX_STDINT_4_FIXIDX,
9279     AIX_STDINT_5_FIXIDX,
9280     AIX_STRTOF_CONST_FIXIDX,
9281     AIX_SYSMACHINE_FIXIDX,
9282     AIX_SYSWAIT_2_FIXIDX,
9283     AIX_VOLATILE_FIXIDX,
9284     ALPHA___ASSERT_FIXIDX,
9285     ALPHA_ASSERT_FIXIDX,
9286     ALPHA_GETOPT_FIXIDX,
9287     ALPHA_IF_SEMICOLON_FIXIDX,
9288     ALPHA_PARENS_FIXIDX,
9289     ALPHA_SBRK_FIXIDX,
9290     AVOID_BOOL_DEFINE_FIXIDX,
9291     AVOID_BOOL_TYPE_FIXIDX,
9292     AVOID_WCHAR_T_TYPE_FIXIDX,
9293     BAD_STRUCT_TERM_FIXIDX,
9294     BADQUOTE_FIXIDX,
9295     BROKEN_ASSERT_STDIO_FIXIDX,
9296     BROKEN_ASSERT_STDLIB_FIXIDX,
9297     BROKEN_CABS_FIXIDX,
9298     BROKEN_NAN_FIXIDX,
9299     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9300     CTRL_QUOTES_DEF_FIXIDX,
9301     CTRL_QUOTES_USE_FIXIDX,
9302     CXX_UNREADY_FIXIDX,
9303     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9304     DARWIN_EXTERNC_FIXIDX,
9305     DARWIN_GCC4_BREAKAGE_FIXIDX,
9306     DARWIN_PRIVATE_EXTERN_FIXIDX,
9307     DARWIN_STDINT_1_FIXIDX,
9308     DARWIN_STDINT_2_FIXIDX,
9309     DARWIN_STDINT_3_FIXIDX,
9310     DARWIN_STDINT_4_FIXIDX,
9311     DARWIN_STDINT_5_FIXIDX,
9312     DARWIN_STDINT_6_FIXIDX,
9313     DARWIN_STDINT_7_FIXIDX,
9314     DEC_INTERN_ASM_FIXIDX,
9315     DJGPP_WCHAR_H_FIXIDX,
9316     ECD_CURSOR_FIXIDX,
9317     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
9318     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
9319     FREEBSD_GCC3_BREAKAGE_FIXIDX,
9320     FREEBSD_GCC4_BREAKAGE_FIXIDX,
9321     GLIBC_C99_INLINE_1_FIXIDX,
9322     GLIBC_C99_INLINE_1A_FIXIDX,
9323     GLIBC_C99_INLINE_2_FIXIDX,
9324     GLIBC_C99_INLINE_3_FIXIDX,
9325     GLIBC_C99_INLINE_4_FIXIDX,
9326     GLIBC_MUTEX_INIT_FIXIDX,
9327     GLIBC_STDINT_FIXIDX,
9328     GLIBC_STRNCPY_FIXIDX,
9329     GLIBC_TGMATH_FIXIDX,
9330     GNU_TYPES_FIXIDX,
9331     HP_INLINE_FIXIDX,
9332     HP_SYSFILE_FIXIDX,
9333     HPPA_HPUX_FP_MACROS_FIXIDX,
9334     HPUX10_CPP_POW_INLINE_FIXIDX,
9335     HPUX11_CPP_POW_INLINE_FIXIDX,
9336     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9337     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9338     HPUX10_STDIO_DECLARATIONS_FIXIDX,
9339     HPUX11_ABS_FIXIDX,
9340     HPUX11_EXTERN_SENDFILE_FIXIDX,
9341     HPUX11_EXTERN_SENDPATH_FIXIDX,
9342     HPUX11_FABSF_FIXIDX,
9343     HPUX11_PTHREAD_CONST_FIXIDX,
9344     HPUX11_SIZE_T_FIXIDX,
9345     HPUX11_SNPRINTF_FIXIDX,
9346     HPUX11_VSNPRINTF_FIXIDX,
9347     HPUX8_BOGUS_INLINES_FIXIDX,
9348     HPUX_C99_INTPTR_FIXIDX,
9349     HPUX_C99_INTTYPES_FIXIDX,
9350     HPUX_C99_INTTYPES2_FIXIDX,
9351     HPUX_CTYPE_MACROS_FIXIDX,
9352     HPUX_EXTERN_ERRNO_FIXIDX,
9353     HPUX_HTONL_FIXIDX,
9354     HPUX_IMAGINARY_I_FIXIDX,
9355     HPUX_INTTYPE_INT8_T_FIXIDX,
9356     HPUX_LONG_DOUBLE_FIXIDX,
9357     HPUX_LONG_DOUBLE_2_FIXIDX,
9358     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9359     HPUX_SPU_INFO_FIXIDX,
9360     HPUX_STDINT_LEAST_FAST_FIXIDX,
9361     HPUX_SYSTIME_FIXIDX,
9362     HUGE_VAL_HEX_FIXIDX,
9363     HUGE_VALF_HEX_FIXIDX,
9364     HUGE_VALL_HEX_FIXIDX,
9365     INT_ABORT_FREE_AND_EXIT_FIXIDX,
9366     IO_QUOTES_DEF_FIXIDX,
9367     IO_QUOTES_USE_FIXIDX,
9368     IP_MISSING_SEMI_FIXIDX,
9369     IRIX_LIMITS_CONST_FIXIDX,
9370     IRIX_STDIO_VA_LIST_FIXIDX,
9371     KANDR_CONCAT_FIXIDX,
9372     LINUX_IA64_UCONTEXT_FIXIDX,
9373     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9374     LYNXOS_MISSING_PUTENV_FIXIDX,
9375     MACHINE_ANSI_H_VA_LIST_FIXIDX,
9376     MACHINE_NAME_FIXIDX,
9377     MATH_EXCEPTION_FIXIDX,
9378     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9379     NESTED_AUTH_DES_FIXIDX,
9380     NETBSD_C99_INLINE_1_FIXIDX,
9381     NETBSD_C99_INLINE_2_FIXIDX,
9382     NETBSD_EXTRA_SEMICOLON_FIXIDX,
9383     NEWLIB_STDINT_1_FIXIDX,
9384     NEWLIB_STDINT_2_FIXIDX,
9385     NEXT_MATH_PREFIX_FIXIDX,
9386     NEXT_TEMPLATE_FIXIDX,
9387     NEXT_VOLITILE_FIXIDX,
9388     NEXT_WAIT_UNION_FIXIDX,
9389     NODEENT_SYNTAX_FIXIDX,
9390     OPENBSD_NULL_DEFINITION_FIXIDX,
9391     OBSTACK_LVALUE_CAST_FIXIDX,
9392     OPENBSD_VA_START_FIXIDX,
9393     OSF_NAMESPACE_A_FIXIDX,
9394     OSF_NAMESPACE_C_FIXIDX,
9395     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9396     READ_RET_TYPE_FIXIDX,
9397     RPC_XDR_LVALUE_CAST_A_FIXIDX,
9398     RPC_XDR_LVALUE_CAST_B_FIXIDX,
9399     RS6000_DOUBLE_FIXIDX,
9400     RS6000_FCHMOD_FIXIDX,
9401     RS6000_PARAM_FIXIDX,
9402     SOLARIS___RESTRICT_FIXIDX,
9403     SOLARIS_COMPLEX_FIXIDX,
9404     SOLARIS_COMPLEX_CXX_FIXIDX,
9405     SOLARIS_CXX_LINKAGE_FIXIDX,
9406     SOLARIS_GETC_STRICT_STDC_FIXIDX,
9407     SOLARIS_INT_CONST_FIXIDX,
9408     SOLARIS_INT_LIMITS_1_FIXIDX,
9409     SOLARIS_INT_LIMITS_2_FIXIDX,
9410     SOLARIS_INT_LIMITS_3_FIXIDX,
9411     SOLARIS_MATH_1_FIXIDX,
9412     SOLARIS_MATH_10_FIXIDX,
9413     SOLARIS_MATH_2_FIXIDX,
9414     SOLARIS_MATH_3_FIXIDX,
9415     SOLARIS_MATH_4_FIXIDX,
9416     SOLARIS_MATH_8_FIXIDX,
9417     SOLARIS_MATH_9_FIXIDX,
9418     SOLARIS_MATH_11_FIXIDX,
9419     SOLARIS_ONCE_INIT_1_FIXIDX,
9420     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9421     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9422     SOLARIS_RWLOCK_INIT_1_FIXIDX,
9423     SOLARIS_STD___FILBUF_FIXIDX,
9424     SOLARIS_STDIO_TAG_FIXIDX,
9425     STATSSWTCH_FIXIDX,
9426     STDIO_STDARG_H_FIXIDX,
9427     STDIO_VA_LIST_FIXIDX,
9428     STDIO_VA_LIST_CLIENTS_FIXIDX,
9429     STRICT_ANSI_NOT_FIXIDX,
9430     STRICT_ANSI_NOT_CTD_FIXIDX,
9431     STRICT_ANSI_ONLY_FIXIDX,
9432     STRUCT_FILE_FIXIDX,
9433     STRUCT_SOCKADDR_FIXIDX,
9434     SUN_AUTH_PROTO_FIXIDX,
9435     SUN_BOGUS_IFDEF_FIXIDX,
9436     SUN_CATMACRO_FIXIDX,
9437     SUN_MALLOC_FIXIDX,
9438     SUN_RUSERS_SEMI_FIXIDX,
9439     SUN_SIGNAL_FIXIDX,
9440     SUNOS_STRLEN_FIXIDX,
9441     SUSE_LINUX_VT_CXX_FIXIDX,
9442     SVR4_DISABLE_OPT_FIXIDX,
9443     SVR4_GETCWD_FIXIDX,
9444     SVR4_PROFIL_FIXIDX,
9445     SVR4_SIGHANDLER_TYPE_FIXIDX,
9446     SVR4_UNDECLARED_GETRNGE_FIXIDX,
9447     SYSV68_STRING_FIXIDX,
9448     SYSZ_STDLIB_FOR_SUN_FIXIDX,
9449     THREAD_KEYWORD_FIXIDX,
9450     TINFO_CPLUSPLUS_FIXIDX,
9451     ULTRIX_CONST_FIXIDX,
9452     ULTRIX_CONST2_FIXIDX,
9453     VA_I960_MACRO_FIXIDX,
9454     VMS_ADD_MISSING_BRACES_FIXIDX,
9455     VMS_DECC_BUILTIN_FIXIDX,
9456     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9457     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9458     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
9459     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
9460     VMS_NO_64BIT_GETOPT_FIXIDX,
9461     VMS_USE_FAST_SETJMP_FIXIDX,
9462     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9463     VMS_USE_QUOTED_INCLUDE_FIXIDX,
9464     VOID_NULL_FIXIDX,
9465     VXWORKS_GCC_PROBLEM_FIXIDX,
9466     VXWORKS_IOCTL_MACRO_FIXIDX,
9467     VXWORKS_MKDIR_MACRO_FIXIDX,
9468     VXWORKS_NEEDS_VXTYPES_FIXIDX,
9469     VXWORKS_NEEDS_VXWORKS_FIXIDX,
9470     VXWORKS_REGS_FIXIDX,
9471     VXWORKS_TIME_FIXIDX,
9472     VXWORKS_WRITE_CONST_FIXIDX,
9473     X11_CLASS_FIXIDX,
9474     X11_CLASS_USAGE_FIXIDX,
9475     X11_NEW_FIXIDX,
9476     X11_SPRINTF_FIXIDX
9477 } t_fixinc_idx;
9479 tFixDesc fixDescList[ FIX_COUNT ] = {
9480   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
9481      apzAab_Aix_StdioMachs,
9482      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
9485   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
9486      apzAab_Aix_FcntlMachs,
9487      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
9490   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
9491      apzAab_Darwin7_9_Long_Double_FuncsMachs,
9492      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9493      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9495   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
9496      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9497      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9498      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9500   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
9501      apzAab_Fd_Zero_Gnu_Types_HMachs,
9502      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9503      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9505   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
9506      apzAab_Fd_Zero_Selectbits_HMachs,
9507      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9508      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9510   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
9511      apzAab_Solaris_Sys_Varargs_HMachs,
9512      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9513      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9515   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
9516      apzAab_Sun_MemcpyMachs,
9517      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9518      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
9520   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
9521      apzAab_Vxworks_AssertMachs,
9522      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9523      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
9525   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
9526      apzAab_Vxworks_Regs_VxtypesMachs,
9527      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9528      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
9530   {  zAab_Vxworks_StdintName,    zAab_Vxworks_StdintList,
9531      apzAab_Vxworks_StdintMachs,
9532      AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9533      aAab_Vxworks_StdintTests,   apzAab_Vxworks_StdintPatch, 0 },
9535   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
9536      apzAab_Vxworks_UnistdMachs,
9537      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9538      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
9540   {  zAix_AssertName,    zAix_AssertList,
9541      apzAix_AssertMachs,
9542      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543      aAix_AssertTests,   apzAix_AssertPatch, 0 },
9545   {  zAix_ComplexName,    zAix_ComplexList,
9546      apzAix_ComplexMachs,
9547      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
9550   {  zAix_MallocName,    zAix_MallocList,
9551      apzAix_MallocMachs,
9552      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553      aAix_MallocTests,   apzAix_MallocPatch, 0 },
9555   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
9556      apzAix_Net_If_ArpMachs,
9557      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9558      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
9560   {  zAix_NullName,    zAix_NullList,
9561      apzAix_NullMachs,
9562      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563      aAix_NullTests,   apzAix_NullPatch, 0 },
9565   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
9566      apzAix_Once_Init_1Machs,
9567      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
9570   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
9571      apzAix_Once_Init_2Machs,
9572      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
9575   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
9576      apzAix_Mutex_Initializer_1Machs,
9577      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
9580   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
9581      apzAix_Cond_Initializer_1Machs,
9582      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
9585   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
9586      apzAix_Rwlock_Initializer_1Machs,
9587      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
9590   {  zAix_PthreadName,    zAix_PthreadList,
9591      apzAix_PthreadMachs,
9592      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
9595   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
9596      apzAix_Stdint_1Machs,
9597      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
9600   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
9601      apzAix_Stdint_2Machs,
9602      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
9605   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
9606      apzAix_Stdint_3Machs,
9607      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
9610   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
9611      apzAix_Stdint_4Machs,
9612      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
9615   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
9616      apzAix_Stdint_5Machs,
9617      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
9620   {  zAix_Strtof_ConstName,    zAix_Strtof_ConstList,
9621      apzAix_Strtof_ConstMachs,
9622      AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623      aAix_Strtof_ConstTests,   apzAix_Strtof_ConstPatch, 0 },
9625   {  zAix_SysmachineName,    zAix_SysmachineList,
9626      apzAix_SysmachineMachs,
9627      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
9630   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
9631      apzAix_Syswait_2Machs,
9632      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
9635   {  zAix_VolatileName,    zAix_VolatileList,
9636      apzAix_VolatileMachs,
9637      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
9640   {  zAlpha___AssertName,    zAlpha___AssertList,
9641      apzAlpha___AssertMachs,
9642      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
9645   {  zAlpha_AssertName,    zAlpha_AssertList,
9646      apzAlpha_AssertMachs,
9647      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
9650   {  zAlpha_GetoptName,    zAlpha_GetoptList,
9651      apzAlpha_GetoptMachs,
9652      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
9655   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
9656      apzAlpha_If_SemicolonMachs,
9657      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
9660   {  zAlpha_ParensName,    zAlpha_ParensList,
9661      apzAlpha_ParensMachs,
9662      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
9665   {  zAlpha_SbrkName,    zAlpha_SbrkList,
9666      apzAlpha_SbrkMachs,
9667      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
9670   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
9671      apzAvoid_Bool_DefineMachs,
9672      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
9675   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
9676      apzAvoid_Bool_TypeMachs,
9677      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
9680   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
9681      apzAvoid_Wchar_T_TypeMachs,
9682      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
9685   {  zBad_Struct_TermName,    zBad_Struct_TermList,
9686      apzBad_Struct_TermMachs,
9687      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
9690   {  zBadquoteName,    zBadquoteList,
9691      apzBadquoteMachs,
9692      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693      aBadquoteTests,   apzBadquotePatch, 0 },
9695   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
9696      apzBroken_Assert_StdioMachs,
9697      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
9700   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
9701      apzBroken_Assert_StdlibMachs,
9702      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
9705   {  zBroken_CabsName,    zBroken_CabsList,
9706      apzBroken_CabsMachs,
9707      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9708      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
9710   {  zBroken_NanName,    zBroken_NanList,
9711      apzBroken_NanMachs,
9712      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713      aBroken_NanTests,   apzBroken_NanPatch, 0 },
9715   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
9716      apzBsd_Stdio_Attrs_ConflictMachs,
9717      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9720   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
9721      apzCtrl_Quotes_DefMachs,
9722      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
9725   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
9726      apzCtrl_Quotes_UseMachs,
9727      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
9730   {  zCxx_UnreadyName,    zCxx_UnreadyList,
9731      apzCxx_UnreadyMachs,
9732      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
9735   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
9736      apzDarwin_9_Long_Double_Funcs_2Machs,
9737      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
9740   {  zDarwin_ExterncName,    zDarwin_ExterncList,
9741      apzDarwin_ExterncMachs,
9742      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
9745   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
9746      apzDarwin_Gcc4_BreakageMachs,
9747      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
9750   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
9751      apzDarwin_Private_ExternMachs,
9752      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9753      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
9755   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
9756      apzDarwin_Stdint_1Machs,
9757      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
9760   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
9761      apzDarwin_Stdint_2Machs,
9762      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9763      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
9765   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
9766      apzDarwin_Stdint_3Machs,
9767      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
9770   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
9771      apzDarwin_Stdint_4Machs,
9772      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
9775   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
9776      apzDarwin_Stdint_5Machs,
9777      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
9780   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
9781      apzDarwin_Stdint_6Machs,
9782      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
9785   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
9786      apzDarwin_Stdint_7Machs,
9787      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
9790   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
9791      apzDec_Intern_AsmMachs,
9792      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9793      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
9795   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
9796      apzDjgpp_Wchar_HMachs,
9797      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
9800   {  zEcd_CursorName,    zEcd_CursorList,
9801      apzEcd_CursorMachs,
9802      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
9805   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
9806      apzFeraiseexcept_Nosse_DivbyzeroMachs,
9807      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
9810   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
9811      apzFeraiseexcept_Nosse_InvalidMachs,
9812      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
9815   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
9816      apzFreebsd_Gcc3_BreakageMachs,
9817      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
9820   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
9821      apzFreebsd_Gcc4_BreakageMachs,
9822      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
9825   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
9826      apzGlibc_C99_Inline_1Machs,
9827      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
9830   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
9831      apzGlibc_C99_Inline_1aMachs,
9832      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
9835   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
9836      apzGlibc_C99_Inline_2Machs,
9837      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9838      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
9840   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
9841      apzGlibc_C99_Inline_3Machs,
9842      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
9845   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
9846      apzGlibc_C99_Inline_4Machs,
9847      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
9850   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
9851      apzGlibc_Mutex_InitMachs,
9852      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9853      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
9855   {  zGlibc_StdintName,    zGlibc_StdintList,
9856      apzGlibc_StdintMachs,
9857      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
9860   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
9861      apzGlibc_StrncpyMachs,
9862      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
9865   {  zGlibc_TgmathName,    zGlibc_TgmathList,
9866      apzGlibc_TgmathMachs,
9867      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
9870   {  zGnu_TypesName,    zGnu_TypesList,
9871      apzGnu_TypesMachs,
9872      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9873      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
9875   {  zHp_InlineName,    zHp_InlineList,
9876      apzHp_InlineMachs,
9877      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9878      aHp_InlineTests,   apzHp_InlinePatch, 0 },
9880   {  zHp_SysfileName,    zHp_SysfileList,
9881      apzHp_SysfileMachs,
9882      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
9885   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
9886      apzHppa_Hpux_Fp_MacrosMachs,
9887      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
9890   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
9891      apzHpux10_Cpp_Pow_InlineMachs,
9892      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
9895   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
9896      apzHpux11_Cpp_Pow_InlineMachs,
9897      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
9900   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
9901      apzHpux10_Ctype_Declarations1Machs,
9902      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
9905   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
9906      apzHpux10_Ctype_Declarations2Machs,
9907      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
9910   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
9911      apzHpux10_Stdio_DeclarationsMachs,
9912      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
9915   {  zHpux11_AbsName,    zHpux11_AbsList,
9916      apzHpux11_AbsMachs,
9917      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9918      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
9920   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9921      apzHpux11_Extern_SendfileMachs,
9922      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9923      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9925   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9926      apzHpux11_Extern_SendpathMachs,
9927      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9930   {  zHpux11_FabsfName,    zHpux11_FabsfList,
9931      apzHpux11_FabsfMachs,
9932      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
9935   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
9936      apzHpux11_Pthread_ConstMachs,
9937      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
9940   {  zHpux11_Size_TName,    zHpux11_Size_TList,
9941      apzHpux11_Size_TMachs,
9942      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
9945   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
9946      apzHpux11_SnprintfMachs,
9947      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9948      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
9950   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
9951      apzHpux11_VsnprintfMachs,
9952      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9953      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
9955   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
9956      apzHpux8_Bogus_InlinesMachs,
9957      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9958      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
9960   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
9961      apzHpux_C99_IntptrMachs,
9962      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9963      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
9965   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
9966      apzHpux_C99_InttypesMachs,
9967      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9968      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
9970   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
9971      apzHpux_C99_Inttypes2Machs,
9972      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9973      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
9975   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
9976      apzHpux_Ctype_MacrosMachs,
9977      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
9980   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9981      apzHpux_Extern_ErrnoMachs,
9982      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9985   {  zHpux_HtonlName,    zHpux_HtonlList,
9986      apzHpux_HtonlMachs,
9987      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9990   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
9991      apzHpux_Imaginary_IMachs,
9992      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
9995   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
9996      apzHpux_Inttype_Int8_TMachs,
9997      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
10000   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
10001      apzHpux_Long_DoubleMachs,
10002      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
10003      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
10005   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
10006      apzHpux_Long_Double_2Machs,
10007      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10008      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
10010   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
10011      apzHpux_Pthread_InitializersMachs,
10012      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
10013      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
10015   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
10016      apzHpux_Spu_InfoMachs,
10017      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
10020   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
10021      apzHpux_Stdint_Least_FastMachs,
10022      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
10025   {  zHpux_SystimeName,    zHpux_SystimeList,
10026      apzHpux_SystimeMachs,
10027      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
10030   {  zHuge_Val_HexName,    zHuge_Val_HexList,
10031      apzHuge_Val_HexMachs,
10032      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
10035   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
10036      apzHuge_Valf_HexMachs,
10037      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
10040   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
10041      apzHuge_Vall_HexMachs,
10042      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
10045   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
10046      apzInt_Abort_Free_And_ExitMachs,
10047      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10048      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
10050   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
10051      apzIo_Quotes_DefMachs,
10052      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10053      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
10055   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
10056      apzIo_Quotes_UseMachs,
10057      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10058      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
10060   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
10061      apzIp_Missing_SemiMachs,
10062      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
10063      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
10065   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
10066      apzIrix_Limits_ConstMachs,
10067      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
10070   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
10071      apzIrix_Stdio_Va_ListMachs,
10072      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
10075   {  zKandr_ConcatName,    zKandr_ConcatList,
10076      apzKandr_ConcatMachs,
10077      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
10080   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
10081      apzLinux_Ia64_UcontextMachs,
10082      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10083      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
10085   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
10086      apzLynxos_No_Warning_In_Sys_Time_HMachs,
10087      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
10090   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
10091      apzLynxos_Missing_PutenvMachs,
10092      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
10095   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
10096      apzMachine_Ansi_H_Va_ListMachs,
10097      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
10100   {  zMachine_NameName,    zMachine_NameList,
10101      apzMachine_NameMachs,
10102      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10103      aMachine_NameTests,   apzMachine_NamePatch, 0 },
10105   {  zMath_ExceptionName,    zMath_ExceptionList,
10106      apzMath_ExceptionMachs,
10107      MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10108      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
10110   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
10111      apzMath_Huge_Val_From_Dbl_MaxMachs,
10112      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
10113      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
10115   {  zNested_Auth_DesName,    zNested_Auth_DesList,
10116      apzNested_Auth_DesMachs,
10117      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10118      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
10120   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
10121      apzNetbsd_C99_Inline_1Machs,
10122      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10123      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
10125   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
10126      apzNetbsd_C99_Inline_2Machs,
10127      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10128      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
10130   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
10131      apzNetbsd_Extra_SemicolonMachs,
10132      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
10135   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
10136      apzNewlib_Stdint_1Machs,
10137      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
10138      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
10140   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
10141      apzNewlib_Stdint_2Machs,
10142      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10143      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
10145   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
10146      apzNext_Math_PrefixMachs,
10147      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
10150   {  zNext_TemplateName,    zNext_TemplateList,
10151      apzNext_TemplateMachs,
10152      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10153      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
10155   {  zNext_VolitileName,    zNext_VolitileList,
10156      apzNext_VolitileMachs,
10157      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10158      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
10160   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
10161      apzNext_Wait_UnionMachs,
10162      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
10165   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
10166      apzNodeent_SyntaxMachs,
10167      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
10170   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
10171      apzOpenbsd_Null_DefinitionMachs,
10172      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10173      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
10175   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
10176      apzObstack_Lvalue_CastMachs,
10177      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10178      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
10180   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
10181      apzOpenbsd_Va_StartMachs,
10182      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10183      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
10185   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
10186      apzOsf_Namespace_AMachs,
10187      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10188      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
10190   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
10191      apzOsf_Namespace_CMachs,
10192      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10193      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
10195   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
10196      apzPthread_Incomplete_Struct_ArgumentMachs,
10197      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10198      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10200   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
10201      apzRead_Ret_TypeMachs,
10202      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10203      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
10205   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
10206      apzRpc_Xdr_Lvalue_Cast_AMachs,
10207      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10210   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
10211      apzRpc_Xdr_Lvalue_Cast_BMachs,
10212      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10215   {  zRs6000_DoubleName,    zRs6000_DoubleList,
10216      apzRs6000_DoubleMachs,
10217      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
10220   {  zRs6000_FchmodName,    zRs6000_FchmodList,
10221      apzRs6000_FchmodMachs,
10222      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
10225   {  zRs6000_ParamName,    zRs6000_ParamList,
10226      apzRs6000_ParamMachs,
10227      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10228      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
10230   {  zSolaris___RestrictName,    zSolaris___RestrictList,
10231      apzSolaris___RestrictMachs,
10232      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
10235   {  zSolaris_ComplexName,    zSolaris_ComplexList,
10236      apzSolaris_ComplexMachs,
10237      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10238      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
10240   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
10241      apzSolaris_Complex_CxxMachs,
10242      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10243      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
10245   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
10246      apzSolaris_Cxx_LinkageMachs,
10247      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10248      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
10250   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
10251      apzSolaris_Getc_Strict_StdcMachs,
10252      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10253      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
10255   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
10256      apzSolaris_Int_ConstMachs,
10257      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
10260   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
10261      apzSolaris_Int_Limits_1Machs,
10262      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10263      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
10265   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
10266      apzSolaris_Int_Limits_2Machs,
10267      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10268      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
10270   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
10271      apzSolaris_Int_Limits_3Machs,
10272      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
10275   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
10276      apzSolaris_Math_1Machs,
10277      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
10280   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
10281      apzSolaris_Math_10Machs,
10282      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10283      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
10285   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
10286      apzSolaris_Math_2Machs,
10287      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10288      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
10290   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
10291      apzSolaris_Math_3Machs,
10292      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10293      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
10295   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
10296      apzSolaris_Math_4Machs,
10297      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10298      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
10300   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
10301      apzSolaris_Math_8Machs,
10302      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10303      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
10305   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
10306      apzSolaris_Math_9Machs,
10307      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10308      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
10310   {  zSolaris_Math_11Name,    zSolaris_Math_11List,
10311      apzSolaris_Math_11Machs,
10312      SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10313      aSolaris_Math_11Tests,   apzSolaris_Math_11Patch, 0 },
10315   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
10316      apzSolaris_Once_Init_1Machs,
10317      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10318      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
10320   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
10321      apzSolaris_Posix_Spawn_RestrictMachs,
10322      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10323      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10325   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
10326      apzSolaris_Pow_Int_OverloadMachs,
10327      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10328      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
10330   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
10331      apzSolaris_Rwlock_Init_1Machs,
10332      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10333      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
10335   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
10336      apzSolaris_Std___FilbufMachs,
10337      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10338      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
10340   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
10341      apzSolaris_Stdio_TagMachs,
10342      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10343      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
10345   {  zStatsswtchName,    zStatsswtchList,
10346      apzStatsswtchMachs,
10347      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10348      aStatsswtchTests,   apzStatsswtchPatch, 0 },
10350   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
10351      apzStdio_Stdarg_HMachs,
10352      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10353      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
10355   {  zStdio_Va_ListName,    zStdio_Va_ListList,
10356      apzStdio_Va_ListMachs,
10357      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10358      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
10360   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
10361      apzStdio_Va_List_ClientsMachs,
10362      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10363      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
10365   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
10366      apzStrict_Ansi_NotMachs,
10367      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10368      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
10370   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
10371      apzStrict_Ansi_Not_CtdMachs,
10372      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10373      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
10375   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
10376      apzStrict_Ansi_OnlyMachs,
10377      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10378      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
10380   {  zStruct_FileName,    zStruct_FileList,
10381      apzStruct_FileMachs,
10382      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10383      aStruct_FileTests,   apzStruct_FilePatch, 0 },
10385   {  zStruct_SockaddrName,    zStruct_SockaddrList,
10386      apzStruct_SockaddrMachs,
10387      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10388      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
10390   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
10391      apzSun_Auth_ProtoMachs,
10392      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10393      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
10395   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
10396      apzSun_Bogus_IfdefMachs,
10397      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10398      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
10400   {  zSun_CatmacroName,    zSun_CatmacroList,
10401      apzSun_CatmacroMachs,
10402      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10403      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
10405   {  zSun_MallocName,    zSun_MallocList,
10406      apzSun_MallocMachs,
10407      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10408      aSun_MallocTests,   apzSun_MallocPatch, 0 },
10410   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
10411      apzSun_Rusers_SemiMachs,
10412      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10413      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
10415   {  zSun_SignalName,    zSun_SignalList,
10416      apzSun_SignalMachs,
10417      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10418      aSun_SignalTests,   apzSun_SignalPatch, 0 },
10420   {  zSunos_StrlenName,    zSunos_StrlenList,
10421      apzSunos_StrlenMachs,
10422      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10423      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
10425   {  zSuse_Linux_Vt_CxxName,    zSuse_Linux_Vt_CxxList,
10426      apzSuse_Linux_Vt_CxxMachs,
10427      SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10428      aSuse_Linux_Vt_CxxTests,   apzSuse_Linux_Vt_CxxPatch, 0 },
10430   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
10431      apzSvr4_Disable_OptMachs,
10432      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10433      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
10435   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
10436      apzSvr4_GetcwdMachs,
10437      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10438      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
10440   {  zSvr4_ProfilName,    zSvr4_ProfilList,
10441      apzSvr4_ProfilMachs,
10442      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10443      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
10445   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
10446      apzSvr4_Sighandler_TypeMachs,
10447      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10448      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
10450   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
10451      apzSvr4_Undeclared_GetrngeMachs,
10452      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10453      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
10455   {  zSysv68_StringName,    zSysv68_StringList,
10456      apzSysv68_StringMachs,
10457      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10458      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
10460   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
10461      apzSysz_Stdlib_For_SunMachs,
10462      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10463      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
10465   {  zThread_KeywordName,    zThread_KeywordList,
10466      apzThread_KeywordMachs,
10467      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10468      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
10470   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
10471      apzTinfo_CplusplusMachs,
10472      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10473      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
10475   {  zUltrix_ConstName,    zUltrix_ConstList,
10476      apzUltrix_ConstMachs,
10477      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10478      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
10480   {  zUltrix_Const2Name,    zUltrix_Const2List,
10481      apzUltrix_Const2Machs,
10482      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10483      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
10485   {  zVa_I960_MacroName,    zVa_I960_MacroList,
10486      apzVa_I960_MacroMachs,
10487      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10488      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
10490   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
10491      apzVms_Add_Missing_BracesMachs,
10492      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10493      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
10495   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
10496      apzVms_Decc_BuiltinMachs,
10497      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
10498      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
10500   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
10501      apzVms_Define_Can_Use_Extern_PrefixMachs,
10502      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10503      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10505   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
10506      apzVms_Disable_Decc_String_BuiltinsMachs,
10507      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10508      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10510   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
10511      apzVms_Do_Not_Redeclare_HostaliasMachs,
10512      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10513      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
10515   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
10516      apzVms_Forward_Declare_StructMachs,
10517      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10518      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
10520   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
10521      apzVms_No_64bit_GetoptMachs,
10522      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10523      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
10525   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
10526      apzVms_Use_Fast_SetjmpMachs,
10527      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10528      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
10530   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
10531      apzVms_Use_Pragma_Extern_ModelMachs,
10532      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10533      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10535   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
10536      apzVms_Use_Quoted_IncludeMachs,
10537      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10538      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
10540   {  zVoid_NullName,    zVoid_NullList,
10541      apzVoid_NullMachs,
10542      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10543      aVoid_NullTests,   apzVoid_NullPatch, 0 },
10545   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
10546      apzVxworks_Gcc_ProblemMachs,
10547      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10548      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
10550   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
10551      apzVxworks_Ioctl_MacroMachs,
10552      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10553      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
10555   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
10556      apzVxworks_Mkdir_MacroMachs,
10557      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10558      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
10560   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
10561      apzVxworks_Needs_VxtypesMachs,
10562      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10563      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
10565   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
10566      apzVxworks_Needs_VxworksMachs,
10567      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10568      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
10570   {  zVxworks_RegsName,    zVxworks_RegsList,
10571      apzVxworks_RegsMachs,
10572      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10573      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
10575   {  zVxworks_TimeName,    zVxworks_TimeList,
10576      apzVxworks_TimeMachs,
10577      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10578      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
10580   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
10581      apzVxworks_Write_ConstMachs,
10582      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10583      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
10585   {  zX11_ClassName,    zX11_ClassList,
10586      apzX11_ClassMachs,
10587      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10588      aX11_ClassTests,   apzX11_ClassPatch, 0 },
10590   {  zX11_Class_UsageName,    zX11_Class_UsageList,
10591      apzX11_Class_UsageMachs,
10592      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10593      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
10595   {  zX11_NewName,    zX11_NewList,
10596      apzX11_NewMachs,
10597      X11_NEW_TEST_CT, FD_MACH_ONLY,
10598      aX11_NewTests,   apzX11_NewPatch, 0 },
10600   {  zX11_SprintfName,    zX11_SprintfList,
10601      apzX11_SprintfMachs,
10602      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10603      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }