[Patch libgcc AArch64 12/17] Enable hfmode soft-float conversions and truncations
[official-gcc.git] / fixincludes / fixincl.x
blobb0eeef9dfdf1387e5dd0ba39754d30e758b99621
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  November 20, 2016 at 12:02:46 PM by AutoGen 5.16.2
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sun Nov 20 12:02:47 MET 2016
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 242 fixup descriptions.
19  *
20  * See README for more information.
21  *
22  *  inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
23  *                         2006, 2007, 2008
24  *  The Free Software Foundation, Inc.
25  *
26  *  inclhack is free software: you can redistribute it and/or modify it
27  *  under the terms of the GNU General Public License as published by the
28  *  Free Software Foundation, either version 3 of the License, or
29  *  (at your option) any later version.
30  *  
31  *  inclhack is distributed in the hope that it will be useful, but
32  *  WITHOUT ANY WARRANTY; without even the implied warranty of
33  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34  *  See the GNU General Public License for more details.
35  *  
36  *  You should have received a copy of the GNU General Public License along
37  *  with this program.  If not, see <http://www.gnu.org/licenses/>.
38  */
39 #ifndef SED_PROGRAM
40 #define SED_PROGRAM "/usr/bin/sed"
41 #endif
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45  *
46  *  Description of Aab_Aix_Stdio fix
47  */
48 tSCC zAab_Aix_StdioName[] =
49      "AAB_aix_stdio";
52  *  File name selection pattern
53  */
54 tSCC zAab_Aix_StdioList[] =
55   "stdio.h\0";
57  *  Machine/OS name selection pattern
58  */
59 tSCC* apzAab_Aix_StdioMachs[] = {
60         "*-*-aix*",
61         (const char*)NULL };
64  *  content selection pattern - do fix if pattern found
65  */
66 tSCC zAab_Aix_StdioSelect0[] =
67        "define fopen fopen64";
69 #define    AAB_AIX_STDIO_TEST_CT  1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71   { TT_EGREP,    zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74  *  Fix Command Arguments for Aab_Aix_Stdio
75  */
76 static const char* apzAab_Aix_StdioPatch[] = {
77     "wrap",
78     "",
79     "\n\
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
83 #undef fseeko\n\
84 #undef ftello\n\
85 #undef fgetpos\n\
86 #undef fsetpos\n\
87 #undef fopen\n\
88 #undef freopen\n\
89 /* Alias the symbols using asm */\n\
90 extern \"C\" {\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
97 }\n\
98 #endif\n\
99 #endif\n",
100     (char*)NULL };
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104  *  Description of Aab_Aix_Fcntl fix
105  */
106 tSCC zAab_Aix_FcntlName[] =
107      "AAB_aix_fcntl";
110  *  File name selection pattern
111  */
112 tSCC zAab_Aix_FcntlList[] =
113   "fcntl.h\0";
115  *  Machine/OS name selection pattern
116  */
117 tSCC* apzAab_Aix_FcntlMachs[] = {
118         "*-*-aix*",
119         (const char*)NULL };
122  *  content selection pattern - do fix if pattern found
123  */
124 tSCC zAab_Aix_FcntlSelect0[] =
125        "define open[ \t]open64";
127 #define    AAB_AIX_FCNTL_TEST_CT  1
128 static tTestDesc aAab_Aix_FcntlTests[] = {
129   { TT_EGREP,    zAab_Aix_FcntlSelect0, (regex_t*)NULL }, };
132  *  Fix Command Arguments for Aab_Aix_Fcntl
133  */
134 static const char* apzAab_Aix_FcntlPatch[] = {
135     "wrap",
136     "",
137     "\n\
138 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
139 #define __need__aix_fcntl_h_fix\n\
140 #ifdef __need__aix_fcntl_h_fix\n\
141 #undef open\n\
142 #undef creat\n\
143 #undef openat\n\
144 /* Alias the symbols using asm */\n\
145 extern \"C\" {\n\
146 extern int open(const char *, int, ...) __asm__(\"open64\");\n\
147 extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\
148 #if (_XOPEN_SOURCE >= 700)\n\
149 extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\
150 #endif\n\
151 }\n\
152 #endif\n\
153 #endif\n",
154     (char*)NULL };
156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
158  *  Description of Aab_Darwin7_9_Long_Double_Funcs fix
159  */
160 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
161      "AAB_darwin7_9_long_double_funcs";
164  *  File name selection pattern
165  */
166 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
167   "architecture/ppc/math.h\0";
169  *  Machine/OS name selection pattern
170  */
171 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
172         "*-*-darwin7.9*",
173         (const char*)NULL };
176  *  content bypass pattern - skip fix if pattern found
177  */
178 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
179        "powl";
181 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT  1
182 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
183   { TT_NEGREP,   zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
186  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
187  */
188 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
189 "/* This file prototypes the long double functions available on Mac OS\n\
190    10.3.9.  */\n\
191 #ifndef __MATH__\n\
192 # undef __APPLE_CC__\n\
193 # define __APPLE_CC__  1345\n\
194 # include_next <architecture/ppc/math.h>\n\
195 # undef __APPLE_CC__\n\
196 # define __APPLE_CC__ 1\n\
197 # ifndef __LIBMLDBL_COMPAT\n\
198 #  ifdef __LONG_DOUBLE_128__\n\
199 #   define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
200 #  else\n\
201 #   define __LIBMLDBL_COMPAT(sym)\n\
202 #  endif /* __LONG_DOUBLE_128__ */\n\
203 # endif /* __LIBMLDBL_COMPAT */\n\
204 # ifdef __cplusplus\n\
205    extern \"C\" {\n\
206 # endif\n\
207   extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
208   extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
209   extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
210   extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
211   extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
212   extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
213   extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
214   extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
215   extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
216   extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
217   extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
218   extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
219   extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
220   extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
221   extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
222   extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
223   extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
224   extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
225   extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
226   extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
227   extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
228   extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
229   extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
230   extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
231   extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
232   extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
233   extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
234   extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
235   extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
236   extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
237   extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
238   extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
239   extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
240   extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
241   extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
242   extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
243   extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
244   extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
245   extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
246   extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
247   extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
248   extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
249   extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
250   extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
251   extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
252   extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
253   extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
254   extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
255   extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
256   extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
257   extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
258   extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
259   extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
260   extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
261   extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
262   extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
263   extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
264 # ifdef __cplusplus\n\
265    }\n\
266 # endif\n\
267 #endif /* __MATH__ */",
268     (char*)NULL };
270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
272  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
273  */
274 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
275      "AAB_fd_zero_asm_posix_types_h";
278  *  File name selection pattern
279  */
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
281   "asm/posix_types.h\0";
283  *  Machine/OS name selection pattern
284  */
285 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
286         "i[34567]86-*-linux*",
287         (const char*)NULL };
290  *  content bypass pattern - skip fix if pattern found
291  */
292 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
293        "} while";
294 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
295        "x86_64";
296 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
297        "posix_types_64";
299 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  3
300 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
301   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
302   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
303   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
306  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
307  */
308 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
309 "/* This file fixes a bug in the __FD_ZERO macro\n\
310    for older versions of the Linux kernel. */\n\
311 #ifndef _POSIX_TYPES_H_WRAPPER\n\
312 #include <features.h>\n\
313  #include_next <asm/posix_types.h>\n\n\
314 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
315 #undef __FD_ZERO\n\
316 #define __FD_ZERO(fdsetp) \\\n\
317   do { \\\n\
318     int __d0, __d1; \\\n\
319 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
320 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
321 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
322   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
323   } while (0)\n\
324 #endif\n\n\
325 #define _POSIX_TYPES_H_WRAPPER\n\
326 #endif /* _POSIX_TYPES_H_WRAPPER */",
327     (char*)NULL };
329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
331  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
332  */
333 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
334      "AAB_fd_zero_gnu_types_h";
337  *  File name selection pattern
338  */
339 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
340   "gnu/types.h\0";
342  *  Machine/OS name selection pattern
343  */
344 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
345         "i[34567]86-*-linux*",
346         (const char*)NULL };
347 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
348 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
351  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
352  */
353 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
354 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
355 #ifndef _TYPES_H_WRAPPER\n\
356 #include <features.h>\n\
357 #include_next <gnu/types.h>\n\n\
358 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
359 #undef __FD_ZERO\n\
360 # define __FD_ZERO(fdsetp) \\\n\
361   do { \\\n\
362     int __d0, __d1; \\\n\
363         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
364         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
365         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
366           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
367   } while (0)\n\
368 #endif\n\n\
369 #define _TYPES_H_WRAPPER\n\
370 #endif /* _TYPES_H_WRAPPER */",
371     (char*)NULL };
373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
375  *  Description of Aab_Fd_Zero_Selectbits_H fix
376  */
377 tSCC zAab_Fd_Zero_Selectbits_HName[] =
378      "AAB_fd_zero_selectbits_h";
381  *  File name selection pattern
382  */
383 tSCC zAab_Fd_Zero_Selectbits_HList[] =
384   "selectbits.h\0";
386  *  Machine/OS name selection pattern
387  */
388 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
389         "i[34567]86-*-linux*",
390         (const char*)NULL };
391 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
392 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
395  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
396  */
397 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
398 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
399 #ifndef _SELECTBITS_H_WRAPPER\n\
400   #include <features.h>\n\
401   #include_next <selectbits.h>\n\n\
402   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
403   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
404   && __GLIBC_MINOR__ == 0\n\
405      #undef __FD_ZERO\n\
406      #define __FD_ZERO(fdsetp) \\\\\n\
407      do { \\\\\n\
408         int __d0, __d1; \\\\\n\
409       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
410                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
411                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
412                                         / sizeof (__fd_mask)), \\\\\n\
413                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
414                         : \"memory\"); \\\\\n\
415       } while (0)\n\
416   #endif\n\n\
417   #define _SELECTBITS_H_WRAPPER\n\
418 #endif /* _SELECTBITS_H_WRAPPER */",
419     (char*)NULL };
421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
423  *  Description of Aab_Solaris_Sys_Varargs_H fix
424  */
425 tSCC zAab_Solaris_Sys_Varargs_HName[] =
426      "AAB_solaris_sys_varargs_h";
429  *  File name selection pattern
430  */
431 tSCC zAab_Solaris_Sys_Varargs_HList[] =
432   "sys/varargs.h\0";
434  *  Machine/OS name selection pattern
435  */
436 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
437         "*-*-solaris*",
438         (const char*)NULL };
439 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
440 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
443  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
444  */
445 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
446 "#ifdef __STDC__\n\
447   #include <stdarg.h>\n\
448 #else\n\
449   #include <varargs.h>\n\
450 #endif",
451     (char*)NULL };
453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
455  *  Description of Aab_Sun_Memcpy fix
456  */
457 tSCC zAab_Sun_MemcpyName[] =
458      "AAB_sun_memcpy";
461  *  File name selection pattern
462  */
463 tSCC zAab_Sun_MemcpyList[] =
464   "memory.h\0";
466  *  Machine/OS name selection pattern
467  */
468 #define apzAab_Sun_MemcpyMachs (const char**)NULL
471  *  content selection pattern - do fix if pattern found
472  */
473 tSCC zAab_Sun_MemcpySelect0[] =
474        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
476 #define    AAB_SUN_MEMCPY_TEST_CT  1
477 static tTestDesc aAab_Sun_MemcpyTests[] = {
478   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
481  *  Fix Command Arguments for Aab_Sun_Memcpy
482  */
483 static const char* apzAab_Sun_MemcpyPatch[] = {
484 "/* This file was generated by fixincludes */\n\
485 #ifndef __memory_h__\n\
486   #define __memory_h__\n\n\
487   #ifdef __STDC__\n\
488     extern void *memccpy();\n\
489     extern void *memchr();\n\
490     extern void *memcpy();\n\
491     extern void *memset();\n\
492   #else\n\
493     extern char *memccpy();\n\
494     extern char *memchr();\n\
495     extern char *memcpy();\n\
496     extern char *memset();\n\
497   #endif /* __STDC__ */\n\n\
498   extern int memcmp();\n\n\
499 #endif /* __memory_h__ */",
500     (char*)NULL };
502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
504  *  Description of Aab_Vxworks_Assert fix
505  */
506 tSCC zAab_Vxworks_AssertName[] =
507      "AAB_vxworks_assert";
510  *  File name selection pattern
511  */
512 tSCC zAab_Vxworks_AssertList[] =
513   "assert.h\0";
515  *  Machine/OS name selection pattern
516  */
517 tSCC* apzAab_Vxworks_AssertMachs[] = {
518         "*-*-vxworks*",
519         (const char*)NULL };
520 #define AAB_VXWORKS_ASSERT_TEST_CT  0
521 #define aAab_Vxworks_AssertTests   (tTestDesc*)NULL
524  *  Fix Command Arguments for Aab_Vxworks_Assert
525  */
526 static const char* apzAab_Vxworks_AssertPatch[] = {
527 "#ifndef _ASSERT_H\n\
528 #define _ASSERT_H\n\n\
529 #ifdef assert\n\
530 #undef assert\n\
531 #endif\n\n\
532 #if defined(__STDC__) || defined(__cplusplus)\n\
533 extern void __assert (const char*);\n\
534 #else\n\
535 extern void __assert ();\n\
536 #endif\n\n\
537 #ifdef NDEBUG\n\
538 #define assert(ign) ((void)0)\n\
539 #else\n\n\
540 #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
541 #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
542 #define assert(test) ((void) \\\n\
543         ((test) ? ((void)0) : \\\n\
544         __assert(\"Assertion failed: \" ASSERT_STRINGIFY(test) \", file \" \\\n\
545         __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
546 #endif\n\n\
547 #endif",
548     (char*)NULL };
550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
552  *  Description of Aab_Vxworks_Regs_Vxtypes fix
553  */
554 tSCC zAab_Vxworks_Regs_VxtypesName[] =
555      "AAB_vxworks_regs_vxtypes";
558  *  File name selection pattern
559  */
560 tSCC zAab_Vxworks_Regs_VxtypesList[] =
561   "regs.h\0";
563  *  Machine/OS name selection pattern
564  */
565 tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
566         "*-*-vxworks*",
567         (const char*)NULL };
568 #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT  0
569 #define aAab_Vxworks_Regs_VxtypesTests   (tTestDesc*)NULL
572  *  Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
573  */
574 static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
575 "#ifndef _REGS_H\n\
576 #define _REGS_H\n\
577 #include <types/vxTypesOld.h>\n\
578 #include_next <arch/../regs.h>\n\
579 #endif",
580     (char*)NULL };
582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
584  *  Description of Aab_Vxworks_Stdint fix
585  */
586 tSCC zAab_Vxworks_StdintName[] =
587      "AAB_vxworks_stdint";
590  *  File name selection pattern
591  */
592 tSCC zAab_Vxworks_StdintList[] =
593   "stdint.h\0";
595  *  Machine/OS name selection pattern
596  */
597 tSCC* apzAab_Vxworks_StdintMachs[] = {
598         "*-*-vxworks*",
599         (const char*)NULL };
600 #define AAB_VXWORKS_STDINT_TEST_CT  0
601 #define aAab_Vxworks_StdintTests   (tTestDesc*)NULL
604  *  Fix Command Arguments for Aab_Vxworks_Stdint
605  */
606 static const char* apzAab_Vxworks_StdintPatch[] = {
607 "#ifndef _STDINT_H\n\
608 #define _STDINT_H\n\
609 /* get int*_t, uint*_t */\n\
610 #include <types/vxTypes.h>\n\n\
611 /* get legacy vxworks types for compatibility */\n\
612 #include <types/vxTypesOld.h>\n\n\
613 typedef long intptr_t;\n\
614 typedef unsigned long uintptr_t;\n\n\
615 typedef int64_t intmax_t;\n\
616 typedef uint64_t uintmax_t;\n\n\
617 typedef int8_t int_least8_t;\n\
618 typedef int16_t int_least16_t;\n\
619 typedef int32_t int_least32_t;\n\
620 typedef int64_t int_least64_t;\n\n\
621 typedef uint8_t uint_least8_t;\n\
622 typedef uint16_t uint_least16_t;\n\
623 typedef uint32_t uint_least32_t;\n\
624 typedef uint64_t uint_least64_t;\n\n\
625 typedef int8_t int_fast8_t;\n\
626 typedef int int_fast16_t;\n\
627 typedef int32_t int_fast32_t;\n\
628 typedef int64_t int_fast64_t;\n\n\
629 typedef uint8_t uint_fast8_t;\n\
630 typedef unsigned int uint_fast16_t;\n\
631 typedef uint32_t uint_fast32_t;\n\
632 typedef uint64_t uint_fast64_t;\n\n\
633 /* Ranges */\n\
634 #define UINT8_MAX (~(uint8_t)0)\n\
635 #define UINT8_MIN 0\n\
636 #define UINT16_MAX (~(uint16_t)0)\n\
637 #define UINT16_MIN 0\n\
638 #define UINT32_MAX (~(uint32_t)0)\n\
639 #define UINT32_MIN 0\n\
640 #define UINT64_MAX (~(uint64_t)0)\n\
641 #define UINT64_MIN 0\n\n\
642 #define UINTPTR_MAX (~(uintptr_t)0)\n\
643 #define UINTPTR_MIN 0\n\n\
644 /* Need to do int_fast16_t as well, as type\n\
645    size may be architecture dependent */\n\
646 #define UINT_FAST16_MAX (~(uint_fast16_t)0)\n\
647 #define UINT_FAST16_MAX 0\n\n\
648 #define INT8_MAX (UINT8_MAX>>1)\n\
649 #define INT8_MIN (INT8_MAX+1)\n\
650 #define INT16_MAX (UINT16_MAX>>1)\n\
651 #define INT16_MIN (INT16_MAX+1)\n\
652 #define INT32_MAX (UINT32_MAX>>1)\n\
653 #define INT32_MIN (INT32_MAX+1)\n\
654 #define INT64_MAX (UINT64_MAX>>1)\n\
655 #define INT64_MIN (INT64_MAX+1)\n\n\
656 #define INTPTR_MAX (UINTPTR_MAX>>1)\n\
657 #define INTPTR_MIN (INTPTR_MAX+1)\t\n\n\
658 #define INT_FAST16_MAX (UINT_FAST16_MAX>>1)\n\
659 #define INT_FAST16_MIN (INT_FAST16_MAX+1)\n\n\
660 /* now define equiv. constants */\n\
661 #define UINT_FAST8_MAX UINT8_MAX\n\
662 #define UINT_FAST8_MIN UINT_FAST8_MIN\n\
663 #define INT_FAST8_MAX INT8_MAX\n\
664 #define INT_FAST8_MIN INT8_MIN\n\
665 #define UINT_FAST32_MAX UINT32_MAX\n\
666 #define UINT_FAST32_MIN UINT32_MIN\n\
667 #define INT_FAST32_MAX INT32_MAX\n\
668 #define INT_FAST32_MIN INT32_MIN\n\
669 #define UINT_FAST64_MAX UINT64_MAX\n\
670 #define UINT_FAST64_MIN UINT64_MIN\n\
671 #define INT_FAST64_MAX INT64_MAX\n\
672 #define INT_FAST64_MIN INT64_MIN\n\n\
673 #define UINT_LEAST8_MAX UINT8_MAX\n\
674 #define UINT_LEAST8_MIN UINT8_MIN\n\
675 #define INT_LEAST8_MAX INT8_MAX\n\
676 #define INT_LEAST8_MIN INT8_MIN\n\
677 #define UINT_LEAST16_MAX UINT16_MAX\n\
678 #define UINT_LEAST16_MIN UINT16_MIN\n\
679 #define INT_LEAST16_MAX INT16_MAX\n\
680 #define INT_LEAST16_MIN INT16_MIN\n\
681 #define UINT_LEAST32_MAX UINT32_MAX\n\
682 #define UINT_LEAST32_MIN UINT32_MIN\n\
683 #define INT_LEAST32_MAX INT32_MAX\n\
684 #define INT_LEAST32_MIN INT32_MIN\n\
685 #define UINT_LEAST64_MAX UINT64_MAX\n\
686 #define UINT_LEAST64_MIN UINT64_MIN\n\
687 #define INT_LEAST64_MAX INT64_MAX\n\
688 #define INT_LEAST64_MIN INT64_MIN\n\n\
689 #define UINTMAX_MAX UINT64_MAX\n\
690 #define UINTMAX_MIN UINT64_MIN\n\
691 #define INTMAX_MAX INT64_MAX\n\
692 #define INTMAX_MIN INT64_MIN\n\n\
693 #endif",
694     (char*)NULL };
696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
698  *  Description of Aab_Vxworks_Unistd fix
699  */
700 tSCC zAab_Vxworks_UnistdName[] =
701      "AAB_vxworks_unistd";
704  *  File name selection pattern
705  */
706 tSCC zAab_Vxworks_UnistdList[] =
707   "unistd.h\0";
709  *  Machine/OS name selection pattern
710  */
711 tSCC* apzAab_Vxworks_UnistdMachs[] = {
712         "*-*-vxworks*",
713         (const char*)NULL };
714 #define AAB_VXWORKS_UNISTD_TEST_CT  0
715 #define aAab_Vxworks_UnistdTests   (tTestDesc*)NULL
718  *  Fix Command Arguments for Aab_Vxworks_Unistd
719  */
720 static const char* apzAab_Vxworks_UnistdPatch[] = {
721 "#ifndef _UNISTD_H\n\
722 #define _UNISTD_H\n\
723 #include_next <unistd.h>\n\
724 #include <ioLib.h>\n\
725 #ifndef STDIN_FILENO\n\
726 #define STDIN_FILENO 0\n\
727 #endif\n\
728 #ifndef STDOUT_FILENO\n\
729 #define STDOUT_FILENO 1\n\
730 #endif\n\
731 #ifndef STDERR_FILENO\n\
732 #define STDERR_FILENO 2\n\
733 #endif\n\
734 #endif /* _UNISTD_H */",
735     (char*)NULL };
737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
739  *  Description of Aix_Assert fix
740  */
741 tSCC zAix_AssertName[] =
742      "aix_assert";
745  *  File name selection pattern
746  */
747 tSCC zAix_AssertList[] =
748   "assert.h\0";
750  *  Machine/OS name selection pattern
751  */
752 tSCC* apzAix_AssertMachs[] = {
753         "*-*-aix*",
754         (const char*)NULL };
757  *  content selection pattern - do fix if pattern found
758  */
759 tSCC zAix_AssertSelect0[] =
760        "#define[ \t]static_assert[ \t]_Static_assert";
762 #define    AIX_ASSERT_TEST_CT  1
763 static tTestDesc aAix_AssertTests[] = {
764   { TT_EGREP,    zAix_AssertSelect0, (regex_t*)NULL }, };
767  *  Fix Command Arguments for Aix_Assert
768  */
769 static const char* apzAix_AssertPatch[] = {
770     "format",
771     "#ifndef __cplusplus\n\
772 %0\n\
773 #endif",
774     (char*)NULL };
776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
778  *  Description of Aix_Complex fix
779  */
780 tSCC zAix_ComplexName[] =
781      "aix_complex";
784  *  File name selection pattern
785  */
786 tSCC zAix_ComplexList[] =
787   "complex.h\0";
789  *  Machine/OS name selection pattern
790  */
791 tSCC* apzAix_ComplexMachs[] = {
792         "*-*-aix*",
793         (const char*)NULL };
796  *  content selection pattern - do fix if pattern found
797  */
798 tSCC zAix_ComplexSelect0[] =
799        "#define[ \t]_Complex_I[ \t]__I";
801 #define    AIX_COMPLEX_TEST_CT  1
802 static tTestDesc aAix_ComplexTests[] = {
803   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
806  *  Fix Command Arguments for Aix_Complex
807  */
808 static const char* apzAix_ComplexPatch[] = {
809     "format",
810     "#define _Complex_I (__extension__ 1.0iF)",
811     (char*)NULL };
813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
815  *  Description of Aix_Externc fix
816  */
817 tSCC zAix_ExterncName[] =
818      "aix_externc";
821  *  File name selection pattern
822  */
823 tSCC zAix_ExterncList[] =
824   "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0";
826  *  Machine/OS name selection pattern
827  */
828 tSCC* apzAix_ExterncMachs[] = {
829         "*-*-aix*",
830         (const char*)NULL };
833  *  content bypass pattern - skip fix if pattern found
834  */
835 tSCC zAix_ExterncBypass0[] =
836        "extern \"C\"";
838 #define    AIX_EXTERNC_TEST_CT  1
839 static tTestDesc aAix_ExterncTests[] = {
840   { TT_NEGREP,   zAix_ExterncBypass0, (regex_t*)NULL }, };
843  *  Fix Command Arguments for Aix_Externc
844  */
845 static const char* apzAix_ExterncPatch[] = {
846     "wrap",
847     "#ifdef __cplusplus\n\
848 extern \"C\" {\n\
849 #endif\n",
850     "#ifdef __cplusplus\n\
851 }\n\
852 #endif\n",
853     (char*)NULL };
855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
857  *  Description of Aix_Externcpp1 fix
858  */
859 tSCC zAix_Externcpp1Name[] =
860      "aix_externcpp1";
863  *  File name selection pattern
864  */
865 tSCC zAix_Externcpp1List[] =
866   "sys/socket.h\0";
868  *  Machine/OS name selection pattern
869  */
870 tSCC* apzAix_Externcpp1Machs[] = {
871         "*-*-aix*",
872         (const char*)NULL };
875  *  content selection pattern - do fix if pattern found
876  */
877 tSCC zAix_Externcpp1Select0[] =
878        "#ifdef __cplusplus";
880 #define    AIX_EXTERNCPP1_TEST_CT  1
881 static tTestDesc aAix_Externcpp1Tests[] = {
882   { TT_EGREP,    zAix_Externcpp1Select0, (regex_t*)NULL }, };
885  *  Fix Command Arguments for Aix_Externcpp1
886  */
887 static const char* apzAix_Externcpp1Patch[] = {
888     "format",
889     "#ifdef __cplusplus\n\
890 extern \"C++\" {",
891     (char*)NULL };
893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
895  *  Description of Aix_Externcpp2 fix
896  */
897 tSCC zAix_Externcpp2Name[] =
898      "aix_externcpp2";
901  *  File name selection pattern
902  */
903 tSCC zAix_Externcpp2List[] =
904   "sys/socket.h\0";
906  *  Machine/OS name selection pattern
907  */
908 tSCC* apzAix_Externcpp2Machs[] = {
909         "*-*-aix*",
910         (const char*)NULL };
913  *  content selection pattern - do fix if pattern found
914  */
915 tSCC zAix_Externcpp2Select0[] =
916        "#else  /\\* __cplusplus \\*/";
918 #define    AIX_EXTERNCPP2_TEST_CT  1
919 static tTestDesc aAix_Externcpp2Tests[] = {
920   { TT_EGREP,    zAix_Externcpp2Select0, (regex_t*)NULL }, };
923  *  Fix Command Arguments for Aix_Externcpp2
924  */
925 static const char* apzAix_Externcpp2Patch[] = {
926     "format",
927     "} /* extern \"C++\" */\n\
928 #else  /* __cplusplus */",
929     (char*)NULL };
931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
933  *  Description of Aix_Malloc fix
934  */
935 tSCC zAix_MallocName[] =
936      "aix_malloc";
939  *  File name selection pattern
940  */
941 tSCC zAix_MallocList[] =
942   "malloc.h\0";
944  *  Machine/OS name selection pattern
945  */
946 tSCC* apzAix_MallocMachs[] = {
947         "*-*-aix*",
948         (const char*)NULL };
951  *  content selection pattern - do fix if pattern found
952  */
953 tSCC zAix_MallocSelect0[] =
954        "#ifdef __cplusplus";
956 #define    AIX_MALLOC_TEST_CT  1
957 static tTestDesc aAix_MallocTests[] = {
958   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
961  *  Fix Command Arguments for Aix_Malloc
962  */
963 static const char* apzAix_MallocPatch[] = {
964     "format",
965     "#if (defined(__cplusplus) && defined(__IBMCPP__))",
966     (char*)NULL };
968 /* * * * * * * * * * * * * * * * * * * * * * * * * *
970  *  Description of Aix_Net_If_Arp fix
971  */
972 tSCC zAix_Net_If_ArpName[] =
973      "aix_net_if_arp";
976  *  File name selection pattern
977  */
978 tSCC zAix_Net_If_ArpList[] =
979   "net/if_arp.h\0";
981  *  Machine/OS name selection pattern
982  */
983 tSCC* apzAix_Net_If_ArpMachs[] = {
984         "*-*-aix*",
985         (const char*)NULL };
988  *  content selection pattern - do fix if pattern found
989  */
990 tSCC zAix_Net_If_ArpSelect0[] =
991        "^struct  fc_softc \\{";
993 #define    AIX_NET_IF_ARP_TEST_CT  1
994 static tTestDesc aAix_Net_If_ArpTests[] = {
995   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
998  *  Fix Command Arguments for Aix_Net_If_Arp
999  */
1000 static const char* apzAix_Net_If_ArpPatch[] = {
1001     "format",
1002     "typedef struct _fc_softc {",
1003     (char*)NULL };
1005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1007  *  Description of Aix_Null fix
1008  */
1009 tSCC zAix_NullName[] =
1010      "aix_null";
1013  *  File name selection pattern
1014  */
1015 tSCC zAix_NullList[] =
1016   "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";
1018  *  Machine/OS name selection pattern
1019  */
1020 tSCC* apzAix_NullMachs[] = {
1021         "*-*-aix*",
1022         (const char*)NULL };
1025  *  content selection pattern - do fix if pattern found
1026  */
1027 tSCC zAix_NullSelect0[] =
1028        "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
1031  *  content bypass pattern - skip fix if pattern found
1032  */
1033 tSCC zAix_NullBypass0[] =
1034        "__null";
1036 #define    AIX_NULL_TEST_CT  2
1037 static tTestDesc aAix_NullTests[] = {
1038   { TT_NEGREP,   zAix_NullBypass0, (regex_t*)NULL },
1039   { TT_EGREP,    zAix_NullSelect0, (regex_t*)NULL }, };
1042  *  Fix Command Arguments for Aix_Null
1043  */
1044 static const char* apzAix_NullPatch[] = {
1045     "format",
1046     "#ifndef NULL\n\
1047 #ifdef __cplusplus\n\
1048 #ifdef __GNUG__\n\
1049 #define NULL __null\n\
1050 #else /* ! __GNUG__  */\n\
1051 #define NULL 0L\n\
1052 #endif /* __GNUG__  */\n\
1053 #else /* ! __cplusplus  */\n\
1054 #define NULL ((void *)0)\n\
1055 #endif /* __cplusplus  */\n\
1056 #endif /* !NULL  */",
1057     (char*)NULL };
1059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1061  *  Description of Aix_Once_Init_1 fix
1062  */
1063 tSCC zAix_Once_Init_1Name[] =
1064      "aix_once_init_1";
1067  *  File name selection pattern
1068  */
1069 tSCC zAix_Once_Init_1List[] =
1070   "pthread.h\0";
1072  *  Machine/OS name selection pattern
1073  */
1074 tSCC* apzAix_Once_Init_1Machs[] = {
1075         "*-*-aix*",
1076         (const char*)NULL };
1079  *  content selection pattern - do fix if pattern found
1080  */
1081 tSCC zAix_Once_Init_1Select0[] =
1082        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
1083 \\{ \\\\\n";
1085 #define    AIX_ONCE_INIT_1_TEST_CT  1
1086 static tTestDesc aAix_Once_Init_1Tests[] = {
1087   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
1090  *  Fix Command Arguments for Aix_Once_Init_1
1091  */
1092 static const char* apzAix_Once_Init_1Patch[] = {
1093     "format",
1094     "#define PTHREAD_ONCE_INIT \\\n\
1095 {{ \\\n",
1096     (char*)NULL };
1098 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1100  *  Description of Aix_Once_Init_2 fix
1101  */
1102 tSCC zAix_Once_Init_2Name[] =
1103      "aix_once_init_2";
1106  *  File name selection pattern
1107  */
1108 tSCC zAix_Once_Init_2List[] =
1109   "pthread.h\0";
1111  *  Machine/OS name selection pattern
1112  */
1113 tSCC* apzAix_Once_Init_2Machs[] = {
1114         "*-*-aix*",
1115         (const char*)NULL };
1118  *  content selection pattern - do fix if pattern found
1119  */
1120 tSCC zAix_Once_Init_2Select0[] =
1121        "[ \t]0 \\\\\n\
1122 \\}\n";
1124 #define    AIX_ONCE_INIT_2_TEST_CT  1
1125 static tTestDesc aAix_Once_Init_2Tests[] = {
1126   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1129  *  Fix Command Arguments for Aix_Once_Init_2
1130  */
1131 static const char* apzAix_Once_Init_2Patch[] = {
1132     "format",
1133     "\t0 \\\n\
1134 }}\n",
1135     (char*)NULL };
1137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1139  *  Description of Aix_Mutex_Initializer_1 fix
1140  */
1141 tSCC zAix_Mutex_Initializer_1Name[] =
1142      "aix_mutex_initializer_1";
1145  *  File name selection pattern
1146  */
1147 tSCC zAix_Mutex_Initializer_1List[] =
1148   "pthread.h\0";
1150  *  Machine/OS name selection pattern
1151  */
1152 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1153         "*-*-aix*",
1154         (const char*)NULL };
1157  *  content selection pattern - do fix if pattern found
1158  */
1159 tSCC zAix_Mutex_Initializer_1Select0[] =
1160        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1161 \\{ \\\\\n";
1163 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
1164 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1165   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1168  *  Fix Command Arguments for Aix_Mutex_Initializer_1
1169  */
1170 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1171     "format",
1172     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1173 {{ \\\n",
1174     (char*)NULL };
1176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1178  *  Description of Aix_Cond_Initializer_1 fix
1179  */
1180 tSCC zAix_Cond_Initializer_1Name[] =
1181      "aix_cond_initializer_1";
1184  *  File name selection pattern
1185  */
1186 tSCC zAix_Cond_Initializer_1List[] =
1187   "pthread.h\0";
1189  *  Machine/OS name selection pattern
1190  */
1191 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1192         "*-*-aix*",
1193         (const char*)NULL };
1196  *  content selection pattern - do fix if pattern found
1197  */
1198 tSCC zAix_Cond_Initializer_1Select0[] =
1199        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1200 \\{ \\\\\n";
1202 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
1203 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1204   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1207  *  Fix Command Arguments for Aix_Cond_Initializer_1
1208  */
1209 static const char* apzAix_Cond_Initializer_1Patch[] = {
1210     "format",
1211     "#define PTHREAD_COND_INITIALIZER \\\n\
1212 {{ \\\n",
1213     (char*)NULL };
1215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1217  *  Description of Aix_Rwlock_Initializer_1 fix
1218  */
1219 tSCC zAix_Rwlock_Initializer_1Name[] =
1220      "aix_rwlock_initializer_1";
1223  *  File name selection pattern
1224  */
1225 tSCC zAix_Rwlock_Initializer_1List[] =
1226   "pthread.h\0";
1228  *  Machine/OS name selection pattern
1229  */
1230 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1231         "*-*-aix*",
1232         (const char*)NULL };
1235  *  content selection pattern - do fix if pattern found
1236  */
1237 tSCC zAix_Rwlock_Initializer_1Select0[] =
1238        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1239 \\{ \\\\\n";
1241 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1242 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1243   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1246  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1247  */
1248 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1249     "format",
1250     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1251 {{ \\\n",
1252     (char*)NULL };
1254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1256  *  Description of Aix_Pthread fix
1257  */
1258 tSCC zAix_PthreadName[] =
1259      "aix_pthread";
1262  *  File name selection pattern
1263  */
1264 tSCC zAix_PthreadList[] =
1265   "pthread.h\0";
1267  *  Machine/OS name selection pattern
1268  */
1269 #define apzAix_PthreadMachs (const char**)NULL
1272  *  content selection pattern - do fix if pattern found
1273  */
1274 tSCC zAix_PthreadSelect0[] =
1275        "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\
1276 [^A-Za-z_0-9 \t\n\
1277 (])";
1279 #define    AIX_PTHREAD_TEST_CT  1
1280 static tTestDesc aAix_PthreadTests[] = {
1281   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1284  *  Fix Command Arguments for Aix_Pthread
1285  */
1286 static const char* apzAix_PthreadPatch[] = {
1287     "format",
1288     "%1 %2",
1289     (char*)NULL };
1291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1293  *  Description of Aix_Stdint_1 fix
1294  */
1295 tSCC zAix_Stdint_1Name[] =
1296      "aix_stdint_1";
1299  *  File name selection pattern
1300  */
1301 tSCC zAix_Stdint_1List[] =
1302   "stdint-aix.h\0stdint.h\0";
1304  *  Machine/OS name selection pattern
1305  */
1306 tSCC* apzAix_Stdint_1Machs[] = {
1307         "*-*-aix*",
1308         (const char*)NULL };
1311  *  content selection pattern - do fix if pattern found
1312  */
1313 tSCC zAix_Stdint_1Select0[] =
1314        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1315 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1317 #define    AIX_STDINT_1_TEST_CT  1
1318 static tTestDesc aAix_Stdint_1Tests[] = {
1319   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1322  *  Fix Command Arguments for Aix_Stdint_1
1323  */
1324 static const char* apzAix_Stdint_1Patch[] = {
1325     "format",
1326     "#define UINT8_MAX\t(255)\n\
1327 #define UINT16_MAX\t(65535)",
1328     (char*)NULL };
1330 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1332  *  Description of Aix_Stdint_2 fix
1333  */
1334 tSCC zAix_Stdint_2Name[] =
1335      "aix_stdint_2";
1338  *  File name selection pattern
1339  */
1340 tSCC zAix_Stdint_2List[] =
1341   "stdint-aix.h\0stdint.h\0";
1343  *  Machine/OS name selection pattern
1344  */
1345 tSCC* apzAix_Stdint_2Machs[] = {
1346         "*-*-aix*",
1347         (const char*)NULL };
1350  *  content selection pattern - do fix if pattern found
1351  */
1352 tSCC zAix_Stdint_2Select0[] =
1353        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1354 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1355 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1356 #else\n\
1357 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1358 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1359 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1361 #define    AIX_STDINT_2_TEST_CT  1
1362 static tTestDesc aAix_Stdint_2Tests[] = {
1363   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1366  *  Fix Command Arguments for Aix_Stdint_2
1367  */
1368 static const char* apzAix_Stdint_2Patch[] = {
1369     "format",
1370     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1371 #define INTPTR_MAX\t9223372036854775807L\n\
1372 #define UINTPTR_MAX\t18446744073709551615UL\n\
1373 #else\n\
1374 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1375 #define INTPTR_MAX\t2147483647L\n\
1376 #define UINTPTR_MAX\t4294967295UL",
1377     (char*)NULL };
1379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1381  *  Description of Aix_Stdint_3 fix
1382  */
1383 tSCC zAix_Stdint_3Name[] =
1384      "aix_stdint_3";
1387  *  File name selection pattern
1388  */
1389 tSCC zAix_Stdint_3List[] =
1390   "stdint-aix.h\0stdint.h\0";
1392  *  Machine/OS name selection pattern
1393  */
1394 tSCC* apzAix_Stdint_3Machs[] = {
1395         "*-*-aix*",
1396         (const char*)NULL };
1399  *  content selection pattern - do fix if pattern found
1400  */
1401 tSCC zAix_Stdint_3Select0[] =
1402        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1403 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1404 #else\n\
1405 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1406 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1408 #define    AIX_STDINT_3_TEST_CT  1
1409 static tTestDesc aAix_Stdint_3Tests[] = {
1410   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1413  *  Fix Command Arguments for Aix_Stdint_3
1414  */
1415 static const char* apzAix_Stdint_3Patch[] = {
1416     "format",
1417     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1418 #define PTRDIFF_MAX\t9223372036854775807L\n\
1419 #else\n\
1420 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1421 #define PTRDIFF_MAX\t2147483647L",
1422     (char*)NULL };
1424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1426  *  Description of Aix_Stdint_4 fix
1427  */
1428 tSCC zAix_Stdint_4Name[] =
1429      "aix_stdint_4";
1432  *  File name selection pattern
1433  */
1434 tSCC zAix_Stdint_4List[] =
1435   "stdint-aix.h\0stdint.h\0";
1437  *  Machine/OS name selection pattern
1438  */
1439 tSCC* apzAix_Stdint_4Machs[] = {
1440         "*-*-aix*",
1441         (const char*)NULL };
1444  *  content selection pattern - do fix if pattern found
1445  */
1446 tSCC zAix_Stdint_4Select0[] =
1447        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1448 #else\n\
1449 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1451 #define    AIX_STDINT_4_TEST_CT  1
1452 static tTestDesc aAix_Stdint_4Tests[] = {
1453   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1456  *  Fix Command Arguments for Aix_Stdint_4
1457  */
1458 static const char* apzAix_Stdint_4Patch[] = {
1459     "format",
1460     "#define SIZE_MAX\t18446744073709551615UL\n\
1461 #else\n\
1462 #define SIZE_MAX\t4294967295UL",
1463     (char*)NULL };
1465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1467  *  Description of Aix_Stdint_5 fix
1468  */
1469 tSCC zAix_Stdint_5Name[] =
1470      "aix_stdint_5";
1473  *  File name selection pattern
1474  */
1475 tSCC zAix_Stdint_5List[] =
1476   "stdint-aix.h\0stdint.h\0";
1478  *  Machine/OS name selection pattern
1479  */
1480 tSCC* apzAix_Stdint_5Machs[] = {
1481         "*-*-aix*",
1482         (const char*)NULL };
1485  *  content selection pattern - do fix if pattern found
1486  */
1487 tSCC zAix_Stdint_5Select0[] =
1488        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1489 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1491 #define    AIX_STDINT_5_TEST_CT  1
1492 static tTestDesc aAix_Stdint_5Tests[] = {
1493   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1496  *  Fix Command Arguments for Aix_Stdint_5
1497  */
1498 static const char* apzAix_Stdint_5Patch[] = {
1499     "format",
1500     "#define UINT8_C(c)\tc\n\
1501 #define UINT16_C(c)\tc",
1502     (char*)NULL };
1504 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1506  *  Description of Aix_Stdio_Inline fix
1507  */
1508 tSCC zAix_Stdio_InlineName[] =
1509      "aix_stdio_inline";
1512  *  File name selection pattern
1513  */
1514 tSCC zAix_Stdio_InlineList[] =
1515   "stdio.h\0";
1517  *  Machine/OS name selection pattern
1518  */
1519 tSCC* apzAix_Stdio_InlineMachs[] = {
1520         "*-*-aix*",
1521         (const char*)NULL };
1524  *  content selection pattern - do fix if pattern found
1525  */
1526 tSCC zAix_Stdio_InlineSelect0[] =
1527        "#ifdef __cplusplus\\\n\
1528 }\\\n\
1529 \\\n\
1530 #ifdef ferror\\\n";
1532 #define    AIX_STDIO_INLINE_TEST_CT  1
1533 static tTestDesc aAix_Stdio_InlineTests[] = {
1534   { TT_EGREP,    zAix_Stdio_InlineSelect0, (regex_t*)NULL }, };
1537  *  Fix Command Arguments for Aix_Stdio_Inline
1538  */
1539 static const char* apzAix_Stdio_InlinePatch[] = {
1540     "format",
1541     "#ifdef __cplusplus\n\
1542 }\n\
1543 #endif\n\n\
1544 #if (defined(__cplusplus) && defined(__IBMCPP__))\n\
1545 #ifdef ferror\n",
1546     (char*)NULL };
1548 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1550  *  Description of Aix_Stdlib_Malloc fix
1551  */
1552 tSCC zAix_Stdlib_MallocName[] =
1553      "aix_stdlib_malloc";
1556  *  File name selection pattern
1557  */
1558 tSCC zAix_Stdlib_MallocList[] =
1559   "stdlib.h\0";
1561  *  Machine/OS name selection pattern
1562  */
1563 tSCC* apzAix_Stdlib_MallocMachs[] = {
1564         "*-*-aix*",
1565         (const char*)NULL };
1568  *  content selection pattern - do fix if pattern found
1569  */
1570 tSCC zAix_Stdlib_MallocSelect0[] =
1571        "#define[ \t]+malloc[ \t]+__linux_malloc";
1573 #define    AIX_STDLIB_MALLOC_TEST_CT  1
1574 static tTestDesc aAix_Stdlib_MallocTests[] = {
1575   { TT_EGREP,    zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, };
1578  *  Fix Command Arguments for Aix_Stdlib_Malloc
1579  */
1580 static const char* apzAix_Stdlib_MallocPatch[] = {
1581     "format",
1582     "extern void *malloc(size_t) __asm__(\"__linux_malloc\");",
1583     (char*)NULL };
1585 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1587  *  Description of Aix_Stdlib_Realloc fix
1588  */
1589 tSCC zAix_Stdlib_ReallocName[] =
1590      "aix_stdlib_realloc";
1593  *  File name selection pattern
1594  */
1595 tSCC zAix_Stdlib_ReallocList[] =
1596   "stdlib.h\0";
1598  *  Machine/OS name selection pattern
1599  */
1600 tSCC* apzAix_Stdlib_ReallocMachs[] = {
1601         "*-*-aix*",
1602         (const char*)NULL };
1605  *  content selection pattern - do fix if pattern found
1606  */
1607 tSCC zAix_Stdlib_ReallocSelect0[] =
1608        "#define[ \t]+realloc[ \t]+__linux_realloc";
1610 #define    AIX_STDLIB_REALLOC_TEST_CT  1
1611 static tTestDesc aAix_Stdlib_ReallocTests[] = {
1612   { TT_EGREP,    zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, };
1615  *  Fix Command Arguments for Aix_Stdlib_Realloc
1616  */
1617 static const char* apzAix_Stdlib_ReallocPatch[] = {
1618     "format",
1619     "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");",
1620     (char*)NULL };
1622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1624  *  Description of Aix_Stdlib_Calloc fix
1625  */
1626 tSCC zAix_Stdlib_CallocName[] =
1627      "aix_stdlib_calloc";
1630  *  File name selection pattern
1631  */
1632 tSCC zAix_Stdlib_CallocList[] =
1633   "stdlib.h\0";
1635  *  Machine/OS name selection pattern
1636  */
1637 tSCC* apzAix_Stdlib_CallocMachs[] = {
1638         "*-*-aix*",
1639         (const char*)NULL };
1642  *  content selection pattern - do fix if pattern found
1643  */
1644 tSCC zAix_Stdlib_CallocSelect0[] =
1645        "#define[ \t]+calloc[ \t]+__linux_calloc";
1647 #define    AIX_STDLIB_CALLOC_TEST_CT  1
1648 static tTestDesc aAix_Stdlib_CallocTests[] = {
1649   { TT_EGREP,    zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, };
1652  *  Fix Command Arguments for Aix_Stdlib_Calloc
1653  */
1654 static const char* apzAix_Stdlib_CallocPatch[] = {
1655     "format",
1656     "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");",
1657     (char*)NULL };
1659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1661  *  Description of Aix_Stdlib_Valloc fix
1662  */
1663 tSCC zAix_Stdlib_VallocName[] =
1664      "aix_stdlib_valloc";
1667  *  File name selection pattern
1668  */
1669 tSCC zAix_Stdlib_VallocList[] =
1670   "stdlib.h\0";
1672  *  Machine/OS name selection pattern
1673  */
1674 tSCC* apzAix_Stdlib_VallocMachs[] = {
1675         "*-*-aix*",
1676         (const char*)NULL };
1679  *  content selection pattern - do fix if pattern found
1680  */
1681 tSCC zAix_Stdlib_VallocSelect0[] =
1682        "#define[ \t]+valloc[ \t]+__linux_valloc";
1684 #define    AIX_STDLIB_VALLOC_TEST_CT  1
1685 static tTestDesc aAix_Stdlib_VallocTests[] = {
1686   { TT_EGREP,    zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, };
1689  *  Fix Command Arguments for Aix_Stdlib_Valloc
1690  */
1691 static const char* apzAix_Stdlib_VallocPatch[] = {
1692     "format",
1693     "extern void *valloc(size_t) __asm__(\"__linux_valloc\");",
1694     (char*)NULL };
1696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1698  *  Description of Aix_Strtof_Const fix
1699  */
1700 tSCC zAix_Strtof_ConstName[] =
1701      "aix_strtof_const";
1704  *  File name selection pattern
1705  */
1706 tSCC zAix_Strtof_ConstList[] =
1707   "stdlib.h\0";
1709  *  Machine/OS name selection pattern
1710  */
1711 tSCC* apzAix_Strtof_ConstMachs[] = {
1712         "*-*-aix*",
1713         (const char*)NULL };
1716  *  content selection pattern - do fix if pattern found
1717  */
1718 tSCC zAix_Strtof_ConstSelect0[] =
1719        "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1721 #define    AIX_STRTOF_CONST_TEST_CT  1
1722 static tTestDesc aAix_Strtof_ConstTests[] = {
1723   { TT_EGREP,    zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1726  *  Fix Command Arguments for Aix_Strtof_Const
1727  */
1728 static const char* apzAix_Strtof_ConstPatch[] = {
1729     "format",
1730     "%1(const char *, char **);",
1731     (char*)NULL };
1733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1735  *  Description of Aix_Sysmachine fix
1736  */
1737 tSCC zAix_SysmachineName[] =
1738      "aix_sysmachine";
1741  *  File name selection pattern
1742  */
1743 tSCC zAix_SysmachineList[] =
1744   "sys/machine.h\0";
1746  *  Machine/OS name selection pattern
1747  */
1748 tSCC* apzAix_SysmachineMachs[] = {
1749         "*-*-aix*",
1750         (const char*)NULL };
1753  *  content selection pattern - do fix if pattern found
1754  */
1755 tSCC zAix_SysmachineSelect0[] =
1756        "\\\\ +\n";
1758 #define    AIX_SYSMACHINE_TEST_CT  1
1759 static tTestDesc aAix_SysmachineTests[] = {
1760   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1763  *  Fix Command Arguments for Aix_Sysmachine
1764  */
1765 static const char* apzAix_SysmachinePatch[] = {
1766     "format",
1767     "\\\n",
1768     (char*)NULL };
1770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1772  *  Description of Aix_Syswait_2 fix
1773  */
1774 tSCC zAix_Syswait_2Name[] =
1775      "aix_syswait_2";
1778  *  File name selection pattern
1779  */
1780 tSCC zAix_Syswait_2List[] =
1781   "sys/wait.h\0";
1783  *  Machine/OS name selection pattern
1784  */
1785 tSCC* apzAix_Syswait_2Machs[] = {
1786         "*-*-aix*",
1787         (const char*)NULL };
1790  *  content selection pattern - do fix if pattern found
1791  */
1792 tSCC zAix_Syswait_2Select0[] =
1793        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1795 #define    AIX_SYSWAIT_2_TEST_CT  1
1796 static tTestDesc aAix_Syswait_2Tests[] = {
1797   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1800  *  Fix Command Arguments for Aix_Syswait_2
1801  */
1802 static const char* apzAix_Syswait_2Patch[] = {
1803     "format",
1804     "? (int)%1",
1805     (char*)NULL };
1807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1809  *  Description of Aix_Volatile fix
1810  */
1811 tSCC zAix_VolatileName[] =
1812      "aix_volatile";
1815  *  File name selection pattern
1816  */
1817 tSCC zAix_VolatileList[] =
1818   "sys/signal.h\0";
1820  *  Machine/OS name selection pattern
1821  */
1822 tSCC* apzAix_VolatileMachs[] = {
1823         "*-*-aix*",
1824         (const char*)NULL };
1827  *  content selection pattern - do fix if pattern found
1828  */
1829 tSCC zAix_VolatileSelect0[] =
1830        "typedef volatile int sig_atomic_t";
1832 #define    AIX_VOLATILE_TEST_CT  1
1833 static tTestDesc aAix_VolatileTests[] = {
1834   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1837  *  Fix Command Arguments for Aix_Volatile
1838  */
1839 static const char* apzAix_VolatilePatch[] = {
1840     "format",
1841     "typedef int sig_atomic_t",
1842     (char*)NULL };
1844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1846  *  Description of Alpha___Assert fix
1847  */
1848 tSCC zAlpha___AssertName[] =
1849      "alpha___assert";
1852  *  File name selection pattern
1853  */
1854 tSCC zAlpha___AssertList[] =
1855   "assert.h\0";
1857  *  Machine/OS name selection pattern
1858  */
1859 #define apzAlpha___AssertMachs (const char**)NULL
1862  *  content selection pattern - do fix if pattern found
1863  */
1864 tSCC zAlpha___AssertSelect0[] =
1865        "__assert\\(char \\*, char \\*, int\\)";
1867 #define    ALPHA___ASSERT_TEST_CT  1
1868 static tTestDesc aAlpha___AssertTests[] = {
1869   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1872  *  Fix Command Arguments for Alpha___Assert
1873  */
1874 static const char* apzAlpha___AssertPatch[] = {
1875     "format",
1876     "__assert(const char *, const char *, int)",
1877     (char*)NULL };
1879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1881  *  Description of Alpha_Assert fix
1882  */
1883 tSCC zAlpha_AssertName[] =
1884      "alpha_assert";
1887  *  File name selection pattern
1888  */
1889 tSCC zAlpha_AssertList[] =
1890   "assert.h\0";
1892  *  Machine/OS name selection pattern
1893  */
1894 #define apzAlpha_AssertMachs (const char**)NULL
1897  *  content selection pattern - do fix if pattern found
1898  */
1899 tSCC zAlpha_AssertSelect0[] =
1900        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1902 #define    ALPHA_ASSERT_TEST_CT  1
1903 static tTestDesc aAlpha_AssertTests[] = {
1904   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1907  *  Fix Command Arguments for Alpha_Assert
1908  */
1909 static const char* apzAlpha_AssertPatch[] = {
1910     "format",
1911     "%1(EX)",
1912     (char*)NULL };
1914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1916  *  Description of Alpha_Getopt fix
1917  */
1918 tSCC zAlpha_GetoptName[] =
1919      "alpha_getopt";
1922  *  File name selection pattern
1923  */
1924 tSCC zAlpha_GetoptList[] =
1925   "stdio.h\0stdlib.h\0";
1927  *  Machine/OS name selection pattern
1928  */
1929 #define apzAlpha_GetoptMachs (const char**)NULL
1932  *  content selection pattern - do fix if pattern found
1933  */
1934 tSCC zAlpha_GetoptSelect0[] =
1935        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1937 #define    ALPHA_GETOPT_TEST_CT  1
1938 static tTestDesc aAlpha_GetoptTests[] = {
1939   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1942  *  Fix Command Arguments for Alpha_Getopt
1943  */
1944 static const char* apzAlpha_GetoptPatch[] = {
1945     "format",
1946     "getopt(int, char *const[], const char *)",
1947     (char*)NULL };
1949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1951  *  Description of Alpha_If_Semicolon fix
1952  */
1953 tSCC zAlpha_If_SemicolonName[] =
1954      "alpha_if_semicolon";
1957  *  File name selection pattern
1958  */
1959 tSCC zAlpha_If_SemicolonList[] =
1960   "net/if.h\0";
1962  *  Machine/OS name selection pattern
1963  */
1964 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1967  *  content selection pattern - do fix if pattern found
1968  */
1969 tSCC zAlpha_If_SemicolonSelect0[] =
1970        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1972 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
1973 static tTestDesc aAlpha_If_SemicolonTests[] = {
1974   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1977  *  Fix Command Arguments for Alpha_If_Semicolon
1978  */
1979 static const char* apzAlpha_If_SemicolonPatch[] = {
1980     "format",
1981     "struct sockaddr vmif_paddr;\t/*",
1982     (char*)NULL };
1984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1986  *  Description of Alpha_Parens fix
1987  */
1988 tSCC zAlpha_ParensName[] =
1989      "alpha_parens";
1992  *  File name selection pattern
1993  */
1994 tSCC zAlpha_ParensList[] =
1995   "sym.h\0";
1997  *  Machine/OS name selection pattern
1998  */
1999 #define apzAlpha_ParensMachs (const char**)NULL
2002  *  content selection pattern - do fix if pattern found
2003  */
2004 tSCC zAlpha_ParensSelect0[] =
2005        "#ifndef\\(__mips64\\)";
2007 #define    ALPHA_PARENS_TEST_CT  1
2008 static tTestDesc aAlpha_ParensTests[] = {
2009   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
2012  *  Fix Command Arguments for Alpha_Parens
2013  */
2014 static const char* apzAlpha_ParensPatch[] = {
2015     "format",
2016     "#ifndef __mips64",
2017     (char*)NULL };
2019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2021  *  Description of Alpha_Sbrk fix
2022  */
2023 tSCC zAlpha_SbrkName[] =
2024      "alpha_sbrk";
2027  *  File name selection pattern
2028  */
2029 tSCC zAlpha_SbrkList[] =
2030   "unistd.h\0";
2032  *  Machine/OS name selection pattern
2033  */
2034 #define apzAlpha_SbrkMachs (const char**)NULL
2037  *  content selection pattern - do fix if pattern found
2038  */
2039 tSCC zAlpha_SbrkSelect0[] =
2040        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
2042 #define    ALPHA_SBRK_TEST_CT  1
2043 static tTestDesc aAlpha_SbrkTests[] = {
2044   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
2047  *  Fix Command Arguments for Alpha_Sbrk
2048  */
2049 static const char* apzAlpha_SbrkPatch[] = {
2050     "format",
2051     "void *sbrk(",
2052     (char*)NULL };
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2056  *  Description of Avoid_Bool_Define fix
2057  */
2058 tSCC zAvoid_Bool_DefineName[] =
2059      "avoid_bool_define";
2062  *  File name selection pattern
2063  */
2064 tSCC zAvoid_Bool_DefineList[] =
2065   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2067  *  Machine/OS name selection pattern
2068  */
2069 #define apzAvoid_Bool_DefineMachs (const char**)NULL
2072  *  content selection pattern - do fix if pattern found
2073  */
2074 tSCC zAvoid_Bool_DefineSelect0[] =
2075        "#[ \t]*define[ \t]+bool[ \t]";
2078  *  content bypass pattern - skip fix if pattern found
2079  */
2080 tSCC zAvoid_Bool_DefineBypass0[] =
2081        "__cplusplus";
2083 #define    AVOID_BOOL_DEFINE_TEST_CT  2
2084 static tTestDesc aAvoid_Bool_DefineTests[] = {
2085   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
2086   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
2089  *  Fix Command Arguments for Avoid_Bool_Define
2090  */
2091 static const char* apzAvoid_Bool_DefinePatch[] = {
2092     "format",
2093     "#ifndef __cplusplus\n\
2094 %0\n\
2095 #endif",
2096     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
2097     (char*)NULL };
2099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2101  *  Description of Avoid_Bool_Type fix
2102  */
2103 tSCC zAvoid_Bool_TypeName[] =
2104      "avoid_bool_type";
2107  *  File name selection pattern
2108  */
2109 tSCC zAvoid_Bool_TypeList[] =
2110   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2112  *  Machine/OS name selection pattern
2113  */
2114 #define apzAvoid_Bool_TypeMachs (const char**)NULL
2117  *  content selection pattern - do fix if pattern found
2118  */
2119 tSCC zAvoid_Bool_TypeSelect0[] =
2120        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
2123  *  content bypass pattern - skip fix if pattern found
2124  */
2125 tSCC zAvoid_Bool_TypeBypass0[] =
2126        "__cplusplus";
2128 #define    AVOID_BOOL_TYPE_TEST_CT  2
2129 static tTestDesc aAvoid_Bool_TypeTests[] = {
2130   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
2131   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
2134  *  Fix Command Arguments for Avoid_Bool_Type
2135  */
2136 static const char* apzAvoid_Bool_TypePatch[] = {
2137     "format",
2138     "#ifndef __cplusplus\n\
2139 %0\n\
2140 #endif",
2141     (char*)NULL };
2143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2145  *  Description of Avoid_Wchar_T_Type fix
2146  */
2147 tSCC zAvoid_Wchar_T_TypeName[] =
2148      "avoid_wchar_t_type";
2151  *  File name selection pattern
2152  */
2153 #define zAvoid_Wchar_T_TypeList (char*)NULL
2155  *  Machine/OS name selection pattern
2156  */
2157 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
2160  *  content selection pattern - do fix if pattern found
2161  */
2162 tSCC zAvoid_Wchar_T_TypeSelect0[] =
2163        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
2166  *  content bypass pattern - skip fix if pattern found
2167  */
2168 tSCC zAvoid_Wchar_T_TypeBypass0[] =
2169        "__cplusplus";
2170 tSCC zAvoid_Wchar_T_TypeBypass1[] =
2171        "_LINUX_NLS_H";
2172 tSCC zAvoid_Wchar_T_TypeBypass2[] =
2173        "XFree86: xc/lib/X11/Xlib\\.h";
2175 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
2176 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
2177   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
2178   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
2179   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
2180   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
2183  *  Fix Command Arguments for Avoid_Wchar_T_Type
2184  */
2185 static const char* apzAvoid_Wchar_T_TypePatch[] = {
2186     "format",
2187     "#ifndef __cplusplus\n\
2188 %0\n\
2189 #endif",
2190     (char*)NULL };
2192 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2194  *  Description of Bad_Struct_Term fix
2195  */
2196 tSCC zBad_Struct_TermName[] =
2197      "bad_struct_term";
2200  *  File name selection pattern
2201  */
2202 tSCC zBad_Struct_TermList[] =
2203   "curses.h\0";
2205  *  Machine/OS name selection pattern
2206  */
2207 #define apzBad_Struct_TermMachs (const char**)NULL
2210  *  content selection pattern - do fix if pattern found
2211  */
2212 tSCC zBad_Struct_TermSelect0[] =
2213        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
2215 #define    BAD_STRUCT_TERM_TEST_CT  1
2216 static tTestDesc aBad_Struct_TermTests[] = {
2217   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
2220  *  Fix Command Arguments for Bad_Struct_Term
2221  */
2222 static const char* apzBad_Struct_TermPatch[] = {
2223     "format",
2224     "struct term;",
2225     (char*)NULL };
2227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2229  *  Description of Badquote fix
2230  */
2231 tSCC zBadquoteName[] =
2232      "badquote";
2235  *  File name selection pattern
2236  */
2237 tSCC zBadquoteList[] =
2238   "sundev/vuid_event.h\0";
2240  *  Machine/OS name selection pattern
2241  */
2242 #define apzBadquoteMachs (const char**)NULL
2245  *  content selection pattern - do fix if pattern found
2246  */
2247 tSCC zBadquoteSelect0[] =
2248        "doesn't";
2250 #define    BADQUOTE_TEST_CT  1
2251 static tTestDesc aBadquoteTests[] = {
2252   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
2255  *  Fix Command Arguments for Badquote
2256  */
2257 static const char* apzBadquotePatch[] = {
2258     "format",
2259     "does not",
2260     (char*)NULL };
2262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2264  *  Description of Broken_Assert_Stdio fix
2265  */
2266 tSCC zBroken_Assert_StdioName[] =
2267      "broken_assert_stdio";
2270  *  File name selection pattern
2271  */
2272 tSCC zBroken_Assert_StdioList[] =
2273   "assert.h\0";
2275  *  Machine/OS name selection pattern
2276  */
2277 #define apzBroken_Assert_StdioMachs (const char**)NULL
2280  *  content selection pattern - do fix if pattern found
2281  */
2282 tSCC zBroken_Assert_StdioSelect0[] =
2283        "stderr";
2286  *  content bypass pattern - skip fix if pattern found
2287  */
2288 tSCC zBroken_Assert_StdioBypass0[] =
2289        "include.*stdio\\.h";
2291 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
2292 static tTestDesc aBroken_Assert_StdioTests[] = {
2293   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
2294   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
2297  *  Fix Command Arguments for Broken_Assert_Stdio
2298  */
2299 static const char* apzBroken_Assert_StdioPatch[] = {
2300     "wrap",
2301     "#include <stdio.h>\n",
2302     (char*)NULL };
2304 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2306  *  Description of Broken_Assert_Stdlib fix
2307  */
2308 tSCC zBroken_Assert_StdlibName[] =
2309      "broken_assert_stdlib";
2312  *  File name selection pattern
2313  */
2314 tSCC zBroken_Assert_StdlibList[] =
2315   "assert.h\0";
2317  *  Machine/OS name selection pattern
2318  */
2319 #define apzBroken_Assert_StdlibMachs (const char**)NULL
2322  *  content selection pattern - do fix if pattern found
2323  */
2324 tSCC zBroken_Assert_StdlibSelect0[] =
2325        "exit *\\(|abort *\\(";
2328  *  content bypass pattern - skip fix if pattern found
2329  */
2330 tSCC zBroken_Assert_StdlibBypass0[] =
2331        "include.*stdlib\\.h";
2333 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
2334 static tTestDesc aBroken_Assert_StdlibTests[] = {
2335   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2336   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
2339  *  Fix Command Arguments for Broken_Assert_Stdlib
2340  */
2341 static const char* apzBroken_Assert_StdlibPatch[] = {
2342     "wrap",
2343     "#ifdef __cplusplus\n\
2344 #include <stdlib.h>\n\
2345 #endif\n",
2346     (char*)NULL };
2348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2350  *  Description of Broken_Cabs fix
2351  */
2352 tSCC zBroken_CabsName[] =
2353      "broken_cabs";
2356  *  File name selection pattern
2357  */
2358 tSCC zBroken_CabsList[] =
2359   "math.h\0architecture/*/math.h\0";
2361  *  Machine/OS name selection pattern
2362  */
2363 #define apzBroken_CabsMachs (const char**)NULL
2366  *  content selection pattern - do fix if pattern found
2367  */
2368 tSCC zBroken_CabsSelect0[] =
2369        "^extern[ \t]+double[ \t]+cabs";
2371 #define    BROKEN_CABS_TEST_CT  1
2372 static tTestDesc aBroken_CabsTests[] = {
2373   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2376  *  Fix Command Arguments for Broken_Cabs
2377  */
2378 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2379     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2380     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2381     (char*)NULL };
2383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2385  *  Description of Broken_Nan fix
2386  */
2387 tSCC zBroken_NanName[] =
2388      "broken_nan";
2391  *  File name selection pattern
2392  */
2393 tSCC zBroken_NanList[] =
2394   "architecture/ppc/math.h\0architecture/*/math.h\0";
2396  *  Machine/OS name selection pattern
2397  */
2398 #define apzBroken_NanMachs (const char**)NULL
2401  *  content selection pattern - do fix if pattern found
2402  */
2403 tSCC zBroken_NanSelect0[] =
2404        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2407  *  content bypass pattern - skip fix if pattern found
2408  */
2409 tSCC zBroken_NanBypass0[] =
2410        "powl";
2412 #define    BROKEN_NAN_TEST_CT  2
2413 static tTestDesc aBroken_NanTests[] = {
2414   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2415   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2418  *  Fix Command Arguments for Broken_Nan
2419  */
2420 static const char* apzBroken_NanPatch[] = {
2421     "format",
2422     "#if 1",
2423     (char*)NULL };
2425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2427  *  Description of Bsd_Stdio_Attrs_Conflict fix
2428  */
2429 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2430      "bsd_stdio_attrs_conflict";
2433  *  File name selection pattern
2434  */
2435 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2436   "stdio.h\0";
2438  *  Machine/OS name selection pattern
2439  */
2440 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2441         "*-*-*bsd*",
2442         "*-*-*darwin*",
2443         (const char*)NULL };
2446  *  content selection pattern - do fix if pattern found
2447  */
2448 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2449        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2451 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2452 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2453   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2456  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2457  */
2458 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2459     "format",
2460     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2461 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2462 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2463     (char*)NULL };
2465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2467  *  Description of Ctrl_Quotes_Def fix
2468  */
2469 tSCC zCtrl_Quotes_DefName[] =
2470      "ctrl_quotes_def";
2473  *  File name selection pattern
2474  */
2475 #define zCtrl_Quotes_DefList (char*)NULL
2477  *  Machine/OS name selection pattern
2478  */
2479 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2482  *  content selection pattern - do fix if pattern found
2483  */
2484 tSCC zCtrl_Quotes_DefSelect0[] =
2485        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2487 #define    CTRL_QUOTES_DEF_TEST_CT  1
2488 static tTestDesc aCtrl_Quotes_DefTests[] = {
2489   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2492  *  Fix Command Arguments for Ctrl_Quotes_Def
2493  */
2494 static const char* apzCtrl_Quotes_DefPatch[] = {
2495     "char_macro_def",
2496     "CTRL",
2497     (char*)NULL };
2499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2501  *  Description of Ctrl_Quotes_Use fix
2502  */
2503 tSCC zCtrl_Quotes_UseName[] =
2504      "ctrl_quotes_use";
2507  *  File name selection pattern
2508  */
2509 #define zCtrl_Quotes_UseList (char*)NULL
2511  *  Machine/OS name selection pattern
2512  */
2513 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2516  *  content selection pattern - do fix if pattern found
2517  */
2518 tSCC zCtrl_Quotes_UseSelect0[] =
2519        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2521 #define    CTRL_QUOTES_USE_TEST_CT  1
2522 static tTestDesc aCtrl_Quotes_UseTests[] = {
2523   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2526  *  Fix Command Arguments for Ctrl_Quotes_Use
2527  */
2528 static const char* apzCtrl_Quotes_UsePatch[] = {
2529     "char_macro_use",
2530     "CTRL",
2531     (char*)NULL };
2533 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2535  *  Description of Cxx_Unready fix
2536  */
2537 tSCC zCxx_UnreadyName[] =
2538      "cxx_unready";
2541  *  File name selection pattern
2542  */
2543 tSCC zCxx_UnreadyList[] =
2544   "sys/mman.h\0rpc/types.h\0";
2546  *  Machine/OS name selection pattern
2547  */
2548 #define apzCxx_UnreadyMachs (const char**)NULL
2551  *  content selection pattern - do fix if pattern found
2552  */
2553 tSCC zCxx_UnreadySelect0[] =
2554        "[^#]+malloc.*;";
2557  *  content bypass pattern - skip fix if pattern found
2558  */
2559 tSCC zCxx_UnreadyBypass0[] =
2560        "\"C\"|__BEGIN_DECLS";
2562 #define    CXX_UNREADY_TEST_CT  2
2563 static tTestDesc aCxx_UnreadyTests[] = {
2564   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2565   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2568  *  Fix Command Arguments for Cxx_Unready
2569  */
2570 static const char* apzCxx_UnreadyPatch[] = {
2571     "wrap",
2572     "#ifdef __cplusplus\n\
2573 extern \"C\" {\n\
2574 #endif\n",
2575     "#ifdef __cplusplus\n\
2576 }\n\
2577 #endif\n",
2578     (char*)NULL };
2580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2582  *  Description of Darwin_Availabilityinternal fix
2583  */
2584 tSCC zDarwin_AvailabilityinternalName[] =
2585      "darwin_availabilityinternal";
2588  *  File name selection pattern
2589  */
2590 tSCC zDarwin_AvailabilityinternalList[] =
2591   "AvailabilityInternal.h\0";
2593  *  Machine/OS name selection pattern
2594  */
2595 tSCC* apzDarwin_AvailabilityinternalMachs[] = {
2596         "*-*-darwin*",
2597         (const char*)NULL };
2600  *  content selection pattern - do fix if pattern found
2601  */
2602 tSCC zDarwin_AvailabilityinternalSelect0[] =
2603        "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*";
2605 #define    DARWIN_AVAILABILITYINTERNAL_TEST_CT  1
2606 static tTestDesc aDarwin_AvailabilityinternalTests[] = {
2607   { TT_EGREP,    zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, };
2610  *  Fix Command Arguments for Darwin_Availabilityinternal
2611  */
2612 static const char* apzDarwin_AvailabilityinternalPatch[] = {
2613     "format",
2614     "#if defined(__has_attribute)\n\
2615   #if __has_attribute(availability)\n\
2616 %0\n\
2617   #else\n\
2618     #define %1\n\
2619   #endif\n\
2620 #else\n\
2621     #define %1\n\
2622 #endif",
2623     (char*)NULL };
2625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2627  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2628  */
2629 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2630      "darwin_9_long_double_funcs_2";
2633  *  File name selection pattern
2634  */
2635 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2636   "math.h\0";
2638  *  Machine/OS name selection pattern
2639  */
2640 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2641         "*-*-darwin7.9*",
2642         (const char*)NULL };
2645  *  content selection pattern - do fix if pattern found
2646  */
2647 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2648        "#include[ \\t]+\\\"";
2650 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2651 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2652   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2655  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2656  */
2657 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2658     "format",
2659     "%1<%2.h>",
2660     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2661     (char*)NULL };
2663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2665  *  Description of Darwin_Externc fix
2666  */
2667 tSCC zDarwin_ExterncName[] =
2668      "darwin_externc";
2671  *  File name selection pattern
2672  */
2673 tSCC zDarwin_ExterncList[] =
2674   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2676  *  Machine/OS name selection pattern
2677  */
2678 tSCC* apzDarwin_ExterncMachs[] = {
2679         "*-*-darwin*",
2680         (const char*)NULL };
2683  *  content bypass pattern - skip fix if pattern found
2684  */
2685 tSCC zDarwin_ExterncBypass0[] =
2686        "extern \"C\"";
2687 tSCC zDarwin_ExterncBypass1[] =
2688        "__BEGIN_DECLS";
2690 #define    DARWIN_EXTERNC_TEST_CT  2
2691 static tTestDesc aDarwin_ExterncTests[] = {
2692   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2693   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2696  *  Fix Command Arguments for Darwin_Externc
2697  */
2698 static const char* apzDarwin_ExterncPatch[] = {
2699     "wrap",
2700     "#ifdef __cplusplus\n\
2701 extern \"C\" {\n\
2702 #endif\n",
2703     "#ifdef __cplusplus\n\
2704 }\n\
2705 #endif\n",
2706     (char*)NULL };
2708 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2710  *  Description of Darwin_Gcc4_Breakage fix
2711  */
2712 tSCC zDarwin_Gcc4_BreakageName[] =
2713      "darwin_gcc4_breakage";
2716  *  File name selection pattern
2717  */
2718 tSCC zDarwin_Gcc4_BreakageList[] =
2719   "AvailabilityMacros.h\0";
2721  *  Machine/OS name selection pattern
2722  */
2723 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2724         "*-*-darwin*",
2725         (const char*)NULL };
2728  *  content selection pattern - do fix if pattern found
2729  */
2730 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2731        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2733 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2734 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2735   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2738  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2739  */
2740 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2741     "format",
2742     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2743     (char*)NULL };
2745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2747  *  Description of Darwin_Longjmp_Noreturn fix
2748  */
2749 tSCC zDarwin_Longjmp_NoreturnName[] =
2750      "darwin_longjmp_noreturn";
2753  *  File name selection pattern
2754  */
2755 tSCC zDarwin_Longjmp_NoreturnList[] =
2756   "i386/setjmp.h\0";
2758  *  Machine/OS name selection pattern
2759  */
2760 tSCC* apzDarwin_Longjmp_NoreturnMachs[] = {
2761         "*-*-darwin*",
2762         (const char*)NULL };
2765  *  content selection pattern - do fix if pattern found
2766  */
2767 tSCC zDarwin_Longjmp_NoreturnSelect0[] =
2768        "(.*longjmp\\(.*jmp_buf.*[^)]+\\));";
2771  *  content bypass pattern - skip fix if pattern found
2772  */
2773 tSCC zDarwin_Longjmp_NoreturnBypass0[] =
2774        "__dead2";
2776 #define    DARWIN_LONGJMP_NORETURN_TEST_CT  2
2777 static tTestDesc aDarwin_Longjmp_NoreturnTests[] = {
2778   { TT_NEGREP,   zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL },
2779   { TT_EGREP,    zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
2782  *  Fix Command Arguments for Darwin_Longjmp_Noreturn
2783  */
2784 static const char* apzDarwin_Longjmp_NoreturnPatch[] = {
2785     "format",
2786     "%1 __attribute__ ((__noreturn__));",
2787     (char*)NULL };
2789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2791  *  Description of Darwin_Os_Trace_1 fix
2792  */
2793 tSCC zDarwin_Os_Trace_1Name[] =
2794      "darwin_os_trace_1";
2797  *  File name selection pattern
2798  */
2799 tSCC zDarwin_Os_Trace_1List[] =
2800   "os/trace.h\0";
2802  *  Machine/OS name selection pattern
2803  */
2804 tSCC* apzDarwin_Os_Trace_1Machs[] = {
2805         "*-*-darwin*",
2806         (const char*)NULL };
2809  *  content selection pattern - do fix if pattern found
2810  */
2811 tSCC zDarwin_Os_Trace_1Select0[] =
2812        "^(_os_trace_verify_printf.*) (__attribute__.*)";
2814 #define    DARWIN_OS_TRACE_1_TEST_CT  1
2815 static tTestDesc aDarwin_Os_Trace_1Tests[] = {
2816   { TT_EGREP,    zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, };
2819  *  Fix Command Arguments for Darwin_Os_Trace_1
2820  */
2821 static const char* apzDarwin_Os_Trace_1Patch[] = {
2822     "format",
2823     "%1",
2824     (char*)NULL };
2826 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2828  *  Description of Darwin_Os_Trace_2 fix
2829  */
2830 tSCC zDarwin_Os_Trace_2Name[] =
2831      "darwin_os_trace_2";
2834  *  File name selection pattern
2835  */
2836 tSCC zDarwin_Os_Trace_2List[] =
2837   "os/trace.h\0";
2839  *  Machine/OS name selection pattern
2840  */
2841 tSCC* apzDarwin_Os_Trace_2Machs[] = {
2842         "*-*-darwin*",
2843         (const char*)NULL };
2846  *  content selection pattern - do fix if pattern found
2847  */
2848 tSCC zDarwin_Os_Trace_2Select0[] =
2849        "typedef.*\\^os_trace_payload_t.*";
2851 #define    DARWIN_OS_TRACE_2_TEST_CT  1
2852 static tTestDesc aDarwin_Os_Trace_2Tests[] = {
2853   { TT_EGREP,    zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, };
2856  *  Fix Command Arguments for Darwin_Os_Trace_2
2857  */
2858 static const char* apzDarwin_Os_Trace_2Patch[] = {
2859     "format",
2860     "#if __BLOCKS__\n\
2861 %0\n\
2862 #endif",
2863     (char*)NULL };
2865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2867  *  Description of Darwin_Os_Trace_3 fix
2868  */
2869 tSCC zDarwin_Os_Trace_3Name[] =
2870      "darwin_os_trace_3";
2873  *  File name selection pattern
2874  */
2875 tSCC zDarwin_Os_Trace_3List[] =
2876   "os/trace.h\0";
2878  *  Machine/OS name selection pattern
2879  */
2880 tSCC* apzDarwin_Os_Trace_3Machs[] = {
2881         "*-*-darwin*",
2882         (const char*)NULL };
2885  *  content selection pattern - do fix if pattern found
2886  */
2887 tSCC zDarwin_Os_Trace_3Select0[] =
2888        "__(API|OSX)_.*\n\
2889 OS_EXPORT.*\n\
2890 .*\n\
2891 _os_trace.*os_trace_payload_t payload);";
2893 #define    DARWIN_OS_TRACE_3_TEST_CT  1
2894 static tTestDesc aDarwin_Os_Trace_3Tests[] = {
2895   { TT_EGREP,    zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, };
2898  *  Fix Command Arguments for Darwin_Os_Trace_3
2899  */
2900 static const char* apzDarwin_Os_Trace_3Patch[] = {
2901     "format",
2902     "#if __BLOCKS__\n\
2903 %0\n\
2904 #endif",
2905     (char*)NULL };
2907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2909  *  Description of Darwin_Private_Extern fix
2910  */
2911 tSCC zDarwin_Private_ExternName[] =
2912      "darwin_private_extern";
2915  *  File name selection pattern
2916  */
2917 tSCC zDarwin_Private_ExternList[] =
2918   "mach-o/dyld.h\0";
2920  *  Machine/OS name selection pattern
2921  */
2922 tSCC* apzDarwin_Private_ExternMachs[] = {
2923         "*-*-darwin*",
2924         (const char*)NULL };
2927  *  content selection pattern - do fix if pattern found
2928  */
2929 tSCC zDarwin_Private_ExternSelect0[] =
2930        "__private_extern__ [a-z_]+ _dyld_";
2932 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
2933 static tTestDesc aDarwin_Private_ExternTests[] = {
2934   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2937  *  Fix Command Arguments for Darwin_Private_Extern
2938  */
2939 static const char* apzDarwin_Private_ExternPatch[] = {
2940     "format",
2941     "extern",
2942     "__private_extern__",
2943     (char*)NULL };
2945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2947  *  Description of Darwin_Stdint_1 fix
2948  */
2949 tSCC zDarwin_Stdint_1Name[] =
2950      "darwin_stdint_1";
2953  *  File name selection pattern
2954  */
2955 tSCC zDarwin_Stdint_1List[] =
2956   "stdint-darwin.h\0stdint.h\0";
2958  *  Machine/OS name selection pattern
2959  */
2960 tSCC* apzDarwin_Stdint_1Machs[] = {
2961         "*-*-darwin*",
2962         (const char*)NULL };
2965  *  content selection pattern - do fix if pattern found
2966  */
2967 tSCC zDarwin_Stdint_1Select0[] =
2968        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2969 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2971 #define    DARWIN_STDINT_1_TEST_CT  1
2972 static tTestDesc aDarwin_Stdint_1Tests[] = {
2973   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2976  *  Fix Command Arguments for Darwin_Stdint_1
2977  */
2978 static const char* apzDarwin_Stdint_1Patch[] = {
2979     "format",
2980     "#define UINT8_C(v)\tv\n\
2981 #define UINT16_C(v)\tv",
2982     (char*)NULL };
2984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2986  *  Description of Darwin_Stdint_2 fix
2987  */
2988 tSCC zDarwin_Stdint_2Name[] =
2989      "darwin_stdint_2";
2992  *  File name selection pattern
2993  */
2994 tSCC zDarwin_Stdint_2List[] =
2995   "stdint-darwin.h\0stdint.h\0";
2997  *  Machine/OS name selection pattern
2998  */
2999 tSCC* apzDarwin_Stdint_2Machs[] = {
3000         "*-*-darwin*",
3001         (const char*)NULL };
3004  *  content selection pattern - do fix if pattern found
3005  */
3006 tSCC zDarwin_Stdint_2Select0[] =
3007        "#if __WORDSIZE == 64\n\
3008 #define INTPTR_MIN[ \t]+INT64_MIN\n\
3009 #define INTPTR_MAX[ \t]+INT64_MAX\n\
3010 #else\n\
3011 #define INTPTR_MIN[ \t]+INT32_MIN\n\
3012 #define INTPTR_MAX[ \t]+INT32_MAX\n\
3013 #endif";
3015 #define    DARWIN_STDINT_2_TEST_CT  1
3016 static tTestDesc aDarwin_Stdint_2Tests[] = {
3017   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
3020  *  Fix Command Arguments for Darwin_Stdint_2
3021  */
3022 static const char* apzDarwin_Stdint_2Patch[] = {
3023     "format",
3024     "#if __WORDSIZE == 64\n\
3025 #define INTPTR_MAX 9223372036854775807L\n\
3026 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3027 #else\n\
3028 #define INTPTR_MAX 2147483647L\n\
3029 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3030 #endif",
3031     (char*)NULL };
3033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3035  *  Description of Darwin_Stdint_3 fix
3036  */
3037 tSCC zDarwin_Stdint_3Name[] =
3038      "darwin_stdint_3";
3041  *  File name selection pattern
3042  */
3043 tSCC zDarwin_Stdint_3List[] =
3044   "stdint-darwin.h\0stdint.h\0";
3046  *  Machine/OS name selection pattern
3047  */
3048 tSCC* apzDarwin_Stdint_3Machs[] = {
3049         "*-*-darwin*",
3050         (const char*)NULL };
3053  *  content selection pattern - do fix if pattern found
3054  */
3055 tSCC zDarwin_Stdint_3Select0[] =
3056        "#if __WORDSIZE == 64\n\
3057 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
3058 #else\n\
3059 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
3060 #endif";
3062 #define    DARWIN_STDINT_3_TEST_CT  1
3063 static tTestDesc aDarwin_Stdint_3Tests[] = {
3064   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
3067  *  Fix Command Arguments for Darwin_Stdint_3
3068  */
3069 static const char* apzDarwin_Stdint_3Patch[] = {
3070     "format",
3071     "#if __WORDSIZE == 64\n\
3072 #define UINTPTR_MAX 18446744073709551615UL\n\
3073 #else\n\
3074 #define UINTPTR_MAX 4294967295UL\n\
3075 #endif",
3076     (char*)NULL };
3078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3080  *  Description of Darwin_Stdint_4 fix
3081  */
3082 tSCC zDarwin_Stdint_4Name[] =
3083      "darwin_stdint_4";
3086  *  File name selection pattern
3087  */
3088 tSCC zDarwin_Stdint_4List[] =
3089   "stdint-darwin.h\0stdint.h\0";
3091  *  Machine/OS name selection pattern
3092  */
3093 tSCC* apzDarwin_Stdint_4Machs[] = {
3094         "*-*-darwin*",
3095         (const char*)NULL };
3098  *  content selection pattern - do fix if pattern found
3099  */
3100 tSCC zDarwin_Stdint_4Select0[] =
3101        "#if __WORDSIZE == 64\n\
3102 #define SIZE_MAX[ \t]+UINT64_MAX\n\
3103 #else\n\
3104 #define SIZE_MAX[ \t]+UINT32_MAX\n\
3105 #endif";
3107 #define    DARWIN_STDINT_4_TEST_CT  1
3108 static tTestDesc aDarwin_Stdint_4Tests[] = {
3109   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
3112  *  Fix Command Arguments for Darwin_Stdint_4
3113  */
3114 static const char* apzDarwin_Stdint_4Patch[] = {
3115     "format",
3116     "#if __WORDSIZE == 64\n\
3117 #define SIZE_MAX 18446744073709551615UL\n\
3118 #else\n\
3119 #define SIZE_MAX 4294967295UL\n\
3120 #endif",
3121     (char*)NULL };
3123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3125  *  Description of Darwin_Stdint_5 fix
3126  */
3127 tSCC zDarwin_Stdint_5Name[] =
3128      "darwin_stdint_5";
3131  *  File name selection pattern
3132  */
3133 tSCC zDarwin_Stdint_5List[] =
3134   "stdint-darwin.h\0stdint.h\0";
3136  *  Machine/OS name selection pattern
3137  */
3138 tSCC* apzDarwin_Stdint_5Machs[] = {
3139         "*-*-darwin*",
3140         (const char*)NULL };
3143  *  content selection pattern - do fix if pattern found
3144  */
3145 tSCC zDarwin_Stdint_5Select0[] =
3146        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
3147 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
3148 #define UINTMAX_MAX[ \t]+UINT64_MAX";
3150 #define    DARWIN_STDINT_5_TEST_CT  1
3151 static tTestDesc aDarwin_Stdint_5Tests[] = {
3152   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
3155  *  Fix Command Arguments for Darwin_Stdint_5
3156  */
3157 static const char* apzDarwin_Stdint_5Patch[] = {
3158     "format",
3159     "#if __WORDSIZE == 64\n\
3160 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
3161 #define INTMAX_MAX   9223372036854775807L\n\
3162 #define UINTMAX_MAX  18446744073709551615UL\n\
3163 #else\n\
3164 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
3165 #define INTMAX_MAX   9223372036854775807LL\n\
3166 #define UINTMAX_MAX  18446744073709551615ULL\n\
3167 #endif",
3168     (char*)NULL };
3170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3172  *  Description of Darwin_Stdint_6 fix
3173  */
3174 tSCC zDarwin_Stdint_6Name[] =
3175      "darwin_stdint_6";
3178  *  File name selection pattern
3179  */
3180 tSCC zDarwin_Stdint_6List[] =
3181   "stdint-darwin.h\0stdint.h\0";
3183  *  Machine/OS name selection pattern
3184  */
3185 tSCC* apzDarwin_Stdint_6Machs[] = {
3186         "*-*-darwin*",
3187         (const char*)NULL };
3190  *  content selection pattern - do fix if pattern found
3191  */
3192 tSCC zDarwin_Stdint_6Select0[] =
3193        "#if __WORDSIZE == 64\n\
3194 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
3195 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
3196 #else\n\
3197 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
3198 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
3199 #endif";
3201 #define    DARWIN_STDINT_6_TEST_CT  1
3202 static tTestDesc aDarwin_Stdint_6Tests[] = {
3203   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
3206  *  Fix Command Arguments for Darwin_Stdint_6
3207  */
3208 static const char* apzDarwin_Stdint_6Patch[] = {
3209     "format",
3210     "#if __WORDSIZE == 64\n\
3211 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
3212 #define PTRDIFF_MAX 9223372036854775807L\n\
3213 #else\n\
3214 #define PTRDIFF_MIN (-2147483647 - 1)\n\
3215 #define PTRDIFF_MAX 2147483647\n\
3216 #endif",
3217     (char*)NULL };
3219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3221  *  Description of Darwin_Stdint_7 fix
3222  */
3223 tSCC zDarwin_Stdint_7Name[] =
3224      "darwin_stdint_7";
3227  *  File name selection pattern
3228  */
3229 tSCC zDarwin_Stdint_7List[] =
3230   "stdint-darwin.h\0stdint.h\0";
3232  *  Machine/OS name selection pattern
3233  */
3234 tSCC* apzDarwin_Stdint_7Machs[] = {
3235         "*-*-darwin*",
3236         (const char*)NULL };
3239  *  content selection pattern - do fix if pattern found
3240  */
3241 tSCC zDarwin_Stdint_7Select0[] =
3242        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
3243 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
3245 #define    DARWIN_STDINT_7_TEST_CT  1
3246 static tTestDesc aDarwin_Stdint_7Tests[] = {
3247   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
3250  *  Fix Command Arguments for Darwin_Stdint_7
3251  */
3252 static const char* apzDarwin_Stdint_7Patch[] = {
3253     "format",
3254     "#if __WORDSIZE == 64\n\
3255 #define INTMAX_C(v)  (v ## L)\n\
3256 #define UINTMAX_C(v) (v ## UL)\n\
3257 #else\n\
3258 #define INTMAX_C(v)  (v ## LL)\n\
3259 #define UINTMAX_C(v) (v ## ULL)\n\
3260 #endif",
3261     (char*)NULL };
3263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3265  *  Description of Dec_Intern_Asm fix
3266  */
3267 tSCC zDec_Intern_AsmName[] =
3268      "dec_intern_asm";
3271  *  File name selection pattern
3272  */
3273 tSCC zDec_Intern_AsmList[] =
3274   "c_asm.h\0";
3276  *  Machine/OS name selection pattern
3277  */
3278 #define apzDec_Intern_AsmMachs (const char**)NULL
3279 #define DEC_INTERN_ASM_TEST_CT  0
3280 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
3283  *  Fix Command Arguments for Dec_Intern_Asm
3284  */
3285 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
3286     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
3287 #ifdef __DECC\n",
3288     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
3289 #endif\n",
3290     (char*)NULL };
3292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3294  *  Description of Djgpp_Wchar_H fix
3295  */
3296 tSCC zDjgpp_Wchar_HName[] =
3297      "djgpp_wchar_h";
3300  *  File name selection pattern
3301  */
3302 #define zDjgpp_Wchar_HList (char*)NULL
3304  *  Machine/OS name selection pattern
3305  */
3306 #define apzDjgpp_Wchar_HMachs (const char**)NULL
3309  *  content selection pattern - do fix if pattern found
3310  */
3311 tSCC zDjgpp_Wchar_HSelect0[] =
3312        "__DJ_wint_t";
3315  *  content bypass pattern - skip fix if pattern found
3316  */
3317 tSCC zDjgpp_Wchar_HBypass0[] =
3318        "sys/djtypes.h";
3320 #define    DJGPP_WCHAR_H_TEST_CT  2
3321 static tTestDesc aDjgpp_Wchar_HTests[] = {
3322   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
3323   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
3326  *  Fix Command Arguments for Djgpp_Wchar_H
3327  */
3328 static const char* apzDjgpp_Wchar_HPatch[] = {
3329     "format",
3330     "%0\n\
3331 #include <sys/djtypes.h>",
3332     "#include <stddef.h>",
3333     (char*)NULL };
3335 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3337  *  Description of Ecd_Cursor fix
3338  */
3339 tSCC zEcd_CursorName[] =
3340      "ecd_cursor";
3343  *  File name selection pattern
3344  */
3345 tSCC zEcd_CursorList[] =
3346   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
3348  *  Machine/OS name selection pattern
3349  */
3350 #define apzEcd_CursorMachs (const char**)NULL
3353  *  content selection pattern - do fix if pattern found
3354  */
3355 tSCC zEcd_CursorSelect0[] =
3356        "ecd\\.cursor";
3358 #define    ECD_CURSOR_TEST_CT  1
3359 static tTestDesc aEcd_CursorTests[] = {
3360   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
3363  *  Fix Command Arguments for Ecd_Cursor
3364  */
3365 static const char* apzEcd_CursorPatch[] = {
3366     "format",
3367     "ecd_cursor",
3368     (char*)NULL };
3370 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3372  *  Description of Feraiseexcept_Nosse_Divbyzero fix
3373  */
3374 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
3375      "feraiseexcept_nosse_divbyzero";
3378  *  File name selection pattern
3379  */
3380 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
3381   "bits/fenv.h\0*/bits/fenv.h\0";
3383  *  Machine/OS name selection pattern
3384  */
3385 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
3386         "i[34567]86-*-linux*",
3387         "x86*-linux*",
3388         "amd64-*-linux*",
3389         (const char*)NULL };
3392  *  content selection pattern - do fix if pattern found
3393  */
3394 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
3395        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
3398  *  content bypass pattern - skip fix if pattern found
3399  */
3400 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
3401        "\"fdivp .*; fwait\"";
3403 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
3404 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
3405   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
3406   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
3409  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
3410  */
3411 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
3412     "format",
3413     "# ifdef __SSE_MATH__\n\
3414 %0\n\
3415 # else\n\
3416 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
3417 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
3418 # endif",
3419     (char*)NULL };
3421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3423  *  Description of Feraiseexcept_Nosse_Invalid fix
3424  */
3425 tSCC zFeraiseexcept_Nosse_InvalidName[] =
3426      "feraiseexcept_nosse_invalid";
3429  *  File name selection pattern
3430  */
3431 tSCC zFeraiseexcept_Nosse_InvalidList[] =
3432   "bits/fenv.h\0*/bits/fenv.h\0";
3434  *  Machine/OS name selection pattern
3435  */
3436 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
3437         "i[34567]86-*-linux*",
3438         "x86*-linux*",
3439         "amd64-*-linux*",
3440         (const char*)NULL };
3443  *  content selection pattern - do fix if pattern found
3444  */
3445 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
3446        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
3449  *  content bypass pattern - skip fix if pattern found
3450  */
3451 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
3452        "\"fdiv .*; fwait\"";
3454 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
3455 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
3456   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
3457   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
3460  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
3461  */
3462 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
3463     "format",
3464     "# ifdef __SSE_MATH__\n\
3465 %0\n\
3466 # else\n\
3467 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
3468 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
3469 # endif",
3470     (char*)NULL };
3472 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3474  *  Description of Freebsd_Gcc3_Breakage fix
3475  */
3476 tSCC zFreebsd_Gcc3_BreakageName[] =
3477      "freebsd_gcc3_breakage";
3480  *  File name selection pattern
3481  */
3482 tSCC zFreebsd_Gcc3_BreakageList[] =
3483   "sys/cdefs.h\0";
3485  *  Machine/OS name selection pattern
3486  */
3487 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
3488         "*-*-freebsd*",
3489         (const char*)NULL };
3492  *  content selection pattern - do fix if pattern found
3493  */
3494 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
3495        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
3498  *  content bypass pattern - skip fix if pattern found
3499  */
3500 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
3501        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
3503 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
3504 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
3505   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
3506   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
3509  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
3510  */
3511 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
3512     "format",
3513     "%0 || __GNUC__ >= 3",
3514     (char*)NULL };
3516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3518  *  Description of Freebsd_Gcc4_Breakage fix
3519  */
3520 tSCC zFreebsd_Gcc4_BreakageName[] =
3521      "freebsd_gcc4_breakage";
3524  *  File name selection pattern
3525  */
3526 tSCC zFreebsd_Gcc4_BreakageList[] =
3527   "sys/cdefs.h\0";
3529  *  Machine/OS name selection pattern
3530  */
3531 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3532         "*-*-freebsd*",
3533         (const char*)NULL };
3536  *  content selection pattern - do fix if pattern found
3537  */
3538 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3539        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3541 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
3542 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3543   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3546  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
3547  */
3548 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3549     "format",
3550     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3551     (char*)NULL };
3553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3555  *  Description of Glibc_C99_Inline_1 fix
3556  */
3557 tSCC zGlibc_C99_Inline_1Name[] =
3558      "glibc_c99_inline_1";
3561  *  File name selection pattern
3562  */
3563 tSCC zGlibc_C99_Inline_1List[] =
3564   "features.h\0*/features.h\0";
3566  *  Machine/OS name selection pattern
3567  */
3568 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3571  *  content selection pattern - do fix if pattern found
3572  */
3573 tSCC zGlibc_C99_Inline_1Select0[] =
3574        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3576 #define    GLIBC_C99_INLINE_1_TEST_CT  1
3577 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3578   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3581  *  Fix Command Arguments for Glibc_C99_Inline_1
3582  */
3583 static const char* apzGlibc_C99_Inline_1Patch[] = {
3584     "format",
3585     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3586     (char*)NULL };
3588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3590  *  Description of Glibc_C99_Inline_1a fix
3591  */
3592 tSCC zGlibc_C99_Inline_1aName[] =
3593      "glibc_c99_inline_1a";
3596  *  File name selection pattern
3597  */
3598 tSCC zGlibc_C99_Inline_1aList[] =
3599   "features.h\0*/features.h\0";
3601  *  Machine/OS name selection pattern
3602  */
3603 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3606  *  content selection pattern - do fix if pattern found
3607  */
3608 tSCC zGlibc_C99_Inline_1aSelect0[] =
3609        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3610 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3612 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
3613 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3614   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3617  *  Fix Command Arguments for Glibc_C99_Inline_1a
3618  */
3619 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3620     "format",
3621     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3622 %2",
3623     (char*)NULL };
3625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3627  *  Description of Glibc_C99_Inline_2 fix
3628  */
3629 tSCC zGlibc_C99_Inline_2Name[] =
3630      "glibc_c99_inline_2";
3633  *  File name selection pattern
3634  */
3635 tSCC zGlibc_C99_Inline_2List[] =
3636   "sys/stat.h\0*/sys/stat.h\0";
3638  *  Machine/OS name selection pattern
3639  */
3640 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3643  *  content selection pattern - do fix if pattern found
3644  */
3645 tSCC zGlibc_C99_Inline_2Select0[] =
3646        "extern __inline__ int";
3648 #define    GLIBC_C99_INLINE_2_TEST_CT  1
3649 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3650   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3653  *  Fix Command Arguments for Glibc_C99_Inline_2
3654  */
3655 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3656     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3657 extern\\\n\
3658 #endif\\\n\
3659 __inline__ int \\1/",
3660     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3661 extern\\\n\
3662 #endif\\\n\
3663 __inline__ int \\1/",
3664     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3665 extern\\\n\
3666 #endif\\\n\
3667 __inline__ int \\1/",
3668     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3669 extern\\\n\
3670 #endif\\\n\
3671 __inline__ int __REDIRECT\\1 (\\2/",
3672     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3673 extern\\\n\
3674 #endif\\\n\
3675 __inline__ int __REDIRECT\\1 (\\2/",
3676     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
3677 extern\\\n\
3678 #endif\\\n\
3679 __inline__ int/",
3680     (char*)NULL };
3682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3684  *  Description of Glibc_C99_Inline_3 fix
3685  */
3686 tSCC zGlibc_C99_Inline_3Name[] =
3687      "glibc_c99_inline_3";
3690  *  File name selection pattern
3691  */
3692 tSCC zGlibc_C99_Inline_3List[] =
3693   "bits/string2.h\0*/bits/string2.h\0";
3695  *  Machine/OS name selection pattern
3696  */
3697 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
3700  *  content selection pattern - do fix if pattern found
3701  */
3702 tSCC zGlibc_C99_Inline_3Select0[] =
3703        "extern __inline";
3706  *  content bypass pattern - skip fix if pattern found
3707  */
3708 tSCC zGlibc_C99_Inline_3Bypass0[] =
3709        "__extern_inline|__GNU_STDC_INLINE__";
3711 #define    GLIBC_C99_INLINE_3_TEST_CT  2
3712 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
3713   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3714   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
3717  *  Fix Command Arguments for Glibc_C99_Inline_3
3718  */
3719 static const char* apzGlibc_C99_Inline_3Patch[] = {
3720     "format",
3721     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3722     "^# ifdef __cplusplus$",
3723     (char*)NULL };
3725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3727  *  Description of Glibc_C99_Inline_4 fix
3728  */
3729 tSCC zGlibc_C99_Inline_4Name[] =
3730      "glibc_c99_inline_4";
3733  *  File name selection pattern
3734  */
3735 tSCC zGlibc_C99_Inline_4List[] =
3736   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
3738  *  Machine/OS name selection pattern
3739  */
3740 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3743  *  content selection pattern - do fix if pattern found
3744  */
3745 tSCC zGlibc_C99_Inline_4Select0[] =
3746        "(^| )extern __inline";
3749  *  content bypass pattern - skip fix if pattern found
3750  */
3751 tSCC zGlibc_C99_Inline_4Bypass0[] =
3752        "__extern_inline|__gnu_inline__";
3754 #define    GLIBC_C99_INLINE_4_TEST_CT  2
3755 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3756   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3757   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3760  *  Fix Command Arguments for Glibc_C99_Inline_4
3761  */
3762 static const char* apzGlibc_C99_Inline_4Patch[] = {
3763     "format",
3764     "%0 __attribute__ ((__gnu_inline__))",
3765     (char*)NULL };
3767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3769  *  Description of Glibc_Mutex_Init fix
3770  */
3771 tSCC zGlibc_Mutex_InitName[] =
3772      "glibc_mutex_init";
3775  *  File name selection pattern
3776  */
3777 tSCC zGlibc_Mutex_InitList[] =
3778   "pthread.h\0";
3780  *  Machine/OS name selection pattern
3781  */
3782 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3785  *  content selection pattern - do fix if pattern found
3786  */
3787 tSCC zGlibc_Mutex_InitSelect0[] =
3788        "\\{ *\\{ *0, *\\} *\\}";
3790 #define    GLIBC_MUTEX_INIT_TEST_CT  1
3791 static tTestDesc aGlibc_Mutex_InitTests[] = {
3792   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3795  *  Fix Command Arguments for Glibc_Mutex_Init
3796  */
3797 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3798     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3799 N\n\
3800 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3802     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3803     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3804     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3805     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3806     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3807     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3808     "-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\
3809 #  \\1\\\n\
3810   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3811 # else\\\n\
3812 #  \\1\\\n\
3813   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3814 # endif/",
3815     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3816     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3817     (char*)NULL };
3819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3821  *  Description of Glibc_Stdint fix
3822  */
3823 tSCC zGlibc_StdintName[] =
3824      "glibc_stdint";
3827  *  File name selection pattern
3828  */
3829 tSCC zGlibc_StdintList[] =
3830   "stdint.h\0";
3832  *  Machine/OS name selection pattern
3833  */
3834 #define apzGlibc_StdintMachs (const char**)NULL
3837  *  content selection pattern - do fix if pattern found
3838  */
3839 tSCC zGlibc_StdintSelect0[] =
3840        "GNU C Library";
3842 #define    GLIBC_STDINT_TEST_CT  1
3843 static tTestDesc aGlibc_StdintTests[] = {
3844   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
3847  *  Fix Command Arguments for Glibc_Stdint
3848  */
3849 static const char* apzGlibc_StdintPatch[] = {
3850     "format",
3851     "# define UINT8_C(c)\tc\n\
3852 # define UINT16_C(c)\tc",
3853     "# define UINT8_C\\(c\\)\tc ## U\n\
3854 # define UINT16_C\\(c\\)\tc ## U",
3855     (char*)NULL };
3857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3859  *  Description of Glibc_Strncpy fix
3860  */
3861 tSCC zGlibc_StrncpyName[] =
3862      "glibc_strncpy";
3865  *  File name selection pattern
3866  */
3867 tSCC zGlibc_StrncpyList[] =
3868   "bits/string2.h\0*/bits/string2.h\0";
3870  *  Machine/OS name selection pattern
3871  */
3872 #define apzGlibc_StrncpyMachs (const char**)NULL
3875  *  content bypass pattern - skip fix if pattern found
3876  */
3877 tSCC zGlibc_StrncpyBypass0[] =
3878        "__builtin_strncpy";
3880 #define    GLIBC_STRNCPY_TEST_CT  1
3881 static tTestDesc aGlibc_StrncpyTests[] = {
3882   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3885  *  Fix Command Arguments for Glibc_Strncpy
3886  */
3887 static const char* apzGlibc_StrncpyPatch[] = {
3888     "format",
3889     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3890     "#  define strncpy([^\n\
3891 ]*\\\\\n\
3892 )*[^\n\
3893 ]*",
3894     (char*)NULL };
3896 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3898  *  Description of Glibc_Tgmath fix
3899  */
3900 tSCC zGlibc_TgmathName[] =
3901      "glibc_tgmath";
3904  *  File name selection pattern
3905  */
3906 tSCC zGlibc_TgmathList[] =
3907   "tgmath.h\0";
3909  *  Machine/OS name selection pattern
3910  */
3911 #define apzGlibc_TgmathMachs (const char**)NULL
3914  *  content selection pattern - do fix if pattern found
3915  */
3916 tSCC zGlibc_TgmathSelect0[] =
3917        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3920  *  content bypass pattern - skip fix if pattern found
3921  */
3922 tSCC zGlibc_TgmathBypass0[] =
3923        "__floating_type\\(type\\) \\\\\n\
3924 .*__builtin_classify_type";
3926 #define    GLIBC_TGMATH_TEST_CT  2
3927 static tTestDesc aGlibc_TgmathTests[] = {
3928   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
3929   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3932  *  Fix Command Arguments for Glibc_Tgmath
3933  */
3934 static const char* apzGlibc_TgmathPatch[] = {
3935     "format",
3936     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3937     (char*)NULL };
3939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3941  *  Description of Gnu_Types fix
3942  */
3943 tSCC zGnu_TypesName[] =
3944      "gnu_types";
3947  *  File name selection pattern
3948  */
3949 tSCC zGnu_TypesList[] =
3950   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3952  *  Machine/OS name selection pattern
3953  */
3954 tSCC* apzGnu_TypesMachs[] = {
3955         "*-*-solaris2.1[0-9]*",
3956         (const char*)NULL };
3959  *  content selection pattern - do fix if pattern found
3960  */
3961 tSCC zGnu_TypesSelect0[] =
3962        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3965  *  content bypass pattern - skip fix if pattern found
3966  */
3967 tSCC zGnu_TypesBypass0[] =
3968        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3970 #define    GNU_TYPES_TEST_CT  2
3971 static tTestDesc aGnu_TypesTests[] = {
3972   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
3973   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
3976  *  Fix Command Arguments for Gnu_Types
3977  */
3978 static const char* apzGnu_TypesPatch[] = {
3979     "gnu_type",
3980     (char*)NULL };
3982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3984  *  Description of Hp_Inline fix
3985  */
3986 tSCC zHp_InlineName[] =
3987      "hp_inline";
3990  *  File name selection pattern
3991  */
3992 tSCC zHp_InlineList[] =
3993   "sys/spinlock.h\0machine/machparam.h\0";
3995  *  Machine/OS name selection pattern
3996  */
3997 #define apzHp_InlineMachs (const char**)NULL
4000  *  content selection pattern - do fix if pattern found
4001  */
4002 tSCC zHp_InlineSelect0[] =
4003        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
4005 #define    HP_INLINE_TEST_CT  1
4006 static tTestDesc aHp_InlineTests[] = {
4007   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
4010  *  Fix Command Arguments for Hp_Inline
4011  */
4012 static const char* apzHp_InlinePatch[] = {
4013     "format",
4014     "%1<machine/%2.h>",
4015     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
4016     (char*)NULL };
4018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4020  *  Description of Hp_Sysfile fix
4021  */
4022 tSCC zHp_SysfileName[] =
4023      "hp_sysfile";
4026  *  File name selection pattern
4027  */
4028 tSCC zHp_SysfileList[] =
4029   "sys/file.h\0";
4031  *  Machine/OS name selection pattern
4032  */
4033 #define apzHp_SysfileMachs (const char**)NULL
4036  *  content selection pattern - do fix if pattern found
4037  */
4038 tSCC zHp_SysfileSelect0[] =
4039        "HPUX_SOURCE";
4041 #define    HP_SYSFILE_TEST_CT  1
4042 static tTestDesc aHp_SysfileTests[] = {
4043   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
4046  *  Fix Command Arguments for Hp_Sysfile
4047  */
4048 static const char* apzHp_SysfilePatch[] = {
4049     "format",
4050     "(struct file *, ...)",
4051     "\\(\\.\\.\\.\\)",
4052     (char*)NULL };
4054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4056  *  Description of Hppa_Hpux_Fp_Macros fix
4057  */
4058 tSCC zHppa_Hpux_Fp_MacrosName[] =
4059      "hppa_hpux_fp_macros";
4062  *  File name selection pattern
4063  */
4064 tSCC zHppa_Hpux_Fp_MacrosList[] =
4065   "math.h\0";
4067  *  Machine/OS name selection pattern
4068  */
4069 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
4070         "hppa*-hp-hpux11*",
4071         (const char*)NULL };
4074  *  content selection pattern - do fix if pattern found
4075  */
4076 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
4077        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
4078 #[ \t]*define[ \t]*FP_ZERO.*\n\
4079 #[ \t]*define[ \t]*FP_INFINITE.*\n\
4080 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
4081 #[ \t]*define[ \t]*FP_NAN.*\n";
4083 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
4084 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
4085   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
4088  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
4089  */
4090 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
4091     "format",
4092     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
4093 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
4094    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
4095 %0#endif\n\n\
4096 #ifdef _INCLUDE_HPUX_SOURCE\n",
4097     (char*)NULL };
4099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4101  *  Description of Hpux10_Cpp_Pow_Inline fix
4102  */
4103 tSCC zHpux10_Cpp_Pow_InlineName[] =
4104      "hpux10_cpp_pow_inline";
4107  *  File name selection pattern
4108  */
4109 tSCC zHpux10_Cpp_Pow_InlineList[] =
4110   "fixinc-test-limits.h\0math.h\0";
4112  *  Machine/OS name selection pattern
4113  */
4114 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
4117  *  content selection pattern - do fix if pattern found
4118  */
4119 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
4120        "^# +ifdef +__cplusplus\n\
4121  +\\}\n\
4122  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
4123 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
4124  +\\}\n\
4125  +extern +\"C\" +\\{\n\
4126 #else\n\
4127 # +endif";
4129 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
4130 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
4131   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4134  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
4135  */
4136 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
4137     "format",
4138     "",
4139     (char*)NULL };
4141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4143  *  Description of Hpux11_Cpp_Pow_Inline fix
4144  */
4145 tSCC zHpux11_Cpp_Pow_InlineName[] =
4146      "hpux11_cpp_pow_inline";
4149  *  File name selection pattern
4150  */
4151 tSCC zHpux11_Cpp_Pow_InlineList[] =
4152   "math.h\0";
4154  *  Machine/OS name selection pattern
4155  */
4156 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
4159  *  content selection pattern - do fix if pattern found
4160  */
4161 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
4162        " +inline double pow\\(double d,int expon\\) \\{\n\
4163  +return pow\\(d, \\(double\\)expon\\);\n\
4164  +\\}\n";
4166 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
4167 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
4168   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4171  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
4172  */
4173 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
4174     "format",
4175     "",
4176     (char*)NULL };
4178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4180  *  Description of Hpux10_Ctype_Declarations1 fix
4181  */
4182 tSCC zHpux10_Ctype_Declarations1Name[] =
4183      "hpux10_ctype_declarations1";
4186  *  File name selection pattern
4187  */
4188 tSCC zHpux10_Ctype_Declarations1List[] =
4189   "ctype.h\0";
4191  *  Machine/OS name selection pattern
4192  */
4193 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
4196  *  content selection pattern - do fix if pattern found
4197  */
4198 tSCC zHpux10_Ctype_Declarations1Select0[] =
4199        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
4202  *  content bypass pattern - skip fix if pattern found
4203  */
4204 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
4205        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
4207 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
4208 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
4209   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
4210   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
4213  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
4214  */
4215 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
4216     "format",
4217     "#ifdef _PROTOTYPES\n\
4218 extern int __tolower(int);\n\
4219 extern int __toupper(int);\n\
4220 #else /* NOT _PROTOTYPES */\n\
4221 extern int __tolower();\n\
4222 extern int __toupper();\n\
4223 #endif /* _PROTOTYPES */\n\n\
4224 %0\n",
4225     (char*)NULL };
4227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4229  *  Description of Hpux10_Ctype_Declarations2 fix
4230  */
4231 tSCC zHpux10_Ctype_Declarations2Name[] =
4232      "hpux10_ctype_declarations2";
4235  *  File name selection pattern
4236  */
4237 tSCC zHpux10_Ctype_Declarations2List[] =
4238   "ctype.h\0";
4240  *  Machine/OS name selection pattern
4241  */
4242 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
4245  *  content selection pattern - do fix if pattern found
4246  */
4247 tSCC zHpux10_Ctype_Declarations2Select0[] =
4248        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
4251  *  content bypass pattern - skip fix if pattern found
4252  */
4253 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
4254        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
4256 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
4257 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
4258   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
4259   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
4262  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
4263  */
4264 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
4265     "format",
4266     "%0\n\n\
4267 #ifdef _PROTOTYPES\n\
4268      extern int _isalnum(int);\n\
4269      extern int _isalpha(int);\n\
4270      extern int _iscntrl(int);\n\
4271      extern int _isdigit(int);\n\
4272      extern int _isgraph(int);\n\
4273      extern int _islower(int);\n\
4274      extern int _isprint(int);\n\
4275      extern int _ispunct(int);\n\
4276      extern int _isspace(int);\n\
4277      extern int _isupper(int);\n\
4278      extern int _isxdigit(int);\n\
4279 #  else /* not _PROTOTYPES */\n\
4280      extern int _isalnum();\n\
4281      extern int _isalpha();\n\
4282      extern int _iscntrl();\n\
4283      extern int _isdigit();\n\
4284      extern int _isgraph();\n\
4285      extern int _islower();\n\
4286      extern int _isprint();\n\
4287      extern int _ispunct();\n\
4288      extern int _isspace();\n\
4289      extern int _isupper();\n\
4290      extern int _isxdigit();\n\
4291 #endif /* _PROTOTYPES */\n",
4292     (char*)NULL };
4294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4296  *  Description of Hpux10_Stdio_Declarations fix
4297  */
4298 tSCC zHpux10_Stdio_DeclarationsName[] =
4299      "hpux10_stdio_declarations";
4302  *  File name selection pattern
4303  */
4304 tSCC zHpux10_Stdio_DeclarationsList[] =
4305   "stdio.h\0";
4307  *  Machine/OS name selection pattern
4308  */
4309 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
4312  *  content selection pattern - do fix if pattern found
4313  */
4314 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
4315        "^#[ \t]*define _iob[ \t]*__iob";
4318  *  content bypass pattern - skip fix if pattern found
4319  */
4320 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
4321        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
4323 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
4324 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
4325   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
4326   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
4329  *  Fix Command Arguments for Hpux10_Stdio_Declarations
4330  */
4331 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
4332     "format",
4333     "%0\n\n\
4334 #  if defined(__STDC__) || defined(__cplusplus)\n\
4335      extern int snprintf(char *, size_t, const char *, ...);\n\
4336      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
4337 #  else /* not __STDC__) || __cplusplus */\n\
4338      extern int snprintf();\n\
4339      extern int vsnprintf();\n\
4340 #  endif /* __STDC__) || __cplusplus */\n",
4341     (char*)NULL };
4343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4345  *  Description of Hpux11_Abs fix
4346  */
4347 tSCC zHpux11_AbsName[] =
4348      "hpux11_abs";
4351  *  File name selection pattern
4352  */
4353 tSCC zHpux11_AbsList[] =
4354   "stdlib.h\0";
4356  *  Machine/OS name selection pattern
4357  */
4358 tSCC* apzHpux11_AbsMachs[] = {
4359         "*-hp-hpux11*",
4360         (const char*)NULL };
4363  *  content selection pattern - do fix if pattern found
4364  */
4365 tSCC zHpux11_AbsSelect0[] =
4366        "ifndef _MATH_INCLUDED";
4368 #define    HPUX11_ABS_TEST_CT  1
4369 static tTestDesc aHpux11_AbsTests[] = {
4370   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
4373  *  Fix Command Arguments for Hpux11_Abs
4374  */
4375 static const char* apzHpux11_AbsPatch[] = {
4376     "format",
4377     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
4378     (char*)NULL };
4380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4382  *  Description of Hpux11_Lwp_Rwlock_Valid fix
4383  */
4384 tSCC zHpux11_Lwp_Rwlock_ValidName[] =
4385      "hpux11_lwp_rwlock_valid";
4388  *  File name selection pattern
4389  */
4390 tSCC zHpux11_Lwp_Rwlock_ValidList[] =
4391   "sys/pthread.h\0";
4393  *  Machine/OS name selection pattern
4394  */
4395 tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = {
4396         "*-hp-hpux11*",
4397         (const char*)NULL };
4400  *  content selection pattern - do fix if pattern found
4401  */
4402 tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] =
4403        "#define __LWP_RWLOCK_VALID[ \t]*0x8c91";
4405 #define    HPUX11_LWP_RWLOCK_VALID_TEST_CT  1
4406 static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = {
4407   { TT_EGREP,    zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, };
4410  *  Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid
4411  */
4412 static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = {
4413     "format",
4414     "#define __LWP_RWLOCK_VALID              -29551",
4415     (char*)NULL };
4417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4419  *  Description of Hpux11_Extern_Sendfile fix
4420  */
4421 tSCC zHpux11_Extern_SendfileName[] =
4422      "hpux11_extern_sendfile";
4425  *  File name selection pattern
4426  */
4427 tSCC zHpux11_Extern_SendfileList[] =
4428   "sys/socket.h\0";
4430  *  Machine/OS name selection pattern
4431  */
4432 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4433         "*-hp-hpux11.[12]*",
4434         (const char*)NULL };
4437  *  content selection pattern - do fix if pattern found
4438  */
4439 tSCC zHpux11_Extern_SendfileSelect0[] =
4440        "^[ \t]*extern sbsize_t sendfile.*\n\
4441 .*, int\\)\\);\n";
4443 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
4444 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4445   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4448  *  Fix Command Arguments for Hpux11_Extern_Sendfile
4449  */
4450 static const char* apzHpux11_Extern_SendfilePatch[] = {
4451     "format",
4452     "#ifndef _APP32_64BIT_OFF_T\n\
4453 %0#endif\n",
4454     (char*)NULL };
4456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4458  *  Description of Hpux11_Extern_Sendpath fix
4459  */
4460 tSCC zHpux11_Extern_SendpathName[] =
4461      "hpux11_extern_sendpath";
4464  *  File name selection pattern
4465  */
4466 tSCC zHpux11_Extern_SendpathList[] =
4467   "sys/socket.h\0";
4469  *  Machine/OS name selection pattern
4470  */
4471 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4472         "*-hp-hpux11.[12]*",
4473         (const char*)NULL };
4476  *  content selection pattern - do fix if pattern found
4477  */
4478 tSCC zHpux11_Extern_SendpathSelect0[] =
4479        "^[ \t]*extern sbsize_t sendpath.*\n\
4480 .*, int\\)\\);\n";
4482 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
4483 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4484   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4487  *  Fix Command Arguments for Hpux11_Extern_Sendpath
4488  */
4489 static const char* apzHpux11_Extern_SendpathPatch[] = {
4490     "format",
4491     "#ifndef _APP32_64BIT_OFF_T\n\
4492 %0#endif\n",
4493     (char*)NULL };
4495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4497  *  Description of Hpux11_Fabsf fix
4498  */
4499 tSCC zHpux11_FabsfName[] =
4500      "hpux11_fabsf";
4503  *  File name selection pattern
4504  */
4505 tSCC zHpux11_FabsfList[] =
4506   "math.h\0";
4508  *  Machine/OS name selection pattern
4509  */
4510 tSCC* apzHpux11_FabsfMachs[] = {
4511         "*-hp-hpux11*",
4512         (const char*)NULL };
4515  *  content selection pattern - do fix if pattern found
4516  */
4517 tSCC zHpux11_FabsfSelect0[] =
4518        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
4520 #define    HPUX11_FABSF_TEST_CT  1
4521 static tTestDesc aHpux11_FabsfTests[] = {
4522   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
4525  *  Fix Command Arguments for Hpux11_Fabsf
4526  */
4527 static const char* apzHpux11_FabsfPatch[] = {
4528     "format",
4529     "#ifndef __cplusplus\n\
4530 %0\n\
4531 #endif",
4532     (char*)NULL };
4534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4536  *  Description of Hpux11_Pthread_Const fix
4537  */
4538 tSCC zHpux11_Pthread_ConstName[] =
4539      "hpux11_pthread_const";
4542  *  File name selection pattern
4543  */
4544 tSCC zHpux11_Pthread_ConstList[] =
4545   "sys/pthread.h\0";
4547  *  Machine/OS name selection pattern
4548  */
4549 tSCC* apzHpux11_Pthread_ConstMachs[] = {
4550         "*-hp-hpux11.[0-3]*",
4551         (const char*)NULL };
4554  *  content selection pattern - do fix if pattern found
4555  */
4556 tSCC zHpux11_Pthread_ConstSelect0[] =
4557        "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
4559 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
4560 static tTestDesc aHpux11_Pthread_ConstTests[] = {
4561   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4564  *  Fix Command Arguments for Hpux11_Pthread_Const
4565  */
4566 static const char* apzHpux11_Pthread_ConstPatch[] = {
4567     "format",
4568     "#define __POINTER_SET\t\t((void *) 1L)",
4569     (char*)NULL };
4571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4573  *  Description of Hpux11_Size_T fix
4574  */
4575 tSCC zHpux11_Size_TName[] =
4576      "hpux11_size_t";
4579  *  File name selection pattern
4580  */
4581 #define zHpux11_Size_TList (char*)NULL
4583  *  Machine/OS name selection pattern
4584  */
4585 tSCC* apzHpux11_Size_TMachs[] = {
4586         "*-hp-hpux11*",
4587         (const char*)NULL };
4590  *  content selection pattern - do fix if pattern found
4591  */
4592 tSCC zHpux11_Size_TSelect0[] =
4593        "__size_t";
4595 #define    HPUX11_SIZE_T_TEST_CT  1
4596 static tTestDesc aHpux11_Size_TTests[] = {
4597   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
4600  *  Fix Command Arguments for Hpux11_Size_T
4601  */
4602 static const char* apzHpux11_Size_TPatch[] = {
4603     "format",
4604     "_hpux_size_t",
4605     (char*)NULL };
4607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4609  *  Description of Hpux11_Snprintf fix
4610  */
4611 tSCC zHpux11_SnprintfName[] =
4612      "hpux11_snprintf";
4615  *  File name selection pattern
4616  */
4617 tSCC zHpux11_SnprintfList[] =
4618   "stdio.h\0";
4620  *  Machine/OS name selection pattern
4621  */
4622 #define apzHpux11_SnprintfMachs (const char**)NULL
4625  *  content selection pattern - do fix if pattern found
4626  */
4627 tSCC zHpux11_SnprintfSelect0[] =
4628        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
4630 #define    HPUX11_SNPRINTF_TEST_CT  1
4631 static tTestDesc aHpux11_SnprintfTests[] = {
4632   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
4635  *  Fix Command Arguments for Hpux11_Snprintf
4636  */
4637 static const char* apzHpux11_SnprintfPatch[] = {
4638     "format",
4639     "%1 const %3",
4640     (char*)NULL };
4642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4644  *  Description of Hpux11_Vsnprintf fix
4645  */
4646 tSCC zHpux11_VsnprintfName[] =
4647      "hpux11_vsnprintf";
4650  *  File name selection pattern
4651  */
4652 tSCC zHpux11_VsnprintfList[] =
4653   "stdio.h\0";
4655  *  Machine/OS name selection pattern
4656  */
4657 #define apzHpux11_VsnprintfMachs (const char**)NULL
4660  *  content selection pattern - do fix if pattern found
4661  */
4662 tSCC zHpux11_VsnprintfSelect0[] =
4663        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
4665 #define    HPUX11_VSNPRINTF_TEST_CT  1
4666 static tTestDesc aHpux11_VsnprintfTests[] = {
4667   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
4670  *  Fix Command Arguments for Hpux11_Vsnprintf
4671  */
4672 static const char* apzHpux11_VsnprintfPatch[] = {
4673     "format",
4674     "%1 __va_list);",
4675     (char*)NULL };
4677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4679  *  Description of Hpux_Vsscanf fix
4680  */
4681 tSCC zHpux_VsscanfName[] =
4682      "hpux_vsscanf";
4685  *  File name selection pattern
4686  */
4687 tSCC zHpux_VsscanfList[] =
4688   "stdio.h\0";
4690  *  Machine/OS name selection pattern
4691  */
4692 tSCC* apzHpux_VsscanfMachs[] = {
4693         "*-*-hpux*",
4694         (const char*)NULL };
4697  *  content selection pattern - do fix if pattern found
4698  */
4699 tSCC zHpux_VsscanfSelect0[] =
4700        "(extern int vsscanf\\()char";
4702 #define    HPUX_VSSCANF_TEST_CT  1
4703 static tTestDesc aHpux_VsscanfTests[] = {
4704   { TT_EGREP,    zHpux_VsscanfSelect0, (regex_t*)NULL }, };
4707  *  Fix Command Arguments for Hpux_Vsscanf
4708  */
4709 static const char* apzHpux_VsscanfPatch[] = {
4710     "format",
4711     "%1const char",
4712     (char*)NULL };
4714 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4716  *  Description of Hpux8_Bogus_Inlines fix
4717  */
4718 tSCC zHpux8_Bogus_InlinesName[] =
4719      "hpux8_bogus_inlines";
4722  *  File name selection pattern
4723  */
4724 tSCC zHpux8_Bogus_InlinesList[] =
4725   "math.h\0";
4727  *  Machine/OS name selection pattern
4728  */
4729 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
4732  *  content selection pattern - do fix if pattern found
4733  */
4734 tSCC zHpux8_Bogus_InlinesSelect0[] =
4735        "inline";
4738  *  content bypass pattern - skip fix if pattern found
4739  */
4740 tSCC zHpux8_Bogus_InlinesBypass0[] =
4741        "__GNUG__";
4743 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
4744 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
4745   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
4746   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
4749  *  Fix Command Arguments for Hpux8_Bogus_Inlines
4750  */
4751 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
4752     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
4753     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
4754     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
4755     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
4756     (char*)NULL };
4758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4760  *  Description of Hpux_C99_Intptr fix
4761  */
4762 tSCC zHpux_C99_IntptrName[] =
4763      "hpux_c99_intptr";
4766  *  File name selection pattern
4767  */
4768 tSCC zHpux_C99_IntptrList[] =
4769   "stdint-hpux11.h\0stdint.h\0";
4771  *  Machine/OS name selection pattern
4772  */
4773 tSCC* apzHpux_C99_IntptrMachs[] = {
4774         "*-hp-hpux11.3*",
4775         (const char*)NULL };
4776 #define HPUX_C99_INTPTR_TEST_CT  0
4777 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
4780  *  Fix Command Arguments for Hpux_C99_Intptr
4781  */
4782 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4783     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4784     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4785     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4786     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4787     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4788     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4789     (char*)NULL };
4791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4793  *  Description of Hpux_C99_Inttypes fix
4794  */
4795 tSCC zHpux_C99_InttypesName[] =
4796      "hpux_c99_inttypes";
4799  *  File name selection pattern
4800  */
4801 tSCC zHpux_C99_InttypesList[] =
4802   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4804  *  Machine/OS name selection pattern
4805  */
4806 tSCC* apzHpux_C99_InttypesMachs[] = {
4807         "*-hp-hpux11.[23]*",
4808         (const char*)NULL };
4809 #define HPUX_C99_INTTYPES_TEST_CT  0
4810 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
4813  *  Fix Command Arguments for Hpux_C99_Inttypes
4814  */
4815 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4816     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4817     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4818     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4819     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4820     (char*)NULL };
4822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4824  *  Description of Hpux_C99_Inttypes2 fix
4825  */
4826 tSCC zHpux_C99_Inttypes2Name[] =
4827      "hpux_c99_inttypes2";
4830  *  File name selection pattern
4831  */
4832 tSCC zHpux_C99_Inttypes2List[] =
4833   "stdint-hpux11.h\0stdint.h\0";
4835  *  Machine/OS name selection pattern
4836  */
4837 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4838         "*-hp-hpux11.2*",
4839         (const char*)NULL };
4840 #define HPUX_C99_INTTYPES2_TEST_CT  0
4841 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
4844  *  Fix Command Arguments for Hpux_C99_Inttypes2
4845  */
4846 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4847     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4848     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4849     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4850     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4851     (char*)NULL };
4853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4855  *  Description of Hpux_Ctype_Macros fix
4856  */
4857 tSCC zHpux_Ctype_MacrosName[] =
4858      "hpux_ctype_macros";
4861  *  File name selection pattern
4862  */
4863 tSCC zHpux_Ctype_MacrosList[] =
4864   "ctype.h\0";
4866  *  Machine/OS name selection pattern
4867  */
4868 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
4871  *  content selection pattern - do fix if pattern found
4872  */
4873 tSCC zHpux_Ctype_MacrosSelect0[] =
4874        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
4876 #define    HPUX_CTYPE_MACROS_TEST_CT  1
4877 static tTestDesc aHpux_Ctype_MacrosTests[] = {
4878   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
4881  *  Fix Command Arguments for Hpux_Ctype_Macros
4882  */
4883 static const char* apzHpux_Ctype_MacrosPatch[] = {
4884     "format",
4885     "%1(int)%3",
4886     (char*)NULL };
4888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4890  *  Description of Hpux_Extern_Errno fix
4891  */
4892 tSCC zHpux_Extern_ErrnoName[] =
4893      "hpux_extern_errno";
4896  *  File name selection pattern
4897  */
4898 tSCC zHpux_Extern_ErrnoList[] =
4899   "errno.h\0";
4901  *  Machine/OS name selection pattern
4902  */
4903 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4904         "*-hp-hpux10.*",
4905         "*-hp-hpux11.[0-2]*",
4906         (const char*)NULL };
4909  *  content selection pattern - do fix if pattern found
4910  */
4911 tSCC zHpux_Extern_ErrnoSelect0[] =
4912        "^[ \t]*extern int errno;$";
4914 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
4915 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4916   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4919  *  Fix Command Arguments for Hpux_Extern_Errno
4920  */
4921 static const char* apzHpux_Extern_ErrnoPatch[] = {
4922     "format",
4923     "#ifdef __cplusplus\n\
4924 extern \"C\" {\n\
4925 #endif\n\
4926 %0\n\
4927 #ifdef __cplusplus\n\
4928 }\n\
4929 #endif",
4930     (char*)NULL };
4932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4934  *  Description of Hpux_Htonl fix
4935  */
4936 tSCC zHpux_HtonlName[] =
4937      "hpux_htonl";
4940  *  File name selection pattern
4941  */
4942 tSCC zHpux_HtonlList[] =
4943   "netinet/in.h\0";
4945  *  Machine/OS name selection pattern
4946  */
4947 #define apzHpux_HtonlMachs (const char**)NULL
4950  *  content selection pattern - do fix if pattern found
4951  */
4952 tSCC zHpux_HtonlSelect0[] =
4953        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
4954 (/\\*\n\
4955  \\* Macros for number representation conversion\\.\n\
4956  \\*/\n\
4957 #ifndef ntohl)";
4959 #define    HPUX_HTONL_TEST_CT  1
4960 static tTestDesc aHpux_HtonlTests[] = {
4961   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
4964  *  Fix Command Arguments for Hpux_Htonl
4965  */
4966 static const char* apzHpux_HtonlPatch[] = {
4967     "format",
4968     "#if 1\n\
4969 %1",
4970     (char*)NULL };
4972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4974  *  Description of Hpux_Imaginary_I fix
4975  */
4976 tSCC zHpux_Imaginary_IName[] =
4977      "hpux_imaginary_i";
4980  *  File name selection pattern
4981  */
4982 tSCC zHpux_Imaginary_IList[] =
4983   "complex.h\0";
4985  *  Machine/OS name selection pattern
4986  */
4987 tSCC* apzHpux_Imaginary_IMachs[] = {
4988         "ia64-hp-hpux11.*",
4989         (const char*)NULL };
4992  *  content selection pattern - do fix if pattern found
4993  */
4994 tSCC zHpux_Imaginary_ISelect0[] =
4995        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4997 #define    HPUX_IMAGINARY_I_TEST_CT  1
4998 static tTestDesc aHpux_Imaginary_ITests[] = {
4999   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
5002  *  Fix Command Arguments for Hpux_Imaginary_I
5003  */
5004 static const char* apzHpux_Imaginary_IPatch[] = {
5005     "format",
5006     "#define _Complex_I (__extension__ 1.0iF)",
5007     (char*)NULL };
5009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5011  *  Description of Hpux_Inttype_Int8_T fix
5012  */
5013 tSCC zHpux_Inttype_Int8_TName[] =
5014      "hpux_inttype_int8_t";
5017  *  File name selection pattern
5018  */
5019 tSCC zHpux_Inttype_Int8_TList[] =
5020   "sys/_inttypes.h\0";
5022  *  Machine/OS name selection pattern
5023  */
5024 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
5025         "*-hp-hpux1[01].*",
5026         (const char*)NULL };
5029  *  content selection pattern - do fix if pattern found
5030  */
5031 tSCC zHpux_Inttype_Int8_TSelect0[] =
5032        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
5034 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
5035 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
5036   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
5039  *  Fix Command Arguments for Hpux_Inttype_Int8_T
5040  */
5041 static const char* apzHpux_Inttype_Int8_TPatch[] = {
5042     "format",
5043     "typedef signed char int%18_t;",
5044     (char*)NULL };
5046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5048  *  Description of Hpux_Long_Double fix
5049  */
5050 tSCC zHpux_Long_DoubleName[] =
5051      "hpux_long_double";
5054  *  File name selection pattern
5055  */
5056 tSCC zHpux_Long_DoubleList[] =
5057   "stdlib.h\0";
5059  *  Machine/OS name selection pattern
5060  */
5061 tSCC* apzHpux_Long_DoubleMachs[] = {
5062         "*-*-hpux10*",
5063         "*-*-hpux11.[012]*",
5064         (const char*)NULL };
5067  *  content selection pattern - do fix if pattern found
5068  */
5069 tSCC zHpux_Long_DoubleSelect0[] =
5070        "extern[ \t]long_double[ \t]strtold";
5073  *  content bypass pattern - skip fix if pattern found
5074  */
5075 tSCC zHpux_Long_DoubleBypass0[] =
5076        "long_double_t";
5078 #define    HPUX_LONG_DOUBLE_TEST_CT  2
5079 static tTestDesc aHpux_Long_DoubleTests[] = {
5080   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
5081   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
5084  *  Fix Command Arguments for Hpux_Long_Double
5085  */
5086 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
5087     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
5088     "-e", "s/long_double/long double/g",
5089     (char*)NULL };
5091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5093  *  Description of Hpux_Long_Double_2 fix
5094  */
5095 tSCC zHpux_Long_Double_2Name[] =
5096      "hpux_long_double_2";
5099  *  File name selection pattern
5100  */
5101 tSCC zHpux_Long_Double_2List[] =
5102   "stdlib.h\0";
5104  *  Machine/OS name selection pattern
5105  */
5106 tSCC* apzHpux_Long_Double_2Machs[] = {
5107         "hppa*-*-hpux11.3*",
5108         (const char*)NULL };
5111  *  content selection pattern - do fix if pattern found
5112  */
5113 tSCC zHpux_Long_Double_2Select0[] =
5114        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
5116 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
5117 static tTestDesc aHpux_Long_Double_2Tests[] = {
5118   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
5121  *  Fix Command Arguments for Hpux_Long_Double_2
5122  */
5123 static const char* apzHpux_Long_Double_2Patch[] = {
5124     "format",
5125     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
5126     (char*)NULL };
5128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5130  *  Description of Hpux_Pthread_Initializers fix
5131  */
5132 tSCC zHpux_Pthread_InitializersName[] =
5133      "hpux_pthread_initializers";
5136  *  File name selection pattern
5137  */
5138 tSCC zHpux_Pthread_InitializersList[] =
5139   "sys/pthread.h\0";
5141  *  Machine/OS name selection pattern
5142  */
5143 tSCC* apzHpux_Pthread_InitializersMachs[] = {
5144         "*-hp-hpux11.[0-3]*",
5145         (const char*)NULL };
5146 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
5147 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
5150  *  Fix Command Arguments for Hpux_Pthread_Initializers
5151  */
5152 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
5153     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
5154     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
5155     "-e", "/^[ \t]*0$/d",
5156     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
5157     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
5158     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
5159     "-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\\\\@",
5160     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
5161     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
5162     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
5163     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
5164     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
5165     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
5166     (char*)NULL };
5168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5170  *  Description of Hpux_Spu_Info fix
5171  */
5172 tSCC zHpux_Spu_InfoName[] =
5173      "hpux_spu_info";
5176  *  File name selection pattern
5177  */
5178 tSCC zHpux_Spu_InfoList[] =
5179   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
5181  *  Machine/OS name selection pattern
5182  */
5183 tSCC* apzHpux_Spu_InfoMachs[] = {
5184         "*-hp-hpux*",
5185         (const char*)NULL };
5188  *  content selection pattern - do fix if pattern found
5189  */
5190 tSCC zHpux_Spu_InfoSelect0[] =
5191        "^.*extern.*spu_info.*";
5193 #define    HPUX_SPU_INFO_TEST_CT  1
5194 static tTestDesc aHpux_Spu_InfoTests[] = {
5195   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
5198  *  Fix Command Arguments for Hpux_Spu_Info
5199  */
5200 static const char* apzHpux_Spu_InfoPatch[] = {
5201     "format",
5202     "#ifdef _KERNEL\n\
5203 %0\n\
5204 #endif",
5205     (char*)NULL };
5207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5209  *  Description of Hpux_Stdint_Least_Fast fix
5210  */
5211 tSCC zHpux_Stdint_Least_FastName[] =
5212      "hpux_stdint_least_fast";
5215  *  File name selection pattern
5216  */
5217 tSCC zHpux_Stdint_Least_FastList[] =
5218   "stdint-hpux11.h\0stdint.h\0";
5220  *  Machine/OS name selection pattern
5221  */
5222 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
5223         "*-hp-hpux11.2*",
5224         (const char*)NULL };
5227  *  content selection pattern - do fix if pattern found
5228  */
5229 tSCC zHpux_Stdint_Least_FastSelect0[] =
5230        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
5232 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
5233 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
5234   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
5237  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
5238  */
5239 static const char* apzHpux_Stdint_Least_FastPatch[] = {
5240     "format",
5241     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
5242     (char*)NULL };
5244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5246  *  Description of Hpux_Longjmp fix
5247  */
5248 tSCC zHpux_LongjmpName[] =
5249      "hpux_longjmp";
5252  *  File name selection pattern
5253  */
5254 tSCC zHpux_LongjmpList[] =
5255   "setjmp.h\0";
5257  *  Machine/OS name selection pattern
5258  */
5259 tSCC* apzHpux_LongjmpMachs[] = {
5260         "*-hp-hpux*",
5261         (const char*)NULL };
5264  *  content selection pattern - do fix if pattern found
5265  */
5266 tSCC zHpux_LongjmpSelect0[] =
5267        "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))";
5269 #define    HPUX_LONGJMP_TEST_CT  1
5270 static tTestDesc aHpux_LongjmpTests[] = {
5271   { TT_EGREP,    zHpux_LongjmpSelect0, (regex_t*)NULL }, };
5274  *  Fix Command Arguments for Hpux_Longjmp
5275  */
5276 static const char* apzHpux_LongjmpPatch[] = {
5277     "format",
5278     "%0 __attribute__ ((__noreturn__))",
5279     (char*)NULL };
5281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5283  *  Description of Hpux_Systime fix
5284  */
5285 tSCC zHpux_SystimeName[] =
5286      "hpux_systime";
5289  *  File name selection pattern
5290  */
5291 tSCC zHpux_SystimeList[] =
5292   "sys/time.h\0";
5294  *  Machine/OS name selection pattern
5295  */
5296 #define apzHpux_SystimeMachs (const char**)NULL
5299  *  content selection pattern - do fix if pattern found
5300  */
5301 tSCC zHpux_SystimeSelect0[] =
5302        "^extern struct sigevent;";
5304 #define    HPUX_SYSTIME_TEST_CT  1
5305 static tTestDesc aHpux_SystimeTests[] = {
5306   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
5309  *  Fix Command Arguments for Hpux_Systime
5310  */
5311 static const char* apzHpux_SystimePatch[] = {
5312     "format",
5313     "struct sigevent;",
5314     (char*)NULL };
5316 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5318  *  Description of Huge_Val_Hex fix
5319  */
5320 tSCC zHuge_Val_HexName[] =
5321      "huge_val_hex";
5324  *  File name selection pattern
5325  */
5326 tSCC zHuge_Val_HexList[] =
5327   "bits/huge_val.h\0*/bits/huge_val.h\0";
5329  *  Machine/OS name selection pattern
5330  */
5331 #define apzHuge_Val_HexMachs (const char**)NULL
5334  *  content selection pattern - do fix if pattern found
5335  */
5336 tSCC zHuge_Val_HexSelect0[] =
5337        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
5340  *  content bypass pattern - skip fix if pattern found
5341  */
5342 tSCC zHuge_Val_HexBypass0[] =
5343        "__builtin_huge_val";
5345 #define    HUGE_VAL_HEX_TEST_CT  2
5346 static tTestDesc aHuge_Val_HexTests[] = {
5347   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
5348   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
5351  *  Fix Command Arguments for Huge_Val_Hex
5352  */
5353 static const char* apzHuge_Val_HexPatch[] = {
5354     "format",
5355     "#define HUGE_VAL (__builtin_huge_val())\n",
5356     (char*)NULL };
5358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5360  *  Description of Huge_Valf_Hex fix
5361  */
5362 tSCC zHuge_Valf_HexName[] =
5363      "huge_valf_hex";
5366  *  File name selection pattern
5367  */
5368 tSCC zHuge_Valf_HexList[] =
5369   "bits/huge_val.h\0*/bits/huge_val.h\0";
5371  *  Machine/OS name selection pattern
5372  */
5373 #define apzHuge_Valf_HexMachs (const char**)NULL
5376  *  content selection pattern - do fix if pattern found
5377  */
5378 tSCC zHuge_Valf_HexSelect0[] =
5379        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
5382  *  content bypass pattern - skip fix if pattern found
5383  */
5384 tSCC zHuge_Valf_HexBypass0[] =
5385        "__builtin_huge_valf";
5387 #define    HUGE_VALF_HEX_TEST_CT  2
5388 static tTestDesc aHuge_Valf_HexTests[] = {
5389   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
5390   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
5393  *  Fix Command Arguments for Huge_Valf_Hex
5394  */
5395 static const char* apzHuge_Valf_HexPatch[] = {
5396     "format",
5397     "#define HUGE_VALF (__builtin_huge_valf())\n",
5398     (char*)NULL };
5400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5402  *  Description of Huge_Vall_Hex fix
5403  */
5404 tSCC zHuge_Vall_HexName[] =
5405      "huge_vall_hex";
5408  *  File name selection pattern
5409  */
5410 tSCC zHuge_Vall_HexList[] =
5411   "bits/huge_val.h\0*/bits/huge_val.h\0";
5413  *  Machine/OS name selection pattern
5414  */
5415 #define apzHuge_Vall_HexMachs (const char**)NULL
5418  *  content selection pattern - do fix if pattern found
5419  */
5420 tSCC zHuge_Vall_HexSelect0[] =
5421        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
5424  *  content bypass pattern - skip fix if pattern found
5425  */
5426 tSCC zHuge_Vall_HexBypass0[] =
5427        "__builtin_huge_vall";
5429 #define    HUGE_VALL_HEX_TEST_CT  2
5430 static tTestDesc aHuge_Vall_HexTests[] = {
5431   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
5432   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
5435  *  Fix Command Arguments for Huge_Vall_Hex
5436  */
5437 static const char* apzHuge_Vall_HexPatch[] = {
5438     "format",
5439     "#define HUGE_VALL (__builtin_huge_vall())\n",
5440     (char*)NULL };
5442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5444  *  Description of Int_Abort_Free_And_Exit fix
5445  */
5446 tSCC zInt_Abort_Free_And_ExitName[] =
5447      "int_abort_free_and_exit";
5450  *  File name selection pattern
5451  */
5452 tSCC zInt_Abort_Free_And_ExitList[] =
5453   "stdlib.h\0";
5455  *  Machine/OS name selection pattern
5456  */
5457 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
5460  *  content selection pattern - do fix if pattern found
5461  */
5462 tSCC zInt_Abort_Free_And_ExitSelect0[] =
5463        "int[ \t]+(abort|free|exit)[ \t]*\\(";
5466  *  content bypass pattern - skip fix if pattern found
5467  */
5468 tSCC zInt_Abort_Free_And_ExitBypass0[] =
5469        "_CLASSIC_ANSI_TYPES";
5471 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
5472 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
5473   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
5474   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
5477  *  Fix Command Arguments for Int_Abort_Free_And_Exit
5478  */
5479 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
5480     "format",
5481     "void\t%1(",
5482     (char*)NULL };
5484 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5486  *  Description of Io_Quotes_Def fix
5487  */
5488 tSCC zIo_Quotes_DefName[] =
5489      "io_quotes_def";
5492  *  File name selection pattern
5493  */
5494 #define zIo_Quotes_DefList (char*)NULL
5496  *  Machine/OS name selection pattern
5497  */
5498 #define apzIo_Quotes_DefMachs (const char**)NULL
5501  *  content selection pattern - do fix if pattern found
5502  */
5503 tSCC zIo_Quotes_DefSelect0[] =
5504        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
5506 #define    IO_QUOTES_DEF_TEST_CT  1
5507 static tTestDesc aIo_Quotes_DefTests[] = {
5508   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
5511  *  Fix Command Arguments for Io_Quotes_Def
5512  */
5513 static const char* apzIo_Quotes_DefPatch[] = {
5514     "char_macro_def",
5515     "IO",
5516     (char*)NULL };
5518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5520  *  Description of Io_Quotes_Use fix
5521  */
5522 tSCC zIo_Quotes_UseName[] =
5523      "io_quotes_use";
5526  *  File name selection pattern
5527  */
5528 #define zIo_Quotes_UseList (char*)NULL
5530  *  Machine/OS name selection pattern
5531  */
5532 #define apzIo_Quotes_UseMachs (const char**)NULL
5535  *  content selection pattern - do fix if pattern found
5536  */
5537 tSCC zIo_Quotes_UseSelect0[] =
5538        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
5540 #define    IO_QUOTES_USE_TEST_CT  1
5541 static tTestDesc aIo_Quotes_UseTests[] = {
5542   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
5545  *  Fix Command Arguments for Io_Quotes_Use
5546  */
5547 static const char* apzIo_Quotes_UsePatch[] = {
5548     "char_macro_use",
5549     "IO",
5550     (char*)NULL };
5552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5554  *  Description of Ip_Missing_Semi fix
5555  */
5556 tSCC zIp_Missing_SemiName[] =
5557      "ip_missing_semi";
5560  *  File name selection pattern
5561  */
5562 tSCC zIp_Missing_SemiList[] =
5563   "netinet/ip.h\0";
5565  *  Machine/OS name selection pattern
5566  */
5567 #define apzIp_Missing_SemiMachs (const char**)NULL
5570  *  content selection pattern - do fix if pattern found
5571  */
5572 tSCC zIp_Missing_SemiSelect0[] =
5573        "}$";
5575 #define    IP_MISSING_SEMI_TEST_CT  1
5576 static tTestDesc aIp_Missing_SemiTests[] = {
5577   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
5580  *  Fix Command Arguments for Ip_Missing_Semi
5581  */
5582 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
5583     "-e", "/^struct/,/^};/s/}$/};/",
5584     (char*)NULL };
5586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5588  *  Description of Irix_Limits_Const fix
5589  */
5590 tSCC zIrix_Limits_ConstName[] =
5591      "irix_limits_const";
5594  *  File name selection pattern
5595  */
5596 tSCC zIrix_Limits_ConstList[] =
5597   "fixinc-test-limits.h\0limits.h\0";
5599  *  Machine/OS name selection pattern
5600  */
5601 #define apzIrix_Limits_ConstMachs (const char**)NULL
5604  *  content selection pattern - do fix if pattern found
5605  */
5606 tSCC zIrix_Limits_ConstSelect0[] =
5607        "^extern const ";
5609 #define    IRIX_LIMITS_CONST_TEST_CT  1
5610 static tTestDesc aIrix_Limits_ConstTests[] = {
5611   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
5614  *  Fix Command Arguments for Irix_Limits_Const
5615  */
5616 static const char* apzIrix_Limits_ConstPatch[] = {
5617     "format",
5618     "extern __const ",
5619     (char*)NULL };
5621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5623  *  Description of Irix_Stdio_Va_List fix
5624  */
5625 tSCC zIrix_Stdio_Va_ListName[] =
5626      "irix_stdio_va_list";
5629  *  File name selection pattern
5630  */
5631 tSCC zIrix_Stdio_Va_ListList[] =
5632   "stdio.h\0";
5634  *  Machine/OS name selection pattern
5635  */
5636 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
5639  *  content selection pattern - do fix if pattern found
5640  */
5641 tSCC zIrix_Stdio_Va_ListSelect0[] =
5642        "/\\* va_list \\*/ char \\*";
5644 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
5645 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5646   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5649  *  Fix Command Arguments for Irix_Stdio_Va_List
5650  */
5651 static const char* apzIrix_Stdio_Va_ListPatch[] = {
5652     "format",
5653     "__gnuc_va_list",
5654     (char*)NULL };
5656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5658  *  Description of Kandr_Concat fix
5659  */
5660 tSCC zKandr_ConcatName[] =
5661      "kandr_concat";
5664  *  File name selection pattern
5665  */
5666 tSCC zKandr_ConcatList[] =
5667   "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";
5669  *  Machine/OS name selection pattern
5670  */
5671 #define apzKandr_ConcatMachs (const char**)NULL
5674  *  content selection pattern - do fix if pattern found
5675  */
5676 tSCC zKandr_ConcatSelect0[] =
5677        "/\\*\\*/";
5679 #define    KANDR_CONCAT_TEST_CT  1
5680 static tTestDesc aKandr_ConcatTests[] = {
5681   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
5684  *  Fix Command Arguments for Kandr_Concat
5685  */
5686 static const char* apzKandr_ConcatPatch[] = {
5687     "format",
5688     "##",
5689     (char*)NULL };
5691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5693  *  Description of Linux_Ia64_Ucontext fix
5694  */
5695 tSCC zLinux_Ia64_UcontextName[] =
5696      "linux_ia64_ucontext";
5699  *  File name selection pattern
5700  */
5701 tSCC zLinux_Ia64_UcontextList[] =
5702   "sys/ucontext.h\0";
5704  *  Machine/OS name selection pattern
5705  */
5706 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5707         "ia64-*-linux*",
5708         (const char*)NULL };
5711  *  content selection pattern - do fix if pattern found
5712  */
5713 tSCC zLinux_Ia64_UcontextSelect0[] =
5714        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5716 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
5717 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5718   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5721  *  Fix Command Arguments for Linux_Ia64_Ucontext
5722  */
5723 static const char* apzLinux_Ia64_UcontextPatch[] = {
5724     "format",
5725     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5726     (char*)NULL };
5728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5730  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
5731  */
5732 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5733      "lynxos_no_warning_in_sys_time_h";
5736  *  File name selection pattern
5737  */
5738 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5739   "sys/time.h\0";
5741  *  Machine/OS name selection pattern
5742  */
5743 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5746  *  content selection pattern - do fix if pattern found
5747  */
5748 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5749        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5751 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
5752 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5753   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5756  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5757  */
5758 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5759     "format",
5760     "",
5761     (char*)NULL };
5763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5765  *  Description of Lynxos_Missing_Putenv fix
5766  */
5767 tSCC zLynxos_Missing_PutenvName[] =
5768      "lynxos_missing_putenv";
5771  *  File name selection pattern
5772  */
5773 tSCC zLynxos_Missing_PutenvList[] =
5774   "stdlib.h\0";
5776  *  Machine/OS name selection pattern
5777  */
5778 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5779         "*-*-lynxos*",
5780         (const char*)NULL };
5783  *  content selection pattern - do fix if pattern found
5784  */
5785 tSCC zLynxos_Missing_PutenvSelect0[] =
5786        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5789  *  content bypass pattern - skip fix if pattern found
5790  */
5791 tSCC zLynxos_Missing_PutenvBypass0[] =
5792        "putenv[ \\t]*\\(";
5794 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
5795 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5796   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5797   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5800  *  Fix Command Arguments for Lynxos_Missing_Putenv
5801  */
5802 static const char* apzLynxos_Missing_PutenvPatch[] = {
5803     "format",
5804     "%0\n\
5805 extern int putenv\t\t\t\t_AP((char *));",
5806     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5807     (char*)NULL };
5809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5811  *  Description of Machine_Ansi_H_Va_List fix
5812  */
5813 tSCC zMachine_Ansi_H_Va_ListName[] =
5814      "machine_ansi_h_va_list";
5817  *  File name selection pattern
5818  */
5819 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5821  *  Machine/OS name selection pattern
5822  */
5823 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5826  *  content selection pattern - do fix if pattern found
5827  */
5828 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5829        "define[ \t]+_BSD_VA_LIST_[ \t]";
5832  *  content bypass pattern - skip fix if pattern found
5833  */
5834 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5835        "__builtin_va_list";
5837 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
5838 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5839   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5840   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5843  *  Fix Command Arguments for Machine_Ansi_H_Va_List
5844  */
5845 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5846     "format",
5847     "%1__builtin_va_list",
5848     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5849     (char*)NULL };
5851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5853  *  Description of Machine_Name fix
5854  */
5855 tSCC zMachine_NameName[] =
5856      "machine_name";
5859  *  File name selection pattern
5860  */
5861 #define zMachine_NameList (char*)NULL
5863  *  Machine/OS name selection pattern
5864  */
5865 #define apzMachine_NameMachs (const char**)NULL
5868  *  perform the C function call test
5869  */
5870 tSCC zMachine_NameFTst0[] = "machine_name";
5872 #define    MACHINE_NAME_TEST_CT  1
5873 static tTestDesc aMachine_NameTests[] = {
5874   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
5877  *  Fix Command Arguments for Machine_Name
5878  */
5879 static const char* apzMachine_NamePatch[] = {
5880     "machine_name",
5881     (char*)NULL };
5883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5885  *  Description of Math_Exception fix
5886  */
5887 tSCC zMath_ExceptionName[] =
5888      "math_exception";
5891  *  File name selection pattern
5892  */
5893 tSCC zMath_ExceptionList[] =
5894   "math.h\0";
5896  *  Machine/OS name selection pattern
5897  */
5898 tSCC* apzMath_ExceptionMachs[] = {
5899         "*-*-solaris2.1[0-9]*",
5900         (const char*)NULL };
5903  *  content selection pattern - do fix if pattern found
5904  */
5905 tSCC zMath_ExceptionSelect0[] =
5906        "struct exception";
5909  *  content bypass pattern - skip fix if pattern found
5910  */
5911 tSCC zMath_ExceptionBypass0[] =
5912        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5914 #define    MATH_EXCEPTION_TEST_CT  2
5915 static tTestDesc aMath_ExceptionTests[] = {
5916   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
5917   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
5920  *  Fix Command Arguments for Math_Exception
5921  */
5922 static const char* apzMath_ExceptionPatch[] = {
5923     "wrap",
5924     "#ifdef __cplusplus\n\
5925 #define exception __math_exception\n\
5926 #endif\n",
5927     "#ifdef __cplusplus\n\
5928 #undef exception\n\
5929 #endif\n",
5930     (char*)NULL };
5932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5934  *  Description of Math_Huge_Val_From_Dbl_Max fix
5935  */
5936 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5937      "math_huge_val_from_dbl_max";
5940  *  File name selection pattern
5941  */
5942 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5943   "math.h\0";
5945  *  Machine/OS name selection pattern
5946  */
5947 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5950  *  content selection pattern - do fix if pattern found
5951  */
5952 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5953        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5956  *  content bypass pattern - skip fix if pattern found
5957  */
5958 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5959        "define[ \t]+DBL_MAX";
5961 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
5962 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5963   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5964   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5967  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5968  */
5969 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5970     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5971 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5972 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5973 \telse cat\n\
5974 \tfi",
5975     (char*)NULL };
5977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5979  *  Description of Nested_Auth_Des fix
5980  */
5981 tSCC zNested_Auth_DesName[] =
5982      "nested_auth_des";
5985  *  File name selection pattern
5986  */
5987 tSCC zNested_Auth_DesList[] =
5988   "rpc/rpc.h\0";
5990  *  Machine/OS name selection pattern
5991  */
5992 #define apzNested_Auth_DesMachs (const char**)NULL
5995  *  content selection pattern - do fix if pattern found
5996  */
5997 tSCC zNested_Auth_DesSelect0[] =
5998        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
6000 #define    NESTED_AUTH_DES_TEST_CT  1
6001 static tTestDesc aNested_Auth_DesTests[] = {
6002   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
6005  *  Fix Command Arguments for Nested_Auth_Des
6006  */
6007 static const char* apzNested_Auth_DesPatch[] = {
6008     "format",
6009     "%1*/ /*",
6010     (char*)NULL };
6012 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6014  *  Description of Netbsd_C99_Inline_1 fix
6015  */
6016 tSCC zNetbsd_C99_Inline_1Name[] =
6017      "netbsd_c99_inline_1";
6020  *  File name selection pattern
6021  */
6022 tSCC zNetbsd_C99_Inline_1List[] =
6023   "signal.h\0";
6025  *  Machine/OS name selection pattern
6026  */
6027 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
6028         "*-*-netbsd*",
6029         (const char*)NULL };
6032  *  content selection pattern - do fix if pattern found
6033  */
6034 tSCC zNetbsd_C99_Inline_1Select0[] =
6035        "extern __inline int";
6037 #define    NETBSD_C99_INLINE_1_TEST_CT  1
6038 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
6039   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
6042  *  Fix Command Arguments for Netbsd_C99_Inline_1
6043  */
6044 static const char* apzNetbsd_C99_Inline_1Patch[] = {
6045     "format",
6046     "extern\n\
6047 #ifdef __GNUC_STDC_INLINE__\n\
6048 __attribute__((__gnu_inline__))\n\
6049 #endif\n\
6050 __inline int",
6051     (char*)NULL };
6053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6055  *  Description of Netbsd_C99_Inline_2 fix
6056  */
6057 tSCC zNetbsd_C99_Inline_2Name[] =
6058      "netbsd_c99_inline_2";
6061  *  File name selection pattern
6062  */
6063 tSCC zNetbsd_C99_Inline_2List[] =
6064   "signal.h\0";
6066  *  Machine/OS name selection pattern
6067  */
6068 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
6069         "*-*-netbsd*",
6070         (const char*)NULL };
6073  *  content selection pattern - do fix if pattern found
6074  */
6075 tSCC zNetbsd_C99_Inline_2Select0[] =
6076        "#define _SIGINLINE extern __inline";
6078 #define    NETBSD_C99_INLINE_2_TEST_CT  1
6079 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
6080   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
6083  *  Fix Command Arguments for Netbsd_C99_Inline_2
6084  */
6085 static const char* apzNetbsd_C99_Inline_2Patch[] = {
6086     "format",
6087     "#ifdef __GNUC_STDC_INLINE__\n\
6088 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
6089 #else\n\
6090 %0\n\
6091 #endif",
6092     (char*)NULL };
6094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6096  *  Description of Netbsd_Extra_Semicolon fix
6097  */
6098 tSCC zNetbsd_Extra_SemicolonName[] =
6099      "netbsd_extra_semicolon";
6102  *  File name selection pattern
6103  */
6104 tSCC zNetbsd_Extra_SemicolonList[] =
6105   "sys/cdefs.h\0";
6107  *  Machine/OS name selection pattern
6108  */
6109 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
6110         "*-*-netbsd*",
6111         (const char*)NULL };
6114  *  content selection pattern - do fix if pattern found
6115  */
6116 tSCC zNetbsd_Extra_SemicolonSelect0[] =
6117        "#define[ \t]*__END_DECLS[ \t]*};";
6119 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
6120 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
6121   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
6124  *  Fix Command Arguments for Netbsd_Extra_Semicolon
6125  */
6126 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
6127     "format",
6128     "#define __END_DECLS }",
6129     (char*)NULL };
6131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6133  *  Description of Newlib_Stdint_1 fix
6134  */
6135 tSCC zNewlib_Stdint_1Name[] =
6136      "newlib_stdint_1";
6139  *  File name selection pattern
6140  */
6141 tSCC zNewlib_Stdint_1List[] =
6142   "stdint-newlib.h\0stdint.h\0";
6144  *  Machine/OS name selection pattern
6145  */
6146 #define apzNewlib_Stdint_1Machs (const char**)NULL
6149  *  content selection pattern - do fix if pattern found
6150  */
6151 tSCC zNewlib_Stdint_1Select0[] =
6152        "@todo - Add support for wint_t types";
6154 #define    NEWLIB_STDINT_1_TEST_CT  1
6155 static tTestDesc aNewlib_Stdint_1Tests[] = {
6156   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
6159  *  Fix Command Arguments for Newlib_Stdint_1
6160  */
6161 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
6162     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
6163     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
6164     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
6165     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
6166     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
6167     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
6168     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
6169     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
6170     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
6171     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
6172     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
6173     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
6174     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
6175     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
6176     (char*)NULL };
6178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6180  *  Description of Newlib_Stdint_2 fix
6181  */
6182 tSCC zNewlib_Stdint_2Name[] =
6183      "newlib_stdint_2";
6186  *  File name selection pattern
6187  */
6188 tSCC zNewlib_Stdint_2List[] =
6189   "stdint-newlib.h\0stdint.h\0";
6191  *  Machine/OS name selection pattern
6192  */
6193 #define apzNewlib_Stdint_2Machs (const char**)NULL
6196  *  content selection pattern - do fix if pattern found
6197  */
6198 tSCC zNewlib_Stdint_2Select0[] =
6199        "@todo - Add support for wint_t types";
6201 #define    NEWLIB_STDINT_2_TEST_CT  1
6202 static tTestDesc aNewlib_Stdint_2Tests[] = {
6203   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
6206  *  Fix Command Arguments for Newlib_Stdint_2
6207  */
6208 static const char* apzNewlib_Stdint_2Patch[] = {
6209     "format",
6210     "#define INTMAX_MAX __INTMAX_MAX__\n\
6211 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
6212 #define UINTMAX_MAX __UINTMAX_MAX__\n\
6213 #define WCHAR_MAX __WCHAR_MAX__\n\
6214 #define WCHAR_MIN __WCHAR_MIN__\n\
6215 #define WINT_MAX __WINT_MAX__\n\
6216 #define WINT_MIN __WINT_MIN__\n\n\
6217 %0",
6218     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
6219     (char*)NULL };
6221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6223  *  Description of Next_Math_Prefix fix
6224  */
6225 tSCC zNext_Math_PrefixName[] =
6226      "next_math_prefix";
6229  *  File name selection pattern
6230  */
6231 tSCC zNext_Math_PrefixList[] =
6232   "ansi/math.h\0";
6234  *  Machine/OS name selection pattern
6235  */
6236 #define apzNext_Math_PrefixMachs (const char**)NULL
6239  *  content selection pattern - do fix if pattern found
6240  */
6241 tSCC zNext_Math_PrefixSelect0[] =
6242        "^extern[ \t]+double[ \t]+__const__[ \t]";
6244 #define    NEXT_MATH_PREFIX_TEST_CT  1
6245 static tTestDesc aNext_Math_PrefixTests[] = {
6246   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
6249  *  Fix Command Arguments for Next_Math_Prefix
6250  */
6251 static const char* apzNext_Math_PrefixPatch[] = {
6252     "format",
6253     "extern double %1(",
6254     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
6255     (char*)NULL };
6257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6259  *  Description of Next_Template fix
6260  */
6261 tSCC zNext_TemplateName[] =
6262      "next_template";
6265  *  File name selection pattern
6266  */
6267 tSCC zNext_TemplateList[] =
6268   "bsd/libc.h\0";
6270  *  Machine/OS name selection pattern
6271  */
6272 #define apzNext_TemplateMachs (const char**)NULL
6275  *  content selection pattern - do fix if pattern found
6276  */
6277 tSCC zNext_TemplateSelect0[] =
6278        "[ \t]template\\)";
6280 #define    NEXT_TEMPLATE_TEST_CT  1
6281 static tTestDesc aNext_TemplateTests[] = {
6282   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
6285  *  Fix Command Arguments for Next_Template
6286  */
6287 static const char* apzNext_TemplatePatch[] = {
6288     "format",
6289     "(%1)",
6290     "\\(([^)]*)[ \t]template\\)",
6291     (char*)NULL };
6293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6295  *  Description of Next_Volitile fix
6296  */
6297 tSCC zNext_VolitileName[] =
6298      "next_volitile";
6301  *  File name selection pattern
6302  */
6303 tSCC zNext_VolitileList[] =
6304   "ansi/stdlib.h\0";
6306  *  Machine/OS name selection pattern
6307  */
6308 #define apzNext_VolitileMachs (const char**)NULL
6311  *  content selection pattern - do fix if pattern found
6312  */
6313 tSCC zNext_VolitileSelect0[] =
6314        "^extern[ \t]+volatile[ \t]+void[ \t]";
6316 #define    NEXT_VOLITILE_TEST_CT  1
6317 static tTestDesc aNext_VolitileTests[] = {
6318   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
6321  *  Fix Command Arguments for Next_Volitile
6322  */
6323 static const char* apzNext_VolitilePatch[] = {
6324     "format",
6325     "extern void %1(",
6326     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
6327     (char*)NULL };
6329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6331  *  Description of Next_Wait_Union fix
6332  */
6333 tSCC zNext_Wait_UnionName[] =
6334      "next_wait_union";
6337  *  File name selection pattern
6338  */
6339 tSCC zNext_Wait_UnionList[] =
6340   "sys/wait.h\0";
6342  *  Machine/OS name selection pattern
6343  */
6344 #define apzNext_Wait_UnionMachs (const char**)NULL
6347  *  content selection pattern - do fix if pattern found
6348  */
6349 tSCC zNext_Wait_UnionSelect0[] =
6350        "wait\\(union wait";
6352 #define    NEXT_WAIT_UNION_TEST_CT  1
6353 static tTestDesc aNext_Wait_UnionTests[] = {
6354   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
6357  *  Fix Command Arguments for Next_Wait_Union
6358  */
6359 static const char* apzNext_Wait_UnionPatch[] = {
6360     "format",
6361     "wait(void",
6362     (char*)NULL };
6364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6366  *  Description of Nodeent_Syntax fix
6367  */
6368 tSCC zNodeent_SyntaxName[] =
6369      "nodeent_syntax";
6372  *  File name selection pattern
6373  */
6374 tSCC zNodeent_SyntaxList[] =
6375   "netdnet/dnetdb.h\0";
6377  *  Machine/OS name selection pattern
6378  */
6379 #define apzNodeent_SyntaxMachs (const char**)NULL
6382  *  content selection pattern - do fix if pattern found
6383  */
6384 tSCC zNodeent_SyntaxSelect0[] =
6385        "char[ \t]*\\*na_addr[ \t]*$";
6387 #define    NODEENT_SYNTAX_TEST_CT  1
6388 static tTestDesc aNodeent_SyntaxTests[] = {
6389   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
6392  *  Fix Command Arguments for Nodeent_Syntax
6393  */
6394 static const char* apzNodeent_SyntaxPatch[] = {
6395     "format",
6396     "%0;",
6397     (char*)NULL };
6399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6401  *  Description of Openbsd_Null_Definition fix
6402  */
6403 tSCC zOpenbsd_Null_DefinitionName[] =
6404      "openbsd_null_definition";
6407  *  File name selection pattern
6408  */
6409 tSCC zOpenbsd_Null_DefinitionList[] =
6410   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
6412  *  Machine/OS name selection pattern
6413  */
6414 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
6415         "*-*-openbsd*",
6416         (const char*)NULL };
6419  *  content selection pattern - do fix if pattern found
6420  */
6421 tSCC zOpenbsd_Null_DefinitionSelect0[] =
6422        "__GNUG__";
6424 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
6425 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
6426   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
6429  *  Fix Command Arguments for Openbsd_Null_Definition
6430  */
6431 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
6432     "format",
6433     "#ifndef NULL\n\
6434 #ifdef __cplusplus\n\
6435 #ifdef __GNUG__\n\
6436 #define NULL\t__null\n\
6437 #else\t /* ! __GNUG__  */\n\
6438 #define NULL\t0L\n\
6439 #endif\t /* __GNUG__  */\n\
6440 #else\t /* ! __cplusplus  */\n\
6441 #define NULL\t((void *)0)\n\
6442 #endif\t /* __cplusplus  */\n\
6443 #endif\t /* !NULL  */",
6444     "^#ifndef[ \t]*NULL\n\
6445 ^#ifdef[ \t]*__GNUG__\n\
6446 ^#define[ \t]*NULL[ \t]*__null\n\
6447 ^#else\n\
6448 ^#define[ \t]*NULL[ \t]*0L\n\
6449 ^#endif\n\
6450 ^#endif",
6451     (char*)NULL };
6453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6455  *  Description of Obstack_Lvalue_Cast fix
6456  */
6457 tSCC zObstack_Lvalue_CastName[] =
6458      "obstack_lvalue_cast";
6461  *  File name selection pattern
6462  */
6463 tSCC zObstack_Lvalue_CastList[] =
6464   "obstack.h\0";
6466  *  Machine/OS name selection pattern
6467  */
6468 #define apzObstack_Lvalue_CastMachs (const char**)NULL
6471  *  content selection pattern - do fix if pattern found
6472  */
6473 tSCC zObstack_Lvalue_CastSelect0[] =
6474        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
6476 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
6477 static tTestDesc aObstack_Lvalue_CastTests[] = {
6478   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
6481  *  Fix Command Arguments for Obstack_Lvalue_Cast
6482  */
6483 static const char* apzObstack_Lvalue_CastPatch[] = {
6484     "format",
6485     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
6486     (char*)NULL };
6488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6490  *  Description of Openbsd_Va_Start fix
6491  */
6492 tSCC zOpenbsd_Va_StartName[] =
6493      "openbsd_va_start";
6496  *  File name selection pattern
6497  */
6498 tSCC zOpenbsd_Va_StartList[] =
6499   "stdarg.h\0";
6501  *  Machine/OS name selection pattern
6502  */
6503 tSCC* apzOpenbsd_Va_StartMachs[] = {
6504         "*-*-openbsd*",
6505         (const char*)NULL };
6508  *  content selection pattern - do fix if pattern found
6509  */
6510 tSCC zOpenbsd_Va_StartSelect0[] =
6511        "__builtin_stdarg_start";
6513 #define    OPENBSD_VA_START_TEST_CT  1
6514 static tTestDesc aOpenbsd_Va_StartTests[] = {
6515   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
6518  *  Fix Command Arguments for Openbsd_Va_Start
6519  */
6520 static const char* apzOpenbsd_Va_StartPatch[] = {
6521     "format",
6522     "__builtin_va_start",
6523     (char*)NULL };
6525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6527  *  Description of Osf_Namespace_A fix
6528  */
6529 tSCC zOsf_Namespace_AName[] =
6530      "osf_namespace_a";
6533  *  File name selection pattern
6534  */
6535 tSCC zOsf_Namespace_AList[] =
6536   "reg_types.h\0sys/lc_core.h\0";
6538  *  Machine/OS name selection pattern
6539  */
6540 #define apzOsf_Namespace_AMachs (const char**)NULL
6543  *  perform the 'test' shell command - do fix on success
6544  */
6545 tSCC zOsf_Namespace_ATest0[] =
6546        " -r reg_types.h";
6547 tSCC zOsf_Namespace_ATest1[] =
6548        " -r sys/lc_core.h";
6549 tSCC zOsf_Namespace_ATest2[] =
6550        " -n \"`grep '} regex_t;' reg_types.h`\"";
6551 tSCC zOsf_Namespace_ATest3[] =
6552        " -z \"`grep __regex_t regex.h`\"";
6554 #define    OSF_NAMESPACE_A_TEST_CT  4
6555 static tTestDesc aOsf_Namespace_ATests[] = {
6556   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
6557   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
6558   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
6559   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
6562  *  Fix Command Arguments for Osf_Namespace_A
6563  */
6564 static const char* apzOsf_Namespace_APatch[] = {
6565     "format",
6566     "__%0",
6567     "reg(ex|off|match)_t",
6568     (char*)NULL };
6570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6572  *  Description of Osf_Namespace_C fix
6573  */
6574 tSCC zOsf_Namespace_CName[] =
6575      "osf_namespace_c";
6578  *  File name selection pattern
6579  */
6580 tSCC zOsf_Namespace_CList[] =
6581   "regex.h\0";
6583  *  Machine/OS name selection pattern
6584  */
6585 #define apzOsf_Namespace_CMachs (const char**)NULL
6588  *  content selection pattern - do fix if pattern found
6589  */
6590 tSCC zOsf_Namespace_CSelect0[] =
6591        "#include <reg_types.h>.*";
6594  *  perform the 'test' shell command - do fix on success
6595  */
6596 tSCC zOsf_Namespace_CTest0[] =
6597        " -r reg_types.h";
6598 tSCC zOsf_Namespace_CTest1[] =
6599        " -r sys/lc_core.h";
6600 tSCC zOsf_Namespace_CTest2[] =
6601        " -n \"`grep '} regex_t;' reg_types.h`\"";
6602 tSCC zOsf_Namespace_CTest3[] =
6603        " -z \"`grep __regex_t regex.h`\"";
6605 #define    OSF_NAMESPACE_C_TEST_CT  5
6606 static tTestDesc aOsf_Namespace_CTests[] = {
6607   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
6608   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
6609   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
6610   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
6611   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
6614  *  Fix Command Arguments for Osf_Namespace_C
6615  */
6616 static const char* apzOsf_Namespace_CPatch[] = {
6617     "format",
6618     "%0\n\
6619 typedef __regex_t\tregex_t;\n\
6620 typedef __regoff_t\tregoff_t;\n\
6621 typedef __regmatch_t\tregmatch_t;",
6622     (char*)NULL };
6624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6626  *  Description of Pthread_Incomplete_Struct_Argument fix
6627  */
6628 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
6629      "pthread_incomplete_struct_argument";
6632  *  File name selection pattern
6633  */
6634 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
6635   "pthread.h\0";
6637  *  Machine/OS name selection pattern
6638  */
6639 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6642  *  content selection pattern - do fix if pattern found
6643  */
6644 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6645        "struct __jmp_buf_tag";
6647 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
6648 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6649   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6652  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6653  */
6654 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6655     "format",
6656     "%1 *%2%3",
6657     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6658     (char*)NULL };
6660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6662  *  Description of Read_Ret_Type fix
6663  */
6664 tSCC zRead_Ret_TypeName[] =
6665      "read_ret_type";
6668  *  File name selection pattern
6669  */
6670 tSCC zRead_Ret_TypeList[] =
6671   "stdio.h\0";
6673  *  Machine/OS name selection pattern
6674  */
6675 #define apzRead_Ret_TypeMachs (const char**)NULL
6678  *  content selection pattern - do fix if pattern found
6679  */
6680 tSCC zRead_Ret_TypeSelect0[] =
6681        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6683 #define    READ_RET_TYPE_TEST_CT  1
6684 static tTestDesc aRead_Ret_TypeTests[] = {
6685   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6688  *  Fix Command Arguments for Read_Ret_Type
6689  */
6690 static const char* apzRead_Ret_TypePatch[] = {
6691     "format",
6692     "extern unsigned int fread(), fwrite();\n\
6693 %1%2",
6694     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6695     (char*)NULL };
6697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6699  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
6700  */
6701 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6702      "rpc_xdr_lvalue_cast_a";
6705  *  File name selection pattern
6706  */
6707 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6708   "rpc/xdr.h\0";
6710  *  Machine/OS name selection pattern
6711  */
6712 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6715  *  content selection pattern - do fix if pattern found
6716  */
6717 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6718        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6719 .*__extension__.*";
6721 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
6722 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6723   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6726  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6727  */
6728 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6729     "format",
6730     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6731     (char*)NULL };
6733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6735  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
6736  */
6737 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6738      "rpc_xdr_lvalue_cast_b";
6741  *  File name selection pattern
6742  */
6743 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6744   "rpc/xdr.h\0";
6746  *  Machine/OS name selection pattern
6747  */
6748 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6751  *  content selection pattern - do fix if pattern found
6752  */
6753 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6754        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6755 .*__extension__.*";
6757 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
6758 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6759   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6762  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6763  */
6764 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6765     "format",
6766     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6767     (char*)NULL };
6769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6771  *  Description of Rs6000_Double fix
6772  */
6773 tSCC zRs6000_DoubleName[] =
6774      "rs6000_double";
6777  *  File name selection pattern
6778  */
6779 tSCC zRs6000_DoubleList[] =
6780   "math.h\0";
6782  *  Machine/OS name selection pattern
6783  */
6784 #define apzRs6000_DoubleMachs (const char**)NULL
6787  *  content selection pattern - do fix if pattern found
6788  */
6789 tSCC zRs6000_DoubleSelect0[] =
6790        "[^a-zA-Z_]class\\(";
6792 #define    RS6000_DOUBLE_TEST_CT  1
6793 static tTestDesc aRs6000_DoubleTests[] = {
6794   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6797  *  Fix Command Arguments for Rs6000_Double
6798  */
6799 static const char* apzRs6000_DoublePatch[] = {
6800     "format",
6801     "#ifndef __cplusplus\n\
6802 %0\n\
6803 #endif",
6804     "^.*[^a-zA-Z_]class\\(.*",
6805     (char*)NULL };
6807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6809  *  Description of Rs6000_Fchmod fix
6810  */
6811 tSCC zRs6000_FchmodName[] =
6812      "rs6000_fchmod";
6815  *  File name selection pattern
6816  */
6817 tSCC zRs6000_FchmodList[] =
6818   "sys/stat.h\0";
6820  *  Machine/OS name selection pattern
6821  */
6822 #define apzRs6000_FchmodMachs (const char**)NULL
6825  *  content selection pattern - do fix if pattern found
6826  */
6827 tSCC zRs6000_FchmodSelect0[] =
6828        "fchmod\\(char \\*";
6830 #define    RS6000_FCHMOD_TEST_CT  1
6831 static tTestDesc aRs6000_FchmodTests[] = {
6832   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6835  *  Fix Command Arguments for Rs6000_Fchmod
6836  */
6837 static const char* apzRs6000_FchmodPatch[] = {
6838     "format",
6839     "fchmod(int",
6840     (char*)NULL };
6842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6844  *  Description of Rs6000_Param fix
6845  */
6846 tSCC zRs6000_ParamName[] =
6847      "rs6000_param";
6850  *  File name selection pattern
6851  */
6852 tSCC zRs6000_ParamList[] =
6853   "stdio.h\0unistd.h\0";
6855  *  Machine/OS name selection pattern
6856  */
6857 #define apzRs6000_ParamMachs (const char**)NULL
6860  *  content selection pattern - do fix if pattern found
6861  */
6862 tSCC zRs6000_ParamSelect0[] =
6863        "rename\\(const char \\*old, const char \\*new\\)";
6865 #define    RS6000_PARAM_TEST_CT  1
6866 static tTestDesc aRs6000_ParamTests[] = {
6867   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
6870  *  Fix Command Arguments for Rs6000_Param
6871  */
6872 static const char* apzRs6000_ParamPatch[] = {
6873     "format",
6874     "rename(const char *_old, const char *_new)",
6875     (char*)NULL };
6877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6879  *  Description of Solaris___Restrict fix
6880  */
6881 tSCC zSolaris___RestrictName[] =
6882      "solaris___restrict";
6885  *  File name selection pattern
6886  */
6887 tSCC zSolaris___RestrictList[] =
6888   "sys/feature_tests.h\0";
6890  *  Machine/OS name selection pattern
6891  */
6892 tSCC* apzSolaris___RestrictMachs[] = {
6893         "*-*-solaris2*",
6894         (const char*)NULL };
6897  *  content selection pattern - do fix if pattern found
6898  */
6899 tSCC zSolaris___RestrictSelect0[] =
6900        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6902 #define    SOLARIS___RESTRICT_TEST_CT  1
6903 static tTestDesc aSolaris___RestrictTests[] = {
6904   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6907  *  Fix Command Arguments for Solaris___Restrict
6908  */
6909 static const char* apzSolaris___RestrictPatch[] = {
6910     "format",
6911     "#ifdef __cplusplus\n\
6912 #define\t_RESTRICT_KYWD\t__restrict\n\
6913 #else\n\
6914 %0\n\
6915 #endif",
6916     (char*)NULL };
6918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6920  *  Description of Solaris_Complex fix
6921  */
6922 tSCC zSolaris_ComplexName[] =
6923      "solaris_complex";
6926  *  File name selection pattern
6927  */
6928 tSCC zSolaris_ComplexList[] =
6929   "complex.h\0";
6931  *  Machine/OS name selection pattern
6932  */
6933 tSCC* apzSolaris_ComplexMachs[] = {
6934         "*-*-solaris2.*",
6935         (const char*)NULL };
6938  *  content selection pattern - do fix if pattern found
6939  */
6940 tSCC zSolaris_ComplexSelect0[] =
6941        "#define[ \t]_Complex_I[ \t]_Complex_I";
6943 #define    SOLARIS_COMPLEX_TEST_CT  1
6944 static tTestDesc aSolaris_ComplexTests[] = {
6945   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6948  *  Fix Command Arguments for Solaris_Complex
6949  */
6950 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6951     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6952     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6953     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6954     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6955     (char*)NULL };
6957 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6959  *  Description of Solaris_Complex_Cxx fix
6960  */
6961 tSCC zSolaris_Complex_CxxName[] =
6962      "solaris_complex_cxx";
6965  *  File name selection pattern
6966  */
6967 tSCC zSolaris_Complex_CxxList[] =
6968   "complex.h\0";
6970  *  Machine/OS name selection pattern
6971  */
6972 tSCC* apzSolaris_Complex_CxxMachs[] = {
6973         "*-*-solaris2.*",
6974         (const char*)NULL };
6975 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
6976 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
6979  *  Fix Command Arguments for Solaris_Complex_Cxx
6980  */
6981 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6982     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6983 #ifdef\t__cplusplus\\\n\
6984 extern \"C\" {\\\n\
6985 #endif",
6986     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6987 #ifdef\t__cplusplus\\\n\
6988 }\\\n\
6989 #endif",
6990     (char*)NULL };
6992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6994  *  Description of Solaris_Cxx_Linkage fix
6995  */
6996 tSCC zSolaris_Cxx_LinkageName[] =
6997      "solaris_cxx_linkage";
7000  *  File name selection pattern
7001  */
7002 tSCC zSolaris_Cxx_LinkageList[] =
7003   "iso/stdlib_iso.h\0";
7005  *  Machine/OS name selection pattern
7006  */
7007 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
7008         "*-*-solaris2*",
7009         (const char*)NULL };
7012  *  content selection pattern - do fix if pattern found
7013  */
7014 tSCC zSolaris_Cxx_LinkageSelect0[] =
7015        "(#if __cplusplus >= 199711L)\n\
7016 (extern \"C\\+\\+\" \\{\n\
7017 )(.*(bsearch|qsort).*)";
7019 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
7020 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
7021   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
7024  *  Fix Command Arguments for Solaris_Cxx_Linkage
7025  */
7026 static const char* apzSolaris_Cxx_LinkagePatch[] = {
7027     "format",
7028     "%1 && !__GNUG__\n\
7029 %2%3",
7030     (char*)NULL };
7032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7034  *  Description of Solaris_Getc_Strict_Stdc fix
7035  */
7036 tSCC zSolaris_Getc_Strict_StdcName[] =
7037      "solaris_getc_strict_stdc";
7040  *  File name selection pattern
7041  */
7042 tSCC zSolaris_Getc_Strict_StdcList[] =
7043   "iso/stdio_iso.h\0";
7045  *  Machine/OS name selection pattern
7046  */
7047 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
7048         "*-*-solaris2*",
7049         (const char*)NULL };
7052  *  content selection pattern - do fix if pattern found
7053  */
7054 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
7055        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
7057 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
7058 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
7059   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
7062  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
7063  */
7064 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
7065     "format",
7066     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
7067     (char*)NULL };
7069 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7071  *  Description of Solaris_Int_Const fix
7072  */
7073 tSCC zSolaris_Int_ConstName[] =
7074      "solaris_int_const";
7077  *  File name selection pattern
7078  */
7079 tSCC zSolaris_Int_ConstList[] =
7080   "sys/int_const.h\0";
7082  *  Machine/OS name selection pattern
7083  */
7084 tSCC* apzSolaris_Int_ConstMachs[] = {
7085         "*-*-solaris2*",
7086         (const char*)NULL };
7089  *  content selection pattern - do fix if pattern found
7090  */
7091 tSCC zSolaris_Int_ConstSelect0[] =
7092        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7093 (/*.**/)\n\
7094 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7096 #define    SOLARIS_INT_CONST_TEST_CT  1
7097 static tTestDesc aSolaris_Int_ConstTests[] = {
7098   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7101  *  Fix Command Arguments for Solaris_Int_Const
7102  */
7103 static const char* apzSolaris_Int_ConstPatch[] = {
7104     "format",
7105     "#define\tUINT8_C(c)\t(c)\n\
7106 %1\n\
7107 #define\tUINT16_C(c)\t(c)",
7108     (char*)NULL };
7110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7112  *  Description of Solaris_Int_Limits_1 fix
7113  */
7114 tSCC zSolaris_Int_Limits_1Name[] =
7115      "solaris_int_limits_1";
7118  *  File name selection pattern
7119  */
7120 tSCC zSolaris_Int_Limits_1List[] =
7121   "sys/int_limits.h\0";
7123  *  Machine/OS name selection pattern
7124  */
7125 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7126         "*-*-solaris2*",
7127         (const char*)NULL };
7130  *  content selection pattern - do fix if pattern found
7131  */
7132 tSCC zSolaris_Int_Limits_1Select0[] =
7133        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7134 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7136 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
7137 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7138   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7141  *  Fix Command Arguments for Solaris_Int_Limits_1
7142  */
7143 static const char* apzSolaris_Int_Limits_1Patch[] = {
7144     "format",
7145     "#define\tUINT8_MAX\t(255)\n\
7146 #define\tUINT16_MAX\t(65535)",
7147     (char*)NULL };
7149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7151  *  Description of Solaris_Int_Limits_2 fix
7152  */
7153 tSCC zSolaris_Int_Limits_2Name[] =
7154      "solaris_int_limits_2";
7157  *  File name selection pattern
7158  */
7159 tSCC zSolaris_Int_Limits_2List[] =
7160   "sys/int_limits.h\0";
7162  *  Machine/OS name selection pattern
7163  */
7164 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7165         "*-*-solaris2*",
7166         (const char*)NULL };
7169  *  content selection pattern - do fix if pattern found
7170  */
7171 tSCC zSolaris_Int_Limits_2Select0[] =
7172        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7174 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
7175 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7176   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7179  *  Fix Command Arguments for Solaris_Int_Limits_2
7180  */
7181 static const char* apzSolaris_Int_Limits_2Patch[] = {
7182     "format",
7183     "#define\t%1_FAST16_%2 %132_%2",
7184     (char*)NULL };
7186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7188  *  Description of Solaris_Int_Limits_3 fix
7189  */
7190 tSCC zSolaris_Int_Limits_3Name[] =
7191      "solaris_int_limits_3";
7194  *  File name selection pattern
7195  */
7196 tSCC zSolaris_Int_Limits_3List[] =
7197   "sys/int_limits.h\0";
7199  *  Machine/OS name selection pattern
7200  */
7201 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7202         "*-*-solaris2*",
7203         (const char*)NULL };
7206  *  content selection pattern - do fix if pattern found
7207  */
7208 tSCC zSolaris_Int_Limits_3Select0[] =
7209        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7211 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
7212 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7213   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7216  *  Fix Command Arguments for Solaris_Int_Limits_3
7217  */
7218 static const char* apzSolaris_Int_Limits_3Patch[] = {
7219     "format",
7220     "#define\tSIZE_MAX\t4294967295U",
7221     (char*)NULL };
7223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7225  *  Description of Solaris_Math_1 fix
7226  */
7227 tSCC zSolaris_Math_1Name[] =
7228      "solaris_math_1";
7231  *  File name selection pattern
7232  */
7233 tSCC zSolaris_Math_1List[] =
7234   "iso/math_c99.h\0";
7236  *  Machine/OS name selection pattern
7237  */
7238 #define apzSolaris_Math_1Machs (const char**)NULL
7241  *  content selection pattern - do fix if pattern found
7242  */
7243 tSCC zSolaris_Math_1Select0[] =
7244        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7247  *  content bypass pattern - skip fix if pattern found
7248  */
7249 tSCC zSolaris_Math_1Bypass0[] =
7250        "__GNUC__";
7252 #define    SOLARIS_MATH_1_TEST_CT  2
7253 static tTestDesc aSolaris_Math_1Tests[] = {
7254   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
7255   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
7258  *  Fix Command Arguments for Solaris_Math_1
7259  */
7260 static const char* apzSolaris_Math_1Patch[] = {
7261     "format",
7262     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
7263     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
7264     (char*)NULL };
7266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7268  *  Description of Solaris_Math_10 fix
7269  */
7270 tSCC zSolaris_Math_10Name[] =
7271      "solaris_math_10";
7274  *  File name selection pattern
7275  */
7276 tSCC zSolaris_Math_10List[] =
7277   "iso/math_c99.h\0";
7279  *  Machine/OS name selection pattern
7280  */
7281 #define apzSolaris_Math_10Machs (const char**)NULL
7284  *  content selection pattern - do fix if pattern found
7285  */
7286 tSCC zSolaris_Math_10Select0[] =
7287        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7289 #define    SOLARIS_MATH_10_TEST_CT  1
7290 static tTestDesc aSolaris_Math_10Tests[] = {
7291   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
7294  *  Fix Command Arguments for Solaris_Math_10
7295  */
7296 static const char* apzSolaris_Math_10Patch[] = {
7297     "format",
7298     "#define\tisinf(x) __builtin_isinf(x)",
7299     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
7300 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7301 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
7302 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
7303     (char*)NULL };
7305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7307  *  Description of Solaris_Math_2 fix
7308  */
7309 tSCC zSolaris_Math_2Name[] =
7310      "solaris_math_2";
7313  *  File name selection pattern
7314  */
7315 tSCC zSolaris_Math_2List[] =
7316   "iso/math_c99.h\0";
7318  *  Machine/OS name selection pattern
7319  */
7320 #define apzSolaris_Math_2Machs (const char**)NULL
7323  *  content selection pattern - do fix if pattern found
7324  */
7325 tSCC zSolaris_Math_2Select0[] =
7326        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7329  *  content bypass pattern - skip fix if pattern found
7330  */
7331 tSCC zSolaris_Math_2Bypass0[] =
7332        "__GNUC__";
7334 #define    SOLARIS_MATH_2_TEST_CT  2
7335 static tTestDesc aSolaris_Math_2Tests[] = {
7336   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
7337   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
7340  *  Fix Command Arguments for Solaris_Math_2
7341  */
7342 static const char* apzSolaris_Math_2Patch[] = {
7343     "format",
7344     "#define\tINFINITY\t(__builtin_inff())",
7345     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
7346     (char*)NULL };
7348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7350  *  Description of Solaris_Math_3 fix
7351  */
7352 tSCC zSolaris_Math_3Name[] =
7353      "solaris_math_3";
7356  *  File name selection pattern
7357  */
7358 tSCC zSolaris_Math_3List[] =
7359   "iso/math_c99.h\0";
7361  *  Machine/OS name selection pattern
7362  */
7363 #define apzSolaris_Math_3Machs (const char**)NULL
7366  *  content selection pattern - do fix if pattern found
7367  */
7368 tSCC zSolaris_Math_3Select0[] =
7369        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7372  *  content bypass pattern - skip fix if pattern found
7373  */
7374 tSCC zSolaris_Math_3Bypass0[] =
7375        "__GNUC__";
7377 #define    SOLARIS_MATH_3_TEST_CT  2
7378 static tTestDesc aSolaris_Math_3Tests[] = {
7379   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
7380   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
7383  *  Fix Command Arguments for Solaris_Math_3
7384  */
7385 static const char* apzSolaris_Math_3Patch[] = {
7386     "format",
7387     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
7388     "^#define[ \t]+NAN[ \t]+__builtin_nan",
7389     (char*)NULL };
7391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7393  *  Description of Solaris_Math_4 fix
7394  */
7395 tSCC zSolaris_Math_4Name[] =
7396      "solaris_math_4";
7399  *  File name selection pattern
7400  */
7401 tSCC zSolaris_Math_4List[] =
7402   "iso/math_c99.h\0";
7404  *  Machine/OS name selection pattern
7405  */
7406 #define apzSolaris_Math_4Machs (const char**)NULL
7409  *  content selection pattern - do fix if pattern found
7410  */
7411 tSCC zSolaris_Math_4Select0[] =
7412        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7415  *  content bypass pattern - skip fix if pattern found
7416  */
7417 tSCC zSolaris_Math_4Bypass0[] =
7418        "__GNUC__";
7420 #define    SOLARIS_MATH_4_TEST_CT  2
7421 static tTestDesc aSolaris_Math_4Tests[] = {
7422   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
7423   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
7426  *  Fix Command Arguments for Solaris_Math_4
7427  */
7428 static const char* apzSolaris_Math_4Patch[] = {
7429     "format",
7430     "#define\tfpclassify(x) \\\n\
7431   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
7432     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
7433     (char*)NULL };
7435 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7437  *  Description of Solaris_Math_8 fix
7438  */
7439 tSCC zSolaris_Math_8Name[] =
7440      "solaris_math_8";
7443  *  File name selection pattern
7444  */
7445 tSCC zSolaris_Math_8List[] =
7446   "iso/math_c99.h\0";
7448  *  Machine/OS name selection pattern
7449  */
7450 #define apzSolaris_Math_8Machs (const char**)NULL
7453  *  content selection pattern - do fix if pattern found
7454  */
7455 tSCC zSolaris_Math_8Select0[] =
7456        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
7459  *  content bypass pattern - skip fix if pattern found
7460  */
7461 tSCC zSolaris_Math_8Bypass0[] =
7462        "__GNUC__";
7464 #define    SOLARIS_MATH_8_TEST_CT  2
7465 static tTestDesc aSolaris_Math_8Tests[] = {
7466   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
7467   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
7470  *  Fix Command Arguments for Solaris_Math_8
7471  */
7472 static const char* apzSolaris_Math_8Patch[] = {
7473     "format",
7474     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7475 \t\t\t   ? __builtin_signbitf(x) \\\n\
7476 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
7477 \t\t\t     ? __builtin_signbitl(x) \\\n\
7478 \t\t\t     : __builtin_signbit(x))",
7479     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
7480     (char*)NULL };
7482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7484  *  Description of Solaris_Math_9 fix
7485  */
7486 tSCC zSolaris_Math_9Name[] =
7487      "solaris_math_9";
7490  *  File name selection pattern
7491  */
7492 tSCC zSolaris_Math_9List[] =
7493   "iso/math_c99.h\0";
7495  *  Machine/OS name selection pattern
7496  */
7497 #define apzSolaris_Math_9Machs (const char**)NULL
7500  *  content selection pattern - do fix if pattern found
7501  */
7502 tSCC zSolaris_Math_9Select0[] =
7503        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7506  *  content bypass pattern - skip fix if pattern found
7507  */
7508 tSCC zSolaris_Math_9Bypass0[] =
7509        "__GNUC__";
7511 #define    SOLARIS_MATH_9_TEST_CT  2
7512 static tTestDesc aSolaris_Math_9Tests[] = {
7513   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
7514   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
7517  *  Fix Command Arguments for Solaris_Math_9
7518  */
7519 static const char* apzSolaris_Math_9Patch[] = {
7520     "format",
7521     "#define\t%1(x, y)%2__builtin_%1(x, y)",
7522     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
7523     (char*)NULL };
7525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7527  *  Description of Solaris_Math_11 fix
7528  */
7529 tSCC zSolaris_Math_11Name[] =
7530      "solaris_math_11";
7533  *  File name selection pattern
7534  */
7535 tSCC zSolaris_Math_11List[] =
7536   "iso/math_c99.h\0";
7538  *  Machine/OS name selection pattern
7539  */
7540 #define apzSolaris_Math_11Machs (const char**)NULL
7543  *  content selection pattern - do fix if pattern found
7544  */
7545 tSCC zSolaris_Math_11Select0[] =
7546        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
7548 #define    SOLARIS_MATH_11_TEST_CT  1
7549 static tTestDesc aSolaris_Math_11Tests[] = {
7550   { TT_EGREP,    zSolaris_Math_11Select0, (regex_t*)NULL }, };
7553  *  Fix Command Arguments for Solaris_Math_11
7554  */
7555 static const char* apzSolaris_Math_11Patch[] = {
7556     "format",
7557     "#undef\tsignbit\n\
7558 #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7559 \t\t\t   ? __builtin_signbitf(x) \\\n\
7560 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
7561 \t\t\t     ? __builtin_signbitl(x) \\\n\
7562 \t\t\t     : __builtin_signbit(x))",
7563     "^#undef[ \t]+signbit\n\
7564 #if defined\\(__sparc\\)\n\
7565 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7566 [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7567 [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
7568 #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
7569 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7570 [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
7571 [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
7572 [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
7573 [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
7574 [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
7575 [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
7576 #endif",
7577     (char*)NULL };
7579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7581  *  Description of Solaris_Math_12 fix
7582  */
7583 tSCC zSolaris_Math_12Name[] =
7584      "solaris_math_12";
7587  *  File name selection pattern
7588  */
7589 tSCC zSolaris_Math_12List[] =
7590   "math.h\0";
7592  *  Machine/OS name selection pattern
7593  */
7594 tSCC* apzSolaris_Math_12Machs[] = {
7595         "*-*-solaris2*",
7596         (const char*)NULL };
7599  *  content selection pattern - do fix if pattern found
7600  */
7601 tSCC zSolaris_Math_12Select0[] =
7602        "#undef.*_GLIBCXX_USE_C99_MATH";
7604 #define    SOLARIS_MATH_12_TEST_CT  1
7605 static tTestDesc aSolaris_Math_12Tests[] = {
7606   { TT_EGREP,    zSolaris_Math_12Select0, (regex_t*)NULL }, };
7609  *  Fix Command Arguments for Solaris_Math_12
7610  */
7611 static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
7612     "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
7613     (char*)NULL };
7615 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7617  *  Description of Solaris_Once_Init_1 fix
7618  */
7619 tSCC zSolaris_Once_Init_1Name[] =
7620      "solaris_once_init_1";
7623  *  File name selection pattern
7624  */
7625 tSCC zSolaris_Once_Init_1List[] =
7626   "pthread.h\0";
7628  *  Machine/OS name selection pattern
7629  */
7630 tSCC* apzSolaris_Once_Init_1Machs[] = {
7631         "*-*-solaris*",
7632         (const char*)NULL };
7635  *  content selection pattern - do fix if pattern found
7636  */
7637 tSCC zSolaris_Once_Init_1Select0[] =
7638        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7640 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
7641 static tTestDesc aSolaris_Once_Init_1Tests[] = {
7642   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
7645  *  Fix Command Arguments for Solaris_Once_Init_1
7646  */
7647 static const char* apzSolaris_Once_Init_1Patch[] = {
7648     "format",
7649     "%1{%2}%3",
7650     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
7651     (char*)NULL };
7653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7655  *  Description of Solaris_Posix_Spawn_Restrict fix
7656  */
7657 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7658      "solaris_posix_spawn_restrict";
7661  *  File name selection pattern
7662  */
7663 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7664   "spawn.h\0";
7666  *  Machine/OS name selection pattern
7667  */
7668 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7669         "*-*-solaris2*",
7670         (const char*)NULL };
7673  *  content selection pattern - do fix if pattern found
7674  */
7675 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7676        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7678 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
7679 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7680   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7683  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7684  */
7685 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7686     "format",
7687     "%1*_RESTRICT_KYWD %2%3",
7688     (char*)NULL };
7690 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7692  *  Description of Solaris_Pow_Int_Overload fix
7693  */
7694 tSCC zSolaris_Pow_Int_OverloadName[] =
7695      "solaris_pow_int_overload";
7698  *  File name selection pattern
7699  */
7700 tSCC zSolaris_Pow_Int_OverloadList[] =
7701   "iso/math_iso.h\0";
7703  *  Machine/OS name selection pattern
7704  */
7705 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
7706         "*-*-solaris2*",
7707         (const char*)NULL };
7710  *  content selection pattern - do fix if pattern found
7711  */
7712 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
7713        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
7714 [^{}]*\\}";
7716 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
7717 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
7718   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
7721  *  Fix Command Arguments for Solaris_Pow_Int_Overload
7722  */
7723 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
7724     "format",
7725     "#if __cplusplus < 201103L\n\
7726 %0\n\
7727 #endif",
7728     (char*)NULL };
7730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7732  *  Description of Solaris_Rwlock_Init_1 fix
7733  */
7734 tSCC zSolaris_Rwlock_Init_1Name[] =
7735      "solaris_rwlock_init_1";
7738  *  File name selection pattern
7739  */
7740 tSCC zSolaris_Rwlock_Init_1List[] =
7741   "pthread.h\0";
7743  *  Machine/OS name selection pattern
7744  */
7745 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
7746         "*-*-solaris*",
7747         (const char*)NULL };
7750  *  content selection pattern - do fix if pattern found
7751  */
7752 tSCC zSolaris_Rwlock_Init_1Select0[] =
7753        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7755 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
7756 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
7757   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
7760  *  Fix Command Arguments for Solaris_Rwlock_Init_1
7761  */
7762 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
7763     "format",
7764     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7765 %0\n\
7766 #else\n\
7767 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
7768 #endif",
7769     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
7770     (char*)NULL };
7772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7774  *  Description of Solaris_Std___Filbuf fix
7775  */
7776 tSCC zSolaris_Std___FilbufName[] =
7777      "solaris_std___filbuf";
7780  *  File name selection pattern
7781  */
7782 tSCC zSolaris_Std___FilbufList[] =
7783   "stdio.h\0";
7785  *  Machine/OS name selection pattern
7786  */
7787 tSCC* apzSolaris_Std___FilbufMachs[] = {
7788         "*-*-solaris2*",
7789         (const char*)NULL };
7792  *  content selection pattern - do fix if pattern found
7793  */
7794 tSCC zSolaris_Std___FilbufSelect0[] =
7795        "(using std::perror;\n\
7796 )(#endif)";
7799  *  content bypass pattern - skip fix if pattern found
7800  */
7801 tSCC zSolaris_Std___FilbufBypass0[] =
7802        "using std::__filbuf";
7804 #define    SOLARIS_STD___FILBUF_TEST_CT  2
7805 static tTestDesc aSolaris_Std___FilbufTests[] = {
7806   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7807   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7810  *  Fix Command Arguments for Solaris_Std___Filbuf
7811  */
7812 static const char* apzSolaris_Std___FilbufPatch[] = {
7813     "format",
7814     "%1#ifndef _LP64\n\
7815 using std::__filbuf;\n\
7816 using std::__flsbuf;\n\
7817 #endif\n\
7818 %2",
7819     (char*)NULL };
7821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7823  *  Description of Solaris_Stdio_Tag fix
7824  */
7825 tSCC zSolaris_Stdio_TagName[] =
7826      "solaris_stdio_tag";
7829  *  File name selection pattern
7830  */
7831 tSCC zSolaris_Stdio_TagList[] =
7832   "stdio_tag.h\0";
7834  *  Machine/OS name selection pattern
7835  */
7836 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7839  *  content selection pattern - do fix if pattern found
7840  */
7841 tSCC zSolaris_Stdio_TagSelect0[] =
7842        "__cplusplus < 54321L";
7845  *  content bypass pattern - skip fix if pattern found
7846  */
7847 tSCC zSolaris_Stdio_TagBypass0[] =
7848        "__GNUC__";
7850 #define    SOLARIS_STDIO_TAG_TEST_CT  2
7851 static tTestDesc aSolaris_Stdio_TagTests[] = {
7852   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7853   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7856  *  Fix Command Arguments for Solaris_Stdio_Tag
7857  */
7858 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7859     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7860     (char*)NULL };
7862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7864  *  Description of Statsswtch fix
7865  */
7866 tSCC zStatsswtchName[] =
7867      "statsswtch";
7870  *  File name selection pattern
7871  */
7872 tSCC zStatsswtchList[] =
7873   "rpcsvc/rstat.h\0";
7875  *  Machine/OS name selection pattern
7876  */
7877 #define apzStatsswtchMachs (const char**)NULL
7880  *  content selection pattern - do fix if pattern found
7881  */
7882 tSCC zStatsswtchSelect0[] =
7883        "boottime$";
7885 #define    STATSSWTCH_TEST_CT  1
7886 static tTestDesc aStatsswtchTests[] = {
7887   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
7890  *  Fix Command Arguments for Statsswtch
7891  */
7892 static const char* apzStatsswtchPatch[] = {
7893     "format",
7894     "boottime;",
7895     (char*)NULL };
7897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7899  *  Description of Stdio_Stdarg_H fix
7900  */
7901 tSCC zStdio_Stdarg_HName[] =
7902      "stdio_stdarg_h";
7905  *  File name selection pattern
7906  */
7907 tSCC zStdio_Stdarg_HList[] =
7908   "stdio.h\0";
7910  *  Machine/OS name selection pattern
7911  */
7912 tSCC* apzStdio_Stdarg_HMachs[] = {
7913         "*-*-solaris2.1[0-9]*",
7914         (const char*)NULL };
7917  *  content bypass pattern - skip fix if pattern found
7918  */
7919 tSCC zStdio_Stdarg_HBypass0[] =
7920        "include.*(stdarg.h|machine/ansi.h)";
7922 #define    STDIO_STDARG_H_TEST_CT  1
7923 static tTestDesc aStdio_Stdarg_HTests[] = {
7924   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7927  *  Fix Command Arguments for Stdio_Stdarg_H
7928  */
7929 static const char* apzStdio_Stdarg_HPatch[] = {
7930     "wrap",
7931     "#define __need___va_list\n\
7932 #include <stdarg.h>\n",
7933     (char*)NULL };
7935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7937  *  Description of Stdio_Va_List fix
7938  */
7939 tSCC zStdio_Va_ListName[] =
7940      "stdio_va_list";
7943  *  File name selection pattern
7944  */
7945 tSCC zStdio_Va_ListList[] =
7946   "stdio.h\0";
7948  *  Machine/OS name selection pattern
7949  */
7950 tSCC* apzStdio_Va_ListMachs[] = {
7951         "*-*-solaris2.1[0-9]*",
7952         (const char*)NULL };
7955  *  content bypass pattern - skip fix if pattern found
7956  */
7957 tSCC zStdio_Va_ListBypass0[] =
7958        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7960 #define    STDIO_VA_LIST_TEST_CT  1
7961 static tTestDesc aStdio_Va_ListTests[] = {
7962   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7965  *  Fix Command Arguments for Stdio_Va_List
7966  */
7967 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7968     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7969 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7970 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7971 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7972 s@ va_list@ __not_va_list__@\n\
7973 s@\\*va_list@*__not_va_list__@\n\
7974 s@ __va_list)@ __gnuc_va_list)@\n\
7975 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7976 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7977 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7978 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7979 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7980 s@VA_LIST@DUMMY_VA_LIST@\n\
7981 s@_Va_LIST@_VA_LIST@",
7982     (char*)NULL };
7984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7986  *  Description of Stdio_Va_List_Clients fix
7987  */
7988 tSCC zStdio_Va_List_ClientsName[] =
7989      "stdio_va_list_clients";
7992  *  File name selection pattern
7993  */
7994 tSCC zStdio_Va_List_ClientsList[] =
7995   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7997  *  Machine/OS name selection pattern
7998  */
7999 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
8002  *  content bypass pattern - skip fix if pattern found
8003  */
8004 tSCC zStdio_Va_List_ClientsBypass0[] =
8005        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8006 tSCC zStdio_Va_List_ClientsBypass1[] =
8007        "include <stdarg\\.h>|#ifdef va_start";
8009 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
8010 static tTestDesc aStdio_Va_List_ClientsTests[] = {
8011   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
8012   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
8015  *  Fix Command Arguments for Stdio_Va_List_Clients
8016  */
8017 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
8018     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8019 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8020 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8021 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8022 s@ va_list@ __not_va_list__@\n\
8023 s@\\*va_list@*__not_va_list__@\n\
8024 s@ __va_list)@ __gnuc_va_list)@\n\
8025 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8026 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8027 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8028 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8029 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8030 s@VA_LIST@DUMMY_VA_LIST@\n\
8031 s@_Va_LIST@_VA_LIST@",
8032     (char*)NULL };
8034 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8036  *  Description of Strict_Ansi_Not fix
8037  */
8038 tSCC zStrict_Ansi_NotName[] =
8039      "strict_ansi_not";
8042  *  File name selection pattern
8043  */
8044 #define zStrict_Ansi_NotList (char*)NULL
8046  *  Machine/OS name selection pattern
8047  */
8048 #define apzStrict_Ansi_NotMachs (const char**)NULL
8051  *  content selection pattern - do fix if pattern found
8052  */
8053 tSCC zStrict_Ansi_NotSelect0[] =
8054        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
8057  *  content bypass pattern - skip fix if pattern found
8058  */
8059 tSCC zStrict_Ansi_NotBypass0[] =
8060        "GNU and MIPS C compilers define __STDC__ differently";
8061 tSCC zStrict_Ansi_NotBypass1[] =
8062        "__SCO_VERSION__.*__STDC__ != 1";
8065  *  perform the C function call test
8066  */
8067 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
8069 #define    STRICT_ANSI_NOT_TEST_CT  4
8070 static tTestDesc aStrict_Ansi_NotTests[] = {
8071   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
8072   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
8073   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
8074   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
8077  *  Fix Command Arguments for Strict_Ansi_Not
8078  */
8079 static const char* apzStrict_Ansi_NotPatch[] = {
8080     "format",
8081     "%1 !defined(__STRICT_ANSI__)",
8082     (char*)NULL };
8084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8086  *  Description of Strict_Ansi_Not_Ctd fix
8087  */
8088 tSCC zStrict_Ansi_Not_CtdName[] =
8089      "strict_ansi_not_ctd";
8092  *  File name selection pattern
8093  */
8094 tSCC zStrict_Ansi_Not_CtdList[] =
8095   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
8097  *  Machine/OS name selection pattern
8098  */
8099 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
8102  *  content selection pattern - do fix if pattern found
8103  */
8104 tSCC zStrict_Ansi_Not_CtdSelect0[] =
8105        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
8108  *  perform the C function call test
8109  */
8110 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
8112 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
8113 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
8114   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
8115   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
8118  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
8119  */
8120 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
8121     "format",
8122     "%1 !defined(__STRICT_ANSI__)",
8123     (char*)NULL };
8125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8127  *  Description of Strict_Ansi_Only fix
8128  */
8129 tSCC zStrict_Ansi_OnlyName[] =
8130      "strict_ansi_only";
8133  *  File name selection pattern
8134  */
8135 #define zStrict_Ansi_OnlyList (char*)NULL
8137  *  Machine/OS name selection pattern
8138  */
8139 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
8142  *  content selection pattern - do fix if pattern found
8143  */
8144 tSCC zStrict_Ansi_OnlySelect0[] =
8145        "^([ \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)";
8148  *  perform the C function call test
8149  */
8150 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
8152 #define    STRICT_ANSI_ONLY_TEST_CT  2
8153 static tTestDesc aStrict_Ansi_OnlyTests[] = {
8154   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
8155   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
8158  *  Fix Command Arguments for Strict_Ansi_Only
8159  */
8160 static const char* apzStrict_Ansi_OnlyPatch[] = {
8161     "format",
8162     "%1 defined(__STRICT_ANSI__)",
8163     (char*)NULL };
8165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8167  *  Description of Struct_File fix
8168  */
8169 tSCC zStruct_FileName[] =
8170      "struct_file";
8173  *  File name selection pattern
8174  */
8175 tSCC zStruct_FileList[] =
8176   "rpc/xdr.h\0";
8178  *  Machine/OS name selection pattern
8179  */
8180 #define apzStruct_FileMachs (const char**)NULL
8183  *  content selection pattern - do fix if pattern found
8184  */
8185 tSCC zStruct_FileSelect0[] =
8186        "^.*xdrstdio_create.*struct __file_s";
8188 #define    STRUCT_FILE_TEST_CT  1
8189 static tTestDesc aStruct_FileTests[] = {
8190   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
8193  *  Fix Command Arguments for Struct_File
8194  */
8195 static const char* apzStruct_FilePatch[] = {
8196     "format",
8197     "struct __file_s;\n\
8198 %0",
8199     (char*)NULL };
8201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8203  *  Description of Struct_Sockaddr fix
8204  */
8205 tSCC zStruct_SockaddrName[] =
8206      "struct_sockaddr";
8209  *  File name selection pattern
8210  */
8211 tSCC zStruct_SockaddrList[] =
8212   "rpc/auth.h\0";
8214  *  Machine/OS name selection pattern
8215  */
8216 #define apzStruct_SockaddrMachs (const char**)NULL
8219  *  content selection pattern - do fix if pattern found
8220  */
8221 tSCC zStruct_SockaddrSelect0[] =
8222        "^.*authdes_create.*struct sockaddr[^_]";
8225  *  content bypass pattern - skip fix if pattern found
8226  */
8227 tSCC zStruct_SockaddrBypass0[] =
8228        "<sys/socket.h>";
8229 tSCC zStruct_SockaddrBypass1[] =
8230        "struct sockaddr;\n";
8232 #define    STRUCT_SOCKADDR_TEST_CT  3
8233 static tTestDesc aStruct_SockaddrTests[] = {
8234   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
8235   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
8236   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
8239  *  Fix Command Arguments for Struct_Sockaddr
8240  */
8241 static const char* apzStruct_SockaddrPatch[] = {
8242     "format",
8243     "struct sockaddr;\n\
8244 %0",
8245     (char*)NULL };
8247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8249  *  Description of Sun_Auth_Proto fix
8250  */
8251 tSCC zSun_Auth_ProtoName[] =
8252      "sun_auth_proto";
8255  *  File name selection pattern
8256  */
8257 tSCC zSun_Auth_ProtoList[] =
8258   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
8260  *  Machine/OS name selection pattern
8261  */
8262 #define apzSun_Auth_ProtoMachs (const char**)NULL
8265  *  content selection pattern - do fix if pattern found
8266  */
8267 tSCC zSun_Auth_ProtoSelect0[] =
8268        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
8271  *  content bypass pattern - skip fix if pattern found
8272  */
8273 tSCC zSun_Auth_ProtoBypass0[] =
8274        "__cplusplus";
8276 #define    SUN_AUTH_PROTO_TEST_CT  2
8277 static tTestDesc aSun_Auth_ProtoTests[] = {
8278   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
8279   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
8282  *  Fix Command Arguments for Sun_Auth_Proto
8283  */
8284 static const char* apzSun_Auth_ProtoPatch[] = {
8285     "format",
8286     "#ifdef __cplusplus\n\
8287 %1(...);%2\n\
8288 #else\n\
8289 %1();%2\n\
8290 #endif",
8291     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
8292     (char*)NULL };
8294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8296  *  Description of Sun_Bogus_Ifdef fix
8297  */
8298 tSCC zSun_Bogus_IfdefName[] =
8299      "sun_bogus_ifdef";
8302  *  File name selection pattern
8303  */
8304 tSCC zSun_Bogus_IfdefList[] =
8305   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
8307  *  Machine/OS name selection pattern
8308  */
8309 #define apzSun_Bogus_IfdefMachs (const char**)NULL
8312  *  content selection pattern - do fix if pattern found
8313  */
8314 tSCC zSun_Bogus_IfdefSelect0[] =
8315        "#ifdef(.*\\|\\|.*)";
8317 #define    SUN_BOGUS_IFDEF_TEST_CT  1
8318 static tTestDesc aSun_Bogus_IfdefTests[] = {
8319   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
8322  *  Fix Command Arguments for Sun_Bogus_Ifdef
8323  */
8324 static const char* apzSun_Bogus_IfdefPatch[] = {
8325     "format",
8326     "#if%1",
8327     (char*)NULL };
8329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8331  *  Description of Sun_Catmacro fix
8332  */
8333 tSCC zSun_CatmacroName[] =
8334      "sun_catmacro";
8337  *  File name selection pattern
8338  */
8339 tSCC zSun_CatmacroList[] =
8340   "pixrect/memvar.h\0";
8342  *  Machine/OS name selection pattern
8343  */
8344 #define apzSun_CatmacroMachs (const char**)NULL
8347  *  content selection pattern - do fix if pattern found
8348  */
8349 tSCC zSun_CatmacroSelect0[] =
8350        "^#define[ \t]+CAT\\(a,b\\).*";
8352 #define    SUN_CATMACRO_TEST_CT  1
8353 static tTestDesc aSun_CatmacroTests[] = {
8354   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
8357  *  Fix Command Arguments for Sun_Catmacro
8358  */
8359 static const char* apzSun_CatmacroPatch[] = {
8360     "format",
8361     "#ifdef __STDC__\n\
8362 #  define CAT(a,b) a##b\n\
8363 #else\n\
8364 %0\n\
8365 #endif",
8366     (char*)NULL };
8368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8370  *  Description of Sun_Malloc fix
8371  */
8372 tSCC zSun_MallocName[] =
8373      "sun_malloc";
8376  *  File name selection pattern
8377  */
8378 tSCC zSun_MallocList[] =
8379   "malloc.h\0";
8381  *  Machine/OS name selection pattern
8382  */
8383 #define apzSun_MallocMachs (const char**)NULL
8386  *  content bypass pattern - skip fix if pattern found
8387  */
8388 tSCC zSun_MallocBypass0[] =
8389        "_CLASSIC_ANSI_TYPES";
8391 #define    SUN_MALLOC_TEST_CT  1
8392 static tTestDesc aSun_MallocTests[] = {
8393   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
8396  *  Fix Command Arguments for Sun_Malloc
8397  */
8398 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
8399     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
8400     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
8401     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
8402     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
8403     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
8404     (char*)NULL };
8406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8408  *  Description of Sun_Rusers_Semi fix
8409  */
8410 tSCC zSun_Rusers_SemiName[] =
8411      "sun_rusers_semi";
8414  *  File name selection pattern
8415  */
8416 tSCC zSun_Rusers_SemiList[] =
8417   "rpcsvc/rusers.h\0";
8419  *  Machine/OS name selection pattern
8420  */
8421 #define apzSun_Rusers_SemiMachs (const char**)NULL
8424  *  content selection pattern - do fix if pattern found
8425  */
8426 tSCC zSun_Rusers_SemiSelect0[] =
8427        "_cnt$";
8429 #define    SUN_RUSERS_SEMI_TEST_CT  1
8430 static tTestDesc aSun_Rusers_SemiTests[] = {
8431   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
8434  *  Fix Command Arguments for Sun_Rusers_Semi
8435  */
8436 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
8437     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
8438     (char*)NULL };
8440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8442  *  Description of Sun_Signal fix
8443  */
8444 tSCC zSun_SignalName[] =
8445      "sun_signal";
8448  *  File name selection pattern
8449  */
8450 tSCC zSun_SignalList[] =
8451   "sys/signal.h\0signal.h\0";
8453  *  Machine/OS name selection pattern
8454  */
8455 #define apzSun_SignalMachs (const char**)NULL
8458  *  content selection pattern - do fix if pattern found
8459  */
8460 tSCC zSun_SignalSelect0[] =
8461        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
8463 #define    SUN_SIGNAL_TEST_CT  1
8464 static tTestDesc aSun_SignalTests[] = {
8465   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
8468  *  Fix Command Arguments for Sun_Signal
8469  */
8470 static const char* apzSun_SignalPatch[] = {
8471     "format",
8472     "#ifdef __cplusplus\n\
8473 void\t(*signal(...))(...);\n\
8474 #else\n\
8475 %0\n\
8476 #endif",
8477     (char*)NULL };
8479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8481  *  Description of Sunos_Strlen fix
8482  */
8483 tSCC zSunos_StrlenName[] =
8484      "sunos_strlen";
8487  *  File name selection pattern
8488  */
8489 tSCC zSunos_StrlenList[] =
8490   "strings.h\0";
8492  *  Machine/OS name selection pattern
8493  */
8494 #define apzSunos_StrlenMachs (const char**)NULL
8497  *  content selection pattern - do fix if pattern found
8498  */
8499 tSCC zSunos_StrlenSelect0[] =
8500        "int[ \t]*strlen\\(\\);(.*)";
8502 #define    SUNOS_STRLEN_TEST_CT  1
8503 static tTestDesc aSunos_StrlenTests[] = {
8504   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
8507  *  Fix Command Arguments for Sunos_Strlen
8508  */
8509 static const char* apzSunos_StrlenPatch[] = {
8510     "format",
8511     "__SIZE_TYPE__ strlen();%1",
8512     (char*)NULL };
8514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8516  *  Description of Suse_Linux_Vt_Cxx fix
8517  */
8518 tSCC zSuse_Linux_Vt_CxxName[] =
8519      "suse_linux_vt_cxx";
8522  *  File name selection pattern
8523  */
8524 tSCC zSuse_Linux_Vt_CxxList[] =
8525   "linux/vt.h\0";
8527  *  Machine/OS name selection pattern
8528  */
8529 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
8532  *  content selection pattern - do fix if pattern found
8533  */
8534 tSCC zSuse_Linux_Vt_CxxSelect0[] =
8535        "^[ \t]*unsigned int new;";
8537 #define    SUSE_LINUX_VT_CXX_TEST_CT  1
8538 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
8539   { TT_EGREP,    zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
8542  *  Fix Command Arguments for Suse_Linux_Vt_Cxx
8543  */
8544 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
8545     "format",
8546     "unsigned int newev;",
8547     (char*)NULL };
8549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8551  *  Description of Svr4_Disable_Opt fix
8552  */
8553 tSCC zSvr4_Disable_OptName[] =
8554      "svr4_disable_opt";
8557  *  File name selection pattern
8558  */
8559 tSCC zSvr4_Disable_OptList[] =
8560   "string.h\0";
8562  *  Machine/OS name selection pattern
8563  */
8564 #define apzSvr4_Disable_OptMachs (const char**)NULL
8567  *  content selection pattern - do fix if pattern found
8568  */
8569 tSCC zSvr4_Disable_OptSelect0[] =
8570        "#define.*__std_hdr_";
8572 #define    SVR4_DISABLE_OPT_TEST_CT  1
8573 static tTestDesc aSvr4_Disable_OptTests[] = {
8574   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
8577  *  Fix Command Arguments for Svr4_Disable_Opt
8578  */
8579 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
8580     "-e", "/#define.*__std_hdr_/d",
8581     (char*)NULL };
8583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8585  *  Description of Svr4_Getcwd fix
8586  */
8587 tSCC zSvr4_GetcwdName[] =
8588      "svr4_getcwd";
8591  *  File name selection pattern
8592  */
8593 tSCC zSvr4_GetcwdList[] =
8594   "stdlib.h\0unistd.h\0prototypes.h\0";
8596  *  Machine/OS name selection pattern
8597  */
8598 #define apzSvr4_GetcwdMachs (const char**)NULL
8601  *  content selection pattern - do fix if pattern found
8602  */
8603 tSCC zSvr4_GetcwdSelect0[] =
8604        "getcwd\\(char \\*, int\\)";
8606 #define    SVR4_GETCWD_TEST_CT  1
8607 static tTestDesc aSvr4_GetcwdTests[] = {
8608   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
8611  *  Fix Command Arguments for Svr4_Getcwd
8612  */
8613 static const char* apzSvr4_GetcwdPatch[] = {
8614     "format",
8615     "getcwd(char *, size_t)",
8616     (char*)NULL };
8618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8620  *  Description of Svr4_Profil fix
8621  */
8622 tSCC zSvr4_ProfilName[] =
8623      "svr4_profil";
8626  *  File name selection pattern
8627  */
8628 tSCC zSvr4_ProfilList[] =
8629   "stdlib.h\0unistd.h\0";
8631  *  Machine/OS name selection pattern
8632  */
8633 #define apzSvr4_ProfilMachs (const char**)NULL
8636  *  content selection pattern - do fix if pattern found
8637  */
8638 tSCC zSvr4_ProfilSelect0[] =
8639        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
8641 #define    SVR4_PROFIL_TEST_CT  1
8642 static tTestDesc aSvr4_ProfilTests[] = {
8643   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
8646  *  Fix Command Arguments for Svr4_Profil
8647  */
8648 static const char* apzSvr4_ProfilPatch[] = {
8649     "format",
8650     "profil(unsigned short *, size_t, int, unsigned int)",
8651     (char*)NULL };
8653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8655  *  Description of Svr4_Sighandler_Type fix
8656  */
8657 tSCC zSvr4_Sighandler_TypeName[] =
8658      "svr4_sighandler_type";
8661  *  File name selection pattern
8662  */
8663 tSCC zSvr4_Sighandler_TypeList[] =
8664   "sys/signal.h\0";
8666  *  Machine/OS name selection pattern
8667  */
8668 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
8671  *  content selection pattern - do fix if pattern found
8672  */
8673 tSCC zSvr4_Sighandler_TypeSelect0[] =
8674        "void *\\(\\*\\)\\(\\)";
8676 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
8677 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8678   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8681  *  Fix Command Arguments for Svr4_Sighandler_Type
8682  */
8683 static const char* apzSvr4_Sighandler_TypePatch[] = {
8684     "format",
8685     "void (*)(int)",
8686     (char*)NULL };
8688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8690  *  Description of Svr4_Undeclared_Getrnge fix
8691  */
8692 tSCC zSvr4_Undeclared_GetrngeName[] =
8693      "svr4_undeclared_getrnge";
8696  *  File name selection pattern
8697  */
8698 tSCC zSvr4_Undeclared_GetrngeList[] =
8699   "regexp.h\0";
8701  *  Machine/OS name selection pattern
8702  */
8703 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8706  *  content selection pattern - do fix if pattern found
8707  */
8708 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8709        "getrnge";
8712  *  content bypass pattern - skip fix if pattern found
8713  */
8714 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8715        "static void getrnge";
8717 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
8718 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8719   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8720   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8723  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
8724  */
8725 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8726     "format",
8727     "%0\n\
8728 static int getrnge ();",
8729     "^static int[ \t]+size;",
8730     (char*)NULL };
8732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8734  *  Description of Sysv68_String fix
8735  */
8736 tSCC zSysv68_StringName[] =
8737      "sysv68_string";
8740  *  File name selection pattern
8741  */
8742 tSCC zSysv68_StringList[] =
8743   "testing.h\0string.h\0";
8745  *  Machine/OS name selection pattern
8746  */
8747 #define apzSysv68_StringMachs (const char**)NULL
8750  *  content bypass pattern - skip fix if pattern found
8751  */
8752 tSCC zSysv68_StringBypass0[] =
8753        "_CLASSIC_ANSI_TYPES";
8755 #define    SYSV68_STRING_TEST_CT  1
8756 static tTestDesc aSysv68_StringTests[] = {
8757   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
8760  *  Fix Command Arguments for Sysv68_String
8761  */
8762 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8763     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8764     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8765     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8766     "-e", "/^extern char$/N",
8767     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8768     "-e", "/^extern int$/N",
8769     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8770     "-e", "/^\tstrncmp(),$/N",
8771     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8772 extern unsigned int\\\n\
8773 \\2/",
8774     (char*)NULL };
8776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8778  *  Description of Sysz_Stdlib_For_Sun fix
8779  */
8780 tSCC zSysz_Stdlib_For_SunName[] =
8781      "sysz_stdlib_for_sun";
8784  *  File name selection pattern
8785  */
8786 tSCC zSysz_Stdlib_For_SunList[] =
8787   "stdlib.h\0";
8789  *  Machine/OS name selection pattern
8790  */
8791 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8794  *  content selection pattern - do fix if pattern found
8795  */
8796 tSCC zSysz_Stdlib_For_SunSelect0[] =
8797        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8800  *  content bypass pattern - skip fix if pattern found
8801  */
8802 tSCC zSysz_Stdlib_For_SunBypass0[] =
8803        "_CLASSIC_ANSI_TYPES";
8805 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
8806 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8807   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8808   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8811  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
8812  */
8813 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8814     "format",
8815     "void *\t%1(",
8816     (char*)NULL };
8818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8820  *  Description of Thread_Keyword fix
8821  */
8822 tSCC zThread_KeywordName[] =
8823      "thread_keyword";
8826  *  File name selection pattern
8827  */
8828 tSCC zThread_KeywordList[] =
8829   "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
8831  *  Machine/OS name selection pattern
8832  */
8833 #define apzThread_KeywordMachs (const char**)NULL
8836  *  content selection pattern - do fix if pattern found
8837  */
8838 tSCC zThread_KeywordSelect0[] =
8839        "([* ])__thread([,)])";
8841 #define    THREAD_KEYWORD_TEST_CT  1
8842 static tTestDesc aThread_KeywordTests[] = {
8843   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
8846  *  Fix Command Arguments for Thread_Keyword
8847  */
8848 static const char* apzThread_KeywordPatch[] = {
8849     "format",
8850     "%1__thr%2",
8851     (char*)NULL };
8853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8855  *  Description of Tinfo_Cplusplus fix
8856  */
8857 tSCC zTinfo_CplusplusName[] =
8858      "tinfo_cplusplus";
8861  *  File name selection pattern
8862  */
8863 tSCC zTinfo_CplusplusList[] =
8864   "tinfo.h\0";
8866  *  Machine/OS name selection pattern
8867  */
8868 #define apzTinfo_CplusplusMachs (const char**)NULL
8871  *  content selection pattern - do fix if pattern found
8872  */
8873 tSCC zTinfo_CplusplusSelect0[] =
8874        "[ \t]_cplusplus";
8876 #define    TINFO_CPLUSPLUS_TEST_CT  1
8877 static tTestDesc aTinfo_CplusplusTests[] = {
8878   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8881  *  Fix Command Arguments for Tinfo_Cplusplus
8882  */
8883 static const char* apzTinfo_CplusplusPatch[] = {
8884     "format",
8885     " __cplusplus",
8886     (char*)NULL };
8888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8890  *  Description of Ultrix_Const fix
8891  */
8892 tSCC zUltrix_ConstName[] =
8893      "ultrix_const";
8896  *  File name selection pattern
8897  */
8898 tSCC zUltrix_ConstList[] =
8899   "stdio.h\0";
8901  *  Machine/OS name selection pattern
8902  */
8903 #define apzUltrix_ConstMachs (const char**)NULL
8906  *  content selection pattern - do fix if pattern found
8907  */
8908 tSCC zUltrix_ConstSelect0[] =
8909        "perror\\( char \\*";
8911 #define    ULTRIX_CONST_TEST_CT  1
8912 static tTestDesc aUltrix_ConstTests[] = {
8913   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
8916  *  Fix Command Arguments for Ultrix_Const
8917  */
8918 static const char* apzUltrix_ConstPatch[] = {
8919     "format",
8920     "%1 const %3 *__",
8921     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8922     (char*)NULL };
8924 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8926  *  Description of Ultrix_Const2 fix
8927  */
8928 tSCC zUltrix_Const2Name[] =
8929      "ultrix_const2";
8932  *  File name selection pattern
8933  */
8934 tSCC zUltrix_Const2List[] =
8935   "stdio.h\0";
8937  *  Machine/OS name selection pattern
8938  */
8939 #define apzUltrix_Const2Machs (const char**)NULL
8942  *  content selection pattern - do fix if pattern found
8943  */
8944 tSCC zUltrix_Const2Select0[] =
8945        "\\*fopen\\( char \\*";
8947 #define    ULTRIX_CONST2_TEST_CT  1
8948 static tTestDesc aUltrix_Const2Tests[] = {
8949   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
8952  *  Fix Command Arguments for Ultrix_Const2
8953  */
8954 static const char* apzUltrix_Const2Patch[] = {
8955     "format",
8956     "%1( const char *%3, const char *",
8957     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8958     (char*)NULL };
8960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8962  *  Description of Va_I960_Macro fix
8963  */
8964 tSCC zVa_I960_MacroName[] =
8965      "va_i960_macro";
8968  *  File name selection pattern
8969  */
8970 tSCC zVa_I960_MacroList[] =
8971   "arch/i960/archI960.h\0";
8973  *  Machine/OS name selection pattern
8974  */
8975 #define apzVa_I960_MacroMachs (const char**)NULL
8978  *  content selection pattern - do fix if pattern found
8979  */
8980 tSCC zVa_I960_MacroSelect0[] =
8981        "__(vsiz|vali|vpad|alignof__)";
8983 #define    VA_I960_MACRO_TEST_CT  1
8984 static tTestDesc aVa_I960_MacroTests[] = {
8985   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8988  *  Fix Command Arguments for Va_I960_Macro
8989  */
8990 static const char* apzVa_I960_MacroPatch[] = {
8991     "format",
8992     "__vx%1",
8993     (char*)NULL };
8995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8997  *  Description of Vms_Add_Missing_Braces fix
8998  */
8999 tSCC zVms_Add_Missing_BracesName[] =
9000      "vms_add_missing_braces";
9003  *  File name selection pattern
9004  */
9005 tSCC zVms_Add_Missing_BracesList[] =
9006   "rtldef/signal.h\0";
9008  *  Machine/OS name selection pattern
9009  */
9010 tSCC* apzVms_Add_Missing_BracesMachs[] = {
9011         "*-*-*vms*",
9012         (const char*)NULL };
9015  *  content selection pattern - do fix if pattern found
9016  */
9017 tSCC zVms_Add_Missing_BracesSelect0[] =
9018        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
9020 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
9021 static tTestDesc aVms_Add_Missing_BracesTests[] = {
9022   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
9025  *  Fix Command Arguments for Vms_Add_Missing_Braces
9026  */
9027 static const char* apzVms_Add_Missing_BracesPatch[] = {
9028     "format",
9029     "%1 {%2} ",
9030     (char*)NULL };
9032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9034  *  Description of Vms_Decc_Builtin fix
9035  */
9036 tSCC zVms_Decc_BuiltinName[] =
9037      "vms_decc_builtin";
9040  *  File name selection pattern
9041  */
9042 tSCC zVms_Decc_BuiltinList[] =
9043   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
9045  *  Machine/OS name selection pattern
9046  */
9047 tSCC* apzVms_Decc_BuiltinMachs[] = {
9048         "*-*-*vms*",
9049         (const char*)NULL };
9052  *  content selection pattern - do fix if pattern found
9053  */
9054 tSCC zVms_Decc_BuiltinSelect0[] =
9055        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
9057 #define    VMS_DECC_BUILTIN_TEST_CT  1
9058 static tTestDesc aVms_Decc_BuiltinTests[] = {
9059   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
9062  *  Fix Command Arguments for Vms_Decc_Builtin
9063  */
9064 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
9065     "-e", "s@__MEMSET@memset@",
9066     "-e", "s@__MEMMOVE@memmove@",
9067     "-e", "s@__MEMCPY@memcpy@",
9068     "-e", "s@__STRLEN@strlen@",
9069     "-e", "s@__STRCPY@strcpy@",
9070     (char*)NULL };
9072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9074  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
9075  */
9076 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
9077      "vms_define_can_use_extern_prefix";
9080  *  File name selection pattern
9081  */
9082 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
9083   "rtldef/decc$types.h\0";
9085  *  Machine/OS name selection pattern
9086  */
9087 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
9088         "*-*-*vms*",
9089         (const char*)NULL };
9092  *  content selection pattern - do fix if pattern found
9093  */
9094 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
9095        "#[ \t]*else\n\
9096 #[ \t]*if defined\\(__DECCXX\\)\n\
9097 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
9099 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
9100 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
9101   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
9104  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
9105  */
9106 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
9107     "format",
9108     "%0#    elif defined (__GNUC__)\n\
9109 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
9110     (char*)NULL };
9112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9114  *  Description of Vms_Disable_Decc_String_Builtins fix
9115  */
9116 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
9117      "vms_disable_decc_string_builtins";
9120  *  File name selection pattern
9121  */
9122 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
9123   "rtldef/string.h\0";
9125  *  Machine/OS name selection pattern
9126  */
9127 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
9128         "*-*-*vms*",
9129         (const char*)NULL };
9132  *  content selection pattern - do fix if pattern found
9133  */
9134 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
9135        "#if !defined\\(__VAX\\)\n";
9137 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
9138 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
9139   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
9142  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
9143  */
9144 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
9145     "format",
9146     "#if !defined(__VAX) && !defined(__GNUC__)\n",
9147     (char*)NULL };
9149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9151  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
9152  */
9153 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
9154      "vms_do_not_redeclare_hostalias";
9157  *  File name selection pattern
9158  */
9159 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
9160   "rtldef/resolv.h\0";
9162  *  Machine/OS name selection pattern
9163  */
9164 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
9165         "*-*-*vms*",
9166         (const char*)NULL };
9169  *  content selection pattern - do fix if pattern found
9170  */
9171 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
9172        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
9173 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
9175 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
9176 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
9177   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
9180  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
9181  */
9182 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
9183     "format",
9184     "%1\n\
9185 /* %2 */",
9186     (char*)NULL };
9188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9190  *  Description of Vms_Forward_Declare_Struct fix
9191  */
9192 tSCC zVms_Forward_Declare_StructName[] =
9193      "vms_forward_declare_struct";
9196  *  File name selection pattern
9197  */
9198 tSCC zVms_Forward_Declare_StructList[] =
9199   "rtldef/if.h\0";
9201  *  Machine/OS name selection pattern
9202  */
9203 tSCC* apzVms_Forward_Declare_StructMachs[] = {
9204         "*-*-*vms*",
9205         (const char*)NULL };
9208  *  content selection pattern - do fix if pattern found
9209  */
9210 tSCC zVms_Forward_Declare_StructSelect0[] =
9211        "(/\\* forward decls for C\\+\\+ \\*/\n\
9212 )#ifdef __cplusplus\n";
9214 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
9215 static tTestDesc aVms_Forward_Declare_StructTests[] = {
9216   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
9219  *  Fix Command Arguments for Vms_Forward_Declare_Struct
9220  */
9221 static const char* apzVms_Forward_Declare_StructPatch[] = {
9222     "format",
9223     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
9224     (char*)NULL };
9226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9228  *  Description of Vms_No_64bit_Getopt fix
9229  */
9230 tSCC zVms_No_64bit_GetoptName[] =
9231      "vms_no_64bit_getopt";
9234  *  File name selection pattern
9235  */
9236 tSCC zVms_No_64bit_GetoptList[] =
9237   "rtldef/stdio.h\0rtldef/unistd.h\0";
9239  *  Machine/OS name selection pattern
9240  */
9241 tSCC* apzVms_No_64bit_GetoptMachs[] = {
9242         "*-*-*vms*",
9243         (const char*)NULL };
9246  *  content selection pattern - do fix if pattern found
9247  */
9248 tSCC zVms_No_64bit_GetoptSelect0[] =
9249        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
9251 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
9252 static tTestDesc aVms_No_64bit_GetoptTests[] = {
9253   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
9256  *  Fix Command Arguments for Vms_No_64bit_Getopt
9257  */
9258 static const char* apzVms_No_64bit_GetoptPatch[] = {
9259     "format",
9260     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
9261 %0#endif\n",
9262     (char*)NULL };
9264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9266  *  Description of Vms_Use_Fast_Setjmp fix
9267  */
9268 tSCC zVms_Use_Fast_SetjmpName[] =
9269      "vms_use_fast_setjmp";
9272  *  File name selection pattern
9273  */
9274 tSCC zVms_Use_Fast_SetjmpList[] =
9275   "rtldef/setjmp.h\0";
9277  *  Machine/OS name selection pattern
9278  */
9279 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
9280         "*-*-*vms*",
9281         (const char*)NULL };
9284  *  content selection pattern - do fix if pattern found
9285  */
9286 tSCC zVms_Use_Fast_SetjmpSelect0[] =
9287        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
9289 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
9290 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
9291   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
9294  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
9295  */
9296 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
9297     "format",
9298     "%0 defined (__GNUC__) ||",
9299     (char*)NULL };
9301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9303  *  Description of Vms_Use_Pragma_Extern_Model fix
9304  */
9305 tSCC zVms_Use_Pragma_Extern_ModelName[] =
9306      "vms_use_pragma_extern_model";
9309  *  File name selection pattern
9310  */
9311 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
9313  *  Machine/OS name selection pattern
9314  */
9315 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
9316         "*-*-*vms*",
9317         (const char*)NULL };
9320  *  content selection pattern - do fix if pattern found
9321  */
9322 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
9323        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
9324 # pragma extern_model __save\n";
9326 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
9327 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
9328   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
9331  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
9332  */
9333 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
9334     "format",
9335     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
9336 # pragma extern_model __save\n",
9337     (char*)NULL };
9339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9341  *  Description of Vms_Use_Quoted_Include fix
9342  */
9343 tSCC zVms_Use_Quoted_IncludeName[] =
9344      "vms_use_quoted_include";
9347  *  File name selection pattern
9348  */
9349 tSCC zVms_Use_Quoted_IncludeList[] =
9350   "rtldef/wait.h\0starlet_c/pthread.h\0";
9352  *  Machine/OS name selection pattern
9353  */
9354 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
9355         "*-*-*vms*",
9356         (const char*)NULL };
9359  *  content selection pattern - do fix if pattern found
9360  */
9361 tSCC zVms_Use_Quoted_IncludeSelect0[] =
9362        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
9364 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
9365 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
9366   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
9369  *  Fix Command Arguments for Vms_Use_Quoted_Include
9370  */
9371 static const char* apzVms_Use_Quoted_IncludePatch[] = {
9372     "format",
9373     "%1<sys/%2.h>",
9374     (char*)NULL };
9376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9378  *  Description of Void_Null fix
9379  */
9380 tSCC zVoid_NullName[] =
9381      "void_null";
9384  *  File name selection pattern
9385  */
9386 tSCC zVoid_NullList[] =
9387   "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";
9389  *  Machine/OS name selection pattern
9390  */
9391 #define apzVoid_NullMachs (const char**)NULL
9394  *  content selection pattern - do fix if pattern found
9395  */
9396 tSCC zVoid_NullSelect0[] =
9397        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
9400  *  content bypass pattern - skip fix if pattern found
9401  */
9402 tSCC zVoid_NullBypass0[] =
9403        "__cplusplus";
9404 tSCC zVoid_NullBypass1[] =
9405        "__null";
9407 #define    VOID_NULL_TEST_CT  3
9408 static tTestDesc aVoid_NullTests[] = {
9409   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
9410   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
9411   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
9414  *  Fix Command Arguments for Void_Null
9415  */
9416 static const char* apzVoid_NullPatch[] = {
9417     "format",
9418     "#ifndef NULL\n\
9419 #ifdef __cplusplus\n\
9420 #ifdef __GNUG__\n\
9421 #define NULL __null\n\
9422 #else /* ! __GNUG__  */\n\
9423 #define NULL 0L\n\
9424 #endif /* __GNUG__  */\n\
9425 #else /* ! __cplusplus  */\n\
9426 #define NULL ((void *)0)\n\
9427 #endif /* __cplusplus  */\n\
9428 #endif /* !NULL  */",
9429     (char*)NULL };
9431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9433  *  Description of Vxworks_Gcc_Problem fix
9434  */
9435 tSCC zVxworks_Gcc_ProblemName[] =
9436      "vxworks_gcc_problem";
9439  *  File name selection pattern
9440  */
9441 tSCC zVxworks_Gcc_ProblemList[] =
9442   "types/vxTypesBase.h\0";
9444  *  Machine/OS name selection pattern
9445  */
9446 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
9449  *  content selection pattern - do fix if pattern found
9450  */
9451 tSCC zVxworks_Gcc_ProblemSelect0[] =
9452        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
9454 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
9455 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
9456   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
9459  *  Fix Command Arguments for Vxworks_Gcc_Problem
9460  */
9461 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
9462     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
9463     "-e", "/[ \t]size_t/i\\\n\
9464 #ifndef _GCC_SIZE_T\\\n\
9465 #define _GCC_SIZE_T\n",
9466     "-e", "/[ \t]size_t/a\\\n\
9467 #endif\n",
9468     "-e", "/[ \t]ptrdiff_t/i\\\n\
9469 #ifndef _GCC_PTRDIFF_T\\\n\
9470 #define _GCC_PTRDIFF_T\n",
9471     "-e", "/[ \t]ptrdiff_t/a\\\n\
9472 #endif\n",
9473     "-e", "/[ \t]wchar_t/i\\\n\
9474 #ifndef _GCC_WCHAR_T\\\n\
9475 #define _GCC_WCHAR_T\n",
9476     "-e", "/[ \t]wchar_t/a\\\n\
9477 #endif\n",
9478     (char*)NULL };
9480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9482  *  Description of Vxworks_Ioctl_Macro fix
9483  */
9484 tSCC zVxworks_Ioctl_MacroName[] =
9485      "vxworks_ioctl_macro";
9488  *  File name selection pattern
9489  */
9490 tSCC zVxworks_Ioctl_MacroList[] =
9491   "ioLib.h\0";
9493  *  Machine/OS name selection pattern
9494  */
9495 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
9496         "*-*-vxworks*",
9497         (const char*)NULL };
9498 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
9499 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
9502  *  Fix Command Arguments for Vxworks_Ioctl_Macro
9503  */
9504 static const char* apzVxworks_Ioctl_MacroPatch[] = {
9505     "format",
9506     "%0\n\
9507 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
9508     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
9509     (char*)NULL };
9511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9513  *  Description of Vxworks_Mkdir_Macro fix
9514  */
9515 tSCC zVxworks_Mkdir_MacroName[] =
9516      "vxworks_mkdir_macro";
9519  *  File name selection pattern
9520  */
9521 tSCC zVxworks_Mkdir_MacroList[] =
9522   "sys/stat.h\0";
9524  *  Machine/OS name selection pattern
9525  */
9526 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
9527         "*-*-vxworks*",
9528         (const char*)NULL };
9529 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
9530 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
9533  *  Fix Command Arguments for Vxworks_Mkdir_Macro
9534  */
9535 static const char* apzVxworks_Mkdir_MacroPatch[] = {
9536     "format",
9537     "%0\n\
9538 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
9539     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
9540     (char*)NULL };
9542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9544  *  Description of Vxworks_Needs_Vxtypes fix
9545  */
9546 tSCC zVxworks_Needs_VxtypesName[] =
9547      "vxworks_needs_vxtypes";
9550  *  File name selection pattern
9551  */
9552 tSCC zVxworks_Needs_VxtypesList[] =
9553   "time.h\0";
9555  *  Machine/OS name selection pattern
9556  */
9557 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
9560  *  content selection pattern - do fix if pattern found
9561  */
9562 tSCC zVxworks_Needs_VxtypesSelect0[] =
9563        "uint_t([ \t]+_clocks_per_sec)";
9565 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
9566 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
9567   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
9570  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
9571  */
9572 static const char* apzVxworks_Needs_VxtypesPatch[] = {
9573     "format",
9574     "unsigned int%1",
9575     (char*)NULL };
9577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9579  *  Description of Vxworks_Needs_Vxworks fix
9580  */
9581 tSCC zVxworks_Needs_VxworksName[] =
9582      "vxworks_needs_vxworks";
9585  *  File name selection pattern
9586  */
9587 tSCC zVxworks_Needs_VxworksList[] =
9588   "sys/stat.h\0";
9590  *  Machine/OS name selection pattern
9591  */
9592 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
9595  *  content selection pattern - do fix if pattern found
9596  */
9597 tSCC zVxworks_Needs_VxworksSelect0[] =
9598        "#[ \t]define[ \t]+__INCstath";
9601  *  perform the 'test' shell command - do fix on success
9602  */
9603 tSCC zVxworks_Needs_VxworksTest0[] =
9604        " -r types/vxTypesOld.h";
9605 tSCC zVxworks_Needs_VxworksTest1[] =
9606        " -n \"`egrep '#include' $file`\"";
9607 tSCC zVxworks_Needs_VxworksTest2[] =
9608        " -n \"`egrep ULONG $file`\"";
9610 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
9611 static tTestDesc aVxworks_Needs_VxworksTests[] = {
9612   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
9613   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
9614   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
9615   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
9618  *  Fix Command Arguments for Vxworks_Needs_Vxworks
9619  */
9620 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
9621     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
9622 #include <types/vxTypesOld.h>\n",
9623     (char*)NULL };
9625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9627  *  Description of Vxworks_Regs fix
9628  */
9629 tSCC zVxworks_RegsName[] =
9630      "vxworks_regs";
9633  *  File name selection pattern
9634  */
9635 #define zVxworks_RegsList (char*)NULL
9637  *  Machine/OS name selection pattern
9638  */
9639 tSCC* apzVxworks_RegsMachs[] = {
9640         "*-*-vxworks*",
9641         (const char*)NULL };
9644  *  content selection pattern - do fix if pattern found
9645  */
9646 tSCC zVxworks_RegsSelect0[] =
9647        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
9649 #define    VXWORKS_REGS_TEST_CT  1
9650 static tTestDesc aVxworks_RegsTests[] = {
9651   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
9654  *  Fix Command Arguments for Vxworks_Regs
9655  */
9656 static const char* apzVxworks_RegsPatch[] = {
9657     "format",
9658     "#include <arch/../regs.h>",
9659     (char*)NULL };
9661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9663  *  Description of Vxworks_Time fix
9664  */
9665 tSCC zVxworks_TimeName[] =
9666      "vxworks_time";
9669  *  File name selection pattern
9670  */
9671 tSCC zVxworks_TimeList[] =
9672   "time.h\0";
9674  *  Machine/OS name selection pattern
9675  */
9676 #define apzVxworks_TimeMachs (const char**)NULL
9679  *  content selection pattern - do fix if pattern found
9680  */
9681 tSCC zVxworks_TimeSelect0[] =
9682        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
9685  *  perform the 'test' shell command - do fix on success
9686  */
9687 tSCC zVxworks_TimeTest0[] =
9688        " -r vxWorks.h";
9690 #define    VXWORKS_TIME_TEST_CT  2
9691 static tTestDesc aVxworks_TimeTests[] = {
9692   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
9693   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
9696  *  Fix Command Arguments for Vxworks_Time
9697  */
9698 static const char* apzVxworks_TimePatch[] = {
9699     "format",
9700     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
9701 #ifdef __cplusplus\n\
9702 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
9703 #else\n\
9704 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
9705 #endif\n\
9706 #define __gcc_VOIDFUNCPTR_defined\n\
9707 #endif\n\
9708 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
9709     (char*)NULL };
9711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9713  *  Description of Vxworks_Write_Const fix
9714  */
9715 tSCC zVxworks_Write_ConstName[] =
9716      "vxworks_write_const";
9719  *  File name selection pattern
9720  */
9721 tSCC zVxworks_Write_ConstList[] =
9722   "ioLib.h\0";
9724  *  Machine/OS name selection pattern
9725  */
9726 tSCC* apzVxworks_Write_ConstMachs[] = {
9727         "*-*-vxworks*",
9728         (const char*)NULL };
9729 #define VXWORKS_WRITE_CONST_TEST_CT  0
9730 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
9733  *  Fix Command Arguments for Vxworks_Write_Const
9734  */
9735 static const char* apzVxworks_Write_ConstPatch[] = {
9736     "format",
9737     "extern int  write (int, const char*, size_t);",
9738     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
9739     (char*)NULL };
9741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9743  *  Description of X11_Class fix
9744  */
9745 tSCC zX11_ClassName[] =
9746      "x11_class";
9749  *  File name selection pattern
9750  */
9751 tSCC zX11_ClassList[] =
9752   "X11/ShellP.h\0";
9754  *  Machine/OS name selection pattern
9755  */
9756 #define apzX11_ClassMachs (const char**)NULL
9759  *  content selection pattern - do fix if pattern found
9760  */
9761 tSCC zX11_ClassSelect0[] =
9762        "^([ \t]*char \\*)class;(.*)";
9765  *  content bypass pattern - skip fix if pattern found
9766  */
9767 tSCC zX11_ClassBypass0[] =
9768        "__cplusplus";
9770 #define    X11_CLASS_TEST_CT  2
9771 static tTestDesc aX11_ClassTests[] = {
9772   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
9773   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
9776  *  Fix Command Arguments for X11_Class
9777  */
9778 static const char* apzX11_ClassPatch[] = {
9779     "format",
9780     "#ifdef __cplusplus\n\
9781 %1c_class;%2\n\
9782 #else\n\
9783 %1class;%2\n\
9784 #endif",
9785     (char*)NULL };
9787 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9789  *  Description of X11_Class_Usage fix
9790  */
9791 tSCC zX11_Class_UsageName[] =
9792      "x11_class_usage";
9795  *  File name selection pattern
9796  */
9797 tSCC zX11_Class_UsageList[] =
9798   "Xm/BaseClassI.h\0";
9800  *  Machine/OS name selection pattern
9801  */
9802 #define apzX11_Class_UsageMachs (const char**)NULL
9805  *  content selection pattern - do fix if pattern found
9806  */
9807 tSCC zX11_Class_UsageSelect0[] =
9808        " class\\)";
9811  *  content bypass pattern - skip fix if pattern found
9812  */
9813 tSCC zX11_Class_UsageBypass0[] =
9814        "__cplusplus";
9816 #define    X11_CLASS_USAGE_TEST_CT  2
9817 static tTestDesc aX11_Class_UsageTests[] = {
9818   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
9819   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
9822  *  Fix Command Arguments for X11_Class_Usage
9823  */
9824 static const char* apzX11_Class_UsagePatch[] = {
9825     "format",
9826     " c_class)",
9827     (char*)NULL };
9829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9831  *  Description of X11_New fix
9832  */
9833 tSCC zX11_NewName[] =
9834      "x11_new";
9837  *  File name selection pattern
9838  */
9839 tSCC zX11_NewList[] =
9840   "Xm/Traversal.h\0";
9842  *  Machine/OS name selection pattern
9843  */
9844 #define apzX11_NewMachs (const char**)NULL
9847  *  content bypass pattern - skip fix if pattern found
9848  */
9849 tSCC zX11_NewBypass0[] =
9850        "__cplusplus";
9852 #define    X11_NEW_TEST_CT  1
9853 static tTestDesc aX11_NewTests[] = {
9854   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
9857  *  Fix Command Arguments for X11_New
9858  */
9859 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9860     "-e", "/Widget\told, new;/i\\\n\
9861 #ifdef __cplusplus\\\n\
9862 \\\tWidget\told, c_new;\\\n\
9863 #else\n",
9864     "-e", "/Widget\told, new;/a\\\n\
9865 #endif\n",
9866     "-e", "s/Widget new,/Widget c_new,/g",
9867     (char*)NULL };
9869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9871  *  Description of X11_Sprintf fix
9872  */
9873 tSCC zX11_SprintfName[] =
9874      "x11_sprintf";
9877  *  File name selection pattern
9878  */
9879 tSCC zX11_SprintfList[] =
9880   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9882  *  Machine/OS name selection pattern
9883  */
9884 #define apzX11_SprintfMachs (const char**)NULL
9887  *  content selection pattern - do fix if pattern found
9888  */
9889 tSCC zX11_SprintfSelect0[] =
9890        "^extern char \\*\tsprintf\\(\\);$";
9892 #define    X11_SPRINTF_TEST_CT  1
9893 static tTestDesc aX11_SprintfTests[] = {
9894   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
9897  *  Fix Command Arguments for X11_Sprintf
9898  */
9899 static const char* apzX11_SprintfPatch[] = {
9900     "format",
9901     "#ifndef __STDC__\n\
9902 %0\n\
9903 #endif /* !defined __STDC__ */",
9904     (char*)NULL };
9907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9909  *  List of all fixes
9910  */
9911 #define REGEX_COUNT          279
9912 #define MACH_LIST_SIZE_LIMIT 187
9913 #define FIX_COUNT            242
9916  *  Enumerate the fixes
9917  */
9918 typedef enum {
9919     AAB_AIX_STDIO_FIXIDX,
9920     AAB_AIX_FCNTL_FIXIDX,
9921     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9922     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9923     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9924     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9925     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9926     AAB_SUN_MEMCPY_FIXIDX,
9927     AAB_VXWORKS_ASSERT_FIXIDX,
9928     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
9929     AAB_VXWORKS_STDINT_FIXIDX,
9930     AAB_VXWORKS_UNISTD_FIXIDX,
9931     AIX_ASSERT_FIXIDX,
9932     AIX_COMPLEX_FIXIDX,
9933     AIX_EXTERNC_FIXIDX,
9934     AIX_EXTERNCPP1_FIXIDX,
9935     AIX_EXTERNCPP2_FIXIDX,
9936     AIX_MALLOC_FIXIDX,
9937     AIX_NET_IF_ARP_FIXIDX,
9938     AIX_NULL_FIXIDX,
9939     AIX_ONCE_INIT_1_FIXIDX,
9940     AIX_ONCE_INIT_2_FIXIDX,
9941     AIX_MUTEX_INITIALIZER_1_FIXIDX,
9942     AIX_COND_INITIALIZER_1_FIXIDX,
9943     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
9944     AIX_PTHREAD_FIXIDX,
9945     AIX_STDINT_1_FIXIDX,
9946     AIX_STDINT_2_FIXIDX,
9947     AIX_STDINT_3_FIXIDX,
9948     AIX_STDINT_4_FIXIDX,
9949     AIX_STDINT_5_FIXIDX,
9950     AIX_STDIO_INLINE_FIXIDX,
9951     AIX_STDLIB_MALLOC_FIXIDX,
9952     AIX_STDLIB_REALLOC_FIXIDX,
9953     AIX_STDLIB_CALLOC_FIXIDX,
9954     AIX_STDLIB_VALLOC_FIXIDX,
9955     AIX_STRTOF_CONST_FIXIDX,
9956     AIX_SYSMACHINE_FIXIDX,
9957     AIX_SYSWAIT_2_FIXIDX,
9958     AIX_VOLATILE_FIXIDX,
9959     ALPHA___ASSERT_FIXIDX,
9960     ALPHA_ASSERT_FIXIDX,
9961     ALPHA_GETOPT_FIXIDX,
9962     ALPHA_IF_SEMICOLON_FIXIDX,
9963     ALPHA_PARENS_FIXIDX,
9964     ALPHA_SBRK_FIXIDX,
9965     AVOID_BOOL_DEFINE_FIXIDX,
9966     AVOID_BOOL_TYPE_FIXIDX,
9967     AVOID_WCHAR_T_TYPE_FIXIDX,
9968     BAD_STRUCT_TERM_FIXIDX,
9969     BADQUOTE_FIXIDX,
9970     BROKEN_ASSERT_STDIO_FIXIDX,
9971     BROKEN_ASSERT_STDLIB_FIXIDX,
9972     BROKEN_CABS_FIXIDX,
9973     BROKEN_NAN_FIXIDX,
9974     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9975     CTRL_QUOTES_DEF_FIXIDX,
9976     CTRL_QUOTES_USE_FIXIDX,
9977     CXX_UNREADY_FIXIDX,
9978     DARWIN_AVAILABILITYINTERNAL_FIXIDX,
9979     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9980     DARWIN_EXTERNC_FIXIDX,
9981     DARWIN_GCC4_BREAKAGE_FIXIDX,
9982     DARWIN_LONGJMP_NORETURN_FIXIDX,
9983     DARWIN_OS_TRACE_1_FIXIDX,
9984     DARWIN_OS_TRACE_2_FIXIDX,
9985     DARWIN_OS_TRACE_3_FIXIDX,
9986     DARWIN_PRIVATE_EXTERN_FIXIDX,
9987     DARWIN_STDINT_1_FIXIDX,
9988     DARWIN_STDINT_2_FIXIDX,
9989     DARWIN_STDINT_3_FIXIDX,
9990     DARWIN_STDINT_4_FIXIDX,
9991     DARWIN_STDINT_5_FIXIDX,
9992     DARWIN_STDINT_6_FIXIDX,
9993     DARWIN_STDINT_7_FIXIDX,
9994     DEC_INTERN_ASM_FIXIDX,
9995     DJGPP_WCHAR_H_FIXIDX,
9996     ECD_CURSOR_FIXIDX,
9997     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
9998     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
9999     FREEBSD_GCC3_BREAKAGE_FIXIDX,
10000     FREEBSD_GCC4_BREAKAGE_FIXIDX,
10001     GLIBC_C99_INLINE_1_FIXIDX,
10002     GLIBC_C99_INLINE_1A_FIXIDX,
10003     GLIBC_C99_INLINE_2_FIXIDX,
10004     GLIBC_C99_INLINE_3_FIXIDX,
10005     GLIBC_C99_INLINE_4_FIXIDX,
10006     GLIBC_MUTEX_INIT_FIXIDX,
10007     GLIBC_STDINT_FIXIDX,
10008     GLIBC_STRNCPY_FIXIDX,
10009     GLIBC_TGMATH_FIXIDX,
10010     GNU_TYPES_FIXIDX,
10011     HP_INLINE_FIXIDX,
10012     HP_SYSFILE_FIXIDX,
10013     HPPA_HPUX_FP_MACROS_FIXIDX,
10014     HPUX10_CPP_POW_INLINE_FIXIDX,
10015     HPUX11_CPP_POW_INLINE_FIXIDX,
10016     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
10017     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
10018     HPUX10_STDIO_DECLARATIONS_FIXIDX,
10019     HPUX11_ABS_FIXIDX,
10020     HPUX11_LWP_RWLOCK_VALID_FIXIDX,
10021     HPUX11_EXTERN_SENDFILE_FIXIDX,
10022     HPUX11_EXTERN_SENDPATH_FIXIDX,
10023     HPUX11_FABSF_FIXIDX,
10024     HPUX11_PTHREAD_CONST_FIXIDX,
10025     HPUX11_SIZE_T_FIXIDX,
10026     HPUX11_SNPRINTF_FIXIDX,
10027     HPUX11_VSNPRINTF_FIXIDX,
10028     HPUX_VSSCANF_FIXIDX,
10029     HPUX8_BOGUS_INLINES_FIXIDX,
10030     HPUX_C99_INTPTR_FIXIDX,
10031     HPUX_C99_INTTYPES_FIXIDX,
10032     HPUX_C99_INTTYPES2_FIXIDX,
10033     HPUX_CTYPE_MACROS_FIXIDX,
10034     HPUX_EXTERN_ERRNO_FIXIDX,
10035     HPUX_HTONL_FIXIDX,
10036     HPUX_IMAGINARY_I_FIXIDX,
10037     HPUX_INTTYPE_INT8_T_FIXIDX,
10038     HPUX_LONG_DOUBLE_FIXIDX,
10039     HPUX_LONG_DOUBLE_2_FIXIDX,
10040     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
10041     HPUX_SPU_INFO_FIXIDX,
10042     HPUX_STDINT_LEAST_FAST_FIXIDX,
10043     HPUX_LONGJMP_FIXIDX,
10044     HPUX_SYSTIME_FIXIDX,
10045     HUGE_VAL_HEX_FIXIDX,
10046     HUGE_VALF_HEX_FIXIDX,
10047     HUGE_VALL_HEX_FIXIDX,
10048     INT_ABORT_FREE_AND_EXIT_FIXIDX,
10049     IO_QUOTES_DEF_FIXIDX,
10050     IO_QUOTES_USE_FIXIDX,
10051     IP_MISSING_SEMI_FIXIDX,
10052     IRIX_LIMITS_CONST_FIXIDX,
10053     IRIX_STDIO_VA_LIST_FIXIDX,
10054     KANDR_CONCAT_FIXIDX,
10055     LINUX_IA64_UCONTEXT_FIXIDX,
10056     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
10057     LYNXOS_MISSING_PUTENV_FIXIDX,
10058     MACHINE_ANSI_H_VA_LIST_FIXIDX,
10059     MACHINE_NAME_FIXIDX,
10060     MATH_EXCEPTION_FIXIDX,
10061     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
10062     NESTED_AUTH_DES_FIXIDX,
10063     NETBSD_C99_INLINE_1_FIXIDX,
10064     NETBSD_C99_INLINE_2_FIXIDX,
10065     NETBSD_EXTRA_SEMICOLON_FIXIDX,
10066     NEWLIB_STDINT_1_FIXIDX,
10067     NEWLIB_STDINT_2_FIXIDX,
10068     NEXT_MATH_PREFIX_FIXIDX,
10069     NEXT_TEMPLATE_FIXIDX,
10070     NEXT_VOLITILE_FIXIDX,
10071     NEXT_WAIT_UNION_FIXIDX,
10072     NODEENT_SYNTAX_FIXIDX,
10073     OPENBSD_NULL_DEFINITION_FIXIDX,
10074     OBSTACK_LVALUE_CAST_FIXIDX,
10075     OPENBSD_VA_START_FIXIDX,
10076     OSF_NAMESPACE_A_FIXIDX,
10077     OSF_NAMESPACE_C_FIXIDX,
10078     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
10079     READ_RET_TYPE_FIXIDX,
10080     RPC_XDR_LVALUE_CAST_A_FIXIDX,
10081     RPC_XDR_LVALUE_CAST_B_FIXIDX,
10082     RS6000_DOUBLE_FIXIDX,
10083     RS6000_FCHMOD_FIXIDX,
10084     RS6000_PARAM_FIXIDX,
10085     SOLARIS___RESTRICT_FIXIDX,
10086     SOLARIS_COMPLEX_FIXIDX,
10087     SOLARIS_COMPLEX_CXX_FIXIDX,
10088     SOLARIS_CXX_LINKAGE_FIXIDX,
10089     SOLARIS_GETC_STRICT_STDC_FIXIDX,
10090     SOLARIS_INT_CONST_FIXIDX,
10091     SOLARIS_INT_LIMITS_1_FIXIDX,
10092     SOLARIS_INT_LIMITS_2_FIXIDX,
10093     SOLARIS_INT_LIMITS_3_FIXIDX,
10094     SOLARIS_MATH_1_FIXIDX,
10095     SOLARIS_MATH_10_FIXIDX,
10096     SOLARIS_MATH_2_FIXIDX,
10097     SOLARIS_MATH_3_FIXIDX,
10098     SOLARIS_MATH_4_FIXIDX,
10099     SOLARIS_MATH_8_FIXIDX,
10100     SOLARIS_MATH_9_FIXIDX,
10101     SOLARIS_MATH_11_FIXIDX,
10102     SOLARIS_MATH_12_FIXIDX,
10103     SOLARIS_ONCE_INIT_1_FIXIDX,
10104     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
10105     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
10106     SOLARIS_RWLOCK_INIT_1_FIXIDX,
10107     SOLARIS_STD___FILBUF_FIXIDX,
10108     SOLARIS_STDIO_TAG_FIXIDX,
10109     STATSSWTCH_FIXIDX,
10110     STDIO_STDARG_H_FIXIDX,
10111     STDIO_VA_LIST_FIXIDX,
10112     STDIO_VA_LIST_CLIENTS_FIXIDX,
10113     STRICT_ANSI_NOT_FIXIDX,
10114     STRICT_ANSI_NOT_CTD_FIXIDX,
10115     STRICT_ANSI_ONLY_FIXIDX,
10116     STRUCT_FILE_FIXIDX,
10117     STRUCT_SOCKADDR_FIXIDX,
10118     SUN_AUTH_PROTO_FIXIDX,
10119     SUN_BOGUS_IFDEF_FIXIDX,
10120     SUN_CATMACRO_FIXIDX,
10121     SUN_MALLOC_FIXIDX,
10122     SUN_RUSERS_SEMI_FIXIDX,
10123     SUN_SIGNAL_FIXIDX,
10124     SUNOS_STRLEN_FIXIDX,
10125     SUSE_LINUX_VT_CXX_FIXIDX,
10126     SVR4_DISABLE_OPT_FIXIDX,
10127     SVR4_GETCWD_FIXIDX,
10128     SVR4_PROFIL_FIXIDX,
10129     SVR4_SIGHANDLER_TYPE_FIXIDX,
10130     SVR4_UNDECLARED_GETRNGE_FIXIDX,
10131     SYSV68_STRING_FIXIDX,
10132     SYSZ_STDLIB_FOR_SUN_FIXIDX,
10133     THREAD_KEYWORD_FIXIDX,
10134     TINFO_CPLUSPLUS_FIXIDX,
10135     ULTRIX_CONST_FIXIDX,
10136     ULTRIX_CONST2_FIXIDX,
10137     VA_I960_MACRO_FIXIDX,
10138     VMS_ADD_MISSING_BRACES_FIXIDX,
10139     VMS_DECC_BUILTIN_FIXIDX,
10140     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
10141     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
10142     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
10143     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
10144     VMS_NO_64BIT_GETOPT_FIXIDX,
10145     VMS_USE_FAST_SETJMP_FIXIDX,
10146     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
10147     VMS_USE_QUOTED_INCLUDE_FIXIDX,
10148     VOID_NULL_FIXIDX,
10149     VXWORKS_GCC_PROBLEM_FIXIDX,
10150     VXWORKS_IOCTL_MACRO_FIXIDX,
10151     VXWORKS_MKDIR_MACRO_FIXIDX,
10152     VXWORKS_NEEDS_VXTYPES_FIXIDX,
10153     VXWORKS_NEEDS_VXWORKS_FIXIDX,
10154     VXWORKS_REGS_FIXIDX,
10155     VXWORKS_TIME_FIXIDX,
10156     VXWORKS_WRITE_CONST_FIXIDX,
10157     X11_CLASS_FIXIDX,
10158     X11_CLASS_USAGE_FIXIDX,
10159     X11_NEW_FIXIDX,
10160     X11_SPRINTF_FIXIDX
10161 } t_fixinc_idx;
10163 tFixDesc fixDescList[ FIX_COUNT ] = {
10164   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
10165      apzAab_Aix_StdioMachs,
10166      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10167      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
10169   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
10170      apzAab_Aix_FcntlMachs,
10171      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10172      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
10174   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
10175      apzAab_Darwin7_9_Long_Double_FuncsMachs,
10176      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10177      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
10179   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
10180      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
10181      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10182      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
10184   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
10185      apzAab_Fd_Zero_Gnu_Types_HMachs,
10186      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10187      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
10189   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
10190      apzAab_Fd_Zero_Selectbits_HMachs,
10191      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10192      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
10194   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
10195      apzAab_Solaris_Sys_Varargs_HMachs,
10196      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10197      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
10199   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
10200      apzAab_Sun_MemcpyMachs,
10201      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10202      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
10204   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
10205      apzAab_Vxworks_AssertMachs,
10206      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10207      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
10209   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
10210      apzAab_Vxworks_Regs_VxtypesMachs,
10211      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10212      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
10214   {  zAab_Vxworks_StdintName,    zAab_Vxworks_StdintList,
10215      apzAab_Vxworks_StdintMachs,
10216      AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10217      aAab_Vxworks_StdintTests,   apzAab_Vxworks_StdintPatch, 0 },
10219   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
10220      apzAab_Vxworks_UnistdMachs,
10221      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10222      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
10224   {  zAix_AssertName,    zAix_AssertList,
10225      apzAix_AssertMachs,
10226      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10227      aAix_AssertTests,   apzAix_AssertPatch, 0 },
10229   {  zAix_ComplexName,    zAix_ComplexList,
10230      apzAix_ComplexMachs,
10231      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10232      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
10234   {  zAix_ExterncName,    zAix_ExterncList,
10235      apzAix_ExterncMachs,
10236      AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10237      aAix_ExterncTests,   apzAix_ExterncPatch, 0 },
10239   {  zAix_Externcpp1Name,    zAix_Externcpp1List,
10240      apzAix_Externcpp1Machs,
10241      AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10242      aAix_Externcpp1Tests,   apzAix_Externcpp1Patch, 0 },
10244   {  zAix_Externcpp2Name,    zAix_Externcpp2List,
10245      apzAix_Externcpp2Machs,
10246      AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10247      aAix_Externcpp2Tests,   apzAix_Externcpp2Patch, 0 },
10249   {  zAix_MallocName,    zAix_MallocList,
10250      apzAix_MallocMachs,
10251      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10252      aAix_MallocTests,   apzAix_MallocPatch, 0 },
10254   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
10255      apzAix_Net_If_ArpMachs,
10256      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10257      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
10259   {  zAix_NullName,    zAix_NullList,
10260      apzAix_NullMachs,
10261      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10262      aAix_NullTests,   apzAix_NullPatch, 0 },
10264   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
10265      apzAix_Once_Init_1Machs,
10266      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10267      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
10269   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
10270      apzAix_Once_Init_2Machs,
10271      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10272      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
10274   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
10275      apzAix_Mutex_Initializer_1Machs,
10276      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10277      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
10279   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
10280      apzAix_Cond_Initializer_1Machs,
10281      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10282      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
10284   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
10285      apzAix_Rwlock_Initializer_1Machs,
10286      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10287      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
10289   {  zAix_PthreadName,    zAix_PthreadList,
10290      apzAix_PthreadMachs,
10291      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10292      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
10294   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
10295      apzAix_Stdint_1Machs,
10296      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10297      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
10299   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
10300      apzAix_Stdint_2Machs,
10301      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10302      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
10304   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
10305      apzAix_Stdint_3Machs,
10306      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10307      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
10309   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
10310      apzAix_Stdint_4Machs,
10311      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10312      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
10314   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
10315      apzAix_Stdint_5Machs,
10316      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10317      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
10319   {  zAix_Stdio_InlineName,    zAix_Stdio_InlineList,
10320      apzAix_Stdio_InlineMachs,
10321      AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10322      aAix_Stdio_InlineTests,   apzAix_Stdio_InlinePatch, 0 },
10324   {  zAix_Stdlib_MallocName,    zAix_Stdlib_MallocList,
10325      apzAix_Stdlib_MallocMachs,
10326      AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10327      aAix_Stdlib_MallocTests,   apzAix_Stdlib_MallocPatch, 0 },
10329   {  zAix_Stdlib_ReallocName,    zAix_Stdlib_ReallocList,
10330      apzAix_Stdlib_ReallocMachs,
10331      AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10332      aAix_Stdlib_ReallocTests,   apzAix_Stdlib_ReallocPatch, 0 },
10334   {  zAix_Stdlib_CallocName,    zAix_Stdlib_CallocList,
10335      apzAix_Stdlib_CallocMachs,
10336      AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10337      aAix_Stdlib_CallocTests,   apzAix_Stdlib_CallocPatch, 0 },
10339   {  zAix_Stdlib_VallocName,    zAix_Stdlib_VallocList,
10340      apzAix_Stdlib_VallocMachs,
10341      AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10342      aAix_Stdlib_VallocTests,   apzAix_Stdlib_VallocPatch, 0 },
10344   {  zAix_Strtof_ConstName,    zAix_Strtof_ConstList,
10345      apzAix_Strtof_ConstMachs,
10346      AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10347      aAix_Strtof_ConstTests,   apzAix_Strtof_ConstPatch, 0 },
10349   {  zAix_SysmachineName,    zAix_SysmachineList,
10350      apzAix_SysmachineMachs,
10351      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10352      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
10354   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
10355      apzAix_Syswait_2Machs,
10356      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10357      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
10359   {  zAix_VolatileName,    zAix_VolatileList,
10360      apzAix_VolatileMachs,
10361      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10362      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
10364   {  zAlpha___AssertName,    zAlpha___AssertList,
10365      apzAlpha___AssertMachs,
10366      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10367      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
10369   {  zAlpha_AssertName,    zAlpha_AssertList,
10370      apzAlpha_AssertMachs,
10371      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10372      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
10374   {  zAlpha_GetoptName,    zAlpha_GetoptList,
10375      apzAlpha_GetoptMachs,
10376      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10377      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
10379   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
10380      apzAlpha_If_SemicolonMachs,
10381      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10382      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
10384   {  zAlpha_ParensName,    zAlpha_ParensList,
10385      apzAlpha_ParensMachs,
10386      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10387      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
10389   {  zAlpha_SbrkName,    zAlpha_SbrkList,
10390      apzAlpha_SbrkMachs,
10391      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10392      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
10394   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
10395      apzAvoid_Bool_DefineMachs,
10396      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10397      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
10399   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
10400      apzAvoid_Bool_TypeMachs,
10401      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10402      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
10404   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
10405      apzAvoid_Wchar_T_TypeMachs,
10406      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10407      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
10409   {  zBad_Struct_TermName,    zBad_Struct_TermList,
10410      apzBad_Struct_TermMachs,
10411      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10412      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
10414   {  zBadquoteName,    zBadquoteList,
10415      apzBadquoteMachs,
10416      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10417      aBadquoteTests,   apzBadquotePatch, 0 },
10419   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
10420      apzBroken_Assert_StdioMachs,
10421      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10422      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
10424   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
10425      apzBroken_Assert_StdlibMachs,
10426      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10427      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
10429   {  zBroken_CabsName,    zBroken_CabsList,
10430      apzBroken_CabsMachs,
10431      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
10432      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
10434   {  zBroken_NanName,    zBroken_NanList,
10435      apzBroken_NanMachs,
10436      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10437      aBroken_NanTests,   apzBroken_NanPatch, 0 },
10439   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
10440      apzBsd_Stdio_Attrs_ConflictMachs,
10441      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10442      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
10444   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
10445      apzCtrl_Quotes_DefMachs,
10446      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10447      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
10449   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
10450      apzCtrl_Quotes_UseMachs,
10451      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10452      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
10454   {  zCxx_UnreadyName,    zCxx_UnreadyList,
10455      apzCxx_UnreadyMachs,
10456      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10457      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
10459   {  zDarwin_AvailabilityinternalName,    zDarwin_AvailabilityinternalList,
10460      apzDarwin_AvailabilityinternalMachs,
10461      DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10462      aDarwin_AvailabilityinternalTests,   apzDarwin_AvailabilityinternalPatch, 0 },
10464   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
10465      apzDarwin_9_Long_Double_Funcs_2Machs,
10466      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10467      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
10469   {  zDarwin_ExterncName,    zDarwin_ExterncList,
10470      apzDarwin_ExterncMachs,
10471      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10472      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
10474   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
10475      apzDarwin_Gcc4_BreakageMachs,
10476      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10477      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
10479   {  zDarwin_Longjmp_NoreturnName,    zDarwin_Longjmp_NoreturnList,
10480      apzDarwin_Longjmp_NoreturnMachs,
10481      DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10482      aDarwin_Longjmp_NoreturnTests,   apzDarwin_Longjmp_NoreturnPatch, 0 },
10484   {  zDarwin_Os_Trace_1Name,    zDarwin_Os_Trace_1List,
10485      apzDarwin_Os_Trace_1Machs,
10486      DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10487      aDarwin_Os_Trace_1Tests,   apzDarwin_Os_Trace_1Patch, 0 },
10489   {  zDarwin_Os_Trace_2Name,    zDarwin_Os_Trace_2List,
10490      apzDarwin_Os_Trace_2Machs,
10491      DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10492      aDarwin_Os_Trace_2Tests,   apzDarwin_Os_Trace_2Patch, 0 },
10494   {  zDarwin_Os_Trace_3Name,    zDarwin_Os_Trace_3List,
10495      apzDarwin_Os_Trace_3Machs,
10496      DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10497      aDarwin_Os_Trace_3Tests,   apzDarwin_Os_Trace_3Patch, 0 },
10499   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
10500      apzDarwin_Private_ExternMachs,
10501      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10502      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
10504   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
10505      apzDarwin_Stdint_1Machs,
10506      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10507      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
10509   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
10510      apzDarwin_Stdint_2Machs,
10511      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10512      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
10514   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
10515      apzDarwin_Stdint_3Machs,
10516      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10517      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
10519   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
10520      apzDarwin_Stdint_4Machs,
10521      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10522      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
10524   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
10525      apzDarwin_Stdint_5Machs,
10526      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10527      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
10529   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
10530      apzDarwin_Stdint_6Machs,
10531      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10532      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
10534   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
10535      apzDarwin_Stdint_7Machs,
10536      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10537      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
10539   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
10540      apzDec_Intern_AsmMachs,
10541      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
10542      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
10544   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
10545      apzDjgpp_Wchar_HMachs,
10546      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10547      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
10549   {  zEcd_CursorName,    zEcd_CursorList,
10550      apzEcd_CursorMachs,
10551      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10552      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
10554   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
10555      apzFeraiseexcept_Nosse_DivbyzeroMachs,
10556      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10557      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
10559   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
10560      apzFeraiseexcept_Nosse_InvalidMachs,
10561      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10562      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
10564   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
10565      apzFreebsd_Gcc3_BreakageMachs,
10566      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10567      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
10569   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
10570      apzFreebsd_Gcc4_BreakageMachs,
10571      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10572      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
10574   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
10575      apzGlibc_C99_Inline_1Machs,
10576      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10577      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
10579   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
10580      apzGlibc_C99_Inline_1aMachs,
10581      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10582      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
10584   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
10585      apzGlibc_C99_Inline_2Machs,
10586      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
10587      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
10589   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
10590      apzGlibc_C99_Inline_3Machs,
10591      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10592      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
10594   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
10595      apzGlibc_C99_Inline_4Machs,
10596      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10597      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
10599   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
10600      apzGlibc_Mutex_InitMachs,
10601      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
10602      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
10604   {  zGlibc_StdintName,    zGlibc_StdintList,
10605      apzGlibc_StdintMachs,
10606      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10607      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
10609   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
10610      apzGlibc_StrncpyMachs,
10611      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10612      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
10614   {  zGlibc_TgmathName,    zGlibc_TgmathList,
10615      apzGlibc_TgmathMachs,
10616      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10617      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
10619   {  zGnu_TypesName,    zGnu_TypesList,
10620      apzGnu_TypesMachs,
10621      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10622      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
10624   {  zHp_InlineName,    zHp_InlineList,
10625      apzHp_InlineMachs,
10626      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10627      aHp_InlineTests,   apzHp_InlinePatch, 0 },
10629   {  zHp_SysfileName,    zHp_SysfileList,
10630      apzHp_SysfileMachs,
10631      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10632      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
10634   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
10635      apzHppa_Hpux_Fp_MacrosMachs,
10636      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10637      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
10639   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
10640      apzHpux10_Cpp_Pow_InlineMachs,
10641      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10642      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
10644   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
10645      apzHpux11_Cpp_Pow_InlineMachs,
10646      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10647      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
10649   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
10650      apzHpux10_Ctype_Declarations1Machs,
10651      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10652      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
10654   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
10655      apzHpux10_Ctype_Declarations2Machs,
10656      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10657      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
10659   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
10660      apzHpux10_Stdio_DeclarationsMachs,
10661      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10662      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
10664   {  zHpux11_AbsName,    zHpux11_AbsList,
10665      apzHpux11_AbsMachs,
10666      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10667      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
10669   {  zHpux11_Lwp_Rwlock_ValidName,    zHpux11_Lwp_Rwlock_ValidList,
10670      apzHpux11_Lwp_Rwlock_ValidMachs,
10671      HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10672      aHpux11_Lwp_Rwlock_ValidTests,   apzHpux11_Lwp_Rwlock_ValidPatch, 0 },
10674   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
10675      apzHpux11_Extern_SendfileMachs,
10676      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10677      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
10679   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
10680      apzHpux11_Extern_SendpathMachs,
10681      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10682      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
10684   {  zHpux11_FabsfName,    zHpux11_FabsfList,
10685      apzHpux11_FabsfMachs,
10686      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10687      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
10689   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
10690      apzHpux11_Pthread_ConstMachs,
10691      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10692      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
10694   {  zHpux11_Size_TName,    zHpux11_Size_TList,
10695      apzHpux11_Size_TMachs,
10696      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10697      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
10699   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
10700      apzHpux11_SnprintfMachs,
10701      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10702      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
10704   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
10705      apzHpux11_VsnprintfMachs,
10706      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10707      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
10709   {  zHpux_VsscanfName,    zHpux_VsscanfList,
10710      apzHpux_VsscanfMachs,
10711      HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10712      aHpux_VsscanfTests,   apzHpux_VsscanfPatch, 0 },
10714   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
10715      apzHpux8_Bogus_InlinesMachs,
10716      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
10717      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
10719   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
10720      apzHpux_C99_IntptrMachs,
10721      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
10722      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
10724   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
10725      apzHpux_C99_InttypesMachs,
10726      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
10727      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
10729   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
10730      apzHpux_C99_Inttypes2Machs,
10731      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
10732      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
10734   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
10735      apzHpux_Ctype_MacrosMachs,
10736      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10737      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
10739   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
10740      apzHpux_Extern_ErrnoMachs,
10741      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10742      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
10744   {  zHpux_HtonlName,    zHpux_HtonlList,
10745      apzHpux_HtonlMachs,
10746      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10747      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
10749   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
10750      apzHpux_Imaginary_IMachs,
10751      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10752      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
10754   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
10755      apzHpux_Inttype_Int8_TMachs,
10756      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10757      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
10759   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
10760      apzHpux_Long_DoubleMachs,
10761      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
10762      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
10764   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
10765      apzHpux_Long_Double_2Machs,
10766      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10767      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
10769   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
10770      apzHpux_Pthread_InitializersMachs,
10771      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
10772      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
10774   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
10775      apzHpux_Spu_InfoMachs,
10776      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10777      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
10779   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
10780      apzHpux_Stdint_Least_FastMachs,
10781      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10782      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
10784   {  zHpux_LongjmpName,    zHpux_LongjmpList,
10785      apzHpux_LongjmpMachs,
10786      HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10787      aHpux_LongjmpTests,   apzHpux_LongjmpPatch, 0 },
10789   {  zHpux_SystimeName,    zHpux_SystimeList,
10790      apzHpux_SystimeMachs,
10791      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10792      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
10794   {  zHuge_Val_HexName,    zHuge_Val_HexList,
10795      apzHuge_Val_HexMachs,
10796      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10797      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
10799   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
10800      apzHuge_Valf_HexMachs,
10801      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10802      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
10804   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
10805      apzHuge_Vall_HexMachs,
10806      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10807      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
10809   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
10810      apzInt_Abort_Free_And_ExitMachs,
10811      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10812      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
10814   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
10815      apzIo_Quotes_DefMachs,
10816      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10817      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
10819   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
10820      apzIo_Quotes_UseMachs,
10821      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10822      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
10824   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
10825      apzIp_Missing_SemiMachs,
10826      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
10827      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
10829   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
10830      apzIrix_Limits_ConstMachs,
10831      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10832      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
10834   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
10835      apzIrix_Stdio_Va_ListMachs,
10836      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10837      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
10839   {  zKandr_ConcatName,    zKandr_ConcatList,
10840      apzKandr_ConcatMachs,
10841      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10842      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
10844   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
10845      apzLinux_Ia64_UcontextMachs,
10846      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10847      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
10849   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
10850      apzLynxos_No_Warning_In_Sys_Time_HMachs,
10851      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10852      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
10854   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
10855      apzLynxos_Missing_PutenvMachs,
10856      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10857      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
10859   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
10860      apzMachine_Ansi_H_Va_ListMachs,
10861      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10862      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
10864   {  zMachine_NameName,    zMachine_NameList,
10865      apzMachine_NameMachs,
10866      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10867      aMachine_NameTests,   apzMachine_NamePatch, 0 },
10869   {  zMath_ExceptionName,    zMath_ExceptionList,
10870      apzMath_ExceptionMachs,
10871      MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10872      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
10874   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
10875      apzMath_Huge_Val_From_Dbl_MaxMachs,
10876      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
10877      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
10879   {  zNested_Auth_DesName,    zNested_Auth_DesList,
10880      apzNested_Auth_DesMachs,
10881      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10882      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
10884   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
10885      apzNetbsd_C99_Inline_1Machs,
10886      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10887      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
10889   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
10890      apzNetbsd_C99_Inline_2Machs,
10891      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10892      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
10894   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
10895      apzNetbsd_Extra_SemicolonMachs,
10896      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10897      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
10899   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
10900      apzNewlib_Stdint_1Machs,
10901      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
10902      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
10904   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
10905      apzNewlib_Stdint_2Machs,
10906      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10907      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
10909   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
10910      apzNext_Math_PrefixMachs,
10911      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10912      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
10914   {  zNext_TemplateName,    zNext_TemplateList,
10915      apzNext_TemplateMachs,
10916      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10917      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
10919   {  zNext_VolitileName,    zNext_VolitileList,
10920      apzNext_VolitileMachs,
10921      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10922      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
10924   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
10925      apzNext_Wait_UnionMachs,
10926      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10927      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
10929   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
10930      apzNodeent_SyntaxMachs,
10931      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10932      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
10934   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
10935      apzOpenbsd_Null_DefinitionMachs,
10936      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10937      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
10939   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
10940      apzObstack_Lvalue_CastMachs,
10941      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10942      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
10944   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
10945      apzOpenbsd_Va_StartMachs,
10946      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10947      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
10949   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
10950      apzOsf_Namespace_AMachs,
10951      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10952      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
10954   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
10955      apzOsf_Namespace_CMachs,
10956      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10957      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
10959   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
10960      apzPthread_Incomplete_Struct_ArgumentMachs,
10961      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10962      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10964   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
10965      apzRead_Ret_TypeMachs,
10966      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10967      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
10969   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
10970      apzRpc_Xdr_Lvalue_Cast_AMachs,
10971      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10972      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10974   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
10975      apzRpc_Xdr_Lvalue_Cast_BMachs,
10976      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10977      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10979   {  zRs6000_DoubleName,    zRs6000_DoubleList,
10980      apzRs6000_DoubleMachs,
10981      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10982      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
10984   {  zRs6000_FchmodName,    zRs6000_FchmodList,
10985      apzRs6000_FchmodMachs,
10986      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10987      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
10989   {  zRs6000_ParamName,    zRs6000_ParamList,
10990      apzRs6000_ParamMachs,
10991      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10992      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
10994   {  zSolaris___RestrictName,    zSolaris___RestrictList,
10995      apzSolaris___RestrictMachs,
10996      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10997      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
10999   {  zSolaris_ComplexName,    zSolaris_ComplexList,
11000      apzSolaris_ComplexMachs,
11001      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
11002      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
11004   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
11005      apzSolaris_Complex_CxxMachs,
11006      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
11007      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
11009   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
11010      apzSolaris_Cxx_LinkageMachs,
11011      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11012      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
11014   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
11015      apzSolaris_Getc_Strict_StdcMachs,
11016      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11017      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
11019   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
11020      apzSolaris_Int_ConstMachs,
11021      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11022      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
11024   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
11025      apzSolaris_Int_Limits_1Machs,
11026      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11027      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
11029   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
11030      apzSolaris_Int_Limits_2Machs,
11031      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11032      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
11034   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
11035      apzSolaris_Int_Limits_3Machs,
11036      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11037      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
11039   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
11040      apzSolaris_Math_1Machs,
11041      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11042      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
11044   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
11045      apzSolaris_Math_10Machs,
11046      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11047      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
11049   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
11050      apzSolaris_Math_2Machs,
11051      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11052      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
11054   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
11055      apzSolaris_Math_3Machs,
11056      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11057      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
11059   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
11060      apzSolaris_Math_4Machs,
11061      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11062      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
11064   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
11065      apzSolaris_Math_8Machs,
11066      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11067      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
11069   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
11070      apzSolaris_Math_9Machs,
11071      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11072      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
11074   {  zSolaris_Math_11Name,    zSolaris_Math_11List,
11075      apzSolaris_Math_11Machs,
11076      SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11077      aSolaris_Math_11Tests,   apzSolaris_Math_11Patch, 0 },
11079   {  zSolaris_Math_12Name,    zSolaris_Math_12List,
11080      apzSolaris_Math_12Machs,
11081      SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
11082      aSolaris_Math_12Tests,   apzSolaris_Math_12Patch, 0 },
11084   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
11085      apzSolaris_Once_Init_1Machs,
11086      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11087      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
11089   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
11090      apzSolaris_Posix_Spawn_RestrictMachs,
11091      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11092      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
11094   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
11095      apzSolaris_Pow_Int_OverloadMachs,
11096      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11097      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
11099   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
11100      apzSolaris_Rwlock_Init_1Machs,
11101      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11102      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
11104   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
11105      apzSolaris_Std___FilbufMachs,
11106      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11107      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
11109   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
11110      apzSolaris_Stdio_TagMachs,
11111      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
11112      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
11114   {  zStatsswtchName,    zStatsswtchList,
11115      apzStatsswtchMachs,
11116      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11117      aStatsswtchTests,   apzStatsswtchPatch, 0 },
11119   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
11120      apzStdio_Stdarg_HMachs,
11121      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11122      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
11124   {  zStdio_Va_ListName,    zStdio_Va_ListList,
11125      apzStdio_Va_ListMachs,
11126      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
11127      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
11129   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
11130      apzStdio_Va_List_ClientsMachs,
11131      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
11132      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
11134   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
11135      apzStrict_Ansi_NotMachs,
11136      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11137      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
11139   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
11140      apzStrict_Ansi_Not_CtdMachs,
11141      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11142      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
11144   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
11145      apzStrict_Ansi_OnlyMachs,
11146      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11147      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
11149   {  zStruct_FileName,    zStruct_FileList,
11150      apzStruct_FileMachs,
11151      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11152      aStruct_FileTests,   apzStruct_FilePatch, 0 },
11154   {  zStruct_SockaddrName,    zStruct_SockaddrList,
11155      apzStruct_SockaddrMachs,
11156      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11157      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
11159   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
11160      apzSun_Auth_ProtoMachs,
11161      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11162      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
11164   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
11165      apzSun_Bogus_IfdefMachs,
11166      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11167      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
11169   {  zSun_CatmacroName,    zSun_CatmacroList,
11170      apzSun_CatmacroMachs,
11171      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11172      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
11174   {  zSun_MallocName,    zSun_MallocList,
11175      apzSun_MallocMachs,
11176      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
11177      aSun_MallocTests,   apzSun_MallocPatch, 0 },
11179   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
11180      apzSun_Rusers_SemiMachs,
11181      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
11182      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
11184   {  zSun_SignalName,    zSun_SignalList,
11185      apzSun_SignalMachs,
11186      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11187      aSun_SignalTests,   apzSun_SignalPatch, 0 },
11189   {  zSunos_StrlenName,    zSunos_StrlenList,
11190      apzSunos_StrlenMachs,
11191      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11192      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
11194   {  zSuse_Linux_Vt_CxxName,    zSuse_Linux_Vt_CxxList,
11195      apzSuse_Linux_Vt_CxxMachs,
11196      SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11197      aSuse_Linux_Vt_CxxTests,   apzSuse_Linux_Vt_CxxPatch, 0 },
11199   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
11200      apzSvr4_Disable_OptMachs,
11201      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
11202      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
11204   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
11205      apzSvr4_GetcwdMachs,
11206      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11207      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
11209   {  zSvr4_ProfilName,    zSvr4_ProfilList,
11210      apzSvr4_ProfilMachs,
11211      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11212      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
11214   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
11215      apzSvr4_Sighandler_TypeMachs,
11216      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11217      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
11219   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
11220      apzSvr4_Undeclared_GetrngeMachs,
11221      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11222      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
11224   {  zSysv68_StringName,    zSysv68_StringList,
11225      apzSysv68_StringMachs,
11226      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
11227      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
11229   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
11230      apzSysz_Stdlib_For_SunMachs,
11231      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11232      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
11234   {  zThread_KeywordName,    zThread_KeywordList,
11235      apzThread_KeywordMachs,
11236      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11237      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
11239   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
11240      apzTinfo_CplusplusMachs,
11241      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11242      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
11244   {  zUltrix_ConstName,    zUltrix_ConstList,
11245      apzUltrix_ConstMachs,
11246      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11247      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
11249   {  zUltrix_Const2Name,    zUltrix_Const2List,
11250      apzUltrix_Const2Machs,
11251      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11252      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
11254   {  zVa_I960_MacroName,    zVa_I960_MacroList,
11255      apzVa_I960_MacroMachs,
11256      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11257      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
11259   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
11260      apzVms_Add_Missing_BracesMachs,
11261      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11262      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
11264   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
11265      apzVms_Decc_BuiltinMachs,
11266      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
11267      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
11269   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
11270      apzVms_Define_Can_Use_Extern_PrefixMachs,
11271      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11272      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
11274   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
11275      apzVms_Disable_Decc_String_BuiltinsMachs,
11276      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11277      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
11279   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
11280      apzVms_Do_Not_Redeclare_HostaliasMachs,
11281      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11282      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
11284   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
11285      apzVms_Forward_Declare_StructMachs,
11286      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11287      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
11289   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
11290      apzVms_No_64bit_GetoptMachs,
11291      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11292      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
11294   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
11295      apzVms_Use_Fast_SetjmpMachs,
11296      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11297      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
11299   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
11300      apzVms_Use_Pragma_Extern_ModelMachs,
11301      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11302      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
11304   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
11305      apzVms_Use_Quoted_IncludeMachs,
11306      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11307      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
11309   {  zVoid_NullName,    zVoid_NullList,
11310      apzVoid_NullMachs,
11311      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11312      aVoid_NullTests,   apzVoid_NullPatch, 0 },
11314   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
11315      apzVxworks_Gcc_ProblemMachs,
11316      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
11317      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
11319   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
11320      apzVxworks_Ioctl_MacroMachs,
11321      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11322      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
11324   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
11325      apzVxworks_Mkdir_MacroMachs,
11326      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11327      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
11329   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
11330      apzVxworks_Needs_VxtypesMachs,
11331      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11332      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
11334   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
11335      apzVxworks_Needs_VxworksMachs,
11336      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
11337      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
11339   {  zVxworks_RegsName,    zVxworks_RegsList,
11340      apzVxworks_RegsMachs,
11341      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11342      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
11344   {  zVxworks_TimeName,    zVxworks_TimeList,
11345      apzVxworks_TimeMachs,
11346      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11347      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
11349   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
11350      apzVxworks_Write_ConstMachs,
11351      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11352      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
11354   {  zX11_ClassName,    zX11_ClassList,
11355      apzX11_ClassMachs,
11356      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11357      aX11_ClassTests,   apzX11_ClassPatch, 0 },
11359   {  zX11_Class_UsageName,    zX11_Class_UsageList,
11360      apzX11_Class_UsageMachs,
11361      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11362      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
11364   {  zX11_NewName,    zX11_NewList,
11365      apzX11_NewMachs,
11366      X11_NEW_TEST_CT, FD_MACH_ONLY,
11367      aX11_NewTests,   apzX11_NewPatch, 0 },
11369   {  zX11_SprintfName,    zX11_SprintfList,
11370      apzX11_SprintfMachs,
11371      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11372      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }