PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / fixincludes / fixincl.x
blob8d8be9c4c7db5f750244c014e792dcdd9dd69fe6
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  *
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  *
5  * It has been AutoGen-ed  June  8, 2017 at 10:50:04 AM by AutoGen 5.18.4
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Thu Jun  8 10:50:04 CEST 2017
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 247 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_Unistd fix
585  */
586 tSCC zAab_Vxworks_UnistdName[] =
587      "AAB_vxworks_unistd";
590  *  File name selection pattern
591  */
592 tSCC zAab_Vxworks_UnistdList[] =
593   "unistd.h\0";
595  *  Machine/OS name selection pattern
596  */
597 tSCC* apzAab_Vxworks_UnistdMachs[] = {
598         "*-*-vxworks*",
599         (const char*)NULL };
600 #define AAB_VXWORKS_UNISTD_TEST_CT  0
601 #define aAab_Vxworks_UnistdTests   (tTestDesc*)NULL
604  *  Fix Command Arguments for Aab_Vxworks_Unistd
605  */
606 static const char* apzAab_Vxworks_UnistdPatch[] = {
607 "#ifndef _UNISTD_H\n\
608 #define _UNISTD_H\n\
609 #include_next <unistd.h>\n\
610 #include <ioLib.h>\n\
611 #ifndef STDIN_FILENO\n\
612 #define STDIN_FILENO 0\n\
613 #endif\n\
614 #ifndef STDOUT_FILENO\n\
615 #define STDOUT_FILENO 1\n\
616 #endif\n\
617 #ifndef STDERR_FILENO\n\
618 #define STDERR_FILENO 2\n\
619 #endif\n\
620 #endif /* _UNISTD_H */",
621     (char*)NULL };
623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
625  *  Description of Aix_Assert fix
626  */
627 tSCC zAix_AssertName[] =
628      "aix_assert";
631  *  File name selection pattern
632  */
633 tSCC zAix_AssertList[] =
634   "assert.h\0";
636  *  Machine/OS name selection pattern
637  */
638 tSCC* apzAix_AssertMachs[] = {
639         "*-*-aix*",
640         (const char*)NULL };
643  *  content selection pattern - do fix if pattern found
644  */
645 tSCC zAix_AssertSelect0[] =
646        "#define[ \t]static_assert[ \t]_Static_assert";
648 #define    AIX_ASSERT_TEST_CT  1
649 static tTestDesc aAix_AssertTests[] = {
650   { TT_EGREP,    zAix_AssertSelect0, (regex_t*)NULL }, };
653  *  Fix Command Arguments for Aix_Assert
654  */
655 static const char* apzAix_AssertPatch[] = {
656     "format",
657     "#ifndef __cplusplus\n\
658 %0\n\
659 #endif",
660     (char*)NULL };
662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
664  *  Description of Aix_Complex fix
665  */
666 tSCC zAix_ComplexName[] =
667      "aix_complex";
670  *  File name selection pattern
671  */
672 tSCC zAix_ComplexList[] =
673   "complex.h\0";
675  *  Machine/OS name selection pattern
676  */
677 tSCC* apzAix_ComplexMachs[] = {
678         "*-*-aix*",
679         (const char*)NULL };
682  *  content selection pattern - do fix if pattern found
683  */
684 tSCC zAix_ComplexSelect0[] =
685        "#define[ \t]_Complex_I[ \t]__I";
687 #define    AIX_COMPLEX_TEST_CT  1
688 static tTestDesc aAix_ComplexTests[] = {
689   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
692  *  Fix Command Arguments for Aix_Complex
693  */
694 static const char* apzAix_ComplexPatch[] = {
695     "format",
696     "#define _Complex_I (__extension__ 1.0iF)",
697     (char*)NULL };
699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
701  *  Description of Aix_Externc fix
702  */
703 tSCC zAix_ExterncName[] =
704      "aix_externc";
707  *  File name selection pattern
708  */
709 tSCC zAix_ExterncList[] =
710   "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0";
712  *  Machine/OS name selection pattern
713  */
714 tSCC* apzAix_ExterncMachs[] = {
715         "*-*-aix*",
716         (const char*)NULL };
719  *  content bypass pattern - skip fix if pattern found
720  */
721 tSCC zAix_ExterncBypass0[] =
722        "extern \"C\"";
724 #define    AIX_EXTERNC_TEST_CT  1
725 static tTestDesc aAix_ExterncTests[] = {
726   { TT_NEGREP,   zAix_ExterncBypass0, (regex_t*)NULL }, };
729  *  Fix Command Arguments for Aix_Externc
730  */
731 static const char* apzAix_ExterncPatch[] = {
732     "wrap",
733     "#ifdef __cplusplus\n\
734 extern \"C\" {\n\
735 #endif\n",
736     "#ifdef __cplusplus\n\
737 }\n\
738 #endif\n",
739     (char*)NULL };
741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
743  *  Description of Aix_Externcpp1 fix
744  */
745 tSCC zAix_Externcpp1Name[] =
746      "aix_externcpp1";
749  *  File name selection pattern
750  */
751 tSCC zAix_Externcpp1List[] =
752   "sys/socket.h\0";
754  *  Machine/OS name selection pattern
755  */
756 tSCC* apzAix_Externcpp1Machs[] = {
757         "*-*-aix*",
758         (const char*)NULL };
761  *  content selection pattern - do fix if pattern found
762  */
763 tSCC zAix_Externcpp1Select0[] =
764        "#ifdef __cplusplus";
766 #define    AIX_EXTERNCPP1_TEST_CT  1
767 static tTestDesc aAix_Externcpp1Tests[] = {
768   { TT_EGREP,    zAix_Externcpp1Select0, (regex_t*)NULL }, };
771  *  Fix Command Arguments for Aix_Externcpp1
772  */
773 static const char* apzAix_Externcpp1Patch[] = {
774     "format",
775     "#ifdef __cplusplus\n\
776 extern \"C++\" {",
777     (char*)NULL };
779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
781  *  Description of Aix_Externcpp2 fix
782  */
783 tSCC zAix_Externcpp2Name[] =
784      "aix_externcpp2";
787  *  File name selection pattern
788  */
789 tSCC zAix_Externcpp2List[] =
790   "sys/socket.h\0";
792  *  Machine/OS name selection pattern
793  */
794 tSCC* apzAix_Externcpp2Machs[] = {
795         "*-*-aix*",
796         (const char*)NULL };
799  *  content selection pattern - do fix if pattern found
800  */
801 tSCC zAix_Externcpp2Select0[] =
802        "#else  /\\* __cplusplus \\*/";
804 #define    AIX_EXTERNCPP2_TEST_CT  1
805 static tTestDesc aAix_Externcpp2Tests[] = {
806   { TT_EGREP,    zAix_Externcpp2Select0, (regex_t*)NULL }, };
809  *  Fix Command Arguments for Aix_Externcpp2
810  */
811 static const char* apzAix_Externcpp2Patch[] = {
812     "format",
813     "} /* extern \"C++\" */\n\
814 #else  /* __cplusplus */",
815     (char*)NULL };
817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
819  *  Description of Aix_Malloc fix
820  */
821 tSCC zAix_MallocName[] =
822      "aix_malloc";
825  *  File name selection pattern
826  */
827 tSCC zAix_MallocList[] =
828   "malloc.h\0";
830  *  Machine/OS name selection pattern
831  */
832 tSCC* apzAix_MallocMachs[] = {
833         "*-*-aix*",
834         (const char*)NULL };
837  *  content selection pattern - do fix if pattern found
838  */
839 tSCC zAix_MallocSelect0[] =
840        "#ifdef __cplusplus";
842 #define    AIX_MALLOC_TEST_CT  1
843 static tTestDesc aAix_MallocTests[] = {
844   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
847  *  Fix Command Arguments for Aix_Malloc
848  */
849 static const char* apzAix_MallocPatch[] = {
850     "format",
851     "#if (defined(__cplusplus) && defined(__IBMCPP__))",
852     (char*)NULL };
854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
856  *  Description of Aix_Net_If_Arp fix
857  */
858 tSCC zAix_Net_If_ArpName[] =
859      "aix_net_if_arp";
862  *  File name selection pattern
863  */
864 tSCC zAix_Net_If_ArpList[] =
865   "net/if_arp.h\0";
867  *  Machine/OS name selection pattern
868  */
869 tSCC* apzAix_Net_If_ArpMachs[] = {
870         "*-*-aix*",
871         (const char*)NULL };
874  *  content selection pattern - do fix if pattern found
875  */
876 tSCC zAix_Net_If_ArpSelect0[] =
877        "^struct  fc_softc \\{";
879 #define    AIX_NET_IF_ARP_TEST_CT  1
880 static tTestDesc aAix_Net_If_ArpTests[] = {
881   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
884  *  Fix Command Arguments for Aix_Net_If_Arp
885  */
886 static const char* apzAix_Net_If_ArpPatch[] = {
887     "format",
888     "typedef struct _fc_softc {",
889     (char*)NULL };
891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
893  *  Description of Aix_Null fix
894  */
895 tSCC zAix_NullName[] =
896      "aix_null";
899  *  File name selection pattern
900  */
901 tSCC zAix_NullList[] =
902   "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";
904  *  Machine/OS name selection pattern
905  */
906 tSCC* apzAix_NullMachs[] = {
907         "*-*-aix*",
908         (const char*)NULL };
911  *  content selection pattern - do fix if pattern found
912  */
913 tSCC zAix_NullSelect0[] =
914        "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
917  *  content bypass pattern - skip fix if pattern found
918  */
919 tSCC zAix_NullBypass0[] =
920        "__null";
922 #define    AIX_NULL_TEST_CT  2
923 static tTestDesc aAix_NullTests[] = {
924   { TT_NEGREP,   zAix_NullBypass0, (regex_t*)NULL },
925   { TT_EGREP,    zAix_NullSelect0, (regex_t*)NULL }, };
928  *  Fix Command Arguments for Aix_Null
929  */
930 static const char* apzAix_NullPatch[] = {
931     "format",
932     "#ifndef NULL\n\
933 #ifdef __cplusplus\n\
934 #ifdef __GNUG__\n\
935 #define NULL __null\n\
936 #else /* ! __GNUG__  */\n\
937 #define NULL 0L\n\
938 #endif /* __GNUG__  */\n\
939 #else /* ! __cplusplus  */\n\
940 #define NULL ((void *)0)\n\
941 #endif /* __cplusplus  */\n\
942 #endif /* !NULL  */",
943     (char*)NULL };
945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
947  *  Description of Aix_Once_Init_1 fix
948  */
949 tSCC zAix_Once_Init_1Name[] =
950      "aix_once_init_1";
953  *  File name selection pattern
954  */
955 tSCC zAix_Once_Init_1List[] =
956   "pthread.h\0";
958  *  Machine/OS name selection pattern
959  */
960 tSCC* apzAix_Once_Init_1Machs[] = {
961         "*-*-aix*",
962         (const char*)NULL };
965  *  content selection pattern - do fix if pattern found
966  */
967 tSCC zAix_Once_Init_1Select0[] =
968        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
969 \\{ \\\\\n";
971 #define    AIX_ONCE_INIT_1_TEST_CT  1
972 static tTestDesc aAix_Once_Init_1Tests[] = {
973   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
976  *  Fix Command Arguments for Aix_Once_Init_1
977  */
978 static const char* apzAix_Once_Init_1Patch[] = {
979     "format",
980     "#define PTHREAD_ONCE_INIT \\\n\
981 {{ \\\n",
982     (char*)NULL };
984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
986  *  Description of Aix_Once_Init_2 fix
987  */
988 tSCC zAix_Once_Init_2Name[] =
989      "aix_once_init_2";
992  *  File name selection pattern
993  */
994 tSCC zAix_Once_Init_2List[] =
995   "pthread.h\0";
997  *  Machine/OS name selection pattern
998  */
999 tSCC* apzAix_Once_Init_2Machs[] = {
1000         "*-*-aix*",
1001         (const char*)NULL };
1004  *  content selection pattern - do fix if pattern found
1005  */
1006 tSCC zAix_Once_Init_2Select0[] =
1007        "[ \t]0 \\\\\n\
1008 \\}\n";
1010 #define    AIX_ONCE_INIT_2_TEST_CT  1
1011 static tTestDesc aAix_Once_Init_2Tests[] = {
1012   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1015  *  Fix Command Arguments for Aix_Once_Init_2
1016  */
1017 static const char* apzAix_Once_Init_2Patch[] = {
1018     "format",
1019     "\t0 \\\n\
1020 }}\n",
1021     (char*)NULL };
1023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1025  *  Description of Aix_Mutex_Initializer_1 fix
1026  */
1027 tSCC zAix_Mutex_Initializer_1Name[] =
1028      "aix_mutex_initializer_1";
1031  *  File name selection pattern
1032  */
1033 tSCC zAix_Mutex_Initializer_1List[] =
1034   "pthread.h\0";
1036  *  Machine/OS name selection pattern
1037  */
1038 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1039         "*-*-aix*",
1040         (const char*)NULL };
1043  *  content selection pattern - do fix if pattern found
1044  */
1045 tSCC zAix_Mutex_Initializer_1Select0[] =
1046        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1047 \\{ \\\\\n";
1049 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
1050 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1051   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1054  *  Fix Command Arguments for Aix_Mutex_Initializer_1
1055  */
1056 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1057     "format",
1058     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1059 {{ \\\n",
1060     (char*)NULL };
1062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1064  *  Description of Aix_Cond_Initializer_1 fix
1065  */
1066 tSCC zAix_Cond_Initializer_1Name[] =
1067      "aix_cond_initializer_1";
1070  *  File name selection pattern
1071  */
1072 tSCC zAix_Cond_Initializer_1List[] =
1073   "pthread.h\0";
1075  *  Machine/OS name selection pattern
1076  */
1077 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1078         "*-*-aix*",
1079         (const char*)NULL };
1082  *  content selection pattern - do fix if pattern found
1083  */
1084 tSCC zAix_Cond_Initializer_1Select0[] =
1085        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1086 \\{ \\\\\n";
1088 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
1089 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1090   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1093  *  Fix Command Arguments for Aix_Cond_Initializer_1
1094  */
1095 static const char* apzAix_Cond_Initializer_1Patch[] = {
1096     "format",
1097     "#define PTHREAD_COND_INITIALIZER \\\n\
1098 {{ \\\n",
1099     (char*)NULL };
1101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1103  *  Description of Aix_Rwlock_Initializer_1 fix
1104  */
1105 tSCC zAix_Rwlock_Initializer_1Name[] =
1106      "aix_rwlock_initializer_1";
1109  *  File name selection pattern
1110  */
1111 tSCC zAix_Rwlock_Initializer_1List[] =
1112   "pthread.h\0";
1114  *  Machine/OS name selection pattern
1115  */
1116 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1117         "*-*-aix*",
1118         (const char*)NULL };
1121  *  content selection pattern - do fix if pattern found
1122  */
1123 tSCC zAix_Rwlock_Initializer_1Select0[] =
1124        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1125 \\{ \\\\\n";
1127 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1128 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1129   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1132  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1133  */
1134 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1135     "format",
1136     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1137 {{ \\\n",
1138     (char*)NULL };
1140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1142  *  Description of Aix_Pthread fix
1143  */
1144 tSCC zAix_PthreadName[] =
1145      "aix_pthread";
1148  *  File name selection pattern
1149  */
1150 tSCC zAix_PthreadList[] =
1151   "pthread.h\0";
1153  *  Machine/OS name selection pattern
1154  */
1155 #define apzAix_PthreadMachs (const char**)NULL
1158  *  content selection pattern - do fix if pattern found
1159  */
1160 tSCC zAix_PthreadSelect0[] =
1161        "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\
1162 [^A-Za-z_0-9 \t\n\
1163 (])";
1165 #define    AIX_PTHREAD_TEST_CT  1
1166 static tTestDesc aAix_PthreadTests[] = {
1167   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1170  *  Fix Command Arguments for Aix_Pthread
1171  */
1172 static const char* apzAix_PthreadPatch[] = {
1173     "format",
1174     "%1 %2",
1175     (char*)NULL };
1177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1179  *  Description of Aix_Stdint_1 fix
1180  */
1181 tSCC zAix_Stdint_1Name[] =
1182      "aix_stdint_1";
1185  *  File name selection pattern
1186  */
1187 tSCC zAix_Stdint_1List[] =
1188   "stdint-aix.h\0stdint.h\0";
1190  *  Machine/OS name selection pattern
1191  */
1192 tSCC* apzAix_Stdint_1Machs[] = {
1193         "*-*-aix*",
1194         (const char*)NULL };
1197  *  content selection pattern - do fix if pattern found
1198  */
1199 tSCC zAix_Stdint_1Select0[] =
1200        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1201 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1203 #define    AIX_STDINT_1_TEST_CT  1
1204 static tTestDesc aAix_Stdint_1Tests[] = {
1205   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1208  *  Fix Command Arguments for Aix_Stdint_1
1209  */
1210 static const char* apzAix_Stdint_1Patch[] = {
1211     "format",
1212     "#define UINT8_MAX\t(255)\n\
1213 #define UINT16_MAX\t(65535)",
1214     (char*)NULL };
1216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1218  *  Description of Aix_Stdint_2 fix
1219  */
1220 tSCC zAix_Stdint_2Name[] =
1221      "aix_stdint_2";
1224  *  File name selection pattern
1225  */
1226 tSCC zAix_Stdint_2List[] =
1227   "stdint-aix.h\0stdint.h\0";
1229  *  Machine/OS name selection pattern
1230  */
1231 tSCC* apzAix_Stdint_2Machs[] = {
1232         "*-*-aix*",
1233         (const char*)NULL };
1236  *  content selection pattern - do fix if pattern found
1237  */
1238 tSCC zAix_Stdint_2Select0[] =
1239        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1240 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1241 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1242 #else\n\
1243 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1244 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1245 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1247 #define    AIX_STDINT_2_TEST_CT  1
1248 static tTestDesc aAix_Stdint_2Tests[] = {
1249   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1252  *  Fix Command Arguments for Aix_Stdint_2
1253  */
1254 static const char* apzAix_Stdint_2Patch[] = {
1255     "format",
1256     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1257 #define INTPTR_MAX\t9223372036854775807L\n\
1258 #define UINTPTR_MAX\t18446744073709551615UL\n\
1259 #else\n\
1260 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1261 #define INTPTR_MAX\t2147483647L\n\
1262 #define UINTPTR_MAX\t4294967295UL",
1263     (char*)NULL };
1265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1267  *  Description of Aix_Stdint_3 fix
1268  */
1269 tSCC zAix_Stdint_3Name[] =
1270      "aix_stdint_3";
1273  *  File name selection pattern
1274  */
1275 tSCC zAix_Stdint_3List[] =
1276   "stdint-aix.h\0stdint.h\0";
1278  *  Machine/OS name selection pattern
1279  */
1280 tSCC* apzAix_Stdint_3Machs[] = {
1281         "*-*-aix*",
1282         (const char*)NULL };
1285  *  content selection pattern - do fix if pattern found
1286  */
1287 tSCC zAix_Stdint_3Select0[] =
1288        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1289 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1290 #else\n\
1291 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1292 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1294 #define    AIX_STDINT_3_TEST_CT  1
1295 static tTestDesc aAix_Stdint_3Tests[] = {
1296   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1299  *  Fix Command Arguments for Aix_Stdint_3
1300  */
1301 static const char* apzAix_Stdint_3Patch[] = {
1302     "format",
1303     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1304 #define PTRDIFF_MAX\t9223372036854775807L\n\
1305 #else\n\
1306 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1307 #define PTRDIFF_MAX\t2147483647L",
1308     (char*)NULL };
1310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1312  *  Description of Aix_Stdint_4 fix
1313  */
1314 tSCC zAix_Stdint_4Name[] =
1315      "aix_stdint_4";
1318  *  File name selection pattern
1319  */
1320 tSCC zAix_Stdint_4List[] =
1321   "stdint-aix.h\0stdint.h\0";
1323  *  Machine/OS name selection pattern
1324  */
1325 tSCC* apzAix_Stdint_4Machs[] = {
1326         "*-*-aix*",
1327         (const char*)NULL };
1330  *  content selection pattern - do fix if pattern found
1331  */
1332 tSCC zAix_Stdint_4Select0[] =
1333        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1334 #else\n\
1335 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1337 #define    AIX_STDINT_4_TEST_CT  1
1338 static tTestDesc aAix_Stdint_4Tests[] = {
1339   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1342  *  Fix Command Arguments for Aix_Stdint_4
1343  */
1344 static const char* apzAix_Stdint_4Patch[] = {
1345     "format",
1346     "#define SIZE_MAX\t18446744073709551615UL\n\
1347 #else\n\
1348 #define SIZE_MAX\t4294967295UL",
1349     (char*)NULL };
1351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1353  *  Description of Aix_Stdint_5 fix
1354  */
1355 tSCC zAix_Stdint_5Name[] =
1356      "aix_stdint_5";
1359  *  File name selection pattern
1360  */
1361 tSCC zAix_Stdint_5List[] =
1362   "stdint-aix.h\0stdint.h\0";
1364  *  Machine/OS name selection pattern
1365  */
1366 tSCC* apzAix_Stdint_5Machs[] = {
1367         "*-*-aix*",
1368         (const char*)NULL };
1371  *  content selection pattern - do fix if pattern found
1372  */
1373 tSCC zAix_Stdint_5Select0[] =
1374        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1375 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1377 #define    AIX_STDINT_5_TEST_CT  1
1378 static tTestDesc aAix_Stdint_5Tests[] = {
1379   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1382  *  Fix Command Arguments for Aix_Stdint_5
1383  */
1384 static const char* apzAix_Stdint_5Patch[] = {
1385     "format",
1386     "#define UINT8_C(c)\tc\n\
1387 #define UINT16_C(c)\tc",
1388     (char*)NULL };
1390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1392  *  Description of Aix_Stdio_Inline fix
1393  */
1394 tSCC zAix_Stdio_InlineName[] =
1395      "aix_stdio_inline";
1398  *  File name selection pattern
1399  */
1400 tSCC zAix_Stdio_InlineList[] =
1401   "stdio.h\0";
1403  *  Machine/OS name selection pattern
1404  */
1405 tSCC* apzAix_Stdio_InlineMachs[] = {
1406         "*-*-aix*",
1407         (const char*)NULL };
1410  *  content selection pattern - do fix if pattern found
1411  */
1412 tSCC zAix_Stdio_InlineSelect0[] =
1413        "#ifdef __cplusplus\\\n\
1414 }\\\n\
1415 \\\n\
1416 #ifdef ferror\\\n";
1418 #define    AIX_STDIO_INLINE_TEST_CT  1
1419 static tTestDesc aAix_Stdio_InlineTests[] = {
1420   { TT_EGREP,    zAix_Stdio_InlineSelect0, (regex_t*)NULL }, };
1423  *  Fix Command Arguments for Aix_Stdio_Inline
1424  */
1425 static const char* apzAix_Stdio_InlinePatch[] = {
1426     "format",
1427     "#ifdef __cplusplus\n\
1428 }\n\
1429 #endif\n\n\
1430 #if (defined(__cplusplus) && defined(__IBMCPP__))\n\
1431 #ifdef ferror\n",
1432     (char*)NULL };
1434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1436  *  Description of Aix_Stdlib_Malloc fix
1437  */
1438 tSCC zAix_Stdlib_MallocName[] =
1439      "aix_stdlib_malloc";
1442  *  File name selection pattern
1443  */
1444 tSCC zAix_Stdlib_MallocList[] =
1445   "stdlib.h\0";
1447  *  Machine/OS name selection pattern
1448  */
1449 tSCC* apzAix_Stdlib_MallocMachs[] = {
1450         "*-*-aix*",
1451         (const char*)NULL };
1454  *  content selection pattern - do fix if pattern found
1455  */
1456 tSCC zAix_Stdlib_MallocSelect0[] =
1457        "#define[ \t]+malloc[ \t]+__linux_malloc";
1459 #define    AIX_STDLIB_MALLOC_TEST_CT  1
1460 static tTestDesc aAix_Stdlib_MallocTests[] = {
1461   { TT_EGREP,    zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, };
1464  *  Fix Command Arguments for Aix_Stdlib_Malloc
1465  */
1466 static const char* apzAix_Stdlib_MallocPatch[] = {
1467     "format",
1468     "extern void *malloc(size_t) __asm__(\"__linux_malloc\");",
1469     (char*)NULL };
1471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1473  *  Description of Aix_Stdlib_Realloc fix
1474  */
1475 tSCC zAix_Stdlib_ReallocName[] =
1476      "aix_stdlib_realloc";
1479  *  File name selection pattern
1480  */
1481 tSCC zAix_Stdlib_ReallocList[] =
1482   "stdlib.h\0";
1484  *  Machine/OS name selection pattern
1485  */
1486 tSCC* apzAix_Stdlib_ReallocMachs[] = {
1487         "*-*-aix*",
1488         (const char*)NULL };
1491  *  content selection pattern - do fix if pattern found
1492  */
1493 tSCC zAix_Stdlib_ReallocSelect0[] =
1494        "#define[ \t]+realloc[ \t]+__linux_realloc";
1496 #define    AIX_STDLIB_REALLOC_TEST_CT  1
1497 static tTestDesc aAix_Stdlib_ReallocTests[] = {
1498   { TT_EGREP,    zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, };
1501  *  Fix Command Arguments for Aix_Stdlib_Realloc
1502  */
1503 static const char* apzAix_Stdlib_ReallocPatch[] = {
1504     "format",
1505     "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");",
1506     (char*)NULL };
1508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1510  *  Description of Aix_Stdlib_Calloc fix
1511  */
1512 tSCC zAix_Stdlib_CallocName[] =
1513      "aix_stdlib_calloc";
1516  *  File name selection pattern
1517  */
1518 tSCC zAix_Stdlib_CallocList[] =
1519   "stdlib.h\0";
1521  *  Machine/OS name selection pattern
1522  */
1523 tSCC* apzAix_Stdlib_CallocMachs[] = {
1524         "*-*-aix*",
1525         (const char*)NULL };
1528  *  content selection pattern - do fix if pattern found
1529  */
1530 tSCC zAix_Stdlib_CallocSelect0[] =
1531        "#define[ \t]+calloc[ \t]+__linux_calloc";
1533 #define    AIX_STDLIB_CALLOC_TEST_CT  1
1534 static tTestDesc aAix_Stdlib_CallocTests[] = {
1535   { TT_EGREP,    zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, };
1538  *  Fix Command Arguments for Aix_Stdlib_Calloc
1539  */
1540 static const char* apzAix_Stdlib_CallocPatch[] = {
1541     "format",
1542     "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");",
1543     (char*)NULL };
1545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1547  *  Description of Aix_Stdlib_Valloc fix
1548  */
1549 tSCC zAix_Stdlib_VallocName[] =
1550      "aix_stdlib_valloc";
1553  *  File name selection pattern
1554  */
1555 tSCC zAix_Stdlib_VallocList[] =
1556   "stdlib.h\0";
1558  *  Machine/OS name selection pattern
1559  */
1560 tSCC* apzAix_Stdlib_VallocMachs[] = {
1561         "*-*-aix*",
1562         (const char*)NULL };
1565  *  content selection pattern - do fix if pattern found
1566  */
1567 tSCC zAix_Stdlib_VallocSelect0[] =
1568        "#define[ \t]+valloc[ \t]+__linux_valloc";
1570 #define    AIX_STDLIB_VALLOC_TEST_CT  1
1571 static tTestDesc aAix_Stdlib_VallocTests[] = {
1572   { TT_EGREP,    zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, };
1575  *  Fix Command Arguments for Aix_Stdlib_Valloc
1576  */
1577 static const char* apzAix_Stdlib_VallocPatch[] = {
1578     "format",
1579     "extern void *valloc(size_t) __asm__(\"__linux_valloc\");",
1580     (char*)NULL };
1582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1584  *  Description of Aix_Strtof_Const fix
1585  */
1586 tSCC zAix_Strtof_ConstName[] =
1587      "aix_strtof_const";
1590  *  File name selection pattern
1591  */
1592 tSCC zAix_Strtof_ConstList[] =
1593   "stdlib.h\0";
1595  *  Machine/OS name selection pattern
1596  */
1597 tSCC* apzAix_Strtof_ConstMachs[] = {
1598         "*-*-aix*",
1599         (const char*)NULL };
1602  *  content selection pattern - do fix if pattern found
1603  */
1604 tSCC zAix_Strtof_ConstSelect0[] =
1605        "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1607 #define    AIX_STRTOF_CONST_TEST_CT  1
1608 static tTestDesc aAix_Strtof_ConstTests[] = {
1609   { TT_EGREP,    zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1612  *  Fix Command Arguments for Aix_Strtof_Const
1613  */
1614 static const char* apzAix_Strtof_ConstPatch[] = {
1615     "format",
1616     "%1(const char *, char **);",
1617     (char*)NULL };
1619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1621  *  Description of Aix_Sysmachine fix
1622  */
1623 tSCC zAix_SysmachineName[] =
1624      "aix_sysmachine";
1627  *  File name selection pattern
1628  */
1629 tSCC zAix_SysmachineList[] =
1630   "sys/machine.h\0";
1632  *  Machine/OS name selection pattern
1633  */
1634 tSCC* apzAix_SysmachineMachs[] = {
1635         "*-*-aix*",
1636         (const char*)NULL };
1639  *  content selection pattern - do fix if pattern found
1640  */
1641 tSCC zAix_SysmachineSelect0[] =
1642        "\\\\ +\n";
1644 #define    AIX_SYSMACHINE_TEST_CT  1
1645 static tTestDesc aAix_SysmachineTests[] = {
1646   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1649  *  Fix Command Arguments for Aix_Sysmachine
1650  */
1651 static const char* apzAix_SysmachinePatch[] = {
1652     "format",
1653     "\\\n",
1654     (char*)NULL };
1656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1658  *  Description of Aix_Syswait_2 fix
1659  */
1660 tSCC zAix_Syswait_2Name[] =
1661      "aix_syswait_2";
1664  *  File name selection pattern
1665  */
1666 tSCC zAix_Syswait_2List[] =
1667   "sys/wait.h\0";
1669  *  Machine/OS name selection pattern
1670  */
1671 tSCC* apzAix_Syswait_2Machs[] = {
1672         "*-*-aix*",
1673         (const char*)NULL };
1676  *  content selection pattern - do fix if pattern found
1677  */
1678 tSCC zAix_Syswait_2Select0[] =
1679        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1681 #define    AIX_SYSWAIT_2_TEST_CT  1
1682 static tTestDesc aAix_Syswait_2Tests[] = {
1683   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1686  *  Fix Command Arguments for Aix_Syswait_2
1687  */
1688 static const char* apzAix_Syswait_2Patch[] = {
1689     "format",
1690     "? (int)%1",
1691     (char*)NULL };
1693 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1695  *  Description of Aix_Volatile fix
1696  */
1697 tSCC zAix_VolatileName[] =
1698      "aix_volatile";
1701  *  File name selection pattern
1702  */
1703 tSCC zAix_VolatileList[] =
1704   "sys/signal.h\0";
1706  *  Machine/OS name selection pattern
1707  */
1708 tSCC* apzAix_VolatileMachs[] = {
1709         "*-*-aix*",
1710         (const char*)NULL };
1713  *  content selection pattern - do fix if pattern found
1714  */
1715 tSCC zAix_VolatileSelect0[] =
1716        "typedef volatile int sig_atomic_t";
1718 #define    AIX_VOLATILE_TEST_CT  1
1719 static tTestDesc aAix_VolatileTests[] = {
1720   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1723  *  Fix Command Arguments for Aix_Volatile
1724  */
1725 static const char* apzAix_VolatilePatch[] = {
1726     "format",
1727     "typedef int sig_atomic_t",
1728     (char*)NULL };
1730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1732  *  Description of Alpha___Assert fix
1733  */
1734 tSCC zAlpha___AssertName[] =
1735      "alpha___assert";
1738  *  File name selection pattern
1739  */
1740 tSCC zAlpha___AssertList[] =
1741   "assert.h\0";
1743  *  Machine/OS name selection pattern
1744  */
1745 #define apzAlpha___AssertMachs (const char**)NULL
1748  *  content selection pattern - do fix if pattern found
1749  */
1750 tSCC zAlpha___AssertSelect0[] =
1751        "__assert\\(char \\*, char \\*, int\\)";
1753 #define    ALPHA___ASSERT_TEST_CT  1
1754 static tTestDesc aAlpha___AssertTests[] = {
1755   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1758  *  Fix Command Arguments for Alpha___Assert
1759  */
1760 static const char* apzAlpha___AssertPatch[] = {
1761     "format",
1762     "__assert(const char *, const char *, int)",
1763     (char*)NULL };
1765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1767  *  Description of Alpha_Assert fix
1768  */
1769 tSCC zAlpha_AssertName[] =
1770      "alpha_assert";
1773  *  File name selection pattern
1774  */
1775 tSCC zAlpha_AssertList[] =
1776   "assert.h\0";
1778  *  Machine/OS name selection pattern
1779  */
1780 #define apzAlpha_AssertMachs (const char**)NULL
1783  *  content selection pattern - do fix if pattern found
1784  */
1785 tSCC zAlpha_AssertSelect0[] =
1786        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1788 #define    ALPHA_ASSERT_TEST_CT  1
1789 static tTestDesc aAlpha_AssertTests[] = {
1790   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1793  *  Fix Command Arguments for Alpha_Assert
1794  */
1795 static const char* apzAlpha_AssertPatch[] = {
1796     "format",
1797     "%1(EX)",
1798     (char*)NULL };
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1802  *  Description of Alpha_Getopt fix
1803  */
1804 tSCC zAlpha_GetoptName[] =
1805      "alpha_getopt";
1808  *  File name selection pattern
1809  */
1810 tSCC zAlpha_GetoptList[] =
1811   "stdio.h\0stdlib.h\0";
1813  *  Machine/OS name selection pattern
1814  */
1815 #define apzAlpha_GetoptMachs (const char**)NULL
1818  *  content selection pattern - do fix if pattern found
1819  */
1820 tSCC zAlpha_GetoptSelect0[] =
1821        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1823 #define    ALPHA_GETOPT_TEST_CT  1
1824 static tTestDesc aAlpha_GetoptTests[] = {
1825   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1828  *  Fix Command Arguments for Alpha_Getopt
1829  */
1830 static const char* apzAlpha_GetoptPatch[] = {
1831     "format",
1832     "getopt(int, char *const[], const char *)",
1833     (char*)NULL };
1835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1837  *  Description of Alpha_If_Semicolon fix
1838  */
1839 tSCC zAlpha_If_SemicolonName[] =
1840      "alpha_if_semicolon";
1843  *  File name selection pattern
1844  */
1845 tSCC zAlpha_If_SemicolonList[] =
1846   "net/if.h\0";
1848  *  Machine/OS name selection pattern
1849  */
1850 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1853  *  content selection pattern - do fix if pattern found
1854  */
1855 tSCC zAlpha_If_SemicolonSelect0[] =
1856        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1858 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1859 static tTestDesc aAlpha_If_SemicolonTests[] = {
1860   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1863  *  Fix Command Arguments for Alpha_If_Semicolon
1864  */
1865 static const char* apzAlpha_If_SemicolonPatch[] = {
1866     "format",
1867     "struct sockaddr vmif_paddr;\t/*",
1868     (char*)NULL };
1870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1872  *  Description of Alpha_Parens fix
1873  */
1874 tSCC zAlpha_ParensName[] =
1875      "alpha_parens";
1878  *  File name selection pattern
1879  */
1880 tSCC zAlpha_ParensList[] =
1881   "sym.h\0";
1883  *  Machine/OS name selection pattern
1884  */
1885 #define apzAlpha_ParensMachs (const char**)NULL
1888  *  content selection pattern - do fix if pattern found
1889  */
1890 tSCC zAlpha_ParensSelect0[] =
1891        "#ifndef\\(__mips64\\)";
1893 #define    ALPHA_PARENS_TEST_CT  1
1894 static tTestDesc aAlpha_ParensTests[] = {
1895   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1898  *  Fix Command Arguments for Alpha_Parens
1899  */
1900 static const char* apzAlpha_ParensPatch[] = {
1901     "format",
1902     "#ifndef __mips64",
1903     (char*)NULL };
1905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1907  *  Description of Alpha_Sbrk fix
1908  */
1909 tSCC zAlpha_SbrkName[] =
1910      "alpha_sbrk";
1913  *  File name selection pattern
1914  */
1915 tSCC zAlpha_SbrkList[] =
1916   "unistd.h\0";
1918  *  Machine/OS name selection pattern
1919  */
1920 #define apzAlpha_SbrkMachs (const char**)NULL
1923  *  content selection pattern - do fix if pattern found
1924  */
1925 tSCC zAlpha_SbrkSelect0[] =
1926        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1928 #define    ALPHA_SBRK_TEST_CT  1
1929 static tTestDesc aAlpha_SbrkTests[] = {
1930   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1933  *  Fix Command Arguments for Alpha_Sbrk
1934  */
1935 static const char* apzAlpha_SbrkPatch[] = {
1936     "format",
1937     "void *sbrk(",
1938     (char*)NULL };
1940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1942  *  Description of Avoid_Bool_Define fix
1943  */
1944 tSCC zAvoid_Bool_DefineName[] =
1945      "avoid_bool_define";
1948  *  File name selection pattern
1949  */
1950 tSCC zAvoid_Bool_DefineList[] =
1951   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1953  *  Machine/OS name selection pattern
1954  */
1955 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1958  *  content selection pattern - do fix if pattern found
1959  */
1960 tSCC zAvoid_Bool_DefineSelect0[] =
1961        "#[ \t]*define[ \t]+bool[ \t]";
1964  *  content bypass pattern - skip fix if pattern found
1965  */
1966 tSCC zAvoid_Bool_DefineBypass0[] =
1967        "__cplusplus";
1969 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1970 static tTestDesc aAvoid_Bool_DefineTests[] = {
1971   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1972   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1975  *  Fix Command Arguments for Avoid_Bool_Define
1976  */
1977 static const char* apzAvoid_Bool_DefinePatch[] = {
1978     "format",
1979     "#ifndef __cplusplus\n\
1980 %0\n\
1981 #endif",
1982     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1983     (char*)NULL };
1985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1987  *  Description of Avoid_Bool_Type fix
1988  */
1989 tSCC zAvoid_Bool_TypeName[] =
1990      "avoid_bool_type";
1993  *  File name selection pattern
1994  */
1995 tSCC zAvoid_Bool_TypeList[] =
1996   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1998  *  Machine/OS name selection pattern
1999  */
2000 #define apzAvoid_Bool_TypeMachs (const char**)NULL
2003  *  content selection pattern - do fix if pattern found
2004  */
2005 tSCC zAvoid_Bool_TypeSelect0[] =
2006        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
2009  *  content bypass pattern - skip fix if pattern found
2010  */
2011 tSCC zAvoid_Bool_TypeBypass0[] =
2012        "__cplusplus";
2014 #define    AVOID_BOOL_TYPE_TEST_CT  2
2015 static tTestDesc aAvoid_Bool_TypeTests[] = {
2016   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
2017   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
2020  *  Fix Command Arguments for Avoid_Bool_Type
2021  */
2022 static const char* apzAvoid_Bool_TypePatch[] = {
2023     "format",
2024     "#ifndef __cplusplus\n\
2025 %0\n\
2026 #endif",
2027     (char*)NULL };
2029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2031  *  Description of Avoid_Wchar_T_Type fix
2032  */
2033 tSCC zAvoid_Wchar_T_TypeName[] =
2034      "avoid_wchar_t_type";
2037  *  File name selection pattern
2038  */
2039 #define zAvoid_Wchar_T_TypeList (char*)NULL
2041  *  Machine/OS name selection pattern
2042  */
2043 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
2046  *  content selection pattern - do fix if pattern found
2047  */
2048 tSCC zAvoid_Wchar_T_TypeSelect0[] =
2049        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
2052  *  content bypass pattern - skip fix if pattern found
2053  */
2054 tSCC zAvoid_Wchar_T_TypeBypass0[] =
2055        "__cplusplus";
2056 tSCC zAvoid_Wchar_T_TypeBypass1[] =
2057        "_LINUX_NLS_H";
2058 tSCC zAvoid_Wchar_T_TypeBypass2[] =
2059        "XFree86: xc/lib/X11/Xlib\\.h";
2061 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
2062 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
2063   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
2064   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
2065   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
2066   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
2069  *  Fix Command Arguments for Avoid_Wchar_T_Type
2070  */
2071 static const char* apzAvoid_Wchar_T_TypePatch[] = {
2072     "format",
2073     "#ifndef __cplusplus\n\
2074 %0\n\
2075 #endif",
2076     (char*)NULL };
2078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2080  *  Description of Bad_Struct_Term fix
2081  */
2082 tSCC zBad_Struct_TermName[] =
2083      "bad_struct_term";
2086  *  File name selection pattern
2087  */
2088 tSCC zBad_Struct_TermList[] =
2089   "curses.h\0";
2091  *  Machine/OS name selection pattern
2092  */
2093 #define apzBad_Struct_TermMachs (const char**)NULL
2096  *  content selection pattern - do fix if pattern found
2097  */
2098 tSCC zBad_Struct_TermSelect0[] =
2099        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
2101 #define    BAD_STRUCT_TERM_TEST_CT  1
2102 static tTestDesc aBad_Struct_TermTests[] = {
2103   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
2106  *  Fix Command Arguments for Bad_Struct_Term
2107  */
2108 static const char* apzBad_Struct_TermPatch[] = {
2109     "format",
2110     "struct term;",
2111     (char*)NULL };
2113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2115  *  Description of Badquote fix
2116  */
2117 tSCC zBadquoteName[] =
2118      "badquote";
2121  *  File name selection pattern
2122  */
2123 tSCC zBadquoteList[] =
2124   "sundev/vuid_event.h\0";
2126  *  Machine/OS name selection pattern
2127  */
2128 #define apzBadquoteMachs (const char**)NULL
2131  *  content selection pattern - do fix if pattern found
2132  */
2133 tSCC zBadquoteSelect0[] =
2134        "doesn't";
2136 #define    BADQUOTE_TEST_CT  1
2137 static tTestDesc aBadquoteTests[] = {
2138   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
2141  *  Fix Command Arguments for Badquote
2142  */
2143 static const char* apzBadquotePatch[] = {
2144     "format",
2145     "does not",
2146     (char*)NULL };
2148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2150  *  Description of Broken_Assert_Stdio fix
2151  */
2152 tSCC zBroken_Assert_StdioName[] =
2153      "broken_assert_stdio";
2156  *  File name selection pattern
2157  */
2158 tSCC zBroken_Assert_StdioList[] =
2159   "assert.h\0";
2161  *  Machine/OS name selection pattern
2162  */
2163 #define apzBroken_Assert_StdioMachs (const char**)NULL
2166  *  content selection pattern - do fix if pattern found
2167  */
2168 tSCC zBroken_Assert_StdioSelect0[] =
2169        "stderr";
2172  *  content bypass pattern - skip fix if pattern found
2173  */
2174 tSCC zBroken_Assert_StdioBypass0[] =
2175        "include.*stdio\\.h";
2177 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
2178 static tTestDesc aBroken_Assert_StdioTests[] = {
2179   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
2180   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
2183  *  Fix Command Arguments for Broken_Assert_Stdio
2184  */
2185 static const char* apzBroken_Assert_StdioPatch[] = {
2186     "wrap",
2187     "#include <stdio.h>\n",
2188     (char*)NULL };
2190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2192  *  Description of Broken_Assert_Stdlib fix
2193  */
2194 tSCC zBroken_Assert_StdlibName[] =
2195      "broken_assert_stdlib";
2198  *  File name selection pattern
2199  */
2200 tSCC zBroken_Assert_StdlibList[] =
2201   "assert.h\0";
2203  *  Machine/OS name selection pattern
2204  */
2205 #define apzBroken_Assert_StdlibMachs (const char**)NULL
2208  *  content selection pattern - do fix if pattern found
2209  */
2210 tSCC zBroken_Assert_StdlibSelect0[] =
2211        "exit *\\(|abort *\\(";
2214  *  content bypass pattern - skip fix if pattern found
2215  */
2216 tSCC zBroken_Assert_StdlibBypass0[] =
2217        "include.*stdlib\\.h";
2219 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
2220 static tTestDesc aBroken_Assert_StdlibTests[] = {
2221   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2222   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
2225  *  Fix Command Arguments for Broken_Assert_Stdlib
2226  */
2227 static const char* apzBroken_Assert_StdlibPatch[] = {
2228     "wrap",
2229     "#ifdef __cplusplus\n\
2230 #include <stdlib.h>\n\
2231 #endif\n",
2232     (char*)NULL };
2234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2236  *  Description of Broken_Cabs fix
2237  */
2238 tSCC zBroken_CabsName[] =
2239      "broken_cabs";
2242  *  File name selection pattern
2243  */
2244 tSCC zBroken_CabsList[] =
2245   "math.h\0architecture/*/math.h\0";
2247  *  Machine/OS name selection pattern
2248  */
2249 #define apzBroken_CabsMachs (const char**)NULL
2252  *  content selection pattern - do fix if pattern found
2253  */
2254 tSCC zBroken_CabsSelect0[] =
2255        "^extern[ \t]+double[ \t]+cabs";
2257 #define    BROKEN_CABS_TEST_CT  1
2258 static tTestDesc aBroken_CabsTests[] = {
2259   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2262  *  Fix Command Arguments for Broken_Cabs
2263  */
2264 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2265     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2266     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2267     (char*)NULL };
2269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2271  *  Description of Broken_Nan fix
2272  */
2273 tSCC zBroken_NanName[] =
2274      "broken_nan";
2277  *  File name selection pattern
2278  */
2279 tSCC zBroken_NanList[] =
2280   "architecture/ppc/math.h\0architecture/*/math.h\0";
2282  *  Machine/OS name selection pattern
2283  */
2284 #define apzBroken_NanMachs (const char**)NULL
2287  *  content selection pattern - do fix if pattern found
2288  */
2289 tSCC zBroken_NanSelect0[] =
2290        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2293  *  content bypass pattern - skip fix if pattern found
2294  */
2295 tSCC zBroken_NanBypass0[] =
2296        "powl";
2298 #define    BROKEN_NAN_TEST_CT  2
2299 static tTestDesc aBroken_NanTests[] = {
2300   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2301   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2304  *  Fix Command Arguments for Broken_Nan
2305  */
2306 static const char* apzBroken_NanPatch[] = {
2307     "format",
2308     "#if 1",
2309     (char*)NULL };
2311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2313  *  Description of Bsd_Stdio_Attrs_Conflict fix
2314  */
2315 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2316      "bsd_stdio_attrs_conflict";
2319  *  File name selection pattern
2320  */
2321 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2322   "stdio.h\0";
2324  *  Machine/OS name selection pattern
2325  */
2326 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2327         "*-*-*bsd*",
2328         "*-*-*darwin*",
2329         (const char*)NULL };
2332  *  content selection pattern - do fix if pattern found
2333  */
2334 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2335        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2337 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2338 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2339   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2342  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2343  */
2344 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2345     "format",
2346     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2347 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2348 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2349     (char*)NULL };
2351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2353  *  Description of Ctrl_Quotes_Def fix
2354  */
2355 tSCC zCtrl_Quotes_DefName[] =
2356      "ctrl_quotes_def";
2359  *  File name selection pattern
2360  */
2361 #define zCtrl_Quotes_DefList (char*)NULL
2363  *  Machine/OS name selection pattern
2364  */
2365 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2368  *  content selection pattern - do fix if pattern found
2369  */
2370 tSCC zCtrl_Quotes_DefSelect0[] =
2371        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2373 #define    CTRL_QUOTES_DEF_TEST_CT  1
2374 static tTestDesc aCtrl_Quotes_DefTests[] = {
2375   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2378  *  Fix Command Arguments for Ctrl_Quotes_Def
2379  */
2380 static const char* apzCtrl_Quotes_DefPatch[] = {
2381     "char_macro_def",
2382     "CTRL",
2383     (char*)NULL };
2385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2387  *  Description of Ctrl_Quotes_Use fix
2388  */
2389 tSCC zCtrl_Quotes_UseName[] =
2390      "ctrl_quotes_use";
2393  *  File name selection pattern
2394  */
2395 #define zCtrl_Quotes_UseList (char*)NULL
2397  *  Machine/OS name selection pattern
2398  */
2399 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2402  *  content selection pattern - do fix if pattern found
2403  */
2404 tSCC zCtrl_Quotes_UseSelect0[] =
2405        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2407 #define    CTRL_QUOTES_USE_TEST_CT  1
2408 static tTestDesc aCtrl_Quotes_UseTests[] = {
2409   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2412  *  Fix Command Arguments for Ctrl_Quotes_Use
2413  */
2414 static const char* apzCtrl_Quotes_UsePatch[] = {
2415     "char_macro_use",
2416     "CTRL",
2417     (char*)NULL };
2419 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2421  *  Description of Cxx_Unready fix
2422  */
2423 tSCC zCxx_UnreadyName[] =
2424      "cxx_unready";
2427  *  File name selection pattern
2428  */
2429 tSCC zCxx_UnreadyList[] =
2430   "sys/mman.h\0rpc/types.h\0";
2432  *  Machine/OS name selection pattern
2433  */
2434 #define apzCxx_UnreadyMachs (const char**)NULL
2437  *  content selection pattern - do fix if pattern found
2438  */
2439 tSCC zCxx_UnreadySelect0[] =
2440        "[^#]+malloc.*;";
2443  *  content bypass pattern - skip fix if pattern found
2444  */
2445 tSCC zCxx_UnreadyBypass0[] =
2446        "\"C\"|__BEGIN_DECLS";
2448 #define    CXX_UNREADY_TEST_CT  2
2449 static tTestDesc aCxx_UnreadyTests[] = {
2450   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2451   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2454  *  Fix Command Arguments for Cxx_Unready
2455  */
2456 static const char* apzCxx_UnreadyPatch[] = {
2457     "wrap",
2458     "#ifdef __cplusplus\n\
2459 extern \"C\" {\n\
2460 #endif\n",
2461     "#ifdef __cplusplus\n\
2462 }\n\
2463 #endif\n",
2464     (char*)NULL };
2466 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2468  *  Description of Darwin_Availabilityinternal fix
2469  */
2470 tSCC zDarwin_AvailabilityinternalName[] =
2471      "darwin_availabilityinternal";
2474  *  File name selection pattern
2475  */
2476 tSCC zDarwin_AvailabilityinternalList[] =
2477   "AvailabilityInternal.h\0";
2479  *  Machine/OS name selection pattern
2480  */
2481 tSCC* apzDarwin_AvailabilityinternalMachs[] = {
2482         "*-*-darwin*",
2483         (const char*)NULL };
2486  *  content selection pattern - do fix if pattern found
2487  */
2488 tSCC zDarwin_AvailabilityinternalSelect0[] =
2489        "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*";
2491 #define    DARWIN_AVAILABILITYINTERNAL_TEST_CT  1
2492 static tTestDesc aDarwin_AvailabilityinternalTests[] = {
2493   { TT_EGREP,    zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, };
2496  *  Fix Command Arguments for Darwin_Availabilityinternal
2497  */
2498 static const char* apzDarwin_AvailabilityinternalPatch[] = {
2499     "format",
2500     "#if defined(__has_attribute)\n\
2501   #if __has_attribute(availability)\n\
2502 %0\n\
2503   #else\n\
2504     #define %1\n\
2505   #endif\n\
2506 #else\n\
2507     #define %1\n\
2508 #endif",
2509     (char*)NULL };
2511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2513  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2514  */
2515 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2516      "darwin_9_long_double_funcs_2";
2519  *  File name selection pattern
2520  */
2521 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2522   "math.h\0";
2524  *  Machine/OS name selection pattern
2525  */
2526 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2527         "*-*-darwin7.9*",
2528         (const char*)NULL };
2531  *  content selection pattern - do fix if pattern found
2532  */
2533 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2534        "#include[ \\t]+\\\"";
2536 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2537 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2538   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2541  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2542  */
2543 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2544     "format",
2545     "%1<%2.h>",
2546     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2547     (char*)NULL };
2549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2551  *  Description of Darwin_Externc fix
2552  */
2553 tSCC zDarwin_ExterncName[] =
2554      "darwin_externc";
2557  *  File name selection pattern
2558  */
2559 tSCC zDarwin_ExterncList[] =
2560   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2562  *  Machine/OS name selection pattern
2563  */
2564 tSCC* apzDarwin_ExterncMachs[] = {
2565         "*-*-darwin*",
2566         (const char*)NULL };
2569  *  content bypass pattern - skip fix if pattern found
2570  */
2571 tSCC zDarwin_ExterncBypass0[] =
2572        "extern \"C\"";
2573 tSCC zDarwin_ExterncBypass1[] =
2574        "__BEGIN_DECLS";
2576 #define    DARWIN_EXTERNC_TEST_CT  2
2577 static tTestDesc aDarwin_ExterncTests[] = {
2578   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2579   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2582  *  Fix Command Arguments for Darwin_Externc
2583  */
2584 static const char* apzDarwin_ExterncPatch[] = {
2585     "wrap",
2586     "#ifdef __cplusplus\n\
2587 extern \"C\" {\n\
2588 #endif\n",
2589     "#ifdef __cplusplus\n\
2590 }\n\
2591 #endif\n",
2592     (char*)NULL };
2594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2596  *  Description of Darwin_Gcc4_Breakage fix
2597  */
2598 tSCC zDarwin_Gcc4_BreakageName[] =
2599      "darwin_gcc4_breakage";
2602  *  File name selection pattern
2603  */
2604 tSCC zDarwin_Gcc4_BreakageList[] =
2605   "AvailabilityMacros.h\0";
2607  *  Machine/OS name selection pattern
2608  */
2609 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2610         "*-*-darwin*",
2611         (const char*)NULL };
2614  *  content selection pattern - do fix if pattern found
2615  */
2616 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2617        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2619 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2620 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2621   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2624  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2625  */
2626 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2627     "format",
2628     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2629     (char*)NULL };
2631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2633  *  Description of Darwin_Longjmp_Noreturn fix
2634  */
2635 tSCC zDarwin_Longjmp_NoreturnName[] =
2636      "darwin_longjmp_noreturn";
2639  *  File name selection pattern
2640  */
2641 tSCC zDarwin_Longjmp_NoreturnList[] =
2642   "i386/setjmp.h\0";
2644  *  Machine/OS name selection pattern
2645  */
2646 tSCC* apzDarwin_Longjmp_NoreturnMachs[] = {
2647         "*-*-darwin*",
2648         (const char*)NULL };
2651  *  content selection pattern - do fix if pattern found
2652  */
2653 tSCC zDarwin_Longjmp_NoreturnSelect0[] =
2654        "(.*longjmp\\(.*jmp_buf.*[^)]+\\));";
2657  *  content bypass pattern - skip fix if pattern found
2658  */
2659 tSCC zDarwin_Longjmp_NoreturnBypass0[] =
2660        "__dead2";
2662 #define    DARWIN_LONGJMP_NORETURN_TEST_CT  2
2663 static tTestDesc aDarwin_Longjmp_NoreturnTests[] = {
2664   { TT_NEGREP,   zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL },
2665   { TT_EGREP,    zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
2668  *  Fix Command Arguments for Darwin_Longjmp_Noreturn
2669  */
2670 static const char* apzDarwin_Longjmp_NoreturnPatch[] = {
2671     "format",
2672     "%1 __attribute__ ((__noreturn__));",
2673     (char*)NULL };
2675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2677  *  Description of Darwin_Os_Trace_1 fix
2678  */
2679 tSCC zDarwin_Os_Trace_1Name[] =
2680      "darwin_os_trace_1";
2683  *  File name selection pattern
2684  */
2685 tSCC zDarwin_Os_Trace_1List[] =
2686   "os/trace.h\0";
2688  *  Machine/OS name selection pattern
2689  */
2690 tSCC* apzDarwin_Os_Trace_1Machs[] = {
2691         "*-*-darwin*",
2692         (const char*)NULL };
2695  *  content selection pattern - do fix if pattern found
2696  */
2697 tSCC zDarwin_Os_Trace_1Select0[] =
2698        "^(_os_trace_verify_printf.*) (__attribute__.*)";
2700 #define    DARWIN_OS_TRACE_1_TEST_CT  1
2701 static tTestDesc aDarwin_Os_Trace_1Tests[] = {
2702   { TT_EGREP,    zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, };
2705  *  Fix Command Arguments for Darwin_Os_Trace_1
2706  */
2707 static const char* apzDarwin_Os_Trace_1Patch[] = {
2708     "format",
2709     "%1",
2710     (char*)NULL };
2712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2714  *  Description of Darwin_Os_Trace_2 fix
2715  */
2716 tSCC zDarwin_Os_Trace_2Name[] =
2717      "darwin_os_trace_2";
2720  *  File name selection pattern
2721  */
2722 tSCC zDarwin_Os_Trace_2List[] =
2723   "os/trace.h\0";
2725  *  Machine/OS name selection pattern
2726  */
2727 tSCC* apzDarwin_Os_Trace_2Machs[] = {
2728         "*-*-darwin*",
2729         (const char*)NULL };
2732  *  content selection pattern - do fix if pattern found
2733  */
2734 tSCC zDarwin_Os_Trace_2Select0[] =
2735        "typedef.*\\^os_trace_payload_t.*";
2737 #define    DARWIN_OS_TRACE_2_TEST_CT  1
2738 static tTestDesc aDarwin_Os_Trace_2Tests[] = {
2739   { TT_EGREP,    zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, };
2742  *  Fix Command Arguments for Darwin_Os_Trace_2
2743  */
2744 static const char* apzDarwin_Os_Trace_2Patch[] = {
2745     "format",
2746     "#if __BLOCKS__\n\
2747 %0\n\
2748 #endif",
2749     (char*)NULL };
2751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2753  *  Description of Darwin_Os_Trace_3 fix
2754  */
2755 tSCC zDarwin_Os_Trace_3Name[] =
2756      "darwin_os_trace_3";
2759  *  File name selection pattern
2760  */
2761 tSCC zDarwin_Os_Trace_3List[] =
2762   "os/trace.h\0";
2764  *  Machine/OS name selection pattern
2765  */
2766 tSCC* apzDarwin_Os_Trace_3Machs[] = {
2767         "*-*-darwin*",
2768         (const char*)NULL };
2771  *  content selection pattern - do fix if pattern found
2772  */
2773 tSCC zDarwin_Os_Trace_3Select0[] =
2774        "__(API|OSX)_.*\n\
2775 OS_EXPORT.*\n\
2776 .*\n\
2777 _os_trace.*os_trace_payload_t payload);";
2779 #define    DARWIN_OS_TRACE_3_TEST_CT  1
2780 static tTestDesc aDarwin_Os_Trace_3Tests[] = {
2781   { TT_EGREP,    zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, };
2784  *  Fix Command Arguments for Darwin_Os_Trace_3
2785  */
2786 static const char* apzDarwin_Os_Trace_3Patch[] = {
2787     "format",
2788     "#if __BLOCKS__\n\
2789 %0\n\
2790 #endif",
2791     (char*)NULL };
2793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2795  *  Description of Darwin_Private_Extern fix
2796  */
2797 tSCC zDarwin_Private_ExternName[] =
2798      "darwin_private_extern";
2801  *  File name selection pattern
2802  */
2803 tSCC zDarwin_Private_ExternList[] =
2804   "mach-o/dyld.h\0";
2806  *  Machine/OS name selection pattern
2807  */
2808 tSCC* apzDarwin_Private_ExternMachs[] = {
2809         "*-*-darwin*",
2810         (const char*)NULL };
2813  *  content selection pattern - do fix if pattern found
2814  */
2815 tSCC zDarwin_Private_ExternSelect0[] =
2816        "__private_extern__ [a-z_]+ _dyld_";
2818 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2819 static tTestDesc aDarwin_Private_ExternTests[] = {
2820   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2823  *  Fix Command Arguments for Darwin_Private_Extern
2824  */
2825 static const char* apzDarwin_Private_ExternPatch[] = {
2826     "format",
2827     "extern",
2828     "__private_extern__",
2829     (char*)NULL };
2831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2833  *  Description of Darwin_Stdint_1 fix
2834  */
2835 tSCC zDarwin_Stdint_1Name[] =
2836      "darwin_stdint_1";
2839  *  File name selection pattern
2840  */
2841 tSCC zDarwin_Stdint_1List[] =
2842   "stdint-darwin.h\0stdint.h\0";
2844  *  Machine/OS name selection pattern
2845  */
2846 tSCC* apzDarwin_Stdint_1Machs[] = {
2847         "*-*-darwin*",
2848         (const char*)NULL };
2851  *  content selection pattern - do fix if pattern found
2852  */
2853 tSCC zDarwin_Stdint_1Select0[] =
2854        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2855 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2857 #define    DARWIN_STDINT_1_TEST_CT  1
2858 static tTestDesc aDarwin_Stdint_1Tests[] = {
2859   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2862  *  Fix Command Arguments for Darwin_Stdint_1
2863  */
2864 static const char* apzDarwin_Stdint_1Patch[] = {
2865     "format",
2866     "#define UINT8_C(v)\tv\n\
2867 #define UINT16_C(v)\tv",
2868     (char*)NULL };
2870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2872  *  Description of Darwin_Stdint_2 fix
2873  */
2874 tSCC zDarwin_Stdint_2Name[] =
2875      "darwin_stdint_2";
2878  *  File name selection pattern
2879  */
2880 tSCC zDarwin_Stdint_2List[] =
2881   "stdint-darwin.h\0stdint.h\0";
2883  *  Machine/OS name selection pattern
2884  */
2885 tSCC* apzDarwin_Stdint_2Machs[] = {
2886         "*-*-darwin*",
2887         (const char*)NULL };
2890  *  content selection pattern - do fix if pattern found
2891  */
2892 tSCC zDarwin_Stdint_2Select0[] =
2893        "#if __WORDSIZE == 64\n\
2894 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2895 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2896 #else\n\
2897 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2898 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2899 #endif";
2901 #define    DARWIN_STDINT_2_TEST_CT  1
2902 static tTestDesc aDarwin_Stdint_2Tests[] = {
2903   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2906  *  Fix Command Arguments for Darwin_Stdint_2
2907  */
2908 static const char* apzDarwin_Stdint_2Patch[] = {
2909     "format",
2910     "#if __WORDSIZE == 64\n\
2911 #define INTPTR_MAX 9223372036854775807L\n\
2912 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2913 #else\n\
2914 #define INTPTR_MAX 2147483647L\n\
2915 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2916 #endif",
2917     (char*)NULL };
2919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2921  *  Description of Darwin_Stdint_3 fix
2922  */
2923 tSCC zDarwin_Stdint_3Name[] =
2924      "darwin_stdint_3";
2927  *  File name selection pattern
2928  */
2929 tSCC zDarwin_Stdint_3List[] =
2930   "stdint-darwin.h\0stdint.h\0";
2932  *  Machine/OS name selection pattern
2933  */
2934 tSCC* apzDarwin_Stdint_3Machs[] = {
2935         "*-*-darwin*",
2936         (const char*)NULL };
2939  *  content selection pattern - do fix if pattern found
2940  */
2941 tSCC zDarwin_Stdint_3Select0[] =
2942        "#if __WORDSIZE == 64\n\
2943 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2944 #else\n\
2945 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2946 #endif";
2948 #define    DARWIN_STDINT_3_TEST_CT  1
2949 static tTestDesc aDarwin_Stdint_3Tests[] = {
2950   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2953  *  Fix Command Arguments for Darwin_Stdint_3
2954  */
2955 static const char* apzDarwin_Stdint_3Patch[] = {
2956     "format",
2957     "#if __WORDSIZE == 64\n\
2958 #define UINTPTR_MAX 18446744073709551615UL\n\
2959 #else\n\
2960 #define UINTPTR_MAX 4294967295UL\n\
2961 #endif",
2962     (char*)NULL };
2964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2966  *  Description of Darwin_Stdint_4 fix
2967  */
2968 tSCC zDarwin_Stdint_4Name[] =
2969      "darwin_stdint_4";
2972  *  File name selection pattern
2973  */
2974 tSCC zDarwin_Stdint_4List[] =
2975   "stdint-darwin.h\0stdint.h\0";
2977  *  Machine/OS name selection pattern
2978  */
2979 tSCC* apzDarwin_Stdint_4Machs[] = {
2980         "*-*-darwin*",
2981         (const char*)NULL };
2984  *  content selection pattern - do fix if pattern found
2985  */
2986 tSCC zDarwin_Stdint_4Select0[] =
2987        "#if __WORDSIZE == 64\n\
2988 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2989 #else\n\
2990 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2991 #endif";
2993 #define    DARWIN_STDINT_4_TEST_CT  1
2994 static tTestDesc aDarwin_Stdint_4Tests[] = {
2995   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2998  *  Fix Command Arguments for Darwin_Stdint_4
2999  */
3000 static const char* apzDarwin_Stdint_4Patch[] = {
3001     "format",
3002     "#if __WORDSIZE == 64\n\
3003 #define SIZE_MAX 18446744073709551615UL\n\
3004 #else\n\
3005 #define SIZE_MAX 4294967295UL\n\
3006 #endif",
3007     (char*)NULL };
3009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3011  *  Description of Darwin_Stdint_5 fix
3012  */
3013 tSCC zDarwin_Stdint_5Name[] =
3014      "darwin_stdint_5";
3017  *  File name selection pattern
3018  */
3019 tSCC zDarwin_Stdint_5List[] =
3020   "stdint-darwin.h\0stdint.h\0";
3022  *  Machine/OS name selection pattern
3023  */
3024 tSCC* apzDarwin_Stdint_5Machs[] = {
3025         "*-*-darwin*",
3026         (const char*)NULL };
3029  *  content selection pattern - do fix if pattern found
3030  */
3031 tSCC zDarwin_Stdint_5Select0[] =
3032        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
3033 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
3034 #define UINTMAX_MAX[ \t]+UINT64_MAX";
3036 #define    DARWIN_STDINT_5_TEST_CT  1
3037 static tTestDesc aDarwin_Stdint_5Tests[] = {
3038   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
3041  *  Fix Command Arguments for Darwin_Stdint_5
3042  */
3043 static const char* apzDarwin_Stdint_5Patch[] = {
3044     "format",
3045     "#if __WORDSIZE == 64\n\
3046 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
3047 #define INTMAX_MAX   9223372036854775807L\n\
3048 #define UINTMAX_MAX  18446744073709551615UL\n\
3049 #else\n\
3050 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
3051 #define INTMAX_MAX   9223372036854775807LL\n\
3052 #define UINTMAX_MAX  18446744073709551615ULL\n\
3053 #endif",
3054     (char*)NULL };
3056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3058  *  Description of Darwin_Stdint_6 fix
3059  */
3060 tSCC zDarwin_Stdint_6Name[] =
3061      "darwin_stdint_6";
3064  *  File name selection pattern
3065  */
3066 tSCC zDarwin_Stdint_6List[] =
3067   "stdint-darwin.h\0stdint.h\0";
3069  *  Machine/OS name selection pattern
3070  */
3071 tSCC* apzDarwin_Stdint_6Machs[] = {
3072         "*-*-darwin*",
3073         (const char*)NULL };
3076  *  content selection pattern - do fix if pattern found
3077  */
3078 tSCC zDarwin_Stdint_6Select0[] =
3079        "#if __WORDSIZE == 64\n\
3080 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
3081 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
3082 #else\n\
3083 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
3084 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
3085 #endif";
3087 #define    DARWIN_STDINT_6_TEST_CT  1
3088 static tTestDesc aDarwin_Stdint_6Tests[] = {
3089   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
3092  *  Fix Command Arguments for Darwin_Stdint_6
3093  */
3094 static const char* apzDarwin_Stdint_6Patch[] = {
3095     "format",
3096     "#if __WORDSIZE == 64\n\
3097 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
3098 #define PTRDIFF_MAX 9223372036854775807L\n\
3099 #else\n\
3100 #define PTRDIFF_MIN (-2147483647 - 1)\n\
3101 #define PTRDIFF_MAX 2147483647\n\
3102 #endif",
3103     (char*)NULL };
3105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3107  *  Description of Darwin_Stdint_7 fix
3108  */
3109 tSCC zDarwin_Stdint_7Name[] =
3110      "darwin_stdint_7";
3113  *  File name selection pattern
3114  */
3115 tSCC zDarwin_Stdint_7List[] =
3116   "stdint-darwin.h\0stdint.h\0";
3118  *  Machine/OS name selection pattern
3119  */
3120 tSCC* apzDarwin_Stdint_7Machs[] = {
3121         "*-*-darwin*",
3122         (const char*)NULL };
3125  *  content selection pattern - do fix if pattern found
3126  */
3127 tSCC zDarwin_Stdint_7Select0[] =
3128        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
3129 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
3131 #define    DARWIN_STDINT_7_TEST_CT  1
3132 static tTestDesc aDarwin_Stdint_7Tests[] = {
3133   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
3136  *  Fix Command Arguments for Darwin_Stdint_7
3137  */
3138 static const char* apzDarwin_Stdint_7Patch[] = {
3139     "format",
3140     "#if __WORDSIZE == 64\n\
3141 #define INTMAX_C(v)  (v ## L)\n\
3142 #define UINTMAX_C(v) (v ## UL)\n\
3143 #else\n\
3144 #define INTMAX_C(v)  (v ## LL)\n\
3145 #define UINTMAX_C(v) (v ## ULL)\n\
3146 #endif",
3147     (char*)NULL };
3149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3151  *  Description of Dec_Intern_Asm fix
3152  */
3153 tSCC zDec_Intern_AsmName[] =
3154      "dec_intern_asm";
3157  *  File name selection pattern
3158  */
3159 tSCC zDec_Intern_AsmList[] =
3160   "c_asm.h\0";
3162  *  Machine/OS name selection pattern
3163  */
3164 #define apzDec_Intern_AsmMachs (const char**)NULL
3165 #define DEC_INTERN_ASM_TEST_CT  0
3166 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
3169  *  Fix Command Arguments for Dec_Intern_Asm
3170  */
3171 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
3172     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
3173 #ifdef __DECC\n",
3174     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
3175 #endif\n",
3176     (char*)NULL };
3178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3180  *  Description of Djgpp_Wchar_H fix
3181  */
3182 tSCC zDjgpp_Wchar_HName[] =
3183      "djgpp_wchar_h";
3186  *  File name selection pattern
3187  */
3188 #define zDjgpp_Wchar_HList (char*)NULL
3190  *  Machine/OS name selection pattern
3191  */
3192 #define apzDjgpp_Wchar_HMachs (const char**)NULL
3195  *  content selection pattern - do fix if pattern found
3196  */
3197 tSCC zDjgpp_Wchar_HSelect0[] =
3198        "__DJ_wint_t";
3201  *  content bypass pattern - skip fix if pattern found
3202  */
3203 tSCC zDjgpp_Wchar_HBypass0[] =
3204        "sys/djtypes.h";
3206 #define    DJGPP_WCHAR_H_TEST_CT  2
3207 static tTestDesc aDjgpp_Wchar_HTests[] = {
3208   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
3209   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
3212  *  Fix Command Arguments for Djgpp_Wchar_H
3213  */
3214 static const char* apzDjgpp_Wchar_HPatch[] = {
3215     "format",
3216     "%0\n\
3217 #include <sys/djtypes.h>",
3218     "#include <stddef.h>",
3219     (char*)NULL };
3221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3223  *  Description of Ecd_Cursor fix
3224  */
3225 tSCC zEcd_CursorName[] =
3226      "ecd_cursor";
3229  *  File name selection pattern
3230  */
3231 tSCC zEcd_CursorList[] =
3232   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
3234  *  Machine/OS name selection pattern
3235  */
3236 #define apzEcd_CursorMachs (const char**)NULL
3239  *  content selection pattern - do fix if pattern found
3240  */
3241 tSCC zEcd_CursorSelect0[] =
3242        "ecd\\.cursor";
3244 #define    ECD_CURSOR_TEST_CT  1
3245 static tTestDesc aEcd_CursorTests[] = {
3246   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
3249  *  Fix Command Arguments for Ecd_Cursor
3250  */
3251 static const char* apzEcd_CursorPatch[] = {
3252     "format",
3253     "ecd_cursor",
3254     (char*)NULL };
3256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3258  *  Description of Feraiseexcept_Nosse_Divbyzero fix
3259  */
3260 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
3261      "feraiseexcept_nosse_divbyzero";
3264  *  File name selection pattern
3265  */
3266 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
3267   "bits/fenv.h\0*/bits/fenv.h\0";
3269  *  Machine/OS name selection pattern
3270  */
3271 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
3272         "i[34567]86-*-linux*",
3273         "x86*-linux*",
3274         "amd64-*-linux*",
3275         (const char*)NULL };
3278  *  content selection pattern - do fix if pattern found
3279  */
3280 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
3281        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
3284  *  content bypass pattern - skip fix if pattern found
3285  */
3286 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
3287        "\"fdivp .*; fwait\"";
3289 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
3290 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
3291   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
3292   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
3295  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
3296  */
3297 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
3298     "format",
3299     "# ifdef __SSE_MATH__\n\
3300 %0\n\
3301 # else\n\
3302 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
3303 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
3304 # endif",
3305     (char*)NULL };
3307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3309  *  Description of Feraiseexcept_Nosse_Invalid fix
3310  */
3311 tSCC zFeraiseexcept_Nosse_InvalidName[] =
3312      "feraiseexcept_nosse_invalid";
3315  *  File name selection pattern
3316  */
3317 tSCC zFeraiseexcept_Nosse_InvalidList[] =
3318   "bits/fenv.h\0*/bits/fenv.h\0";
3320  *  Machine/OS name selection pattern
3321  */
3322 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
3323         "i[34567]86-*-linux*",
3324         "x86*-linux*",
3325         "amd64-*-linux*",
3326         (const char*)NULL };
3329  *  content selection pattern - do fix if pattern found
3330  */
3331 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
3332        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
3335  *  content bypass pattern - skip fix if pattern found
3336  */
3337 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
3338        "\"fdiv .*; fwait\"";
3340 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
3341 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
3342   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
3343   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
3346  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
3347  */
3348 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
3349     "format",
3350     "# ifdef __SSE_MATH__\n\
3351 %0\n\
3352 # else\n\
3353 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
3354 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
3355 # endif",
3356     (char*)NULL };
3358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3360  *  Description of Freebsd_Gcc3_Breakage fix
3361  */
3362 tSCC zFreebsd_Gcc3_BreakageName[] =
3363      "freebsd_gcc3_breakage";
3366  *  File name selection pattern
3367  */
3368 tSCC zFreebsd_Gcc3_BreakageList[] =
3369   "sys/cdefs.h\0";
3371  *  Machine/OS name selection pattern
3372  */
3373 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
3374         "*-*-freebsd*",
3375         (const char*)NULL };
3378  *  content selection pattern - do fix if pattern found
3379  */
3380 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
3381        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
3384  *  content bypass pattern - skip fix if pattern found
3385  */
3386 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
3387        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
3389 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
3390 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
3391   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
3392   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
3395  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
3396  */
3397 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
3398     "format",
3399     "%0 || __GNUC__ >= 3",
3400     (char*)NULL };
3402 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3404  *  Description of Freebsd_Gcc4_Breakage fix
3405  */
3406 tSCC zFreebsd_Gcc4_BreakageName[] =
3407      "freebsd_gcc4_breakage";
3410  *  File name selection pattern
3411  */
3412 tSCC zFreebsd_Gcc4_BreakageList[] =
3413   "sys/cdefs.h\0";
3415  *  Machine/OS name selection pattern
3416  */
3417 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3418         "*-*-freebsd*",
3419         (const char*)NULL };
3422  *  content selection pattern - do fix if pattern found
3423  */
3424 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3425        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3427 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
3428 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3429   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3432  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
3433  */
3434 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3435     "format",
3436     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3437     (char*)NULL };
3439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3441  *  Description of Glibc_C99_Inline_1 fix
3442  */
3443 tSCC zGlibc_C99_Inline_1Name[] =
3444      "glibc_c99_inline_1";
3447  *  File name selection pattern
3448  */
3449 tSCC zGlibc_C99_Inline_1List[] =
3450   "features.h\0*/features.h\0";
3452  *  Machine/OS name selection pattern
3453  */
3454 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3457  *  content selection pattern - do fix if pattern found
3458  */
3459 tSCC zGlibc_C99_Inline_1Select0[] =
3460        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3462 #define    GLIBC_C99_INLINE_1_TEST_CT  1
3463 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3464   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3467  *  Fix Command Arguments for Glibc_C99_Inline_1
3468  */
3469 static const char* apzGlibc_C99_Inline_1Patch[] = {
3470     "format",
3471     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3472     (char*)NULL };
3474 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3476  *  Description of Glibc_C99_Inline_1a fix
3477  */
3478 tSCC zGlibc_C99_Inline_1aName[] =
3479      "glibc_c99_inline_1a";
3482  *  File name selection pattern
3483  */
3484 tSCC zGlibc_C99_Inline_1aList[] =
3485   "features.h\0*/features.h\0";
3487  *  Machine/OS name selection pattern
3488  */
3489 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3492  *  content selection pattern - do fix if pattern found
3493  */
3494 tSCC zGlibc_C99_Inline_1aSelect0[] =
3495        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3496 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3498 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
3499 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3500   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3503  *  Fix Command Arguments for Glibc_C99_Inline_1a
3504  */
3505 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3506     "format",
3507     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3508 %2",
3509     (char*)NULL };
3511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3513  *  Description of Glibc_C99_Inline_2 fix
3514  */
3515 tSCC zGlibc_C99_Inline_2Name[] =
3516      "glibc_c99_inline_2";
3519  *  File name selection pattern
3520  */
3521 tSCC zGlibc_C99_Inline_2List[] =
3522   "sys/stat.h\0*/sys/stat.h\0";
3524  *  Machine/OS name selection pattern
3525  */
3526 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3529  *  content selection pattern - do fix if pattern found
3530  */
3531 tSCC zGlibc_C99_Inline_2Select0[] =
3532        "extern __inline__ int";
3534 #define    GLIBC_C99_INLINE_2_TEST_CT  1
3535 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3536   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3539  *  Fix Command Arguments for Glibc_C99_Inline_2
3540  */
3541 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3542     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3543 extern\\\n\
3544 #endif\\\n\
3545 __inline__ int \\1/",
3546     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3547 extern\\\n\
3548 #endif\\\n\
3549 __inline__ int \\1/",
3550     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3551 extern\\\n\
3552 #endif\\\n\
3553 __inline__ int \\1/",
3554     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3555 extern\\\n\
3556 #endif\\\n\
3557 __inline__ int __REDIRECT\\1 (\\2/",
3558     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3559 extern\\\n\
3560 #endif\\\n\
3561 __inline__ int __REDIRECT\\1 (\\2/",
3562     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
3563 extern\\\n\
3564 #endif\\\n\
3565 __inline__ int/",
3566     (char*)NULL };
3568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3570  *  Description of Glibc_C99_Inline_3 fix
3571  */
3572 tSCC zGlibc_C99_Inline_3Name[] =
3573      "glibc_c99_inline_3";
3576  *  File name selection pattern
3577  */
3578 tSCC zGlibc_C99_Inline_3List[] =
3579   "bits/string2.h\0*/bits/string2.h\0";
3581  *  Machine/OS name selection pattern
3582  */
3583 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
3586  *  content selection pattern - do fix if pattern found
3587  */
3588 tSCC zGlibc_C99_Inline_3Select0[] =
3589        "extern __inline";
3592  *  content bypass pattern - skip fix if pattern found
3593  */
3594 tSCC zGlibc_C99_Inline_3Bypass0[] =
3595        "__extern_inline|__GNU_STDC_INLINE__";
3597 #define    GLIBC_C99_INLINE_3_TEST_CT  2
3598 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
3599   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3600   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
3603  *  Fix Command Arguments for Glibc_C99_Inline_3
3604  */
3605 static const char* apzGlibc_C99_Inline_3Patch[] = {
3606     "format",
3607     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3608     "^# ifdef __cplusplus$",
3609     (char*)NULL };
3611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3613  *  Description of Glibc_C99_Inline_4 fix
3614  */
3615 tSCC zGlibc_C99_Inline_4Name[] =
3616      "glibc_c99_inline_4";
3619  *  File name selection pattern
3620  */
3621 tSCC zGlibc_C99_Inline_4List[] =
3622   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
3624  *  Machine/OS name selection pattern
3625  */
3626 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3629  *  content selection pattern - do fix if pattern found
3630  */
3631 tSCC zGlibc_C99_Inline_4Select0[] =
3632        "(^| )extern __inline";
3635  *  content bypass pattern - skip fix if pattern found
3636  */
3637 tSCC zGlibc_C99_Inline_4Bypass0[] =
3638        "__extern_inline|__gnu_inline__";
3640 #define    GLIBC_C99_INLINE_4_TEST_CT  2
3641 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3642   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3643   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3646  *  Fix Command Arguments for Glibc_C99_Inline_4
3647  */
3648 static const char* apzGlibc_C99_Inline_4Patch[] = {
3649     "format",
3650     "%0 __attribute__ ((__gnu_inline__))",
3651     (char*)NULL };
3653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3655  *  Description of Glibc_Mutex_Init fix
3656  */
3657 tSCC zGlibc_Mutex_InitName[] =
3658      "glibc_mutex_init";
3661  *  File name selection pattern
3662  */
3663 tSCC zGlibc_Mutex_InitList[] =
3664   "pthread.h\0";
3666  *  Machine/OS name selection pattern
3667  */
3668 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3671  *  content selection pattern - do fix if pattern found
3672  */
3673 tSCC zGlibc_Mutex_InitSelect0[] =
3674        "\\{ *\\{ *0, *\\} *\\}";
3676 #define    GLIBC_MUTEX_INIT_TEST_CT  1
3677 static tTestDesc aGlibc_Mutex_InitTests[] = {
3678   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3681  *  Fix Command Arguments for Glibc_Mutex_Init
3682  */
3683 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3684     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3685 N\n\
3686 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3688     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3689     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3690     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3691     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3692     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3693     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3694     "-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\
3695 #  \\1\\\n\
3696   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3697 # else\\\n\
3698 #  \\1\\\n\
3699   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3700 # endif/",
3701     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3702     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3703     (char*)NULL };
3705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3707  *  Description of Glibc_Stdint fix
3708  */
3709 tSCC zGlibc_StdintName[] =
3710      "glibc_stdint";
3713  *  File name selection pattern
3714  */
3715 tSCC zGlibc_StdintList[] =
3716   "stdint.h\0";
3718  *  Machine/OS name selection pattern
3719  */
3720 #define apzGlibc_StdintMachs (const char**)NULL
3723  *  content selection pattern - do fix if pattern found
3724  */
3725 tSCC zGlibc_StdintSelect0[] =
3726        "GNU C Library";
3728 #define    GLIBC_STDINT_TEST_CT  1
3729 static tTestDesc aGlibc_StdintTests[] = {
3730   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
3733  *  Fix Command Arguments for Glibc_Stdint
3734  */
3735 static const char* apzGlibc_StdintPatch[] = {
3736     "format",
3737     "# define UINT8_C(c)\tc\n\
3738 # define UINT16_C(c)\tc",
3739     "# define UINT8_C\\(c\\)\tc ## U\n\
3740 # define UINT16_C\\(c\\)\tc ## U",
3741     (char*)NULL };
3743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3745  *  Description of Glibc_Strncpy fix
3746  */
3747 tSCC zGlibc_StrncpyName[] =
3748      "glibc_strncpy";
3751  *  File name selection pattern
3752  */
3753 tSCC zGlibc_StrncpyList[] =
3754   "bits/string2.h\0*/bits/string2.h\0";
3756  *  Machine/OS name selection pattern
3757  */
3758 #define apzGlibc_StrncpyMachs (const char**)NULL
3761  *  content bypass pattern - skip fix if pattern found
3762  */
3763 tSCC zGlibc_StrncpyBypass0[] =
3764        "__builtin_strncpy";
3766 #define    GLIBC_STRNCPY_TEST_CT  1
3767 static tTestDesc aGlibc_StrncpyTests[] = {
3768   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3771  *  Fix Command Arguments for Glibc_Strncpy
3772  */
3773 static const char* apzGlibc_StrncpyPatch[] = {
3774     "format",
3775     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3776     "#  define strncpy([^\n\
3777 ]*\\\\\n\
3778 )*[^\n\
3779 ]*",
3780     (char*)NULL };
3782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3784  *  Description of Glibc_Tgmath fix
3785  */
3786 tSCC zGlibc_TgmathName[] =
3787      "glibc_tgmath";
3790  *  File name selection pattern
3791  */
3792 tSCC zGlibc_TgmathList[] =
3793   "tgmath.h\0";
3795  *  Machine/OS name selection pattern
3796  */
3797 #define apzGlibc_TgmathMachs (const char**)NULL
3800  *  content selection pattern - do fix if pattern found
3801  */
3802 tSCC zGlibc_TgmathSelect0[] =
3803        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3806  *  content bypass pattern - skip fix if pattern found
3807  */
3808 tSCC zGlibc_TgmathBypass0[] =
3809        "__floating_type\\(type\\) \\\\\n\
3810 .*__builtin_classify_type";
3812 #define    GLIBC_TGMATH_TEST_CT  2
3813 static tTestDesc aGlibc_TgmathTests[] = {
3814   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
3815   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3818  *  Fix Command Arguments for Glibc_Tgmath
3819  */
3820 static const char* apzGlibc_TgmathPatch[] = {
3821     "format",
3822     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3823     (char*)NULL };
3825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3827  *  Description of Gnu_Types fix
3828  */
3829 tSCC zGnu_TypesName[] =
3830      "gnu_types";
3833  *  File name selection pattern
3834  */
3835 tSCC zGnu_TypesList[] =
3836   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3838  *  Machine/OS name selection pattern
3839  */
3840 tSCC* apzGnu_TypesMachs[] = {
3841         "*-*-solaris2.1[0-9]*",
3842         (const char*)NULL };
3845  *  content selection pattern - do fix if pattern found
3846  */
3847 tSCC zGnu_TypesSelect0[] =
3848        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3851  *  content bypass pattern - skip fix if pattern found
3852  */
3853 tSCC zGnu_TypesBypass0[] =
3854        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3856 #define    GNU_TYPES_TEST_CT  2
3857 static tTestDesc aGnu_TypesTests[] = {
3858   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3859   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3862  *  Fix Command Arguments for Gnu_Types
3863  */
3864 static const char* apzGnu_TypesPatch[] = {
3865     "gnu_type",
3866     (char*)NULL };
3868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3870  *  Description of Hp_Inline fix
3871  */
3872 tSCC zHp_InlineName[] =
3873      "hp_inline";
3876  *  File name selection pattern
3877  */
3878 tSCC zHp_InlineList[] =
3879   "sys/spinlock.h\0machine/machparam.h\0";
3881  *  Machine/OS name selection pattern
3882  */
3883 #define apzHp_InlineMachs (const char**)NULL
3886  *  content selection pattern - do fix if pattern found
3887  */
3888 tSCC zHp_InlineSelect0[] =
3889        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3891 #define    HP_INLINE_TEST_CT  1
3892 static tTestDesc aHp_InlineTests[] = {
3893   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
3896  *  Fix Command Arguments for Hp_Inline
3897  */
3898 static const char* apzHp_InlinePatch[] = {
3899     "format",
3900     "%1<machine/%2.h>",
3901     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3902     (char*)NULL };
3904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3906  *  Description of Hp_Sysfile fix
3907  */
3908 tSCC zHp_SysfileName[] =
3909      "hp_sysfile";
3912  *  File name selection pattern
3913  */
3914 tSCC zHp_SysfileList[] =
3915   "sys/file.h\0";
3917  *  Machine/OS name selection pattern
3918  */
3919 #define apzHp_SysfileMachs (const char**)NULL
3922  *  content selection pattern - do fix if pattern found
3923  */
3924 tSCC zHp_SysfileSelect0[] =
3925        "HPUX_SOURCE";
3927 #define    HP_SYSFILE_TEST_CT  1
3928 static tTestDesc aHp_SysfileTests[] = {
3929   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
3932  *  Fix Command Arguments for Hp_Sysfile
3933  */
3934 static const char* apzHp_SysfilePatch[] = {
3935     "format",
3936     "(struct file *, ...)",
3937     "\\(\\.\\.\\.\\)",
3938     (char*)NULL };
3940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3942  *  Description of Hppa_Hpux_Fp_Macros fix
3943  */
3944 tSCC zHppa_Hpux_Fp_MacrosName[] =
3945      "hppa_hpux_fp_macros";
3948  *  File name selection pattern
3949  */
3950 tSCC zHppa_Hpux_Fp_MacrosList[] =
3951   "math.h\0";
3953  *  Machine/OS name selection pattern
3954  */
3955 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3956         "hppa*-hp-hpux11*",
3957         (const char*)NULL };
3960  *  content selection pattern - do fix if pattern found
3961  */
3962 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3963        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3964 #[ \t]*define[ \t]*FP_ZERO.*\n\
3965 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3966 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3967 #[ \t]*define[ \t]*FP_NAN.*\n";
3969 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
3970 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3971   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3974  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
3975  */
3976 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3977     "format",
3978     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3979 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3980    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3981 %0#endif\n\n\
3982 #ifdef _INCLUDE_HPUX_SOURCE\n",
3983     (char*)NULL };
3985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3987  *  Description of Hpux10_Cpp_Pow_Inline fix
3988  */
3989 tSCC zHpux10_Cpp_Pow_InlineName[] =
3990      "hpux10_cpp_pow_inline";
3993  *  File name selection pattern
3994  */
3995 tSCC zHpux10_Cpp_Pow_InlineList[] =
3996   "fixinc-test-limits.h\0math.h\0";
3998  *  Machine/OS name selection pattern
3999  */
4000 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
4003  *  content selection pattern - do fix if pattern found
4004  */
4005 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
4006        "^# +ifdef +__cplusplus\n\
4007  +\\}\n\
4008  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
4009 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
4010  +\\}\n\
4011  +extern +\"C\" +\\{\n\
4012 #else\n\
4013 # +endif";
4015 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
4016 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
4017   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4020  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
4021  */
4022 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
4023     "format",
4024     "",
4025     (char*)NULL };
4027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4029  *  Description of Hpux11_Cpp_Pow_Inline fix
4030  */
4031 tSCC zHpux11_Cpp_Pow_InlineName[] =
4032      "hpux11_cpp_pow_inline";
4035  *  File name selection pattern
4036  */
4037 tSCC zHpux11_Cpp_Pow_InlineList[] =
4038   "math.h\0";
4040  *  Machine/OS name selection pattern
4041  */
4042 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
4045  *  content selection pattern - do fix if pattern found
4046  */
4047 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
4048        " +inline double pow\\(double d,int expon\\) \\{\n\
4049  +return pow\\(d, \\(double\\)expon\\);\n\
4050  +\\}\n";
4052 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
4053 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
4054   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4057  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
4058  */
4059 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
4060     "format",
4061     "",
4062     (char*)NULL };
4064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4066  *  Description of Hpux10_Ctype_Declarations1 fix
4067  */
4068 tSCC zHpux10_Ctype_Declarations1Name[] =
4069      "hpux10_ctype_declarations1";
4072  *  File name selection pattern
4073  */
4074 tSCC zHpux10_Ctype_Declarations1List[] =
4075   "ctype.h\0";
4077  *  Machine/OS name selection pattern
4078  */
4079 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
4082  *  content selection pattern - do fix if pattern found
4083  */
4084 tSCC zHpux10_Ctype_Declarations1Select0[] =
4085        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
4088  *  content bypass pattern - skip fix if pattern found
4089  */
4090 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
4091        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
4093 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
4094 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
4095   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
4096   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
4099  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
4100  */
4101 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
4102     "format",
4103     "#ifdef _PROTOTYPES\n\
4104 extern int __tolower(int);\n\
4105 extern int __toupper(int);\n\
4106 #else /* NOT _PROTOTYPES */\n\
4107 extern int __tolower();\n\
4108 extern int __toupper();\n\
4109 #endif /* _PROTOTYPES */\n\n\
4110 %0\n",
4111     (char*)NULL };
4113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4115  *  Description of Hpux10_Ctype_Declarations2 fix
4116  */
4117 tSCC zHpux10_Ctype_Declarations2Name[] =
4118      "hpux10_ctype_declarations2";
4121  *  File name selection pattern
4122  */
4123 tSCC zHpux10_Ctype_Declarations2List[] =
4124   "ctype.h\0";
4126  *  Machine/OS name selection pattern
4127  */
4128 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
4131  *  content selection pattern - do fix if pattern found
4132  */
4133 tSCC zHpux10_Ctype_Declarations2Select0[] =
4134        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
4137  *  content bypass pattern - skip fix if pattern found
4138  */
4139 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
4140        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
4142 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
4143 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
4144   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
4145   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
4148  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
4149  */
4150 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
4151     "format",
4152     "%0\n\n\
4153 #ifdef _PROTOTYPES\n\
4154      extern int _isalnum(int);\n\
4155      extern int _isalpha(int);\n\
4156      extern int _iscntrl(int);\n\
4157      extern int _isdigit(int);\n\
4158      extern int _isgraph(int);\n\
4159      extern int _islower(int);\n\
4160      extern int _isprint(int);\n\
4161      extern int _ispunct(int);\n\
4162      extern int _isspace(int);\n\
4163      extern int _isupper(int);\n\
4164      extern int _isxdigit(int);\n\
4165 #  else /* not _PROTOTYPES */\n\
4166      extern int _isalnum();\n\
4167      extern int _isalpha();\n\
4168      extern int _iscntrl();\n\
4169      extern int _isdigit();\n\
4170      extern int _isgraph();\n\
4171      extern int _islower();\n\
4172      extern int _isprint();\n\
4173      extern int _ispunct();\n\
4174      extern int _isspace();\n\
4175      extern int _isupper();\n\
4176      extern int _isxdigit();\n\
4177 #endif /* _PROTOTYPES */\n",
4178     (char*)NULL };
4180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4182  *  Description of Hpux10_Stdio_Declarations fix
4183  */
4184 tSCC zHpux10_Stdio_DeclarationsName[] =
4185      "hpux10_stdio_declarations";
4188  *  File name selection pattern
4189  */
4190 tSCC zHpux10_Stdio_DeclarationsList[] =
4191   "stdio.h\0";
4193  *  Machine/OS name selection pattern
4194  */
4195 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
4198  *  content selection pattern - do fix if pattern found
4199  */
4200 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
4201        "^#[ \t]*define _iob[ \t]*__iob";
4204  *  content bypass pattern - skip fix if pattern found
4205  */
4206 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
4207        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
4209 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
4210 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
4211   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
4212   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
4215  *  Fix Command Arguments for Hpux10_Stdio_Declarations
4216  */
4217 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
4218     "format",
4219     "%0\n\n\
4220 #  if defined(__STDC__) || defined(__cplusplus)\n\
4221      extern int snprintf(char *, size_t, const char *, ...);\n\
4222      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
4223 #  else /* not __STDC__) || __cplusplus */\n\
4224      extern int snprintf();\n\
4225      extern int vsnprintf();\n\
4226 #  endif /* __STDC__) || __cplusplus */\n",
4227     (char*)NULL };
4229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4231  *  Description of Hppa_Hpux11_Alloca fix
4232  */
4233 tSCC zHppa_Hpux11_AllocaName[] =
4234      "hppa_hpux11_alloca";
4237  *  File name selection pattern
4238  */
4239 tSCC zHppa_Hpux11_AllocaList[] =
4240   "alloca.h\0";
4242  *  Machine/OS name selection pattern
4243  */
4244 tSCC* apzHppa_Hpux11_AllocaMachs[] = {
4245         "hppa*-*-hpux11*",
4246         (const char*)NULL };
4249  *  content selection pattern - do fix if pattern found
4250  */
4251 tSCC zHppa_Hpux11_AllocaSelect0[] =
4252        "#ifndef _STDDEF_INCLUDED";
4254 #define    HPPA_HPUX11_ALLOCA_TEST_CT  1
4255 static tTestDesc aHppa_Hpux11_AllocaTests[] = {
4256   { TT_EGREP,    zHppa_Hpux11_AllocaSelect0, (regex_t*)NULL }, };
4259  *  Fix Command Arguments for Hppa_Hpux11_Alloca
4260  */
4261 static const char* apzHppa_Hpux11_AllocaPatch[] = {
4262     "format",
4263     "#ifndef _SYS_STDSYMS_INCLUDED\n\
4264 #  include <sys/stdsyms.h>\n\
4265 #endif /* _SYS_STDSYMS_INCLUDED */\n\n\
4266 %0",
4267     (char*)NULL };
4269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4271  *  Description of Hpux11_Abs fix
4272  */
4273 tSCC zHpux11_AbsName[] =
4274      "hpux11_abs";
4277  *  File name selection pattern
4278  */
4279 tSCC zHpux11_AbsList[] =
4280   "stdlib.h\0";
4282  *  Machine/OS name selection pattern
4283  */
4284 tSCC* apzHpux11_AbsMachs[] = {
4285         "*-hp-hpux11*",
4286         (const char*)NULL };
4289  *  content selection pattern - do fix if pattern found
4290  */
4291 tSCC zHpux11_AbsSelect0[] =
4292        "ifndef _MATH_INCLUDED";
4294 #define    HPUX11_ABS_TEST_CT  1
4295 static tTestDesc aHpux11_AbsTests[] = {
4296   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
4299  *  Fix Command Arguments for Hpux11_Abs
4300  */
4301 static const char* apzHpux11_AbsPatch[] = {
4302     "format",
4303     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
4304     (char*)NULL };
4306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4308  *  Description of Hpux11_Lwp_Rwlock_Valid fix
4309  */
4310 tSCC zHpux11_Lwp_Rwlock_ValidName[] =
4311      "hpux11_lwp_rwlock_valid";
4314  *  File name selection pattern
4315  */
4316 tSCC zHpux11_Lwp_Rwlock_ValidList[] =
4317   "sys/pthread.h\0";
4319  *  Machine/OS name selection pattern
4320  */
4321 tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = {
4322         "*-hp-hpux11*",
4323         (const char*)NULL };
4326  *  content selection pattern - do fix if pattern found
4327  */
4328 tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] =
4329        "#define __LWP_RWLOCK_VALID[ \t]*0x8c91";
4331 #define    HPUX11_LWP_RWLOCK_VALID_TEST_CT  1
4332 static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = {
4333   { TT_EGREP,    zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, };
4336  *  Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid
4337  */
4338 static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = {
4339     "format",
4340     "#define __LWP_RWLOCK_VALID              -29551",
4341     (char*)NULL };
4343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4345  *  Description of Hpux11_Extern_Sendfile fix
4346  */
4347 tSCC zHpux11_Extern_SendfileName[] =
4348      "hpux11_extern_sendfile";
4351  *  File name selection pattern
4352  */
4353 tSCC zHpux11_Extern_SendfileList[] =
4354   "sys/socket.h\0";
4356  *  Machine/OS name selection pattern
4357  */
4358 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4359         "*-hp-hpux11.[12]*",
4360         (const char*)NULL };
4363  *  content selection pattern - do fix if pattern found
4364  */
4365 tSCC zHpux11_Extern_SendfileSelect0[] =
4366        "^[ \t]*extern sbsize_t sendfile.*\n\
4367 .*, int\\)\\);\n";
4369 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
4370 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4371   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4374  *  Fix Command Arguments for Hpux11_Extern_Sendfile
4375  */
4376 static const char* apzHpux11_Extern_SendfilePatch[] = {
4377     "format",
4378     "#ifndef _APP32_64BIT_OFF_T\n\
4379 %0#endif\n",
4380     (char*)NULL };
4382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4384  *  Description of Hpux11_Extern_Sendpath fix
4385  */
4386 tSCC zHpux11_Extern_SendpathName[] =
4387      "hpux11_extern_sendpath";
4390  *  File name selection pattern
4391  */
4392 tSCC zHpux11_Extern_SendpathList[] =
4393   "sys/socket.h\0";
4395  *  Machine/OS name selection pattern
4396  */
4397 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4398         "*-hp-hpux11.[12]*",
4399         (const char*)NULL };
4402  *  content selection pattern - do fix if pattern found
4403  */
4404 tSCC zHpux11_Extern_SendpathSelect0[] =
4405        "^[ \t]*extern sbsize_t sendpath.*\n\
4406 .*, int\\)\\);\n";
4408 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
4409 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4410   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4413  *  Fix Command Arguments for Hpux11_Extern_Sendpath
4414  */
4415 static const char* apzHpux11_Extern_SendpathPatch[] = {
4416     "format",
4417     "#ifndef _APP32_64BIT_OFF_T\n\
4418 %0#endif\n",
4419     (char*)NULL };
4421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4423  *  Description of Hpux11_Fabsf fix
4424  */
4425 tSCC zHpux11_FabsfName[] =
4426      "hpux11_fabsf";
4429  *  File name selection pattern
4430  */
4431 tSCC zHpux11_FabsfList[] =
4432   "math.h\0";
4434  *  Machine/OS name selection pattern
4435  */
4436 tSCC* apzHpux11_FabsfMachs[] = {
4437         "*-hp-hpux11*",
4438         (const char*)NULL };
4441  *  content selection pattern - do fix if pattern found
4442  */
4443 tSCC zHpux11_FabsfSelect0[] =
4444        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
4446 #define    HPUX11_FABSF_TEST_CT  1
4447 static tTestDesc aHpux11_FabsfTests[] = {
4448   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
4451  *  Fix Command Arguments for Hpux11_Fabsf
4452  */
4453 static const char* apzHpux11_FabsfPatch[] = {
4454     "format",
4455     "#ifndef __cplusplus\n\
4456 %0\n\
4457 #endif",
4458     (char*)NULL };
4460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4462  *  Description of Hpux11_Pthread_Pointer fix
4463  */
4464 tSCC zHpux11_Pthread_PointerName[] =
4465      "hpux11_pthread_pointer";
4468  *  File name selection pattern
4469  */
4470 tSCC zHpux11_Pthread_PointerList[] =
4471   "sys/pthread.h\0";
4473  *  Machine/OS name selection pattern
4474  */
4475 tSCC* apzHpux11_Pthread_PointerMachs[] = {
4476         "*-hp-hpux11.[0-3]*",
4477         (const char*)NULL };
4480  *  content selection pattern - do fix if pattern found
4481  */
4482 tSCC zHpux11_Pthread_PointerSelect0[] =
4483        "(void[ \t]*\\*)(m|c|rw)(_ptr)";
4485 #define    HPUX11_PTHREAD_POINTER_TEST_CT  1
4486 static tTestDesc aHpux11_Pthread_PointerTests[] = {
4487   { TT_EGREP,    zHpux11_Pthread_PointerSelect0, (regex_t*)NULL }, };
4490  *  Fix Command Arguments for Hpux11_Pthread_Pointer
4491  */
4492 static const char* apzHpux11_Pthread_PointerPatch[] = {
4493     "format",
4494     "long\t%2%3",
4495     (char*)NULL };
4497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4499  *  Description of Hpux11_Pthread_Const fix
4500  */
4501 tSCC zHpux11_Pthread_ConstName[] =
4502      "hpux11_pthread_const";
4505  *  File name selection pattern
4506  */
4507 tSCC zHpux11_Pthread_ConstList[] =
4508   "sys/pthread.h\0";
4510  *  Machine/OS name selection pattern
4511  */
4512 tSCC* apzHpux11_Pthread_ConstMachs[] = {
4513         "*-hp-hpux11.[0-3]*",
4514         (const char*)NULL };
4517  *  content selection pattern - do fix if pattern found
4518  */
4519 tSCC zHpux11_Pthread_ConstSelect0[] =
4520        "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))";
4522 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
4523 static tTestDesc aHpux11_Pthread_ConstTests[] = {
4524   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4527  *  Fix Command Arguments for Hpux11_Pthread_Const
4528  */
4529 static const char* apzHpux11_Pthread_ConstPatch[] = {
4530     "format",
4531     "%11",
4532     (char*)NULL };
4534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4536  *  Description of Hpux11_Size_T fix
4537  */
4538 tSCC zHpux11_Size_TName[] =
4539      "hpux11_size_t";
4542  *  File name selection pattern
4543  */
4544 #define zHpux11_Size_TList (char*)NULL
4546  *  Machine/OS name selection pattern
4547  */
4548 tSCC* apzHpux11_Size_TMachs[] = {
4549         "*-hp-hpux11*",
4550         (const char*)NULL };
4553  *  content selection pattern - do fix if pattern found
4554  */
4555 tSCC zHpux11_Size_TSelect0[] =
4556        "__size_t";
4558 #define    HPUX11_SIZE_T_TEST_CT  1
4559 static tTestDesc aHpux11_Size_TTests[] = {
4560   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
4563  *  Fix Command Arguments for Hpux11_Size_T
4564  */
4565 static const char* apzHpux11_Size_TPatch[] = {
4566     "format",
4567     "_hpux_size_t",
4568     (char*)NULL };
4570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4572  *  Description of Hpux11_Snprintf fix
4573  */
4574 tSCC zHpux11_SnprintfName[] =
4575      "hpux11_snprintf";
4578  *  File name selection pattern
4579  */
4580 tSCC zHpux11_SnprintfList[] =
4581   "stdio.h\0";
4583  *  Machine/OS name selection pattern
4584  */
4585 #define apzHpux11_SnprintfMachs (const char**)NULL
4588  *  content selection pattern - do fix if pattern found
4589  */
4590 tSCC zHpux11_SnprintfSelect0[] =
4591        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
4593 #define    HPUX11_SNPRINTF_TEST_CT  1
4594 static tTestDesc aHpux11_SnprintfTests[] = {
4595   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
4598  *  Fix Command Arguments for Hpux11_Snprintf
4599  */
4600 static const char* apzHpux11_SnprintfPatch[] = {
4601     "format",
4602     "%1 const %3",
4603     (char*)NULL };
4605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4607  *  Description of Hpux11_Vsnprintf fix
4608  */
4609 tSCC zHpux11_VsnprintfName[] =
4610      "hpux11_vsnprintf";
4613  *  File name selection pattern
4614  */
4615 tSCC zHpux11_VsnprintfList[] =
4616   "stdio.h\0";
4618  *  Machine/OS name selection pattern
4619  */
4620 #define apzHpux11_VsnprintfMachs (const char**)NULL
4623  *  content selection pattern - do fix if pattern found
4624  */
4625 tSCC zHpux11_VsnprintfSelect0[] =
4626        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
4628 #define    HPUX11_VSNPRINTF_TEST_CT  1
4629 static tTestDesc aHpux11_VsnprintfTests[] = {
4630   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
4633  *  Fix Command Arguments for Hpux11_Vsnprintf
4634  */
4635 static const char* apzHpux11_VsnprintfPatch[] = {
4636     "format",
4637     "%1 __va_list);",
4638     (char*)NULL };
4640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4642  *  Description of Hpux_Vsscanf fix
4643  */
4644 tSCC zHpux_VsscanfName[] =
4645      "hpux_vsscanf";
4648  *  File name selection pattern
4649  */
4650 tSCC zHpux_VsscanfList[] =
4651   "stdio.h\0";
4653  *  Machine/OS name selection pattern
4654  */
4655 tSCC* apzHpux_VsscanfMachs[] = {
4656         "*-*-hpux*",
4657         (const char*)NULL };
4660  *  content selection pattern - do fix if pattern found
4661  */
4662 tSCC zHpux_VsscanfSelect0[] =
4663        "(extern int vsscanf\\()char";
4665 #define    HPUX_VSSCANF_TEST_CT  1
4666 static tTestDesc aHpux_VsscanfTests[] = {
4667   { TT_EGREP,    zHpux_VsscanfSelect0, (regex_t*)NULL }, };
4670  *  Fix Command Arguments for Hpux_Vsscanf
4671  */
4672 static const char* apzHpux_VsscanfPatch[] = {
4673     "format",
4674     "%1const char",
4675     (char*)NULL };
4677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4679  *  Description of Hpux8_Bogus_Inlines fix
4680  */
4681 tSCC zHpux8_Bogus_InlinesName[] =
4682      "hpux8_bogus_inlines";
4685  *  File name selection pattern
4686  */
4687 tSCC zHpux8_Bogus_InlinesList[] =
4688   "math.h\0";
4690  *  Machine/OS name selection pattern
4691  */
4692 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
4695  *  content selection pattern - do fix if pattern found
4696  */
4697 tSCC zHpux8_Bogus_InlinesSelect0[] =
4698        "inline";
4701  *  content bypass pattern - skip fix if pattern found
4702  */
4703 tSCC zHpux8_Bogus_InlinesBypass0[] =
4704        "__GNUG__";
4706 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
4707 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
4708   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
4709   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
4712  *  Fix Command Arguments for Hpux8_Bogus_Inlines
4713  */
4714 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
4715     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
4716     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
4717     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
4718     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
4719     (char*)NULL };
4721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4723  *  Description of Hpux_C99_Intptr fix
4724  */
4725 tSCC zHpux_C99_IntptrName[] =
4726      "hpux_c99_intptr";
4729  *  File name selection pattern
4730  */
4731 tSCC zHpux_C99_IntptrList[] =
4732   "stdint-hpux11.h\0stdint.h\0";
4734  *  Machine/OS name selection pattern
4735  */
4736 tSCC* apzHpux_C99_IntptrMachs[] = {
4737         "*-hp-hpux11.3*",
4738         (const char*)NULL };
4739 #define HPUX_C99_INTPTR_TEST_CT  0
4740 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4743  *  Fix Command Arguments for Hpux_C99_Intptr
4744  */
4745 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4746     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4747     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4748     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4749     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4750     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4751     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4752     (char*)NULL };
4754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4756  *  Description of Hpux_C99_Inttypes fix
4757  */
4758 tSCC zHpux_C99_InttypesName[] =
4759      "hpux_c99_inttypes";
4762  *  File name selection pattern
4763  */
4764 tSCC zHpux_C99_InttypesList[] =
4765   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4767  *  Machine/OS name selection pattern
4768  */
4769 tSCC* apzHpux_C99_InttypesMachs[] = {
4770         "*-hp-hpux11.[23]*",
4771         (const char*)NULL };
4772 #define HPUX_C99_INTTYPES_TEST_CT  0
4773 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4776  *  Fix Command Arguments for Hpux_C99_Inttypes
4777  */
4778 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4779     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4780     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4781     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4782     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4783     (char*)NULL };
4785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4787  *  Description of Hpux_C99_Inttypes2 fix
4788  */
4789 tSCC zHpux_C99_Inttypes2Name[] =
4790      "hpux_c99_inttypes2";
4793  *  File name selection pattern
4794  */
4795 tSCC zHpux_C99_Inttypes2List[] =
4796   "stdint-hpux11.h\0stdint.h\0";
4798  *  Machine/OS name selection pattern
4799  */
4800 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4801         "*-hp-hpux11.2*",
4802         (const char*)NULL };
4803 #define HPUX_C99_INTTYPES2_TEST_CT  0
4804 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4807  *  Fix Command Arguments for Hpux_C99_Inttypes2
4808  */
4809 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4810     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4811     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4812     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4813     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4814     (char*)NULL };
4816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4818  *  Description of Hpux_Ctype_Macros fix
4819  */
4820 tSCC zHpux_Ctype_MacrosName[] =
4821      "hpux_ctype_macros";
4824  *  File name selection pattern
4825  */
4826 tSCC zHpux_Ctype_MacrosList[] =
4827   "ctype.h\0";
4829  *  Machine/OS name selection pattern
4830  */
4831 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
4834  *  content selection pattern - do fix if pattern found
4835  */
4836 tSCC zHpux_Ctype_MacrosSelect0[] =
4837        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
4839 #define    HPUX_CTYPE_MACROS_TEST_CT  1
4840 static tTestDesc aHpux_Ctype_MacrosTests[] = {
4841   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
4844  *  Fix Command Arguments for Hpux_Ctype_Macros
4845  */
4846 static const char* apzHpux_Ctype_MacrosPatch[] = {
4847     "format",
4848     "%1(int)%3",
4849     (char*)NULL };
4851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4853  *  Description of Hpux_Extern_Errno fix
4854  */
4855 tSCC zHpux_Extern_ErrnoName[] =
4856      "hpux_extern_errno";
4859  *  File name selection pattern
4860  */
4861 tSCC zHpux_Extern_ErrnoList[] =
4862   "errno.h\0";
4864  *  Machine/OS name selection pattern
4865  */
4866 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4867         "*-hp-hpux10.*",
4868         "*-hp-hpux11.[0-2]*",
4869         (const char*)NULL };
4872  *  content selection pattern - do fix if pattern found
4873  */
4874 tSCC zHpux_Extern_ErrnoSelect0[] =
4875        "^[ \t]*extern int errno;$";
4877 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
4878 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4879   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4882  *  Fix Command Arguments for Hpux_Extern_Errno
4883  */
4884 static const char* apzHpux_Extern_ErrnoPatch[] = {
4885     "format",
4886     "#ifdef __cplusplus\n\
4887 extern \"C\" {\n\
4888 #endif\n\
4889 %0\n\
4890 #ifdef __cplusplus\n\
4891 }\n\
4892 #endif",
4893     (char*)NULL };
4895 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4897  *  Description of Hpux_Htonl fix
4898  */
4899 tSCC zHpux_HtonlName[] =
4900      "hpux_htonl";
4903  *  File name selection pattern
4904  */
4905 tSCC zHpux_HtonlList[] =
4906   "netinet/in.h\0";
4908  *  Machine/OS name selection pattern
4909  */
4910 #define apzHpux_HtonlMachs (const char**)NULL
4913  *  content selection pattern - do fix if pattern found
4914  */
4915 tSCC zHpux_HtonlSelect0[] =
4916        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
4917 (/\\*\n\
4918  \\* Macros for number representation conversion\\.\n\
4919  \\*/\n\
4920 #ifndef ntohl)";
4922 #define    HPUX_HTONL_TEST_CT  1
4923 static tTestDesc aHpux_HtonlTests[] = {
4924   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
4927  *  Fix Command Arguments for Hpux_Htonl
4928  */
4929 static const char* apzHpux_HtonlPatch[] = {
4930     "format",
4931     "#if 1\n\
4932 %1",
4933     (char*)NULL };
4935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4937  *  Description of Hpux_Imaginary_I fix
4938  */
4939 tSCC zHpux_Imaginary_IName[] =
4940      "hpux_imaginary_i";
4943  *  File name selection pattern
4944  */
4945 tSCC zHpux_Imaginary_IList[] =
4946   "complex.h\0";
4948  *  Machine/OS name selection pattern
4949  */
4950 tSCC* apzHpux_Imaginary_IMachs[] = {
4951         "ia64-hp-hpux11.*",
4952         (const char*)NULL };
4955  *  content selection pattern - do fix if pattern found
4956  */
4957 tSCC zHpux_Imaginary_ISelect0[] =
4958        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4960 #define    HPUX_IMAGINARY_I_TEST_CT  1
4961 static tTestDesc aHpux_Imaginary_ITests[] = {
4962   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4965  *  Fix Command Arguments for Hpux_Imaginary_I
4966  */
4967 static const char* apzHpux_Imaginary_IPatch[] = {
4968     "format",
4969     "#define _Complex_I (__extension__ 1.0iF)",
4970     (char*)NULL };
4972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4974  *  Description of Hpux_Inttype_Int8_T fix
4975  */
4976 tSCC zHpux_Inttype_Int8_TName[] =
4977      "hpux_inttype_int8_t";
4980  *  File name selection pattern
4981  */
4982 tSCC zHpux_Inttype_Int8_TList[] =
4983   "sys/_inttypes.h\0";
4985  *  Machine/OS name selection pattern
4986  */
4987 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4988         "*-hp-hpux1[01].*",
4989         (const char*)NULL };
4992  *  content selection pattern - do fix if pattern found
4993  */
4994 tSCC zHpux_Inttype_Int8_TSelect0[] =
4995        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4997 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
4998 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4999   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
5002  *  Fix Command Arguments for Hpux_Inttype_Int8_T
5003  */
5004 static const char* apzHpux_Inttype_Int8_TPatch[] = {
5005     "format",
5006     "typedef signed char int%18_t;",
5007     (char*)NULL };
5009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5011  *  Description of Hpux_Long_Double fix
5012  */
5013 tSCC zHpux_Long_DoubleName[] =
5014      "hpux_long_double";
5017  *  File name selection pattern
5018  */
5019 tSCC zHpux_Long_DoubleList[] =
5020   "stdlib.h\0";
5022  *  Machine/OS name selection pattern
5023  */
5024 tSCC* apzHpux_Long_DoubleMachs[] = {
5025         "*-*-hpux10*",
5026         "*-*-hpux11.[012]*",
5027         (const char*)NULL };
5030  *  content selection pattern - do fix if pattern found
5031  */
5032 tSCC zHpux_Long_DoubleSelect0[] =
5033        "extern[ \t]long_double[ \t]strtold";
5036  *  content bypass pattern - skip fix if pattern found
5037  */
5038 tSCC zHpux_Long_DoubleBypass0[] =
5039        "long_double_t";
5041 #define    HPUX_LONG_DOUBLE_TEST_CT  2
5042 static tTestDesc aHpux_Long_DoubleTests[] = {
5043   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
5044   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
5047  *  Fix Command Arguments for Hpux_Long_Double
5048  */
5049 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
5050     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
5051     "-e", "s/long_double/long double/g",
5052     (char*)NULL };
5054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5056  *  Description of Hpux_Long_Double_2 fix
5057  */
5058 tSCC zHpux_Long_Double_2Name[] =
5059      "hpux_long_double_2";
5062  *  File name selection pattern
5063  */
5064 tSCC zHpux_Long_Double_2List[] =
5065   "stdlib.h\0";
5067  *  Machine/OS name selection pattern
5068  */
5069 tSCC* apzHpux_Long_Double_2Machs[] = {
5070         "hppa*-*-hpux11.3*",
5071         (const char*)NULL };
5074  *  content selection pattern - do fix if pattern found
5075  */
5076 tSCC zHpux_Long_Double_2Select0[] =
5077        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
5079 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
5080 static tTestDesc aHpux_Long_Double_2Tests[] = {
5081   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
5084  *  Fix Command Arguments for Hpux_Long_Double_2
5085  */
5086 static const char* apzHpux_Long_Double_2Patch[] = {
5087     "format",
5088     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
5089     (char*)NULL };
5091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5093  *  Description of Hpux_Pthread_Initializers fix
5094  */
5095 tSCC zHpux_Pthread_InitializersName[] =
5096      "hpux_pthread_initializers";
5099  *  File name selection pattern
5100  */
5101 tSCC zHpux_Pthread_InitializersList[] =
5102   "sys/pthread.h\0";
5104  *  Machine/OS name selection pattern
5105  */
5106 tSCC* apzHpux_Pthread_InitializersMachs[] = {
5107         "*-hp-hpux11.[0-3]*",
5108         (const char*)NULL };
5109 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
5110 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
5113  *  Fix Command Arguments for Hpux_Pthread_Initializers
5114  */
5115 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
5116     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
5117     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
5118     "-e", "/^[ \t]*0$/d",
5119     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
5120     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
5121     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
5122     "-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\\\\@",
5123     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
5124     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
5125     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
5126     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
5127     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
5128     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
5129     (char*)NULL };
5131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5133  *  Description of Hpux_Spu_Info fix
5134  */
5135 tSCC zHpux_Spu_InfoName[] =
5136      "hpux_spu_info";
5139  *  File name selection pattern
5140  */
5141 tSCC zHpux_Spu_InfoList[] =
5142   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
5144  *  Machine/OS name selection pattern
5145  */
5146 tSCC* apzHpux_Spu_InfoMachs[] = {
5147         "*-hp-hpux*",
5148         (const char*)NULL };
5151  *  content selection pattern - do fix if pattern found
5152  */
5153 tSCC zHpux_Spu_InfoSelect0[] =
5154        "^.*extern.*spu_info.*";
5156 #define    HPUX_SPU_INFO_TEST_CT  1
5157 static tTestDesc aHpux_Spu_InfoTests[] = {
5158   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
5161  *  Fix Command Arguments for Hpux_Spu_Info
5162  */
5163 static const char* apzHpux_Spu_InfoPatch[] = {
5164     "format",
5165     "#ifdef _KERNEL\n\
5166 %0\n\
5167 #endif",
5168     (char*)NULL };
5170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5172  *  Description of Hpux_Stdint_Least_Fast fix
5173  */
5174 tSCC zHpux_Stdint_Least_FastName[] =
5175      "hpux_stdint_least_fast";
5178  *  File name selection pattern
5179  */
5180 tSCC zHpux_Stdint_Least_FastList[] =
5181   "stdint-hpux11.h\0stdint.h\0";
5183  *  Machine/OS name selection pattern
5184  */
5185 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
5186         "*-hp-hpux11.2*",
5187         (const char*)NULL };
5190  *  content selection pattern - do fix if pattern found
5191  */
5192 tSCC zHpux_Stdint_Least_FastSelect0[] =
5193        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
5195 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
5196 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
5197   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
5200  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
5201  */
5202 static const char* apzHpux_Stdint_Least_FastPatch[] = {
5203     "format",
5204     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
5205     (char*)NULL };
5207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5209  *  Description of Hpux_Longjmp fix
5210  */
5211 tSCC zHpux_LongjmpName[] =
5212      "hpux_longjmp";
5215  *  File name selection pattern
5216  */
5217 tSCC zHpux_LongjmpList[] =
5218   "setjmp.h\0";
5220  *  Machine/OS name selection pattern
5221  */
5222 tSCC* apzHpux_LongjmpMachs[] = {
5223         "*-hp-hpux*",
5224         (const char*)NULL };
5227  *  content selection pattern - do fix if pattern found
5228  */
5229 tSCC zHpux_LongjmpSelect0[] =
5230        "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))";
5232 #define    HPUX_LONGJMP_TEST_CT  1
5233 static tTestDesc aHpux_LongjmpTests[] = {
5234   { TT_EGREP,    zHpux_LongjmpSelect0, (regex_t*)NULL }, };
5237  *  Fix Command Arguments for Hpux_Longjmp
5238  */
5239 static const char* apzHpux_LongjmpPatch[] = {
5240     "format",
5241     "%0 __attribute__ ((__noreturn__))",
5242     (char*)NULL };
5244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5246  *  Description of Hpux_Systime fix
5247  */
5248 tSCC zHpux_SystimeName[] =
5249      "hpux_systime";
5252  *  File name selection pattern
5253  */
5254 tSCC zHpux_SystimeList[] =
5255   "sys/time.h\0";
5257  *  Machine/OS name selection pattern
5258  */
5259 #define apzHpux_SystimeMachs (const char**)NULL
5262  *  content selection pattern - do fix if pattern found
5263  */
5264 tSCC zHpux_SystimeSelect0[] =
5265        "^extern struct sigevent;";
5267 #define    HPUX_SYSTIME_TEST_CT  1
5268 static tTestDesc aHpux_SystimeTests[] = {
5269   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
5272  *  Fix Command Arguments for Hpux_Systime
5273  */
5274 static const char* apzHpux_SystimePatch[] = {
5275     "format",
5276     "struct sigevent;",
5277     (char*)NULL };
5279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5281  *  Description of Huge_Val_Hex fix
5282  */
5283 tSCC zHuge_Val_HexName[] =
5284      "huge_val_hex";
5287  *  File name selection pattern
5288  */
5289 tSCC zHuge_Val_HexList[] =
5290   "bits/huge_val.h\0*/bits/huge_val.h\0";
5292  *  Machine/OS name selection pattern
5293  */
5294 #define apzHuge_Val_HexMachs (const char**)NULL
5297  *  content selection pattern - do fix if pattern found
5298  */
5299 tSCC zHuge_Val_HexSelect0[] =
5300        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
5303  *  content bypass pattern - skip fix if pattern found
5304  */
5305 tSCC zHuge_Val_HexBypass0[] =
5306        "__builtin_huge_val";
5308 #define    HUGE_VAL_HEX_TEST_CT  2
5309 static tTestDesc aHuge_Val_HexTests[] = {
5310   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
5311   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
5314  *  Fix Command Arguments for Huge_Val_Hex
5315  */
5316 static const char* apzHuge_Val_HexPatch[] = {
5317     "format",
5318     "#define HUGE_VAL (__builtin_huge_val())\n",
5319     (char*)NULL };
5321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5323  *  Description of Huge_Valf_Hex fix
5324  */
5325 tSCC zHuge_Valf_HexName[] =
5326      "huge_valf_hex";
5329  *  File name selection pattern
5330  */
5331 tSCC zHuge_Valf_HexList[] =
5332   "bits/huge_val.h\0*/bits/huge_val.h\0";
5334  *  Machine/OS name selection pattern
5335  */
5336 #define apzHuge_Valf_HexMachs (const char**)NULL
5339  *  content selection pattern - do fix if pattern found
5340  */
5341 tSCC zHuge_Valf_HexSelect0[] =
5342        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
5345  *  content bypass pattern - skip fix if pattern found
5346  */
5347 tSCC zHuge_Valf_HexBypass0[] =
5348        "__builtin_huge_valf";
5350 #define    HUGE_VALF_HEX_TEST_CT  2
5351 static tTestDesc aHuge_Valf_HexTests[] = {
5352   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
5353   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
5356  *  Fix Command Arguments for Huge_Valf_Hex
5357  */
5358 static const char* apzHuge_Valf_HexPatch[] = {
5359     "format",
5360     "#define HUGE_VALF (__builtin_huge_valf())\n",
5361     (char*)NULL };
5363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5365  *  Description of Huge_Vall_Hex fix
5366  */
5367 tSCC zHuge_Vall_HexName[] =
5368      "huge_vall_hex";
5371  *  File name selection pattern
5372  */
5373 tSCC zHuge_Vall_HexList[] =
5374   "bits/huge_val.h\0*/bits/huge_val.h\0";
5376  *  Machine/OS name selection pattern
5377  */
5378 #define apzHuge_Vall_HexMachs (const char**)NULL
5381  *  content selection pattern - do fix if pattern found
5382  */
5383 tSCC zHuge_Vall_HexSelect0[] =
5384        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
5387  *  content bypass pattern - skip fix if pattern found
5388  */
5389 tSCC zHuge_Vall_HexBypass0[] =
5390        "__builtin_huge_vall";
5392 #define    HUGE_VALL_HEX_TEST_CT  2
5393 static tTestDesc aHuge_Vall_HexTests[] = {
5394   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
5395   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
5398  *  Fix Command Arguments for Huge_Vall_Hex
5399  */
5400 static const char* apzHuge_Vall_HexPatch[] = {
5401     "format",
5402     "#define HUGE_VALL (__builtin_huge_vall())\n",
5403     (char*)NULL };
5405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5407  *  Description of Int_Abort_Free_And_Exit fix
5408  */
5409 tSCC zInt_Abort_Free_And_ExitName[] =
5410      "int_abort_free_and_exit";
5413  *  File name selection pattern
5414  */
5415 tSCC zInt_Abort_Free_And_ExitList[] =
5416   "stdlib.h\0";
5418  *  Machine/OS name selection pattern
5419  */
5420 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
5423  *  content selection pattern - do fix if pattern found
5424  */
5425 tSCC zInt_Abort_Free_And_ExitSelect0[] =
5426        "int[ \t]+(abort|free|exit)[ \t]*\\(";
5429  *  content bypass pattern - skip fix if pattern found
5430  */
5431 tSCC zInt_Abort_Free_And_ExitBypass0[] =
5432        "_CLASSIC_ANSI_TYPES";
5434 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
5435 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
5436   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
5437   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
5440  *  Fix Command Arguments for Int_Abort_Free_And_Exit
5441  */
5442 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
5443     "format",
5444     "void\t%1(",
5445     (char*)NULL };
5447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5449  *  Description of Io_Quotes_Def fix
5450  */
5451 tSCC zIo_Quotes_DefName[] =
5452      "io_quotes_def";
5455  *  File name selection pattern
5456  */
5457 #define zIo_Quotes_DefList (char*)NULL
5459  *  Machine/OS name selection pattern
5460  */
5461 #define apzIo_Quotes_DefMachs (const char**)NULL
5464  *  content selection pattern - do fix if pattern found
5465  */
5466 tSCC zIo_Quotes_DefSelect0[] =
5467        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
5469 #define    IO_QUOTES_DEF_TEST_CT  1
5470 static tTestDesc aIo_Quotes_DefTests[] = {
5471   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
5474  *  Fix Command Arguments for Io_Quotes_Def
5475  */
5476 static const char* apzIo_Quotes_DefPatch[] = {
5477     "char_macro_def",
5478     "IO",
5479     (char*)NULL };
5481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5483  *  Description of Io_Quotes_Use fix
5484  */
5485 tSCC zIo_Quotes_UseName[] =
5486      "io_quotes_use";
5489  *  File name selection pattern
5490  */
5491 #define zIo_Quotes_UseList (char*)NULL
5493  *  Machine/OS name selection pattern
5494  */
5495 #define apzIo_Quotes_UseMachs (const char**)NULL
5498  *  content selection pattern - do fix if pattern found
5499  */
5500 tSCC zIo_Quotes_UseSelect0[] =
5501        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
5503 #define    IO_QUOTES_USE_TEST_CT  1
5504 static tTestDesc aIo_Quotes_UseTests[] = {
5505   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
5508  *  Fix Command Arguments for Io_Quotes_Use
5509  */
5510 static const char* apzIo_Quotes_UsePatch[] = {
5511     "char_macro_use",
5512     "IO",
5513     (char*)NULL };
5515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5517  *  Description of Ip_Missing_Semi fix
5518  */
5519 tSCC zIp_Missing_SemiName[] =
5520      "ip_missing_semi";
5523  *  File name selection pattern
5524  */
5525 tSCC zIp_Missing_SemiList[] =
5526   "netinet/ip.h\0";
5528  *  Machine/OS name selection pattern
5529  */
5530 #define apzIp_Missing_SemiMachs (const char**)NULL
5533  *  content selection pattern - do fix if pattern found
5534  */
5535 tSCC zIp_Missing_SemiSelect0[] =
5536        "}$";
5538 #define    IP_MISSING_SEMI_TEST_CT  1
5539 static tTestDesc aIp_Missing_SemiTests[] = {
5540   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
5543  *  Fix Command Arguments for Ip_Missing_Semi
5544  */
5545 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
5546     "-e", "/^struct/,/^};/s/}$/};/",
5547     (char*)NULL };
5549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5551  *  Description of Irix_Limits_Const fix
5552  */
5553 tSCC zIrix_Limits_ConstName[] =
5554      "irix_limits_const";
5557  *  File name selection pattern
5558  */
5559 tSCC zIrix_Limits_ConstList[] =
5560   "fixinc-test-limits.h\0limits.h\0";
5562  *  Machine/OS name selection pattern
5563  */
5564 #define apzIrix_Limits_ConstMachs (const char**)NULL
5567  *  content selection pattern - do fix if pattern found
5568  */
5569 tSCC zIrix_Limits_ConstSelect0[] =
5570        "^extern const ";
5572 #define    IRIX_LIMITS_CONST_TEST_CT  1
5573 static tTestDesc aIrix_Limits_ConstTests[] = {
5574   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
5577  *  Fix Command Arguments for Irix_Limits_Const
5578  */
5579 static const char* apzIrix_Limits_ConstPatch[] = {
5580     "format",
5581     "extern __const ",
5582     (char*)NULL };
5584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5586  *  Description of Irix_Stdio_Va_List fix
5587  */
5588 tSCC zIrix_Stdio_Va_ListName[] =
5589      "irix_stdio_va_list";
5592  *  File name selection pattern
5593  */
5594 tSCC zIrix_Stdio_Va_ListList[] =
5595   "stdio.h\0";
5597  *  Machine/OS name selection pattern
5598  */
5599 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
5602  *  content selection pattern - do fix if pattern found
5603  */
5604 tSCC zIrix_Stdio_Va_ListSelect0[] =
5605        "/\\* va_list \\*/ char \\*";
5607 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
5608 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5609   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5612  *  Fix Command Arguments for Irix_Stdio_Va_List
5613  */
5614 static const char* apzIrix_Stdio_Va_ListPatch[] = {
5615     "format",
5616     "__gnuc_va_list",
5617     (char*)NULL };
5619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5621  *  Description of Kandr_Concat fix
5622  */
5623 tSCC zKandr_ConcatName[] =
5624      "kandr_concat";
5627  *  File name selection pattern
5628  */
5629 tSCC zKandr_ConcatList[] =
5630   "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";
5632  *  Machine/OS name selection pattern
5633  */
5634 #define apzKandr_ConcatMachs (const char**)NULL
5637  *  content selection pattern - do fix if pattern found
5638  */
5639 tSCC zKandr_ConcatSelect0[] =
5640        "/\\*\\*/";
5642 #define    KANDR_CONCAT_TEST_CT  1
5643 static tTestDesc aKandr_ConcatTests[] = {
5644   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
5647  *  Fix Command Arguments for Kandr_Concat
5648  */
5649 static const char* apzKandr_ConcatPatch[] = {
5650     "format",
5651     "##",
5652     (char*)NULL };
5654 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5656  *  Description of Linux_Ia64_Ucontext fix
5657  */
5658 tSCC zLinux_Ia64_UcontextName[] =
5659      "linux_ia64_ucontext";
5662  *  File name selection pattern
5663  */
5664 tSCC zLinux_Ia64_UcontextList[] =
5665   "sys/ucontext.h\0";
5667  *  Machine/OS name selection pattern
5668  */
5669 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5670         "ia64-*-linux*",
5671         (const char*)NULL };
5674  *  content selection pattern - do fix if pattern found
5675  */
5676 tSCC zLinux_Ia64_UcontextSelect0[] =
5677        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5679 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
5680 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5681   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5684  *  Fix Command Arguments for Linux_Ia64_Ucontext
5685  */
5686 static const char* apzLinux_Ia64_UcontextPatch[] = {
5687     "format",
5688     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5689     (char*)NULL };
5691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5693  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
5694  */
5695 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5696      "lynxos_no_warning_in_sys_time_h";
5699  *  File name selection pattern
5700  */
5701 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5702   "sys/time.h\0";
5704  *  Machine/OS name selection pattern
5705  */
5706 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5709  *  content selection pattern - do fix if pattern found
5710  */
5711 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5712        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5714 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
5715 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5716   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5719  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5720  */
5721 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5722     "format",
5723     "",
5724     (char*)NULL };
5726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5728  *  Description of Lynxos_Missing_Putenv fix
5729  */
5730 tSCC zLynxos_Missing_PutenvName[] =
5731      "lynxos_missing_putenv";
5734  *  File name selection pattern
5735  */
5736 tSCC zLynxos_Missing_PutenvList[] =
5737   "stdlib.h\0";
5739  *  Machine/OS name selection pattern
5740  */
5741 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5742         "*-*-lynxos*",
5743         (const char*)NULL };
5746  *  content selection pattern - do fix if pattern found
5747  */
5748 tSCC zLynxos_Missing_PutenvSelect0[] =
5749        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5752  *  content bypass pattern - skip fix if pattern found
5753  */
5754 tSCC zLynxos_Missing_PutenvBypass0[] =
5755        "putenv[ \\t]*\\(";
5757 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
5758 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5759   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5760   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5763  *  Fix Command Arguments for Lynxos_Missing_Putenv
5764  */
5765 static const char* apzLynxos_Missing_PutenvPatch[] = {
5766     "format",
5767     "%0\n\
5768 extern int putenv\t\t\t\t_AP((char *));",
5769     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5770     (char*)NULL };
5772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5774  *  Description of Machine_Ansi_H_Va_List fix
5775  */
5776 tSCC zMachine_Ansi_H_Va_ListName[] =
5777      "machine_ansi_h_va_list";
5780  *  File name selection pattern
5781  */
5782 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5784  *  Machine/OS name selection pattern
5785  */
5786 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5789  *  content selection pattern - do fix if pattern found
5790  */
5791 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5792        "define[ \t]+_BSD_VA_LIST_[ \t]";
5795  *  content bypass pattern - skip fix if pattern found
5796  */
5797 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5798        "__builtin_va_list";
5800 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5801 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5802   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5803   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5806  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5807  */
5808 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5809     "format",
5810     "%1__builtin_va_list",
5811     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5812     (char*)NULL };
5814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5816  *  Description of Machine_Name fix
5817  */
5818 tSCC zMachine_NameName[] =
5819      "machine_name";
5822  *  File name selection pattern
5823  */
5824 #define zMachine_NameList (char*)NULL
5826  *  Machine/OS name selection pattern
5827  */
5828 #define apzMachine_NameMachs (const char**)NULL
5831  *  perform the C function call test
5832  */
5833 tSCC zMachine_NameFTst0[] = "machine_name";
5835 #define    MACHINE_NAME_TEST_CT  1
5836 static tTestDesc aMachine_NameTests[] = {
5837   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5840  *  Fix Command Arguments for Machine_Name
5841  */
5842 static const char* apzMachine_NamePatch[] = {
5843     "machine_name",
5844     (char*)NULL };
5846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5848  *  Description of Math_Exception fix
5849  */
5850 tSCC zMath_ExceptionName[] =
5851      "math_exception";
5854  *  File name selection pattern
5855  */
5856 tSCC zMath_ExceptionList[] =
5857   "math.h\0";
5859  *  Machine/OS name selection pattern
5860  */
5861 tSCC* apzMath_ExceptionMachs[] = {
5862         "*-*-solaris2.1[0-9]*",
5863         (const char*)NULL };
5866  *  content selection pattern - do fix if pattern found
5867  */
5868 tSCC zMath_ExceptionSelect0[] =
5869        "struct exception";
5872  *  content bypass pattern - skip fix if pattern found
5873  */
5874 tSCC zMath_ExceptionBypass0[] =
5875        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5877 #define    MATH_EXCEPTION_TEST_CT  2
5878 static tTestDesc aMath_ExceptionTests[] = {
5879   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5880   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5883  *  Fix Command Arguments for Math_Exception
5884  */
5885 static const char* apzMath_ExceptionPatch[] = {
5886     "wrap",
5887     "#ifdef __cplusplus\n\
5888 #define exception __math_exception\n\
5889 #endif\n",
5890     "#ifdef __cplusplus\n\
5891 #undef exception\n\
5892 #endif\n",
5893     (char*)NULL };
5895 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5897  *  Description of Math_Huge_Val_From_Dbl_Max fix
5898  */
5899 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5900      "math_huge_val_from_dbl_max";
5903  *  File name selection pattern
5904  */
5905 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5906   "math.h\0";
5908  *  Machine/OS name selection pattern
5909  */
5910 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5913  *  content selection pattern - do fix if pattern found
5914  */
5915 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5916        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5919  *  content bypass pattern - skip fix if pattern found
5920  */
5921 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5922        "define[ \t]+DBL_MAX";
5924 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
5925 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5926   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5927   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5930  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5931  */
5932 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5933     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5934 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5935 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5936 \telse cat\n\
5937 \tfi",
5938     (char*)NULL };
5940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5942  *  Description of Nested_Auth_Des fix
5943  */
5944 tSCC zNested_Auth_DesName[] =
5945      "nested_auth_des";
5948  *  File name selection pattern
5949  */
5950 tSCC zNested_Auth_DesList[] =
5951   "rpc/rpc.h\0";
5953  *  Machine/OS name selection pattern
5954  */
5955 #define apzNested_Auth_DesMachs (const char**)NULL
5958  *  content selection pattern - do fix if pattern found
5959  */
5960 tSCC zNested_Auth_DesSelect0[] =
5961        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5963 #define    NESTED_AUTH_DES_TEST_CT  1
5964 static tTestDesc aNested_Auth_DesTests[] = {
5965   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5968  *  Fix Command Arguments for Nested_Auth_Des
5969  */
5970 static const char* apzNested_Auth_DesPatch[] = {
5971     "format",
5972     "%1*/ /*",
5973     (char*)NULL };
5975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5977  *  Description of Netbsd_C99_Inline_1 fix
5978  */
5979 tSCC zNetbsd_C99_Inline_1Name[] =
5980      "netbsd_c99_inline_1";
5983  *  File name selection pattern
5984  */
5985 tSCC zNetbsd_C99_Inline_1List[] =
5986   "signal.h\0";
5988  *  Machine/OS name selection pattern
5989  */
5990 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5991         "*-*-netbsd*",
5992         (const char*)NULL };
5995  *  content selection pattern - do fix if pattern found
5996  */
5997 tSCC zNetbsd_C99_Inline_1Select0[] =
5998        "extern __inline int";
6000 #define    NETBSD_C99_INLINE_1_TEST_CT  1
6001 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
6002   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
6005  *  Fix Command Arguments for Netbsd_C99_Inline_1
6006  */
6007 static const char* apzNetbsd_C99_Inline_1Patch[] = {
6008     "format",
6009     "extern\n\
6010 #ifdef __GNUC_STDC_INLINE__\n\
6011 __attribute__((__gnu_inline__))\n\
6012 #endif\n\
6013 __inline int",
6014     (char*)NULL };
6016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6018  *  Description of Netbsd_C99_Inline_2 fix
6019  */
6020 tSCC zNetbsd_C99_Inline_2Name[] =
6021      "netbsd_c99_inline_2";
6024  *  File name selection pattern
6025  */
6026 tSCC zNetbsd_C99_Inline_2List[] =
6027   "signal.h\0";
6029  *  Machine/OS name selection pattern
6030  */
6031 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
6032         "*-*-netbsd*",
6033         (const char*)NULL };
6036  *  content selection pattern - do fix if pattern found
6037  */
6038 tSCC zNetbsd_C99_Inline_2Select0[] =
6039        "#define _SIGINLINE extern __inline";
6041 #define    NETBSD_C99_INLINE_2_TEST_CT  1
6042 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
6043   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
6046  *  Fix Command Arguments for Netbsd_C99_Inline_2
6047  */
6048 static const char* apzNetbsd_C99_Inline_2Patch[] = {
6049     "format",
6050     "#ifdef __GNUC_STDC_INLINE__\n\
6051 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
6052 #else\n\
6053 %0\n\
6054 #endif",
6055     (char*)NULL };
6057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6059  *  Description of Netbsd_Extra_Semicolon fix
6060  */
6061 tSCC zNetbsd_Extra_SemicolonName[] =
6062      "netbsd_extra_semicolon";
6065  *  File name selection pattern
6066  */
6067 tSCC zNetbsd_Extra_SemicolonList[] =
6068   "sys/cdefs.h\0";
6070  *  Machine/OS name selection pattern
6071  */
6072 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
6073         "*-*-netbsd*",
6074         (const char*)NULL };
6077  *  content selection pattern - do fix if pattern found
6078  */
6079 tSCC zNetbsd_Extra_SemicolonSelect0[] =
6080        "#define[ \t]*__END_DECLS[ \t]*};";
6082 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
6083 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
6084   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
6087  *  Fix Command Arguments for Netbsd_Extra_Semicolon
6088  */
6089 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
6090     "format",
6091     "#define __END_DECLS }",
6092     (char*)NULL };
6094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6096  *  Description of Newlib_Stdint_1 fix
6097  */
6098 tSCC zNewlib_Stdint_1Name[] =
6099      "newlib_stdint_1";
6102  *  File name selection pattern
6103  */
6104 tSCC zNewlib_Stdint_1List[] =
6105   "stdint-newlib.h\0stdint.h\0";
6107  *  Machine/OS name selection pattern
6108  */
6109 #define apzNewlib_Stdint_1Machs (const char**)NULL
6112  *  content selection pattern - do fix if pattern found
6113  */
6114 tSCC zNewlib_Stdint_1Select0[] =
6115        "@todo - Add support for wint_t types";
6117 #define    NEWLIB_STDINT_1_TEST_CT  1
6118 static tTestDesc aNewlib_Stdint_1Tests[] = {
6119   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
6122  *  Fix Command Arguments for Newlib_Stdint_1
6123  */
6124 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
6125     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
6126     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
6127     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
6128     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
6129     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
6130     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
6131     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
6132     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
6133     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
6134     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
6135     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
6136     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
6137     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
6138     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
6139     (char*)NULL };
6141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6143  *  Description of Newlib_Stdint_2 fix
6144  */
6145 tSCC zNewlib_Stdint_2Name[] =
6146      "newlib_stdint_2";
6149  *  File name selection pattern
6150  */
6151 tSCC zNewlib_Stdint_2List[] =
6152   "stdint-newlib.h\0stdint.h\0";
6154  *  Machine/OS name selection pattern
6155  */
6156 #define apzNewlib_Stdint_2Machs (const char**)NULL
6159  *  content selection pattern - do fix if pattern found
6160  */
6161 tSCC zNewlib_Stdint_2Select0[] =
6162        "@todo - Add support for wint_t types";
6164 #define    NEWLIB_STDINT_2_TEST_CT  1
6165 static tTestDesc aNewlib_Stdint_2Tests[] = {
6166   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
6169  *  Fix Command Arguments for Newlib_Stdint_2
6170  */
6171 static const char* apzNewlib_Stdint_2Patch[] = {
6172     "format",
6173     "#define INTMAX_MAX __INTMAX_MAX__\n\
6174 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
6175 #define UINTMAX_MAX __UINTMAX_MAX__\n\
6176 #define WCHAR_MAX __WCHAR_MAX__\n\
6177 #define WCHAR_MIN __WCHAR_MIN__\n\
6178 #define WINT_MAX __WINT_MAX__\n\
6179 #define WINT_MIN __WINT_MIN__\n\n\
6180 %0",
6181     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
6182     (char*)NULL };
6184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6186  *  Description of Next_Math_Prefix fix
6187  */
6188 tSCC zNext_Math_PrefixName[] =
6189      "next_math_prefix";
6192  *  File name selection pattern
6193  */
6194 tSCC zNext_Math_PrefixList[] =
6195   "ansi/math.h\0";
6197  *  Machine/OS name selection pattern
6198  */
6199 #define apzNext_Math_PrefixMachs (const char**)NULL
6202  *  content selection pattern - do fix if pattern found
6203  */
6204 tSCC zNext_Math_PrefixSelect0[] =
6205        "^extern[ \t]+double[ \t]+__const__[ \t]";
6207 #define    NEXT_MATH_PREFIX_TEST_CT  1
6208 static tTestDesc aNext_Math_PrefixTests[] = {
6209   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
6212  *  Fix Command Arguments for Next_Math_Prefix
6213  */
6214 static const char* apzNext_Math_PrefixPatch[] = {
6215     "format",
6216     "extern double %1(",
6217     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
6218     (char*)NULL };
6220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6222  *  Description of Next_Template fix
6223  */
6224 tSCC zNext_TemplateName[] =
6225      "next_template";
6228  *  File name selection pattern
6229  */
6230 tSCC zNext_TemplateList[] =
6231   "bsd/libc.h\0";
6233  *  Machine/OS name selection pattern
6234  */
6235 #define apzNext_TemplateMachs (const char**)NULL
6238  *  content selection pattern - do fix if pattern found
6239  */
6240 tSCC zNext_TemplateSelect0[] =
6241        "[ \t]template\\)";
6243 #define    NEXT_TEMPLATE_TEST_CT  1
6244 static tTestDesc aNext_TemplateTests[] = {
6245   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
6248  *  Fix Command Arguments for Next_Template
6249  */
6250 static const char* apzNext_TemplatePatch[] = {
6251     "format",
6252     "(%1)",
6253     "\\(([^)]*)[ \t]template\\)",
6254     (char*)NULL };
6256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6258  *  Description of Next_Volitile fix
6259  */
6260 tSCC zNext_VolitileName[] =
6261      "next_volitile";
6264  *  File name selection pattern
6265  */
6266 tSCC zNext_VolitileList[] =
6267   "ansi/stdlib.h\0";
6269  *  Machine/OS name selection pattern
6270  */
6271 #define apzNext_VolitileMachs (const char**)NULL
6274  *  content selection pattern - do fix if pattern found
6275  */
6276 tSCC zNext_VolitileSelect0[] =
6277        "^extern[ \t]+volatile[ \t]+void[ \t]";
6279 #define    NEXT_VOLITILE_TEST_CT  1
6280 static tTestDesc aNext_VolitileTests[] = {
6281   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
6284  *  Fix Command Arguments for Next_Volitile
6285  */
6286 static const char* apzNext_VolitilePatch[] = {
6287     "format",
6288     "extern void %1(",
6289     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
6290     (char*)NULL };
6292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6294  *  Description of Next_Wait_Union fix
6295  */
6296 tSCC zNext_Wait_UnionName[] =
6297      "next_wait_union";
6300  *  File name selection pattern
6301  */
6302 tSCC zNext_Wait_UnionList[] =
6303   "sys/wait.h\0";
6305  *  Machine/OS name selection pattern
6306  */
6307 #define apzNext_Wait_UnionMachs (const char**)NULL
6310  *  content selection pattern - do fix if pattern found
6311  */
6312 tSCC zNext_Wait_UnionSelect0[] =
6313        "wait\\(union wait";
6315 #define    NEXT_WAIT_UNION_TEST_CT  1
6316 static tTestDesc aNext_Wait_UnionTests[] = {
6317   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
6320  *  Fix Command Arguments for Next_Wait_Union
6321  */
6322 static const char* apzNext_Wait_UnionPatch[] = {
6323     "format",
6324     "wait(void",
6325     (char*)NULL };
6327 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6329  *  Description of Nodeent_Syntax fix
6330  */
6331 tSCC zNodeent_SyntaxName[] =
6332      "nodeent_syntax";
6335  *  File name selection pattern
6336  */
6337 tSCC zNodeent_SyntaxList[] =
6338   "netdnet/dnetdb.h\0";
6340  *  Machine/OS name selection pattern
6341  */
6342 #define apzNodeent_SyntaxMachs (const char**)NULL
6345  *  content selection pattern - do fix if pattern found
6346  */
6347 tSCC zNodeent_SyntaxSelect0[] =
6348        "char[ \t]*\\*na_addr[ \t]*$";
6350 #define    NODEENT_SYNTAX_TEST_CT  1
6351 static tTestDesc aNodeent_SyntaxTests[] = {
6352   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
6355  *  Fix Command Arguments for Nodeent_Syntax
6356  */
6357 static const char* apzNodeent_SyntaxPatch[] = {
6358     "format",
6359     "%0;",
6360     (char*)NULL };
6362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6364  *  Description of Openbsd_Null_Definition fix
6365  */
6366 tSCC zOpenbsd_Null_DefinitionName[] =
6367      "openbsd_null_definition";
6370  *  File name selection pattern
6371  */
6372 tSCC zOpenbsd_Null_DefinitionList[] =
6373   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
6375  *  Machine/OS name selection pattern
6376  */
6377 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
6378         "*-*-openbsd*",
6379         (const char*)NULL };
6382  *  content selection pattern - do fix if pattern found
6383  */
6384 tSCC zOpenbsd_Null_DefinitionSelect0[] =
6385        "__GNUG__";
6387 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
6388 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
6389   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
6392  *  Fix Command Arguments for Openbsd_Null_Definition
6393  */
6394 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
6395     "format",
6396     "#ifndef NULL\n\
6397 #ifdef __cplusplus\n\
6398 #ifdef __GNUG__\n\
6399 #define NULL\t__null\n\
6400 #else\t /* ! __GNUG__  */\n\
6401 #define NULL\t0L\n\
6402 #endif\t /* __GNUG__  */\n\
6403 #else\t /* ! __cplusplus  */\n\
6404 #define NULL\t((void *)0)\n\
6405 #endif\t /* __cplusplus  */\n\
6406 #endif\t /* !NULL  */",
6407     "^#ifndef[ \t]*NULL\n\
6408 ^#ifdef[ \t]*__GNUG__\n\
6409 ^#define[ \t]*NULL[ \t]*__null\n\
6410 ^#else\n\
6411 ^#define[ \t]*NULL[ \t]*0L\n\
6412 ^#endif\n\
6413 ^#endif",
6414     (char*)NULL };
6416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6418  *  Description of Obstack_Lvalue_Cast fix
6419  */
6420 tSCC zObstack_Lvalue_CastName[] =
6421      "obstack_lvalue_cast";
6424  *  File name selection pattern
6425  */
6426 tSCC zObstack_Lvalue_CastList[] =
6427   "obstack.h\0";
6429  *  Machine/OS name selection pattern
6430  */
6431 #define apzObstack_Lvalue_CastMachs (const char**)NULL
6434  *  content selection pattern - do fix if pattern found
6435  */
6436 tSCC zObstack_Lvalue_CastSelect0[] =
6437        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
6439 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
6440 static tTestDesc aObstack_Lvalue_CastTests[] = {
6441   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
6444  *  Fix Command Arguments for Obstack_Lvalue_Cast
6445  */
6446 static const char* apzObstack_Lvalue_CastPatch[] = {
6447     "format",
6448     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
6449     (char*)NULL };
6451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6453  *  Description of Openbsd_Va_Start fix
6454  */
6455 tSCC zOpenbsd_Va_StartName[] =
6456      "openbsd_va_start";
6459  *  File name selection pattern
6460  */
6461 tSCC zOpenbsd_Va_StartList[] =
6462   "stdarg.h\0";
6464  *  Machine/OS name selection pattern
6465  */
6466 tSCC* apzOpenbsd_Va_StartMachs[] = {
6467         "*-*-openbsd*",
6468         (const char*)NULL };
6471  *  content selection pattern - do fix if pattern found
6472  */
6473 tSCC zOpenbsd_Va_StartSelect0[] =
6474        "__builtin_stdarg_start";
6476 #define    OPENBSD_VA_START_TEST_CT  1
6477 static tTestDesc aOpenbsd_Va_StartTests[] = {
6478   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
6481  *  Fix Command Arguments for Openbsd_Va_Start
6482  */
6483 static const char* apzOpenbsd_Va_StartPatch[] = {
6484     "format",
6485     "__builtin_va_start",
6486     (char*)NULL };
6488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6490  *  Description of Osf_Namespace_A fix
6491  */
6492 tSCC zOsf_Namespace_AName[] =
6493      "osf_namespace_a";
6496  *  File name selection pattern
6497  */
6498 tSCC zOsf_Namespace_AList[] =
6499   "reg_types.h\0sys/lc_core.h\0";
6501  *  Machine/OS name selection pattern
6502  */
6503 #define apzOsf_Namespace_AMachs (const char**)NULL
6506  *  perform the 'test' shell command - do fix on success
6507  */
6508 tSCC zOsf_Namespace_ATest0[] =
6509        " -r reg_types.h";
6510 tSCC zOsf_Namespace_ATest1[] =
6511        " -r sys/lc_core.h";
6512 tSCC zOsf_Namespace_ATest2[] =
6513        " -n \"`grep '} regex_t;' reg_types.h`\"";
6514 tSCC zOsf_Namespace_ATest3[] =
6515        " -z \"`grep __regex_t regex.h`\"";
6517 #define    OSF_NAMESPACE_A_TEST_CT  4
6518 static tTestDesc aOsf_Namespace_ATests[] = {
6519   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
6520   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
6521   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
6522   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
6525  *  Fix Command Arguments for Osf_Namespace_A
6526  */
6527 static const char* apzOsf_Namespace_APatch[] = {
6528     "format",
6529     "__%0",
6530     "reg(ex|off|match)_t",
6531     (char*)NULL };
6533 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6535  *  Description of Osf_Namespace_C fix
6536  */
6537 tSCC zOsf_Namespace_CName[] =
6538      "osf_namespace_c";
6541  *  File name selection pattern
6542  */
6543 tSCC zOsf_Namespace_CList[] =
6544   "regex.h\0";
6546  *  Machine/OS name selection pattern
6547  */
6548 #define apzOsf_Namespace_CMachs (const char**)NULL
6551  *  content selection pattern - do fix if pattern found
6552  */
6553 tSCC zOsf_Namespace_CSelect0[] =
6554        "#include <reg_types.h>.*";
6557  *  perform the 'test' shell command - do fix on success
6558  */
6559 tSCC zOsf_Namespace_CTest0[] =
6560        " -r reg_types.h";
6561 tSCC zOsf_Namespace_CTest1[] =
6562        " -r sys/lc_core.h";
6563 tSCC zOsf_Namespace_CTest2[] =
6564        " -n \"`grep '} regex_t;' reg_types.h`\"";
6565 tSCC zOsf_Namespace_CTest3[] =
6566        " -z \"`grep __regex_t regex.h`\"";
6568 #define    OSF_NAMESPACE_C_TEST_CT  5
6569 static tTestDesc aOsf_Namespace_CTests[] = {
6570   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
6571   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
6572   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
6573   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
6574   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
6577  *  Fix Command Arguments for Osf_Namespace_C
6578  */
6579 static const char* apzOsf_Namespace_CPatch[] = {
6580     "format",
6581     "%0\n\
6582 typedef __regex_t\tregex_t;\n\
6583 typedef __regoff_t\tregoff_t;\n\
6584 typedef __regmatch_t\tregmatch_t;",
6585     (char*)NULL };
6587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6589  *  Description of Pthread_Incomplete_Struct_Argument fix
6590  */
6591 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
6592      "pthread_incomplete_struct_argument";
6595  *  File name selection pattern
6596  */
6597 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
6598   "pthread.h\0";
6600  *  Machine/OS name selection pattern
6601  */
6602 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6605  *  content selection pattern - do fix if pattern found
6606  */
6607 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6608        "struct __jmp_buf_tag";
6610 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
6611 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6612   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6615  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6616  */
6617 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6618     "format",
6619     "%1 *%2%3",
6620     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6621     (char*)NULL };
6623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6625  *  Description of Read_Ret_Type fix
6626  */
6627 tSCC zRead_Ret_TypeName[] =
6628      "read_ret_type";
6631  *  File name selection pattern
6632  */
6633 tSCC zRead_Ret_TypeList[] =
6634   "stdio.h\0";
6636  *  Machine/OS name selection pattern
6637  */
6638 #define apzRead_Ret_TypeMachs (const char**)NULL
6641  *  content selection pattern - do fix if pattern found
6642  */
6643 tSCC zRead_Ret_TypeSelect0[] =
6644        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6646 #define    READ_RET_TYPE_TEST_CT  1
6647 static tTestDesc aRead_Ret_TypeTests[] = {
6648   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6651  *  Fix Command Arguments for Read_Ret_Type
6652  */
6653 static const char* apzRead_Ret_TypePatch[] = {
6654     "format",
6655     "extern unsigned int fread(), fwrite();\n\
6656 %1%2",
6657     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6658     (char*)NULL };
6660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6662  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
6663  */
6664 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6665      "rpc_xdr_lvalue_cast_a";
6668  *  File name selection pattern
6669  */
6670 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6671   "rpc/xdr.h\0";
6673  *  Machine/OS name selection pattern
6674  */
6675 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6678  *  content selection pattern - do fix if pattern found
6679  */
6680 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6681        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6682 .*__extension__.*";
6684 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
6685 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6686   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6689  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6690  */
6691 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6692     "format",
6693     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6694     (char*)NULL };
6696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6698  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
6699  */
6700 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6701      "rpc_xdr_lvalue_cast_b";
6704  *  File name selection pattern
6705  */
6706 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6707   "rpc/xdr.h\0";
6709  *  Machine/OS name selection pattern
6710  */
6711 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6714  *  content selection pattern - do fix if pattern found
6715  */
6716 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6717        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6718 .*__extension__.*";
6720 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
6721 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6722   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6725  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6726  */
6727 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6728     "format",
6729     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6730     (char*)NULL };
6732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6734  *  Description of Rs6000_Double fix
6735  */
6736 tSCC zRs6000_DoubleName[] =
6737      "rs6000_double";
6740  *  File name selection pattern
6741  */
6742 tSCC zRs6000_DoubleList[] =
6743   "math.h\0";
6745  *  Machine/OS name selection pattern
6746  */
6747 #define apzRs6000_DoubleMachs (const char**)NULL
6750  *  content selection pattern - do fix if pattern found
6751  */
6752 tSCC zRs6000_DoubleSelect0[] =
6753        "[^a-zA-Z_]class\\(";
6755 #define    RS6000_DOUBLE_TEST_CT  1
6756 static tTestDesc aRs6000_DoubleTests[] = {
6757   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6760  *  Fix Command Arguments for Rs6000_Double
6761  */
6762 static const char* apzRs6000_DoublePatch[] = {
6763     "format",
6764     "#ifndef __cplusplus\n\
6765 %0\n\
6766 #endif",
6767     "^.*[^a-zA-Z_]class\\(.*",
6768     (char*)NULL };
6770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6772  *  Description of Rs6000_Fchmod fix
6773  */
6774 tSCC zRs6000_FchmodName[] =
6775      "rs6000_fchmod";
6778  *  File name selection pattern
6779  */
6780 tSCC zRs6000_FchmodList[] =
6781   "sys/stat.h\0";
6783  *  Machine/OS name selection pattern
6784  */
6785 #define apzRs6000_FchmodMachs (const char**)NULL
6788  *  content selection pattern - do fix if pattern found
6789  */
6790 tSCC zRs6000_FchmodSelect0[] =
6791        "fchmod\\(char \\*";
6793 #define    RS6000_FCHMOD_TEST_CT  1
6794 static tTestDesc aRs6000_FchmodTests[] = {
6795   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6798  *  Fix Command Arguments for Rs6000_Fchmod
6799  */
6800 static const char* apzRs6000_FchmodPatch[] = {
6801     "format",
6802     "fchmod(int",
6803     (char*)NULL };
6805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6807  *  Description of Rs6000_Param fix
6808  */
6809 tSCC zRs6000_ParamName[] =
6810      "rs6000_param";
6813  *  File name selection pattern
6814  */
6815 tSCC zRs6000_ParamList[] =
6816   "stdio.h\0unistd.h\0";
6818  *  Machine/OS name selection pattern
6819  */
6820 #define apzRs6000_ParamMachs (const char**)NULL
6823  *  content selection pattern - do fix if pattern found
6824  */
6825 tSCC zRs6000_ParamSelect0[] =
6826        "rename\\(const char \\*old, const char \\*new\\)";
6828 #define    RS6000_PARAM_TEST_CT  1
6829 static tTestDesc aRs6000_ParamTests[] = {
6830   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6833  *  Fix Command Arguments for Rs6000_Param
6834  */
6835 static const char* apzRs6000_ParamPatch[] = {
6836     "format",
6837     "rename(const char *_old, const char *_new)",
6838     (char*)NULL };
6840 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6842  *  Description of Solaris___Restrict fix
6843  */
6844 tSCC zSolaris___RestrictName[] =
6845      "solaris___restrict";
6848  *  File name selection pattern
6849  */
6850 tSCC zSolaris___RestrictList[] =
6851   "sys/feature_tests.h\0";
6853  *  Machine/OS name selection pattern
6854  */
6855 tSCC* apzSolaris___RestrictMachs[] = {
6856         "*-*-solaris2*",
6857         (const char*)NULL };
6860  *  content selection pattern - do fix if pattern found
6861  */
6862 tSCC zSolaris___RestrictSelect0[] =
6863        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6865 #define    SOLARIS___RESTRICT_TEST_CT  1
6866 static tTestDesc aSolaris___RestrictTests[] = {
6867   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6870  *  Fix Command Arguments for Solaris___Restrict
6871  */
6872 static const char* apzSolaris___RestrictPatch[] = {
6873     "format",
6874     "#ifdef __cplusplus\n\
6875 #define\t_RESTRICT_KYWD\t__restrict\n\
6876 #else\n\
6877 %0\n\
6878 #endif",
6879     (char*)NULL };
6881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6883  *  Description of Solaris_Complex fix
6884  */
6885 tSCC zSolaris_ComplexName[] =
6886      "solaris_complex";
6889  *  File name selection pattern
6890  */
6891 tSCC zSolaris_ComplexList[] =
6892   "complex.h\0";
6894  *  Machine/OS name selection pattern
6895  */
6896 tSCC* apzSolaris_ComplexMachs[] = {
6897         "*-*-solaris2.*",
6898         (const char*)NULL };
6901  *  content selection pattern - do fix if pattern found
6902  */
6903 tSCC zSolaris_ComplexSelect0[] =
6904        "#define[ \t]_Complex_I[ \t]_Complex_I";
6906 #define    SOLARIS_COMPLEX_TEST_CT  1
6907 static tTestDesc aSolaris_ComplexTests[] = {
6908   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6911  *  Fix Command Arguments for Solaris_Complex
6912  */
6913 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6914     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6915     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6916     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6917     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6918     (char*)NULL };
6920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6922  *  Description of Solaris_Complex_Cxx fix
6923  */
6924 tSCC zSolaris_Complex_CxxName[] =
6925      "solaris_complex_cxx";
6928  *  File name selection pattern
6929  */
6930 tSCC zSolaris_Complex_CxxList[] =
6931   "complex.h\0";
6933  *  Machine/OS name selection pattern
6934  */
6935 tSCC* apzSolaris_Complex_CxxMachs[] = {
6936         "*-*-solaris2.*",
6937         (const char*)NULL };
6938 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
6939 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
6942  *  Fix Command Arguments for Solaris_Complex_Cxx
6943  */
6944 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6945     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6946 #ifdef\t__cplusplus\\\n\
6947 extern \"C\" {\\\n\
6948 #endif",
6949     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6950 #ifdef\t__cplusplus\\\n\
6951 }\\\n\
6952 #endif",
6953     (char*)NULL };
6955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6957  *  Description of Solaris_Cxx_Linkage fix
6958  */
6959 tSCC zSolaris_Cxx_LinkageName[] =
6960      "solaris_cxx_linkage";
6963  *  File name selection pattern
6964  */
6965 tSCC zSolaris_Cxx_LinkageList[] =
6966   "iso/stdlib_iso.h\0";
6968  *  Machine/OS name selection pattern
6969  */
6970 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6971         "*-*-solaris2*",
6972         (const char*)NULL };
6975  *  content selection pattern - do fix if pattern found
6976  */
6977 tSCC zSolaris_Cxx_LinkageSelect0[] =
6978        "(#if __cplusplus >= 199711L)\n\
6979 (extern \"C\\+\\+\" \\{\n\
6980 )(.*(bsearch|qsort).*)";
6982 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
6983 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6984   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6987  *  Fix Command Arguments for Solaris_Cxx_Linkage
6988  */
6989 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6990     "format",
6991     "%1 && !__GNUG__\n\
6992 %2%3",
6993     (char*)NULL };
6995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6997  *  Description of Solaris_Getc_Strict_Stdc fix
6998  */
6999 tSCC zSolaris_Getc_Strict_StdcName[] =
7000      "solaris_getc_strict_stdc";
7003  *  File name selection pattern
7004  */
7005 tSCC zSolaris_Getc_Strict_StdcList[] =
7006   "iso/stdio_iso.h\0";
7008  *  Machine/OS name selection pattern
7009  */
7010 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
7011         "*-*-solaris2*",
7012         (const char*)NULL };
7015  *  content selection pattern - do fix if pattern found
7016  */
7017 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
7018        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
7020 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
7021 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
7022   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
7025  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
7026  */
7027 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
7028     "format",
7029     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
7030     (char*)NULL };
7032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7034  *  Description of Solaris_Gets_C11 fix
7035  */
7036 tSCC zSolaris_Gets_C11Name[] =
7037      "solaris_gets_c11";
7040  *  File name selection pattern
7041  */
7042 tSCC zSolaris_Gets_C11List[] =
7043   "iso/stdio_iso.h\0";
7045  *  Machine/OS name selection pattern
7046  */
7047 tSCC* apzSolaris_Gets_C11Machs[] = {
7048         "*-*-solaris2*",
7049         (const char*)NULL };
7052  *  content selection pattern - do fix if pattern found
7053  */
7054 tSCC zSolaris_Gets_C11Select0[] =
7055        "(extern char[ \t]*\\*gets\\(char \\*\\));";
7057 #define    SOLARIS_GETS_C11_TEST_CT  1
7058 static tTestDesc aSolaris_Gets_C11Tests[] = {
7059   { TT_EGREP,    zSolaris_Gets_C11Select0, (regex_t*)NULL }, };
7062  *  Fix Command Arguments for Solaris_Gets_C11
7063  */
7064 static const char* apzSolaris_Gets_C11Patch[] = {
7065     "format",
7066     "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\
7067 %1 __attribute__((__deprecated__));\n\
7068 #endif",
7069     (char*)NULL };
7071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7073  *  Description of Solaris_Gets_Cxx14 fix
7074  */
7075 tSCC zSolaris_Gets_Cxx14Name[] =
7076      "solaris_gets_cxx14";
7079  *  File name selection pattern
7080  */
7081 tSCC zSolaris_Gets_Cxx14List[] =
7082   "iso/stdio_iso.h\0";
7084  *  Machine/OS name selection pattern
7085  */
7086 tSCC* apzSolaris_Gets_Cxx14Machs[] = {
7087         "*-*-solaris2*",
7088         (const char*)NULL };
7091  *  content selection pattern - do fix if pattern found
7092  */
7093 tSCC zSolaris_Gets_Cxx14Select0[] =
7094        "(#if __STDC_VERSION__ < 201112L)\n\
7095 (extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)";
7097 #define    SOLARIS_GETS_CXX14_TEST_CT  1
7098 static tTestDesc aSolaris_Gets_Cxx14Tests[] = {
7099   { TT_EGREP,    zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, };
7102  *  Fix Command Arguments for Solaris_Gets_Cxx14
7103  */
7104 static const char* apzSolaris_Gets_Cxx14Patch[] = {
7105     "format",
7106     "%1 && __cplusplus < 201402L\n\
7107 %2",
7108     (char*)NULL };
7110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7112  *  Description of Solaris_Int_Const fix
7113  */
7114 tSCC zSolaris_Int_ConstName[] =
7115      "solaris_int_const";
7118  *  File name selection pattern
7119  */
7120 tSCC zSolaris_Int_ConstList[] =
7121   "sys/int_const.h\0";
7123  *  Machine/OS name selection pattern
7124  */
7125 tSCC* apzSolaris_Int_ConstMachs[] = {
7126         "*-*-solaris2*",
7127         (const char*)NULL };
7130  *  content selection pattern - do fix if pattern found
7131  */
7132 tSCC zSolaris_Int_ConstSelect0[] =
7133        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7134 (/*.**/)\n\
7135 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7137 #define    SOLARIS_INT_CONST_TEST_CT  1
7138 static tTestDesc aSolaris_Int_ConstTests[] = {
7139   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7142  *  Fix Command Arguments for Solaris_Int_Const
7143  */
7144 static const char* apzSolaris_Int_ConstPatch[] = {
7145     "format",
7146     "#define\tUINT8_C(c)\t(c)\n\
7147 %1\n\
7148 #define\tUINT16_C(c)\t(c)",
7149     (char*)NULL };
7151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7153  *  Description of Solaris_Int_Limits_1 fix
7154  */
7155 tSCC zSolaris_Int_Limits_1Name[] =
7156      "solaris_int_limits_1";
7159  *  File name selection pattern
7160  */
7161 tSCC zSolaris_Int_Limits_1List[] =
7162   "sys/int_limits.h\0";
7164  *  Machine/OS name selection pattern
7165  */
7166 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7167         "*-*-solaris2*",
7168         (const char*)NULL };
7171  *  content selection pattern - do fix if pattern found
7172  */
7173 tSCC zSolaris_Int_Limits_1Select0[] =
7174        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7175 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7177 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
7178 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7179   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7182  *  Fix Command Arguments for Solaris_Int_Limits_1
7183  */
7184 static const char* apzSolaris_Int_Limits_1Patch[] = {
7185     "format",
7186     "#define\tUINT8_MAX\t(255)\n\
7187 #define\tUINT16_MAX\t(65535)",
7188     (char*)NULL };
7190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7192  *  Description of Solaris_Int_Limits_2 fix
7193  */
7194 tSCC zSolaris_Int_Limits_2Name[] =
7195      "solaris_int_limits_2";
7198  *  File name selection pattern
7199  */
7200 tSCC zSolaris_Int_Limits_2List[] =
7201   "sys/int_limits.h\0";
7203  *  Machine/OS name selection pattern
7204  */
7205 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7206         "*-*-solaris2*",
7207         (const char*)NULL };
7210  *  content selection pattern - do fix if pattern found
7211  */
7212 tSCC zSolaris_Int_Limits_2Select0[] =
7213        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7215 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
7216 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7217   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7220  *  Fix Command Arguments for Solaris_Int_Limits_2
7221  */
7222 static const char* apzSolaris_Int_Limits_2Patch[] = {
7223     "format",
7224     "#define\t%1_FAST16_%2 %132_%2",
7225     (char*)NULL };
7227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7229  *  Description of Solaris_Int_Limits_3 fix
7230  */
7231 tSCC zSolaris_Int_Limits_3Name[] =
7232      "solaris_int_limits_3";
7235  *  File name selection pattern
7236  */
7237 tSCC zSolaris_Int_Limits_3List[] =
7238   "sys/int_limits.h\0";
7240  *  Machine/OS name selection pattern
7241  */
7242 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7243         "*-*-solaris2*",
7244         (const char*)NULL };
7247  *  content selection pattern - do fix if pattern found
7248  */
7249 tSCC zSolaris_Int_Limits_3Select0[] =
7250        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7252 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
7253 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7254   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7257  *  Fix Command Arguments for Solaris_Int_Limits_3
7258  */
7259 static const char* apzSolaris_Int_Limits_3Patch[] = {
7260     "format",
7261     "#define\tSIZE_MAX\t4294967295U",
7262     (char*)NULL };
7264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7266  *  Description of Solaris_Math_1 fix
7267  */
7268 tSCC zSolaris_Math_1Name[] =
7269      "solaris_math_1";
7272  *  File name selection pattern
7273  */
7274 tSCC zSolaris_Math_1List[] =
7275   "iso/math_c99.h\0";
7277  *  Machine/OS name selection pattern
7278  */
7279 #define apzSolaris_Math_1Machs (const char**)NULL
7282  *  content selection pattern - do fix if pattern found
7283  */
7284 tSCC zSolaris_Math_1Select0[] =
7285        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7288  *  content bypass pattern - skip fix if pattern found
7289  */
7290 tSCC zSolaris_Math_1Bypass0[] =
7291        "__GNUC__";
7293 #define    SOLARIS_MATH_1_TEST_CT  2
7294 static tTestDesc aSolaris_Math_1Tests[] = {
7295   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
7296   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
7299  *  Fix Command Arguments for Solaris_Math_1
7300  */
7301 static const char* apzSolaris_Math_1Patch[] = {
7302     "format",
7303     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
7304     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
7305     (char*)NULL };
7307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7309  *  Description of Solaris_Math_10 fix
7310  */
7311 tSCC zSolaris_Math_10Name[] =
7312      "solaris_math_10";
7315  *  File name selection pattern
7316  */
7317 tSCC zSolaris_Math_10List[] =
7318   "iso/math_c99.h\0";
7320  *  Machine/OS name selection pattern
7321  */
7322 #define apzSolaris_Math_10Machs (const char**)NULL
7325  *  content selection pattern - do fix if pattern found
7326  */
7327 tSCC zSolaris_Math_10Select0[] =
7328        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7330 #define    SOLARIS_MATH_10_TEST_CT  1
7331 static tTestDesc aSolaris_Math_10Tests[] = {
7332   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
7335  *  Fix Command Arguments for Solaris_Math_10
7336  */
7337 static const char* apzSolaris_Math_10Patch[] = {
7338     "format",
7339     "#define\tisinf(x) __builtin_isinf(x)",
7340     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
7341 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7342 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
7343 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
7344     (char*)NULL };
7346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7348  *  Description of Solaris_Math_2 fix
7349  */
7350 tSCC zSolaris_Math_2Name[] =
7351      "solaris_math_2";
7354  *  File name selection pattern
7355  */
7356 tSCC zSolaris_Math_2List[] =
7357   "iso/math_c99.h\0";
7359  *  Machine/OS name selection pattern
7360  */
7361 #define apzSolaris_Math_2Machs (const char**)NULL
7364  *  content selection pattern - do fix if pattern found
7365  */
7366 tSCC zSolaris_Math_2Select0[] =
7367        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7370  *  content bypass pattern - skip fix if pattern found
7371  */
7372 tSCC zSolaris_Math_2Bypass0[] =
7373        "__GNUC__";
7375 #define    SOLARIS_MATH_2_TEST_CT  2
7376 static tTestDesc aSolaris_Math_2Tests[] = {
7377   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
7378   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
7381  *  Fix Command Arguments for Solaris_Math_2
7382  */
7383 static const char* apzSolaris_Math_2Patch[] = {
7384     "format",
7385     "#define\tINFINITY\t(__builtin_inff())",
7386     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
7387     (char*)NULL };
7389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7391  *  Description of Solaris_Math_3 fix
7392  */
7393 tSCC zSolaris_Math_3Name[] =
7394      "solaris_math_3";
7397  *  File name selection pattern
7398  */
7399 tSCC zSolaris_Math_3List[] =
7400   "iso/math_c99.h\0";
7402  *  Machine/OS name selection pattern
7403  */
7404 #define apzSolaris_Math_3Machs (const char**)NULL
7407  *  content selection pattern - do fix if pattern found
7408  */
7409 tSCC zSolaris_Math_3Select0[] =
7410        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7413  *  content bypass pattern - skip fix if pattern found
7414  */
7415 tSCC zSolaris_Math_3Bypass0[] =
7416        "__GNUC__";
7418 #define    SOLARIS_MATH_3_TEST_CT  2
7419 static tTestDesc aSolaris_Math_3Tests[] = {
7420   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
7421   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
7424  *  Fix Command Arguments for Solaris_Math_3
7425  */
7426 static const char* apzSolaris_Math_3Patch[] = {
7427     "format",
7428     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
7429     "^#define[ \t]+NAN[ \t]+__builtin_nan",
7430     (char*)NULL };
7432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7434  *  Description of Solaris_Math_4 fix
7435  */
7436 tSCC zSolaris_Math_4Name[] =
7437      "solaris_math_4";
7440  *  File name selection pattern
7441  */
7442 tSCC zSolaris_Math_4List[] =
7443   "iso/math_c99.h\0";
7445  *  Machine/OS name selection pattern
7446  */
7447 #define apzSolaris_Math_4Machs (const char**)NULL
7450  *  content selection pattern - do fix if pattern found
7451  */
7452 tSCC zSolaris_Math_4Select0[] =
7453        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7456  *  content bypass pattern - skip fix if pattern found
7457  */
7458 tSCC zSolaris_Math_4Bypass0[] =
7459        "__GNUC__";
7461 #define    SOLARIS_MATH_4_TEST_CT  2
7462 static tTestDesc aSolaris_Math_4Tests[] = {
7463   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
7464   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
7467  *  Fix Command Arguments for Solaris_Math_4
7468  */
7469 static const char* apzSolaris_Math_4Patch[] = {
7470     "format",
7471     "#define\tfpclassify(x) \\\n\
7472   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
7473     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
7474     (char*)NULL };
7476 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7478  *  Description of Solaris_Math_8 fix
7479  */
7480 tSCC zSolaris_Math_8Name[] =
7481      "solaris_math_8";
7484  *  File name selection pattern
7485  */
7486 tSCC zSolaris_Math_8List[] =
7487   "iso/math_c99.h\0";
7489  *  Machine/OS name selection pattern
7490  */
7491 #define apzSolaris_Math_8Machs (const char**)NULL
7494  *  content selection pattern - do fix if pattern found
7495  */
7496 tSCC zSolaris_Math_8Select0[] =
7497        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
7500  *  content bypass pattern - skip fix if pattern found
7501  */
7502 tSCC zSolaris_Math_8Bypass0[] =
7503        "__GNUC__";
7505 #define    SOLARIS_MATH_8_TEST_CT  2
7506 static tTestDesc aSolaris_Math_8Tests[] = {
7507   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
7508   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
7511  *  Fix Command Arguments for Solaris_Math_8
7512  */
7513 static const char* apzSolaris_Math_8Patch[] = {
7514     "format",
7515     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7516 \t\t\t   ? __builtin_signbitf(x) \\\n\
7517 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
7518 \t\t\t     ? __builtin_signbitl(x) \\\n\
7519 \t\t\t     : __builtin_signbit(x))",
7520     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
7521     (char*)NULL };
7523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7525  *  Description of Solaris_Math_9 fix
7526  */
7527 tSCC zSolaris_Math_9Name[] =
7528      "solaris_math_9";
7531  *  File name selection pattern
7532  */
7533 tSCC zSolaris_Math_9List[] =
7534   "iso/math_c99.h\0";
7536  *  Machine/OS name selection pattern
7537  */
7538 #define apzSolaris_Math_9Machs (const char**)NULL
7541  *  content selection pattern - do fix if pattern found
7542  */
7543 tSCC zSolaris_Math_9Select0[] =
7544        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7547  *  content bypass pattern - skip fix if pattern found
7548  */
7549 tSCC zSolaris_Math_9Bypass0[] =
7550        "__GNUC__";
7552 #define    SOLARIS_MATH_9_TEST_CT  2
7553 static tTestDesc aSolaris_Math_9Tests[] = {
7554   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
7555   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
7558  *  Fix Command Arguments for Solaris_Math_9
7559  */
7560 static const char* apzSolaris_Math_9Patch[] = {
7561     "format",
7562     "#define\t%1(x, y)%2__builtin_%1(x, y)",
7563     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
7564     (char*)NULL };
7566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7568  *  Description of Solaris_Math_11 fix
7569  */
7570 tSCC zSolaris_Math_11Name[] =
7571      "solaris_math_11";
7574  *  File name selection pattern
7575  */
7576 tSCC zSolaris_Math_11List[] =
7577   "iso/math_c99.h\0";
7579  *  Machine/OS name selection pattern
7580  */
7581 #define apzSolaris_Math_11Machs (const char**)NULL
7584  *  content selection pattern - do fix if pattern found
7585  */
7586 tSCC zSolaris_Math_11Select0[] =
7587        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
7589 #define    SOLARIS_MATH_11_TEST_CT  1
7590 static tTestDesc aSolaris_Math_11Tests[] = {
7591   { TT_EGREP,    zSolaris_Math_11Select0, (regex_t*)NULL }, };
7594  *  Fix Command Arguments for Solaris_Math_11
7595  */
7596 static const char* apzSolaris_Math_11Patch[] = {
7597     "format",
7598     "#undef\tsignbit\n\
7599 #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7600 \t\t\t   ? __builtin_signbitf(x) \\\n\
7601 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
7602 \t\t\t     ? __builtin_signbitl(x) \\\n\
7603 \t\t\t     : __builtin_signbit(x))",
7604     "^#undef[ \t]+signbit\n\
7605 #if defined\\(__sparc\\)\n\
7606 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7607 [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7608 [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
7609 #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
7610 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7611 [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
7612 [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
7613 [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
7614 [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
7615 [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
7616 [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
7617 #endif",
7618     (char*)NULL };
7620 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7622  *  Description of Solaris_Math_12 fix
7623  */
7624 tSCC zSolaris_Math_12Name[] =
7625      "solaris_math_12";
7628  *  File name selection pattern
7629  */
7630 tSCC zSolaris_Math_12List[] =
7631   "math.h\0";
7633  *  Machine/OS name selection pattern
7634  */
7635 tSCC* apzSolaris_Math_12Machs[] = {
7636         "*-*-solaris2*",
7637         (const char*)NULL };
7640  *  content selection pattern - do fix if pattern found
7641  */
7642 tSCC zSolaris_Math_12Select0[] =
7643        "#undef.*_GLIBCXX_USE_C99_MATH";
7645 #define    SOLARIS_MATH_12_TEST_CT  1
7646 static tTestDesc aSolaris_Math_12Tests[] = {
7647   { TT_EGREP,    zSolaris_Math_12Select0, (regex_t*)NULL }, };
7650  *  Fix Command Arguments for Solaris_Math_12
7651  */
7652 static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
7653     "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
7654     (char*)NULL };
7656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7658  *  Description of Solaris_Once_Init_1 fix
7659  */
7660 tSCC zSolaris_Once_Init_1Name[] =
7661      "solaris_once_init_1";
7664  *  File name selection pattern
7665  */
7666 tSCC zSolaris_Once_Init_1List[] =
7667   "pthread.h\0";
7669  *  Machine/OS name selection pattern
7670  */
7671 tSCC* apzSolaris_Once_Init_1Machs[] = {
7672         "*-*-solaris*",
7673         (const char*)NULL };
7676  *  content selection pattern - do fix if pattern found
7677  */
7678 tSCC zSolaris_Once_Init_1Select0[] =
7679        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7681 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
7682 static tTestDesc aSolaris_Once_Init_1Tests[] = {
7683   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
7686  *  Fix Command Arguments for Solaris_Once_Init_1
7687  */
7688 static const char* apzSolaris_Once_Init_1Patch[] = {
7689     "format",
7690     "%1{%2}%3",
7691     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
7692     (char*)NULL };
7694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7696  *  Description of Solaris_Posix_Spawn_Restrict fix
7697  */
7698 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7699      "solaris_posix_spawn_restrict";
7702  *  File name selection pattern
7703  */
7704 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7705   "spawn.h\0";
7707  *  Machine/OS name selection pattern
7708  */
7709 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7710         "*-*-solaris2*",
7711         (const char*)NULL };
7714  *  content selection pattern - do fix if pattern found
7715  */
7716 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7717        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7719 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
7720 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7721   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7724  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7725  */
7726 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7727     "format",
7728     "%1*_RESTRICT_KYWD %2%3",
7729     (char*)NULL };
7731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7733  *  Description of Solaris_Pow_Int_Overload fix
7734  */
7735 tSCC zSolaris_Pow_Int_OverloadName[] =
7736      "solaris_pow_int_overload";
7739  *  File name selection pattern
7740  */
7741 tSCC zSolaris_Pow_Int_OverloadList[] =
7742   "iso/math_iso.h\0";
7744  *  Machine/OS name selection pattern
7745  */
7746 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
7747         "*-*-solaris2*",
7748         (const char*)NULL };
7751  *  content selection pattern - do fix if pattern found
7752  */
7753 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
7754        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
7755 [^{}]*\\}";
7757 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
7758 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
7759   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
7762  *  Fix Command Arguments for Solaris_Pow_Int_Overload
7763  */
7764 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
7765     "format",
7766     "#if __cplusplus < 201103L\n\
7767 %0\n\
7768 #endif",
7769     (char*)NULL };
7771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7773  *  Description of Solaris_Rwlock_Init_1 fix
7774  */
7775 tSCC zSolaris_Rwlock_Init_1Name[] =
7776      "solaris_rwlock_init_1";
7779  *  File name selection pattern
7780  */
7781 tSCC zSolaris_Rwlock_Init_1List[] =
7782   "pthread.h\0";
7784  *  Machine/OS name selection pattern
7785  */
7786 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
7787         "*-*-solaris*",
7788         (const char*)NULL };
7791  *  content selection pattern - do fix if pattern found
7792  */
7793 tSCC zSolaris_Rwlock_Init_1Select0[] =
7794        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7796 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
7797 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
7798   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
7801  *  Fix Command Arguments for Solaris_Rwlock_Init_1
7802  */
7803 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
7804     "format",
7805     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7806 %0\n\
7807 #else\n\
7808 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
7809 #endif",
7810     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
7811     (char*)NULL };
7813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7815  *  Description of Solaris_Std___Filbuf fix
7816  */
7817 tSCC zSolaris_Std___FilbufName[] =
7818      "solaris_std___filbuf";
7821  *  File name selection pattern
7822  */
7823 tSCC zSolaris_Std___FilbufList[] =
7824   "stdio.h\0";
7826  *  Machine/OS name selection pattern
7827  */
7828 tSCC* apzSolaris_Std___FilbufMachs[] = {
7829         "*-*-solaris2*",
7830         (const char*)NULL };
7833  *  content selection pattern - do fix if pattern found
7834  */
7835 tSCC zSolaris_Std___FilbufSelect0[] =
7836        "(using std::perror;\n\
7837 )(#endif)";
7840  *  content bypass pattern - skip fix if pattern found
7841  */
7842 tSCC zSolaris_Std___FilbufBypass0[] =
7843        "using std::__filbuf";
7845 #define    SOLARIS_STD___FILBUF_TEST_CT  2
7846 static tTestDesc aSolaris_Std___FilbufTests[] = {
7847   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7848   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7851  *  Fix Command Arguments for Solaris_Std___Filbuf
7852  */
7853 static const char* apzSolaris_Std___FilbufPatch[] = {
7854     "format",
7855     "%1#ifndef _LP64\n\
7856 using std::__filbuf;\n\
7857 using std::__flsbuf;\n\
7858 #endif\n\
7859 %2",
7860     (char*)NULL };
7862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7864  *  Description of Solaris_Std_Gets_Cxx14 fix
7865  */
7866 tSCC zSolaris_Std_Gets_Cxx14Name[] =
7867      "solaris_std_gets_cxx14";
7870  *  File name selection pattern
7871  */
7872 tSCC zSolaris_Std_Gets_Cxx14List[] =
7873   "stdio.h\0";
7875  *  Machine/OS name selection pattern
7876  */
7877 tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = {
7878         "*-*-solaris2*",
7879         (const char*)NULL };
7882  *  content selection pattern - do fix if pattern found
7883  */
7884 tSCC zSolaris_Std_Gets_Cxx14Select0[] =
7885        "using std::gets;";
7887 #define    SOLARIS_STD_GETS_CXX14_TEST_CT  1
7888 static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = {
7889   { TT_EGREP,    zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, };
7892  *  Fix Command Arguments for Solaris_Std_Gets_Cxx14
7893  */
7894 static const char* apzSolaris_Std_Gets_Cxx14Patch[] = {
7895     "format",
7896     "#if __cplusplus < 201402L\n\
7897 %0\n\
7898 #endif",
7899     (char*)NULL };
7901 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7903  *  Description of Solaris_Stdio_Tag fix
7904  */
7905 tSCC zSolaris_Stdio_TagName[] =
7906      "solaris_stdio_tag";
7909  *  File name selection pattern
7910  */
7911 tSCC zSolaris_Stdio_TagList[] =
7912   "stdio_tag.h\0";
7914  *  Machine/OS name selection pattern
7915  */
7916 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7919  *  content selection pattern - do fix if pattern found
7920  */
7921 tSCC zSolaris_Stdio_TagSelect0[] =
7922        "__cplusplus < 54321L";
7925  *  content bypass pattern - skip fix if pattern found
7926  */
7927 tSCC zSolaris_Stdio_TagBypass0[] =
7928        "__GNUC__";
7930 #define    SOLARIS_STDIO_TAG_TEST_CT  2
7931 static tTestDesc aSolaris_Stdio_TagTests[] = {
7932   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7933   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7936  *  Fix Command Arguments for Solaris_Stdio_Tag
7937  */
7938 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7939     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7940     (char*)NULL };
7942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7944  *  Description of Solaris_Stdlib_Noreturn fix
7945  */
7946 tSCC zSolaris_Stdlib_NoreturnName[] =
7947      "solaris_stdlib_noreturn";
7950  *  File name selection pattern
7951  */
7952 tSCC zSolaris_Stdlib_NoreturnList[] =
7953   "iso/stdlib_c99.h\0";
7955  *  Machine/OS name selection pattern
7956  */
7957 tSCC* apzSolaris_Stdlib_NoreturnMachs[] = {
7958         "*-*-solaris2*",
7959         (const char*)NULL };
7962  *  content selection pattern - do fix if pattern found
7963  */
7964 tSCC zSolaris_Stdlib_NoreturnSelect0[] =
7965        "(extern) _Noreturn (void quick_exit\\(int\\));";
7967 #define    SOLARIS_STDLIB_NORETURN_TEST_CT  1
7968 static tTestDesc aSolaris_Stdlib_NoreturnTests[] = {
7969   { TT_EGREP,    zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, };
7972  *  Fix Command Arguments for Solaris_Stdlib_Noreturn
7973  */
7974 static const char* apzSolaris_Stdlib_NoreturnPatch[] = {
7975     "format",
7976     "%1 %2 __attribute__((__noreturn__));",
7977     (char*)NULL };
7979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7981  *  Description of Statsswtch fix
7982  */
7983 tSCC zStatsswtchName[] =
7984      "statsswtch";
7987  *  File name selection pattern
7988  */
7989 tSCC zStatsswtchList[] =
7990   "rpcsvc/rstat.h\0";
7992  *  Machine/OS name selection pattern
7993  */
7994 #define apzStatsswtchMachs (const char**)NULL
7997  *  content selection pattern - do fix if pattern found
7998  */
7999 tSCC zStatsswtchSelect0[] =
8000        "boottime$";
8002 #define    STATSSWTCH_TEST_CT  1
8003 static tTestDesc aStatsswtchTests[] = {
8004   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
8007  *  Fix Command Arguments for Statsswtch
8008  */
8009 static const char* apzStatsswtchPatch[] = {
8010     "format",
8011     "boottime;",
8012     (char*)NULL };
8014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8016  *  Description of Stdio_Stdarg_H fix
8017  */
8018 tSCC zStdio_Stdarg_HName[] =
8019      "stdio_stdarg_h";
8022  *  File name selection pattern
8023  */
8024 tSCC zStdio_Stdarg_HList[] =
8025   "stdio.h\0";
8027  *  Machine/OS name selection pattern
8028  */
8029 tSCC* apzStdio_Stdarg_HMachs[] = {
8030         "*-*-solaris2.1[0-9]*",
8031         (const char*)NULL };
8034  *  content bypass pattern - skip fix if pattern found
8035  */
8036 tSCC zStdio_Stdarg_HBypass0[] =
8037        "include.*(stdarg.h|machine/ansi.h)";
8039 #define    STDIO_STDARG_H_TEST_CT  1
8040 static tTestDesc aStdio_Stdarg_HTests[] = {
8041   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
8044  *  Fix Command Arguments for Stdio_Stdarg_H
8045  */
8046 static const char* apzStdio_Stdarg_HPatch[] = {
8047     "wrap",
8048     "#define __need___va_list\n\
8049 #include <stdarg.h>\n",
8050     (char*)NULL };
8052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8054  *  Description of Stdio_Va_List fix
8055  */
8056 tSCC zStdio_Va_ListName[] =
8057      "stdio_va_list";
8060  *  File name selection pattern
8061  */
8062 tSCC zStdio_Va_ListList[] =
8063   "stdio.h\0";
8065  *  Machine/OS name selection pattern
8066  */
8067 tSCC* apzStdio_Va_ListMachs[] = {
8068         "*-*-solaris2.1[0-9]*",
8069         (const char*)NULL };
8072  *  content bypass pattern - skip fix if pattern found
8073  */
8074 tSCC zStdio_Va_ListBypass0[] =
8075        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8077 #define    STDIO_VA_LIST_TEST_CT  1
8078 static tTestDesc aStdio_Va_ListTests[] = {
8079   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
8082  *  Fix Command Arguments for Stdio_Va_List
8083  */
8084 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
8085     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8086 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8087 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8088 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8089 s@ va_list@ __not_va_list__@\n\
8090 s@\\*va_list@*__not_va_list__@\n\
8091 s@ __va_list)@ __gnuc_va_list)@\n\
8092 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8093 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8094 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8095 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8096 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8097 s@VA_LIST@DUMMY_VA_LIST@\n\
8098 s@_Va_LIST@_VA_LIST@",
8099     (char*)NULL };
8101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8103  *  Description of Stdio_Va_List_Clients fix
8104  */
8105 tSCC zStdio_Va_List_ClientsName[] =
8106      "stdio_va_list_clients";
8109  *  File name selection pattern
8110  */
8111 tSCC zStdio_Va_List_ClientsList[] =
8112   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
8114  *  Machine/OS name selection pattern
8115  */
8116 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
8119  *  content bypass pattern - skip fix if pattern found
8120  */
8121 tSCC zStdio_Va_List_ClientsBypass0[] =
8122        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8123 tSCC zStdio_Va_List_ClientsBypass1[] =
8124        "include <stdarg\\.h>|#ifdef va_start";
8126 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
8127 static tTestDesc aStdio_Va_List_ClientsTests[] = {
8128   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
8129   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
8132  *  Fix Command Arguments for Stdio_Va_List_Clients
8133  */
8134 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
8135     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8136 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8137 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8138 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8139 s@ va_list@ __not_va_list__@\n\
8140 s@\\*va_list@*__not_va_list__@\n\
8141 s@ __va_list)@ __gnuc_va_list)@\n\
8142 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8143 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8144 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8145 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8146 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8147 s@VA_LIST@DUMMY_VA_LIST@\n\
8148 s@_Va_LIST@_VA_LIST@",
8149     (char*)NULL };
8151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8153  *  Description of Strict_Ansi_Not fix
8154  */
8155 tSCC zStrict_Ansi_NotName[] =
8156      "strict_ansi_not";
8159  *  File name selection pattern
8160  */
8161 #define zStrict_Ansi_NotList (char*)NULL
8163  *  Machine/OS name selection pattern
8164  */
8165 #define apzStrict_Ansi_NotMachs (const char**)NULL
8168  *  content selection pattern - do fix if pattern found
8169  */
8170 tSCC zStrict_Ansi_NotSelect0[] =
8171        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
8174  *  content bypass pattern - skip fix if pattern found
8175  */
8176 tSCC zStrict_Ansi_NotBypass0[] =
8177        "GNU and MIPS C compilers define __STDC__ differently";
8178 tSCC zStrict_Ansi_NotBypass1[] =
8179        "__SCO_VERSION__.*__STDC__ != 1";
8182  *  perform the C function call test
8183  */
8184 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
8186 #define    STRICT_ANSI_NOT_TEST_CT  4
8187 static tTestDesc aStrict_Ansi_NotTests[] = {
8188   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
8189   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
8190   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
8191   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
8194  *  Fix Command Arguments for Strict_Ansi_Not
8195  */
8196 static const char* apzStrict_Ansi_NotPatch[] = {
8197     "format",
8198     "%1 !defined(__STRICT_ANSI__)",
8199     (char*)NULL };
8201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8203  *  Description of Strict_Ansi_Not_Ctd fix
8204  */
8205 tSCC zStrict_Ansi_Not_CtdName[] =
8206      "strict_ansi_not_ctd";
8209  *  File name selection pattern
8210  */
8211 tSCC zStrict_Ansi_Not_CtdList[] =
8212   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
8214  *  Machine/OS name selection pattern
8215  */
8216 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
8219  *  content selection pattern - do fix if pattern found
8220  */
8221 tSCC zStrict_Ansi_Not_CtdSelect0[] =
8222        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
8225  *  perform the C function call test
8226  */
8227 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
8229 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
8230 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
8231   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
8232   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
8235  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
8236  */
8237 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
8238     "format",
8239     "%1 !defined(__STRICT_ANSI__)",
8240     (char*)NULL };
8242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8244  *  Description of Strict_Ansi_Only fix
8245  */
8246 tSCC zStrict_Ansi_OnlyName[] =
8247      "strict_ansi_only";
8250  *  File name selection pattern
8251  */
8252 #define zStrict_Ansi_OnlyList (char*)NULL
8254  *  Machine/OS name selection pattern
8255  */
8256 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
8259  *  content selection pattern - do fix if pattern found
8260  */
8261 tSCC zStrict_Ansi_OnlySelect0[] =
8262        "^([ \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)";
8265  *  perform the C function call test
8266  */
8267 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
8269 #define    STRICT_ANSI_ONLY_TEST_CT  2
8270 static tTestDesc aStrict_Ansi_OnlyTests[] = {
8271   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
8272   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
8275  *  Fix Command Arguments for Strict_Ansi_Only
8276  */
8277 static const char* apzStrict_Ansi_OnlyPatch[] = {
8278     "format",
8279     "%1 defined(__STRICT_ANSI__)",
8280     (char*)NULL };
8282 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8284  *  Description of Struct_File fix
8285  */
8286 tSCC zStruct_FileName[] =
8287      "struct_file";
8290  *  File name selection pattern
8291  */
8292 tSCC zStruct_FileList[] =
8293   "rpc/xdr.h\0";
8295  *  Machine/OS name selection pattern
8296  */
8297 #define apzStruct_FileMachs (const char**)NULL
8300  *  content selection pattern - do fix if pattern found
8301  */
8302 tSCC zStruct_FileSelect0[] =
8303        "^.*xdrstdio_create.*struct __file_s";
8305 #define    STRUCT_FILE_TEST_CT  1
8306 static tTestDesc aStruct_FileTests[] = {
8307   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
8310  *  Fix Command Arguments for Struct_File
8311  */
8312 static const char* apzStruct_FilePatch[] = {
8313     "format",
8314     "struct __file_s;\n\
8315 %0",
8316     (char*)NULL };
8318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8320  *  Description of Struct_Sockaddr fix
8321  */
8322 tSCC zStruct_SockaddrName[] =
8323      "struct_sockaddr";
8326  *  File name selection pattern
8327  */
8328 tSCC zStruct_SockaddrList[] =
8329   "rpc/auth.h\0";
8331  *  Machine/OS name selection pattern
8332  */
8333 #define apzStruct_SockaddrMachs (const char**)NULL
8336  *  content selection pattern - do fix if pattern found
8337  */
8338 tSCC zStruct_SockaddrSelect0[] =
8339        "^.*authdes_create.*struct sockaddr[^_]";
8342  *  content bypass pattern - skip fix if pattern found
8343  */
8344 tSCC zStruct_SockaddrBypass0[] =
8345        "<sys/socket.h>";
8346 tSCC zStruct_SockaddrBypass1[] =
8347        "struct sockaddr;\n";
8349 #define    STRUCT_SOCKADDR_TEST_CT  3
8350 static tTestDesc aStruct_SockaddrTests[] = {
8351   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
8352   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
8353   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
8356  *  Fix Command Arguments for Struct_Sockaddr
8357  */
8358 static const char* apzStruct_SockaddrPatch[] = {
8359     "format",
8360     "struct sockaddr;\n\
8361 %0",
8362     (char*)NULL };
8364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8366  *  Description of Sun_Auth_Proto fix
8367  */
8368 tSCC zSun_Auth_ProtoName[] =
8369      "sun_auth_proto";
8372  *  File name selection pattern
8373  */
8374 tSCC zSun_Auth_ProtoList[] =
8375   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
8377  *  Machine/OS name selection pattern
8378  */
8379 #define apzSun_Auth_ProtoMachs (const char**)NULL
8382  *  content selection pattern - do fix if pattern found
8383  */
8384 tSCC zSun_Auth_ProtoSelect0[] =
8385        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
8388  *  content bypass pattern - skip fix if pattern found
8389  */
8390 tSCC zSun_Auth_ProtoBypass0[] =
8391        "__cplusplus";
8393 #define    SUN_AUTH_PROTO_TEST_CT  2
8394 static tTestDesc aSun_Auth_ProtoTests[] = {
8395   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
8396   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
8399  *  Fix Command Arguments for Sun_Auth_Proto
8400  */
8401 static const char* apzSun_Auth_ProtoPatch[] = {
8402     "format",
8403     "#ifdef __cplusplus\n\
8404 %1(...);%2\n\
8405 #else\n\
8406 %1();%2\n\
8407 #endif",
8408     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
8409     (char*)NULL };
8411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8413  *  Description of Sun_Bogus_Ifdef fix
8414  */
8415 tSCC zSun_Bogus_IfdefName[] =
8416      "sun_bogus_ifdef";
8419  *  File name selection pattern
8420  */
8421 tSCC zSun_Bogus_IfdefList[] =
8422   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
8424  *  Machine/OS name selection pattern
8425  */
8426 #define apzSun_Bogus_IfdefMachs (const char**)NULL
8429  *  content selection pattern - do fix if pattern found
8430  */
8431 tSCC zSun_Bogus_IfdefSelect0[] =
8432        "#ifdef(.*\\|\\|.*)";
8434 #define    SUN_BOGUS_IFDEF_TEST_CT  1
8435 static tTestDesc aSun_Bogus_IfdefTests[] = {
8436   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
8439  *  Fix Command Arguments for Sun_Bogus_Ifdef
8440  */
8441 static const char* apzSun_Bogus_IfdefPatch[] = {
8442     "format",
8443     "#if%1",
8444     (char*)NULL };
8446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8448  *  Description of Sun_Catmacro fix
8449  */
8450 tSCC zSun_CatmacroName[] =
8451      "sun_catmacro";
8454  *  File name selection pattern
8455  */
8456 tSCC zSun_CatmacroList[] =
8457   "pixrect/memvar.h\0";
8459  *  Machine/OS name selection pattern
8460  */
8461 #define apzSun_CatmacroMachs (const char**)NULL
8464  *  content selection pattern - do fix if pattern found
8465  */
8466 tSCC zSun_CatmacroSelect0[] =
8467        "^#define[ \t]+CAT\\(a,b\\).*";
8469 #define    SUN_CATMACRO_TEST_CT  1
8470 static tTestDesc aSun_CatmacroTests[] = {
8471   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
8474  *  Fix Command Arguments for Sun_Catmacro
8475  */
8476 static const char* apzSun_CatmacroPatch[] = {
8477     "format",
8478     "#ifdef __STDC__\n\
8479 #  define CAT(a,b) a##b\n\
8480 #else\n\
8481 %0\n\
8482 #endif",
8483     (char*)NULL };
8485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8487  *  Description of Sun_Malloc fix
8488  */
8489 tSCC zSun_MallocName[] =
8490      "sun_malloc";
8493  *  File name selection pattern
8494  */
8495 tSCC zSun_MallocList[] =
8496   "malloc.h\0";
8498  *  Machine/OS name selection pattern
8499  */
8500 #define apzSun_MallocMachs (const char**)NULL
8503  *  content bypass pattern - skip fix if pattern found
8504  */
8505 tSCC zSun_MallocBypass0[] =
8506        "_CLASSIC_ANSI_TYPES";
8508 #define    SUN_MALLOC_TEST_CT  1
8509 static tTestDesc aSun_MallocTests[] = {
8510   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
8513  *  Fix Command Arguments for Sun_Malloc
8514  */
8515 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
8516     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
8517     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
8518     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
8519     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
8520     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
8521     (char*)NULL };
8523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8525  *  Description of Sun_Rusers_Semi fix
8526  */
8527 tSCC zSun_Rusers_SemiName[] =
8528      "sun_rusers_semi";
8531  *  File name selection pattern
8532  */
8533 tSCC zSun_Rusers_SemiList[] =
8534   "rpcsvc/rusers.h\0";
8536  *  Machine/OS name selection pattern
8537  */
8538 #define apzSun_Rusers_SemiMachs (const char**)NULL
8541  *  content selection pattern - do fix if pattern found
8542  */
8543 tSCC zSun_Rusers_SemiSelect0[] =
8544        "_cnt$";
8546 #define    SUN_RUSERS_SEMI_TEST_CT  1
8547 static tTestDesc aSun_Rusers_SemiTests[] = {
8548   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
8551  *  Fix Command Arguments for Sun_Rusers_Semi
8552  */
8553 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
8554     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
8555     (char*)NULL };
8557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8559  *  Description of Sun_Signal fix
8560  */
8561 tSCC zSun_SignalName[] =
8562      "sun_signal";
8565  *  File name selection pattern
8566  */
8567 tSCC zSun_SignalList[] =
8568   "sys/signal.h\0signal.h\0";
8570  *  Machine/OS name selection pattern
8571  */
8572 #define apzSun_SignalMachs (const char**)NULL
8575  *  content selection pattern - do fix if pattern found
8576  */
8577 tSCC zSun_SignalSelect0[] =
8578        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
8580 #define    SUN_SIGNAL_TEST_CT  1
8581 static tTestDesc aSun_SignalTests[] = {
8582   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
8585  *  Fix Command Arguments for Sun_Signal
8586  */
8587 static const char* apzSun_SignalPatch[] = {
8588     "format",
8589     "#ifdef __cplusplus\n\
8590 void\t(*signal(...))(...);\n\
8591 #else\n\
8592 %0\n\
8593 #endif",
8594     (char*)NULL };
8596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8598  *  Description of Sunos_Strlen fix
8599  */
8600 tSCC zSunos_StrlenName[] =
8601      "sunos_strlen";
8604  *  File name selection pattern
8605  */
8606 tSCC zSunos_StrlenList[] =
8607   "strings.h\0";
8609  *  Machine/OS name selection pattern
8610  */
8611 #define apzSunos_StrlenMachs (const char**)NULL
8614  *  content selection pattern - do fix if pattern found
8615  */
8616 tSCC zSunos_StrlenSelect0[] =
8617        "int[ \t]*strlen\\(\\);(.*)";
8619 #define    SUNOS_STRLEN_TEST_CT  1
8620 static tTestDesc aSunos_StrlenTests[] = {
8621   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
8624  *  Fix Command Arguments for Sunos_Strlen
8625  */
8626 static const char* apzSunos_StrlenPatch[] = {
8627     "format",
8628     "__SIZE_TYPE__ strlen();%1",
8629     (char*)NULL };
8631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8633  *  Description of Suse_Linux_Vt_Cxx fix
8634  */
8635 tSCC zSuse_Linux_Vt_CxxName[] =
8636      "suse_linux_vt_cxx";
8639  *  File name selection pattern
8640  */
8641 tSCC zSuse_Linux_Vt_CxxList[] =
8642   "linux/vt.h\0";
8644  *  Machine/OS name selection pattern
8645  */
8646 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
8649  *  content selection pattern - do fix if pattern found
8650  */
8651 tSCC zSuse_Linux_Vt_CxxSelect0[] =
8652        "^[ \t]*unsigned int new;";
8654 #define    SUSE_LINUX_VT_CXX_TEST_CT  1
8655 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
8656   { TT_EGREP,    zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
8659  *  Fix Command Arguments for Suse_Linux_Vt_Cxx
8660  */
8661 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
8662     "format",
8663     "unsigned int newev;",
8664     (char*)NULL };
8666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8668  *  Description of Svr4_Disable_Opt fix
8669  */
8670 tSCC zSvr4_Disable_OptName[] =
8671      "svr4_disable_opt";
8674  *  File name selection pattern
8675  */
8676 tSCC zSvr4_Disable_OptList[] =
8677   "string.h\0";
8679  *  Machine/OS name selection pattern
8680  */
8681 #define apzSvr4_Disable_OptMachs (const char**)NULL
8684  *  content selection pattern - do fix if pattern found
8685  */
8686 tSCC zSvr4_Disable_OptSelect0[] =
8687        "#define.*__std_hdr_";
8689 #define    SVR4_DISABLE_OPT_TEST_CT  1
8690 static tTestDesc aSvr4_Disable_OptTests[] = {
8691   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
8694  *  Fix Command Arguments for Svr4_Disable_Opt
8695  */
8696 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
8697     "-e", "/#define.*__std_hdr_/d",
8698     (char*)NULL };
8700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8702  *  Description of Svr4_Getcwd fix
8703  */
8704 tSCC zSvr4_GetcwdName[] =
8705      "svr4_getcwd";
8708  *  File name selection pattern
8709  */
8710 tSCC zSvr4_GetcwdList[] =
8711   "stdlib.h\0unistd.h\0prototypes.h\0";
8713  *  Machine/OS name selection pattern
8714  */
8715 #define apzSvr4_GetcwdMachs (const char**)NULL
8718  *  content selection pattern - do fix if pattern found
8719  */
8720 tSCC zSvr4_GetcwdSelect0[] =
8721        "getcwd\\(char \\*, int\\)";
8723 #define    SVR4_GETCWD_TEST_CT  1
8724 static tTestDesc aSvr4_GetcwdTests[] = {
8725   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
8728  *  Fix Command Arguments for Svr4_Getcwd
8729  */
8730 static const char* apzSvr4_GetcwdPatch[] = {
8731     "format",
8732     "getcwd(char *, size_t)",
8733     (char*)NULL };
8735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8737  *  Description of Svr4_Profil fix
8738  */
8739 tSCC zSvr4_ProfilName[] =
8740      "svr4_profil";
8743  *  File name selection pattern
8744  */
8745 tSCC zSvr4_ProfilList[] =
8746   "stdlib.h\0unistd.h\0";
8748  *  Machine/OS name selection pattern
8749  */
8750 #define apzSvr4_ProfilMachs (const char**)NULL
8753  *  content selection pattern - do fix if pattern found
8754  */
8755 tSCC zSvr4_ProfilSelect0[] =
8756        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
8758 #define    SVR4_PROFIL_TEST_CT  1
8759 static tTestDesc aSvr4_ProfilTests[] = {
8760   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
8763  *  Fix Command Arguments for Svr4_Profil
8764  */
8765 static const char* apzSvr4_ProfilPatch[] = {
8766     "format",
8767     "profil(unsigned short *, size_t, int, unsigned int)",
8768     (char*)NULL };
8770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8772  *  Description of Svr4_Sighandler_Type fix
8773  */
8774 tSCC zSvr4_Sighandler_TypeName[] =
8775      "svr4_sighandler_type";
8778  *  File name selection pattern
8779  */
8780 tSCC zSvr4_Sighandler_TypeList[] =
8781   "sys/signal.h\0";
8783  *  Machine/OS name selection pattern
8784  */
8785 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
8788  *  content selection pattern - do fix if pattern found
8789  */
8790 tSCC zSvr4_Sighandler_TypeSelect0[] =
8791        "void *\\(\\*\\)\\(\\)";
8793 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
8794 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8795   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8798  *  Fix Command Arguments for Svr4_Sighandler_Type
8799  */
8800 static const char* apzSvr4_Sighandler_TypePatch[] = {
8801     "format",
8802     "void (*)(int)",
8803     (char*)NULL };
8805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8807  *  Description of Svr4_Undeclared_Getrnge fix
8808  */
8809 tSCC zSvr4_Undeclared_GetrngeName[] =
8810      "svr4_undeclared_getrnge";
8813  *  File name selection pattern
8814  */
8815 tSCC zSvr4_Undeclared_GetrngeList[] =
8816   "regexp.h\0";
8818  *  Machine/OS name selection pattern
8819  */
8820 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8823  *  content selection pattern - do fix if pattern found
8824  */
8825 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8826        "getrnge";
8829  *  content bypass pattern - skip fix if pattern found
8830  */
8831 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8832        "static void getrnge";
8834 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
8835 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8836   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8837   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8840  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
8841  */
8842 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8843     "format",
8844     "%0\n\
8845 static int getrnge ();",
8846     "^static int[ \t]+size;",
8847     (char*)NULL };
8849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8851  *  Description of Sysv68_String fix
8852  */
8853 tSCC zSysv68_StringName[] =
8854      "sysv68_string";
8857  *  File name selection pattern
8858  */
8859 tSCC zSysv68_StringList[] =
8860   "testing.h\0string.h\0";
8862  *  Machine/OS name selection pattern
8863  */
8864 #define apzSysv68_StringMachs (const char**)NULL
8867  *  content bypass pattern - skip fix if pattern found
8868  */
8869 tSCC zSysv68_StringBypass0[] =
8870        "_CLASSIC_ANSI_TYPES";
8872 #define    SYSV68_STRING_TEST_CT  1
8873 static tTestDesc aSysv68_StringTests[] = {
8874   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
8877  *  Fix Command Arguments for Sysv68_String
8878  */
8879 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8880     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8881     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8882     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8883     "-e", "/^extern char$/N",
8884     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8885     "-e", "/^extern int$/N",
8886     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8887     "-e", "/^\tstrncmp(),$/N",
8888     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8889 extern unsigned int\\\n\
8890 \\2/",
8891     (char*)NULL };
8893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8895  *  Description of Sysz_Stdlib_For_Sun fix
8896  */
8897 tSCC zSysz_Stdlib_For_SunName[] =
8898      "sysz_stdlib_for_sun";
8901  *  File name selection pattern
8902  */
8903 tSCC zSysz_Stdlib_For_SunList[] =
8904   "stdlib.h\0";
8906  *  Machine/OS name selection pattern
8907  */
8908 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8911  *  content selection pattern - do fix if pattern found
8912  */
8913 tSCC zSysz_Stdlib_For_SunSelect0[] =
8914        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8917  *  content bypass pattern - skip fix if pattern found
8918  */
8919 tSCC zSysz_Stdlib_For_SunBypass0[] =
8920        "_CLASSIC_ANSI_TYPES";
8922 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
8923 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8924   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8925   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8928  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
8929  */
8930 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8931     "format",
8932     "void *\t%1(",
8933     (char*)NULL };
8935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8937  *  Description of Thread_Keyword fix
8938  */
8939 tSCC zThread_KeywordName[] =
8940      "thread_keyword";
8943  *  File name selection pattern
8944  */
8945 tSCC zThread_KeywordList[] =
8946   "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
8948  *  Machine/OS name selection pattern
8949  */
8950 #define apzThread_KeywordMachs (const char**)NULL
8953  *  content selection pattern - do fix if pattern found
8954  */
8955 tSCC zThread_KeywordSelect0[] =
8956        "([* ])__thread([,)])";
8958 #define    THREAD_KEYWORD_TEST_CT  1
8959 static tTestDesc aThread_KeywordTests[] = {
8960   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
8963  *  Fix Command Arguments for Thread_Keyword
8964  */
8965 static const char* apzThread_KeywordPatch[] = {
8966     "format",
8967     "%1__thr%2",
8968     (char*)NULL };
8970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8972  *  Description of Tinfo_Cplusplus fix
8973  */
8974 tSCC zTinfo_CplusplusName[] =
8975      "tinfo_cplusplus";
8978  *  File name selection pattern
8979  */
8980 tSCC zTinfo_CplusplusList[] =
8981   "tinfo.h\0";
8983  *  Machine/OS name selection pattern
8984  */
8985 #define apzTinfo_CplusplusMachs (const char**)NULL
8988  *  content selection pattern - do fix if pattern found
8989  */
8990 tSCC zTinfo_CplusplusSelect0[] =
8991        "[ \t]_cplusplus";
8993 #define    TINFO_CPLUSPLUS_TEST_CT  1
8994 static tTestDesc aTinfo_CplusplusTests[] = {
8995   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8998  *  Fix Command Arguments for Tinfo_Cplusplus
8999  */
9000 static const char* apzTinfo_CplusplusPatch[] = {
9001     "format",
9002     " __cplusplus",
9003     (char*)NULL };
9005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9007  *  Description of Ultrix_Const fix
9008  */
9009 tSCC zUltrix_ConstName[] =
9010      "ultrix_const";
9013  *  File name selection pattern
9014  */
9015 tSCC zUltrix_ConstList[] =
9016   "stdio.h\0";
9018  *  Machine/OS name selection pattern
9019  */
9020 #define apzUltrix_ConstMachs (const char**)NULL
9023  *  content selection pattern - do fix if pattern found
9024  */
9025 tSCC zUltrix_ConstSelect0[] =
9026        "perror\\( char \\*";
9028 #define    ULTRIX_CONST_TEST_CT  1
9029 static tTestDesc aUltrix_ConstTests[] = {
9030   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
9033  *  Fix Command Arguments for Ultrix_Const
9034  */
9035 static const char* apzUltrix_ConstPatch[] = {
9036     "format",
9037     "%1 const %3 *__",
9038     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
9039     (char*)NULL };
9041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9043  *  Description of Ultrix_Const2 fix
9044  */
9045 tSCC zUltrix_Const2Name[] =
9046      "ultrix_const2";
9049  *  File name selection pattern
9050  */
9051 tSCC zUltrix_Const2List[] =
9052   "stdio.h\0";
9054  *  Machine/OS name selection pattern
9055  */
9056 #define apzUltrix_Const2Machs (const char**)NULL
9059  *  content selection pattern - do fix if pattern found
9060  */
9061 tSCC zUltrix_Const2Select0[] =
9062        "\\*fopen\\( char \\*";
9064 #define    ULTRIX_CONST2_TEST_CT  1
9065 static tTestDesc aUltrix_Const2Tests[] = {
9066   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
9069  *  Fix Command Arguments for Ultrix_Const2
9070  */
9071 static const char* apzUltrix_Const2Patch[] = {
9072     "format",
9073     "%1( const char *%3, const char *",
9074     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
9075     (char*)NULL };
9077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9079  *  Description of Va_I960_Macro fix
9080  */
9081 tSCC zVa_I960_MacroName[] =
9082      "va_i960_macro";
9085  *  File name selection pattern
9086  */
9087 tSCC zVa_I960_MacroList[] =
9088   "arch/i960/archI960.h\0";
9090  *  Machine/OS name selection pattern
9091  */
9092 #define apzVa_I960_MacroMachs (const char**)NULL
9095  *  content selection pattern - do fix if pattern found
9096  */
9097 tSCC zVa_I960_MacroSelect0[] =
9098        "__(vsiz|vali|vpad|alignof__)";
9100 #define    VA_I960_MACRO_TEST_CT  1
9101 static tTestDesc aVa_I960_MacroTests[] = {
9102   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
9105  *  Fix Command Arguments for Va_I960_Macro
9106  */
9107 static const char* apzVa_I960_MacroPatch[] = {
9108     "format",
9109     "__vx%1",
9110     (char*)NULL };
9112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9114  *  Description of Vms_Add_Missing_Braces fix
9115  */
9116 tSCC zVms_Add_Missing_BracesName[] =
9117      "vms_add_missing_braces";
9120  *  File name selection pattern
9121  */
9122 tSCC zVms_Add_Missing_BracesList[] =
9123   "rtldef/signal.h\0";
9125  *  Machine/OS name selection pattern
9126  */
9127 tSCC* apzVms_Add_Missing_BracesMachs[] = {
9128         "*-*-*vms*",
9129         (const char*)NULL };
9132  *  content selection pattern - do fix if pattern found
9133  */
9134 tSCC zVms_Add_Missing_BracesSelect0[] =
9135        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
9137 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
9138 static tTestDesc aVms_Add_Missing_BracesTests[] = {
9139   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
9142  *  Fix Command Arguments for Vms_Add_Missing_Braces
9143  */
9144 static const char* apzVms_Add_Missing_BracesPatch[] = {
9145     "format",
9146     "%1 {%2} ",
9147     (char*)NULL };
9149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9151  *  Description of Vms_Decc_Builtin fix
9152  */
9153 tSCC zVms_Decc_BuiltinName[] =
9154      "vms_decc_builtin";
9157  *  File name selection pattern
9158  */
9159 tSCC zVms_Decc_BuiltinList[] =
9160   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
9162  *  Machine/OS name selection pattern
9163  */
9164 tSCC* apzVms_Decc_BuiltinMachs[] = {
9165         "*-*-*vms*",
9166         (const char*)NULL };
9169  *  content selection pattern - do fix if pattern found
9170  */
9171 tSCC zVms_Decc_BuiltinSelect0[] =
9172        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
9174 #define    VMS_DECC_BUILTIN_TEST_CT  1
9175 static tTestDesc aVms_Decc_BuiltinTests[] = {
9176   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
9179  *  Fix Command Arguments for Vms_Decc_Builtin
9180  */
9181 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
9182     "-e", "s@__MEMSET@memset@",
9183     "-e", "s@__MEMMOVE@memmove@",
9184     "-e", "s@__MEMCPY@memcpy@",
9185     "-e", "s@__STRLEN@strlen@",
9186     "-e", "s@__STRCPY@strcpy@",
9187     (char*)NULL };
9189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9191  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
9192  */
9193 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
9194      "vms_define_can_use_extern_prefix";
9197  *  File name selection pattern
9198  */
9199 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
9200   "rtldef/decc$types.h\0";
9202  *  Machine/OS name selection pattern
9203  */
9204 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
9205         "*-*-*vms*",
9206         (const char*)NULL };
9209  *  content selection pattern - do fix if pattern found
9210  */
9211 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
9212        "#[ \t]*else\n\
9213 #[ \t]*if defined\\(__DECCXX\\)\n\
9214 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
9216 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
9217 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
9218   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
9221  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
9222  */
9223 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
9224     "format",
9225     "%0#    elif defined (__GNUC__)\n\
9226 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
9227     (char*)NULL };
9229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9231  *  Description of Vms_Disable_Decc_String_Builtins fix
9232  */
9233 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
9234      "vms_disable_decc_string_builtins";
9237  *  File name selection pattern
9238  */
9239 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
9240   "rtldef/string.h\0";
9242  *  Machine/OS name selection pattern
9243  */
9244 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
9245         "*-*-*vms*",
9246         (const char*)NULL };
9249  *  content selection pattern - do fix if pattern found
9250  */
9251 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
9252        "#if !defined\\(__VAX\\)\n";
9254 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
9255 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
9256   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
9259  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
9260  */
9261 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
9262     "format",
9263     "#if !defined(__VAX) && !defined(__GNUC__)\n",
9264     (char*)NULL };
9266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9268  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
9269  */
9270 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
9271      "vms_do_not_redeclare_hostalias";
9274  *  File name selection pattern
9275  */
9276 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
9277   "rtldef/resolv.h\0";
9279  *  Machine/OS name selection pattern
9280  */
9281 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
9282         "*-*-*vms*",
9283         (const char*)NULL };
9286  *  content selection pattern - do fix if pattern found
9287  */
9288 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
9289        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
9290 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
9292 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
9293 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
9294   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
9297  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
9298  */
9299 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
9300     "format",
9301     "%1\n\
9302 /* %2 */",
9303     (char*)NULL };
9305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9307  *  Description of Vms_Forward_Declare_Struct fix
9308  */
9309 tSCC zVms_Forward_Declare_StructName[] =
9310      "vms_forward_declare_struct";
9313  *  File name selection pattern
9314  */
9315 tSCC zVms_Forward_Declare_StructList[] =
9316   "rtldef/if.h\0";
9318  *  Machine/OS name selection pattern
9319  */
9320 tSCC* apzVms_Forward_Declare_StructMachs[] = {
9321         "*-*-*vms*",
9322         (const char*)NULL };
9325  *  content selection pattern - do fix if pattern found
9326  */
9327 tSCC zVms_Forward_Declare_StructSelect0[] =
9328        "(/\\* forward decls for C\\+\\+ \\*/\n\
9329 )#ifdef __cplusplus\n";
9331 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
9332 static tTestDesc aVms_Forward_Declare_StructTests[] = {
9333   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
9336  *  Fix Command Arguments for Vms_Forward_Declare_Struct
9337  */
9338 static const char* apzVms_Forward_Declare_StructPatch[] = {
9339     "format",
9340     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
9341     (char*)NULL };
9343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9345  *  Description of Vms_No_64bit_Getopt fix
9346  */
9347 tSCC zVms_No_64bit_GetoptName[] =
9348      "vms_no_64bit_getopt";
9351  *  File name selection pattern
9352  */
9353 tSCC zVms_No_64bit_GetoptList[] =
9354   "rtldef/stdio.h\0rtldef/unistd.h\0";
9356  *  Machine/OS name selection pattern
9357  */
9358 tSCC* apzVms_No_64bit_GetoptMachs[] = {
9359         "*-*-*vms*",
9360         (const char*)NULL };
9363  *  content selection pattern - do fix if pattern found
9364  */
9365 tSCC zVms_No_64bit_GetoptSelect0[] =
9366        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
9368 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
9369 static tTestDesc aVms_No_64bit_GetoptTests[] = {
9370   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
9373  *  Fix Command Arguments for Vms_No_64bit_Getopt
9374  */
9375 static const char* apzVms_No_64bit_GetoptPatch[] = {
9376     "format",
9377     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
9378 %0#endif\n",
9379     (char*)NULL };
9381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9383  *  Description of Vms_Use_Fast_Setjmp fix
9384  */
9385 tSCC zVms_Use_Fast_SetjmpName[] =
9386      "vms_use_fast_setjmp";
9389  *  File name selection pattern
9390  */
9391 tSCC zVms_Use_Fast_SetjmpList[] =
9392   "rtldef/setjmp.h\0";
9394  *  Machine/OS name selection pattern
9395  */
9396 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
9397         "*-*-*vms*",
9398         (const char*)NULL };
9401  *  content selection pattern - do fix if pattern found
9402  */
9403 tSCC zVms_Use_Fast_SetjmpSelect0[] =
9404        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
9406 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
9407 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
9408   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
9411  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
9412  */
9413 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
9414     "format",
9415     "%0 defined (__GNUC__) ||",
9416     (char*)NULL };
9418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9420  *  Description of Vms_Use_Pragma_Extern_Model fix
9421  */
9422 tSCC zVms_Use_Pragma_Extern_ModelName[] =
9423      "vms_use_pragma_extern_model";
9426  *  File name selection pattern
9427  */
9428 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
9430  *  Machine/OS name selection pattern
9431  */
9432 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
9433         "*-*-*vms*",
9434         (const char*)NULL };
9437  *  content selection pattern - do fix if pattern found
9438  */
9439 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
9440        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
9441 # pragma extern_model __save\n";
9443 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
9444 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
9445   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
9448  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
9449  */
9450 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
9451     "format",
9452     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
9453 # pragma extern_model __save\n",
9454     (char*)NULL };
9456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9458  *  Description of Vms_Use_Quoted_Include fix
9459  */
9460 tSCC zVms_Use_Quoted_IncludeName[] =
9461      "vms_use_quoted_include";
9464  *  File name selection pattern
9465  */
9466 tSCC zVms_Use_Quoted_IncludeList[] =
9467   "rtldef/wait.h\0starlet_c/pthread.h\0";
9469  *  Machine/OS name selection pattern
9470  */
9471 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
9472         "*-*-*vms*",
9473         (const char*)NULL };
9476  *  content selection pattern - do fix if pattern found
9477  */
9478 tSCC zVms_Use_Quoted_IncludeSelect0[] =
9479        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
9481 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
9482 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
9483   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
9486  *  Fix Command Arguments for Vms_Use_Quoted_Include
9487  */
9488 static const char* apzVms_Use_Quoted_IncludePatch[] = {
9489     "format",
9490     "%1<sys/%2.h>",
9491     (char*)NULL };
9493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9495  *  Description of Void_Null fix
9496  */
9497 tSCC zVoid_NullName[] =
9498      "void_null";
9501  *  File name selection pattern
9502  */
9503 tSCC zVoid_NullList[] =
9504   "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";
9506  *  Machine/OS name selection pattern
9507  */
9508 #define apzVoid_NullMachs (const char**)NULL
9511  *  content selection pattern - do fix if pattern found
9512  */
9513 tSCC zVoid_NullSelect0[] =
9514        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
9517  *  content bypass pattern - skip fix if pattern found
9518  */
9519 tSCC zVoid_NullBypass0[] =
9520        "__cplusplus";
9521 tSCC zVoid_NullBypass1[] =
9522        "__null";
9524 #define    VOID_NULL_TEST_CT  3
9525 static tTestDesc aVoid_NullTests[] = {
9526   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
9527   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
9528   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
9531  *  Fix Command Arguments for Void_Null
9532  */
9533 static const char* apzVoid_NullPatch[] = {
9534     "format",
9535     "#ifndef NULL\n\
9536 #ifdef __cplusplus\n\
9537 #ifdef __GNUG__\n\
9538 #define NULL __null\n\
9539 #else /* ! __GNUG__  */\n\
9540 #define NULL 0L\n\
9541 #endif /* __GNUG__  */\n\
9542 #else /* ! __cplusplus  */\n\
9543 #define NULL ((void *)0)\n\
9544 #endif /* __cplusplus  */\n\
9545 #endif /* !NULL  */",
9546     (char*)NULL };
9548 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9550  *  Description of Vxworks_Gcc_Problem fix
9551  */
9552 tSCC zVxworks_Gcc_ProblemName[] =
9553      "vxworks_gcc_problem";
9556  *  File name selection pattern
9557  */
9558 tSCC zVxworks_Gcc_ProblemList[] =
9559   "types/vxTypesBase.h\0";
9561  *  Machine/OS name selection pattern
9562  */
9563 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
9566  *  content selection pattern - do fix if pattern found
9567  */
9568 tSCC zVxworks_Gcc_ProblemSelect0[] =
9569        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
9571 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
9572 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
9573   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
9576  *  Fix Command Arguments for Vxworks_Gcc_Problem
9577  */
9578 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
9579     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
9580     "-e", "/[ \t]size_t/i\\\n\
9581 #ifndef _GCC_SIZE_T\\\n\
9582 #define _GCC_SIZE_T\n",
9583     "-e", "/[ \t]size_t/a\\\n\
9584 #endif\n",
9585     "-e", "/[ \t]ptrdiff_t/i\\\n\
9586 #ifndef _GCC_PTRDIFF_T\\\n\
9587 #define _GCC_PTRDIFF_T\n",
9588     "-e", "/[ \t]ptrdiff_t/a\\\n\
9589 #endif\n",
9590     "-e", "/[ \t]wchar_t/i\\\n\
9591 #ifndef _GCC_WCHAR_T\\\n\
9592 #define _GCC_WCHAR_T\n",
9593     "-e", "/[ \t]wchar_t/a\\\n\
9594 #endif\n",
9595     (char*)NULL };
9597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9599  *  Description of Vxworks_Ioctl_Macro fix
9600  */
9601 tSCC zVxworks_Ioctl_MacroName[] =
9602      "vxworks_ioctl_macro";
9605  *  File name selection pattern
9606  */
9607 tSCC zVxworks_Ioctl_MacroList[] =
9608   "ioLib.h\0";
9610  *  Machine/OS name selection pattern
9611  */
9612 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
9613         "*-*-vxworks*",
9614         (const char*)NULL };
9615 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
9616 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
9619  *  Fix Command Arguments for Vxworks_Ioctl_Macro
9620  */
9621 static const char* apzVxworks_Ioctl_MacroPatch[] = {
9622     "format",
9623     "%0\n\
9624 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
9625     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
9626     (char*)NULL };
9628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9630  *  Description of Vxworks_Mkdir_Macro fix
9631  */
9632 tSCC zVxworks_Mkdir_MacroName[] =
9633      "vxworks_mkdir_macro";
9636  *  File name selection pattern
9637  */
9638 tSCC zVxworks_Mkdir_MacroList[] =
9639   "sys/stat.h\0";
9641  *  Machine/OS name selection pattern
9642  */
9643 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
9644         "*-*-vxworks*",
9645         (const char*)NULL };
9646 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
9647 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
9650  *  Fix Command Arguments for Vxworks_Mkdir_Macro
9651  */
9652 static const char* apzVxworks_Mkdir_MacroPatch[] = {
9653     "format",
9654     "%0\n\
9655 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
9656     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
9657     (char*)NULL };
9659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9661  *  Description of Vxworks_Needs_Vxtypes fix
9662  */
9663 tSCC zVxworks_Needs_VxtypesName[] =
9664      "vxworks_needs_vxtypes";
9667  *  File name selection pattern
9668  */
9669 tSCC zVxworks_Needs_VxtypesList[] =
9670   "time.h\0";
9672  *  Machine/OS name selection pattern
9673  */
9674 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
9677  *  content selection pattern - do fix if pattern found
9678  */
9679 tSCC zVxworks_Needs_VxtypesSelect0[] =
9680        "uint_t([ \t]+_clocks_per_sec)";
9682 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
9683 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
9684   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
9687  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
9688  */
9689 static const char* apzVxworks_Needs_VxtypesPatch[] = {
9690     "format",
9691     "unsigned int%1",
9692     (char*)NULL };
9694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9696  *  Description of Vxworks_Needs_Vxworks fix
9697  */
9698 tSCC zVxworks_Needs_VxworksName[] =
9699      "vxworks_needs_vxworks";
9702  *  File name selection pattern
9703  */
9704 tSCC zVxworks_Needs_VxworksList[] =
9705   "sys/stat.h\0";
9707  *  Machine/OS name selection pattern
9708  */
9709 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
9712  *  content selection pattern - do fix if pattern found
9713  */
9714 tSCC zVxworks_Needs_VxworksSelect0[] =
9715        "#[ \t]define[ \t]+__INCstath";
9718  *  perform the 'test' shell command - do fix on success
9719  */
9720 tSCC zVxworks_Needs_VxworksTest0[] =
9721        " -r types/vxTypesOld.h";
9722 tSCC zVxworks_Needs_VxworksTest1[] =
9723        " -n \"`egrep '#include' $file`\"";
9724 tSCC zVxworks_Needs_VxworksTest2[] =
9725        " -n \"`egrep ULONG $file`\"";
9727 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
9728 static tTestDesc aVxworks_Needs_VxworksTests[] = {
9729   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
9730   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
9731   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
9732   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
9735  *  Fix Command Arguments for Vxworks_Needs_Vxworks
9736  */
9737 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
9738     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
9739 #include <types/vxTypesOld.h>\n",
9740     (char*)NULL };
9742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9744  *  Description of Vxworks_Regs fix
9745  */
9746 tSCC zVxworks_RegsName[] =
9747      "vxworks_regs";
9750  *  File name selection pattern
9751  */
9752 #define zVxworks_RegsList (char*)NULL
9754  *  Machine/OS name selection pattern
9755  */
9756 tSCC* apzVxworks_RegsMachs[] = {
9757         "*-*-vxworks*",
9758         (const char*)NULL };
9761  *  content selection pattern - do fix if pattern found
9762  */
9763 tSCC zVxworks_RegsSelect0[] =
9764        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
9766 #define    VXWORKS_REGS_TEST_CT  1
9767 static tTestDesc aVxworks_RegsTests[] = {
9768   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
9771  *  Fix Command Arguments for Vxworks_Regs
9772  */
9773 static const char* apzVxworks_RegsPatch[] = {
9774     "format",
9775     "#include <arch/../regs.h>",
9776     (char*)NULL };
9778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9780  *  Description of Vxworks_Time fix
9781  */
9782 tSCC zVxworks_TimeName[] =
9783      "vxworks_time";
9786  *  File name selection pattern
9787  */
9788 tSCC zVxworks_TimeList[] =
9789   "time.h\0";
9791  *  Machine/OS name selection pattern
9792  */
9793 #define apzVxworks_TimeMachs (const char**)NULL
9796  *  content selection pattern - do fix if pattern found
9797  */
9798 tSCC zVxworks_TimeSelect0[] =
9799        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
9802  *  perform the 'test' shell command - do fix on success
9803  */
9804 tSCC zVxworks_TimeTest0[] =
9805        " -r vxWorks.h";
9807 #define    VXWORKS_TIME_TEST_CT  2
9808 static tTestDesc aVxworks_TimeTests[] = {
9809   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
9810   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
9813  *  Fix Command Arguments for Vxworks_Time
9814  */
9815 static const char* apzVxworks_TimePatch[] = {
9816     "format",
9817     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
9818 #ifdef __cplusplus\n\
9819 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
9820 #else\n\
9821 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
9822 #endif\n\
9823 #define __gcc_VOIDFUNCPTR_defined\n\
9824 #endif\n\
9825 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
9826     (char*)NULL };
9828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9830  *  Description of Vxworks_Write_Const fix
9831  */
9832 tSCC zVxworks_Write_ConstName[] =
9833      "vxworks_write_const";
9836  *  File name selection pattern
9837  */
9838 tSCC zVxworks_Write_ConstList[] =
9839   "ioLib.h\0";
9841  *  Machine/OS name selection pattern
9842  */
9843 tSCC* apzVxworks_Write_ConstMachs[] = {
9844         "*-*-vxworks*",
9845         (const char*)NULL };
9846 #define VXWORKS_WRITE_CONST_TEST_CT  0
9847 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
9850  *  Fix Command Arguments for Vxworks_Write_Const
9851  */
9852 static const char* apzVxworks_Write_ConstPatch[] = {
9853     "format",
9854     "extern int  write (int, const char*, size_t);",
9855     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
9856     (char*)NULL };
9858 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9860  *  Description of X11_Class fix
9861  */
9862 tSCC zX11_ClassName[] =
9863      "x11_class";
9866  *  File name selection pattern
9867  */
9868 tSCC zX11_ClassList[] =
9869   "X11/ShellP.h\0";
9871  *  Machine/OS name selection pattern
9872  */
9873 #define apzX11_ClassMachs (const char**)NULL
9876  *  content selection pattern - do fix if pattern found
9877  */
9878 tSCC zX11_ClassSelect0[] =
9879        "^([ \t]*char \\*)class;(.*)";
9882  *  content bypass pattern - skip fix if pattern found
9883  */
9884 tSCC zX11_ClassBypass0[] =
9885        "__cplusplus";
9887 #define    X11_CLASS_TEST_CT  2
9888 static tTestDesc aX11_ClassTests[] = {
9889   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
9890   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
9893  *  Fix Command Arguments for X11_Class
9894  */
9895 static const char* apzX11_ClassPatch[] = {
9896     "format",
9897     "#ifdef __cplusplus\n\
9898 %1c_class;%2\n\
9899 #else\n\
9900 %1class;%2\n\
9901 #endif",
9902     (char*)NULL };
9904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9906  *  Description of X11_Class_Usage fix
9907  */
9908 tSCC zX11_Class_UsageName[] =
9909      "x11_class_usage";
9912  *  File name selection pattern
9913  */
9914 tSCC zX11_Class_UsageList[] =
9915   "Xm/BaseClassI.h\0";
9917  *  Machine/OS name selection pattern
9918  */
9919 #define apzX11_Class_UsageMachs (const char**)NULL
9922  *  content selection pattern - do fix if pattern found
9923  */
9924 tSCC zX11_Class_UsageSelect0[] =
9925        " class\\)";
9928  *  content bypass pattern - skip fix if pattern found
9929  */
9930 tSCC zX11_Class_UsageBypass0[] =
9931        "__cplusplus";
9933 #define    X11_CLASS_USAGE_TEST_CT  2
9934 static tTestDesc aX11_Class_UsageTests[] = {
9935   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
9936   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
9939  *  Fix Command Arguments for X11_Class_Usage
9940  */
9941 static const char* apzX11_Class_UsagePatch[] = {
9942     "format",
9943     " c_class)",
9944     (char*)NULL };
9946 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9948  *  Description of X11_New fix
9949  */
9950 tSCC zX11_NewName[] =
9951      "x11_new";
9954  *  File name selection pattern
9955  */
9956 tSCC zX11_NewList[] =
9957   "Xm/Traversal.h\0";
9959  *  Machine/OS name selection pattern
9960  */
9961 #define apzX11_NewMachs (const char**)NULL
9964  *  content bypass pattern - skip fix if pattern found
9965  */
9966 tSCC zX11_NewBypass0[] =
9967        "__cplusplus";
9969 #define    X11_NEW_TEST_CT  1
9970 static tTestDesc aX11_NewTests[] = {
9971   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
9974  *  Fix Command Arguments for X11_New
9975  */
9976 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9977     "-e", "/Widget\told, new;/i\\\n\
9978 #ifdef __cplusplus\\\n\
9979 \\\tWidget\told, c_new;\\\n\
9980 #else\n",
9981     "-e", "/Widget\told, new;/a\\\n\
9982 #endif\n",
9983     "-e", "s/Widget new,/Widget c_new,/g",
9984     (char*)NULL };
9986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9988  *  Description of X11_Sprintf fix
9989  */
9990 tSCC zX11_SprintfName[] =
9991      "x11_sprintf";
9994  *  File name selection pattern
9995  */
9996 tSCC zX11_SprintfList[] =
9997   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9999  *  Machine/OS name selection pattern
10000  */
10001 #define apzX11_SprintfMachs (const char**)NULL
10004  *  content selection pattern - do fix if pattern found
10005  */
10006 tSCC zX11_SprintfSelect0[] =
10007        "^extern char \\*\tsprintf\\(\\);$";
10009 #define    X11_SPRINTF_TEST_CT  1
10010 static tTestDesc aX11_SprintfTests[] = {
10011   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
10014  *  Fix Command Arguments for X11_Sprintf
10015  */
10016 static const char* apzX11_SprintfPatch[] = {
10017     "format",
10018     "#ifndef __STDC__\n\
10019 %0\n\
10020 #endif /* !defined __STDC__ */",
10021     (char*)NULL };
10024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10026  *  List of all fixes
10027  */
10028 #define REGEX_COUNT          285
10029 #define MACH_LIST_SIZE_LIMIT 187
10030 #define FIX_COUNT            247
10033  *  Enumerate the fixes
10034  */
10035 typedef enum {
10036     AAB_AIX_STDIO_FIXIDX,
10037     AAB_AIX_FCNTL_FIXIDX,
10038     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
10039     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
10040     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
10041     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
10042     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
10043     AAB_SUN_MEMCPY_FIXIDX,
10044     AAB_VXWORKS_ASSERT_FIXIDX,
10045     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
10046     AAB_VXWORKS_UNISTD_FIXIDX,
10047     AIX_ASSERT_FIXIDX,
10048     AIX_COMPLEX_FIXIDX,
10049     AIX_EXTERNC_FIXIDX,
10050     AIX_EXTERNCPP1_FIXIDX,
10051     AIX_EXTERNCPP2_FIXIDX,
10052     AIX_MALLOC_FIXIDX,
10053     AIX_NET_IF_ARP_FIXIDX,
10054     AIX_NULL_FIXIDX,
10055     AIX_ONCE_INIT_1_FIXIDX,
10056     AIX_ONCE_INIT_2_FIXIDX,
10057     AIX_MUTEX_INITIALIZER_1_FIXIDX,
10058     AIX_COND_INITIALIZER_1_FIXIDX,
10059     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
10060     AIX_PTHREAD_FIXIDX,
10061     AIX_STDINT_1_FIXIDX,
10062     AIX_STDINT_2_FIXIDX,
10063     AIX_STDINT_3_FIXIDX,
10064     AIX_STDINT_4_FIXIDX,
10065     AIX_STDINT_5_FIXIDX,
10066     AIX_STDIO_INLINE_FIXIDX,
10067     AIX_STDLIB_MALLOC_FIXIDX,
10068     AIX_STDLIB_REALLOC_FIXIDX,
10069     AIX_STDLIB_CALLOC_FIXIDX,
10070     AIX_STDLIB_VALLOC_FIXIDX,
10071     AIX_STRTOF_CONST_FIXIDX,
10072     AIX_SYSMACHINE_FIXIDX,
10073     AIX_SYSWAIT_2_FIXIDX,
10074     AIX_VOLATILE_FIXIDX,
10075     ALPHA___ASSERT_FIXIDX,
10076     ALPHA_ASSERT_FIXIDX,
10077     ALPHA_GETOPT_FIXIDX,
10078     ALPHA_IF_SEMICOLON_FIXIDX,
10079     ALPHA_PARENS_FIXIDX,
10080     ALPHA_SBRK_FIXIDX,
10081     AVOID_BOOL_DEFINE_FIXIDX,
10082     AVOID_BOOL_TYPE_FIXIDX,
10083     AVOID_WCHAR_T_TYPE_FIXIDX,
10084     BAD_STRUCT_TERM_FIXIDX,
10085     BADQUOTE_FIXIDX,
10086     BROKEN_ASSERT_STDIO_FIXIDX,
10087     BROKEN_ASSERT_STDLIB_FIXIDX,
10088     BROKEN_CABS_FIXIDX,
10089     BROKEN_NAN_FIXIDX,
10090     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
10091     CTRL_QUOTES_DEF_FIXIDX,
10092     CTRL_QUOTES_USE_FIXIDX,
10093     CXX_UNREADY_FIXIDX,
10094     DARWIN_AVAILABILITYINTERNAL_FIXIDX,
10095     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
10096     DARWIN_EXTERNC_FIXIDX,
10097     DARWIN_GCC4_BREAKAGE_FIXIDX,
10098     DARWIN_LONGJMP_NORETURN_FIXIDX,
10099     DARWIN_OS_TRACE_1_FIXIDX,
10100     DARWIN_OS_TRACE_2_FIXIDX,
10101     DARWIN_OS_TRACE_3_FIXIDX,
10102     DARWIN_PRIVATE_EXTERN_FIXIDX,
10103     DARWIN_STDINT_1_FIXIDX,
10104     DARWIN_STDINT_2_FIXIDX,
10105     DARWIN_STDINT_3_FIXIDX,
10106     DARWIN_STDINT_4_FIXIDX,
10107     DARWIN_STDINT_5_FIXIDX,
10108     DARWIN_STDINT_6_FIXIDX,
10109     DARWIN_STDINT_7_FIXIDX,
10110     DEC_INTERN_ASM_FIXIDX,
10111     DJGPP_WCHAR_H_FIXIDX,
10112     ECD_CURSOR_FIXIDX,
10113     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
10114     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
10115     FREEBSD_GCC3_BREAKAGE_FIXIDX,
10116     FREEBSD_GCC4_BREAKAGE_FIXIDX,
10117     GLIBC_C99_INLINE_1_FIXIDX,
10118     GLIBC_C99_INLINE_1A_FIXIDX,
10119     GLIBC_C99_INLINE_2_FIXIDX,
10120     GLIBC_C99_INLINE_3_FIXIDX,
10121     GLIBC_C99_INLINE_4_FIXIDX,
10122     GLIBC_MUTEX_INIT_FIXIDX,
10123     GLIBC_STDINT_FIXIDX,
10124     GLIBC_STRNCPY_FIXIDX,
10125     GLIBC_TGMATH_FIXIDX,
10126     GNU_TYPES_FIXIDX,
10127     HP_INLINE_FIXIDX,
10128     HP_SYSFILE_FIXIDX,
10129     HPPA_HPUX_FP_MACROS_FIXIDX,
10130     HPUX10_CPP_POW_INLINE_FIXIDX,
10131     HPUX11_CPP_POW_INLINE_FIXIDX,
10132     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
10133     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
10134     HPUX10_STDIO_DECLARATIONS_FIXIDX,
10135     HPPA_HPUX11_ALLOCA_FIXIDX,
10136     HPUX11_ABS_FIXIDX,
10137     HPUX11_LWP_RWLOCK_VALID_FIXIDX,
10138     HPUX11_EXTERN_SENDFILE_FIXIDX,
10139     HPUX11_EXTERN_SENDPATH_FIXIDX,
10140     HPUX11_FABSF_FIXIDX,
10141     HPUX11_PTHREAD_POINTER_FIXIDX,
10142     HPUX11_PTHREAD_CONST_FIXIDX,
10143     HPUX11_SIZE_T_FIXIDX,
10144     HPUX11_SNPRINTF_FIXIDX,
10145     HPUX11_VSNPRINTF_FIXIDX,
10146     HPUX_VSSCANF_FIXIDX,
10147     HPUX8_BOGUS_INLINES_FIXIDX,
10148     HPUX_C99_INTPTR_FIXIDX,
10149     HPUX_C99_INTTYPES_FIXIDX,
10150     HPUX_C99_INTTYPES2_FIXIDX,
10151     HPUX_CTYPE_MACROS_FIXIDX,
10152     HPUX_EXTERN_ERRNO_FIXIDX,
10153     HPUX_HTONL_FIXIDX,
10154     HPUX_IMAGINARY_I_FIXIDX,
10155     HPUX_INTTYPE_INT8_T_FIXIDX,
10156     HPUX_LONG_DOUBLE_FIXIDX,
10157     HPUX_LONG_DOUBLE_2_FIXIDX,
10158     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
10159     HPUX_SPU_INFO_FIXIDX,
10160     HPUX_STDINT_LEAST_FAST_FIXIDX,
10161     HPUX_LONGJMP_FIXIDX,
10162     HPUX_SYSTIME_FIXIDX,
10163     HUGE_VAL_HEX_FIXIDX,
10164     HUGE_VALF_HEX_FIXIDX,
10165     HUGE_VALL_HEX_FIXIDX,
10166     INT_ABORT_FREE_AND_EXIT_FIXIDX,
10167     IO_QUOTES_DEF_FIXIDX,
10168     IO_QUOTES_USE_FIXIDX,
10169     IP_MISSING_SEMI_FIXIDX,
10170     IRIX_LIMITS_CONST_FIXIDX,
10171     IRIX_STDIO_VA_LIST_FIXIDX,
10172     KANDR_CONCAT_FIXIDX,
10173     LINUX_IA64_UCONTEXT_FIXIDX,
10174     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
10175     LYNXOS_MISSING_PUTENV_FIXIDX,
10176     MACHINE_ANSI_H_VA_LIST_FIXIDX,
10177     MACHINE_NAME_FIXIDX,
10178     MATH_EXCEPTION_FIXIDX,
10179     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
10180     NESTED_AUTH_DES_FIXIDX,
10181     NETBSD_C99_INLINE_1_FIXIDX,
10182     NETBSD_C99_INLINE_2_FIXIDX,
10183     NETBSD_EXTRA_SEMICOLON_FIXIDX,
10184     NEWLIB_STDINT_1_FIXIDX,
10185     NEWLIB_STDINT_2_FIXIDX,
10186     NEXT_MATH_PREFIX_FIXIDX,
10187     NEXT_TEMPLATE_FIXIDX,
10188     NEXT_VOLITILE_FIXIDX,
10189     NEXT_WAIT_UNION_FIXIDX,
10190     NODEENT_SYNTAX_FIXIDX,
10191     OPENBSD_NULL_DEFINITION_FIXIDX,
10192     OBSTACK_LVALUE_CAST_FIXIDX,
10193     OPENBSD_VA_START_FIXIDX,
10194     OSF_NAMESPACE_A_FIXIDX,
10195     OSF_NAMESPACE_C_FIXIDX,
10196     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
10197     READ_RET_TYPE_FIXIDX,
10198     RPC_XDR_LVALUE_CAST_A_FIXIDX,
10199     RPC_XDR_LVALUE_CAST_B_FIXIDX,
10200     RS6000_DOUBLE_FIXIDX,
10201     RS6000_FCHMOD_FIXIDX,
10202     RS6000_PARAM_FIXIDX,
10203     SOLARIS___RESTRICT_FIXIDX,
10204     SOLARIS_COMPLEX_FIXIDX,
10205     SOLARIS_COMPLEX_CXX_FIXIDX,
10206     SOLARIS_CXX_LINKAGE_FIXIDX,
10207     SOLARIS_GETC_STRICT_STDC_FIXIDX,
10208     SOLARIS_GETS_C11_FIXIDX,
10209     SOLARIS_GETS_CXX14_FIXIDX,
10210     SOLARIS_INT_CONST_FIXIDX,
10211     SOLARIS_INT_LIMITS_1_FIXIDX,
10212     SOLARIS_INT_LIMITS_2_FIXIDX,
10213     SOLARIS_INT_LIMITS_3_FIXIDX,
10214     SOLARIS_MATH_1_FIXIDX,
10215     SOLARIS_MATH_10_FIXIDX,
10216     SOLARIS_MATH_2_FIXIDX,
10217     SOLARIS_MATH_3_FIXIDX,
10218     SOLARIS_MATH_4_FIXIDX,
10219     SOLARIS_MATH_8_FIXIDX,
10220     SOLARIS_MATH_9_FIXIDX,
10221     SOLARIS_MATH_11_FIXIDX,
10222     SOLARIS_MATH_12_FIXIDX,
10223     SOLARIS_ONCE_INIT_1_FIXIDX,
10224     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
10225     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
10226     SOLARIS_RWLOCK_INIT_1_FIXIDX,
10227     SOLARIS_STD___FILBUF_FIXIDX,
10228     SOLARIS_STD_GETS_CXX14_FIXIDX,
10229     SOLARIS_STDIO_TAG_FIXIDX,
10230     SOLARIS_STDLIB_NORETURN_FIXIDX,
10231     STATSSWTCH_FIXIDX,
10232     STDIO_STDARG_H_FIXIDX,
10233     STDIO_VA_LIST_FIXIDX,
10234     STDIO_VA_LIST_CLIENTS_FIXIDX,
10235     STRICT_ANSI_NOT_FIXIDX,
10236     STRICT_ANSI_NOT_CTD_FIXIDX,
10237     STRICT_ANSI_ONLY_FIXIDX,
10238     STRUCT_FILE_FIXIDX,
10239     STRUCT_SOCKADDR_FIXIDX,
10240     SUN_AUTH_PROTO_FIXIDX,
10241     SUN_BOGUS_IFDEF_FIXIDX,
10242     SUN_CATMACRO_FIXIDX,
10243     SUN_MALLOC_FIXIDX,
10244     SUN_RUSERS_SEMI_FIXIDX,
10245     SUN_SIGNAL_FIXIDX,
10246     SUNOS_STRLEN_FIXIDX,
10247     SUSE_LINUX_VT_CXX_FIXIDX,
10248     SVR4_DISABLE_OPT_FIXIDX,
10249     SVR4_GETCWD_FIXIDX,
10250     SVR4_PROFIL_FIXIDX,
10251     SVR4_SIGHANDLER_TYPE_FIXIDX,
10252     SVR4_UNDECLARED_GETRNGE_FIXIDX,
10253     SYSV68_STRING_FIXIDX,
10254     SYSZ_STDLIB_FOR_SUN_FIXIDX,
10255     THREAD_KEYWORD_FIXIDX,
10256     TINFO_CPLUSPLUS_FIXIDX,
10257     ULTRIX_CONST_FIXIDX,
10258     ULTRIX_CONST2_FIXIDX,
10259     VA_I960_MACRO_FIXIDX,
10260     VMS_ADD_MISSING_BRACES_FIXIDX,
10261     VMS_DECC_BUILTIN_FIXIDX,
10262     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
10263     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
10264     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
10265     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
10266     VMS_NO_64BIT_GETOPT_FIXIDX,
10267     VMS_USE_FAST_SETJMP_FIXIDX,
10268     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
10269     VMS_USE_QUOTED_INCLUDE_FIXIDX,
10270     VOID_NULL_FIXIDX,
10271     VXWORKS_GCC_PROBLEM_FIXIDX,
10272     VXWORKS_IOCTL_MACRO_FIXIDX,
10273     VXWORKS_MKDIR_MACRO_FIXIDX,
10274     VXWORKS_NEEDS_VXTYPES_FIXIDX,
10275     VXWORKS_NEEDS_VXWORKS_FIXIDX,
10276     VXWORKS_REGS_FIXIDX,
10277     VXWORKS_TIME_FIXIDX,
10278     VXWORKS_WRITE_CONST_FIXIDX,
10279     X11_CLASS_FIXIDX,
10280     X11_CLASS_USAGE_FIXIDX,
10281     X11_NEW_FIXIDX,
10282     X11_SPRINTF_FIXIDX
10283 } t_fixinc_idx;
10285 tFixDesc fixDescList[ FIX_COUNT ] = {
10286   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
10287      apzAab_Aix_StdioMachs,
10288      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10289      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
10291   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
10292      apzAab_Aix_FcntlMachs,
10293      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10294      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
10296   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
10297      apzAab_Darwin7_9_Long_Double_FuncsMachs,
10298      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10299      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
10301   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
10302      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
10303      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10304      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
10306   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
10307      apzAab_Fd_Zero_Gnu_Types_HMachs,
10308      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10309      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
10311   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
10312      apzAab_Fd_Zero_Selectbits_HMachs,
10313      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10314      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
10316   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
10317      apzAab_Solaris_Sys_Varargs_HMachs,
10318      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10319      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
10321   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
10322      apzAab_Sun_MemcpyMachs,
10323      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10324      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
10326   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
10327      apzAab_Vxworks_AssertMachs,
10328      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10329      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
10331   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
10332      apzAab_Vxworks_Regs_VxtypesMachs,
10333      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10334      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
10336   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
10337      apzAab_Vxworks_UnistdMachs,
10338      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10339      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
10341   {  zAix_AssertName,    zAix_AssertList,
10342      apzAix_AssertMachs,
10343      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10344      aAix_AssertTests,   apzAix_AssertPatch, 0 },
10346   {  zAix_ComplexName,    zAix_ComplexList,
10347      apzAix_ComplexMachs,
10348      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10349      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
10351   {  zAix_ExterncName,    zAix_ExterncList,
10352      apzAix_ExterncMachs,
10353      AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10354      aAix_ExterncTests,   apzAix_ExterncPatch, 0 },
10356   {  zAix_Externcpp1Name,    zAix_Externcpp1List,
10357      apzAix_Externcpp1Machs,
10358      AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10359      aAix_Externcpp1Tests,   apzAix_Externcpp1Patch, 0 },
10361   {  zAix_Externcpp2Name,    zAix_Externcpp2List,
10362      apzAix_Externcpp2Machs,
10363      AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10364      aAix_Externcpp2Tests,   apzAix_Externcpp2Patch, 0 },
10366   {  zAix_MallocName,    zAix_MallocList,
10367      apzAix_MallocMachs,
10368      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10369      aAix_MallocTests,   apzAix_MallocPatch, 0 },
10371   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
10372      apzAix_Net_If_ArpMachs,
10373      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10374      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
10376   {  zAix_NullName,    zAix_NullList,
10377      apzAix_NullMachs,
10378      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10379      aAix_NullTests,   apzAix_NullPatch, 0 },
10381   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
10382      apzAix_Once_Init_1Machs,
10383      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10384      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
10386   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
10387      apzAix_Once_Init_2Machs,
10388      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10389      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
10391   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
10392      apzAix_Mutex_Initializer_1Machs,
10393      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10394      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
10396   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
10397      apzAix_Cond_Initializer_1Machs,
10398      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10399      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
10401   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
10402      apzAix_Rwlock_Initializer_1Machs,
10403      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10404      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
10406   {  zAix_PthreadName,    zAix_PthreadList,
10407      apzAix_PthreadMachs,
10408      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10409      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
10411   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
10412      apzAix_Stdint_1Machs,
10413      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10414      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
10416   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
10417      apzAix_Stdint_2Machs,
10418      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10419      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
10421   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
10422      apzAix_Stdint_3Machs,
10423      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10424      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
10426   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
10427      apzAix_Stdint_4Machs,
10428      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10429      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
10431   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
10432      apzAix_Stdint_5Machs,
10433      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10434      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
10436   {  zAix_Stdio_InlineName,    zAix_Stdio_InlineList,
10437      apzAix_Stdio_InlineMachs,
10438      AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10439      aAix_Stdio_InlineTests,   apzAix_Stdio_InlinePatch, 0 },
10441   {  zAix_Stdlib_MallocName,    zAix_Stdlib_MallocList,
10442      apzAix_Stdlib_MallocMachs,
10443      AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10444      aAix_Stdlib_MallocTests,   apzAix_Stdlib_MallocPatch, 0 },
10446   {  zAix_Stdlib_ReallocName,    zAix_Stdlib_ReallocList,
10447      apzAix_Stdlib_ReallocMachs,
10448      AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10449      aAix_Stdlib_ReallocTests,   apzAix_Stdlib_ReallocPatch, 0 },
10451   {  zAix_Stdlib_CallocName,    zAix_Stdlib_CallocList,
10452      apzAix_Stdlib_CallocMachs,
10453      AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10454      aAix_Stdlib_CallocTests,   apzAix_Stdlib_CallocPatch, 0 },
10456   {  zAix_Stdlib_VallocName,    zAix_Stdlib_VallocList,
10457      apzAix_Stdlib_VallocMachs,
10458      AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10459      aAix_Stdlib_VallocTests,   apzAix_Stdlib_VallocPatch, 0 },
10461   {  zAix_Strtof_ConstName,    zAix_Strtof_ConstList,
10462      apzAix_Strtof_ConstMachs,
10463      AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10464      aAix_Strtof_ConstTests,   apzAix_Strtof_ConstPatch, 0 },
10466   {  zAix_SysmachineName,    zAix_SysmachineList,
10467      apzAix_SysmachineMachs,
10468      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10469      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
10471   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
10472      apzAix_Syswait_2Machs,
10473      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10474      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
10476   {  zAix_VolatileName,    zAix_VolatileList,
10477      apzAix_VolatileMachs,
10478      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10479      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
10481   {  zAlpha___AssertName,    zAlpha___AssertList,
10482      apzAlpha___AssertMachs,
10483      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10484      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
10486   {  zAlpha_AssertName,    zAlpha_AssertList,
10487      apzAlpha_AssertMachs,
10488      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10489      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
10491   {  zAlpha_GetoptName,    zAlpha_GetoptList,
10492      apzAlpha_GetoptMachs,
10493      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10494      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
10496   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
10497      apzAlpha_If_SemicolonMachs,
10498      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10499      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
10501   {  zAlpha_ParensName,    zAlpha_ParensList,
10502      apzAlpha_ParensMachs,
10503      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10504      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
10506   {  zAlpha_SbrkName,    zAlpha_SbrkList,
10507      apzAlpha_SbrkMachs,
10508      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10509      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
10511   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
10512      apzAvoid_Bool_DefineMachs,
10513      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10514      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
10516   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
10517      apzAvoid_Bool_TypeMachs,
10518      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10519      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
10521   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
10522      apzAvoid_Wchar_T_TypeMachs,
10523      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10524      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
10526   {  zBad_Struct_TermName,    zBad_Struct_TermList,
10527      apzBad_Struct_TermMachs,
10528      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10529      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
10531   {  zBadquoteName,    zBadquoteList,
10532      apzBadquoteMachs,
10533      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10534      aBadquoteTests,   apzBadquotePatch, 0 },
10536   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
10537      apzBroken_Assert_StdioMachs,
10538      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10539      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
10541   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
10542      apzBroken_Assert_StdlibMachs,
10543      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10544      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
10546   {  zBroken_CabsName,    zBroken_CabsList,
10547      apzBroken_CabsMachs,
10548      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
10549      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
10551   {  zBroken_NanName,    zBroken_NanList,
10552      apzBroken_NanMachs,
10553      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10554      aBroken_NanTests,   apzBroken_NanPatch, 0 },
10556   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
10557      apzBsd_Stdio_Attrs_ConflictMachs,
10558      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10559      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
10561   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
10562      apzCtrl_Quotes_DefMachs,
10563      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10564      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
10566   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
10567      apzCtrl_Quotes_UseMachs,
10568      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10569      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
10571   {  zCxx_UnreadyName,    zCxx_UnreadyList,
10572      apzCxx_UnreadyMachs,
10573      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10574      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
10576   {  zDarwin_AvailabilityinternalName,    zDarwin_AvailabilityinternalList,
10577      apzDarwin_AvailabilityinternalMachs,
10578      DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10579      aDarwin_AvailabilityinternalTests,   apzDarwin_AvailabilityinternalPatch, 0 },
10581   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
10582      apzDarwin_9_Long_Double_Funcs_2Machs,
10583      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10584      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
10586   {  zDarwin_ExterncName,    zDarwin_ExterncList,
10587      apzDarwin_ExterncMachs,
10588      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10589      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
10591   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
10592      apzDarwin_Gcc4_BreakageMachs,
10593      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10594      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
10596   {  zDarwin_Longjmp_NoreturnName,    zDarwin_Longjmp_NoreturnList,
10597      apzDarwin_Longjmp_NoreturnMachs,
10598      DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10599      aDarwin_Longjmp_NoreturnTests,   apzDarwin_Longjmp_NoreturnPatch, 0 },
10601   {  zDarwin_Os_Trace_1Name,    zDarwin_Os_Trace_1List,
10602      apzDarwin_Os_Trace_1Machs,
10603      DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10604      aDarwin_Os_Trace_1Tests,   apzDarwin_Os_Trace_1Patch, 0 },
10606   {  zDarwin_Os_Trace_2Name,    zDarwin_Os_Trace_2List,
10607      apzDarwin_Os_Trace_2Machs,
10608      DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10609      aDarwin_Os_Trace_2Tests,   apzDarwin_Os_Trace_2Patch, 0 },
10611   {  zDarwin_Os_Trace_3Name,    zDarwin_Os_Trace_3List,
10612      apzDarwin_Os_Trace_3Machs,
10613      DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10614      aDarwin_Os_Trace_3Tests,   apzDarwin_Os_Trace_3Patch, 0 },
10616   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
10617      apzDarwin_Private_ExternMachs,
10618      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10619      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
10621   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
10622      apzDarwin_Stdint_1Machs,
10623      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10624      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
10626   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
10627      apzDarwin_Stdint_2Machs,
10628      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10629      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
10631   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
10632      apzDarwin_Stdint_3Machs,
10633      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10634      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
10636   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
10637      apzDarwin_Stdint_4Machs,
10638      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10639      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
10641   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
10642      apzDarwin_Stdint_5Machs,
10643      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10644      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
10646   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
10647      apzDarwin_Stdint_6Machs,
10648      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10649      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
10651   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
10652      apzDarwin_Stdint_7Machs,
10653      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10654      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
10656   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
10657      apzDec_Intern_AsmMachs,
10658      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
10659      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
10661   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
10662      apzDjgpp_Wchar_HMachs,
10663      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10664      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
10666   {  zEcd_CursorName,    zEcd_CursorList,
10667      apzEcd_CursorMachs,
10668      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10669      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
10671   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
10672      apzFeraiseexcept_Nosse_DivbyzeroMachs,
10673      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10674      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
10676   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
10677      apzFeraiseexcept_Nosse_InvalidMachs,
10678      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10679      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
10681   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
10682      apzFreebsd_Gcc3_BreakageMachs,
10683      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10684      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
10686   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
10687      apzFreebsd_Gcc4_BreakageMachs,
10688      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10689      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
10691   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
10692      apzGlibc_C99_Inline_1Machs,
10693      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10694      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
10696   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
10697      apzGlibc_C99_Inline_1aMachs,
10698      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10699      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
10701   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
10702      apzGlibc_C99_Inline_2Machs,
10703      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
10704      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
10706   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
10707      apzGlibc_C99_Inline_3Machs,
10708      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10709      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
10711   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
10712      apzGlibc_C99_Inline_4Machs,
10713      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10714      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
10716   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
10717      apzGlibc_Mutex_InitMachs,
10718      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
10719      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
10721   {  zGlibc_StdintName,    zGlibc_StdintList,
10722      apzGlibc_StdintMachs,
10723      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10724      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
10726   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
10727      apzGlibc_StrncpyMachs,
10728      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10729      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
10731   {  zGlibc_TgmathName,    zGlibc_TgmathList,
10732      apzGlibc_TgmathMachs,
10733      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10734      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
10736   {  zGnu_TypesName,    zGnu_TypesList,
10737      apzGnu_TypesMachs,
10738      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10739      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
10741   {  zHp_InlineName,    zHp_InlineList,
10742      apzHp_InlineMachs,
10743      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10744      aHp_InlineTests,   apzHp_InlinePatch, 0 },
10746   {  zHp_SysfileName,    zHp_SysfileList,
10747      apzHp_SysfileMachs,
10748      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10749      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
10751   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
10752      apzHppa_Hpux_Fp_MacrosMachs,
10753      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10754      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
10756   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
10757      apzHpux10_Cpp_Pow_InlineMachs,
10758      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10759      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
10761   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
10762      apzHpux11_Cpp_Pow_InlineMachs,
10763      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10764      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
10766   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
10767      apzHpux10_Ctype_Declarations1Machs,
10768      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10769      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
10771   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
10772      apzHpux10_Ctype_Declarations2Machs,
10773      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10774      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
10776   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
10777      apzHpux10_Stdio_DeclarationsMachs,
10778      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10779      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
10781   {  zHppa_Hpux11_AllocaName,    zHppa_Hpux11_AllocaList,
10782      apzHppa_Hpux11_AllocaMachs,
10783      HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10784      aHppa_Hpux11_AllocaTests,   apzHppa_Hpux11_AllocaPatch, 0 },
10786   {  zHpux11_AbsName,    zHpux11_AbsList,
10787      apzHpux11_AbsMachs,
10788      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10789      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
10791   {  zHpux11_Lwp_Rwlock_ValidName,    zHpux11_Lwp_Rwlock_ValidList,
10792      apzHpux11_Lwp_Rwlock_ValidMachs,
10793      HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10794      aHpux11_Lwp_Rwlock_ValidTests,   apzHpux11_Lwp_Rwlock_ValidPatch, 0 },
10796   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
10797      apzHpux11_Extern_SendfileMachs,
10798      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10799      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
10801   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
10802      apzHpux11_Extern_SendpathMachs,
10803      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10804      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
10806   {  zHpux11_FabsfName,    zHpux11_FabsfList,
10807      apzHpux11_FabsfMachs,
10808      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10809      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
10811   {  zHpux11_Pthread_PointerName,    zHpux11_Pthread_PointerList,
10812      apzHpux11_Pthread_PointerMachs,
10813      HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10814      aHpux11_Pthread_PointerTests,   apzHpux11_Pthread_PointerPatch, 0 },
10816   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
10817      apzHpux11_Pthread_ConstMachs,
10818      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10819      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
10821   {  zHpux11_Size_TName,    zHpux11_Size_TList,
10822      apzHpux11_Size_TMachs,
10823      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10824      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
10826   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
10827      apzHpux11_SnprintfMachs,
10828      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10829      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
10831   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
10832      apzHpux11_VsnprintfMachs,
10833      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10834      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
10836   {  zHpux_VsscanfName,    zHpux_VsscanfList,
10837      apzHpux_VsscanfMachs,
10838      HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10839      aHpux_VsscanfTests,   apzHpux_VsscanfPatch, 0 },
10841   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
10842      apzHpux8_Bogus_InlinesMachs,
10843      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
10844      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
10846   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
10847      apzHpux_C99_IntptrMachs,
10848      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
10849      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
10851   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
10852      apzHpux_C99_InttypesMachs,
10853      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
10854      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
10856   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
10857      apzHpux_C99_Inttypes2Machs,
10858      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
10859      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
10861   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
10862      apzHpux_Ctype_MacrosMachs,
10863      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10864      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
10866   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
10867      apzHpux_Extern_ErrnoMachs,
10868      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10869      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
10871   {  zHpux_HtonlName,    zHpux_HtonlList,
10872      apzHpux_HtonlMachs,
10873      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10874      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
10876   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
10877      apzHpux_Imaginary_IMachs,
10878      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10879      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
10881   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
10882      apzHpux_Inttype_Int8_TMachs,
10883      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10884      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
10886   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
10887      apzHpux_Long_DoubleMachs,
10888      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
10889      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
10891   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
10892      apzHpux_Long_Double_2Machs,
10893      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10894      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
10896   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
10897      apzHpux_Pthread_InitializersMachs,
10898      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
10899      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
10901   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
10902      apzHpux_Spu_InfoMachs,
10903      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10904      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
10906   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
10907      apzHpux_Stdint_Least_FastMachs,
10908      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10909      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
10911   {  zHpux_LongjmpName,    zHpux_LongjmpList,
10912      apzHpux_LongjmpMachs,
10913      HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10914      aHpux_LongjmpTests,   apzHpux_LongjmpPatch, 0 },
10916   {  zHpux_SystimeName,    zHpux_SystimeList,
10917      apzHpux_SystimeMachs,
10918      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10919      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
10921   {  zHuge_Val_HexName,    zHuge_Val_HexList,
10922      apzHuge_Val_HexMachs,
10923      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10924      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
10926   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
10927      apzHuge_Valf_HexMachs,
10928      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10929      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
10931   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
10932      apzHuge_Vall_HexMachs,
10933      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10934      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
10936   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
10937      apzInt_Abort_Free_And_ExitMachs,
10938      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10939      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
10941   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
10942      apzIo_Quotes_DefMachs,
10943      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10944      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
10946   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
10947      apzIo_Quotes_UseMachs,
10948      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10949      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
10951   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
10952      apzIp_Missing_SemiMachs,
10953      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
10954      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
10956   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
10957      apzIrix_Limits_ConstMachs,
10958      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10959      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
10961   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
10962      apzIrix_Stdio_Va_ListMachs,
10963      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10964      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
10966   {  zKandr_ConcatName,    zKandr_ConcatList,
10967      apzKandr_ConcatMachs,
10968      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10969      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
10971   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
10972      apzLinux_Ia64_UcontextMachs,
10973      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10974      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
10976   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
10977      apzLynxos_No_Warning_In_Sys_Time_HMachs,
10978      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10979      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
10981   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
10982      apzLynxos_Missing_PutenvMachs,
10983      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10984      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
10986   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
10987      apzMachine_Ansi_H_Va_ListMachs,
10988      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10989      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
10991   {  zMachine_NameName,    zMachine_NameList,
10992      apzMachine_NameMachs,
10993      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10994      aMachine_NameTests,   apzMachine_NamePatch, 0 },
10996   {  zMath_ExceptionName,    zMath_ExceptionList,
10997      apzMath_ExceptionMachs,
10998      MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10999      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
11001   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
11002      apzMath_Huge_Val_From_Dbl_MaxMachs,
11003      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
11004      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
11006   {  zNested_Auth_DesName,    zNested_Auth_DesList,
11007      apzNested_Auth_DesMachs,
11008      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11009      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
11011   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
11012      apzNetbsd_C99_Inline_1Machs,
11013      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11014      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
11016   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
11017      apzNetbsd_C99_Inline_2Machs,
11018      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11019      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
11021   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
11022      apzNetbsd_Extra_SemicolonMachs,
11023      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11024      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
11026   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
11027      apzNewlib_Stdint_1Machs,
11028      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
11029      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
11031   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
11032      apzNewlib_Stdint_2Machs,
11033      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11034      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
11036   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
11037      apzNext_Math_PrefixMachs,
11038      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11039      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
11041   {  zNext_TemplateName,    zNext_TemplateList,
11042      apzNext_TemplateMachs,
11043      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11044      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
11046   {  zNext_VolitileName,    zNext_VolitileList,
11047      apzNext_VolitileMachs,
11048      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11049      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
11051   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
11052      apzNext_Wait_UnionMachs,
11053      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11054      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
11056   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
11057      apzNodeent_SyntaxMachs,
11058      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11059      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
11061   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
11062      apzOpenbsd_Null_DefinitionMachs,
11063      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11064      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
11066   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
11067      apzObstack_Lvalue_CastMachs,
11068      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11069      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
11071   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
11072      apzOpenbsd_Va_StartMachs,
11073      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11074      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
11076   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
11077      apzOsf_Namespace_AMachs,
11078      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11079      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
11081   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
11082      apzOsf_Namespace_CMachs,
11083      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11084      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
11086   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
11087      apzPthread_Incomplete_Struct_ArgumentMachs,
11088      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11089      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
11091   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
11092      apzRead_Ret_TypeMachs,
11093      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11094      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
11096   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
11097      apzRpc_Xdr_Lvalue_Cast_AMachs,
11098      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11099      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
11101   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
11102      apzRpc_Xdr_Lvalue_Cast_BMachs,
11103      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11104      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
11106   {  zRs6000_DoubleName,    zRs6000_DoubleList,
11107      apzRs6000_DoubleMachs,
11108      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11109      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
11111   {  zRs6000_FchmodName,    zRs6000_FchmodList,
11112      apzRs6000_FchmodMachs,
11113      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11114      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
11116   {  zRs6000_ParamName,    zRs6000_ParamList,
11117      apzRs6000_ParamMachs,
11118      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11119      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
11121   {  zSolaris___RestrictName,    zSolaris___RestrictList,
11122      apzSolaris___RestrictMachs,
11123      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11124      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
11126   {  zSolaris_ComplexName,    zSolaris_ComplexList,
11127      apzSolaris_ComplexMachs,
11128      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
11129      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
11131   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
11132      apzSolaris_Complex_CxxMachs,
11133      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
11134      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
11136   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
11137      apzSolaris_Cxx_LinkageMachs,
11138      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11139      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
11141   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
11142      apzSolaris_Getc_Strict_StdcMachs,
11143      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11144      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
11146   {  zSolaris_Gets_C11Name,    zSolaris_Gets_C11List,
11147      apzSolaris_Gets_C11Machs,
11148      SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11149      aSolaris_Gets_C11Tests,   apzSolaris_Gets_C11Patch, 0 },
11151   {  zSolaris_Gets_Cxx14Name,    zSolaris_Gets_Cxx14List,
11152      apzSolaris_Gets_Cxx14Machs,
11153      SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11154      aSolaris_Gets_Cxx14Tests,   apzSolaris_Gets_Cxx14Patch, 0 },
11156   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
11157      apzSolaris_Int_ConstMachs,
11158      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11159      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
11161   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
11162      apzSolaris_Int_Limits_1Machs,
11163      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11164      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
11166   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
11167      apzSolaris_Int_Limits_2Machs,
11168      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11169      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
11171   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
11172      apzSolaris_Int_Limits_3Machs,
11173      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11174      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
11176   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
11177      apzSolaris_Math_1Machs,
11178      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11179      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
11181   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
11182      apzSolaris_Math_10Machs,
11183      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11184      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
11186   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
11187      apzSolaris_Math_2Machs,
11188      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11189      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
11191   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
11192      apzSolaris_Math_3Machs,
11193      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11194      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
11196   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
11197      apzSolaris_Math_4Machs,
11198      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11199      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
11201   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
11202      apzSolaris_Math_8Machs,
11203      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11204      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
11206   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
11207      apzSolaris_Math_9Machs,
11208      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11209      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
11211   {  zSolaris_Math_11Name,    zSolaris_Math_11List,
11212      apzSolaris_Math_11Machs,
11213      SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11214      aSolaris_Math_11Tests,   apzSolaris_Math_11Patch, 0 },
11216   {  zSolaris_Math_12Name,    zSolaris_Math_12List,
11217      apzSolaris_Math_12Machs,
11218      SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
11219      aSolaris_Math_12Tests,   apzSolaris_Math_12Patch, 0 },
11221   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
11222      apzSolaris_Once_Init_1Machs,
11223      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11224      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
11226   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
11227      apzSolaris_Posix_Spawn_RestrictMachs,
11228      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11229      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
11231   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
11232      apzSolaris_Pow_Int_OverloadMachs,
11233      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11234      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
11236   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
11237      apzSolaris_Rwlock_Init_1Machs,
11238      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11239      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
11241   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
11242      apzSolaris_Std___FilbufMachs,
11243      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11244      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
11246   {  zSolaris_Std_Gets_Cxx14Name,    zSolaris_Std_Gets_Cxx14List,
11247      apzSolaris_Std_Gets_Cxx14Machs,
11248      SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11249      aSolaris_Std_Gets_Cxx14Tests,   apzSolaris_Std_Gets_Cxx14Patch, 0 },
11251   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
11252      apzSolaris_Stdio_TagMachs,
11253      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
11254      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
11256   {  zSolaris_Stdlib_NoreturnName,    zSolaris_Stdlib_NoreturnList,
11257      apzSolaris_Stdlib_NoreturnMachs,
11258      SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11259      aSolaris_Stdlib_NoreturnTests,   apzSolaris_Stdlib_NoreturnPatch, 0 },
11261   {  zStatsswtchName,    zStatsswtchList,
11262      apzStatsswtchMachs,
11263      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11264      aStatsswtchTests,   apzStatsswtchPatch, 0 },
11266   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
11267      apzStdio_Stdarg_HMachs,
11268      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11269      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
11271   {  zStdio_Va_ListName,    zStdio_Va_ListList,
11272      apzStdio_Va_ListMachs,
11273      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
11274      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
11276   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
11277      apzStdio_Va_List_ClientsMachs,
11278      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
11279      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
11281   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
11282      apzStrict_Ansi_NotMachs,
11283      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11284      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
11286   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
11287      apzStrict_Ansi_Not_CtdMachs,
11288      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11289      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
11291   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
11292      apzStrict_Ansi_OnlyMachs,
11293      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11294      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
11296   {  zStruct_FileName,    zStruct_FileList,
11297      apzStruct_FileMachs,
11298      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11299      aStruct_FileTests,   apzStruct_FilePatch, 0 },
11301   {  zStruct_SockaddrName,    zStruct_SockaddrList,
11302      apzStruct_SockaddrMachs,
11303      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11304      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
11306   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
11307      apzSun_Auth_ProtoMachs,
11308      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11309      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
11311   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
11312      apzSun_Bogus_IfdefMachs,
11313      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11314      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
11316   {  zSun_CatmacroName,    zSun_CatmacroList,
11317      apzSun_CatmacroMachs,
11318      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11319      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
11321   {  zSun_MallocName,    zSun_MallocList,
11322      apzSun_MallocMachs,
11323      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
11324      aSun_MallocTests,   apzSun_MallocPatch, 0 },
11326   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
11327      apzSun_Rusers_SemiMachs,
11328      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
11329      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
11331   {  zSun_SignalName,    zSun_SignalList,
11332      apzSun_SignalMachs,
11333      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11334      aSun_SignalTests,   apzSun_SignalPatch, 0 },
11336   {  zSunos_StrlenName,    zSunos_StrlenList,
11337      apzSunos_StrlenMachs,
11338      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11339      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
11341   {  zSuse_Linux_Vt_CxxName,    zSuse_Linux_Vt_CxxList,
11342      apzSuse_Linux_Vt_CxxMachs,
11343      SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11344      aSuse_Linux_Vt_CxxTests,   apzSuse_Linux_Vt_CxxPatch, 0 },
11346   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
11347      apzSvr4_Disable_OptMachs,
11348      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
11349      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
11351   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
11352      apzSvr4_GetcwdMachs,
11353      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11354      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
11356   {  zSvr4_ProfilName,    zSvr4_ProfilList,
11357      apzSvr4_ProfilMachs,
11358      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11359      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
11361   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
11362      apzSvr4_Sighandler_TypeMachs,
11363      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11364      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
11366   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
11367      apzSvr4_Undeclared_GetrngeMachs,
11368      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11369      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
11371   {  zSysv68_StringName,    zSysv68_StringList,
11372      apzSysv68_StringMachs,
11373      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
11374      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
11376   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
11377      apzSysz_Stdlib_For_SunMachs,
11378      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11379      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
11381   {  zThread_KeywordName,    zThread_KeywordList,
11382      apzThread_KeywordMachs,
11383      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11384      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
11386   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
11387      apzTinfo_CplusplusMachs,
11388      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11389      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
11391   {  zUltrix_ConstName,    zUltrix_ConstList,
11392      apzUltrix_ConstMachs,
11393      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11394      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
11396   {  zUltrix_Const2Name,    zUltrix_Const2List,
11397      apzUltrix_Const2Machs,
11398      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11399      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
11401   {  zVa_I960_MacroName,    zVa_I960_MacroList,
11402      apzVa_I960_MacroMachs,
11403      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11404      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
11406   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
11407      apzVms_Add_Missing_BracesMachs,
11408      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11409      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
11411   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
11412      apzVms_Decc_BuiltinMachs,
11413      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
11414      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
11416   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
11417      apzVms_Define_Can_Use_Extern_PrefixMachs,
11418      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11419      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
11421   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
11422      apzVms_Disable_Decc_String_BuiltinsMachs,
11423      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11424      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
11426   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
11427      apzVms_Do_Not_Redeclare_HostaliasMachs,
11428      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11429      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
11431   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
11432      apzVms_Forward_Declare_StructMachs,
11433      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11434      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
11436   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
11437      apzVms_No_64bit_GetoptMachs,
11438      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11439      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
11441   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
11442      apzVms_Use_Fast_SetjmpMachs,
11443      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11444      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
11446   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
11447      apzVms_Use_Pragma_Extern_ModelMachs,
11448      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11449      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
11451   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
11452      apzVms_Use_Quoted_IncludeMachs,
11453      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11454      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
11456   {  zVoid_NullName,    zVoid_NullList,
11457      apzVoid_NullMachs,
11458      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11459      aVoid_NullTests,   apzVoid_NullPatch, 0 },
11461   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
11462      apzVxworks_Gcc_ProblemMachs,
11463      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
11464      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
11466   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
11467      apzVxworks_Ioctl_MacroMachs,
11468      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11469      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
11471   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
11472      apzVxworks_Mkdir_MacroMachs,
11473      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11474      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
11476   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
11477      apzVxworks_Needs_VxtypesMachs,
11478      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11479      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
11481   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
11482      apzVxworks_Needs_VxworksMachs,
11483      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
11484      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
11486   {  zVxworks_RegsName,    zVxworks_RegsList,
11487      apzVxworks_RegsMachs,
11488      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11489      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
11491   {  zVxworks_TimeName,    zVxworks_TimeList,
11492      apzVxworks_TimeMachs,
11493      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11494      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
11496   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
11497      apzVxworks_Write_ConstMachs,
11498      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11499      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
11501   {  zX11_ClassName,    zX11_ClassList,
11502      apzX11_ClassMachs,
11503      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11504      aX11_ClassTests,   apzX11_ClassPatch, 0 },
11506   {  zX11_Class_UsageName,    zX11_Class_UsageList,
11507      apzX11_Class_UsageMachs,
11508      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11509      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
11511   {  zX11_NewName,    zX11_NewList,
11512      apzX11_NewMachs,
11513      X11_NEW_TEST_CT, FD_MACH_ONLY,
11514      aX11_NewTests,   apzX11_NewPatch, 0 },
11516   {  zX11_SprintfName,    zX11_SprintfList,
11517      apzX11_SprintfMachs,
11518      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11519      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }