Skip gcc.dg/guality/example.c on hppa-linux.
[official-gcc.git] / fixincludes / fixincl.x
blobcb83f012a2f41a08c61fb053de4d355a2c3d2db9
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  *
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  *
5  * It has been AutoGen-ed  January  1, 2022 at 11:58:02 AM by AutoGen 5.18.16
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Jan  1 11:58:02 CET 2022
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 262 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 Darwin_Api_Availability fix
273  */
274 tSCC zDarwin_Api_AvailabilityName[] =
275      "darwin_api_availability";
278  *  File name selection pattern
279  */
280 tSCC zDarwin_Api_AvailabilityList[] =
281   "os/availability.h\0";
283  *  Machine/OS name selection pattern
284  */
285 tSCC* apzDarwin_Api_AvailabilityMachs[] = {
286         "*-*-darwin*",
287         (const char*)NULL };
290  *  content selection pattern - do fix if pattern found
291  */
292 tSCC zDarwin_Api_AvailabilitySelect0[] =
293        " *#define __API_AVAILABLE.*\n\
294  *#define __API_DEPRECATED.*\n\
295  *#define __API_DEPRECATED_WITH_REPLACEMENT.*\n\
296  *#define __API_UNAVAILABLE.*\n";
299  *  content bypass pattern - skip fix if pattern found
300  */
301 tSCC zDarwin_Api_AvailabilityBypass0[] =
302        "__IPHONE_OS_VERSION_MIN_REQUIRED";
304 #define    DARWIN_API_AVAILABILITY_TEST_CT  2
305 static tTestDesc aDarwin_Api_AvailabilityTests[] = {
306   { TT_NEGREP,   zDarwin_Api_AvailabilityBypass0, (regex_t*)NULL },
307   { TT_EGREP,    zDarwin_Api_AvailabilitySelect0, (regex_t*)NULL }, };
310  *  Fix Command Arguments for Darwin_Api_Availability
311  */
312 static const char* apzDarwin_Api_AvailabilityPatch[] = {
313     "format",
314     "    #define API_AVAILABLE(...)\n\
315     #define API_DEPRECATED(...)\n\
316     #define API_DEPRECATED_WITH_REPLACEMENT(...)\n\
317     #define API_UNAVAILABLE(...)\n",
318     (char*)NULL };
320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
322  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
323  */
324 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
325      "AAB_fd_zero_asm_posix_types_h";
328  *  File name selection pattern
329  */
330 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
331   "asm/posix_types.h\0";
333  *  Machine/OS name selection pattern
334  */
335 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
336         "i[34567]86-*-linux*",
337         (const char*)NULL };
340  *  content bypass pattern - skip fix if pattern found
341  */
342 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
343        "} while";
344 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
345        "x86_64";
346 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
347        "posix_types_64";
349 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  3
350 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
351   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
352   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
353   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
356  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
357  */
358 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
359 "/* This file fixes a bug in the __FD_ZERO macro\n\
360    for older versions of the Linux kernel. */\n\
361 #ifndef _POSIX_TYPES_H_WRAPPER\n\
362 #include <features.h>\n\
363  #include_next <asm/posix_types.h>\n\n\
364 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
365 #undef __FD_ZERO\n\
366 #define __FD_ZERO(fdsetp) \\\n\
367   do { \\\n\
368     int __d0, __d1; \\\n\
369 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
370 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
371 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
372   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
373   } while (0)\n\
374 #endif\n\n\
375 #define _POSIX_TYPES_H_WRAPPER\n\
376 #endif /* _POSIX_TYPES_H_WRAPPER */",
377     (char*)NULL };
379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
381  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
382  */
383 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
384      "AAB_fd_zero_gnu_types_h";
387  *  File name selection pattern
388  */
389 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
390   "gnu/types.h\0";
392  *  Machine/OS name selection pattern
393  */
394 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
395         "i[34567]86-*-linux*",
396         (const char*)NULL };
397 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
398 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
401  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
402  */
403 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
404 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
405 #ifndef _TYPES_H_WRAPPER\n\
406 #include <features.h>\n\
407 #include_next <gnu/types.h>\n\n\
408 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
409 #undef __FD_ZERO\n\
410 # define __FD_ZERO(fdsetp) \\\n\
411   do { \\\n\
412     int __d0, __d1; \\\n\
413         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
414         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
415         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
416           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
417   } while (0)\n\
418 #endif\n\n\
419 #define _TYPES_H_WRAPPER\n\
420 #endif /* _TYPES_H_WRAPPER */",
421     (char*)NULL };
423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
425  *  Description of Aab_Fd_Zero_Selectbits_H fix
426  */
427 tSCC zAab_Fd_Zero_Selectbits_HName[] =
428      "AAB_fd_zero_selectbits_h";
431  *  File name selection pattern
432  */
433 tSCC zAab_Fd_Zero_Selectbits_HList[] =
434   "selectbits.h\0";
436  *  Machine/OS name selection pattern
437  */
438 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
439         "i[34567]86-*-linux*",
440         (const char*)NULL };
441 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
442 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
445  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
446  */
447 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
448 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
449 #ifndef _SELECTBITS_H_WRAPPER\n\
450   #include <features.h>\n\
451   #include_next <selectbits.h>\n\n\
452   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
453   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
454   && __GLIBC_MINOR__ == 0\n\
455      #undef __FD_ZERO\n\
456      #define __FD_ZERO(fdsetp) \\\\\n\
457      do { \\\\\n\
458         int __d0, __d1; \\\\\n\
459       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
460                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
461                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
462                                         / sizeof (__fd_mask)), \\\\\n\
463                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
464                         : \"memory\"); \\\\\n\
465       } while (0)\n\
466   #endif\n\n\
467   #define _SELECTBITS_H_WRAPPER\n\
468 #endif /* _SELECTBITS_H_WRAPPER */",
469     (char*)NULL };
471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
473  *  Description of Aab_Solaris_Sys_Varargs_H fix
474  */
475 tSCC zAab_Solaris_Sys_Varargs_HName[] =
476      "AAB_solaris_sys_varargs_h";
479  *  File name selection pattern
480  */
481 tSCC zAab_Solaris_Sys_Varargs_HList[] =
482   "sys/varargs.h\0";
484  *  Machine/OS name selection pattern
485  */
486 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
487         "*-*-solaris*",
488         (const char*)NULL };
489 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
490 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
493  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
494  */
495 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
496 "#ifdef __STDC__\n\
497   #include <stdarg.h>\n\
498 #else\n\
499   #include <varargs.h>\n\
500 #endif",
501     (char*)NULL };
503 /* * * * * * * * * * * * * * * * * * * * * * * * * *
505  *  Description of Aab_Sun_Memcpy fix
506  */
507 tSCC zAab_Sun_MemcpyName[] =
508      "AAB_sun_memcpy";
511  *  File name selection pattern
512  */
513 tSCC zAab_Sun_MemcpyList[] =
514   "memory.h\0";
516  *  Machine/OS name selection pattern
517  */
518 #define apzAab_Sun_MemcpyMachs (const char**)NULL
521  *  content selection pattern - do fix if pattern found
522  */
523 tSCC zAab_Sun_MemcpySelect0[] =
524        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
526 #define    AAB_SUN_MEMCPY_TEST_CT  1
527 static tTestDesc aAab_Sun_MemcpyTests[] = {
528   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
531  *  Fix Command Arguments for Aab_Sun_Memcpy
532  */
533 static const char* apzAab_Sun_MemcpyPatch[] = {
534 "/* This file was generated by fixincludes */\n\
535 #ifndef __memory_h__\n\
536   #define __memory_h__\n\n\
537   #ifdef __STDC__\n\
538     extern void *memccpy();\n\
539     extern void *memchr();\n\
540     extern void *memcpy();\n\
541     extern void *memset();\n\
542   #else\n\
543     extern char *memccpy();\n\
544     extern char *memchr();\n\
545     extern char *memcpy();\n\
546     extern char *memset();\n\
547   #endif /* __STDC__ */\n\n\
548   extern int memcmp();\n\n\
549 #endif /* __memory_h__ */",
550     (char*)NULL };
552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
554  *  Description of Aab_Vxworks_Assert fix
555  */
556 tSCC zAab_Vxworks_AssertName[] =
557      "AAB_vxworks_assert";
560  *  File name selection pattern
561  */
562 tSCC zAab_Vxworks_AssertList[] =
563   "assert.h\0";
565  *  Machine/OS name selection pattern
566  */
567 tSCC* apzAab_Vxworks_AssertMachs[] = {
568         "*-*-vxworks*",
569         (const char*)NULL };
570 #define AAB_VXWORKS_ASSERT_TEST_CT  0
571 #define aAab_Vxworks_AssertTests   (tTestDesc*)NULL
574  *  Fix Command Arguments for Aab_Vxworks_Assert
575  */
576 static const char* apzAab_Vxworks_AssertPatch[] = {
577 "#ifdef _ASSERT_H\n\
578 #undef _ASSERT_H\n\
579 #undef assert\n\
580 #endif\n\n\
581 #define _ASSERT_H\n\n\
582 #ifdef __cplusplus\n\
583 extern \"C\" {\n\
584 #endif\n\n\
585 #if defined(__STDC__) || defined(__cplusplus)\n\
586 extern void __assert (const char*);\n\
587 #else\n\
588 extern void __assert ();\n\
589 #endif\n\n\
590 #ifdef NDEBUG\n\
591 #define assert(ign) ((void)0)\n\
592 #else\n\n\
593 #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
594 #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
595 #define assert(test) ((void) \\\n\
596         ((test) ? ((void)0) : \\\n\
597         __assert(\"Assertion failed: \" #test \", file \" \\\n\
598         __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
599 #endif\n\n\
600 #ifdef __cplusplus\n\
601 }\n\
602 #endif",
603     (char*)NULL };
605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
607  *  Description of Aab_Vxworks_Regs_Vxtypes fix
608  */
609 tSCC zAab_Vxworks_Regs_VxtypesName[] =
610      "AAB_vxworks_regs_vxtypes";
613  *  File name selection pattern
614  */
615 tSCC zAab_Vxworks_Regs_VxtypesList[] =
616   "regs.h\0";
618  *  Machine/OS name selection pattern
619  */
620 tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
621         "*-*-vxworks*",
622         (const char*)NULL };
623 #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT  0
624 #define aAab_Vxworks_Regs_VxtypesTests   (tTestDesc*)NULL
627  *  Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
628  */
629 static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
630 "#ifndef _REGS_H\n\
631 #define _REGS_H\n\
632 /* regs.h depends on CPU_FAMILY being properly defined, which\n\
633    is done by vxCpu.h.  */\n\
634 #include <types/vxCpu.h>\n\
635 /* regs.h includes a CPU_FAMILY-specific header that requires\n\
636    vxTypesOld.h to already have been included.  Those headers\n\
637    contain proper _ASMLANGUAGE guards around their typedefs,\n\
638    but vxTypesOld.h itself does not. So we avoid including\n\
639    vxTypesOld.h from assembly.  */\n\
640 #ifndef _ASMLANGUAGE\n\
641 #include <types/vxTypesOld.h>\n\
642 #endif\n\
643 #include_next <arch/../regs.h>\n\
644 #endif",
645     (char*)NULL };
647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
649  *  Description of Aab_Vxworks_Unistd fix
650  */
651 tSCC zAab_Vxworks_UnistdName[] =
652      "AAB_vxworks_unistd";
655  *  File name selection pattern
656  */
657 tSCC zAab_Vxworks_UnistdList[] =
658   "unistd.h\0";
660  *  Machine/OS name selection pattern
661  */
662 tSCC* apzAab_Vxworks_UnistdMachs[] = {
663         "*-*-vxworks*",
664         (const char*)NULL };
665 #define AAB_VXWORKS_UNISTD_TEST_CT  0
666 #define aAab_Vxworks_UnistdTests   (tTestDesc*)NULL
669  *  Fix Command Arguments for Aab_Vxworks_Unistd
670  */
671 static const char* apzAab_Vxworks_UnistdPatch[] = {
672 "#ifndef _UNISTD_H\n\
673 #define _UNISTD_H\n\
674 #include_next <unistd.h>\n\
675 #include <ioLib.h>\n\
676 #ifndef STDIN_FILENO\n\
677 #define STDIN_FILENO 0\n\
678 #endif\n\
679 #ifndef STDOUT_FILENO\n\
680 #define STDOUT_FILENO 1\n\
681 #endif\n\
682 #ifndef STDERR_FILENO\n\
683 #define STDERR_FILENO 2\n\
684 #endif\n\
685 #endif /* _UNISTD_H */",
686     (char*)NULL };
688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
690  *  Description of Aix_Assert fix
691  */
692 tSCC zAix_AssertName[] =
693      "aix_assert";
696  *  File name selection pattern
697  */
698 tSCC zAix_AssertList[] =
699   "assert.h\0";
701  *  Machine/OS name selection pattern
702  */
703 tSCC* apzAix_AssertMachs[] = {
704         "*-*-aix*",
705         (const char*)NULL };
708  *  content selection pattern - do fix if pattern found
709  */
710 tSCC zAix_AssertSelect0[] =
711        "#define[ \t]static_assert[ \t]_Static_assert";
713 #define    AIX_ASSERT_TEST_CT  1
714 static tTestDesc aAix_AssertTests[] = {
715   { TT_EGREP,    zAix_AssertSelect0, (regex_t*)NULL }, };
718  *  Fix Command Arguments for Aix_Assert
719  */
720 static const char* apzAix_AssertPatch[] = {
721     "format",
722     "#ifndef __cplusplus\n\
723 %0\n\
724 #endif",
725     (char*)NULL };
727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
729  *  Description of Aix_Complex fix
730  */
731 tSCC zAix_ComplexName[] =
732      "aix_complex";
735  *  File name selection pattern
736  */
737 tSCC zAix_ComplexList[] =
738   "complex.h\0";
740  *  Machine/OS name selection pattern
741  */
742 tSCC* apzAix_ComplexMachs[] = {
743         "*-*-aix*",
744         (const char*)NULL };
747  *  content selection pattern - do fix if pattern found
748  */
749 tSCC zAix_ComplexSelect0[] =
750        "#define[ \t]_Complex_I[ \t]__I";
752 #define    AIX_COMPLEX_TEST_CT  1
753 static tTestDesc aAix_ComplexTests[] = {
754   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
757  *  Fix Command Arguments for Aix_Complex
758  */
759 static const char* apzAix_ComplexPatch[] = {
760     "format",
761     "#define _Complex_I (__extension__ 1.0iF)",
762     (char*)NULL };
764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
766  *  Description of Aix_Externc fix
767  */
768 tSCC zAix_ExterncName[] =
769      "aix_externc";
772  *  File name selection pattern
773  */
774 tSCC zAix_ExterncList[] =
775   "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0";
777  *  Machine/OS name selection pattern
778  */
779 tSCC* apzAix_ExterncMachs[] = {
780         "*-*-aix*",
781         (const char*)NULL };
784  *  content bypass pattern - skip fix if pattern found
785  */
786 tSCC zAix_ExterncBypass0[] =
787        "extern \"C\"";
789 #define    AIX_EXTERNC_TEST_CT  1
790 static tTestDesc aAix_ExterncTests[] = {
791   { TT_NEGREP,   zAix_ExterncBypass0, (regex_t*)NULL }, };
794  *  Fix Command Arguments for Aix_Externc
795  */
796 static const char* apzAix_ExterncPatch[] = {
797     "wrap",
798     "#ifdef __cplusplus\n\
799 extern \"C\" {\n\
800 #endif\n",
801     "#ifdef __cplusplus\n\
802 }\n\
803 #endif\n",
804     (char*)NULL };
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808  *  Description of Aix_Externcpp1 fix
809  */
810 tSCC zAix_Externcpp1Name[] =
811      "aix_externcpp1";
814  *  File name selection pattern
815  */
816 tSCC zAix_Externcpp1List[] =
817   "sys/socket.h\0";
819  *  Machine/OS name selection pattern
820  */
821 tSCC* apzAix_Externcpp1Machs[] = {
822         "*-*-aix*",
823         (const char*)NULL };
826  *  content selection pattern - do fix if pattern found
827  */
828 tSCC zAix_Externcpp1Select0[] =
829        "#ifndef _KERNEL\n\
830 #ifdef __cplusplus\n\
831 extern \"C\" int naccept\\(int, struct sockaddr \\*, socklen_t \\*\\);";
833 #define    AIX_EXTERNCPP1_TEST_CT  1
834 static tTestDesc aAix_Externcpp1Tests[] = {
835   { TT_EGREP,    zAix_Externcpp1Select0, (regex_t*)NULL }, };
838  *  Fix Command Arguments for Aix_Externcpp1
839  */
840 static const char* apzAix_Externcpp1Patch[] = {
841     "format",
842     "#ifndef _KERNEL\n\
843 #ifdef __cplusplus\n\
844 extern \"C++\" {\n\
845 extern \"C\" int naccept(int, struct sockaddr *, socklen_t *);",
846     (char*)NULL };
848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
850  *  Description of Aix_Externcpp2 fix
851  */
852 tSCC zAix_Externcpp2Name[] =
853      "aix_externcpp2";
856  *  File name selection pattern
857  */
858 tSCC zAix_Externcpp2List[] =
859   "sys/socket.h\0";
861  *  Machine/OS name selection pattern
862  */
863 tSCC* apzAix_Externcpp2Machs[] = {
864         "*-*-aix*",
865         (const char*)NULL };
868  *  content selection pattern - do fix if pattern found
869  */
870 tSCC zAix_Externcpp2Select0[] =
871        "#endif /\\* COMPAT_43 \\*/\n\
872 #else  /\\* __cplusplus \\*/";
874 #define    AIX_EXTERNCPP2_TEST_CT  1
875 static tTestDesc aAix_Externcpp2Tests[] = {
876   { TT_EGREP,    zAix_Externcpp2Select0, (regex_t*)NULL }, };
879  *  Fix Command Arguments for Aix_Externcpp2
880  */
881 static const char* apzAix_Externcpp2Patch[] = {
882     "format",
883     "#endif /* COMPAT_43 */\n\
884 } /* extern \"C++\" */\n\
885 #else  /* __cplusplus */",
886     (char*)NULL };
888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
890  *  Description of Aix_Inttypes fix
891  */
892 tSCC zAix_InttypesName[] =
893      "aix_inttypes";
896  *  File name selection pattern
897  */
898 tSCC zAix_InttypesList[] =
899   "sys/inttypes.h\0";
901  *  Machine/OS name selection pattern
902  */
903 tSCC* apzAix_InttypesMachs[] = {
904         "*-*-aix*",
905         (const char*)NULL };
908  *  content selection pattern - do fix if pattern found
909  */
910 tSCC zAix_InttypesSelect0[] =
911        "#if !defined\\(__cplusplus\\) \\|\\| defined\\(__STDC_FORMAT_MACROS\\)";
913 #define    AIX_INTTYPES_TEST_CT  1
914 static tTestDesc aAix_InttypesTests[] = {
915   { TT_EGREP,    zAix_InttypesSelect0, (regex_t*)NULL }, };
918  *  Fix Command Arguments for Aix_Inttypes
919  */
920 static const char* apzAix_InttypesPatch[] = {
921     "format",
922     "#if 1",
923     (char*)NULL };
925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
927  *  Description of Aix_Malloc fix
928  */
929 tSCC zAix_MallocName[] =
930      "aix_malloc";
933  *  File name selection pattern
934  */
935 tSCC zAix_MallocList[] =
936   "malloc.h\0";
938  *  Machine/OS name selection pattern
939  */
940 tSCC* apzAix_MallocMachs[] = {
941         "*-*-aix*",
942         (const char*)NULL };
945  *  content selection pattern - do fix if pattern found
946  */
947 tSCC zAix_MallocSelect0[] =
948        "#ifdef __cplusplus\n\
949 extern \"C\" \\{\n\
950 [ \t]extern \"builtin\" char \\*__alloca \\(size_t\\);";
952 #define    AIX_MALLOC_TEST_CT  1
953 static tTestDesc aAix_MallocTests[] = {
954   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
957  *  Fix Command Arguments for Aix_Malloc
958  */
959 static const char* apzAix_MallocPatch[] = {
960     "format",
961     "#if (defined(__cplusplus) && defined(__IBMCPP__))\n\
962 extern \"C\" {\n\
963 \textern \"builtin\" char *__alloca (size_t);",
964     (char*)NULL };
966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
968  *  Description of Aix_Net_If_Arp fix
969  */
970 tSCC zAix_Net_If_ArpName[] =
971      "aix_net_if_arp";
974  *  File name selection pattern
975  */
976 tSCC zAix_Net_If_ArpList[] =
977   "net/if_arp.h\0";
979  *  Machine/OS name selection pattern
980  */
981 tSCC* apzAix_Net_If_ArpMachs[] = {
982         "*-*-aix*",
983         (const char*)NULL };
986  *  content selection pattern - do fix if pattern found
987  */
988 tSCC zAix_Net_If_ArpSelect0[] =
989        "^struct  fc_softc \\{";
991 #define    AIX_NET_IF_ARP_TEST_CT  1
992 static tTestDesc aAix_Net_If_ArpTests[] = {
993   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
996  *  Fix Command Arguments for Aix_Net_If_Arp
997  */
998 static const char* apzAix_Net_If_ArpPatch[] = {
999     "format",
1000     "typedef struct _fc_softc {",
1001     (char*)NULL };
1003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1005  *  Description of Aix_Null fix
1006  */
1007 tSCC zAix_NullName[] =
1008      "aix_null";
1011  *  File name selection pattern
1012  */
1013 tSCC zAix_NullList[] =
1014   "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";
1016  *  Machine/OS name selection pattern
1017  */
1018 tSCC* apzAix_NullMachs[] = {
1019         "*-*-aix*",
1020         (const char*)NULL };
1023  *  content selection pattern - do fix if pattern found
1024  */
1025 tSCC zAix_NullSelect0[] =
1026        "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
1029  *  content bypass pattern - skip fix if pattern found
1030  */
1031 tSCC zAix_NullBypass0[] =
1032        "__null";
1034 #define    AIX_NULL_TEST_CT  2
1035 static tTestDesc aAix_NullTests[] = {
1036   { TT_NEGREP,   zAix_NullBypass0, (regex_t*)NULL },
1037   { TT_EGREP,    zAix_NullSelect0, (regex_t*)NULL }, };
1040  *  Fix Command Arguments for Aix_Null
1041  */
1042 static const char* apzAix_NullPatch[] = {
1043     "format",
1044     "#ifndef NULL\n\
1045 #ifdef __cplusplus\n\
1046 #ifdef __GNUG__\n\
1047 #define NULL __null\n\
1048 #else /* ! __GNUG__  */\n\
1049 #define NULL 0L\n\
1050 #endif /* __GNUG__  */\n\
1051 #else /* ! __cplusplus  */\n\
1052 #define NULL ((void *)0)\n\
1053 #endif /* __cplusplus  */\n\
1054 #endif /* !NULL  */",
1055     (char*)NULL };
1057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1059  *  Description of Aix_Once_Init_1 fix
1060  */
1061 tSCC zAix_Once_Init_1Name[] =
1062      "aix_once_init_1";
1065  *  File name selection pattern
1066  */
1067 tSCC zAix_Once_Init_1List[] =
1068   "pthread.h\0";
1070  *  Machine/OS name selection pattern
1071  */
1072 tSCC* apzAix_Once_Init_1Machs[] = {
1073         "*-*-aix*",
1074         (const char*)NULL };
1077  *  content selection pattern - do fix if pattern found
1078  */
1079 tSCC zAix_Once_Init_1Select0[] =
1080        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
1081 \\{ \\\\\n";
1083 #define    AIX_ONCE_INIT_1_TEST_CT  1
1084 static tTestDesc aAix_Once_Init_1Tests[] = {
1085   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
1088  *  Fix Command Arguments for Aix_Once_Init_1
1089  */
1090 static const char* apzAix_Once_Init_1Patch[] = {
1091     "format",
1092     "#define PTHREAD_ONCE_INIT \\\n\
1093 {{ \\\n",
1094     (char*)NULL };
1096 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1098  *  Description of Aix_Once_Init_2 fix
1099  */
1100 tSCC zAix_Once_Init_2Name[] =
1101      "aix_once_init_2";
1104  *  File name selection pattern
1105  */
1106 tSCC zAix_Once_Init_2List[] =
1107   "pthread.h\0";
1109  *  Machine/OS name selection pattern
1110  */
1111 tSCC* apzAix_Once_Init_2Machs[] = {
1112         "*-*-aix*",
1113         (const char*)NULL };
1116  *  content selection pattern - do fix if pattern found
1117  */
1118 tSCC zAix_Once_Init_2Select0[] =
1119        "[ \t]0 \\\\\n\
1120 \\}\n";
1122 #define    AIX_ONCE_INIT_2_TEST_CT  1
1123 static tTestDesc aAix_Once_Init_2Tests[] = {
1124   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1127  *  Fix Command Arguments for Aix_Once_Init_2
1128  */
1129 static const char* apzAix_Once_Init_2Patch[] = {
1130     "format",
1131     "\t0 \\\n\
1132 }}\n",
1133     (char*)NULL };
1135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1137  *  Description of Aix_Mutex_Initializer_1 fix
1138  */
1139 tSCC zAix_Mutex_Initializer_1Name[] =
1140      "aix_mutex_initializer_1";
1143  *  File name selection pattern
1144  */
1145 tSCC zAix_Mutex_Initializer_1List[] =
1146   "pthread.h\0";
1148  *  Machine/OS name selection pattern
1149  */
1150 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1151         "*-*-aix*",
1152         (const char*)NULL };
1155  *  content selection pattern - do fix if pattern found
1156  */
1157 tSCC zAix_Mutex_Initializer_1Select0[] =
1158        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1159 \\{ \\\\\n";
1161 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
1162 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1163   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1166  *  Fix Command Arguments for Aix_Mutex_Initializer_1
1167  */
1168 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1169     "format",
1170     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1171 {{ \\\n",
1172     (char*)NULL };
1174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1176  *  Description of Aix_Cond_Initializer_1 fix
1177  */
1178 tSCC zAix_Cond_Initializer_1Name[] =
1179      "aix_cond_initializer_1";
1182  *  File name selection pattern
1183  */
1184 tSCC zAix_Cond_Initializer_1List[] =
1185   "pthread.h\0";
1187  *  Machine/OS name selection pattern
1188  */
1189 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1190         "*-*-aix*",
1191         (const char*)NULL };
1194  *  content selection pattern - do fix if pattern found
1195  */
1196 tSCC zAix_Cond_Initializer_1Select0[] =
1197        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1198 \\{ \\\\\n";
1200 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
1201 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1202   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1205  *  Fix Command Arguments for Aix_Cond_Initializer_1
1206  */
1207 static const char* apzAix_Cond_Initializer_1Patch[] = {
1208     "format",
1209     "#define PTHREAD_COND_INITIALIZER \\\n\
1210 {{ \\\n",
1211     (char*)NULL };
1213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1215  *  Description of Aix_Rwlock_Initializer_1 fix
1216  */
1217 tSCC zAix_Rwlock_Initializer_1Name[] =
1218      "aix_rwlock_initializer_1";
1221  *  File name selection pattern
1222  */
1223 tSCC zAix_Rwlock_Initializer_1List[] =
1224   "pthread.h\0";
1226  *  Machine/OS name selection pattern
1227  */
1228 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1229         "*-*-aix*",
1230         (const char*)NULL };
1233  *  content selection pattern - do fix if pattern found
1234  */
1235 tSCC zAix_Rwlock_Initializer_1Select0[] =
1236        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1237 \\{ \\\\\n";
1239 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1240 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1241   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1244  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1245  */
1246 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1247     "format",
1248     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1249 {{ \\\n",
1250     (char*)NULL };
1252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1254  *  Description of Aix_Physadr_T fix
1255  */
1256 tSCC zAix_Physadr_TName[] =
1257      "aix_physadr_t";
1260  *  File name selection pattern
1261  */
1262 tSCC zAix_Physadr_TList[] =
1263   "sys/types.h\0";
1265  *  Machine/OS name selection pattern
1266  */
1267 tSCC* apzAix_Physadr_TMachs[] = {
1268         "*-*-aix*",
1269         (const char*)NULL };
1272  *  content selection pattern - do fix if pattern found
1273  */
1274 tSCC zAix_Physadr_TSelect0[] =
1275        "typedef[ \t]*struct[ \t]*([{][^}]*[}][ \t]*\\*[ \t]*physadr_t;)";
1277 #define    AIX_PHYSADR_T_TEST_CT  1
1278 static tTestDesc aAix_Physadr_TTests[] = {
1279   { TT_EGREP,    zAix_Physadr_TSelect0, (regex_t*)NULL }, };
1282  *  Fix Command Arguments for Aix_Physadr_T
1283  */
1284 static const char* apzAix_Physadr_TPatch[] = {
1285     "format",
1286     "typedef struct __physadr_s %1",
1287     (char*)NULL };
1289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1291  *  Description of Aix_Pthread fix
1292  */
1293 tSCC zAix_PthreadName[] =
1294      "aix_pthread";
1297  *  File name selection pattern
1298  */
1299 tSCC zAix_PthreadList[] =
1300   "pthread.h\0";
1302  *  Machine/OS name selection pattern
1303  */
1304 #define apzAix_PthreadMachs (const char**)NULL
1307  *  content selection pattern - do fix if pattern found
1308  */
1309 tSCC zAix_PthreadSelect0[] =
1310        "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\
1311 [^A-Za-z_0-9 \t\n\
1312 (])";
1314 #define    AIX_PTHREAD_TEST_CT  1
1315 static tTestDesc aAix_PthreadTests[] = {
1316   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1319  *  Fix Command Arguments for Aix_Pthread
1320  */
1321 static const char* apzAix_PthreadPatch[] = {
1322     "format",
1323     "%1 %2",
1324     (char*)NULL };
1326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1328  *  Description of Aix_Stdint_1 fix
1329  */
1330 tSCC zAix_Stdint_1Name[] =
1331      "aix_stdint_1";
1334  *  File name selection pattern
1335  */
1336 tSCC zAix_Stdint_1List[] =
1337   "stdint-aix.h\0stdint.h\0";
1339  *  Machine/OS name selection pattern
1340  */
1341 tSCC* apzAix_Stdint_1Machs[] = {
1342         "*-*-aix*",
1343         (const char*)NULL };
1346  *  content selection pattern - do fix if pattern found
1347  */
1348 tSCC zAix_Stdint_1Select0[] =
1349        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1350 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1352 #define    AIX_STDINT_1_TEST_CT  1
1353 static tTestDesc aAix_Stdint_1Tests[] = {
1354   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1357  *  Fix Command Arguments for Aix_Stdint_1
1358  */
1359 static const char* apzAix_Stdint_1Patch[] = {
1360     "format",
1361     "#define UINT8_MAX\t(255)\n\
1362 #define UINT16_MAX\t(65535)",
1363     (char*)NULL };
1365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1367  *  Description of Aix_Stdint_2 fix
1368  */
1369 tSCC zAix_Stdint_2Name[] =
1370      "aix_stdint_2";
1373  *  File name selection pattern
1374  */
1375 tSCC zAix_Stdint_2List[] =
1376   "stdint-aix.h\0stdint.h\0";
1378  *  Machine/OS name selection pattern
1379  */
1380 tSCC* apzAix_Stdint_2Machs[] = {
1381         "*-*-aix*",
1382         (const char*)NULL };
1385  *  content selection pattern - do fix if pattern found
1386  */
1387 tSCC zAix_Stdint_2Select0[] =
1388        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1389 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1390 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1391 #else\n\
1392 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1393 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1394 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1396 #define    AIX_STDINT_2_TEST_CT  1
1397 static tTestDesc aAix_Stdint_2Tests[] = {
1398   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1401  *  Fix Command Arguments for Aix_Stdint_2
1402  */
1403 static const char* apzAix_Stdint_2Patch[] = {
1404     "format",
1405     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1406 #define INTPTR_MAX\t9223372036854775807L\n\
1407 #define UINTPTR_MAX\t18446744073709551615UL\n\
1408 #else\n\
1409 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1410 #define INTPTR_MAX\t2147483647L\n\
1411 #define UINTPTR_MAX\t4294967295UL",
1412     (char*)NULL };
1414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1416  *  Description of Aix_Stdint_3 fix
1417  */
1418 tSCC zAix_Stdint_3Name[] =
1419      "aix_stdint_3";
1422  *  File name selection pattern
1423  */
1424 tSCC zAix_Stdint_3List[] =
1425   "stdint-aix.h\0stdint.h\0";
1427  *  Machine/OS name selection pattern
1428  */
1429 tSCC* apzAix_Stdint_3Machs[] = {
1430         "*-*-aix*",
1431         (const char*)NULL };
1434  *  content selection pattern - do fix if pattern found
1435  */
1436 tSCC zAix_Stdint_3Select0[] =
1437        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1438 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1439 #else\n\
1440 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1441 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1443 #define    AIX_STDINT_3_TEST_CT  1
1444 static tTestDesc aAix_Stdint_3Tests[] = {
1445   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1448  *  Fix Command Arguments for Aix_Stdint_3
1449  */
1450 static const char* apzAix_Stdint_3Patch[] = {
1451     "format",
1452     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1453 #define PTRDIFF_MAX\t9223372036854775807L\n\
1454 #else\n\
1455 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1456 #define PTRDIFF_MAX\t2147483647L",
1457     (char*)NULL };
1459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1461  *  Description of Aix_Stdint_4 fix
1462  */
1463 tSCC zAix_Stdint_4Name[] =
1464      "aix_stdint_4";
1467  *  File name selection pattern
1468  */
1469 tSCC zAix_Stdint_4List[] =
1470   "stdint-aix.h\0stdint.h\0";
1472  *  Machine/OS name selection pattern
1473  */
1474 tSCC* apzAix_Stdint_4Machs[] = {
1475         "*-*-aix*",
1476         (const char*)NULL };
1479  *  content selection pattern - do fix if pattern found
1480  */
1481 tSCC zAix_Stdint_4Select0[] =
1482        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1483 #else\n\
1484 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1486 #define    AIX_STDINT_4_TEST_CT  1
1487 static tTestDesc aAix_Stdint_4Tests[] = {
1488   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1491  *  Fix Command Arguments for Aix_Stdint_4
1492  */
1493 static const char* apzAix_Stdint_4Patch[] = {
1494     "format",
1495     "#define SIZE_MAX\t18446744073709551615UL\n\
1496 #else\n\
1497 #define SIZE_MAX\t4294967295UL",
1498     (char*)NULL };
1500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1502  *  Description of Aix_Stdint_5 fix
1503  */
1504 tSCC zAix_Stdint_5Name[] =
1505      "aix_stdint_5";
1508  *  File name selection pattern
1509  */
1510 tSCC zAix_Stdint_5List[] =
1511   "stdint-aix.h\0stdint.h\0";
1513  *  Machine/OS name selection pattern
1514  */
1515 tSCC* apzAix_Stdint_5Machs[] = {
1516         "*-*-aix*",
1517         (const char*)NULL };
1520  *  content selection pattern - do fix if pattern found
1521  */
1522 tSCC zAix_Stdint_5Select0[] =
1523        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1524 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1526 #define    AIX_STDINT_5_TEST_CT  1
1527 static tTestDesc aAix_Stdint_5Tests[] = {
1528   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1531  *  Fix Command Arguments for Aix_Stdint_5
1532  */
1533 static const char* apzAix_Stdint_5Patch[] = {
1534     "format",
1535     "#define UINT8_C(c)\tc\n\
1536 #define UINT16_C(c)\tc",
1537     (char*)NULL };
1539 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1541  *  Description of Aix_Stdio_Inline fix
1542  */
1543 tSCC zAix_Stdio_InlineName[] =
1544      "aix_stdio_inline";
1547  *  File name selection pattern
1548  */
1549 tSCC zAix_Stdio_InlineList[] =
1550   "stdio.h\0";
1552  *  Machine/OS name selection pattern
1553  */
1554 tSCC* apzAix_Stdio_InlineMachs[] = {
1555         "*-*-aix*",
1556         (const char*)NULL };
1559  *  content selection pattern - do fix if pattern found
1560  */
1561 tSCC zAix_Stdio_InlineSelect0[] =
1562        "#ifdef __cplusplus\\\n\
1563 }\\\n\
1564 \\\n\
1565 #ifdef ferror\\\n";
1567 #define    AIX_STDIO_INLINE_TEST_CT  1
1568 static tTestDesc aAix_Stdio_InlineTests[] = {
1569   { TT_EGREP,    zAix_Stdio_InlineSelect0, (regex_t*)NULL }, };
1572  *  Fix Command Arguments for Aix_Stdio_Inline
1573  */
1574 static const char* apzAix_Stdio_InlinePatch[] = {
1575     "format",
1576     "#ifdef __cplusplus\n\
1577 }\n\
1578 #endif\n\n\
1579 #if (defined(__cplusplus) && defined(__IBMCPP__))\n\
1580 #ifdef ferror\n",
1581     (char*)NULL };
1583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1585  *  Description of Aix_Stdlib_Malloc fix
1586  */
1587 tSCC zAix_Stdlib_MallocName[] =
1588      "aix_stdlib_malloc";
1591  *  File name selection pattern
1592  */
1593 tSCC zAix_Stdlib_MallocList[] =
1594   "stdlib.h\0";
1596  *  Machine/OS name selection pattern
1597  */
1598 tSCC* apzAix_Stdlib_MallocMachs[] = {
1599         "*-*-aix*",
1600         (const char*)NULL };
1603  *  content selection pattern - do fix if pattern found
1604  */
1605 tSCC zAix_Stdlib_MallocSelect0[] =
1606        "#define[ \t]+malloc[ \t]+__linux_malloc";
1608 #define    AIX_STDLIB_MALLOC_TEST_CT  1
1609 static tTestDesc aAix_Stdlib_MallocTests[] = {
1610   { TT_EGREP,    zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, };
1613  *  Fix Command Arguments for Aix_Stdlib_Malloc
1614  */
1615 static const char* apzAix_Stdlib_MallocPatch[] = {
1616     "format",
1617     "extern void *malloc(size_t) __asm__(\"__linux_malloc\");",
1618     (char*)NULL };
1620 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1622  *  Description of Aix_Stdlib_Realloc fix
1623  */
1624 tSCC zAix_Stdlib_ReallocName[] =
1625      "aix_stdlib_realloc";
1628  *  File name selection pattern
1629  */
1630 tSCC zAix_Stdlib_ReallocList[] =
1631   "stdlib.h\0";
1633  *  Machine/OS name selection pattern
1634  */
1635 tSCC* apzAix_Stdlib_ReallocMachs[] = {
1636         "*-*-aix*",
1637         (const char*)NULL };
1640  *  content selection pattern - do fix if pattern found
1641  */
1642 tSCC zAix_Stdlib_ReallocSelect0[] =
1643        "#define[ \t]+realloc[ \t]+__linux_realloc";
1645 #define    AIX_STDLIB_REALLOC_TEST_CT  1
1646 static tTestDesc aAix_Stdlib_ReallocTests[] = {
1647   { TT_EGREP,    zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, };
1650  *  Fix Command Arguments for Aix_Stdlib_Realloc
1651  */
1652 static const char* apzAix_Stdlib_ReallocPatch[] = {
1653     "format",
1654     "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");",
1655     (char*)NULL };
1657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1659  *  Description of Aix_Stdlib_Calloc fix
1660  */
1661 tSCC zAix_Stdlib_CallocName[] =
1662      "aix_stdlib_calloc";
1665  *  File name selection pattern
1666  */
1667 tSCC zAix_Stdlib_CallocList[] =
1668   "stdlib.h\0";
1670  *  Machine/OS name selection pattern
1671  */
1672 tSCC* apzAix_Stdlib_CallocMachs[] = {
1673         "*-*-aix*",
1674         (const char*)NULL };
1677  *  content selection pattern - do fix if pattern found
1678  */
1679 tSCC zAix_Stdlib_CallocSelect0[] =
1680        "#define[ \t]+calloc[ \t]+__linux_calloc";
1682 #define    AIX_STDLIB_CALLOC_TEST_CT  1
1683 static tTestDesc aAix_Stdlib_CallocTests[] = {
1684   { TT_EGREP,    zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, };
1687  *  Fix Command Arguments for Aix_Stdlib_Calloc
1688  */
1689 static const char* apzAix_Stdlib_CallocPatch[] = {
1690     "format",
1691     "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");",
1692     (char*)NULL };
1694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1696  *  Description of Aix_Stdlib_Valloc fix
1697  */
1698 tSCC zAix_Stdlib_VallocName[] =
1699      "aix_stdlib_valloc";
1702  *  File name selection pattern
1703  */
1704 tSCC zAix_Stdlib_VallocList[] =
1705   "stdlib.h\0";
1707  *  Machine/OS name selection pattern
1708  */
1709 tSCC* apzAix_Stdlib_VallocMachs[] = {
1710         "*-*-aix*",
1711         (const char*)NULL };
1714  *  content selection pattern - do fix if pattern found
1715  */
1716 tSCC zAix_Stdlib_VallocSelect0[] =
1717        "#define[ \t]+valloc[ \t]+__linux_valloc";
1719 #define    AIX_STDLIB_VALLOC_TEST_CT  1
1720 static tTestDesc aAix_Stdlib_VallocTests[] = {
1721   { TT_EGREP,    zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, };
1724  *  Fix Command Arguments for Aix_Stdlib_Valloc
1725  */
1726 static const char* apzAix_Stdlib_VallocPatch[] = {
1727     "format",
1728     "extern void *valloc(size_t) __asm__(\"__linux_valloc\");",
1729     (char*)NULL };
1731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1733  *  Description of Aix_Stdlib_Vec_Malloc fix
1734  */
1735 tSCC zAix_Stdlib_Vec_MallocName[] =
1736      "aix_stdlib_vec_malloc";
1739  *  File name selection pattern
1740  */
1741 tSCC zAix_Stdlib_Vec_MallocList[] =
1742   "stdlib.h\0";
1744  *  Machine/OS name selection pattern
1745  */
1746 tSCC* apzAix_Stdlib_Vec_MallocMachs[] = {
1747         "*-*-aix*",
1748         (const char*)NULL };
1751  *  content selection pattern - do fix if pattern found
1752  */
1753 tSCC zAix_Stdlib_Vec_MallocSelect0[] =
1754        "#define[ \t]+malloc[ \t]+vec_malloc";
1756 #define    AIX_STDLIB_VEC_MALLOC_TEST_CT  1
1757 static tTestDesc aAix_Stdlib_Vec_MallocTests[] = {
1758   { TT_EGREP,    zAix_Stdlib_Vec_MallocSelect0, (regex_t*)NULL }, };
1761  *  Fix Command Arguments for Aix_Stdlib_Vec_Malloc
1762  */
1763 static const char* apzAix_Stdlib_Vec_MallocPatch[] = {
1764     "format",
1765     "extern void *malloc(size_t) __asm__(\"vec_malloc\");",
1766     (char*)NULL };
1768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1770  *  Description of Aix_Stdlib_Vec_Calloc fix
1771  */
1772 tSCC zAix_Stdlib_Vec_CallocName[] =
1773      "aix_stdlib_vec_calloc";
1776  *  File name selection pattern
1777  */
1778 tSCC zAix_Stdlib_Vec_CallocList[] =
1779   "stdlib.h\0";
1781  *  Machine/OS name selection pattern
1782  */
1783 tSCC* apzAix_Stdlib_Vec_CallocMachs[] = {
1784         "*-*-aix*",
1785         (const char*)NULL };
1788  *  content selection pattern - do fix if pattern found
1789  */
1790 tSCC zAix_Stdlib_Vec_CallocSelect0[] =
1791        "#define[ \t]+calloc[ \t]+vec_calloc";
1793 #define    AIX_STDLIB_VEC_CALLOC_TEST_CT  1
1794 static tTestDesc aAix_Stdlib_Vec_CallocTests[] = {
1795   { TT_EGREP,    zAix_Stdlib_Vec_CallocSelect0, (regex_t*)NULL }, };
1798  *  Fix Command Arguments for Aix_Stdlib_Vec_Calloc
1799  */
1800 static const char* apzAix_Stdlib_Vec_CallocPatch[] = {
1801     "format",
1802     "extern void *calloc(size_t, size_t) __asm__(\"vec_calloc\");",
1803     (char*)NULL };
1805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1807  *  Description of Aix_Strtof_Const fix
1808  */
1809 tSCC zAix_Strtof_ConstName[] =
1810      "aix_strtof_const";
1813  *  File name selection pattern
1814  */
1815 tSCC zAix_Strtof_ConstList[] =
1816   "stdlib.h\0";
1818  *  Machine/OS name selection pattern
1819  */
1820 tSCC* apzAix_Strtof_ConstMachs[] = {
1821         "*-*-aix*",
1822         (const char*)NULL };
1825  *  content selection pattern - do fix if pattern found
1826  */
1827 tSCC zAix_Strtof_ConstSelect0[] =
1828        "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1830 #define    AIX_STRTOF_CONST_TEST_CT  1
1831 static tTestDesc aAix_Strtof_ConstTests[] = {
1832   { TT_EGREP,    zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1835  *  Fix Command Arguments for Aix_Strtof_Const
1836  */
1837 static const char* apzAix_Strtof_ConstPatch[] = {
1838     "format",
1839     "%1(const char *, char **);",
1840     (char*)NULL };
1842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1844  *  Description of Aix_Sysmachine fix
1845  */
1846 tSCC zAix_SysmachineName[] =
1847      "aix_sysmachine";
1850  *  File name selection pattern
1851  */
1852 tSCC zAix_SysmachineList[] =
1853   "sys/machine.h\0";
1855  *  Machine/OS name selection pattern
1856  */
1857 tSCC* apzAix_SysmachineMachs[] = {
1858         "*-*-aix*",
1859         (const char*)NULL };
1862  *  content selection pattern - do fix if pattern found
1863  */
1864 tSCC zAix_SysmachineSelect0[] =
1865        "\\\\ +\n";
1867 #define    AIX_SYSMACHINE_TEST_CT  1
1868 static tTestDesc aAix_SysmachineTests[] = {
1869   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1872  *  Fix Command Arguments for Aix_Sysmachine
1873  */
1874 static const char* apzAix_SysmachinePatch[] = {
1875     "format",
1876     "\\\n",
1877     (char*)NULL };
1879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1881  *  Description of Aix_Syswait_2 fix
1882  */
1883 tSCC zAix_Syswait_2Name[] =
1884      "aix_syswait_2";
1887  *  File name selection pattern
1888  */
1889 tSCC zAix_Syswait_2List[] =
1890   "sys/wait.h\0";
1892  *  Machine/OS name selection pattern
1893  */
1894 tSCC* apzAix_Syswait_2Machs[] = {
1895         "*-*-aix*",
1896         (const char*)NULL };
1899  *  content selection pattern - do fix if pattern found
1900  */
1901 tSCC zAix_Syswait_2Select0[] =
1902        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1904 #define    AIX_SYSWAIT_2_TEST_CT  1
1905 static tTestDesc aAix_Syswait_2Tests[] = {
1906   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1909  *  Fix Command Arguments for Aix_Syswait_2
1910  */
1911 static const char* apzAix_Syswait_2Patch[] = {
1912     "format",
1913     "? (int)%1",
1914     (char*)NULL };
1916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1918  *  Description of Aix_Volatile fix
1919  */
1920 tSCC zAix_VolatileName[] =
1921      "aix_volatile";
1924  *  File name selection pattern
1925  */
1926 tSCC zAix_VolatileList[] =
1927   "sys/signal.h\0";
1929  *  Machine/OS name selection pattern
1930  */
1931 tSCC* apzAix_VolatileMachs[] = {
1932         "*-*-aix*",
1933         (const char*)NULL };
1936  *  content selection pattern - do fix if pattern found
1937  */
1938 tSCC zAix_VolatileSelect0[] =
1939        "typedef volatile int sig_atomic_t";
1941 #define    AIX_VOLATILE_TEST_CT  1
1942 static tTestDesc aAix_VolatileTests[] = {
1943   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1946  *  Fix Command Arguments for Aix_Volatile
1947  */
1948 static const char* apzAix_VolatilePatch[] = {
1949     "format",
1950     "typedef int sig_atomic_t",
1951     (char*)NULL };
1953 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1955  *  Description of Aix_Unistd fix
1956  */
1957 tSCC zAix_UnistdName[] =
1958      "aix_unistd";
1961  *  File name selection pattern
1962  */
1963 tSCC zAix_UnistdList[] =
1964   "unistd.h\0";
1966  *  Machine/OS name selection pattern
1967  */
1968 tSCC* apzAix_UnistdMachs[] = {
1969         "*-*-aix*",
1970         (const char*)NULL };
1973  *  content selection pattern - do fix if pattern found
1974  */
1975 tSCC zAix_UnistdSelect0[] =
1976        "[ \t]+static[ \t]+int[ \t]+getdtablesize\\(\\)";
1978 #define    AIX_UNISTD_TEST_CT  1
1979 static tTestDesc aAix_UnistdTests[] = {
1980   { TT_EGREP,    zAix_UnistdSelect0, (regex_t*)NULL }, };
1983  *  Fix Command Arguments for Aix_Unistd
1984  */
1985 static const char* apzAix_UnistdPatch[] = {
1986     "format",
1987     "\tstatic int\t\tgetdtablesize(void)",
1988     (char*)NULL };
1990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1992  *  Description of Alpha___Assert fix
1993  */
1994 tSCC zAlpha___AssertName[] =
1995      "alpha___assert";
1998  *  File name selection pattern
1999  */
2000 tSCC zAlpha___AssertList[] =
2001   "assert.h\0";
2003  *  Machine/OS name selection pattern
2004  */
2005 #define apzAlpha___AssertMachs (const char**)NULL
2008  *  content selection pattern - do fix if pattern found
2009  */
2010 tSCC zAlpha___AssertSelect0[] =
2011        "__assert\\(char \\*, char \\*, int\\)";
2013 #define    ALPHA___ASSERT_TEST_CT  1
2014 static tTestDesc aAlpha___AssertTests[] = {
2015   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
2018  *  Fix Command Arguments for Alpha___Assert
2019  */
2020 static const char* apzAlpha___AssertPatch[] = {
2021     "format",
2022     "__assert(const char *, const char *, int)",
2023     (char*)NULL };
2025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2027  *  Description of Alpha_Assert fix
2028  */
2029 tSCC zAlpha_AssertName[] =
2030      "alpha_assert";
2033  *  File name selection pattern
2034  */
2035 tSCC zAlpha_AssertList[] =
2036   "assert.h\0";
2038  *  Machine/OS name selection pattern
2039  */
2040 #define apzAlpha_AssertMachs (const char**)NULL
2043  *  content selection pattern - do fix if pattern found
2044  */
2045 tSCC zAlpha_AssertSelect0[] =
2046        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
2048 #define    ALPHA_ASSERT_TEST_CT  1
2049 static tTestDesc aAlpha_AssertTests[] = {
2050   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
2053  *  Fix Command Arguments for Alpha_Assert
2054  */
2055 static const char* apzAlpha_AssertPatch[] = {
2056     "format",
2057     "%1(EX)",
2058     (char*)NULL };
2060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2062  *  Description of Alpha_Getopt fix
2063  */
2064 tSCC zAlpha_GetoptName[] =
2065      "alpha_getopt";
2068  *  File name selection pattern
2069  */
2070 tSCC zAlpha_GetoptList[] =
2071   "stdio.h\0stdlib.h\0";
2073  *  Machine/OS name selection pattern
2074  */
2075 #define apzAlpha_GetoptMachs (const char**)NULL
2078  *  content selection pattern - do fix if pattern found
2079  */
2080 tSCC zAlpha_GetoptSelect0[] =
2081        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
2083 #define    ALPHA_GETOPT_TEST_CT  1
2084 static tTestDesc aAlpha_GetoptTests[] = {
2085   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
2088  *  Fix Command Arguments for Alpha_Getopt
2089  */
2090 static const char* apzAlpha_GetoptPatch[] = {
2091     "format",
2092     "getopt(int, char *const[], const char *)",
2093     (char*)NULL };
2095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2097  *  Description of Alpha_If_Semicolon fix
2098  */
2099 tSCC zAlpha_If_SemicolonName[] =
2100      "alpha_if_semicolon";
2103  *  File name selection pattern
2104  */
2105 tSCC zAlpha_If_SemicolonList[] =
2106   "net/if.h\0";
2108  *  Machine/OS name selection pattern
2109  */
2110 #define apzAlpha_If_SemicolonMachs (const char**)NULL
2113  *  content selection pattern - do fix if pattern found
2114  */
2115 tSCC zAlpha_If_SemicolonSelect0[] =
2116        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
2118 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
2119 static tTestDesc aAlpha_If_SemicolonTests[] = {
2120   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
2123  *  Fix Command Arguments for Alpha_If_Semicolon
2124  */
2125 static const char* apzAlpha_If_SemicolonPatch[] = {
2126     "format",
2127     "struct sockaddr vmif_paddr;\t/*",
2128     (char*)NULL };
2130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2132  *  Description of Alpha_Parens fix
2133  */
2134 tSCC zAlpha_ParensName[] =
2135      "alpha_parens";
2138  *  File name selection pattern
2139  */
2140 tSCC zAlpha_ParensList[] =
2141   "sym.h\0";
2143  *  Machine/OS name selection pattern
2144  */
2145 #define apzAlpha_ParensMachs (const char**)NULL
2148  *  content selection pattern - do fix if pattern found
2149  */
2150 tSCC zAlpha_ParensSelect0[] =
2151        "#ifndef\\(__mips64\\)";
2153 #define    ALPHA_PARENS_TEST_CT  1
2154 static tTestDesc aAlpha_ParensTests[] = {
2155   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
2158  *  Fix Command Arguments for Alpha_Parens
2159  */
2160 static const char* apzAlpha_ParensPatch[] = {
2161     "format",
2162     "#ifndef __mips64",
2163     (char*)NULL };
2165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2167  *  Description of Alpha_Sbrk fix
2168  */
2169 tSCC zAlpha_SbrkName[] =
2170      "alpha_sbrk";
2173  *  File name selection pattern
2174  */
2175 tSCC zAlpha_SbrkList[] =
2176   "unistd.h\0";
2178  *  Machine/OS name selection pattern
2179  */
2180 #define apzAlpha_SbrkMachs (const char**)NULL
2183  *  content selection pattern - do fix if pattern found
2184  */
2185 tSCC zAlpha_SbrkSelect0[] =
2186        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
2188 #define    ALPHA_SBRK_TEST_CT  1
2189 static tTestDesc aAlpha_SbrkTests[] = {
2190   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
2193  *  Fix Command Arguments for Alpha_Sbrk
2194  */
2195 static const char* apzAlpha_SbrkPatch[] = {
2196     "format",
2197     "void *sbrk(",
2198     (char*)NULL };
2200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2202  *  Description of Avoid_Bool_Define fix
2203  */
2204 tSCC zAvoid_Bool_DefineName[] =
2205      "avoid_bool_define";
2208  *  File name selection pattern
2209  */
2210 tSCC zAvoid_Bool_DefineList[] =
2211   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2213  *  Machine/OS name selection pattern
2214  */
2215 #define apzAvoid_Bool_DefineMachs (const char**)NULL
2218  *  content selection pattern - do fix if pattern found
2219  */
2220 tSCC zAvoid_Bool_DefineSelect0[] =
2221        "#[ \t]*define[ \t]+bool[ \t]";
2224  *  content bypass pattern - skip fix if pattern found
2225  */
2226 tSCC zAvoid_Bool_DefineBypass0[] =
2227        "__cplusplus";
2229 #define    AVOID_BOOL_DEFINE_TEST_CT  2
2230 static tTestDesc aAvoid_Bool_DefineTests[] = {
2231   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
2232   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
2235  *  Fix Command Arguments for Avoid_Bool_Define
2236  */
2237 static const char* apzAvoid_Bool_DefinePatch[] = {
2238     "format",
2239     "#ifndef __cplusplus\n\
2240 %0\n\
2241 #endif",
2242     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
2243     (char*)NULL };
2245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2247  *  Description of Avoid_Bool_Type fix
2248  */
2249 tSCC zAvoid_Bool_TypeName[] =
2250      "avoid_bool_type";
2253  *  File name selection pattern
2254  */
2255 tSCC zAvoid_Bool_TypeList[] =
2256   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2258  *  Machine/OS name selection pattern
2259  */
2260 #define apzAvoid_Bool_TypeMachs (const char**)NULL
2263  *  content selection pattern - do fix if pattern found
2264  */
2265 tSCC zAvoid_Bool_TypeSelect0[] =
2266        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
2269  *  content bypass pattern - skip fix if pattern found
2270  */
2271 tSCC zAvoid_Bool_TypeBypass0[] =
2272        "__cplusplus";
2274 #define    AVOID_BOOL_TYPE_TEST_CT  2
2275 static tTestDesc aAvoid_Bool_TypeTests[] = {
2276   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
2277   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
2280  *  Fix Command Arguments for Avoid_Bool_Type
2281  */
2282 static const char* apzAvoid_Bool_TypePatch[] = {
2283     "format",
2284     "#ifndef __cplusplus\n\
2285 %0\n\
2286 #endif",
2287     (char*)NULL };
2289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2291  *  Description of Avoid_Wchar_T_Type fix
2292  */
2293 tSCC zAvoid_Wchar_T_TypeName[] =
2294      "avoid_wchar_t_type";
2297  *  File name selection pattern
2298  */
2299 #define zAvoid_Wchar_T_TypeList (char*)NULL
2301  *  Machine/OS name selection pattern
2302  */
2303 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
2306  *  content selection pattern - do fix if pattern found
2307  */
2308 tSCC zAvoid_Wchar_T_TypeSelect0[] =
2309        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
2312  *  content bypass pattern - skip fix if pattern found
2313  */
2314 tSCC zAvoid_Wchar_T_TypeBypass0[] =
2315        "__cplusplus";
2316 tSCC zAvoid_Wchar_T_TypeBypass1[] =
2317        "_LINUX_NLS_H";
2318 tSCC zAvoid_Wchar_T_TypeBypass2[] =
2319        "XFree86: xc/lib/X11/Xlib\\.h";
2321 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
2322 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
2323   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
2324   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
2325   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
2326   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
2329  *  Fix Command Arguments for Avoid_Wchar_T_Type
2330  */
2331 static const char* apzAvoid_Wchar_T_TypePatch[] = {
2332     "format",
2333     "#ifndef __cplusplus\n\
2334 %0\n\
2335 #endif",
2336     (char*)NULL };
2338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2340  *  Description of Bad_Struct_Term fix
2341  */
2342 tSCC zBad_Struct_TermName[] =
2343      "bad_struct_term";
2346  *  File name selection pattern
2347  */
2348 tSCC zBad_Struct_TermList[] =
2349   "curses.h\0";
2351  *  Machine/OS name selection pattern
2352  */
2353 #define apzBad_Struct_TermMachs (const char**)NULL
2356  *  content selection pattern - do fix if pattern found
2357  */
2358 tSCC zBad_Struct_TermSelect0[] =
2359        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
2361 #define    BAD_STRUCT_TERM_TEST_CT  1
2362 static tTestDesc aBad_Struct_TermTests[] = {
2363   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
2366  *  Fix Command Arguments for Bad_Struct_Term
2367  */
2368 static const char* apzBad_Struct_TermPatch[] = {
2369     "format",
2370     "struct term;",
2371     (char*)NULL };
2373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2375  *  Description of Badquote fix
2376  */
2377 tSCC zBadquoteName[] =
2378      "badquote";
2381  *  File name selection pattern
2382  */
2383 tSCC zBadquoteList[] =
2384   "sundev/vuid_event.h\0";
2386  *  Machine/OS name selection pattern
2387  */
2388 #define apzBadquoteMachs (const char**)NULL
2391  *  content selection pattern - do fix if pattern found
2392  */
2393 tSCC zBadquoteSelect0[] =
2394        "doesn't";
2396 #define    BADQUOTE_TEST_CT  1
2397 static tTestDesc aBadquoteTests[] = {
2398   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
2401  *  Fix Command Arguments for Badquote
2402  */
2403 static const char* apzBadquotePatch[] = {
2404     "format",
2405     "does not",
2406     (char*)NULL };
2408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2410  *  Description of Broken_Assert_Stdio fix
2411  */
2412 tSCC zBroken_Assert_StdioName[] =
2413      "broken_assert_stdio";
2416  *  File name selection pattern
2417  */
2418 tSCC zBroken_Assert_StdioList[] =
2419   "assert.h\0";
2421  *  Machine/OS name selection pattern
2422  */
2423 #define apzBroken_Assert_StdioMachs (const char**)NULL
2426  *  content selection pattern - do fix if pattern found
2427  */
2428 tSCC zBroken_Assert_StdioSelect0[] =
2429        "stderr";
2432  *  content bypass pattern - skip fix if pattern found
2433  */
2434 tSCC zBroken_Assert_StdioBypass0[] =
2435        "include.*stdio\\.h";
2437 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
2438 static tTestDesc aBroken_Assert_StdioTests[] = {
2439   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
2440   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
2443  *  Fix Command Arguments for Broken_Assert_Stdio
2444  */
2445 static const char* apzBroken_Assert_StdioPatch[] = {
2446     "wrap",
2447     "#include <stdio.h>\n",
2448     (char*)NULL };
2450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2452  *  Description of Broken_Assert_Stdlib fix
2453  */
2454 tSCC zBroken_Assert_StdlibName[] =
2455      "broken_assert_stdlib";
2458  *  File name selection pattern
2459  */
2460 tSCC zBroken_Assert_StdlibList[] =
2461   "assert.h\0";
2463  *  Machine/OS name selection pattern
2464  */
2465 #define apzBroken_Assert_StdlibMachs (const char**)NULL
2468  *  content selection pattern - do fix if pattern found
2469  */
2470 tSCC zBroken_Assert_StdlibSelect0[] =
2471        "exit *\\(|abort *\\(";
2474  *  content bypass pattern - skip fix if pattern found
2475  */
2476 tSCC zBroken_Assert_StdlibBypass0[] =
2477        "include.*stdlib\\.h";
2479 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
2480 static tTestDesc aBroken_Assert_StdlibTests[] = {
2481   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2482   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
2485  *  Fix Command Arguments for Broken_Assert_Stdlib
2486  */
2487 static const char* apzBroken_Assert_StdlibPatch[] = {
2488     "wrap",
2489     "#ifdef __cplusplus\n\
2490 #include <stdlib.h>\n\
2491 #endif\n",
2492     (char*)NULL };
2494 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2496  *  Description of Broken_Cabs fix
2497  */
2498 tSCC zBroken_CabsName[] =
2499      "broken_cabs";
2502  *  File name selection pattern
2503  */
2504 tSCC zBroken_CabsList[] =
2505   "math.h\0architecture/*/math.h\0";
2507  *  Machine/OS name selection pattern
2508  */
2509 #define apzBroken_CabsMachs (const char**)NULL
2512  *  content selection pattern - do fix if pattern found
2513  */
2514 tSCC zBroken_CabsSelect0[] =
2515        "^extern[ \t]+double[ \t]+cabs";
2517 #define    BROKEN_CABS_TEST_CT  1
2518 static tTestDesc aBroken_CabsTests[] = {
2519   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2522  *  Fix Command Arguments for Broken_Cabs
2523  */
2524 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2525     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2526     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2527     (char*)NULL };
2529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2531  *  Description of Broken_Nan fix
2532  */
2533 tSCC zBroken_NanName[] =
2534      "broken_nan";
2537  *  File name selection pattern
2538  */
2539 tSCC zBroken_NanList[] =
2540   "architecture/ppc/math.h\0architecture/*/math.h\0";
2542  *  Machine/OS name selection pattern
2543  */
2544 #define apzBroken_NanMachs (const char**)NULL
2547  *  content selection pattern - do fix if pattern found
2548  */
2549 tSCC zBroken_NanSelect0[] =
2550        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2553  *  content bypass pattern - skip fix if pattern found
2554  */
2555 tSCC zBroken_NanBypass0[] =
2556        "powl";
2558 #define    BROKEN_NAN_TEST_CT  2
2559 static tTestDesc aBroken_NanTests[] = {
2560   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2561   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2564  *  Fix Command Arguments for Broken_Nan
2565  */
2566 static const char* apzBroken_NanPatch[] = {
2567     "format",
2568     "#if 1",
2569     (char*)NULL };
2571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2573  *  Description of Bsd_Stdio_Attrs_Conflict fix
2574  */
2575 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2576      "bsd_stdio_attrs_conflict";
2579  *  File name selection pattern
2580  */
2581 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2582   "stdio.h\0";
2584  *  Machine/OS name selection pattern
2585  */
2586 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2587         "*-*-*bsd*",
2588         "*-*-*darwin*",
2589         (const char*)NULL };
2592  *  content selection pattern - do fix if pattern found
2593  */
2594 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2595        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2597 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2598 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2599   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2602  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2603  */
2604 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2605     "format",
2606     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2607 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2608 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2609     (char*)NULL };
2611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2613  *  Description of Ctrl_Quotes_Def fix
2614  */
2615 tSCC zCtrl_Quotes_DefName[] =
2616      "ctrl_quotes_def";
2619  *  File name selection pattern
2620  */
2621 #define zCtrl_Quotes_DefList (char*)NULL
2623  *  Machine/OS name selection pattern
2624  */
2625 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2628  *  content selection pattern - do fix if pattern found
2629  */
2630 tSCC zCtrl_Quotes_DefSelect0[] =
2631        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2633 #define    CTRL_QUOTES_DEF_TEST_CT  1
2634 static tTestDesc aCtrl_Quotes_DefTests[] = {
2635   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2638  *  Fix Command Arguments for Ctrl_Quotes_Def
2639  */
2640 static const char* apzCtrl_Quotes_DefPatch[] = {
2641     "char_macro_def",
2642     "CTRL",
2643     (char*)NULL };
2645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2647  *  Description of Ctrl_Quotes_Use fix
2648  */
2649 tSCC zCtrl_Quotes_UseName[] =
2650      "ctrl_quotes_use";
2653  *  File name selection pattern
2654  */
2655 #define zCtrl_Quotes_UseList (char*)NULL
2657  *  Machine/OS name selection pattern
2658  */
2659 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2662  *  content selection pattern - do fix if pattern found
2663  */
2664 tSCC zCtrl_Quotes_UseSelect0[] =
2665        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2667 #define    CTRL_QUOTES_USE_TEST_CT  1
2668 static tTestDesc aCtrl_Quotes_UseTests[] = {
2669   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2672  *  Fix Command Arguments for Ctrl_Quotes_Use
2673  */
2674 static const char* apzCtrl_Quotes_UsePatch[] = {
2675     "char_macro_use",
2676     "CTRL",
2677     (char*)NULL };
2679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2681  *  Description of Cxx_Unready fix
2682  */
2683 tSCC zCxx_UnreadyName[] =
2684      "cxx_unready";
2687  *  File name selection pattern
2688  */
2689 tSCC zCxx_UnreadyList[] =
2690   "sys/mman.h\0rpc/types.h\0";
2692  *  Machine/OS name selection pattern
2693  */
2694 #define apzCxx_UnreadyMachs (const char**)NULL
2697  *  content selection pattern - do fix if pattern found
2698  */
2699 tSCC zCxx_UnreadySelect0[] =
2700        "[^#]+malloc.*;";
2703  *  content bypass pattern - skip fix if pattern found
2704  */
2705 tSCC zCxx_UnreadyBypass0[] =
2706        "\"C\"|__BEGIN_DECLS";
2708 #define    CXX_UNREADY_TEST_CT  2
2709 static tTestDesc aCxx_UnreadyTests[] = {
2710   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2711   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2714  *  Fix Command Arguments for Cxx_Unready
2715  */
2716 static const char* apzCxx_UnreadyPatch[] = {
2717     "wrap",
2718     "#ifdef __cplusplus\n\
2719 extern \"C\" {\n\
2720 #endif\n",
2721     "#ifdef __cplusplus\n\
2722 }\n\
2723 #endif\n",
2724     (char*)NULL };
2726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2728  *  Description of Darwin_Availabilityinternal fix
2729  */
2730 tSCC zDarwin_AvailabilityinternalName[] =
2731      "darwin_availabilityinternal";
2734  *  File name selection pattern
2735  */
2736 tSCC zDarwin_AvailabilityinternalList[] =
2737   "AvailabilityInternal.h\0";
2739  *  Machine/OS name selection pattern
2740  */
2741 tSCC* apzDarwin_AvailabilityinternalMachs[] = {
2742         "*-*-darwin*",
2743         (const char*)NULL };
2746  *  content selection pattern - do fix if pattern found
2747  */
2748 tSCC zDarwin_AvailabilityinternalSelect0[] =
2749        "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*";
2751 #define    DARWIN_AVAILABILITYINTERNAL_TEST_CT  1
2752 static tTestDesc aDarwin_AvailabilityinternalTests[] = {
2753   { TT_EGREP,    zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, };
2756  *  Fix Command Arguments for Darwin_Availabilityinternal
2757  */
2758 static const char* apzDarwin_AvailabilityinternalPatch[] = {
2759     "format",
2760     "#if defined(__has_attribute)\n\
2761   #if __has_attribute(availability)\n\
2762 %0\n\
2763   #else\n\
2764     #define %1\n\
2765   #endif\n\
2766 #else\n\
2767     #define %1\n\
2768 #endif",
2769     (char*)NULL };
2771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2773  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2774  */
2775 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2776      "darwin_9_long_double_funcs_2";
2779  *  File name selection pattern
2780  */
2781 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2782   "math.h\0";
2784  *  Machine/OS name selection pattern
2785  */
2786 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2787         "*-*-darwin*",
2788         (const char*)NULL };
2791  *  content selection pattern - do fix if pattern found
2792  */
2793 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2794        "#include[ \\t]+\\\"";
2796 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2797 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2798   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2801  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2802  */
2803 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2804     "format",
2805     "%1<%2.h>",
2806     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2807     (char*)NULL };
2809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2811  *  Description of Darwin_Externc fix
2812  */
2813 tSCC zDarwin_ExterncName[] =
2814      "darwin_externc";
2817  *  File name selection pattern
2818  */
2819 tSCC zDarwin_ExterncList[] =
2820   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2822  *  Machine/OS name selection pattern
2823  */
2824 tSCC* apzDarwin_ExterncMachs[] = {
2825         "*-*-darwin*",
2826         (const char*)NULL };
2829  *  content bypass pattern - skip fix if pattern found
2830  */
2831 tSCC zDarwin_ExterncBypass0[] =
2832        "extern \"C\"";
2833 tSCC zDarwin_ExterncBypass1[] =
2834        "__BEGIN_DECLS";
2836 #define    DARWIN_EXTERNC_TEST_CT  2
2837 static tTestDesc aDarwin_ExterncTests[] = {
2838   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2839   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2842  *  Fix Command Arguments for Darwin_Externc
2843  */
2844 static const char* apzDarwin_ExterncPatch[] = {
2845     "wrap",
2846     "#ifdef __cplusplus\n\
2847 extern \"C\" {\n\
2848 #endif\n",
2849     "#ifdef __cplusplus\n\
2850 }\n\
2851 #endif\n",
2852     (char*)NULL };
2854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2856  *  Description of Darwin_Gcc4_Breakage fix
2857  */
2858 tSCC zDarwin_Gcc4_BreakageName[] =
2859      "darwin_gcc4_breakage";
2862  *  File name selection pattern
2863  */
2864 tSCC zDarwin_Gcc4_BreakageList[] =
2865   "AvailabilityMacros.h\0";
2867  *  Machine/OS name selection pattern
2868  */
2869 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2870         "*-*-darwin*",
2871         (const char*)NULL };
2874  *  content selection pattern - do fix if pattern found
2875  */
2876 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2877        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2879 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2880 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2881   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2884  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2885  */
2886 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2887     "format",
2888     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2889     (char*)NULL };
2891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2893  *  Description of Darwin_Ll_Funcs_Avail fix
2894  */
2895 tSCC zDarwin_Ll_Funcs_AvailName[] =
2896      "darwin_ll_funcs_avail";
2899  *  File name selection pattern
2900  */
2901 tSCC zDarwin_Ll_Funcs_AvailList[] =
2902   "architecture/ppc/math.h\0architecture/i386/math.h\0";
2904  *  Machine/OS name selection pattern
2905  */
2906 tSCC* apzDarwin_Ll_Funcs_AvailMachs[] = {
2907         "*-*-darwin*",
2908         (const char*)NULL };
2911  *  content selection pattern - do fix if pattern found
2912  */
2913 tSCC zDarwin_Ll_Funcs_AvailSelect0[] =
2914        "#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^1]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^)]*";
2916 #define    DARWIN_LL_FUNCS_AVAIL_TEST_CT  1
2917 static tTestDesc aDarwin_Ll_Funcs_AvailTests[] = {
2918   { TT_EGREP,    zDarwin_Ll_Funcs_AvailSelect0, (regex_t*)NULL }, };
2921  *  Fix Command Arguments for Darwin_Ll_Funcs_Avail
2922  */
2923 static const char* apzDarwin_Ll_Funcs_AvailPatch[] = { sed_cmd_z,
2924     "-e", "s/#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^_]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^\\)]*)/#if !(__DARWIN_NO_LONG_LONG)/",
2925     (char*)NULL };
2927 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2929  *  Description of Darwin_Longjmp_Noreturn fix
2930  */
2931 tSCC zDarwin_Longjmp_NoreturnName[] =
2932      "darwin_longjmp_noreturn";
2935  *  File name selection pattern
2936  */
2937 tSCC zDarwin_Longjmp_NoreturnList[] =
2938   "i386/setjmp.h\0";
2940  *  Machine/OS name selection pattern
2941  */
2942 tSCC* apzDarwin_Longjmp_NoreturnMachs[] = {
2943         "*-*-darwin*",
2944         (const char*)NULL };
2947  *  content selection pattern - do fix if pattern found
2948  */
2949 tSCC zDarwin_Longjmp_NoreturnSelect0[] =
2950        "(.*longjmp\\(.*jmp_buf.*[^)]+\\));";
2953  *  content bypass pattern - skip fix if pattern found
2954  */
2955 tSCC zDarwin_Longjmp_NoreturnBypass0[] =
2956        "__dead2";
2958 #define    DARWIN_LONGJMP_NORETURN_TEST_CT  2
2959 static tTestDesc aDarwin_Longjmp_NoreturnTests[] = {
2960   { TT_NEGREP,   zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL },
2961   { TT_EGREP,    zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
2964  *  Fix Command Arguments for Darwin_Longjmp_Noreturn
2965  */
2966 static const char* apzDarwin_Longjmp_NoreturnPatch[] = {
2967     "format",
2968     "%1 __attribute__ ((__noreturn__));",
2969     (char*)NULL };
2971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2973  *  Description of Darwin_Os_Trace_1 fix
2974  */
2975 tSCC zDarwin_Os_Trace_1Name[] =
2976      "darwin_os_trace_1";
2979  *  File name selection pattern
2980  */
2981 tSCC zDarwin_Os_Trace_1List[] =
2982   "os/trace.h\0";
2984  *  Machine/OS name selection pattern
2985  */
2986 tSCC* apzDarwin_Os_Trace_1Machs[] = {
2987         "*-*-darwin*",
2988         (const char*)NULL };
2991  *  content selection pattern - do fix if pattern found
2992  */
2993 tSCC zDarwin_Os_Trace_1Select0[] =
2994        "^(_os_trace_verify_printf.*) (__attribute__.*)";
2996 #define    DARWIN_OS_TRACE_1_TEST_CT  1
2997 static tTestDesc aDarwin_Os_Trace_1Tests[] = {
2998   { TT_EGREP,    zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, };
3001  *  Fix Command Arguments for Darwin_Os_Trace_1
3002  */
3003 static const char* apzDarwin_Os_Trace_1Patch[] = {
3004     "format",
3005     "%1",
3006     (char*)NULL };
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010  *  Description of Darwin_Os_Trace_2 fix
3011  */
3012 tSCC zDarwin_Os_Trace_2Name[] =
3013      "darwin_os_trace_2";
3016  *  File name selection pattern
3017  */
3018 tSCC zDarwin_Os_Trace_2List[] =
3019   "os/trace.h\0";
3021  *  Machine/OS name selection pattern
3022  */
3023 tSCC* apzDarwin_Os_Trace_2Machs[] = {
3024         "*-*-darwin*",
3025         (const char*)NULL };
3028  *  content selection pattern - do fix if pattern found
3029  */
3030 tSCC zDarwin_Os_Trace_2Select0[] =
3031        "typedef.*\\^os_trace_payload_t.*";
3033 #define    DARWIN_OS_TRACE_2_TEST_CT  1
3034 static tTestDesc aDarwin_Os_Trace_2Tests[] = {
3035   { TT_EGREP,    zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, };
3038  *  Fix Command Arguments for Darwin_Os_Trace_2
3039  */
3040 static const char* apzDarwin_Os_Trace_2Patch[] = {
3041     "format",
3042     "#if __BLOCKS__\n\
3043 %0\n\
3044 #endif",
3045     (char*)NULL };
3047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3049  *  Description of Darwin_Os_Trace_3 fix
3050  */
3051 tSCC zDarwin_Os_Trace_3Name[] =
3052      "darwin_os_trace_3";
3055  *  File name selection pattern
3056  */
3057 tSCC zDarwin_Os_Trace_3List[] =
3058   "os/trace.h\0";
3060  *  Machine/OS name selection pattern
3061  */
3062 tSCC* apzDarwin_Os_Trace_3Machs[] = {
3063         "*-*-darwin*",
3064         (const char*)NULL };
3067  *  content selection pattern - do fix if pattern found
3068  */
3069 tSCC zDarwin_Os_Trace_3Select0[] =
3070        "__(API|OSX)_.*\n\
3071 OS_EXPORT.*\n\
3072 .*\n\
3073 _os_trace.*os_trace_payload_t payload);";
3075 #define    DARWIN_OS_TRACE_3_TEST_CT  1
3076 static tTestDesc aDarwin_Os_Trace_3Tests[] = {
3077   { TT_EGREP,    zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, };
3080  *  Fix Command Arguments for Darwin_Os_Trace_3
3081  */
3082 static const char* apzDarwin_Os_Trace_3Patch[] = {
3083     "format",
3084     "#if __BLOCKS__\n\
3085 %0\n\
3086 #endif",
3087     (char*)NULL };
3089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3091  *  Description of Darwin_Os_Base_1 fix
3092  */
3093 tSCC zDarwin_Os_Base_1Name[] =
3094      "darwin_os_base_1";
3097  *  File name selection pattern
3098  */
3099 tSCC zDarwin_Os_Base_1List[] =
3100   "os/base.h\0";
3102  *  Machine/OS name selection pattern
3103  */
3104 tSCC* apzDarwin_Os_Base_1Machs[] = {
3105         "*-*-darwin*",
3106         (const char*)NULL };
3109  *  content selection pattern - do fix if pattern found
3110  */
3111 tSCC zDarwin_Os_Base_1Select0[] =
3112        "#define __has_attribute.*\n\
3113 #endif";
3115 #define    DARWIN_OS_BASE_1_TEST_CT  1
3116 static tTestDesc aDarwin_Os_Base_1Tests[] = {
3117   { TT_EGREP,    zDarwin_Os_Base_1Select0, (regex_t*)NULL }, };
3120  *  Fix Command Arguments for Darwin_Os_Base_1
3121  */
3122 static const char* apzDarwin_Os_Base_1Patch[] = {
3123     "format",
3124     "%0\n\
3125 #ifndef __has_extension\n\
3126 #define __has_extension(x) 0\n\
3127 #endif",
3128     (char*)NULL };
3130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3132  *  Description of Darwin_Dispatch_Object_1 fix
3133  */
3134 tSCC zDarwin_Dispatch_Object_1Name[] =
3135      "darwin_dispatch_object_1";
3138  *  File name selection pattern
3139  */
3140 tSCC zDarwin_Dispatch_Object_1List[] =
3141   "dispatch/object.h\0";
3143  *  Machine/OS name selection pattern
3144  */
3145 tSCC* apzDarwin_Dispatch_Object_1Machs[] = {
3146         "*-*-darwin*",
3147         (const char*)NULL };
3150  *  content selection pattern - do fix if pattern found
3151  */
3152 tSCC zDarwin_Dispatch_Object_1Select0[] =
3153        "typedef void.*\\^dispatch_block_t.*";
3155 #define    DARWIN_DISPATCH_OBJECT_1_TEST_CT  1
3156 static tTestDesc aDarwin_Dispatch_Object_1Tests[] = {
3157   { TT_EGREP,    zDarwin_Dispatch_Object_1Select0, (regex_t*)NULL }, };
3160  *  Fix Command Arguments for Darwin_Dispatch_Object_1
3161  */
3162 static const char* apzDarwin_Dispatch_Object_1Patch[] = {
3163     "format",
3164     "#if __BLOCKS__\n\
3165 %0\n\
3166 #endif",
3167     (char*)NULL };
3169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3171  *  Description of Darwin_Private_Extern fix
3172  */
3173 tSCC zDarwin_Private_ExternName[] =
3174      "darwin_private_extern";
3177  *  File name selection pattern
3178  */
3179 tSCC zDarwin_Private_ExternList[] =
3180   "mach-o/dyld.h\0";
3182  *  Machine/OS name selection pattern
3183  */
3184 tSCC* apzDarwin_Private_ExternMachs[] = {
3185         "*-*-darwin*",
3186         (const char*)NULL };
3189  *  content selection pattern - do fix if pattern found
3190  */
3191 tSCC zDarwin_Private_ExternSelect0[] =
3192        "__private_extern__ [a-z_]+ _dyld_";
3194 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
3195 static tTestDesc aDarwin_Private_ExternTests[] = {
3196   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
3199  *  Fix Command Arguments for Darwin_Private_Extern
3200  */
3201 static const char* apzDarwin_Private_ExternPatch[] = {
3202     "format",
3203     "extern",
3204     "__private_extern__",
3205     (char*)NULL };
3207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3209  *  Description of Darwin_Stdint_1 fix
3210  */
3211 tSCC zDarwin_Stdint_1Name[] =
3212      "darwin_stdint_1";
3215  *  File name selection pattern
3216  */
3217 tSCC zDarwin_Stdint_1List[] =
3218   "stdint-darwin.h\0stdint.h\0";
3220  *  Machine/OS name selection pattern
3221  */
3222 tSCC* apzDarwin_Stdint_1Machs[] = {
3223         "*-*-darwin*",
3224         (const char*)NULL };
3227  *  content selection pattern - do fix if pattern found
3228  */
3229 tSCC zDarwin_Stdint_1Select0[] =
3230        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
3231 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
3233 #define    DARWIN_STDINT_1_TEST_CT  1
3234 static tTestDesc aDarwin_Stdint_1Tests[] = {
3235   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
3238  *  Fix Command Arguments for Darwin_Stdint_1
3239  */
3240 static const char* apzDarwin_Stdint_1Patch[] = {
3241     "format",
3242     "#define UINT8_C(v)\tv\n\
3243 #define UINT16_C(v)\tv",
3244     (char*)NULL };
3246 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3248  *  Description of Darwin_Stdint_2 fix
3249  */
3250 tSCC zDarwin_Stdint_2Name[] =
3251      "darwin_stdint_2";
3254  *  File name selection pattern
3255  */
3256 tSCC zDarwin_Stdint_2List[] =
3257   "stdint-darwin.h\0stdint.h\0";
3259  *  Machine/OS name selection pattern
3260  */
3261 tSCC* apzDarwin_Stdint_2Machs[] = {
3262         "*-*-darwin*",
3263         (const char*)NULL };
3266  *  content selection pattern - do fix if pattern found
3267  */
3268 tSCC zDarwin_Stdint_2Select0[] =
3269        "#if __WORDSIZE == 64\n\
3270 #define INTPTR_MIN[ \t]+INT64_MIN\n\
3271 #define INTPTR_MAX[ \t]+INT64_MAX\n\
3272 #else\n\
3273 #define INTPTR_MIN[ \t]+INT32_MIN\n\
3274 #define INTPTR_MAX[ \t]+INT32_MAX\n\
3275 #endif";
3277 #define    DARWIN_STDINT_2_TEST_CT  1
3278 static tTestDesc aDarwin_Stdint_2Tests[] = {
3279   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
3282  *  Fix Command Arguments for Darwin_Stdint_2
3283  */
3284 static const char* apzDarwin_Stdint_2Patch[] = {
3285     "format",
3286     "#if __WORDSIZE == 64\n\
3287 #define INTPTR_MAX 9223372036854775807L\n\
3288 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3289 #else\n\
3290 #define INTPTR_MAX 2147483647L\n\
3291 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3292 #endif",
3293     (char*)NULL };
3295 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3297  *  Description of Darwin_Stdint_3 fix
3298  */
3299 tSCC zDarwin_Stdint_3Name[] =
3300      "darwin_stdint_3";
3303  *  File name selection pattern
3304  */
3305 tSCC zDarwin_Stdint_3List[] =
3306   "stdint-darwin.h\0stdint.h\0";
3308  *  Machine/OS name selection pattern
3309  */
3310 tSCC* apzDarwin_Stdint_3Machs[] = {
3311         "*-*-darwin*",
3312         (const char*)NULL };
3315  *  content selection pattern - do fix if pattern found
3316  */
3317 tSCC zDarwin_Stdint_3Select0[] =
3318        "#if __WORDSIZE == 64\n\
3319 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
3320 #else\n\
3321 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
3322 #endif";
3324 #define    DARWIN_STDINT_3_TEST_CT  1
3325 static tTestDesc aDarwin_Stdint_3Tests[] = {
3326   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
3329  *  Fix Command Arguments for Darwin_Stdint_3
3330  */
3331 static const char* apzDarwin_Stdint_3Patch[] = {
3332     "format",
3333     "#if __WORDSIZE == 64\n\
3334 #define UINTPTR_MAX 18446744073709551615UL\n\
3335 #else\n\
3336 #define UINTPTR_MAX 4294967295UL\n\
3337 #endif",
3338     (char*)NULL };
3340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3342  *  Description of Darwin_Stdint_4 fix
3343  */
3344 tSCC zDarwin_Stdint_4Name[] =
3345      "darwin_stdint_4";
3348  *  File name selection pattern
3349  */
3350 tSCC zDarwin_Stdint_4List[] =
3351   "stdint-darwin.h\0stdint.h\0";
3353  *  Machine/OS name selection pattern
3354  */
3355 tSCC* apzDarwin_Stdint_4Machs[] = {
3356         "*-*-darwin*",
3357         (const char*)NULL };
3360  *  content selection pattern - do fix if pattern found
3361  */
3362 tSCC zDarwin_Stdint_4Select0[] =
3363        "#if __WORDSIZE == 64\n\
3364 #define SIZE_MAX[ \t]+UINT64_MAX\n\
3365 #else\n\
3366 #define SIZE_MAX[ \t]+UINT32_MAX\n\
3367 #endif";
3369 #define    DARWIN_STDINT_4_TEST_CT  1
3370 static tTestDesc aDarwin_Stdint_4Tests[] = {
3371   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
3374  *  Fix Command Arguments for Darwin_Stdint_4
3375  */
3376 static const char* apzDarwin_Stdint_4Patch[] = {
3377     "format",
3378     "#if __WORDSIZE == 64\n\
3379 #define SIZE_MAX 18446744073709551615UL\n\
3380 #else\n\
3381 #define SIZE_MAX 4294967295UL\n\
3382 #endif",
3383     (char*)NULL };
3385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3387  *  Description of Darwin_Stdint_5 fix
3388  */
3389 tSCC zDarwin_Stdint_5Name[] =
3390      "darwin_stdint_5";
3393  *  File name selection pattern
3394  */
3395 tSCC zDarwin_Stdint_5List[] =
3396   "stdint-darwin.h\0stdint.h\0";
3398  *  Machine/OS name selection pattern
3399  */
3400 tSCC* apzDarwin_Stdint_5Machs[] = {
3401         "*-*-darwin*",
3402         (const char*)NULL };
3405  *  content selection pattern - do fix if pattern found
3406  */
3407 tSCC zDarwin_Stdint_5Select0[] =
3408        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
3409 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
3410 #define UINTMAX_MAX[ \t]+UINT64_MAX";
3412 #define    DARWIN_STDINT_5_TEST_CT  1
3413 static tTestDesc aDarwin_Stdint_5Tests[] = {
3414   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
3417  *  Fix Command Arguments for Darwin_Stdint_5
3418  */
3419 static const char* apzDarwin_Stdint_5Patch[] = {
3420     "format",
3421     "#if __WORDSIZE == 64\n\
3422 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
3423 #define INTMAX_MAX   9223372036854775807L\n\
3424 #define UINTMAX_MAX  18446744073709551615UL\n\
3425 #else\n\
3426 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
3427 #define INTMAX_MAX   9223372036854775807LL\n\
3428 #define UINTMAX_MAX  18446744073709551615ULL\n\
3429 #endif",
3430     (char*)NULL };
3432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3434  *  Description of Darwin_Stdint_6 fix
3435  */
3436 tSCC zDarwin_Stdint_6Name[] =
3437      "darwin_stdint_6";
3440  *  File name selection pattern
3441  */
3442 tSCC zDarwin_Stdint_6List[] =
3443   "stdint-darwin.h\0stdint.h\0";
3445  *  Machine/OS name selection pattern
3446  */
3447 tSCC* apzDarwin_Stdint_6Machs[] = {
3448         "*-*-darwin*",
3449         (const char*)NULL };
3452  *  content selection pattern - do fix if pattern found
3453  */
3454 tSCC zDarwin_Stdint_6Select0[] =
3455        "#if __WORDSIZE == 64\n\
3456 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
3457 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
3458 #else\n\
3459 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
3460 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
3461 #endif";
3463 #define    DARWIN_STDINT_6_TEST_CT  1
3464 static tTestDesc aDarwin_Stdint_6Tests[] = {
3465   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
3468  *  Fix Command Arguments for Darwin_Stdint_6
3469  */
3470 static const char* apzDarwin_Stdint_6Patch[] = {
3471     "format",
3472     "#if __WORDSIZE == 64\n\
3473 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
3474 #define PTRDIFF_MAX 9223372036854775807L\n\
3475 #else\n\
3476 #define PTRDIFF_MIN (-2147483647 - 1)\n\
3477 #define PTRDIFF_MAX 2147483647\n\
3478 #endif",
3479     (char*)NULL };
3481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3483  *  Description of Darwin_Stdint_7 fix
3484  */
3485 tSCC zDarwin_Stdint_7Name[] =
3486      "darwin_stdint_7";
3489  *  File name selection pattern
3490  */
3491 tSCC zDarwin_Stdint_7List[] =
3492   "stdint-darwin.h\0stdint.h\0";
3494  *  Machine/OS name selection pattern
3495  */
3496 tSCC* apzDarwin_Stdint_7Machs[] = {
3497         "*-*-darwin*",
3498         (const char*)NULL };
3501  *  content selection pattern - do fix if pattern found
3502  */
3503 tSCC zDarwin_Stdint_7Select0[] =
3504        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
3505 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
3507 #define    DARWIN_STDINT_7_TEST_CT  1
3508 static tTestDesc aDarwin_Stdint_7Tests[] = {
3509   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
3512  *  Fix Command Arguments for Darwin_Stdint_7
3513  */
3514 static const char* apzDarwin_Stdint_7Patch[] = {
3515     "format",
3516     "#if __WORDSIZE == 64\n\
3517 #define INTMAX_C(v)  (v ## L)\n\
3518 #define UINTMAX_C(v) (v ## UL)\n\
3519 #else\n\
3520 #define INTMAX_C(v)  (v ## LL)\n\
3521 #define UINTMAX_C(v) (v ## ULL)\n\
3522 #endif",
3523     (char*)NULL };
3525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3527  *  Description of Darwin_Ucred__Atomic fix
3528  */
3529 tSCC zDarwin_Ucred__AtomicName[] =
3530      "darwin_ucred__Atomic";
3533  *  File name selection pattern
3534  */
3535 tSCC zDarwin_Ucred__AtomicList[] =
3536   "sys/ucred.h\0";
3538  *  Machine/OS name selection pattern
3539  */
3540 tSCC* apzDarwin_Ucred__AtomicMachs[] = {
3541         "*-*-darwin*",
3542         (const char*)NULL };
3545  *  content selection pattern - do fix if pattern found
3546  */
3547 tSCC zDarwin_Ucred__AtomicSelect0[] =
3548        "_Atomic";
3550 #define    DARWIN_UCRED__ATOMIC_TEST_CT  1
3551 static tTestDesc aDarwin_Ucred__AtomicTests[] = {
3552   { TT_EGREP,    zDarwin_Ucred__AtomicSelect0, (regex_t*)NULL }, };
3555  *  Fix Command Arguments for Darwin_Ucred__Atomic
3556  */
3557 static const char* apzDarwin_Ucred__AtomicPatch[] = {
3558     "wrap",
3559     "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3560 # define _Atomic volatile\n\
3561 #endif\n",
3562     "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3563 # undef _Atomic\n\
3564 #endif\n",
3565     (char*)NULL };
3567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3569  *  Description of Darwin_Flt_Eval_Method fix
3570  */
3571 tSCC zDarwin_Flt_Eval_MethodName[] =
3572      "darwin_flt_eval_method";
3575  *  File name selection pattern
3576  */
3577 tSCC zDarwin_Flt_Eval_MethodList[] =
3578   "math.h\0";
3580  *  Machine/OS name selection pattern
3581  */
3582 tSCC* apzDarwin_Flt_Eval_MethodMachs[] = {
3583         "*-*-darwin*",
3584         (const char*)NULL };
3587  *  content selection pattern - do fix if pattern found
3588  */
3589 tSCC zDarwin_Flt_Eval_MethodSelect0[] =
3590        "^#if __FLT_EVAL_METHOD__ == 0$";
3592 #define    DARWIN_FLT_EVAL_METHOD_TEST_CT  1
3593 static tTestDesc aDarwin_Flt_Eval_MethodTests[] = {
3594   { TT_EGREP,    zDarwin_Flt_Eval_MethodSelect0, (regex_t*)NULL }, };
3597  *  Fix Command Arguments for Darwin_Flt_Eval_Method
3598  */
3599 static const char* apzDarwin_Flt_Eval_MethodPatch[] = {
3600     "format",
3601     "#if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 16",
3602     (char*)NULL };
3604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3606  *  Description of Dec_Intern_Asm fix
3607  */
3608 tSCC zDec_Intern_AsmName[] =
3609      "dec_intern_asm";
3612  *  File name selection pattern
3613  */
3614 tSCC zDec_Intern_AsmList[] =
3615   "c_asm.h\0";
3617  *  Machine/OS name selection pattern
3618  */
3619 #define apzDec_Intern_AsmMachs (const char**)NULL
3620 #define DEC_INTERN_ASM_TEST_CT  0
3621 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
3624  *  Fix Command Arguments for Dec_Intern_Asm
3625  */
3626 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
3627     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
3628 #ifdef __DECC\n",
3629     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
3630 #endif\n",
3631     (char*)NULL };
3633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3635  *  Description of Djgpp_Wchar_H fix
3636  */
3637 tSCC zDjgpp_Wchar_HName[] =
3638      "djgpp_wchar_h";
3641  *  File name selection pattern
3642  */
3643 #define zDjgpp_Wchar_HList (char*)NULL
3645  *  Machine/OS name selection pattern
3646  */
3647 #define apzDjgpp_Wchar_HMachs (const char**)NULL
3650  *  content selection pattern - do fix if pattern found
3651  */
3652 tSCC zDjgpp_Wchar_HSelect0[] =
3653        "__DJ_wint_t";
3656  *  content bypass pattern - skip fix if pattern found
3657  */
3658 tSCC zDjgpp_Wchar_HBypass0[] =
3659        "sys/djtypes.h";
3661 #define    DJGPP_WCHAR_H_TEST_CT  2
3662 static tTestDesc aDjgpp_Wchar_HTests[] = {
3663   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
3664   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
3667  *  Fix Command Arguments for Djgpp_Wchar_H
3668  */
3669 static const char* apzDjgpp_Wchar_HPatch[] = {
3670     "format",
3671     "%0\n\
3672 #include <sys/djtypes.h>",
3673     "#include <stddef.h>",
3674     (char*)NULL };
3676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3678  *  Description of Ecd_Cursor fix
3679  */
3680 tSCC zEcd_CursorName[] =
3681      "ecd_cursor";
3684  *  File name selection pattern
3685  */
3686 tSCC zEcd_CursorList[] =
3687   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
3689  *  Machine/OS name selection pattern
3690  */
3691 #define apzEcd_CursorMachs (const char**)NULL
3694  *  content selection pattern - do fix if pattern found
3695  */
3696 tSCC zEcd_CursorSelect0[] =
3697        "ecd\\.cursor";
3699 #define    ECD_CURSOR_TEST_CT  1
3700 static tTestDesc aEcd_CursorTests[] = {
3701   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
3704  *  Fix Command Arguments for Ecd_Cursor
3705  */
3706 static const char* apzEcd_CursorPatch[] = {
3707     "format",
3708     "ecd_cursor",
3709     (char*)NULL };
3711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3713  *  Description of Feraiseexcept_Nosse_Divbyzero fix
3714  */
3715 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
3716      "feraiseexcept_nosse_divbyzero";
3719  *  File name selection pattern
3720  */
3721 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
3722   "bits/fenv.h\0*/bits/fenv.h\0";
3724  *  Machine/OS name selection pattern
3725  */
3726 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
3727         "i[34567]86-*-linux*",
3728         "x86*-linux*",
3729         "amd64-*-linux*",
3730         (const char*)NULL };
3733  *  content selection pattern - do fix if pattern found
3734  */
3735 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
3736        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
3739  *  content bypass pattern - skip fix if pattern found
3740  */
3741 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
3742        "\"fdivp .*; fwait\"";
3744 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
3745 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
3746   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
3747   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
3750  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
3751  */
3752 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
3753     "format",
3754     "# ifdef __SSE_MATH__\n\
3755 %0\n\
3756 # else\n\
3757 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
3758 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
3759 # endif",
3760     (char*)NULL };
3762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3764  *  Description of Feraiseexcept_Nosse_Invalid fix
3765  */
3766 tSCC zFeraiseexcept_Nosse_InvalidName[] =
3767      "feraiseexcept_nosse_invalid";
3770  *  File name selection pattern
3771  */
3772 tSCC zFeraiseexcept_Nosse_InvalidList[] =
3773   "bits/fenv.h\0*/bits/fenv.h\0";
3775  *  Machine/OS name selection pattern
3776  */
3777 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
3778         "i[34567]86-*-linux*",
3779         "x86*-linux*",
3780         "amd64-*-linux*",
3781         (const char*)NULL };
3784  *  content selection pattern - do fix if pattern found
3785  */
3786 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
3787        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
3790  *  content bypass pattern - skip fix if pattern found
3791  */
3792 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
3793        "\"fdiv .*; fwait\"";
3795 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
3796 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
3797   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
3798   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
3801  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
3802  */
3803 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
3804     "format",
3805     "# ifdef __SSE_MATH__\n\
3806 %0\n\
3807 # else\n\
3808 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
3809 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
3810 # endif",
3811     (char*)NULL };
3813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3815  *  Description of Freebsd_Gcc3_Breakage fix
3816  */
3817 tSCC zFreebsd_Gcc3_BreakageName[] =
3818      "freebsd_gcc3_breakage";
3821  *  File name selection pattern
3822  */
3823 tSCC zFreebsd_Gcc3_BreakageList[] =
3824   "sys/cdefs.h\0";
3826  *  Machine/OS name selection pattern
3827  */
3828 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
3829         "*-*-freebsd*",
3830         (const char*)NULL };
3833  *  content selection pattern - do fix if pattern found
3834  */
3835 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
3836        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
3839  *  content bypass pattern - skip fix if pattern found
3840  */
3841 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
3842        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
3844 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
3845 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
3846   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
3847   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
3850  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
3851  */
3852 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
3853     "format",
3854     "%0 || __GNUC__ >= 3",
3855     (char*)NULL };
3857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3859  *  Description of Freebsd_Gcc4_Breakage fix
3860  */
3861 tSCC zFreebsd_Gcc4_BreakageName[] =
3862      "freebsd_gcc4_breakage";
3865  *  File name selection pattern
3866  */
3867 tSCC zFreebsd_Gcc4_BreakageList[] =
3868   "sys/cdefs.h\0";
3870  *  Machine/OS name selection pattern
3871  */
3872 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3873         "*-*-freebsd*",
3874         (const char*)NULL };
3877  *  content selection pattern - do fix if pattern found
3878  */
3879 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3880        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3882 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
3883 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3884   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3887  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
3888  */
3889 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3890     "format",
3891     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3892     (char*)NULL };
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3896  *  Description of Glibc_C99_Inline_1 fix
3897  */
3898 tSCC zGlibc_C99_Inline_1Name[] =
3899      "glibc_c99_inline_1";
3902  *  File name selection pattern
3903  */
3904 tSCC zGlibc_C99_Inline_1List[] =
3905   "features.h\0*/features.h\0";
3907  *  Machine/OS name selection pattern
3908  */
3909 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3912  *  content selection pattern - do fix if pattern found
3913  */
3914 tSCC zGlibc_C99_Inline_1Select0[] =
3915        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3917 #define    GLIBC_C99_INLINE_1_TEST_CT  1
3918 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3919   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3922  *  Fix Command Arguments for Glibc_C99_Inline_1
3923  */
3924 static const char* apzGlibc_C99_Inline_1Patch[] = {
3925     "format",
3926     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3927     (char*)NULL };
3929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3931  *  Description of Glibc_C99_Inline_1a fix
3932  */
3933 tSCC zGlibc_C99_Inline_1aName[] =
3934      "glibc_c99_inline_1a";
3937  *  File name selection pattern
3938  */
3939 tSCC zGlibc_C99_Inline_1aList[] =
3940   "features.h\0*/features.h\0";
3942  *  Machine/OS name selection pattern
3943  */
3944 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3947  *  content selection pattern - do fix if pattern found
3948  */
3949 tSCC zGlibc_C99_Inline_1aSelect0[] =
3950        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3951 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3953 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
3954 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3955   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3958  *  Fix Command Arguments for Glibc_C99_Inline_1a
3959  */
3960 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3961     "format",
3962     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3963 %2",
3964     (char*)NULL };
3966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3968  *  Description of Glibc_C99_Inline_2 fix
3969  */
3970 tSCC zGlibc_C99_Inline_2Name[] =
3971      "glibc_c99_inline_2";
3974  *  File name selection pattern
3975  */
3976 tSCC zGlibc_C99_Inline_2List[] =
3977   "sys/stat.h\0*/sys/stat.h\0";
3979  *  Machine/OS name selection pattern
3980  */
3981 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3984  *  content selection pattern - do fix if pattern found
3985  */
3986 tSCC zGlibc_C99_Inline_2Select0[] =
3987        "extern __inline__ int";
3989 #define    GLIBC_C99_INLINE_2_TEST_CT  1
3990 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3991   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3994  *  Fix Command Arguments for Glibc_C99_Inline_2
3995  */
3996 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3997     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3998 extern\\\n\
3999 #endif\\\n\
4000 __inline__ int \\1/",
4001     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4002 extern\\\n\
4003 #endif\\\n\
4004 __inline__ int \\1/",
4005     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4006 extern\\\n\
4007 #endif\\\n\
4008 __inline__ int \\1/",
4009     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4010 extern\\\n\
4011 #endif\\\n\
4012 __inline__ int __REDIRECT\\1 (\\2/",
4013     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4014 extern\\\n\
4015 #endif\\\n\
4016 __inline__ int __REDIRECT\\1 (\\2/",
4017     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
4018 extern\\\n\
4019 #endif\\\n\
4020 __inline__ int/",
4021     (char*)NULL };
4023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4025  *  Description of Glibc_C99_Inline_3 fix
4026  */
4027 tSCC zGlibc_C99_Inline_3Name[] =
4028      "glibc_c99_inline_3";
4031  *  File name selection pattern
4032  */
4033 tSCC zGlibc_C99_Inline_3List[] =
4034   "bits/string2.h\0*/bits/string2.h\0";
4036  *  Machine/OS name selection pattern
4037  */
4038 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
4041  *  content selection pattern - do fix if pattern found
4042  */
4043 tSCC zGlibc_C99_Inline_3Select0[] =
4044        "extern __inline";
4047  *  content bypass pattern - skip fix if pattern found
4048  */
4049 tSCC zGlibc_C99_Inline_3Bypass0[] =
4050        "__extern_inline|__GNU_STDC_INLINE__";
4052 #define    GLIBC_C99_INLINE_3_TEST_CT  2
4053 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
4054   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
4055   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
4058  *  Fix Command Arguments for Glibc_C99_Inline_3
4059  */
4060 static const char* apzGlibc_C99_Inline_3Patch[] = {
4061     "format",
4062     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
4063     "^# ifdef __cplusplus$",
4064     (char*)NULL };
4066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4068  *  Description of Glibc_C99_Inline_4 fix
4069  */
4070 tSCC zGlibc_C99_Inline_4Name[] =
4071      "glibc_c99_inline_4";
4074  *  File name selection pattern
4075  */
4076 tSCC zGlibc_C99_Inline_4List[] =
4077   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
4079  *  Machine/OS name selection pattern
4080  */
4081 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
4084  *  content selection pattern - do fix if pattern found
4085  */
4086 tSCC zGlibc_C99_Inline_4Select0[] =
4087        "(^| )extern __inline";
4090  *  content bypass pattern - skip fix if pattern found
4091  */
4092 tSCC zGlibc_C99_Inline_4Bypass0[] =
4093        "__extern_inline|__gnu_inline__";
4095 #define    GLIBC_C99_INLINE_4_TEST_CT  2
4096 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
4097   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
4098   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
4101  *  Fix Command Arguments for Glibc_C99_Inline_4
4102  */
4103 static const char* apzGlibc_C99_Inline_4Patch[] = {
4104     "format",
4105     "%0 __attribute__ ((__gnu_inline__))",
4106     (char*)NULL };
4108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4110  *  Description of Glibc_Mutex_Init fix
4111  */
4112 tSCC zGlibc_Mutex_InitName[] =
4113      "glibc_mutex_init";
4116  *  File name selection pattern
4117  */
4118 tSCC zGlibc_Mutex_InitList[] =
4119   "pthread.h\0";
4121  *  Machine/OS name selection pattern
4122  */
4123 #define apzGlibc_Mutex_InitMachs (const char**)NULL
4126  *  content selection pattern - do fix if pattern found
4127  */
4128 tSCC zGlibc_Mutex_InitSelect0[] =
4129        "\\{ *\\{ *0, *\\} *\\}";
4131 #define    GLIBC_MUTEX_INIT_TEST_CT  1
4132 static tTestDesc aGlibc_Mutex_InitTests[] = {
4133   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
4136  *  Fix Command Arguments for Glibc_Mutex_Init
4137  */
4138 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
4139     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
4140 N\n\
4141 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
4143     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
4144     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
4145     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
4146     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
4147     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
4148     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
4149     "-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\
4150 #  \\1\\\n\
4151   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
4152 # else\\\n\
4153 #  \\1\\\n\
4154   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
4155 # endif/",
4156     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
4157     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
4158     (char*)NULL };
4160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4162  *  Description of Glibc_Stdint fix
4163  */
4164 tSCC zGlibc_StdintName[] =
4165      "glibc_stdint";
4168  *  File name selection pattern
4169  */
4170 tSCC zGlibc_StdintList[] =
4171   "stdint.h\0";
4173  *  Machine/OS name selection pattern
4174  */
4175 #define apzGlibc_StdintMachs (const char**)NULL
4178  *  content selection pattern - do fix if pattern found
4179  */
4180 tSCC zGlibc_StdintSelect0[] =
4181        "GNU C Library";
4183 #define    GLIBC_STDINT_TEST_CT  1
4184 static tTestDesc aGlibc_StdintTests[] = {
4185   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
4188  *  Fix Command Arguments for Glibc_Stdint
4189  */
4190 static const char* apzGlibc_StdintPatch[] = {
4191     "format",
4192     "# define UINT8_C(c)\tc\n\
4193 # define UINT16_C(c)\tc",
4194     "# define UINT8_C\\(c\\)\tc ## U\n\
4195 # define UINT16_C\\(c\\)\tc ## U",
4196     (char*)NULL };
4198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4200  *  Description of Glibc_Strncpy fix
4201  */
4202 tSCC zGlibc_StrncpyName[] =
4203      "glibc_strncpy";
4206  *  File name selection pattern
4207  */
4208 tSCC zGlibc_StrncpyList[] =
4209   "bits/string2.h\0*/bits/string2.h\0";
4211  *  Machine/OS name selection pattern
4212  */
4213 #define apzGlibc_StrncpyMachs (const char**)NULL
4216  *  content bypass pattern - skip fix if pattern found
4217  */
4218 tSCC zGlibc_StrncpyBypass0[] =
4219        "__builtin_strncpy";
4221 #define    GLIBC_STRNCPY_TEST_CT  1
4222 static tTestDesc aGlibc_StrncpyTests[] = {
4223   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
4226  *  Fix Command Arguments for Glibc_Strncpy
4227  */
4228 static const char* apzGlibc_StrncpyPatch[] = {
4229     "format",
4230     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
4231     "#  define strncpy([^\n\
4232 ]*\\\\\n\
4233 )*[^\n\
4234 ]*",
4235     (char*)NULL };
4237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4239  *  Description of Glibc_Tgmath fix
4240  */
4241 tSCC zGlibc_TgmathName[] =
4242      "glibc_tgmath";
4245  *  File name selection pattern
4246  */
4247 tSCC zGlibc_TgmathList[] =
4248   "tgmath.h\0";
4250  *  Machine/OS name selection pattern
4251  */
4252 #define apzGlibc_TgmathMachs (const char**)NULL
4255  *  content selection pattern - do fix if pattern found
4256  */
4257 tSCC zGlibc_TgmathSelect0[] =
4258        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
4261  *  content bypass pattern - skip fix if pattern found
4262  */
4263 tSCC zGlibc_TgmathBypass0[] =
4264        "__floating_type\\(type\\) \\\\\n\
4265 .*__builtin_classify_type";
4267 #define    GLIBC_TGMATH_TEST_CT  2
4268 static tTestDesc aGlibc_TgmathTests[] = {
4269   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
4270   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
4273  *  Fix Command Arguments for Glibc_Tgmath
4274  */
4275 static const char* apzGlibc_TgmathPatch[] = {
4276     "format",
4277     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
4278     (char*)NULL };
4280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4282  *  Description of Gnu_Types fix
4283  */
4284 tSCC zGnu_TypesName[] =
4285      "gnu_types";
4288  *  File name selection pattern
4289  */
4290 tSCC zGnu_TypesList[] =
4291   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
4293  *  Machine/OS name selection pattern
4294  */
4295 tSCC* apzGnu_TypesMachs[] = {
4296         "*-*-solaris2.1[0-9]*",
4297         (const char*)NULL };
4300  *  content selection pattern - do fix if pattern found
4301  */
4302 tSCC zGnu_TypesSelect0[] =
4303        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
4306  *  content bypass pattern - skip fix if pattern found
4307  */
4308 tSCC zGnu_TypesBypass0[] =
4309        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
4311 #define    GNU_TYPES_TEST_CT  2
4312 static tTestDesc aGnu_TypesTests[] = {
4313   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
4314   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
4317  *  Fix Command Arguments for Gnu_Types
4318  */
4319 static const char* apzGnu_TypesPatch[] = {
4320     "gnu_type",
4321     (char*)NULL };
4323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4325  *  Description of Hp_Inline fix
4326  */
4327 tSCC zHp_InlineName[] =
4328      "hp_inline";
4331  *  File name selection pattern
4332  */
4333 tSCC zHp_InlineList[] =
4334   "sys/spinlock.h\0machine/machparam.h\0";
4336  *  Machine/OS name selection pattern
4337  */
4338 #define apzHp_InlineMachs (const char**)NULL
4341  *  content selection pattern - do fix if pattern found
4342  */
4343 tSCC zHp_InlineSelect0[] =
4344        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
4346 #define    HP_INLINE_TEST_CT  1
4347 static tTestDesc aHp_InlineTests[] = {
4348   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
4351  *  Fix Command Arguments for Hp_Inline
4352  */
4353 static const char* apzHp_InlinePatch[] = {
4354     "format",
4355     "%1<machine/%2.h>",
4356     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
4357     (char*)NULL };
4359 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4361  *  Description of Hp_Sysfile fix
4362  */
4363 tSCC zHp_SysfileName[] =
4364      "hp_sysfile";
4367  *  File name selection pattern
4368  */
4369 tSCC zHp_SysfileList[] =
4370   "sys/file.h\0";
4372  *  Machine/OS name selection pattern
4373  */
4374 #define apzHp_SysfileMachs (const char**)NULL
4377  *  content selection pattern - do fix if pattern found
4378  */
4379 tSCC zHp_SysfileSelect0[] =
4380        "HPUX_SOURCE";
4382 #define    HP_SYSFILE_TEST_CT  1
4383 static tTestDesc aHp_SysfileTests[] = {
4384   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
4387  *  Fix Command Arguments for Hp_Sysfile
4388  */
4389 static const char* apzHp_SysfilePatch[] = {
4390     "format",
4391     "(struct file *, ...)",
4392     "\\(\\.\\.\\.\\)",
4393     (char*)NULL };
4395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4397  *  Description of Hppa_Hpux_Fp_Macros fix
4398  */
4399 tSCC zHppa_Hpux_Fp_MacrosName[] =
4400      "hppa_hpux_fp_macros";
4403  *  File name selection pattern
4404  */
4405 tSCC zHppa_Hpux_Fp_MacrosList[] =
4406   "math.h\0";
4408  *  Machine/OS name selection pattern
4409  */
4410 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
4411         "hppa*-hp-hpux11*",
4412         (const char*)NULL };
4415  *  content selection pattern - do fix if pattern found
4416  */
4417 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
4418        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
4419 #[ \t]*define[ \t]*FP_ZERO.*\n\
4420 #[ \t]*define[ \t]*FP_INFINITE.*\n\
4421 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
4422 #[ \t]*define[ \t]*FP_NAN.*\n";
4424 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
4425 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
4426   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
4429  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
4430  */
4431 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
4432     "format",
4433     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
4434 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
4435    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
4436 %0#endif\n\n\
4437 #ifdef _INCLUDE_HPUX_SOURCE\n",
4438     (char*)NULL };
4440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4442  *  Description of Hpux10_Cpp_Pow_Inline fix
4443  */
4444 tSCC zHpux10_Cpp_Pow_InlineName[] =
4445      "hpux10_cpp_pow_inline";
4448  *  File name selection pattern
4449  */
4450 tSCC zHpux10_Cpp_Pow_InlineList[] =
4451   "fixinc-test-limits.h\0math.h\0";
4453  *  Machine/OS name selection pattern
4454  */
4455 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
4458  *  content selection pattern - do fix if pattern found
4459  */
4460 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
4461        "^# +ifdef +__cplusplus\n\
4462  +\\}\n\
4463  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
4464 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
4465  +\\}\n\
4466  +extern +\"C\" +\\{\n\
4467 #else\n\
4468 # +endif";
4470 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
4471 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
4472   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4475  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
4476  */
4477 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
4478     "format",
4479     "",
4480     (char*)NULL };
4482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4484  *  Description of Hpux11_Cpp_Pow_Inline fix
4485  */
4486 tSCC zHpux11_Cpp_Pow_InlineName[] =
4487      "hpux11_cpp_pow_inline";
4490  *  File name selection pattern
4491  */
4492 tSCC zHpux11_Cpp_Pow_InlineList[] =
4493   "math.h\0";
4495  *  Machine/OS name selection pattern
4496  */
4497 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
4500  *  content selection pattern - do fix if pattern found
4501  */
4502 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
4503        " +inline double pow\\(double d,int expon\\) \\{\n\
4504  +return pow\\(d, \\(double\\)expon\\);\n\
4505  +\\}\n";
4507 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
4508 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
4509   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4512  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
4513  */
4514 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
4515     "format",
4516     "",
4517     (char*)NULL };
4519 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4521  *  Description of Hpux10_Ctype_Declarations1 fix
4522  */
4523 tSCC zHpux10_Ctype_Declarations1Name[] =
4524      "hpux10_ctype_declarations1";
4527  *  File name selection pattern
4528  */
4529 tSCC zHpux10_Ctype_Declarations1List[] =
4530   "ctype.h\0";
4532  *  Machine/OS name selection pattern
4533  */
4534 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
4537  *  content selection pattern - do fix if pattern found
4538  */
4539 tSCC zHpux10_Ctype_Declarations1Select0[] =
4540        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
4543  *  content bypass pattern - skip fix if pattern found
4544  */
4545 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
4546        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
4548 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
4549 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
4550   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
4551   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
4554  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
4555  */
4556 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
4557     "format",
4558     "#ifdef _PROTOTYPES\n\
4559 extern int __tolower(int);\n\
4560 extern int __toupper(int);\n\
4561 #else /* NOT _PROTOTYPES */\n\
4562 extern int __tolower();\n\
4563 extern int __toupper();\n\
4564 #endif /* _PROTOTYPES */\n\n\
4565 %0\n",
4566     (char*)NULL };
4568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4570  *  Description of Hpux10_Ctype_Declarations2 fix
4571  */
4572 tSCC zHpux10_Ctype_Declarations2Name[] =
4573      "hpux10_ctype_declarations2";
4576  *  File name selection pattern
4577  */
4578 tSCC zHpux10_Ctype_Declarations2List[] =
4579   "ctype.h\0";
4581  *  Machine/OS name selection pattern
4582  */
4583 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
4586  *  content selection pattern - do fix if pattern found
4587  */
4588 tSCC zHpux10_Ctype_Declarations2Select0[] =
4589        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
4592  *  content bypass pattern - skip fix if pattern found
4593  */
4594 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
4595        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
4597 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
4598 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
4599   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
4600   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
4603  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
4604  */
4605 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
4606     "format",
4607     "%0\n\n\
4608 #ifdef _PROTOTYPES\n\
4609      extern int _isalnum(int);\n\
4610      extern int _isalpha(int);\n\
4611      extern int _iscntrl(int);\n\
4612      extern int _isdigit(int);\n\
4613      extern int _isgraph(int);\n\
4614      extern int _islower(int);\n\
4615      extern int _isprint(int);\n\
4616      extern int _ispunct(int);\n\
4617      extern int _isspace(int);\n\
4618      extern int _isupper(int);\n\
4619      extern int _isxdigit(int);\n\
4620 #  else /* not _PROTOTYPES */\n\
4621      extern int _isalnum();\n\
4622      extern int _isalpha();\n\
4623      extern int _iscntrl();\n\
4624      extern int _isdigit();\n\
4625      extern int _isgraph();\n\
4626      extern int _islower();\n\
4627      extern int _isprint();\n\
4628      extern int _ispunct();\n\
4629      extern int _isspace();\n\
4630      extern int _isupper();\n\
4631      extern int _isxdigit();\n\
4632 #endif /* _PROTOTYPES */\n",
4633     (char*)NULL };
4635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4637  *  Description of Hpux10_Stdio_Declarations fix
4638  */
4639 tSCC zHpux10_Stdio_DeclarationsName[] =
4640      "hpux10_stdio_declarations";
4643  *  File name selection pattern
4644  */
4645 tSCC zHpux10_Stdio_DeclarationsList[] =
4646   "stdio.h\0";
4648  *  Machine/OS name selection pattern
4649  */
4650 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
4653  *  content selection pattern - do fix if pattern found
4654  */
4655 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
4656        "^#[ \t]*define _iob[ \t]*__iob";
4659  *  content bypass pattern - skip fix if pattern found
4660  */
4661 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
4662        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
4664 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
4665 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
4666   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
4667   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
4670  *  Fix Command Arguments for Hpux10_Stdio_Declarations
4671  */
4672 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
4673     "format",
4674     "%0\n\n\
4675 #  if defined(__STDC__) || defined(__cplusplus)\n\
4676      extern int snprintf(char *, size_t, const char *, ...);\n\
4677      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
4678 #  else /* not __STDC__) || __cplusplus */\n\
4679      extern int snprintf();\n\
4680      extern int vsnprintf();\n\
4681 #  endif /* __STDC__) || __cplusplus */\n",
4682     (char*)NULL };
4684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4686  *  Description of Hppa_Hpux11_Alloca fix
4687  */
4688 tSCC zHppa_Hpux11_AllocaName[] =
4689      "hppa_hpux11_alloca";
4692  *  File name selection pattern
4693  */
4694 tSCC zHppa_Hpux11_AllocaList[] =
4695   "alloca.h\0";
4697  *  Machine/OS name selection pattern
4698  */
4699 tSCC* apzHppa_Hpux11_AllocaMachs[] = {
4700         "hppa*-*-hpux11*",
4701         (const char*)NULL };
4704  *  content selection pattern - do fix if pattern found
4705  */
4706 tSCC zHppa_Hpux11_AllocaSelect0[] =
4707        "#ifndef _STDDEF_INCLUDED";
4709 #define    HPPA_HPUX11_ALLOCA_TEST_CT  1
4710 static tTestDesc aHppa_Hpux11_AllocaTests[] = {
4711   { TT_EGREP,    zHppa_Hpux11_AllocaSelect0, (regex_t*)NULL }, };
4714  *  Fix Command Arguments for Hppa_Hpux11_Alloca
4715  */
4716 static const char* apzHppa_Hpux11_AllocaPatch[] = {
4717     "format",
4718     "#ifndef _SYS_STDSYMS_INCLUDED\n\
4719 #  include <sys/stdsyms.h>\n\
4720 #endif /* _SYS_STDSYMS_INCLUDED */\n\n\
4721 %0",
4722     (char*)NULL };
4724 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4726  *  Description of Hpux11_Abs fix
4727  */
4728 tSCC zHpux11_AbsName[] =
4729      "hpux11_abs";
4732  *  File name selection pattern
4733  */
4734 tSCC zHpux11_AbsList[] =
4735   "stdlib.h\0";
4737  *  Machine/OS name selection pattern
4738  */
4739 tSCC* apzHpux11_AbsMachs[] = {
4740         "*-hp-hpux11*",
4741         (const char*)NULL };
4744  *  content selection pattern - do fix if pattern found
4745  */
4746 tSCC zHpux11_AbsSelect0[] =
4747        "ifndef _MATH_INCLUDED";
4749 #define    HPUX11_ABS_TEST_CT  1
4750 static tTestDesc aHpux11_AbsTests[] = {
4751   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
4754  *  Fix Command Arguments for Hpux11_Abs
4755  */
4756 static const char* apzHpux11_AbsPatch[] = {
4757     "format",
4758     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
4759     (char*)NULL };
4761 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4763  *  Description of Hpux11_Lwp_Rwlock_Valid fix
4764  */
4765 tSCC zHpux11_Lwp_Rwlock_ValidName[] =
4766      "hpux11_lwp_rwlock_valid";
4769  *  File name selection pattern
4770  */
4771 tSCC zHpux11_Lwp_Rwlock_ValidList[] =
4772   "sys/pthread.h\0";
4774  *  Machine/OS name selection pattern
4775  */
4776 tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = {
4777         "*-hp-hpux11*",
4778         (const char*)NULL };
4781  *  content selection pattern - do fix if pattern found
4782  */
4783 tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] =
4784        "#define __LWP_RWLOCK_VALID[ \t]*0x8c91";
4786 #define    HPUX11_LWP_RWLOCK_VALID_TEST_CT  1
4787 static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = {
4788   { TT_EGREP,    zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, };
4791  *  Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid
4792  */
4793 static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = {
4794     "format",
4795     "#define __LWP_RWLOCK_VALID              -29551",
4796     (char*)NULL };
4798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4800  *  Description of Hpux11_Extern_Sendfile fix
4801  */
4802 tSCC zHpux11_Extern_SendfileName[] =
4803      "hpux11_extern_sendfile";
4806  *  File name selection pattern
4807  */
4808 tSCC zHpux11_Extern_SendfileList[] =
4809   "sys/socket.h\0";
4811  *  Machine/OS name selection pattern
4812  */
4813 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4814         "*-hp-hpux11.[12]*",
4815         (const char*)NULL };
4818  *  content selection pattern - do fix if pattern found
4819  */
4820 tSCC zHpux11_Extern_SendfileSelect0[] =
4821        "^[ \t]*extern sbsize_t sendfile.*\n\
4822 .*, int\\)\\);\n";
4824 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
4825 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4826   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4829  *  Fix Command Arguments for Hpux11_Extern_Sendfile
4830  */
4831 static const char* apzHpux11_Extern_SendfilePatch[] = {
4832     "format",
4833     "#ifndef _APP32_64BIT_OFF_T\n\
4834 %0#endif\n",
4835     (char*)NULL };
4837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4839  *  Description of Hpux11_Extern_Sendpath fix
4840  */
4841 tSCC zHpux11_Extern_SendpathName[] =
4842      "hpux11_extern_sendpath";
4845  *  File name selection pattern
4846  */
4847 tSCC zHpux11_Extern_SendpathList[] =
4848   "sys/socket.h\0";
4850  *  Machine/OS name selection pattern
4851  */
4852 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4853         "*-hp-hpux11.[12]*",
4854         (const char*)NULL };
4857  *  content selection pattern - do fix if pattern found
4858  */
4859 tSCC zHpux11_Extern_SendpathSelect0[] =
4860        "^[ \t]*extern sbsize_t sendpath.*\n\
4861 .*, int\\)\\);\n";
4863 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
4864 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4865   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4868  *  Fix Command Arguments for Hpux11_Extern_Sendpath
4869  */
4870 static const char* apzHpux11_Extern_SendpathPatch[] = {
4871     "format",
4872     "#ifndef _APP32_64BIT_OFF_T\n\
4873 %0#endif\n",
4874     (char*)NULL };
4876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4878  *  Description of Hpux11_Fabsf fix
4879  */
4880 tSCC zHpux11_FabsfName[] =
4881      "hpux11_fabsf";
4884  *  File name selection pattern
4885  */
4886 tSCC zHpux11_FabsfList[] =
4887   "math.h\0";
4889  *  Machine/OS name selection pattern
4890  */
4891 tSCC* apzHpux11_FabsfMachs[] = {
4892         "*-hp-hpux11*",
4893         (const char*)NULL };
4896  *  content selection pattern - do fix if pattern found
4897  */
4898 tSCC zHpux11_FabsfSelect0[] =
4899        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
4901 #define    HPUX11_FABSF_TEST_CT  1
4902 static tTestDesc aHpux11_FabsfTests[] = {
4903   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
4906  *  Fix Command Arguments for Hpux11_Fabsf
4907  */
4908 static const char* apzHpux11_FabsfPatch[] = {
4909     "format",
4910     "#ifndef __cplusplus\n\
4911 %0\n\
4912 #endif",
4913     (char*)NULL };
4915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4917  *  Description of Hpux11_Pthread_Pointer fix
4918  */
4919 tSCC zHpux11_Pthread_PointerName[] =
4920      "hpux11_pthread_pointer";
4923  *  File name selection pattern
4924  */
4925 tSCC zHpux11_Pthread_PointerList[] =
4926   "sys/pthread.h\0";
4928  *  Machine/OS name selection pattern
4929  */
4930 tSCC* apzHpux11_Pthread_PointerMachs[] = {
4931         "*-hp-hpux11.[0-3]*",
4932         (const char*)NULL };
4935  *  content selection pattern - do fix if pattern found
4936  */
4937 tSCC zHpux11_Pthread_PointerSelect0[] =
4938        "(void[ \t]*\\*)(m|c|rw)(_ptr)";
4940 #define    HPUX11_PTHREAD_POINTER_TEST_CT  1
4941 static tTestDesc aHpux11_Pthread_PointerTests[] = {
4942   { TT_EGREP,    zHpux11_Pthread_PointerSelect0, (regex_t*)NULL }, };
4945  *  Fix Command Arguments for Hpux11_Pthread_Pointer
4946  */
4947 static const char* apzHpux11_Pthread_PointerPatch[] = {
4948     "format",
4949     "long\t%2%3",
4950     (char*)NULL };
4952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4954  *  Description of Hpux11_Pthread_Const fix
4955  */
4956 tSCC zHpux11_Pthread_ConstName[] =
4957      "hpux11_pthread_const";
4960  *  File name selection pattern
4961  */
4962 tSCC zHpux11_Pthread_ConstList[] =
4963   "sys/pthread.h\0";
4965  *  Machine/OS name selection pattern
4966  */
4967 tSCC* apzHpux11_Pthread_ConstMachs[] = {
4968         "*-hp-hpux11.[0-3]*",
4969         (const char*)NULL };
4972  *  content selection pattern - do fix if pattern found
4973  */
4974 tSCC zHpux11_Pthread_ConstSelect0[] =
4975        "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))";
4977 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
4978 static tTestDesc aHpux11_Pthread_ConstTests[] = {
4979   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4982  *  Fix Command Arguments for Hpux11_Pthread_Const
4983  */
4984 static const char* apzHpux11_Pthread_ConstPatch[] = {
4985     "format",
4986     "%11",
4987     (char*)NULL };
4989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4991  *  Description of Hpux11_Size_T fix
4992  */
4993 tSCC zHpux11_Size_TName[] =
4994      "hpux11_size_t";
4997  *  File name selection pattern
4998  */
4999 #define zHpux11_Size_TList (char*)NULL
5001  *  Machine/OS name selection pattern
5002  */
5003 tSCC* apzHpux11_Size_TMachs[] = {
5004         "*-hp-hpux11*",
5005         (const char*)NULL };
5008  *  content selection pattern - do fix if pattern found
5009  */
5010 tSCC zHpux11_Size_TSelect0[] =
5011        "__size_t";
5013 #define    HPUX11_SIZE_T_TEST_CT  1
5014 static tTestDesc aHpux11_Size_TTests[] = {
5015   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
5018  *  Fix Command Arguments for Hpux11_Size_T
5019  */
5020 static const char* apzHpux11_Size_TPatch[] = {
5021     "format",
5022     "_hpux_size_t",
5023     (char*)NULL };
5025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5027  *  Description of Hpux11_Snprintf fix
5028  */
5029 tSCC zHpux11_SnprintfName[] =
5030      "hpux11_snprintf";
5033  *  File name selection pattern
5034  */
5035 tSCC zHpux11_SnprintfList[] =
5036   "stdio.h\0";
5038  *  Machine/OS name selection pattern
5039  */
5040 #define apzHpux11_SnprintfMachs (const char**)NULL
5043  *  content selection pattern - do fix if pattern found
5044  */
5045 tSCC zHpux11_SnprintfSelect0[] =
5046        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
5048 #define    HPUX11_SNPRINTF_TEST_CT  1
5049 static tTestDesc aHpux11_SnprintfTests[] = {
5050   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
5053  *  Fix Command Arguments for Hpux11_Snprintf
5054  */
5055 static const char* apzHpux11_SnprintfPatch[] = {
5056     "format",
5057     "%1 const %3",
5058     (char*)NULL };
5060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5062  *  Description of Hpux11_Vsnprintf fix
5063  */
5064 tSCC zHpux11_VsnprintfName[] =
5065      "hpux11_vsnprintf";
5068  *  File name selection pattern
5069  */
5070 tSCC zHpux11_VsnprintfList[] =
5071   "stdio.h\0";
5073  *  Machine/OS name selection pattern
5074  */
5075 #define apzHpux11_VsnprintfMachs (const char**)NULL
5078  *  content selection pattern - do fix if pattern found
5079  */
5080 tSCC zHpux11_VsnprintfSelect0[] =
5081        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
5083 #define    HPUX11_VSNPRINTF_TEST_CT  1
5084 static tTestDesc aHpux11_VsnprintfTests[] = {
5085   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
5088  *  Fix Command Arguments for Hpux11_Vsnprintf
5089  */
5090 static const char* apzHpux11_VsnprintfPatch[] = {
5091     "format",
5092     "%1 __va_list);",
5093     (char*)NULL };
5095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5097  *  Description of Hpux_Vsscanf fix
5098  */
5099 tSCC zHpux_VsscanfName[] =
5100      "hpux_vsscanf";
5103  *  File name selection pattern
5104  */
5105 tSCC zHpux_VsscanfList[] =
5106   "stdio.h\0";
5108  *  Machine/OS name selection pattern
5109  */
5110 tSCC* apzHpux_VsscanfMachs[] = {
5111         "*-*-hpux*",
5112         (const char*)NULL };
5115  *  content selection pattern - do fix if pattern found
5116  */
5117 tSCC zHpux_VsscanfSelect0[] =
5118        "(extern int vsscanf\\()char";
5120 #define    HPUX_VSSCANF_TEST_CT  1
5121 static tTestDesc aHpux_VsscanfTests[] = {
5122   { TT_EGREP,    zHpux_VsscanfSelect0, (regex_t*)NULL }, };
5125  *  Fix Command Arguments for Hpux_Vsscanf
5126  */
5127 static const char* apzHpux_VsscanfPatch[] = {
5128     "format",
5129     "%1const char",
5130     (char*)NULL };
5132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5134  *  Description of Hpux8_Bogus_Inlines fix
5135  */
5136 tSCC zHpux8_Bogus_InlinesName[] =
5137      "hpux8_bogus_inlines";
5140  *  File name selection pattern
5141  */
5142 tSCC zHpux8_Bogus_InlinesList[] =
5143   "math.h\0";
5145  *  Machine/OS name selection pattern
5146  */
5147 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
5150  *  content selection pattern - do fix if pattern found
5151  */
5152 tSCC zHpux8_Bogus_InlinesSelect0[] =
5153        "inline";
5156  *  content bypass pattern - skip fix if pattern found
5157  */
5158 tSCC zHpux8_Bogus_InlinesBypass0[] =
5159        "__GNUG__";
5161 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
5162 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
5163   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
5164   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
5167  *  Fix Command Arguments for Hpux8_Bogus_Inlines
5168  */
5169 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
5170     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
5171     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
5172     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
5173     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
5174     (char*)NULL };
5176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5178  *  Description of Hpux_C99_Intptr fix
5179  */
5180 tSCC zHpux_C99_IntptrName[] =
5181      "hpux_c99_intptr";
5184  *  File name selection pattern
5185  */
5186 tSCC zHpux_C99_IntptrList[] =
5187   "stdint-hpux11.h\0stdint.h\0";
5189  *  Machine/OS name selection pattern
5190  */
5191 tSCC* apzHpux_C99_IntptrMachs[] = {
5192         "*-hp-hpux11.3*",
5193         (const char*)NULL };
5194 #define HPUX_C99_INTPTR_TEST_CT  0
5195 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
5198  *  Fix Command Arguments for Hpux_C99_Intptr
5199  */
5200 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
5201     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
5202     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5203     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
5204     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
5205     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
5206     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
5207     (char*)NULL };
5209 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5211  *  Description of Hpux_C99_Inttypes fix
5212  */
5213 tSCC zHpux_C99_InttypesName[] =
5214      "hpux_c99_inttypes";
5217  *  File name selection pattern
5218  */
5219 tSCC zHpux_C99_InttypesList[] =
5220   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
5222  *  Machine/OS name selection pattern
5223  */
5224 tSCC* apzHpux_C99_InttypesMachs[] = {
5225         "*-hp-hpux11.[23]*",
5226         (const char*)NULL };
5227 #define HPUX_C99_INTTYPES_TEST_CT  0
5228 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
5231  *  Fix Command Arguments for Hpux_C99_Inttypes
5232  */
5233 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
5234     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
5235     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
5236     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
5237     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
5238     (char*)NULL };
5240 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5242  *  Description of Hpux_C99_Inttypes2 fix
5243  */
5244 tSCC zHpux_C99_Inttypes2Name[] =
5245      "hpux_c99_inttypes2";
5248  *  File name selection pattern
5249  */
5250 tSCC zHpux_C99_Inttypes2List[] =
5251   "stdint-hpux11.h\0stdint.h\0";
5253  *  Machine/OS name selection pattern
5254  */
5255 tSCC* apzHpux_C99_Inttypes2Machs[] = {
5256         "*-hp-hpux11.2*",
5257         (const char*)NULL };
5258 #define HPUX_C99_INTTYPES2_TEST_CT  0
5259 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
5262  *  Fix Command Arguments for Hpux_C99_Inttypes2
5263  */
5264 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
5265     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
5266     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
5267     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
5268     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
5269     (char*)NULL };
5271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5273  *  Description of Hpux_C99_Inttypes3 fix
5274  */
5275 tSCC zHpux_C99_Inttypes3Name[] =
5276      "hpux_c99_inttypes3";
5279  *  File name selection pattern
5280  */
5281 tSCC zHpux_C99_Inttypes3List[] =
5282   "inttypes.h\0";
5284  *  Machine/OS name selection pattern
5285  */
5286 tSCC* apzHpux_C99_Inttypes3Machs[] = {
5287         "hppa*-hp-hpux11*",
5288         (const char*)NULL };
5291  *  content selection pattern - do fix if pattern found
5292  */
5293 tSCC zHpux_C99_Inttypes3Select0[] =
5294        "#define[ \t]INTPTR_MAX[ \t]*\n\
5295 #define[ \t]UINTPTR_MAX[ \t]*\n";
5297 #define    HPUX_C99_INTTYPES3_TEST_CT  1
5298 static tTestDesc aHpux_C99_Inttypes3Tests[] = {
5299   { TT_EGREP,    zHpux_C99_Inttypes3Select0, (regex_t*)NULL }, };
5302  *  Fix Command Arguments for Hpux_C99_Inttypes3
5303  */
5304 static const char* apzHpux_C99_Inttypes3Patch[] = {
5305     "format",
5306     "#undef SIZE_MAX\n\
5307 #define SIZE_MAX __SIZE_MAX__\n\
5308 #ifdef __INTPTR_MAX__\n\
5309 # undef INTPTR_MAX\n\
5310 # define INTPTR_MAX __INTPTR_MAX__\n\
5311 # undef INTPTR_MIN\n\
5312 # define INTPTR_MIN (-INTPTR_MAX - 1)\n\
5313 #endif\n\
5314 #ifdef __UINTPTR_MAX__\n\
5315 # undef UINTPTR_MAX\n\
5316 # define UINTPTR_MAX __UINTPTR_MAX__\n\
5317 #endif\n",
5318     (char*)NULL };
5320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5322  *  Description of Hpux_C99_Inttypes4 fix
5323  */
5324 tSCC zHpux_C99_Inttypes4Name[] =
5325      "hpux_c99_inttypes4";
5328  *  File name selection pattern
5329  */
5330 tSCC zHpux_C99_Inttypes4List[] =
5331   "inttypes.h\0";
5333  *  Machine/OS name selection pattern
5334  */
5335 tSCC* apzHpux_C99_Inttypes4Machs[] = {
5336         "hppa*-hp-hpux11.[01]*",
5337         (const char*)NULL };
5338 #define HPUX_C99_INTTYPES4_TEST_CT  0
5339 #define aHpux_C99_Inttypes4Tests   (tTestDesc*)NULL
5342  *  Fix Command Arguments for Hpux_C99_Inttypes4
5343  */
5344 static const char* apzHpux_C99_Inttypes4Patch[] = { sed_cmd_z,
5345     "-e", "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx64/a\\\n\
5346 #define SCNuMAX \t SCNu64\n",
5347     "-e", "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx32/a\\\n\
5348 #define SCNuMAX \t SCNu32\n",
5349     (char*)NULL };
5351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5353  *  Description of Hpux_C99_Inttypes5 fix
5354  */
5355 tSCC zHpux_C99_Inttypes5Name[] =
5356      "hpux_c99_inttypes5";
5359  *  File name selection pattern
5360  */
5361 tSCC zHpux_C99_Inttypes5List[] =
5362   "inttypes.h\0";
5364  *  Machine/OS name selection pattern
5365  */
5366 tSCC* apzHpux_C99_Inttypes5Machs[] = {
5367         "hppa*-hp-hpux11.[01]*",
5368         (const char*)NULL };
5371  *  content selection pattern - do fix if pattern found
5372  */
5373 tSCC zHpux_C99_Inttypes5Select0[] =
5374        "#ifndef[ \t]_KERNEL[ \t]*\n";
5376 #define    HPUX_C99_INTTYPES5_TEST_CT  1
5377 static tTestDesc aHpux_C99_Inttypes5Tests[] = {
5378   { TT_EGREP,    zHpux_C99_Inttypes5Select0, (regex_t*)NULL }, };
5381  *  Fix Command Arguments for Hpux_C99_Inttypes5
5382  */
5383 static const char* apzHpux_C99_Inttypes5Patch[] = {
5384     "format",
5385     "#ifndef __LP64__\n\
5386 #define PRIdPTR\t\tPRId32\n\
5387 #define PRIiPTR\t\tPRIi32\n\
5388 #define PRIoPTR\t\tPRIo32\n\
5389 #define PRIuPTR\t\tPRIu32\n\
5390 #define PRIxPTR\t\tPRIx32\n\
5391 #define PRIXPTR\t\tPRIX32\n\
5392 #else\n\
5393 #define PRIdPTR\t\tPRId64\n\
5394 #define PRIiPTR\t\tPRIi64\n\
5395 #define PRIoPTR\t\tPRIo64\n\
5396 #define PRIuPTR\t\tPRIu64\n\
5397 #define PRIxPTR\t\tPRIx64\n\
5398 #define PRIXPTR\t\tPRIX64\n\
5399 #endif\n\n\
5400 #ifndef _KERNEL\n",
5401     (char*)NULL };
5403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5405  *  Description of Hpux_Ctype_Macros fix
5406  */
5407 tSCC zHpux_Ctype_MacrosName[] =
5408      "hpux_ctype_macros";
5411  *  File name selection pattern
5412  */
5413 tSCC zHpux_Ctype_MacrosList[] =
5414   "ctype.h\0";
5416  *  Machine/OS name selection pattern
5417  */
5418 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
5421  *  content selection pattern - do fix if pattern found
5422  */
5423 tSCC zHpux_Ctype_MacrosSelect0[] =
5424        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
5426 #define    HPUX_CTYPE_MACROS_TEST_CT  1
5427 static tTestDesc aHpux_Ctype_MacrosTests[] = {
5428   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
5431  *  Fix Command Arguments for Hpux_Ctype_Macros
5432  */
5433 static const char* apzHpux_Ctype_MacrosPatch[] = {
5434     "format",
5435     "%1(int)%3",
5436     (char*)NULL };
5438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5440  *  Description of Hpux_Extern_Errno fix
5441  */
5442 tSCC zHpux_Extern_ErrnoName[] =
5443      "hpux_extern_errno";
5446  *  File name selection pattern
5447  */
5448 tSCC zHpux_Extern_ErrnoList[] =
5449   "errno.h\0";
5451  *  Machine/OS name selection pattern
5452  */
5453 tSCC* apzHpux_Extern_ErrnoMachs[] = {
5454         "*-hp-hpux10.*",
5455         "*-hp-hpux11.[0-2]*",
5456         (const char*)NULL };
5459  *  content selection pattern - do fix if pattern found
5460  */
5461 tSCC zHpux_Extern_ErrnoSelect0[] =
5462        "^[ \t]*extern int errno;$";
5464 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
5465 static tTestDesc aHpux_Extern_ErrnoTests[] = {
5466   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
5469  *  Fix Command Arguments for Hpux_Extern_Errno
5470  */
5471 static const char* apzHpux_Extern_ErrnoPatch[] = {
5472     "format",
5473     "#ifdef __cplusplus\n\
5474 extern \"C\" {\n\
5475 #endif\n\
5476 %0\n\
5477 #ifdef __cplusplus\n\
5478 }\n\
5479 #endif",
5480     (char*)NULL };
5482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5484  *  Description of Hpux_Htonl fix
5485  */
5486 tSCC zHpux_HtonlName[] =
5487      "hpux_htonl";
5490  *  File name selection pattern
5491  */
5492 tSCC zHpux_HtonlList[] =
5493   "netinet/in.h\0";
5495  *  Machine/OS name selection pattern
5496  */
5497 #define apzHpux_HtonlMachs (const char**)NULL
5500  *  content selection pattern - do fix if pattern found
5501  */
5502 tSCC zHpux_HtonlSelect0[] =
5503        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
5504 (/\\*\n\
5505  \\* Macros for number representation conversion\\.\n\
5506  \\*/\n\
5507 #ifndef ntohl)";
5509 #define    HPUX_HTONL_TEST_CT  1
5510 static tTestDesc aHpux_HtonlTests[] = {
5511   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
5514  *  Fix Command Arguments for Hpux_Htonl
5515  */
5516 static const char* apzHpux_HtonlPatch[] = {
5517     "format",
5518     "#if 1\n\
5519 %1",
5520     (char*)NULL };
5522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5524  *  Description of Hpux_Imaginary_I fix
5525  */
5526 tSCC zHpux_Imaginary_IName[] =
5527      "hpux_imaginary_i";
5530  *  File name selection pattern
5531  */
5532 tSCC zHpux_Imaginary_IList[] =
5533   "complex.h\0";
5535  *  Machine/OS name selection pattern
5536  */
5537 tSCC* apzHpux_Imaginary_IMachs[] = {
5538         "ia64-hp-hpux11.*",
5539         (const char*)NULL };
5542  *  content selection pattern - do fix if pattern found
5543  */
5544 tSCC zHpux_Imaginary_ISelect0[] =
5545        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
5547 #define    HPUX_IMAGINARY_I_TEST_CT  1
5548 static tTestDesc aHpux_Imaginary_ITests[] = {
5549   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
5552  *  Fix Command Arguments for Hpux_Imaginary_I
5553  */
5554 static const char* apzHpux_Imaginary_IPatch[] = {
5555     "format",
5556     "#define _Complex_I (__extension__ 1.0iF)",
5557     (char*)NULL };
5559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5561  *  Description of Hpux_Inttype_Int8_T fix
5562  */
5563 tSCC zHpux_Inttype_Int8_TName[] =
5564      "hpux_inttype_int8_t";
5567  *  File name selection pattern
5568  */
5569 tSCC zHpux_Inttype_Int8_TList[] =
5570   "sys/_inttypes.h\0";
5572  *  Machine/OS name selection pattern
5573  */
5574 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
5575         "*-hp-hpux1[01].*",
5576         (const char*)NULL };
5579  *  content selection pattern - do fix if pattern found
5580  */
5581 tSCC zHpux_Inttype_Int8_TSelect0[] =
5582        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
5584 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
5585 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
5586   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
5589  *  Fix Command Arguments for Hpux_Inttype_Int8_T
5590  */
5591 static const char* apzHpux_Inttype_Int8_TPatch[] = {
5592     "format",
5593     "typedef signed char int%18_t;",
5594     (char*)NULL };
5596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5598  *  Description of Hpux_Long_Double fix
5599  */
5600 tSCC zHpux_Long_DoubleName[] =
5601      "hpux_long_double";
5604  *  File name selection pattern
5605  */
5606 tSCC zHpux_Long_DoubleList[] =
5607   "stdlib.h\0";
5609  *  Machine/OS name selection pattern
5610  */
5611 tSCC* apzHpux_Long_DoubleMachs[] = {
5612         "*-*-hpux10*",
5613         "*-*-hpux11.[012]*",
5614         (const char*)NULL };
5617  *  content selection pattern - do fix if pattern found
5618  */
5619 tSCC zHpux_Long_DoubleSelect0[] =
5620        "extern[ \t]long_double[ \t]strtold";
5623  *  content bypass pattern - skip fix if pattern found
5624  */
5625 tSCC zHpux_Long_DoubleBypass0[] =
5626        "long_double_t";
5628 #define    HPUX_LONG_DOUBLE_TEST_CT  2
5629 static tTestDesc aHpux_Long_DoubleTests[] = {
5630   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
5631   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
5634  *  Fix Command Arguments for Hpux_Long_Double
5635  */
5636 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
5637     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
5638     "-e", "s/long_double/long double/g",
5639     (char*)NULL };
5641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5643  *  Description of Hpux_Long_Double_2 fix
5644  */
5645 tSCC zHpux_Long_Double_2Name[] =
5646      "hpux_long_double_2";
5649  *  File name selection pattern
5650  */
5651 tSCC zHpux_Long_Double_2List[] =
5652   "stdlib.h\0";
5654  *  Machine/OS name selection pattern
5655  */
5656 tSCC* apzHpux_Long_Double_2Machs[] = {
5657         "hppa*-*-hpux11.3*",
5658         (const char*)NULL };
5661  *  content selection pattern - do fix if pattern found
5662  */
5663 tSCC zHpux_Long_Double_2Select0[] =
5664        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
5666 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
5667 static tTestDesc aHpux_Long_Double_2Tests[] = {
5668   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
5671  *  Fix Command Arguments for Hpux_Long_Double_2
5672  */
5673 static const char* apzHpux_Long_Double_2Patch[] = {
5674     "format",
5675     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
5676     (char*)NULL };
5678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5680  *  Description of Hpux_Pthread_Initializers fix
5681  */
5682 tSCC zHpux_Pthread_InitializersName[] =
5683      "hpux_pthread_initializers";
5686  *  File name selection pattern
5687  */
5688 tSCC zHpux_Pthread_InitializersList[] =
5689   "sys/pthread.h\0";
5691  *  Machine/OS name selection pattern
5692  */
5693 tSCC* apzHpux_Pthread_InitializersMachs[] = {
5694         "*-hp-hpux11.[0-3]*",
5695         (const char*)NULL };
5696 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
5697 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
5700  *  Fix Command Arguments for Hpux_Pthread_Initializers
5701  */
5702 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
5703     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
5704     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
5705     "-e", "/^[ \t]*0$/d",
5706     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
5707     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
5708     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
5709     "-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\\\\@",
5710     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
5711     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
5712     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
5713     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
5714     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
5715     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
5716     (char*)NULL };
5718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5720  *  Description of Hpux_Spu_Info fix
5721  */
5722 tSCC zHpux_Spu_InfoName[] =
5723      "hpux_spu_info";
5726  *  File name selection pattern
5727  */
5728 tSCC zHpux_Spu_InfoList[] =
5729   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
5731  *  Machine/OS name selection pattern
5732  */
5733 tSCC* apzHpux_Spu_InfoMachs[] = {
5734         "*-hp-hpux*",
5735         (const char*)NULL };
5738  *  content selection pattern - do fix if pattern found
5739  */
5740 tSCC zHpux_Spu_InfoSelect0[] =
5741        "^.*extern.*spu_info.*";
5743 #define    HPUX_SPU_INFO_TEST_CT  1
5744 static tTestDesc aHpux_Spu_InfoTests[] = {
5745   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
5748  *  Fix Command Arguments for Hpux_Spu_Info
5749  */
5750 static const char* apzHpux_Spu_InfoPatch[] = {
5751     "format",
5752     "#ifdef _KERNEL\n\
5753 %0\n\
5754 #endif",
5755     (char*)NULL };
5757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5759  *  Description of Hpux_Stdint_Least_Fast fix
5760  */
5761 tSCC zHpux_Stdint_Least_FastName[] =
5762      "hpux_stdint_least_fast";
5765  *  File name selection pattern
5766  */
5767 tSCC zHpux_Stdint_Least_FastList[] =
5768   "stdint-hpux11.h\0stdint.h\0";
5770  *  Machine/OS name selection pattern
5771  */
5772 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
5773         "*-hp-hpux11.2*",
5774         (const char*)NULL };
5777  *  content selection pattern - do fix if pattern found
5778  */
5779 tSCC zHpux_Stdint_Least_FastSelect0[] =
5780        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
5782 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
5783 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
5784   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
5787  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
5788  */
5789 static const char* apzHpux_Stdint_Least_FastPatch[] = {
5790     "format",
5791     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
5792     (char*)NULL };
5794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5796  *  Description of Hpux_Longjmp fix
5797  */
5798 tSCC zHpux_LongjmpName[] =
5799      "hpux_longjmp";
5802  *  File name selection pattern
5803  */
5804 tSCC zHpux_LongjmpList[] =
5805   "setjmp.h\0";
5807  *  Machine/OS name selection pattern
5808  */
5809 tSCC* apzHpux_LongjmpMachs[] = {
5810         "*-hp-hpux*",
5811         (const char*)NULL };
5814  *  content selection pattern - do fix if pattern found
5815  */
5816 tSCC zHpux_LongjmpSelect0[] =
5817        "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))";
5819 #define    HPUX_LONGJMP_TEST_CT  1
5820 static tTestDesc aHpux_LongjmpTests[] = {
5821   { TT_EGREP,    zHpux_LongjmpSelect0, (regex_t*)NULL }, };
5824  *  Fix Command Arguments for Hpux_Longjmp
5825  */
5826 static const char* apzHpux_LongjmpPatch[] = {
5827     "format",
5828     "%0 __attribute__ ((__noreturn__))",
5829     (char*)NULL };
5831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5833  *  Description of Hpux_Systime fix
5834  */
5835 tSCC zHpux_SystimeName[] =
5836      "hpux_systime";
5839  *  File name selection pattern
5840  */
5841 tSCC zHpux_SystimeList[] =
5842   "sys/time.h\0";
5844  *  Machine/OS name selection pattern
5845  */
5846 #define apzHpux_SystimeMachs (const char**)NULL
5849  *  content selection pattern - do fix if pattern found
5850  */
5851 tSCC zHpux_SystimeSelect0[] =
5852        "^extern struct sigevent;";
5854 #define    HPUX_SYSTIME_TEST_CT  1
5855 static tTestDesc aHpux_SystimeTests[] = {
5856   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
5859  *  Fix Command Arguments for Hpux_Systime
5860  */
5861 static const char* apzHpux_SystimePatch[] = {
5862     "format",
5863     "struct sigevent;",
5864     (char*)NULL };
5866 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5868  *  Description of Huge_Val_Hex fix
5869  */
5870 tSCC zHuge_Val_HexName[] =
5871      "huge_val_hex";
5874  *  File name selection pattern
5875  */
5876 tSCC zHuge_Val_HexList[] =
5877   "bits/huge_val.h\0*/bits/huge_val.h\0";
5879  *  Machine/OS name selection pattern
5880  */
5881 #define apzHuge_Val_HexMachs (const char**)NULL
5884  *  content selection pattern - do fix if pattern found
5885  */
5886 tSCC zHuge_Val_HexSelect0[] =
5887        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
5890  *  content bypass pattern - skip fix if pattern found
5891  */
5892 tSCC zHuge_Val_HexBypass0[] =
5893        "__builtin_huge_val";
5895 #define    HUGE_VAL_HEX_TEST_CT  2
5896 static tTestDesc aHuge_Val_HexTests[] = {
5897   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
5898   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
5901  *  Fix Command Arguments for Huge_Val_Hex
5902  */
5903 static const char* apzHuge_Val_HexPatch[] = {
5904     "format",
5905     "#define HUGE_VAL (__builtin_huge_val())\n",
5906     (char*)NULL };
5908 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5910  *  Description of Huge_Valf_Hex fix
5911  */
5912 tSCC zHuge_Valf_HexName[] =
5913      "huge_valf_hex";
5916  *  File name selection pattern
5917  */
5918 tSCC zHuge_Valf_HexList[] =
5919   "bits/huge_val.h\0*/bits/huge_val.h\0";
5921  *  Machine/OS name selection pattern
5922  */
5923 #define apzHuge_Valf_HexMachs (const char**)NULL
5926  *  content selection pattern - do fix if pattern found
5927  */
5928 tSCC zHuge_Valf_HexSelect0[] =
5929        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
5932  *  content bypass pattern - skip fix if pattern found
5933  */
5934 tSCC zHuge_Valf_HexBypass0[] =
5935        "__builtin_huge_valf";
5937 #define    HUGE_VALF_HEX_TEST_CT  2
5938 static tTestDesc aHuge_Valf_HexTests[] = {
5939   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
5940   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
5943  *  Fix Command Arguments for Huge_Valf_Hex
5944  */
5945 static const char* apzHuge_Valf_HexPatch[] = {
5946     "format",
5947     "#define HUGE_VALF (__builtin_huge_valf())\n",
5948     (char*)NULL };
5950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5952  *  Description of Huge_Vall_Hex fix
5953  */
5954 tSCC zHuge_Vall_HexName[] =
5955      "huge_vall_hex";
5958  *  File name selection pattern
5959  */
5960 tSCC zHuge_Vall_HexList[] =
5961   "bits/huge_val.h\0*/bits/huge_val.h\0";
5963  *  Machine/OS name selection pattern
5964  */
5965 #define apzHuge_Vall_HexMachs (const char**)NULL
5968  *  content selection pattern - do fix if pattern found
5969  */
5970 tSCC zHuge_Vall_HexSelect0[] =
5971        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
5974  *  content bypass pattern - skip fix if pattern found
5975  */
5976 tSCC zHuge_Vall_HexBypass0[] =
5977        "__builtin_huge_vall";
5979 #define    HUGE_VALL_HEX_TEST_CT  2
5980 static tTestDesc aHuge_Vall_HexTests[] = {
5981   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
5982   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
5985  *  Fix Command Arguments for Huge_Vall_Hex
5986  */
5987 static const char* apzHuge_Vall_HexPatch[] = {
5988     "format",
5989     "#define HUGE_VALL (__builtin_huge_vall())\n",
5990     (char*)NULL };
5992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5994  *  Description of Int_Abort_Free_And_Exit fix
5995  */
5996 tSCC zInt_Abort_Free_And_ExitName[] =
5997      "int_abort_free_and_exit";
6000  *  File name selection pattern
6001  */
6002 tSCC zInt_Abort_Free_And_ExitList[] =
6003   "stdlib.h\0";
6005  *  Machine/OS name selection pattern
6006  */
6007 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
6010  *  content selection pattern - do fix if pattern found
6011  */
6012 tSCC zInt_Abort_Free_And_ExitSelect0[] =
6013        "int[ \t]+(abort|free|exit)[ \t]*\\(";
6016  *  content bypass pattern - skip fix if pattern found
6017  */
6018 tSCC zInt_Abort_Free_And_ExitBypass0[] =
6019        "_CLASSIC_ANSI_TYPES";
6021 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
6022 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
6023   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
6024   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
6027  *  Fix Command Arguments for Int_Abort_Free_And_Exit
6028  */
6029 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
6030     "format",
6031     "void\t%1(",
6032     (char*)NULL };
6034 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6036  *  Description of Io_Quotes_Def fix
6037  */
6038 tSCC zIo_Quotes_DefName[] =
6039      "io_quotes_def";
6042  *  File name selection pattern
6043  */
6044 #define zIo_Quotes_DefList (char*)NULL
6046  *  Machine/OS name selection pattern
6047  */
6048 #define apzIo_Quotes_DefMachs (const char**)NULL
6051  *  content selection pattern - do fix if pattern found
6052  */
6053 tSCC zIo_Quotes_DefSelect0[] =
6054        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
6056 #define    IO_QUOTES_DEF_TEST_CT  1
6057 static tTestDesc aIo_Quotes_DefTests[] = {
6058   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
6061  *  Fix Command Arguments for Io_Quotes_Def
6062  */
6063 static const char* apzIo_Quotes_DefPatch[] = {
6064     "char_macro_def",
6065     "IO",
6066     (char*)NULL };
6068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6070  *  Description of Io_Quotes_Use fix
6071  */
6072 tSCC zIo_Quotes_UseName[] =
6073      "io_quotes_use";
6076  *  File name selection pattern
6077  */
6078 #define zIo_Quotes_UseList (char*)NULL
6080  *  Machine/OS name selection pattern
6081  */
6082 #define apzIo_Quotes_UseMachs (const char**)NULL
6085  *  content selection pattern - do fix if pattern found
6086  */
6087 tSCC zIo_Quotes_UseSelect0[] =
6088        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
6090 #define    IO_QUOTES_USE_TEST_CT  1
6091 static tTestDesc aIo_Quotes_UseTests[] = {
6092   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
6095  *  Fix Command Arguments for Io_Quotes_Use
6096  */
6097 static const char* apzIo_Quotes_UsePatch[] = {
6098     "char_macro_use",
6099     "IO",
6100     (char*)NULL };
6102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6104  *  Description of Ip_Missing_Semi fix
6105  */
6106 tSCC zIp_Missing_SemiName[] =
6107      "ip_missing_semi";
6110  *  File name selection pattern
6111  */
6112 tSCC zIp_Missing_SemiList[] =
6113   "netinet/ip.h\0";
6115  *  Machine/OS name selection pattern
6116  */
6117 #define apzIp_Missing_SemiMachs (const char**)NULL
6120  *  content selection pattern - do fix if pattern found
6121  */
6122 tSCC zIp_Missing_SemiSelect0[] =
6123        "}$";
6125 #define    IP_MISSING_SEMI_TEST_CT  1
6126 static tTestDesc aIp_Missing_SemiTests[] = {
6127   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
6130  *  Fix Command Arguments for Ip_Missing_Semi
6131  */
6132 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
6133     "-e", "/^struct/,/^};/s/}$/};/",
6134     (char*)NULL };
6136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6138  *  Description of Irix_Limits_Const fix
6139  */
6140 tSCC zIrix_Limits_ConstName[] =
6141      "irix_limits_const";
6144  *  File name selection pattern
6145  */
6146 tSCC zIrix_Limits_ConstList[] =
6147   "fixinc-test-limits.h\0limits.h\0";
6149  *  Machine/OS name selection pattern
6150  */
6151 #define apzIrix_Limits_ConstMachs (const char**)NULL
6154  *  content selection pattern - do fix if pattern found
6155  */
6156 tSCC zIrix_Limits_ConstSelect0[] =
6157        "^extern const ";
6159 #define    IRIX_LIMITS_CONST_TEST_CT  1
6160 static tTestDesc aIrix_Limits_ConstTests[] = {
6161   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
6164  *  Fix Command Arguments for Irix_Limits_Const
6165  */
6166 static const char* apzIrix_Limits_ConstPatch[] = {
6167     "format",
6168     "extern __const ",
6169     (char*)NULL };
6171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6173  *  Description of Irix_Stdio_Va_List fix
6174  */
6175 tSCC zIrix_Stdio_Va_ListName[] =
6176      "irix_stdio_va_list";
6179  *  File name selection pattern
6180  */
6181 tSCC zIrix_Stdio_Va_ListList[] =
6182   "stdio.h\0";
6184  *  Machine/OS name selection pattern
6185  */
6186 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
6189  *  content selection pattern - do fix if pattern found
6190  */
6191 tSCC zIrix_Stdio_Va_ListSelect0[] =
6192        "/\\* va_list \\*/ char \\*";
6194 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
6195 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
6196   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
6199  *  Fix Command Arguments for Irix_Stdio_Va_List
6200  */
6201 static const char* apzIrix_Stdio_Va_ListPatch[] = {
6202     "format",
6203     "__gnuc_va_list",
6204     (char*)NULL };
6206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6208  *  Description of Kandr_Concat fix
6209  */
6210 tSCC zKandr_ConcatName[] =
6211      "kandr_concat";
6214  *  File name selection pattern
6215  */
6216 tSCC zKandr_ConcatList[] =
6217   "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";
6219  *  Machine/OS name selection pattern
6220  */
6221 #define apzKandr_ConcatMachs (const char**)NULL
6224  *  content selection pattern - do fix if pattern found
6225  */
6226 tSCC zKandr_ConcatSelect0[] =
6227        "/\\*\\*/";
6229 #define    KANDR_CONCAT_TEST_CT  1
6230 static tTestDesc aKandr_ConcatTests[] = {
6231   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
6234  *  Fix Command Arguments for Kandr_Concat
6235  */
6236 static const char* apzKandr_ConcatPatch[] = {
6237     "format",
6238     "##",
6239     (char*)NULL };
6241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6243  *  Description of Linux_Ia64_Ucontext fix
6244  */
6245 tSCC zLinux_Ia64_UcontextName[] =
6246      "linux_ia64_ucontext";
6249  *  File name selection pattern
6250  */
6251 tSCC zLinux_Ia64_UcontextList[] =
6252   "sys/ucontext.h\0";
6254  *  Machine/OS name selection pattern
6255  */
6256 tSCC* apzLinux_Ia64_UcontextMachs[] = {
6257         "ia64-*-linux*",
6258         (const char*)NULL };
6261  *  content selection pattern - do fix if pattern found
6262  */
6263 tSCC zLinux_Ia64_UcontextSelect0[] =
6264        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
6266 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
6267 static tTestDesc aLinux_Ia64_UcontextTests[] = {
6268   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
6271  *  Fix Command Arguments for Linux_Ia64_Ucontext
6272  */
6273 static const char* apzLinux_Ia64_UcontextPatch[] = {
6274     "format",
6275     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
6276     (char*)NULL };
6278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6280  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
6281  */
6282 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
6283      "lynxos_no_warning_in_sys_time_h";
6286  *  File name selection pattern
6287  */
6288 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
6289   "sys/time.h\0";
6291  *  Machine/OS name selection pattern
6292  */
6293 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
6296  *  content selection pattern - do fix if pattern found
6297  */
6298 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
6299        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
6301 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
6302 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
6303   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
6306  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
6307  */
6308 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
6309     "format",
6310     "",
6311     (char*)NULL };
6313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6315  *  Description of Lynxos_Missing_Putenv fix
6316  */
6317 tSCC zLynxos_Missing_PutenvName[] =
6318      "lynxos_missing_putenv";
6321  *  File name selection pattern
6322  */
6323 tSCC zLynxos_Missing_PutenvList[] =
6324   "stdlib.h\0";
6326  *  Machine/OS name selection pattern
6327  */
6328 tSCC* apzLynxos_Missing_PutenvMachs[] = {
6329         "*-*-lynxos*",
6330         (const char*)NULL };
6333  *  content selection pattern - do fix if pattern found
6334  */
6335 tSCC zLynxos_Missing_PutenvSelect0[] =
6336        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
6339  *  content bypass pattern - skip fix if pattern found
6340  */
6341 tSCC zLynxos_Missing_PutenvBypass0[] =
6342        "putenv[ \\t]*\\(";
6344 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
6345 static tTestDesc aLynxos_Missing_PutenvTests[] = {
6346   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
6347   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
6350  *  Fix Command Arguments for Lynxos_Missing_Putenv
6351  */
6352 static const char* apzLynxos_Missing_PutenvPatch[] = {
6353     "format",
6354     "%0\n\
6355 extern int putenv\t\t\t\t_AP((char *));",
6356     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
6357     (char*)NULL };
6359 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6361  *  Description of Machine_Ansi_H_Va_List fix
6362  */
6363 tSCC zMachine_Ansi_H_Va_ListName[] =
6364      "machine_ansi_h_va_list";
6367  *  File name selection pattern
6368  */
6369 #define zMachine_Ansi_H_Va_ListList (char*)NULL
6371  *  Machine/OS name selection pattern
6372  */
6373 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
6376  *  content selection pattern - do fix if pattern found
6377  */
6378 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
6379        "define[ \t]+_BSD_VA_LIST_[ \t]";
6382  *  content bypass pattern - skip fix if pattern found
6383  */
6384 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
6385        "__builtin_va_list";
6387 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
6388 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
6389   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
6390   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
6393  *  Fix Command Arguments for Machine_Ansi_H_Va_List
6394  */
6395 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
6396     "format",
6397     "%1__builtin_va_list",
6398     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
6399     (char*)NULL };
6401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6403  *  Description of Machine_Name fix
6404  */
6405 tSCC zMachine_NameName[] =
6406      "machine_name";
6409  *  File name selection pattern
6410  */
6411 #define zMachine_NameList (char*)NULL
6413  *  Machine/OS name selection pattern
6414  */
6415 #define apzMachine_NameMachs (const char**)NULL
6418  *  perform the C function call test
6419  */
6420 tSCC zMachine_NameFTst0[] = "machine_name";
6422 #define    MACHINE_NAME_TEST_CT  1
6423 static tTestDesc aMachine_NameTests[] = {
6424   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
6427  *  Fix Command Arguments for Machine_Name
6428  */
6429 static const char* apzMachine_NamePatch[] = {
6430     "machine_name",
6431     (char*)NULL };
6433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6435  *  Description of Math_Exception fix
6436  */
6437 tSCC zMath_ExceptionName[] =
6438      "math_exception";
6441  *  File name selection pattern
6442  */
6443 tSCC zMath_ExceptionList[] =
6444   "math.h\0";
6446  *  Machine/OS name selection pattern
6447  */
6448 tSCC* apzMath_ExceptionMachs[] = {
6449         "*-*-solaris2.1[0-9]*",
6450         (const char*)NULL };
6453  *  content selection pattern - do fix if pattern found
6454  */
6455 tSCC zMath_ExceptionSelect0[] =
6456        "struct exception";
6459  *  content bypass pattern - skip fix if pattern found
6460  */
6461 tSCC zMath_ExceptionBypass0[] =
6462        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
6464 #define    MATH_EXCEPTION_TEST_CT  2
6465 static tTestDesc aMath_ExceptionTests[] = {
6466   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
6467   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
6470  *  Fix Command Arguments for Math_Exception
6471  */
6472 static const char* apzMath_ExceptionPatch[] = {
6473     "wrap",
6474     "#ifdef __cplusplus\n\
6475 #define exception __math_exception\n\
6476 #endif\n",
6477     "#ifdef __cplusplus\n\
6478 #undef exception\n\
6479 #endif\n",
6480     (char*)NULL };
6482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6484  *  Description of Math_Huge_Val_From_Dbl_Max fix
6485  */
6486 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
6487      "math_huge_val_from_dbl_max";
6490  *  File name selection pattern
6491  */
6492 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
6493   "math.h\0";
6495  *  Machine/OS name selection pattern
6496  */
6497 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
6500  *  content selection pattern - do fix if pattern found
6501  */
6502 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
6503        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
6506  *  content bypass pattern - skip fix if pattern found
6507  */
6508 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
6509        "define[ \t]+DBL_MAX";
6511 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
6512 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
6513   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
6514   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
6517  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
6518  */
6519 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
6520     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
6521 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
6522 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
6523 \telse cat\n\
6524 \tfi",
6525     (char*)NULL };
6527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6529  *  Description of Nested_Auth_Des fix
6530  */
6531 tSCC zNested_Auth_DesName[] =
6532      "nested_auth_des";
6535  *  File name selection pattern
6536  */
6537 tSCC zNested_Auth_DesList[] =
6538   "rpc/rpc.h\0";
6540  *  Machine/OS name selection pattern
6541  */
6542 #define apzNested_Auth_DesMachs (const char**)NULL
6545  *  content selection pattern - do fix if pattern found
6546  */
6547 tSCC zNested_Auth_DesSelect0[] =
6548        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
6550 #define    NESTED_AUTH_DES_TEST_CT  1
6551 static tTestDesc aNested_Auth_DesTests[] = {
6552   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
6555  *  Fix Command Arguments for Nested_Auth_Des
6556  */
6557 static const char* apzNested_Auth_DesPatch[] = {
6558     "format",
6559     "%1*/ /*",
6560     (char*)NULL };
6562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6564  *  Description of Netbsd_C99_Inline_1 fix
6565  */
6566 tSCC zNetbsd_C99_Inline_1Name[] =
6567      "netbsd_c99_inline_1";
6570  *  File name selection pattern
6571  */
6572 tSCC zNetbsd_C99_Inline_1List[] =
6573   "signal.h\0";
6575  *  Machine/OS name selection pattern
6576  */
6577 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
6578         "*-*-netbsd*",
6579         (const char*)NULL };
6582  *  content selection pattern - do fix if pattern found
6583  */
6584 tSCC zNetbsd_C99_Inline_1Select0[] =
6585        "extern __inline int";
6587 #define    NETBSD_C99_INLINE_1_TEST_CT  1
6588 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
6589   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
6592  *  Fix Command Arguments for Netbsd_C99_Inline_1
6593  */
6594 static const char* apzNetbsd_C99_Inline_1Patch[] = {
6595     "format",
6596     "extern\n\
6597 #ifdef __GNUC_STDC_INLINE__\n\
6598 __attribute__((__gnu_inline__))\n\
6599 #endif\n\
6600 __inline int",
6601     (char*)NULL };
6603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6605  *  Description of Netbsd_C99_Inline_2 fix
6606  */
6607 tSCC zNetbsd_C99_Inline_2Name[] =
6608      "netbsd_c99_inline_2";
6611  *  File name selection pattern
6612  */
6613 tSCC zNetbsd_C99_Inline_2List[] =
6614   "signal.h\0";
6616  *  Machine/OS name selection pattern
6617  */
6618 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
6619         "*-*-netbsd*",
6620         (const char*)NULL };
6623  *  content selection pattern - do fix if pattern found
6624  */
6625 tSCC zNetbsd_C99_Inline_2Select0[] =
6626        "#define _SIGINLINE extern __inline";
6628 #define    NETBSD_C99_INLINE_2_TEST_CT  1
6629 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
6630   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
6633  *  Fix Command Arguments for Netbsd_C99_Inline_2
6634  */
6635 static const char* apzNetbsd_C99_Inline_2Patch[] = {
6636     "format",
6637     "#ifdef __GNUC_STDC_INLINE__\n\
6638 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
6639 #else\n\
6640 %0\n\
6641 #endif",
6642     (char*)NULL };
6644 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6646  *  Description of Netbsd_Extra_Semicolon fix
6647  */
6648 tSCC zNetbsd_Extra_SemicolonName[] =
6649      "netbsd_extra_semicolon";
6652  *  File name selection pattern
6653  */
6654 tSCC zNetbsd_Extra_SemicolonList[] =
6655   "sys/cdefs.h\0";
6657  *  Machine/OS name selection pattern
6658  */
6659 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
6660         "*-*-netbsd*",
6661         (const char*)NULL };
6664  *  content selection pattern - do fix if pattern found
6665  */
6666 tSCC zNetbsd_Extra_SemicolonSelect0[] =
6667        "#define[ \t]*__END_DECLS[ \t]*};";
6669 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
6670 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
6671   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
6674  *  Fix Command Arguments for Netbsd_Extra_Semicolon
6675  */
6676 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
6677     "format",
6678     "#define __END_DECLS }",
6679     (char*)NULL };
6681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6683  *  Description of Newlib_Stdint_1 fix
6684  */
6685 tSCC zNewlib_Stdint_1Name[] =
6686      "newlib_stdint_1";
6689  *  File name selection pattern
6690  */
6691 tSCC zNewlib_Stdint_1List[] =
6692   "stdint-newlib.h\0stdint.h\0";
6694  *  Machine/OS name selection pattern
6695  */
6696 #define apzNewlib_Stdint_1Machs (const char**)NULL
6699  *  content selection pattern - do fix if pattern found
6700  */
6701 tSCC zNewlib_Stdint_1Select0[] =
6702        "@todo - Add support for wint_t types";
6704 #define    NEWLIB_STDINT_1_TEST_CT  1
6705 static tTestDesc aNewlib_Stdint_1Tests[] = {
6706   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
6709  *  Fix Command Arguments for Newlib_Stdint_1
6710  */
6711 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
6712     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
6713     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
6714     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
6715     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
6716     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
6717     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
6718     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
6719     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
6720     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
6721     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
6722     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
6723     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
6724     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
6725     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
6726     (char*)NULL };
6728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6730  *  Description of Newlib_Stdint_2 fix
6731  */
6732 tSCC zNewlib_Stdint_2Name[] =
6733      "newlib_stdint_2";
6736  *  File name selection pattern
6737  */
6738 tSCC zNewlib_Stdint_2List[] =
6739   "stdint-newlib.h\0stdint.h\0";
6741  *  Machine/OS name selection pattern
6742  */
6743 #define apzNewlib_Stdint_2Machs (const char**)NULL
6746  *  content selection pattern - do fix if pattern found
6747  */
6748 tSCC zNewlib_Stdint_2Select0[] =
6749        "@todo - Add support for wint_t types";
6751 #define    NEWLIB_STDINT_2_TEST_CT  1
6752 static tTestDesc aNewlib_Stdint_2Tests[] = {
6753   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
6756  *  Fix Command Arguments for Newlib_Stdint_2
6757  */
6758 static const char* apzNewlib_Stdint_2Patch[] = {
6759     "format",
6760     "#define INTMAX_MAX __INTMAX_MAX__\n\
6761 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
6762 #define UINTMAX_MAX __UINTMAX_MAX__\n\
6763 #define WCHAR_MAX __WCHAR_MAX__\n\
6764 #define WCHAR_MIN __WCHAR_MIN__\n\
6765 #define WINT_MAX __WINT_MAX__\n\
6766 #define WINT_MIN __WINT_MIN__\n\n\
6767 %0",
6768     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
6769     (char*)NULL };
6771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6773  *  Description of Next_Math_Prefix fix
6774  */
6775 tSCC zNext_Math_PrefixName[] =
6776      "next_math_prefix";
6779  *  File name selection pattern
6780  */
6781 tSCC zNext_Math_PrefixList[] =
6782   "ansi/math.h\0";
6784  *  Machine/OS name selection pattern
6785  */
6786 #define apzNext_Math_PrefixMachs (const char**)NULL
6789  *  content selection pattern - do fix if pattern found
6790  */
6791 tSCC zNext_Math_PrefixSelect0[] =
6792        "^extern[ \t]+double[ \t]+__const__[ \t]";
6794 #define    NEXT_MATH_PREFIX_TEST_CT  1
6795 static tTestDesc aNext_Math_PrefixTests[] = {
6796   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
6799  *  Fix Command Arguments for Next_Math_Prefix
6800  */
6801 static const char* apzNext_Math_PrefixPatch[] = {
6802     "format",
6803     "extern double %1(",
6804     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
6805     (char*)NULL };
6807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6809  *  Description of Next_Template fix
6810  */
6811 tSCC zNext_TemplateName[] =
6812      "next_template";
6815  *  File name selection pattern
6816  */
6817 tSCC zNext_TemplateList[] =
6818   "bsd/libc.h\0";
6820  *  Machine/OS name selection pattern
6821  */
6822 #define apzNext_TemplateMachs (const char**)NULL
6825  *  content selection pattern - do fix if pattern found
6826  */
6827 tSCC zNext_TemplateSelect0[] =
6828        "[ \t]template\\)";
6830 #define    NEXT_TEMPLATE_TEST_CT  1
6831 static tTestDesc aNext_TemplateTests[] = {
6832   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
6835  *  Fix Command Arguments for Next_Template
6836  */
6837 static const char* apzNext_TemplatePatch[] = {
6838     "format",
6839     "(%1)",
6840     "\\(([^)]*)[ \t]template\\)",
6841     (char*)NULL };
6843 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6845  *  Description of Next_Volitile fix
6846  */
6847 tSCC zNext_VolitileName[] =
6848      "next_volitile";
6851  *  File name selection pattern
6852  */
6853 tSCC zNext_VolitileList[] =
6854   "ansi/stdlib.h\0";
6856  *  Machine/OS name selection pattern
6857  */
6858 #define apzNext_VolitileMachs (const char**)NULL
6861  *  content selection pattern - do fix if pattern found
6862  */
6863 tSCC zNext_VolitileSelect0[] =
6864        "^extern[ \t]+volatile[ \t]+void[ \t]";
6866 #define    NEXT_VOLITILE_TEST_CT  1
6867 static tTestDesc aNext_VolitileTests[] = {
6868   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
6871  *  Fix Command Arguments for Next_Volitile
6872  */
6873 static const char* apzNext_VolitilePatch[] = {
6874     "format",
6875     "extern void %1(",
6876     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
6877     (char*)NULL };
6879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6881  *  Description of Next_Wait_Union fix
6882  */
6883 tSCC zNext_Wait_UnionName[] =
6884      "next_wait_union";
6887  *  File name selection pattern
6888  */
6889 tSCC zNext_Wait_UnionList[] =
6890   "sys/wait.h\0";
6892  *  Machine/OS name selection pattern
6893  */
6894 #define apzNext_Wait_UnionMachs (const char**)NULL
6897  *  content selection pattern - do fix if pattern found
6898  */
6899 tSCC zNext_Wait_UnionSelect0[] =
6900        "wait\\(union wait";
6902 #define    NEXT_WAIT_UNION_TEST_CT  1
6903 static tTestDesc aNext_Wait_UnionTests[] = {
6904   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
6907  *  Fix Command Arguments for Next_Wait_Union
6908  */
6909 static const char* apzNext_Wait_UnionPatch[] = {
6910     "format",
6911     "wait(void",
6912     (char*)NULL };
6914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6916  *  Description of Nodeent_Syntax fix
6917  */
6918 tSCC zNodeent_SyntaxName[] =
6919      "nodeent_syntax";
6922  *  File name selection pattern
6923  */
6924 tSCC zNodeent_SyntaxList[] =
6925   "netdnet/dnetdb.h\0";
6927  *  Machine/OS name selection pattern
6928  */
6929 #define apzNodeent_SyntaxMachs (const char**)NULL
6932  *  content selection pattern - do fix if pattern found
6933  */
6934 tSCC zNodeent_SyntaxSelect0[] =
6935        "char[ \t]*\\*na_addr[ \t]*$";
6937 #define    NODEENT_SYNTAX_TEST_CT  1
6938 static tTestDesc aNodeent_SyntaxTests[] = {
6939   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
6942  *  Fix Command Arguments for Nodeent_Syntax
6943  */
6944 static const char* apzNodeent_SyntaxPatch[] = {
6945     "format",
6946     "%0;",
6947     (char*)NULL };
6949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6951  *  Description of Openbsd_Null_Definition fix
6952  */
6953 tSCC zOpenbsd_Null_DefinitionName[] =
6954      "openbsd_null_definition";
6957  *  File name selection pattern
6958  */
6959 tSCC zOpenbsd_Null_DefinitionList[] =
6960   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
6962  *  Machine/OS name selection pattern
6963  */
6964 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
6965         "*-*-openbsd*",
6966         (const char*)NULL };
6969  *  content selection pattern - do fix if pattern found
6970  */
6971 tSCC zOpenbsd_Null_DefinitionSelect0[] =
6972        "__GNUG__";
6974 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
6975 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
6976   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
6979  *  Fix Command Arguments for Openbsd_Null_Definition
6980  */
6981 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
6982     "format",
6983     "#ifndef NULL\n\
6984 #ifdef __cplusplus\n\
6985 #ifdef __GNUG__\n\
6986 #define NULL\t__null\n\
6987 #else\t /* ! __GNUG__  */\n\
6988 #define NULL\t0L\n\
6989 #endif\t /* __GNUG__  */\n\
6990 #else\t /* ! __cplusplus  */\n\
6991 #define NULL\t((void *)0)\n\
6992 #endif\t /* __cplusplus  */\n\
6993 #endif\t /* !NULL  */",
6994     "^#ifndef[ \t]*NULL\n\
6995 ^#ifdef[ \t]*__GNUG__\n\
6996 ^#define[ \t]*NULL[ \t]*__null\n\
6997 ^#else\n\
6998 ^#define[ \t]*NULL[ \t]*0L\n\
6999 ^#endif\n\
7000 ^#endif",
7001     (char*)NULL };
7003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7005  *  Description of Obstack_Lvalue_Cast fix
7006  */
7007 tSCC zObstack_Lvalue_CastName[] =
7008      "obstack_lvalue_cast";
7011  *  File name selection pattern
7012  */
7013 tSCC zObstack_Lvalue_CastList[] =
7014   "obstack.h\0";
7016  *  Machine/OS name selection pattern
7017  */
7018 #define apzObstack_Lvalue_CastMachs (const char**)NULL
7021  *  content selection pattern - do fix if pattern found
7022  */
7023 tSCC zObstack_Lvalue_CastSelect0[] =
7024        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
7026 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
7027 static tTestDesc aObstack_Lvalue_CastTests[] = {
7028   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
7031  *  Fix Command Arguments for Obstack_Lvalue_Cast
7032  */
7033 static const char* apzObstack_Lvalue_CastPatch[] = {
7034     "format",
7035     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
7036     (char*)NULL };
7038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7040  *  Description of Openbsd_Va_Start fix
7041  */
7042 tSCC zOpenbsd_Va_StartName[] =
7043      "openbsd_va_start";
7046  *  File name selection pattern
7047  */
7048 tSCC zOpenbsd_Va_StartList[] =
7049   "stdarg.h\0";
7051  *  Machine/OS name selection pattern
7052  */
7053 tSCC* apzOpenbsd_Va_StartMachs[] = {
7054         "*-*-openbsd*",
7055         (const char*)NULL };
7058  *  content selection pattern - do fix if pattern found
7059  */
7060 tSCC zOpenbsd_Va_StartSelect0[] =
7061        "__builtin_stdarg_start";
7063 #define    OPENBSD_VA_START_TEST_CT  1
7064 static tTestDesc aOpenbsd_Va_StartTests[] = {
7065   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
7068  *  Fix Command Arguments for Openbsd_Va_Start
7069  */
7070 static const char* apzOpenbsd_Va_StartPatch[] = {
7071     "format",
7072     "__builtin_va_start",
7073     (char*)NULL };
7075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7077  *  Description of Osf_Namespace_A fix
7078  */
7079 tSCC zOsf_Namespace_AName[] =
7080      "osf_namespace_a";
7083  *  File name selection pattern
7084  */
7085 tSCC zOsf_Namespace_AList[] =
7086   "reg_types.h\0sys/lc_core.h\0";
7088  *  Machine/OS name selection pattern
7089  */
7090 #define apzOsf_Namespace_AMachs (const char**)NULL
7093  *  perform the 'test' shell command - do fix on success
7094  */
7095 tSCC zOsf_Namespace_ATest0[] =
7096        " -r reg_types.h";
7097 tSCC zOsf_Namespace_ATest1[] =
7098        " -r sys/lc_core.h";
7099 tSCC zOsf_Namespace_ATest2[] =
7100        " -n \"`grep '} regex_t;' reg_types.h`\"";
7101 tSCC zOsf_Namespace_ATest3[] =
7102        " -z \"`grep __regex_t regex.h`\"";
7104 #define    OSF_NAMESPACE_A_TEST_CT  4
7105 static tTestDesc aOsf_Namespace_ATests[] = {
7106   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
7107   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
7108   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
7109   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
7112  *  Fix Command Arguments for Osf_Namespace_A
7113  */
7114 static const char* apzOsf_Namespace_APatch[] = {
7115     "format",
7116     "__%0",
7117     "reg(ex|off|match)_t",
7118     (char*)NULL };
7120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7122  *  Description of Osf_Namespace_C fix
7123  */
7124 tSCC zOsf_Namespace_CName[] =
7125      "osf_namespace_c";
7128  *  File name selection pattern
7129  */
7130 tSCC zOsf_Namespace_CList[] =
7131   "regex.h\0";
7133  *  Machine/OS name selection pattern
7134  */
7135 #define apzOsf_Namespace_CMachs (const char**)NULL
7138  *  content selection pattern - do fix if pattern found
7139  */
7140 tSCC zOsf_Namespace_CSelect0[] =
7141        "#include <reg_types.h>.*";
7144  *  perform the 'test' shell command - do fix on success
7145  */
7146 tSCC zOsf_Namespace_CTest0[] =
7147        " -r reg_types.h";
7148 tSCC zOsf_Namespace_CTest1[] =
7149        " -r sys/lc_core.h";
7150 tSCC zOsf_Namespace_CTest2[] =
7151        " -n \"`grep '} regex_t;' reg_types.h`\"";
7152 tSCC zOsf_Namespace_CTest3[] =
7153        " -z \"`grep __regex_t regex.h`\"";
7155 #define    OSF_NAMESPACE_C_TEST_CT  5
7156 static tTestDesc aOsf_Namespace_CTests[] = {
7157   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
7158   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
7159   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
7160   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
7161   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
7164  *  Fix Command Arguments for Osf_Namespace_C
7165  */
7166 static const char* apzOsf_Namespace_CPatch[] = {
7167     "format",
7168     "%0\n\
7169 typedef __regex_t\tregex_t;\n\
7170 typedef __regoff_t\tregoff_t;\n\
7171 typedef __regmatch_t\tregmatch_t;",
7172     (char*)NULL };
7174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7176  *  Description of Pthread_Incomplete_Struct_Argument fix
7177  */
7178 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
7179      "pthread_incomplete_struct_argument";
7182  *  File name selection pattern
7183  */
7184 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
7185   "pthread.h\0";
7187  *  Machine/OS name selection pattern
7188  */
7189 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
7192  *  content selection pattern - do fix if pattern found
7193  */
7194 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
7195        "struct __jmp_buf_tag";
7197 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
7198 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
7199   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
7202  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
7203  */
7204 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
7205     "format",
7206     "%1 *%2%3",
7207     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
7208     (char*)NULL };
7210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7212  *  Description of Read_Ret_Type fix
7213  */
7214 tSCC zRead_Ret_TypeName[] =
7215      "read_ret_type";
7218  *  File name selection pattern
7219  */
7220 tSCC zRead_Ret_TypeList[] =
7221   "stdio.h\0";
7223  *  Machine/OS name selection pattern
7224  */
7225 #define apzRead_Ret_TypeMachs (const char**)NULL
7228  *  content selection pattern - do fix if pattern found
7229  */
7230 tSCC zRead_Ret_TypeSelect0[] =
7231        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
7233 #define    READ_RET_TYPE_TEST_CT  1
7234 static tTestDesc aRead_Ret_TypeTests[] = {
7235   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
7238  *  Fix Command Arguments for Read_Ret_Type
7239  */
7240 static const char* apzRead_Ret_TypePatch[] = {
7241     "format",
7242     "extern unsigned int fread(), fwrite();\n\
7243 %1%2",
7244     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
7245     (char*)NULL };
7247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7249  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
7250  */
7251 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
7252      "rpc_xdr_lvalue_cast_a";
7255  *  File name selection pattern
7256  */
7257 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
7258   "rpc/xdr.h\0";
7260  *  Machine/OS name selection pattern
7261  */
7262 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
7265  *  content selection pattern - do fix if pattern found
7266  */
7267 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
7268        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
7269 .*__extension__.*";
7271 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
7272 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
7273   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
7276  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
7277  */
7278 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
7279     "format",
7280     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
7281     (char*)NULL };
7283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7285  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
7286  */
7287 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
7288      "rpc_xdr_lvalue_cast_b";
7291  *  File name selection pattern
7292  */
7293 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
7294   "rpc/xdr.h\0";
7296  *  Machine/OS name selection pattern
7297  */
7298 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
7301  *  content selection pattern - do fix if pattern found
7302  */
7303 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
7304        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
7305 .*__extension__.*";
7307 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
7308 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
7309   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
7312  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
7313  */
7314 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
7315     "format",
7316     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
7317     (char*)NULL };
7319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7321  *  Description of Rs6000_Double fix
7322  */
7323 tSCC zRs6000_DoubleName[] =
7324      "rs6000_double";
7327  *  File name selection pattern
7328  */
7329 tSCC zRs6000_DoubleList[] =
7330   "math.h\0";
7332  *  Machine/OS name selection pattern
7333  */
7334 #define apzRs6000_DoubleMachs (const char**)NULL
7337  *  content selection pattern - do fix if pattern found
7338  */
7339 tSCC zRs6000_DoubleSelect0[] =
7340        "[^a-zA-Z_]class\\(";
7342 #define    RS6000_DOUBLE_TEST_CT  1
7343 static tTestDesc aRs6000_DoubleTests[] = {
7344   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
7347  *  Fix Command Arguments for Rs6000_Double
7348  */
7349 static const char* apzRs6000_DoublePatch[] = {
7350     "format",
7351     "#ifndef __cplusplus\n\
7352 %0\n\
7353 #endif",
7354     "^.*[^a-zA-Z_]class\\(.*",
7355     (char*)NULL };
7357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7359  *  Description of Rs6000_Fchmod fix
7360  */
7361 tSCC zRs6000_FchmodName[] =
7362      "rs6000_fchmod";
7365  *  File name selection pattern
7366  */
7367 tSCC zRs6000_FchmodList[] =
7368   "sys/stat.h\0";
7370  *  Machine/OS name selection pattern
7371  */
7372 #define apzRs6000_FchmodMachs (const char**)NULL
7375  *  content selection pattern - do fix if pattern found
7376  */
7377 tSCC zRs6000_FchmodSelect0[] =
7378        "fchmod\\(char \\*";
7380 #define    RS6000_FCHMOD_TEST_CT  1
7381 static tTestDesc aRs6000_FchmodTests[] = {
7382   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
7385  *  Fix Command Arguments for Rs6000_Fchmod
7386  */
7387 static const char* apzRs6000_FchmodPatch[] = {
7388     "format",
7389     "fchmod(int",
7390     (char*)NULL };
7392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7394  *  Description of Rs6000_Param fix
7395  */
7396 tSCC zRs6000_ParamName[] =
7397      "rs6000_param";
7400  *  File name selection pattern
7401  */
7402 tSCC zRs6000_ParamList[] =
7403   "stdio.h\0unistd.h\0";
7405  *  Machine/OS name selection pattern
7406  */
7407 #define apzRs6000_ParamMachs (const char**)NULL
7410  *  content selection pattern - do fix if pattern found
7411  */
7412 tSCC zRs6000_ParamSelect0[] =
7413        "rename\\(const char \\*old, const char \\*new\\)";
7415 #define    RS6000_PARAM_TEST_CT  1
7416 static tTestDesc aRs6000_ParamTests[] = {
7417   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
7420  *  Fix Command Arguments for Rs6000_Param
7421  */
7422 static const char* apzRs6000_ParamPatch[] = {
7423     "format",
7424     "rename(const char *_old, const char *_new)",
7425     (char*)NULL };
7427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7429  *  Description of Solaris___Restrict fix
7430  */
7431 tSCC zSolaris___RestrictName[] =
7432      "solaris___restrict";
7435  *  File name selection pattern
7436  */
7437 tSCC zSolaris___RestrictList[] =
7438   "sys/feature_tests.h\0";
7440  *  Machine/OS name selection pattern
7441  */
7442 tSCC* apzSolaris___RestrictMachs[] = {
7443         "*-*-solaris2*",
7444         (const char*)NULL };
7447  *  content selection pattern - do fix if pattern found
7448  */
7449 tSCC zSolaris___RestrictSelect0[] =
7450        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
7452 #define    SOLARIS___RESTRICT_TEST_CT  1
7453 static tTestDesc aSolaris___RestrictTests[] = {
7454   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
7457  *  Fix Command Arguments for Solaris___Restrict
7458  */
7459 static const char* apzSolaris___RestrictPatch[] = {
7460     "format",
7461     "#ifdef __cplusplus\n\
7462 #define\t_RESTRICT_KYWD\t__restrict\n\
7463 #else\n\
7464 %0\n\
7465 #endif",
7466     (char*)NULL };
7468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7470  *  Description of Solaris_Complex fix
7471  */
7472 tSCC zSolaris_ComplexName[] =
7473      "solaris_complex";
7476  *  File name selection pattern
7477  */
7478 tSCC zSolaris_ComplexList[] =
7479   "complex.h\0";
7481  *  Machine/OS name selection pattern
7482  */
7483 tSCC* apzSolaris_ComplexMachs[] = {
7484         "*-*-solaris2.*",
7485         (const char*)NULL };
7488  *  content selection pattern - do fix if pattern found
7489  */
7490 tSCC zSolaris_ComplexSelect0[] =
7491        "#define[ \t]_Complex_I[ \t]_Complex_I";
7493 #define    SOLARIS_COMPLEX_TEST_CT  1
7494 static tTestDesc aSolaris_ComplexTests[] = {
7495   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
7498  *  Fix Command Arguments for Solaris_Complex
7499  */
7500 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
7501     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
7502     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
7503     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
7504     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
7505     (char*)NULL };
7507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7509  *  Description of Solaris_Complex_Cxx fix
7510  */
7511 tSCC zSolaris_Complex_CxxName[] =
7512      "solaris_complex_cxx";
7515  *  File name selection pattern
7516  */
7517 tSCC zSolaris_Complex_CxxList[] =
7518   "complex.h\0";
7520  *  Machine/OS name selection pattern
7521  */
7522 tSCC* apzSolaris_Complex_CxxMachs[] = {
7523         "*-*-solaris2.*",
7524         (const char*)NULL };
7525 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
7526 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
7529  *  Fix Command Arguments for Solaris_Complex_Cxx
7530  */
7531 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
7532     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
7533 #ifdef\t__cplusplus\\\n\
7534 extern \"C\" {\\\n\
7535 #endif",
7536     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
7537 #ifdef\t__cplusplus\\\n\
7538 }\\\n\
7539 #endif",
7540     (char*)NULL };
7542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7544  *  Description of Solaris_Cxx_Linkage fix
7545  */
7546 tSCC zSolaris_Cxx_LinkageName[] =
7547      "solaris_cxx_linkage";
7550  *  File name selection pattern
7551  */
7552 tSCC zSolaris_Cxx_LinkageList[] =
7553   "iso/stdlib_iso.h\0";
7555  *  Machine/OS name selection pattern
7556  */
7557 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
7558         "*-*-solaris2*",
7559         (const char*)NULL };
7562  *  content selection pattern - do fix if pattern found
7563  */
7564 tSCC zSolaris_Cxx_LinkageSelect0[] =
7565        "(#if __cplusplus >= 199711L)\n\
7566 (extern \"C\\+\\+\" \\{\n\
7567 )(.*(bsearch|qsort).*)";
7569 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
7570 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
7571   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
7574  *  Fix Command Arguments for Solaris_Cxx_Linkage
7575  */
7576 static const char* apzSolaris_Cxx_LinkagePatch[] = {
7577     "format",
7578     "%1 && !__GNUG__\n\
7579 %2%3",
7580     (char*)NULL };
7582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7584  *  Description of Solaris_Getc_Strict_Stdc fix
7585  */
7586 tSCC zSolaris_Getc_Strict_StdcName[] =
7587      "solaris_getc_strict_stdc";
7590  *  File name selection pattern
7591  */
7592 tSCC zSolaris_Getc_Strict_StdcList[] =
7593   "iso/stdio_iso.h\0";
7595  *  Machine/OS name selection pattern
7596  */
7597 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
7598         "*-*-solaris2*",
7599         (const char*)NULL };
7602  *  content selection pattern - do fix if pattern found
7603  */
7604 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
7605        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
7607 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
7608 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
7609   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
7612  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
7613  */
7614 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
7615     "format",
7616     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
7617     (char*)NULL };
7619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7621  *  Description of Solaris_Gets_C11 fix
7622  */
7623 tSCC zSolaris_Gets_C11Name[] =
7624      "solaris_gets_c11";
7627  *  File name selection pattern
7628  */
7629 tSCC zSolaris_Gets_C11List[] =
7630   "iso/stdio_iso.h\0";
7632  *  Machine/OS name selection pattern
7633  */
7634 tSCC* apzSolaris_Gets_C11Machs[] = {
7635         "*-*-solaris2*",
7636         (const char*)NULL };
7639  *  content selection pattern - do fix if pattern found
7640  */
7641 tSCC zSolaris_Gets_C11Select0[] =
7642        "(extern char[ \t]*\\*gets\\(char \\*\\));";
7644 #define    SOLARIS_GETS_C11_TEST_CT  1
7645 static tTestDesc aSolaris_Gets_C11Tests[] = {
7646   { TT_EGREP,    zSolaris_Gets_C11Select0, (regex_t*)NULL }, };
7649  *  Fix Command Arguments for Solaris_Gets_C11
7650  */
7651 static const char* apzSolaris_Gets_C11Patch[] = {
7652     "format",
7653     "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\
7654 %1 __attribute__((__deprecated__));\n\
7655 #endif",
7656     (char*)NULL };
7658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7660  *  Description of Solaris_Gets_Cxx14 fix
7661  */
7662 tSCC zSolaris_Gets_Cxx14Name[] =
7663      "solaris_gets_cxx14";
7666  *  File name selection pattern
7667  */
7668 tSCC zSolaris_Gets_Cxx14List[] =
7669   "iso/stdio_iso.h\0";
7671  *  Machine/OS name selection pattern
7672  */
7673 tSCC* apzSolaris_Gets_Cxx14Machs[] = {
7674         "*-*-solaris2*",
7675         (const char*)NULL };
7678  *  content selection pattern - do fix if pattern found
7679  */
7680 tSCC zSolaris_Gets_Cxx14Select0[] =
7681        "(#if __STDC_VERSION__ < 201112L)\n\
7682 (extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)";
7684 #define    SOLARIS_GETS_CXX14_TEST_CT  1
7685 static tTestDesc aSolaris_Gets_Cxx14Tests[] = {
7686   { TT_EGREP,    zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, };
7689  *  Fix Command Arguments for Solaris_Gets_Cxx14
7690  */
7691 static const char* apzSolaris_Gets_Cxx14Patch[] = {
7692     "format",
7693     "%1 && __cplusplus < 201402L\n\
7694 %2",
7695     (char*)NULL };
7697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7699  *  Description of Solaris_Int_Const fix
7700  */
7701 tSCC zSolaris_Int_ConstName[] =
7702      "solaris_int_const";
7705  *  File name selection pattern
7706  */
7707 tSCC zSolaris_Int_ConstList[] =
7708   "sys/int_const.h\0";
7710  *  Machine/OS name selection pattern
7711  */
7712 tSCC* apzSolaris_Int_ConstMachs[] = {
7713         "*-*-solaris2*",
7714         (const char*)NULL };
7717  *  content selection pattern - do fix if pattern found
7718  */
7719 tSCC zSolaris_Int_ConstSelect0[] =
7720        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7721 (/*.**/)\n\
7722 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7724 #define    SOLARIS_INT_CONST_TEST_CT  1
7725 static tTestDesc aSolaris_Int_ConstTests[] = {
7726   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7729  *  Fix Command Arguments for Solaris_Int_Const
7730  */
7731 static const char* apzSolaris_Int_ConstPatch[] = {
7732     "format",
7733     "#define\tUINT8_C(c)\t(c)\n\
7734 %1\n\
7735 #define\tUINT16_C(c)\t(c)",
7736     (char*)NULL };
7738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7740  *  Description of Solaris_Int_Limits_1 fix
7741  */
7742 tSCC zSolaris_Int_Limits_1Name[] =
7743      "solaris_int_limits_1";
7746  *  File name selection pattern
7747  */
7748 tSCC zSolaris_Int_Limits_1List[] =
7749   "sys/int_limits.h\0";
7751  *  Machine/OS name selection pattern
7752  */
7753 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7754         "*-*-solaris2*",
7755         (const char*)NULL };
7758  *  content selection pattern - do fix if pattern found
7759  */
7760 tSCC zSolaris_Int_Limits_1Select0[] =
7761        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7762 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7764 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
7765 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7766   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7769  *  Fix Command Arguments for Solaris_Int_Limits_1
7770  */
7771 static const char* apzSolaris_Int_Limits_1Patch[] = {
7772     "format",
7773     "#define\tUINT8_MAX\t(255)\n\
7774 #define\tUINT16_MAX\t(65535)",
7775     (char*)NULL };
7777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7779  *  Description of Solaris_Int_Limits_2 fix
7780  */
7781 tSCC zSolaris_Int_Limits_2Name[] =
7782      "solaris_int_limits_2";
7785  *  File name selection pattern
7786  */
7787 tSCC zSolaris_Int_Limits_2List[] =
7788   "sys/int_limits.h\0";
7790  *  Machine/OS name selection pattern
7791  */
7792 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7793         "*-*-solaris2*",
7794         (const char*)NULL };
7797  *  content selection pattern - do fix if pattern found
7798  */
7799 tSCC zSolaris_Int_Limits_2Select0[] =
7800        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7802 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
7803 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7804   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7807  *  Fix Command Arguments for Solaris_Int_Limits_2
7808  */
7809 static const char* apzSolaris_Int_Limits_2Patch[] = {
7810     "format",
7811     "#define\t%1_FAST16_%2 %132_%2",
7812     (char*)NULL };
7814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7816  *  Description of Solaris_Int_Limits_3 fix
7817  */
7818 tSCC zSolaris_Int_Limits_3Name[] =
7819      "solaris_int_limits_3";
7822  *  File name selection pattern
7823  */
7824 tSCC zSolaris_Int_Limits_3List[] =
7825   "sys/int_limits.h\0";
7827  *  Machine/OS name selection pattern
7828  */
7829 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7830         "*-*-solaris2*",
7831         (const char*)NULL };
7834  *  content selection pattern - do fix if pattern found
7835  */
7836 tSCC zSolaris_Int_Limits_3Select0[] =
7837        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7839 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
7840 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7841   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7844  *  Fix Command Arguments for Solaris_Int_Limits_3
7845  */
7846 static const char* apzSolaris_Int_Limits_3Patch[] = {
7847     "format",
7848     "#define\tSIZE_MAX\t4294967295U",
7849     (char*)NULL };
7851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7853  *  Description of Solaris_Math_1 fix
7854  */
7855 tSCC zSolaris_Math_1Name[] =
7856      "solaris_math_1";
7859  *  File name selection pattern
7860  */
7861 tSCC zSolaris_Math_1List[] =
7862   "iso/math_c99.h\0";
7864  *  Machine/OS name selection pattern
7865  */
7866 #define apzSolaris_Math_1Machs (const char**)NULL
7869  *  content selection pattern - do fix if pattern found
7870  */
7871 tSCC zSolaris_Math_1Select0[] =
7872        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7875  *  content bypass pattern - skip fix if pattern found
7876  */
7877 tSCC zSolaris_Math_1Bypass0[] =
7878        "__GNUC__";
7880 #define    SOLARIS_MATH_1_TEST_CT  2
7881 static tTestDesc aSolaris_Math_1Tests[] = {
7882   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
7883   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
7886  *  Fix Command Arguments for Solaris_Math_1
7887  */
7888 static const char* apzSolaris_Math_1Patch[] = {
7889     "format",
7890     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
7891     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
7892     (char*)NULL };
7894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7896  *  Description of Solaris_Math_10 fix
7897  */
7898 tSCC zSolaris_Math_10Name[] =
7899      "solaris_math_10";
7902  *  File name selection pattern
7903  */
7904 tSCC zSolaris_Math_10List[] =
7905   "iso/math_c99.h\0";
7907  *  Machine/OS name selection pattern
7908  */
7909 #define apzSolaris_Math_10Machs (const char**)NULL
7912  *  content selection pattern - do fix if pattern found
7913  */
7914 tSCC zSolaris_Math_10Select0[] =
7915        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7917 #define    SOLARIS_MATH_10_TEST_CT  1
7918 static tTestDesc aSolaris_Math_10Tests[] = {
7919   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
7922  *  Fix Command Arguments for Solaris_Math_10
7923  */
7924 static const char* apzSolaris_Math_10Patch[] = {
7925     "format",
7926     "#define\tisinf(x) __builtin_isinf(x)",
7927     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
7928 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7929 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
7930 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
7931     (char*)NULL };
7933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7935  *  Description of Solaris_Math_2 fix
7936  */
7937 tSCC zSolaris_Math_2Name[] =
7938      "solaris_math_2";
7941  *  File name selection pattern
7942  */
7943 tSCC zSolaris_Math_2List[] =
7944   "iso/math_c99.h\0";
7946  *  Machine/OS name selection pattern
7947  */
7948 #define apzSolaris_Math_2Machs (const char**)NULL
7951  *  content selection pattern - do fix if pattern found
7952  */
7953 tSCC zSolaris_Math_2Select0[] =
7954        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7957  *  content bypass pattern - skip fix if pattern found
7958  */
7959 tSCC zSolaris_Math_2Bypass0[] =
7960        "__GNUC__";
7962 #define    SOLARIS_MATH_2_TEST_CT  2
7963 static tTestDesc aSolaris_Math_2Tests[] = {
7964   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
7965   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
7968  *  Fix Command Arguments for Solaris_Math_2
7969  */
7970 static const char* apzSolaris_Math_2Patch[] = {
7971     "format",
7972     "#define\tINFINITY\t(__builtin_inff())",
7973     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
7974     (char*)NULL };
7976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7978  *  Description of Solaris_Math_3 fix
7979  */
7980 tSCC zSolaris_Math_3Name[] =
7981      "solaris_math_3";
7984  *  File name selection pattern
7985  */
7986 tSCC zSolaris_Math_3List[] =
7987   "iso/math_c99.h\0";
7989  *  Machine/OS name selection pattern
7990  */
7991 #define apzSolaris_Math_3Machs (const char**)NULL
7994  *  content selection pattern - do fix if pattern found
7995  */
7996 tSCC zSolaris_Math_3Select0[] =
7997        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8000  *  content bypass pattern - skip fix if pattern found
8001  */
8002 tSCC zSolaris_Math_3Bypass0[] =
8003        "__GNUC__";
8005 #define    SOLARIS_MATH_3_TEST_CT  2
8006 static tTestDesc aSolaris_Math_3Tests[] = {
8007   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
8008   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
8011  *  Fix Command Arguments for Solaris_Math_3
8012  */
8013 static const char* apzSolaris_Math_3Patch[] = {
8014     "format",
8015     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
8016     "^#define[ \t]+NAN[ \t]+__builtin_nan",
8017     (char*)NULL };
8019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8021  *  Description of Solaris_Math_4 fix
8022  */
8023 tSCC zSolaris_Math_4Name[] =
8024      "solaris_math_4";
8027  *  File name selection pattern
8028  */
8029 tSCC zSolaris_Math_4List[] =
8030   "iso/math_c99.h\0";
8032  *  Machine/OS name selection pattern
8033  */
8034 #define apzSolaris_Math_4Machs (const char**)NULL
8037  *  content selection pattern - do fix if pattern found
8038  */
8039 tSCC zSolaris_Math_4Select0[] =
8040        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8043  *  content bypass pattern - skip fix if pattern found
8044  */
8045 tSCC zSolaris_Math_4Bypass0[] =
8046        "__GNUC__";
8048 #define    SOLARIS_MATH_4_TEST_CT  2
8049 static tTestDesc aSolaris_Math_4Tests[] = {
8050   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
8051   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
8054  *  Fix Command Arguments for Solaris_Math_4
8055  */
8056 static const char* apzSolaris_Math_4Patch[] = {
8057     "format",
8058     "#define\tfpclassify(x) \\\n\
8059   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
8060     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
8061     (char*)NULL };
8063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8065  *  Description of Solaris_Math_8 fix
8066  */
8067 tSCC zSolaris_Math_8Name[] =
8068      "solaris_math_8";
8071  *  File name selection pattern
8072  */
8073 tSCC zSolaris_Math_8List[] =
8074   "iso/math_c99.h\0";
8076  *  Machine/OS name selection pattern
8077  */
8078 #define apzSolaris_Math_8Machs (const char**)NULL
8081  *  content selection pattern - do fix if pattern found
8082  */
8083 tSCC zSolaris_Math_8Select0[] =
8084        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
8087  *  content bypass pattern - skip fix if pattern found
8088  */
8089 tSCC zSolaris_Math_8Bypass0[] =
8090        "__GNUC__";
8092 #define    SOLARIS_MATH_8_TEST_CT  2
8093 static tTestDesc aSolaris_Math_8Tests[] = {
8094   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
8095   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
8098  *  Fix Command Arguments for Solaris_Math_8
8099  */
8100 static const char* apzSolaris_Math_8Patch[] = {
8101     "format",
8102     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
8103 \t\t\t   ? __builtin_signbitf(x) \\\n\
8104 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
8105 \t\t\t     ? __builtin_signbitl(x) \\\n\
8106 \t\t\t     : __builtin_signbit(x))",
8107     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
8108     (char*)NULL };
8110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8112  *  Description of Solaris_Math_9 fix
8113  */
8114 tSCC zSolaris_Math_9Name[] =
8115      "solaris_math_9";
8118  *  File name selection pattern
8119  */
8120 tSCC zSolaris_Math_9List[] =
8121   "iso/math_c99.h\0";
8123  *  Machine/OS name selection pattern
8124  */
8125 #define apzSolaris_Math_9Machs (const char**)NULL
8128  *  content selection pattern - do fix if pattern found
8129  */
8130 tSCC zSolaris_Math_9Select0[] =
8131        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8134  *  content bypass pattern - skip fix if pattern found
8135  */
8136 tSCC zSolaris_Math_9Bypass0[] =
8137        "__GNUC__";
8139 #define    SOLARIS_MATH_9_TEST_CT  2
8140 static tTestDesc aSolaris_Math_9Tests[] = {
8141   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
8142   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
8145  *  Fix Command Arguments for Solaris_Math_9
8146  */
8147 static const char* apzSolaris_Math_9Patch[] = {
8148     "format",
8149     "#define\t%1(x, y)%2__builtin_%1(x, y)",
8150     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
8151     (char*)NULL };
8153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8155  *  Description of Solaris_Math_11 fix
8156  */
8157 tSCC zSolaris_Math_11Name[] =
8158      "solaris_math_11";
8161  *  File name selection pattern
8162  */
8163 tSCC zSolaris_Math_11List[] =
8164   "iso/math_c99.h\0";
8166  *  Machine/OS name selection pattern
8167  */
8168 #define apzSolaris_Math_11Machs (const char**)NULL
8171  *  content selection pattern - do fix if pattern found
8172  */
8173 tSCC zSolaris_Math_11Select0[] =
8174        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
8176 #define    SOLARIS_MATH_11_TEST_CT  1
8177 static tTestDesc aSolaris_Math_11Tests[] = {
8178   { TT_EGREP,    zSolaris_Math_11Select0, (regex_t*)NULL }, };
8181  *  Fix Command Arguments for Solaris_Math_11
8182  */
8183 static const char* apzSolaris_Math_11Patch[] = {
8184     "format",
8185     "#undef\tsignbit\n\
8186 #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
8187 \t\t\t   ? __builtin_signbitf(x) \\\n\
8188 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
8189 \t\t\t     ? __builtin_signbitl(x) \\\n\
8190 \t\t\t     : __builtin_signbit(x))",
8191     "^#undef[ \t]+signbit\n\
8192 #if defined\\(__sparc\\)\n\
8193 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
8194 [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
8195 [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
8196 #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
8197 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
8198 [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
8199 [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
8200 [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
8201 [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
8202 [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
8203 [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
8204 #endif",
8205     (char*)NULL };
8207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8209  *  Description of Solaris_Math_12 fix
8210  */
8211 tSCC zSolaris_Math_12Name[] =
8212      "solaris_math_12";
8215  *  File name selection pattern
8216  */
8217 tSCC zSolaris_Math_12List[] =
8218   "math.h\0";
8220  *  Machine/OS name selection pattern
8221  */
8222 tSCC* apzSolaris_Math_12Machs[] = {
8223         "*-*-solaris2*",
8224         (const char*)NULL };
8227  *  content selection pattern - do fix if pattern found
8228  */
8229 tSCC zSolaris_Math_12Select0[] =
8230        "#undef.*_GLIBCXX_USE_C99_MATH";
8232 #define    SOLARIS_MATH_12_TEST_CT  1
8233 static tTestDesc aSolaris_Math_12Tests[] = {
8234   { TT_EGREP,    zSolaris_Math_12Select0, (regex_t*)NULL }, };
8237  *  Fix Command Arguments for Solaris_Math_12
8238  */
8239 static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
8240     "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
8241     (char*)NULL };
8243 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8245  *  Description of Solaris_Once_Init_1 fix
8246  */
8247 tSCC zSolaris_Once_Init_1Name[] =
8248      "solaris_once_init_1";
8251  *  File name selection pattern
8252  */
8253 tSCC zSolaris_Once_Init_1List[] =
8254   "pthread.h\0";
8256  *  Machine/OS name selection pattern
8257  */
8258 tSCC* apzSolaris_Once_Init_1Machs[] = {
8259         "*-*-solaris*",
8260         (const char*)NULL };
8263  *  content selection pattern - do fix if pattern found
8264  */
8265 tSCC zSolaris_Once_Init_1Select0[] =
8266        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8268 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
8269 static tTestDesc aSolaris_Once_Init_1Tests[] = {
8270   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
8273  *  Fix Command Arguments for Solaris_Once_Init_1
8274  */
8275 static const char* apzSolaris_Once_Init_1Patch[] = {
8276     "format",
8277     "%1{%2}%3",
8278     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
8279     (char*)NULL };
8281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8283  *  Description of Solaris_Posix_Spawn_Restrict fix
8284  */
8285 tSCC zSolaris_Posix_Spawn_RestrictName[] =
8286      "solaris_posix_spawn_restrict";
8289  *  File name selection pattern
8290  */
8291 tSCC zSolaris_Posix_Spawn_RestrictList[] =
8292   "spawn.h\0";
8294  *  Machine/OS name selection pattern
8295  */
8296 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
8297         "*-*-solaris2*",
8298         (const char*)NULL };
8301  *  content selection pattern - do fix if pattern found
8302  */
8303 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
8304        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
8306 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
8307 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
8308   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
8311  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
8312  */
8313 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
8314     "format",
8315     "%1*_RESTRICT_KYWD %2%3",
8316     (char*)NULL };
8318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8320  *  Description of Solaris_Pow_Int_Overload fix
8321  */
8322 tSCC zSolaris_Pow_Int_OverloadName[] =
8323      "solaris_pow_int_overload";
8326  *  File name selection pattern
8327  */
8328 tSCC zSolaris_Pow_Int_OverloadList[] =
8329   "iso/math_iso.h\0";
8331  *  Machine/OS name selection pattern
8332  */
8333 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
8334         "*-*-solaris2*",
8335         (const char*)NULL };
8338  *  content selection pattern - do fix if pattern found
8339  */
8340 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
8341        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
8342 [^{}]*\\}";
8344 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
8345 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
8346   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
8349  *  Fix Command Arguments for Solaris_Pow_Int_Overload
8350  */
8351 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
8352     "format",
8353     "#if __cplusplus < 201103L\n\
8354 %0\n\
8355 #endif",
8356     (char*)NULL };
8358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8360  *  Description of Solaris_Rwlock_Init_1 fix
8361  */
8362 tSCC zSolaris_Rwlock_Init_1Name[] =
8363      "solaris_rwlock_init_1";
8366  *  File name selection pattern
8367  */
8368 tSCC zSolaris_Rwlock_Init_1List[] =
8369   "pthread.h\0";
8371  *  Machine/OS name selection pattern
8372  */
8373 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
8374         "*-*-solaris*",
8375         (const char*)NULL };
8378  *  content selection pattern - do fix if pattern found
8379  */
8380 tSCC zSolaris_Rwlock_Init_1Select0[] =
8381        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8383 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
8384 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
8385   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
8388  *  Fix Command Arguments for Solaris_Rwlock_Init_1
8389  */
8390 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
8391     "format",
8392     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
8393 %0\n\
8394 #else\n\
8395 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
8396 #endif",
8397     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
8398     (char*)NULL };
8400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8402  *  Description of Solaris_Std___Filbuf fix
8403  */
8404 tSCC zSolaris_Std___FilbufName[] =
8405      "solaris_std___filbuf";
8408  *  File name selection pattern
8409  */
8410 tSCC zSolaris_Std___FilbufList[] =
8411   "stdio.h\0";
8413  *  Machine/OS name selection pattern
8414  */
8415 tSCC* apzSolaris_Std___FilbufMachs[] = {
8416         "*-*-solaris2*",
8417         (const char*)NULL };
8420  *  content selection pattern - do fix if pattern found
8421  */
8422 tSCC zSolaris_Std___FilbufSelect0[] =
8423        "(using std::perror;\n\
8424 )(#endif)";
8427  *  content bypass pattern - skip fix if pattern found
8428  */
8429 tSCC zSolaris_Std___FilbufBypass0[] =
8430        "using std::__filbuf";
8432 #define    SOLARIS_STD___FILBUF_TEST_CT  2
8433 static tTestDesc aSolaris_Std___FilbufTests[] = {
8434   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
8435   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
8438  *  Fix Command Arguments for Solaris_Std___Filbuf
8439  */
8440 static const char* apzSolaris_Std___FilbufPatch[] = {
8441     "format",
8442     "%1#ifndef _LP64\n\
8443 using std::__filbuf;\n\
8444 using std::__flsbuf;\n\
8445 #endif\n\
8446 %2",
8447     (char*)NULL };
8449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8451  *  Description of Solaris_Std_Gets_Cxx14 fix
8452  */
8453 tSCC zSolaris_Std_Gets_Cxx14Name[] =
8454      "solaris_std_gets_cxx14";
8457  *  File name selection pattern
8458  */
8459 tSCC zSolaris_Std_Gets_Cxx14List[] =
8460   "stdio.h\0";
8462  *  Machine/OS name selection pattern
8463  */
8464 tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = {
8465         "*-*-solaris2*",
8466         (const char*)NULL };
8469  *  content selection pattern - do fix if pattern found
8470  */
8471 tSCC zSolaris_Std_Gets_Cxx14Select0[] =
8472        "using std::gets;";
8474 #define    SOLARIS_STD_GETS_CXX14_TEST_CT  1
8475 static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = {
8476   { TT_EGREP,    zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, };
8479  *  Fix Command Arguments for Solaris_Std_Gets_Cxx14
8480  */
8481 static const char* apzSolaris_Std_Gets_Cxx14Patch[] = {
8482     "format",
8483     "#if __cplusplus < 201402L\n\
8484 %0\n\
8485 #endif",
8486     (char*)NULL };
8488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8490  *  Description of Solaris_Stdio_Tag fix
8491  */
8492 tSCC zSolaris_Stdio_TagName[] =
8493      "solaris_stdio_tag";
8496  *  File name selection pattern
8497  */
8498 tSCC zSolaris_Stdio_TagList[] =
8499   "stdio_tag.h\0";
8501  *  Machine/OS name selection pattern
8502  */
8503 #define apzSolaris_Stdio_TagMachs (const char**)NULL
8506  *  content selection pattern - do fix if pattern found
8507  */
8508 tSCC zSolaris_Stdio_TagSelect0[] =
8509        "__cplusplus < 54321L";
8512  *  content bypass pattern - skip fix if pattern found
8513  */
8514 tSCC zSolaris_Stdio_TagBypass0[] =
8515        "__GNUC__";
8517 #define    SOLARIS_STDIO_TAG_TEST_CT  2
8518 static tTestDesc aSolaris_Stdio_TagTests[] = {
8519   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
8520   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
8523  *  Fix Command Arguments for Solaris_Stdio_Tag
8524  */
8525 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
8526     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
8527     (char*)NULL };
8529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8531  *  Description of Solaris_Stdlib_Noreturn fix
8532  */
8533 tSCC zSolaris_Stdlib_NoreturnName[] =
8534      "solaris_stdlib_noreturn";
8537  *  File name selection pattern
8538  */
8539 tSCC zSolaris_Stdlib_NoreturnList[] =
8540   "iso/stdlib_c99.h\0";
8542  *  Machine/OS name selection pattern
8543  */
8544 tSCC* apzSolaris_Stdlib_NoreturnMachs[] = {
8545         "*-*-solaris2*",
8546         (const char*)NULL };
8549  *  content selection pattern - do fix if pattern found
8550  */
8551 tSCC zSolaris_Stdlib_NoreturnSelect0[] =
8552        "(extern) _Noreturn (void quick_exit\\(int\\));";
8554 #define    SOLARIS_STDLIB_NORETURN_TEST_CT  1
8555 static tTestDesc aSolaris_Stdlib_NoreturnTests[] = {
8556   { TT_EGREP,    zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, };
8559  *  Fix Command Arguments for Solaris_Stdlib_Noreturn
8560  */
8561 static const char* apzSolaris_Stdlib_NoreturnPatch[] = {
8562     "format",
8563     "%1 %2 __attribute__((__noreturn__));",
8564     (char*)NULL };
8566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8568  *  Description of Statsswtch fix
8569  */
8570 tSCC zStatsswtchName[] =
8571      "statsswtch";
8574  *  File name selection pattern
8575  */
8576 tSCC zStatsswtchList[] =
8577   "rpcsvc/rstat.h\0";
8579  *  Machine/OS name selection pattern
8580  */
8581 #define apzStatsswtchMachs (const char**)NULL
8584  *  content selection pattern - do fix if pattern found
8585  */
8586 tSCC zStatsswtchSelect0[] =
8587        "boottime$";
8589 #define    STATSSWTCH_TEST_CT  1
8590 static tTestDesc aStatsswtchTests[] = {
8591   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
8594  *  Fix Command Arguments for Statsswtch
8595  */
8596 static const char* apzStatsswtchPatch[] = {
8597     "format",
8598     "boottime;",
8599     (char*)NULL };
8601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8603  *  Description of Stdio_Stdarg_H fix
8604  */
8605 tSCC zStdio_Stdarg_HName[] =
8606      "stdio_stdarg_h";
8609  *  File name selection pattern
8610  */
8611 tSCC zStdio_Stdarg_HList[] =
8612   "stdio.h\0";
8614  *  Machine/OS name selection pattern
8615  */
8616 tSCC* apzStdio_Stdarg_HMachs[] = {
8617         "*-*-solaris2.1[0-9]*",
8618         (const char*)NULL };
8621  *  content bypass pattern - skip fix if pattern found
8622  */
8623 tSCC zStdio_Stdarg_HBypass0[] =
8624        "include.*(stdarg.h|machine/ansi.h)";
8626 #define    STDIO_STDARG_H_TEST_CT  1
8627 static tTestDesc aStdio_Stdarg_HTests[] = {
8628   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
8631  *  Fix Command Arguments for Stdio_Stdarg_H
8632  */
8633 static const char* apzStdio_Stdarg_HPatch[] = {
8634     "wrap",
8635     "#define __need___va_list\n\
8636 #include <stdarg.h>\n",
8637     (char*)NULL };
8639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8641  *  Description of Stdio_Va_List fix
8642  */
8643 tSCC zStdio_Va_ListName[] =
8644      "stdio_va_list";
8647  *  File name selection pattern
8648  */
8649 tSCC zStdio_Va_ListList[] =
8650   "stdio.h\0";
8652  *  Machine/OS name selection pattern
8653  */
8654 tSCC* apzStdio_Va_ListMachs[] = {
8655         "*-*-solaris2.1[0-9]*",
8656         (const char*)NULL };
8659  *  content bypass pattern - skip fix if pattern found
8660  */
8661 tSCC zStdio_Va_ListBypass0[] =
8662        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8664 #define    STDIO_VA_LIST_TEST_CT  1
8665 static tTestDesc aStdio_Va_ListTests[] = {
8666   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
8669  *  Fix Command Arguments for Stdio_Va_List
8670  */
8671 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
8672     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8673 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8674 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8675 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8676 s@ va_list@ __not_va_list__@\n\
8677 s@\\*va_list@*__not_va_list__@\n\
8678 s@ __va_list)@ __gnuc_va_list)@\n\
8679 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8680 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8681 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8682 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8683 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8684 s@VA_LIST@DUMMY_VA_LIST@\n\
8685 s@_Va_LIST@_VA_LIST@",
8686     (char*)NULL };
8688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8690  *  Description of Stdio_Va_List_Clients fix
8691  */
8692 tSCC zStdio_Va_List_ClientsName[] =
8693      "stdio_va_list_clients";
8696  *  File name selection pattern
8697  */
8698 tSCC zStdio_Va_List_ClientsList[] =
8699   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
8701  *  Machine/OS name selection pattern
8702  */
8703 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
8706  *  content bypass pattern - skip fix if pattern found
8707  */
8708 tSCC zStdio_Va_List_ClientsBypass0[] =
8709        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8710 tSCC zStdio_Va_List_ClientsBypass1[] =
8711        "include <stdarg\\.h>|#ifdef va_start";
8713 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
8714 static tTestDesc aStdio_Va_List_ClientsTests[] = {
8715   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
8716   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
8719  *  Fix Command Arguments for Stdio_Va_List_Clients
8720  */
8721 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
8722     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8723 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8724 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8725 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8726 s@ va_list@ __not_va_list__@\n\
8727 s@\\*va_list@*__not_va_list__@\n\
8728 s@ __va_list)@ __gnuc_va_list)@\n\
8729 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8730 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8731 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8732 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8733 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8734 s@VA_LIST@DUMMY_VA_LIST@\n\
8735 s@_Va_LIST@_VA_LIST@",
8736     (char*)NULL };
8738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8740  *  Description of Strict_Ansi_Not fix
8741  */
8742 tSCC zStrict_Ansi_NotName[] =
8743      "strict_ansi_not";
8746  *  File name selection pattern
8747  */
8748 #define zStrict_Ansi_NotList (char*)NULL
8750  *  Machine/OS name selection pattern
8751  */
8752 #define apzStrict_Ansi_NotMachs (const char**)NULL
8755  *  content selection pattern - do fix if pattern found
8756  */
8757 tSCC zStrict_Ansi_NotSelect0[] =
8758        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
8761  *  content bypass pattern - skip fix if pattern found
8762  */
8763 tSCC zStrict_Ansi_NotBypass0[] =
8764        "GNU and MIPS C compilers define __STDC__ differently";
8765 tSCC zStrict_Ansi_NotBypass1[] =
8766        "__SCO_VERSION__.*__STDC__ != 1";
8769  *  perform the C function call test
8770  */
8771 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
8773 #define    STRICT_ANSI_NOT_TEST_CT  4
8774 static tTestDesc aStrict_Ansi_NotTests[] = {
8775   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
8776   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
8777   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
8778   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
8781  *  Fix Command Arguments for Strict_Ansi_Not
8782  */
8783 static const char* apzStrict_Ansi_NotPatch[] = {
8784     "format",
8785     "%1 !defined(__STRICT_ANSI__)",
8786     (char*)NULL };
8788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8790  *  Description of Strict_Ansi_Not_Ctd fix
8791  */
8792 tSCC zStrict_Ansi_Not_CtdName[] =
8793      "strict_ansi_not_ctd";
8796  *  File name selection pattern
8797  */
8798 tSCC zStrict_Ansi_Not_CtdList[] =
8799   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
8801  *  Machine/OS name selection pattern
8802  */
8803 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
8806  *  content selection pattern - do fix if pattern found
8807  */
8808 tSCC zStrict_Ansi_Not_CtdSelect0[] =
8809        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
8812  *  perform the C function call test
8813  */
8814 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
8816 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
8817 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
8818   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
8819   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
8822  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
8823  */
8824 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
8825     "format",
8826     "%1 !defined(__STRICT_ANSI__)",
8827     (char*)NULL };
8829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8831  *  Description of Strict_Ansi_Only fix
8832  */
8833 tSCC zStrict_Ansi_OnlyName[] =
8834      "strict_ansi_only";
8837  *  File name selection pattern
8838  */
8839 #define zStrict_Ansi_OnlyList (char*)NULL
8841  *  Machine/OS name selection pattern
8842  */
8843 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
8846  *  content selection pattern - do fix if pattern found
8847  */
8848 tSCC zStrict_Ansi_OnlySelect0[] =
8849        "^([ \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)";
8852  *  perform the C function call test
8853  */
8854 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
8856 #define    STRICT_ANSI_ONLY_TEST_CT  2
8857 static tTestDesc aStrict_Ansi_OnlyTests[] = {
8858   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
8859   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
8862  *  Fix Command Arguments for Strict_Ansi_Only
8863  */
8864 static const char* apzStrict_Ansi_OnlyPatch[] = {
8865     "format",
8866     "%1 defined(__STRICT_ANSI__)",
8867     (char*)NULL };
8869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8871  *  Description of Struct_File fix
8872  */
8873 tSCC zStruct_FileName[] =
8874      "struct_file";
8877  *  File name selection pattern
8878  */
8879 tSCC zStruct_FileList[] =
8880   "rpc/xdr.h\0";
8882  *  Machine/OS name selection pattern
8883  */
8884 #define apzStruct_FileMachs (const char**)NULL
8887  *  content selection pattern - do fix if pattern found
8888  */
8889 tSCC zStruct_FileSelect0[] =
8890        "^.*xdrstdio_create.*struct __file_s";
8892 #define    STRUCT_FILE_TEST_CT  1
8893 static tTestDesc aStruct_FileTests[] = {
8894   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
8897  *  Fix Command Arguments for Struct_File
8898  */
8899 static const char* apzStruct_FilePatch[] = {
8900     "format",
8901     "struct __file_s;\n\
8902 %0",
8903     (char*)NULL };
8905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8907  *  Description of Struct_Sockaddr fix
8908  */
8909 tSCC zStruct_SockaddrName[] =
8910      "struct_sockaddr";
8913  *  File name selection pattern
8914  */
8915 tSCC zStruct_SockaddrList[] =
8916   "rpc/auth.h\0";
8918  *  Machine/OS name selection pattern
8919  */
8920 #define apzStruct_SockaddrMachs (const char**)NULL
8923  *  content selection pattern - do fix if pattern found
8924  */
8925 tSCC zStruct_SockaddrSelect0[] =
8926        "^.*authdes_create.*struct sockaddr[^_]";
8929  *  content bypass pattern - skip fix if pattern found
8930  */
8931 tSCC zStruct_SockaddrBypass0[] =
8932        "<sys/socket.h>";
8933 tSCC zStruct_SockaddrBypass1[] =
8934        "struct sockaddr;\n";
8936 #define    STRUCT_SOCKADDR_TEST_CT  3
8937 static tTestDesc aStruct_SockaddrTests[] = {
8938   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
8939   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
8940   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
8943  *  Fix Command Arguments for Struct_Sockaddr
8944  */
8945 static const char* apzStruct_SockaddrPatch[] = {
8946     "format",
8947     "struct sockaddr;\n\
8948 %0",
8949     (char*)NULL };
8951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8953  *  Description of Sun_Auth_Proto fix
8954  */
8955 tSCC zSun_Auth_ProtoName[] =
8956      "sun_auth_proto";
8959  *  File name selection pattern
8960  */
8961 tSCC zSun_Auth_ProtoList[] =
8962   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
8964  *  Machine/OS name selection pattern
8965  */
8966 #define apzSun_Auth_ProtoMachs (const char**)NULL
8969  *  content selection pattern - do fix if pattern found
8970  */
8971 tSCC zSun_Auth_ProtoSelect0[] =
8972        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
8975  *  content bypass pattern - skip fix if pattern found
8976  */
8977 tSCC zSun_Auth_ProtoBypass0[] =
8978        "__cplusplus";
8980 #define    SUN_AUTH_PROTO_TEST_CT  2
8981 static tTestDesc aSun_Auth_ProtoTests[] = {
8982   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
8983   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
8986  *  Fix Command Arguments for Sun_Auth_Proto
8987  */
8988 static const char* apzSun_Auth_ProtoPatch[] = {
8989     "format",
8990     "#ifdef __cplusplus\n\
8991 %1(...);%2\n\
8992 #else\n\
8993 %1();%2\n\
8994 #endif",
8995     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
8996     (char*)NULL };
8998 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9000  *  Description of Sun_Bogus_Ifdef fix
9001  */
9002 tSCC zSun_Bogus_IfdefName[] =
9003      "sun_bogus_ifdef";
9006  *  File name selection pattern
9007  */
9008 tSCC zSun_Bogus_IfdefList[] =
9009   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
9011  *  Machine/OS name selection pattern
9012  */
9013 #define apzSun_Bogus_IfdefMachs (const char**)NULL
9016  *  content selection pattern - do fix if pattern found
9017  */
9018 tSCC zSun_Bogus_IfdefSelect0[] =
9019        "#ifdef(.*\\|\\|.*)";
9021 #define    SUN_BOGUS_IFDEF_TEST_CT  1
9022 static tTestDesc aSun_Bogus_IfdefTests[] = {
9023   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
9026  *  Fix Command Arguments for Sun_Bogus_Ifdef
9027  */
9028 static const char* apzSun_Bogus_IfdefPatch[] = {
9029     "format",
9030     "#if%1",
9031     (char*)NULL };
9033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9035  *  Description of Sun_Catmacro fix
9036  */
9037 tSCC zSun_CatmacroName[] =
9038      "sun_catmacro";
9041  *  File name selection pattern
9042  */
9043 tSCC zSun_CatmacroList[] =
9044   "pixrect/memvar.h\0";
9046  *  Machine/OS name selection pattern
9047  */
9048 #define apzSun_CatmacroMachs (const char**)NULL
9051  *  content selection pattern - do fix if pattern found
9052  */
9053 tSCC zSun_CatmacroSelect0[] =
9054        "^#define[ \t]+CAT\\(a,b\\).*";
9056 #define    SUN_CATMACRO_TEST_CT  1
9057 static tTestDesc aSun_CatmacroTests[] = {
9058   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
9061  *  Fix Command Arguments for Sun_Catmacro
9062  */
9063 static const char* apzSun_CatmacroPatch[] = {
9064     "format",
9065     "#ifdef __STDC__\n\
9066 #  define CAT(a,b) a##b\n\
9067 #else\n\
9068 %0\n\
9069 #endif",
9070     (char*)NULL };
9072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9074  *  Description of Sun_Malloc fix
9075  */
9076 tSCC zSun_MallocName[] =
9077      "sun_malloc";
9080  *  File name selection pattern
9081  */
9082 tSCC zSun_MallocList[] =
9083   "malloc.h\0";
9085  *  Machine/OS name selection pattern
9086  */
9087 #define apzSun_MallocMachs (const char**)NULL
9090  *  content bypass pattern - skip fix if pattern found
9091  */
9092 tSCC zSun_MallocBypass0[] =
9093        "_CLASSIC_ANSI_TYPES";
9095 #define    SUN_MALLOC_TEST_CT  1
9096 static tTestDesc aSun_MallocTests[] = {
9097   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
9100  *  Fix Command Arguments for Sun_Malloc
9101  */
9102 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
9103     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
9104     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
9105     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
9106     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
9107     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
9108     (char*)NULL };
9110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9112  *  Description of Sun_Rusers_Semi fix
9113  */
9114 tSCC zSun_Rusers_SemiName[] =
9115      "sun_rusers_semi";
9118  *  File name selection pattern
9119  */
9120 tSCC zSun_Rusers_SemiList[] =
9121   "rpcsvc/rusers.h\0";
9123  *  Machine/OS name selection pattern
9124  */
9125 #define apzSun_Rusers_SemiMachs (const char**)NULL
9128  *  content selection pattern - do fix if pattern found
9129  */
9130 tSCC zSun_Rusers_SemiSelect0[] =
9131        "_cnt$";
9133 #define    SUN_RUSERS_SEMI_TEST_CT  1
9134 static tTestDesc aSun_Rusers_SemiTests[] = {
9135   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
9138  *  Fix Command Arguments for Sun_Rusers_Semi
9139  */
9140 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
9141     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
9142     (char*)NULL };
9144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9146  *  Description of Sun_Signal fix
9147  */
9148 tSCC zSun_SignalName[] =
9149      "sun_signal";
9152  *  File name selection pattern
9153  */
9154 tSCC zSun_SignalList[] =
9155   "sys/signal.h\0signal.h\0";
9157  *  Machine/OS name selection pattern
9158  */
9159 #define apzSun_SignalMachs (const char**)NULL
9162  *  content selection pattern - do fix if pattern found
9163  */
9164 tSCC zSun_SignalSelect0[] =
9165        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
9167 #define    SUN_SIGNAL_TEST_CT  1
9168 static tTestDesc aSun_SignalTests[] = {
9169   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
9172  *  Fix Command Arguments for Sun_Signal
9173  */
9174 static const char* apzSun_SignalPatch[] = {
9175     "format",
9176     "#ifdef __cplusplus\n\
9177 void\t(*signal(...))(...);\n\
9178 #else\n\
9179 %0\n\
9180 #endif",
9181     (char*)NULL };
9183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9185  *  Description of Sunos_Strlen fix
9186  */
9187 tSCC zSunos_StrlenName[] =
9188      "sunos_strlen";
9191  *  File name selection pattern
9192  */
9193 tSCC zSunos_StrlenList[] =
9194   "strings.h\0";
9196  *  Machine/OS name selection pattern
9197  */
9198 #define apzSunos_StrlenMachs (const char**)NULL
9201  *  content selection pattern - do fix if pattern found
9202  */
9203 tSCC zSunos_StrlenSelect0[] =
9204        "int[ \t]*strlen\\(\\);(.*)";
9206 #define    SUNOS_STRLEN_TEST_CT  1
9207 static tTestDesc aSunos_StrlenTests[] = {
9208   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
9211  *  Fix Command Arguments for Sunos_Strlen
9212  */
9213 static const char* apzSunos_StrlenPatch[] = {
9214     "format",
9215     "__SIZE_TYPE__ strlen();%1",
9216     (char*)NULL };
9218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9220  *  Description of Suse_Linux_Vt_Cxx fix
9221  */
9222 tSCC zSuse_Linux_Vt_CxxName[] =
9223      "suse_linux_vt_cxx";
9226  *  File name selection pattern
9227  */
9228 tSCC zSuse_Linux_Vt_CxxList[] =
9229   "linux/vt.h\0";
9231  *  Machine/OS name selection pattern
9232  */
9233 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
9236  *  content selection pattern - do fix if pattern found
9237  */
9238 tSCC zSuse_Linux_Vt_CxxSelect0[] =
9239        "^[ \t]*unsigned int new;";
9241 #define    SUSE_LINUX_VT_CXX_TEST_CT  1
9242 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
9243   { TT_EGREP,    zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
9246  *  Fix Command Arguments for Suse_Linux_Vt_Cxx
9247  */
9248 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
9249     "format",
9250     "unsigned int newev;",
9251     (char*)NULL };
9253 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9255  *  Description of Svr4_Disable_Opt fix
9256  */
9257 tSCC zSvr4_Disable_OptName[] =
9258      "svr4_disable_opt";
9261  *  File name selection pattern
9262  */
9263 tSCC zSvr4_Disable_OptList[] =
9264   "string.h\0";
9266  *  Machine/OS name selection pattern
9267  */
9268 #define apzSvr4_Disable_OptMachs (const char**)NULL
9271  *  content selection pattern - do fix if pattern found
9272  */
9273 tSCC zSvr4_Disable_OptSelect0[] =
9274        "#define.*__std_hdr_";
9276 #define    SVR4_DISABLE_OPT_TEST_CT  1
9277 static tTestDesc aSvr4_Disable_OptTests[] = {
9278   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
9281  *  Fix Command Arguments for Svr4_Disable_Opt
9282  */
9283 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
9284     "-e", "/#define.*__std_hdr_/d",
9285     (char*)NULL };
9287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9289  *  Description of Svr4_Getcwd fix
9290  */
9291 tSCC zSvr4_GetcwdName[] =
9292      "svr4_getcwd";
9295  *  File name selection pattern
9296  */
9297 tSCC zSvr4_GetcwdList[] =
9298   "stdlib.h\0unistd.h\0prototypes.h\0";
9300  *  Machine/OS name selection pattern
9301  */
9302 #define apzSvr4_GetcwdMachs (const char**)NULL
9305  *  content selection pattern - do fix if pattern found
9306  */
9307 tSCC zSvr4_GetcwdSelect0[] =
9308        "getcwd\\(char \\*, int\\)";
9310 #define    SVR4_GETCWD_TEST_CT  1
9311 static tTestDesc aSvr4_GetcwdTests[] = {
9312   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
9315  *  Fix Command Arguments for Svr4_Getcwd
9316  */
9317 static const char* apzSvr4_GetcwdPatch[] = {
9318     "format",
9319     "getcwd(char *, size_t)",
9320     (char*)NULL };
9322 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9324  *  Description of Svr4_Profil fix
9325  */
9326 tSCC zSvr4_ProfilName[] =
9327      "svr4_profil";
9330  *  File name selection pattern
9331  */
9332 tSCC zSvr4_ProfilList[] =
9333   "stdlib.h\0unistd.h\0";
9335  *  Machine/OS name selection pattern
9336  */
9337 #define apzSvr4_ProfilMachs (const char**)NULL
9340  *  content selection pattern - do fix if pattern found
9341  */
9342 tSCC zSvr4_ProfilSelect0[] =
9343        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
9345 #define    SVR4_PROFIL_TEST_CT  1
9346 static tTestDesc aSvr4_ProfilTests[] = {
9347   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
9350  *  Fix Command Arguments for Svr4_Profil
9351  */
9352 static const char* apzSvr4_ProfilPatch[] = {
9353     "format",
9354     "profil(unsigned short *, size_t, int, unsigned int)",
9355     (char*)NULL };
9357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9359  *  Description of Svr4_Sighandler_Type fix
9360  */
9361 tSCC zSvr4_Sighandler_TypeName[] =
9362      "svr4_sighandler_type";
9365  *  File name selection pattern
9366  */
9367 tSCC zSvr4_Sighandler_TypeList[] =
9368   "sys/signal.h\0";
9370  *  Machine/OS name selection pattern
9371  */
9372 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
9375  *  content selection pattern - do fix if pattern found
9376  */
9377 tSCC zSvr4_Sighandler_TypeSelect0[] =
9378        "void *\\(\\*\\)\\(\\)";
9380 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
9381 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
9382   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
9385  *  Fix Command Arguments for Svr4_Sighandler_Type
9386  */
9387 static const char* apzSvr4_Sighandler_TypePatch[] = {
9388     "format",
9389     "void (*)(int)",
9390     (char*)NULL };
9392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9394  *  Description of Svr4_Undeclared_Getrnge fix
9395  */
9396 tSCC zSvr4_Undeclared_GetrngeName[] =
9397      "svr4_undeclared_getrnge";
9400  *  File name selection pattern
9401  */
9402 tSCC zSvr4_Undeclared_GetrngeList[] =
9403   "regexp.h\0";
9405  *  Machine/OS name selection pattern
9406  */
9407 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
9410  *  content selection pattern - do fix if pattern found
9411  */
9412 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
9413        "getrnge";
9416  *  content bypass pattern - skip fix if pattern found
9417  */
9418 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
9419        "static void getrnge";
9421 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
9422 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
9423   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
9424   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
9427  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
9428  */
9429 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
9430     "format",
9431     "%0\n\
9432 static int getrnge ();",
9433     "^static int[ \t]+size;",
9434     (char*)NULL };
9436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9438  *  Description of Sysv68_String fix
9439  */
9440 tSCC zSysv68_StringName[] =
9441      "sysv68_string";
9444  *  File name selection pattern
9445  */
9446 tSCC zSysv68_StringList[] =
9447   "testing.h\0string.h\0";
9449  *  Machine/OS name selection pattern
9450  */
9451 #define apzSysv68_StringMachs (const char**)NULL
9454  *  content bypass pattern - skip fix if pattern found
9455  */
9456 tSCC zSysv68_StringBypass0[] =
9457        "_CLASSIC_ANSI_TYPES";
9459 #define    SYSV68_STRING_TEST_CT  1
9460 static tTestDesc aSysv68_StringTests[] = {
9461   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
9464  *  Fix Command Arguments for Sysv68_String
9465  */
9466 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
9467     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
9468     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
9469     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
9470     "-e", "/^extern char$/N",
9471     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
9472     "-e", "/^extern int$/N",
9473     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
9474     "-e", "/^\tstrncmp(),$/N",
9475     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
9476 extern unsigned int\\\n\
9477 \\2/",
9478     (char*)NULL };
9480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9482  *  Description of Sysz_Stdlib_For_Sun fix
9483  */
9484 tSCC zSysz_Stdlib_For_SunName[] =
9485      "sysz_stdlib_for_sun";
9488  *  File name selection pattern
9489  */
9490 tSCC zSysz_Stdlib_For_SunList[] =
9491   "stdlib.h\0";
9493  *  Machine/OS name selection pattern
9494  */
9495 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
9498  *  content selection pattern - do fix if pattern found
9499  */
9500 tSCC zSysz_Stdlib_For_SunSelect0[] =
9501        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
9504  *  content bypass pattern - skip fix if pattern found
9505  */
9506 tSCC zSysz_Stdlib_For_SunBypass0[] =
9507        "_CLASSIC_ANSI_TYPES";
9509 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
9510 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
9511   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
9512   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
9515  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
9516  */
9517 static const char* apzSysz_Stdlib_For_SunPatch[] = {
9518     "format",
9519     "void *\t%1(",
9520     (char*)NULL };
9522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9524  *  Description of Thread_Keyword fix
9525  */
9526 tSCC zThread_KeywordName[] =
9527      "thread_keyword";
9530  *  File name selection pattern
9531  */
9532 tSCC zThread_KeywordList[] =
9533   "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
9535  *  Machine/OS name selection pattern
9536  */
9537 #define apzThread_KeywordMachs (const char**)NULL
9540  *  content selection pattern - do fix if pattern found
9541  */
9542 tSCC zThread_KeywordSelect0[] =
9543        "([* ])__thread([,)])";
9545 #define    THREAD_KEYWORD_TEST_CT  1
9546 static tTestDesc aThread_KeywordTests[] = {
9547   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
9550  *  Fix Command Arguments for Thread_Keyword
9551  */
9552 static const char* apzThread_KeywordPatch[] = {
9553     "format",
9554     "%1__thr%2",
9555     (char*)NULL };
9557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9559  *  Description of Tinfo_Cplusplus fix
9560  */
9561 tSCC zTinfo_CplusplusName[] =
9562      "tinfo_cplusplus";
9565  *  File name selection pattern
9566  */
9567 tSCC zTinfo_CplusplusList[] =
9568   "tinfo.h\0";
9570  *  Machine/OS name selection pattern
9571  */
9572 #define apzTinfo_CplusplusMachs (const char**)NULL
9575  *  content selection pattern - do fix if pattern found
9576  */
9577 tSCC zTinfo_CplusplusSelect0[] =
9578        "[ \t]_cplusplus";
9580 #define    TINFO_CPLUSPLUS_TEST_CT  1
9581 static tTestDesc aTinfo_CplusplusTests[] = {
9582   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
9585  *  Fix Command Arguments for Tinfo_Cplusplus
9586  */
9587 static const char* apzTinfo_CplusplusPatch[] = {
9588     "format",
9589     " __cplusplus",
9590     (char*)NULL };
9592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9594  *  Description of Ultrix_Const fix
9595  */
9596 tSCC zUltrix_ConstName[] =
9597      "ultrix_const";
9600  *  File name selection pattern
9601  */
9602 tSCC zUltrix_ConstList[] =
9603   "stdio.h\0";
9605  *  Machine/OS name selection pattern
9606  */
9607 #define apzUltrix_ConstMachs (const char**)NULL
9610  *  content selection pattern - do fix if pattern found
9611  */
9612 tSCC zUltrix_ConstSelect0[] =
9613        "perror\\( char \\*";
9615 #define    ULTRIX_CONST_TEST_CT  1
9616 static tTestDesc aUltrix_ConstTests[] = {
9617   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
9620  *  Fix Command Arguments for Ultrix_Const
9621  */
9622 static const char* apzUltrix_ConstPatch[] = {
9623     "format",
9624     "%1 const %3 *__",
9625     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
9626     (char*)NULL };
9628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9630  *  Description of Ultrix_Const2 fix
9631  */
9632 tSCC zUltrix_Const2Name[] =
9633      "ultrix_const2";
9636  *  File name selection pattern
9637  */
9638 tSCC zUltrix_Const2List[] =
9639   "stdio.h\0";
9641  *  Machine/OS name selection pattern
9642  */
9643 #define apzUltrix_Const2Machs (const char**)NULL
9646  *  content selection pattern - do fix if pattern found
9647  */
9648 tSCC zUltrix_Const2Select0[] =
9649        "\\*fopen\\( char \\*";
9651 #define    ULTRIX_CONST2_TEST_CT  1
9652 static tTestDesc aUltrix_Const2Tests[] = {
9653   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
9656  *  Fix Command Arguments for Ultrix_Const2
9657  */
9658 static const char* apzUltrix_Const2Patch[] = {
9659     "format",
9660     "%1( const char *%3, const char *",
9661     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
9662     (char*)NULL };
9664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9666  *  Description of Va_I960_Macro fix
9667  */
9668 tSCC zVa_I960_MacroName[] =
9669      "va_i960_macro";
9672  *  File name selection pattern
9673  */
9674 tSCC zVa_I960_MacroList[] =
9675   "arch/i960/archI960.h\0";
9677  *  Machine/OS name selection pattern
9678  */
9679 #define apzVa_I960_MacroMachs (const char**)NULL
9682  *  content selection pattern - do fix if pattern found
9683  */
9684 tSCC zVa_I960_MacroSelect0[] =
9685        "__(vsiz|vali|vpad|alignof__)";
9687 #define    VA_I960_MACRO_TEST_CT  1
9688 static tTestDesc aVa_I960_MacroTests[] = {
9689   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
9692  *  Fix Command Arguments for Va_I960_Macro
9693  */
9694 static const char* apzVa_I960_MacroPatch[] = {
9695     "format",
9696     "__vx%1",
9697     (char*)NULL };
9699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9701  *  Description of Vms_Add_Missing_Braces fix
9702  */
9703 tSCC zVms_Add_Missing_BracesName[] =
9704      "vms_add_missing_braces";
9707  *  File name selection pattern
9708  */
9709 tSCC zVms_Add_Missing_BracesList[] =
9710   "rtldef/signal.h\0";
9712  *  Machine/OS name selection pattern
9713  */
9714 tSCC* apzVms_Add_Missing_BracesMachs[] = {
9715         "*-*-*vms*",
9716         (const char*)NULL };
9719  *  content selection pattern - do fix if pattern found
9720  */
9721 tSCC zVms_Add_Missing_BracesSelect0[] =
9722        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
9724 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
9725 static tTestDesc aVms_Add_Missing_BracesTests[] = {
9726   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
9729  *  Fix Command Arguments for Vms_Add_Missing_Braces
9730  */
9731 static const char* apzVms_Add_Missing_BracesPatch[] = {
9732     "format",
9733     "%1 {%2} ",
9734     (char*)NULL };
9736 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9738  *  Description of Vms_Decc_Builtin fix
9739  */
9740 tSCC zVms_Decc_BuiltinName[] =
9741      "vms_decc_builtin";
9744  *  File name selection pattern
9745  */
9746 tSCC zVms_Decc_BuiltinList[] =
9747   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
9749  *  Machine/OS name selection pattern
9750  */
9751 tSCC* apzVms_Decc_BuiltinMachs[] = {
9752         "*-*-*vms*",
9753         (const char*)NULL };
9756  *  content selection pattern - do fix if pattern found
9757  */
9758 tSCC zVms_Decc_BuiltinSelect0[] =
9759        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
9761 #define    VMS_DECC_BUILTIN_TEST_CT  1
9762 static tTestDesc aVms_Decc_BuiltinTests[] = {
9763   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
9766  *  Fix Command Arguments for Vms_Decc_Builtin
9767  */
9768 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
9769     "-e", "s@__MEMSET@memset@",
9770     "-e", "s@__MEMMOVE@memmove@",
9771     "-e", "s@__MEMCPY@memcpy@",
9772     "-e", "s@__STRLEN@strlen@",
9773     "-e", "s@__STRCPY@strcpy@",
9774     (char*)NULL };
9776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9778  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
9779  */
9780 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
9781      "vms_define_can_use_extern_prefix";
9784  *  File name selection pattern
9785  */
9786 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
9787   "rtldef/decc$types.h\0";
9789  *  Machine/OS name selection pattern
9790  */
9791 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
9792         "*-*-*vms*",
9793         (const char*)NULL };
9796  *  content selection pattern - do fix if pattern found
9797  */
9798 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
9799        "#[ \t]*else\n\
9800 #[ \t]*if defined\\(__DECCXX\\)\n\
9801 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
9803 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
9804 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
9805   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
9808  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
9809  */
9810 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
9811     "format",
9812     "%0#    elif defined (__GNUC__)\n\
9813 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
9814     (char*)NULL };
9816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9818  *  Description of Vms_Disable_Decc_String_Builtins fix
9819  */
9820 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
9821      "vms_disable_decc_string_builtins";
9824  *  File name selection pattern
9825  */
9826 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
9827   "rtldef/string.h\0";
9829  *  Machine/OS name selection pattern
9830  */
9831 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
9832         "*-*-*vms*",
9833         (const char*)NULL };
9836  *  content selection pattern - do fix if pattern found
9837  */
9838 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
9839        "#if !defined\\(__VAX\\)\n";
9841 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
9842 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
9843   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
9846  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
9847  */
9848 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
9849     "format",
9850     "#if !defined(__VAX) && !defined(__GNUC__)\n",
9851     (char*)NULL };
9853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9855  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
9856  */
9857 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
9858      "vms_do_not_redeclare_hostalias";
9861  *  File name selection pattern
9862  */
9863 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
9864   "rtldef/resolv.h\0";
9866  *  Machine/OS name selection pattern
9867  */
9868 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
9869         "*-*-*vms*",
9870         (const char*)NULL };
9873  *  content selection pattern - do fix if pattern found
9874  */
9875 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
9876        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
9877 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
9879 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
9880 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
9881   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
9884  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
9885  */
9886 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
9887     "format",
9888     "%1\n\
9889 /* %2 */",
9890     (char*)NULL };
9892 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9894  *  Description of Vms_Forward_Declare_Struct fix
9895  */
9896 tSCC zVms_Forward_Declare_StructName[] =
9897      "vms_forward_declare_struct";
9900  *  File name selection pattern
9901  */
9902 tSCC zVms_Forward_Declare_StructList[] =
9903   "rtldef/if.h\0";
9905  *  Machine/OS name selection pattern
9906  */
9907 tSCC* apzVms_Forward_Declare_StructMachs[] = {
9908         "*-*-*vms*",
9909         (const char*)NULL };
9912  *  content selection pattern - do fix if pattern found
9913  */
9914 tSCC zVms_Forward_Declare_StructSelect0[] =
9915        "(/\\* forward decls for C\\+\\+ \\*/\n\
9916 )#ifdef __cplusplus\n";
9918 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
9919 static tTestDesc aVms_Forward_Declare_StructTests[] = {
9920   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
9923  *  Fix Command Arguments for Vms_Forward_Declare_Struct
9924  */
9925 static const char* apzVms_Forward_Declare_StructPatch[] = {
9926     "format",
9927     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
9928     (char*)NULL };
9930 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9932  *  Description of Vms_No_64bit_Getopt fix
9933  */
9934 tSCC zVms_No_64bit_GetoptName[] =
9935      "vms_no_64bit_getopt";
9938  *  File name selection pattern
9939  */
9940 tSCC zVms_No_64bit_GetoptList[] =
9941   "rtldef/stdio.h\0rtldef/unistd.h\0";
9943  *  Machine/OS name selection pattern
9944  */
9945 tSCC* apzVms_No_64bit_GetoptMachs[] = {
9946         "*-*-*vms*",
9947         (const char*)NULL };
9950  *  content selection pattern - do fix if pattern found
9951  */
9952 tSCC zVms_No_64bit_GetoptSelect0[] =
9953        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
9955 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
9956 static tTestDesc aVms_No_64bit_GetoptTests[] = {
9957   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
9960  *  Fix Command Arguments for Vms_No_64bit_Getopt
9961  */
9962 static const char* apzVms_No_64bit_GetoptPatch[] = {
9963     "format",
9964     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
9965 %0#endif\n",
9966     (char*)NULL };
9968 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9970  *  Description of Vms_Use_Fast_Setjmp fix
9971  */
9972 tSCC zVms_Use_Fast_SetjmpName[] =
9973      "vms_use_fast_setjmp";
9976  *  File name selection pattern
9977  */
9978 tSCC zVms_Use_Fast_SetjmpList[] =
9979   "rtldef/setjmp.h\0";
9981  *  Machine/OS name selection pattern
9982  */
9983 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
9984         "*-*-*vms*",
9985         (const char*)NULL };
9988  *  content selection pattern - do fix if pattern found
9989  */
9990 tSCC zVms_Use_Fast_SetjmpSelect0[] =
9991        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
9993 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
9994 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
9995   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
9998  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
9999  */
10000 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
10001     "format",
10002     "%0 defined (__GNUC__) ||",
10003     (char*)NULL };
10005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10007  *  Description of Vms_Use_Pragma_Extern_Model fix
10008  */
10009 tSCC zVms_Use_Pragma_Extern_ModelName[] =
10010      "vms_use_pragma_extern_model";
10013  *  File name selection pattern
10014  */
10015 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
10017  *  Machine/OS name selection pattern
10018  */
10019 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
10020         "*-*-*vms*",
10021         (const char*)NULL };
10024  *  content selection pattern - do fix if pattern found
10025  */
10026 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
10027        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
10028 # pragma extern_model __save\n";
10030 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
10031 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
10032   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
10035  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
10036  */
10037 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
10038     "format",
10039     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
10040 # pragma extern_model __save\n",
10041     (char*)NULL };
10043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10045  *  Description of Vms_Use_Quoted_Include fix
10046  */
10047 tSCC zVms_Use_Quoted_IncludeName[] =
10048      "vms_use_quoted_include";
10051  *  File name selection pattern
10052  */
10053 tSCC zVms_Use_Quoted_IncludeList[] =
10054   "rtldef/wait.h\0starlet_c/pthread.h\0";
10056  *  Machine/OS name selection pattern
10057  */
10058 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
10059         "*-*-*vms*",
10060         (const char*)NULL };
10063  *  content selection pattern - do fix if pattern found
10064  */
10065 tSCC zVms_Use_Quoted_IncludeSelect0[] =
10066        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
10068 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
10069 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
10070   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
10073  *  Fix Command Arguments for Vms_Use_Quoted_Include
10074  */
10075 static const char* apzVms_Use_Quoted_IncludePatch[] = {
10076     "format",
10077     "%1<sys/%2.h>",
10078     (char*)NULL };
10080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10082  *  Description of Void_Null fix
10083  */
10084 tSCC zVoid_NullName[] =
10085      "void_null";
10088  *  File name selection pattern
10089  */
10090 tSCC zVoid_NullList[] =
10091   "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";
10093  *  Machine/OS name selection pattern
10094  */
10095 #define apzVoid_NullMachs (const char**)NULL
10098  *  content selection pattern - do fix if pattern found
10099  */
10100 tSCC zVoid_NullSelect0[] =
10101        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
10104  *  content bypass pattern - skip fix if pattern found
10105  */
10106 tSCC zVoid_NullBypass0[] =
10107        "__cplusplus";
10108 tSCC zVoid_NullBypass1[] =
10109        "__null";
10111 #define    VOID_NULL_TEST_CT  3
10112 static tTestDesc aVoid_NullTests[] = {
10113   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
10114   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
10115   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
10118  *  Fix Command Arguments for Void_Null
10119  */
10120 static const char* apzVoid_NullPatch[] = {
10121     "format",
10122     "#ifndef NULL\n\
10123 #ifdef __cplusplus\n\
10124 #ifdef __GNUG__\n\
10125 #define NULL __null\n\
10126 #else /* ! __GNUG__  */\n\
10127 #define NULL 0L\n\
10128 #endif /* __GNUG__  */\n\
10129 #else /* ! __cplusplus  */\n\
10130 #define NULL ((void *)0)\n\
10131 #endif /* __cplusplus  */\n\
10132 #endif /* !NULL  */",
10133     (char*)NULL };
10135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10137  *  Description of Vxworks_Gcc_Problem fix
10138  */
10139 tSCC zVxworks_Gcc_ProblemName[] =
10140      "vxworks_gcc_problem";
10143  *  File name selection pattern
10144  */
10145 tSCC zVxworks_Gcc_ProblemList[] =
10146   "types/vxTypesBase.h\0";
10148  *  Machine/OS name selection pattern
10149  */
10150 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
10153  *  content selection pattern - do fix if pattern found
10154  */
10155 tSCC zVxworks_Gcc_ProblemSelect0[] =
10156        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
10158 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
10159 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
10160   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
10163  *  Fix Command Arguments for Vxworks_Gcc_Problem
10164  */
10165 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
10166     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
10167     "-e", "/[ \t]size_t/i\\\n\
10168 #ifndef _GCC_SIZE_T\\\n\
10169 #define _GCC_SIZE_T\n",
10170     "-e", "/[ \t]size_t/a\\\n\
10171 #endif\n",
10172     "-e", "/[ \t]ptrdiff_t/i\\\n\
10173 #ifndef _GCC_PTRDIFF_T\\\n\
10174 #define _GCC_PTRDIFF_T\n",
10175     "-e", "/[ \t]ptrdiff_t/a\\\n\
10176 #endif\n",
10177     "-e", "/[ \t]wchar_t/i\\\n\
10178 #ifndef _GCC_WCHAR_T\\\n\
10179 #define _GCC_WCHAR_T\n",
10180     "-e", "/[ \t]wchar_t/a\\\n\
10181 #endif\n",
10182     (char*)NULL };
10184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10186  *  Description of Vxworks_Ioctl_Macro fix
10187  */
10188 tSCC zVxworks_Ioctl_MacroName[] =
10189      "vxworks_ioctl_macro";
10192  *  File name selection pattern
10193  */
10194 tSCC zVxworks_Ioctl_MacroList[] =
10195   "ioLib.h\0";
10197  *  Machine/OS name selection pattern
10198  */
10199 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
10200         "*-*-vxworks*",
10201         (const char*)NULL };
10202 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
10203 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
10206  *  Fix Command Arguments for Vxworks_Ioctl_Macro
10207  */
10208 static const char* apzVxworks_Ioctl_MacroPatch[] = {
10209     "format",
10210     "%0\n\
10211 #define ioctl(fd, func, arg) ioctl(fd, func, (int)(arg))\n",
10212     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
10213     (char*)NULL };
10215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10217  *  Description of Vxworks_Mkdir_Macro fix
10218  */
10219 tSCC zVxworks_Mkdir_MacroName[] =
10220      "vxworks_mkdir_macro";
10223  *  File name selection pattern
10224  */
10225 tSCC zVxworks_Mkdir_MacroList[] =
10226   "sys/stat.h\0";
10228  *  Machine/OS name selection pattern
10229  */
10230 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
10231         "*-*-vxworks*",
10232         (const char*)NULL };
10233 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
10234 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
10237  *  Fix Command Arguments for Vxworks_Mkdir_Macro
10238  */
10239 static const char* apzVxworks_Mkdir_MacroPatch[] = {
10240     "format",
10241     "%0\n\
10242 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
10243     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
10244     (char*)NULL };
10246 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10248  *  Description of Vxworks_Needs_Vxtypes fix
10249  */
10250 tSCC zVxworks_Needs_VxtypesName[] =
10251      "vxworks_needs_vxtypes";
10254  *  File name selection pattern
10255  */
10256 tSCC zVxworks_Needs_VxtypesList[] =
10257   "time.h\0";
10259  *  Machine/OS name selection pattern
10260  */
10261 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
10264  *  content selection pattern - do fix if pattern found
10265  */
10266 tSCC zVxworks_Needs_VxtypesSelect0[] =
10267        "uint_t([ \t]+_clocks_per_sec)";
10269 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
10270 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
10271   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
10274  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
10275  */
10276 static const char* apzVxworks_Needs_VxtypesPatch[] = {
10277     "format",
10278     "unsigned int%1",
10279     (char*)NULL };
10281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10283  *  Description of Vxworks_Needs_Vxworks fix
10284  */
10285 tSCC zVxworks_Needs_VxworksName[] =
10286      "vxworks_needs_vxworks";
10289  *  File name selection pattern
10290  */
10291 tSCC zVxworks_Needs_VxworksList[] =
10292   "sys/stat.h\0";
10294  *  Machine/OS name selection pattern
10295  */
10296 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
10299  *  content selection pattern - do fix if pattern found
10300  */
10301 tSCC zVxworks_Needs_VxworksSelect0[] =
10302        "#[ \t]define[ \t]+__INCstath";
10305  *  perform the 'test' shell command - do fix on success
10306  */
10307 tSCC zVxworks_Needs_VxworksTest0[] =
10308        " -r types/vxTypesOld.h";
10309 tSCC zVxworks_Needs_VxworksTest1[] =
10310        " -n \"`egrep '#include' $file`\"";
10311 tSCC zVxworks_Needs_VxworksTest2[] =
10312        " -n \"`egrep ULONG $file`\"";
10314 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
10315 static tTestDesc aVxworks_Needs_VxworksTests[] = {
10316   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
10317   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
10318   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
10319   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
10322  *  Fix Command Arguments for Vxworks_Needs_Vxworks
10323  */
10324 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
10325     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
10326 #include <types/vxTypesOld.h>\n",
10327     (char*)NULL };
10329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10331  *  Description of Vxworks_Regs fix
10332  */
10333 tSCC zVxworks_RegsName[] =
10334      "vxworks_regs";
10337  *  File name selection pattern
10338  */
10339 #define zVxworks_RegsList (char*)NULL
10341  *  Machine/OS name selection pattern
10342  */
10343 tSCC* apzVxworks_RegsMachs[] = {
10344         "*-*-vxworks*",
10345         (const char*)NULL };
10348  *  content selection pattern - do fix if pattern found
10349  */
10350 tSCC zVxworks_RegsSelect0[] =
10351        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
10353 #define    VXWORKS_REGS_TEST_CT  1
10354 static tTestDesc aVxworks_RegsTests[] = {
10355   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
10358  *  Fix Command Arguments for Vxworks_Regs
10359  */
10360 static const char* apzVxworks_RegsPatch[] = {
10361     "format",
10362     "#include <arch/../regs.h>",
10363     (char*)NULL };
10365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10367  *  Description of Vxworks_Time fix
10368  */
10369 tSCC zVxworks_TimeName[] =
10370      "vxworks_time";
10373  *  File name selection pattern
10374  */
10375 tSCC zVxworks_TimeList[] =
10376   "time.h\0";
10378  *  Machine/OS name selection pattern
10379  */
10380 #define apzVxworks_TimeMachs (const char**)NULL
10383  *  content selection pattern - do fix if pattern found
10384  */
10385 tSCC zVxworks_TimeSelect0[] =
10386        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
10389  *  perform the 'test' shell command - do fix on success
10390  */
10391 tSCC zVxworks_TimeTest0[] =
10392        " -r vxWorks.h";
10394 #define    VXWORKS_TIME_TEST_CT  2
10395 static tTestDesc aVxworks_TimeTests[] = {
10396   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
10397   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
10400  *  Fix Command Arguments for Vxworks_Time
10401  */
10402 static const char* apzVxworks_TimePatch[] = {
10403     "format",
10404     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
10405 #ifdef __cplusplus\n\
10406 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
10407 #else\n\
10408 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
10409 #endif\n\
10410 #define __gcc_VOIDFUNCPTR_defined\n\
10411 #endif\n\
10412 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
10413     (char*)NULL };
10415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10417  *  Description of Vxworks_Write_Const fix
10418  */
10419 tSCC zVxworks_Write_ConstName[] =
10420      "vxworks_write_const";
10423  *  File name selection pattern
10424  */
10425 tSCC zVxworks_Write_ConstList[] =
10426   "ioLib.h\0";
10428  *  Machine/OS name selection pattern
10429  */
10430 tSCC* apzVxworks_Write_ConstMachs[] = {
10431         "*-*-vxworks*",
10432         (const char*)NULL };
10433 #define VXWORKS_WRITE_CONST_TEST_CT  0
10434 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
10437  *  Fix Command Arguments for Vxworks_Write_Const
10438  */
10439 static const char* apzVxworks_Write_ConstPatch[] = {
10440     "format",
10441     "extern int  write (int, const char*, size_t);",
10442     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
10443     (char*)NULL };
10445 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10447  *  Description of Vxworks_Iolib_Include_Unistd fix
10448  */
10449 tSCC zVxworks_Iolib_Include_UnistdName[] =
10450      "vxworks_iolib_include_unistd";
10453  *  File name selection pattern
10454  */
10455 tSCC zVxworks_Iolib_Include_UnistdList[] =
10456   "ioLib.h\0";
10458  *  Machine/OS name selection pattern
10459  */
10460 tSCC* apzVxworks_Iolib_Include_UnistdMachs[] = {
10461         "*-*-vxworks*",
10462         (const char*)NULL };
10465  *  content selection pattern - do fix if pattern found
10466  */
10467 tSCC zVxworks_Iolib_Include_UnistdSelect0[] =
10468        "#include \"unistd.h\"";
10470 #define    VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT  1
10471 static tTestDesc aVxworks_Iolib_Include_UnistdTests[] = {
10472   { TT_EGREP,    zVxworks_Iolib_Include_UnistdSelect0, (regex_t*)NULL }, };
10475  *  Fix Command Arguments for Vxworks_Iolib_Include_Unistd
10476  */
10477 static const char* apzVxworks_Iolib_Include_UnistdPatch[] = {
10478     "format",
10479     "#include <unistd.h>",
10480     (char*)NULL };
10482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10484  *  Description of X11_Class fix
10485  */
10486 tSCC zX11_ClassName[] =
10487      "x11_class";
10490  *  File name selection pattern
10491  */
10492 tSCC zX11_ClassList[] =
10493   "X11/ShellP.h\0";
10495  *  Machine/OS name selection pattern
10496  */
10497 #define apzX11_ClassMachs (const char**)NULL
10500  *  content selection pattern - do fix if pattern found
10501  */
10502 tSCC zX11_ClassSelect0[] =
10503        "^([ \t]*char \\*)class;(.*)";
10506  *  content bypass pattern - skip fix if pattern found
10507  */
10508 tSCC zX11_ClassBypass0[] =
10509        "__cplusplus";
10511 #define    X11_CLASS_TEST_CT  2
10512 static tTestDesc aX11_ClassTests[] = {
10513   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
10514   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
10517  *  Fix Command Arguments for X11_Class
10518  */
10519 static const char* apzX11_ClassPatch[] = {
10520     "format",
10521     "#ifdef __cplusplus\n\
10522 %1c_class;%2\n\
10523 #else\n\
10524 %1class;%2\n\
10525 #endif",
10526     (char*)NULL };
10528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10530  *  Description of X11_Class_Usage fix
10531  */
10532 tSCC zX11_Class_UsageName[] =
10533      "x11_class_usage";
10536  *  File name selection pattern
10537  */
10538 tSCC zX11_Class_UsageList[] =
10539   "Xm/BaseClassI.h\0";
10541  *  Machine/OS name selection pattern
10542  */
10543 #define apzX11_Class_UsageMachs (const char**)NULL
10546  *  content selection pattern - do fix if pattern found
10547  */
10548 tSCC zX11_Class_UsageSelect0[] =
10549        " class\\)";
10552  *  content bypass pattern - skip fix if pattern found
10553  */
10554 tSCC zX11_Class_UsageBypass0[] =
10555        "__cplusplus";
10557 #define    X11_CLASS_USAGE_TEST_CT  2
10558 static tTestDesc aX11_Class_UsageTests[] = {
10559   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
10560   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
10563  *  Fix Command Arguments for X11_Class_Usage
10564  */
10565 static const char* apzX11_Class_UsagePatch[] = {
10566     "format",
10567     " c_class)",
10568     (char*)NULL };
10570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10572  *  Description of X11_New fix
10573  */
10574 tSCC zX11_NewName[] =
10575      "x11_new";
10578  *  File name selection pattern
10579  */
10580 tSCC zX11_NewList[] =
10581   "Xm/Traversal.h\0";
10583  *  Machine/OS name selection pattern
10584  */
10585 #define apzX11_NewMachs (const char**)NULL
10588  *  content bypass pattern - skip fix if pattern found
10589  */
10590 tSCC zX11_NewBypass0[] =
10591        "__cplusplus";
10593 #define    X11_NEW_TEST_CT  1
10594 static tTestDesc aX11_NewTests[] = {
10595   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
10598  *  Fix Command Arguments for X11_New
10599  */
10600 static const char* apzX11_NewPatch[] = { sed_cmd_z,
10601     "-e", "/Widget\told, new;/i\\\n\
10602 #ifdef __cplusplus\\\n\
10603 \\\tWidget\told, c_new;\\\n\
10604 #else\n",
10605     "-e", "/Widget\told, new;/a\\\n\
10606 #endif\n",
10607     "-e", "s/Widget new,/Widget c_new,/g",
10608     (char*)NULL };
10610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10612  *  Description of X11_Sprintf fix
10613  */
10614 tSCC zX11_SprintfName[] =
10615      "x11_sprintf";
10618  *  File name selection pattern
10619  */
10620 tSCC zX11_SprintfList[] =
10621   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
10623  *  Machine/OS name selection pattern
10624  */
10625 #define apzX11_SprintfMachs (const char**)NULL
10628  *  content selection pattern - do fix if pattern found
10629  */
10630 tSCC zX11_SprintfSelect0[] =
10631        "^extern char \\*\tsprintf\\(\\);$";
10633 #define    X11_SPRINTF_TEST_CT  1
10634 static tTestDesc aX11_SprintfTests[] = {
10635   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
10638  *  Fix Command Arguments for X11_Sprintf
10639  */
10640 static const char* apzX11_SprintfPatch[] = {
10641     "format",
10642     "#ifndef __STDC__\n\
10643 %0\n\
10644 #endif /* !defined __STDC__ */",
10645     (char*)NULL };
10648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10650  *  List of all fixes
10651  */
10652 #define REGEX_COUNT          300
10653 #define MACH_LIST_SIZE_LIMIT 187
10654 #define FIX_COUNT            262
10657  *  Enumerate the fixes
10658  */
10659 typedef enum {
10660     AAB_AIX_STDIO_FIXIDX,
10661     AAB_AIX_FCNTL_FIXIDX,
10662     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
10663     DARWIN_API_AVAILABILITY_FIXIDX,
10664     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
10665     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
10666     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
10667     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
10668     AAB_SUN_MEMCPY_FIXIDX,
10669     AAB_VXWORKS_ASSERT_FIXIDX,
10670     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
10671     AAB_VXWORKS_UNISTD_FIXIDX,
10672     AIX_ASSERT_FIXIDX,
10673     AIX_COMPLEX_FIXIDX,
10674     AIX_EXTERNC_FIXIDX,
10675     AIX_EXTERNCPP1_FIXIDX,
10676     AIX_EXTERNCPP2_FIXIDX,
10677     AIX_INTTYPES_FIXIDX,
10678     AIX_MALLOC_FIXIDX,
10679     AIX_NET_IF_ARP_FIXIDX,
10680     AIX_NULL_FIXIDX,
10681     AIX_ONCE_INIT_1_FIXIDX,
10682     AIX_ONCE_INIT_2_FIXIDX,
10683     AIX_MUTEX_INITIALIZER_1_FIXIDX,
10684     AIX_COND_INITIALIZER_1_FIXIDX,
10685     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
10686     AIX_PHYSADR_T_FIXIDX,
10687     AIX_PTHREAD_FIXIDX,
10688     AIX_STDINT_1_FIXIDX,
10689     AIX_STDINT_2_FIXIDX,
10690     AIX_STDINT_3_FIXIDX,
10691     AIX_STDINT_4_FIXIDX,
10692     AIX_STDINT_5_FIXIDX,
10693     AIX_STDIO_INLINE_FIXIDX,
10694     AIX_STDLIB_MALLOC_FIXIDX,
10695     AIX_STDLIB_REALLOC_FIXIDX,
10696     AIX_STDLIB_CALLOC_FIXIDX,
10697     AIX_STDLIB_VALLOC_FIXIDX,
10698     AIX_STDLIB_VEC_MALLOC_FIXIDX,
10699     AIX_STDLIB_VEC_CALLOC_FIXIDX,
10700     AIX_STRTOF_CONST_FIXIDX,
10701     AIX_SYSMACHINE_FIXIDX,
10702     AIX_SYSWAIT_2_FIXIDX,
10703     AIX_VOLATILE_FIXIDX,
10704     AIX_UNISTD_FIXIDX,
10705     ALPHA___ASSERT_FIXIDX,
10706     ALPHA_ASSERT_FIXIDX,
10707     ALPHA_GETOPT_FIXIDX,
10708     ALPHA_IF_SEMICOLON_FIXIDX,
10709     ALPHA_PARENS_FIXIDX,
10710     ALPHA_SBRK_FIXIDX,
10711     AVOID_BOOL_DEFINE_FIXIDX,
10712     AVOID_BOOL_TYPE_FIXIDX,
10713     AVOID_WCHAR_T_TYPE_FIXIDX,
10714     BAD_STRUCT_TERM_FIXIDX,
10715     BADQUOTE_FIXIDX,
10716     BROKEN_ASSERT_STDIO_FIXIDX,
10717     BROKEN_ASSERT_STDLIB_FIXIDX,
10718     BROKEN_CABS_FIXIDX,
10719     BROKEN_NAN_FIXIDX,
10720     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
10721     CTRL_QUOTES_DEF_FIXIDX,
10722     CTRL_QUOTES_USE_FIXIDX,
10723     CXX_UNREADY_FIXIDX,
10724     DARWIN_AVAILABILITYINTERNAL_FIXIDX,
10725     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
10726     DARWIN_EXTERNC_FIXIDX,
10727     DARWIN_GCC4_BREAKAGE_FIXIDX,
10728     DARWIN_LL_FUNCS_AVAIL_FIXIDX,
10729     DARWIN_LONGJMP_NORETURN_FIXIDX,
10730     DARWIN_OS_TRACE_1_FIXIDX,
10731     DARWIN_OS_TRACE_2_FIXIDX,
10732     DARWIN_OS_TRACE_3_FIXIDX,
10733     DARWIN_OS_BASE_1_FIXIDX,
10734     DARWIN_DISPATCH_OBJECT_1_FIXIDX,
10735     DARWIN_PRIVATE_EXTERN_FIXIDX,
10736     DARWIN_STDINT_1_FIXIDX,
10737     DARWIN_STDINT_2_FIXIDX,
10738     DARWIN_STDINT_3_FIXIDX,
10739     DARWIN_STDINT_4_FIXIDX,
10740     DARWIN_STDINT_5_FIXIDX,
10741     DARWIN_STDINT_6_FIXIDX,
10742     DARWIN_STDINT_7_FIXIDX,
10743     DARWIN_UCRED__ATOMIC_FIXIDX,
10744     DARWIN_FLT_EVAL_METHOD_FIXIDX,
10745     DEC_INTERN_ASM_FIXIDX,
10746     DJGPP_WCHAR_H_FIXIDX,
10747     ECD_CURSOR_FIXIDX,
10748     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
10749     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
10750     FREEBSD_GCC3_BREAKAGE_FIXIDX,
10751     FREEBSD_GCC4_BREAKAGE_FIXIDX,
10752     GLIBC_C99_INLINE_1_FIXIDX,
10753     GLIBC_C99_INLINE_1A_FIXIDX,
10754     GLIBC_C99_INLINE_2_FIXIDX,
10755     GLIBC_C99_INLINE_3_FIXIDX,
10756     GLIBC_C99_INLINE_4_FIXIDX,
10757     GLIBC_MUTEX_INIT_FIXIDX,
10758     GLIBC_STDINT_FIXIDX,
10759     GLIBC_STRNCPY_FIXIDX,
10760     GLIBC_TGMATH_FIXIDX,
10761     GNU_TYPES_FIXIDX,
10762     HP_INLINE_FIXIDX,
10763     HP_SYSFILE_FIXIDX,
10764     HPPA_HPUX_FP_MACROS_FIXIDX,
10765     HPUX10_CPP_POW_INLINE_FIXIDX,
10766     HPUX11_CPP_POW_INLINE_FIXIDX,
10767     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
10768     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
10769     HPUX10_STDIO_DECLARATIONS_FIXIDX,
10770     HPPA_HPUX11_ALLOCA_FIXIDX,
10771     HPUX11_ABS_FIXIDX,
10772     HPUX11_LWP_RWLOCK_VALID_FIXIDX,
10773     HPUX11_EXTERN_SENDFILE_FIXIDX,
10774     HPUX11_EXTERN_SENDPATH_FIXIDX,
10775     HPUX11_FABSF_FIXIDX,
10776     HPUX11_PTHREAD_POINTER_FIXIDX,
10777     HPUX11_PTHREAD_CONST_FIXIDX,
10778     HPUX11_SIZE_T_FIXIDX,
10779     HPUX11_SNPRINTF_FIXIDX,
10780     HPUX11_VSNPRINTF_FIXIDX,
10781     HPUX_VSSCANF_FIXIDX,
10782     HPUX8_BOGUS_INLINES_FIXIDX,
10783     HPUX_C99_INTPTR_FIXIDX,
10784     HPUX_C99_INTTYPES_FIXIDX,
10785     HPUX_C99_INTTYPES2_FIXIDX,
10786     HPUX_C99_INTTYPES3_FIXIDX,
10787     HPUX_C99_INTTYPES4_FIXIDX,
10788     HPUX_C99_INTTYPES5_FIXIDX,
10789     HPUX_CTYPE_MACROS_FIXIDX,
10790     HPUX_EXTERN_ERRNO_FIXIDX,
10791     HPUX_HTONL_FIXIDX,
10792     HPUX_IMAGINARY_I_FIXIDX,
10793     HPUX_INTTYPE_INT8_T_FIXIDX,
10794     HPUX_LONG_DOUBLE_FIXIDX,
10795     HPUX_LONG_DOUBLE_2_FIXIDX,
10796     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
10797     HPUX_SPU_INFO_FIXIDX,
10798     HPUX_STDINT_LEAST_FAST_FIXIDX,
10799     HPUX_LONGJMP_FIXIDX,
10800     HPUX_SYSTIME_FIXIDX,
10801     HUGE_VAL_HEX_FIXIDX,
10802     HUGE_VALF_HEX_FIXIDX,
10803     HUGE_VALL_HEX_FIXIDX,
10804     INT_ABORT_FREE_AND_EXIT_FIXIDX,
10805     IO_QUOTES_DEF_FIXIDX,
10806     IO_QUOTES_USE_FIXIDX,
10807     IP_MISSING_SEMI_FIXIDX,
10808     IRIX_LIMITS_CONST_FIXIDX,
10809     IRIX_STDIO_VA_LIST_FIXIDX,
10810     KANDR_CONCAT_FIXIDX,
10811     LINUX_IA64_UCONTEXT_FIXIDX,
10812     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
10813     LYNXOS_MISSING_PUTENV_FIXIDX,
10814     MACHINE_ANSI_H_VA_LIST_FIXIDX,
10815     MACHINE_NAME_FIXIDX,
10816     MATH_EXCEPTION_FIXIDX,
10817     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
10818     NESTED_AUTH_DES_FIXIDX,
10819     NETBSD_C99_INLINE_1_FIXIDX,
10820     NETBSD_C99_INLINE_2_FIXIDX,
10821     NETBSD_EXTRA_SEMICOLON_FIXIDX,
10822     NEWLIB_STDINT_1_FIXIDX,
10823     NEWLIB_STDINT_2_FIXIDX,
10824     NEXT_MATH_PREFIX_FIXIDX,
10825     NEXT_TEMPLATE_FIXIDX,
10826     NEXT_VOLITILE_FIXIDX,
10827     NEXT_WAIT_UNION_FIXIDX,
10828     NODEENT_SYNTAX_FIXIDX,
10829     OPENBSD_NULL_DEFINITION_FIXIDX,
10830     OBSTACK_LVALUE_CAST_FIXIDX,
10831     OPENBSD_VA_START_FIXIDX,
10832     OSF_NAMESPACE_A_FIXIDX,
10833     OSF_NAMESPACE_C_FIXIDX,
10834     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
10835     READ_RET_TYPE_FIXIDX,
10836     RPC_XDR_LVALUE_CAST_A_FIXIDX,
10837     RPC_XDR_LVALUE_CAST_B_FIXIDX,
10838     RS6000_DOUBLE_FIXIDX,
10839     RS6000_FCHMOD_FIXIDX,
10840     RS6000_PARAM_FIXIDX,
10841     SOLARIS___RESTRICT_FIXIDX,
10842     SOLARIS_COMPLEX_FIXIDX,
10843     SOLARIS_COMPLEX_CXX_FIXIDX,
10844     SOLARIS_CXX_LINKAGE_FIXIDX,
10845     SOLARIS_GETC_STRICT_STDC_FIXIDX,
10846     SOLARIS_GETS_C11_FIXIDX,
10847     SOLARIS_GETS_CXX14_FIXIDX,
10848     SOLARIS_INT_CONST_FIXIDX,
10849     SOLARIS_INT_LIMITS_1_FIXIDX,
10850     SOLARIS_INT_LIMITS_2_FIXIDX,
10851     SOLARIS_INT_LIMITS_3_FIXIDX,
10852     SOLARIS_MATH_1_FIXIDX,
10853     SOLARIS_MATH_10_FIXIDX,
10854     SOLARIS_MATH_2_FIXIDX,
10855     SOLARIS_MATH_3_FIXIDX,
10856     SOLARIS_MATH_4_FIXIDX,
10857     SOLARIS_MATH_8_FIXIDX,
10858     SOLARIS_MATH_9_FIXIDX,
10859     SOLARIS_MATH_11_FIXIDX,
10860     SOLARIS_MATH_12_FIXIDX,
10861     SOLARIS_ONCE_INIT_1_FIXIDX,
10862     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
10863     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
10864     SOLARIS_RWLOCK_INIT_1_FIXIDX,
10865     SOLARIS_STD___FILBUF_FIXIDX,
10866     SOLARIS_STD_GETS_CXX14_FIXIDX,
10867     SOLARIS_STDIO_TAG_FIXIDX,
10868     SOLARIS_STDLIB_NORETURN_FIXIDX,
10869     STATSSWTCH_FIXIDX,
10870     STDIO_STDARG_H_FIXIDX,
10871     STDIO_VA_LIST_FIXIDX,
10872     STDIO_VA_LIST_CLIENTS_FIXIDX,
10873     STRICT_ANSI_NOT_FIXIDX,
10874     STRICT_ANSI_NOT_CTD_FIXIDX,
10875     STRICT_ANSI_ONLY_FIXIDX,
10876     STRUCT_FILE_FIXIDX,
10877     STRUCT_SOCKADDR_FIXIDX,
10878     SUN_AUTH_PROTO_FIXIDX,
10879     SUN_BOGUS_IFDEF_FIXIDX,
10880     SUN_CATMACRO_FIXIDX,
10881     SUN_MALLOC_FIXIDX,
10882     SUN_RUSERS_SEMI_FIXIDX,
10883     SUN_SIGNAL_FIXIDX,
10884     SUNOS_STRLEN_FIXIDX,
10885     SUSE_LINUX_VT_CXX_FIXIDX,
10886     SVR4_DISABLE_OPT_FIXIDX,
10887     SVR4_GETCWD_FIXIDX,
10888     SVR4_PROFIL_FIXIDX,
10889     SVR4_SIGHANDLER_TYPE_FIXIDX,
10890     SVR4_UNDECLARED_GETRNGE_FIXIDX,
10891     SYSV68_STRING_FIXIDX,
10892     SYSZ_STDLIB_FOR_SUN_FIXIDX,
10893     THREAD_KEYWORD_FIXIDX,
10894     TINFO_CPLUSPLUS_FIXIDX,
10895     ULTRIX_CONST_FIXIDX,
10896     ULTRIX_CONST2_FIXIDX,
10897     VA_I960_MACRO_FIXIDX,
10898     VMS_ADD_MISSING_BRACES_FIXIDX,
10899     VMS_DECC_BUILTIN_FIXIDX,
10900     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
10901     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
10902     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
10903     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
10904     VMS_NO_64BIT_GETOPT_FIXIDX,
10905     VMS_USE_FAST_SETJMP_FIXIDX,
10906     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
10907     VMS_USE_QUOTED_INCLUDE_FIXIDX,
10908     VOID_NULL_FIXIDX,
10909     VXWORKS_GCC_PROBLEM_FIXIDX,
10910     VXWORKS_IOCTL_MACRO_FIXIDX,
10911     VXWORKS_MKDIR_MACRO_FIXIDX,
10912     VXWORKS_NEEDS_VXTYPES_FIXIDX,
10913     VXWORKS_NEEDS_VXWORKS_FIXIDX,
10914     VXWORKS_REGS_FIXIDX,
10915     VXWORKS_TIME_FIXIDX,
10916     VXWORKS_WRITE_CONST_FIXIDX,
10917     VXWORKS_IOLIB_INCLUDE_UNISTD_FIXIDX,
10918     X11_CLASS_FIXIDX,
10919     X11_CLASS_USAGE_FIXIDX,
10920     X11_NEW_FIXIDX,
10921     X11_SPRINTF_FIXIDX
10922 } t_fixinc_idx;
10924 tFixDesc fixDescList[ FIX_COUNT ] = {
10925   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
10926      apzAab_Aix_StdioMachs,
10927      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10928      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
10930   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
10931      apzAab_Aix_FcntlMachs,
10932      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10933      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
10935   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
10936      apzAab_Darwin7_9_Long_Double_FuncsMachs,
10937      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10938      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
10940   {  zDarwin_Api_AvailabilityName,    zDarwin_Api_AvailabilityList,
10941      apzDarwin_Api_AvailabilityMachs,
10942      DARWIN_API_AVAILABILITY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10943      aDarwin_Api_AvailabilityTests,   apzDarwin_Api_AvailabilityPatch, 0 },
10945   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
10946      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
10947      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10948      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
10950   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
10951      apzAab_Fd_Zero_Gnu_Types_HMachs,
10952      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10953      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
10955   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
10956      apzAab_Fd_Zero_Selectbits_HMachs,
10957      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10958      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
10960   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
10961      apzAab_Solaris_Sys_Varargs_HMachs,
10962      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10963      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
10965   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
10966      apzAab_Sun_MemcpyMachs,
10967      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10968      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
10970   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
10971      apzAab_Vxworks_AssertMachs,
10972      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10973      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
10975   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
10976      apzAab_Vxworks_Regs_VxtypesMachs,
10977      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10978      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
10980   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
10981      apzAab_Vxworks_UnistdMachs,
10982      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10983      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
10985   {  zAix_AssertName,    zAix_AssertList,
10986      apzAix_AssertMachs,
10987      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10988      aAix_AssertTests,   apzAix_AssertPatch, 0 },
10990   {  zAix_ComplexName,    zAix_ComplexList,
10991      apzAix_ComplexMachs,
10992      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10993      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
10995   {  zAix_ExterncName,    zAix_ExterncList,
10996      apzAix_ExterncMachs,
10997      AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10998      aAix_ExterncTests,   apzAix_ExterncPatch, 0 },
11000   {  zAix_Externcpp1Name,    zAix_Externcpp1List,
11001      apzAix_Externcpp1Machs,
11002      AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11003      aAix_Externcpp1Tests,   apzAix_Externcpp1Patch, 0 },
11005   {  zAix_Externcpp2Name,    zAix_Externcpp2List,
11006      apzAix_Externcpp2Machs,
11007      AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11008      aAix_Externcpp2Tests,   apzAix_Externcpp2Patch, 0 },
11010   {  zAix_InttypesName,    zAix_InttypesList,
11011      apzAix_InttypesMachs,
11012      AIX_INTTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11013      aAix_InttypesTests,   apzAix_InttypesPatch, 0 },
11015   {  zAix_MallocName,    zAix_MallocList,
11016      apzAix_MallocMachs,
11017      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11018      aAix_MallocTests,   apzAix_MallocPatch, 0 },
11020   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
11021      apzAix_Net_If_ArpMachs,
11022      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11023      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
11025   {  zAix_NullName,    zAix_NullList,
11026      apzAix_NullMachs,
11027      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11028      aAix_NullTests,   apzAix_NullPatch, 0 },
11030   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
11031      apzAix_Once_Init_1Machs,
11032      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11033      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
11035   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
11036      apzAix_Once_Init_2Machs,
11037      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11038      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
11040   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
11041      apzAix_Mutex_Initializer_1Machs,
11042      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11043      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
11045   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
11046      apzAix_Cond_Initializer_1Machs,
11047      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11048      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
11050   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
11051      apzAix_Rwlock_Initializer_1Machs,
11052      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11053      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
11055   {  zAix_Physadr_TName,    zAix_Physadr_TList,
11056      apzAix_Physadr_TMachs,
11057      AIX_PHYSADR_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11058      aAix_Physadr_TTests,   apzAix_Physadr_TPatch, 0 },
11060   {  zAix_PthreadName,    zAix_PthreadList,
11061      apzAix_PthreadMachs,
11062      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11063      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
11065   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
11066      apzAix_Stdint_1Machs,
11067      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11068      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
11070   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
11071      apzAix_Stdint_2Machs,
11072      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11073      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
11075   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
11076      apzAix_Stdint_3Machs,
11077      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11078      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
11080   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
11081      apzAix_Stdint_4Machs,
11082      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11083      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
11085   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
11086      apzAix_Stdint_5Machs,
11087      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11088      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
11090   {  zAix_Stdio_InlineName,    zAix_Stdio_InlineList,
11091      apzAix_Stdio_InlineMachs,
11092      AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11093      aAix_Stdio_InlineTests,   apzAix_Stdio_InlinePatch, 0 },
11095   {  zAix_Stdlib_MallocName,    zAix_Stdlib_MallocList,
11096      apzAix_Stdlib_MallocMachs,
11097      AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11098      aAix_Stdlib_MallocTests,   apzAix_Stdlib_MallocPatch, 0 },
11100   {  zAix_Stdlib_ReallocName,    zAix_Stdlib_ReallocList,
11101      apzAix_Stdlib_ReallocMachs,
11102      AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11103      aAix_Stdlib_ReallocTests,   apzAix_Stdlib_ReallocPatch, 0 },
11105   {  zAix_Stdlib_CallocName,    zAix_Stdlib_CallocList,
11106      apzAix_Stdlib_CallocMachs,
11107      AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11108      aAix_Stdlib_CallocTests,   apzAix_Stdlib_CallocPatch, 0 },
11110   {  zAix_Stdlib_VallocName,    zAix_Stdlib_VallocList,
11111      apzAix_Stdlib_VallocMachs,
11112      AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11113      aAix_Stdlib_VallocTests,   apzAix_Stdlib_VallocPatch, 0 },
11115   {  zAix_Stdlib_Vec_MallocName,    zAix_Stdlib_Vec_MallocList,
11116      apzAix_Stdlib_Vec_MallocMachs,
11117      AIX_STDLIB_VEC_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11118      aAix_Stdlib_Vec_MallocTests,   apzAix_Stdlib_Vec_MallocPatch, 0 },
11120   {  zAix_Stdlib_Vec_CallocName,    zAix_Stdlib_Vec_CallocList,
11121      apzAix_Stdlib_Vec_CallocMachs,
11122      AIX_STDLIB_VEC_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11123      aAix_Stdlib_Vec_CallocTests,   apzAix_Stdlib_Vec_CallocPatch, 0 },
11125   {  zAix_Strtof_ConstName,    zAix_Strtof_ConstList,
11126      apzAix_Strtof_ConstMachs,
11127      AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11128      aAix_Strtof_ConstTests,   apzAix_Strtof_ConstPatch, 0 },
11130   {  zAix_SysmachineName,    zAix_SysmachineList,
11131      apzAix_SysmachineMachs,
11132      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11133      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
11135   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
11136      apzAix_Syswait_2Machs,
11137      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11138      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
11140   {  zAix_VolatileName,    zAix_VolatileList,
11141      apzAix_VolatileMachs,
11142      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11143      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
11145   {  zAix_UnistdName,    zAix_UnistdList,
11146      apzAix_UnistdMachs,
11147      AIX_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11148      aAix_UnistdTests,   apzAix_UnistdPatch, 0 },
11150   {  zAlpha___AssertName,    zAlpha___AssertList,
11151      apzAlpha___AssertMachs,
11152      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11153      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
11155   {  zAlpha_AssertName,    zAlpha_AssertList,
11156      apzAlpha_AssertMachs,
11157      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11158      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
11160   {  zAlpha_GetoptName,    zAlpha_GetoptList,
11161      apzAlpha_GetoptMachs,
11162      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11163      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
11165   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
11166      apzAlpha_If_SemicolonMachs,
11167      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11168      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
11170   {  zAlpha_ParensName,    zAlpha_ParensList,
11171      apzAlpha_ParensMachs,
11172      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11173      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
11175   {  zAlpha_SbrkName,    zAlpha_SbrkList,
11176      apzAlpha_SbrkMachs,
11177      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11178      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
11180   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
11181      apzAvoid_Bool_DefineMachs,
11182      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11183      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
11185   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
11186      apzAvoid_Bool_TypeMachs,
11187      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11188      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
11190   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
11191      apzAvoid_Wchar_T_TypeMachs,
11192      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11193      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
11195   {  zBad_Struct_TermName,    zBad_Struct_TermList,
11196      apzBad_Struct_TermMachs,
11197      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11198      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
11200   {  zBadquoteName,    zBadquoteList,
11201      apzBadquoteMachs,
11202      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11203      aBadquoteTests,   apzBadquotePatch, 0 },
11205   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
11206      apzBroken_Assert_StdioMachs,
11207      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11208      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
11210   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
11211      apzBroken_Assert_StdlibMachs,
11212      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11213      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
11215   {  zBroken_CabsName,    zBroken_CabsList,
11216      apzBroken_CabsMachs,
11217      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
11218      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
11220   {  zBroken_NanName,    zBroken_NanList,
11221      apzBroken_NanMachs,
11222      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11223      aBroken_NanTests,   apzBroken_NanPatch, 0 },
11225   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
11226      apzBsd_Stdio_Attrs_ConflictMachs,
11227      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11228      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
11230   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
11231      apzCtrl_Quotes_DefMachs,
11232      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11233      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
11235   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
11236      apzCtrl_Quotes_UseMachs,
11237      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11238      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
11240   {  zCxx_UnreadyName,    zCxx_UnreadyList,
11241      apzCxx_UnreadyMachs,
11242      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11243      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
11245   {  zDarwin_AvailabilityinternalName,    zDarwin_AvailabilityinternalList,
11246      apzDarwin_AvailabilityinternalMachs,
11247      DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11248      aDarwin_AvailabilityinternalTests,   apzDarwin_AvailabilityinternalPatch, 0 },
11250   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
11251      apzDarwin_9_Long_Double_Funcs_2Machs,
11252      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11253      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
11255   {  zDarwin_ExterncName,    zDarwin_ExterncList,
11256      apzDarwin_ExterncMachs,
11257      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11258      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
11260   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
11261      apzDarwin_Gcc4_BreakageMachs,
11262      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11263      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
11265   {  zDarwin_Ll_Funcs_AvailName,    zDarwin_Ll_Funcs_AvailList,
11266      apzDarwin_Ll_Funcs_AvailMachs,
11267      DARWIN_LL_FUNCS_AVAIL_TEST_CT, FD_MACH_ONLY,
11268      aDarwin_Ll_Funcs_AvailTests,   apzDarwin_Ll_Funcs_AvailPatch, 0 },
11270   {  zDarwin_Longjmp_NoreturnName,    zDarwin_Longjmp_NoreturnList,
11271      apzDarwin_Longjmp_NoreturnMachs,
11272      DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11273      aDarwin_Longjmp_NoreturnTests,   apzDarwin_Longjmp_NoreturnPatch, 0 },
11275   {  zDarwin_Os_Trace_1Name,    zDarwin_Os_Trace_1List,
11276      apzDarwin_Os_Trace_1Machs,
11277      DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11278      aDarwin_Os_Trace_1Tests,   apzDarwin_Os_Trace_1Patch, 0 },
11280   {  zDarwin_Os_Trace_2Name,    zDarwin_Os_Trace_2List,
11281      apzDarwin_Os_Trace_2Machs,
11282      DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11283      aDarwin_Os_Trace_2Tests,   apzDarwin_Os_Trace_2Patch, 0 },
11285   {  zDarwin_Os_Trace_3Name,    zDarwin_Os_Trace_3List,
11286      apzDarwin_Os_Trace_3Machs,
11287      DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11288      aDarwin_Os_Trace_3Tests,   apzDarwin_Os_Trace_3Patch, 0 },
11290   {  zDarwin_Os_Base_1Name,    zDarwin_Os_Base_1List,
11291      apzDarwin_Os_Base_1Machs,
11292      DARWIN_OS_BASE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11293      aDarwin_Os_Base_1Tests,   apzDarwin_Os_Base_1Patch, 0 },
11295   {  zDarwin_Dispatch_Object_1Name,    zDarwin_Dispatch_Object_1List,
11296      apzDarwin_Dispatch_Object_1Machs,
11297      DARWIN_DISPATCH_OBJECT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11298      aDarwin_Dispatch_Object_1Tests,   apzDarwin_Dispatch_Object_1Patch, 0 },
11300   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
11301      apzDarwin_Private_ExternMachs,
11302      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11303      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
11305   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
11306      apzDarwin_Stdint_1Machs,
11307      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11308      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
11310   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
11311      apzDarwin_Stdint_2Machs,
11312      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11313      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
11315   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
11316      apzDarwin_Stdint_3Machs,
11317      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11318      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
11320   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
11321      apzDarwin_Stdint_4Machs,
11322      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11323      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
11325   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
11326      apzDarwin_Stdint_5Machs,
11327      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11328      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
11330   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
11331      apzDarwin_Stdint_6Machs,
11332      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11333      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
11335   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
11336      apzDarwin_Stdint_7Machs,
11337      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11338      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
11340   {  zDarwin_Ucred__AtomicName,    zDarwin_Ucred__AtomicList,
11341      apzDarwin_Ucred__AtomicMachs,
11342      DARWIN_UCRED__ATOMIC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11343      aDarwin_Ucred__AtomicTests,   apzDarwin_Ucred__AtomicPatch, 0 },
11345   {  zDarwin_Flt_Eval_MethodName,    zDarwin_Flt_Eval_MethodList,
11346      apzDarwin_Flt_Eval_MethodMachs,
11347      DARWIN_FLT_EVAL_METHOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11348      aDarwin_Flt_Eval_MethodTests,   apzDarwin_Flt_Eval_MethodPatch, 0 },
11350   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
11351      apzDec_Intern_AsmMachs,
11352      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
11353      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
11355   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
11356      apzDjgpp_Wchar_HMachs,
11357      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11358      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
11360   {  zEcd_CursorName,    zEcd_CursorList,
11361      apzEcd_CursorMachs,
11362      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11363      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
11365   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
11366      apzFeraiseexcept_Nosse_DivbyzeroMachs,
11367      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11368      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
11370   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
11371      apzFeraiseexcept_Nosse_InvalidMachs,
11372      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11373      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
11375   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
11376      apzFreebsd_Gcc3_BreakageMachs,
11377      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11378      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
11380   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
11381      apzFreebsd_Gcc4_BreakageMachs,
11382      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11383      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
11385   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
11386      apzGlibc_C99_Inline_1Machs,
11387      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11388      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
11390   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
11391      apzGlibc_C99_Inline_1aMachs,
11392      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11393      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
11395   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
11396      apzGlibc_C99_Inline_2Machs,
11397      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
11398      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
11400   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
11401      apzGlibc_C99_Inline_3Machs,
11402      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11403      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
11405   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
11406      apzGlibc_C99_Inline_4Machs,
11407      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11408      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
11410   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
11411      apzGlibc_Mutex_InitMachs,
11412      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
11413      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
11415   {  zGlibc_StdintName,    zGlibc_StdintList,
11416      apzGlibc_StdintMachs,
11417      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11418      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
11420   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
11421      apzGlibc_StrncpyMachs,
11422      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11423      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
11425   {  zGlibc_TgmathName,    zGlibc_TgmathList,
11426      apzGlibc_TgmathMachs,
11427      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11428      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
11430   {  zGnu_TypesName,    zGnu_TypesList,
11431      apzGnu_TypesMachs,
11432      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11433      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
11435   {  zHp_InlineName,    zHp_InlineList,
11436      apzHp_InlineMachs,
11437      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11438      aHp_InlineTests,   apzHp_InlinePatch, 0 },
11440   {  zHp_SysfileName,    zHp_SysfileList,
11441      apzHp_SysfileMachs,
11442      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11443      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
11445   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
11446      apzHppa_Hpux_Fp_MacrosMachs,
11447      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11448      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
11450   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
11451      apzHpux10_Cpp_Pow_InlineMachs,
11452      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11453      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
11455   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
11456      apzHpux11_Cpp_Pow_InlineMachs,
11457      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11458      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
11460   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
11461      apzHpux10_Ctype_Declarations1Machs,
11462      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11463      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
11465   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
11466      apzHpux10_Ctype_Declarations2Machs,
11467      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11468      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
11470   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
11471      apzHpux10_Stdio_DeclarationsMachs,
11472      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11473      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
11475   {  zHppa_Hpux11_AllocaName,    zHppa_Hpux11_AllocaList,
11476      apzHppa_Hpux11_AllocaMachs,
11477      HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11478      aHppa_Hpux11_AllocaTests,   apzHppa_Hpux11_AllocaPatch, 0 },
11480   {  zHpux11_AbsName,    zHpux11_AbsList,
11481      apzHpux11_AbsMachs,
11482      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11483      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
11485   {  zHpux11_Lwp_Rwlock_ValidName,    zHpux11_Lwp_Rwlock_ValidList,
11486      apzHpux11_Lwp_Rwlock_ValidMachs,
11487      HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11488      aHpux11_Lwp_Rwlock_ValidTests,   apzHpux11_Lwp_Rwlock_ValidPatch, 0 },
11490   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
11491      apzHpux11_Extern_SendfileMachs,
11492      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11493      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
11495   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
11496      apzHpux11_Extern_SendpathMachs,
11497      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11498      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
11500   {  zHpux11_FabsfName,    zHpux11_FabsfList,
11501      apzHpux11_FabsfMachs,
11502      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11503      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
11505   {  zHpux11_Pthread_PointerName,    zHpux11_Pthread_PointerList,
11506      apzHpux11_Pthread_PointerMachs,
11507      HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11508      aHpux11_Pthread_PointerTests,   apzHpux11_Pthread_PointerPatch, 0 },
11510   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
11511      apzHpux11_Pthread_ConstMachs,
11512      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11513      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
11515   {  zHpux11_Size_TName,    zHpux11_Size_TList,
11516      apzHpux11_Size_TMachs,
11517      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11518      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
11520   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
11521      apzHpux11_SnprintfMachs,
11522      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11523      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
11525   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
11526      apzHpux11_VsnprintfMachs,
11527      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11528      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
11530   {  zHpux_VsscanfName,    zHpux_VsscanfList,
11531      apzHpux_VsscanfMachs,
11532      HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11533      aHpux_VsscanfTests,   apzHpux_VsscanfPatch, 0 },
11535   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
11536      apzHpux8_Bogus_InlinesMachs,
11537      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
11538      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
11540   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
11541      apzHpux_C99_IntptrMachs,
11542      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
11543      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
11545   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
11546      apzHpux_C99_InttypesMachs,
11547      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
11548      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
11550   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
11551      apzHpux_C99_Inttypes2Machs,
11552      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
11553      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
11555   {  zHpux_C99_Inttypes3Name,    zHpux_C99_Inttypes3List,
11556      apzHpux_C99_Inttypes3Machs,
11557      HPUX_C99_INTTYPES3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11558      aHpux_C99_Inttypes3Tests,   apzHpux_C99_Inttypes3Patch, 0 },
11560   {  zHpux_C99_Inttypes4Name,    zHpux_C99_Inttypes4List,
11561      apzHpux_C99_Inttypes4Machs,
11562      HPUX_C99_INTTYPES4_TEST_CT, FD_MACH_ONLY,
11563      aHpux_C99_Inttypes4Tests,   apzHpux_C99_Inttypes4Patch, 0 },
11565   {  zHpux_C99_Inttypes5Name,    zHpux_C99_Inttypes5List,
11566      apzHpux_C99_Inttypes5Machs,
11567      HPUX_C99_INTTYPES5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11568      aHpux_C99_Inttypes5Tests,   apzHpux_C99_Inttypes5Patch, 0 },
11570   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
11571      apzHpux_Ctype_MacrosMachs,
11572      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11573      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
11575   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
11576      apzHpux_Extern_ErrnoMachs,
11577      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11578      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
11580   {  zHpux_HtonlName,    zHpux_HtonlList,
11581      apzHpux_HtonlMachs,
11582      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11583      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
11585   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
11586      apzHpux_Imaginary_IMachs,
11587      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11588      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
11590   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
11591      apzHpux_Inttype_Int8_TMachs,
11592      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11593      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
11595   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
11596      apzHpux_Long_DoubleMachs,
11597      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
11598      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
11600   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
11601      apzHpux_Long_Double_2Machs,
11602      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11603      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
11605   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
11606      apzHpux_Pthread_InitializersMachs,
11607      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
11608      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
11610   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
11611      apzHpux_Spu_InfoMachs,
11612      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11613      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
11615   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
11616      apzHpux_Stdint_Least_FastMachs,
11617      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11618      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
11620   {  zHpux_LongjmpName,    zHpux_LongjmpList,
11621      apzHpux_LongjmpMachs,
11622      HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11623      aHpux_LongjmpTests,   apzHpux_LongjmpPatch, 0 },
11625   {  zHpux_SystimeName,    zHpux_SystimeList,
11626      apzHpux_SystimeMachs,
11627      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11628      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
11630   {  zHuge_Val_HexName,    zHuge_Val_HexList,
11631      apzHuge_Val_HexMachs,
11632      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11633      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
11635   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
11636      apzHuge_Valf_HexMachs,
11637      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11638      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
11640   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
11641      apzHuge_Vall_HexMachs,
11642      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11643      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
11645   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
11646      apzInt_Abort_Free_And_ExitMachs,
11647      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11648      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
11650   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
11651      apzIo_Quotes_DefMachs,
11652      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11653      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
11655   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
11656      apzIo_Quotes_UseMachs,
11657      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11658      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
11660   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
11661      apzIp_Missing_SemiMachs,
11662      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
11663      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
11665   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
11666      apzIrix_Limits_ConstMachs,
11667      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11668      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
11670   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
11671      apzIrix_Stdio_Va_ListMachs,
11672      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11673      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
11675   {  zKandr_ConcatName,    zKandr_ConcatList,
11676      apzKandr_ConcatMachs,
11677      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11678      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
11680   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
11681      apzLinux_Ia64_UcontextMachs,
11682      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11683      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
11685   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
11686      apzLynxos_No_Warning_In_Sys_Time_HMachs,
11687      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11688      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
11690   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
11691      apzLynxos_Missing_PutenvMachs,
11692      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11693      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
11695   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
11696      apzMachine_Ansi_H_Va_ListMachs,
11697      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11698      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
11700   {  zMachine_NameName,    zMachine_NameList,
11701      apzMachine_NameMachs,
11702      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11703      aMachine_NameTests,   apzMachine_NamePatch, 0 },
11705   {  zMath_ExceptionName,    zMath_ExceptionList,
11706      apzMath_ExceptionMachs,
11707      MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11708      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
11710   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
11711      apzMath_Huge_Val_From_Dbl_MaxMachs,
11712      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
11713      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
11715   {  zNested_Auth_DesName,    zNested_Auth_DesList,
11716      apzNested_Auth_DesMachs,
11717      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11718      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
11720   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
11721      apzNetbsd_C99_Inline_1Machs,
11722      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11723      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
11725   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
11726      apzNetbsd_C99_Inline_2Machs,
11727      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11728      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
11730   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
11731      apzNetbsd_Extra_SemicolonMachs,
11732      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11733      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
11735   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
11736      apzNewlib_Stdint_1Machs,
11737      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
11738      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
11740   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
11741      apzNewlib_Stdint_2Machs,
11742      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11743      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
11745   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
11746      apzNext_Math_PrefixMachs,
11747      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11748      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
11750   {  zNext_TemplateName,    zNext_TemplateList,
11751      apzNext_TemplateMachs,
11752      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11753      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
11755   {  zNext_VolitileName,    zNext_VolitileList,
11756      apzNext_VolitileMachs,
11757      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11758      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
11760   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
11761      apzNext_Wait_UnionMachs,
11762      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11763      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
11765   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
11766      apzNodeent_SyntaxMachs,
11767      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11768      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
11770   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
11771      apzOpenbsd_Null_DefinitionMachs,
11772      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11773      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
11775   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
11776      apzObstack_Lvalue_CastMachs,
11777      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11778      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
11780   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
11781      apzOpenbsd_Va_StartMachs,
11782      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11783      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
11785   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
11786      apzOsf_Namespace_AMachs,
11787      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11788      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
11790   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
11791      apzOsf_Namespace_CMachs,
11792      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11793      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
11795   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
11796      apzPthread_Incomplete_Struct_ArgumentMachs,
11797      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11798      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
11800   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
11801      apzRead_Ret_TypeMachs,
11802      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11803      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
11805   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
11806      apzRpc_Xdr_Lvalue_Cast_AMachs,
11807      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11808      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
11810   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
11811      apzRpc_Xdr_Lvalue_Cast_BMachs,
11812      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11813      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
11815   {  zRs6000_DoubleName,    zRs6000_DoubleList,
11816      apzRs6000_DoubleMachs,
11817      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11818      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
11820   {  zRs6000_FchmodName,    zRs6000_FchmodList,
11821      apzRs6000_FchmodMachs,
11822      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11823      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
11825   {  zRs6000_ParamName,    zRs6000_ParamList,
11826      apzRs6000_ParamMachs,
11827      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11828      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
11830   {  zSolaris___RestrictName,    zSolaris___RestrictList,
11831      apzSolaris___RestrictMachs,
11832      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11833      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
11835   {  zSolaris_ComplexName,    zSolaris_ComplexList,
11836      apzSolaris_ComplexMachs,
11837      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
11838      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
11840   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
11841      apzSolaris_Complex_CxxMachs,
11842      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
11843      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
11845   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
11846      apzSolaris_Cxx_LinkageMachs,
11847      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11848      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
11850   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
11851      apzSolaris_Getc_Strict_StdcMachs,
11852      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11853      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
11855   {  zSolaris_Gets_C11Name,    zSolaris_Gets_C11List,
11856      apzSolaris_Gets_C11Machs,
11857      SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11858      aSolaris_Gets_C11Tests,   apzSolaris_Gets_C11Patch, 0 },
11860   {  zSolaris_Gets_Cxx14Name,    zSolaris_Gets_Cxx14List,
11861      apzSolaris_Gets_Cxx14Machs,
11862      SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11863      aSolaris_Gets_Cxx14Tests,   apzSolaris_Gets_Cxx14Patch, 0 },
11865   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
11866      apzSolaris_Int_ConstMachs,
11867      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11868      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
11870   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
11871      apzSolaris_Int_Limits_1Machs,
11872      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11873      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
11875   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
11876      apzSolaris_Int_Limits_2Machs,
11877      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11878      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
11880   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
11881      apzSolaris_Int_Limits_3Machs,
11882      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11883      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
11885   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
11886      apzSolaris_Math_1Machs,
11887      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11888      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
11890   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
11891      apzSolaris_Math_10Machs,
11892      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11893      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
11895   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
11896      apzSolaris_Math_2Machs,
11897      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11898      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
11900   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
11901      apzSolaris_Math_3Machs,
11902      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11903      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
11905   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
11906      apzSolaris_Math_4Machs,
11907      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11908      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
11910   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
11911      apzSolaris_Math_8Machs,
11912      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11913      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
11915   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
11916      apzSolaris_Math_9Machs,
11917      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11918      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
11920   {  zSolaris_Math_11Name,    zSolaris_Math_11List,
11921      apzSolaris_Math_11Machs,
11922      SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11923      aSolaris_Math_11Tests,   apzSolaris_Math_11Patch, 0 },
11925   {  zSolaris_Math_12Name,    zSolaris_Math_12List,
11926      apzSolaris_Math_12Machs,
11927      SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
11928      aSolaris_Math_12Tests,   apzSolaris_Math_12Patch, 0 },
11930   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
11931      apzSolaris_Once_Init_1Machs,
11932      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11933      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
11935   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
11936      apzSolaris_Posix_Spawn_RestrictMachs,
11937      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11938      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
11940   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
11941      apzSolaris_Pow_Int_OverloadMachs,
11942      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11943      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
11945   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
11946      apzSolaris_Rwlock_Init_1Machs,
11947      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11948      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
11950   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
11951      apzSolaris_Std___FilbufMachs,
11952      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11953      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
11955   {  zSolaris_Std_Gets_Cxx14Name,    zSolaris_Std_Gets_Cxx14List,
11956      apzSolaris_Std_Gets_Cxx14Machs,
11957      SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11958      aSolaris_Std_Gets_Cxx14Tests,   apzSolaris_Std_Gets_Cxx14Patch, 0 },
11960   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
11961      apzSolaris_Stdio_TagMachs,
11962      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
11963      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
11965   {  zSolaris_Stdlib_NoreturnName,    zSolaris_Stdlib_NoreturnList,
11966      apzSolaris_Stdlib_NoreturnMachs,
11967      SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11968      aSolaris_Stdlib_NoreturnTests,   apzSolaris_Stdlib_NoreturnPatch, 0 },
11970   {  zStatsswtchName,    zStatsswtchList,
11971      apzStatsswtchMachs,
11972      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11973      aStatsswtchTests,   apzStatsswtchPatch, 0 },
11975   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
11976      apzStdio_Stdarg_HMachs,
11977      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11978      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
11980   {  zStdio_Va_ListName,    zStdio_Va_ListList,
11981      apzStdio_Va_ListMachs,
11982      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
11983      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
11985   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
11986      apzStdio_Va_List_ClientsMachs,
11987      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
11988      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
11990   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
11991      apzStrict_Ansi_NotMachs,
11992      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11993      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
11995   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
11996      apzStrict_Ansi_Not_CtdMachs,
11997      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11998      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
12000   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
12001      apzStrict_Ansi_OnlyMachs,
12002      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12003      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
12005   {  zStruct_FileName,    zStruct_FileList,
12006      apzStruct_FileMachs,
12007      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12008      aStruct_FileTests,   apzStruct_FilePatch, 0 },
12010   {  zStruct_SockaddrName,    zStruct_SockaddrList,
12011      apzStruct_SockaddrMachs,
12012      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12013      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
12015   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
12016      apzSun_Auth_ProtoMachs,
12017      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12018      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
12020   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
12021      apzSun_Bogus_IfdefMachs,
12022      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12023      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
12025   {  zSun_CatmacroName,    zSun_CatmacroList,
12026      apzSun_CatmacroMachs,
12027      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12028      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
12030   {  zSun_MallocName,    zSun_MallocList,
12031      apzSun_MallocMachs,
12032      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
12033      aSun_MallocTests,   apzSun_MallocPatch, 0 },
12035   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
12036      apzSun_Rusers_SemiMachs,
12037      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
12038      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
12040   {  zSun_SignalName,    zSun_SignalList,
12041      apzSun_SignalMachs,
12042      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12043      aSun_SignalTests,   apzSun_SignalPatch, 0 },
12045   {  zSunos_StrlenName,    zSunos_StrlenList,
12046      apzSunos_StrlenMachs,
12047      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12048      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
12050   {  zSuse_Linux_Vt_CxxName,    zSuse_Linux_Vt_CxxList,
12051      apzSuse_Linux_Vt_CxxMachs,
12052      SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12053      aSuse_Linux_Vt_CxxTests,   apzSuse_Linux_Vt_CxxPatch, 0 },
12055   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
12056      apzSvr4_Disable_OptMachs,
12057      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
12058      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
12060   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
12061      apzSvr4_GetcwdMachs,
12062      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12063      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
12065   {  zSvr4_ProfilName,    zSvr4_ProfilList,
12066      apzSvr4_ProfilMachs,
12067      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12068      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
12070   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
12071      apzSvr4_Sighandler_TypeMachs,
12072      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12073      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
12075   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
12076      apzSvr4_Undeclared_GetrngeMachs,
12077      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12078      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
12080   {  zSysv68_StringName,    zSysv68_StringList,
12081      apzSysv68_StringMachs,
12082      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
12083      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
12085   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
12086      apzSysz_Stdlib_For_SunMachs,
12087      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12088      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
12090   {  zThread_KeywordName,    zThread_KeywordList,
12091      apzThread_KeywordMachs,
12092      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12093      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
12095   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
12096      apzTinfo_CplusplusMachs,
12097      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12098      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
12100   {  zUltrix_ConstName,    zUltrix_ConstList,
12101      apzUltrix_ConstMachs,
12102      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12103      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
12105   {  zUltrix_Const2Name,    zUltrix_Const2List,
12106      apzUltrix_Const2Machs,
12107      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12108      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
12110   {  zVa_I960_MacroName,    zVa_I960_MacroList,
12111      apzVa_I960_MacroMachs,
12112      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12113      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
12115   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
12116      apzVms_Add_Missing_BracesMachs,
12117      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12118      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
12120   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
12121      apzVms_Decc_BuiltinMachs,
12122      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
12123      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
12125   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
12126      apzVms_Define_Can_Use_Extern_PrefixMachs,
12127      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12128      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
12130   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
12131      apzVms_Disable_Decc_String_BuiltinsMachs,
12132      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12133      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
12135   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
12136      apzVms_Do_Not_Redeclare_HostaliasMachs,
12137      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12138      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
12140   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
12141      apzVms_Forward_Declare_StructMachs,
12142      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12143      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
12145   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
12146      apzVms_No_64bit_GetoptMachs,
12147      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12148      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
12150   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
12151      apzVms_Use_Fast_SetjmpMachs,
12152      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12153      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
12155   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
12156      apzVms_Use_Pragma_Extern_ModelMachs,
12157      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12158      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
12160   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
12161      apzVms_Use_Quoted_IncludeMachs,
12162      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12163      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
12165   {  zVoid_NullName,    zVoid_NullList,
12166      apzVoid_NullMachs,
12167      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12168      aVoid_NullTests,   apzVoid_NullPatch, 0 },
12170   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
12171      apzVxworks_Gcc_ProblemMachs,
12172      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
12173      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
12175   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
12176      apzVxworks_Ioctl_MacroMachs,
12177      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12178      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
12180   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
12181      apzVxworks_Mkdir_MacroMachs,
12182      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12183      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
12185   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
12186      apzVxworks_Needs_VxtypesMachs,
12187      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12188      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
12190   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
12191      apzVxworks_Needs_VxworksMachs,
12192      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
12193      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
12195   {  zVxworks_RegsName,    zVxworks_RegsList,
12196      apzVxworks_RegsMachs,
12197      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12198      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
12200   {  zVxworks_TimeName,    zVxworks_TimeList,
12201      apzVxworks_TimeMachs,
12202      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12203      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
12205   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
12206      apzVxworks_Write_ConstMachs,
12207      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12208      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
12210   {  zVxworks_Iolib_Include_UnistdName,    zVxworks_Iolib_Include_UnistdList,
12211      apzVxworks_Iolib_Include_UnistdMachs,
12212      VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12213      aVxworks_Iolib_Include_UnistdTests,   apzVxworks_Iolib_Include_UnistdPatch, 0 },
12215   {  zX11_ClassName,    zX11_ClassList,
12216      apzX11_ClassMachs,
12217      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12218      aX11_ClassTests,   apzX11_ClassPatch, 0 },
12220   {  zX11_Class_UsageName,    zX11_Class_UsageList,
12221      apzX11_Class_UsageMachs,
12222      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12223      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
12225   {  zX11_NewName,    zX11_NewList,
12226      apzX11_NewMachs,
12227      X11_NEW_TEST_CT, FD_MACH_ONLY,
12228      aX11_NewTests,   apzX11_NewPatch, 0 },
12230   {  zX11_SprintfName,    zX11_SprintfList,
12231      apzX11_SprintfMachs,
12232      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12233      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }