[42/46] Add vec_info::replace_stmt
[official-gcc.git] / fixincludes / fixincl.x
bloba5d7884a62ae86c47b99b874bd1e546a258f24b0
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  *
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  *
5  * It has been AutoGen-ed  July 23, 2018 at 07:27:34 PM by AutoGen 5.18
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mon Jul 23 19:27:34 UTC 2018
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 251 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 "#ifdef _ASSERT_H\n\
528 #undef _ASSERT_H\n\
529 #undef assert\n\
530 #endif\n\n\
531 #define _ASSERT_H\n\n\
532 #ifdef __cplusplus\n\
533 extern \"C\" {\n\
534 #endif\n\n\
535 #if defined(__STDC__) || defined(__cplusplus)\n\
536 extern void __assert (const char*);\n\
537 #else\n\
538 extern void __assert ();\n\
539 #endif\n\n\
540 #ifdef NDEBUG\n\
541 #define assert(ign) ((void)0)\n\
542 #else\n\n\
543 #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
544 #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
545 #define assert(test) ((void) \\\n\
546         ((test) ? ((void)0) : \\\n\
547         __assert(\"Assertion failed: \" #test \", file \" \\\n\
548         __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
549 #endif\n\n\
550 #ifdef __cplusplus\n\
551 }\n\
552 #endif",
553     (char*)NULL };
555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
557  *  Description of Aab_Vxworks_Regs_Vxtypes fix
558  */
559 tSCC zAab_Vxworks_Regs_VxtypesName[] =
560      "AAB_vxworks_regs_vxtypes";
563  *  File name selection pattern
564  */
565 tSCC zAab_Vxworks_Regs_VxtypesList[] =
566   "regs.h\0";
568  *  Machine/OS name selection pattern
569  */
570 tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
571         "*-*-vxworks*",
572         (const char*)NULL };
573 #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT  0
574 #define aAab_Vxworks_Regs_VxtypesTests   (tTestDesc*)NULL
577  *  Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
578  */
579 static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
580 "#ifndef _REGS_H\n\
581 #define _REGS_H\n\
582 #include <types/vxTypesOld.h>\n\
583 #include_next <arch/../regs.h>\n\
584 #endif",
585     (char*)NULL };
587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
589  *  Description of Aab_Vxworks_Unistd fix
590  */
591 tSCC zAab_Vxworks_UnistdName[] =
592      "AAB_vxworks_unistd";
595  *  File name selection pattern
596  */
597 tSCC zAab_Vxworks_UnistdList[] =
598   "unistd.h\0";
600  *  Machine/OS name selection pattern
601  */
602 tSCC* apzAab_Vxworks_UnistdMachs[] = {
603         "*-*-vxworks*",
604         (const char*)NULL };
605 #define AAB_VXWORKS_UNISTD_TEST_CT  0
606 #define aAab_Vxworks_UnistdTests   (tTestDesc*)NULL
609  *  Fix Command Arguments for Aab_Vxworks_Unistd
610  */
611 static const char* apzAab_Vxworks_UnistdPatch[] = {
612 "#ifndef _UNISTD_H\n\
613 #define _UNISTD_H\n\
614 #include_next <unistd.h>\n\
615 #include <ioLib.h>\n\
616 #ifndef STDIN_FILENO\n\
617 #define STDIN_FILENO 0\n\
618 #endif\n\
619 #ifndef STDOUT_FILENO\n\
620 #define STDOUT_FILENO 1\n\
621 #endif\n\
622 #ifndef STDERR_FILENO\n\
623 #define STDERR_FILENO 2\n\
624 #endif\n\
625 #endif /* _UNISTD_H */",
626     (char*)NULL };
628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
630  *  Description of Aix_Assert fix
631  */
632 tSCC zAix_AssertName[] =
633      "aix_assert";
636  *  File name selection pattern
637  */
638 tSCC zAix_AssertList[] =
639   "assert.h\0";
641  *  Machine/OS name selection pattern
642  */
643 tSCC* apzAix_AssertMachs[] = {
644         "*-*-aix*",
645         (const char*)NULL };
648  *  content selection pattern - do fix if pattern found
649  */
650 tSCC zAix_AssertSelect0[] =
651        "#define[ \t]static_assert[ \t]_Static_assert";
653 #define    AIX_ASSERT_TEST_CT  1
654 static tTestDesc aAix_AssertTests[] = {
655   { TT_EGREP,    zAix_AssertSelect0, (regex_t*)NULL }, };
658  *  Fix Command Arguments for Aix_Assert
659  */
660 static const char* apzAix_AssertPatch[] = {
661     "format",
662     "#ifndef __cplusplus\n\
663 %0\n\
664 #endif",
665     (char*)NULL };
667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
669  *  Description of Aix_Complex fix
670  */
671 tSCC zAix_ComplexName[] =
672      "aix_complex";
675  *  File name selection pattern
676  */
677 tSCC zAix_ComplexList[] =
678   "complex.h\0";
680  *  Machine/OS name selection pattern
681  */
682 tSCC* apzAix_ComplexMachs[] = {
683         "*-*-aix*",
684         (const char*)NULL };
687  *  content selection pattern - do fix if pattern found
688  */
689 tSCC zAix_ComplexSelect0[] =
690        "#define[ \t]_Complex_I[ \t]__I";
692 #define    AIX_COMPLEX_TEST_CT  1
693 static tTestDesc aAix_ComplexTests[] = {
694   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
697  *  Fix Command Arguments for Aix_Complex
698  */
699 static const char* apzAix_ComplexPatch[] = {
700     "format",
701     "#define _Complex_I (__extension__ 1.0iF)",
702     (char*)NULL };
704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
706  *  Description of Aix_Externc fix
707  */
708 tSCC zAix_ExterncName[] =
709      "aix_externc";
712  *  File name selection pattern
713  */
714 tSCC zAix_ExterncList[] =
715   "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0";
717  *  Machine/OS name selection pattern
718  */
719 tSCC* apzAix_ExterncMachs[] = {
720         "*-*-aix*",
721         (const char*)NULL };
724  *  content bypass pattern - skip fix if pattern found
725  */
726 tSCC zAix_ExterncBypass0[] =
727        "extern \"C\"";
729 #define    AIX_EXTERNC_TEST_CT  1
730 static tTestDesc aAix_ExterncTests[] = {
731   { TT_NEGREP,   zAix_ExterncBypass0, (regex_t*)NULL }, };
734  *  Fix Command Arguments for Aix_Externc
735  */
736 static const char* apzAix_ExterncPatch[] = {
737     "wrap",
738     "#ifdef __cplusplus\n\
739 extern \"C\" {\n\
740 #endif\n",
741     "#ifdef __cplusplus\n\
742 }\n\
743 #endif\n",
744     (char*)NULL };
746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
748  *  Description of Aix_Externcpp1 fix
749  */
750 tSCC zAix_Externcpp1Name[] =
751      "aix_externcpp1";
754  *  File name selection pattern
755  */
756 tSCC zAix_Externcpp1List[] =
757   "sys/socket.h\0";
759  *  Machine/OS name selection pattern
760  */
761 tSCC* apzAix_Externcpp1Machs[] = {
762         "*-*-aix*",
763         (const char*)NULL };
766  *  content selection pattern - do fix if pattern found
767  */
768 tSCC zAix_Externcpp1Select0[] =
769        "#ifdef __cplusplus";
771 #define    AIX_EXTERNCPP1_TEST_CT  1
772 static tTestDesc aAix_Externcpp1Tests[] = {
773   { TT_EGREP,    zAix_Externcpp1Select0, (regex_t*)NULL }, };
776  *  Fix Command Arguments for Aix_Externcpp1
777  */
778 static const char* apzAix_Externcpp1Patch[] = {
779     "format",
780     "#ifdef __cplusplus\n\
781 extern \"C++\" {",
782     (char*)NULL };
784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
786  *  Description of Aix_Externcpp2 fix
787  */
788 tSCC zAix_Externcpp2Name[] =
789      "aix_externcpp2";
792  *  File name selection pattern
793  */
794 tSCC zAix_Externcpp2List[] =
795   "sys/socket.h\0";
797  *  Machine/OS name selection pattern
798  */
799 tSCC* apzAix_Externcpp2Machs[] = {
800         "*-*-aix*",
801         (const char*)NULL };
804  *  content selection pattern - do fix if pattern found
805  */
806 tSCC zAix_Externcpp2Select0[] =
807        "#else  /\\* __cplusplus \\*/";
809 #define    AIX_EXTERNCPP2_TEST_CT  1
810 static tTestDesc aAix_Externcpp2Tests[] = {
811   { TT_EGREP,    zAix_Externcpp2Select0, (regex_t*)NULL }, };
814  *  Fix Command Arguments for Aix_Externcpp2
815  */
816 static const char* apzAix_Externcpp2Patch[] = {
817     "format",
818     "} /* extern \"C++\" */\n\
819 #else  /* __cplusplus */",
820     (char*)NULL };
822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
824  *  Description of Aix_Malloc fix
825  */
826 tSCC zAix_MallocName[] =
827      "aix_malloc";
830  *  File name selection pattern
831  */
832 tSCC zAix_MallocList[] =
833   "malloc.h\0";
835  *  Machine/OS name selection pattern
836  */
837 tSCC* apzAix_MallocMachs[] = {
838         "*-*-aix*",
839         (const char*)NULL };
842  *  content selection pattern - do fix if pattern found
843  */
844 tSCC zAix_MallocSelect0[] =
845        "#ifdef __cplusplus";
847 #define    AIX_MALLOC_TEST_CT  1
848 static tTestDesc aAix_MallocTests[] = {
849   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
852  *  Fix Command Arguments for Aix_Malloc
853  */
854 static const char* apzAix_MallocPatch[] = {
855     "format",
856     "#if (defined(__cplusplus) && defined(__IBMCPP__))",
857     (char*)NULL };
859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
861  *  Description of Aix_Net_If_Arp fix
862  */
863 tSCC zAix_Net_If_ArpName[] =
864      "aix_net_if_arp";
867  *  File name selection pattern
868  */
869 tSCC zAix_Net_If_ArpList[] =
870   "net/if_arp.h\0";
872  *  Machine/OS name selection pattern
873  */
874 tSCC* apzAix_Net_If_ArpMachs[] = {
875         "*-*-aix*",
876         (const char*)NULL };
879  *  content selection pattern - do fix if pattern found
880  */
881 tSCC zAix_Net_If_ArpSelect0[] =
882        "^struct  fc_softc \\{";
884 #define    AIX_NET_IF_ARP_TEST_CT  1
885 static tTestDesc aAix_Net_If_ArpTests[] = {
886   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
889  *  Fix Command Arguments for Aix_Net_If_Arp
890  */
891 static const char* apzAix_Net_If_ArpPatch[] = {
892     "format",
893     "typedef struct _fc_softc {",
894     (char*)NULL };
896 /* * * * * * * * * * * * * * * * * * * * * * * * * *
898  *  Description of Aix_Null fix
899  */
900 tSCC zAix_NullName[] =
901      "aix_null";
904  *  File name selection pattern
905  */
906 tSCC zAix_NullList[] =
907   "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";
909  *  Machine/OS name selection pattern
910  */
911 tSCC* apzAix_NullMachs[] = {
912         "*-*-aix*",
913         (const char*)NULL };
916  *  content selection pattern - do fix if pattern found
917  */
918 tSCC zAix_NullSelect0[] =
919        "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
922  *  content bypass pattern - skip fix if pattern found
923  */
924 tSCC zAix_NullBypass0[] =
925        "__null";
927 #define    AIX_NULL_TEST_CT  2
928 static tTestDesc aAix_NullTests[] = {
929   { TT_NEGREP,   zAix_NullBypass0, (regex_t*)NULL },
930   { TT_EGREP,    zAix_NullSelect0, (regex_t*)NULL }, };
933  *  Fix Command Arguments for Aix_Null
934  */
935 static const char* apzAix_NullPatch[] = {
936     "format",
937     "#ifndef NULL\n\
938 #ifdef __cplusplus\n\
939 #ifdef __GNUG__\n\
940 #define NULL __null\n\
941 #else /* ! __GNUG__  */\n\
942 #define NULL 0L\n\
943 #endif /* __GNUG__  */\n\
944 #else /* ! __cplusplus  */\n\
945 #define NULL ((void *)0)\n\
946 #endif /* __cplusplus  */\n\
947 #endif /* !NULL  */",
948     (char*)NULL };
950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
952  *  Description of Aix_Once_Init_1 fix
953  */
954 tSCC zAix_Once_Init_1Name[] =
955      "aix_once_init_1";
958  *  File name selection pattern
959  */
960 tSCC zAix_Once_Init_1List[] =
961   "pthread.h\0";
963  *  Machine/OS name selection pattern
964  */
965 tSCC* apzAix_Once_Init_1Machs[] = {
966         "*-*-aix*",
967         (const char*)NULL };
970  *  content selection pattern - do fix if pattern found
971  */
972 tSCC zAix_Once_Init_1Select0[] =
973        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
974 \\{ \\\\\n";
976 #define    AIX_ONCE_INIT_1_TEST_CT  1
977 static tTestDesc aAix_Once_Init_1Tests[] = {
978   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
981  *  Fix Command Arguments for Aix_Once_Init_1
982  */
983 static const char* apzAix_Once_Init_1Patch[] = {
984     "format",
985     "#define PTHREAD_ONCE_INIT \\\n\
986 {{ \\\n",
987     (char*)NULL };
989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
991  *  Description of Aix_Once_Init_2 fix
992  */
993 tSCC zAix_Once_Init_2Name[] =
994      "aix_once_init_2";
997  *  File name selection pattern
998  */
999 tSCC zAix_Once_Init_2List[] =
1000   "pthread.h\0";
1002  *  Machine/OS name selection pattern
1003  */
1004 tSCC* apzAix_Once_Init_2Machs[] = {
1005         "*-*-aix*",
1006         (const char*)NULL };
1009  *  content selection pattern - do fix if pattern found
1010  */
1011 tSCC zAix_Once_Init_2Select0[] =
1012        "[ \t]0 \\\\\n\
1013 \\}\n";
1015 #define    AIX_ONCE_INIT_2_TEST_CT  1
1016 static tTestDesc aAix_Once_Init_2Tests[] = {
1017   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1020  *  Fix Command Arguments for Aix_Once_Init_2
1021  */
1022 static const char* apzAix_Once_Init_2Patch[] = {
1023     "format",
1024     "\t0 \\\n\
1025 }}\n",
1026     (char*)NULL };
1028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1030  *  Description of Aix_Mutex_Initializer_1 fix
1031  */
1032 tSCC zAix_Mutex_Initializer_1Name[] =
1033      "aix_mutex_initializer_1";
1036  *  File name selection pattern
1037  */
1038 tSCC zAix_Mutex_Initializer_1List[] =
1039   "pthread.h\0";
1041  *  Machine/OS name selection pattern
1042  */
1043 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1044         "*-*-aix*",
1045         (const char*)NULL };
1048  *  content selection pattern - do fix if pattern found
1049  */
1050 tSCC zAix_Mutex_Initializer_1Select0[] =
1051        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1052 \\{ \\\\\n";
1054 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
1055 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1056   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1059  *  Fix Command Arguments for Aix_Mutex_Initializer_1
1060  */
1061 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1062     "format",
1063     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1064 {{ \\\n",
1065     (char*)NULL };
1067 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1069  *  Description of Aix_Cond_Initializer_1 fix
1070  */
1071 tSCC zAix_Cond_Initializer_1Name[] =
1072      "aix_cond_initializer_1";
1075  *  File name selection pattern
1076  */
1077 tSCC zAix_Cond_Initializer_1List[] =
1078   "pthread.h\0";
1080  *  Machine/OS name selection pattern
1081  */
1082 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1083         "*-*-aix*",
1084         (const char*)NULL };
1087  *  content selection pattern - do fix if pattern found
1088  */
1089 tSCC zAix_Cond_Initializer_1Select0[] =
1090        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1091 \\{ \\\\\n";
1093 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
1094 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1095   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1098  *  Fix Command Arguments for Aix_Cond_Initializer_1
1099  */
1100 static const char* apzAix_Cond_Initializer_1Patch[] = {
1101     "format",
1102     "#define PTHREAD_COND_INITIALIZER \\\n\
1103 {{ \\\n",
1104     (char*)NULL };
1106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1108  *  Description of Aix_Rwlock_Initializer_1 fix
1109  */
1110 tSCC zAix_Rwlock_Initializer_1Name[] =
1111      "aix_rwlock_initializer_1";
1114  *  File name selection pattern
1115  */
1116 tSCC zAix_Rwlock_Initializer_1List[] =
1117   "pthread.h\0";
1119  *  Machine/OS name selection pattern
1120  */
1121 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1122         "*-*-aix*",
1123         (const char*)NULL };
1126  *  content selection pattern - do fix if pattern found
1127  */
1128 tSCC zAix_Rwlock_Initializer_1Select0[] =
1129        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1130 \\{ \\\\\n";
1132 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1133 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1134   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1137  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1138  */
1139 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1140     "format",
1141     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1142 {{ \\\n",
1143     (char*)NULL };
1145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1147  *  Description of Aix_Pthread fix
1148  */
1149 tSCC zAix_PthreadName[] =
1150      "aix_pthread";
1153  *  File name selection pattern
1154  */
1155 tSCC zAix_PthreadList[] =
1156   "pthread.h\0";
1158  *  Machine/OS name selection pattern
1159  */
1160 #define apzAix_PthreadMachs (const char**)NULL
1163  *  content selection pattern - do fix if pattern found
1164  */
1165 tSCC zAix_PthreadSelect0[] =
1166        "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\
1167 [^A-Za-z_0-9 \t\n\
1168 (])";
1170 #define    AIX_PTHREAD_TEST_CT  1
1171 static tTestDesc aAix_PthreadTests[] = {
1172   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1175  *  Fix Command Arguments for Aix_Pthread
1176  */
1177 static const char* apzAix_PthreadPatch[] = {
1178     "format",
1179     "%1 %2",
1180     (char*)NULL };
1182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1184  *  Description of Aix_Stdint_1 fix
1185  */
1186 tSCC zAix_Stdint_1Name[] =
1187      "aix_stdint_1";
1190  *  File name selection pattern
1191  */
1192 tSCC zAix_Stdint_1List[] =
1193   "stdint-aix.h\0stdint.h\0";
1195  *  Machine/OS name selection pattern
1196  */
1197 tSCC* apzAix_Stdint_1Machs[] = {
1198         "*-*-aix*",
1199         (const char*)NULL };
1202  *  content selection pattern - do fix if pattern found
1203  */
1204 tSCC zAix_Stdint_1Select0[] =
1205        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1206 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1208 #define    AIX_STDINT_1_TEST_CT  1
1209 static tTestDesc aAix_Stdint_1Tests[] = {
1210   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1213  *  Fix Command Arguments for Aix_Stdint_1
1214  */
1215 static const char* apzAix_Stdint_1Patch[] = {
1216     "format",
1217     "#define UINT8_MAX\t(255)\n\
1218 #define UINT16_MAX\t(65535)",
1219     (char*)NULL };
1221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1223  *  Description of Aix_Stdint_2 fix
1224  */
1225 tSCC zAix_Stdint_2Name[] =
1226      "aix_stdint_2";
1229  *  File name selection pattern
1230  */
1231 tSCC zAix_Stdint_2List[] =
1232   "stdint-aix.h\0stdint.h\0";
1234  *  Machine/OS name selection pattern
1235  */
1236 tSCC* apzAix_Stdint_2Machs[] = {
1237         "*-*-aix*",
1238         (const char*)NULL };
1241  *  content selection pattern - do fix if pattern found
1242  */
1243 tSCC zAix_Stdint_2Select0[] =
1244        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1245 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1246 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1247 #else\n\
1248 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1249 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1250 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1252 #define    AIX_STDINT_2_TEST_CT  1
1253 static tTestDesc aAix_Stdint_2Tests[] = {
1254   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1257  *  Fix Command Arguments for Aix_Stdint_2
1258  */
1259 static const char* apzAix_Stdint_2Patch[] = {
1260     "format",
1261     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1262 #define INTPTR_MAX\t9223372036854775807L\n\
1263 #define UINTPTR_MAX\t18446744073709551615UL\n\
1264 #else\n\
1265 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1266 #define INTPTR_MAX\t2147483647L\n\
1267 #define UINTPTR_MAX\t4294967295UL",
1268     (char*)NULL };
1270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1272  *  Description of Aix_Stdint_3 fix
1273  */
1274 tSCC zAix_Stdint_3Name[] =
1275      "aix_stdint_3";
1278  *  File name selection pattern
1279  */
1280 tSCC zAix_Stdint_3List[] =
1281   "stdint-aix.h\0stdint.h\0";
1283  *  Machine/OS name selection pattern
1284  */
1285 tSCC* apzAix_Stdint_3Machs[] = {
1286         "*-*-aix*",
1287         (const char*)NULL };
1290  *  content selection pattern - do fix if pattern found
1291  */
1292 tSCC zAix_Stdint_3Select0[] =
1293        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1294 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1295 #else\n\
1296 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1297 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1299 #define    AIX_STDINT_3_TEST_CT  1
1300 static tTestDesc aAix_Stdint_3Tests[] = {
1301   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1304  *  Fix Command Arguments for Aix_Stdint_3
1305  */
1306 static const char* apzAix_Stdint_3Patch[] = {
1307     "format",
1308     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1309 #define PTRDIFF_MAX\t9223372036854775807L\n\
1310 #else\n\
1311 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1312 #define PTRDIFF_MAX\t2147483647L",
1313     (char*)NULL };
1315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1317  *  Description of Aix_Stdint_4 fix
1318  */
1319 tSCC zAix_Stdint_4Name[] =
1320      "aix_stdint_4";
1323  *  File name selection pattern
1324  */
1325 tSCC zAix_Stdint_4List[] =
1326   "stdint-aix.h\0stdint.h\0";
1328  *  Machine/OS name selection pattern
1329  */
1330 tSCC* apzAix_Stdint_4Machs[] = {
1331         "*-*-aix*",
1332         (const char*)NULL };
1335  *  content selection pattern - do fix if pattern found
1336  */
1337 tSCC zAix_Stdint_4Select0[] =
1338        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1339 #else\n\
1340 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1342 #define    AIX_STDINT_4_TEST_CT  1
1343 static tTestDesc aAix_Stdint_4Tests[] = {
1344   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1347  *  Fix Command Arguments for Aix_Stdint_4
1348  */
1349 static const char* apzAix_Stdint_4Patch[] = {
1350     "format",
1351     "#define SIZE_MAX\t18446744073709551615UL\n\
1352 #else\n\
1353 #define SIZE_MAX\t4294967295UL",
1354     (char*)NULL };
1356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1358  *  Description of Aix_Stdint_5 fix
1359  */
1360 tSCC zAix_Stdint_5Name[] =
1361      "aix_stdint_5";
1364  *  File name selection pattern
1365  */
1366 tSCC zAix_Stdint_5List[] =
1367   "stdint-aix.h\0stdint.h\0";
1369  *  Machine/OS name selection pattern
1370  */
1371 tSCC* apzAix_Stdint_5Machs[] = {
1372         "*-*-aix*",
1373         (const char*)NULL };
1376  *  content selection pattern - do fix if pattern found
1377  */
1378 tSCC zAix_Stdint_5Select0[] =
1379        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1380 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1382 #define    AIX_STDINT_5_TEST_CT  1
1383 static tTestDesc aAix_Stdint_5Tests[] = {
1384   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1387  *  Fix Command Arguments for Aix_Stdint_5
1388  */
1389 static const char* apzAix_Stdint_5Patch[] = {
1390     "format",
1391     "#define UINT8_C(c)\tc\n\
1392 #define UINT16_C(c)\tc",
1393     (char*)NULL };
1395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1397  *  Description of Aix_Stdio_Inline fix
1398  */
1399 tSCC zAix_Stdio_InlineName[] =
1400      "aix_stdio_inline";
1403  *  File name selection pattern
1404  */
1405 tSCC zAix_Stdio_InlineList[] =
1406   "stdio.h\0";
1408  *  Machine/OS name selection pattern
1409  */
1410 tSCC* apzAix_Stdio_InlineMachs[] = {
1411         "*-*-aix*",
1412         (const char*)NULL };
1415  *  content selection pattern - do fix if pattern found
1416  */
1417 tSCC zAix_Stdio_InlineSelect0[] =
1418        "#ifdef __cplusplus\\\n\
1419 }\\\n\
1420 \\\n\
1421 #ifdef ferror\\\n";
1423 #define    AIX_STDIO_INLINE_TEST_CT  1
1424 static tTestDesc aAix_Stdio_InlineTests[] = {
1425   { TT_EGREP,    zAix_Stdio_InlineSelect0, (regex_t*)NULL }, };
1428  *  Fix Command Arguments for Aix_Stdio_Inline
1429  */
1430 static const char* apzAix_Stdio_InlinePatch[] = {
1431     "format",
1432     "#ifdef __cplusplus\n\
1433 }\n\
1434 #endif\n\n\
1435 #if (defined(__cplusplus) && defined(__IBMCPP__))\n\
1436 #ifdef ferror\n",
1437     (char*)NULL };
1439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1441  *  Description of Aix_Stdlib_Malloc fix
1442  */
1443 tSCC zAix_Stdlib_MallocName[] =
1444      "aix_stdlib_malloc";
1447  *  File name selection pattern
1448  */
1449 tSCC zAix_Stdlib_MallocList[] =
1450   "stdlib.h\0";
1452  *  Machine/OS name selection pattern
1453  */
1454 tSCC* apzAix_Stdlib_MallocMachs[] = {
1455         "*-*-aix*",
1456         (const char*)NULL };
1459  *  content selection pattern - do fix if pattern found
1460  */
1461 tSCC zAix_Stdlib_MallocSelect0[] =
1462        "#define[ \t]+malloc[ \t]+__linux_malloc";
1464 #define    AIX_STDLIB_MALLOC_TEST_CT  1
1465 static tTestDesc aAix_Stdlib_MallocTests[] = {
1466   { TT_EGREP,    zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, };
1469  *  Fix Command Arguments for Aix_Stdlib_Malloc
1470  */
1471 static const char* apzAix_Stdlib_MallocPatch[] = {
1472     "format",
1473     "extern void *malloc(size_t) __asm__(\"__linux_malloc\");",
1474     (char*)NULL };
1476 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1478  *  Description of Aix_Stdlib_Realloc fix
1479  */
1480 tSCC zAix_Stdlib_ReallocName[] =
1481      "aix_stdlib_realloc";
1484  *  File name selection pattern
1485  */
1486 tSCC zAix_Stdlib_ReallocList[] =
1487   "stdlib.h\0";
1489  *  Machine/OS name selection pattern
1490  */
1491 tSCC* apzAix_Stdlib_ReallocMachs[] = {
1492         "*-*-aix*",
1493         (const char*)NULL };
1496  *  content selection pattern - do fix if pattern found
1497  */
1498 tSCC zAix_Stdlib_ReallocSelect0[] =
1499        "#define[ \t]+realloc[ \t]+__linux_realloc";
1501 #define    AIX_STDLIB_REALLOC_TEST_CT  1
1502 static tTestDesc aAix_Stdlib_ReallocTests[] = {
1503   { TT_EGREP,    zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, };
1506  *  Fix Command Arguments for Aix_Stdlib_Realloc
1507  */
1508 static const char* apzAix_Stdlib_ReallocPatch[] = {
1509     "format",
1510     "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");",
1511     (char*)NULL };
1513 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1515  *  Description of Aix_Stdlib_Calloc fix
1516  */
1517 tSCC zAix_Stdlib_CallocName[] =
1518      "aix_stdlib_calloc";
1521  *  File name selection pattern
1522  */
1523 tSCC zAix_Stdlib_CallocList[] =
1524   "stdlib.h\0";
1526  *  Machine/OS name selection pattern
1527  */
1528 tSCC* apzAix_Stdlib_CallocMachs[] = {
1529         "*-*-aix*",
1530         (const char*)NULL };
1533  *  content selection pattern - do fix if pattern found
1534  */
1535 tSCC zAix_Stdlib_CallocSelect0[] =
1536        "#define[ \t]+calloc[ \t]+__linux_calloc";
1538 #define    AIX_STDLIB_CALLOC_TEST_CT  1
1539 static tTestDesc aAix_Stdlib_CallocTests[] = {
1540   { TT_EGREP,    zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, };
1543  *  Fix Command Arguments for Aix_Stdlib_Calloc
1544  */
1545 static const char* apzAix_Stdlib_CallocPatch[] = {
1546     "format",
1547     "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");",
1548     (char*)NULL };
1550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1552  *  Description of Aix_Stdlib_Valloc fix
1553  */
1554 tSCC zAix_Stdlib_VallocName[] =
1555      "aix_stdlib_valloc";
1558  *  File name selection pattern
1559  */
1560 tSCC zAix_Stdlib_VallocList[] =
1561   "stdlib.h\0";
1563  *  Machine/OS name selection pattern
1564  */
1565 tSCC* apzAix_Stdlib_VallocMachs[] = {
1566         "*-*-aix*",
1567         (const char*)NULL };
1570  *  content selection pattern - do fix if pattern found
1571  */
1572 tSCC zAix_Stdlib_VallocSelect0[] =
1573        "#define[ \t]+valloc[ \t]+__linux_valloc";
1575 #define    AIX_STDLIB_VALLOC_TEST_CT  1
1576 static tTestDesc aAix_Stdlib_VallocTests[] = {
1577   { TT_EGREP,    zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, };
1580  *  Fix Command Arguments for Aix_Stdlib_Valloc
1581  */
1582 static const char* apzAix_Stdlib_VallocPatch[] = {
1583     "format",
1584     "extern void *valloc(size_t) __asm__(\"__linux_valloc\");",
1585     (char*)NULL };
1587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1589  *  Description of Aix_Stdlib_Vec_Malloc fix
1590  */
1591 tSCC zAix_Stdlib_Vec_MallocName[] =
1592      "aix_stdlib_vec_malloc";
1595  *  File name selection pattern
1596  */
1597 tSCC zAix_Stdlib_Vec_MallocList[] =
1598   "stdlib.h\0";
1600  *  Machine/OS name selection pattern
1601  */
1602 tSCC* apzAix_Stdlib_Vec_MallocMachs[] = {
1603         "*-*-aix*",
1604         (const char*)NULL };
1607  *  content selection pattern - do fix if pattern found
1608  */
1609 tSCC zAix_Stdlib_Vec_MallocSelect0[] =
1610        "#define[ \t]+malloc[ \t]+vec_malloc";
1612 #define    AIX_STDLIB_VEC_MALLOC_TEST_CT  1
1613 static tTestDesc aAix_Stdlib_Vec_MallocTests[] = {
1614   { TT_EGREP,    zAix_Stdlib_Vec_MallocSelect0, (regex_t*)NULL }, };
1617  *  Fix Command Arguments for Aix_Stdlib_Vec_Malloc
1618  */
1619 static const char* apzAix_Stdlib_Vec_MallocPatch[] = {
1620     "format",
1621     "extern void *malloc(size_t) __asm__(\"vec_malloc\");",
1622     (char*)NULL };
1624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1626  *  Description of Aix_Stdlib_Vec_Calloc fix
1627  */
1628 tSCC zAix_Stdlib_Vec_CallocName[] =
1629      "aix_stdlib_vec_calloc";
1632  *  File name selection pattern
1633  */
1634 tSCC zAix_Stdlib_Vec_CallocList[] =
1635   "stdlib.h\0";
1637  *  Machine/OS name selection pattern
1638  */
1639 tSCC* apzAix_Stdlib_Vec_CallocMachs[] = {
1640         "*-*-aix*",
1641         (const char*)NULL };
1644  *  content selection pattern - do fix if pattern found
1645  */
1646 tSCC zAix_Stdlib_Vec_CallocSelect0[] =
1647        "#define[ \t]+calloc[ \t]+vec_calloc";
1649 #define    AIX_STDLIB_VEC_CALLOC_TEST_CT  1
1650 static tTestDesc aAix_Stdlib_Vec_CallocTests[] = {
1651   { TT_EGREP,    zAix_Stdlib_Vec_CallocSelect0, (regex_t*)NULL }, };
1654  *  Fix Command Arguments for Aix_Stdlib_Vec_Calloc
1655  */
1656 static const char* apzAix_Stdlib_Vec_CallocPatch[] = {
1657     "format",
1658     "extern void *calloc(size_t, size_t) __asm__(\"vec_calloc\");",
1659     (char*)NULL };
1661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1663  *  Description of Aix_Strtof_Const fix
1664  */
1665 tSCC zAix_Strtof_ConstName[] =
1666      "aix_strtof_const";
1669  *  File name selection pattern
1670  */
1671 tSCC zAix_Strtof_ConstList[] =
1672   "stdlib.h\0";
1674  *  Machine/OS name selection pattern
1675  */
1676 tSCC* apzAix_Strtof_ConstMachs[] = {
1677         "*-*-aix*",
1678         (const char*)NULL };
1681  *  content selection pattern - do fix if pattern found
1682  */
1683 tSCC zAix_Strtof_ConstSelect0[] =
1684        "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1686 #define    AIX_STRTOF_CONST_TEST_CT  1
1687 static tTestDesc aAix_Strtof_ConstTests[] = {
1688   { TT_EGREP,    zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1691  *  Fix Command Arguments for Aix_Strtof_Const
1692  */
1693 static const char* apzAix_Strtof_ConstPatch[] = {
1694     "format",
1695     "%1(const char *, char **);",
1696     (char*)NULL };
1698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1700  *  Description of Aix_Sysmachine fix
1701  */
1702 tSCC zAix_SysmachineName[] =
1703      "aix_sysmachine";
1706  *  File name selection pattern
1707  */
1708 tSCC zAix_SysmachineList[] =
1709   "sys/machine.h\0";
1711  *  Machine/OS name selection pattern
1712  */
1713 tSCC* apzAix_SysmachineMachs[] = {
1714         "*-*-aix*",
1715         (const char*)NULL };
1718  *  content selection pattern - do fix if pattern found
1719  */
1720 tSCC zAix_SysmachineSelect0[] =
1721        "\\\\ +\n";
1723 #define    AIX_SYSMACHINE_TEST_CT  1
1724 static tTestDesc aAix_SysmachineTests[] = {
1725   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1728  *  Fix Command Arguments for Aix_Sysmachine
1729  */
1730 static const char* apzAix_SysmachinePatch[] = {
1731     "format",
1732     "\\\n",
1733     (char*)NULL };
1735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1737  *  Description of Aix_Syswait_2 fix
1738  */
1739 tSCC zAix_Syswait_2Name[] =
1740      "aix_syswait_2";
1743  *  File name selection pattern
1744  */
1745 tSCC zAix_Syswait_2List[] =
1746   "sys/wait.h\0";
1748  *  Machine/OS name selection pattern
1749  */
1750 tSCC* apzAix_Syswait_2Machs[] = {
1751         "*-*-aix*",
1752         (const char*)NULL };
1755  *  content selection pattern - do fix if pattern found
1756  */
1757 tSCC zAix_Syswait_2Select0[] =
1758        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1760 #define    AIX_SYSWAIT_2_TEST_CT  1
1761 static tTestDesc aAix_Syswait_2Tests[] = {
1762   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1765  *  Fix Command Arguments for Aix_Syswait_2
1766  */
1767 static const char* apzAix_Syswait_2Patch[] = {
1768     "format",
1769     "? (int)%1",
1770     (char*)NULL };
1772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1774  *  Description of Aix_Volatile fix
1775  */
1776 tSCC zAix_VolatileName[] =
1777      "aix_volatile";
1780  *  File name selection pattern
1781  */
1782 tSCC zAix_VolatileList[] =
1783   "sys/signal.h\0";
1785  *  Machine/OS name selection pattern
1786  */
1787 tSCC* apzAix_VolatileMachs[] = {
1788         "*-*-aix*",
1789         (const char*)NULL };
1792  *  content selection pattern - do fix if pattern found
1793  */
1794 tSCC zAix_VolatileSelect0[] =
1795        "typedef volatile int sig_atomic_t";
1797 #define    AIX_VOLATILE_TEST_CT  1
1798 static tTestDesc aAix_VolatileTests[] = {
1799   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1802  *  Fix Command Arguments for Aix_Volatile
1803  */
1804 static const char* apzAix_VolatilePatch[] = {
1805     "format",
1806     "typedef int sig_atomic_t",
1807     (char*)NULL };
1809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1811  *  Description of Aix_Unistd fix
1812  */
1813 tSCC zAix_UnistdName[] =
1814      "aix_unistd";
1817  *  File name selection pattern
1818  */
1819 tSCC zAix_UnistdList[] =
1820   "unistd.h\0";
1822  *  Machine/OS name selection pattern
1823  */
1824 tSCC* apzAix_UnistdMachs[] = {
1825         "*-*-aix*",
1826         (const char*)NULL };
1829  *  content selection pattern - do fix if pattern found
1830  */
1831 tSCC zAix_UnistdSelect0[] =
1832        "[ \t]+static[ \t]+int[ \t]+getdtablesize\\(\\)";
1834 #define    AIX_UNISTD_TEST_CT  1
1835 static tTestDesc aAix_UnistdTests[] = {
1836   { TT_EGREP,    zAix_UnistdSelect0, (regex_t*)NULL }, };
1839  *  Fix Command Arguments for Aix_Unistd
1840  */
1841 static const char* apzAix_UnistdPatch[] = {
1842     "format",
1843     "\tstatic int\t\tgetdtablesize(void)",
1844     (char*)NULL };
1846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1848  *  Description of Alpha___Assert fix
1849  */
1850 tSCC zAlpha___AssertName[] =
1851      "alpha___assert";
1854  *  File name selection pattern
1855  */
1856 tSCC zAlpha___AssertList[] =
1857   "assert.h\0";
1859  *  Machine/OS name selection pattern
1860  */
1861 #define apzAlpha___AssertMachs (const char**)NULL
1864  *  content selection pattern - do fix if pattern found
1865  */
1866 tSCC zAlpha___AssertSelect0[] =
1867        "__assert\\(char \\*, char \\*, int\\)";
1869 #define    ALPHA___ASSERT_TEST_CT  1
1870 static tTestDesc aAlpha___AssertTests[] = {
1871   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1874  *  Fix Command Arguments for Alpha___Assert
1875  */
1876 static const char* apzAlpha___AssertPatch[] = {
1877     "format",
1878     "__assert(const char *, const char *, int)",
1879     (char*)NULL };
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1883  *  Description of Alpha_Assert fix
1884  */
1885 tSCC zAlpha_AssertName[] =
1886      "alpha_assert";
1889  *  File name selection pattern
1890  */
1891 tSCC zAlpha_AssertList[] =
1892   "assert.h\0";
1894  *  Machine/OS name selection pattern
1895  */
1896 #define apzAlpha_AssertMachs (const char**)NULL
1899  *  content selection pattern - do fix if pattern found
1900  */
1901 tSCC zAlpha_AssertSelect0[] =
1902        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1904 #define    ALPHA_ASSERT_TEST_CT  1
1905 static tTestDesc aAlpha_AssertTests[] = {
1906   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1909  *  Fix Command Arguments for Alpha_Assert
1910  */
1911 static const char* apzAlpha_AssertPatch[] = {
1912     "format",
1913     "%1(EX)",
1914     (char*)NULL };
1916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1918  *  Description of Alpha_Getopt fix
1919  */
1920 tSCC zAlpha_GetoptName[] =
1921      "alpha_getopt";
1924  *  File name selection pattern
1925  */
1926 tSCC zAlpha_GetoptList[] =
1927   "stdio.h\0stdlib.h\0";
1929  *  Machine/OS name selection pattern
1930  */
1931 #define apzAlpha_GetoptMachs (const char**)NULL
1934  *  content selection pattern - do fix if pattern found
1935  */
1936 tSCC zAlpha_GetoptSelect0[] =
1937        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1939 #define    ALPHA_GETOPT_TEST_CT  1
1940 static tTestDesc aAlpha_GetoptTests[] = {
1941   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1944  *  Fix Command Arguments for Alpha_Getopt
1945  */
1946 static const char* apzAlpha_GetoptPatch[] = {
1947     "format",
1948     "getopt(int, char *const[], const char *)",
1949     (char*)NULL };
1951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1953  *  Description of Alpha_If_Semicolon fix
1954  */
1955 tSCC zAlpha_If_SemicolonName[] =
1956      "alpha_if_semicolon";
1959  *  File name selection pattern
1960  */
1961 tSCC zAlpha_If_SemicolonList[] =
1962   "net/if.h\0";
1964  *  Machine/OS name selection pattern
1965  */
1966 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1969  *  content selection pattern - do fix if pattern found
1970  */
1971 tSCC zAlpha_If_SemicolonSelect0[] =
1972        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1974 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1975 static tTestDesc aAlpha_If_SemicolonTests[] = {
1976   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1979  *  Fix Command Arguments for Alpha_If_Semicolon
1980  */
1981 static const char* apzAlpha_If_SemicolonPatch[] = {
1982     "format",
1983     "struct sockaddr vmif_paddr;\t/*",
1984     (char*)NULL };
1986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1988  *  Description of Alpha_Parens fix
1989  */
1990 tSCC zAlpha_ParensName[] =
1991      "alpha_parens";
1994  *  File name selection pattern
1995  */
1996 tSCC zAlpha_ParensList[] =
1997   "sym.h\0";
1999  *  Machine/OS name selection pattern
2000  */
2001 #define apzAlpha_ParensMachs (const char**)NULL
2004  *  content selection pattern - do fix if pattern found
2005  */
2006 tSCC zAlpha_ParensSelect0[] =
2007        "#ifndef\\(__mips64\\)";
2009 #define    ALPHA_PARENS_TEST_CT  1
2010 static tTestDesc aAlpha_ParensTests[] = {
2011   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
2014  *  Fix Command Arguments for Alpha_Parens
2015  */
2016 static const char* apzAlpha_ParensPatch[] = {
2017     "format",
2018     "#ifndef __mips64",
2019     (char*)NULL };
2021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2023  *  Description of Alpha_Sbrk fix
2024  */
2025 tSCC zAlpha_SbrkName[] =
2026      "alpha_sbrk";
2029  *  File name selection pattern
2030  */
2031 tSCC zAlpha_SbrkList[] =
2032   "unistd.h\0";
2034  *  Machine/OS name selection pattern
2035  */
2036 #define apzAlpha_SbrkMachs (const char**)NULL
2039  *  content selection pattern - do fix if pattern found
2040  */
2041 tSCC zAlpha_SbrkSelect0[] =
2042        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
2044 #define    ALPHA_SBRK_TEST_CT  1
2045 static tTestDesc aAlpha_SbrkTests[] = {
2046   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
2049  *  Fix Command Arguments for Alpha_Sbrk
2050  */
2051 static const char* apzAlpha_SbrkPatch[] = {
2052     "format",
2053     "void *sbrk(",
2054     (char*)NULL };
2056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2058  *  Description of Avoid_Bool_Define fix
2059  */
2060 tSCC zAvoid_Bool_DefineName[] =
2061      "avoid_bool_define";
2064  *  File name selection pattern
2065  */
2066 tSCC zAvoid_Bool_DefineList[] =
2067   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2069  *  Machine/OS name selection pattern
2070  */
2071 #define apzAvoid_Bool_DefineMachs (const char**)NULL
2074  *  content selection pattern - do fix if pattern found
2075  */
2076 tSCC zAvoid_Bool_DefineSelect0[] =
2077        "#[ \t]*define[ \t]+bool[ \t]";
2080  *  content bypass pattern - skip fix if pattern found
2081  */
2082 tSCC zAvoid_Bool_DefineBypass0[] =
2083        "__cplusplus";
2085 #define    AVOID_BOOL_DEFINE_TEST_CT  2
2086 static tTestDesc aAvoid_Bool_DefineTests[] = {
2087   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
2088   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
2091  *  Fix Command Arguments for Avoid_Bool_Define
2092  */
2093 static const char* apzAvoid_Bool_DefinePatch[] = {
2094     "format",
2095     "#ifndef __cplusplus\n\
2096 %0\n\
2097 #endif",
2098     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
2099     (char*)NULL };
2101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2103  *  Description of Avoid_Bool_Type fix
2104  */
2105 tSCC zAvoid_Bool_TypeName[] =
2106      "avoid_bool_type";
2109  *  File name selection pattern
2110  */
2111 tSCC zAvoid_Bool_TypeList[] =
2112   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2114  *  Machine/OS name selection pattern
2115  */
2116 #define apzAvoid_Bool_TypeMachs (const char**)NULL
2119  *  content selection pattern - do fix if pattern found
2120  */
2121 tSCC zAvoid_Bool_TypeSelect0[] =
2122        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
2125  *  content bypass pattern - skip fix if pattern found
2126  */
2127 tSCC zAvoid_Bool_TypeBypass0[] =
2128        "__cplusplus";
2130 #define    AVOID_BOOL_TYPE_TEST_CT  2
2131 static tTestDesc aAvoid_Bool_TypeTests[] = {
2132   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
2133   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
2136  *  Fix Command Arguments for Avoid_Bool_Type
2137  */
2138 static const char* apzAvoid_Bool_TypePatch[] = {
2139     "format",
2140     "#ifndef __cplusplus\n\
2141 %0\n\
2142 #endif",
2143     (char*)NULL };
2145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2147  *  Description of Avoid_Wchar_T_Type fix
2148  */
2149 tSCC zAvoid_Wchar_T_TypeName[] =
2150      "avoid_wchar_t_type";
2153  *  File name selection pattern
2154  */
2155 #define zAvoid_Wchar_T_TypeList (char*)NULL
2157  *  Machine/OS name selection pattern
2158  */
2159 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
2162  *  content selection pattern - do fix if pattern found
2163  */
2164 tSCC zAvoid_Wchar_T_TypeSelect0[] =
2165        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
2168  *  content bypass pattern - skip fix if pattern found
2169  */
2170 tSCC zAvoid_Wchar_T_TypeBypass0[] =
2171        "__cplusplus";
2172 tSCC zAvoid_Wchar_T_TypeBypass1[] =
2173        "_LINUX_NLS_H";
2174 tSCC zAvoid_Wchar_T_TypeBypass2[] =
2175        "XFree86: xc/lib/X11/Xlib\\.h";
2177 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
2178 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
2179   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
2180   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
2181   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
2182   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
2185  *  Fix Command Arguments for Avoid_Wchar_T_Type
2186  */
2187 static const char* apzAvoid_Wchar_T_TypePatch[] = {
2188     "format",
2189     "#ifndef __cplusplus\n\
2190 %0\n\
2191 #endif",
2192     (char*)NULL };
2194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2196  *  Description of Bad_Struct_Term fix
2197  */
2198 tSCC zBad_Struct_TermName[] =
2199      "bad_struct_term";
2202  *  File name selection pattern
2203  */
2204 tSCC zBad_Struct_TermList[] =
2205   "curses.h\0";
2207  *  Machine/OS name selection pattern
2208  */
2209 #define apzBad_Struct_TermMachs (const char**)NULL
2212  *  content selection pattern - do fix if pattern found
2213  */
2214 tSCC zBad_Struct_TermSelect0[] =
2215        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
2217 #define    BAD_STRUCT_TERM_TEST_CT  1
2218 static tTestDesc aBad_Struct_TermTests[] = {
2219   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
2222  *  Fix Command Arguments for Bad_Struct_Term
2223  */
2224 static const char* apzBad_Struct_TermPatch[] = {
2225     "format",
2226     "struct term;",
2227     (char*)NULL };
2229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2231  *  Description of Badquote fix
2232  */
2233 tSCC zBadquoteName[] =
2234      "badquote";
2237  *  File name selection pattern
2238  */
2239 tSCC zBadquoteList[] =
2240   "sundev/vuid_event.h\0";
2242  *  Machine/OS name selection pattern
2243  */
2244 #define apzBadquoteMachs (const char**)NULL
2247  *  content selection pattern - do fix if pattern found
2248  */
2249 tSCC zBadquoteSelect0[] =
2250        "doesn't";
2252 #define    BADQUOTE_TEST_CT  1
2253 static tTestDesc aBadquoteTests[] = {
2254   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
2257  *  Fix Command Arguments for Badquote
2258  */
2259 static const char* apzBadquotePatch[] = {
2260     "format",
2261     "does not",
2262     (char*)NULL };
2264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2266  *  Description of Broken_Assert_Stdio fix
2267  */
2268 tSCC zBroken_Assert_StdioName[] =
2269      "broken_assert_stdio";
2272  *  File name selection pattern
2273  */
2274 tSCC zBroken_Assert_StdioList[] =
2275   "assert.h\0";
2277  *  Machine/OS name selection pattern
2278  */
2279 #define apzBroken_Assert_StdioMachs (const char**)NULL
2282  *  content selection pattern - do fix if pattern found
2283  */
2284 tSCC zBroken_Assert_StdioSelect0[] =
2285        "stderr";
2288  *  content bypass pattern - skip fix if pattern found
2289  */
2290 tSCC zBroken_Assert_StdioBypass0[] =
2291        "include.*stdio\\.h";
2293 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
2294 static tTestDesc aBroken_Assert_StdioTests[] = {
2295   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
2296   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
2299  *  Fix Command Arguments for Broken_Assert_Stdio
2300  */
2301 static const char* apzBroken_Assert_StdioPatch[] = {
2302     "wrap",
2303     "#include <stdio.h>\n",
2304     (char*)NULL };
2306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2308  *  Description of Broken_Assert_Stdlib fix
2309  */
2310 tSCC zBroken_Assert_StdlibName[] =
2311      "broken_assert_stdlib";
2314  *  File name selection pattern
2315  */
2316 tSCC zBroken_Assert_StdlibList[] =
2317   "assert.h\0";
2319  *  Machine/OS name selection pattern
2320  */
2321 #define apzBroken_Assert_StdlibMachs (const char**)NULL
2324  *  content selection pattern - do fix if pattern found
2325  */
2326 tSCC zBroken_Assert_StdlibSelect0[] =
2327        "exit *\\(|abort *\\(";
2330  *  content bypass pattern - skip fix if pattern found
2331  */
2332 tSCC zBroken_Assert_StdlibBypass0[] =
2333        "include.*stdlib\\.h";
2335 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
2336 static tTestDesc aBroken_Assert_StdlibTests[] = {
2337   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2338   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
2341  *  Fix Command Arguments for Broken_Assert_Stdlib
2342  */
2343 static const char* apzBroken_Assert_StdlibPatch[] = {
2344     "wrap",
2345     "#ifdef __cplusplus\n\
2346 #include <stdlib.h>\n\
2347 #endif\n",
2348     (char*)NULL };
2350 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2352  *  Description of Broken_Cabs fix
2353  */
2354 tSCC zBroken_CabsName[] =
2355      "broken_cabs";
2358  *  File name selection pattern
2359  */
2360 tSCC zBroken_CabsList[] =
2361   "math.h\0architecture/*/math.h\0";
2363  *  Machine/OS name selection pattern
2364  */
2365 #define apzBroken_CabsMachs (const char**)NULL
2368  *  content selection pattern - do fix if pattern found
2369  */
2370 tSCC zBroken_CabsSelect0[] =
2371        "^extern[ \t]+double[ \t]+cabs";
2373 #define    BROKEN_CABS_TEST_CT  1
2374 static tTestDesc aBroken_CabsTests[] = {
2375   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2378  *  Fix Command Arguments for Broken_Cabs
2379  */
2380 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2381     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2382     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2383     (char*)NULL };
2385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2387  *  Description of Broken_Nan fix
2388  */
2389 tSCC zBroken_NanName[] =
2390      "broken_nan";
2393  *  File name selection pattern
2394  */
2395 tSCC zBroken_NanList[] =
2396   "architecture/ppc/math.h\0architecture/*/math.h\0";
2398  *  Machine/OS name selection pattern
2399  */
2400 #define apzBroken_NanMachs (const char**)NULL
2403  *  content selection pattern - do fix if pattern found
2404  */
2405 tSCC zBroken_NanSelect0[] =
2406        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2409  *  content bypass pattern - skip fix if pattern found
2410  */
2411 tSCC zBroken_NanBypass0[] =
2412        "powl";
2414 #define    BROKEN_NAN_TEST_CT  2
2415 static tTestDesc aBroken_NanTests[] = {
2416   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2417   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2420  *  Fix Command Arguments for Broken_Nan
2421  */
2422 static const char* apzBroken_NanPatch[] = {
2423     "format",
2424     "#if 1",
2425     (char*)NULL };
2427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2429  *  Description of Bsd_Stdio_Attrs_Conflict fix
2430  */
2431 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2432      "bsd_stdio_attrs_conflict";
2435  *  File name selection pattern
2436  */
2437 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2438   "stdio.h\0";
2440  *  Machine/OS name selection pattern
2441  */
2442 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2443         "*-*-*bsd*",
2444         "*-*-*darwin*",
2445         (const char*)NULL };
2448  *  content selection pattern - do fix if pattern found
2449  */
2450 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2451        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2453 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2454 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2455   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2458  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2459  */
2460 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2461     "format",
2462     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2463 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2464 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2465     (char*)NULL };
2467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2469  *  Description of Ctrl_Quotes_Def fix
2470  */
2471 tSCC zCtrl_Quotes_DefName[] =
2472      "ctrl_quotes_def";
2475  *  File name selection pattern
2476  */
2477 #define zCtrl_Quotes_DefList (char*)NULL
2479  *  Machine/OS name selection pattern
2480  */
2481 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2484  *  content selection pattern - do fix if pattern found
2485  */
2486 tSCC zCtrl_Quotes_DefSelect0[] =
2487        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2489 #define    CTRL_QUOTES_DEF_TEST_CT  1
2490 static tTestDesc aCtrl_Quotes_DefTests[] = {
2491   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2494  *  Fix Command Arguments for Ctrl_Quotes_Def
2495  */
2496 static const char* apzCtrl_Quotes_DefPatch[] = {
2497     "char_macro_def",
2498     "CTRL",
2499     (char*)NULL };
2501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2503  *  Description of Ctrl_Quotes_Use fix
2504  */
2505 tSCC zCtrl_Quotes_UseName[] =
2506      "ctrl_quotes_use";
2509  *  File name selection pattern
2510  */
2511 #define zCtrl_Quotes_UseList (char*)NULL
2513  *  Machine/OS name selection pattern
2514  */
2515 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2518  *  content selection pattern - do fix if pattern found
2519  */
2520 tSCC zCtrl_Quotes_UseSelect0[] =
2521        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2523 #define    CTRL_QUOTES_USE_TEST_CT  1
2524 static tTestDesc aCtrl_Quotes_UseTests[] = {
2525   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2528  *  Fix Command Arguments for Ctrl_Quotes_Use
2529  */
2530 static const char* apzCtrl_Quotes_UsePatch[] = {
2531     "char_macro_use",
2532     "CTRL",
2533     (char*)NULL };
2535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2537  *  Description of Cxx_Unready fix
2538  */
2539 tSCC zCxx_UnreadyName[] =
2540      "cxx_unready";
2543  *  File name selection pattern
2544  */
2545 tSCC zCxx_UnreadyList[] =
2546   "sys/mman.h\0rpc/types.h\0";
2548  *  Machine/OS name selection pattern
2549  */
2550 #define apzCxx_UnreadyMachs (const char**)NULL
2553  *  content selection pattern - do fix if pattern found
2554  */
2555 tSCC zCxx_UnreadySelect0[] =
2556        "[^#]+malloc.*;";
2559  *  content bypass pattern - skip fix if pattern found
2560  */
2561 tSCC zCxx_UnreadyBypass0[] =
2562        "\"C\"|__BEGIN_DECLS";
2564 #define    CXX_UNREADY_TEST_CT  2
2565 static tTestDesc aCxx_UnreadyTests[] = {
2566   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2567   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2570  *  Fix Command Arguments for Cxx_Unready
2571  */
2572 static const char* apzCxx_UnreadyPatch[] = {
2573     "wrap",
2574     "#ifdef __cplusplus\n\
2575 extern \"C\" {\n\
2576 #endif\n",
2577     "#ifdef __cplusplus\n\
2578 }\n\
2579 #endif\n",
2580     (char*)NULL };
2582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2584  *  Description of Darwin_Availabilityinternal fix
2585  */
2586 tSCC zDarwin_AvailabilityinternalName[] =
2587      "darwin_availabilityinternal";
2590  *  File name selection pattern
2591  */
2592 tSCC zDarwin_AvailabilityinternalList[] =
2593   "AvailabilityInternal.h\0";
2595  *  Machine/OS name selection pattern
2596  */
2597 tSCC* apzDarwin_AvailabilityinternalMachs[] = {
2598         "*-*-darwin*",
2599         (const char*)NULL };
2602  *  content selection pattern - do fix if pattern found
2603  */
2604 tSCC zDarwin_AvailabilityinternalSelect0[] =
2605        "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*";
2607 #define    DARWIN_AVAILABILITYINTERNAL_TEST_CT  1
2608 static tTestDesc aDarwin_AvailabilityinternalTests[] = {
2609   { TT_EGREP,    zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, };
2612  *  Fix Command Arguments for Darwin_Availabilityinternal
2613  */
2614 static const char* apzDarwin_AvailabilityinternalPatch[] = {
2615     "format",
2616     "#if defined(__has_attribute)\n\
2617   #if __has_attribute(availability)\n\
2618 %0\n\
2619   #else\n\
2620     #define %1\n\
2621   #endif\n\
2622 #else\n\
2623     #define %1\n\
2624 #endif",
2625     (char*)NULL };
2627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2629  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2630  */
2631 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2632      "darwin_9_long_double_funcs_2";
2635  *  File name selection pattern
2636  */
2637 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2638   "math.h\0";
2640  *  Machine/OS name selection pattern
2641  */
2642 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2643         "*-*-darwin7.9*",
2644         (const char*)NULL };
2647  *  content selection pattern - do fix if pattern found
2648  */
2649 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2650        "#include[ \\t]+\\\"";
2652 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2653 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2654   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2657  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2658  */
2659 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2660     "format",
2661     "%1<%2.h>",
2662     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2663     (char*)NULL };
2665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2667  *  Description of Darwin_Externc fix
2668  */
2669 tSCC zDarwin_ExterncName[] =
2670      "darwin_externc";
2673  *  File name selection pattern
2674  */
2675 tSCC zDarwin_ExterncList[] =
2676   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2678  *  Machine/OS name selection pattern
2679  */
2680 tSCC* apzDarwin_ExterncMachs[] = {
2681         "*-*-darwin*",
2682         (const char*)NULL };
2685  *  content bypass pattern - skip fix if pattern found
2686  */
2687 tSCC zDarwin_ExterncBypass0[] =
2688        "extern \"C\"";
2689 tSCC zDarwin_ExterncBypass1[] =
2690        "__BEGIN_DECLS";
2692 #define    DARWIN_EXTERNC_TEST_CT  2
2693 static tTestDesc aDarwin_ExterncTests[] = {
2694   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2695   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2698  *  Fix Command Arguments for Darwin_Externc
2699  */
2700 static const char* apzDarwin_ExterncPatch[] = {
2701     "wrap",
2702     "#ifdef __cplusplus\n\
2703 extern \"C\" {\n\
2704 #endif\n",
2705     "#ifdef __cplusplus\n\
2706 }\n\
2707 #endif\n",
2708     (char*)NULL };
2710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2712  *  Description of Darwin_Gcc4_Breakage fix
2713  */
2714 tSCC zDarwin_Gcc4_BreakageName[] =
2715      "darwin_gcc4_breakage";
2718  *  File name selection pattern
2719  */
2720 tSCC zDarwin_Gcc4_BreakageList[] =
2721   "AvailabilityMacros.h\0";
2723  *  Machine/OS name selection pattern
2724  */
2725 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2726         "*-*-darwin*",
2727         (const char*)NULL };
2730  *  content selection pattern - do fix if pattern found
2731  */
2732 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2733        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2735 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2736 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2737   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2740  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2741  */
2742 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2743     "format",
2744     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2745     (char*)NULL };
2747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2749  *  Description of Darwin_Longjmp_Noreturn fix
2750  */
2751 tSCC zDarwin_Longjmp_NoreturnName[] =
2752      "darwin_longjmp_noreturn";
2755  *  File name selection pattern
2756  */
2757 tSCC zDarwin_Longjmp_NoreturnList[] =
2758   "i386/setjmp.h\0";
2760  *  Machine/OS name selection pattern
2761  */
2762 tSCC* apzDarwin_Longjmp_NoreturnMachs[] = {
2763         "*-*-darwin*",
2764         (const char*)NULL };
2767  *  content selection pattern - do fix if pattern found
2768  */
2769 tSCC zDarwin_Longjmp_NoreturnSelect0[] =
2770        "(.*longjmp\\(.*jmp_buf.*[^)]+\\));";
2773  *  content bypass pattern - skip fix if pattern found
2774  */
2775 tSCC zDarwin_Longjmp_NoreturnBypass0[] =
2776        "__dead2";
2778 #define    DARWIN_LONGJMP_NORETURN_TEST_CT  2
2779 static tTestDesc aDarwin_Longjmp_NoreturnTests[] = {
2780   { TT_NEGREP,   zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL },
2781   { TT_EGREP,    zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
2784  *  Fix Command Arguments for Darwin_Longjmp_Noreturn
2785  */
2786 static const char* apzDarwin_Longjmp_NoreturnPatch[] = {
2787     "format",
2788     "%1 __attribute__ ((__noreturn__));",
2789     (char*)NULL };
2791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2793  *  Description of Darwin_Os_Trace_1 fix
2794  */
2795 tSCC zDarwin_Os_Trace_1Name[] =
2796      "darwin_os_trace_1";
2799  *  File name selection pattern
2800  */
2801 tSCC zDarwin_Os_Trace_1List[] =
2802   "os/trace.h\0";
2804  *  Machine/OS name selection pattern
2805  */
2806 tSCC* apzDarwin_Os_Trace_1Machs[] = {
2807         "*-*-darwin*",
2808         (const char*)NULL };
2811  *  content selection pattern - do fix if pattern found
2812  */
2813 tSCC zDarwin_Os_Trace_1Select0[] =
2814        "^(_os_trace_verify_printf.*) (__attribute__.*)";
2816 #define    DARWIN_OS_TRACE_1_TEST_CT  1
2817 static tTestDesc aDarwin_Os_Trace_1Tests[] = {
2818   { TT_EGREP,    zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, };
2821  *  Fix Command Arguments for Darwin_Os_Trace_1
2822  */
2823 static const char* apzDarwin_Os_Trace_1Patch[] = {
2824     "format",
2825     "%1",
2826     (char*)NULL };
2828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2830  *  Description of Darwin_Os_Trace_2 fix
2831  */
2832 tSCC zDarwin_Os_Trace_2Name[] =
2833      "darwin_os_trace_2";
2836  *  File name selection pattern
2837  */
2838 tSCC zDarwin_Os_Trace_2List[] =
2839   "os/trace.h\0";
2841  *  Machine/OS name selection pattern
2842  */
2843 tSCC* apzDarwin_Os_Trace_2Machs[] = {
2844         "*-*-darwin*",
2845         (const char*)NULL };
2848  *  content selection pattern - do fix if pattern found
2849  */
2850 tSCC zDarwin_Os_Trace_2Select0[] =
2851        "typedef.*\\^os_trace_payload_t.*";
2853 #define    DARWIN_OS_TRACE_2_TEST_CT  1
2854 static tTestDesc aDarwin_Os_Trace_2Tests[] = {
2855   { TT_EGREP,    zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, };
2858  *  Fix Command Arguments for Darwin_Os_Trace_2
2859  */
2860 static const char* apzDarwin_Os_Trace_2Patch[] = {
2861     "format",
2862     "#if __BLOCKS__\n\
2863 %0\n\
2864 #endif",
2865     (char*)NULL };
2867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2869  *  Description of Darwin_Os_Trace_3 fix
2870  */
2871 tSCC zDarwin_Os_Trace_3Name[] =
2872      "darwin_os_trace_3";
2875  *  File name selection pattern
2876  */
2877 tSCC zDarwin_Os_Trace_3List[] =
2878   "os/trace.h\0";
2880  *  Machine/OS name selection pattern
2881  */
2882 tSCC* apzDarwin_Os_Trace_3Machs[] = {
2883         "*-*-darwin*",
2884         (const char*)NULL };
2887  *  content selection pattern - do fix if pattern found
2888  */
2889 tSCC zDarwin_Os_Trace_3Select0[] =
2890        "__(API|OSX)_.*\n\
2891 OS_EXPORT.*\n\
2892 .*\n\
2893 _os_trace.*os_trace_payload_t payload);";
2895 #define    DARWIN_OS_TRACE_3_TEST_CT  1
2896 static tTestDesc aDarwin_Os_Trace_3Tests[] = {
2897   { TT_EGREP,    zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, };
2900  *  Fix Command Arguments for Darwin_Os_Trace_3
2901  */
2902 static const char* apzDarwin_Os_Trace_3Patch[] = {
2903     "format",
2904     "#if __BLOCKS__\n\
2905 %0\n\
2906 #endif",
2907     (char*)NULL };
2909 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2911  *  Description of Darwin_Private_Extern fix
2912  */
2913 tSCC zDarwin_Private_ExternName[] =
2914      "darwin_private_extern";
2917  *  File name selection pattern
2918  */
2919 tSCC zDarwin_Private_ExternList[] =
2920   "mach-o/dyld.h\0";
2922  *  Machine/OS name selection pattern
2923  */
2924 tSCC* apzDarwin_Private_ExternMachs[] = {
2925         "*-*-darwin*",
2926         (const char*)NULL };
2929  *  content selection pattern - do fix if pattern found
2930  */
2931 tSCC zDarwin_Private_ExternSelect0[] =
2932        "__private_extern__ [a-z_]+ _dyld_";
2934 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2935 static tTestDesc aDarwin_Private_ExternTests[] = {
2936   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2939  *  Fix Command Arguments for Darwin_Private_Extern
2940  */
2941 static const char* apzDarwin_Private_ExternPatch[] = {
2942     "format",
2943     "extern",
2944     "__private_extern__",
2945     (char*)NULL };
2947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2949  *  Description of Darwin_Stdint_1 fix
2950  */
2951 tSCC zDarwin_Stdint_1Name[] =
2952      "darwin_stdint_1";
2955  *  File name selection pattern
2956  */
2957 tSCC zDarwin_Stdint_1List[] =
2958   "stdint-darwin.h\0stdint.h\0";
2960  *  Machine/OS name selection pattern
2961  */
2962 tSCC* apzDarwin_Stdint_1Machs[] = {
2963         "*-*-darwin*",
2964         (const char*)NULL };
2967  *  content selection pattern - do fix if pattern found
2968  */
2969 tSCC zDarwin_Stdint_1Select0[] =
2970        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2971 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2973 #define    DARWIN_STDINT_1_TEST_CT  1
2974 static tTestDesc aDarwin_Stdint_1Tests[] = {
2975   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2978  *  Fix Command Arguments for Darwin_Stdint_1
2979  */
2980 static const char* apzDarwin_Stdint_1Patch[] = {
2981     "format",
2982     "#define UINT8_C(v)\tv\n\
2983 #define UINT16_C(v)\tv",
2984     (char*)NULL };
2986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2988  *  Description of Darwin_Stdint_2 fix
2989  */
2990 tSCC zDarwin_Stdint_2Name[] =
2991      "darwin_stdint_2";
2994  *  File name selection pattern
2995  */
2996 tSCC zDarwin_Stdint_2List[] =
2997   "stdint-darwin.h\0stdint.h\0";
2999  *  Machine/OS name selection pattern
3000  */
3001 tSCC* apzDarwin_Stdint_2Machs[] = {
3002         "*-*-darwin*",
3003         (const char*)NULL };
3006  *  content selection pattern - do fix if pattern found
3007  */
3008 tSCC zDarwin_Stdint_2Select0[] =
3009        "#if __WORDSIZE == 64\n\
3010 #define INTPTR_MIN[ \t]+INT64_MIN\n\
3011 #define INTPTR_MAX[ \t]+INT64_MAX\n\
3012 #else\n\
3013 #define INTPTR_MIN[ \t]+INT32_MIN\n\
3014 #define INTPTR_MAX[ \t]+INT32_MAX\n\
3015 #endif";
3017 #define    DARWIN_STDINT_2_TEST_CT  1
3018 static tTestDesc aDarwin_Stdint_2Tests[] = {
3019   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
3022  *  Fix Command Arguments for Darwin_Stdint_2
3023  */
3024 static const char* apzDarwin_Stdint_2Patch[] = {
3025     "format",
3026     "#if __WORDSIZE == 64\n\
3027 #define INTPTR_MAX 9223372036854775807L\n\
3028 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3029 #else\n\
3030 #define INTPTR_MAX 2147483647L\n\
3031 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3032 #endif",
3033     (char*)NULL };
3035 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3037  *  Description of Darwin_Stdint_3 fix
3038  */
3039 tSCC zDarwin_Stdint_3Name[] =
3040      "darwin_stdint_3";
3043  *  File name selection pattern
3044  */
3045 tSCC zDarwin_Stdint_3List[] =
3046   "stdint-darwin.h\0stdint.h\0";
3048  *  Machine/OS name selection pattern
3049  */
3050 tSCC* apzDarwin_Stdint_3Machs[] = {
3051         "*-*-darwin*",
3052         (const char*)NULL };
3055  *  content selection pattern - do fix if pattern found
3056  */
3057 tSCC zDarwin_Stdint_3Select0[] =
3058        "#if __WORDSIZE == 64\n\
3059 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
3060 #else\n\
3061 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
3062 #endif";
3064 #define    DARWIN_STDINT_3_TEST_CT  1
3065 static tTestDesc aDarwin_Stdint_3Tests[] = {
3066   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
3069  *  Fix Command Arguments for Darwin_Stdint_3
3070  */
3071 static const char* apzDarwin_Stdint_3Patch[] = {
3072     "format",
3073     "#if __WORDSIZE == 64\n\
3074 #define UINTPTR_MAX 18446744073709551615UL\n\
3075 #else\n\
3076 #define UINTPTR_MAX 4294967295UL\n\
3077 #endif",
3078     (char*)NULL };
3080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3082  *  Description of Darwin_Stdint_4 fix
3083  */
3084 tSCC zDarwin_Stdint_4Name[] =
3085      "darwin_stdint_4";
3088  *  File name selection pattern
3089  */
3090 tSCC zDarwin_Stdint_4List[] =
3091   "stdint-darwin.h\0stdint.h\0";
3093  *  Machine/OS name selection pattern
3094  */
3095 tSCC* apzDarwin_Stdint_4Machs[] = {
3096         "*-*-darwin*",
3097         (const char*)NULL };
3100  *  content selection pattern - do fix if pattern found
3101  */
3102 tSCC zDarwin_Stdint_4Select0[] =
3103        "#if __WORDSIZE == 64\n\
3104 #define SIZE_MAX[ \t]+UINT64_MAX\n\
3105 #else\n\
3106 #define SIZE_MAX[ \t]+UINT32_MAX\n\
3107 #endif";
3109 #define    DARWIN_STDINT_4_TEST_CT  1
3110 static tTestDesc aDarwin_Stdint_4Tests[] = {
3111   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
3114  *  Fix Command Arguments for Darwin_Stdint_4
3115  */
3116 static const char* apzDarwin_Stdint_4Patch[] = {
3117     "format",
3118     "#if __WORDSIZE == 64\n\
3119 #define SIZE_MAX 18446744073709551615UL\n\
3120 #else\n\
3121 #define SIZE_MAX 4294967295UL\n\
3122 #endif",
3123     (char*)NULL };
3125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3127  *  Description of Darwin_Stdint_5 fix
3128  */
3129 tSCC zDarwin_Stdint_5Name[] =
3130      "darwin_stdint_5";
3133  *  File name selection pattern
3134  */
3135 tSCC zDarwin_Stdint_5List[] =
3136   "stdint-darwin.h\0stdint.h\0";
3138  *  Machine/OS name selection pattern
3139  */
3140 tSCC* apzDarwin_Stdint_5Machs[] = {
3141         "*-*-darwin*",
3142         (const char*)NULL };
3145  *  content selection pattern - do fix if pattern found
3146  */
3147 tSCC zDarwin_Stdint_5Select0[] =
3148        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
3149 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
3150 #define UINTMAX_MAX[ \t]+UINT64_MAX";
3152 #define    DARWIN_STDINT_5_TEST_CT  1
3153 static tTestDesc aDarwin_Stdint_5Tests[] = {
3154   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
3157  *  Fix Command Arguments for Darwin_Stdint_5
3158  */
3159 static const char* apzDarwin_Stdint_5Patch[] = {
3160     "format",
3161     "#if __WORDSIZE == 64\n\
3162 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
3163 #define INTMAX_MAX   9223372036854775807L\n\
3164 #define UINTMAX_MAX  18446744073709551615UL\n\
3165 #else\n\
3166 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
3167 #define INTMAX_MAX   9223372036854775807LL\n\
3168 #define UINTMAX_MAX  18446744073709551615ULL\n\
3169 #endif",
3170     (char*)NULL };
3172 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3174  *  Description of Darwin_Stdint_6 fix
3175  */
3176 tSCC zDarwin_Stdint_6Name[] =
3177      "darwin_stdint_6";
3180  *  File name selection pattern
3181  */
3182 tSCC zDarwin_Stdint_6List[] =
3183   "stdint-darwin.h\0stdint.h\0";
3185  *  Machine/OS name selection pattern
3186  */
3187 tSCC* apzDarwin_Stdint_6Machs[] = {
3188         "*-*-darwin*",
3189         (const char*)NULL };
3192  *  content selection pattern - do fix if pattern found
3193  */
3194 tSCC zDarwin_Stdint_6Select0[] =
3195        "#if __WORDSIZE == 64\n\
3196 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
3197 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
3198 #else\n\
3199 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
3200 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
3201 #endif";
3203 #define    DARWIN_STDINT_6_TEST_CT  1
3204 static tTestDesc aDarwin_Stdint_6Tests[] = {
3205   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
3208  *  Fix Command Arguments for Darwin_Stdint_6
3209  */
3210 static const char* apzDarwin_Stdint_6Patch[] = {
3211     "format",
3212     "#if __WORDSIZE == 64\n\
3213 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
3214 #define PTRDIFF_MAX 9223372036854775807L\n\
3215 #else\n\
3216 #define PTRDIFF_MIN (-2147483647 - 1)\n\
3217 #define PTRDIFF_MAX 2147483647\n\
3218 #endif",
3219     (char*)NULL };
3221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3223  *  Description of Darwin_Stdint_7 fix
3224  */
3225 tSCC zDarwin_Stdint_7Name[] =
3226      "darwin_stdint_7";
3229  *  File name selection pattern
3230  */
3231 tSCC zDarwin_Stdint_7List[] =
3232   "stdint-darwin.h\0stdint.h\0";
3234  *  Machine/OS name selection pattern
3235  */
3236 tSCC* apzDarwin_Stdint_7Machs[] = {
3237         "*-*-darwin*",
3238         (const char*)NULL };
3241  *  content selection pattern - do fix if pattern found
3242  */
3243 tSCC zDarwin_Stdint_7Select0[] =
3244        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
3245 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
3247 #define    DARWIN_STDINT_7_TEST_CT  1
3248 static tTestDesc aDarwin_Stdint_7Tests[] = {
3249   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
3252  *  Fix Command Arguments for Darwin_Stdint_7
3253  */
3254 static const char* apzDarwin_Stdint_7Patch[] = {
3255     "format",
3256     "#if __WORDSIZE == 64\n\
3257 #define INTMAX_C(v)  (v ## L)\n\
3258 #define UINTMAX_C(v) (v ## UL)\n\
3259 #else\n\
3260 #define INTMAX_C(v)  (v ## LL)\n\
3261 #define UINTMAX_C(v) (v ## ULL)\n\
3262 #endif",
3263     (char*)NULL };
3265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3267  *  Description of Dec_Intern_Asm fix
3268  */
3269 tSCC zDec_Intern_AsmName[] =
3270      "dec_intern_asm";
3273  *  File name selection pattern
3274  */
3275 tSCC zDec_Intern_AsmList[] =
3276   "c_asm.h\0";
3278  *  Machine/OS name selection pattern
3279  */
3280 #define apzDec_Intern_AsmMachs (const char**)NULL
3281 #define DEC_INTERN_ASM_TEST_CT  0
3282 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
3285  *  Fix Command Arguments for Dec_Intern_Asm
3286  */
3287 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
3288     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
3289 #ifdef __DECC\n",
3290     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
3291 #endif\n",
3292     (char*)NULL };
3294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3296  *  Description of Djgpp_Wchar_H fix
3297  */
3298 tSCC zDjgpp_Wchar_HName[] =
3299      "djgpp_wchar_h";
3302  *  File name selection pattern
3303  */
3304 #define zDjgpp_Wchar_HList (char*)NULL
3306  *  Machine/OS name selection pattern
3307  */
3308 #define apzDjgpp_Wchar_HMachs (const char**)NULL
3311  *  content selection pattern - do fix if pattern found
3312  */
3313 tSCC zDjgpp_Wchar_HSelect0[] =
3314        "__DJ_wint_t";
3317  *  content bypass pattern - skip fix if pattern found
3318  */
3319 tSCC zDjgpp_Wchar_HBypass0[] =
3320        "sys/djtypes.h";
3322 #define    DJGPP_WCHAR_H_TEST_CT  2
3323 static tTestDesc aDjgpp_Wchar_HTests[] = {
3324   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
3325   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
3328  *  Fix Command Arguments for Djgpp_Wchar_H
3329  */
3330 static const char* apzDjgpp_Wchar_HPatch[] = {
3331     "format",
3332     "%0\n\
3333 #include <sys/djtypes.h>",
3334     "#include <stddef.h>",
3335     (char*)NULL };
3337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3339  *  Description of Ecd_Cursor fix
3340  */
3341 tSCC zEcd_CursorName[] =
3342      "ecd_cursor";
3345  *  File name selection pattern
3346  */
3347 tSCC zEcd_CursorList[] =
3348   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
3350  *  Machine/OS name selection pattern
3351  */
3352 #define apzEcd_CursorMachs (const char**)NULL
3355  *  content selection pattern - do fix if pattern found
3356  */
3357 tSCC zEcd_CursorSelect0[] =
3358        "ecd\\.cursor";
3360 #define    ECD_CURSOR_TEST_CT  1
3361 static tTestDesc aEcd_CursorTests[] = {
3362   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
3365  *  Fix Command Arguments for Ecd_Cursor
3366  */
3367 static const char* apzEcd_CursorPatch[] = {
3368     "format",
3369     "ecd_cursor",
3370     (char*)NULL };
3372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3374  *  Description of Feraiseexcept_Nosse_Divbyzero fix
3375  */
3376 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
3377      "feraiseexcept_nosse_divbyzero";
3380  *  File name selection pattern
3381  */
3382 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
3383   "bits/fenv.h\0*/bits/fenv.h\0";
3385  *  Machine/OS name selection pattern
3386  */
3387 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
3388         "i[34567]86-*-linux*",
3389         "x86*-linux*",
3390         "amd64-*-linux*",
3391         (const char*)NULL };
3394  *  content selection pattern - do fix if pattern found
3395  */
3396 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
3397        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
3400  *  content bypass pattern - skip fix if pattern found
3401  */
3402 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
3403        "\"fdivp .*; fwait\"";
3405 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
3406 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
3407   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
3408   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
3411  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
3412  */
3413 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
3414     "format",
3415     "# ifdef __SSE_MATH__\n\
3416 %0\n\
3417 # else\n\
3418 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
3419 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
3420 # endif",
3421     (char*)NULL };
3423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3425  *  Description of Feraiseexcept_Nosse_Invalid fix
3426  */
3427 tSCC zFeraiseexcept_Nosse_InvalidName[] =
3428      "feraiseexcept_nosse_invalid";
3431  *  File name selection pattern
3432  */
3433 tSCC zFeraiseexcept_Nosse_InvalidList[] =
3434   "bits/fenv.h\0*/bits/fenv.h\0";
3436  *  Machine/OS name selection pattern
3437  */
3438 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
3439         "i[34567]86-*-linux*",
3440         "x86*-linux*",
3441         "amd64-*-linux*",
3442         (const char*)NULL };
3445  *  content selection pattern - do fix if pattern found
3446  */
3447 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
3448        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
3451  *  content bypass pattern - skip fix if pattern found
3452  */
3453 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
3454        "\"fdiv .*; fwait\"";
3456 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
3457 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
3458   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
3459   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
3462  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
3463  */
3464 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
3465     "format",
3466     "# ifdef __SSE_MATH__\n\
3467 %0\n\
3468 # else\n\
3469 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
3470 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
3471 # endif",
3472     (char*)NULL };
3474 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3476  *  Description of Freebsd_Gcc3_Breakage fix
3477  */
3478 tSCC zFreebsd_Gcc3_BreakageName[] =
3479      "freebsd_gcc3_breakage";
3482  *  File name selection pattern
3483  */
3484 tSCC zFreebsd_Gcc3_BreakageList[] =
3485   "sys/cdefs.h\0";
3487  *  Machine/OS name selection pattern
3488  */
3489 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
3490         "*-*-freebsd*",
3491         (const char*)NULL };
3494  *  content selection pattern - do fix if pattern found
3495  */
3496 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
3497        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
3500  *  content bypass pattern - skip fix if pattern found
3501  */
3502 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
3503        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
3505 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
3506 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
3507   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
3508   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
3511  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
3512  */
3513 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
3514     "format",
3515     "%0 || __GNUC__ >= 3",
3516     (char*)NULL };
3518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3520  *  Description of Freebsd_Gcc4_Breakage fix
3521  */
3522 tSCC zFreebsd_Gcc4_BreakageName[] =
3523      "freebsd_gcc4_breakage";
3526  *  File name selection pattern
3527  */
3528 tSCC zFreebsd_Gcc4_BreakageList[] =
3529   "sys/cdefs.h\0";
3531  *  Machine/OS name selection pattern
3532  */
3533 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3534         "*-*-freebsd*",
3535         (const char*)NULL };
3538  *  content selection pattern - do fix if pattern found
3539  */
3540 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3541        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3543 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
3544 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3545   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3548  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
3549  */
3550 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3551     "format",
3552     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3553     (char*)NULL };
3555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3557  *  Description of Glibc_C99_Inline_1 fix
3558  */
3559 tSCC zGlibc_C99_Inline_1Name[] =
3560      "glibc_c99_inline_1";
3563  *  File name selection pattern
3564  */
3565 tSCC zGlibc_C99_Inline_1List[] =
3566   "features.h\0*/features.h\0";
3568  *  Machine/OS name selection pattern
3569  */
3570 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3573  *  content selection pattern - do fix if pattern found
3574  */
3575 tSCC zGlibc_C99_Inline_1Select0[] =
3576        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3578 #define    GLIBC_C99_INLINE_1_TEST_CT  1
3579 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3580   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3583  *  Fix Command Arguments for Glibc_C99_Inline_1
3584  */
3585 static const char* apzGlibc_C99_Inline_1Patch[] = {
3586     "format",
3587     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3588     (char*)NULL };
3590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3592  *  Description of Glibc_C99_Inline_1a fix
3593  */
3594 tSCC zGlibc_C99_Inline_1aName[] =
3595      "glibc_c99_inline_1a";
3598  *  File name selection pattern
3599  */
3600 tSCC zGlibc_C99_Inline_1aList[] =
3601   "features.h\0*/features.h\0";
3603  *  Machine/OS name selection pattern
3604  */
3605 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3608  *  content selection pattern - do fix if pattern found
3609  */
3610 tSCC zGlibc_C99_Inline_1aSelect0[] =
3611        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3612 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3614 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
3615 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3616   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3619  *  Fix Command Arguments for Glibc_C99_Inline_1a
3620  */
3621 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3622     "format",
3623     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3624 %2",
3625     (char*)NULL };
3627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3629  *  Description of Glibc_C99_Inline_2 fix
3630  */
3631 tSCC zGlibc_C99_Inline_2Name[] =
3632      "glibc_c99_inline_2";
3635  *  File name selection pattern
3636  */
3637 tSCC zGlibc_C99_Inline_2List[] =
3638   "sys/stat.h\0*/sys/stat.h\0";
3640  *  Machine/OS name selection pattern
3641  */
3642 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3645  *  content selection pattern - do fix if pattern found
3646  */
3647 tSCC zGlibc_C99_Inline_2Select0[] =
3648        "extern __inline__ int";
3650 #define    GLIBC_C99_INLINE_2_TEST_CT  1
3651 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3652   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3655  *  Fix Command Arguments for Glibc_C99_Inline_2
3656  */
3657 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3658     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3659 extern\\\n\
3660 #endif\\\n\
3661 __inline__ int \\1/",
3662     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3663 extern\\\n\
3664 #endif\\\n\
3665 __inline__ int \\1/",
3666     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3667 extern\\\n\
3668 #endif\\\n\
3669 __inline__ int \\1/",
3670     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3671 extern\\\n\
3672 #endif\\\n\
3673 __inline__ int __REDIRECT\\1 (\\2/",
3674     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3675 extern\\\n\
3676 #endif\\\n\
3677 __inline__ int __REDIRECT\\1 (\\2/",
3678     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
3679 extern\\\n\
3680 #endif\\\n\
3681 __inline__ int/",
3682     (char*)NULL };
3684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3686  *  Description of Glibc_C99_Inline_3 fix
3687  */
3688 tSCC zGlibc_C99_Inline_3Name[] =
3689      "glibc_c99_inline_3";
3692  *  File name selection pattern
3693  */
3694 tSCC zGlibc_C99_Inline_3List[] =
3695   "bits/string2.h\0*/bits/string2.h\0";
3697  *  Machine/OS name selection pattern
3698  */
3699 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
3702  *  content selection pattern - do fix if pattern found
3703  */
3704 tSCC zGlibc_C99_Inline_3Select0[] =
3705        "extern __inline";
3708  *  content bypass pattern - skip fix if pattern found
3709  */
3710 tSCC zGlibc_C99_Inline_3Bypass0[] =
3711        "__extern_inline|__GNU_STDC_INLINE__";
3713 #define    GLIBC_C99_INLINE_3_TEST_CT  2
3714 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
3715   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3716   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
3719  *  Fix Command Arguments for Glibc_C99_Inline_3
3720  */
3721 static const char* apzGlibc_C99_Inline_3Patch[] = {
3722     "format",
3723     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3724     "^# ifdef __cplusplus$",
3725     (char*)NULL };
3727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3729  *  Description of Glibc_C99_Inline_4 fix
3730  */
3731 tSCC zGlibc_C99_Inline_4Name[] =
3732      "glibc_c99_inline_4";
3735  *  File name selection pattern
3736  */
3737 tSCC zGlibc_C99_Inline_4List[] =
3738   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
3740  *  Machine/OS name selection pattern
3741  */
3742 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3745  *  content selection pattern - do fix if pattern found
3746  */
3747 tSCC zGlibc_C99_Inline_4Select0[] =
3748        "(^| )extern __inline";
3751  *  content bypass pattern - skip fix if pattern found
3752  */
3753 tSCC zGlibc_C99_Inline_4Bypass0[] =
3754        "__extern_inline|__gnu_inline__";
3756 #define    GLIBC_C99_INLINE_4_TEST_CT  2
3757 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3758   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3759   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3762  *  Fix Command Arguments for Glibc_C99_Inline_4
3763  */
3764 static const char* apzGlibc_C99_Inline_4Patch[] = {
3765     "format",
3766     "%0 __attribute__ ((__gnu_inline__))",
3767     (char*)NULL };
3769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3771  *  Description of Glibc_Mutex_Init fix
3772  */
3773 tSCC zGlibc_Mutex_InitName[] =
3774      "glibc_mutex_init";
3777  *  File name selection pattern
3778  */
3779 tSCC zGlibc_Mutex_InitList[] =
3780   "pthread.h\0";
3782  *  Machine/OS name selection pattern
3783  */
3784 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3787  *  content selection pattern - do fix if pattern found
3788  */
3789 tSCC zGlibc_Mutex_InitSelect0[] =
3790        "\\{ *\\{ *0, *\\} *\\}";
3792 #define    GLIBC_MUTEX_INIT_TEST_CT  1
3793 static tTestDesc aGlibc_Mutex_InitTests[] = {
3794   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3797  *  Fix Command Arguments for Glibc_Mutex_Init
3798  */
3799 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3800     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3801 N\n\
3802 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3804     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3805     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3806     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3807     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3808     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3809     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3810     "-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\
3811 #  \\1\\\n\
3812   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3813 # else\\\n\
3814 #  \\1\\\n\
3815   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3816 # endif/",
3817     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3818     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3819     (char*)NULL };
3821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3823  *  Description of Glibc_Stdint fix
3824  */
3825 tSCC zGlibc_StdintName[] =
3826      "glibc_stdint";
3829  *  File name selection pattern
3830  */
3831 tSCC zGlibc_StdintList[] =
3832   "stdint.h\0";
3834  *  Machine/OS name selection pattern
3835  */
3836 #define apzGlibc_StdintMachs (const char**)NULL
3839  *  content selection pattern - do fix if pattern found
3840  */
3841 tSCC zGlibc_StdintSelect0[] =
3842        "GNU C Library";
3844 #define    GLIBC_STDINT_TEST_CT  1
3845 static tTestDesc aGlibc_StdintTests[] = {
3846   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
3849  *  Fix Command Arguments for Glibc_Stdint
3850  */
3851 static const char* apzGlibc_StdintPatch[] = {
3852     "format",
3853     "# define UINT8_C(c)\tc\n\
3854 # define UINT16_C(c)\tc",
3855     "# define UINT8_C\\(c\\)\tc ## U\n\
3856 # define UINT16_C\\(c\\)\tc ## U",
3857     (char*)NULL };
3859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3861  *  Description of Glibc_Strncpy fix
3862  */
3863 tSCC zGlibc_StrncpyName[] =
3864      "glibc_strncpy";
3867  *  File name selection pattern
3868  */
3869 tSCC zGlibc_StrncpyList[] =
3870   "bits/string2.h\0*/bits/string2.h\0";
3872  *  Machine/OS name selection pattern
3873  */
3874 #define apzGlibc_StrncpyMachs (const char**)NULL
3877  *  content bypass pattern - skip fix if pattern found
3878  */
3879 tSCC zGlibc_StrncpyBypass0[] =
3880        "__builtin_strncpy";
3882 #define    GLIBC_STRNCPY_TEST_CT  1
3883 static tTestDesc aGlibc_StrncpyTests[] = {
3884   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3887  *  Fix Command Arguments for Glibc_Strncpy
3888  */
3889 static const char* apzGlibc_StrncpyPatch[] = {
3890     "format",
3891     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3892     "#  define strncpy([^\n\
3893 ]*\\\\\n\
3894 )*[^\n\
3895 ]*",
3896     (char*)NULL };
3898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3900  *  Description of Glibc_Tgmath fix
3901  */
3902 tSCC zGlibc_TgmathName[] =
3903      "glibc_tgmath";
3906  *  File name selection pattern
3907  */
3908 tSCC zGlibc_TgmathList[] =
3909   "tgmath.h\0";
3911  *  Machine/OS name selection pattern
3912  */
3913 #define apzGlibc_TgmathMachs (const char**)NULL
3916  *  content selection pattern - do fix if pattern found
3917  */
3918 tSCC zGlibc_TgmathSelect0[] =
3919        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3922  *  content bypass pattern - skip fix if pattern found
3923  */
3924 tSCC zGlibc_TgmathBypass0[] =
3925        "__floating_type\\(type\\) \\\\\n\
3926 .*__builtin_classify_type";
3928 #define    GLIBC_TGMATH_TEST_CT  2
3929 static tTestDesc aGlibc_TgmathTests[] = {
3930   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
3931   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3934  *  Fix Command Arguments for Glibc_Tgmath
3935  */
3936 static const char* apzGlibc_TgmathPatch[] = {
3937     "format",
3938     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3939     (char*)NULL };
3941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3943  *  Description of Gnu_Types fix
3944  */
3945 tSCC zGnu_TypesName[] =
3946      "gnu_types";
3949  *  File name selection pattern
3950  */
3951 tSCC zGnu_TypesList[] =
3952   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3954  *  Machine/OS name selection pattern
3955  */
3956 tSCC* apzGnu_TypesMachs[] = {
3957         "*-*-solaris2.1[0-9]*",
3958         (const char*)NULL };
3961  *  content selection pattern - do fix if pattern found
3962  */
3963 tSCC zGnu_TypesSelect0[] =
3964        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3967  *  content bypass pattern - skip fix if pattern found
3968  */
3969 tSCC zGnu_TypesBypass0[] =
3970        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3972 #define    GNU_TYPES_TEST_CT  2
3973 static tTestDesc aGnu_TypesTests[] = {
3974   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3975   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3978  *  Fix Command Arguments for Gnu_Types
3979  */
3980 static const char* apzGnu_TypesPatch[] = {
3981     "gnu_type",
3982     (char*)NULL };
3984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3986  *  Description of Hp_Inline fix
3987  */
3988 tSCC zHp_InlineName[] =
3989      "hp_inline";
3992  *  File name selection pattern
3993  */
3994 tSCC zHp_InlineList[] =
3995   "sys/spinlock.h\0machine/machparam.h\0";
3997  *  Machine/OS name selection pattern
3998  */
3999 #define apzHp_InlineMachs (const char**)NULL
4002  *  content selection pattern - do fix if pattern found
4003  */
4004 tSCC zHp_InlineSelect0[] =
4005        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
4007 #define    HP_INLINE_TEST_CT  1
4008 static tTestDesc aHp_InlineTests[] = {
4009   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
4012  *  Fix Command Arguments for Hp_Inline
4013  */
4014 static const char* apzHp_InlinePatch[] = {
4015     "format",
4016     "%1<machine/%2.h>",
4017     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
4018     (char*)NULL };
4020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4022  *  Description of Hp_Sysfile fix
4023  */
4024 tSCC zHp_SysfileName[] =
4025      "hp_sysfile";
4028  *  File name selection pattern
4029  */
4030 tSCC zHp_SysfileList[] =
4031   "sys/file.h\0";
4033  *  Machine/OS name selection pattern
4034  */
4035 #define apzHp_SysfileMachs (const char**)NULL
4038  *  content selection pattern - do fix if pattern found
4039  */
4040 tSCC zHp_SysfileSelect0[] =
4041        "HPUX_SOURCE";
4043 #define    HP_SYSFILE_TEST_CT  1
4044 static tTestDesc aHp_SysfileTests[] = {
4045   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
4048  *  Fix Command Arguments for Hp_Sysfile
4049  */
4050 static const char* apzHp_SysfilePatch[] = {
4051     "format",
4052     "(struct file *, ...)",
4053     "\\(\\.\\.\\.\\)",
4054     (char*)NULL };
4056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4058  *  Description of Hppa_Hpux_Fp_Macros fix
4059  */
4060 tSCC zHppa_Hpux_Fp_MacrosName[] =
4061      "hppa_hpux_fp_macros";
4064  *  File name selection pattern
4065  */
4066 tSCC zHppa_Hpux_Fp_MacrosList[] =
4067   "math.h\0";
4069  *  Machine/OS name selection pattern
4070  */
4071 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
4072         "hppa*-hp-hpux11*",
4073         (const char*)NULL };
4076  *  content selection pattern - do fix if pattern found
4077  */
4078 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
4079        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
4080 #[ \t]*define[ \t]*FP_ZERO.*\n\
4081 #[ \t]*define[ \t]*FP_INFINITE.*\n\
4082 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
4083 #[ \t]*define[ \t]*FP_NAN.*\n";
4085 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
4086 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
4087   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
4090  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
4091  */
4092 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
4093     "format",
4094     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
4095 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
4096    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
4097 %0#endif\n\n\
4098 #ifdef _INCLUDE_HPUX_SOURCE\n",
4099     (char*)NULL };
4101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4103  *  Description of Hpux10_Cpp_Pow_Inline fix
4104  */
4105 tSCC zHpux10_Cpp_Pow_InlineName[] =
4106      "hpux10_cpp_pow_inline";
4109  *  File name selection pattern
4110  */
4111 tSCC zHpux10_Cpp_Pow_InlineList[] =
4112   "fixinc-test-limits.h\0math.h\0";
4114  *  Machine/OS name selection pattern
4115  */
4116 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
4119  *  content selection pattern - do fix if pattern found
4120  */
4121 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
4122        "^# +ifdef +__cplusplus\n\
4123  +\\}\n\
4124  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
4125 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
4126  +\\}\n\
4127  +extern +\"C\" +\\{\n\
4128 #else\n\
4129 # +endif";
4131 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
4132 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
4133   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4136  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
4137  */
4138 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
4139     "format",
4140     "",
4141     (char*)NULL };
4143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4145  *  Description of Hpux11_Cpp_Pow_Inline fix
4146  */
4147 tSCC zHpux11_Cpp_Pow_InlineName[] =
4148      "hpux11_cpp_pow_inline";
4151  *  File name selection pattern
4152  */
4153 tSCC zHpux11_Cpp_Pow_InlineList[] =
4154   "math.h\0";
4156  *  Machine/OS name selection pattern
4157  */
4158 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
4161  *  content selection pattern - do fix if pattern found
4162  */
4163 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
4164        " +inline double pow\\(double d,int expon\\) \\{\n\
4165  +return pow\\(d, \\(double\\)expon\\);\n\
4166  +\\}\n";
4168 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
4169 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
4170   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4173  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
4174  */
4175 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
4176     "format",
4177     "",
4178     (char*)NULL };
4180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4182  *  Description of Hpux10_Ctype_Declarations1 fix
4183  */
4184 tSCC zHpux10_Ctype_Declarations1Name[] =
4185      "hpux10_ctype_declarations1";
4188  *  File name selection pattern
4189  */
4190 tSCC zHpux10_Ctype_Declarations1List[] =
4191   "ctype.h\0";
4193  *  Machine/OS name selection pattern
4194  */
4195 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
4198  *  content selection pattern - do fix if pattern found
4199  */
4200 tSCC zHpux10_Ctype_Declarations1Select0[] =
4201        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
4204  *  content bypass pattern - skip fix if pattern found
4205  */
4206 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
4207        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
4209 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
4210 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
4211   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
4212   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
4215  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
4216  */
4217 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
4218     "format",
4219     "#ifdef _PROTOTYPES\n\
4220 extern int __tolower(int);\n\
4221 extern int __toupper(int);\n\
4222 #else /* NOT _PROTOTYPES */\n\
4223 extern int __tolower();\n\
4224 extern int __toupper();\n\
4225 #endif /* _PROTOTYPES */\n\n\
4226 %0\n",
4227     (char*)NULL };
4229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4231  *  Description of Hpux10_Ctype_Declarations2 fix
4232  */
4233 tSCC zHpux10_Ctype_Declarations2Name[] =
4234      "hpux10_ctype_declarations2";
4237  *  File name selection pattern
4238  */
4239 tSCC zHpux10_Ctype_Declarations2List[] =
4240   "ctype.h\0";
4242  *  Machine/OS name selection pattern
4243  */
4244 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
4247  *  content selection pattern - do fix if pattern found
4248  */
4249 tSCC zHpux10_Ctype_Declarations2Select0[] =
4250        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
4253  *  content bypass pattern - skip fix if pattern found
4254  */
4255 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
4256        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
4258 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
4259 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
4260   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
4261   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
4264  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
4265  */
4266 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
4267     "format",
4268     "%0\n\n\
4269 #ifdef _PROTOTYPES\n\
4270      extern int _isalnum(int);\n\
4271      extern int _isalpha(int);\n\
4272      extern int _iscntrl(int);\n\
4273      extern int _isdigit(int);\n\
4274      extern int _isgraph(int);\n\
4275      extern int _islower(int);\n\
4276      extern int _isprint(int);\n\
4277      extern int _ispunct(int);\n\
4278      extern int _isspace(int);\n\
4279      extern int _isupper(int);\n\
4280      extern int _isxdigit(int);\n\
4281 #  else /* not _PROTOTYPES */\n\
4282      extern int _isalnum();\n\
4283      extern int _isalpha();\n\
4284      extern int _iscntrl();\n\
4285      extern int _isdigit();\n\
4286      extern int _isgraph();\n\
4287      extern int _islower();\n\
4288      extern int _isprint();\n\
4289      extern int _ispunct();\n\
4290      extern int _isspace();\n\
4291      extern int _isupper();\n\
4292      extern int _isxdigit();\n\
4293 #endif /* _PROTOTYPES */\n",
4294     (char*)NULL };
4296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4298  *  Description of Hpux10_Stdio_Declarations fix
4299  */
4300 tSCC zHpux10_Stdio_DeclarationsName[] =
4301      "hpux10_stdio_declarations";
4304  *  File name selection pattern
4305  */
4306 tSCC zHpux10_Stdio_DeclarationsList[] =
4307   "stdio.h\0";
4309  *  Machine/OS name selection pattern
4310  */
4311 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
4314  *  content selection pattern - do fix if pattern found
4315  */
4316 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
4317        "^#[ \t]*define _iob[ \t]*__iob";
4320  *  content bypass pattern - skip fix if pattern found
4321  */
4322 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
4323        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
4325 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
4326 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
4327   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
4328   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
4331  *  Fix Command Arguments for Hpux10_Stdio_Declarations
4332  */
4333 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
4334     "format",
4335     "%0\n\n\
4336 #  if defined(__STDC__) || defined(__cplusplus)\n\
4337      extern int snprintf(char *, size_t, const char *, ...);\n\
4338      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
4339 #  else /* not __STDC__) || __cplusplus */\n\
4340      extern int snprintf();\n\
4341      extern int vsnprintf();\n\
4342 #  endif /* __STDC__) || __cplusplus */\n",
4343     (char*)NULL };
4345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4347  *  Description of Hppa_Hpux11_Alloca fix
4348  */
4349 tSCC zHppa_Hpux11_AllocaName[] =
4350      "hppa_hpux11_alloca";
4353  *  File name selection pattern
4354  */
4355 tSCC zHppa_Hpux11_AllocaList[] =
4356   "alloca.h\0";
4358  *  Machine/OS name selection pattern
4359  */
4360 tSCC* apzHppa_Hpux11_AllocaMachs[] = {
4361         "hppa*-*-hpux11*",
4362         (const char*)NULL };
4365  *  content selection pattern - do fix if pattern found
4366  */
4367 tSCC zHppa_Hpux11_AllocaSelect0[] =
4368        "#ifndef _STDDEF_INCLUDED";
4370 #define    HPPA_HPUX11_ALLOCA_TEST_CT  1
4371 static tTestDesc aHppa_Hpux11_AllocaTests[] = {
4372   { TT_EGREP,    zHppa_Hpux11_AllocaSelect0, (regex_t*)NULL }, };
4375  *  Fix Command Arguments for Hppa_Hpux11_Alloca
4376  */
4377 static const char* apzHppa_Hpux11_AllocaPatch[] = {
4378     "format",
4379     "#ifndef _SYS_STDSYMS_INCLUDED\n\
4380 #  include <sys/stdsyms.h>\n\
4381 #endif /* _SYS_STDSYMS_INCLUDED */\n\n\
4382 %0",
4383     (char*)NULL };
4385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4387  *  Description of Hpux11_Abs fix
4388  */
4389 tSCC zHpux11_AbsName[] =
4390      "hpux11_abs";
4393  *  File name selection pattern
4394  */
4395 tSCC zHpux11_AbsList[] =
4396   "stdlib.h\0";
4398  *  Machine/OS name selection pattern
4399  */
4400 tSCC* apzHpux11_AbsMachs[] = {
4401         "*-hp-hpux11*",
4402         (const char*)NULL };
4405  *  content selection pattern - do fix if pattern found
4406  */
4407 tSCC zHpux11_AbsSelect0[] =
4408        "ifndef _MATH_INCLUDED";
4410 #define    HPUX11_ABS_TEST_CT  1
4411 static tTestDesc aHpux11_AbsTests[] = {
4412   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
4415  *  Fix Command Arguments for Hpux11_Abs
4416  */
4417 static const char* apzHpux11_AbsPatch[] = {
4418     "format",
4419     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
4420     (char*)NULL };
4422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4424  *  Description of Hpux11_Lwp_Rwlock_Valid fix
4425  */
4426 tSCC zHpux11_Lwp_Rwlock_ValidName[] =
4427      "hpux11_lwp_rwlock_valid";
4430  *  File name selection pattern
4431  */
4432 tSCC zHpux11_Lwp_Rwlock_ValidList[] =
4433   "sys/pthread.h\0";
4435  *  Machine/OS name selection pattern
4436  */
4437 tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = {
4438         "*-hp-hpux11*",
4439         (const char*)NULL };
4442  *  content selection pattern - do fix if pattern found
4443  */
4444 tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] =
4445        "#define __LWP_RWLOCK_VALID[ \t]*0x8c91";
4447 #define    HPUX11_LWP_RWLOCK_VALID_TEST_CT  1
4448 static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = {
4449   { TT_EGREP,    zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, };
4452  *  Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid
4453  */
4454 static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = {
4455     "format",
4456     "#define __LWP_RWLOCK_VALID              -29551",
4457     (char*)NULL };
4459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4461  *  Description of Hpux11_Extern_Sendfile fix
4462  */
4463 tSCC zHpux11_Extern_SendfileName[] =
4464      "hpux11_extern_sendfile";
4467  *  File name selection pattern
4468  */
4469 tSCC zHpux11_Extern_SendfileList[] =
4470   "sys/socket.h\0";
4472  *  Machine/OS name selection pattern
4473  */
4474 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4475         "*-hp-hpux11.[12]*",
4476         (const char*)NULL };
4479  *  content selection pattern - do fix if pattern found
4480  */
4481 tSCC zHpux11_Extern_SendfileSelect0[] =
4482        "^[ \t]*extern sbsize_t sendfile.*\n\
4483 .*, int\\)\\);\n";
4485 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
4486 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4487   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4490  *  Fix Command Arguments for Hpux11_Extern_Sendfile
4491  */
4492 static const char* apzHpux11_Extern_SendfilePatch[] = {
4493     "format",
4494     "#ifndef _APP32_64BIT_OFF_T\n\
4495 %0#endif\n",
4496     (char*)NULL };
4498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4500  *  Description of Hpux11_Extern_Sendpath fix
4501  */
4502 tSCC zHpux11_Extern_SendpathName[] =
4503      "hpux11_extern_sendpath";
4506  *  File name selection pattern
4507  */
4508 tSCC zHpux11_Extern_SendpathList[] =
4509   "sys/socket.h\0";
4511  *  Machine/OS name selection pattern
4512  */
4513 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4514         "*-hp-hpux11.[12]*",
4515         (const char*)NULL };
4518  *  content selection pattern - do fix if pattern found
4519  */
4520 tSCC zHpux11_Extern_SendpathSelect0[] =
4521        "^[ \t]*extern sbsize_t sendpath.*\n\
4522 .*, int\\)\\);\n";
4524 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
4525 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4526   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4529  *  Fix Command Arguments for Hpux11_Extern_Sendpath
4530  */
4531 static const char* apzHpux11_Extern_SendpathPatch[] = {
4532     "format",
4533     "#ifndef _APP32_64BIT_OFF_T\n\
4534 %0#endif\n",
4535     (char*)NULL };
4537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4539  *  Description of Hpux11_Fabsf fix
4540  */
4541 tSCC zHpux11_FabsfName[] =
4542      "hpux11_fabsf";
4545  *  File name selection pattern
4546  */
4547 tSCC zHpux11_FabsfList[] =
4548   "math.h\0";
4550  *  Machine/OS name selection pattern
4551  */
4552 tSCC* apzHpux11_FabsfMachs[] = {
4553         "*-hp-hpux11*",
4554         (const char*)NULL };
4557  *  content selection pattern - do fix if pattern found
4558  */
4559 tSCC zHpux11_FabsfSelect0[] =
4560        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
4562 #define    HPUX11_FABSF_TEST_CT  1
4563 static tTestDesc aHpux11_FabsfTests[] = {
4564   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
4567  *  Fix Command Arguments for Hpux11_Fabsf
4568  */
4569 static const char* apzHpux11_FabsfPatch[] = {
4570     "format",
4571     "#ifndef __cplusplus\n\
4572 %0\n\
4573 #endif",
4574     (char*)NULL };
4576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4578  *  Description of Hpux11_Pthread_Pointer fix
4579  */
4580 tSCC zHpux11_Pthread_PointerName[] =
4581      "hpux11_pthread_pointer";
4584  *  File name selection pattern
4585  */
4586 tSCC zHpux11_Pthread_PointerList[] =
4587   "sys/pthread.h\0";
4589  *  Machine/OS name selection pattern
4590  */
4591 tSCC* apzHpux11_Pthread_PointerMachs[] = {
4592         "*-hp-hpux11.[0-3]*",
4593         (const char*)NULL };
4596  *  content selection pattern - do fix if pattern found
4597  */
4598 tSCC zHpux11_Pthread_PointerSelect0[] =
4599        "(void[ \t]*\\*)(m|c|rw)(_ptr)";
4601 #define    HPUX11_PTHREAD_POINTER_TEST_CT  1
4602 static tTestDesc aHpux11_Pthread_PointerTests[] = {
4603   { TT_EGREP,    zHpux11_Pthread_PointerSelect0, (regex_t*)NULL }, };
4606  *  Fix Command Arguments for Hpux11_Pthread_Pointer
4607  */
4608 static const char* apzHpux11_Pthread_PointerPatch[] = {
4609     "format",
4610     "long\t%2%3",
4611     (char*)NULL };
4613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4615  *  Description of Hpux11_Pthread_Const fix
4616  */
4617 tSCC zHpux11_Pthread_ConstName[] =
4618      "hpux11_pthread_const";
4621  *  File name selection pattern
4622  */
4623 tSCC zHpux11_Pthread_ConstList[] =
4624   "sys/pthread.h\0";
4626  *  Machine/OS name selection pattern
4627  */
4628 tSCC* apzHpux11_Pthread_ConstMachs[] = {
4629         "*-hp-hpux11.[0-3]*",
4630         (const char*)NULL };
4633  *  content selection pattern - do fix if pattern found
4634  */
4635 tSCC zHpux11_Pthread_ConstSelect0[] =
4636        "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))";
4638 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
4639 static tTestDesc aHpux11_Pthread_ConstTests[] = {
4640   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4643  *  Fix Command Arguments for Hpux11_Pthread_Const
4644  */
4645 static const char* apzHpux11_Pthread_ConstPatch[] = {
4646     "format",
4647     "%11",
4648     (char*)NULL };
4650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4652  *  Description of Hpux11_Size_T fix
4653  */
4654 tSCC zHpux11_Size_TName[] =
4655      "hpux11_size_t";
4658  *  File name selection pattern
4659  */
4660 #define zHpux11_Size_TList (char*)NULL
4662  *  Machine/OS name selection pattern
4663  */
4664 tSCC* apzHpux11_Size_TMachs[] = {
4665         "*-hp-hpux11*",
4666         (const char*)NULL };
4669  *  content selection pattern - do fix if pattern found
4670  */
4671 tSCC zHpux11_Size_TSelect0[] =
4672        "__size_t";
4674 #define    HPUX11_SIZE_T_TEST_CT  1
4675 static tTestDesc aHpux11_Size_TTests[] = {
4676   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
4679  *  Fix Command Arguments for Hpux11_Size_T
4680  */
4681 static const char* apzHpux11_Size_TPatch[] = {
4682     "format",
4683     "_hpux_size_t",
4684     (char*)NULL };
4686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4688  *  Description of Hpux11_Snprintf fix
4689  */
4690 tSCC zHpux11_SnprintfName[] =
4691      "hpux11_snprintf";
4694  *  File name selection pattern
4695  */
4696 tSCC zHpux11_SnprintfList[] =
4697   "stdio.h\0";
4699  *  Machine/OS name selection pattern
4700  */
4701 #define apzHpux11_SnprintfMachs (const char**)NULL
4704  *  content selection pattern - do fix if pattern found
4705  */
4706 tSCC zHpux11_SnprintfSelect0[] =
4707        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
4709 #define    HPUX11_SNPRINTF_TEST_CT  1
4710 static tTestDesc aHpux11_SnprintfTests[] = {
4711   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
4714  *  Fix Command Arguments for Hpux11_Snprintf
4715  */
4716 static const char* apzHpux11_SnprintfPatch[] = {
4717     "format",
4718     "%1 const %3",
4719     (char*)NULL };
4721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4723  *  Description of Hpux11_Vsnprintf fix
4724  */
4725 tSCC zHpux11_VsnprintfName[] =
4726      "hpux11_vsnprintf";
4729  *  File name selection pattern
4730  */
4731 tSCC zHpux11_VsnprintfList[] =
4732   "stdio.h\0";
4734  *  Machine/OS name selection pattern
4735  */
4736 #define apzHpux11_VsnprintfMachs (const char**)NULL
4739  *  content selection pattern - do fix if pattern found
4740  */
4741 tSCC zHpux11_VsnprintfSelect0[] =
4742        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
4744 #define    HPUX11_VSNPRINTF_TEST_CT  1
4745 static tTestDesc aHpux11_VsnprintfTests[] = {
4746   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
4749  *  Fix Command Arguments for Hpux11_Vsnprintf
4750  */
4751 static const char* apzHpux11_VsnprintfPatch[] = {
4752     "format",
4753     "%1 __va_list);",
4754     (char*)NULL };
4756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4758  *  Description of Hpux_Vsscanf fix
4759  */
4760 tSCC zHpux_VsscanfName[] =
4761      "hpux_vsscanf";
4764  *  File name selection pattern
4765  */
4766 tSCC zHpux_VsscanfList[] =
4767   "stdio.h\0";
4769  *  Machine/OS name selection pattern
4770  */
4771 tSCC* apzHpux_VsscanfMachs[] = {
4772         "*-*-hpux*",
4773         (const char*)NULL };
4776  *  content selection pattern - do fix if pattern found
4777  */
4778 tSCC zHpux_VsscanfSelect0[] =
4779        "(extern int vsscanf\\()char";
4781 #define    HPUX_VSSCANF_TEST_CT  1
4782 static tTestDesc aHpux_VsscanfTests[] = {
4783   { TT_EGREP,    zHpux_VsscanfSelect0, (regex_t*)NULL }, };
4786  *  Fix Command Arguments for Hpux_Vsscanf
4787  */
4788 static const char* apzHpux_VsscanfPatch[] = {
4789     "format",
4790     "%1const char",
4791     (char*)NULL };
4793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4795  *  Description of Hpux8_Bogus_Inlines fix
4796  */
4797 tSCC zHpux8_Bogus_InlinesName[] =
4798      "hpux8_bogus_inlines";
4801  *  File name selection pattern
4802  */
4803 tSCC zHpux8_Bogus_InlinesList[] =
4804   "math.h\0";
4806  *  Machine/OS name selection pattern
4807  */
4808 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
4811  *  content selection pattern - do fix if pattern found
4812  */
4813 tSCC zHpux8_Bogus_InlinesSelect0[] =
4814        "inline";
4817  *  content bypass pattern - skip fix if pattern found
4818  */
4819 tSCC zHpux8_Bogus_InlinesBypass0[] =
4820        "__GNUG__";
4822 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
4823 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
4824   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
4825   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
4828  *  Fix Command Arguments for Hpux8_Bogus_Inlines
4829  */
4830 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
4831     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
4832     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
4833     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
4834     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
4835     (char*)NULL };
4837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4839  *  Description of Hpux_C99_Intptr fix
4840  */
4841 tSCC zHpux_C99_IntptrName[] =
4842      "hpux_c99_intptr";
4845  *  File name selection pattern
4846  */
4847 tSCC zHpux_C99_IntptrList[] =
4848   "stdint-hpux11.h\0stdint.h\0";
4850  *  Machine/OS name selection pattern
4851  */
4852 tSCC* apzHpux_C99_IntptrMachs[] = {
4853         "*-hp-hpux11.3*",
4854         (const char*)NULL };
4855 #define HPUX_C99_INTPTR_TEST_CT  0
4856 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4859  *  Fix Command Arguments for Hpux_C99_Intptr
4860  */
4861 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4862     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4863     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4864     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4865     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4866     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4867     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4868     (char*)NULL };
4870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4872  *  Description of Hpux_C99_Inttypes fix
4873  */
4874 tSCC zHpux_C99_InttypesName[] =
4875      "hpux_c99_inttypes";
4878  *  File name selection pattern
4879  */
4880 tSCC zHpux_C99_InttypesList[] =
4881   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4883  *  Machine/OS name selection pattern
4884  */
4885 tSCC* apzHpux_C99_InttypesMachs[] = {
4886         "*-hp-hpux11.[23]*",
4887         (const char*)NULL };
4888 #define HPUX_C99_INTTYPES_TEST_CT  0
4889 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4892  *  Fix Command Arguments for Hpux_C99_Inttypes
4893  */
4894 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4895     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4896     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4897     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4898     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4899     (char*)NULL };
4901 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4903  *  Description of Hpux_C99_Inttypes2 fix
4904  */
4905 tSCC zHpux_C99_Inttypes2Name[] =
4906      "hpux_c99_inttypes2";
4909  *  File name selection pattern
4910  */
4911 tSCC zHpux_C99_Inttypes2List[] =
4912   "stdint-hpux11.h\0stdint.h\0";
4914  *  Machine/OS name selection pattern
4915  */
4916 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4917         "*-hp-hpux11.2*",
4918         (const char*)NULL };
4919 #define HPUX_C99_INTTYPES2_TEST_CT  0
4920 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4923  *  Fix Command Arguments for Hpux_C99_Inttypes2
4924  */
4925 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4926     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4927     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4928     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4929     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4930     (char*)NULL };
4932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4934  *  Description of Hpux_Ctype_Macros fix
4935  */
4936 tSCC zHpux_Ctype_MacrosName[] =
4937      "hpux_ctype_macros";
4940  *  File name selection pattern
4941  */
4942 tSCC zHpux_Ctype_MacrosList[] =
4943   "ctype.h\0";
4945  *  Machine/OS name selection pattern
4946  */
4947 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
4950  *  content selection pattern - do fix if pattern found
4951  */
4952 tSCC zHpux_Ctype_MacrosSelect0[] =
4953        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
4955 #define    HPUX_CTYPE_MACROS_TEST_CT  1
4956 static tTestDesc aHpux_Ctype_MacrosTests[] = {
4957   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
4960  *  Fix Command Arguments for Hpux_Ctype_Macros
4961  */
4962 static const char* apzHpux_Ctype_MacrosPatch[] = {
4963     "format",
4964     "%1(int)%3",
4965     (char*)NULL };
4967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4969  *  Description of Hpux_Extern_Errno fix
4970  */
4971 tSCC zHpux_Extern_ErrnoName[] =
4972      "hpux_extern_errno";
4975  *  File name selection pattern
4976  */
4977 tSCC zHpux_Extern_ErrnoList[] =
4978   "errno.h\0";
4980  *  Machine/OS name selection pattern
4981  */
4982 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4983         "*-hp-hpux10.*",
4984         "*-hp-hpux11.[0-2]*",
4985         (const char*)NULL };
4988  *  content selection pattern - do fix if pattern found
4989  */
4990 tSCC zHpux_Extern_ErrnoSelect0[] =
4991        "^[ \t]*extern int errno;$";
4993 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
4994 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4995   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4998  *  Fix Command Arguments for Hpux_Extern_Errno
4999  */
5000 static const char* apzHpux_Extern_ErrnoPatch[] = {
5001     "format",
5002     "#ifdef __cplusplus\n\
5003 extern \"C\" {\n\
5004 #endif\n\
5005 %0\n\
5006 #ifdef __cplusplus\n\
5007 }\n\
5008 #endif",
5009     (char*)NULL };
5011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5013  *  Description of Hpux_Htonl fix
5014  */
5015 tSCC zHpux_HtonlName[] =
5016      "hpux_htonl";
5019  *  File name selection pattern
5020  */
5021 tSCC zHpux_HtonlList[] =
5022   "netinet/in.h\0";
5024  *  Machine/OS name selection pattern
5025  */
5026 #define apzHpux_HtonlMachs (const char**)NULL
5029  *  content selection pattern - do fix if pattern found
5030  */
5031 tSCC zHpux_HtonlSelect0[] =
5032        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
5033 (/\\*\n\
5034  \\* Macros for number representation conversion\\.\n\
5035  \\*/\n\
5036 #ifndef ntohl)";
5038 #define    HPUX_HTONL_TEST_CT  1
5039 static tTestDesc aHpux_HtonlTests[] = {
5040   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
5043  *  Fix Command Arguments for Hpux_Htonl
5044  */
5045 static const char* apzHpux_HtonlPatch[] = {
5046     "format",
5047     "#if 1\n\
5048 %1",
5049     (char*)NULL };
5051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5053  *  Description of Hpux_Imaginary_I fix
5054  */
5055 tSCC zHpux_Imaginary_IName[] =
5056      "hpux_imaginary_i";
5059  *  File name selection pattern
5060  */
5061 tSCC zHpux_Imaginary_IList[] =
5062   "complex.h\0";
5064  *  Machine/OS name selection pattern
5065  */
5066 tSCC* apzHpux_Imaginary_IMachs[] = {
5067         "ia64-hp-hpux11.*",
5068         (const char*)NULL };
5071  *  content selection pattern - do fix if pattern found
5072  */
5073 tSCC zHpux_Imaginary_ISelect0[] =
5074        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
5076 #define    HPUX_IMAGINARY_I_TEST_CT  1
5077 static tTestDesc aHpux_Imaginary_ITests[] = {
5078   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
5081  *  Fix Command Arguments for Hpux_Imaginary_I
5082  */
5083 static const char* apzHpux_Imaginary_IPatch[] = {
5084     "format",
5085     "#define _Complex_I (__extension__ 1.0iF)",
5086     (char*)NULL };
5088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5090  *  Description of Hpux_Inttype_Int8_T fix
5091  */
5092 tSCC zHpux_Inttype_Int8_TName[] =
5093      "hpux_inttype_int8_t";
5096  *  File name selection pattern
5097  */
5098 tSCC zHpux_Inttype_Int8_TList[] =
5099   "sys/_inttypes.h\0";
5101  *  Machine/OS name selection pattern
5102  */
5103 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
5104         "*-hp-hpux1[01].*",
5105         (const char*)NULL };
5108  *  content selection pattern - do fix if pattern found
5109  */
5110 tSCC zHpux_Inttype_Int8_TSelect0[] =
5111        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
5113 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
5114 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
5115   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
5118  *  Fix Command Arguments for Hpux_Inttype_Int8_T
5119  */
5120 static const char* apzHpux_Inttype_Int8_TPatch[] = {
5121     "format",
5122     "typedef signed char int%18_t;",
5123     (char*)NULL };
5125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5127  *  Description of Hpux_Long_Double fix
5128  */
5129 tSCC zHpux_Long_DoubleName[] =
5130      "hpux_long_double";
5133  *  File name selection pattern
5134  */
5135 tSCC zHpux_Long_DoubleList[] =
5136   "stdlib.h\0";
5138  *  Machine/OS name selection pattern
5139  */
5140 tSCC* apzHpux_Long_DoubleMachs[] = {
5141         "*-*-hpux10*",
5142         "*-*-hpux11.[012]*",
5143         (const char*)NULL };
5146  *  content selection pattern - do fix if pattern found
5147  */
5148 tSCC zHpux_Long_DoubleSelect0[] =
5149        "extern[ \t]long_double[ \t]strtold";
5152  *  content bypass pattern - skip fix if pattern found
5153  */
5154 tSCC zHpux_Long_DoubleBypass0[] =
5155        "long_double_t";
5157 #define    HPUX_LONG_DOUBLE_TEST_CT  2
5158 static tTestDesc aHpux_Long_DoubleTests[] = {
5159   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
5160   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
5163  *  Fix Command Arguments for Hpux_Long_Double
5164  */
5165 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
5166     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
5167     "-e", "s/long_double/long double/g",
5168     (char*)NULL };
5170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5172  *  Description of Hpux_Long_Double_2 fix
5173  */
5174 tSCC zHpux_Long_Double_2Name[] =
5175      "hpux_long_double_2";
5178  *  File name selection pattern
5179  */
5180 tSCC zHpux_Long_Double_2List[] =
5181   "stdlib.h\0";
5183  *  Machine/OS name selection pattern
5184  */
5185 tSCC* apzHpux_Long_Double_2Machs[] = {
5186         "hppa*-*-hpux11.3*",
5187         (const char*)NULL };
5190  *  content selection pattern - do fix if pattern found
5191  */
5192 tSCC zHpux_Long_Double_2Select0[] =
5193        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
5195 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
5196 static tTestDesc aHpux_Long_Double_2Tests[] = {
5197   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
5200  *  Fix Command Arguments for Hpux_Long_Double_2
5201  */
5202 static const char* apzHpux_Long_Double_2Patch[] = {
5203     "format",
5204     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
5205     (char*)NULL };
5207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5209  *  Description of Hpux_Pthread_Initializers fix
5210  */
5211 tSCC zHpux_Pthread_InitializersName[] =
5212      "hpux_pthread_initializers";
5215  *  File name selection pattern
5216  */
5217 tSCC zHpux_Pthread_InitializersList[] =
5218   "sys/pthread.h\0";
5220  *  Machine/OS name selection pattern
5221  */
5222 tSCC* apzHpux_Pthread_InitializersMachs[] = {
5223         "*-hp-hpux11.[0-3]*",
5224         (const char*)NULL };
5225 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
5226 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
5229  *  Fix Command Arguments for Hpux_Pthread_Initializers
5230  */
5231 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
5232     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
5233     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
5234     "-e", "/^[ \t]*0$/d",
5235     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
5236     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
5237     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
5238     "-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\\\\@",
5239     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
5240     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
5241     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
5242     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
5243     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
5244     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
5245     (char*)NULL };
5247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5249  *  Description of Hpux_Spu_Info fix
5250  */
5251 tSCC zHpux_Spu_InfoName[] =
5252      "hpux_spu_info";
5255  *  File name selection pattern
5256  */
5257 tSCC zHpux_Spu_InfoList[] =
5258   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
5260  *  Machine/OS name selection pattern
5261  */
5262 tSCC* apzHpux_Spu_InfoMachs[] = {
5263         "*-hp-hpux*",
5264         (const char*)NULL };
5267  *  content selection pattern - do fix if pattern found
5268  */
5269 tSCC zHpux_Spu_InfoSelect0[] =
5270        "^.*extern.*spu_info.*";
5272 #define    HPUX_SPU_INFO_TEST_CT  1
5273 static tTestDesc aHpux_Spu_InfoTests[] = {
5274   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
5277  *  Fix Command Arguments for Hpux_Spu_Info
5278  */
5279 static const char* apzHpux_Spu_InfoPatch[] = {
5280     "format",
5281     "#ifdef _KERNEL\n\
5282 %0\n\
5283 #endif",
5284     (char*)NULL };
5286 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5288  *  Description of Hpux_Stdint_Least_Fast fix
5289  */
5290 tSCC zHpux_Stdint_Least_FastName[] =
5291      "hpux_stdint_least_fast";
5294  *  File name selection pattern
5295  */
5296 tSCC zHpux_Stdint_Least_FastList[] =
5297   "stdint-hpux11.h\0stdint.h\0";
5299  *  Machine/OS name selection pattern
5300  */
5301 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
5302         "*-hp-hpux11.2*",
5303         (const char*)NULL };
5306  *  content selection pattern - do fix if pattern found
5307  */
5308 tSCC zHpux_Stdint_Least_FastSelect0[] =
5309        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
5311 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
5312 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
5313   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
5316  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
5317  */
5318 static const char* apzHpux_Stdint_Least_FastPatch[] = {
5319     "format",
5320     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
5321     (char*)NULL };
5323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5325  *  Description of Hpux_Longjmp fix
5326  */
5327 tSCC zHpux_LongjmpName[] =
5328      "hpux_longjmp";
5331  *  File name selection pattern
5332  */
5333 tSCC zHpux_LongjmpList[] =
5334   "setjmp.h\0";
5336  *  Machine/OS name selection pattern
5337  */
5338 tSCC* apzHpux_LongjmpMachs[] = {
5339         "*-hp-hpux*",
5340         (const char*)NULL };
5343  *  content selection pattern - do fix if pattern found
5344  */
5345 tSCC zHpux_LongjmpSelect0[] =
5346        "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))";
5348 #define    HPUX_LONGJMP_TEST_CT  1
5349 static tTestDesc aHpux_LongjmpTests[] = {
5350   { TT_EGREP,    zHpux_LongjmpSelect0, (regex_t*)NULL }, };
5353  *  Fix Command Arguments for Hpux_Longjmp
5354  */
5355 static const char* apzHpux_LongjmpPatch[] = {
5356     "format",
5357     "%0 __attribute__ ((__noreturn__))",
5358     (char*)NULL };
5360 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5362  *  Description of Hpux_Systime fix
5363  */
5364 tSCC zHpux_SystimeName[] =
5365      "hpux_systime";
5368  *  File name selection pattern
5369  */
5370 tSCC zHpux_SystimeList[] =
5371   "sys/time.h\0";
5373  *  Machine/OS name selection pattern
5374  */
5375 #define apzHpux_SystimeMachs (const char**)NULL
5378  *  content selection pattern - do fix if pattern found
5379  */
5380 tSCC zHpux_SystimeSelect0[] =
5381        "^extern struct sigevent;";
5383 #define    HPUX_SYSTIME_TEST_CT  1
5384 static tTestDesc aHpux_SystimeTests[] = {
5385   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
5388  *  Fix Command Arguments for Hpux_Systime
5389  */
5390 static const char* apzHpux_SystimePatch[] = {
5391     "format",
5392     "struct sigevent;",
5393     (char*)NULL };
5395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5397  *  Description of Huge_Val_Hex fix
5398  */
5399 tSCC zHuge_Val_HexName[] =
5400      "huge_val_hex";
5403  *  File name selection pattern
5404  */
5405 tSCC zHuge_Val_HexList[] =
5406   "bits/huge_val.h\0*/bits/huge_val.h\0";
5408  *  Machine/OS name selection pattern
5409  */
5410 #define apzHuge_Val_HexMachs (const char**)NULL
5413  *  content selection pattern - do fix if pattern found
5414  */
5415 tSCC zHuge_Val_HexSelect0[] =
5416        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
5419  *  content bypass pattern - skip fix if pattern found
5420  */
5421 tSCC zHuge_Val_HexBypass0[] =
5422        "__builtin_huge_val";
5424 #define    HUGE_VAL_HEX_TEST_CT  2
5425 static tTestDesc aHuge_Val_HexTests[] = {
5426   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
5427   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
5430  *  Fix Command Arguments for Huge_Val_Hex
5431  */
5432 static const char* apzHuge_Val_HexPatch[] = {
5433     "format",
5434     "#define HUGE_VAL (__builtin_huge_val())\n",
5435     (char*)NULL };
5437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5439  *  Description of Huge_Valf_Hex fix
5440  */
5441 tSCC zHuge_Valf_HexName[] =
5442      "huge_valf_hex";
5445  *  File name selection pattern
5446  */
5447 tSCC zHuge_Valf_HexList[] =
5448   "bits/huge_val.h\0*/bits/huge_val.h\0";
5450  *  Machine/OS name selection pattern
5451  */
5452 #define apzHuge_Valf_HexMachs (const char**)NULL
5455  *  content selection pattern - do fix if pattern found
5456  */
5457 tSCC zHuge_Valf_HexSelect0[] =
5458        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
5461  *  content bypass pattern - skip fix if pattern found
5462  */
5463 tSCC zHuge_Valf_HexBypass0[] =
5464        "__builtin_huge_valf";
5466 #define    HUGE_VALF_HEX_TEST_CT  2
5467 static tTestDesc aHuge_Valf_HexTests[] = {
5468   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
5469   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
5472  *  Fix Command Arguments for Huge_Valf_Hex
5473  */
5474 static const char* apzHuge_Valf_HexPatch[] = {
5475     "format",
5476     "#define HUGE_VALF (__builtin_huge_valf())\n",
5477     (char*)NULL };
5479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5481  *  Description of Huge_Vall_Hex fix
5482  */
5483 tSCC zHuge_Vall_HexName[] =
5484      "huge_vall_hex";
5487  *  File name selection pattern
5488  */
5489 tSCC zHuge_Vall_HexList[] =
5490   "bits/huge_val.h\0*/bits/huge_val.h\0";
5492  *  Machine/OS name selection pattern
5493  */
5494 #define apzHuge_Vall_HexMachs (const char**)NULL
5497  *  content selection pattern - do fix if pattern found
5498  */
5499 tSCC zHuge_Vall_HexSelect0[] =
5500        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
5503  *  content bypass pattern - skip fix if pattern found
5504  */
5505 tSCC zHuge_Vall_HexBypass0[] =
5506        "__builtin_huge_vall";
5508 #define    HUGE_VALL_HEX_TEST_CT  2
5509 static tTestDesc aHuge_Vall_HexTests[] = {
5510   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
5511   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
5514  *  Fix Command Arguments for Huge_Vall_Hex
5515  */
5516 static const char* apzHuge_Vall_HexPatch[] = {
5517     "format",
5518     "#define HUGE_VALL (__builtin_huge_vall())\n",
5519     (char*)NULL };
5521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5523  *  Description of Int_Abort_Free_And_Exit fix
5524  */
5525 tSCC zInt_Abort_Free_And_ExitName[] =
5526      "int_abort_free_and_exit";
5529  *  File name selection pattern
5530  */
5531 tSCC zInt_Abort_Free_And_ExitList[] =
5532   "stdlib.h\0";
5534  *  Machine/OS name selection pattern
5535  */
5536 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
5539  *  content selection pattern - do fix if pattern found
5540  */
5541 tSCC zInt_Abort_Free_And_ExitSelect0[] =
5542        "int[ \t]+(abort|free|exit)[ \t]*\\(";
5545  *  content bypass pattern - skip fix if pattern found
5546  */
5547 tSCC zInt_Abort_Free_And_ExitBypass0[] =
5548        "_CLASSIC_ANSI_TYPES";
5550 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
5551 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
5552   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
5553   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
5556  *  Fix Command Arguments for Int_Abort_Free_And_Exit
5557  */
5558 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
5559     "format",
5560     "void\t%1(",
5561     (char*)NULL };
5563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5565  *  Description of Io_Quotes_Def fix
5566  */
5567 tSCC zIo_Quotes_DefName[] =
5568      "io_quotes_def";
5571  *  File name selection pattern
5572  */
5573 #define zIo_Quotes_DefList (char*)NULL
5575  *  Machine/OS name selection pattern
5576  */
5577 #define apzIo_Quotes_DefMachs (const char**)NULL
5580  *  content selection pattern - do fix if pattern found
5581  */
5582 tSCC zIo_Quotes_DefSelect0[] =
5583        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
5585 #define    IO_QUOTES_DEF_TEST_CT  1
5586 static tTestDesc aIo_Quotes_DefTests[] = {
5587   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
5590  *  Fix Command Arguments for Io_Quotes_Def
5591  */
5592 static const char* apzIo_Quotes_DefPatch[] = {
5593     "char_macro_def",
5594     "IO",
5595     (char*)NULL };
5597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5599  *  Description of Io_Quotes_Use fix
5600  */
5601 tSCC zIo_Quotes_UseName[] =
5602      "io_quotes_use";
5605  *  File name selection pattern
5606  */
5607 #define zIo_Quotes_UseList (char*)NULL
5609  *  Machine/OS name selection pattern
5610  */
5611 #define apzIo_Quotes_UseMachs (const char**)NULL
5614  *  content selection pattern - do fix if pattern found
5615  */
5616 tSCC zIo_Quotes_UseSelect0[] =
5617        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
5619 #define    IO_QUOTES_USE_TEST_CT  1
5620 static tTestDesc aIo_Quotes_UseTests[] = {
5621   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
5624  *  Fix Command Arguments for Io_Quotes_Use
5625  */
5626 static const char* apzIo_Quotes_UsePatch[] = {
5627     "char_macro_use",
5628     "IO",
5629     (char*)NULL };
5631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5633  *  Description of Ip_Missing_Semi fix
5634  */
5635 tSCC zIp_Missing_SemiName[] =
5636      "ip_missing_semi";
5639  *  File name selection pattern
5640  */
5641 tSCC zIp_Missing_SemiList[] =
5642   "netinet/ip.h\0";
5644  *  Machine/OS name selection pattern
5645  */
5646 #define apzIp_Missing_SemiMachs (const char**)NULL
5649  *  content selection pattern - do fix if pattern found
5650  */
5651 tSCC zIp_Missing_SemiSelect0[] =
5652        "}$";
5654 #define    IP_MISSING_SEMI_TEST_CT  1
5655 static tTestDesc aIp_Missing_SemiTests[] = {
5656   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
5659  *  Fix Command Arguments for Ip_Missing_Semi
5660  */
5661 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
5662     "-e", "/^struct/,/^};/s/}$/};/",
5663     (char*)NULL };
5665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5667  *  Description of Irix_Limits_Const fix
5668  */
5669 tSCC zIrix_Limits_ConstName[] =
5670      "irix_limits_const";
5673  *  File name selection pattern
5674  */
5675 tSCC zIrix_Limits_ConstList[] =
5676   "fixinc-test-limits.h\0limits.h\0";
5678  *  Machine/OS name selection pattern
5679  */
5680 #define apzIrix_Limits_ConstMachs (const char**)NULL
5683  *  content selection pattern - do fix if pattern found
5684  */
5685 tSCC zIrix_Limits_ConstSelect0[] =
5686        "^extern const ";
5688 #define    IRIX_LIMITS_CONST_TEST_CT  1
5689 static tTestDesc aIrix_Limits_ConstTests[] = {
5690   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
5693  *  Fix Command Arguments for Irix_Limits_Const
5694  */
5695 static const char* apzIrix_Limits_ConstPatch[] = {
5696     "format",
5697     "extern __const ",
5698     (char*)NULL };
5700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5702  *  Description of Irix_Stdio_Va_List fix
5703  */
5704 tSCC zIrix_Stdio_Va_ListName[] =
5705      "irix_stdio_va_list";
5708  *  File name selection pattern
5709  */
5710 tSCC zIrix_Stdio_Va_ListList[] =
5711   "stdio.h\0";
5713  *  Machine/OS name selection pattern
5714  */
5715 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
5718  *  content selection pattern - do fix if pattern found
5719  */
5720 tSCC zIrix_Stdio_Va_ListSelect0[] =
5721        "/\\* va_list \\*/ char \\*";
5723 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
5724 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5725   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5728  *  Fix Command Arguments for Irix_Stdio_Va_List
5729  */
5730 static const char* apzIrix_Stdio_Va_ListPatch[] = {
5731     "format",
5732     "__gnuc_va_list",
5733     (char*)NULL };
5735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5737  *  Description of Kandr_Concat fix
5738  */
5739 tSCC zKandr_ConcatName[] =
5740      "kandr_concat";
5743  *  File name selection pattern
5744  */
5745 tSCC zKandr_ConcatList[] =
5746   "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";
5748  *  Machine/OS name selection pattern
5749  */
5750 #define apzKandr_ConcatMachs (const char**)NULL
5753  *  content selection pattern - do fix if pattern found
5754  */
5755 tSCC zKandr_ConcatSelect0[] =
5756        "/\\*\\*/";
5758 #define    KANDR_CONCAT_TEST_CT  1
5759 static tTestDesc aKandr_ConcatTests[] = {
5760   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
5763  *  Fix Command Arguments for Kandr_Concat
5764  */
5765 static const char* apzKandr_ConcatPatch[] = {
5766     "format",
5767     "##",
5768     (char*)NULL };
5770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5772  *  Description of Linux_Ia64_Ucontext fix
5773  */
5774 tSCC zLinux_Ia64_UcontextName[] =
5775      "linux_ia64_ucontext";
5778  *  File name selection pattern
5779  */
5780 tSCC zLinux_Ia64_UcontextList[] =
5781   "sys/ucontext.h\0";
5783  *  Machine/OS name selection pattern
5784  */
5785 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5786         "ia64-*-linux*",
5787         (const char*)NULL };
5790  *  content selection pattern - do fix if pattern found
5791  */
5792 tSCC zLinux_Ia64_UcontextSelect0[] =
5793        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5795 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
5796 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5797   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5800  *  Fix Command Arguments for Linux_Ia64_Ucontext
5801  */
5802 static const char* apzLinux_Ia64_UcontextPatch[] = {
5803     "format",
5804     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5805     (char*)NULL };
5807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5809  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
5810  */
5811 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5812      "lynxos_no_warning_in_sys_time_h";
5815  *  File name selection pattern
5816  */
5817 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5818   "sys/time.h\0";
5820  *  Machine/OS name selection pattern
5821  */
5822 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5825  *  content selection pattern - do fix if pattern found
5826  */
5827 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5828        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5830 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
5831 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5832   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5835  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5836  */
5837 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5838     "format",
5839     "",
5840     (char*)NULL };
5842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5844  *  Description of Lynxos_Missing_Putenv fix
5845  */
5846 tSCC zLynxos_Missing_PutenvName[] =
5847      "lynxos_missing_putenv";
5850  *  File name selection pattern
5851  */
5852 tSCC zLynxos_Missing_PutenvList[] =
5853   "stdlib.h\0";
5855  *  Machine/OS name selection pattern
5856  */
5857 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5858         "*-*-lynxos*",
5859         (const char*)NULL };
5862  *  content selection pattern - do fix if pattern found
5863  */
5864 tSCC zLynxos_Missing_PutenvSelect0[] =
5865        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5868  *  content bypass pattern - skip fix if pattern found
5869  */
5870 tSCC zLynxos_Missing_PutenvBypass0[] =
5871        "putenv[ \\t]*\\(";
5873 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
5874 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5875   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5876   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5879  *  Fix Command Arguments for Lynxos_Missing_Putenv
5880  */
5881 static const char* apzLynxos_Missing_PutenvPatch[] = {
5882     "format",
5883     "%0\n\
5884 extern int putenv\t\t\t\t_AP((char *));",
5885     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5886     (char*)NULL };
5888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5890  *  Description of Machine_Ansi_H_Va_List fix
5891  */
5892 tSCC zMachine_Ansi_H_Va_ListName[] =
5893      "machine_ansi_h_va_list";
5896  *  File name selection pattern
5897  */
5898 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5900  *  Machine/OS name selection pattern
5901  */
5902 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5905  *  content selection pattern - do fix if pattern found
5906  */
5907 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5908        "define[ \t]+_BSD_VA_LIST_[ \t]";
5911  *  content bypass pattern - skip fix if pattern found
5912  */
5913 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5914        "__builtin_va_list";
5916 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5917 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5918   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5919   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5922  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5923  */
5924 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5925     "format",
5926     "%1__builtin_va_list",
5927     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5928     (char*)NULL };
5930 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5932  *  Description of Machine_Name fix
5933  */
5934 tSCC zMachine_NameName[] =
5935      "machine_name";
5938  *  File name selection pattern
5939  */
5940 #define zMachine_NameList (char*)NULL
5942  *  Machine/OS name selection pattern
5943  */
5944 #define apzMachine_NameMachs (const char**)NULL
5947  *  perform the C function call test
5948  */
5949 tSCC zMachine_NameFTst0[] = "machine_name";
5951 #define    MACHINE_NAME_TEST_CT  1
5952 static tTestDesc aMachine_NameTests[] = {
5953   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5956  *  Fix Command Arguments for Machine_Name
5957  */
5958 static const char* apzMachine_NamePatch[] = {
5959     "machine_name",
5960     (char*)NULL };
5962 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5964  *  Description of Math_Exception fix
5965  */
5966 tSCC zMath_ExceptionName[] =
5967      "math_exception";
5970  *  File name selection pattern
5971  */
5972 tSCC zMath_ExceptionList[] =
5973   "math.h\0";
5975  *  Machine/OS name selection pattern
5976  */
5977 tSCC* apzMath_ExceptionMachs[] = {
5978         "*-*-solaris2.1[0-9]*",
5979         (const char*)NULL };
5982  *  content selection pattern - do fix if pattern found
5983  */
5984 tSCC zMath_ExceptionSelect0[] =
5985        "struct exception";
5988  *  content bypass pattern - skip fix if pattern found
5989  */
5990 tSCC zMath_ExceptionBypass0[] =
5991        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5993 #define    MATH_EXCEPTION_TEST_CT  2
5994 static tTestDesc aMath_ExceptionTests[] = {
5995   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5996   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5999  *  Fix Command Arguments for Math_Exception
6000  */
6001 static const char* apzMath_ExceptionPatch[] = {
6002     "wrap",
6003     "#ifdef __cplusplus\n\
6004 #define exception __math_exception\n\
6005 #endif\n",
6006     "#ifdef __cplusplus\n\
6007 #undef exception\n\
6008 #endif\n",
6009     (char*)NULL };
6011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6013  *  Description of Math_Huge_Val_From_Dbl_Max fix
6014  */
6015 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
6016      "math_huge_val_from_dbl_max";
6019  *  File name selection pattern
6020  */
6021 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
6022   "math.h\0";
6024  *  Machine/OS name selection pattern
6025  */
6026 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
6029  *  content selection pattern - do fix if pattern found
6030  */
6031 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
6032        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
6035  *  content bypass pattern - skip fix if pattern found
6036  */
6037 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
6038        "define[ \t]+DBL_MAX";
6040 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
6041 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
6042   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
6043   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
6046  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
6047  */
6048 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
6049     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
6050 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
6051 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
6052 \telse cat\n\
6053 \tfi",
6054     (char*)NULL };
6056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6058  *  Description of Nested_Auth_Des fix
6059  */
6060 tSCC zNested_Auth_DesName[] =
6061      "nested_auth_des";
6064  *  File name selection pattern
6065  */
6066 tSCC zNested_Auth_DesList[] =
6067   "rpc/rpc.h\0";
6069  *  Machine/OS name selection pattern
6070  */
6071 #define apzNested_Auth_DesMachs (const char**)NULL
6074  *  content selection pattern - do fix if pattern found
6075  */
6076 tSCC zNested_Auth_DesSelect0[] =
6077        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
6079 #define    NESTED_AUTH_DES_TEST_CT  1
6080 static tTestDesc aNested_Auth_DesTests[] = {
6081   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
6084  *  Fix Command Arguments for Nested_Auth_Des
6085  */
6086 static const char* apzNested_Auth_DesPatch[] = {
6087     "format",
6088     "%1*/ /*",
6089     (char*)NULL };
6091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6093  *  Description of Netbsd_C99_Inline_1 fix
6094  */
6095 tSCC zNetbsd_C99_Inline_1Name[] =
6096      "netbsd_c99_inline_1";
6099  *  File name selection pattern
6100  */
6101 tSCC zNetbsd_C99_Inline_1List[] =
6102   "signal.h\0";
6104  *  Machine/OS name selection pattern
6105  */
6106 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
6107         "*-*-netbsd*",
6108         (const char*)NULL };
6111  *  content selection pattern - do fix if pattern found
6112  */
6113 tSCC zNetbsd_C99_Inline_1Select0[] =
6114        "extern __inline int";
6116 #define    NETBSD_C99_INLINE_1_TEST_CT  1
6117 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
6118   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
6121  *  Fix Command Arguments for Netbsd_C99_Inline_1
6122  */
6123 static const char* apzNetbsd_C99_Inline_1Patch[] = {
6124     "format",
6125     "extern\n\
6126 #ifdef __GNUC_STDC_INLINE__\n\
6127 __attribute__((__gnu_inline__))\n\
6128 #endif\n\
6129 __inline int",
6130     (char*)NULL };
6132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6134  *  Description of Netbsd_C99_Inline_2 fix
6135  */
6136 tSCC zNetbsd_C99_Inline_2Name[] =
6137      "netbsd_c99_inline_2";
6140  *  File name selection pattern
6141  */
6142 tSCC zNetbsd_C99_Inline_2List[] =
6143   "signal.h\0";
6145  *  Machine/OS name selection pattern
6146  */
6147 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
6148         "*-*-netbsd*",
6149         (const char*)NULL };
6152  *  content selection pattern - do fix if pattern found
6153  */
6154 tSCC zNetbsd_C99_Inline_2Select0[] =
6155        "#define _SIGINLINE extern __inline";
6157 #define    NETBSD_C99_INLINE_2_TEST_CT  1
6158 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
6159   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
6162  *  Fix Command Arguments for Netbsd_C99_Inline_2
6163  */
6164 static const char* apzNetbsd_C99_Inline_2Patch[] = {
6165     "format",
6166     "#ifdef __GNUC_STDC_INLINE__\n\
6167 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
6168 #else\n\
6169 %0\n\
6170 #endif",
6171     (char*)NULL };
6173 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6175  *  Description of Netbsd_Extra_Semicolon fix
6176  */
6177 tSCC zNetbsd_Extra_SemicolonName[] =
6178      "netbsd_extra_semicolon";
6181  *  File name selection pattern
6182  */
6183 tSCC zNetbsd_Extra_SemicolonList[] =
6184   "sys/cdefs.h\0";
6186  *  Machine/OS name selection pattern
6187  */
6188 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
6189         "*-*-netbsd*",
6190         (const char*)NULL };
6193  *  content selection pattern - do fix if pattern found
6194  */
6195 tSCC zNetbsd_Extra_SemicolonSelect0[] =
6196        "#define[ \t]*__END_DECLS[ \t]*};";
6198 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
6199 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
6200   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
6203  *  Fix Command Arguments for Netbsd_Extra_Semicolon
6204  */
6205 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
6206     "format",
6207     "#define __END_DECLS }",
6208     (char*)NULL };
6210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6212  *  Description of Newlib_Stdint_1 fix
6213  */
6214 tSCC zNewlib_Stdint_1Name[] =
6215      "newlib_stdint_1";
6218  *  File name selection pattern
6219  */
6220 tSCC zNewlib_Stdint_1List[] =
6221   "stdint-newlib.h\0stdint.h\0";
6223  *  Machine/OS name selection pattern
6224  */
6225 #define apzNewlib_Stdint_1Machs (const char**)NULL
6228  *  content selection pattern - do fix if pattern found
6229  */
6230 tSCC zNewlib_Stdint_1Select0[] =
6231        "@todo - Add support for wint_t types";
6233 #define    NEWLIB_STDINT_1_TEST_CT  1
6234 static tTestDesc aNewlib_Stdint_1Tests[] = {
6235   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
6238  *  Fix Command Arguments for Newlib_Stdint_1
6239  */
6240 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
6241     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
6242     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
6243     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
6244     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
6245     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
6246     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
6247     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
6248     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
6249     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
6250     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
6251     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
6252     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
6253     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
6254     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
6255     (char*)NULL };
6257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6259  *  Description of Newlib_Stdint_2 fix
6260  */
6261 tSCC zNewlib_Stdint_2Name[] =
6262      "newlib_stdint_2";
6265  *  File name selection pattern
6266  */
6267 tSCC zNewlib_Stdint_2List[] =
6268   "stdint-newlib.h\0stdint.h\0";
6270  *  Machine/OS name selection pattern
6271  */
6272 #define apzNewlib_Stdint_2Machs (const char**)NULL
6275  *  content selection pattern - do fix if pattern found
6276  */
6277 tSCC zNewlib_Stdint_2Select0[] =
6278        "@todo - Add support for wint_t types";
6280 #define    NEWLIB_STDINT_2_TEST_CT  1
6281 static tTestDesc aNewlib_Stdint_2Tests[] = {
6282   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
6285  *  Fix Command Arguments for Newlib_Stdint_2
6286  */
6287 static const char* apzNewlib_Stdint_2Patch[] = {
6288     "format",
6289     "#define INTMAX_MAX __INTMAX_MAX__\n\
6290 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
6291 #define UINTMAX_MAX __UINTMAX_MAX__\n\
6292 #define WCHAR_MAX __WCHAR_MAX__\n\
6293 #define WCHAR_MIN __WCHAR_MIN__\n\
6294 #define WINT_MAX __WINT_MAX__\n\
6295 #define WINT_MIN __WINT_MIN__\n\n\
6296 %0",
6297     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
6298     (char*)NULL };
6300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6302  *  Description of Next_Math_Prefix fix
6303  */
6304 tSCC zNext_Math_PrefixName[] =
6305      "next_math_prefix";
6308  *  File name selection pattern
6309  */
6310 tSCC zNext_Math_PrefixList[] =
6311   "ansi/math.h\0";
6313  *  Machine/OS name selection pattern
6314  */
6315 #define apzNext_Math_PrefixMachs (const char**)NULL
6318  *  content selection pattern - do fix if pattern found
6319  */
6320 tSCC zNext_Math_PrefixSelect0[] =
6321        "^extern[ \t]+double[ \t]+__const__[ \t]";
6323 #define    NEXT_MATH_PREFIX_TEST_CT  1
6324 static tTestDesc aNext_Math_PrefixTests[] = {
6325   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
6328  *  Fix Command Arguments for Next_Math_Prefix
6329  */
6330 static const char* apzNext_Math_PrefixPatch[] = {
6331     "format",
6332     "extern double %1(",
6333     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
6334     (char*)NULL };
6336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6338  *  Description of Next_Template fix
6339  */
6340 tSCC zNext_TemplateName[] =
6341      "next_template";
6344  *  File name selection pattern
6345  */
6346 tSCC zNext_TemplateList[] =
6347   "bsd/libc.h\0";
6349  *  Machine/OS name selection pattern
6350  */
6351 #define apzNext_TemplateMachs (const char**)NULL
6354  *  content selection pattern - do fix if pattern found
6355  */
6356 tSCC zNext_TemplateSelect0[] =
6357        "[ \t]template\\)";
6359 #define    NEXT_TEMPLATE_TEST_CT  1
6360 static tTestDesc aNext_TemplateTests[] = {
6361   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
6364  *  Fix Command Arguments for Next_Template
6365  */
6366 static const char* apzNext_TemplatePatch[] = {
6367     "format",
6368     "(%1)",
6369     "\\(([^)]*)[ \t]template\\)",
6370     (char*)NULL };
6372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6374  *  Description of Next_Volitile fix
6375  */
6376 tSCC zNext_VolitileName[] =
6377      "next_volitile";
6380  *  File name selection pattern
6381  */
6382 tSCC zNext_VolitileList[] =
6383   "ansi/stdlib.h\0";
6385  *  Machine/OS name selection pattern
6386  */
6387 #define apzNext_VolitileMachs (const char**)NULL
6390  *  content selection pattern - do fix if pattern found
6391  */
6392 tSCC zNext_VolitileSelect0[] =
6393        "^extern[ \t]+volatile[ \t]+void[ \t]";
6395 #define    NEXT_VOLITILE_TEST_CT  1
6396 static tTestDesc aNext_VolitileTests[] = {
6397   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
6400  *  Fix Command Arguments for Next_Volitile
6401  */
6402 static const char* apzNext_VolitilePatch[] = {
6403     "format",
6404     "extern void %1(",
6405     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
6406     (char*)NULL };
6408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6410  *  Description of Next_Wait_Union fix
6411  */
6412 tSCC zNext_Wait_UnionName[] =
6413      "next_wait_union";
6416  *  File name selection pattern
6417  */
6418 tSCC zNext_Wait_UnionList[] =
6419   "sys/wait.h\0";
6421  *  Machine/OS name selection pattern
6422  */
6423 #define apzNext_Wait_UnionMachs (const char**)NULL
6426  *  content selection pattern - do fix if pattern found
6427  */
6428 tSCC zNext_Wait_UnionSelect0[] =
6429        "wait\\(union wait";
6431 #define    NEXT_WAIT_UNION_TEST_CT  1
6432 static tTestDesc aNext_Wait_UnionTests[] = {
6433   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
6436  *  Fix Command Arguments for Next_Wait_Union
6437  */
6438 static const char* apzNext_Wait_UnionPatch[] = {
6439     "format",
6440     "wait(void",
6441     (char*)NULL };
6443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6445  *  Description of Nodeent_Syntax fix
6446  */
6447 tSCC zNodeent_SyntaxName[] =
6448      "nodeent_syntax";
6451  *  File name selection pattern
6452  */
6453 tSCC zNodeent_SyntaxList[] =
6454   "netdnet/dnetdb.h\0";
6456  *  Machine/OS name selection pattern
6457  */
6458 #define apzNodeent_SyntaxMachs (const char**)NULL
6461  *  content selection pattern - do fix if pattern found
6462  */
6463 tSCC zNodeent_SyntaxSelect0[] =
6464        "char[ \t]*\\*na_addr[ \t]*$";
6466 #define    NODEENT_SYNTAX_TEST_CT  1
6467 static tTestDesc aNodeent_SyntaxTests[] = {
6468   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
6471  *  Fix Command Arguments for Nodeent_Syntax
6472  */
6473 static const char* apzNodeent_SyntaxPatch[] = {
6474     "format",
6475     "%0;",
6476     (char*)NULL };
6478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6480  *  Description of Openbsd_Null_Definition fix
6481  */
6482 tSCC zOpenbsd_Null_DefinitionName[] =
6483      "openbsd_null_definition";
6486  *  File name selection pattern
6487  */
6488 tSCC zOpenbsd_Null_DefinitionList[] =
6489   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
6491  *  Machine/OS name selection pattern
6492  */
6493 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
6494         "*-*-openbsd*",
6495         (const char*)NULL };
6498  *  content selection pattern - do fix if pattern found
6499  */
6500 tSCC zOpenbsd_Null_DefinitionSelect0[] =
6501        "__GNUG__";
6503 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
6504 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
6505   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
6508  *  Fix Command Arguments for Openbsd_Null_Definition
6509  */
6510 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
6511     "format",
6512     "#ifndef NULL\n\
6513 #ifdef __cplusplus\n\
6514 #ifdef __GNUG__\n\
6515 #define NULL\t__null\n\
6516 #else\t /* ! __GNUG__  */\n\
6517 #define NULL\t0L\n\
6518 #endif\t /* __GNUG__  */\n\
6519 #else\t /* ! __cplusplus  */\n\
6520 #define NULL\t((void *)0)\n\
6521 #endif\t /* __cplusplus  */\n\
6522 #endif\t /* !NULL  */",
6523     "^#ifndef[ \t]*NULL\n\
6524 ^#ifdef[ \t]*__GNUG__\n\
6525 ^#define[ \t]*NULL[ \t]*__null\n\
6526 ^#else\n\
6527 ^#define[ \t]*NULL[ \t]*0L\n\
6528 ^#endif\n\
6529 ^#endif",
6530     (char*)NULL };
6532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6534  *  Description of Obstack_Lvalue_Cast fix
6535  */
6536 tSCC zObstack_Lvalue_CastName[] =
6537      "obstack_lvalue_cast";
6540  *  File name selection pattern
6541  */
6542 tSCC zObstack_Lvalue_CastList[] =
6543   "obstack.h\0";
6545  *  Machine/OS name selection pattern
6546  */
6547 #define apzObstack_Lvalue_CastMachs (const char**)NULL
6550  *  content selection pattern - do fix if pattern found
6551  */
6552 tSCC zObstack_Lvalue_CastSelect0[] =
6553        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
6555 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
6556 static tTestDesc aObstack_Lvalue_CastTests[] = {
6557   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
6560  *  Fix Command Arguments for Obstack_Lvalue_Cast
6561  */
6562 static const char* apzObstack_Lvalue_CastPatch[] = {
6563     "format",
6564     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
6565     (char*)NULL };
6567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6569  *  Description of Openbsd_Va_Start fix
6570  */
6571 tSCC zOpenbsd_Va_StartName[] =
6572      "openbsd_va_start";
6575  *  File name selection pattern
6576  */
6577 tSCC zOpenbsd_Va_StartList[] =
6578   "stdarg.h\0";
6580  *  Machine/OS name selection pattern
6581  */
6582 tSCC* apzOpenbsd_Va_StartMachs[] = {
6583         "*-*-openbsd*",
6584         (const char*)NULL };
6587  *  content selection pattern - do fix if pattern found
6588  */
6589 tSCC zOpenbsd_Va_StartSelect0[] =
6590        "__builtin_stdarg_start";
6592 #define    OPENBSD_VA_START_TEST_CT  1
6593 static tTestDesc aOpenbsd_Va_StartTests[] = {
6594   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
6597  *  Fix Command Arguments for Openbsd_Va_Start
6598  */
6599 static const char* apzOpenbsd_Va_StartPatch[] = {
6600     "format",
6601     "__builtin_va_start",
6602     (char*)NULL };
6604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6606  *  Description of Osf_Namespace_A fix
6607  */
6608 tSCC zOsf_Namespace_AName[] =
6609      "osf_namespace_a";
6612  *  File name selection pattern
6613  */
6614 tSCC zOsf_Namespace_AList[] =
6615   "reg_types.h\0sys/lc_core.h\0";
6617  *  Machine/OS name selection pattern
6618  */
6619 #define apzOsf_Namespace_AMachs (const char**)NULL
6622  *  perform the 'test' shell command - do fix on success
6623  */
6624 tSCC zOsf_Namespace_ATest0[] =
6625        " -r reg_types.h";
6626 tSCC zOsf_Namespace_ATest1[] =
6627        " -r sys/lc_core.h";
6628 tSCC zOsf_Namespace_ATest2[] =
6629        " -n \"`grep '} regex_t;' reg_types.h`\"";
6630 tSCC zOsf_Namespace_ATest3[] =
6631        " -z \"`grep __regex_t regex.h`\"";
6633 #define    OSF_NAMESPACE_A_TEST_CT  4
6634 static tTestDesc aOsf_Namespace_ATests[] = {
6635   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
6636   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
6637   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
6638   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
6641  *  Fix Command Arguments for Osf_Namespace_A
6642  */
6643 static const char* apzOsf_Namespace_APatch[] = {
6644     "format",
6645     "__%0",
6646     "reg(ex|off|match)_t",
6647     (char*)NULL };
6649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6651  *  Description of Osf_Namespace_C fix
6652  */
6653 tSCC zOsf_Namespace_CName[] =
6654      "osf_namespace_c";
6657  *  File name selection pattern
6658  */
6659 tSCC zOsf_Namespace_CList[] =
6660   "regex.h\0";
6662  *  Machine/OS name selection pattern
6663  */
6664 #define apzOsf_Namespace_CMachs (const char**)NULL
6667  *  content selection pattern - do fix if pattern found
6668  */
6669 tSCC zOsf_Namespace_CSelect0[] =
6670        "#include <reg_types.h>.*";
6673  *  perform the 'test' shell command - do fix on success
6674  */
6675 tSCC zOsf_Namespace_CTest0[] =
6676        " -r reg_types.h";
6677 tSCC zOsf_Namespace_CTest1[] =
6678        " -r sys/lc_core.h";
6679 tSCC zOsf_Namespace_CTest2[] =
6680        " -n \"`grep '} regex_t;' reg_types.h`\"";
6681 tSCC zOsf_Namespace_CTest3[] =
6682        " -z \"`grep __regex_t regex.h`\"";
6684 #define    OSF_NAMESPACE_C_TEST_CT  5
6685 static tTestDesc aOsf_Namespace_CTests[] = {
6686   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
6687   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
6688   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
6689   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
6690   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
6693  *  Fix Command Arguments for Osf_Namespace_C
6694  */
6695 static const char* apzOsf_Namespace_CPatch[] = {
6696     "format",
6697     "%0\n\
6698 typedef __regex_t\tregex_t;\n\
6699 typedef __regoff_t\tregoff_t;\n\
6700 typedef __regmatch_t\tregmatch_t;",
6701     (char*)NULL };
6703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6705  *  Description of Pthread_Incomplete_Struct_Argument fix
6706  */
6707 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
6708      "pthread_incomplete_struct_argument";
6711  *  File name selection pattern
6712  */
6713 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
6714   "pthread.h\0";
6716  *  Machine/OS name selection pattern
6717  */
6718 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6721  *  content selection pattern - do fix if pattern found
6722  */
6723 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6724        "struct __jmp_buf_tag";
6726 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
6727 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6728   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6731  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6732  */
6733 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6734     "format",
6735     "%1 *%2%3",
6736     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6737     (char*)NULL };
6739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6741  *  Description of Read_Ret_Type fix
6742  */
6743 tSCC zRead_Ret_TypeName[] =
6744      "read_ret_type";
6747  *  File name selection pattern
6748  */
6749 tSCC zRead_Ret_TypeList[] =
6750   "stdio.h\0";
6752  *  Machine/OS name selection pattern
6753  */
6754 #define apzRead_Ret_TypeMachs (const char**)NULL
6757  *  content selection pattern - do fix if pattern found
6758  */
6759 tSCC zRead_Ret_TypeSelect0[] =
6760        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6762 #define    READ_RET_TYPE_TEST_CT  1
6763 static tTestDesc aRead_Ret_TypeTests[] = {
6764   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6767  *  Fix Command Arguments for Read_Ret_Type
6768  */
6769 static const char* apzRead_Ret_TypePatch[] = {
6770     "format",
6771     "extern unsigned int fread(), fwrite();\n\
6772 %1%2",
6773     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6774     (char*)NULL };
6776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6778  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
6779  */
6780 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6781      "rpc_xdr_lvalue_cast_a";
6784  *  File name selection pattern
6785  */
6786 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6787   "rpc/xdr.h\0";
6789  *  Machine/OS name selection pattern
6790  */
6791 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6794  *  content selection pattern - do fix if pattern found
6795  */
6796 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6797        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6798 .*__extension__.*";
6800 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
6801 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6802   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6805  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6806  */
6807 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6808     "format",
6809     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6810     (char*)NULL };
6812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6814  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
6815  */
6816 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6817      "rpc_xdr_lvalue_cast_b";
6820  *  File name selection pattern
6821  */
6822 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6823   "rpc/xdr.h\0";
6825  *  Machine/OS name selection pattern
6826  */
6827 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6830  *  content selection pattern - do fix if pattern found
6831  */
6832 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6833        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6834 .*__extension__.*";
6836 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
6837 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6838   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6841  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6842  */
6843 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6844     "format",
6845     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6846     (char*)NULL };
6848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6850  *  Description of Rs6000_Double fix
6851  */
6852 tSCC zRs6000_DoubleName[] =
6853      "rs6000_double";
6856  *  File name selection pattern
6857  */
6858 tSCC zRs6000_DoubleList[] =
6859   "math.h\0";
6861  *  Machine/OS name selection pattern
6862  */
6863 #define apzRs6000_DoubleMachs (const char**)NULL
6866  *  content selection pattern - do fix if pattern found
6867  */
6868 tSCC zRs6000_DoubleSelect0[] =
6869        "[^a-zA-Z_]class\\(";
6871 #define    RS6000_DOUBLE_TEST_CT  1
6872 static tTestDesc aRs6000_DoubleTests[] = {
6873   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6876  *  Fix Command Arguments for Rs6000_Double
6877  */
6878 static const char* apzRs6000_DoublePatch[] = {
6879     "format",
6880     "#ifndef __cplusplus\n\
6881 %0\n\
6882 #endif",
6883     "^.*[^a-zA-Z_]class\\(.*",
6884     (char*)NULL };
6886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6888  *  Description of Rs6000_Fchmod fix
6889  */
6890 tSCC zRs6000_FchmodName[] =
6891      "rs6000_fchmod";
6894  *  File name selection pattern
6895  */
6896 tSCC zRs6000_FchmodList[] =
6897   "sys/stat.h\0";
6899  *  Machine/OS name selection pattern
6900  */
6901 #define apzRs6000_FchmodMachs (const char**)NULL
6904  *  content selection pattern - do fix if pattern found
6905  */
6906 tSCC zRs6000_FchmodSelect0[] =
6907        "fchmod\\(char \\*";
6909 #define    RS6000_FCHMOD_TEST_CT  1
6910 static tTestDesc aRs6000_FchmodTests[] = {
6911   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6914  *  Fix Command Arguments for Rs6000_Fchmod
6915  */
6916 static const char* apzRs6000_FchmodPatch[] = {
6917     "format",
6918     "fchmod(int",
6919     (char*)NULL };
6921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6923  *  Description of Rs6000_Param fix
6924  */
6925 tSCC zRs6000_ParamName[] =
6926      "rs6000_param";
6929  *  File name selection pattern
6930  */
6931 tSCC zRs6000_ParamList[] =
6932   "stdio.h\0unistd.h\0";
6934  *  Machine/OS name selection pattern
6935  */
6936 #define apzRs6000_ParamMachs (const char**)NULL
6939  *  content selection pattern - do fix if pattern found
6940  */
6941 tSCC zRs6000_ParamSelect0[] =
6942        "rename\\(const char \\*old, const char \\*new\\)";
6944 #define    RS6000_PARAM_TEST_CT  1
6945 static tTestDesc aRs6000_ParamTests[] = {
6946   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6949  *  Fix Command Arguments for Rs6000_Param
6950  */
6951 static const char* apzRs6000_ParamPatch[] = {
6952     "format",
6953     "rename(const char *_old, const char *_new)",
6954     (char*)NULL };
6956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6958  *  Description of Solaris___Restrict fix
6959  */
6960 tSCC zSolaris___RestrictName[] =
6961      "solaris___restrict";
6964  *  File name selection pattern
6965  */
6966 tSCC zSolaris___RestrictList[] =
6967   "sys/feature_tests.h\0";
6969  *  Machine/OS name selection pattern
6970  */
6971 tSCC* apzSolaris___RestrictMachs[] = {
6972         "*-*-solaris2*",
6973         (const char*)NULL };
6976  *  content selection pattern - do fix if pattern found
6977  */
6978 tSCC zSolaris___RestrictSelect0[] =
6979        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6981 #define    SOLARIS___RESTRICT_TEST_CT  1
6982 static tTestDesc aSolaris___RestrictTests[] = {
6983   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6986  *  Fix Command Arguments for Solaris___Restrict
6987  */
6988 static const char* apzSolaris___RestrictPatch[] = {
6989     "format",
6990     "#ifdef __cplusplus\n\
6991 #define\t_RESTRICT_KYWD\t__restrict\n\
6992 #else\n\
6993 %0\n\
6994 #endif",
6995     (char*)NULL };
6997 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6999  *  Description of Solaris_Complex fix
7000  */
7001 tSCC zSolaris_ComplexName[] =
7002      "solaris_complex";
7005  *  File name selection pattern
7006  */
7007 tSCC zSolaris_ComplexList[] =
7008   "complex.h\0";
7010  *  Machine/OS name selection pattern
7011  */
7012 tSCC* apzSolaris_ComplexMachs[] = {
7013         "*-*-solaris2.*",
7014         (const char*)NULL };
7017  *  content selection pattern - do fix if pattern found
7018  */
7019 tSCC zSolaris_ComplexSelect0[] =
7020        "#define[ \t]_Complex_I[ \t]_Complex_I";
7022 #define    SOLARIS_COMPLEX_TEST_CT  1
7023 static tTestDesc aSolaris_ComplexTests[] = {
7024   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
7027  *  Fix Command Arguments for Solaris_Complex
7028  */
7029 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
7030     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
7031     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
7032     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
7033     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
7034     (char*)NULL };
7036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7038  *  Description of Solaris_Complex_Cxx fix
7039  */
7040 tSCC zSolaris_Complex_CxxName[] =
7041      "solaris_complex_cxx";
7044  *  File name selection pattern
7045  */
7046 tSCC zSolaris_Complex_CxxList[] =
7047   "complex.h\0";
7049  *  Machine/OS name selection pattern
7050  */
7051 tSCC* apzSolaris_Complex_CxxMachs[] = {
7052         "*-*-solaris2.*",
7053         (const char*)NULL };
7054 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
7055 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
7058  *  Fix Command Arguments for Solaris_Complex_Cxx
7059  */
7060 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
7061     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
7062 #ifdef\t__cplusplus\\\n\
7063 extern \"C\" {\\\n\
7064 #endif",
7065     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
7066 #ifdef\t__cplusplus\\\n\
7067 }\\\n\
7068 #endif",
7069     (char*)NULL };
7071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7073  *  Description of Solaris_Cxx_Linkage fix
7074  */
7075 tSCC zSolaris_Cxx_LinkageName[] =
7076      "solaris_cxx_linkage";
7079  *  File name selection pattern
7080  */
7081 tSCC zSolaris_Cxx_LinkageList[] =
7082   "iso/stdlib_iso.h\0";
7084  *  Machine/OS name selection pattern
7085  */
7086 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
7087         "*-*-solaris2*",
7088         (const char*)NULL };
7091  *  content selection pattern - do fix if pattern found
7092  */
7093 tSCC zSolaris_Cxx_LinkageSelect0[] =
7094        "(#if __cplusplus >= 199711L)\n\
7095 (extern \"C\\+\\+\" \\{\n\
7096 )(.*(bsearch|qsort).*)";
7098 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
7099 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
7100   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
7103  *  Fix Command Arguments for Solaris_Cxx_Linkage
7104  */
7105 static const char* apzSolaris_Cxx_LinkagePatch[] = {
7106     "format",
7107     "%1 && !__GNUG__\n\
7108 %2%3",
7109     (char*)NULL };
7111 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7113  *  Description of Solaris_Getc_Strict_Stdc fix
7114  */
7115 tSCC zSolaris_Getc_Strict_StdcName[] =
7116      "solaris_getc_strict_stdc";
7119  *  File name selection pattern
7120  */
7121 tSCC zSolaris_Getc_Strict_StdcList[] =
7122   "iso/stdio_iso.h\0";
7124  *  Machine/OS name selection pattern
7125  */
7126 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
7127         "*-*-solaris2*",
7128         (const char*)NULL };
7131  *  content selection pattern - do fix if pattern found
7132  */
7133 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
7134        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
7136 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
7137 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
7138   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
7141  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
7142  */
7143 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
7144     "format",
7145     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
7146     (char*)NULL };
7148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7150  *  Description of Solaris_Gets_C11 fix
7151  */
7152 tSCC zSolaris_Gets_C11Name[] =
7153      "solaris_gets_c11";
7156  *  File name selection pattern
7157  */
7158 tSCC zSolaris_Gets_C11List[] =
7159   "iso/stdio_iso.h\0";
7161  *  Machine/OS name selection pattern
7162  */
7163 tSCC* apzSolaris_Gets_C11Machs[] = {
7164         "*-*-solaris2*",
7165         (const char*)NULL };
7168  *  content selection pattern - do fix if pattern found
7169  */
7170 tSCC zSolaris_Gets_C11Select0[] =
7171        "(extern char[ \t]*\\*gets\\(char \\*\\));";
7173 #define    SOLARIS_GETS_C11_TEST_CT  1
7174 static tTestDesc aSolaris_Gets_C11Tests[] = {
7175   { TT_EGREP,    zSolaris_Gets_C11Select0, (regex_t*)NULL }, };
7178  *  Fix Command Arguments for Solaris_Gets_C11
7179  */
7180 static const char* apzSolaris_Gets_C11Patch[] = {
7181     "format",
7182     "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\
7183 %1 __attribute__((__deprecated__));\n\
7184 #endif",
7185     (char*)NULL };
7187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7189  *  Description of Solaris_Gets_Cxx14 fix
7190  */
7191 tSCC zSolaris_Gets_Cxx14Name[] =
7192      "solaris_gets_cxx14";
7195  *  File name selection pattern
7196  */
7197 tSCC zSolaris_Gets_Cxx14List[] =
7198   "iso/stdio_iso.h\0";
7200  *  Machine/OS name selection pattern
7201  */
7202 tSCC* apzSolaris_Gets_Cxx14Machs[] = {
7203         "*-*-solaris2*",
7204         (const char*)NULL };
7207  *  content selection pattern - do fix if pattern found
7208  */
7209 tSCC zSolaris_Gets_Cxx14Select0[] =
7210        "(#if __STDC_VERSION__ < 201112L)\n\
7211 (extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)";
7213 #define    SOLARIS_GETS_CXX14_TEST_CT  1
7214 static tTestDesc aSolaris_Gets_Cxx14Tests[] = {
7215   { TT_EGREP,    zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, };
7218  *  Fix Command Arguments for Solaris_Gets_Cxx14
7219  */
7220 static const char* apzSolaris_Gets_Cxx14Patch[] = {
7221     "format",
7222     "%1 && __cplusplus < 201402L\n\
7223 %2",
7224     (char*)NULL };
7226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7228  *  Description of Solaris_Int_Const fix
7229  */
7230 tSCC zSolaris_Int_ConstName[] =
7231      "solaris_int_const";
7234  *  File name selection pattern
7235  */
7236 tSCC zSolaris_Int_ConstList[] =
7237   "sys/int_const.h\0";
7239  *  Machine/OS name selection pattern
7240  */
7241 tSCC* apzSolaris_Int_ConstMachs[] = {
7242         "*-*-solaris2*",
7243         (const char*)NULL };
7246  *  content selection pattern - do fix if pattern found
7247  */
7248 tSCC zSolaris_Int_ConstSelect0[] =
7249        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7250 (/*.**/)\n\
7251 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7253 #define    SOLARIS_INT_CONST_TEST_CT  1
7254 static tTestDesc aSolaris_Int_ConstTests[] = {
7255   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7258  *  Fix Command Arguments for Solaris_Int_Const
7259  */
7260 static const char* apzSolaris_Int_ConstPatch[] = {
7261     "format",
7262     "#define\tUINT8_C(c)\t(c)\n\
7263 %1\n\
7264 #define\tUINT16_C(c)\t(c)",
7265     (char*)NULL };
7267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7269  *  Description of Solaris_Int_Limits_1 fix
7270  */
7271 tSCC zSolaris_Int_Limits_1Name[] =
7272      "solaris_int_limits_1";
7275  *  File name selection pattern
7276  */
7277 tSCC zSolaris_Int_Limits_1List[] =
7278   "sys/int_limits.h\0";
7280  *  Machine/OS name selection pattern
7281  */
7282 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7283         "*-*-solaris2*",
7284         (const char*)NULL };
7287  *  content selection pattern - do fix if pattern found
7288  */
7289 tSCC zSolaris_Int_Limits_1Select0[] =
7290        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7291 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7293 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
7294 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7295   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7298  *  Fix Command Arguments for Solaris_Int_Limits_1
7299  */
7300 static const char* apzSolaris_Int_Limits_1Patch[] = {
7301     "format",
7302     "#define\tUINT8_MAX\t(255)\n\
7303 #define\tUINT16_MAX\t(65535)",
7304     (char*)NULL };
7306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7308  *  Description of Solaris_Int_Limits_2 fix
7309  */
7310 tSCC zSolaris_Int_Limits_2Name[] =
7311      "solaris_int_limits_2";
7314  *  File name selection pattern
7315  */
7316 tSCC zSolaris_Int_Limits_2List[] =
7317   "sys/int_limits.h\0";
7319  *  Machine/OS name selection pattern
7320  */
7321 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7322         "*-*-solaris2*",
7323         (const char*)NULL };
7326  *  content selection pattern - do fix if pattern found
7327  */
7328 tSCC zSolaris_Int_Limits_2Select0[] =
7329        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7331 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
7332 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7333   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7336  *  Fix Command Arguments for Solaris_Int_Limits_2
7337  */
7338 static const char* apzSolaris_Int_Limits_2Patch[] = {
7339     "format",
7340     "#define\t%1_FAST16_%2 %132_%2",
7341     (char*)NULL };
7343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7345  *  Description of Solaris_Int_Limits_3 fix
7346  */
7347 tSCC zSolaris_Int_Limits_3Name[] =
7348      "solaris_int_limits_3";
7351  *  File name selection pattern
7352  */
7353 tSCC zSolaris_Int_Limits_3List[] =
7354   "sys/int_limits.h\0";
7356  *  Machine/OS name selection pattern
7357  */
7358 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7359         "*-*-solaris2*",
7360         (const char*)NULL };
7363  *  content selection pattern - do fix if pattern found
7364  */
7365 tSCC zSolaris_Int_Limits_3Select0[] =
7366        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7368 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
7369 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7370   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7373  *  Fix Command Arguments for Solaris_Int_Limits_3
7374  */
7375 static const char* apzSolaris_Int_Limits_3Patch[] = {
7376     "format",
7377     "#define\tSIZE_MAX\t4294967295U",
7378     (char*)NULL };
7380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7382  *  Description of Solaris_Math_1 fix
7383  */
7384 tSCC zSolaris_Math_1Name[] =
7385      "solaris_math_1";
7388  *  File name selection pattern
7389  */
7390 tSCC zSolaris_Math_1List[] =
7391   "iso/math_c99.h\0";
7393  *  Machine/OS name selection pattern
7394  */
7395 #define apzSolaris_Math_1Machs (const char**)NULL
7398  *  content selection pattern - do fix if pattern found
7399  */
7400 tSCC zSolaris_Math_1Select0[] =
7401        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7404  *  content bypass pattern - skip fix if pattern found
7405  */
7406 tSCC zSolaris_Math_1Bypass0[] =
7407        "__GNUC__";
7409 #define    SOLARIS_MATH_1_TEST_CT  2
7410 static tTestDesc aSolaris_Math_1Tests[] = {
7411   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
7412   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
7415  *  Fix Command Arguments for Solaris_Math_1
7416  */
7417 static const char* apzSolaris_Math_1Patch[] = {
7418     "format",
7419     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
7420     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
7421     (char*)NULL };
7423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7425  *  Description of Solaris_Math_10 fix
7426  */
7427 tSCC zSolaris_Math_10Name[] =
7428      "solaris_math_10";
7431  *  File name selection pattern
7432  */
7433 tSCC zSolaris_Math_10List[] =
7434   "iso/math_c99.h\0";
7436  *  Machine/OS name selection pattern
7437  */
7438 #define apzSolaris_Math_10Machs (const char**)NULL
7441  *  content selection pattern - do fix if pattern found
7442  */
7443 tSCC zSolaris_Math_10Select0[] =
7444        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7446 #define    SOLARIS_MATH_10_TEST_CT  1
7447 static tTestDesc aSolaris_Math_10Tests[] = {
7448   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
7451  *  Fix Command Arguments for Solaris_Math_10
7452  */
7453 static const char* apzSolaris_Math_10Patch[] = {
7454     "format",
7455     "#define\tisinf(x) __builtin_isinf(x)",
7456     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
7457 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7458 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
7459 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
7460     (char*)NULL };
7462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7464  *  Description of Solaris_Math_2 fix
7465  */
7466 tSCC zSolaris_Math_2Name[] =
7467      "solaris_math_2";
7470  *  File name selection pattern
7471  */
7472 tSCC zSolaris_Math_2List[] =
7473   "iso/math_c99.h\0";
7475  *  Machine/OS name selection pattern
7476  */
7477 #define apzSolaris_Math_2Machs (const char**)NULL
7480  *  content selection pattern - do fix if pattern found
7481  */
7482 tSCC zSolaris_Math_2Select0[] =
7483        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7486  *  content bypass pattern - skip fix if pattern found
7487  */
7488 tSCC zSolaris_Math_2Bypass0[] =
7489        "__GNUC__";
7491 #define    SOLARIS_MATH_2_TEST_CT  2
7492 static tTestDesc aSolaris_Math_2Tests[] = {
7493   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
7494   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
7497  *  Fix Command Arguments for Solaris_Math_2
7498  */
7499 static const char* apzSolaris_Math_2Patch[] = {
7500     "format",
7501     "#define\tINFINITY\t(__builtin_inff())",
7502     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
7503     (char*)NULL };
7505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7507  *  Description of Solaris_Math_3 fix
7508  */
7509 tSCC zSolaris_Math_3Name[] =
7510      "solaris_math_3";
7513  *  File name selection pattern
7514  */
7515 tSCC zSolaris_Math_3List[] =
7516   "iso/math_c99.h\0";
7518  *  Machine/OS name selection pattern
7519  */
7520 #define apzSolaris_Math_3Machs (const char**)NULL
7523  *  content selection pattern - do fix if pattern found
7524  */
7525 tSCC zSolaris_Math_3Select0[] =
7526        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7529  *  content bypass pattern - skip fix if pattern found
7530  */
7531 tSCC zSolaris_Math_3Bypass0[] =
7532        "__GNUC__";
7534 #define    SOLARIS_MATH_3_TEST_CT  2
7535 static tTestDesc aSolaris_Math_3Tests[] = {
7536   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
7537   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
7540  *  Fix Command Arguments for Solaris_Math_3
7541  */
7542 static const char* apzSolaris_Math_3Patch[] = {
7543     "format",
7544     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
7545     "^#define[ \t]+NAN[ \t]+__builtin_nan",
7546     (char*)NULL };
7548 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7550  *  Description of Solaris_Math_4 fix
7551  */
7552 tSCC zSolaris_Math_4Name[] =
7553      "solaris_math_4";
7556  *  File name selection pattern
7557  */
7558 tSCC zSolaris_Math_4List[] =
7559   "iso/math_c99.h\0";
7561  *  Machine/OS name selection pattern
7562  */
7563 #define apzSolaris_Math_4Machs (const char**)NULL
7566  *  content selection pattern - do fix if pattern found
7567  */
7568 tSCC zSolaris_Math_4Select0[] =
7569        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7572  *  content bypass pattern - skip fix if pattern found
7573  */
7574 tSCC zSolaris_Math_4Bypass0[] =
7575        "__GNUC__";
7577 #define    SOLARIS_MATH_4_TEST_CT  2
7578 static tTestDesc aSolaris_Math_4Tests[] = {
7579   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
7580   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
7583  *  Fix Command Arguments for Solaris_Math_4
7584  */
7585 static const char* apzSolaris_Math_4Patch[] = {
7586     "format",
7587     "#define\tfpclassify(x) \\\n\
7588   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
7589     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
7590     (char*)NULL };
7592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7594  *  Description of Solaris_Math_8 fix
7595  */
7596 tSCC zSolaris_Math_8Name[] =
7597      "solaris_math_8";
7600  *  File name selection pattern
7601  */
7602 tSCC zSolaris_Math_8List[] =
7603   "iso/math_c99.h\0";
7605  *  Machine/OS name selection pattern
7606  */
7607 #define apzSolaris_Math_8Machs (const char**)NULL
7610  *  content selection pattern - do fix if pattern found
7611  */
7612 tSCC zSolaris_Math_8Select0[] =
7613        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
7616  *  content bypass pattern - skip fix if pattern found
7617  */
7618 tSCC zSolaris_Math_8Bypass0[] =
7619        "__GNUC__";
7621 #define    SOLARIS_MATH_8_TEST_CT  2
7622 static tTestDesc aSolaris_Math_8Tests[] = {
7623   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
7624   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
7627  *  Fix Command Arguments for Solaris_Math_8
7628  */
7629 static const char* apzSolaris_Math_8Patch[] = {
7630     "format",
7631     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7632 \t\t\t   ? __builtin_signbitf(x) \\\n\
7633 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
7634 \t\t\t     ? __builtin_signbitl(x) \\\n\
7635 \t\t\t     : __builtin_signbit(x))",
7636     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
7637     (char*)NULL };
7639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7641  *  Description of Solaris_Math_9 fix
7642  */
7643 tSCC zSolaris_Math_9Name[] =
7644      "solaris_math_9";
7647  *  File name selection pattern
7648  */
7649 tSCC zSolaris_Math_9List[] =
7650   "iso/math_c99.h\0";
7652  *  Machine/OS name selection pattern
7653  */
7654 #define apzSolaris_Math_9Machs (const char**)NULL
7657  *  content selection pattern - do fix if pattern found
7658  */
7659 tSCC zSolaris_Math_9Select0[] =
7660        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7663  *  content bypass pattern - skip fix if pattern found
7664  */
7665 tSCC zSolaris_Math_9Bypass0[] =
7666        "__GNUC__";
7668 #define    SOLARIS_MATH_9_TEST_CT  2
7669 static tTestDesc aSolaris_Math_9Tests[] = {
7670   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
7671   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
7674  *  Fix Command Arguments for Solaris_Math_9
7675  */
7676 static const char* apzSolaris_Math_9Patch[] = {
7677     "format",
7678     "#define\t%1(x, y)%2__builtin_%1(x, y)",
7679     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
7680     (char*)NULL };
7682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7684  *  Description of Solaris_Math_11 fix
7685  */
7686 tSCC zSolaris_Math_11Name[] =
7687      "solaris_math_11";
7690  *  File name selection pattern
7691  */
7692 tSCC zSolaris_Math_11List[] =
7693   "iso/math_c99.h\0";
7695  *  Machine/OS name selection pattern
7696  */
7697 #define apzSolaris_Math_11Machs (const char**)NULL
7700  *  content selection pattern - do fix if pattern found
7701  */
7702 tSCC zSolaris_Math_11Select0[] =
7703        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
7705 #define    SOLARIS_MATH_11_TEST_CT  1
7706 static tTestDesc aSolaris_Math_11Tests[] = {
7707   { TT_EGREP,    zSolaris_Math_11Select0, (regex_t*)NULL }, };
7710  *  Fix Command Arguments for Solaris_Math_11
7711  */
7712 static const char* apzSolaris_Math_11Patch[] = {
7713     "format",
7714     "#undef\tsignbit\n\
7715 #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7716 \t\t\t   ? __builtin_signbitf(x) \\\n\
7717 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
7718 \t\t\t     ? __builtin_signbitl(x) \\\n\
7719 \t\t\t     : __builtin_signbit(x))",
7720     "^#undef[ \t]+signbit\n\
7721 #if defined\\(__sparc\\)\n\
7722 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7723 [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7724 [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
7725 #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
7726 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7727 [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
7728 [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
7729 [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
7730 [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
7731 [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
7732 [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
7733 #endif",
7734     (char*)NULL };
7736 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7738  *  Description of Solaris_Math_12 fix
7739  */
7740 tSCC zSolaris_Math_12Name[] =
7741      "solaris_math_12";
7744  *  File name selection pattern
7745  */
7746 tSCC zSolaris_Math_12List[] =
7747   "math.h\0";
7749  *  Machine/OS name selection pattern
7750  */
7751 tSCC* apzSolaris_Math_12Machs[] = {
7752         "*-*-solaris2*",
7753         (const char*)NULL };
7756  *  content selection pattern - do fix if pattern found
7757  */
7758 tSCC zSolaris_Math_12Select0[] =
7759        "#undef.*_GLIBCXX_USE_C99_MATH";
7761 #define    SOLARIS_MATH_12_TEST_CT  1
7762 static tTestDesc aSolaris_Math_12Tests[] = {
7763   { TT_EGREP,    zSolaris_Math_12Select0, (regex_t*)NULL }, };
7766  *  Fix Command Arguments for Solaris_Math_12
7767  */
7768 static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
7769     "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
7770     (char*)NULL };
7772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7774  *  Description of Solaris_Once_Init_1 fix
7775  */
7776 tSCC zSolaris_Once_Init_1Name[] =
7777      "solaris_once_init_1";
7780  *  File name selection pattern
7781  */
7782 tSCC zSolaris_Once_Init_1List[] =
7783   "pthread.h\0";
7785  *  Machine/OS name selection pattern
7786  */
7787 tSCC* apzSolaris_Once_Init_1Machs[] = {
7788         "*-*-solaris*",
7789         (const char*)NULL };
7792  *  content selection pattern - do fix if pattern found
7793  */
7794 tSCC zSolaris_Once_Init_1Select0[] =
7795        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7797 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
7798 static tTestDesc aSolaris_Once_Init_1Tests[] = {
7799   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
7802  *  Fix Command Arguments for Solaris_Once_Init_1
7803  */
7804 static const char* apzSolaris_Once_Init_1Patch[] = {
7805     "format",
7806     "%1{%2}%3",
7807     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
7808     (char*)NULL };
7810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7812  *  Description of Solaris_Posix_Spawn_Restrict fix
7813  */
7814 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7815      "solaris_posix_spawn_restrict";
7818  *  File name selection pattern
7819  */
7820 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7821   "spawn.h\0";
7823  *  Machine/OS name selection pattern
7824  */
7825 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7826         "*-*-solaris2*",
7827         (const char*)NULL };
7830  *  content selection pattern - do fix if pattern found
7831  */
7832 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7833        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7835 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
7836 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7837   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7840  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7841  */
7842 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7843     "format",
7844     "%1*_RESTRICT_KYWD %2%3",
7845     (char*)NULL };
7847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7849  *  Description of Solaris_Pow_Int_Overload fix
7850  */
7851 tSCC zSolaris_Pow_Int_OverloadName[] =
7852      "solaris_pow_int_overload";
7855  *  File name selection pattern
7856  */
7857 tSCC zSolaris_Pow_Int_OverloadList[] =
7858   "iso/math_iso.h\0";
7860  *  Machine/OS name selection pattern
7861  */
7862 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
7863         "*-*-solaris2*",
7864         (const char*)NULL };
7867  *  content selection pattern - do fix if pattern found
7868  */
7869 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
7870        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
7871 [^{}]*\\}";
7873 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
7874 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
7875   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
7878  *  Fix Command Arguments for Solaris_Pow_Int_Overload
7879  */
7880 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
7881     "format",
7882     "#if __cplusplus < 201103L\n\
7883 %0\n\
7884 #endif",
7885     (char*)NULL };
7887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7889  *  Description of Solaris_Rwlock_Init_1 fix
7890  */
7891 tSCC zSolaris_Rwlock_Init_1Name[] =
7892      "solaris_rwlock_init_1";
7895  *  File name selection pattern
7896  */
7897 tSCC zSolaris_Rwlock_Init_1List[] =
7898   "pthread.h\0";
7900  *  Machine/OS name selection pattern
7901  */
7902 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
7903         "*-*-solaris*",
7904         (const char*)NULL };
7907  *  content selection pattern - do fix if pattern found
7908  */
7909 tSCC zSolaris_Rwlock_Init_1Select0[] =
7910        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7912 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
7913 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
7914   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
7917  *  Fix Command Arguments for Solaris_Rwlock_Init_1
7918  */
7919 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
7920     "format",
7921     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7922 %0\n\
7923 #else\n\
7924 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
7925 #endif",
7926     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
7927     (char*)NULL };
7929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7931  *  Description of Solaris_Std___Filbuf fix
7932  */
7933 tSCC zSolaris_Std___FilbufName[] =
7934      "solaris_std___filbuf";
7937  *  File name selection pattern
7938  */
7939 tSCC zSolaris_Std___FilbufList[] =
7940   "stdio.h\0";
7942  *  Machine/OS name selection pattern
7943  */
7944 tSCC* apzSolaris_Std___FilbufMachs[] = {
7945         "*-*-solaris2*",
7946         (const char*)NULL };
7949  *  content selection pattern - do fix if pattern found
7950  */
7951 tSCC zSolaris_Std___FilbufSelect0[] =
7952        "(using std::perror;\n\
7953 )(#endif)";
7956  *  content bypass pattern - skip fix if pattern found
7957  */
7958 tSCC zSolaris_Std___FilbufBypass0[] =
7959        "using std::__filbuf";
7961 #define    SOLARIS_STD___FILBUF_TEST_CT  2
7962 static tTestDesc aSolaris_Std___FilbufTests[] = {
7963   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7964   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7967  *  Fix Command Arguments for Solaris_Std___Filbuf
7968  */
7969 static const char* apzSolaris_Std___FilbufPatch[] = {
7970     "format",
7971     "%1#ifndef _LP64\n\
7972 using std::__filbuf;\n\
7973 using std::__flsbuf;\n\
7974 #endif\n\
7975 %2",
7976     (char*)NULL };
7978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7980  *  Description of Solaris_Std_Gets_Cxx14 fix
7981  */
7982 tSCC zSolaris_Std_Gets_Cxx14Name[] =
7983      "solaris_std_gets_cxx14";
7986  *  File name selection pattern
7987  */
7988 tSCC zSolaris_Std_Gets_Cxx14List[] =
7989   "stdio.h\0";
7991  *  Machine/OS name selection pattern
7992  */
7993 tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = {
7994         "*-*-solaris2*",
7995         (const char*)NULL };
7998  *  content selection pattern - do fix if pattern found
7999  */
8000 tSCC zSolaris_Std_Gets_Cxx14Select0[] =
8001        "using std::gets;";
8003 #define    SOLARIS_STD_GETS_CXX14_TEST_CT  1
8004 static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = {
8005   { TT_EGREP,    zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, };
8008  *  Fix Command Arguments for Solaris_Std_Gets_Cxx14
8009  */
8010 static const char* apzSolaris_Std_Gets_Cxx14Patch[] = {
8011     "format",
8012     "#if __cplusplus < 201402L\n\
8013 %0\n\
8014 #endif",
8015     (char*)NULL };
8017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8019  *  Description of Solaris_Stdio_Tag fix
8020  */
8021 tSCC zSolaris_Stdio_TagName[] =
8022      "solaris_stdio_tag";
8025  *  File name selection pattern
8026  */
8027 tSCC zSolaris_Stdio_TagList[] =
8028   "stdio_tag.h\0";
8030  *  Machine/OS name selection pattern
8031  */
8032 #define apzSolaris_Stdio_TagMachs (const char**)NULL
8035  *  content selection pattern - do fix if pattern found
8036  */
8037 tSCC zSolaris_Stdio_TagSelect0[] =
8038        "__cplusplus < 54321L";
8041  *  content bypass pattern - skip fix if pattern found
8042  */
8043 tSCC zSolaris_Stdio_TagBypass0[] =
8044        "__GNUC__";
8046 #define    SOLARIS_STDIO_TAG_TEST_CT  2
8047 static tTestDesc aSolaris_Stdio_TagTests[] = {
8048   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
8049   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
8052  *  Fix Command Arguments for Solaris_Stdio_Tag
8053  */
8054 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
8055     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
8056     (char*)NULL };
8058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8060  *  Description of Solaris_Stdlib_Noreturn fix
8061  */
8062 tSCC zSolaris_Stdlib_NoreturnName[] =
8063      "solaris_stdlib_noreturn";
8066  *  File name selection pattern
8067  */
8068 tSCC zSolaris_Stdlib_NoreturnList[] =
8069   "iso/stdlib_c99.h\0";
8071  *  Machine/OS name selection pattern
8072  */
8073 tSCC* apzSolaris_Stdlib_NoreturnMachs[] = {
8074         "*-*-solaris2*",
8075         (const char*)NULL };
8078  *  content selection pattern - do fix if pattern found
8079  */
8080 tSCC zSolaris_Stdlib_NoreturnSelect0[] =
8081        "(extern) _Noreturn (void quick_exit\\(int\\));";
8083 #define    SOLARIS_STDLIB_NORETURN_TEST_CT  1
8084 static tTestDesc aSolaris_Stdlib_NoreturnTests[] = {
8085   { TT_EGREP,    zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, };
8088  *  Fix Command Arguments for Solaris_Stdlib_Noreturn
8089  */
8090 static const char* apzSolaris_Stdlib_NoreturnPatch[] = {
8091     "format",
8092     "%1 %2 __attribute__((__noreturn__));",
8093     (char*)NULL };
8095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8097  *  Description of Statsswtch fix
8098  */
8099 tSCC zStatsswtchName[] =
8100      "statsswtch";
8103  *  File name selection pattern
8104  */
8105 tSCC zStatsswtchList[] =
8106   "rpcsvc/rstat.h\0";
8108  *  Machine/OS name selection pattern
8109  */
8110 #define apzStatsswtchMachs (const char**)NULL
8113  *  content selection pattern - do fix if pattern found
8114  */
8115 tSCC zStatsswtchSelect0[] =
8116        "boottime$";
8118 #define    STATSSWTCH_TEST_CT  1
8119 static tTestDesc aStatsswtchTests[] = {
8120   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
8123  *  Fix Command Arguments for Statsswtch
8124  */
8125 static const char* apzStatsswtchPatch[] = {
8126     "format",
8127     "boottime;",
8128     (char*)NULL };
8130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8132  *  Description of Stdio_Stdarg_H fix
8133  */
8134 tSCC zStdio_Stdarg_HName[] =
8135      "stdio_stdarg_h";
8138  *  File name selection pattern
8139  */
8140 tSCC zStdio_Stdarg_HList[] =
8141   "stdio.h\0";
8143  *  Machine/OS name selection pattern
8144  */
8145 tSCC* apzStdio_Stdarg_HMachs[] = {
8146         "*-*-solaris2.1[0-9]*",
8147         (const char*)NULL };
8150  *  content bypass pattern - skip fix if pattern found
8151  */
8152 tSCC zStdio_Stdarg_HBypass0[] =
8153        "include.*(stdarg.h|machine/ansi.h)";
8155 #define    STDIO_STDARG_H_TEST_CT  1
8156 static tTestDesc aStdio_Stdarg_HTests[] = {
8157   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
8160  *  Fix Command Arguments for Stdio_Stdarg_H
8161  */
8162 static const char* apzStdio_Stdarg_HPatch[] = {
8163     "wrap",
8164     "#define __need___va_list\n\
8165 #include <stdarg.h>\n",
8166     (char*)NULL };
8168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8170  *  Description of Stdio_Va_List fix
8171  */
8172 tSCC zStdio_Va_ListName[] =
8173      "stdio_va_list";
8176  *  File name selection pattern
8177  */
8178 tSCC zStdio_Va_ListList[] =
8179   "stdio.h\0";
8181  *  Machine/OS name selection pattern
8182  */
8183 tSCC* apzStdio_Va_ListMachs[] = {
8184         "*-*-solaris2.1[0-9]*",
8185         (const char*)NULL };
8188  *  content bypass pattern - skip fix if pattern found
8189  */
8190 tSCC zStdio_Va_ListBypass0[] =
8191        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8193 #define    STDIO_VA_LIST_TEST_CT  1
8194 static tTestDesc aStdio_Va_ListTests[] = {
8195   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
8198  *  Fix Command Arguments for Stdio_Va_List
8199  */
8200 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
8201     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8202 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8203 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8204 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8205 s@ va_list@ __not_va_list__@\n\
8206 s@\\*va_list@*__not_va_list__@\n\
8207 s@ __va_list)@ __gnuc_va_list)@\n\
8208 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8209 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8210 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8211 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8212 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8213 s@VA_LIST@DUMMY_VA_LIST@\n\
8214 s@_Va_LIST@_VA_LIST@",
8215     (char*)NULL };
8217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8219  *  Description of Stdio_Va_List_Clients fix
8220  */
8221 tSCC zStdio_Va_List_ClientsName[] =
8222      "stdio_va_list_clients";
8225  *  File name selection pattern
8226  */
8227 tSCC zStdio_Va_List_ClientsList[] =
8228   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
8230  *  Machine/OS name selection pattern
8231  */
8232 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
8235  *  content bypass pattern - skip fix if pattern found
8236  */
8237 tSCC zStdio_Va_List_ClientsBypass0[] =
8238        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8239 tSCC zStdio_Va_List_ClientsBypass1[] =
8240        "include <stdarg\\.h>|#ifdef va_start";
8242 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
8243 static tTestDesc aStdio_Va_List_ClientsTests[] = {
8244   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
8245   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
8248  *  Fix Command Arguments for Stdio_Va_List_Clients
8249  */
8250 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
8251     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8252 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8253 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8254 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8255 s@ va_list@ __not_va_list__@\n\
8256 s@\\*va_list@*__not_va_list__@\n\
8257 s@ __va_list)@ __gnuc_va_list)@\n\
8258 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8259 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8260 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8261 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8262 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8263 s@VA_LIST@DUMMY_VA_LIST@\n\
8264 s@_Va_LIST@_VA_LIST@",
8265     (char*)NULL };
8267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8269  *  Description of Strict_Ansi_Not fix
8270  */
8271 tSCC zStrict_Ansi_NotName[] =
8272      "strict_ansi_not";
8275  *  File name selection pattern
8276  */
8277 #define zStrict_Ansi_NotList (char*)NULL
8279  *  Machine/OS name selection pattern
8280  */
8281 #define apzStrict_Ansi_NotMachs (const char**)NULL
8284  *  content selection pattern - do fix if pattern found
8285  */
8286 tSCC zStrict_Ansi_NotSelect0[] =
8287        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
8290  *  content bypass pattern - skip fix if pattern found
8291  */
8292 tSCC zStrict_Ansi_NotBypass0[] =
8293        "GNU and MIPS C compilers define __STDC__ differently";
8294 tSCC zStrict_Ansi_NotBypass1[] =
8295        "__SCO_VERSION__.*__STDC__ != 1";
8298  *  perform the C function call test
8299  */
8300 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
8302 #define    STRICT_ANSI_NOT_TEST_CT  4
8303 static tTestDesc aStrict_Ansi_NotTests[] = {
8304   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
8305   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
8306   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
8307   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
8310  *  Fix Command Arguments for Strict_Ansi_Not
8311  */
8312 static const char* apzStrict_Ansi_NotPatch[] = {
8313     "format",
8314     "%1 !defined(__STRICT_ANSI__)",
8315     (char*)NULL };
8317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8319  *  Description of Strict_Ansi_Not_Ctd fix
8320  */
8321 tSCC zStrict_Ansi_Not_CtdName[] =
8322      "strict_ansi_not_ctd";
8325  *  File name selection pattern
8326  */
8327 tSCC zStrict_Ansi_Not_CtdList[] =
8328   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
8330  *  Machine/OS name selection pattern
8331  */
8332 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
8335  *  content selection pattern - do fix if pattern found
8336  */
8337 tSCC zStrict_Ansi_Not_CtdSelect0[] =
8338        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
8341  *  perform the C function call test
8342  */
8343 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
8345 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
8346 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
8347   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
8348   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
8351  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
8352  */
8353 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
8354     "format",
8355     "%1 !defined(__STRICT_ANSI__)",
8356     (char*)NULL };
8358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8360  *  Description of Strict_Ansi_Only fix
8361  */
8362 tSCC zStrict_Ansi_OnlyName[] =
8363      "strict_ansi_only";
8366  *  File name selection pattern
8367  */
8368 #define zStrict_Ansi_OnlyList (char*)NULL
8370  *  Machine/OS name selection pattern
8371  */
8372 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
8375  *  content selection pattern - do fix if pattern found
8376  */
8377 tSCC zStrict_Ansi_OnlySelect0[] =
8378        "^([ \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)";
8381  *  perform the C function call test
8382  */
8383 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
8385 #define    STRICT_ANSI_ONLY_TEST_CT  2
8386 static tTestDesc aStrict_Ansi_OnlyTests[] = {
8387   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
8388   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
8391  *  Fix Command Arguments for Strict_Ansi_Only
8392  */
8393 static const char* apzStrict_Ansi_OnlyPatch[] = {
8394     "format",
8395     "%1 defined(__STRICT_ANSI__)",
8396     (char*)NULL };
8398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8400  *  Description of Struct_File fix
8401  */
8402 tSCC zStruct_FileName[] =
8403      "struct_file";
8406  *  File name selection pattern
8407  */
8408 tSCC zStruct_FileList[] =
8409   "rpc/xdr.h\0";
8411  *  Machine/OS name selection pattern
8412  */
8413 #define apzStruct_FileMachs (const char**)NULL
8416  *  content selection pattern - do fix if pattern found
8417  */
8418 tSCC zStruct_FileSelect0[] =
8419        "^.*xdrstdio_create.*struct __file_s";
8421 #define    STRUCT_FILE_TEST_CT  1
8422 static tTestDesc aStruct_FileTests[] = {
8423   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
8426  *  Fix Command Arguments for Struct_File
8427  */
8428 static const char* apzStruct_FilePatch[] = {
8429     "format",
8430     "struct __file_s;\n\
8431 %0",
8432     (char*)NULL };
8434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8436  *  Description of Struct_Sockaddr fix
8437  */
8438 tSCC zStruct_SockaddrName[] =
8439      "struct_sockaddr";
8442  *  File name selection pattern
8443  */
8444 tSCC zStruct_SockaddrList[] =
8445   "rpc/auth.h\0";
8447  *  Machine/OS name selection pattern
8448  */
8449 #define apzStruct_SockaddrMachs (const char**)NULL
8452  *  content selection pattern - do fix if pattern found
8453  */
8454 tSCC zStruct_SockaddrSelect0[] =
8455        "^.*authdes_create.*struct sockaddr[^_]";
8458  *  content bypass pattern - skip fix if pattern found
8459  */
8460 tSCC zStruct_SockaddrBypass0[] =
8461        "<sys/socket.h>";
8462 tSCC zStruct_SockaddrBypass1[] =
8463        "struct sockaddr;\n";
8465 #define    STRUCT_SOCKADDR_TEST_CT  3
8466 static tTestDesc aStruct_SockaddrTests[] = {
8467   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
8468   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
8469   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
8472  *  Fix Command Arguments for Struct_Sockaddr
8473  */
8474 static const char* apzStruct_SockaddrPatch[] = {
8475     "format",
8476     "struct sockaddr;\n\
8477 %0",
8478     (char*)NULL };
8480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8482  *  Description of Sun_Auth_Proto fix
8483  */
8484 tSCC zSun_Auth_ProtoName[] =
8485      "sun_auth_proto";
8488  *  File name selection pattern
8489  */
8490 tSCC zSun_Auth_ProtoList[] =
8491   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
8493  *  Machine/OS name selection pattern
8494  */
8495 #define apzSun_Auth_ProtoMachs (const char**)NULL
8498  *  content selection pattern - do fix if pattern found
8499  */
8500 tSCC zSun_Auth_ProtoSelect0[] =
8501        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
8504  *  content bypass pattern - skip fix if pattern found
8505  */
8506 tSCC zSun_Auth_ProtoBypass0[] =
8507        "__cplusplus";
8509 #define    SUN_AUTH_PROTO_TEST_CT  2
8510 static tTestDesc aSun_Auth_ProtoTests[] = {
8511   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
8512   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
8515  *  Fix Command Arguments for Sun_Auth_Proto
8516  */
8517 static const char* apzSun_Auth_ProtoPatch[] = {
8518     "format",
8519     "#ifdef __cplusplus\n\
8520 %1(...);%2\n\
8521 #else\n\
8522 %1();%2\n\
8523 #endif",
8524     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
8525     (char*)NULL };
8527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8529  *  Description of Sun_Bogus_Ifdef fix
8530  */
8531 tSCC zSun_Bogus_IfdefName[] =
8532      "sun_bogus_ifdef";
8535  *  File name selection pattern
8536  */
8537 tSCC zSun_Bogus_IfdefList[] =
8538   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
8540  *  Machine/OS name selection pattern
8541  */
8542 #define apzSun_Bogus_IfdefMachs (const char**)NULL
8545  *  content selection pattern - do fix if pattern found
8546  */
8547 tSCC zSun_Bogus_IfdefSelect0[] =
8548        "#ifdef(.*\\|\\|.*)";
8550 #define    SUN_BOGUS_IFDEF_TEST_CT  1
8551 static tTestDesc aSun_Bogus_IfdefTests[] = {
8552   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
8555  *  Fix Command Arguments for Sun_Bogus_Ifdef
8556  */
8557 static const char* apzSun_Bogus_IfdefPatch[] = {
8558     "format",
8559     "#if%1",
8560     (char*)NULL };
8562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8564  *  Description of Sun_Catmacro fix
8565  */
8566 tSCC zSun_CatmacroName[] =
8567      "sun_catmacro";
8570  *  File name selection pattern
8571  */
8572 tSCC zSun_CatmacroList[] =
8573   "pixrect/memvar.h\0";
8575  *  Machine/OS name selection pattern
8576  */
8577 #define apzSun_CatmacroMachs (const char**)NULL
8580  *  content selection pattern - do fix if pattern found
8581  */
8582 tSCC zSun_CatmacroSelect0[] =
8583        "^#define[ \t]+CAT\\(a,b\\).*";
8585 #define    SUN_CATMACRO_TEST_CT  1
8586 static tTestDesc aSun_CatmacroTests[] = {
8587   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
8590  *  Fix Command Arguments for Sun_Catmacro
8591  */
8592 static const char* apzSun_CatmacroPatch[] = {
8593     "format",
8594     "#ifdef __STDC__\n\
8595 #  define CAT(a,b) a##b\n\
8596 #else\n\
8597 %0\n\
8598 #endif",
8599     (char*)NULL };
8601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8603  *  Description of Sun_Malloc fix
8604  */
8605 tSCC zSun_MallocName[] =
8606      "sun_malloc";
8609  *  File name selection pattern
8610  */
8611 tSCC zSun_MallocList[] =
8612   "malloc.h\0";
8614  *  Machine/OS name selection pattern
8615  */
8616 #define apzSun_MallocMachs (const char**)NULL
8619  *  content bypass pattern - skip fix if pattern found
8620  */
8621 tSCC zSun_MallocBypass0[] =
8622        "_CLASSIC_ANSI_TYPES";
8624 #define    SUN_MALLOC_TEST_CT  1
8625 static tTestDesc aSun_MallocTests[] = {
8626   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
8629  *  Fix Command Arguments for Sun_Malloc
8630  */
8631 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
8632     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
8633     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
8634     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
8635     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
8636     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
8637     (char*)NULL };
8639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8641  *  Description of Sun_Rusers_Semi fix
8642  */
8643 tSCC zSun_Rusers_SemiName[] =
8644      "sun_rusers_semi";
8647  *  File name selection pattern
8648  */
8649 tSCC zSun_Rusers_SemiList[] =
8650   "rpcsvc/rusers.h\0";
8652  *  Machine/OS name selection pattern
8653  */
8654 #define apzSun_Rusers_SemiMachs (const char**)NULL
8657  *  content selection pattern - do fix if pattern found
8658  */
8659 tSCC zSun_Rusers_SemiSelect0[] =
8660        "_cnt$";
8662 #define    SUN_RUSERS_SEMI_TEST_CT  1
8663 static tTestDesc aSun_Rusers_SemiTests[] = {
8664   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
8667  *  Fix Command Arguments for Sun_Rusers_Semi
8668  */
8669 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
8670     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
8671     (char*)NULL };
8673 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8675  *  Description of Sun_Signal fix
8676  */
8677 tSCC zSun_SignalName[] =
8678      "sun_signal";
8681  *  File name selection pattern
8682  */
8683 tSCC zSun_SignalList[] =
8684   "sys/signal.h\0signal.h\0";
8686  *  Machine/OS name selection pattern
8687  */
8688 #define apzSun_SignalMachs (const char**)NULL
8691  *  content selection pattern - do fix if pattern found
8692  */
8693 tSCC zSun_SignalSelect0[] =
8694        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
8696 #define    SUN_SIGNAL_TEST_CT  1
8697 static tTestDesc aSun_SignalTests[] = {
8698   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
8701  *  Fix Command Arguments for Sun_Signal
8702  */
8703 static const char* apzSun_SignalPatch[] = {
8704     "format",
8705     "#ifdef __cplusplus\n\
8706 void\t(*signal(...))(...);\n\
8707 #else\n\
8708 %0\n\
8709 #endif",
8710     (char*)NULL };
8712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8714  *  Description of Sunos_Strlen fix
8715  */
8716 tSCC zSunos_StrlenName[] =
8717      "sunos_strlen";
8720  *  File name selection pattern
8721  */
8722 tSCC zSunos_StrlenList[] =
8723   "strings.h\0";
8725  *  Machine/OS name selection pattern
8726  */
8727 #define apzSunos_StrlenMachs (const char**)NULL
8730  *  content selection pattern - do fix if pattern found
8731  */
8732 tSCC zSunos_StrlenSelect0[] =
8733        "int[ \t]*strlen\\(\\);(.*)";
8735 #define    SUNOS_STRLEN_TEST_CT  1
8736 static tTestDesc aSunos_StrlenTests[] = {
8737   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
8740  *  Fix Command Arguments for Sunos_Strlen
8741  */
8742 static const char* apzSunos_StrlenPatch[] = {
8743     "format",
8744     "__SIZE_TYPE__ strlen();%1",
8745     (char*)NULL };
8747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8749  *  Description of Suse_Linux_Vt_Cxx fix
8750  */
8751 tSCC zSuse_Linux_Vt_CxxName[] =
8752      "suse_linux_vt_cxx";
8755  *  File name selection pattern
8756  */
8757 tSCC zSuse_Linux_Vt_CxxList[] =
8758   "linux/vt.h\0";
8760  *  Machine/OS name selection pattern
8761  */
8762 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
8765  *  content selection pattern - do fix if pattern found
8766  */
8767 tSCC zSuse_Linux_Vt_CxxSelect0[] =
8768        "^[ \t]*unsigned int new;";
8770 #define    SUSE_LINUX_VT_CXX_TEST_CT  1
8771 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
8772   { TT_EGREP,    zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
8775  *  Fix Command Arguments for Suse_Linux_Vt_Cxx
8776  */
8777 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
8778     "format",
8779     "unsigned int newev;",
8780     (char*)NULL };
8782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8784  *  Description of Svr4_Disable_Opt fix
8785  */
8786 tSCC zSvr4_Disable_OptName[] =
8787      "svr4_disable_opt";
8790  *  File name selection pattern
8791  */
8792 tSCC zSvr4_Disable_OptList[] =
8793   "string.h\0";
8795  *  Machine/OS name selection pattern
8796  */
8797 #define apzSvr4_Disable_OptMachs (const char**)NULL
8800  *  content selection pattern - do fix if pattern found
8801  */
8802 tSCC zSvr4_Disable_OptSelect0[] =
8803        "#define.*__std_hdr_";
8805 #define    SVR4_DISABLE_OPT_TEST_CT  1
8806 static tTestDesc aSvr4_Disable_OptTests[] = {
8807   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
8810  *  Fix Command Arguments for Svr4_Disable_Opt
8811  */
8812 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
8813     "-e", "/#define.*__std_hdr_/d",
8814     (char*)NULL };
8816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8818  *  Description of Svr4_Getcwd fix
8819  */
8820 tSCC zSvr4_GetcwdName[] =
8821      "svr4_getcwd";
8824  *  File name selection pattern
8825  */
8826 tSCC zSvr4_GetcwdList[] =
8827   "stdlib.h\0unistd.h\0prototypes.h\0";
8829  *  Machine/OS name selection pattern
8830  */
8831 #define apzSvr4_GetcwdMachs (const char**)NULL
8834  *  content selection pattern - do fix if pattern found
8835  */
8836 tSCC zSvr4_GetcwdSelect0[] =
8837        "getcwd\\(char \\*, int\\)";
8839 #define    SVR4_GETCWD_TEST_CT  1
8840 static tTestDesc aSvr4_GetcwdTests[] = {
8841   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
8844  *  Fix Command Arguments for Svr4_Getcwd
8845  */
8846 static const char* apzSvr4_GetcwdPatch[] = {
8847     "format",
8848     "getcwd(char *, size_t)",
8849     (char*)NULL };
8851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8853  *  Description of Svr4_Profil fix
8854  */
8855 tSCC zSvr4_ProfilName[] =
8856      "svr4_profil";
8859  *  File name selection pattern
8860  */
8861 tSCC zSvr4_ProfilList[] =
8862   "stdlib.h\0unistd.h\0";
8864  *  Machine/OS name selection pattern
8865  */
8866 #define apzSvr4_ProfilMachs (const char**)NULL
8869  *  content selection pattern - do fix if pattern found
8870  */
8871 tSCC zSvr4_ProfilSelect0[] =
8872        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
8874 #define    SVR4_PROFIL_TEST_CT  1
8875 static tTestDesc aSvr4_ProfilTests[] = {
8876   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
8879  *  Fix Command Arguments for Svr4_Profil
8880  */
8881 static const char* apzSvr4_ProfilPatch[] = {
8882     "format",
8883     "profil(unsigned short *, size_t, int, unsigned int)",
8884     (char*)NULL };
8886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8888  *  Description of Svr4_Sighandler_Type fix
8889  */
8890 tSCC zSvr4_Sighandler_TypeName[] =
8891      "svr4_sighandler_type";
8894  *  File name selection pattern
8895  */
8896 tSCC zSvr4_Sighandler_TypeList[] =
8897   "sys/signal.h\0";
8899  *  Machine/OS name selection pattern
8900  */
8901 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
8904  *  content selection pattern - do fix if pattern found
8905  */
8906 tSCC zSvr4_Sighandler_TypeSelect0[] =
8907        "void *\\(\\*\\)\\(\\)";
8909 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
8910 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8911   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8914  *  Fix Command Arguments for Svr4_Sighandler_Type
8915  */
8916 static const char* apzSvr4_Sighandler_TypePatch[] = {
8917     "format",
8918     "void (*)(int)",
8919     (char*)NULL };
8921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8923  *  Description of Svr4_Undeclared_Getrnge fix
8924  */
8925 tSCC zSvr4_Undeclared_GetrngeName[] =
8926      "svr4_undeclared_getrnge";
8929  *  File name selection pattern
8930  */
8931 tSCC zSvr4_Undeclared_GetrngeList[] =
8932   "regexp.h\0";
8934  *  Machine/OS name selection pattern
8935  */
8936 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8939  *  content selection pattern - do fix if pattern found
8940  */
8941 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8942        "getrnge";
8945  *  content bypass pattern - skip fix if pattern found
8946  */
8947 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8948        "static void getrnge";
8950 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
8951 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8952   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8953   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8956  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
8957  */
8958 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8959     "format",
8960     "%0\n\
8961 static int getrnge ();",
8962     "^static int[ \t]+size;",
8963     (char*)NULL };
8965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8967  *  Description of Sysv68_String fix
8968  */
8969 tSCC zSysv68_StringName[] =
8970      "sysv68_string";
8973  *  File name selection pattern
8974  */
8975 tSCC zSysv68_StringList[] =
8976   "testing.h\0string.h\0";
8978  *  Machine/OS name selection pattern
8979  */
8980 #define apzSysv68_StringMachs (const char**)NULL
8983  *  content bypass pattern - skip fix if pattern found
8984  */
8985 tSCC zSysv68_StringBypass0[] =
8986        "_CLASSIC_ANSI_TYPES";
8988 #define    SYSV68_STRING_TEST_CT  1
8989 static tTestDesc aSysv68_StringTests[] = {
8990   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
8993  *  Fix Command Arguments for Sysv68_String
8994  */
8995 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8996     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8997     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8998     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8999     "-e", "/^extern char$/N",
9000     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
9001     "-e", "/^extern int$/N",
9002     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
9003     "-e", "/^\tstrncmp(),$/N",
9004     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
9005 extern unsigned int\\\n\
9006 \\2/",
9007     (char*)NULL };
9009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9011  *  Description of Sysz_Stdlib_For_Sun fix
9012  */
9013 tSCC zSysz_Stdlib_For_SunName[] =
9014      "sysz_stdlib_for_sun";
9017  *  File name selection pattern
9018  */
9019 tSCC zSysz_Stdlib_For_SunList[] =
9020   "stdlib.h\0";
9022  *  Machine/OS name selection pattern
9023  */
9024 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
9027  *  content selection pattern - do fix if pattern found
9028  */
9029 tSCC zSysz_Stdlib_For_SunSelect0[] =
9030        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
9033  *  content bypass pattern - skip fix if pattern found
9034  */
9035 tSCC zSysz_Stdlib_For_SunBypass0[] =
9036        "_CLASSIC_ANSI_TYPES";
9038 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
9039 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
9040   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
9041   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
9044  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
9045  */
9046 static const char* apzSysz_Stdlib_For_SunPatch[] = {
9047     "format",
9048     "void *\t%1(",
9049     (char*)NULL };
9051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9053  *  Description of Thread_Keyword fix
9054  */
9055 tSCC zThread_KeywordName[] =
9056      "thread_keyword";
9059  *  File name selection pattern
9060  */
9061 tSCC zThread_KeywordList[] =
9062   "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
9064  *  Machine/OS name selection pattern
9065  */
9066 #define apzThread_KeywordMachs (const char**)NULL
9069  *  content selection pattern - do fix if pattern found
9070  */
9071 tSCC zThread_KeywordSelect0[] =
9072        "([* ])__thread([,)])";
9074 #define    THREAD_KEYWORD_TEST_CT  1
9075 static tTestDesc aThread_KeywordTests[] = {
9076   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
9079  *  Fix Command Arguments for Thread_Keyword
9080  */
9081 static const char* apzThread_KeywordPatch[] = {
9082     "format",
9083     "%1__thr%2",
9084     (char*)NULL };
9086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9088  *  Description of Tinfo_Cplusplus fix
9089  */
9090 tSCC zTinfo_CplusplusName[] =
9091      "tinfo_cplusplus";
9094  *  File name selection pattern
9095  */
9096 tSCC zTinfo_CplusplusList[] =
9097   "tinfo.h\0";
9099  *  Machine/OS name selection pattern
9100  */
9101 #define apzTinfo_CplusplusMachs (const char**)NULL
9104  *  content selection pattern - do fix if pattern found
9105  */
9106 tSCC zTinfo_CplusplusSelect0[] =
9107        "[ \t]_cplusplus";
9109 #define    TINFO_CPLUSPLUS_TEST_CT  1
9110 static tTestDesc aTinfo_CplusplusTests[] = {
9111   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
9114  *  Fix Command Arguments for Tinfo_Cplusplus
9115  */
9116 static const char* apzTinfo_CplusplusPatch[] = {
9117     "format",
9118     " __cplusplus",
9119     (char*)NULL };
9121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9123  *  Description of Ultrix_Const fix
9124  */
9125 tSCC zUltrix_ConstName[] =
9126      "ultrix_const";
9129  *  File name selection pattern
9130  */
9131 tSCC zUltrix_ConstList[] =
9132   "stdio.h\0";
9134  *  Machine/OS name selection pattern
9135  */
9136 #define apzUltrix_ConstMachs (const char**)NULL
9139  *  content selection pattern - do fix if pattern found
9140  */
9141 tSCC zUltrix_ConstSelect0[] =
9142        "perror\\( char \\*";
9144 #define    ULTRIX_CONST_TEST_CT  1
9145 static tTestDesc aUltrix_ConstTests[] = {
9146   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
9149  *  Fix Command Arguments for Ultrix_Const
9150  */
9151 static const char* apzUltrix_ConstPatch[] = {
9152     "format",
9153     "%1 const %3 *__",
9154     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
9155     (char*)NULL };
9157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9159  *  Description of Ultrix_Const2 fix
9160  */
9161 tSCC zUltrix_Const2Name[] =
9162      "ultrix_const2";
9165  *  File name selection pattern
9166  */
9167 tSCC zUltrix_Const2List[] =
9168   "stdio.h\0";
9170  *  Machine/OS name selection pattern
9171  */
9172 #define apzUltrix_Const2Machs (const char**)NULL
9175  *  content selection pattern - do fix if pattern found
9176  */
9177 tSCC zUltrix_Const2Select0[] =
9178        "\\*fopen\\( char \\*";
9180 #define    ULTRIX_CONST2_TEST_CT  1
9181 static tTestDesc aUltrix_Const2Tests[] = {
9182   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
9185  *  Fix Command Arguments for Ultrix_Const2
9186  */
9187 static const char* apzUltrix_Const2Patch[] = {
9188     "format",
9189     "%1( const char *%3, const char *",
9190     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
9191     (char*)NULL };
9193 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9195  *  Description of Va_I960_Macro fix
9196  */
9197 tSCC zVa_I960_MacroName[] =
9198      "va_i960_macro";
9201  *  File name selection pattern
9202  */
9203 tSCC zVa_I960_MacroList[] =
9204   "arch/i960/archI960.h\0";
9206  *  Machine/OS name selection pattern
9207  */
9208 #define apzVa_I960_MacroMachs (const char**)NULL
9211  *  content selection pattern - do fix if pattern found
9212  */
9213 tSCC zVa_I960_MacroSelect0[] =
9214        "__(vsiz|vali|vpad|alignof__)";
9216 #define    VA_I960_MACRO_TEST_CT  1
9217 static tTestDesc aVa_I960_MacroTests[] = {
9218   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
9221  *  Fix Command Arguments for Va_I960_Macro
9222  */
9223 static const char* apzVa_I960_MacroPatch[] = {
9224     "format",
9225     "__vx%1",
9226     (char*)NULL };
9228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9230  *  Description of Vms_Add_Missing_Braces fix
9231  */
9232 tSCC zVms_Add_Missing_BracesName[] =
9233      "vms_add_missing_braces";
9236  *  File name selection pattern
9237  */
9238 tSCC zVms_Add_Missing_BracesList[] =
9239   "rtldef/signal.h\0";
9241  *  Machine/OS name selection pattern
9242  */
9243 tSCC* apzVms_Add_Missing_BracesMachs[] = {
9244         "*-*-*vms*",
9245         (const char*)NULL };
9248  *  content selection pattern - do fix if pattern found
9249  */
9250 tSCC zVms_Add_Missing_BracesSelect0[] =
9251        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
9253 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
9254 static tTestDesc aVms_Add_Missing_BracesTests[] = {
9255   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
9258  *  Fix Command Arguments for Vms_Add_Missing_Braces
9259  */
9260 static const char* apzVms_Add_Missing_BracesPatch[] = {
9261     "format",
9262     "%1 {%2} ",
9263     (char*)NULL };
9265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9267  *  Description of Vms_Decc_Builtin fix
9268  */
9269 tSCC zVms_Decc_BuiltinName[] =
9270      "vms_decc_builtin";
9273  *  File name selection pattern
9274  */
9275 tSCC zVms_Decc_BuiltinList[] =
9276   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
9278  *  Machine/OS name selection pattern
9279  */
9280 tSCC* apzVms_Decc_BuiltinMachs[] = {
9281         "*-*-*vms*",
9282         (const char*)NULL };
9285  *  content selection pattern - do fix if pattern found
9286  */
9287 tSCC zVms_Decc_BuiltinSelect0[] =
9288        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
9290 #define    VMS_DECC_BUILTIN_TEST_CT  1
9291 static tTestDesc aVms_Decc_BuiltinTests[] = {
9292   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
9295  *  Fix Command Arguments for Vms_Decc_Builtin
9296  */
9297 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
9298     "-e", "s@__MEMSET@memset@",
9299     "-e", "s@__MEMMOVE@memmove@",
9300     "-e", "s@__MEMCPY@memcpy@",
9301     "-e", "s@__STRLEN@strlen@",
9302     "-e", "s@__STRCPY@strcpy@",
9303     (char*)NULL };
9305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9307  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
9308  */
9309 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
9310      "vms_define_can_use_extern_prefix";
9313  *  File name selection pattern
9314  */
9315 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
9316   "rtldef/decc$types.h\0";
9318  *  Machine/OS name selection pattern
9319  */
9320 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
9321         "*-*-*vms*",
9322         (const char*)NULL };
9325  *  content selection pattern - do fix if pattern found
9326  */
9327 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
9328        "#[ \t]*else\n\
9329 #[ \t]*if defined\\(__DECCXX\\)\n\
9330 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
9332 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
9333 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
9334   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
9337  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
9338  */
9339 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
9340     "format",
9341     "%0#    elif defined (__GNUC__)\n\
9342 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
9343     (char*)NULL };
9345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9347  *  Description of Vms_Disable_Decc_String_Builtins fix
9348  */
9349 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
9350      "vms_disable_decc_string_builtins";
9353  *  File name selection pattern
9354  */
9355 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
9356   "rtldef/string.h\0";
9358  *  Machine/OS name selection pattern
9359  */
9360 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
9361         "*-*-*vms*",
9362         (const char*)NULL };
9365  *  content selection pattern - do fix if pattern found
9366  */
9367 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
9368        "#if !defined\\(__VAX\\)\n";
9370 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
9371 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
9372   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
9375  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
9376  */
9377 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
9378     "format",
9379     "#if !defined(__VAX) && !defined(__GNUC__)\n",
9380     (char*)NULL };
9382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9384  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
9385  */
9386 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
9387      "vms_do_not_redeclare_hostalias";
9390  *  File name selection pattern
9391  */
9392 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
9393   "rtldef/resolv.h\0";
9395  *  Machine/OS name selection pattern
9396  */
9397 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
9398         "*-*-*vms*",
9399         (const char*)NULL };
9402  *  content selection pattern - do fix if pattern found
9403  */
9404 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
9405        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
9406 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
9408 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
9409 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
9410   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
9413  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
9414  */
9415 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
9416     "format",
9417     "%1\n\
9418 /* %2 */",
9419     (char*)NULL };
9421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9423  *  Description of Vms_Forward_Declare_Struct fix
9424  */
9425 tSCC zVms_Forward_Declare_StructName[] =
9426      "vms_forward_declare_struct";
9429  *  File name selection pattern
9430  */
9431 tSCC zVms_Forward_Declare_StructList[] =
9432   "rtldef/if.h\0";
9434  *  Machine/OS name selection pattern
9435  */
9436 tSCC* apzVms_Forward_Declare_StructMachs[] = {
9437         "*-*-*vms*",
9438         (const char*)NULL };
9441  *  content selection pattern - do fix if pattern found
9442  */
9443 tSCC zVms_Forward_Declare_StructSelect0[] =
9444        "(/\\* forward decls for C\\+\\+ \\*/\n\
9445 )#ifdef __cplusplus\n";
9447 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
9448 static tTestDesc aVms_Forward_Declare_StructTests[] = {
9449   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
9452  *  Fix Command Arguments for Vms_Forward_Declare_Struct
9453  */
9454 static const char* apzVms_Forward_Declare_StructPatch[] = {
9455     "format",
9456     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
9457     (char*)NULL };
9459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9461  *  Description of Vms_No_64bit_Getopt fix
9462  */
9463 tSCC zVms_No_64bit_GetoptName[] =
9464      "vms_no_64bit_getopt";
9467  *  File name selection pattern
9468  */
9469 tSCC zVms_No_64bit_GetoptList[] =
9470   "rtldef/stdio.h\0rtldef/unistd.h\0";
9472  *  Machine/OS name selection pattern
9473  */
9474 tSCC* apzVms_No_64bit_GetoptMachs[] = {
9475         "*-*-*vms*",
9476         (const char*)NULL };
9479  *  content selection pattern - do fix if pattern found
9480  */
9481 tSCC zVms_No_64bit_GetoptSelect0[] =
9482        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
9484 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
9485 static tTestDesc aVms_No_64bit_GetoptTests[] = {
9486   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
9489  *  Fix Command Arguments for Vms_No_64bit_Getopt
9490  */
9491 static const char* apzVms_No_64bit_GetoptPatch[] = {
9492     "format",
9493     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
9494 %0#endif\n",
9495     (char*)NULL };
9497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9499  *  Description of Vms_Use_Fast_Setjmp fix
9500  */
9501 tSCC zVms_Use_Fast_SetjmpName[] =
9502      "vms_use_fast_setjmp";
9505  *  File name selection pattern
9506  */
9507 tSCC zVms_Use_Fast_SetjmpList[] =
9508   "rtldef/setjmp.h\0";
9510  *  Machine/OS name selection pattern
9511  */
9512 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
9513         "*-*-*vms*",
9514         (const char*)NULL };
9517  *  content selection pattern - do fix if pattern found
9518  */
9519 tSCC zVms_Use_Fast_SetjmpSelect0[] =
9520        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
9522 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
9523 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
9524   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
9527  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
9528  */
9529 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
9530     "format",
9531     "%0 defined (__GNUC__) ||",
9532     (char*)NULL };
9534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9536  *  Description of Vms_Use_Pragma_Extern_Model fix
9537  */
9538 tSCC zVms_Use_Pragma_Extern_ModelName[] =
9539      "vms_use_pragma_extern_model";
9542  *  File name selection pattern
9543  */
9544 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
9546  *  Machine/OS name selection pattern
9547  */
9548 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
9549         "*-*-*vms*",
9550         (const char*)NULL };
9553  *  content selection pattern - do fix if pattern found
9554  */
9555 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
9556        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
9557 # pragma extern_model __save\n";
9559 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
9560 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
9561   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
9564  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
9565  */
9566 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
9567     "format",
9568     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
9569 # pragma extern_model __save\n",
9570     (char*)NULL };
9572 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9574  *  Description of Vms_Use_Quoted_Include fix
9575  */
9576 tSCC zVms_Use_Quoted_IncludeName[] =
9577      "vms_use_quoted_include";
9580  *  File name selection pattern
9581  */
9582 tSCC zVms_Use_Quoted_IncludeList[] =
9583   "rtldef/wait.h\0starlet_c/pthread.h\0";
9585  *  Machine/OS name selection pattern
9586  */
9587 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
9588         "*-*-*vms*",
9589         (const char*)NULL };
9592  *  content selection pattern - do fix if pattern found
9593  */
9594 tSCC zVms_Use_Quoted_IncludeSelect0[] =
9595        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
9597 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
9598 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
9599   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
9602  *  Fix Command Arguments for Vms_Use_Quoted_Include
9603  */
9604 static const char* apzVms_Use_Quoted_IncludePatch[] = {
9605     "format",
9606     "%1<sys/%2.h>",
9607     (char*)NULL };
9609 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9611  *  Description of Void_Null fix
9612  */
9613 tSCC zVoid_NullName[] =
9614      "void_null";
9617  *  File name selection pattern
9618  */
9619 tSCC zVoid_NullList[] =
9620   "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";
9622  *  Machine/OS name selection pattern
9623  */
9624 #define apzVoid_NullMachs (const char**)NULL
9627  *  content selection pattern - do fix if pattern found
9628  */
9629 tSCC zVoid_NullSelect0[] =
9630        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
9633  *  content bypass pattern - skip fix if pattern found
9634  */
9635 tSCC zVoid_NullBypass0[] =
9636        "__cplusplus";
9637 tSCC zVoid_NullBypass1[] =
9638        "__null";
9640 #define    VOID_NULL_TEST_CT  3
9641 static tTestDesc aVoid_NullTests[] = {
9642   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
9643   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
9644   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
9647  *  Fix Command Arguments for Void_Null
9648  */
9649 static const char* apzVoid_NullPatch[] = {
9650     "format",
9651     "#ifndef NULL\n\
9652 #ifdef __cplusplus\n\
9653 #ifdef __GNUG__\n\
9654 #define NULL __null\n\
9655 #else /* ! __GNUG__  */\n\
9656 #define NULL 0L\n\
9657 #endif /* __GNUG__  */\n\
9658 #else /* ! __cplusplus  */\n\
9659 #define NULL ((void *)0)\n\
9660 #endif /* __cplusplus  */\n\
9661 #endif /* !NULL  */",
9662     (char*)NULL };
9664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9666  *  Description of Vxworks_Gcc_Problem fix
9667  */
9668 tSCC zVxworks_Gcc_ProblemName[] =
9669      "vxworks_gcc_problem";
9672  *  File name selection pattern
9673  */
9674 tSCC zVxworks_Gcc_ProblemList[] =
9675   "types/vxTypesBase.h\0";
9677  *  Machine/OS name selection pattern
9678  */
9679 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
9682  *  content selection pattern - do fix if pattern found
9683  */
9684 tSCC zVxworks_Gcc_ProblemSelect0[] =
9685        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
9687 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
9688 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
9689   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
9692  *  Fix Command Arguments for Vxworks_Gcc_Problem
9693  */
9694 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
9695     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
9696     "-e", "/[ \t]size_t/i\\\n\
9697 #ifndef _GCC_SIZE_T\\\n\
9698 #define _GCC_SIZE_T\n",
9699     "-e", "/[ \t]size_t/a\\\n\
9700 #endif\n",
9701     "-e", "/[ \t]ptrdiff_t/i\\\n\
9702 #ifndef _GCC_PTRDIFF_T\\\n\
9703 #define _GCC_PTRDIFF_T\n",
9704     "-e", "/[ \t]ptrdiff_t/a\\\n\
9705 #endif\n",
9706     "-e", "/[ \t]wchar_t/i\\\n\
9707 #ifndef _GCC_WCHAR_T\\\n\
9708 #define _GCC_WCHAR_T\n",
9709     "-e", "/[ \t]wchar_t/a\\\n\
9710 #endif\n",
9711     (char*)NULL };
9713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9715  *  Description of Vxworks_Ioctl_Macro fix
9716  */
9717 tSCC zVxworks_Ioctl_MacroName[] =
9718      "vxworks_ioctl_macro";
9721  *  File name selection pattern
9722  */
9723 tSCC zVxworks_Ioctl_MacroList[] =
9724   "ioLib.h\0";
9726  *  Machine/OS name selection pattern
9727  */
9728 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
9729         "*-*-vxworks*",
9730         (const char*)NULL };
9731 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
9732 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
9735  *  Fix Command Arguments for Vxworks_Ioctl_Macro
9736  */
9737 static const char* apzVxworks_Ioctl_MacroPatch[] = {
9738     "format",
9739     "%0\n\
9740 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
9741     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
9742     (char*)NULL };
9744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9746  *  Description of Vxworks_Mkdir_Macro fix
9747  */
9748 tSCC zVxworks_Mkdir_MacroName[] =
9749      "vxworks_mkdir_macro";
9752  *  File name selection pattern
9753  */
9754 tSCC zVxworks_Mkdir_MacroList[] =
9755   "sys/stat.h\0";
9757  *  Machine/OS name selection pattern
9758  */
9759 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
9760         "*-*-vxworks*",
9761         (const char*)NULL };
9762 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
9763 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
9766  *  Fix Command Arguments for Vxworks_Mkdir_Macro
9767  */
9768 static const char* apzVxworks_Mkdir_MacroPatch[] = {
9769     "format",
9770     "%0\n\
9771 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
9772     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
9773     (char*)NULL };
9775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9777  *  Description of Vxworks_Needs_Vxtypes fix
9778  */
9779 tSCC zVxworks_Needs_VxtypesName[] =
9780      "vxworks_needs_vxtypes";
9783  *  File name selection pattern
9784  */
9785 tSCC zVxworks_Needs_VxtypesList[] =
9786   "time.h\0";
9788  *  Machine/OS name selection pattern
9789  */
9790 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
9793  *  content selection pattern - do fix if pattern found
9794  */
9795 tSCC zVxworks_Needs_VxtypesSelect0[] =
9796        "uint_t([ \t]+_clocks_per_sec)";
9798 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
9799 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
9800   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
9803  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
9804  */
9805 static const char* apzVxworks_Needs_VxtypesPatch[] = {
9806     "format",
9807     "unsigned int%1",
9808     (char*)NULL };
9810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9812  *  Description of Vxworks_Needs_Vxworks fix
9813  */
9814 tSCC zVxworks_Needs_VxworksName[] =
9815      "vxworks_needs_vxworks";
9818  *  File name selection pattern
9819  */
9820 tSCC zVxworks_Needs_VxworksList[] =
9821   "sys/stat.h\0";
9823  *  Machine/OS name selection pattern
9824  */
9825 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
9828  *  content selection pattern - do fix if pattern found
9829  */
9830 tSCC zVxworks_Needs_VxworksSelect0[] =
9831        "#[ \t]define[ \t]+__INCstath";
9834  *  perform the 'test' shell command - do fix on success
9835  */
9836 tSCC zVxworks_Needs_VxworksTest0[] =
9837        " -r types/vxTypesOld.h";
9838 tSCC zVxworks_Needs_VxworksTest1[] =
9839        " -n \"`egrep '#include' $file`\"";
9840 tSCC zVxworks_Needs_VxworksTest2[] =
9841        " -n \"`egrep ULONG $file`\"";
9843 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
9844 static tTestDesc aVxworks_Needs_VxworksTests[] = {
9845   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
9846   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
9847   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
9848   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
9851  *  Fix Command Arguments for Vxworks_Needs_Vxworks
9852  */
9853 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
9854     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
9855 #include <types/vxTypesOld.h>\n",
9856     (char*)NULL };
9858 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9860  *  Description of Vxworks_Regs fix
9861  */
9862 tSCC zVxworks_RegsName[] =
9863      "vxworks_regs";
9866  *  File name selection pattern
9867  */
9868 #define zVxworks_RegsList (char*)NULL
9870  *  Machine/OS name selection pattern
9871  */
9872 tSCC* apzVxworks_RegsMachs[] = {
9873         "*-*-vxworks*",
9874         (const char*)NULL };
9877  *  content selection pattern - do fix if pattern found
9878  */
9879 tSCC zVxworks_RegsSelect0[] =
9880        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
9882 #define    VXWORKS_REGS_TEST_CT  1
9883 static tTestDesc aVxworks_RegsTests[] = {
9884   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
9887  *  Fix Command Arguments for Vxworks_Regs
9888  */
9889 static const char* apzVxworks_RegsPatch[] = {
9890     "format",
9891     "#include <arch/../regs.h>",
9892     (char*)NULL };
9894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9896  *  Description of Vxworks_Time fix
9897  */
9898 tSCC zVxworks_TimeName[] =
9899      "vxworks_time";
9902  *  File name selection pattern
9903  */
9904 tSCC zVxworks_TimeList[] =
9905   "time.h\0";
9907  *  Machine/OS name selection pattern
9908  */
9909 #define apzVxworks_TimeMachs (const char**)NULL
9912  *  content selection pattern - do fix if pattern found
9913  */
9914 tSCC zVxworks_TimeSelect0[] =
9915        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
9918  *  perform the 'test' shell command - do fix on success
9919  */
9920 tSCC zVxworks_TimeTest0[] =
9921        " -r vxWorks.h";
9923 #define    VXWORKS_TIME_TEST_CT  2
9924 static tTestDesc aVxworks_TimeTests[] = {
9925   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
9926   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
9929  *  Fix Command Arguments for Vxworks_Time
9930  */
9931 static const char* apzVxworks_TimePatch[] = {
9932     "format",
9933     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
9934 #ifdef __cplusplus\n\
9935 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
9936 #else\n\
9937 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
9938 #endif\n\
9939 #define __gcc_VOIDFUNCPTR_defined\n\
9940 #endif\n\
9941 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
9942     (char*)NULL };
9944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9946  *  Description of Vxworks_Write_Const fix
9947  */
9948 tSCC zVxworks_Write_ConstName[] =
9949      "vxworks_write_const";
9952  *  File name selection pattern
9953  */
9954 tSCC zVxworks_Write_ConstList[] =
9955   "ioLib.h\0";
9957  *  Machine/OS name selection pattern
9958  */
9959 tSCC* apzVxworks_Write_ConstMachs[] = {
9960         "*-*-vxworks*",
9961         (const char*)NULL };
9962 #define VXWORKS_WRITE_CONST_TEST_CT  0
9963 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
9966  *  Fix Command Arguments for Vxworks_Write_Const
9967  */
9968 static const char* apzVxworks_Write_ConstPatch[] = {
9969     "format",
9970     "extern int  write (int, const char*, size_t);",
9971     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
9972     (char*)NULL };
9974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9976  *  Description of Vxworks_Iolib_Include_Unistd fix
9977  */
9978 tSCC zVxworks_Iolib_Include_UnistdName[] =
9979      "vxworks_iolib_include_unistd";
9982  *  File name selection pattern
9983  */
9984 tSCC zVxworks_Iolib_Include_UnistdList[] =
9985   "ioLib.h\0";
9987  *  Machine/OS name selection pattern
9988  */
9989 tSCC* apzVxworks_Iolib_Include_UnistdMachs[] = {
9990         "*-*-vxworks*",
9991         (const char*)NULL };
9994  *  content selection pattern - do fix if pattern found
9995  */
9996 tSCC zVxworks_Iolib_Include_UnistdSelect0[] =
9997        "#include \"unistd.h\"";
9999 #define    VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT  1
10000 static tTestDesc aVxworks_Iolib_Include_UnistdTests[] = {
10001   { TT_EGREP,    zVxworks_Iolib_Include_UnistdSelect0, (regex_t*)NULL }, };
10004  *  Fix Command Arguments for Vxworks_Iolib_Include_Unistd
10005  */
10006 static const char* apzVxworks_Iolib_Include_UnistdPatch[] = {
10007     "format",
10008     "#include <unistd.h>",
10009     (char*)NULL };
10011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10013  *  Description of X11_Class fix
10014  */
10015 tSCC zX11_ClassName[] =
10016      "x11_class";
10019  *  File name selection pattern
10020  */
10021 tSCC zX11_ClassList[] =
10022   "X11/ShellP.h\0";
10024  *  Machine/OS name selection pattern
10025  */
10026 #define apzX11_ClassMachs (const char**)NULL
10029  *  content selection pattern - do fix if pattern found
10030  */
10031 tSCC zX11_ClassSelect0[] =
10032        "^([ \t]*char \\*)class;(.*)";
10035  *  content bypass pattern - skip fix if pattern found
10036  */
10037 tSCC zX11_ClassBypass0[] =
10038        "__cplusplus";
10040 #define    X11_CLASS_TEST_CT  2
10041 static tTestDesc aX11_ClassTests[] = {
10042   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
10043   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
10046  *  Fix Command Arguments for X11_Class
10047  */
10048 static const char* apzX11_ClassPatch[] = {
10049     "format",
10050     "#ifdef __cplusplus\n\
10051 %1c_class;%2\n\
10052 #else\n\
10053 %1class;%2\n\
10054 #endif",
10055     (char*)NULL };
10057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10059  *  Description of X11_Class_Usage fix
10060  */
10061 tSCC zX11_Class_UsageName[] =
10062      "x11_class_usage";
10065  *  File name selection pattern
10066  */
10067 tSCC zX11_Class_UsageList[] =
10068   "Xm/BaseClassI.h\0";
10070  *  Machine/OS name selection pattern
10071  */
10072 #define apzX11_Class_UsageMachs (const char**)NULL
10075  *  content selection pattern - do fix if pattern found
10076  */
10077 tSCC zX11_Class_UsageSelect0[] =
10078        " class\\)";
10081  *  content bypass pattern - skip fix if pattern found
10082  */
10083 tSCC zX11_Class_UsageBypass0[] =
10084        "__cplusplus";
10086 #define    X11_CLASS_USAGE_TEST_CT  2
10087 static tTestDesc aX11_Class_UsageTests[] = {
10088   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
10089   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
10092  *  Fix Command Arguments for X11_Class_Usage
10093  */
10094 static const char* apzX11_Class_UsagePatch[] = {
10095     "format",
10096     " c_class)",
10097     (char*)NULL };
10099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10101  *  Description of X11_New fix
10102  */
10103 tSCC zX11_NewName[] =
10104      "x11_new";
10107  *  File name selection pattern
10108  */
10109 tSCC zX11_NewList[] =
10110   "Xm/Traversal.h\0";
10112  *  Machine/OS name selection pattern
10113  */
10114 #define apzX11_NewMachs (const char**)NULL
10117  *  content bypass pattern - skip fix if pattern found
10118  */
10119 tSCC zX11_NewBypass0[] =
10120        "__cplusplus";
10122 #define    X11_NEW_TEST_CT  1
10123 static tTestDesc aX11_NewTests[] = {
10124   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
10127  *  Fix Command Arguments for X11_New
10128  */
10129 static const char* apzX11_NewPatch[] = { sed_cmd_z,
10130     "-e", "/Widget\told, new;/i\\\n\
10131 #ifdef __cplusplus\\\n\
10132 \\\tWidget\told, c_new;\\\n\
10133 #else\n",
10134     "-e", "/Widget\told, new;/a\\\n\
10135 #endif\n",
10136     "-e", "s/Widget new,/Widget c_new,/g",
10137     (char*)NULL };
10139 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10141  *  Description of X11_Sprintf fix
10142  */
10143 tSCC zX11_SprintfName[] =
10144      "x11_sprintf";
10147  *  File name selection pattern
10148  */
10149 tSCC zX11_SprintfList[] =
10150   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
10152  *  Machine/OS name selection pattern
10153  */
10154 #define apzX11_SprintfMachs (const char**)NULL
10157  *  content selection pattern - do fix if pattern found
10158  */
10159 tSCC zX11_SprintfSelect0[] =
10160        "^extern char \\*\tsprintf\\(\\);$";
10162 #define    X11_SPRINTF_TEST_CT  1
10163 static tTestDesc aX11_SprintfTests[] = {
10164   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
10167  *  Fix Command Arguments for X11_Sprintf
10168  */
10169 static const char* apzX11_SprintfPatch[] = {
10170     "format",
10171     "#ifndef __STDC__\n\
10172 %0\n\
10173 #endif /* !defined __STDC__ */",
10174     (char*)NULL };
10177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10179  *  List of all fixes
10180  */
10181 #define REGEX_COUNT          289
10182 #define MACH_LIST_SIZE_LIMIT 187
10183 #define FIX_COUNT            251
10186  *  Enumerate the fixes
10187  */
10188 typedef enum {
10189     AAB_AIX_STDIO_FIXIDX,
10190     AAB_AIX_FCNTL_FIXIDX,
10191     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
10192     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
10193     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
10194     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
10195     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
10196     AAB_SUN_MEMCPY_FIXIDX,
10197     AAB_VXWORKS_ASSERT_FIXIDX,
10198     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
10199     AAB_VXWORKS_UNISTD_FIXIDX,
10200     AIX_ASSERT_FIXIDX,
10201     AIX_COMPLEX_FIXIDX,
10202     AIX_EXTERNC_FIXIDX,
10203     AIX_EXTERNCPP1_FIXIDX,
10204     AIX_EXTERNCPP2_FIXIDX,
10205     AIX_MALLOC_FIXIDX,
10206     AIX_NET_IF_ARP_FIXIDX,
10207     AIX_NULL_FIXIDX,
10208     AIX_ONCE_INIT_1_FIXIDX,
10209     AIX_ONCE_INIT_2_FIXIDX,
10210     AIX_MUTEX_INITIALIZER_1_FIXIDX,
10211     AIX_COND_INITIALIZER_1_FIXIDX,
10212     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
10213     AIX_PTHREAD_FIXIDX,
10214     AIX_STDINT_1_FIXIDX,
10215     AIX_STDINT_2_FIXIDX,
10216     AIX_STDINT_3_FIXIDX,
10217     AIX_STDINT_4_FIXIDX,
10218     AIX_STDINT_5_FIXIDX,
10219     AIX_STDIO_INLINE_FIXIDX,
10220     AIX_STDLIB_MALLOC_FIXIDX,
10221     AIX_STDLIB_REALLOC_FIXIDX,
10222     AIX_STDLIB_CALLOC_FIXIDX,
10223     AIX_STDLIB_VALLOC_FIXIDX,
10224     AIX_STDLIB_VEC_MALLOC_FIXIDX,
10225     AIX_STDLIB_VEC_CALLOC_FIXIDX,
10226     AIX_STRTOF_CONST_FIXIDX,
10227     AIX_SYSMACHINE_FIXIDX,
10228     AIX_SYSWAIT_2_FIXIDX,
10229     AIX_VOLATILE_FIXIDX,
10230     AIX_UNISTD_FIXIDX,
10231     ALPHA___ASSERT_FIXIDX,
10232     ALPHA_ASSERT_FIXIDX,
10233     ALPHA_GETOPT_FIXIDX,
10234     ALPHA_IF_SEMICOLON_FIXIDX,
10235     ALPHA_PARENS_FIXIDX,
10236     ALPHA_SBRK_FIXIDX,
10237     AVOID_BOOL_DEFINE_FIXIDX,
10238     AVOID_BOOL_TYPE_FIXIDX,
10239     AVOID_WCHAR_T_TYPE_FIXIDX,
10240     BAD_STRUCT_TERM_FIXIDX,
10241     BADQUOTE_FIXIDX,
10242     BROKEN_ASSERT_STDIO_FIXIDX,
10243     BROKEN_ASSERT_STDLIB_FIXIDX,
10244     BROKEN_CABS_FIXIDX,
10245     BROKEN_NAN_FIXIDX,
10246     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
10247     CTRL_QUOTES_DEF_FIXIDX,
10248     CTRL_QUOTES_USE_FIXIDX,
10249     CXX_UNREADY_FIXIDX,
10250     DARWIN_AVAILABILITYINTERNAL_FIXIDX,
10251     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
10252     DARWIN_EXTERNC_FIXIDX,
10253     DARWIN_GCC4_BREAKAGE_FIXIDX,
10254     DARWIN_LONGJMP_NORETURN_FIXIDX,
10255     DARWIN_OS_TRACE_1_FIXIDX,
10256     DARWIN_OS_TRACE_2_FIXIDX,
10257     DARWIN_OS_TRACE_3_FIXIDX,
10258     DARWIN_PRIVATE_EXTERN_FIXIDX,
10259     DARWIN_STDINT_1_FIXIDX,
10260     DARWIN_STDINT_2_FIXIDX,
10261     DARWIN_STDINT_3_FIXIDX,
10262     DARWIN_STDINT_4_FIXIDX,
10263     DARWIN_STDINT_5_FIXIDX,
10264     DARWIN_STDINT_6_FIXIDX,
10265     DARWIN_STDINT_7_FIXIDX,
10266     DEC_INTERN_ASM_FIXIDX,
10267     DJGPP_WCHAR_H_FIXIDX,
10268     ECD_CURSOR_FIXIDX,
10269     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
10270     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
10271     FREEBSD_GCC3_BREAKAGE_FIXIDX,
10272     FREEBSD_GCC4_BREAKAGE_FIXIDX,
10273     GLIBC_C99_INLINE_1_FIXIDX,
10274     GLIBC_C99_INLINE_1A_FIXIDX,
10275     GLIBC_C99_INLINE_2_FIXIDX,
10276     GLIBC_C99_INLINE_3_FIXIDX,
10277     GLIBC_C99_INLINE_4_FIXIDX,
10278     GLIBC_MUTEX_INIT_FIXIDX,
10279     GLIBC_STDINT_FIXIDX,
10280     GLIBC_STRNCPY_FIXIDX,
10281     GLIBC_TGMATH_FIXIDX,
10282     GNU_TYPES_FIXIDX,
10283     HP_INLINE_FIXIDX,
10284     HP_SYSFILE_FIXIDX,
10285     HPPA_HPUX_FP_MACROS_FIXIDX,
10286     HPUX10_CPP_POW_INLINE_FIXIDX,
10287     HPUX11_CPP_POW_INLINE_FIXIDX,
10288     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
10289     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
10290     HPUX10_STDIO_DECLARATIONS_FIXIDX,
10291     HPPA_HPUX11_ALLOCA_FIXIDX,
10292     HPUX11_ABS_FIXIDX,
10293     HPUX11_LWP_RWLOCK_VALID_FIXIDX,
10294     HPUX11_EXTERN_SENDFILE_FIXIDX,
10295     HPUX11_EXTERN_SENDPATH_FIXIDX,
10296     HPUX11_FABSF_FIXIDX,
10297     HPUX11_PTHREAD_POINTER_FIXIDX,
10298     HPUX11_PTHREAD_CONST_FIXIDX,
10299     HPUX11_SIZE_T_FIXIDX,
10300     HPUX11_SNPRINTF_FIXIDX,
10301     HPUX11_VSNPRINTF_FIXIDX,
10302     HPUX_VSSCANF_FIXIDX,
10303     HPUX8_BOGUS_INLINES_FIXIDX,
10304     HPUX_C99_INTPTR_FIXIDX,
10305     HPUX_C99_INTTYPES_FIXIDX,
10306     HPUX_C99_INTTYPES2_FIXIDX,
10307     HPUX_CTYPE_MACROS_FIXIDX,
10308     HPUX_EXTERN_ERRNO_FIXIDX,
10309     HPUX_HTONL_FIXIDX,
10310     HPUX_IMAGINARY_I_FIXIDX,
10311     HPUX_INTTYPE_INT8_T_FIXIDX,
10312     HPUX_LONG_DOUBLE_FIXIDX,
10313     HPUX_LONG_DOUBLE_2_FIXIDX,
10314     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
10315     HPUX_SPU_INFO_FIXIDX,
10316     HPUX_STDINT_LEAST_FAST_FIXIDX,
10317     HPUX_LONGJMP_FIXIDX,
10318     HPUX_SYSTIME_FIXIDX,
10319     HUGE_VAL_HEX_FIXIDX,
10320     HUGE_VALF_HEX_FIXIDX,
10321     HUGE_VALL_HEX_FIXIDX,
10322     INT_ABORT_FREE_AND_EXIT_FIXIDX,
10323     IO_QUOTES_DEF_FIXIDX,
10324     IO_QUOTES_USE_FIXIDX,
10325     IP_MISSING_SEMI_FIXIDX,
10326     IRIX_LIMITS_CONST_FIXIDX,
10327     IRIX_STDIO_VA_LIST_FIXIDX,
10328     KANDR_CONCAT_FIXIDX,
10329     LINUX_IA64_UCONTEXT_FIXIDX,
10330     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
10331     LYNXOS_MISSING_PUTENV_FIXIDX,
10332     MACHINE_ANSI_H_VA_LIST_FIXIDX,
10333     MACHINE_NAME_FIXIDX,
10334     MATH_EXCEPTION_FIXIDX,
10335     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
10336     NESTED_AUTH_DES_FIXIDX,
10337     NETBSD_C99_INLINE_1_FIXIDX,
10338     NETBSD_C99_INLINE_2_FIXIDX,
10339     NETBSD_EXTRA_SEMICOLON_FIXIDX,
10340     NEWLIB_STDINT_1_FIXIDX,
10341     NEWLIB_STDINT_2_FIXIDX,
10342     NEXT_MATH_PREFIX_FIXIDX,
10343     NEXT_TEMPLATE_FIXIDX,
10344     NEXT_VOLITILE_FIXIDX,
10345     NEXT_WAIT_UNION_FIXIDX,
10346     NODEENT_SYNTAX_FIXIDX,
10347     OPENBSD_NULL_DEFINITION_FIXIDX,
10348     OBSTACK_LVALUE_CAST_FIXIDX,
10349     OPENBSD_VA_START_FIXIDX,
10350     OSF_NAMESPACE_A_FIXIDX,
10351     OSF_NAMESPACE_C_FIXIDX,
10352     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
10353     READ_RET_TYPE_FIXIDX,
10354     RPC_XDR_LVALUE_CAST_A_FIXIDX,
10355     RPC_XDR_LVALUE_CAST_B_FIXIDX,
10356     RS6000_DOUBLE_FIXIDX,
10357     RS6000_FCHMOD_FIXIDX,
10358     RS6000_PARAM_FIXIDX,
10359     SOLARIS___RESTRICT_FIXIDX,
10360     SOLARIS_COMPLEX_FIXIDX,
10361     SOLARIS_COMPLEX_CXX_FIXIDX,
10362     SOLARIS_CXX_LINKAGE_FIXIDX,
10363     SOLARIS_GETC_STRICT_STDC_FIXIDX,
10364     SOLARIS_GETS_C11_FIXIDX,
10365     SOLARIS_GETS_CXX14_FIXIDX,
10366     SOLARIS_INT_CONST_FIXIDX,
10367     SOLARIS_INT_LIMITS_1_FIXIDX,
10368     SOLARIS_INT_LIMITS_2_FIXIDX,
10369     SOLARIS_INT_LIMITS_3_FIXIDX,
10370     SOLARIS_MATH_1_FIXIDX,
10371     SOLARIS_MATH_10_FIXIDX,
10372     SOLARIS_MATH_2_FIXIDX,
10373     SOLARIS_MATH_3_FIXIDX,
10374     SOLARIS_MATH_4_FIXIDX,
10375     SOLARIS_MATH_8_FIXIDX,
10376     SOLARIS_MATH_9_FIXIDX,
10377     SOLARIS_MATH_11_FIXIDX,
10378     SOLARIS_MATH_12_FIXIDX,
10379     SOLARIS_ONCE_INIT_1_FIXIDX,
10380     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
10381     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
10382     SOLARIS_RWLOCK_INIT_1_FIXIDX,
10383     SOLARIS_STD___FILBUF_FIXIDX,
10384     SOLARIS_STD_GETS_CXX14_FIXIDX,
10385     SOLARIS_STDIO_TAG_FIXIDX,
10386     SOLARIS_STDLIB_NORETURN_FIXIDX,
10387     STATSSWTCH_FIXIDX,
10388     STDIO_STDARG_H_FIXIDX,
10389     STDIO_VA_LIST_FIXIDX,
10390     STDIO_VA_LIST_CLIENTS_FIXIDX,
10391     STRICT_ANSI_NOT_FIXIDX,
10392     STRICT_ANSI_NOT_CTD_FIXIDX,
10393     STRICT_ANSI_ONLY_FIXIDX,
10394     STRUCT_FILE_FIXIDX,
10395     STRUCT_SOCKADDR_FIXIDX,
10396     SUN_AUTH_PROTO_FIXIDX,
10397     SUN_BOGUS_IFDEF_FIXIDX,
10398     SUN_CATMACRO_FIXIDX,
10399     SUN_MALLOC_FIXIDX,
10400     SUN_RUSERS_SEMI_FIXIDX,
10401     SUN_SIGNAL_FIXIDX,
10402     SUNOS_STRLEN_FIXIDX,
10403     SUSE_LINUX_VT_CXX_FIXIDX,
10404     SVR4_DISABLE_OPT_FIXIDX,
10405     SVR4_GETCWD_FIXIDX,
10406     SVR4_PROFIL_FIXIDX,
10407     SVR4_SIGHANDLER_TYPE_FIXIDX,
10408     SVR4_UNDECLARED_GETRNGE_FIXIDX,
10409     SYSV68_STRING_FIXIDX,
10410     SYSZ_STDLIB_FOR_SUN_FIXIDX,
10411     THREAD_KEYWORD_FIXIDX,
10412     TINFO_CPLUSPLUS_FIXIDX,
10413     ULTRIX_CONST_FIXIDX,
10414     ULTRIX_CONST2_FIXIDX,
10415     VA_I960_MACRO_FIXIDX,
10416     VMS_ADD_MISSING_BRACES_FIXIDX,
10417     VMS_DECC_BUILTIN_FIXIDX,
10418     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
10419     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
10420     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
10421     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
10422     VMS_NO_64BIT_GETOPT_FIXIDX,
10423     VMS_USE_FAST_SETJMP_FIXIDX,
10424     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
10425     VMS_USE_QUOTED_INCLUDE_FIXIDX,
10426     VOID_NULL_FIXIDX,
10427     VXWORKS_GCC_PROBLEM_FIXIDX,
10428     VXWORKS_IOCTL_MACRO_FIXIDX,
10429     VXWORKS_MKDIR_MACRO_FIXIDX,
10430     VXWORKS_NEEDS_VXTYPES_FIXIDX,
10431     VXWORKS_NEEDS_VXWORKS_FIXIDX,
10432     VXWORKS_REGS_FIXIDX,
10433     VXWORKS_TIME_FIXIDX,
10434     VXWORKS_WRITE_CONST_FIXIDX,
10435     VXWORKS_IOLIB_INCLUDE_UNISTD_FIXIDX,
10436     X11_CLASS_FIXIDX,
10437     X11_CLASS_USAGE_FIXIDX,
10438     X11_NEW_FIXIDX,
10439     X11_SPRINTF_FIXIDX
10440 } t_fixinc_idx;
10442 tFixDesc fixDescList[ FIX_COUNT ] = {
10443   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
10444      apzAab_Aix_StdioMachs,
10445      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10446      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
10448   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
10449      apzAab_Aix_FcntlMachs,
10450      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10451      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
10453   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
10454      apzAab_Darwin7_9_Long_Double_FuncsMachs,
10455      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10456      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
10458   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
10459      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
10460      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10461      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
10463   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
10464      apzAab_Fd_Zero_Gnu_Types_HMachs,
10465      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10466      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
10468   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
10469      apzAab_Fd_Zero_Selectbits_HMachs,
10470      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10471      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
10473   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
10474      apzAab_Solaris_Sys_Varargs_HMachs,
10475      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10476      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
10478   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
10479      apzAab_Sun_MemcpyMachs,
10480      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10481      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
10483   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
10484      apzAab_Vxworks_AssertMachs,
10485      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10486      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
10488   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
10489      apzAab_Vxworks_Regs_VxtypesMachs,
10490      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10491      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
10493   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
10494      apzAab_Vxworks_UnistdMachs,
10495      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10496      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
10498   {  zAix_AssertName,    zAix_AssertList,
10499      apzAix_AssertMachs,
10500      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10501      aAix_AssertTests,   apzAix_AssertPatch, 0 },
10503   {  zAix_ComplexName,    zAix_ComplexList,
10504      apzAix_ComplexMachs,
10505      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10506      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
10508   {  zAix_ExterncName,    zAix_ExterncList,
10509      apzAix_ExterncMachs,
10510      AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10511      aAix_ExterncTests,   apzAix_ExterncPatch, 0 },
10513   {  zAix_Externcpp1Name,    zAix_Externcpp1List,
10514      apzAix_Externcpp1Machs,
10515      AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10516      aAix_Externcpp1Tests,   apzAix_Externcpp1Patch, 0 },
10518   {  zAix_Externcpp2Name,    zAix_Externcpp2List,
10519      apzAix_Externcpp2Machs,
10520      AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10521      aAix_Externcpp2Tests,   apzAix_Externcpp2Patch, 0 },
10523   {  zAix_MallocName,    zAix_MallocList,
10524      apzAix_MallocMachs,
10525      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10526      aAix_MallocTests,   apzAix_MallocPatch, 0 },
10528   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
10529      apzAix_Net_If_ArpMachs,
10530      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10531      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
10533   {  zAix_NullName,    zAix_NullList,
10534      apzAix_NullMachs,
10535      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10536      aAix_NullTests,   apzAix_NullPatch, 0 },
10538   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
10539      apzAix_Once_Init_1Machs,
10540      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10541      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
10543   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
10544      apzAix_Once_Init_2Machs,
10545      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10546      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
10548   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
10549      apzAix_Mutex_Initializer_1Machs,
10550      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10551      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
10553   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
10554      apzAix_Cond_Initializer_1Machs,
10555      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10556      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
10558   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
10559      apzAix_Rwlock_Initializer_1Machs,
10560      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10561      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
10563   {  zAix_PthreadName,    zAix_PthreadList,
10564      apzAix_PthreadMachs,
10565      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10566      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
10568   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
10569      apzAix_Stdint_1Machs,
10570      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10571      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
10573   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
10574      apzAix_Stdint_2Machs,
10575      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10576      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
10578   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
10579      apzAix_Stdint_3Machs,
10580      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10581      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
10583   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
10584      apzAix_Stdint_4Machs,
10585      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10586      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
10588   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
10589      apzAix_Stdint_5Machs,
10590      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10591      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
10593   {  zAix_Stdio_InlineName,    zAix_Stdio_InlineList,
10594      apzAix_Stdio_InlineMachs,
10595      AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10596      aAix_Stdio_InlineTests,   apzAix_Stdio_InlinePatch, 0 },
10598   {  zAix_Stdlib_MallocName,    zAix_Stdlib_MallocList,
10599      apzAix_Stdlib_MallocMachs,
10600      AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10601      aAix_Stdlib_MallocTests,   apzAix_Stdlib_MallocPatch, 0 },
10603   {  zAix_Stdlib_ReallocName,    zAix_Stdlib_ReallocList,
10604      apzAix_Stdlib_ReallocMachs,
10605      AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10606      aAix_Stdlib_ReallocTests,   apzAix_Stdlib_ReallocPatch, 0 },
10608   {  zAix_Stdlib_CallocName,    zAix_Stdlib_CallocList,
10609      apzAix_Stdlib_CallocMachs,
10610      AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10611      aAix_Stdlib_CallocTests,   apzAix_Stdlib_CallocPatch, 0 },
10613   {  zAix_Stdlib_VallocName,    zAix_Stdlib_VallocList,
10614      apzAix_Stdlib_VallocMachs,
10615      AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10616      aAix_Stdlib_VallocTests,   apzAix_Stdlib_VallocPatch, 0 },
10618   {  zAix_Stdlib_Vec_MallocName,    zAix_Stdlib_Vec_MallocList,
10619      apzAix_Stdlib_Vec_MallocMachs,
10620      AIX_STDLIB_VEC_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10621      aAix_Stdlib_Vec_MallocTests,   apzAix_Stdlib_Vec_MallocPatch, 0 },
10623   {  zAix_Stdlib_Vec_CallocName,    zAix_Stdlib_Vec_CallocList,
10624      apzAix_Stdlib_Vec_CallocMachs,
10625      AIX_STDLIB_VEC_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10626      aAix_Stdlib_Vec_CallocTests,   apzAix_Stdlib_Vec_CallocPatch, 0 },
10628   {  zAix_Strtof_ConstName,    zAix_Strtof_ConstList,
10629      apzAix_Strtof_ConstMachs,
10630      AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10631      aAix_Strtof_ConstTests,   apzAix_Strtof_ConstPatch, 0 },
10633   {  zAix_SysmachineName,    zAix_SysmachineList,
10634      apzAix_SysmachineMachs,
10635      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10636      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
10638   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
10639      apzAix_Syswait_2Machs,
10640      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10641      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
10643   {  zAix_VolatileName,    zAix_VolatileList,
10644      apzAix_VolatileMachs,
10645      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10646      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
10648   {  zAix_UnistdName,    zAix_UnistdList,
10649      apzAix_UnistdMachs,
10650      AIX_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10651      aAix_UnistdTests,   apzAix_UnistdPatch, 0 },
10653   {  zAlpha___AssertName,    zAlpha___AssertList,
10654      apzAlpha___AssertMachs,
10655      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10656      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
10658   {  zAlpha_AssertName,    zAlpha_AssertList,
10659      apzAlpha_AssertMachs,
10660      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10661      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
10663   {  zAlpha_GetoptName,    zAlpha_GetoptList,
10664      apzAlpha_GetoptMachs,
10665      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10666      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
10668   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
10669      apzAlpha_If_SemicolonMachs,
10670      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10671      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
10673   {  zAlpha_ParensName,    zAlpha_ParensList,
10674      apzAlpha_ParensMachs,
10675      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10676      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
10678   {  zAlpha_SbrkName,    zAlpha_SbrkList,
10679      apzAlpha_SbrkMachs,
10680      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10681      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
10683   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
10684      apzAvoid_Bool_DefineMachs,
10685      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10686      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
10688   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
10689      apzAvoid_Bool_TypeMachs,
10690      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10691      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
10693   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
10694      apzAvoid_Wchar_T_TypeMachs,
10695      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10696      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
10698   {  zBad_Struct_TermName,    zBad_Struct_TermList,
10699      apzBad_Struct_TermMachs,
10700      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10701      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
10703   {  zBadquoteName,    zBadquoteList,
10704      apzBadquoteMachs,
10705      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10706      aBadquoteTests,   apzBadquotePatch, 0 },
10708   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
10709      apzBroken_Assert_StdioMachs,
10710      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10711      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
10713   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
10714      apzBroken_Assert_StdlibMachs,
10715      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10716      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
10718   {  zBroken_CabsName,    zBroken_CabsList,
10719      apzBroken_CabsMachs,
10720      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
10721      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
10723   {  zBroken_NanName,    zBroken_NanList,
10724      apzBroken_NanMachs,
10725      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10726      aBroken_NanTests,   apzBroken_NanPatch, 0 },
10728   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
10729      apzBsd_Stdio_Attrs_ConflictMachs,
10730      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10731      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
10733   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
10734      apzCtrl_Quotes_DefMachs,
10735      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10736      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
10738   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
10739      apzCtrl_Quotes_UseMachs,
10740      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10741      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
10743   {  zCxx_UnreadyName,    zCxx_UnreadyList,
10744      apzCxx_UnreadyMachs,
10745      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10746      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
10748   {  zDarwin_AvailabilityinternalName,    zDarwin_AvailabilityinternalList,
10749      apzDarwin_AvailabilityinternalMachs,
10750      DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10751      aDarwin_AvailabilityinternalTests,   apzDarwin_AvailabilityinternalPatch, 0 },
10753   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
10754      apzDarwin_9_Long_Double_Funcs_2Machs,
10755      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10756      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
10758   {  zDarwin_ExterncName,    zDarwin_ExterncList,
10759      apzDarwin_ExterncMachs,
10760      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10761      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
10763   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
10764      apzDarwin_Gcc4_BreakageMachs,
10765      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10766      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
10768   {  zDarwin_Longjmp_NoreturnName,    zDarwin_Longjmp_NoreturnList,
10769      apzDarwin_Longjmp_NoreturnMachs,
10770      DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10771      aDarwin_Longjmp_NoreturnTests,   apzDarwin_Longjmp_NoreturnPatch, 0 },
10773   {  zDarwin_Os_Trace_1Name,    zDarwin_Os_Trace_1List,
10774      apzDarwin_Os_Trace_1Machs,
10775      DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10776      aDarwin_Os_Trace_1Tests,   apzDarwin_Os_Trace_1Patch, 0 },
10778   {  zDarwin_Os_Trace_2Name,    zDarwin_Os_Trace_2List,
10779      apzDarwin_Os_Trace_2Machs,
10780      DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10781      aDarwin_Os_Trace_2Tests,   apzDarwin_Os_Trace_2Patch, 0 },
10783   {  zDarwin_Os_Trace_3Name,    zDarwin_Os_Trace_3List,
10784      apzDarwin_Os_Trace_3Machs,
10785      DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10786      aDarwin_Os_Trace_3Tests,   apzDarwin_Os_Trace_3Patch, 0 },
10788   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
10789      apzDarwin_Private_ExternMachs,
10790      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10791      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
10793   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
10794      apzDarwin_Stdint_1Machs,
10795      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10796      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
10798   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
10799      apzDarwin_Stdint_2Machs,
10800      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10801      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
10803   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
10804      apzDarwin_Stdint_3Machs,
10805      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10806      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
10808   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
10809      apzDarwin_Stdint_4Machs,
10810      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10811      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
10813   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
10814      apzDarwin_Stdint_5Machs,
10815      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10816      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
10818   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
10819      apzDarwin_Stdint_6Machs,
10820      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10821      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
10823   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
10824      apzDarwin_Stdint_7Machs,
10825      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10826      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
10828   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
10829      apzDec_Intern_AsmMachs,
10830      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
10831      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
10833   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
10834      apzDjgpp_Wchar_HMachs,
10835      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10836      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
10838   {  zEcd_CursorName,    zEcd_CursorList,
10839      apzEcd_CursorMachs,
10840      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10841      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
10843   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
10844      apzFeraiseexcept_Nosse_DivbyzeroMachs,
10845      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10846      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
10848   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
10849      apzFeraiseexcept_Nosse_InvalidMachs,
10850      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10851      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
10853   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
10854      apzFreebsd_Gcc3_BreakageMachs,
10855      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10856      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
10858   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
10859      apzFreebsd_Gcc4_BreakageMachs,
10860      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10861      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
10863   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
10864      apzGlibc_C99_Inline_1Machs,
10865      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10866      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
10868   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
10869      apzGlibc_C99_Inline_1aMachs,
10870      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10871      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
10873   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
10874      apzGlibc_C99_Inline_2Machs,
10875      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
10876      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
10878   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
10879      apzGlibc_C99_Inline_3Machs,
10880      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10881      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
10883   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
10884      apzGlibc_C99_Inline_4Machs,
10885      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10886      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
10888   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
10889      apzGlibc_Mutex_InitMachs,
10890      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
10891      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
10893   {  zGlibc_StdintName,    zGlibc_StdintList,
10894      apzGlibc_StdintMachs,
10895      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10896      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
10898   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
10899      apzGlibc_StrncpyMachs,
10900      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10901      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
10903   {  zGlibc_TgmathName,    zGlibc_TgmathList,
10904      apzGlibc_TgmathMachs,
10905      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10906      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
10908   {  zGnu_TypesName,    zGnu_TypesList,
10909      apzGnu_TypesMachs,
10910      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10911      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
10913   {  zHp_InlineName,    zHp_InlineList,
10914      apzHp_InlineMachs,
10915      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10916      aHp_InlineTests,   apzHp_InlinePatch, 0 },
10918   {  zHp_SysfileName,    zHp_SysfileList,
10919      apzHp_SysfileMachs,
10920      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10921      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
10923   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
10924      apzHppa_Hpux_Fp_MacrosMachs,
10925      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10926      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
10928   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
10929      apzHpux10_Cpp_Pow_InlineMachs,
10930      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10931      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
10933   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
10934      apzHpux11_Cpp_Pow_InlineMachs,
10935      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10936      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
10938   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
10939      apzHpux10_Ctype_Declarations1Machs,
10940      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10941      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
10943   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
10944      apzHpux10_Ctype_Declarations2Machs,
10945      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10946      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
10948   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
10949      apzHpux10_Stdio_DeclarationsMachs,
10950      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10951      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
10953   {  zHppa_Hpux11_AllocaName,    zHppa_Hpux11_AllocaList,
10954      apzHppa_Hpux11_AllocaMachs,
10955      HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10956      aHppa_Hpux11_AllocaTests,   apzHppa_Hpux11_AllocaPatch, 0 },
10958   {  zHpux11_AbsName,    zHpux11_AbsList,
10959      apzHpux11_AbsMachs,
10960      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10961      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
10963   {  zHpux11_Lwp_Rwlock_ValidName,    zHpux11_Lwp_Rwlock_ValidList,
10964      apzHpux11_Lwp_Rwlock_ValidMachs,
10965      HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10966      aHpux11_Lwp_Rwlock_ValidTests,   apzHpux11_Lwp_Rwlock_ValidPatch, 0 },
10968   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
10969      apzHpux11_Extern_SendfileMachs,
10970      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10971      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
10973   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
10974      apzHpux11_Extern_SendpathMachs,
10975      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10976      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
10978   {  zHpux11_FabsfName,    zHpux11_FabsfList,
10979      apzHpux11_FabsfMachs,
10980      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10981      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
10983   {  zHpux11_Pthread_PointerName,    zHpux11_Pthread_PointerList,
10984      apzHpux11_Pthread_PointerMachs,
10985      HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10986      aHpux11_Pthread_PointerTests,   apzHpux11_Pthread_PointerPatch, 0 },
10988   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
10989      apzHpux11_Pthread_ConstMachs,
10990      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10991      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
10993   {  zHpux11_Size_TName,    zHpux11_Size_TList,
10994      apzHpux11_Size_TMachs,
10995      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10996      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
10998   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
10999      apzHpux11_SnprintfMachs,
11000      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11001      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
11003   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
11004      apzHpux11_VsnprintfMachs,
11005      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11006      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
11008   {  zHpux_VsscanfName,    zHpux_VsscanfList,
11009      apzHpux_VsscanfMachs,
11010      HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11011      aHpux_VsscanfTests,   apzHpux_VsscanfPatch, 0 },
11013   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
11014      apzHpux8_Bogus_InlinesMachs,
11015      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
11016      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
11018   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
11019      apzHpux_C99_IntptrMachs,
11020      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
11021      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
11023   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
11024      apzHpux_C99_InttypesMachs,
11025      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
11026      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
11028   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
11029      apzHpux_C99_Inttypes2Machs,
11030      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
11031      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
11033   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
11034      apzHpux_Ctype_MacrosMachs,
11035      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11036      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
11038   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
11039      apzHpux_Extern_ErrnoMachs,
11040      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11041      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
11043   {  zHpux_HtonlName,    zHpux_HtonlList,
11044      apzHpux_HtonlMachs,
11045      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11046      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
11048   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
11049      apzHpux_Imaginary_IMachs,
11050      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11051      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
11053   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
11054      apzHpux_Inttype_Int8_TMachs,
11055      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11056      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
11058   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
11059      apzHpux_Long_DoubleMachs,
11060      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
11061      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
11063   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
11064      apzHpux_Long_Double_2Machs,
11065      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11066      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
11068   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
11069      apzHpux_Pthread_InitializersMachs,
11070      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
11071      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
11073   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
11074      apzHpux_Spu_InfoMachs,
11075      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11076      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
11078   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
11079      apzHpux_Stdint_Least_FastMachs,
11080      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11081      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
11083   {  zHpux_LongjmpName,    zHpux_LongjmpList,
11084      apzHpux_LongjmpMachs,
11085      HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11086      aHpux_LongjmpTests,   apzHpux_LongjmpPatch, 0 },
11088   {  zHpux_SystimeName,    zHpux_SystimeList,
11089      apzHpux_SystimeMachs,
11090      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11091      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
11093   {  zHuge_Val_HexName,    zHuge_Val_HexList,
11094      apzHuge_Val_HexMachs,
11095      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11096      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
11098   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
11099      apzHuge_Valf_HexMachs,
11100      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11101      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
11103   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
11104      apzHuge_Vall_HexMachs,
11105      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11106      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
11108   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
11109      apzInt_Abort_Free_And_ExitMachs,
11110      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11111      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
11113   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
11114      apzIo_Quotes_DefMachs,
11115      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11116      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
11118   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
11119      apzIo_Quotes_UseMachs,
11120      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11121      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
11123   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
11124      apzIp_Missing_SemiMachs,
11125      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
11126      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
11128   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
11129      apzIrix_Limits_ConstMachs,
11130      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11131      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
11133   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
11134      apzIrix_Stdio_Va_ListMachs,
11135      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11136      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
11138   {  zKandr_ConcatName,    zKandr_ConcatList,
11139      apzKandr_ConcatMachs,
11140      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11141      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
11143   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
11144      apzLinux_Ia64_UcontextMachs,
11145      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11146      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
11148   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
11149      apzLynxos_No_Warning_In_Sys_Time_HMachs,
11150      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11151      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
11153   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
11154      apzLynxos_Missing_PutenvMachs,
11155      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11156      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
11158   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
11159      apzMachine_Ansi_H_Va_ListMachs,
11160      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11161      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
11163   {  zMachine_NameName,    zMachine_NameList,
11164      apzMachine_NameMachs,
11165      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11166      aMachine_NameTests,   apzMachine_NamePatch, 0 },
11168   {  zMath_ExceptionName,    zMath_ExceptionList,
11169      apzMath_ExceptionMachs,
11170      MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11171      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
11173   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
11174      apzMath_Huge_Val_From_Dbl_MaxMachs,
11175      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
11176      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
11178   {  zNested_Auth_DesName,    zNested_Auth_DesList,
11179      apzNested_Auth_DesMachs,
11180      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11181      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
11183   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
11184      apzNetbsd_C99_Inline_1Machs,
11185      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11186      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
11188   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
11189      apzNetbsd_C99_Inline_2Machs,
11190      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11191      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
11193   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
11194      apzNetbsd_Extra_SemicolonMachs,
11195      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11196      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
11198   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
11199      apzNewlib_Stdint_1Machs,
11200      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
11201      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
11203   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
11204      apzNewlib_Stdint_2Machs,
11205      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11206      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
11208   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
11209      apzNext_Math_PrefixMachs,
11210      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11211      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
11213   {  zNext_TemplateName,    zNext_TemplateList,
11214      apzNext_TemplateMachs,
11215      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11216      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
11218   {  zNext_VolitileName,    zNext_VolitileList,
11219      apzNext_VolitileMachs,
11220      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11221      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
11223   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
11224      apzNext_Wait_UnionMachs,
11225      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11226      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
11228   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
11229      apzNodeent_SyntaxMachs,
11230      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11231      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
11233   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
11234      apzOpenbsd_Null_DefinitionMachs,
11235      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11236      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
11238   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
11239      apzObstack_Lvalue_CastMachs,
11240      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11241      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
11243   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
11244      apzOpenbsd_Va_StartMachs,
11245      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11246      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
11248   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
11249      apzOsf_Namespace_AMachs,
11250      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11251      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
11253   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
11254      apzOsf_Namespace_CMachs,
11255      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11256      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
11258   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
11259      apzPthread_Incomplete_Struct_ArgumentMachs,
11260      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11261      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
11263   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
11264      apzRead_Ret_TypeMachs,
11265      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11266      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
11268   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
11269      apzRpc_Xdr_Lvalue_Cast_AMachs,
11270      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11271      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
11273   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
11274      apzRpc_Xdr_Lvalue_Cast_BMachs,
11275      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11276      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
11278   {  zRs6000_DoubleName,    zRs6000_DoubleList,
11279      apzRs6000_DoubleMachs,
11280      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11281      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
11283   {  zRs6000_FchmodName,    zRs6000_FchmodList,
11284      apzRs6000_FchmodMachs,
11285      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11286      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
11288   {  zRs6000_ParamName,    zRs6000_ParamList,
11289      apzRs6000_ParamMachs,
11290      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11291      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
11293   {  zSolaris___RestrictName,    zSolaris___RestrictList,
11294      apzSolaris___RestrictMachs,
11295      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11296      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
11298   {  zSolaris_ComplexName,    zSolaris_ComplexList,
11299      apzSolaris_ComplexMachs,
11300      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
11301      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
11303   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
11304      apzSolaris_Complex_CxxMachs,
11305      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
11306      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
11308   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
11309      apzSolaris_Cxx_LinkageMachs,
11310      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11311      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
11313   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
11314      apzSolaris_Getc_Strict_StdcMachs,
11315      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11316      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
11318   {  zSolaris_Gets_C11Name,    zSolaris_Gets_C11List,
11319      apzSolaris_Gets_C11Machs,
11320      SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11321      aSolaris_Gets_C11Tests,   apzSolaris_Gets_C11Patch, 0 },
11323   {  zSolaris_Gets_Cxx14Name,    zSolaris_Gets_Cxx14List,
11324      apzSolaris_Gets_Cxx14Machs,
11325      SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11326      aSolaris_Gets_Cxx14Tests,   apzSolaris_Gets_Cxx14Patch, 0 },
11328   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
11329      apzSolaris_Int_ConstMachs,
11330      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11331      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
11333   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
11334      apzSolaris_Int_Limits_1Machs,
11335      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11336      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
11338   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
11339      apzSolaris_Int_Limits_2Machs,
11340      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11341      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
11343   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
11344      apzSolaris_Int_Limits_3Machs,
11345      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11346      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
11348   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
11349      apzSolaris_Math_1Machs,
11350      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11351      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
11353   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
11354      apzSolaris_Math_10Machs,
11355      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11356      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
11358   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
11359      apzSolaris_Math_2Machs,
11360      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11361      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
11363   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
11364      apzSolaris_Math_3Machs,
11365      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11366      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
11368   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
11369      apzSolaris_Math_4Machs,
11370      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11371      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
11373   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
11374      apzSolaris_Math_8Machs,
11375      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11376      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
11378   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
11379      apzSolaris_Math_9Machs,
11380      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11381      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
11383   {  zSolaris_Math_11Name,    zSolaris_Math_11List,
11384      apzSolaris_Math_11Machs,
11385      SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11386      aSolaris_Math_11Tests,   apzSolaris_Math_11Patch, 0 },
11388   {  zSolaris_Math_12Name,    zSolaris_Math_12List,
11389      apzSolaris_Math_12Machs,
11390      SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
11391      aSolaris_Math_12Tests,   apzSolaris_Math_12Patch, 0 },
11393   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
11394      apzSolaris_Once_Init_1Machs,
11395      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11396      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
11398   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
11399      apzSolaris_Posix_Spawn_RestrictMachs,
11400      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11401      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
11403   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
11404      apzSolaris_Pow_Int_OverloadMachs,
11405      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11406      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
11408   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
11409      apzSolaris_Rwlock_Init_1Machs,
11410      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11411      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
11413   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
11414      apzSolaris_Std___FilbufMachs,
11415      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11416      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
11418   {  zSolaris_Std_Gets_Cxx14Name,    zSolaris_Std_Gets_Cxx14List,
11419      apzSolaris_Std_Gets_Cxx14Machs,
11420      SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11421      aSolaris_Std_Gets_Cxx14Tests,   apzSolaris_Std_Gets_Cxx14Patch, 0 },
11423   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
11424      apzSolaris_Stdio_TagMachs,
11425      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
11426      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
11428   {  zSolaris_Stdlib_NoreturnName,    zSolaris_Stdlib_NoreturnList,
11429      apzSolaris_Stdlib_NoreturnMachs,
11430      SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11431      aSolaris_Stdlib_NoreturnTests,   apzSolaris_Stdlib_NoreturnPatch, 0 },
11433   {  zStatsswtchName,    zStatsswtchList,
11434      apzStatsswtchMachs,
11435      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11436      aStatsswtchTests,   apzStatsswtchPatch, 0 },
11438   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
11439      apzStdio_Stdarg_HMachs,
11440      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11441      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
11443   {  zStdio_Va_ListName,    zStdio_Va_ListList,
11444      apzStdio_Va_ListMachs,
11445      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
11446      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
11448   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
11449      apzStdio_Va_List_ClientsMachs,
11450      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
11451      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
11453   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
11454      apzStrict_Ansi_NotMachs,
11455      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11456      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
11458   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
11459      apzStrict_Ansi_Not_CtdMachs,
11460      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11461      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
11463   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
11464      apzStrict_Ansi_OnlyMachs,
11465      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11466      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
11468   {  zStruct_FileName,    zStruct_FileList,
11469      apzStruct_FileMachs,
11470      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11471      aStruct_FileTests,   apzStruct_FilePatch, 0 },
11473   {  zStruct_SockaddrName,    zStruct_SockaddrList,
11474      apzStruct_SockaddrMachs,
11475      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11476      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
11478   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
11479      apzSun_Auth_ProtoMachs,
11480      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11481      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
11483   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
11484      apzSun_Bogus_IfdefMachs,
11485      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11486      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
11488   {  zSun_CatmacroName,    zSun_CatmacroList,
11489      apzSun_CatmacroMachs,
11490      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11491      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
11493   {  zSun_MallocName,    zSun_MallocList,
11494      apzSun_MallocMachs,
11495      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
11496      aSun_MallocTests,   apzSun_MallocPatch, 0 },
11498   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
11499      apzSun_Rusers_SemiMachs,
11500      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
11501      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
11503   {  zSun_SignalName,    zSun_SignalList,
11504      apzSun_SignalMachs,
11505      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11506      aSun_SignalTests,   apzSun_SignalPatch, 0 },
11508   {  zSunos_StrlenName,    zSunos_StrlenList,
11509      apzSunos_StrlenMachs,
11510      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11511      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
11513   {  zSuse_Linux_Vt_CxxName,    zSuse_Linux_Vt_CxxList,
11514      apzSuse_Linux_Vt_CxxMachs,
11515      SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11516      aSuse_Linux_Vt_CxxTests,   apzSuse_Linux_Vt_CxxPatch, 0 },
11518   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
11519      apzSvr4_Disable_OptMachs,
11520      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
11521      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
11523   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
11524      apzSvr4_GetcwdMachs,
11525      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11526      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
11528   {  zSvr4_ProfilName,    zSvr4_ProfilList,
11529      apzSvr4_ProfilMachs,
11530      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11531      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
11533   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
11534      apzSvr4_Sighandler_TypeMachs,
11535      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11536      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
11538   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
11539      apzSvr4_Undeclared_GetrngeMachs,
11540      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11541      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
11543   {  zSysv68_StringName,    zSysv68_StringList,
11544      apzSysv68_StringMachs,
11545      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
11546      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
11548   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
11549      apzSysz_Stdlib_For_SunMachs,
11550      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11551      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
11553   {  zThread_KeywordName,    zThread_KeywordList,
11554      apzThread_KeywordMachs,
11555      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11556      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
11558   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
11559      apzTinfo_CplusplusMachs,
11560      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11561      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
11563   {  zUltrix_ConstName,    zUltrix_ConstList,
11564      apzUltrix_ConstMachs,
11565      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11566      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
11568   {  zUltrix_Const2Name,    zUltrix_Const2List,
11569      apzUltrix_Const2Machs,
11570      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11571      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
11573   {  zVa_I960_MacroName,    zVa_I960_MacroList,
11574      apzVa_I960_MacroMachs,
11575      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11576      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
11578   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
11579      apzVms_Add_Missing_BracesMachs,
11580      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11581      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
11583   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
11584      apzVms_Decc_BuiltinMachs,
11585      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
11586      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
11588   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
11589      apzVms_Define_Can_Use_Extern_PrefixMachs,
11590      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11591      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
11593   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
11594      apzVms_Disable_Decc_String_BuiltinsMachs,
11595      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11596      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
11598   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
11599      apzVms_Do_Not_Redeclare_HostaliasMachs,
11600      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11601      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
11603   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
11604      apzVms_Forward_Declare_StructMachs,
11605      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11606      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
11608   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
11609      apzVms_No_64bit_GetoptMachs,
11610      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11611      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
11613   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
11614      apzVms_Use_Fast_SetjmpMachs,
11615      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11616      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
11618   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
11619      apzVms_Use_Pragma_Extern_ModelMachs,
11620      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11621      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
11623   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
11624      apzVms_Use_Quoted_IncludeMachs,
11625      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11626      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
11628   {  zVoid_NullName,    zVoid_NullList,
11629      apzVoid_NullMachs,
11630      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11631      aVoid_NullTests,   apzVoid_NullPatch, 0 },
11633   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
11634      apzVxworks_Gcc_ProblemMachs,
11635      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
11636      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
11638   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
11639      apzVxworks_Ioctl_MacroMachs,
11640      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11641      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
11643   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
11644      apzVxworks_Mkdir_MacroMachs,
11645      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11646      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
11648   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
11649      apzVxworks_Needs_VxtypesMachs,
11650      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11651      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
11653   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
11654      apzVxworks_Needs_VxworksMachs,
11655      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
11656      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
11658   {  zVxworks_RegsName,    zVxworks_RegsList,
11659      apzVxworks_RegsMachs,
11660      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11661      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
11663   {  zVxworks_TimeName,    zVxworks_TimeList,
11664      apzVxworks_TimeMachs,
11665      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11666      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
11668   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
11669      apzVxworks_Write_ConstMachs,
11670      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11671      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
11673   {  zVxworks_Iolib_Include_UnistdName,    zVxworks_Iolib_Include_UnistdList,
11674      apzVxworks_Iolib_Include_UnistdMachs,
11675      VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11676      aVxworks_Iolib_Include_UnistdTests,   apzVxworks_Iolib_Include_UnistdPatch, 0 },
11678   {  zX11_ClassName,    zX11_ClassList,
11679      apzX11_ClassMachs,
11680      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11681      aX11_ClassTests,   apzX11_ClassPatch, 0 },
11683   {  zX11_Class_UsageName,    zX11_Class_UsageList,
11684      apzX11_Class_UsageMachs,
11685      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11686      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
11688   {  zX11_NewName,    zX11_NewList,
11689      apzX11_NewMachs,
11690      X11_NEW_TEST_CT, FD_MACH_ONLY,
11691      aX11_NewTests,   apzX11_NewPatch, 0 },
11693   {  zX11_SprintfName,    zX11_SprintfList,
11694      apzX11_SprintfMachs,
11695      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11696      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }