[RS6000] biarch test fail
[official-gcc.git] / fixincludes / fixincl.x
blob758d562064126dc2671940a1e81c09e4081e3505
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  *
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  *
5  * It has been AutoGen-ed  October  3, 2020 at 11:40:52 PM by AutoGen 5.18
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Oct  3 23:40:52 UTC 2020
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 259 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";
832 #define    AIX_EXTERNCPP1_TEST_CT  1
833 static tTestDesc aAix_Externcpp1Tests[] = {
834   { TT_EGREP,    zAix_Externcpp1Select0, (regex_t*)NULL }, };
837  *  Fix Command Arguments for Aix_Externcpp1
838  */
839 static const char* apzAix_Externcpp1Patch[] = {
840     "format",
841     "#ifndef _KERNEL\n\
842 #ifdef __cplusplus\n\
843 extern \"C++\" {",
844     (char*)NULL };
846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
848  *  Description of Aix_Externcpp2 fix
849  */
850 tSCC zAix_Externcpp2Name[] =
851      "aix_externcpp2";
854  *  File name selection pattern
855  */
856 tSCC zAix_Externcpp2List[] =
857   "sys/socket.h\0";
859  *  Machine/OS name selection pattern
860  */
861 tSCC* apzAix_Externcpp2Machs[] = {
862         "*-*-aix*",
863         (const char*)NULL };
866  *  content selection pattern - do fix if pattern found
867  */
868 tSCC zAix_Externcpp2Select0[] =
869        "#endif /\\* COMPAT_43 \\*/\n\
870 #else  /\\* __cplusplus \\*/";
872 #define    AIX_EXTERNCPP2_TEST_CT  1
873 static tTestDesc aAix_Externcpp2Tests[] = {
874   { TT_EGREP,    zAix_Externcpp2Select0, (regex_t*)NULL }, };
877  *  Fix Command Arguments for Aix_Externcpp2
878  */
879 static const char* apzAix_Externcpp2Patch[] = {
880     "format",
881     "#endif /* COMPAT_43 */\n\
882 } /* extern \"C++\" */\n\
883 #else  /* __cplusplus */",
884     (char*)NULL };
886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
888  *  Description of Aix_Inttypes fix
889  */
890 tSCC zAix_InttypesName[] =
891      "aix_inttypes";
894  *  File name selection pattern
895  */
896 tSCC zAix_InttypesList[] =
897   "sys/inttypes.h\0";
899  *  Machine/OS name selection pattern
900  */
901 tSCC* apzAix_InttypesMachs[] = {
902         "*-*-aix*",
903         (const char*)NULL };
906  *  content selection pattern - do fix if pattern found
907  */
908 tSCC zAix_InttypesSelect0[] =
909        "#if !defined\\(__cplusplus\\) \\|\\| defined\\(__STDC_FORMAT_MACROS\\)";
911 #define    AIX_INTTYPES_TEST_CT  1
912 static tTestDesc aAix_InttypesTests[] = {
913   { TT_EGREP,    zAix_InttypesSelect0, (regex_t*)NULL }, };
916  *  Fix Command Arguments for Aix_Inttypes
917  */
918 static const char* apzAix_InttypesPatch[] = {
919     "format",
920     "#if 1",
921     (char*)NULL };
923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
925  *  Description of Aix_Malloc fix
926  */
927 tSCC zAix_MallocName[] =
928      "aix_malloc";
931  *  File name selection pattern
932  */
933 tSCC zAix_MallocList[] =
934   "malloc.h\0";
936  *  Machine/OS name selection pattern
937  */
938 tSCC* apzAix_MallocMachs[] = {
939         "*-*-aix*",
940         (const char*)NULL };
943  *  content selection pattern - do fix if pattern found
944  */
945 tSCC zAix_MallocSelect0[] =
946        "#ifdef __cplusplus\n\
947 extern \"C\" \\{\n\
948 [ \t]extern \"builtin\" char \\*__alloca \\(size_t\\);";
950 #define    AIX_MALLOC_TEST_CT  1
951 static tTestDesc aAix_MallocTests[] = {
952   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
955  *  Fix Command Arguments for Aix_Malloc
956  */
957 static const char* apzAix_MallocPatch[] = {
958     "format",
959     "#if (defined(__cplusplus) && defined(__IBMCPP__))\n\
960 extern \"C\" {\n\
961 \textern \"builtin\" char *__alloca (size_t);",
962     (char*)NULL };
964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
966  *  Description of Aix_Net_If_Arp fix
967  */
968 tSCC zAix_Net_If_ArpName[] =
969      "aix_net_if_arp";
972  *  File name selection pattern
973  */
974 tSCC zAix_Net_If_ArpList[] =
975   "net/if_arp.h\0";
977  *  Machine/OS name selection pattern
978  */
979 tSCC* apzAix_Net_If_ArpMachs[] = {
980         "*-*-aix*",
981         (const char*)NULL };
984  *  content selection pattern - do fix if pattern found
985  */
986 tSCC zAix_Net_If_ArpSelect0[] =
987        "^struct  fc_softc \\{";
989 #define    AIX_NET_IF_ARP_TEST_CT  1
990 static tTestDesc aAix_Net_If_ArpTests[] = {
991   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
994  *  Fix Command Arguments for Aix_Net_If_Arp
995  */
996 static const char* apzAix_Net_If_ArpPatch[] = {
997     "format",
998     "typedef struct _fc_softc {",
999     (char*)NULL };
1001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1003  *  Description of Aix_Null fix
1004  */
1005 tSCC zAix_NullName[] =
1006      "aix_null";
1009  *  File name selection pattern
1010  */
1011 tSCC zAix_NullList[] =
1012   "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";
1014  *  Machine/OS name selection pattern
1015  */
1016 tSCC* apzAix_NullMachs[] = {
1017         "*-*-aix*",
1018         (const char*)NULL };
1021  *  content selection pattern - do fix if pattern found
1022  */
1023 tSCC zAix_NullSelect0[] =
1024        "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
1027  *  content bypass pattern - skip fix if pattern found
1028  */
1029 tSCC zAix_NullBypass0[] =
1030        "__null";
1032 #define    AIX_NULL_TEST_CT  2
1033 static tTestDesc aAix_NullTests[] = {
1034   { TT_NEGREP,   zAix_NullBypass0, (regex_t*)NULL },
1035   { TT_EGREP,    zAix_NullSelect0, (regex_t*)NULL }, };
1038  *  Fix Command Arguments for Aix_Null
1039  */
1040 static const char* apzAix_NullPatch[] = {
1041     "format",
1042     "#ifndef NULL\n\
1043 #ifdef __cplusplus\n\
1044 #ifdef __GNUG__\n\
1045 #define NULL __null\n\
1046 #else /* ! __GNUG__  */\n\
1047 #define NULL 0L\n\
1048 #endif /* __GNUG__  */\n\
1049 #else /* ! __cplusplus  */\n\
1050 #define NULL ((void *)0)\n\
1051 #endif /* __cplusplus  */\n\
1052 #endif /* !NULL  */",
1053     (char*)NULL };
1055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1057  *  Description of Aix_Once_Init_1 fix
1058  */
1059 tSCC zAix_Once_Init_1Name[] =
1060      "aix_once_init_1";
1063  *  File name selection pattern
1064  */
1065 tSCC zAix_Once_Init_1List[] =
1066   "pthread.h\0";
1068  *  Machine/OS name selection pattern
1069  */
1070 tSCC* apzAix_Once_Init_1Machs[] = {
1071         "*-*-aix*",
1072         (const char*)NULL };
1075  *  content selection pattern - do fix if pattern found
1076  */
1077 tSCC zAix_Once_Init_1Select0[] =
1078        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
1079 \\{ \\\\\n";
1081 #define    AIX_ONCE_INIT_1_TEST_CT  1
1082 static tTestDesc aAix_Once_Init_1Tests[] = {
1083   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
1086  *  Fix Command Arguments for Aix_Once_Init_1
1087  */
1088 static const char* apzAix_Once_Init_1Patch[] = {
1089     "format",
1090     "#define PTHREAD_ONCE_INIT \\\n\
1091 {{ \\\n",
1092     (char*)NULL };
1094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1096  *  Description of Aix_Once_Init_2 fix
1097  */
1098 tSCC zAix_Once_Init_2Name[] =
1099      "aix_once_init_2";
1102  *  File name selection pattern
1103  */
1104 tSCC zAix_Once_Init_2List[] =
1105   "pthread.h\0";
1107  *  Machine/OS name selection pattern
1108  */
1109 tSCC* apzAix_Once_Init_2Machs[] = {
1110         "*-*-aix*",
1111         (const char*)NULL };
1114  *  content selection pattern - do fix if pattern found
1115  */
1116 tSCC zAix_Once_Init_2Select0[] =
1117        "[ \t]0 \\\\\n\
1118 \\}\n";
1120 #define    AIX_ONCE_INIT_2_TEST_CT  1
1121 static tTestDesc aAix_Once_Init_2Tests[] = {
1122   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1125  *  Fix Command Arguments for Aix_Once_Init_2
1126  */
1127 static const char* apzAix_Once_Init_2Patch[] = {
1128     "format",
1129     "\t0 \\\n\
1130 }}\n",
1131     (char*)NULL };
1133 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1135  *  Description of Aix_Mutex_Initializer_1 fix
1136  */
1137 tSCC zAix_Mutex_Initializer_1Name[] =
1138      "aix_mutex_initializer_1";
1141  *  File name selection pattern
1142  */
1143 tSCC zAix_Mutex_Initializer_1List[] =
1144   "pthread.h\0";
1146  *  Machine/OS name selection pattern
1147  */
1148 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1149         "*-*-aix*",
1150         (const char*)NULL };
1153  *  content selection pattern - do fix if pattern found
1154  */
1155 tSCC zAix_Mutex_Initializer_1Select0[] =
1156        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1157 \\{ \\\\\n";
1159 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
1160 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1161   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1164  *  Fix Command Arguments for Aix_Mutex_Initializer_1
1165  */
1166 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1167     "format",
1168     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1169 {{ \\\n",
1170     (char*)NULL };
1172 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1174  *  Description of Aix_Cond_Initializer_1 fix
1175  */
1176 tSCC zAix_Cond_Initializer_1Name[] =
1177      "aix_cond_initializer_1";
1180  *  File name selection pattern
1181  */
1182 tSCC zAix_Cond_Initializer_1List[] =
1183   "pthread.h\0";
1185  *  Machine/OS name selection pattern
1186  */
1187 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1188         "*-*-aix*",
1189         (const char*)NULL };
1192  *  content selection pattern - do fix if pattern found
1193  */
1194 tSCC zAix_Cond_Initializer_1Select0[] =
1195        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1196 \\{ \\\\\n";
1198 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
1199 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1200   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1203  *  Fix Command Arguments for Aix_Cond_Initializer_1
1204  */
1205 static const char* apzAix_Cond_Initializer_1Patch[] = {
1206     "format",
1207     "#define PTHREAD_COND_INITIALIZER \\\n\
1208 {{ \\\n",
1209     (char*)NULL };
1211 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1213  *  Description of Aix_Rwlock_Initializer_1 fix
1214  */
1215 tSCC zAix_Rwlock_Initializer_1Name[] =
1216      "aix_rwlock_initializer_1";
1219  *  File name selection pattern
1220  */
1221 tSCC zAix_Rwlock_Initializer_1List[] =
1222   "pthread.h\0";
1224  *  Machine/OS name selection pattern
1225  */
1226 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1227         "*-*-aix*",
1228         (const char*)NULL };
1231  *  content selection pattern - do fix if pattern found
1232  */
1233 tSCC zAix_Rwlock_Initializer_1Select0[] =
1234        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1235 \\{ \\\\\n";
1237 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1238 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1239   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1242  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1243  */
1244 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1245     "format",
1246     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1247 {{ \\\n",
1248     (char*)NULL };
1250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1252  *  Description of Aix_Pthread fix
1253  */
1254 tSCC zAix_PthreadName[] =
1255      "aix_pthread";
1258  *  File name selection pattern
1259  */
1260 tSCC zAix_PthreadList[] =
1261   "pthread.h\0";
1263  *  Machine/OS name selection pattern
1264  */
1265 #define apzAix_PthreadMachs (const char**)NULL
1268  *  content selection pattern - do fix if pattern found
1269  */
1270 tSCC zAix_PthreadSelect0[] =
1271        "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\
1272 [^A-Za-z_0-9 \t\n\
1273 (])";
1275 #define    AIX_PTHREAD_TEST_CT  1
1276 static tTestDesc aAix_PthreadTests[] = {
1277   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1280  *  Fix Command Arguments for Aix_Pthread
1281  */
1282 static const char* apzAix_PthreadPatch[] = {
1283     "format",
1284     "%1 %2",
1285     (char*)NULL };
1287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1289  *  Description of Aix_Stdint_1 fix
1290  */
1291 tSCC zAix_Stdint_1Name[] =
1292      "aix_stdint_1";
1295  *  File name selection pattern
1296  */
1297 tSCC zAix_Stdint_1List[] =
1298   "stdint-aix.h\0stdint.h\0";
1300  *  Machine/OS name selection pattern
1301  */
1302 tSCC* apzAix_Stdint_1Machs[] = {
1303         "*-*-aix*",
1304         (const char*)NULL };
1307  *  content selection pattern - do fix if pattern found
1308  */
1309 tSCC zAix_Stdint_1Select0[] =
1310        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1311 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1313 #define    AIX_STDINT_1_TEST_CT  1
1314 static tTestDesc aAix_Stdint_1Tests[] = {
1315   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1318  *  Fix Command Arguments for Aix_Stdint_1
1319  */
1320 static const char* apzAix_Stdint_1Patch[] = {
1321     "format",
1322     "#define UINT8_MAX\t(255)\n\
1323 #define UINT16_MAX\t(65535)",
1324     (char*)NULL };
1326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1328  *  Description of Aix_Stdint_2 fix
1329  */
1330 tSCC zAix_Stdint_2Name[] =
1331      "aix_stdint_2";
1334  *  File name selection pattern
1335  */
1336 tSCC zAix_Stdint_2List[] =
1337   "stdint-aix.h\0stdint.h\0";
1339  *  Machine/OS name selection pattern
1340  */
1341 tSCC* apzAix_Stdint_2Machs[] = {
1342         "*-*-aix*",
1343         (const char*)NULL };
1346  *  content selection pattern - do fix if pattern found
1347  */
1348 tSCC zAix_Stdint_2Select0[] =
1349        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1350 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1351 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1352 #else\n\
1353 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1354 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1355 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1357 #define    AIX_STDINT_2_TEST_CT  1
1358 static tTestDesc aAix_Stdint_2Tests[] = {
1359   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1362  *  Fix Command Arguments for Aix_Stdint_2
1363  */
1364 static const char* apzAix_Stdint_2Patch[] = {
1365     "format",
1366     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1367 #define INTPTR_MAX\t9223372036854775807L\n\
1368 #define UINTPTR_MAX\t18446744073709551615UL\n\
1369 #else\n\
1370 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1371 #define INTPTR_MAX\t2147483647L\n\
1372 #define UINTPTR_MAX\t4294967295UL",
1373     (char*)NULL };
1375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1377  *  Description of Aix_Stdint_3 fix
1378  */
1379 tSCC zAix_Stdint_3Name[] =
1380      "aix_stdint_3";
1383  *  File name selection pattern
1384  */
1385 tSCC zAix_Stdint_3List[] =
1386   "stdint-aix.h\0stdint.h\0";
1388  *  Machine/OS name selection pattern
1389  */
1390 tSCC* apzAix_Stdint_3Machs[] = {
1391         "*-*-aix*",
1392         (const char*)NULL };
1395  *  content selection pattern - do fix if pattern found
1396  */
1397 tSCC zAix_Stdint_3Select0[] =
1398        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1399 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1400 #else\n\
1401 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1402 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1404 #define    AIX_STDINT_3_TEST_CT  1
1405 static tTestDesc aAix_Stdint_3Tests[] = {
1406   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1409  *  Fix Command Arguments for Aix_Stdint_3
1410  */
1411 static const char* apzAix_Stdint_3Patch[] = {
1412     "format",
1413     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1414 #define PTRDIFF_MAX\t9223372036854775807L\n\
1415 #else\n\
1416 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1417 #define PTRDIFF_MAX\t2147483647L",
1418     (char*)NULL };
1420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1422  *  Description of Aix_Stdint_4 fix
1423  */
1424 tSCC zAix_Stdint_4Name[] =
1425      "aix_stdint_4";
1428  *  File name selection pattern
1429  */
1430 tSCC zAix_Stdint_4List[] =
1431   "stdint-aix.h\0stdint.h\0";
1433  *  Machine/OS name selection pattern
1434  */
1435 tSCC* apzAix_Stdint_4Machs[] = {
1436         "*-*-aix*",
1437         (const char*)NULL };
1440  *  content selection pattern - do fix if pattern found
1441  */
1442 tSCC zAix_Stdint_4Select0[] =
1443        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1444 #else\n\
1445 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1447 #define    AIX_STDINT_4_TEST_CT  1
1448 static tTestDesc aAix_Stdint_4Tests[] = {
1449   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1452  *  Fix Command Arguments for Aix_Stdint_4
1453  */
1454 static const char* apzAix_Stdint_4Patch[] = {
1455     "format",
1456     "#define SIZE_MAX\t18446744073709551615UL\n\
1457 #else\n\
1458 #define SIZE_MAX\t4294967295UL",
1459     (char*)NULL };
1461 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1463  *  Description of Aix_Stdint_5 fix
1464  */
1465 tSCC zAix_Stdint_5Name[] =
1466      "aix_stdint_5";
1469  *  File name selection pattern
1470  */
1471 tSCC zAix_Stdint_5List[] =
1472   "stdint-aix.h\0stdint.h\0";
1474  *  Machine/OS name selection pattern
1475  */
1476 tSCC* apzAix_Stdint_5Machs[] = {
1477         "*-*-aix*",
1478         (const char*)NULL };
1481  *  content selection pattern - do fix if pattern found
1482  */
1483 tSCC zAix_Stdint_5Select0[] =
1484        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1485 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1487 #define    AIX_STDINT_5_TEST_CT  1
1488 static tTestDesc aAix_Stdint_5Tests[] = {
1489   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1492  *  Fix Command Arguments for Aix_Stdint_5
1493  */
1494 static const char* apzAix_Stdint_5Patch[] = {
1495     "format",
1496     "#define UINT8_C(c)\tc\n\
1497 #define UINT16_C(c)\tc",
1498     (char*)NULL };
1500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1502  *  Description of Aix_Stdio_Inline fix
1503  */
1504 tSCC zAix_Stdio_InlineName[] =
1505      "aix_stdio_inline";
1508  *  File name selection pattern
1509  */
1510 tSCC zAix_Stdio_InlineList[] =
1511   "stdio.h\0";
1513  *  Machine/OS name selection pattern
1514  */
1515 tSCC* apzAix_Stdio_InlineMachs[] = {
1516         "*-*-aix*",
1517         (const char*)NULL };
1520  *  content selection pattern - do fix if pattern found
1521  */
1522 tSCC zAix_Stdio_InlineSelect0[] =
1523        "#ifdef __cplusplus\\\n\
1524 }\\\n\
1525 \\\n\
1526 #ifdef ferror\\\n";
1528 #define    AIX_STDIO_INLINE_TEST_CT  1
1529 static tTestDesc aAix_Stdio_InlineTests[] = {
1530   { TT_EGREP,    zAix_Stdio_InlineSelect0, (regex_t*)NULL }, };
1533  *  Fix Command Arguments for Aix_Stdio_Inline
1534  */
1535 static const char* apzAix_Stdio_InlinePatch[] = {
1536     "format",
1537     "#ifdef __cplusplus\n\
1538 }\n\
1539 #endif\n\n\
1540 #if (defined(__cplusplus) && defined(__IBMCPP__))\n\
1541 #ifdef ferror\n",
1542     (char*)NULL };
1544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1546  *  Description of Aix_Stdlib_Malloc fix
1547  */
1548 tSCC zAix_Stdlib_MallocName[] =
1549      "aix_stdlib_malloc";
1552  *  File name selection pattern
1553  */
1554 tSCC zAix_Stdlib_MallocList[] =
1555   "stdlib.h\0";
1557  *  Machine/OS name selection pattern
1558  */
1559 tSCC* apzAix_Stdlib_MallocMachs[] = {
1560         "*-*-aix*",
1561         (const char*)NULL };
1564  *  content selection pattern - do fix if pattern found
1565  */
1566 tSCC zAix_Stdlib_MallocSelect0[] =
1567        "#define[ \t]+malloc[ \t]+__linux_malloc";
1569 #define    AIX_STDLIB_MALLOC_TEST_CT  1
1570 static tTestDesc aAix_Stdlib_MallocTests[] = {
1571   { TT_EGREP,    zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, };
1574  *  Fix Command Arguments for Aix_Stdlib_Malloc
1575  */
1576 static const char* apzAix_Stdlib_MallocPatch[] = {
1577     "format",
1578     "extern void *malloc(size_t) __asm__(\"__linux_malloc\");",
1579     (char*)NULL };
1581 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1583  *  Description of Aix_Stdlib_Realloc fix
1584  */
1585 tSCC zAix_Stdlib_ReallocName[] =
1586      "aix_stdlib_realloc";
1589  *  File name selection pattern
1590  */
1591 tSCC zAix_Stdlib_ReallocList[] =
1592   "stdlib.h\0";
1594  *  Machine/OS name selection pattern
1595  */
1596 tSCC* apzAix_Stdlib_ReallocMachs[] = {
1597         "*-*-aix*",
1598         (const char*)NULL };
1601  *  content selection pattern - do fix if pattern found
1602  */
1603 tSCC zAix_Stdlib_ReallocSelect0[] =
1604        "#define[ \t]+realloc[ \t]+__linux_realloc";
1606 #define    AIX_STDLIB_REALLOC_TEST_CT  1
1607 static tTestDesc aAix_Stdlib_ReallocTests[] = {
1608   { TT_EGREP,    zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, };
1611  *  Fix Command Arguments for Aix_Stdlib_Realloc
1612  */
1613 static const char* apzAix_Stdlib_ReallocPatch[] = {
1614     "format",
1615     "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");",
1616     (char*)NULL };
1618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1620  *  Description of Aix_Stdlib_Calloc fix
1621  */
1622 tSCC zAix_Stdlib_CallocName[] =
1623      "aix_stdlib_calloc";
1626  *  File name selection pattern
1627  */
1628 tSCC zAix_Stdlib_CallocList[] =
1629   "stdlib.h\0";
1631  *  Machine/OS name selection pattern
1632  */
1633 tSCC* apzAix_Stdlib_CallocMachs[] = {
1634         "*-*-aix*",
1635         (const char*)NULL };
1638  *  content selection pattern - do fix if pattern found
1639  */
1640 tSCC zAix_Stdlib_CallocSelect0[] =
1641        "#define[ \t]+calloc[ \t]+__linux_calloc";
1643 #define    AIX_STDLIB_CALLOC_TEST_CT  1
1644 static tTestDesc aAix_Stdlib_CallocTests[] = {
1645   { TT_EGREP,    zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, };
1648  *  Fix Command Arguments for Aix_Stdlib_Calloc
1649  */
1650 static const char* apzAix_Stdlib_CallocPatch[] = {
1651     "format",
1652     "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");",
1653     (char*)NULL };
1655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1657  *  Description of Aix_Stdlib_Valloc fix
1658  */
1659 tSCC zAix_Stdlib_VallocName[] =
1660      "aix_stdlib_valloc";
1663  *  File name selection pattern
1664  */
1665 tSCC zAix_Stdlib_VallocList[] =
1666   "stdlib.h\0";
1668  *  Machine/OS name selection pattern
1669  */
1670 tSCC* apzAix_Stdlib_VallocMachs[] = {
1671         "*-*-aix*",
1672         (const char*)NULL };
1675  *  content selection pattern - do fix if pattern found
1676  */
1677 tSCC zAix_Stdlib_VallocSelect0[] =
1678        "#define[ \t]+valloc[ \t]+__linux_valloc";
1680 #define    AIX_STDLIB_VALLOC_TEST_CT  1
1681 static tTestDesc aAix_Stdlib_VallocTests[] = {
1682   { TT_EGREP,    zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, };
1685  *  Fix Command Arguments for Aix_Stdlib_Valloc
1686  */
1687 static const char* apzAix_Stdlib_VallocPatch[] = {
1688     "format",
1689     "extern void *valloc(size_t) __asm__(\"__linux_valloc\");",
1690     (char*)NULL };
1692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1694  *  Description of Aix_Stdlib_Vec_Malloc fix
1695  */
1696 tSCC zAix_Stdlib_Vec_MallocName[] =
1697      "aix_stdlib_vec_malloc";
1700  *  File name selection pattern
1701  */
1702 tSCC zAix_Stdlib_Vec_MallocList[] =
1703   "stdlib.h\0";
1705  *  Machine/OS name selection pattern
1706  */
1707 tSCC* apzAix_Stdlib_Vec_MallocMachs[] = {
1708         "*-*-aix*",
1709         (const char*)NULL };
1712  *  content selection pattern - do fix if pattern found
1713  */
1714 tSCC zAix_Stdlib_Vec_MallocSelect0[] =
1715        "#define[ \t]+malloc[ \t]+vec_malloc";
1717 #define    AIX_STDLIB_VEC_MALLOC_TEST_CT  1
1718 static tTestDesc aAix_Stdlib_Vec_MallocTests[] = {
1719   { TT_EGREP,    zAix_Stdlib_Vec_MallocSelect0, (regex_t*)NULL }, };
1722  *  Fix Command Arguments for Aix_Stdlib_Vec_Malloc
1723  */
1724 static const char* apzAix_Stdlib_Vec_MallocPatch[] = {
1725     "format",
1726     "extern void *malloc(size_t) __asm__(\"vec_malloc\");",
1727     (char*)NULL };
1729 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1731  *  Description of Aix_Stdlib_Vec_Calloc fix
1732  */
1733 tSCC zAix_Stdlib_Vec_CallocName[] =
1734      "aix_stdlib_vec_calloc";
1737  *  File name selection pattern
1738  */
1739 tSCC zAix_Stdlib_Vec_CallocList[] =
1740   "stdlib.h\0";
1742  *  Machine/OS name selection pattern
1743  */
1744 tSCC* apzAix_Stdlib_Vec_CallocMachs[] = {
1745         "*-*-aix*",
1746         (const char*)NULL };
1749  *  content selection pattern - do fix if pattern found
1750  */
1751 tSCC zAix_Stdlib_Vec_CallocSelect0[] =
1752        "#define[ \t]+calloc[ \t]+vec_calloc";
1754 #define    AIX_STDLIB_VEC_CALLOC_TEST_CT  1
1755 static tTestDesc aAix_Stdlib_Vec_CallocTests[] = {
1756   { TT_EGREP,    zAix_Stdlib_Vec_CallocSelect0, (regex_t*)NULL }, };
1759  *  Fix Command Arguments for Aix_Stdlib_Vec_Calloc
1760  */
1761 static const char* apzAix_Stdlib_Vec_CallocPatch[] = {
1762     "format",
1763     "extern void *calloc(size_t, size_t) __asm__(\"vec_calloc\");",
1764     (char*)NULL };
1766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1768  *  Description of Aix_Strtof_Const fix
1769  */
1770 tSCC zAix_Strtof_ConstName[] =
1771      "aix_strtof_const";
1774  *  File name selection pattern
1775  */
1776 tSCC zAix_Strtof_ConstList[] =
1777   "stdlib.h\0";
1779  *  Machine/OS name selection pattern
1780  */
1781 tSCC* apzAix_Strtof_ConstMachs[] = {
1782         "*-*-aix*",
1783         (const char*)NULL };
1786  *  content selection pattern - do fix if pattern found
1787  */
1788 tSCC zAix_Strtof_ConstSelect0[] =
1789        "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1791 #define    AIX_STRTOF_CONST_TEST_CT  1
1792 static tTestDesc aAix_Strtof_ConstTests[] = {
1793   { TT_EGREP,    zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1796  *  Fix Command Arguments for Aix_Strtof_Const
1797  */
1798 static const char* apzAix_Strtof_ConstPatch[] = {
1799     "format",
1800     "%1(const char *, char **);",
1801     (char*)NULL };
1803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1805  *  Description of Aix_Sysmachine fix
1806  */
1807 tSCC zAix_SysmachineName[] =
1808      "aix_sysmachine";
1811  *  File name selection pattern
1812  */
1813 tSCC zAix_SysmachineList[] =
1814   "sys/machine.h\0";
1816  *  Machine/OS name selection pattern
1817  */
1818 tSCC* apzAix_SysmachineMachs[] = {
1819         "*-*-aix*",
1820         (const char*)NULL };
1823  *  content selection pattern - do fix if pattern found
1824  */
1825 tSCC zAix_SysmachineSelect0[] =
1826        "\\\\ +\n";
1828 #define    AIX_SYSMACHINE_TEST_CT  1
1829 static tTestDesc aAix_SysmachineTests[] = {
1830   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1833  *  Fix Command Arguments for Aix_Sysmachine
1834  */
1835 static const char* apzAix_SysmachinePatch[] = {
1836     "format",
1837     "\\\n",
1838     (char*)NULL };
1840 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1842  *  Description of Aix_Syswait_2 fix
1843  */
1844 tSCC zAix_Syswait_2Name[] =
1845      "aix_syswait_2";
1848  *  File name selection pattern
1849  */
1850 tSCC zAix_Syswait_2List[] =
1851   "sys/wait.h\0";
1853  *  Machine/OS name selection pattern
1854  */
1855 tSCC* apzAix_Syswait_2Machs[] = {
1856         "*-*-aix*",
1857         (const char*)NULL };
1860  *  content selection pattern - do fix if pattern found
1861  */
1862 tSCC zAix_Syswait_2Select0[] =
1863        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1865 #define    AIX_SYSWAIT_2_TEST_CT  1
1866 static tTestDesc aAix_Syswait_2Tests[] = {
1867   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1870  *  Fix Command Arguments for Aix_Syswait_2
1871  */
1872 static const char* apzAix_Syswait_2Patch[] = {
1873     "format",
1874     "? (int)%1",
1875     (char*)NULL };
1877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1879  *  Description of Aix_Volatile fix
1880  */
1881 tSCC zAix_VolatileName[] =
1882      "aix_volatile";
1885  *  File name selection pattern
1886  */
1887 tSCC zAix_VolatileList[] =
1888   "sys/signal.h\0";
1890  *  Machine/OS name selection pattern
1891  */
1892 tSCC* apzAix_VolatileMachs[] = {
1893         "*-*-aix*",
1894         (const char*)NULL };
1897  *  content selection pattern - do fix if pattern found
1898  */
1899 tSCC zAix_VolatileSelect0[] =
1900        "typedef volatile int sig_atomic_t";
1902 #define    AIX_VOLATILE_TEST_CT  1
1903 static tTestDesc aAix_VolatileTests[] = {
1904   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1907  *  Fix Command Arguments for Aix_Volatile
1908  */
1909 static const char* apzAix_VolatilePatch[] = {
1910     "format",
1911     "typedef int sig_atomic_t",
1912     (char*)NULL };
1914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1916  *  Description of Aix_Unistd fix
1917  */
1918 tSCC zAix_UnistdName[] =
1919      "aix_unistd";
1922  *  File name selection pattern
1923  */
1924 tSCC zAix_UnistdList[] =
1925   "unistd.h\0";
1927  *  Machine/OS name selection pattern
1928  */
1929 tSCC* apzAix_UnistdMachs[] = {
1930         "*-*-aix*",
1931         (const char*)NULL };
1934  *  content selection pattern - do fix if pattern found
1935  */
1936 tSCC zAix_UnistdSelect0[] =
1937        "[ \t]+static[ \t]+int[ \t]+getdtablesize\\(\\)";
1939 #define    AIX_UNISTD_TEST_CT  1
1940 static tTestDesc aAix_UnistdTests[] = {
1941   { TT_EGREP,    zAix_UnistdSelect0, (regex_t*)NULL }, };
1944  *  Fix Command Arguments for Aix_Unistd
1945  */
1946 static const char* apzAix_UnistdPatch[] = {
1947     "format",
1948     "\tstatic int\t\tgetdtablesize(void)",
1949     (char*)NULL };
1951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1953  *  Description of Alpha___Assert fix
1954  */
1955 tSCC zAlpha___AssertName[] =
1956      "alpha___assert";
1959  *  File name selection pattern
1960  */
1961 tSCC zAlpha___AssertList[] =
1962   "assert.h\0";
1964  *  Machine/OS name selection pattern
1965  */
1966 #define apzAlpha___AssertMachs (const char**)NULL
1969  *  content selection pattern - do fix if pattern found
1970  */
1971 tSCC zAlpha___AssertSelect0[] =
1972        "__assert\\(char \\*, char \\*, int\\)";
1974 #define    ALPHA___ASSERT_TEST_CT  1
1975 static tTestDesc aAlpha___AssertTests[] = {
1976   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
1979  *  Fix Command Arguments for Alpha___Assert
1980  */
1981 static const char* apzAlpha___AssertPatch[] = {
1982     "format",
1983     "__assert(const char *, const char *, int)",
1984     (char*)NULL };
1986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1988  *  Description of Alpha_Assert fix
1989  */
1990 tSCC zAlpha_AssertName[] =
1991      "alpha_assert";
1994  *  File name selection pattern
1995  */
1996 tSCC zAlpha_AssertList[] =
1997   "assert.h\0";
1999  *  Machine/OS name selection pattern
2000  */
2001 #define apzAlpha_AssertMachs (const char**)NULL
2004  *  content selection pattern - do fix if pattern found
2005  */
2006 tSCC zAlpha_AssertSelect0[] =
2007        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
2009 #define    ALPHA_ASSERT_TEST_CT  1
2010 static tTestDesc aAlpha_AssertTests[] = {
2011   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
2014  *  Fix Command Arguments for Alpha_Assert
2015  */
2016 static const char* apzAlpha_AssertPatch[] = {
2017     "format",
2018     "%1(EX)",
2019     (char*)NULL };
2021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2023  *  Description of Alpha_Getopt fix
2024  */
2025 tSCC zAlpha_GetoptName[] =
2026      "alpha_getopt";
2029  *  File name selection pattern
2030  */
2031 tSCC zAlpha_GetoptList[] =
2032   "stdio.h\0stdlib.h\0";
2034  *  Machine/OS name selection pattern
2035  */
2036 #define apzAlpha_GetoptMachs (const char**)NULL
2039  *  content selection pattern - do fix if pattern found
2040  */
2041 tSCC zAlpha_GetoptSelect0[] =
2042        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
2044 #define    ALPHA_GETOPT_TEST_CT  1
2045 static tTestDesc aAlpha_GetoptTests[] = {
2046   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
2049  *  Fix Command Arguments for Alpha_Getopt
2050  */
2051 static const char* apzAlpha_GetoptPatch[] = {
2052     "format",
2053     "getopt(int, char *const[], const char *)",
2054     (char*)NULL };
2056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2058  *  Description of Alpha_If_Semicolon fix
2059  */
2060 tSCC zAlpha_If_SemicolonName[] =
2061      "alpha_if_semicolon";
2064  *  File name selection pattern
2065  */
2066 tSCC zAlpha_If_SemicolonList[] =
2067   "net/if.h\0";
2069  *  Machine/OS name selection pattern
2070  */
2071 #define apzAlpha_If_SemicolonMachs (const char**)NULL
2074  *  content selection pattern - do fix if pattern found
2075  */
2076 tSCC zAlpha_If_SemicolonSelect0[] =
2077        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
2079 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
2080 static tTestDesc aAlpha_If_SemicolonTests[] = {
2081   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
2084  *  Fix Command Arguments for Alpha_If_Semicolon
2085  */
2086 static const char* apzAlpha_If_SemicolonPatch[] = {
2087     "format",
2088     "struct sockaddr vmif_paddr;\t/*",
2089     (char*)NULL };
2091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2093  *  Description of Alpha_Parens fix
2094  */
2095 tSCC zAlpha_ParensName[] =
2096      "alpha_parens";
2099  *  File name selection pattern
2100  */
2101 tSCC zAlpha_ParensList[] =
2102   "sym.h\0";
2104  *  Machine/OS name selection pattern
2105  */
2106 #define apzAlpha_ParensMachs (const char**)NULL
2109  *  content selection pattern - do fix if pattern found
2110  */
2111 tSCC zAlpha_ParensSelect0[] =
2112        "#ifndef\\(__mips64\\)";
2114 #define    ALPHA_PARENS_TEST_CT  1
2115 static tTestDesc aAlpha_ParensTests[] = {
2116   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
2119  *  Fix Command Arguments for Alpha_Parens
2120  */
2121 static const char* apzAlpha_ParensPatch[] = {
2122     "format",
2123     "#ifndef __mips64",
2124     (char*)NULL };
2126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2128  *  Description of Alpha_Sbrk fix
2129  */
2130 tSCC zAlpha_SbrkName[] =
2131      "alpha_sbrk";
2134  *  File name selection pattern
2135  */
2136 tSCC zAlpha_SbrkList[] =
2137   "unistd.h\0";
2139  *  Machine/OS name selection pattern
2140  */
2141 #define apzAlpha_SbrkMachs (const char**)NULL
2144  *  content selection pattern - do fix if pattern found
2145  */
2146 tSCC zAlpha_SbrkSelect0[] =
2147        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
2149 #define    ALPHA_SBRK_TEST_CT  1
2150 static tTestDesc aAlpha_SbrkTests[] = {
2151   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
2154  *  Fix Command Arguments for Alpha_Sbrk
2155  */
2156 static const char* apzAlpha_SbrkPatch[] = {
2157     "format",
2158     "void *sbrk(",
2159     (char*)NULL };
2161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2163  *  Description of Avoid_Bool_Define fix
2164  */
2165 tSCC zAvoid_Bool_DefineName[] =
2166      "avoid_bool_define";
2169  *  File name selection pattern
2170  */
2171 tSCC zAvoid_Bool_DefineList[] =
2172   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2174  *  Machine/OS name selection pattern
2175  */
2176 #define apzAvoid_Bool_DefineMachs (const char**)NULL
2179  *  content selection pattern - do fix if pattern found
2180  */
2181 tSCC zAvoid_Bool_DefineSelect0[] =
2182        "#[ \t]*define[ \t]+bool[ \t]";
2185  *  content bypass pattern - skip fix if pattern found
2186  */
2187 tSCC zAvoid_Bool_DefineBypass0[] =
2188        "__cplusplus";
2190 #define    AVOID_BOOL_DEFINE_TEST_CT  2
2191 static tTestDesc aAvoid_Bool_DefineTests[] = {
2192   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
2193   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
2196  *  Fix Command Arguments for Avoid_Bool_Define
2197  */
2198 static const char* apzAvoid_Bool_DefinePatch[] = {
2199     "format",
2200     "#ifndef __cplusplus\n\
2201 %0\n\
2202 #endif",
2203     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
2204     (char*)NULL };
2206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2208  *  Description of Avoid_Bool_Type fix
2209  */
2210 tSCC zAvoid_Bool_TypeName[] =
2211      "avoid_bool_type";
2214  *  File name selection pattern
2215  */
2216 tSCC zAvoid_Bool_TypeList[] =
2217   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2219  *  Machine/OS name selection pattern
2220  */
2221 #define apzAvoid_Bool_TypeMachs (const char**)NULL
2224  *  content selection pattern - do fix if pattern found
2225  */
2226 tSCC zAvoid_Bool_TypeSelect0[] =
2227        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
2230  *  content bypass pattern - skip fix if pattern found
2231  */
2232 tSCC zAvoid_Bool_TypeBypass0[] =
2233        "__cplusplus";
2235 #define    AVOID_BOOL_TYPE_TEST_CT  2
2236 static tTestDesc aAvoid_Bool_TypeTests[] = {
2237   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
2238   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
2241  *  Fix Command Arguments for Avoid_Bool_Type
2242  */
2243 static const char* apzAvoid_Bool_TypePatch[] = {
2244     "format",
2245     "#ifndef __cplusplus\n\
2246 %0\n\
2247 #endif",
2248     (char*)NULL };
2250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2252  *  Description of Avoid_Wchar_T_Type fix
2253  */
2254 tSCC zAvoid_Wchar_T_TypeName[] =
2255      "avoid_wchar_t_type";
2258  *  File name selection pattern
2259  */
2260 #define zAvoid_Wchar_T_TypeList (char*)NULL
2262  *  Machine/OS name selection pattern
2263  */
2264 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
2267  *  content selection pattern - do fix if pattern found
2268  */
2269 tSCC zAvoid_Wchar_T_TypeSelect0[] =
2270        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
2273  *  content bypass pattern - skip fix if pattern found
2274  */
2275 tSCC zAvoid_Wchar_T_TypeBypass0[] =
2276        "__cplusplus";
2277 tSCC zAvoid_Wchar_T_TypeBypass1[] =
2278        "_LINUX_NLS_H";
2279 tSCC zAvoid_Wchar_T_TypeBypass2[] =
2280        "XFree86: xc/lib/X11/Xlib\\.h";
2282 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
2283 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
2284   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
2285   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
2286   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
2287   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
2290  *  Fix Command Arguments for Avoid_Wchar_T_Type
2291  */
2292 static const char* apzAvoid_Wchar_T_TypePatch[] = {
2293     "format",
2294     "#ifndef __cplusplus\n\
2295 %0\n\
2296 #endif",
2297     (char*)NULL };
2299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2301  *  Description of Bad_Struct_Term fix
2302  */
2303 tSCC zBad_Struct_TermName[] =
2304      "bad_struct_term";
2307  *  File name selection pattern
2308  */
2309 tSCC zBad_Struct_TermList[] =
2310   "curses.h\0";
2312  *  Machine/OS name selection pattern
2313  */
2314 #define apzBad_Struct_TermMachs (const char**)NULL
2317  *  content selection pattern - do fix if pattern found
2318  */
2319 tSCC zBad_Struct_TermSelect0[] =
2320        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
2322 #define    BAD_STRUCT_TERM_TEST_CT  1
2323 static tTestDesc aBad_Struct_TermTests[] = {
2324   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
2327  *  Fix Command Arguments for Bad_Struct_Term
2328  */
2329 static const char* apzBad_Struct_TermPatch[] = {
2330     "format",
2331     "struct term;",
2332     (char*)NULL };
2334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2336  *  Description of Badquote fix
2337  */
2338 tSCC zBadquoteName[] =
2339      "badquote";
2342  *  File name selection pattern
2343  */
2344 tSCC zBadquoteList[] =
2345   "sundev/vuid_event.h\0";
2347  *  Machine/OS name selection pattern
2348  */
2349 #define apzBadquoteMachs (const char**)NULL
2352  *  content selection pattern - do fix if pattern found
2353  */
2354 tSCC zBadquoteSelect0[] =
2355        "doesn't";
2357 #define    BADQUOTE_TEST_CT  1
2358 static tTestDesc aBadquoteTests[] = {
2359   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
2362  *  Fix Command Arguments for Badquote
2363  */
2364 static const char* apzBadquotePatch[] = {
2365     "format",
2366     "does not",
2367     (char*)NULL };
2369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2371  *  Description of Broken_Assert_Stdio fix
2372  */
2373 tSCC zBroken_Assert_StdioName[] =
2374      "broken_assert_stdio";
2377  *  File name selection pattern
2378  */
2379 tSCC zBroken_Assert_StdioList[] =
2380   "assert.h\0";
2382  *  Machine/OS name selection pattern
2383  */
2384 #define apzBroken_Assert_StdioMachs (const char**)NULL
2387  *  content selection pattern - do fix if pattern found
2388  */
2389 tSCC zBroken_Assert_StdioSelect0[] =
2390        "stderr";
2393  *  content bypass pattern - skip fix if pattern found
2394  */
2395 tSCC zBroken_Assert_StdioBypass0[] =
2396        "include.*stdio\\.h";
2398 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
2399 static tTestDesc aBroken_Assert_StdioTests[] = {
2400   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
2401   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
2404  *  Fix Command Arguments for Broken_Assert_Stdio
2405  */
2406 static const char* apzBroken_Assert_StdioPatch[] = {
2407     "wrap",
2408     "#include <stdio.h>\n",
2409     (char*)NULL };
2411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2413  *  Description of Broken_Assert_Stdlib fix
2414  */
2415 tSCC zBroken_Assert_StdlibName[] =
2416      "broken_assert_stdlib";
2419  *  File name selection pattern
2420  */
2421 tSCC zBroken_Assert_StdlibList[] =
2422   "assert.h\0";
2424  *  Machine/OS name selection pattern
2425  */
2426 #define apzBroken_Assert_StdlibMachs (const char**)NULL
2429  *  content selection pattern - do fix if pattern found
2430  */
2431 tSCC zBroken_Assert_StdlibSelect0[] =
2432        "exit *\\(|abort *\\(";
2435  *  content bypass pattern - skip fix if pattern found
2436  */
2437 tSCC zBroken_Assert_StdlibBypass0[] =
2438        "include.*stdlib\\.h";
2440 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
2441 static tTestDesc aBroken_Assert_StdlibTests[] = {
2442   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2443   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
2446  *  Fix Command Arguments for Broken_Assert_Stdlib
2447  */
2448 static const char* apzBroken_Assert_StdlibPatch[] = {
2449     "wrap",
2450     "#ifdef __cplusplus\n\
2451 #include <stdlib.h>\n\
2452 #endif\n",
2453     (char*)NULL };
2455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2457  *  Description of Broken_Cabs fix
2458  */
2459 tSCC zBroken_CabsName[] =
2460      "broken_cabs";
2463  *  File name selection pattern
2464  */
2465 tSCC zBroken_CabsList[] =
2466   "math.h\0architecture/*/math.h\0";
2468  *  Machine/OS name selection pattern
2469  */
2470 #define apzBroken_CabsMachs (const char**)NULL
2473  *  content selection pattern - do fix if pattern found
2474  */
2475 tSCC zBroken_CabsSelect0[] =
2476        "^extern[ \t]+double[ \t]+cabs";
2478 #define    BROKEN_CABS_TEST_CT  1
2479 static tTestDesc aBroken_CabsTests[] = {
2480   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2483  *  Fix Command Arguments for Broken_Cabs
2484  */
2485 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2486     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2487     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2488     (char*)NULL };
2490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2492  *  Description of Broken_Nan fix
2493  */
2494 tSCC zBroken_NanName[] =
2495      "broken_nan";
2498  *  File name selection pattern
2499  */
2500 tSCC zBroken_NanList[] =
2501   "architecture/ppc/math.h\0architecture/*/math.h\0";
2503  *  Machine/OS name selection pattern
2504  */
2505 #define apzBroken_NanMachs (const char**)NULL
2508  *  content selection pattern - do fix if pattern found
2509  */
2510 tSCC zBroken_NanSelect0[] =
2511        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2514  *  content bypass pattern - skip fix if pattern found
2515  */
2516 tSCC zBroken_NanBypass0[] =
2517        "powl";
2519 #define    BROKEN_NAN_TEST_CT  2
2520 static tTestDesc aBroken_NanTests[] = {
2521   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2522   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2525  *  Fix Command Arguments for Broken_Nan
2526  */
2527 static const char* apzBroken_NanPatch[] = {
2528     "format",
2529     "#if 1",
2530     (char*)NULL };
2532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2534  *  Description of Bsd_Stdio_Attrs_Conflict fix
2535  */
2536 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2537      "bsd_stdio_attrs_conflict";
2540  *  File name selection pattern
2541  */
2542 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2543   "stdio.h\0";
2545  *  Machine/OS name selection pattern
2546  */
2547 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2548         "*-*-*bsd*",
2549         "*-*-*darwin*",
2550         (const char*)NULL };
2553  *  content selection pattern - do fix if pattern found
2554  */
2555 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2556        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2558 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2559 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2560   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2563  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2564  */
2565 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2566     "format",
2567     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2568 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2569 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2570     (char*)NULL };
2572 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2574  *  Description of Ctrl_Quotes_Def fix
2575  */
2576 tSCC zCtrl_Quotes_DefName[] =
2577      "ctrl_quotes_def";
2580  *  File name selection pattern
2581  */
2582 #define zCtrl_Quotes_DefList (char*)NULL
2584  *  Machine/OS name selection pattern
2585  */
2586 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2589  *  content selection pattern - do fix if pattern found
2590  */
2591 tSCC zCtrl_Quotes_DefSelect0[] =
2592        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2594 #define    CTRL_QUOTES_DEF_TEST_CT  1
2595 static tTestDesc aCtrl_Quotes_DefTests[] = {
2596   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2599  *  Fix Command Arguments for Ctrl_Quotes_Def
2600  */
2601 static const char* apzCtrl_Quotes_DefPatch[] = {
2602     "char_macro_def",
2603     "CTRL",
2604     (char*)NULL };
2606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2608  *  Description of Ctrl_Quotes_Use fix
2609  */
2610 tSCC zCtrl_Quotes_UseName[] =
2611      "ctrl_quotes_use";
2614  *  File name selection pattern
2615  */
2616 #define zCtrl_Quotes_UseList (char*)NULL
2618  *  Machine/OS name selection pattern
2619  */
2620 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2623  *  content selection pattern - do fix if pattern found
2624  */
2625 tSCC zCtrl_Quotes_UseSelect0[] =
2626        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2628 #define    CTRL_QUOTES_USE_TEST_CT  1
2629 static tTestDesc aCtrl_Quotes_UseTests[] = {
2630   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2633  *  Fix Command Arguments for Ctrl_Quotes_Use
2634  */
2635 static const char* apzCtrl_Quotes_UsePatch[] = {
2636     "char_macro_use",
2637     "CTRL",
2638     (char*)NULL };
2640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2642  *  Description of Cxx_Unready fix
2643  */
2644 tSCC zCxx_UnreadyName[] =
2645      "cxx_unready";
2648  *  File name selection pattern
2649  */
2650 tSCC zCxx_UnreadyList[] =
2651   "sys/mman.h\0rpc/types.h\0";
2653  *  Machine/OS name selection pattern
2654  */
2655 #define apzCxx_UnreadyMachs (const char**)NULL
2658  *  content selection pattern - do fix if pattern found
2659  */
2660 tSCC zCxx_UnreadySelect0[] =
2661        "[^#]+malloc.*;";
2664  *  content bypass pattern - skip fix if pattern found
2665  */
2666 tSCC zCxx_UnreadyBypass0[] =
2667        "\"C\"|__BEGIN_DECLS";
2669 #define    CXX_UNREADY_TEST_CT  2
2670 static tTestDesc aCxx_UnreadyTests[] = {
2671   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2672   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2675  *  Fix Command Arguments for Cxx_Unready
2676  */
2677 static const char* apzCxx_UnreadyPatch[] = {
2678     "wrap",
2679     "#ifdef __cplusplus\n\
2680 extern \"C\" {\n\
2681 #endif\n",
2682     "#ifdef __cplusplus\n\
2683 }\n\
2684 #endif\n",
2685     (char*)NULL };
2687 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2689  *  Description of Darwin_Availabilityinternal fix
2690  */
2691 tSCC zDarwin_AvailabilityinternalName[] =
2692      "darwin_availabilityinternal";
2695  *  File name selection pattern
2696  */
2697 tSCC zDarwin_AvailabilityinternalList[] =
2698   "AvailabilityInternal.h\0";
2700  *  Machine/OS name selection pattern
2701  */
2702 tSCC* apzDarwin_AvailabilityinternalMachs[] = {
2703         "*-*-darwin*",
2704         (const char*)NULL };
2707  *  content selection pattern - do fix if pattern found
2708  */
2709 tSCC zDarwin_AvailabilityinternalSelect0[] =
2710        "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*";
2712 #define    DARWIN_AVAILABILITYINTERNAL_TEST_CT  1
2713 static tTestDesc aDarwin_AvailabilityinternalTests[] = {
2714   { TT_EGREP,    zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, };
2717  *  Fix Command Arguments for Darwin_Availabilityinternal
2718  */
2719 static const char* apzDarwin_AvailabilityinternalPatch[] = {
2720     "format",
2721     "#if defined(__has_attribute)\n\
2722   #if __has_attribute(availability)\n\
2723 %0\n\
2724   #else\n\
2725     #define %1\n\
2726   #endif\n\
2727 #else\n\
2728     #define %1\n\
2729 #endif",
2730     (char*)NULL };
2732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2734  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2735  */
2736 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2737      "darwin_9_long_double_funcs_2";
2740  *  File name selection pattern
2741  */
2742 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2743   "math.h\0";
2745  *  Machine/OS name selection pattern
2746  */
2747 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2748         "*-*-darwin*",
2749         (const char*)NULL };
2752  *  content selection pattern - do fix if pattern found
2753  */
2754 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2755        "#include[ \\t]+\\\"";
2757 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2758 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2759   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2762  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2763  */
2764 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2765     "format",
2766     "%1<%2.h>",
2767     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2768     (char*)NULL };
2770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2772  *  Description of Darwin_Externc fix
2773  */
2774 tSCC zDarwin_ExterncName[] =
2775      "darwin_externc";
2778  *  File name selection pattern
2779  */
2780 tSCC zDarwin_ExterncList[] =
2781   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2783  *  Machine/OS name selection pattern
2784  */
2785 tSCC* apzDarwin_ExterncMachs[] = {
2786         "*-*-darwin*",
2787         (const char*)NULL };
2790  *  content bypass pattern - skip fix if pattern found
2791  */
2792 tSCC zDarwin_ExterncBypass0[] =
2793        "extern \"C\"";
2794 tSCC zDarwin_ExterncBypass1[] =
2795        "__BEGIN_DECLS";
2797 #define    DARWIN_EXTERNC_TEST_CT  2
2798 static tTestDesc aDarwin_ExterncTests[] = {
2799   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2800   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2803  *  Fix Command Arguments for Darwin_Externc
2804  */
2805 static const char* apzDarwin_ExterncPatch[] = {
2806     "wrap",
2807     "#ifdef __cplusplus\n\
2808 extern \"C\" {\n\
2809 #endif\n",
2810     "#ifdef __cplusplus\n\
2811 }\n\
2812 #endif\n",
2813     (char*)NULL };
2815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2817  *  Description of Darwin_Gcc4_Breakage fix
2818  */
2819 tSCC zDarwin_Gcc4_BreakageName[] =
2820      "darwin_gcc4_breakage";
2823  *  File name selection pattern
2824  */
2825 tSCC zDarwin_Gcc4_BreakageList[] =
2826   "AvailabilityMacros.h\0";
2828  *  Machine/OS name selection pattern
2829  */
2830 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2831         "*-*-darwin*",
2832         (const char*)NULL };
2835  *  content selection pattern - do fix if pattern found
2836  */
2837 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2838        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2840 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2841 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2842   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2845  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2846  */
2847 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2848     "format",
2849     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2850     (char*)NULL };
2852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2854  *  Description of Darwin_Ll_Funcs_Avail fix
2855  */
2856 tSCC zDarwin_Ll_Funcs_AvailName[] =
2857      "darwin_ll_funcs_avail";
2860  *  File name selection pattern
2861  */
2862 tSCC zDarwin_Ll_Funcs_AvailList[] =
2863   "architecture/ppc/math.h\0architecture/i386/math.h\0";
2865  *  Machine/OS name selection pattern
2866  */
2867 tSCC* apzDarwin_Ll_Funcs_AvailMachs[] = {
2868         "*-*-darwin*",
2869         (const char*)NULL };
2872  *  content selection pattern - do fix if pattern found
2873  */
2874 tSCC zDarwin_Ll_Funcs_AvailSelect0[] =
2875        "#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^1]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^)]*";
2877 #define    DARWIN_LL_FUNCS_AVAIL_TEST_CT  1
2878 static tTestDesc aDarwin_Ll_Funcs_AvailTests[] = {
2879   { TT_EGREP,    zDarwin_Ll_Funcs_AvailSelect0, (regex_t*)NULL }, };
2882  *  Fix Command Arguments for Darwin_Ll_Funcs_Avail
2883  */
2884 static const char* apzDarwin_Ll_Funcs_AvailPatch[] = { sed_cmd_z,
2885     "-e", "s/#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^_]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^\\)]*)/#if !(__DARWIN_NO_LONG_LONG)/",
2886     (char*)NULL };
2888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2890  *  Description of Darwin_Longjmp_Noreturn fix
2891  */
2892 tSCC zDarwin_Longjmp_NoreturnName[] =
2893      "darwin_longjmp_noreturn";
2896  *  File name selection pattern
2897  */
2898 tSCC zDarwin_Longjmp_NoreturnList[] =
2899   "i386/setjmp.h\0";
2901  *  Machine/OS name selection pattern
2902  */
2903 tSCC* apzDarwin_Longjmp_NoreturnMachs[] = {
2904         "*-*-darwin*",
2905         (const char*)NULL };
2908  *  content selection pattern - do fix if pattern found
2909  */
2910 tSCC zDarwin_Longjmp_NoreturnSelect0[] =
2911        "(.*longjmp\\(.*jmp_buf.*[^)]+\\));";
2914  *  content bypass pattern - skip fix if pattern found
2915  */
2916 tSCC zDarwin_Longjmp_NoreturnBypass0[] =
2917        "__dead2";
2919 #define    DARWIN_LONGJMP_NORETURN_TEST_CT  2
2920 static tTestDesc aDarwin_Longjmp_NoreturnTests[] = {
2921   { TT_NEGREP,   zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL },
2922   { TT_EGREP,    zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
2925  *  Fix Command Arguments for Darwin_Longjmp_Noreturn
2926  */
2927 static const char* apzDarwin_Longjmp_NoreturnPatch[] = {
2928     "format",
2929     "%1 __attribute__ ((__noreturn__));",
2930     (char*)NULL };
2932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2934  *  Description of Darwin_Os_Trace_1 fix
2935  */
2936 tSCC zDarwin_Os_Trace_1Name[] =
2937      "darwin_os_trace_1";
2940  *  File name selection pattern
2941  */
2942 tSCC zDarwin_Os_Trace_1List[] =
2943   "os/trace.h\0";
2945  *  Machine/OS name selection pattern
2946  */
2947 tSCC* apzDarwin_Os_Trace_1Machs[] = {
2948         "*-*-darwin*",
2949         (const char*)NULL };
2952  *  content selection pattern - do fix if pattern found
2953  */
2954 tSCC zDarwin_Os_Trace_1Select0[] =
2955        "^(_os_trace_verify_printf.*) (__attribute__.*)";
2957 #define    DARWIN_OS_TRACE_1_TEST_CT  1
2958 static tTestDesc aDarwin_Os_Trace_1Tests[] = {
2959   { TT_EGREP,    zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, };
2962  *  Fix Command Arguments for Darwin_Os_Trace_1
2963  */
2964 static const char* apzDarwin_Os_Trace_1Patch[] = {
2965     "format",
2966     "%1",
2967     (char*)NULL };
2969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2971  *  Description of Darwin_Os_Trace_2 fix
2972  */
2973 tSCC zDarwin_Os_Trace_2Name[] =
2974      "darwin_os_trace_2";
2977  *  File name selection pattern
2978  */
2979 tSCC zDarwin_Os_Trace_2List[] =
2980   "os/trace.h\0";
2982  *  Machine/OS name selection pattern
2983  */
2984 tSCC* apzDarwin_Os_Trace_2Machs[] = {
2985         "*-*-darwin*",
2986         (const char*)NULL };
2989  *  content selection pattern - do fix if pattern found
2990  */
2991 tSCC zDarwin_Os_Trace_2Select0[] =
2992        "typedef.*\\^os_trace_payload_t.*";
2994 #define    DARWIN_OS_TRACE_2_TEST_CT  1
2995 static tTestDesc aDarwin_Os_Trace_2Tests[] = {
2996   { TT_EGREP,    zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, };
2999  *  Fix Command Arguments for Darwin_Os_Trace_2
3000  */
3001 static const char* apzDarwin_Os_Trace_2Patch[] = {
3002     "format",
3003     "#if __BLOCKS__\n\
3004 %0\n\
3005 #endif",
3006     (char*)NULL };
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010  *  Description of Darwin_Os_Trace_3 fix
3011  */
3012 tSCC zDarwin_Os_Trace_3Name[] =
3013      "darwin_os_trace_3";
3016  *  File name selection pattern
3017  */
3018 tSCC zDarwin_Os_Trace_3List[] =
3019   "os/trace.h\0";
3021  *  Machine/OS name selection pattern
3022  */
3023 tSCC* apzDarwin_Os_Trace_3Machs[] = {
3024         "*-*-darwin*",
3025         (const char*)NULL };
3028  *  content selection pattern - do fix if pattern found
3029  */
3030 tSCC zDarwin_Os_Trace_3Select0[] =
3031        "__(API|OSX)_.*\n\
3032 OS_EXPORT.*\n\
3033 .*\n\
3034 _os_trace.*os_trace_payload_t payload);";
3036 #define    DARWIN_OS_TRACE_3_TEST_CT  1
3037 static tTestDesc aDarwin_Os_Trace_3Tests[] = {
3038   { TT_EGREP,    zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, };
3041  *  Fix Command Arguments for Darwin_Os_Trace_3
3042  */
3043 static const char* apzDarwin_Os_Trace_3Patch[] = {
3044     "format",
3045     "#if __BLOCKS__\n\
3046 %0\n\
3047 #endif",
3048     (char*)NULL };
3050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3052  *  Description of Darwin_Os_Base_1 fix
3053  */
3054 tSCC zDarwin_Os_Base_1Name[] =
3055      "darwin_os_base_1";
3058  *  File name selection pattern
3059  */
3060 tSCC zDarwin_Os_Base_1List[] =
3061   "os/base.h\0";
3063  *  Machine/OS name selection pattern
3064  */
3065 tSCC* apzDarwin_Os_Base_1Machs[] = {
3066         "*-*-darwin*",
3067         (const char*)NULL };
3070  *  content selection pattern - do fix if pattern found
3071  */
3072 tSCC zDarwin_Os_Base_1Select0[] =
3073        "#define __has_attribute.*\n\
3074 #endif";
3076 #define    DARWIN_OS_BASE_1_TEST_CT  1
3077 static tTestDesc aDarwin_Os_Base_1Tests[] = {
3078   { TT_EGREP,    zDarwin_Os_Base_1Select0, (regex_t*)NULL }, };
3081  *  Fix Command Arguments for Darwin_Os_Base_1
3082  */
3083 static const char* apzDarwin_Os_Base_1Patch[] = {
3084     "format",
3085     "%0\n\
3086 #ifndef __has_extension\n\
3087 #define __has_extension(x) 0\n\
3088 #endif",
3089     (char*)NULL };
3091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3093  *  Description of Darwin_Dispatch_Object_1 fix
3094  */
3095 tSCC zDarwin_Dispatch_Object_1Name[] =
3096      "darwin_dispatch_object_1";
3099  *  File name selection pattern
3100  */
3101 tSCC zDarwin_Dispatch_Object_1List[] =
3102   "dispatch/object.h\0";
3104  *  Machine/OS name selection pattern
3105  */
3106 tSCC* apzDarwin_Dispatch_Object_1Machs[] = {
3107         "*-*-darwin*",
3108         (const char*)NULL };
3111  *  content selection pattern - do fix if pattern found
3112  */
3113 tSCC zDarwin_Dispatch_Object_1Select0[] =
3114        "typedef void.*\\^dispatch_block_t.*";
3116 #define    DARWIN_DISPATCH_OBJECT_1_TEST_CT  1
3117 static tTestDesc aDarwin_Dispatch_Object_1Tests[] = {
3118   { TT_EGREP,    zDarwin_Dispatch_Object_1Select0, (regex_t*)NULL }, };
3121  *  Fix Command Arguments for Darwin_Dispatch_Object_1
3122  */
3123 static const char* apzDarwin_Dispatch_Object_1Patch[] = {
3124     "format",
3125     "#if __BLOCKS__\n\
3126 %0\n\
3127 #endif",
3128     (char*)NULL };
3130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3132  *  Description of Darwin_Private_Extern fix
3133  */
3134 tSCC zDarwin_Private_ExternName[] =
3135      "darwin_private_extern";
3138  *  File name selection pattern
3139  */
3140 tSCC zDarwin_Private_ExternList[] =
3141   "mach-o/dyld.h\0";
3143  *  Machine/OS name selection pattern
3144  */
3145 tSCC* apzDarwin_Private_ExternMachs[] = {
3146         "*-*-darwin*",
3147         (const char*)NULL };
3150  *  content selection pattern - do fix if pattern found
3151  */
3152 tSCC zDarwin_Private_ExternSelect0[] =
3153        "__private_extern__ [a-z_]+ _dyld_";
3155 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
3156 static tTestDesc aDarwin_Private_ExternTests[] = {
3157   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
3160  *  Fix Command Arguments for Darwin_Private_Extern
3161  */
3162 static const char* apzDarwin_Private_ExternPatch[] = {
3163     "format",
3164     "extern",
3165     "__private_extern__",
3166     (char*)NULL };
3168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3170  *  Description of Darwin_Stdint_1 fix
3171  */
3172 tSCC zDarwin_Stdint_1Name[] =
3173      "darwin_stdint_1";
3176  *  File name selection pattern
3177  */
3178 tSCC zDarwin_Stdint_1List[] =
3179   "stdint-darwin.h\0stdint.h\0";
3181  *  Machine/OS name selection pattern
3182  */
3183 tSCC* apzDarwin_Stdint_1Machs[] = {
3184         "*-*-darwin*",
3185         (const char*)NULL };
3188  *  content selection pattern - do fix if pattern found
3189  */
3190 tSCC zDarwin_Stdint_1Select0[] =
3191        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
3192 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
3194 #define    DARWIN_STDINT_1_TEST_CT  1
3195 static tTestDesc aDarwin_Stdint_1Tests[] = {
3196   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
3199  *  Fix Command Arguments for Darwin_Stdint_1
3200  */
3201 static const char* apzDarwin_Stdint_1Patch[] = {
3202     "format",
3203     "#define UINT8_C(v)\tv\n\
3204 #define UINT16_C(v)\tv",
3205     (char*)NULL };
3207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3209  *  Description of Darwin_Stdint_2 fix
3210  */
3211 tSCC zDarwin_Stdint_2Name[] =
3212      "darwin_stdint_2";
3215  *  File name selection pattern
3216  */
3217 tSCC zDarwin_Stdint_2List[] =
3218   "stdint-darwin.h\0stdint.h\0";
3220  *  Machine/OS name selection pattern
3221  */
3222 tSCC* apzDarwin_Stdint_2Machs[] = {
3223         "*-*-darwin*",
3224         (const char*)NULL };
3227  *  content selection pattern - do fix if pattern found
3228  */
3229 tSCC zDarwin_Stdint_2Select0[] =
3230        "#if __WORDSIZE == 64\n\
3231 #define INTPTR_MIN[ \t]+INT64_MIN\n\
3232 #define INTPTR_MAX[ \t]+INT64_MAX\n\
3233 #else\n\
3234 #define INTPTR_MIN[ \t]+INT32_MIN\n\
3235 #define INTPTR_MAX[ \t]+INT32_MAX\n\
3236 #endif";
3238 #define    DARWIN_STDINT_2_TEST_CT  1
3239 static tTestDesc aDarwin_Stdint_2Tests[] = {
3240   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
3243  *  Fix Command Arguments for Darwin_Stdint_2
3244  */
3245 static const char* apzDarwin_Stdint_2Patch[] = {
3246     "format",
3247     "#if __WORDSIZE == 64\n\
3248 #define INTPTR_MAX 9223372036854775807L\n\
3249 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3250 #else\n\
3251 #define INTPTR_MAX 2147483647L\n\
3252 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3253 #endif",
3254     (char*)NULL };
3256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3258  *  Description of Darwin_Stdint_3 fix
3259  */
3260 tSCC zDarwin_Stdint_3Name[] =
3261      "darwin_stdint_3";
3264  *  File name selection pattern
3265  */
3266 tSCC zDarwin_Stdint_3List[] =
3267   "stdint-darwin.h\0stdint.h\0";
3269  *  Machine/OS name selection pattern
3270  */
3271 tSCC* apzDarwin_Stdint_3Machs[] = {
3272         "*-*-darwin*",
3273         (const char*)NULL };
3276  *  content selection pattern - do fix if pattern found
3277  */
3278 tSCC zDarwin_Stdint_3Select0[] =
3279        "#if __WORDSIZE == 64\n\
3280 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
3281 #else\n\
3282 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
3283 #endif";
3285 #define    DARWIN_STDINT_3_TEST_CT  1
3286 static tTestDesc aDarwin_Stdint_3Tests[] = {
3287   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
3290  *  Fix Command Arguments for Darwin_Stdint_3
3291  */
3292 static const char* apzDarwin_Stdint_3Patch[] = {
3293     "format",
3294     "#if __WORDSIZE == 64\n\
3295 #define UINTPTR_MAX 18446744073709551615UL\n\
3296 #else\n\
3297 #define UINTPTR_MAX 4294967295UL\n\
3298 #endif",
3299     (char*)NULL };
3301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3303  *  Description of Darwin_Stdint_4 fix
3304  */
3305 tSCC zDarwin_Stdint_4Name[] =
3306      "darwin_stdint_4";
3309  *  File name selection pattern
3310  */
3311 tSCC zDarwin_Stdint_4List[] =
3312   "stdint-darwin.h\0stdint.h\0";
3314  *  Machine/OS name selection pattern
3315  */
3316 tSCC* apzDarwin_Stdint_4Machs[] = {
3317         "*-*-darwin*",
3318         (const char*)NULL };
3321  *  content selection pattern - do fix if pattern found
3322  */
3323 tSCC zDarwin_Stdint_4Select0[] =
3324        "#if __WORDSIZE == 64\n\
3325 #define SIZE_MAX[ \t]+UINT64_MAX\n\
3326 #else\n\
3327 #define SIZE_MAX[ \t]+UINT32_MAX\n\
3328 #endif";
3330 #define    DARWIN_STDINT_4_TEST_CT  1
3331 static tTestDesc aDarwin_Stdint_4Tests[] = {
3332   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
3335  *  Fix Command Arguments for Darwin_Stdint_4
3336  */
3337 static const char* apzDarwin_Stdint_4Patch[] = {
3338     "format",
3339     "#if __WORDSIZE == 64\n\
3340 #define SIZE_MAX 18446744073709551615UL\n\
3341 #else\n\
3342 #define SIZE_MAX 4294967295UL\n\
3343 #endif",
3344     (char*)NULL };
3346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3348  *  Description of Darwin_Stdint_5 fix
3349  */
3350 tSCC zDarwin_Stdint_5Name[] =
3351      "darwin_stdint_5";
3354  *  File name selection pattern
3355  */
3356 tSCC zDarwin_Stdint_5List[] =
3357   "stdint-darwin.h\0stdint.h\0";
3359  *  Machine/OS name selection pattern
3360  */
3361 tSCC* apzDarwin_Stdint_5Machs[] = {
3362         "*-*-darwin*",
3363         (const char*)NULL };
3366  *  content selection pattern - do fix if pattern found
3367  */
3368 tSCC zDarwin_Stdint_5Select0[] =
3369        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
3370 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
3371 #define UINTMAX_MAX[ \t]+UINT64_MAX";
3373 #define    DARWIN_STDINT_5_TEST_CT  1
3374 static tTestDesc aDarwin_Stdint_5Tests[] = {
3375   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
3378  *  Fix Command Arguments for Darwin_Stdint_5
3379  */
3380 static const char* apzDarwin_Stdint_5Patch[] = {
3381     "format",
3382     "#if __WORDSIZE == 64\n\
3383 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
3384 #define INTMAX_MAX   9223372036854775807L\n\
3385 #define UINTMAX_MAX  18446744073709551615UL\n\
3386 #else\n\
3387 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
3388 #define INTMAX_MAX   9223372036854775807LL\n\
3389 #define UINTMAX_MAX  18446744073709551615ULL\n\
3390 #endif",
3391     (char*)NULL };
3393 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3395  *  Description of Darwin_Stdint_6 fix
3396  */
3397 tSCC zDarwin_Stdint_6Name[] =
3398      "darwin_stdint_6";
3401  *  File name selection pattern
3402  */
3403 tSCC zDarwin_Stdint_6List[] =
3404   "stdint-darwin.h\0stdint.h\0";
3406  *  Machine/OS name selection pattern
3407  */
3408 tSCC* apzDarwin_Stdint_6Machs[] = {
3409         "*-*-darwin*",
3410         (const char*)NULL };
3413  *  content selection pattern - do fix if pattern found
3414  */
3415 tSCC zDarwin_Stdint_6Select0[] =
3416        "#if __WORDSIZE == 64\n\
3417 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
3418 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
3419 #else\n\
3420 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
3421 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
3422 #endif";
3424 #define    DARWIN_STDINT_6_TEST_CT  1
3425 static tTestDesc aDarwin_Stdint_6Tests[] = {
3426   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
3429  *  Fix Command Arguments for Darwin_Stdint_6
3430  */
3431 static const char* apzDarwin_Stdint_6Patch[] = {
3432     "format",
3433     "#if __WORDSIZE == 64\n\
3434 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
3435 #define PTRDIFF_MAX 9223372036854775807L\n\
3436 #else\n\
3437 #define PTRDIFF_MIN (-2147483647 - 1)\n\
3438 #define PTRDIFF_MAX 2147483647\n\
3439 #endif",
3440     (char*)NULL };
3442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3444  *  Description of Darwin_Stdint_7 fix
3445  */
3446 tSCC zDarwin_Stdint_7Name[] =
3447      "darwin_stdint_7";
3450  *  File name selection pattern
3451  */
3452 tSCC zDarwin_Stdint_7List[] =
3453   "stdint-darwin.h\0stdint.h\0";
3455  *  Machine/OS name selection pattern
3456  */
3457 tSCC* apzDarwin_Stdint_7Machs[] = {
3458         "*-*-darwin*",
3459         (const char*)NULL };
3462  *  content selection pattern - do fix if pattern found
3463  */
3464 tSCC zDarwin_Stdint_7Select0[] =
3465        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
3466 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
3468 #define    DARWIN_STDINT_7_TEST_CT  1
3469 static tTestDesc aDarwin_Stdint_7Tests[] = {
3470   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
3473  *  Fix Command Arguments for Darwin_Stdint_7
3474  */
3475 static const char* apzDarwin_Stdint_7Patch[] = {
3476     "format",
3477     "#if __WORDSIZE == 64\n\
3478 #define INTMAX_C(v)  (v ## L)\n\
3479 #define UINTMAX_C(v) (v ## UL)\n\
3480 #else\n\
3481 #define INTMAX_C(v)  (v ## LL)\n\
3482 #define UINTMAX_C(v) (v ## ULL)\n\
3483 #endif",
3484     (char*)NULL };
3486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3488  *  Description of Darwin_Ucred__Atomic fix
3489  */
3490 tSCC zDarwin_Ucred__AtomicName[] =
3491      "darwin_ucred__Atomic";
3494  *  File name selection pattern
3495  */
3496 tSCC zDarwin_Ucred__AtomicList[] =
3497   "sys/ucred.h\0";
3499  *  Machine/OS name selection pattern
3500  */
3501 tSCC* apzDarwin_Ucred__AtomicMachs[] = {
3502         "*-*-darwin*",
3503         (const char*)NULL };
3506  *  content selection pattern - do fix if pattern found
3507  */
3508 tSCC zDarwin_Ucred__AtomicSelect0[] =
3509        "_Atomic";
3511 #define    DARWIN_UCRED__ATOMIC_TEST_CT  1
3512 static tTestDesc aDarwin_Ucred__AtomicTests[] = {
3513   { TT_EGREP,    zDarwin_Ucred__AtomicSelect0, (regex_t*)NULL }, };
3516  *  Fix Command Arguments for Darwin_Ucred__Atomic
3517  */
3518 static const char* apzDarwin_Ucred__AtomicPatch[] = {
3519     "wrap",
3520     "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3521 # define _Atomic volatile\n\
3522 #endif\n",
3523     "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3524 # undef _Atomic\n\
3525 #endif\n",
3526     (char*)NULL };
3528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3530  *  Description of Dec_Intern_Asm fix
3531  */
3532 tSCC zDec_Intern_AsmName[] =
3533      "dec_intern_asm";
3536  *  File name selection pattern
3537  */
3538 tSCC zDec_Intern_AsmList[] =
3539   "c_asm.h\0";
3541  *  Machine/OS name selection pattern
3542  */
3543 #define apzDec_Intern_AsmMachs (const char**)NULL
3544 #define DEC_INTERN_ASM_TEST_CT  0
3545 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
3548  *  Fix Command Arguments for Dec_Intern_Asm
3549  */
3550 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
3551     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
3552 #ifdef __DECC\n",
3553     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
3554 #endif\n",
3555     (char*)NULL };
3557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3559  *  Description of Djgpp_Wchar_H fix
3560  */
3561 tSCC zDjgpp_Wchar_HName[] =
3562      "djgpp_wchar_h";
3565  *  File name selection pattern
3566  */
3567 #define zDjgpp_Wchar_HList (char*)NULL
3569  *  Machine/OS name selection pattern
3570  */
3571 #define apzDjgpp_Wchar_HMachs (const char**)NULL
3574  *  content selection pattern - do fix if pattern found
3575  */
3576 tSCC zDjgpp_Wchar_HSelect0[] =
3577        "__DJ_wint_t";
3580  *  content bypass pattern - skip fix if pattern found
3581  */
3582 tSCC zDjgpp_Wchar_HBypass0[] =
3583        "sys/djtypes.h";
3585 #define    DJGPP_WCHAR_H_TEST_CT  2
3586 static tTestDesc aDjgpp_Wchar_HTests[] = {
3587   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
3588   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
3591  *  Fix Command Arguments for Djgpp_Wchar_H
3592  */
3593 static const char* apzDjgpp_Wchar_HPatch[] = {
3594     "format",
3595     "%0\n\
3596 #include <sys/djtypes.h>",
3597     "#include <stddef.h>",
3598     (char*)NULL };
3600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3602  *  Description of Ecd_Cursor fix
3603  */
3604 tSCC zEcd_CursorName[] =
3605      "ecd_cursor";
3608  *  File name selection pattern
3609  */
3610 tSCC zEcd_CursorList[] =
3611   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
3613  *  Machine/OS name selection pattern
3614  */
3615 #define apzEcd_CursorMachs (const char**)NULL
3618  *  content selection pattern - do fix if pattern found
3619  */
3620 tSCC zEcd_CursorSelect0[] =
3621        "ecd\\.cursor";
3623 #define    ECD_CURSOR_TEST_CT  1
3624 static tTestDesc aEcd_CursorTests[] = {
3625   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
3628  *  Fix Command Arguments for Ecd_Cursor
3629  */
3630 static const char* apzEcd_CursorPatch[] = {
3631     "format",
3632     "ecd_cursor",
3633     (char*)NULL };
3635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3637  *  Description of Feraiseexcept_Nosse_Divbyzero fix
3638  */
3639 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
3640      "feraiseexcept_nosse_divbyzero";
3643  *  File name selection pattern
3644  */
3645 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
3646   "bits/fenv.h\0*/bits/fenv.h\0";
3648  *  Machine/OS name selection pattern
3649  */
3650 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
3651         "i[34567]86-*-linux*",
3652         "x86*-linux*",
3653         "amd64-*-linux*",
3654         (const char*)NULL };
3657  *  content selection pattern - do fix if pattern found
3658  */
3659 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
3660        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
3663  *  content bypass pattern - skip fix if pattern found
3664  */
3665 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
3666        "\"fdivp .*; fwait\"";
3668 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
3669 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
3670   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
3671   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
3674  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
3675  */
3676 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
3677     "format",
3678     "# ifdef __SSE_MATH__\n\
3679 %0\n\
3680 # else\n\
3681 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
3682 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
3683 # endif",
3684     (char*)NULL };
3686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3688  *  Description of Feraiseexcept_Nosse_Invalid fix
3689  */
3690 tSCC zFeraiseexcept_Nosse_InvalidName[] =
3691      "feraiseexcept_nosse_invalid";
3694  *  File name selection pattern
3695  */
3696 tSCC zFeraiseexcept_Nosse_InvalidList[] =
3697   "bits/fenv.h\0*/bits/fenv.h\0";
3699  *  Machine/OS name selection pattern
3700  */
3701 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
3702         "i[34567]86-*-linux*",
3703         "x86*-linux*",
3704         "amd64-*-linux*",
3705         (const char*)NULL };
3708  *  content selection pattern - do fix if pattern found
3709  */
3710 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
3711        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
3714  *  content bypass pattern - skip fix if pattern found
3715  */
3716 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
3717        "\"fdiv .*; fwait\"";
3719 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
3720 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
3721   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
3722   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
3725  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
3726  */
3727 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
3728     "format",
3729     "# ifdef __SSE_MATH__\n\
3730 %0\n\
3731 # else\n\
3732 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
3733 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
3734 # endif",
3735     (char*)NULL };
3737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3739  *  Description of Freebsd_Gcc3_Breakage fix
3740  */
3741 tSCC zFreebsd_Gcc3_BreakageName[] =
3742      "freebsd_gcc3_breakage";
3745  *  File name selection pattern
3746  */
3747 tSCC zFreebsd_Gcc3_BreakageList[] =
3748   "sys/cdefs.h\0";
3750  *  Machine/OS name selection pattern
3751  */
3752 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
3753         "*-*-freebsd*",
3754         (const char*)NULL };
3757  *  content selection pattern - do fix if pattern found
3758  */
3759 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
3760        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
3763  *  content bypass pattern - skip fix if pattern found
3764  */
3765 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
3766        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
3768 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
3769 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
3770   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
3771   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
3774  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
3775  */
3776 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
3777     "format",
3778     "%0 || __GNUC__ >= 3",
3779     (char*)NULL };
3781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3783  *  Description of Freebsd_Gcc4_Breakage fix
3784  */
3785 tSCC zFreebsd_Gcc4_BreakageName[] =
3786      "freebsd_gcc4_breakage";
3789  *  File name selection pattern
3790  */
3791 tSCC zFreebsd_Gcc4_BreakageList[] =
3792   "sys/cdefs.h\0";
3794  *  Machine/OS name selection pattern
3795  */
3796 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3797         "*-*-freebsd*",
3798         (const char*)NULL };
3801  *  content selection pattern - do fix if pattern found
3802  */
3803 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3804        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3806 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
3807 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3808   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3811  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
3812  */
3813 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3814     "format",
3815     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3816     (char*)NULL };
3818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3820  *  Description of Glibc_C99_Inline_1 fix
3821  */
3822 tSCC zGlibc_C99_Inline_1Name[] =
3823      "glibc_c99_inline_1";
3826  *  File name selection pattern
3827  */
3828 tSCC zGlibc_C99_Inline_1List[] =
3829   "features.h\0*/features.h\0";
3831  *  Machine/OS name selection pattern
3832  */
3833 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3836  *  content selection pattern - do fix if pattern found
3837  */
3838 tSCC zGlibc_C99_Inline_1Select0[] =
3839        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3841 #define    GLIBC_C99_INLINE_1_TEST_CT  1
3842 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3843   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3846  *  Fix Command Arguments for Glibc_C99_Inline_1
3847  */
3848 static const char* apzGlibc_C99_Inline_1Patch[] = {
3849     "format",
3850     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3851     (char*)NULL };
3853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3855  *  Description of Glibc_C99_Inline_1a fix
3856  */
3857 tSCC zGlibc_C99_Inline_1aName[] =
3858      "glibc_c99_inline_1a";
3861  *  File name selection pattern
3862  */
3863 tSCC zGlibc_C99_Inline_1aList[] =
3864   "features.h\0*/features.h\0";
3866  *  Machine/OS name selection pattern
3867  */
3868 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3871  *  content selection pattern - do fix if pattern found
3872  */
3873 tSCC zGlibc_C99_Inline_1aSelect0[] =
3874        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3875 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3877 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
3878 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3879   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3882  *  Fix Command Arguments for Glibc_C99_Inline_1a
3883  */
3884 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3885     "format",
3886     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3887 %2",
3888     (char*)NULL };
3890 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3892  *  Description of Glibc_C99_Inline_2 fix
3893  */
3894 tSCC zGlibc_C99_Inline_2Name[] =
3895      "glibc_c99_inline_2";
3898  *  File name selection pattern
3899  */
3900 tSCC zGlibc_C99_Inline_2List[] =
3901   "sys/stat.h\0*/sys/stat.h\0";
3903  *  Machine/OS name selection pattern
3904  */
3905 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3908  *  content selection pattern - do fix if pattern found
3909  */
3910 tSCC zGlibc_C99_Inline_2Select0[] =
3911        "extern __inline__ int";
3913 #define    GLIBC_C99_INLINE_2_TEST_CT  1
3914 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3915   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3918  *  Fix Command Arguments for Glibc_C99_Inline_2
3919  */
3920 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3921     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3922 extern\\\n\
3923 #endif\\\n\
3924 __inline__ int \\1/",
3925     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3926 extern\\\n\
3927 #endif\\\n\
3928 __inline__ int \\1/",
3929     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3930 extern\\\n\
3931 #endif\\\n\
3932 __inline__ int \\1/",
3933     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3934 extern\\\n\
3935 #endif\\\n\
3936 __inline__ int __REDIRECT\\1 (\\2/",
3937     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3938 extern\\\n\
3939 #endif\\\n\
3940 __inline__ int __REDIRECT\\1 (\\2/",
3941     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
3942 extern\\\n\
3943 #endif\\\n\
3944 __inline__ int/",
3945     (char*)NULL };
3947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3949  *  Description of Glibc_C99_Inline_3 fix
3950  */
3951 tSCC zGlibc_C99_Inline_3Name[] =
3952      "glibc_c99_inline_3";
3955  *  File name selection pattern
3956  */
3957 tSCC zGlibc_C99_Inline_3List[] =
3958   "bits/string2.h\0*/bits/string2.h\0";
3960  *  Machine/OS name selection pattern
3961  */
3962 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
3965  *  content selection pattern - do fix if pattern found
3966  */
3967 tSCC zGlibc_C99_Inline_3Select0[] =
3968        "extern __inline";
3971  *  content bypass pattern - skip fix if pattern found
3972  */
3973 tSCC zGlibc_C99_Inline_3Bypass0[] =
3974        "__extern_inline|__GNU_STDC_INLINE__";
3976 #define    GLIBC_C99_INLINE_3_TEST_CT  2
3977 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
3978   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3979   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
3982  *  Fix Command Arguments for Glibc_C99_Inline_3
3983  */
3984 static const char* apzGlibc_C99_Inline_3Patch[] = {
3985     "format",
3986     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3987     "^# ifdef __cplusplus$",
3988     (char*)NULL };
3990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3992  *  Description of Glibc_C99_Inline_4 fix
3993  */
3994 tSCC zGlibc_C99_Inline_4Name[] =
3995      "glibc_c99_inline_4";
3998  *  File name selection pattern
3999  */
4000 tSCC zGlibc_C99_Inline_4List[] =
4001   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
4003  *  Machine/OS name selection pattern
4004  */
4005 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
4008  *  content selection pattern - do fix if pattern found
4009  */
4010 tSCC zGlibc_C99_Inline_4Select0[] =
4011        "(^| )extern __inline";
4014  *  content bypass pattern - skip fix if pattern found
4015  */
4016 tSCC zGlibc_C99_Inline_4Bypass0[] =
4017        "__extern_inline|__gnu_inline__";
4019 #define    GLIBC_C99_INLINE_4_TEST_CT  2
4020 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
4021   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
4022   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
4025  *  Fix Command Arguments for Glibc_C99_Inline_4
4026  */
4027 static const char* apzGlibc_C99_Inline_4Patch[] = {
4028     "format",
4029     "%0 __attribute__ ((__gnu_inline__))",
4030     (char*)NULL };
4032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4034  *  Description of Glibc_Mutex_Init fix
4035  */
4036 tSCC zGlibc_Mutex_InitName[] =
4037      "glibc_mutex_init";
4040  *  File name selection pattern
4041  */
4042 tSCC zGlibc_Mutex_InitList[] =
4043   "pthread.h\0";
4045  *  Machine/OS name selection pattern
4046  */
4047 #define apzGlibc_Mutex_InitMachs (const char**)NULL
4050  *  content selection pattern - do fix if pattern found
4051  */
4052 tSCC zGlibc_Mutex_InitSelect0[] =
4053        "\\{ *\\{ *0, *\\} *\\}";
4055 #define    GLIBC_MUTEX_INIT_TEST_CT  1
4056 static tTestDesc aGlibc_Mutex_InitTests[] = {
4057   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
4060  *  Fix Command Arguments for Glibc_Mutex_Init
4061  */
4062 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
4063     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
4064 N\n\
4065 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
4067     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
4068     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
4069     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
4070     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
4071     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
4072     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
4073     "-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\
4074 #  \\1\\\n\
4075   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
4076 # else\\\n\
4077 #  \\1\\\n\
4078   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
4079 # endif/",
4080     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
4081     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
4082     (char*)NULL };
4084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4086  *  Description of Glibc_Stdint fix
4087  */
4088 tSCC zGlibc_StdintName[] =
4089      "glibc_stdint";
4092  *  File name selection pattern
4093  */
4094 tSCC zGlibc_StdintList[] =
4095   "stdint.h\0";
4097  *  Machine/OS name selection pattern
4098  */
4099 #define apzGlibc_StdintMachs (const char**)NULL
4102  *  content selection pattern - do fix if pattern found
4103  */
4104 tSCC zGlibc_StdintSelect0[] =
4105        "GNU C Library";
4107 #define    GLIBC_STDINT_TEST_CT  1
4108 static tTestDesc aGlibc_StdintTests[] = {
4109   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
4112  *  Fix Command Arguments for Glibc_Stdint
4113  */
4114 static const char* apzGlibc_StdintPatch[] = {
4115     "format",
4116     "# define UINT8_C(c)\tc\n\
4117 # define UINT16_C(c)\tc",
4118     "# define UINT8_C\\(c\\)\tc ## U\n\
4119 # define UINT16_C\\(c\\)\tc ## U",
4120     (char*)NULL };
4122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4124  *  Description of Glibc_Strncpy fix
4125  */
4126 tSCC zGlibc_StrncpyName[] =
4127      "glibc_strncpy";
4130  *  File name selection pattern
4131  */
4132 tSCC zGlibc_StrncpyList[] =
4133   "bits/string2.h\0*/bits/string2.h\0";
4135  *  Machine/OS name selection pattern
4136  */
4137 #define apzGlibc_StrncpyMachs (const char**)NULL
4140  *  content bypass pattern - skip fix if pattern found
4141  */
4142 tSCC zGlibc_StrncpyBypass0[] =
4143        "__builtin_strncpy";
4145 #define    GLIBC_STRNCPY_TEST_CT  1
4146 static tTestDesc aGlibc_StrncpyTests[] = {
4147   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
4150  *  Fix Command Arguments for Glibc_Strncpy
4151  */
4152 static const char* apzGlibc_StrncpyPatch[] = {
4153     "format",
4154     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
4155     "#  define strncpy([^\n\
4156 ]*\\\\\n\
4157 )*[^\n\
4158 ]*",
4159     (char*)NULL };
4161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4163  *  Description of Glibc_Tgmath fix
4164  */
4165 tSCC zGlibc_TgmathName[] =
4166      "glibc_tgmath";
4169  *  File name selection pattern
4170  */
4171 tSCC zGlibc_TgmathList[] =
4172   "tgmath.h\0";
4174  *  Machine/OS name selection pattern
4175  */
4176 #define apzGlibc_TgmathMachs (const char**)NULL
4179  *  content selection pattern - do fix if pattern found
4180  */
4181 tSCC zGlibc_TgmathSelect0[] =
4182        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
4185  *  content bypass pattern - skip fix if pattern found
4186  */
4187 tSCC zGlibc_TgmathBypass0[] =
4188        "__floating_type\\(type\\) \\\\\n\
4189 .*__builtin_classify_type";
4191 #define    GLIBC_TGMATH_TEST_CT  2
4192 static tTestDesc aGlibc_TgmathTests[] = {
4193   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
4194   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
4197  *  Fix Command Arguments for Glibc_Tgmath
4198  */
4199 static const char* apzGlibc_TgmathPatch[] = {
4200     "format",
4201     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
4202     (char*)NULL };
4204 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4206  *  Description of Gnu_Types fix
4207  */
4208 tSCC zGnu_TypesName[] =
4209      "gnu_types";
4212  *  File name selection pattern
4213  */
4214 tSCC zGnu_TypesList[] =
4215   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
4217  *  Machine/OS name selection pattern
4218  */
4219 tSCC* apzGnu_TypesMachs[] = {
4220         "*-*-solaris2.1[0-9]*",
4221         (const char*)NULL };
4224  *  content selection pattern - do fix if pattern found
4225  */
4226 tSCC zGnu_TypesSelect0[] =
4227        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
4230  *  content bypass pattern - skip fix if pattern found
4231  */
4232 tSCC zGnu_TypesBypass0[] =
4233        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
4235 #define    GNU_TYPES_TEST_CT  2
4236 static tTestDesc aGnu_TypesTests[] = {
4237   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
4238   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
4241  *  Fix Command Arguments for Gnu_Types
4242  */
4243 static const char* apzGnu_TypesPatch[] = {
4244     "gnu_type",
4245     (char*)NULL };
4247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4249  *  Description of Hp_Inline fix
4250  */
4251 tSCC zHp_InlineName[] =
4252      "hp_inline";
4255  *  File name selection pattern
4256  */
4257 tSCC zHp_InlineList[] =
4258   "sys/spinlock.h\0machine/machparam.h\0";
4260  *  Machine/OS name selection pattern
4261  */
4262 #define apzHp_InlineMachs (const char**)NULL
4265  *  content selection pattern - do fix if pattern found
4266  */
4267 tSCC zHp_InlineSelect0[] =
4268        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
4270 #define    HP_INLINE_TEST_CT  1
4271 static tTestDesc aHp_InlineTests[] = {
4272   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
4275  *  Fix Command Arguments for Hp_Inline
4276  */
4277 static const char* apzHp_InlinePatch[] = {
4278     "format",
4279     "%1<machine/%2.h>",
4280     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
4281     (char*)NULL };
4283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4285  *  Description of Hp_Sysfile fix
4286  */
4287 tSCC zHp_SysfileName[] =
4288      "hp_sysfile";
4291  *  File name selection pattern
4292  */
4293 tSCC zHp_SysfileList[] =
4294   "sys/file.h\0";
4296  *  Machine/OS name selection pattern
4297  */
4298 #define apzHp_SysfileMachs (const char**)NULL
4301  *  content selection pattern - do fix if pattern found
4302  */
4303 tSCC zHp_SysfileSelect0[] =
4304        "HPUX_SOURCE";
4306 #define    HP_SYSFILE_TEST_CT  1
4307 static tTestDesc aHp_SysfileTests[] = {
4308   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
4311  *  Fix Command Arguments for Hp_Sysfile
4312  */
4313 static const char* apzHp_SysfilePatch[] = {
4314     "format",
4315     "(struct file *, ...)",
4316     "\\(\\.\\.\\.\\)",
4317     (char*)NULL };
4319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4321  *  Description of Hppa_Hpux_Fp_Macros fix
4322  */
4323 tSCC zHppa_Hpux_Fp_MacrosName[] =
4324      "hppa_hpux_fp_macros";
4327  *  File name selection pattern
4328  */
4329 tSCC zHppa_Hpux_Fp_MacrosList[] =
4330   "math.h\0";
4332  *  Machine/OS name selection pattern
4333  */
4334 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
4335         "hppa*-hp-hpux11*",
4336         (const char*)NULL };
4339  *  content selection pattern - do fix if pattern found
4340  */
4341 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
4342        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
4343 #[ \t]*define[ \t]*FP_ZERO.*\n\
4344 #[ \t]*define[ \t]*FP_INFINITE.*\n\
4345 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
4346 #[ \t]*define[ \t]*FP_NAN.*\n";
4348 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
4349 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
4350   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
4353  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
4354  */
4355 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
4356     "format",
4357     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
4358 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
4359    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
4360 %0#endif\n\n\
4361 #ifdef _INCLUDE_HPUX_SOURCE\n",
4362     (char*)NULL };
4364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4366  *  Description of Hpux10_Cpp_Pow_Inline fix
4367  */
4368 tSCC zHpux10_Cpp_Pow_InlineName[] =
4369      "hpux10_cpp_pow_inline";
4372  *  File name selection pattern
4373  */
4374 tSCC zHpux10_Cpp_Pow_InlineList[] =
4375   "fixinc-test-limits.h\0math.h\0";
4377  *  Machine/OS name selection pattern
4378  */
4379 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
4382  *  content selection pattern - do fix if pattern found
4383  */
4384 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
4385        "^# +ifdef +__cplusplus\n\
4386  +\\}\n\
4387  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
4388 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
4389  +\\}\n\
4390  +extern +\"C\" +\\{\n\
4391 #else\n\
4392 # +endif";
4394 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
4395 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
4396   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4399  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
4400  */
4401 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
4402     "format",
4403     "",
4404     (char*)NULL };
4406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4408  *  Description of Hpux11_Cpp_Pow_Inline fix
4409  */
4410 tSCC zHpux11_Cpp_Pow_InlineName[] =
4411      "hpux11_cpp_pow_inline";
4414  *  File name selection pattern
4415  */
4416 tSCC zHpux11_Cpp_Pow_InlineList[] =
4417   "math.h\0";
4419  *  Machine/OS name selection pattern
4420  */
4421 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
4424  *  content selection pattern - do fix if pattern found
4425  */
4426 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
4427        " +inline double pow\\(double d,int expon\\) \\{\n\
4428  +return pow\\(d, \\(double\\)expon\\);\n\
4429  +\\}\n";
4431 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
4432 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
4433   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4436  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
4437  */
4438 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
4439     "format",
4440     "",
4441     (char*)NULL };
4443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4445  *  Description of Hpux10_Ctype_Declarations1 fix
4446  */
4447 tSCC zHpux10_Ctype_Declarations1Name[] =
4448      "hpux10_ctype_declarations1";
4451  *  File name selection pattern
4452  */
4453 tSCC zHpux10_Ctype_Declarations1List[] =
4454   "ctype.h\0";
4456  *  Machine/OS name selection pattern
4457  */
4458 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
4461  *  content selection pattern - do fix if pattern found
4462  */
4463 tSCC zHpux10_Ctype_Declarations1Select0[] =
4464        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
4467  *  content bypass pattern - skip fix if pattern found
4468  */
4469 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
4470        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
4472 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
4473 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
4474   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
4475   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
4478  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
4479  */
4480 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
4481     "format",
4482     "#ifdef _PROTOTYPES\n\
4483 extern int __tolower(int);\n\
4484 extern int __toupper(int);\n\
4485 #else /* NOT _PROTOTYPES */\n\
4486 extern int __tolower();\n\
4487 extern int __toupper();\n\
4488 #endif /* _PROTOTYPES */\n\n\
4489 %0\n",
4490     (char*)NULL };
4492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4494  *  Description of Hpux10_Ctype_Declarations2 fix
4495  */
4496 tSCC zHpux10_Ctype_Declarations2Name[] =
4497      "hpux10_ctype_declarations2";
4500  *  File name selection pattern
4501  */
4502 tSCC zHpux10_Ctype_Declarations2List[] =
4503   "ctype.h\0";
4505  *  Machine/OS name selection pattern
4506  */
4507 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
4510  *  content selection pattern - do fix if pattern found
4511  */
4512 tSCC zHpux10_Ctype_Declarations2Select0[] =
4513        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
4516  *  content bypass pattern - skip fix if pattern found
4517  */
4518 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
4519        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
4521 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
4522 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
4523   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
4524   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
4527  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
4528  */
4529 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
4530     "format",
4531     "%0\n\n\
4532 #ifdef _PROTOTYPES\n\
4533      extern int _isalnum(int);\n\
4534      extern int _isalpha(int);\n\
4535      extern int _iscntrl(int);\n\
4536      extern int _isdigit(int);\n\
4537      extern int _isgraph(int);\n\
4538      extern int _islower(int);\n\
4539      extern int _isprint(int);\n\
4540      extern int _ispunct(int);\n\
4541      extern int _isspace(int);\n\
4542      extern int _isupper(int);\n\
4543      extern int _isxdigit(int);\n\
4544 #  else /* not _PROTOTYPES */\n\
4545      extern int _isalnum();\n\
4546      extern int _isalpha();\n\
4547      extern int _iscntrl();\n\
4548      extern int _isdigit();\n\
4549      extern int _isgraph();\n\
4550      extern int _islower();\n\
4551      extern int _isprint();\n\
4552      extern int _ispunct();\n\
4553      extern int _isspace();\n\
4554      extern int _isupper();\n\
4555      extern int _isxdigit();\n\
4556 #endif /* _PROTOTYPES */\n",
4557     (char*)NULL };
4559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4561  *  Description of Hpux10_Stdio_Declarations fix
4562  */
4563 tSCC zHpux10_Stdio_DeclarationsName[] =
4564      "hpux10_stdio_declarations";
4567  *  File name selection pattern
4568  */
4569 tSCC zHpux10_Stdio_DeclarationsList[] =
4570   "stdio.h\0";
4572  *  Machine/OS name selection pattern
4573  */
4574 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
4577  *  content selection pattern - do fix if pattern found
4578  */
4579 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
4580        "^#[ \t]*define _iob[ \t]*__iob";
4583  *  content bypass pattern - skip fix if pattern found
4584  */
4585 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
4586        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
4588 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
4589 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
4590   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
4591   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
4594  *  Fix Command Arguments for Hpux10_Stdio_Declarations
4595  */
4596 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
4597     "format",
4598     "%0\n\n\
4599 #  if defined(__STDC__) || defined(__cplusplus)\n\
4600      extern int snprintf(char *, size_t, const char *, ...);\n\
4601      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
4602 #  else /* not __STDC__) || __cplusplus */\n\
4603      extern int snprintf();\n\
4604      extern int vsnprintf();\n\
4605 #  endif /* __STDC__) || __cplusplus */\n",
4606     (char*)NULL };
4608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4610  *  Description of Hppa_Hpux11_Alloca fix
4611  */
4612 tSCC zHppa_Hpux11_AllocaName[] =
4613      "hppa_hpux11_alloca";
4616  *  File name selection pattern
4617  */
4618 tSCC zHppa_Hpux11_AllocaList[] =
4619   "alloca.h\0";
4621  *  Machine/OS name selection pattern
4622  */
4623 tSCC* apzHppa_Hpux11_AllocaMachs[] = {
4624         "hppa*-*-hpux11*",
4625         (const char*)NULL };
4628  *  content selection pattern - do fix if pattern found
4629  */
4630 tSCC zHppa_Hpux11_AllocaSelect0[] =
4631        "#ifndef _STDDEF_INCLUDED";
4633 #define    HPPA_HPUX11_ALLOCA_TEST_CT  1
4634 static tTestDesc aHppa_Hpux11_AllocaTests[] = {
4635   { TT_EGREP,    zHppa_Hpux11_AllocaSelect0, (regex_t*)NULL }, };
4638  *  Fix Command Arguments for Hppa_Hpux11_Alloca
4639  */
4640 static const char* apzHppa_Hpux11_AllocaPatch[] = {
4641     "format",
4642     "#ifndef _SYS_STDSYMS_INCLUDED\n\
4643 #  include <sys/stdsyms.h>\n\
4644 #endif /* _SYS_STDSYMS_INCLUDED */\n\n\
4645 %0",
4646     (char*)NULL };
4648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4650  *  Description of Hpux11_Abs fix
4651  */
4652 tSCC zHpux11_AbsName[] =
4653      "hpux11_abs";
4656  *  File name selection pattern
4657  */
4658 tSCC zHpux11_AbsList[] =
4659   "stdlib.h\0";
4661  *  Machine/OS name selection pattern
4662  */
4663 tSCC* apzHpux11_AbsMachs[] = {
4664         "*-hp-hpux11*",
4665         (const char*)NULL };
4668  *  content selection pattern - do fix if pattern found
4669  */
4670 tSCC zHpux11_AbsSelect0[] =
4671        "ifndef _MATH_INCLUDED";
4673 #define    HPUX11_ABS_TEST_CT  1
4674 static tTestDesc aHpux11_AbsTests[] = {
4675   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
4678  *  Fix Command Arguments for Hpux11_Abs
4679  */
4680 static const char* apzHpux11_AbsPatch[] = {
4681     "format",
4682     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
4683     (char*)NULL };
4685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4687  *  Description of Hpux11_Lwp_Rwlock_Valid fix
4688  */
4689 tSCC zHpux11_Lwp_Rwlock_ValidName[] =
4690      "hpux11_lwp_rwlock_valid";
4693  *  File name selection pattern
4694  */
4695 tSCC zHpux11_Lwp_Rwlock_ValidList[] =
4696   "sys/pthread.h\0";
4698  *  Machine/OS name selection pattern
4699  */
4700 tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = {
4701         "*-hp-hpux11*",
4702         (const char*)NULL };
4705  *  content selection pattern - do fix if pattern found
4706  */
4707 tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] =
4708        "#define __LWP_RWLOCK_VALID[ \t]*0x8c91";
4710 #define    HPUX11_LWP_RWLOCK_VALID_TEST_CT  1
4711 static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = {
4712   { TT_EGREP,    zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, };
4715  *  Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid
4716  */
4717 static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = {
4718     "format",
4719     "#define __LWP_RWLOCK_VALID              -29551",
4720     (char*)NULL };
4722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4724  *  Description of Hpux11_Extern_Sendfile fix
4725  */
4726 tSCC zHpux11_Extern_SendfileName[] =
4727      "hpux11_extern_sendfile";
4730  *  File name selection pattern
4731  */
4732 tSCC zHpux11_Extern_SendfileList[] =
4733   "sys/socket.h\0";
4735  *  Machine/OS name selection pattern
4736  */
4737 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4738         "*-hp-hpux11.[12]*",
4739         (const char*)NULL };
4742  *  content selection pattern - do fix if pattern found
4743  */
4744 tSCC zHpux11_Extern_SendfileSelect0[] =
4745        "^[ \t]*extern sbsize_t sendfile.*\n\
4746 .*, int\\)\\);\n";
4748 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
4749 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4750   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4753  *  Fix Command Arguments for Hpux11_Extern_Sendfile
4754  */
4755 static const char* apzHpux11_Extern_SendfilePatch[] = {
4756     "format",
4757     "#ifndef _APP32_64BIT_OFF_T\n\
4758 %0#endif\n",
4759     (char*)NULL };
4761 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4763  *  Description of Hpux11_Extern_Sendpath fix
4764  */
4765 tSCC zHpux11_Extern_SendpathName[] =
4766      "hpux11_extern_sendpath";
4769  *  File name selection pattern
4770  */
4771 tSCC zHpux11_Extern_SendpathList[] =
4772   "sys/socket.h\0";
4774  *  Machine/OS name selection pattern
4775  */
4776 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4777         "*-hp-hpux11.[12]*",
4778         (const char*)NULL };
4781  *  content selection pattern - do fix if pattern found
4782  */
4783 tSCC zHpux11_Extern_SendpathSelect0[] =
4784        "^[ \t]*extern sbsize_t sendpath.*\n\
4785 .*, int\\)\\);\n";
4787 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
4788 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4789   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4792  *  Fix Command Arguments for Hpux11_Extern_Sendpath
4793  */
4794 static const char* apzHpux11_Extern_SendpathPatch[] = {
4795     "format",
4796     "#ifndef _APP32_64BIT_OFF_T\n\
4797 %0#endif\n",
4798     (char*)NULL };
4800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4802  *  Description of Hpux11_Fabsf fix
4803  */
4804 tSCC zHpux11_FabsfName[] =
4805      "hpux11_fabsf";
4808  *  File name selection pattern
4809  */
4810 tSCC zHpux11_FabsfList[] =
4811   "math.h\0";
4813  *  Machine/OS name selection pattern
4814  */
4815 tSCC* apzHpux11_FabsfMachs[] = {
4816         "*-hp-hpux11*",
4817         (const char*)NULL };
4820  *  content selection pattern - do fix if pattern found
4821  */
4822 tSCC zHpux11_FabsfSelect0[] =
4823        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
4825 #define    HPUX11_FABSF_TEST_CT  1
4826 static tTestDesc aHpux11_FabsfTests[] = {
4827   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
4830  *  Fix Command Arguments for Hpux11_Fabsf
4831  */
4832 static const char* apzHpux11_FabsfPatch[] = {
4833     "format",
4834     "#ifndef __cplusplus\n\
4835 %0\n\
4836 #endif",
4837     (char*)NULL };
4839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4841  *  Description of Hpux11_Pthread_Pointer fix
4842  */
4843 tSCC zHpux11_Pthread_PointerName[] =
4844      "hpux11_pthread_pointer";
4847  *  File name selection pattern
4848  */
4849 tSCC zHpux11_Pthread_PointerList[] =
4850   "sys/pthread.h\0";
4852  *  Machine/OS name selection pattern
4853  */
4854 tSCC* apzHpux11_Pthread_PointerMachs[] = {
4855         "*-hp-hpux11.[0-3]*",
4856         (const char*)NULL };
4859  *  content selection pattern - do fix if pattern found
4860  */
4861 tSCC zHpux11_Pthread_PointerSelect0[] =
4862        "(void[ \t]*\\*)(m|c|rw)(_ptr)";
4864 #define    HPUX11_PTHREAD_POINTER_TEST_CT  1
4865 static tTestDesc aHpux11_Pthread_PointerTests[] = {
4866   { TT_EGREP,    zHpux11_Pthread_PointerSelect0, (regex_t*)NULL }, };
4869  *  Fix Command Arguments for Hpux11_Pthread_Pointer
4870  */
4871 static const char* apzHpux11_Pthread_PointerPatch[] = {
4872     "format",
4873     "long\t%2%3",
4874     (char*)NULL };
4876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4878  *  Description of Hpux11_Pthread_Const fix
4879  */
4880 tSCC zHpux11_Pthread_ConstName[] =
4881      "hpux11_pthread_const";
4884  *  File name selection pattern
4885  */
4886 tSCC zHpux11_Pthread_ConstList[] =
4887   "sys/pthread.h\0";
4889  *  Machine/OS name selection pattern
4890  */
4891 tSCC* apzHpux11_Pthread_ConstMachs[] = {
4892         "*-hp-hpux11.[0-3]*",
4893         (const char*)NULL };
4896  *  content selection pattern - do fix if pattern found
4897  */
4898 tSCC zHpux11_Pthread_ConstSelect0[] =
4899        "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))";
4901 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
4902 static tTestDesc aHpux11_Pthread_ConstTests[] = {
4903   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4906  *  Fix Command Arguments for Hpux11_Pthread_Const
4907  */
4908 static const char* apzHpux11_Pthread_ConstPatch[] = {
4909     "format",
4910     "%11",
4911     (char*)NULL };
4913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4915  *  Description of Hpux11_Size_T fix
4916  */
4917 tSCC zHpux11_Size_TName[] =
4918      "hpux11_size_t";
4921  *  File name selection pattern
4922  */
4923 #define zHpux11_Size_TList (char*)NULL
4925  *  Machine/OS name selection pattern
4926  */
4927 tSCC* apzHpux11_Size_TMachs[] = {
4928         "*-hp-hpux11*",
4929         (const char*)NULL };
4932  *  content selection pattern - do fix if pattern found
4933  */
4934 tSCC zHpux11_Size_TSelect0[] =
4935        "__size_t";
4937 #define    HPUX11_SIZE_T_TEST_CT  1
4938 static tTestDesc aHpux11_Size_TTests[] = {
4939   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
4942  *  Fix Command Arguments for Hpux11_Size_T
4943  */
4944 static const char* apzHpux11_Size_TPatch[] = {
4945     "format",
4946     "_hpux_size_t",
4947     (char*)NULL };
4949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4951  *  Description of Hpux11_Snprintf fix
4952  */
4953 tSCC zHpux11_SnprintfName[] =
4954      "hpux11_snprintf";
4957  *  File name selection pattern
4958  */
4959 tSCC zHpux11_SnprintfList[] =
4960   "stdio.h\0";
4962  *  Machine/OS name selection pattern
4963  */
4964 #define apzHpux11_SnprintfMachs (const char**)NULL
4967  *  content selection pattern - do fix if pattern found
4968  */
4969 tSCC zHpux11_SnprintfSelect0[] =
4970        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
4972 #define    HPUX11_SNPRINTF_TEST_CT  1
4973 static tTestDesc aHpux11_SnprintfTests[] = {
4974   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
4977  *  Fix Command Arguments for Hpux11_Snprintf
4978  */
4979 static const char* apzHpux11_SnprintfPatch[] = {
4980     "format",
4981     "%1 const %3",
4982     (char*)NULL };
4984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4986  *  Description of Hpux11_Vsnprintf fix
4987  */
4988 tSCC zHpux11_VsnprintfName[] =
4989      "hpux11_vsnprintf";
4992  *  File name selection pattern
4993  */
4994 tSCC zHpux11_VsnprintfList[] =
4995   "stdio.h\0";
4997  *  Machine/OS name selection pattern
4998  */
4999 #define apzHpux11_VsnprintfMachs (const char**)NULL
5002  *  content selection pattern - do fix if pattern found
5003  */
5004 tSCC zHpux11_VsnprintfSelect0[] =
5005        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
5007 #define    HPUX11_VSNPRINTF_TEST_CT  1
5008 static tTestDesc aHpux11_VsnprintfTests[] = {
5009   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
5012  *  Fix Command Arguments for Hpux11_Vsnprintf
5013  */
5014 static const char* apzHpux11_VsnprintfPatch[] = {
5015     "format",
5016     "%1 __va_list);",
5017     (char*)NULL };
5019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5021  *  Description of Hpux_Vsscanf fix
5022  */
5023 tSCC zHpux_VsscanfName[] =
5024      "hpux_vsscanf";
5027  *  File name selection pattern
5028  */
5029 tSCC zHpux_VsscanfList[] =
5030   "stdio.h\0";
5032  *  Machine/OS name selection pattern
5033  */
5034 tSCC* apzHpux_VsscanfMachs[] = {
5035         "*-*-hpux*",
5036         (const char*)NULL };
5039  *  content selection pattern - do fix if pattern found
5040  */
5041 tSCC zHpux_VsscanfSelect0[] =
5042        "(extern int vsscanf\\()char";
5044 #define    HPUX_VSSCANF_TEST_CT  1
5045 static tTestDesc aHpux_VsscanfTests[] = {
5046   { TT_EGREP,    zHpux_VsscanfSelect0, (regex_t*)NULL }, };
5049  *  Fix Command Arguments for Hpux_Vsscanf
5050  */
5051 static const char* apzHpux_VsscanfPatch[] = {
5052     "format",
5053     "%1const char",
5054     (char*)NULL };
5056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5058  *  Description of Hpux8_Bogus_Inlines fix
5059  */
5060 tSCC zHpux8_Bogus_InlinesName[] =
5061      "hpux8_bogus_inlines";
5064  *  File name selection pattern
5065  */
5066 tSCC zHpux8_Bogus_InlinesList[] =
5067   "math.h\0";
5069  *  Machine/OS name selection pattern
5070  */
5071 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
5074  *  content selection pattern - do fix if pattern found
5075  */
5076 tSCC zHpux8_Bogus_InlinesSelect0[] =
5077        "inline";
5080  *  content bypass pattern - skip fix if pattern found
5081  */
5082 tSCC zHpux8_Bogus_InlinesBypass0[] =
5083        "__GNUG__";
5085 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
5086 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
5087   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
5088   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
5091  *  Fix Command Arguments for Hpux8_Bogus_Inlines
5092  */
5093 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
5094     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
5095     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
5096     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
5097     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
5098     (char*)NULL };
5100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5102  *  Description of Hpux_C99_Intptr fix
5103  */
5104 tSCC zHpux_C99_IntptrName[] =
5105      "hpux_c99_intptr";
5108  *  File name selection pattern
5109  */
5110 tSCC zHpux_C99_IntptrList[] =
5111   "stdint-hpux11.h\0stdint.h\0";
5113  *  Machine/OS name selection pattern
5114  */
5115 tSCC* apzHpux_C99_IntptrMachs[] = {
5116         "*-hp-hpux11.3*",
5117         (const char*)NULL };
5118 #define HPUX_C99_INTPTR_TEST_CT  0
5119 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
5122  *  Fix Command Arguments for Hpux_C99_Intptr
5123  */
5124 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
5125     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
5126     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5127     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
5128     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
5129     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
5130     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
5131     (char*)NULL };
5133 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5135  *  Description of Hpux_C99_Inttypes fix
5136  */
5137 tSCC zHpux_C99_InttypesName[] =
5138      "hpux_c99_inttypes";
5141  *  File name selection pattern
5142  */
5143 tSCC zHpux_C99_InttypesList[] =
5144   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
5146  *  Machine/OS name selection pattern
5147  */
5148 tSCC* apzHpux_C99_InttypesMachs[] = {
5149         "*-hp-hpux11.[23]*",
5150         (const char*)NULL };
5151 #define HPUX_C99_INTTYPES_TEST_CT  0
5152 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
5155  *  Fix Command Arguments for Hpux_C99_Inttypes
5156  */
5157 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
5158     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
5159     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
5160     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
5161     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
5162     (char*)NULL };
5164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5166  *  Description of Hpux_C99_Inttypes2 fix
5167  */
5168 tSCC zHpux_C99_Inttypes2Name[] =
5169      "hpux_c99_inttypes2";
5172  *  File name selection pattern
5173  */
5174 tSCC zHpux_C99_Inttypes2List[] =
5175   "stdint-hpux11.h\0stdint.h\0";
5177  *  Machine/OS name selection pattern
5178  */
5179 tSCC* apzHpux_C99_Inttypes2Machs[] = {
5180         "*-hp-hpux11.2*",
5181         (const char*)NULL };
5182 #define HPUX_C99_INTTYPES2_TEST_CT  0
5183 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
5186  *  Fix Command Arguments for Hpux_C99_Inttypes2
5187  */
5188 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
5189     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
5190     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
5191     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
5192     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
5193     (char*)NULL };
5195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5197  *  Description of Hpux_C99_Inttypes3 fix
5198  */
5199 tSCC zHpux_C99_Inttypes3Name[] =
5200      "hpux_c99_inttypes3";
5203  *  File name selection pattern
5204  */
5205 tSCC zHpux_C99_Inttypes3List[] =
5206   "inttypes.h\0";
5208  *  Machine/OS name selection pattern
5209  */
5210 tSCC* apzHpux_C99_Inttypes3Machs[] = {
5211         "hppa*-hp-hpux11*",
5212         (const char*)NULL };
5215  *  content selection pattern - do fix if pattern found
5216  */
5217 tSCC zHpux_C99_Inttypes3Select0[] =
5218        "#define[ \t]INTPTR_MAX[ \t]*\n\
5219 #define[ \t]UINTPTR_MAX[ \t]*\n";
5221 #define    HPUX_C99_INTTYPES3_TEST_CT  1
5222 static tTestDesc aHpux_C99_Inttypes3Tests[] = {
5223   { TT_EGREP,    zHpux_C99_Inttypes3Select0, (regex_t*)NULL }, };
5226  *  Fix Command Arguments for Hpux_C99_Inttypes3
5227  */
5228 static const char* apzHpux_C99_Inttypes3Patch[] = {
5229     "format",
5230     "#undef SIZE_MAX\n\
5231 #define SIZE_MAX __SIZE_MAX__\n\
5232 #ifdef __INTPTR_MAX__\n\
5233 # undef INTPTR_MAX\n\
5234 # define INTPTR_MAX __INTPTR_MAX__\n\
5235 # undef INTPTR_MIN\n\
5236 # define INTPTR_MIN (-INTPTR_MAX - 1)\n\
5237 #endif\n\
5238 #ifdef __UINTPTR_MAX__\n\
5239 # undef UINTPTR_MAX\n\
5240 # define UINTPTR_MAX __UINTPTR_MAX__\n\
5241 #endif\n",
5242     (char*)NULL };
5244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5246  *  Description of Hpux_C99_Inttypes4 fix
5247  */
5248 tSCC zHpux_C99_Inttypes4Name[] =
5249      "hpux_c99_inttypes4";
5252  *  File name selection pattern
5253  */
5254 tSCC zHpux_C99_Inttypes4List[] =
5255   "inttypes.h\0";
5257  *  Machine/OS name selection pattern
5258  */
5259 tSCC* apzHpux_C99_Inttypes4Machs[] = {
5260         "hppa*-hp-hpux11.[01]*",
5261         (const char*)NULL };
5262 #define HPUX_C99_INTTYPES4_TEST_CT  0
5263 #define aHpux_C99_Inttypes4Tests   (tTestDesc*)NULL
5266  *  Fix Command Arguments for Hpux_C99_Inttypes4
5267  */
5268 static const char* apzHpux_C99_Inttypes4Patch[] = { sed_cmd_z,
5269     "-e", "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx64/a\\\n\
5270 #define SCNuMAX \t SCNu64\n",
5271     "-e", "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx32/a\\\n\
5272 #define SCNuMAX \t SCNu32\n",
5273     (char*)NULL };
5275 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5277  *  Description of Hpux_Ctype_Macros fix
5278  */
5279 tSCC zHpux_Ctype_MacrosName[] =
5280      "hpux_ctype_macros";
5283  *  File name selection pattern
5284  */
5285 tSCC zHpux_Ctype_MacrosList[] =
5286   "ctype.h\0";
5288  *  Machine/OS name selection pattern
5289  */
5290 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
5293  *  content selection pattern - do fix if pattern found
5294  */
5295 tSCC zHpux_Ctype_MacrosSelect0[] =
5296        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
5298 #define    HPUX_CTYPE_MACROS_TEST_CT  1
5299 static tTestDesc aHpux_Ctype_MacrosTests[] = {
5300   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
5303  *  Fix Command Arguments for Hpux_Ctype_Macros
5304  */
5305 static const char* apzHpux_Ctype_MacrosPatch[] = {
5306     "format",
5307     "%1(int)%3",
5308     (char*)NULL };
5310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5312  *  Description of Hpux_Extern_Errno fix
5313  */
5314 tSCC zHpux_Extern_ErrnoName[] =
5315      "hpux_extern_errno";
5318  *  File name selection pattern
5319  */
5320 tSCC zHpux_Extern_ErrnoList[] =
5321   "errno.h\0";
5323  *  Machine/OS name selection pattern
5324  */
5325 tSCC* apzHpux_Extern_ErrnoMachs[] = {
5326         "*-hp-hpux10.*",
5327         "*-hp-hpux11.[0-2]*",
5328         (const char*)NULL };
5331  *  content selection pattern - do fix if pattern found
5332  */
5333 tSCC zHpux_Extern_ErrnoSelect0[] =
5334        "^[ \t]*extern int errno;$";
5336 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
5337 static tTestDesc aHpux_Extern_ErrnoTests[] = {
5338   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
5341  *  Fix Command Arguments for Hpux_Extern_Errno
5342  */
5343 static const char* apzHpux_Extern_ErrnoPatch[] = {
5344     "format",
5345     "#ifdef __cplusplus\n\
5346 extern \"C\" {\n\
5347 #endif\n\
5348 %0\n\
5349 #ifdef __cplusplus\n\
5350 }\n\
5351 #endif",
5352     (char*)NULL };
5354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5356  *  Description of Hpux_Htonl fix
5357  */
5358 tSCC zHpux_HtonlName[] =
5359      "hpux_htonl";
5362  *  File name selection pattern
5363  */
5364 tSCC zHpux_HtonlList[] =
5365   "netinet/in.h\0";
5367  *  Machine/OS name selection pattern
5368  */
5369 #define apzHpux_HtonlMachs (const char**)NULL
5372  *  content selection pattern - do fix if pattern found
5373  */
5374 tSCC zHpux_HtonlSelect0[] =
5375        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
5376 (/\\*\n\
5377  \\* Macros for number representation conversion\\.\n\
5378  \\*/\n\
5379 #ifndef ntohl)";
5381 #define    HPUX_HTONL_TEST_CT  1
5382 static tTestDesc aHpux_HtonlTests[] = {
5383   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
5386  *  Fix Command Arguments for Hpux_Htonl
5387  */
5388 static const char* apzHpux_HtonlPatch[] = {
5389     "format",
5390     "#if 1\n\
5391 %1",
5392     (char*)NULL };
5394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5396  *  Description of Hpux_Imaginary_I fix
5397  */
5398 tSCC zHpux_Imaginary_IName[] =
5399      "hpux_imaginary_i";
5402  *  File name selection pattern
5403  */
5404 tSCC zHpux_Imaginary_IList[] =
5405   "complex.h\0";
5407  *  Machine/OS name selection pattern
5408  */
5409 tSCC* apzHpux_Imaginary_IMachs[] = {
5410         "ia64-hp-hpux11.*",
5411         (const char*)NULL };
5414  *  content selection pattern - do fix if pattern found
5415  */
5416 tSCC zHpux_Imaginary_ISelect0[] =
5417        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
5419 #define    HPUX_IMAGINARY_I_TEST_CT  1
5420 static tTestDesc aHpux_Imaginary_ITests[] = {
5421   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
5424  *  Fix Command Arguments for Hpux_Imaginary_I
5425  */
5426 static const char* apzHpux_Imaginary_IPatch[] = {
5427     "format",
5428     "#define _Complex_I (__extension__ 1.0iF)",
5429     (char*)NULL };
5431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5433  *  Description of Hpux_Inttype_Int8_T fix
5434  */
5435 tSCC zHpux_Inttype_Int8_TName[] =
5436      "hpux_inttype_int8_t";
5439  *  File name selection pattern
5440  */
5441 tSCC zHpux_Inttype_Int8_TList[] =
5442   "sys/_inttypes.h\0";
5444  *  Machine/OS name selection pattern
5445  */
5446 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
5447         "*-hp-hpux1[01].*",
5448         (const char*)NULL };
5451  *  content selection pattern - do fix if pattern found
5452  */
5453 tSCC zHpux_Inttype_Int8_TSelect0[] =
5454        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
5456 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
5457 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
5458   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
5461  *  Fix Command Arguments for Hpux_Inttype_Int8_T
5462  */
5463 static const char* apzHpux_Inttype_Int8_TPatch[] = {
5464     "format",
5465     "typedef signed char int%18_t;",
5466     (char*)NULL };
5468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5470  *  Description of Hpux_Long_Double fix
5471  */
5472 tSCC zHpux_Long_DoubleName[] =
5473      "hpux_long_double";
5476  *  File name selection pattern
5477  */
5478 tSCC zHpux_Long_DoubleList[] =
5479   "stdlib.h\0";
5481  *  Machine/OS name selection pattern
5482  */
5483 tSCC* apzHpux_Long_DoubleMachs[] = {
5484         "*-*-hpux10*",
5485         "*-*-hpux11.[012]*",
5486         (const char*)NULL };
5489  *  content selection pattern - do fix if pattern found
5490  */
5491 tSCC zHpux_Long_DoubleSelect0[] =
5492        "extern[ \t]long_double[ \t]strtold";
5495  *  content bypass pattern - skip fix if pattern found
5496  */
5497 tSCC zHpux_Long_DoubleBypass0[] =
5498        "long_double_t";
5500 #define    HPUX_LONG_DOUBLE_TEST_CT  2
5501 static tTestDesc aHpux_Long_DoubleTests[] = {
5502   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
5503   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
5506  *  Fix Command Arguments for Hpux_Long_Double
5507  */
5508 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
5509     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
5510     "-e", "s/long_double/long double/g",
5511     (char*)NULL };
5513 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5515  *  Description of Hpux_Long_Double_2 fix
5516  */
5517 tSCC zHpux_Long_Double_2Name[] =
5518      "hpux_long_double_2";
5521  *  File name selection pattern
5522  */
5523 tSCC zHpux_Long_Double_2List[] =
5524   "stdlib.h\0";
5526  *  Machine/OS name selection pattern
5527  */
5528 tSCC* apzHpux_Long_Double_2Machs[] = {
5529         "hppa*-*-hpux11.3*",
5530         (const char*)NULL };
5533  *  content selection pattern - do fix if pattern found
5534  */
5535 tSCC zHpux_Long_Double_2Select0[] =
5536        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
5538 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
5539 static tTestDesc aHpux_Long_Double_2Tests[] = {
5540   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
5543  *  Fix Command Arguments for Hpux_Long_Double_2
5544  */
5545 static const char* apzHpux_Long_Double_2Patch[] = {
5546     "format",
5547     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
5548     (char*)NULL };
5550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5552  *  Description of Hpux_Pthread_Initializers fix
5553  */
5554 tSCC zHpux_Pthread_InitializersName[] =
5555      "hpux_pthread_initializers";
5558  *  File name selection pattern
5559  */
5560 tSCC zHpux_Pthread_InitializersList[] =
5561   "sys/pthread.h\0";
5563  *  Machine/OS name selection pattern
5564  */
5565 tSCC* apzHpux_Pthread_InitializersMachs[] = {
5566         "*-hp-hpux11.[0-3]*",
5567         (const char*)NULL };
5568 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
5569 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
5572  *  Fix Command Arguments for Hpux_Pthread_Initializers
5573  */
5574 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
5575     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
5576     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
5577     "-e", "/^[ \t]*0$/d",
5578     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
5579     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
5580     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
5581     "-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\\\\@",
5582     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
5583     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
5584     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
5585     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
5586     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
5587     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
5588     (char*)NULL };
5590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5592  *  Description of Hpux_Spu_Info fix
5593  */
5594 tSCC zHpux_Spu_InfoName[] =
5595      "hpux_spu_info";
5598  *  File name selection pattern
5599  */
5600 tSCC zHpux_Spu_InfoList[] =
5601   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
5603  *  Machine/OS name selection pattern
5604  */
5605 tSCC* apzHpux_Spu_InfoMachs[] = {
5606         "*-hp-hpux*",
5607         (const char*)NULL };
5610  *  content selection pattern - do fix if pattern found
5611  */
5612 tSCC zHpux_Spu_InfoSelect0[] =
5613        "^.*extern.*spu_info.*";
5615 #define    HPUX_SPU_INFO_TEST_CT  1
5616 static tTestDesc aHpux_Spu_InfoTests[] = {
5617   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
5620  *  Fix Command Arguments for Hpux_Spu_Info
5621  */
5622 static const char* apzHpux_Spu_InfoPatch[] = {
5623     "format",
5624     "#ifdef _KERNEL\n\
5625 %0\n\
5626 #endif",
5627     (char*)NULL };
5629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5631  *  Description of Hpux_Stdint_Least_Fast fix
5632  */
5633 tSCC zHpux_Stdint_Least_FastName[] =
5634      "hpux_stdint_least_fast";
5637  *  File name selection pattern
5638  */
5639 tSCC zHpux_Stdint_Least_FastList[] =
5640   "stdint-hpux11.h\0stdint.h\0";
5642  *  Machine/OS name selection pattern
5643  */
5644 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
5645         "*-hp-hpux11.2*",
5646         (const char*)NULL };
5649  *  content selection pattern - do fix if pattern found
5650  */
5651 tSCC zHpux_Stdint_Least_FastSelect0[] =
5652        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
5654 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
5655 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
5656   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
5659  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
5660  */
5661 static const char* apzHpux_Stdint_Least_FastPatch[] = {
5662     "format",
5663     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
5664     (char*)NULL };
5666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5668  *  Description of Hpux_Longjmp fix
5669  */
5670 tSCC zHpux_LongjmpName[] =
5671      "hpux_longjmp";
5674  *  File name selection pattern
5675  */
5676 tSCC zHpux_LongjmpList[] =
5677   "setjmp.h\0";
5679  *  Machine/OS name selection pattern
5680  */
5681 tSCC* apzHpux_LongjmpMachs[] = {
5682         "*-hp-hpux*",
5683         (const char*)NULL };
5686  *  content selection pattern - do fix if pattern found
5687  */
5688 tSCC zHpux_LongjmpSelect0[] =
5689        "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))";
5691 #define    HPUX_LONGJMP_TEST_CT  1
5692 static tTestDesc aHpux_LongjmpTests[] = {
5693   { TT_EGREP,    zHpux_LongjmpSelect0, (regex_t*)NULL }, };
5696  *  Fix Command Arguments for Hpux_Longjmp
5697  */
5698 static const char* apzHpux_LongjmpPatch[] = {
5699     "format",
5700     "%0 __attribute__ ((__noreturn__))",
5701     (char*)NULL };
5703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5705  *  Description of Hpux_Systime fix
5706  */
5707 tSCC zHpux_SystimeName[] =
5708      "hpux_systime";
5711  *  File name selection pattern
5712  */
5713 tSCC zHpux_SystimeList[] =
5714   "sys/time.h\0";
5716  *  Machine/OS name selection pattern
5717  */
5718 #define apzHpux_SystimeMachs (const char**)NULL
5721  *  content selection pattern - do fix if pattern found
5722  */
5723 tSCC zHpux_SystimeSelect0[] =
5724        "^extern struct sigevent;";
5726 #define    HPUX_SYSTIME_TEST_CT  1
5727 static tTestDesc aHpux_SystimeTests[] = {
5728   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
5731  *  Fix Command Arguments for Hpux_Systime
5732  */
5733 static const char* apzHpux_SystimePatch[] = {
5734     "format",
5735     "struct sigevent;",
5736     (char*)NULL };
5738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5740  *  Description of Huge_Val_Hex fix
5741  */
5742 tSCC zHuge_Val_HexName[] =
5743      "huge_val_hex";
5746  *  File name selection pattern
5747  */
5748 tSCC zHuge_Val_HexList[] =
5749   "bits/huge_val.h\0*/bits/huge_val.h\0";
5751  *  Machine/OS name selection pattern
5752  */
5753 #define apzHuge_Val_HexMachs (const char**)NULL
5756  *  content selection pattern - do fix if pattern found
5757  */
5758 tSCC zHuge_Val_HexSelect0[] =
5759        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
5762  *  content bypass pattern - skip fix if pattern found
5763  */
5764 tSCC zHuge_Val_HexBypass0[] =
5765        "__builtin_huge_val";
5767 #define    HUGE_VAL_HEX_TEST_CT  2
5768 static tTestDesc aHuge_Val_HexTests[] = {
5769   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
5770   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
5773  *  Fix Command Arguments for Huge_Val_Hex
5774  */
5775 static const char* apzHuge_Val_HexPatch[] = {
5776     "format",
5777     "#define HUGE_VAL (__builtin_huge_val())\n",
5778     (char*)NULL };
5780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5782  *  Description of Huge_Valf_Hex fix
5783  */
5784 tSCC zHuge_Valf_HexName[] =
5785      "huge_valf_hex";
5788  *  File name selection pattern
5789  */
5790 tSCC zHuge_Valf_HexList[] =
5791   "bits/huge_val.h\0*/bits/huge_val.h\0";
5793  *  Machine/OS name selection pattern
5794  */
5795 #define apzHuge_Valf_HexMachs (const char**)NULL
5798  *  content selection pattern - do fix if pattern found
5799  */
5800 tSCC zHuge_Valf_HexSelect0[] =
5801        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
5804  *  content bypass pattern - skip fix if pattern found
5805  */
5806 tSCC zHuge_Valf_HexBypass0[] =
5807        "__builtin_huge_valf";
5809 #define    HUGE_VALF_HEX_TEST_CT  2
5810 static tTestDesc aHuge_Valf_HexTests[] = {
5811   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
5812   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
5815  *  Fix Command Arguments for Huge_Valf_Hex
5816  */
5817 static const char* apzHuge_Valf_HexPatch[] = {
5818     "format",
5819     "#define HUGE_VALF (__builtin_huge_valf())\n",
5820     (char*)NULL };
5822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5824  *  Description of Huge_Vall_Hex fix
5825  */
5826 tSCC zHuge_Vall_HexName[] =
5827      "huge_vall_hex";
5830  *  File name selection pattern
5831  */
5832 tSCC zHuge_Vall_HexList[] =
5833   "bits/huge_val.h\0*/bits/huge_val.h\0";
5835  *  Machine/OS name selection pattern
5836  */
5837 #define apzHuge_Vall_HexMachs (const char**)NULL
5840  *  content selection pattern - do fix if pattern found
5841  */
5842 tSCC zHuge_Vall_HexSelect0[] =
5843        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
5846  *  content bypass pattern - skip fix if pattern found
5847  */
5848 tSCC zHuge_Vall_HexBypass0[] =
5849        "__builtin_huge_vall";
5851 #define    HUGE_VALL_HEX_TEST_CT  2
5852 static tTestDesc aHuge_Vall_HexTests[] = {
5853   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
5854   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
5857  *  Fix Command Arguments for Huge_Vall_Hex
5858  */
5859 static const char* apzHuge_Vall_HexPatch[] = {
5860     "format",
5861     "#define HUGE_VALL (__builtin_huge_vall())\n",
5862     (char*)NULL };
5864 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5866  *  Description of Int_Abort_Free_And_Exit fix
5867  */
5868 tSCC zInt_Abort_Free_And_ExitName[] =
5869      "int_abort_free_and_exit";
5872  *  File name selection pattern
5873  */
5874 tSCC zInt_Abort_Free_And_ExitList[] =
5875   "stdlib.h\0";
5877  *  Machine/OS name selection pattern
5878  */
5879 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
5882  *  content selection pattern - do fix if pattern found
5883  */
5884 tSCC zInt_Abort_Free_And_ExitSelect0[] =
5885        "int[ \t]+(abort|free|exit)[ \t]*\\(";
5888  *  content bypass pattern - skip fix if pattern found
5889  */
5890 tSCC zInt_Abort_Free_And_ExitBypass0[] =
5891        "_CLASSIC_ANSI_TYPES";
5893 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
5894 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
5895   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
5896   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
5899  *  Fix Command Arguments for Int_Abort_Free_And_Exit
5900  */
5901 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
5902     "format",
5903     "void\t%1(",
5904     (char*)NULL };
5906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5908  *  Description of Io_Quotes_Def fix
5909  */
5910 tSCC zIo_Quotes_DefName[] =
5911      "io_quotes_def";
5914  *  File name selection pattern
5915  */
5916 #define zIo_Quotes_DefList (char*)NULL
5918  *  Machine/OS name selection pattern
5919  */
5920 #define apzIo_Quotes_DefMachs (const char**)NULL
5923  *  content selection pattern - do fix if pattern found
5924  */
5925 tSCC zIo_Quotes_DefSelect0[] =
5926        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
5928 #define    IO_QUOTES_DEF_TEST_CT  1
5929 static tTestDesc aIo_Quotes_DefTests[] = {
5930   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
5933  *  Fix Command Arguments for Io_Quotes_Def
5934  */
5935 static const char* apzIo_Quotes_DefPatch[] = {
5936     "char_macro_def",
5937     "IO",
5938     (char*)NULL };
5940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5942  *  Description of Io_Quotes_Use fix
5943  */
5944 tSCC zIo_Quotes_UseName[] =
5945      "io_quotes_use";
5948  *  File name selection pattern
5949  */
5950 #define zIo_Quotes_UseList (char*)NULL
5952  *  Machine/OS name selection pattern
5953  */
5954 #define apzIo_Quotes_UseMachs (const char**)NULL
5957  *  content selection pattern - do fix if pattern found
5958  */
5959 tSCC zIo_Quotes_UseSelect0[] =
5960        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
5962 #define    IO_QUOTES_USE_TEST_CT  1
5963 static tTestDesc aIo_Quotes_UseTests[] = {
5964   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
5967  *  Fix Command Arguments for Io_Quotes_Use
5968  */
5969 static const char* apzIo_Quotes_UsePatch[] = {
5970     "char_macro_use",
5971     "IO",
5972     (char*)NULL };
5974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5976  *  Description of Ip_Missing_Semi fix
5977  */
5978 tSCC zIp_Missing_SemiName[] =
5979      "ip_missing_semi";
5982  *  File name selection pattern
5983  */
5984 tSCC zIp_Missing_SemiList[] =
5985   "netinet/ip.h\0";
5987  *  Machine/OS name selection pattern
5988  */
5989 #define apzIp_Missing_SemiMachs (const char**)NULL
5992  *  content selection pattern - do fix if pattern found
5993  */
5994 tSCC zIp_Missing_SemiSelect0[] =
5995        "}$";
5997 #define    IP_MISSING_SEMI_TEST_CT  1
5998 static tTestDesc aIp_Missing_SemiTests[] = {
5999   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
6002  *  Fix Command Arguments for Ip_Missing_Semi
6003  */
6004 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
6005     "-e", "/^struct/,/^};/s/}$/};/",
6006     (char*)NULL };
6008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6010  *  Description of Irix_Limits_Const fix
6011  */
6012 tSCC zIrix_Limits_ConstName[] =
6013      "irix_limits_const";
6016  *  File name selection pattern
6017  */
6018 tSCC zIrix_Limits_ConstList[] =
6019   "fixinc-test-limits.h\0limits.h\0";
6021  *  Machine/OS name selection pattern
6022  */
6023 #define apzIrix_Limits_ConstMachs (const char**)NULL
6026  *  content selection pattern - do fix if pattern found
6027  */
6028 tSCC zIrix_Limits_ConstSelect0[] =
6029        "^extern const ";
6031 #define    IRIX_LIMITS_CONST_TEST_CT  1
6032 static tTestDesc aIrix_Limits_ConstTests[] = {
6033   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
6036  *  Fix Command Arguments for Irix_Limits_Const
6037  */
6038 static const char* apzIrix_Limits_ConstPatch[] = {
6039     "format",
6040     "extern __const ",
6041     (char*)NULL };
6043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6045  *  Description of Irix_Stdio_Va_List fix
6046  */
6047 tSCC zIrix_Stdio_Va_ListName[] =
6048      "irix_stdio_va_list";
6051  *  File name selection pattern
6052  */
6053 tSCC zIrix_Stdio_Va_ListList[] =
6054   "stdio.h\0";
6056  *  Machine/OS name selection pattern
6057  */
6058 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
6061  *  content selection pattern - do fix if pattern found
6062  */
6063 tSCC zIrix_Stdio_Va_ListSelect0[] =
6064        "/\\* va_list \\*/ char \\*";
6066 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
6067 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
6068   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
6071  *  Fix Command Arguments for Irix_Stdio_Va_List
6072  */
6073 static const char* apzIrix_Stdio_Va_ListPatch[] = {
6074     "format",
6075     "__gnuc_va_list",
6076     (char*)NULL };
6078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6080  *  Description of Kandr_Concat fix
6081  */
6082 tSCC zKandr_ConcatName[] =
6083      "kandr_concat";
6086  *  File name selection pattern
6087  */
6088 tSCC zKandr_ConcatList[] =
6089   "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";
6091  *  Machine/OS name selection pattern
6092  */
6093 #define apzKandr_ConcatMachs (const char**)NULL
6096  *  content selection pattern - do fix if pattern found
6097  */
6098 tSCC zKandr_ConcatSelect0[] =
6099        "/\\*\\*/";
6101 #define    KANDR_CONCAT_TEST_CT  1
6102 static tTestDesc aKandr_ConcatTests[] = {
6103   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
6106  *  Fix Command Arguments for Kandr_Concat
6107  */
6108 static const char* apzKandr_ConcatPatch[] = {
6109     "format",
6110     "##",
6111     (char*)NULL };
6113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6115  *  Description of Linux_Ia64_Ucontext fix
6116  */
6117 tSCC zLinux_Ia64_UcontextName[] =
6118      "linux_ia64_ucontext";
6121  *  File name selection pattern
6122  */
6123 tSCC zLinux_Ia64_UcontextList[] =
6124   "sys/ucontext.h\0";
6126  *  Machine/OS name selection pattern
6127  */
6128 tSCC* apzLinux_Ia64_UcontextMachs[] = {
6129         "ia64-*-linux*",
6130         (const char*)NULL };
6133  *  content selection pattern - do fix if pattern found
6134  */
6135 tSCC zLinux_Ia64_UcontextSelect0[] =
6136        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
6138 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
6139 static tTestDesc aLinux_Ia64_UcontextTests[] = {
6140   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
6143  *  Fix Command Arguments for Linux_Ia64_Ucontext
6144  */
6145 static const char* apzLinux_Ia64_UcontextPatch[] = {
6146     "format",
6147     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
6148     (char*)NULL };
6150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6152  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
6153  */
6154 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
6155      "lynxos_no_warning_in_sys_time_h";
6158  *  File name selection pattern
6159  */
6160 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
6161   "sys/time.h\0";
6163  *  Machine/OS name selection pattern
6164  */
6165 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
6168  *  content selection pattern - do fix if pattern found
6169  */
6170 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
6171        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
6173 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
6174 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
6175   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
6178  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
6179  */
6180 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
6181     "format",
6182     "",
6183     (char*)NULL };
6185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6187  *  Description of Lynxos_Missing_Putenv fix
6188  */
6189 tSCC zLynxos_Missing_PutenvName[] =
6190      "lynxos_missing_putenv";
6193  *  File name selection pattern
6194  */
6195 tSCC zLynxos_Missing_PutenvList[] =
6196   "stdlib.h\0";
6198  *  Machine/OS name selection pattern
6199  */
6200 tSCC* apzLynxos_Missing_PutenvMachs[] = {
6201         "*-*-lynxos*",
6202         (const char*)NULL };
6205  *  content selection pattern - do fix if pattern found
6206  */
6207 tSCC zLynxos_Missing_PutenvSelect0[] =
6208        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
6211  *  content bypass pattern - skip fix if pattern found
6212  */
6213 tSCC zLynxos_Missing_PutenvBypass0[] =
6214        "putenv[ \\t]*\\(";
6216 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
6217 static tTestDesc aLynxos_Missing_PutenvTests[] = {
6218   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
6219   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
6222  *  Fix Command Arguments for Lynxos_Missing_Putenv
6223  */
6224 static const char* apzLynxos_Missing_PutenvPatch[] = {
6225     "format",
6226     "%0\n\
6227 extern int putenv\t\t\t\t_AP((char *));",
6228     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
6229     (char*)NULL };
6231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6233  *  Description of Machine_Ansi_H_Va_List fix
6234  */
6235 tSCC zMachine_Ansi_H_Va_ListName[] =
6236      "machine_ansi_h_va_list";
6239  *  File name selection pattern
6240  */
6241 #define zMachine_Ansi_H_Va_ListList (char*)NULL
6243  *  Machine/OS name selection pattern
6244  */
6245 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
6248  *  content selection pattern - do fix if pattern found
6249  */
6250 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
6251        "define[ \t]+_BSD_VA_LIST_[ \t]";
6254  *  content bypass pattern - skip fix if pattern found
6255  */
6256 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
6257        "__builtin_va_list";
6259 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
6260 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
6261   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
6262   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
6265  *  Fix Command Arguments for Machine_Ansi_H_Va_List
6266  */
6267 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
6268     "format",
6269     "%1__builtin_va_list",
6270     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
6271     (char*)NULL };
6273 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6275  *  Description of Machine_Name fix
6276  */
6277 tSCC zMachine_NameName[] =
6278      "machine_name";
6281  *  File name selection pattern
6282  */
6283 #define zMachine_NameList (char*)NULL
6285  *  Machine/OS name selection pattern
6286  */
6287 #define apzMachine_NameMachs (const char**)NULL
6290  *  perform the C function call test
6291  */
6292 tSCC zMachine_NameFTst0[] = "machine_name";
6294 #define    MACHINE_NAME_TEST_CT  1
6295 static tTestDesc aMachine_NameTests[] = {
6296   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
6299  *  Fix Command Arguments for Machine_Name
6300  */
6301 static const char* apzMachine_NamePatch[] = {
6302     "machine_name",
6303     (char*)NULL };
6305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6307  *  Description of Math_Exception fix
6308  */
6309 tSCC zMath_ExceptionName[] =
6310      "math_exception";
6313  *  File name selection pattern
6314  */
6315 tSCC zMath_ExceptionList[] =
6316   "math.h\0";
6318  *  Machine/OS name selection pattern
6319  */
6320 tSCC* apzMath_ExceptionMachs[] = {
6321         "*-*-solaris2.1[0-9]*",
6322         (const char*)NULL };
6325  *  content selection pattern - do fix if pattern found
6326  */
6327 tSCC zMath_ExceptionSelect0[] =
6328        "struct exception";
6331  *  content bypass pattern - skip fix if pattern found
6332  */
6333 tSCC zMath_ExceptionBypass0[] =
6334        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
6336 #define    MATH_EXCEPTION_TEST_CT  2
6337 static tTestDesc aMath_ExceptionTests[] = {
6338   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
6339   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
6342  *  Fix Command Arguments for Math_Exception
6343  */
6344 static const char* apzMath_ExceptionPatch[] = {
6345     "wrap",
6346     "#ifdef __cplusplus\n\
6347 #define exception __math_exception\n\
6348 #endif\n",
6349     "#ifdef __cplusplus\n\
6350 #undef exception\n\
6351 #endif\n",
6352     (char*)NULL };
6354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6356  *  Description of Math_Huge_Val_From_Dbl_Max fix
6357  */
6358 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
6359      "math_huge_val_from_dbl_max";
6362  *  File name selection pattern
6363  */
6364 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
6365   "math.h\0";
6367  *  Machine/OS name selection pattern
6368  */
6369 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
6372  *  content selection pattern - do fix if pattern found
6373  */
6374 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
6375        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
6378  *  content bypass pattern - skip fix if pattern found
6379  */
6380 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
6381        "define[ \t]+DBL_MAX";
6383 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
6384 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
6385   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
6386   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
6389  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
6390  */
6391 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
6392     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
6393 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
6394 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
6395 \telse cat\n\
6396 \tfi",
6397     (char*)NULL };
6399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6401  *  Description of Nested_Auth_Des fix
6402  */
6403 tSCC zNested_Auth_DesName[] =
6404      "nested_auth_des";
6407  *  File name selection pattern
6408  */
6409 tSCC zNested_Auth_DesList[] =
6410   "rpc/rpc.h\0";
6412  *  Machine/OS name selection pattern
6413  */
6414 #define apzNested_Auth_DesMachs (const char**)NULL
6417  *  content selection pattern - do fix if pattern found
6418  */
6419 tSCC zNested_Auth_DesSelect0[] =
6420        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
6422 #define    NESTED_AUTH_DES_TEST_CT  1
6423 static tTestDesc aNested_Auth_DesTests[] = {
6424   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
6427  *  Fix Command Arguments for Nested_Auth_Des
6428  */
6429 static const char* apzNested_Auth_DesPatch[] = {
6430     "format",
6431     "%1*/ /*",
6432     (char*)NULL };
6434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6436  *  Description of Netbsd_C99_Inline_1 fix
6437  */
6438 tSCC zNetbsd_C99_Inline_1Name[] =
6439      "netbsd_c99_inline_1";
6442  *  File name selection pattern
6443  */
6444 tSCC zNetbsd_C99_Inline_1List[] =
6445   "signal.h\0";
6447  *  Machine/OS name selection pattern
6448  */
6449 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
6450         "*-*-netbsd*",
6451         (const char*)NULL };
6454  *  content selection pattern - do fix if pattern found
6455  */
6456 tSCC zNetbsd_C99_Inline_1Select0[] =
6457        "extern __inline int";
6459 #define    NETBSD_C99_INLINE_1_TEST_CT  1
6460 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
6461   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
6464  *  Fix Command Arguments for Netbsd_C99_Inline_1
6465  */
6466 static const char* apzNetbsd_C99_Inline_1Patch[] = {
6467     "format",
6468     "extern\n\
6469 #ifdef __GNUC_STDC_INLINE__\n\
6470 __attribute__((__gnu_inline__))\n\
6471 #endif\n\
6472 __inline int",
6473     (char*)NULL };
6475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6477  *  Description of Netbsd_C99_Inline_2 fix
6478  */
6479 tSCC zNetbsd_C99_Inline_2Name[] =
6480      "netbsd_c99_inline_2";
6483  *  File name selection pattern
6484  */
6485 tSCC zNetbsd_C99_Inline_2List[] =
6486   "signal.h\0";
6488  *  Machine/OS name selection pattern
6489  */
6490 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
6491         "*-*-netbsd*",
6492         (const char*)NULL };
6495  *  content selection pattern - do fix if pattern found
6496  */
6497 tSCC zNetbsd_C99_Inline_2Select0[] =
6498        "#define _SIGINLINE extern __inline";
6500 #define    NETBSD_C99_INLINE_2_TEST_CT  1
6501 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
6502   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
6505  *  Fix Command Arguments for Netbsd_C99_Inline_2
6506  */
6507 static const char* apzNetbsd_C99_Inline_2Patch[] = {
6508     "format",
6509     "#ifdef __GNUC_STDC_INLINE__\n\
6510 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
6511 #else\n\
6512 %0\n\
6513 #endif",
6514     (char*)NULL };
6516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6518  *  Description of Netbsd_Extra_Semicolon fix
6519  */
6520 tSCC zNetbsd_Extra_SemicolonName[] =
6521      "netbsd_extra_semicolon";
6524  *  File name selection pattern
6525  */
6526 tSCC zNetbsd_Extra_SemicolonList[] =
6527   "sys/cdefs.h\0";
6529  *  Machine/OS name selection pattern
6530  */
6531 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
6532         "*-*-netbsd*",
6533         (const char*)NULL };
6536  *  content selection pattern - do fix if pattern found
6537  */
6538 tSCC zNetbsd_Extra_SemicolonSelect0[] =
6539        "#define[ \t]*__END_DECLS[ \t]*};";
6541 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
6542 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
6543   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
6546  *  Fix Command Arguments for Netbsd_Extra_Semicolon
6547  */
6548 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
6549     "format",
6550     "#define __END_DECLS }",
6551     (char*)NULL };
6553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6555  *  Description of Newlib_Stdint_1 fix
6556  */
6557 tSCC zNewlib_Stdint_1Name[] =
6558      "newlib_stdint_1";
6561  *  File name selection pattern
6562  */
6563 tSCC zNewlib_Stdint_1List[] =
6564   "stdint-newlib.h\0stdint.h\0";
6566  *  Machine/OS name selection pattern
6567  */
6568 #define apzNewlib_Stdint_1Machs (const char**)NULL
6571  *  content selection pattern - do fix if pattern found
6572  */
6573 tSCC zNewlib_Stdint_1Select0[] =
6574        "@todo - Add support for wint_t types";
6576 #define    NEWLIB_STDINT_1_TEST_CT  1
6577 static tTestDesc aNewlib_Stdint_1Tests[] = {
6578   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
6581  *  Fix Command Arguments for Newlib_Stdint_1
6582  */
6583 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
6584     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
6585     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
6586     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
6587     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
6588     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
6589     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
6590     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
6591     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
6592     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
6593     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
6594     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
6595     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
6596     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
6597     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
6598     (char*)NULL };
6600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6602  *  Description of Newlib_Stdint_2 fix
6603  */
6604 tSCC zNewlib_Stdint_2Name[] =
6605      "newlib_stdint_2";
6608  *  File name selection pattern
6609  */
6610 tSCC zNewlib_Stdint_2List[] =
6611   "stdint-newlib.h\0stdint.h\0";
6613  *  Machine/OS name selection pattern
6614  */
6615 #define apzNewlib_Stdint_2Machs (const char**)NULL
6618  *  content selection pattern - do fix if pattern found
6619  */
6620 tSCC zNewlib_Stdint_2Select0[] =
6621        "@todo - Add support for wint_t types";
6623 #define    NEWLIB_STDINT_2_TEST_CT  1
6624 static tTestDesc aNewlib_Stdint_2Tests[] = {
6625   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
6628  *  Fix Command Arguments for Newlib_Stdint_2
6629  */
6630 static const char* apzNewlib_Stdint_2Patch[] = {
6631     "format",
6632     "#define INTMAX_MAX __INTMAX_MAX__\n\
6633 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
6634 #define UINTMAX_MAX __UINTMAX_MAX__\n\
6635 #define WCHAR_MAX __WCHAR_MAX__\n\
6636 #define WCHAR_MIN __WCHAR_MIN__\n\
6637 #define WINT_MAX __WINT_MAX__\n\
6638 #define WINT_MIN __WINT_MIN__\n\n\
6639 %0",
6640     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
6641     (char*)NULL };
6643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6645  *  Description of Next_Math_Prefix fix
6646  */
6647 tSCC zNext_Math_PrefixName[] =
6648      "next_math_prefix";
6651  *  File name selection pattern
6652  */
6653 tSCC zNext_Math_PrefixList[] =
6654   "ansi/math.h\0";
6656  *  Machine/OS name selection pattern
6657  */
6658 #define apzNext_Math_PrefixMachs (const char**)NULL
6661  *  content selection pattern - do fix if pattern found
6662  */
6663 tSCC zNext_Math_PrefixSelect0[] =
6664        "^extern[ \t]+double[ \t]+__const__[ \t]";
6666 #define    NEXT_MATH_PREFIX_TEST_CT  1
6667 static tTestDesc aNext_Math_PrefixTests[] = {
6668   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
6671  *  Fix Command Arguments for Next_Math_Prefix
6672  */
6673 static const char* apzNext_Math_PrefixPatch[] = {
6674     "format",
6675     "extern double %1(",
6676     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
6677     (char*)NULL };
6679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6681  *  Description of Next_Template fix
6682  */
6683 tSCC zNext_TemplateName[] =
6684      "next_template";
6687  *  File name selection pattern
6688  */
6689 tSCC zNext_TemplateList[] =
6690   "bsd/libc.h\0";
6692  *  Machine/OS name selection pattern
6693  */
6694 #define apzNext_TemplateMachs (const char**)NULL
6697  *  content selection pattern - do fix if pattern found
6698  */
6699 tSCC zNext_TemplateSelect0[] =
6700        "[ \t]template\\)";
6702 #define    NEXT_TEMPLATE_TEST_CT  1
6703 static tTestDesc aNext_TemplateTests[] = {
6704   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
6707  *  Fix Command Arguments for Next_Template
6708  */
6709 static const char* apzNext_TemplatePatch[] = {
6710     "format",
6711     "(%1)",
6712     "\\(([^)]*)[ \t]template\\)",
6713     (char*)NULL };
6715 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6717  *  Description of Next_Volitile fix
6718  */
6719 tSCC zNext_VolitileName[] =
6720      "next_volitile";
6723  *  File name selection pattern
6724  */
6725 tSCC zNext_VolitileList[] =
6726   "ansi/stdlib.h\0";
6728  *  Machine/OS name selection pattern
6729  */
6730 #define apzNext_VolitileMachs (const char**)NULL
6733  *  content selection pattern - do fix if pattern found
6734  */
6735 tSCC zNext_VolitileSelect0[] =
6736        "^extern[ \t]+volatile[ \t]+void[ \t]";
6738 #define    NEXT_VOLITILE_TEST_CT  1
6739 static tTestDesc aNext_VolitileTests[] = {
6740   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
6743  *  Fix Command Arguments for Next_Volitile
6744  */
6745 static const char* apzNext_VolitilePatch[] = {
6746     "format",
6747     "extern void %1(",
6748     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
6749     (char*)NULL };
6751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6753  *  Description of Next_Wait_Union fix
6754  */
6755 tSCC zNext_Wait_UnionName[] =
6756      "next_wait_union";
6759  *  File name selection pattern
6760  */
6761 tSCC zNext_Wait_UnionList[] =
6762   "sys/wait.h\0";
6764  *  Machine/OS name selection pattern
6765  */
6766 #define apzNext_Wait_UnionMachs (const char**)NULL
6769  *  content selection pattern - do fix if pattern found
6770  */
6771 tSCC zNext_Wait_UnionSelect0[] =
6772        "wait\\(union wait";
6774 #define    NEXT_WAIT_UNION_TEST_CT  1
6775 static tTestDesc aNext_Wait_UnionTests[] = {
6776   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
6779  *  Fix Command Arguments for Next_Wait_Union
6780  */
6781 static const char* apzNext_Wait_UnionPatch[] = {
6782     "format",
6783     "wait(void",
6784     (char*)NULL };
6786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6788  *  Description of Nodeent_Syntax fix
6789  */
6790 tSCC zNodeent_SyntaxName[] =
6791      "nodeent_syntax";
6794  *  File name selection pattern
6795  */
6796 tSCC zNodeent_SyntaxList[] =
6797   "netdnet/dnetdb.h\0";
6799  *  Machine/OS name selection pattern
6800  */
6801 #define apzNodeent_SyntaxMachs (const char**)NULL
6804  *  content selection pattern - do fix if pattern found
6805  */
6806 tSCC zNodeent_SyntaxSelect0[] =
6807        "char[ \t]*\\*na_addr[ \t]*$";
6809 #define    NODEENT_SYNTAX_TEST_CT  1
6810 static tTestDesc aNodeent_SyntaxTests[] = {
6811   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
6814  *  Fix Command Arguments for Nodeent_Syntax
6815  */
6816 static const char* apzNodeent_SyntaxPatch[] = {
6817     "format",
6818     "%0;",
6819     (char*)NULL };
6821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6823  *  Description of Openbsd_Null_Definition fix
6824  */
6825 tSCC zOpenbsd_Null_DefinitionName[] =
6826      "openbsd_null_definition";
6829  *  File name selection pattern
6830  */
6831 tSCC zOpenbsd_Null_DefinitionList[] =
6832   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
6834  *  Machine/OS name selection pattern
6835  */
6836 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
6837         "*-*-openbsd*",
6838         (const char*)NULL };
6841  *  content selection pattern - do fix if pattern found
6842  */
6843 tSCC zOpenbsd_Null_DefinitionSelect0[] =
6844        "__GNUG__";
6846 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
6847 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
6848   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
6851  *  Fix Command Arguments for Openbsd_Null_Definition
6852  */
6853 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
6854     "format",
6855     "#ifndef NULL\n\
6856 #ifdef __cplusplus\n\
6857 #ifdef __GNUG__\n\
6858 #define NULL\t__null\n\
6859 #else\t /* ! __GNUG__  */\n\
6860 #define NULL\t0L\n\
6861 #endif\t /* __GNUG__  */\n\
6862 #else\t /* ! __cplusplus  */\n\
6863 #define NULL\t((void *)0)\n\
6864 #endif\t /* __cplusplus  */\n\
6865 #endif\t /* !NULL  */",
6866     "^#ifndef[ \t]*NULL\n\
6867 ^#ifdef[ \t]*__GNUG__\n\
6868 ^#define[ \t]*NULL[ \t]*__null\n\
6869 ^#else\n\
6870 ^#define[ \t]*NULL[ \t]*0L\n\
6871 ^#endif\n\
6872 ^#endif",
6873     (char*)NULL };
6875 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6877  *  Description of Obstack_Lvalue_Cast fix
6878  */
6879 tSCC zObstack_Lvalue_CastName[] =
6880      "obstack_lvalue_cast";
6883  *  File name selection pattern
6884  */
6885 tSCC zObstack_Lvalue_CastList[] =
6886   "obstack.h\0";
6888  *  Machine/OS name selection pattern
6889  */
6890 #define apzObstack_Lvalue_CastMachs (const char**)NULL
6893  *  content selection pattern - do fix if pattern found
6894  */
6895 tSCC zObstack_Lvalue_CastSelect0[] =
6896        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
6898 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
6899 static tTestDesc aObstack_Lvalue_CastTests[] = {
6900   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
6903  *  Fix Command Arguments for Obstack_Lvalue_Cast
6904  */
6905 static const char* apzObstack_Lvalue_CastPatch[] = {
6906     "format",
6907     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
6908     (char*)NULL };
6910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6912  *  Description of Openbsd_Va_Start fix
6913  */
6914 tSCC zOpenbsd_Va_StartName[] =
6915      "openbsd_va_start";
6918  *  File name selection pattern
6919  */
6920 tSCC zOpenbsd_Va_StartList[] =
6921   "stdarg.h\0";
6923  *  Machine/OS name selection pattern
6924  */
6925 tSCC* apzOpenbsd_Va_StartMachs[] = {
6926         "*-*-openbsd*",
6927         (const char*)NULL };
6930  *  content selection pattern - do fix if pattern found
6931  */
6932 tSCC zOpenbsd_Va_StartSelect0[] =
6933        "__builtin_stdarg_start";
6935 #define    OPENBSD_VA_START_TEST_CT  1
6936 static tTestDesc aOpenbsd_Va_StartTests[] = {
6937   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
6940  *  Fix Command Arguments for Openbsd_Va_Start
6941  */
6942 static const char* apzOpenbsd_Va_StartPatch[] = {
6943     "format",
6944     "__builtin_va_start",
6945     (char*)NULL };
6947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6949  *  Description of Osf_Namespace_A fix
6950  */
6951 tSCC zOsf_Namespace_AName[] =
6952      "osf_namespace_a";
6955  *  File name selection pattern
6956  */
6957 tSCC zOsf_Namespace_AList[] =
6958   "reg_types.h\0sys/lc_core.h\0";
6960  *  Machine/OS name selection pattern
6961  */
6962 #define apzOsf_Namespace_AMachs (const char**)NULL
6965  *  perform the 'test' shell command - do fix on success
6966  */
6967 tSCC zOsf_Namespace_ATest0[] =
6968        " -r reg_types.h";
6969 tSCC zOsf_Namespace_ATest1[] =
6970        " -r sys/lc_core.h";
6971 tSCC zOsf_Namespace_ATest2[] =
6972        " -n \"`grep '} regex_t;' reg_types.h`\"";
6973 tSCC zOsf_Namespace_ATest3[] =
6974        " -z \"`grep __regex_t regex.h`\"";
6976 #define    OSF_NAMESPACE_A_TEST_CT  4
6977 static tTestDesc aOsf_Namespace_ATests[] = {
6978   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
6979   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
6980   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
6981   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
6984  *  Fix Command Arguments for Osf_Namespace_A
6985  */
6986 static const char* apzOsf_Namespace_APatch[] = {
6987     "format",
6988     "__%0",
6989     "reg(ex|off|match)_t",
6990     (char*)NULL };
6992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6994  *  Description of Osf_Namespace_C fix
6995  */
6996 tSCC zOsf_Namespace_CName[] =
6997      "osf_namespace_c";
7000  *  File name selection pattern
7001  */
7002 tSCC zOsf_Namespace_CList[] =
7003   "regex.h\0";
7005  *  Machine/OS name selection pattern
7006  */
7007 #define apzOsf_Namespace_CMachs (const char**)NULL
7010  *  content selection pattern - do fix if pattern found
7011  */
7012 tSCC zOsf_Namespace_CSelect0[] =
7013        "#include <reg_types.h>.*";
7016  *  perform the 'test' shell command - do fix on success
7017  */
7018 tSCC zOsf_Namespace_CTest0[] =
7019        " -r reg_types.h";
7020 tSCC zOsf_Namespace_CTest1[] =
7021        " -r sys/lc_core.h";
7022 tSCC zOsf_Namespace_CTest2[] =
7023        " -n \"`grep '} regex_t;' reg_types.h`\"";
7024 tSCC zOsf_Namespace_CTest3[] =
7025        " -z \"`grep __regex_t regex.h`\"";
7027 #define    OSF_NAMESPACE_C_TEST_CT  5
7028 static tTestDesc aOsf_Namespace_CTests[] = {
7029   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
7030   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
7031   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
7032   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
7033   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
7036  *  Fix Command Arguments for Osf_Namespace_C
7037  */
7038 static const char* apzOsf_Namespace_CPatch[] = {
7039     "format",
7040     "%0\n\
7041 typedef __regex_t\tregex_t;\n\
7042 typedef __regoff_t\tregoff_t;\n\
7043 typedef __regmatch_t\tregmatch_t;",
7044     (char*)NULL };
7046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7048  *  Description of Pthread_Incomplete_Struct_Argument fix
7049  */
7050 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
7051      "pthread_incomplete_struct_argument";
7054  *  File name selection pattern
7055  */
7056 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
7057   "pthread.h\0";
7059  *  Machine/OS name selection pattern
7060  */
7061 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
7064  *  content selection pattern - do fix if pattern found
7065  */
7066 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
7067        "struct __jmp_buf_tag";
7069 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
7070 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
7071   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
7074  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
7075  */
7076 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
7077     "format",
7078     "%1 *%2%3",
7079     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
7080     (char*)NULL };
7082 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7084  *  Description of Read_Ret_Type fix
7085  */
7086 tSCC zRead_Ret_TypeName[] =
7087      "read_ret_type";
7090  *  File name selection pattern
7091  */
7092 tSCC zRead_Ret_TypeList[] =
7093   "stdio.h\0";
7095  *  Machine/OS name selection pattern
7096  */
7097 #define apzRead_Ret_TypeMachs (const char**)NULL
7100  *  content selection pattern - do fix if pattern found
7101  */
7102 tSCC zRead_Ret_TypeSelect0[] =
7103        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
7105 #define    READ_RET_TYPE_TEST_CT  1
7106 static tTestDesc aRead_Ret_TypeTests[] = {
7107   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
7110  *  Fix Command Arguments for Read_Ret_Type
7111  */
7112 static const char* apzRead_Ret_TypePatch[] = {
7113     "format",
7114     "extern unsigned int fread(), fwrite();\n\
7115 %1%2",
7116     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
7117     (char*)NULL };
7119 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7121  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
7122  */
7123 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
7124      "rpc_xdr_lvalue_cast_a";
7127  *  File name selection pattern
7128  */
7129 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
7130   "rpc/xdr.h\0";
7132  *  Machine/OS name selection pattern
7133  */
7134 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
7137  *  content selection pattern - do fix if pattern found
7138  */
7139 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
7140        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
7141 .*__extension__.*";
7143 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
7144 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
7145   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
7148  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
7149  */
7150 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
7151     "format",
7152     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
7153     (char*)NULL };
7155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7157  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
7158  */
7159 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
7160      "rpc_xdr_lvalue_cast_b";
7163  *  File name selection pattern
7164  */
7165 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
7166   "rpc/xdr.h\0";
7168  *  Machine/OS name selection pattern
7169  */
7170 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
7173  *  content selection pattern - do fix if pattern found
7174  */
7175 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
7176        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
7177 .*__extension__.*";
7179 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
7180 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
7181   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
7184  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
7185  */
7186 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
7187     "format",
7188     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
7189     (char*)NULL };
7191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7193  *  Description of Rs6000_Double fix
7194  */
7195 tSCC zRs6000_DoubleName[] =
7196      "rs6000_double";
7199  *  File name selection pattern
7200  */
7201 tSCC zRs6000_DoubleList[] =
7202   "math.h\0";
7204  *  Machine/OS name selection pattern
7205  */
7206 #define apzRs6000_DoubleMachs (const char**)NULL
7209  *  content selection pattern - do fix if pattern found
7210  */
7211 tSCC zRs6000_DoubleSelect0[] =
7212        "[^a-zA-Z_]class\\(";
7214 #define    RS6000_DOUBLE_TEST_CT  1
7215 static tTestDesc aRs6000_DoubleTests[] = {
7216   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
7219  *  Fix Command Arguments for Rs6000_Double
7220  */
7221 static const char* apzRs6000_DoublePatch[] = {
7222     "format",
7223     "#ifndef __cplusplus\n\
7224 %0\n\
7225 #endif",
7226     "^.*[^a-zA-Z_]class\\(.*",
7227     (char*)NULL };
7229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7231  *  Description of Rs6000_Fchmod fix
7232  */
7233 tSCC zRs6000_FchmodName[] =
7234      "rs6000_fchmod";
7237  *  File name selection pattern
7238  */
7239 tSCC zRs6000_FchmodList[] =
7240   "sys/stat.h\0";
7242  *  Machine/OS name selection pattern
7243  */
7244 #define apzRs6000_FchmodMachs (const char**)NULL
7247  *  content selection pattern - do fix if pattern found
7248  */
7249 tSCC zRs6000_FchmodSelect0[] =
7250        "fchmod\\(char \\*";
7252 #define    RS6000_FCHMOD_TEST_CT  1
7253 static tTestDesc aRs6000_FchmodTests[] = {
7254   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
7257  *  Fix Command Arguments for Rs6000_Fchmod
7258  */
7259 static const char* apzRs6000_FchmodPatch[] = {
7260     "format",
7261     "fchmod(int",
7262     (char*)NULL };
7264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7266  *  Description of Rs6000_Param fix
7267  */
7268 tSCC zRs6000_ParamName[] =
7269      "rs6000_param";
7272  *  File name selection pattern
7273  */
7274 tSCC zRs6000_ParamList[] =
7275   "stdio.h\0unistd.h\0";
7277  *  Machine/OS name selection pattern
7278  */
7279 #define apzRs6000_ParamMachs (const char**)NULL
7282  *  content selection pattern - do fix if pattern found
7283  */
7284 tSCC zRs6000_ParamSelect0[] =
7285        "rename\\(const char \\*old, const char \\*new\\)";
7287 #define    RS6000_PARAM_TEST_CT  1
7288 static tTestDesc aRs6000_ParamTests[] = {
7289   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
7292  *  Fix Command Arguments for Rs6000_Param
7293  */
7294 static const char* apzRs6000_ParamPatch[] = {
7295     "format",
7296     "rename(const char *_old, const char *_new)",
7297     (char*)NULL };
7299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7301  *  Description of Solaris___Restrict fix
7302  */
7303 tSCC zSolaris___RestrictName[] =
7304      "solaris___restrict";
7307  *  File name selection pattern
7308  */
7309 tSCC zSolaris___RestrictList[] =
7310   "sys/feature_tests.h\0";
7312  *  Machine/OS name selection pattern
7313  */
7314 tSCC* apzSolaris___RestrictMachs[] = {
7315         "*-*-solaris2*",
7316         (const char*)NULL };
7319  *  content selection pattern - do fix if pattern found
7320  */
7321 tSCC zSolaris___RestrictSelect0[] =
7322        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
7324 #define    SOLARIS___RESTRICT_TEST_CT  1
7325 static tTestDesc aSolaris___RestrictTests[] = {
7326   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
7329  *  Fix Command Arguments for Solaris___Restrict
7330  */
7331 static const char* apzSolaris___RestrictPatch[] = {
7332     "format",
7333     "#ifdef __cplusplus\n\
7334 #define\t_RESTRICT_KYWD\t__restrict\n\
7335 #else\n\
7336 %0\n\
7337 #endif",
7338     (char*)NULL };
7340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7342  *  Description of Solaris_Complex fix
7343  */
7344 tSCC zSolaris_ComplexName[] =
7345      "solaris_complex";
7348  *  File name selection pattern
7349  */
7350 tSCC zSolaris_ComplexList[] =
7351   "complex.h\0";
7353  *  Machine/OS name selection pattern
7354  */
7355 tSCC* apzSolaris_ComplexMachs[] = {
7356         "*-*-solaris2.*",
7357         (const char*)NULL };
7360  *  content selection pattern - do fix if pattern found
7361  */
7362 tSCC zSolaris_ComplexSelect0[] =
7363        "#define[ \t]_Complex_I[ \t]_Complex_I";
7365 #define    SOLARIS_COMPLEX_TEST_CT  1
7366 static tTestDesc aSolaris_ComplexTests[] = {
7367   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
7370  *  Fix Command Arguments for Solaris_Complex
7371  */
7372 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
7373     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
7374     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
7375     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
7376     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
7377     (char*)NULL };
7379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7381  *  Description of Solaris_Complex_Cxx fix
7382  */
7383 tSCC zSolaris_Complex_CxxName[] =
7384      "solaris_complex_cxx";
7387  *  File name selection pattern
7388  */
7389 tSCC zSolaris_Complex_CxxList[] =
7390   "complex.h\0";
7392  *  Machine/OS name selection pattern
7393  */
7394 tSCC* apzSolaris_Complex_CxxMachs[] = {
7395         "*-*-solaris2.*",
7396         (const char*)NULL };
7397 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
7398 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
7401  *  Fix Command Arguments for Solaris_Complex_Cxx
7402  */
7403 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
7404     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
7405 #ifdef\t__cplusplus\\\n\
7406 extern \"C\" {\\\n\
7407 #endif",
7408     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
7409 #ifdef\t__cplusplus\\\n\
7410 }\\\n\
7411 #endif",
7412     (char*)NULL };
7414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7416  *  Description of Solaris_Cxx_Linkage fix
7417  */
7418 tSCC zSolaris_Cxx_LinkageName[] =
7419      "solaris_cxx_linkage";
7422  *  File name selection pattern
7423  */
7424 tSCC zSolaris_Cxx_LinkageList[] =
7425   "iso/stdlib_iso.h\0";
7427  *  Machine/OS name selection pattern
7428  */
7429 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
7430         "*-*-solaris2*",
7431         (const char*)NULL };
7434  *  content selection pattern - do fix if pattern found
7435  */
7436 tSCC zSolaris_Cxx_LinkageSelect0[] =
7437        "(#if __cplusplus >= 199711L)\n\
7438 (extern \"C\\+\\+\" \\{\n\
7439 )(.*(bsearch|qsort).*)";
7441 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
7442 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
7443   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
7446  *  Fix Command Arguments for Solaris_Cxx_Linkage
7447  */
7448 static const char* apzSolaris_Cxx_LinkagePatch[] = {
7449     "format",
7450     "%1 && !__GNUG__\n\
7451 %2%3",
7452     (char*)NULL };
7454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7456  *  Description of Solaris_Getc_Strict_Stdc fix
7457  */
7458 tSCC zSolaris_Getc_Strict_StdcName[] =
7459      "solaris_getc_strict_stdc";
7462  *  File name selection pattern
7463  */
7464 tSCC zSolaris_Getc_Strict_StdcList[] =
7465   "iso/stdio_iso.h\0";
7467  *  Machine/OS name selection pattern
7468  */
7469 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
7470         "*-*-solaris2*",
7471         (const char*)NULL };
7474  *  content selection pattern - do fix if pattern found
7475  */
7476 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
7477        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
7479 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
7480 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
7481   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
7484  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
7485  */
7486 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
7487     "format",
7488     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
7489     (char*)NULL };
7491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7493  *  Description of Solaris_Gets_C11 fix
7494  */
7495 tSCC zSolaris_Gets_C11Name[] =
7496      "solaris_gets_c11";
7499  *  File name selection pattern
7500  */
7501 tSCC zSolaris_Gets_C11List[] =
7502   "iso/stdio_iso.h\0";
7504  *  Machine/OS name selection pattern
7505  */
7506 tSCC* apzSolaris_Gets_C11Machs[] = {
7507         "*-*-solaris2*",
7508         (const char*)NULL };
7511  *  content selection pattern - do fix if pattern found
7512  */
7513 tSCC zSolaris_Gets_C11Select0[] =
7514        "(extern char[ \t]*\\*gets\\(char \\*\\));";
7516 #define    SOLARIS_GETS_C11_TEST_CT  1
7517 static tTestDesc aSolaris_Gets_C11Tests[] = {
7518   { TT_EGREP,    zSolaris_Gets_C11Select0, (regex_t*)NULL }, };
7521  *  Fix Command Arguments for Solaris_Gets_C11
7522  */
7523 static const char* apzSolaris_Gets_C11Patch[] = {
7524     "format",
7525     "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\
7526 %1 __attribute__((__deprecated__));\n\
7527 #endif",
7528     (char*)NULL };
7530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7532  *  Description of Solaris_Gets_Cxx14 fix
7533  */
7534 tSCC zSolaris_Gets_Cxx14Name[] =
7535      "solaris_gets_cxx14";
7538  *  File name selection pattern
7539  */
7540 tSCC zSolaris_Gets_Cxx14List[] =
7541   "iso/stdio_iso.h\0";
7543  *  Machine/OS name selection pattern
7544  */
7545 tSCC* apzSolaris_Gets_Cxx14Machs[] = {
7546         "*-*-solaris2*",
7547         (const char*)NULL };
7550  *  content selection pattern - do fix if pattern found
7551  */
7552 tSCC zSolaris_Gets_Cxx14Select0[] =
7553        "(#if __STDC_VERSION__ < 201112L)\n\
7554 (extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)";
7556 #define    SOLARIS_GETS_CXX14_TEST_CT  1
7557 static tTestDesc aSolaris_Gets_Cxx14Tests[] = {
7558   { TT_EGREP,    zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, };
7561  *  Fix Command Arguments for Solaris_Gets_Cxx14
7562  */
7563 static const char* apzSolaris_Gets_Cxx14Patch[] = {
7564     "format",
7565     "%1 && __cplusplus < 201402L\n\
7566 %2",
7567     (char*)NULL };
7569 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7571  *  Description of Solaris_Int_Const fix
7572  */
7573 tSCC zSolaris_Int_ConstName[] =
7574      "solaris_int_const";
7577  *  File name selection pattern
7578  */
7579 tSCC zSolaris_Int_ConstList[] =
7580   "sys/int_const.h\0";
7582  *  Machine/OS name selection pattern
7583  */
7584 tSCC* apzSolaris_Int_ConstMachs[] = {
7585         "*-*-solaris2*",
7586         (const char*)NULL };
7589  *  content selection pattern - do fix if pattern found
7590  */
7591 tSCC zSolaris_Int_ConstSelect0[] =
7592        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7593 (/*.**/)\n\
7594 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7596 #define    SOLARIS_INT_CONST_TEST_CT  1
7597 static tTestDesc aSolaris_Int_ConstTests[] = {
7598   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7601  *  Fix Command Arguments for Solaris_Int_Const
7602  */
7603 static const char* apzSolaris_Int_ConstPatch[] = {
7604     "format",
7605     "#define\tUINT8_C(c)\t(c)\n\
7606 %1\n\
7607 #define\tUINT16_C(c)\t(c)",
7608     (char*)NULL };
7610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7612  *  Description of Solaris_Int_Limits_1 fix
7613  */
7614 tSCC zSolaris_Int_Limits_1Name[] =
7615      "solaris_int_limits_1";
7618  *  File name selection pattern
7619  */
7620 tSCC zSolaris_Int_Limits_1List[] =
7621   "sys/int_limits.h\0";
7623  *  Machine/OS name selection pattern
7624  */
7625 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7626         "*-*-solaris2*",
7627         (const char*)NULL };
7630  *  content selection pattern - do fix if pattern found
7631  */
7632 tSCC zSolaris_Int_Limits_1Select0[] =
7633        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7634 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7636 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
7637 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7638   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7641  *  Fix Command Arguments for Solaris_Int_Limits_1
7642  */
7643 static const char* apzSolaris_Int_Limits_1Patch[] = {
7644     "format",
7645     "#define\tUINT8_MAX\t(255)\n\
7646 #define\tUINT16_MAX\t(65535)",
7647     (char*)NULL };
7649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7651  *  Description of Solaris_Int_Limits_2 fix
7652  */
7653 tSCC zSolaris_Int_Limits_2Name[] =
7654      "solaris_int_limits_2";
7657  *  File name selection pattern
7658  */
7659 tSCC zSolaris_Int_Limits_2List[] =
7660   "sys/int_limits.h\0";
7662  *  Machine/OS name selection pattern
7663  */
7664 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7665         "*-*-solaris2*",
7666         (const char*)NULL };
7669  *  content selection pattern - do fix if pattern found
7670  */
7671 tSCC zSolaris_Int_Limits_2Select0[] =
7672        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7674 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
7675 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7676   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7679  *  Fix Command Arguments for Solaris_Int_Limits_2
7680  */
7681 static const char* apzSolaris_Int_Limits_2Patch[] = {
7682     "format",
7683     "#define\t%1_FAST16_%2 %132_%2",
7684     (char*)NULL };
7686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7688  *  Description of Solaris_Int_Limits_3 fix
7689  */
7690 tSCC zSolaris_Int_Limits_3Name[] =
7691      "solaris_int_limits_3";
7694  *  File name selection pattern
7695  */
7696 tSCC zSolaris_Int_Limits_3List[] =
7697   "sys/int_limits.h\0";
7699  *  Machine/OS name selection pattern
7700  */
7701 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7702         "*-*-solaris2*",
7703         (const char*)NULL };
7706  *  content selection pattern - do fix if pattern found
7707  */
7708 tSCC zSolaris_Int_Limits_3Select0[] =
7709        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7711 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
7712 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7713   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7716  *  Fix Command Arguments for Solaris_Int_Limits_3
7717  */
7718 static const char* apzSolaris_Int_Limits_3Patch[] = {
7719     "format",
7720     "#define\tSIZE_MAX\t4294967295U",
7721     (char*)NULL };
7723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7725  *  Description of Solaris_Math_1 fix
7726  */
7727 tSCC zSolaris_Math_1Name[] =
7728      "solaris_math_1";
7731  *  File name selection pattern
7732  */
7733 tSCC zSolaris_Math_1List[] =
7734   "iso/math_c99.h\0";
7736  *  Machine/OS name selection pattern
7737  */
7738 #define apzSolaris_Math_1Machs (const char**)NULL
7741  *  content selection pattern - do fix if pattern found
7742  */
7743 tSCC zSolaris_Math_1Select0[] =
7744        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7747  *  content bypass pattern - skip fix if pattern found
7748  */
7749 tSCC zSolaris_Math_1Bypass0[] =
7750        "__GNUC__";
7752 #define    SOLARIS_MATH_1_TEST_CT  2
7753 static tTestDesc aSolaris_Math_1Tests[] = {
7754   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
7755   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
7758  *  Fix Command Arguments for Solaris_Math_1
7759  */
7760 static const char* apzSolaris_Math_1Patch[] = {
7761     "format",
7762     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
7763     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
7764     (char*)NULL };
7766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7768  *  Description of Solaris_Math_10 fix
7769  */
7770 tSCC zSolaris_Math_10Name[] =
7771      "solaris_math_10";
7774  *  File name selection pattern
7775  */
7776 tSCC zSolaris_Math_10List[] =
7777   "iso/math_c99.h\0";
7779  *  Machine/OS name selection pattern
7780  */
7781 #define apzSolaris_Math_10Machs (const char**)NULL
7784  *  content selection pattern - do fix if pattern found
7785  */
7786 tSCC zSolaris_Math_10Select0[] =
7787        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7789 #define    SOLARIS_MATH_10_TEST_CT  1
7790 static tTestDesc aSolaris_Math_10Tests[] = {
7791   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
7794  *  Fix Command Arguments for Solaris_Math_10
7795  */
7796 static const char* apzSolaris_Math_10Patch[] = {
7797     "format",
7798     "#define\tisinf(x) __builtin_isinf(x)",
7799     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
7800 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7801 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
7802 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
7803     (char*)NULL };
7805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7807  *  Description of Solaris_Math_2 fix
7808  */
7809 tSCC zSolaris_Math_2Name[] =
7810      "solaris_math_2";
7813  *  File name selection pattern
7814  */
7815 tSCC zSolaris_Math_2List[] =
7816   "iso/math_c99.h\0";
7818  *  Machine/OS name selection pattern
7819  */
7820 #define apzSolaris_Math_2Machs (const char**)NULL
7823  *  content selection pattern - do fix if pattern found
7824  */
7825 tSCC zSolaris_Math_2Select0[] =
7826        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7829  *  content bypass pattern - skip fix if pattern found
7830  */
7831 tSCC zSolaris_Math_2Bypass0[] =
7832        "__GNUC__";
7834 #define    SOLARIS_MATH_2_TEST_CT  2
7835 static tTestDesc aSolaris_Math_2Tests[] = {
7836   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
7837   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
7840  *  Fix Command Arguments for Solaris_Math_2
7841  */
7842 static const char* apzSolaris_Math_2Patch[] = {
7843     "format",
7844     "#define\tINFINITY\t(__builtin_inff())",
7845     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
7846     (char*)NULL };
7848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7850  *  Description of Solaris_Math_3 fix
7851  */
7852 tSCC zSolaris_Math_3Name[] =
7853      "solaris_math_3";
7856  *  File name selection pattern
7857  */
7858 tSCC zSolaris_Math_3List[] =
7859   "iso/math_c99.h\0";
7861  *  Machine/OS name selection pattern
7862  */
7863 #define apzSolaris_Math_3Machs (const char**)NULL
7866  *  content selection pattern - do fix if pattern found
7867  */
7868 tSCC zSolaris_Math_3Select0[] =
7869        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7872  *  content bypass pattern - skip fix if pattern found
7873  */
7874 tSCC zSolaris_Math_3Bypass0[] =
7875        "__GNUC__";
7877 #define    SOLARIS_MATH_3_TEST_CT  2
7878 static tTestDesc aSolaris_Math_3Tests[] = {
7879   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
7880   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
7883  *  Fix Command Arguments for Solaris_Math_3
7884  */
7885 static const char* apzSolaris_Math_3Patch[] = {
7886     "format",
7887     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
7888     "^#define[ \t]+NAN[ \t]+__builtin_nan",
7889     (char*)NULL };
7891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7893  *  Description of Solaris_Math_4 fix
7894  */
7895 tSCC zSolaris_Math_4Name[] =
7896      "solaris_math_4";
7899  *  File name selection pattern
7900  */
7901 tSCC zSolaris_Math_4List[] =
7902   "iso/math_c99.h\0";
7904  *  Machine/OS name selection pattern
7905  */
7906 #define apzSolaris_Math_4Machs (const char**)NULL
7909  *  content selection pattern - do fix if pattern found
7910  */
7911 tSCC zSolaris_Math_4Select0[] =
7912        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7915  *  content bypass pattern - skip fix if pattern found
7916  */
7917 tSCC zSolaris_Math_4Bypass0[] =
7918        "__GNUC__";
7920 #define    SOLARIS_MATH_4_TEST_CT  2
7921 static tTestDesc aSolaris_Math_4Tests[] = {
7922   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
7923   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
7926  *  Fix Command Arguments for Solaris_Math_4
7927  */
7928 static const char* apzSolaris_Math_4Patch[] = {
7929     "format",
7930     "#define\tfpclassify(x) \\\n\
7931   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
7932     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
7933     (char*)NULL };
7935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7937  *  Description of Solaris_Math_8 fix
7938  */
7939 tSCC zSolaris_Math_8Name[] =
7940      "solaris_math_8";
7943  *  File name selection pattern
7944  */
7945 tSCC zSolaris_Math_8List[] =
7946   "iso/math_c99.h\0";
7948  *  Machine/OS name selection pattern
7949  */
7950 #define apzSolaris_Math_8Machs (const char**)NULL
7953  *  content selection pattern - do fix if pattern found
7954  */
7955 tSCC zSolaris_Math_8Select0[] =
7956        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
7959  *  content bypass pattern - skip fix if pattern found
7960  */
7961 tSCC zSolaris_Math_8Bypass0[] =
7962        "__GNUC__";
7964 #define    SOLARIS_MATH_8_TEST_CT  2
7965 static tTestDesc aSolaris_Math_8Tests[] = {
7966   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
7967   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
7970  *  Fix Command Arguments for Solaris_Math_8
7971  */
7972 static const char* apzSolaris_Math_8Patch[] = {
7973     "format",
7974     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7975 \t\t\t   ? __builtin_signbitf(x) \\\n\
7976 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
7977 \t\t\t     ? __builtin_signbitl(x) \\\n\
7978 \t\t\t     : __builtin_signbit(x))",
7979     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
7980     (char*)NULL };
7982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7984  *  Description of Solaris_Math_9 fix
7985  */
7986 tSCC zSolaris_Math_9Name[] =
7987      "solaris_math_9";
7990  *  File name selection pattern
7991  */
7992 tSCC zSolaris_Math_9List[] =
7993   "iso/math_c99.h\0";
7995  *  Machine/OS name selection pattern
7996  */
7997 #define apzSolaris_Math_9Machs (const char**)NULL
8000  *  content selection pattern - do fix if pattern found
8001  */
8002 tSCC zSolaris_Math_9Select0[] =
8003        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8006  *  content bypass pattern - skip fix if pattern found
8007  */
8008 tSCC zSolaris_Math_9Bypass0[] =
8009        "__GNUC__";
8011 #define    SOLARIS_MATH_9_TEST_CT  2
8012 static tTestDesc aSolaris_Math_9Tests[] = {
8013   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
8014   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
8017  *  Fix Command Arguments for Solaris_Math_9
8018  */
8019 static const char* apzSolaris_Math_9Patch[] = {
8020     "format",
8021     "#define\t%1(x, y)%2__builtin_%1(x, y)",
8022     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
8023     (char*)NULL };
8025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8027  *  Description of Solaris_Math_11 fix
8028  */
8029 tSCC zSolaris_Math_11Name[] =
8030      "solaris_math_11";
8033  *  File name selection pattern
8034  */
8035 tSCC zSolaris_Math_11List[] =
8036   "iso/math_c99.h\0";
8038  *  Machine/OS name selection pattern
8039  */
8040 #define apzSolaris_Math_11Machs (const char**)NULL
8043  *  content selection pattern - do fix if pattern found
8044  */
8045 tSCC zSolaris_Math_11Select0[] =
8046        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
8048 #define    SOLARIS_MATH_11_TEST_CT  1
8049 static tTestDesc aSolaris_Math_11Tests[] = {
8050   { TT_EGREP,    zSolaris_Math_11Select0, (regex_t*)NULL }, };
8053  *  Fix Command Arguments for Solaris_Math_11
8054  */
8055 static const char* apzSolaris_Math_11Patch[] = {
8056     "format",
8057     "#undef\tsignbit\n\
8058 #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
8059 \t\t\t   ? __builtin_signbitf(x) \\\n\
8060 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
8061 \t\t\t     ? __builtin_signbitl(x) \\\n\
8062 \t\t\t     : __builtin_signbit(x))",
8063     "^#undef[ \t]+signbit\n\
8064 #if defined\\(__sparc\\)\n\
8065 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
8066 [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
8067 [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
8068 #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
8069 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
8070 [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
8071 [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
8072 [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
8073 [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
8074 [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
8075 [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
8076 #endif",
8077     (char*)NULL };
8079 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8081  *  Description of Solaris_Math_12 fix
8082  */
8083 tSCC zSolaris_Math_12Name[] =
8084      "solaris_math_12";
8087  *  File name selection pattern
8088  */
8089 tSCC zSolaris_Math_12List[] =
8090   "math.h\0";
8092  *  Machine/OS name selection pattern
8093  */
8094 tSCC* apzSolaris_Math_12Machs[] = {
8095         "*-*-solaris2*",
8096         (const char*)NULL };
8099  *  content selection pattern - do fix if pattern found
8100  */
8101 tSCC zSolaris_Math_12Select0[] =
8102        "#undef.*_GLIBCXX_USE_C99_MATH";
8104 #define    SOLARIS_MATH_12_TEST_CT  1
8105 static tTestDesc aSolaris_Math_12Tests[] = {
8106   { TT_EGREP,    zSolaris_Math_12Select0, (regex_t*)NULL }, };
8109  *  Fix Command Arguments for Solaris_Math_12
8110  */
8111 static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
8112     "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
8113     (char*)NULL };
8115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8117  *  Description of Solaris_Once_Init_1 fix
8118  */
8119 tSCC zSolaris_Once_Init_1Name[] =
8120      "solaris_once_init_1";
8123  *  File name selection pattern
8124  */
8125 tSCC zSolaris_Once_Init_1List[] =
8126   "pthread.h\0";
8128  *  Machine/OS name selection pattern
8129  */
8130 tSCC* apzSolaris_Once_Init_1Machs[] = {
8131         "*-*-solaris*",
8132         (const char*)NULL };
8135  *  content selection pattern - do fix if pattern found
8136  */
8137 tSCC zSolaris_Once_Init_1Select0[] =
8138        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8140 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
8141 static tTestDesc aSolaris_Once_Init_1Tests[] = {
8142   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
8145  *  Fix Command Arguments for Solaris_Once_Init_1
8146  */
8147 static const char* apzSolaris_Once_Init_1Patch[] = {
8148     "format",
8149     "%1{%2}%3",
8150     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
8151     (char*)NULL };
8153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8155  *  Description of Solaris_Posix_Spawn_Restrict fix
8156  */
8157 tSCC zSolaris_Posix_Spawn_RestrictName[] =
8158      "solaris_posix_spawn_restrict";
8161  *  File name selection pattern
8162  */
8163 tSCC zSolaris_Posix_Spawn_RestrictList[] =
8164   "spawn.h\0";
8166  *  Machine/OS name selection pattern
8167  */
8168 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
8169         "*-*-solaris2*",
8170         (const char*)NULL };
8173  *  content selection pattern - do fix if pattern found
8174  */
8175 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
8176        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
8178 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
8179 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
8180   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
8183  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
8184  */
8185 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
8186     "format",
8187     "%1*_RESTRICT_KYWD %2%3",
8188     (char*)NULL };
8190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8192  *  Description of Solaris_Pow_Int_Overload fix
8193  */
8194 tSCC zSolaris_Pow_Int_OverloadName[] =
8195      "solaris_pow_int_overload";
8198  *  File name selection pattern
8199  */
8200 tSCC zSolaris_Pow_Int_OverloadList[] =
8201   "iso/math_iso.h\0";
8203  *  Machine/OS name selection pattern
8204  */
8205 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
8206         "*-*-solaris2*",
8207         (const char*)NULL };
8210  *  content selection pattern - do fix if pattern found
8211  */
8212 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
8213        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
8214 [^{}]*\\}";
8216 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
8217 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
8218   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
8221  *  Fix Command Arguments for Solaris_Pow_Int_Overload
8222  */
8223 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
8224     "format",
8225     "#if __cplusplus < 201103L\n\
8226 %0\n\
8227 #endif",
8228     (char*)NULL };
8230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8232  *  Description of Solaris_Rwlock_Init_1 fix
8233  */
8234 tSCC zSolaris_Rwlock_Init_1Name[] =
8235      "solaris_rwlock_init_1";
8238  *  File name selection pattern
8239  */
8240 tSCC zSolaris_Rwlock_Init_1List[] =
8241   "pthread.h\0";
8243  *  Machine/OS name selection pattern
8244  */
8245 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
8246         "*-*-solaris*",
8247         (const char*)NULL };
8250  *  content selection pattern - do fix if pattern found
8251  */
8252 tSCC zSolaris_Rwlock_Init_1Select0[] =
8253        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8255 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
8256 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
8257   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
8260  *  Fix Command Arguments for Solaris_Rwlock_Init_1
8261  */
8262 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
8263     "format",
8264     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
8265 %0\n\
8266 #else\n\
8267 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
8268 #endif",
8269     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
8270     (char*)NULL };
8272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8274  *  Description of Solaris_Std___Filbuf fix
8275  */
8276 tSCC zSolaris_Std___FilbufName[] =
8277      "solaris_std___filbuf";
8280  *  File name selection pattern
8281  */
8282 tSCC zSolaris_Std___FilbufList[] =
8283   "stdio.h\0";
8285  *  Machine/OS name selection pattern
8286  */
8287 tSCC* apzSolaris_Std___FilbufMachs[] = {
8288         "*-*-solaris2*",
8289         (const char*)NULL };
8292  *  content selection pattern - do fix if pattern found
8293  */
8294 tSCC zSolaris_Std___FilbufSelect0[] =
8295        "(using std::perror;\n\
8296 )(#endif)";
8299  *  content bypass pattern - skip fix if pattern found
8300  */
8301 tSCC zSolaris_Std___FilbufBypass0[] =
8302        "using std::__filbuf";
8304 #define    SOLARIS_STD___FILBUF_TEST_CT  2
8305 static tTestDesc aSolaris_Std___FilbufTests[] = {
8306   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
8307   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
8310  *  Fix Command Arguments for Solaris_Std___Filbuf
8311  */
8312 static const char* apzSolaris_Std___FilbufPatch[] = {
8313     "format",
8314     "%1#ifndef _LP64\n\
8315 using std::__filbuf;\n\
8316 using std::__flsbuf;\n\
8317 #endif\n\
8318 %2",
8319     (char*)NULL };
8321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8323  *  Description of Solaris_Std_Gets_Cxx14 fix
8324  */
8325 tSCC zSolaris_Std_Gets_Cxx14Name[] =
8326      "solaris_std_gets_cxx14";
8329  *  File name selection pattern
8330  */
8331 tSCC zSolaris_Std_Gets_Cxx14List[] =
8332   "stdio.h\0";
8334  *  Machine/OS name selection pattern
8335  */
8336 tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = {
8337         "*-*-solaris2*",
8338         (const char*)NULL };
8341  *  content selection pattern - do fix if pattern found
8342  */
8343 tSCC zSolaris_Std_Gets_Cxx14Select0[] =
8344        "using std::gets;";
8346 #define    SOLARIS_STD_GETS_CXX14_TEST_CT  1
8347 static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = {
8348   { TT_EGREP,    zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, };
8351  *  Fix Command Arguments for Solaris_Std_Gets_Cxx14
8352  */
8353 static const char* apzSolaris_Std_Gets_Cxx14Patch[] = {
8354     "format",
8355     "#if __cplusplus < 201402L\n\
8356 %0\n\
8357 #endif",
8358     (char*)NULL };
8360 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8362  *  Description of Solaris_Stdio_Tag fix
8363  */
8364 tSCC zSolaris_Stdio_TagName[] =
8365      "solaris_stdio_tag";
8368  *  File name selection pattern
8369  */
8370 tSCC zSolaris_Stdio_TagList[] =
8371   "stdio_tag.h\0";
8373  *  Machine/OS name selection pattern
8374  */
8375 #define apzSolaris_Stdio_TagMachs (const char**)NULL
8378  *  content selection pattern - do fix if pattern found
8379  */
8380 tSCC zSolaris_Stdio_TagSelect0[] =
8381        "__cplusplus < 54321L";
8384  *  content bypass pattern - skip fix if pattern found
8385  */
8386 tSCC zSolaris_Stdio_TagBypass0[] =
8387        "__GNUC__";
8389 #define    SOLARIS_STDIO_TAG_TEST_CT  2
8390 static tTestDesc aSolaris_Stdio_TagTests[] = {
8391   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
8392   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
8395  *  Fix Command Arguments for Solaris_Stdio_Tag
8396  */
8397 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
8398     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
8399     (char*)NULL };
8401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8403  *  Description of Solaris_Stdlib_Noreturn fix
8404  */
8405 tSCC zSolaris_Stdlib_NoreturnName[] =
8406      "solaris_stdlib_noreturn";
8409  *  File name selection pattern
8410  */
8411 tSCC zSolaris_Stdlib_NoreturnList[] =
8412   "iso/stdlib_c99.h\0";
8414  *  Machine/OS name selection pattern
8415  */
8416 tSCC* apzSolaris_Stdlib_NoreturnMachs[] = {
8417         "*-*-solaris2*",
8418         (const char*)NULL };
8421  *  content selection pattern - do fix if pattern found
8422  */
8423 tSCC zSolaris_Stdlib_NoreturnSelect0[] =
8424        "(extern) _Noreturn (void quick_exit\\(int\\));";
8426 #define    SOLARIS_STDLIB_NORETURN_TEST_CT  1
8427 static tTestDesc aSolaris_Stdlib_NoreturnTests[] = {
8428   { TT_EGREP,    zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, };
8431  *  Fix Command Arguments for Solaris_Stdlib_Noreturn
8432  */
8433 static const char* apzSolaris_Stdlib_NoreturnPatch[] = {
8434     "format",
8435     "%1 %2 __attribute__((__noreturn__));",
8436     (char*)NULL };
8438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8440  *  Description of Statsswtch fix
8441  */
8442 tSCC zStatsswtchName[] =
8443      "statsswtch";
8446  *  File name selection pattern
8447  */
8448 tSCC zStatsswtchList[] =
8449   "rpcsvc/rstat.h\0";
8451  *  Machine/OS name selection pattern
8452  */
8453 #define apzStatsswtchMachs (const char**)NULL
8456  *  content selection pattern - do fix if pattern found
8457  */
8458 tSCC zStatsswtchSelect0[] =
8459        "boottime$";
8461 #define    STATSSWTCH_TEST_CT  1
8462 static tTestDesc aStatsswtchTests[] = {
8463   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
8466  *  Fix Command Arguments for Statsswtch
8467  */
8468 static const char* apzStatsswtchPatch[] = {
8469     "format",
8470     "boottime;",
8471     (char*)NULL };
8473 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8475  *  Description of Stdio_Stdarg_H fix
8476  */
8477 tSCC zStdio_Stdarg_HName[] =
8478      "stdio_stdarg_h";
8481  *  File name selection pattern
8482  */
8483 tSCC zStdio_Stdarg_HList[] =
8484   "stdio.h\0";
8486  *  Machine/OS name selection pattern
8487  */
8488 tSCC* apzStdio_Stdarg_HMachs[] = {
8489         "*-*-solaris2.1[0-9]*",
8490         (const char*)NULL };
8493  *  content bypass pattern - skip fix if pattern found
8494  */
8495 tSCC zStdio_Stdarg_HBypass0[] =
8496        "include.*(stdarg.h|machine/ansi.h)";
8498 #define    STDIO_STDARG_H_TEST_CT  1
8499 static tTestDesc aStdio_Stdarg_HTests[] = {
8500   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
8503  *  Fix Command Arguments for Stdio_Stdarg_H
8504  */
8505 static const char* apzStdio_Stdarg_HPatch[] = {
8506     "wrap",
8507     "#define __need___va_list\n\
8508 #include <stdarg.h>\n",
8509     (char*)NULL };
8511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8513  *  Description of Stdio_Va_List fix
8514  */
8515 tSCC zStdio_Va_ListName[] =
8516      "stdio_va_list";
8519  *  File name selection pattern
8520  */
8521 tSCC zStdio_Va_ListList[] =
8522   "stdio.h\0";
8524  *  Machine/OS name selection pattern
8525  */
8526 tSCC* apzStdio_Va_ListMachs[] = {
8527         "*-*-solaris2.1[0-9]*",
8528         (const char*)NULL };
8531  *  content bypass pattern - skip fix if pattern found
8532  */
8533 tSCC zStdio_Va_ListBypass0[] =
8534        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8536 #define    STDIO_VA_LIST_TEST_CT  1
8537 static tTestDesc aStdio_Va_ListTests[] = {
8538   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
8541  *  Fix Command Arguments for Stdio_Va_List
8542  */
8543 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
8544     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8545 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8546 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8547 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8548 s@ va_list@ __not_va_list__@\n\
8549 s@\\*va_list@*__not_va_list__@\n\
8550 s@ __va_list)@ __gnuc_va_list)@\n\
8551 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8552 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8553 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8554 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8555 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8556 s@VA_LIST@DUMMY_VA_LIST@\n\
8557 s@_Va_LIST@_VA_LIST@",
8558     (char*)NULL };
8560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8562  *  Description of Stdio_Va_List_Clients fix
8563  */
8564 tSCC zStdio_Va_List_ClientsName[] =
8565      "stdio_va_list_clients";
8568  *  File name selection pattern
8569  */
8570 tSCC zStdio_Va_List_ClientsList[] =
8571   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
8573  *  Machine/OS name selection pattern
8574  */
8575 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
8578  *  content bypass pattern - skip fix if pattern found
8579  */
8580 tSCC zStdio_Va_List_ClientsBypass0[] =
8581        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8582 tSCC zStdio_Va_List_ClientsBypass1[] =
8583        "include <stdarg\\.h>|#ifdef va_start";
8585 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
8586 static tTestDesc aStdio_Va_List_ClientsTests[] = {
8587   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
8588   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
8591  *  Fix Command Arguments for Stdio_Va_List_Clients
8592  */
8593 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
8594     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8595 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8596 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8597 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8598 s@ va_list@ __not_va_list__@\n\
8599 s@\\*va_list@*__not_va_list__@\n\
8600 s@ __va_list)@ __gnuc_va_list)@\n\
8601 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8602 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8603 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8604 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8605 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8606 s@VA_LIST@DUMMY_VA_LIST@\n\
8607 s@_Va_LIST@_VA_LIST@",
8608     (char*)NULL };
8610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8612  *  Description of Strict_Ansi_Not fix
8613  */
8614 tSCC zStrict_Ansi_NotName[] =
8615      "strict_ansi_not";
8618  *  File name selection pattern
8619  */
8620 #define zStrict_Ansi_NotList (char*)NULL
8622  *  Machine/OS name selection pattern
8623  */
8624 #define apzStrict_Ansi_NotMachs (const char**)NULL
8627  *  content selection pattern - do fix if pattern found
8628  */
8629 tSCC zStrict_Ansi_NotSelect0[] =
8630        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
8633  *  content bypass pattern - skip fix if pattern found
8634  */
8635 tSCC zStrict_Ansi_NotBypass0[] =
8636        "GNU and MIPS C compilers define __STDC__ differently";
8637 tSCC zStrict_Ansi_NotBypass1[] =
8638        "__SCO_VERSION__.*__STDC__ != 1";
8641  *  perform the C function call test
8642  */
8643 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
8645 #define    STRICT_ANSI_NOT_TEST_CT  4
8646 static tTestDesc aStrict_Ansi_NotTests[] = {
8647   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
8648   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
8649   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
8650   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
8653  *  Fix Command Arguments for Strict_Ansi_Not
8654  */
8655 static const char* apzStrict_Ansi_NotPatch[] = {
8656     "format",
8657     "%1 !defined(__STRICT_ANSI__)",
8658     (char*)NULL };
8660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8662  *  Description of Strict_Ansi_Not_Ctd fix
8663  */
8664 tSCC zStrict_Ansi_Not_CtdName[] =
8665      "strict_ansi_not_ctd";
8668  *  File name selection pattern
8669  */
8670 tSCC zStrict_Ansi_Not_CtdList[] =
8671   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
8673  *  Machine/OS name selection pattern
8674  */
8675 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
8678  *  content selection pattern - do fix if pattern found
8679  */
8680 tSCC zStrict_Ansi_Not_CtdSelect0[] =
8681        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
8684  *  perform the C function call test
8685  */
8686 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
8688 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
8689 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
8690   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
8691   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
8694  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
8695  */
8696 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
8697     "format",
8698     "%1 !defined(__STRICT_ANSI__)",
8699     (char*)NULL };
8701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8703  *  Description of Strict_Ansi_Only fix
8704  */
8705 tSCC zStrict_Ansi_OnlyName[] =
8706      "strict_ansi_only";
8709  *  File name selection pattern
8710  */
8711 #define zStrict_Ansi_OnlyList (char*)NULL
8713  *  Machine/OS name selection pattern
8714  */
8715 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
8718  *  content selection pattern - do fix if pattern found
8719  */
8720 tSCC zStrict_Ansi_OnlySelect0[] =
8721        "^([ \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)";
8724  *  perform the C function call test
8725  */
8726 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
8728 #define    STRICT_ANSI_ONLY_TEST_CT  2
8729 static tTestDesc aStrict_Ansi_OnlyTests[] = {
8730   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
8731   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
8734  *  Fix Command Arguments for Strict_Ansi_Only
8735  */
8736 static const char* apzStrict_Ansi_OnlyPatch[] = {
8737     "format",
8738     "%1 defined(__STRICT_ANSI__)",
8739     (char*)NULL };
8741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8743  *  Description of Struct_File fix
8744  */
8745 tSCC zStruct_FileName[] =
8746      "struct_file";
8749  *  File name selection pattern
8750  */
8751 tSCC zStruct_FileList[] =
8752   "rpc/xdr.h\0";
8754  *  Machine/OS name selection pattern
8755  */
8756 #define apzStruct_FileMachs (const char**)NULL
8759  *  content selection pattern - do fix if pattern found
8760  */
8761 tSCC zStruct_FileSelect0[] =
8762        "^.*xdrstdio_create.*struct __file_s";
8764 #define    STRUCT_FILE_TEST_CT  1
8765 static tTestDesc aStruct_FileTests[] = {
8766   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
8769  *  Fix Command Arguments for Struct_File
8770  */
8771 static const char* apzStruct_FilePatch[] = {
8772     "format",
8773     "struct __file_s;\n\
8774 %0",
8775     (char*)NULL };
8777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8779  *  Description of Struct_Sockaddr fix
8780  */
8781 tSCC zStruct_SockaddrName[] =
8782      "struct_sockaddr";
8785  *  File name selection pattern
8786  */
8787 tSCC zStruct_SockaddrList[] =
8788   "rpc/auth.h\0";
8790  *  Machine/OS name selection pattern
8791  */
8792 #define apzStruct_SockaddrMachs (const char**)NULL
8795  *  content selection pattern - do fix if pattern found
8796  */
8797 tSCC zStruct_SockaddrSelect0[] =
8798        "^.*authdes_create.*struct sockaddr[^_]";
8801  *  content bypass pattern - skip fix if pattern found
8802  */
8803 tSCC zStruct_SockaddrBypass0[] =
8804        "<sys/socket.h>";
8805 tSCC zStruct_SockaddrBypass1[] =
8806        "struct sockaddr;\n";
8808 #define    STRUCT_SOCKADDR_TEST_CT  3
8809 static tTestDesc aStruct_SockaddrTests[] = {
8810   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
8811   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
8812   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
8815  *  Fix Command Arguments for Struct_Sockaddr
8816  */
8817 static const char* apzStruct_SockaddrPatch[] = {
8818     "format",
8819     "struct sockaddr;\n\
8820 %0",
8821     (char*)NULL };
8823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8825  *  Description of Sun_Auth_Proto fix
8826  */
8827 tSCC zSun_Auth_ProtoName[] =
8828      "sun_auth_proto";
8831  *  File name selection pattern
8832  */
8833 tSCC zSun_Auth_ProtoList[] =
8834   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
8836  *  Machine/OS name selection pattern
8837  */
8838 #define apzSun_Auth_ProtoMachs (const char**)NULL
8841  *  content selection pattern - do fix if pattern found
8842  */
8843 tSCC zSun_Auth_ProtoSelect0[] =
8844        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
8847  *  content bypass pattern - skip fix if pattern found
8848  */
8849 tSCC zSun_Auth_ProtoBypass0[] =
8850        "__cplusplus";
8852 #define    SUN_AUTH_PROTO_TEST_CT  2
8853 static tTestDesc aSun_Auth_ProtoTests[] = {
8854   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
8855   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
8858  *  Fix Command Arguments for Sun_Auth_Proto
8859  */
8860 static const char* apzSun_Auth_ProtoPatch[] = {
8861     "format",
8862     "#ifdef __cplusplus\n\
8863 %1(...);%2\n\
8864 #else\n\
8865 %1();%2\n\
8866 #endif",
8867     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
8868     (char*)NULL };
8870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8872  *  Description of Sun_Bogus_Ifdef fix
8873  */
8874 tSCC zSun_Bogus_IfdefName[] =
8875      "sun_bogus_ifdef";
8878  *  File name selection pattern
8879  */
8880 tSCC zSun_Bogus_IfdefList[] =
8881   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
8883  *  Machine/OS name selection pattern
8884  */
8885 #define apzSun_Bogus_IfdefMachs (const char**)NULL
8888  *  content selection pattern - do fix if pattern found
8889  */
8890 tSCC zSun_Bogus_IfdefSelect0[] =
8891        "#ifdef(.*\\|\\|.*)";
8893 #define    SUN_BOGUS_IFDEF_TEST_CT  1
8894 static tTestDesc aSun_Bogus_IfdefTests[] = {
8895   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
8898  *  Fix Command Arguments for Sun_Bogus_Ifdef
8899  */
8900 static const char* apzSun_Bogus_IfdefPatch[] = {
8901     "format",
8902     "#if%1",
8903     (char*)NULL };
8905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8907  *  Description of Sun_Catmacro fix
8908  */
8909 tSCC zSun_CatmacroName[] =
8910      "sun_catmacro";
8913  *  File name selection pattern
8914  */
8915 tSCC zSun_CatmacroList[] =
8916   "pixrect/memvar.h\0";
8918  *  Machine/OS name selection pattern
8919  */
8920 #define apzSun_CatmacroMachs (const char**)NULL
8923  *  content selection pattern - do fix if pattern found
8924  */
8925 tSCC zSun_CatmacroSelect0[] =
8926        "^#define[ \t]+CAT\\(a,b\\).*";
8928 #define    SUN_CATMACRO_TEST_CT  1
8929 static tTestDesc aSun_CatmacroTests[] = {
8930   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
8933  *  Fix Command Arguments for Sun_Catmacro
8934  */
8935 static const char* apzSun_CatmacroPatch[] = {
8936     "format",
8937     "#ifdef __STDC__\n\
8938 #  define CAT(a,b) a##b\n\
8939 #else\n\
8940 %0\n\
8941 #endif",
8942     (char*)NULL };
8944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8946  *  Description of Sun_Malloc fix
8947  */
8948 tSCC zSun_MallocName[] =
8949      "sun_malloc";
8952  *  File name selection pattern
8953  */
8954 tSCC zSun_MallocList[] =
8955   "malloc.h\0";
8957  *  Machine/OS name selection pattern
8958  */
8959 #define apzSun_MallocMachs (const char**)NULL
8962  *  content bypass pattern - skip fix if pattern found
8963  */
8964 tSCC zSun_MallocBypass0[] =
8965        "_CLASSIC_ANSI_TYPES";
8967 #define    SUN_MALLOC_TEST_CT  1
8968 static tTestDesc aSun_MallocTests[] = {
8969   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
8972  *  Fix Command Arguments for Sun_Malloc
8973  */
8974 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
8975     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
8976     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
8977     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
8978     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
8979     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
8980     (char*)NULL };
8982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8984  *  Description of Sun_Rusers_Semi fix
8985  */
8986 tSCC zSun_Rusers_SemiName[] =
8987      "sun_rusers_semi";
8990  *  File name selection pattern
8991  */
8992 tSCC zSun_Rusers_SemiList[] =
8993   "rpcsvc/rusers.h\0";
8995  *  Machine/OS name selection pattern
8996  */
8997 #define apzSun_Rusers_SemiMachs (const char**)NULL
9000  *  content selection pattern - do fix if pattern found
9001  */
9002 tSCC zSun_Rusers_SemiSelect0[] =
9003        "_cnt$";
9005 #define    SUN_RUSERS_SEMI_TEST_CT  1
9006 static tTestDesc aSun_Rusers_SemiTests[] = {
9007   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
9010  *  Fix Command Arguments for Sun_Rusers_Semi
9011  */
9012 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
9013     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
9014     (char*)NULL };
9016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9018  *  Description of Sun_Signal fix
9019  */
9020 tSCC zSun_SignalName[] =
9021      "sun_signal";
9024  *  File name selection pattern
9025  */
9026 tSCC zSun_SignalList[] =
9027   "sys/signal.h\0signal.h\0";
9029  *  Machine/OS name selection pattern
9030  */
9031 #define apzSun_SignalMachs (const char**)NULL
9034  *  content selection pattern - do fix if pattern found
9035  */
9036 tSCC zSun_SignalSelect0[] =
9037        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
9039 #define    SUN_SIGNAL_TEST_CT  1
9040 static tTestDesc aSun_SignalTests[] = {
9041   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
9044  *  Fix Command Arguments for Sun_Signal
9045  */
9046 static const char* apzSun_SignalPatch[] = {
9047     "format",
9048     "#ifdef __cplusplus\n\
9049 void\t(*signal(...))(...);\n\
9050 #else\n\
9051 %0\n\
9052 #endif",
9053     (char*)NULL };
9055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9057  *  Description of Sunos_Strlen fix
9058  */
9059 tSCC zSunos_StrlenName[] =
9060      "sunos_strlen";
9063  *  File name selection pattern
9064  */
9065 tSCC zSunos_StrlenList[] =
9066   "strings.h\0";
9068  *  Machine/OS name selection pattern
9069  */
9070 #define apzSunos_StrlenMachs (const char**)NULL
9073  *  content selection pattern - do fix if pattern found
9074  */
9075 tSCC zSunos_StrlenSelect0[] =
9076        "int[ \t]*strlen\\(\\);(.*)";
9078 #define    SUNOS_STRLEN_TEST_CT  1
9079 static tTestDesc aSunos_StrlenTests[] = {
9080   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
9083  *  Fix Command Arguments for Sunos_Strlen
9084  */
9085 static const char* apzSunos_StrlenPatch[] = {
9086     "format",
9087     "__SIZE_TYPE__ strlen();%1",
9088     (char*)NULL };
9090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9092  *  Description of Suse_Linux_Vt_Cxx fix
9093  */
9094 tSCC zSuse_Linux_Vt_CxxName[] =
9095      "suse_linux_vt_cxx";
9098  *  File name selection pattern
9099  */
9100 tSCC zSuse_Linux_Vt_CxxList[] =
9101   "linux/vt.h\0";
9103  *  Machine/OS name selection pattern
9104  */
9105 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
9108  *  content selection pattern - do fix if pattern found
9109  */
9110 tSCC zSuse_Linux_Vt_CxxSelect0[] =
9111        "^[ \t]*unsigned int new;";
9113 #define    SUSE_LINUX_VT_CXX_TEST_CT  1
9114 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
9115   { TT_EGREP,    zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
9118  *  Fix Command Arguments for Suse_Linux_Vt_Cxx
9119  */
9120 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
9121     "format",
9122     "unsigned int newev;",
9123     (char*)NULL };
9125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9127  *  Description of Svr4_Disable_Opt fix
9128  */
9129 tSCC zSvr4_Disable_OptName[] =
9130      "svr4_disable_opt";
9133  *  File name selection pattern
9134  */
9135 tSCC zSvr4_Disable_OptList[] =
9136   "string.h\0";
9138  *  Machine/OS name selection pattern
9139  */
9140 #define apzSvr4_Disable_OptMachs (const char**)NULL
9143  *  content selection pattern - do fix if pattern found
9144  */
9145 tSCC zSvr4_Disable_OptSelect0[] =
9146        "#define.*__std_hdr_";
9148 #define    SVR4_DISABLE_OPT_TEST_CT  1
9149 static tTestDesc aSvr4_Disable_OptTests[] = {
9150   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
9153  *  Fix Command Arguments for Svr4_Disable_Opt
9154  */
9155 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
9156     "-e", "/#define.*__std_hdr_/d",
9157     (char*)NULL };
9159 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9161  *  Description of Svr4_Getcwd fix
9162  */
9163 tSCC zSvr4_GetcwdName[] =
9164      "svr4_getcwd";
9167  *  File name selection pattern
9168  */
9169 tSCC zSvr4_GetcwdList[] =
9170   "stdlib.h\0unistd.h\0prototypes.h\0";
9172  *  Machine/OS name selection pattern
9173  */
9174 #define apzSvr4_GetcwdMachs (const char**)NULL
9177  *  content selection pattern - do fix if pattern found
9178  */
9179 tSCC zSvr4_GetcwdSelect0[] =
9180        "getcwd\\(char \\*, int\\)";
9182 #define    SVR4_GETCWD_TEST_CT  1
9183 static tTestDesc aSvr4_GetcwdTests[] = {
9184   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
9187  *  Fix Command Arguments for Svr4_Getcwd
9188  */
9189 static const char* apzSvr4_GetcwdPatch[] = {
9190     "format",
9191     "getcwd(char *, size_t)",
9192     (char*)NULL };
9194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9196  *  Description of Svr4_Profil fix
9197  */
9198 tSCC zSvr4_ProfilName[] =
9199      "svr4_profil";
9202  *  File name selection pattern
9203  */
9204 tSCC zSvr4_ProfilList[] =
9205   "stdlib.h\0unistd.h\0";
9207  *  Machine/OS name selection pattern
9208  */
9209 #define apzSvr4_ProfilMachs (const char**)NULL
9212  *  content selection pattern - do fix if pattern found
9213  */
9214 tSCC zSvr4_ProfilSelect0[] =
9215        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
9217 #define    SVR4_PROFIL_TEST_CT  1
9218 static tTestDesc aSvr4_ProfilTests[] = {
9219   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
9222  *  Fix Command Arguments for Svr4_Profil
9223  */
9224 static const char* apzSvr4_ProfilPatch[] = {
9225     "format",
9226     "profil(unsigned short *, size_t, int, unsigned int)",
9227     (char*)NULL };
9229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9231  *  Description of Svr4_Sighandler_Type fix
9232  */
9233 tSCC zSvr4_Sighandler_TypeName[] =
9234      "svr4_sighandler_type";
9237  *  File name selection pattern
9238  */
9239 tSCC zSvr4_Sighandler_TypeList[] =
9240   "sys/signal.h\0";
9242  *  Machine/OS name selection pattern
9243  */
9244 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
9247  *  content selection pattern - do fix if pattern found
9248  */
9249 tSCC zSvr4_Sighandler_TypeSelect0[] =
9250        "void *\\(\\*\\)\\(\\)";
9252 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
9253 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
9254   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
9257  *  Fix Command Arguments for Svr4_Sighandler_Type
9258  */
9259 static const char* apzSvr4_Sighandler_TypePatch[] = {
9260     "format",
9261     "void (*)(int)",
9262     (char*)NULL };
9264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9266  *  Description of Svr4_Undeclared_Getrnge fix
9267  */
9268 tSCC zSvr4_Undeclared_GetrngeName[] =
9269      "svr4_undeclared_getrnge";
9272  *  File name selection pattern
9273  */
9274 tSCC zSvr4_Undeclared_GetrngeList[] =
9275   "regexp.h\0";
9277  *  Machine/OS name selection pattern
9278  */
9279 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
9282  *  content selection pattern - do fix if pattern found
9283  */
9284 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
9285        "getrnge";
9288  *  content bypass pattern - skip fix if pattern found
9289  */
9290 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
9291        "static void getrnge";
9293 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
9294 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
9295   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
9296   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
9299  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
9300  */
9301 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
9302     "format",
9303     "%0\n\
9304 static int getrnge ();",
9305     "^static int[ \t]+size;",
9306     (char*)NULL };
9308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9310  *  Description of Sysv68_String fix
9311  */
9312 tSCC zSysv68_StringName[] =
9313      "sysv68_string";
9316  *  File name selection pattern
9317  */
9318 tSCC zSysv68_StringList[] =
9319   "testing.h\0string.h\0";
9321  *  Machine/OS name selection pattern
9322  */
9323 #define apzSysv68_StringMachs (const char**)NULL
9326  *  content bypass pattern - skip fix if pattern found
9327  */
9328 tSCC zSysv68_StringBypass0[] =
9329        "_CLASSIC_ANSI_TYPES";
9331 #define    SYSV68_STRING_TEST_CT  1
9332 static tTestDesc aSysv68_StringTests[] = {
9333   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
9336  *  Fix Command Arguments for Sysv68_String
9337  */
9338 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
9339     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
9340     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
9341     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
9342     "-e", "/^extern char$/N",
9343     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
9344     "-e", "/^extern int$/N",
9345     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
9346     "-e", "/^\tstrncmp(),$/N",
9347     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
9348 extern unsigned int\\\n\
9349 \\2/",
9350     (char*)NULL };
9352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9354  *  Description of Sysz_Stdlib_For_Sun fix
9355  */
9356 tSCC zSysz_Stdlib_For_SunName[] =
9357      "sysz_stdlib_for_sun";
9360  *  File name selection pattern
9361  */
9362 tSCC zSysz_Stdlib_For_SunList[] =
9363   "stdlib.h\0";
9365  *  Machine/OS name selection pattern
9366  */
9367 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
9370  *  content selection pattern - do fix if pattern found
9371  */
9372 tSCC zSysz_Stdlib_For_SunSelect0[] =
9373        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
9376  *  content bypass pattern - skip fix if pattern found
9377  */
9378 tSCC zSysz_Stdlib_For_SunBypass0[] =
9379        "_CLASSIC_ANSI_TYPES";
9381 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
9382 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
9383   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
9384   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
9387  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
9388  */
9389 static const char* apzSysz_Stdlib_For_SunPatch[] = {
9390     "format",
9391     "void *\t%1(",
9392     (char*)NULL };
9394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9396  *  Description of Thread_Keyword fix
9397  */
9398 tSCC zThread_KeywordName[] =
9399      "thread_keyword";
9402  *  File name selection pattern
9403  */
9404 tSCC zThread_KeywordList[] =
9405   "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
9407  *  Machine/OS name selection pattern
9408  */
9409 #define apzThread_KeywordMachs (const char**)NULL
9412  *  content selection pattern - do fix if pattern found
9413  */
9414 tSCC zThread_KeywordSelect0[] =
9415        "([* ])__thread([,)])";
9417 #define    THREAD_KEYWORD_TEST_CT  1
9418 static tTestDesc aThread_KeywordTests[] = {
9419   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
9422  *  Fix Command Arguments for Thread_Keyword
9423  */
9424 static const char* apzThread_KeywordPatch[] = {
9425     "format",
9426     "%1__thr%2",
9427     (char*)NULL };
9429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9431  *  Description of Tinfo_Cplusplus fix
9432  */
9433 tSCC zTinfo_CplusplusName[] =
9434      "tinfo_cplusplus";
9437  *  File name selection pattern
9438  */
9439 tSCC zTinfo_CplusplusList[] =
9440   "tinfo.h\0";
9442  *  Machine/OS name selection pattern
9443  */
9444 #define apzTinfo_CplusplusMachs (const char**)NULL
9447  *  content selection pattern - do fix if pattern found
9448  */
9449 tSCC zTinfo_CplusplusSelect0[] =
9450        "[ \t]_cplusplus";
9452 #define    TINFO_CPLUSPLUS_TEST_CT  1
9453 static tTestDesc aTinfo_CplusplusTests[] = {
9454   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
9457  *  Fix Command Arguments for Tinfo_Cplusplus
9458  */
9459 static const char* apzTinfo_CplusplusPatch[] = {
9460     "format",
9461     " __cplusplus",
9462     (char*)NULL };
9464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9466  *  Description of Ultrix_Const fix
9467  */
9468 tSCC zUltrix_ConstName[] =
9469      "ultrix_const";
9472  *  File name selection pattern
9473  */
9474 tSCC zUltrix_ConstList[] =
9475   "stdio.h\0";
9477  *  Machine/OS name selection pattern
9478  */
9479 #define apzUltrix_ConstMachs (const char**)NULL
9482  *  content selection pattern - do fix if pattern found
9483  */
9484 tSCC zUltrix_ConstSelect0[] =
9485        "perror\\( char \\*";
9487 #define    ULTRIX_CONST_TEST_CT  1
9488 static tTestDesc aUltrix_ConstTests[] = {
9489   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
9492  *  Fix Command Arguments for Ultrix_Const
9493  */
9494 static const char* apzUltrix_ConstPatch[] = {
9495     "format",
9496     "%1 const %3 *__",
9497     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
9498     (char*)NULL };
9500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9502  *  Description of Ultrix_Const2 fix
9503  */
9504 tSCC zUltrix_Const2Name[] =
9505      "ultrix_const2";
9508  *  File name selection pattern
9509  */
9510 tSCC zUltrix_Const2List[] =
9511   "stdio.h\0";
9513  *  Machine/OS name selection pattern
9514  */
9515 #define apzUltrix_Const2Machs (const char**)NULL
9518  *  content selection pattern - do fix if pattern found
9519  */
9520 tSCC zUltrix_Const2Select0[] =
9521        "\\*fopen\\( char \\*";
9523 #define    ULTRIX_CONST2_TEST_CT  1
9524 static tTestDesc aUltrix_Const2Tests[] = {
9525   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
9528  *  Fix Command Arguments for Ultrix_Const2
9529  */
9530 static const char* apzUltrix_Const2Patch[] = {
9531     "format",
9532     "%1( const char *%3, const char *",
9533     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
9534     (char*)NULL };
9536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9538  *  Description of Va_I960_Macro fix
9539  */
9540 tSCC zVa_I960_MacroName[] =
9541      "va_i960_macro";
9544  *  File name selection pattern
9545  */
9546 tSCC zVa_I960_MacroList[] =
9547   "arch/i960/archI960.h\0";
9549  *  Machine/OS name selection pattern
9550  */
9551 #define apzVa_I960_MacroMachs (const char**)NULL
9554  *  content selection pattern - do fix if pattern found
9555  */
9556 tSCC zVa_I960_MacroSelect0[] =
9557        "__(vsiz|vali|vpad|alignof__)";
9559 #define    VA_I960_MACRO_TEST_CT  1
9560 static tTestDesc aVa_I960_MacroTests[] = {
9561   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
9564  *  Fix Command Arguments for Va_I960_Macro
9565  */
9566 static const char* apzVa_I960_MacroPatch[] = {
9567     "format",
9568     "__vx%1",
9569     (char*)NULL };
9571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9573  *  Description of Vms_Add_Missing_Braces fix
9574  */
9575 tSCC zVms_Add_Missing_BracesName[] =
9576      "vms_add_missing_braces";
9579  *  File name selection pattern
9580  */
9581 tSCC zVms_Add_Missing_BracesList[] =
9582   "rtldef/signal.h\0";
9584  *  Machine/OS name selection pattern
9585  */
9586 tSCC* apzVms_Add_Missing_BracesMachs[] = {
9587         "*-*-*vms*",
9588         (const char*)NULL };
9591  *  content selection pattern - do fix if pattern found
9592  */
9593 tSCC zVms_Add_Missing_BracesSelect0[] =
9594        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
9596 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
9597 static tTestDesc aVms_Add_Missing_BracesTests[] = {
9598   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
9601  *  Fix Command Arguments for Vms_Add_Missing_Braces
9602  */
9603 static const char* apzVms_Add_Missing_BracesPatch[] = {
9604     "format",
9605     "%1 {%2} ",
9606     (char*)NULL };
9608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9610  *  Description of Vms_Decc_Builtin fix
9611  */
9612 tSCC zVms_Decc_BuiltinName[] =
9613      "vms_decc_builtin";
9616  *  File name selection pattern
9617  */
9618 tSCC zVms_Decc_BuiltinList[] =
9619   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
9621  *  Machine/OS name selection pattern
9622  */
9623 tSCC* apzVms_Decc_BuiltinMachs[] = {
9624         "*-*-*vms*",
9625         (const char*)NULL };
9628  *  content selection pattern - do fix if pattern found
9629  */
9630 tSCC zVms_Decc_BuiltinSelect0[] =
9631        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
9633 #define    VMS_DECC_BUILTIN_TEST_CT  1
9634 static tTestDesc aVms_Decc_BuiltinTests[] = {
9635   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
9638  *  Fix Command Arguments for Vms_Decc_Builtin
9639  */
9640 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
9641     "-e", "s@__MEMSET@memset@",
9642     "-e", "s@__MEMMOVE@memmove@",
9643     "-e", "s@__MEMCPY@memcpy@",
9644     "-e", "s@__STRLEN@strlen@",
9645     "-e", "s@__STRCPY@strcpy@",
9646     (char*)NULL };
9648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9650  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
9651  */
9652 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
9653      "vms_define_can_use_extern_prefix";
9656  *  File name selection pattern
9657  */
9658 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
9659   "rtldef/decc$types.h\0";
9661  *  Machine/OS name selection pattern
9662  */
9663 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
9664         "*-*-*vms*",
9665         (const char*)NULL };
9668  *  content selection pattern - do fix if pattern found
9669  */
9670 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
9671        "#[ \t]*else\n\
9672 #[ \t]*if defined\\(__DECCXX\\)\n\
9673 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
9675 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
9676 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
9677   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
9680  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
9681  */
9682 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
9683     "format",
9684     "%0#    elif defined (__GNUC__)\n\
9685 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
9686     (char*)NULL };
9688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9690  *  Description of Vms_Disable_Decc_String_Builtins fix
9691  */
9692 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
9693      "vms_disable_decc_string_builtins";
9696  *  File name selection pattern
9697  */
9698 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
9699   "rtldef/string.h\0";
9701  *  Machine/OS name selection pattern
9702  */
9703 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
9704         "*-*-*vms*",
9705         (const char*)NULL };
9708  *  content selection pattern - do fix if pattern found
9709  */
9710 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
9711        "#if !defined\\(__VAX\\)\n";
9713 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
9714 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
9715   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
9718  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
9719  */
9720 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
9721     "format",
9722     "#if !defined(__VAX) && !defined(__GNUC__)\n",
9723     (char*)NULL };
9725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9727  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
9728  */
9729 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
9730      "vms_do_not_redeclare_hostalias";
9733  *  File name selection pattern
9734  */
9735 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
9736   "rtldef/resolv.h\0";
9738  *  Machine/OS name selection pattern
9739  */
9740 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
9741         "*-*-*vms*",
9742         (const char*)NULL };
9745  *  content selection pattern - do fix if pattern found
9746  */
9747 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
9748        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
9749 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
9751 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
9752 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
9753   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
9756  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
9757  */
9758 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
9759     "format",
9760     "%1\n\
9761 /* %2 */",
9762     (char*)NULL };
9764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9766  *  Description of Vms_Forward_Declare_Struct fix
9767  */
9768 tSCC zVms_Forward_Declare_StructName[] =
9769      "vms_forward_declare_struct";
9772  *  File name selection pattern
9773  */
9774 tSCC zVms_Forward_Declare_StructList[] =
9775   "rtldef/if.h\0";
9777  *  Machine/OS name selection pattern
9778  */
9779 tSCC* apzVms_Forward_Declare_StructMachs[] = {
9780         "*-*-*vms*",
9781         (const char*)NULL };
9784  *  content selection pattern - do fix if pattern found
9785  */
9786 tSCC zVms_Forward_Declare_StructSelect0[] =
9787        "(/\\* forward decls for C\\+\\+ \\*/\n\
9788 )#ifdef __cplusplus\n";
9790 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
9791 static tTestDesc aVms_Forward_Declare_StructTests[] = {
9792   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
9795  *  Fix Command Arguments for Vms_Forward_Declare_Struct
9796  */
9797 static const char* apzVms_Forward_Declare_StructPatch[] = {
9798     "format",
9799     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
9800     (char*)NULL };
9802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9804  *  Description of Vms_No_64bit_Getopt fix
9805  */
9806 tSCC zVms_No_64bit_GetoptName[] =
9807      "vms_no_64bit_getopt";
9810  *  File name selection pattern
9811  */
9812 tSCC zVms_No_64bit_GetoptList[] =
9813   "rtldef/stdio.h\0rtldef/unistd.h\0";
9815  *  Machine/OS name selection pattern
9816  */
9817 tSCC* apzVms_No_64bit_GetoptMachs[] = {
9818         "*-*-*vms*",
9819         (const char*)NULL };
9822  *  content selection pattern - do fix if pattern found
9823  */
9824 tSCC zVms_No_64bit_GetoptSelect0[] =
9825        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
9827 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
9828 static tTestDesc aVms_No_64bit_GetoptTests[] = {
9829   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
9832  *  Fix Command Arguments for Vms_No_64bit_Getopt
9833  */
9834 static const char* apzVms_No_64bit_GetoptPatch[] = {
9835     "format",
9836     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
9837 %0#endif\n",
9838     (char*)NULL };
9840 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9842  *  Description of Vms_Use_Fast_Setjmp fix
9843  */
9844 tSCC zVms_Use_Fast_SetjmpName[] =
9845      "vms_use_fast_setjmp";
9848  *  File name selection pattern
9849  */
9850 tSCC zVms_Use_Fast_SetjmpList[] =
9851   "rtldef/setjmp.h\0";
9853  *  Machine/OS name selection pattern
9854  */
9855 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
9856         "*-*-*vms*",
9857         (const char*)NULL };
9860  *  content selection pattern - do fix if pattern found
9861  */
9862 tSCC zVms_Use_Fast_SetjmpSelect0[] =
9863        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
9865 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
9866 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
9867   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
9870  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
9871  */
9872 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
9873     "format",
9874     "%0 defined (__GNUC__) ||",
9875     (char*)NULL };
9877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9879  *  Description of Vms_Use_Pragma_Extern_Model fix
9880  */
9881 tSCC zVms_Use_Pragma_Extern_ModelName[] =
9882      "vms_use_pragma_extern_model";
9885  *  File name selection pattern
9886  */
9887 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
9889  *  Machine/OS name selection pattern
9890  */
9891 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
9892         "*-*-*vms*",
9893         (const char*)NULL };
9896  *  content selection pattern - do fix if pattern found
9897  */
9898 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
9899        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
9900 # pragma extern_model __save\n";
9902 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
9903 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
9904   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
9907  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
9908  */
9909 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
9910     "format",
9911     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
9912 # pragma extern_model __save\n",
9913     (char*)NULL };
9915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9917  *  Description of Vms_Use_Quoted_Include fix
9918  */
9919 tSCC zVms_Use_Quoted_IncludeName[] =
9920      "vms_use_quoted_include";
9923  *  File name selection pattern
9924  */
9925 tSCC zVms_Use_Quoted_IncludeList[] =
9926   "rtldef/wait.h\0starlet_c/pthread.h\0";
9928  *  Machine/OS name selection pattern
9929  */
9930 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
9931         "*-*-*vms*",
9932         (const char*)NULL };
9935  *  content selection pattern - do fix if pattern found
9936  */
9937 tSCC zVms_Use_Quoted_IncludeSelect0[] =
9938        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
9940 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
9941 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
9942   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
9945  *  Fix Command Arguments for Vms_Use_Quoted_Include
9946  */
9947 static const char* apzVms_Use_Quoted_IncludePatch[] = {
9948     "format",
9949     "%1<sys/%2.h>",
9950     (char*)NULL };
9952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9954  *  Description of Void_Null fix
9955  */
9956 tSCC zVoid_NullName[] =
9957      "void_null";
9960  *  File name selection pattern
9961  */
9962 tSCC zVoid_NullList[] =
9963   "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";
9965  *  Machine/OS name selection pattern
9966  */
9967 #define apzVoid_NullMachs (const char**)NULL
9970  *  content selection pattern - do fix if pattern found
9971  */
9972 tSCC zVoid_NullSelect0[] =
9973        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
9976  *  content bypass pattern - skip fix if pattern found
9977  */
9978 tSCC zVoid_NullBypass0[] =
9979        "__cplusplus";
9980 tSCC zVoid_NullBypass1[] =
9981        "__null";
9983 #define    VOID_NULL_TEST_CT  3
9984 static tTestDesc aVoid_NullTests[] = {
9985   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
9986   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
9987   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
9990  *  Fix Command Arguments for Void_Null
9991  */
9992 static const char* apzVoid_NullPatch[] = {
9993     "format",
9994     "#ifndef NULL\n\
9995 #ifdef __cplusplus\n\
9996 #ifdef __GNUG__\n\
9997 #define NULL __null\n\
9998 #else /* ! __GNUG__  */\n\
9999 #define NULL 0L\n\
10000 #endif /* __GNUG__  */\n\
10001 #else /* ! __cplusplus  */\n\
10002 #define NULL ((void *)0)\n\
10003 #endif /* __cplusplus  */\n\
10004 #endif /* !NULL  */",
10005     (char*)NULL };
10007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10009  *  Description of Vxworks_Gcc_Problem fix
10010  */
10011 tSCC zVxworks_Gcc_ProblemName[] =
10012      "vxworks_gcc_problem";
10015  *  File name selection pattern
10016  */
10017 tSCC zVxworks_Gcc_ProblemList[] =
10018   "types/vxTypesBase.h\0";
10020  *  Machine/OS name selection pattern
10021  */
10022 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
10025  *  content selection pattern - do fix if pattern found
10026  */
10027 tSCC zVxworks_Gcc_ProblemSelect0[] =
10028        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
10030 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
10031 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
10032   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
10035  *  Fix Command Arguments for Vxworks_Gcc_Problem
10036  */
10037 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
10038     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
10039     "-e", "/[ \t]size_t/i\\\n\
10040 #ifndef _GCC_SIZE_T\\\n\
10041 #define _GCC_SIZE_T\n",
10042     "-e", "/[ \t]size_t/a\\\n\
10043 #endif\n",
10044     "-e", "/[ \t]ptrdiff_t/i\\\n\
10045 #ifndef _GCC_PTRDIFF_T\\\n\
10046 #define _GCC_PTRDIFF_T\n",
10047     "-e", "/[ \t]ptrdiff_t/a\\\n\
10048 #endif\n",
10049     "-e", "/[ \t]wchar_t/i\\\n\
10050 #ifndef _GCC_WCHAR_T\\\n\
10051 #define _GCC_WCHAR_T\n",
10052     "-e", "/[ \t]wchar_t/a\\\n\
10053 #endif\n",
10054     (char*)NULL };
10056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10058  *  Description of Vxworks_Ioctl_Macro fix
10059  */
10060 tSCC zVxworks_Ioctl_MacroName[] =
10061      "vxworks_ioctl_macro";
10064  *  File name selection pattern
10065  */
10066 tSCC zVxworks_Ioctl_MacroList[] =
10067   "ioLib.h\0";
10069  *  Machine/OS name selection pattern
10070  */
10071 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
10072         "*-*-vxworks*",
10073         (const char*)NULL };
10074 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
10075 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
10078  *  Fix Command Arguments for Vxworks_Ioctl_Macro
10079  */
10080 static const char* apzVxworks_Ioctl_MacroPatch[] = {
10081     "format",
10082     "%0\n\
10083 #define ioctl(fd, func, arg) ioctl(fd, func, (int)(arg))\n",
10084     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
10085     (char*)NULL };
10087 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10089  *  Description of Vxworks_Mkdir_Macro fix
10090  */
10091 tSCC zVxworks_Mkdir_MacroName[] =
10092      "vxworks_mkdir_macro";
10095  *  File name selection pattern
10096  */
10097 tSCC zVxworks_Mkdir_MacroList[] =
10098   "sys/stat.h\0";
10100  *  Machine/OS name selection pattern
10101  */
10102 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
10103         "*-*-vxworks*",
10104         (const char*)NULL };
10105 #define VXWORKS_MKDIR_MACRO_TEST_CT  0
10106 #define aVxworks_Mkdir_MacroTests   (tTestDesc*)NULL
10109  *  Fix Command Arguments for Vxworks_Mkdir_Macro
10110  */
10111 static const char* apzVxworks_Mkdir_MacroPatch[] = {
10112     "format",
10113     "%0\n\
10114 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
10115     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
10116     (char*)NULL };
10118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10120  *  Description of Vxworks_Needs_Vxtypes fix
10121  */
10122 tSCC zVxworks_Needs_VxtypesName[] =
10123      "vxworks_needs_vxtypes";
10126  *  File name selection pattern
10127  */
10128 tSCC zVxworks_Needs_VxtypesList[] =
10129   "time.h\0";
10131  *  Machine/OS name selection pattern
10132  */
10133 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
10136  *  content selection pattern - do fix if pattern found
10137  */
10138 tSCC zVxworks_Needs_VxtypesSelect0[] =
10139        "uint_t([ \t]+_clocks_per_sec)";
10141 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
10142 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
10143   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
10146  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
10147  */
10148 static const char* apzVxworks_Needs_VxtypesPatch[] = {
10149     "format",
10150     "unsigned int%1",
10151     (char*)NULL };
10153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10155  *  Description of Vxworks_Needs_Vxworks fix
10156  */
10157 tSCC zVxworks_Needs_VxworksName[] =
10158      "vxworks_needs_vxworks";
10161  *  File name selection pattern
10162  */
10163 tSCC zVxworks_Needs_VxworksList[] =
10164   "sys/stat.h\0";
10166  *  Machine/OS name selection pattern
10167  */
10168 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
10171  *  content selection pattern - do fix if pattern found
10172  */
10173 tSCC zVxworks_Needs_VxworksSelect0[] =
10174        "#[ \t]define[ \t]+__INCstath";
10177  *  perform the 'test' shell command - do fix on success
10178  */
10179 tSCC zVxworks_Needs_VxworksTest0[] =
10180        " -r types/vxTypesOld.h";
10181 tSCC zVxworks_Needs_VxworksTest1[] =
10182        " -n \"`egrep '#include' $file`\"";
10183 tSCC zVxworks_Needs_VxworksTest2[] =
10184        " -n \"`egrep ULONG $file`\"";
10186 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
10187 static tTestDesc aVxworks_Needs_VxworksTests[] = {
10188   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
10189   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
10190   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
10191   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
10194  *  Fix Command Arguments for Vxworks_Needs_Vxworks
10195  */
10196 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
10197     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
10198 #include <types/vxTypesOld.h>\n",
10199     (char*)NULL };
10201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10203  *  Description of Vxworks_Regs fix
10204  */
10205 tSCC zVxworks_RegsName[] =
10206      "vxworks_regs";
10209  *  File name selection pattern
10210  */
10211 #define zVxworks_RegsList (char*)NULL
10213  *  Machine/OS name selection pattern
10214  */
10215 tSCC* apzVxworks_RegsMachs[] = {
10216         "*-*-vxworks*",
10217         (const char*)NULL };
10220  *  content selection pattern - do fix if pattern found
10221  */
10222 tSCC zVxworks_RegsSelect0[] =
10223        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
10225 #define    VXWORKS_REGS_TEST_CT  1
10226 static tTestDesc aVxworks_RegsTests[] = {
10227   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
10230  *  Fix Command Arguments for Vxworks_Regs
10231  */
10232 static const char* apzVxworks_RegsPatch[] = {
10233     "format",
10234     "#include <arch/../regs.h>",
10235     (char*)NULL };
10237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10239  *  Description of Vxworks_Time fix
10240  */
10241 tSCC zVxworks_TimeName[] =
10242      "vxworks_time";
10245  *  File name selection pattern
10246  */
10247 tSCC zVxworks_TimeList[] =
10248   "time.h\0";
10250  *  Machine/OS name selection pattern
10251  */
10252 #define apzVxworks_TimeMachs (const char**)NULL
10255  *  content selection pattern - do fix if pattern found
10256  */
10257 tSCC zVxworks_TimeSelect0[] =
10258        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
10261  *  perform the 'test' shell command - do fix on success
10262  */
10263 tSCC zVxworks_TimeTest0[] =
10264        " -r vxWorks.h";
10266 #define    VXWORKS_TIME_TEST_CT  2
10267 static tTestDesc aVxworks_TimeTests[] = {
10268   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
10269   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
10272  *  Fix Command Arguments for Vxworks_Time
10273  */
10274 static const char* apzVxworks_TimePatch[] = {
10275     "format",
10276     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
10277 #ifdef __cplusplus\n\
10278 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
10279 #else\n\
10280 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
10281 #endif\n\
10282 #define __gcc_VOIDFUNCPTR_defined\n\
10283 #endif\n\
10284 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
10285     (char*)NULL };
10287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10289  *  Description of Vxworks_Write_Const fix
10290  */
10291 tSCC zVxworks_Write_ConstName[] =
10292      "vxworks_write_const";
10295  *  File name selection pattern
10296  */
10297 tSCC zVxworks_Write_ConstList[] =
10298   "ioLib.h\0";
10300  *  Machine/OS name selection pattern
10301  */
10302 tSCC* apzVxworks_Write_ConstMachs[] = {
10303         "*-*-vxworks*",
10304         (const char*)NULL };
10305 #define VXWORKS_WRITE_CONST_TEST_CT  0
10306 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
10309  *  Fix Command Arguments for Vxworks_Write_Const
10310  */
10311 static const char* apzVxworks_Write_ConstPatch[] = {
10312     "format",
10313     "extern int  write (int, const char*, size_t);",
10314     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
10315     (char*)NULL };
10317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10319  *  Description of Vxworks_Iolib_Include_Unistd fix
10320  */
10321 tSCC zVxworks_Iolib_Include_UnistdName[] =
10322      "vxworks_iolib_include_unistd";
10325  *  File name selection pattern
10326  */
10327 tSCC zVxworks_Iolib_Include_UnistdList[] =
10328   "ioLib.h\0";
10330  *  Machine/OS name selection pattern
10331  */
10332 tSCC* apzVxworks_Iolib_Include_UnistdMachs[] = {
10333         "*-*-vxworks*",
10334         (const char*)NULL };
10337  *  content selection pattern - do fix if pattern found
10338  */
10339 tSCC zVxworks_Iolib_Include_UnistdSelect0[] =
10340        "#include \"unistd.h\"";
10342 #define    VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT  1
10343 static tTestDesc aVxworks_Iolib_Include_UnistdTests[] = {
10344   { TT_EGREP,    zVxworks_Iolib_Include_UnistdSelect0, (regex_t*)NULL }, };
10347  *  Fix Command Arguments for Vxworks_Iolib_Include_Unistd
10348  */
10349 static const char* apzVxworks_Iolib_Include_UnistdPatch[] = {
10350     "format",
10351     "#include <unistd.h>",
10352     (char*)NULL };
10354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10356  *  Description of X11_Class fix
10357  */
10358 tSCC zX11_ClassName[] =
10359      "x11_class";
10362  *  File name selection pattern
10363  */
10364 tSCC zX11_ClassList[] =
10365   "X11/ShellP.h\0";
10367  *  Machine/OS name selection pattern
10368  */
10369 #define apzX11_ClassMachs (const char**)NULL
10372  *  content selection pattern - do fix if pattern found
10373  */
10374 tSCC zX11_ClassSelect0[] =
10375        "^([ \t]*char \\*)class;(.*)";
10378  *  content bypass pattern - skip fix if pattern found
10379  */
10380 tSCC zX11_ClassBypass0[] =
10381        "__cplusplus";
10383 #define    X11_CLASS_TEST_CT  2
10384 static tTestDesc aX11_ClassTests[] = {
10385   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
10386   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
10389  *  Fix Command Arguments for X11_Class
10390  */
10391 static const char* apzX11_ClassPatch[] = {
10392     "format",
10393     "#ifdef __cplusplus\n\
10394 %1c_class;%2\n\
10395 #else\n\
10396 %1class;%2\n\
10397 #endif",
10398     (char*)NULL };
10400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10402  *  Description of X11_Class_Usage fix
10403  */
10404 tSCC zX11_Class_UsageName[] =
10405      "x11_class_usage";
10408  *  File name selection pattern
10409  */
10410 tSCC zX11_Class_UsageList[] =
10411   "Xm/BaseClassI.h\0";
10413  *  Machine/OS name selection pattern
10414  */
10415 #define apzX11_Class_UsageMachs (const char**)NULL
10418  *  content selection pattern - do fix if pattern found
10419  */
10420 tSCC zX11_Class_UsageSelect0[] =
10421        " class\\)";
10424  *  content bypass pattern - skip fix if pattern found
10425  */
10426 tSCC zX11_Class_UsageBypass0[] =
10427        "__cplusplus";
10429 #define    X11_CLASS_USAGE_TEST_CT  2
10430 static tTestDesc aX11_Class_UsageTests[] = {
10431   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
10432   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
10435  *  Fix Command Arguments for X11_Class_Usage
10436  */
10437 static const char* apzX11_Class_UsagePatch[] = {
10438     "format",
10439     " c_class)",
10440     (char*)NULL };
10442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10444  *  Description of X11_New fix
10445  */
10446 tSCC zX11_NewName[] =
10447      "x11_new";
10450  *  File name selection pattern
10451  */
10452 tSCC zX11_NewList[] =
10453   "Xm/Traversal.h\0";
10455  *  Machine/OS name selection pattern
10456  */
10457 #define apzX11_NewMachs (const char**)NULL
10460  *  content bypass pattern - skip fix if pattern found
10461  */
10462 tSCC zX11_NewBypass0[] =
10463        "__cplusplus";
10465 #define    X11_NEW_TEST_CT  1
10466 static tTestDesc aX11_NewTests[] = {
10467   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
10470  *  Fix Command Arguments for X11_New
10471  */
10472 static const char* apzX11_NewPatch[] = { sed_cmd_z,
10473     "-e", "/Widget\told, new;/i\\\n\
10474 #ifdef __cplusplus\\\n\
10475 \\\tWidget\told, c_new;\\\n\
10476 #else\n",
10477     "-e", "/Widget\told, new;/a\\\n\
10478 #endif\n",
10479     "-e", "s/Widget new,/Widget c_new,/g",
10480     (char*)NULL };
10482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10484  *  Description of X11_Sprintf fix
10485  */
10486 tSCC zX11_SprintfName[] =
10487      "x11_sprintf";
10490  *  File name selection pattern
10491  */
10492 tSCC zX11_SprintfList[] =
10493   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
10495  *  Machine/OS name selection pattern
10496  */
10497 #define apzX11_SprintfMachs (const char**)NULL
10500  *  content selection pattern - do fix if pattern found
10501  */
10502 tSCC zX11_SprintfSelect0[] =
10503        "^extern char \\*\tsprintf\\(\\);$";
10505 #define    X11_SPRINTF_TEST_CT  1
10506 static tTestDesc aX11_SprintfTests[] = {
10507   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
10510  *  Fix Command Arguments for X11_Sprintf
10511  */
10512 static const char* apzX11_SprintfPatch[] = {
10513     "format",
10514     "#ifndef __STDC__\n\
10515 %0\n\
10516 #endif /* !defined __STDC__ */",
10517     (char*)NULL };
10520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10522  *  List of all fixes
10523  */
10524 #define REGEX_COUNT          297
10525 #define MACH_LIST_SIZE_LIMIT 187
10526 #define FIX_COUNT            259
10529  *  Enumerate the fixes
10530  */
10531 typedef enum {
10532     AAB_AIX_STDIO_FIXIDX,
10533     AAB_AIX_FCNTL_FIXIDX,
10534     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
10535     DARWIN_API_AVAILABILITY_FIXIDX,
10536     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
10537     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
10538     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
10539     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
10540     AAB_SUN_MEMCPY_FIXIDX,
10541     AAB_VXWORKS_ASSERT_FIXIDX,
10542     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
10543     AAB_VXWORKS_UNISTD_FIXIDX,
10544     AIX_ASSERT_FIXIDX,
10545     AIX_COMPLEX_FIXIDX,
10546     AIX_EXTERNC_FIXIDX,
10547     AIX_EXTERNCPP1_FIXIDX,
10548     AIX_EXTERNCPP2_FIXIDX,
10549     AIX_INTTYPES_FIXIDX,
10550     AIX_MALLOC_FIXIDX,
10551     AIX_NET_IF_ARP_FIXIDX,
10552     AIX_NULL_FIXIDX,
10553     AIX_ONCE_INIT_1_FIXIDX,
10554     AIX_ONCE_INIT_2_FIXIDX,
10555     AIX_MUTEX_INITIALIZER_1_FIXIDX,
10556     AIX_COND_INITIALIZER_1_FIXIDX,
10557     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
10558     AIX_PTHREAD_FIXIDX,
10559     AIX_STDINT_1_FIXIDX,
10560     AIX_STDINT_2_FIXIDX,
10561     AIX_STDINT_3_FIXIDX,
10562     AIX_STDINT_4_FIXIDX,
10563     AIX_STDINT_5_FIXIDX,
10564     AIX_STDIO_INLINE_FIXIDX,
10565     AIX_STDLIB_MALLOC_FIXIDX,
10566     AIX_STDLIB_REALLOC_FIXIDX,
10567     AIX_STDLIB_CALLOC_FIXIDX,
10568     AIX_STDLIB_VALLOC_FIXIDX,
10569     AIX_STDLIB_VEC_MALLOC_FIXIDX,
10570     AIX_STDLIB_VEC_CALLOC_FIXIDX,
10571     AIX_STRTOF_CONST_FIXIDX,
10572     AIX_SYSMACHINE_FIXIDX,
10573     AIX_SYSWAIT_2_FIXIDX,
10574     AIX_VOLATILE_FIXIDX,
10575     AIX_UNISTD_FIXIDX,
10576     ALPHA___ASSERT_FIXIDX,
10577     ALPHA_ASSERT_FIXIDX,
10578     ALPHA_GETOPT_FIXIDX,
10579     ALPHA_IF_SEMICOLON_FIXIDX,
10580     ALPHA_PARENS_FIXIDX,
10581     ALPHA_SBRK_FIXIDX,
10582     AVOID_BOOL_DEFINE_FIXIDX,
10583     AVOID_BOOL_TYPE_FIXIDX,
10584     AVOID_WCHAR_T_TYPE_FIXIDX,
10585     BAD_STRUCT_TERM_FIXIDX,
10586     BADQUOTE_FIXIDX,
10587     BROKEN_ASSERT_STDIO_FIXIDX,
10588     BROKEN_ASSERT_STDLIB_FIXIDX,
10589     BROKEN_CABS_FIXIDX,
10590     BROKEN_NAN_FIXIDX,
10591     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
10592     CTRL_QUOTES_DEF_FIXIDX,
10593     CTRL_QUOTES_USE_FIXIDX,
10594     CXX_UNREADY_FIXIDX,
10595     DARWIN_AVAILABILITYINTERNAL_FIXIDX,
10596     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
10597     DARWIN_EXTERNC_FIXIDX,
10598     DARWIN_GCC4_BREAKAGE_FIXIDX,
10599     DARWIN_LL_FUNCS_AVAIL_FIXIDX,
10600     DARWIN_LONGJMP_NORETURN_FIXIDX,
10601     DARWIN_OS_TRACE_1_FIXIDX,
10602     DARWIN_OS_TRACE_2_FIXIDX,
10603     DARWIN_OS_TRACE_3_FIXIDX,
10604     DARWIN_OS_BASE_1_FIXIDX,
10605     DARWIN_DISPATCH_OBJECT_1_FIXIDX,
10606     DARWIN_PRIVATE_EXTERN_FIXIDX,
10607     DARWIN_STDINT_1_FIXIDX,
10608     DARWIN_STDINT_2_FIXIDX,
10609     DARWIN_STDINT_3_FIXIDX,
10610     DARWIN_STDINT_4_FIXIDX,
10611     DARWIN_STDINT_5_FIXIDX,
10612     DARWIN_STDINT_6_FIXIDX,
10613     DARWIN_STDINT_7_FIXIDX,
10614     DARWIN_UCRED__ATOMIC_FIXIDX,
10615     DEC_INTERN_ASM_FIXIDX,
10616     DJGPP_WCHAR_H_FIXIDX,
10617     ECD_CURSOR_FIXIDX,
10618     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
10619     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
10620     FREEBSD_GCC3_BREAKAGE_FIXIDX,
10621     FREEBSD_GCC4_BREAKAGE_FIXIDX,
10622     GLIBC_C99_INLINE_1_FIXIDX,
10623     GLIBC_C99_INLINE_1A_FIXIDX,
10624     GLIBC_C99_INLINE_2_FIXIDX,
10625     GLIBC_C99_INLINE_3_FIXIDX,
10626     GLIBC_C99_INLINE_4_FIXIDX,
10627     GLIBC_MUTEX_INIT_FIXIDX,
10628     GLIBC_STDINT_FIXIDX,
10629     GLIBC_STRNCPY_FIXIDX,
10630     GLIBC_TGMATH_FIXIDX,
10631     GNU_TYPES_FIXIDX,
10632     HP_INLINE_FIXIDX,
10633     HP_SYSFILE_FIXIDX,
10634     HPPA_HPUX_FP_MACROS_FIXIDX,
10635     HPUX10_CPP_POW_INLINE_FIXIDX,
10636     HPUX11_CPP_POW_INLINE_FIXIDX,
10637     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
10638     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
10639     HPUX10_STDIO_DECLARATIONS_FIXIDX,
10640     HPPA_HPUX11_ALLOCA_FIXIDX,
10641     HPUX11_ABS_FIXIDX,
10642     HPUX11_LWP_RWLOCK_VALID_FIXIDX,
10643     HPUX11_EXTERN_SENDFILE_FIXIDX,
10644     HPUX11_EXTERN_SENDPATH_FIXIDX,
10645     HPUX11_FABSF_FIXIDX,
10646     HPUX11_PTHREAD_POINTER_FIXIDX,
10647     HPUX11_PTHREAD_CONST_FIXIDX,
10648     HPUX11_SIZE_T_FIXIDX,
10649     HPUX11_SNPRINTF_FIXIDX,
10650     HPUX11_VSNPRINTF_FIXIDX,
10651     HPUX_VSSCANF_FIXIDX,
10652     HPUX8_BOGUS_INLINES_FIXIDX,
10653     HPUX_C99_INTPTR_FIXIDX,
10654     HPUX_C99_INTTYPES_FIXIDX,
10655     HPUX_C99_INTTYPES2_FIXIDX,
10656     HPUX_C99_INTTYPES3_FIXIDX,
10657     HPUX_C99_INTTYPES4_FIXIDX,
10658     HPUX_CTYPE_MACROS_FIXIDX,
10659     HPUX_EXTERN_ERRNO_FIXIDX,
10660     HPUX_HTONL_FIXIDX,
10661     HPUX_IMAGINARY_I_FIXIDX,
10662     HPUX_INTTYPE_INT8_T_FIXIDX,
10663     HPUX_LONG_DOUBLE_FIXIDX,
10664     HPUX_LONG_DOUBLE_2_FIXIDX,
10665     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
10666     HPUX_SPU_INFO_FIXIDX,
10667     HPUX_STDINT_LEAST_FAST_FIXIDX,
10668     HPUX_LONGJMP_FIXIDX,
10669     HPUX_SYSTIME_FIXIDX,
10670     HUGE_VAL_HEX_FIXIDX,
10671     HUGE_VALF_HEX_FIXIDX,
10672     HUGE_VALL_HEX_FIXIDX,
10673     INT_ABORT_FREE_AND_EXIT_FIXIDX,
10674     IO_QUOTES_DEF_FIXIDX,
10675     IO_QUOTES_USE_FIXIDX,
10676     IP_MISSING_SEMI_FIXIDX,
10677     IRIX_LIMITS_CONST_FIXIDX,
10678     IRIX_STDIO_VA_LIST_FIXIDX,
10679     KANDR_CONCAT_FIXIDX,
10680     LINUX_IA64_UCONTEXT_FIXIDX,
10681     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
10682     LYNXOS_MISSING_PUTENV_FIXIDX,
10683     MACHINE_ANSI_H_VA_LIST_FIXIDX,
10684     MACHINE_NAME_FIXIDX,
10685     MATH_EXCEPTION_FIXIDX,
10686     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
10687     NESTED_AUTH_DES_FIXIDX,
10688     NETBSD_C99_INLINE_1_FIXIDX,
10689     NETBSD_C99_INLINE_2_FIXIDX,
10690     NETBSD_EXTRA_SEMICOLON_FIXIDX,
10691     NEWLIB_STDINT_1_FIXIDX,
10692     NEWLIB_STDINT_2_FIXIDX,
10693     NEXT_MATH_PREFIX_FIXIDX,
10694     NEXT_TEMPLATE_FIXIDX,
10695     NEXT_VOLITILE_FIXIDX,
10696     NEXT_WAIT_UNION_FIXIDX,
10697     NODEENT_SYNTAX_FIXIDX,
10698     OPENBSD_NULL_DEFINITION_FIXIDX,
10699     OBSTACK_LVALUE_CAST_FIXIDX,
10700     OPENBSD_VA_START_FIXIDX,
10701     OSF_NAMESPACE_A_FIXIDX,
10702     OSF_NAMESPACE_C_FIXIDX,
10703     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
10704     READ_RET_TYPE_FIXIDX,
10705     RPC_XDR_LVALUE_CAST_A_FIXIDX,
10706     RPC_XDR_LVALUE_CAST_B_FIXIDX,
10707     RS6000_DOUBLE_FIXIDX,
10708     RS6000_FCHMOD_FIXIDX,
10709     RS6000_PARAM_FIXIDX,
10710     SOLARIS___RESTRICT_FIXIDX,
10711     SOLARIS_COMPLEX_FIXIDX,
10712     SOLARIS_COMPLEX_CXX_FIXIDX,
10713     SOLARIS_CXX_LINKAGE_FIXIDX,
10714     SOLARIS_GETC_STRICT_STDC_FIXIDX,
10715     SOLARIS_GETS_C11_FIXIDX,
10716     SOLARIS_GETS_CXX14_FIXIDX,
10717     SOLARIS_INT_CONST_FIXIDX,
10718     SOLARIS_INT_LIMITS_1_FIXIDX,
10719     SOLARIS_INT_LIMITS_2_FIXIDX,
10720     SOLARIS_INT_LIMITS_3_FIXIDX,
10721     SOLARIS_MATH_1_FIXIDX,
10722     SOLARIS_MATH_10_FIXIDX,
10723     SOLARIS_MATH_2_FIXIDX,
10724     SOLARIS_MATH_3_FIXIDX,
10725     SOLARIS_MATH_4_FIXIDX,
10726     SOLARIS_MATH_8_FIXIDX,
10727     SOLARIS_MATH_9_FIXIDX,
10728     SOLARIS_MATH_11_FIXIDX,
10729     SOLARIS_MATH_12_FIXIDX,
10730     SOLARIS_ONCE_INIT_1_FIXIDX,
10731     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
10732     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
10733     SOLARIS_RWLOCK_INIT_1_FIXIDX,
10734     SOLARIS_STD___FILBUF_FIXIDX,
10735     SOLARIS_STD_GETS_CXX14_FIXIDX,
10736     SOLARIS_STDIO_TAG_FIXIDX,
10737     SOLARIS_STDLIB_NORETURN_FIXIDX,
10738     STATSSWTCH_FIXIDX,
10739     STDIO_STDARG_H_FIXIDX,
10740     STDIO_VA_LIST_FIXIDX,
10741     STDIO_VA_LIST_CLIENTS_FIXIDX,
10742     STRICT_ANSI_NOT_FIXIDX,
10743     STRICT_ANSI_NOT_CTD_FIXIDX,
10744     STRICT_ANSI_ONLY_FIXIDX,
10745     STRUCT_FILE_FIXIDX,
10746     STRUCT_SOCKADDR_FIXIDX,
10747     SUN_AUTH_PROTO_FIXIDX,
10748     SUN_BOGUS_IFDEF_FIXIDX,
10749     SUN_CATMACRO_FIXIDX,
10750     SUN_MALLOC_FIXIDX,
10751     SUN_RUSERS_SEMI_FIXIDX,
10752     SUN_SIGNAL_FIXIDX,
10753     SUNOS_STRLEN_FIXIDX,
10754     SUSE_LINUX_VT_CXX_FIXIDX,
10755     SVR4_DISABLE_OPT_FIXIDX,
10756     SVR4_GETCWD_FIXIDX,
10757     SVR4_PROFIL_FIXIDX,
10758     SVR4_SIGHANDLER_TYPE_FIXIDX,
10759     SVR4_UNDECLARED_GETRNGE_FIXIDX,
10760     SYSV68_STRING_FIXIDX,
10761     SYSZ_STDLIB_FOR_SUN_FIXIDX,
10762     THREAD_KEYWORD_FIXIDX,
10763     TINFO_CPLUSPLUS_FIXIDX,
10764     ULTRIX_CONST_FIXIDX,
10765     ULTRIX_CONST2_FIXIDX,
10766     VA_I960_MACRO_FIXIDX,
10767     VMS_ADD_MISSING_BRACES_FIXIDX,
10768     VMS_DECC_BUILTIN_FIXIDX,
10769     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
10770     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
10771     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
10772     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
10773     VMS_NO_64BIT_GETOPT_FIXIDX,
10774     VMS_USE_FAST_SETJMP_FIXIDX,
10775     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
10776     VMS_USE_QUOTED_INCLUDE_FIXIDX,
10777     VOID_NULL_FIXIDX,
10778     VXWORKS_GCC_PROBLEM_FIXIDX,
10779     VXWORKS_IOCTL_MACRO_FIXIDX,
10780     VXWORKS_MKDIR_MACRO_FIXIDX,
10781     VXWORKS_NEEDS_VXTYPES_FIXIDX,
10782     VXWORKS_NEEDS_VXWORKS_FIXIDX,
10783     VXWORKS_REGS_FIXIDX,
10784     VXWORKS_TIME_FIXIDX,
10785     VXWORKS_WRITE_CONST_FIXIDX,
10786     VXWORKS_IOLIB_INCLUDE_UNISTD_FIXIDX,
10787     X11_CLASS_FIXIDX,
10788     X11_CLASS_USAGE_FIXIDX,
10789     X11_NEW_FIXIDX,
10790     X11_SPRINTF_FIXIDX
10791 } t_fixinc_idx;
10793 tFixDesc fixDescList[ FIX_COUNT ] = {
10794   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
10795      apzAab_Aix_StdioMachs,
10796      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10797      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
10799   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
10800      apzAab_Aix_FcntlMachs,
10801      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10802      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
10804   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
10805      apzAab_Darwin7_9_Long_Double_FuncsMachs,
10806      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10807      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
10809   {  zDarwin_Api_AvailabilityName,    zDarwin_Api_AvailabilityList,
10810      apzDarwin_Api_AvailabilityMachs,
10811      DARWIN_API_AVAILABILITY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10812      aDarwin_Api_AvailabilityTests,   apzDarwin_Api_AvailabilityPatch, 0 },
10814   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
10815      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
10816      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10817      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
10819   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
10820      apzAab_Fd_Zero_Gnu_Types_HMachs,
10821      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10822      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
10824   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
10825      apzAab_Fd_Zero_Selectbits_HMachs,
10826      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10827      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
10829   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
10830      apzAab_Solaris_Sys_Varargs_HMachs,
10831      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10832      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
10834   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
10835      apzAab_Sun_MemcpyMachs,
10836      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10837      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
10839   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
10840      apzAab_Vxworks_AssertMachs,
10841      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10842      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
10844   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
10845      apzAab_Vxworks_Regs_VxtypesMachs,
10846      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10847      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
10849   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
10850      apzAab_Vxworks_UnistdMachs,
10851      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10852      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
10854   {  zAix_AssertName,    zAix_AssertList,
10855      apzAix_AssertMachs,
10856      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10857      aAix_AssertTests,   apzAix_AssertPatch, 0 },
10859   {  zAix_ComplexName,    zAix_ComplexList,
10860      apzAix_ComplexMachs,
10861      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10862      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
10864   {  zAix_ExterncName,    zAix_ExterncList,
10865      apzAix_ExterncMachs,
10866      AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10867      aAix_ExterncTests,   apzAix_ExterncPatch, 0 },
10869   {  zAix_Externcpp1Name,    zAix_Externcpp1List,
10870      apzAix_Externcpp1Machs,
10871      AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10872      aAix_Externcpp1Tests,   apzAix_Externcpp1Patch, 0 },
10874   {  zAix_Externcpp2Name,    zAix_Externcpp2List,
10875      apzAix_Externcpp2Machs,
10876      AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10877      aAix_Externcpp2Tests,   apzAix_Externcpp2Patch, 0 },
10879   {  zAix_InttypesName,    zAix_InttypesList,
10880      apzAix_InttypesMachs,
10881      AIX_INTTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10882      aAix_InttypesTests,   apzAix_InttypesPatch, 0 },
10884   {  zAix_MallocName,    zAix_MallocList,
10885      apzAix_MallocMachs,
10886      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10887      aAix_MallocTests,   apzAix_MallocPatch, 0 },
10889   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
10890      apzAix_Net_If_ArpMachs,
10891      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10892      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
10894   {  zAix_NullName,    zAix_NullList,
10895      apzAix_NullMachs,
10896      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10897      aAix_NullTests,   apzAix_NullPatch, 0 },
10899   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
10900      apzAix_Once_Init_1Machs,
10901      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10902      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
10904   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
10905      apzAix_Once_Init_2Machs,
10906      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10907      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
10909   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
10910      apzAix_Mutex_Initializer_1Machs,
10911      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10912      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
10914   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
10915      apzAix_Cond_Initializer_1Machs,
10916      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10917      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
10919   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
10920      apzAix_Rwlock_Initializer_1Machs,
10921      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10922      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
10924   {  zAix_PthreadName,    zAix_PthreadList,
10925      apzAix_PthreadMachs,
10926      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10927      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
10929   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
10930      apzAix_Stdint_1Machs,
10931      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10932      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
10934   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
10935      apzAix_Stdint_2Machs,
10936      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10937      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
10939   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
10940      apzAix_Stdint_3Machs,
10941      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10942      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
10944   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
10945      apzAix_Stdint_4Machs,
10946      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10947      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
10949   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
10950      apzAix_Stdint_5Machs,
10951      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10952      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
10954   {  zAix_Stdio_InlineName,    zAix_Stdio_InlineList,
10955      apzAix_Stdio_InlineMachs,
10956      AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10957      aAix_Stdio_InlineTests,   apzAix_Stdio_InlinePatch, 0 },
10959   {  zAix_Stdlib_MallocName,    zAix_Stdlib_MallocList,
10960      apzAix_Stdlib_MallocMachs,
10961      AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10962      aAix_Stdlib_MallocTests,   apzAix_Stdlib_MallocPatch, 0 },
10964   {  zAix_Stdlib_ReallocName,    zAix_Stdlib_ReallocList,
10965      apzAix_Stdlib_ReallocMachs,
10966      AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10967      aAix_Stdlib_ReallocTests,   apzAix_Stdlib_ReallocPatch, 0 },
10969   {  zAix_Stdlib_CallocName,    zAix_Stdlib_CallocList,
10970      apzAix_Stdlib_CallocMachs,
10971      AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10972      aAix_Stdlib_CallocTests,   apzAix_Stdlib_CallocPatch, 0 },
10974   {  zAix_Stdlib_VallocName,    zAix_Stdlib_VallocList,
10975      apzAix_Stdlib_VallocMachs,
10976      AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10977      aAix_Stdlib_VallocTests,   apzAix_Stdlib_VallocPatch, 0 },
10979   {  zAix_Stdlib_Vec_MallocName,    zAix_Stdlib_Vec_MallocList,
10980      apzAix_Stdlib_Vec_MallocMachs,
10981      AIX_STDLIB_VEC_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10982      aAix_Stdlib_Vec_MallocTests,   apzAix_Stdlib_Vec_MallocPatch, 0 },
10984   {  zAix_Stdlib_Vec_CallocName,    zAix_Stdlib_Vec_CallocList,
10985      apzAix_Stdlib_Vec_CallocMachs,
10986      AIX_STDLIB_VEC_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10987      aAix_Stdlib_Vec_CallocTests,   apzAix_Stdlib_Vec_CallocPatch, 0 },
10989   {  zAix_Strtof_ConstName,    zAix_Strtof_ConstList,
10990      apzAix_Strtof_ConstMachs,
10991      AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10992      aAix_Strtof_ConstTests,   apzAix_Strtof_ConstPatch, 0 },
10994   {  zAix_SysmachineName,    zAix_SysmachineList,
10995      apzAix_SysmachineMachs,
10996      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10997      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
10999   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
11000      apzAix_Syswait_2Machs,
11001      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11002      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
11004   {  zAix_VolatileName,    zAix_VolatileList,
11005      apzAix_VolatileMachs,
11006      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11007      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
11009   {  zAix_UnistdName,    zAix_UnistdList,
11010      apzAix_UnistdMachs,
11011      AIX_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11012      aAix_UnistdTests,   apzAix_UnistdPatch, 0 },
11014   {  zAlpha___AssertName,    zAlpha___AssertList,
11015      apzAlpha___AssertMachs,
11016      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11017      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
11019   {  zAlpha_AssertName,    zAlpha_AssertList,
11020      apzAlpha_AssertMachs,
11021      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11022      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
11024   {  zAlpha_GetoptName,    zAlpha_GetoptList,
11025      apzAlpha_GetoptMachs,
11026      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11027      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
11029   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
11030      apzAlpha_If_SemicolonMachs,
11031      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11032      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
11034   {  zAlpha_ParensName,    zAlpha_ParensList,
11035      apzAlpha_ParensMachs,
11036      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11037      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
11039   {  zAlpha_SbrkName,    zAlpha_SbrkList,
11040      apzAlpha_SbrkMachs,
11041      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11042      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
11044   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
11045      apzAvoid_Bool_DefineMachs,
11046      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11047      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
11049   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
11050      apzAvoid_Bool_TypeMachs,
11051      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11052      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
11054   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
11055      apzAvoid_Wchar_T_TypeMachs,
11056      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11057      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
11059   {  zBad_Struct_TermName,    zBad_Struct_TermList,
11060      apzBad_Struct_TermMachs,
11061      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11062      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
11064   {  zBadquoteName,    zBadquoteList,
11065      apzBadquoteMachs,
11066      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11067      aBadquoteTests,   apzBadquotePatch, 0 },
11069   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
11070      apzBroken_Assert_StdioMachs,
11071      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11072      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
11074   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
11075      apzBroken_Assert_StdlibMachs,
11076      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11077      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
11079   {  zBroken_CabsName,    zBroken_CabsList,
11080      apzBroken_CabsMachs,
11081      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
11082      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
11084   {  zBroken_NanName,    zBroken_NanList,
11085      apzBroken_NanMachs,
11086      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11087      aBroken_NanTests,   apzBroken_NanPatch, 0 },
11089   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
11090      apzBsd_Stdio_Attrs_ConflictMachs,
11091      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11092      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
11094   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
11095      apzCtrl_Quotes_DefMachs,
11096      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11097      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
11099   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
11100      apzCtrl_Quotes_UseMachs,
11101      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11102      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
11104   {  zCxx_UnreadyName,    zCxx_UnreadyList,
11105      apzCxx_UnreadyMachs,
11106      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11107      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
11109   {  zDarwin_AvailabilityinternalName,    zDarwin_AvailabilityinternalList,
11110      apzDarwin_AvailabilityinternalMachs,
11111      DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11112      aDarwin_AvailabilityinternalTests,   apzDarwin_AvailabilityinternalPatch, 0 },
11114   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
11115      apzDarwin_9_Long_Double_Funcs_2Machs,
11116      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11117      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
11119   {  zDarwin_ExterncName,    zDarwin_ExterncList,
11120      apzDarwin_ExterncMachs,
11121      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11122      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
11124   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
11125      apzDarwin_Gcc4_BreakageMachs,
11126      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11127      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
11129   {  zDarwin_Ll_Funcs_AvailName,    zDarwin_Ll_Funcs_AvailList,
11130      apzDarwin_Ll_Funcs_AvailMachs,
11131      DARWIN_LL_FUNCS_AVAIL_TEST_CT, FD_MACH_ONLY,
11132      aDarwin_Ll_Funcs_AvailTests,   apzDarwin_Ll_Funcs_AvailPatch, 0 },
11134   {  zDarwin_Longjmp_NoreturnName,    zDarwin_Longjmp_NoreturnList,
11135      apzDarwin_Longjmp_NoreturnMachs,
11136      DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11137      aDarwin_Longjmp_NoreturnTests,   apzDarwin_Longjmp_NoreturnPatch, 0 },
11139   {  zDarwin_Os_Trace_1Name,    zDarwin_Os_Trace_1List,
11140      apzDarwin_Os_Trace_1Machs,
11141      DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11142      aDarwin_Os_Trace_1Tests,   apzDarwin_Os_Trace_1Patch, 0 },
11144   {  zDarwin_Os_Trace_2Name,    zDarwin_Os_Trace_2List,
11145      apzDarwin_Os_Trace_2Machs,
11146      DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11147      aDarwin_Os_Trace_2Tests,   apzDarwin_Os_Trace_2Patch, 0 },
11149   {  zDarwin_Os_Trace_3Name,    zDarwin_Os_Trace_3List,
11150      apzDarwin_Os_Trace_3Machs,
11151      DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11152      aDarwin_Os_Trace_3Tests,   apzDarwin_Os_Trace_3Patch, 0 },
11154   {  zDarwin_Os_Base_1Name,    zDarwin_Os_Base_1List,
11155      apzDarwin_Os_Base_1Machs,
11156      DARWIN_OS_BASE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11157      aDarwin_Os_Base_1Tests,   apzDarwin_Os_Base_1Patch, 0 },
11159   {  zDarwin_Dispatch_Object_1Name,    zDarwin_Dispatch_Object_1List,
11160      apzDarwin_Dispatch_Object_1Machs,
11161      DARWIN_DISPATCH_OBJECT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11162      aDarwin_Dispatch_Object_1Tests,   apzDarwin_Dispatch_Object_1Patch, 0 },
11164   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
11165      apzDarwin_Private_ExternMachs,
11166      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11167      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
11169   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
11170      apzDarwin_Stdint_1Machs,
11171      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11172      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
11174   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
11175      apzDarwin_Stdint_2Machs,
11176      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11177      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
11179   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
11180      apzDarwin_Stdint_3Machs,
11181      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11182      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
11184   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
11185      apzDarwin_Stdint_4Machs,
11186      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11187      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
11189   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
11190      apzDarwin_Stdint_5Machs,
11191      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11192      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
11194   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
11195      apzDarwin_Stdint_6Machs,
11196      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11197      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
11199   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
11200      apzDarwin_Stdint_7Machs,
11201      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11202      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
11204   {  zDarwin_Ucred__AtomicName,    zDarwin_Ucred__AtomicList,
11205      apzDarwin_Ucred__AtomicMachs,
11206      DARWIN_UCRED__ATOMIC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11207      aDarwin_Ucred__AtomicTests,   apzDarwin_Ucred__AtomicPatch, 0 },
11209   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
11210      apzDec_Intern_AsmMachs,
11211      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
11212      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
11214   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
11215      apzDjgpp_Wchar_HMachs,
11216      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11217      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
11219   {  zEcd_CursorName,    zEcd_CursorList,
11220      apzEcd_CursorMachs,
11221      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11222      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
11224   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
11225      apzFeraiseexcept_Nosse_DivbyzeroMachs,
11226      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11227      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
11229   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
11230      apzFeraiseexcept_Nosse_InvalidMachs,
11231      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11232      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
11234   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
11235      apzFreebsd_Gcc3_BreakageMachs,
11236      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11237      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
11239   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
11240      apzFreebsd_Gcc4_BreakageMachs,
11241      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11242      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
11244   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
11245      apzGlibc_C99_Inline_1Machs,
11246      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11247      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
11249   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
11250      apzGlibc_C99_Inline_1aMachs,
11251      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11252      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
11254   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
11255      apzGlibc_C99_Inline_2Machs,
11256      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
11257      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
11259   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
11260      apzGlibc_C99_Inline_3Machs,
11261      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11262      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
11264   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
11265      apzGlibc_C99_Inline_4Machs,
11266      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11267      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
11269   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
11270      apzGlibc_Mutex_InitMachs,
11271      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
11272      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
11274   {  zGlibc_StdintName,    zGlibc_StdintList,
11275      apzGlibc_StdintMachs,
11276      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11277      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
11279   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
11280      apzGlibc_StrncpyMachs,
11281      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11282      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
11284   {  zGlibc_TgmathName,    zGlibc_TgmathList,
11285      apzGlibc_TgmathMachs,
11286      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11287      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
11289   {  zGnu_TypesName,    zGnu_TypesList,
11290      apzGnu_TypesMachs,
11291      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11292      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
11294   {  zHp_InlineName,    zHp_InlineList,
11295      apzHp_InlineMachs,
11296      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11297      aHp_InlineTests,   apzHp_InlinePatch, 0 },
11299   {  zHp_SysfileName,    zHp_SysfileList,
11300      apzHp_SysfileMachs,
11301      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11302      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
11304   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
11305      apzHppa_Hpux_Fp_MacrosMachs,
11306      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11307      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
11309   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
11310      apzHpux10_Cpp_Pow_InlineMachs,
11311      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11312      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
11314   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
11315      apzHpux11_Cpp_Pow_InlineMachs,
11316      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11317      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
11319   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
11320      apzHpux10_Ctype_Declarations1Machs,
11321      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11322      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
11324   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
11325      apzHpux10_Ctype_Declarations2Machs,
11326      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11327      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
11329   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
11330      apzHpux10_Stdio_DeclarationsMachs,
11331      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11332      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
11334   {  zHppa_Hpux11_AllocaName,    zHppa_Hpux11_AllocaList,
11335      apzHppa_Hpux11_AllocaMachs,
11336      HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11337      aHppa_Hpux11_AllocaTests,   apzHppa_Hpux11_AllocaPatch, 0 },
11339   {  zHpux11_AbsName,    zHpux11_AbsList,
11340      apzHpux11_AbsMachs,
11341      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11342      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
11344   {  zHpux11_Lwp_Rwlock_ValidName,    zHpux11_Lwp_Rwlock_ValidList,
11345      apzHpux11_Lwp_Rwlock_ValidMachs,
11346      HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11347      aHpux11_Lwp_Rwlock_ValidTests,   apzHpux11_Lwp_Rwlock_ValidPatch, 0 },
11349   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
11350      apzHpux11_Extern_SendfileMachs,
11351      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11352      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
11354   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
11355      apzHpux11_Extern_SendpathMachs,
11356      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11357      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
11359   {  zHpux11_FabsfName,    zHpux11_FabsfList,
11360      apzHpux11_FabsfMachs,
11361      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11362      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
11364   {  zHpux11_Pthread_PointerName,    zHpux11_Pthread_PointerList,
11365      apzHpux11_Pthread_PointerMachs,
11366      HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11367      aHpux11_Pthread_PointerTests,   apzHpux11_Pthread_PointerPatch, 0 },
11369   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
11370      apzHpux11_Pthread_ConstMachs,
11371      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11372      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
11374   {  zHpux11_Size_TName,    zHpux11_Size_TList,
11375      apzHpux11_Size_TMachs,
11376      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11377      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
11379   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
11380      apzHpux11_SnprintfMachs,
11381      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11382      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
11384   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
11385      apzHpux11_VsnprintfMachs,
11386      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11387      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
11389   {  zHpux_VsscanfName,    zHpux_VsscanfList,
11390      apzHpux_VsscanfMachs,
11391      HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11392      aHpux_VsscanfTests,   apzHpux_VsscanfPatch, 0 },
11394   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
11395      apzHpux8_Bogus_InlinesMachs,
11396      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
11397      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
11399   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
11400      apzHpux_C99_IntptrMachs,
11401      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
11402      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
11404   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
11405      apzHpux_C99_InttypesMachs,
11406      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
11407      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
11409   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
11410      apzHpux_C99_Inttypes2Machs,
11411      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
11412      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
11414   {  zHpux_C99_Inttypes3Name,    zHpux_C99_Inttypes3List,
11415      apzHpux_C99_Inttypes3Machs,
11416      HPUX_C99_INTTYPES3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11417      aHpux_C99_Inttypes3Tests,   apzHpux_C99_Inttypes3Patch, 0 },
11419   {  zHpux_C99_Inttypes4Name,    zHpux_C99_Inttypes4List,
11420      apzHpux_C99_Inttypes4Machs,
11421      HPUX_C99_INTTYPES4_TEST_CT, FD_MACH_ONLY,
11422      aHpux_C99_Inttypes4Tests,   apzHpux_C99_Inttypes4Patch, 0 },
11424   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
11425      apzHpux_Ctype_MacrosMachs,
11426      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11427      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
11429   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
11430      apzHpux_Extern_ErrnoMachs,
11431      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11432      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
11434   {  zHpux_HtonlName,    zHpux_HtonlList,
11435      apzHpux_HtonlMachs,
11436      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11437      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
11439   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
11440      apzHpux_Imaginary_IMachs,
11441      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11442      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
11444   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
11445      apzHpux_Inttype_Int8_TMachs,
11446      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11447      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
11449   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
11450      apzHpux_Long_DoubleMachs,
11451      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
11452      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
11454   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
11455      apzHpux_Long_Double_2Machs,
11456      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11457      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
11459   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
11460      apzHpux_Pthread_InitializersMachs,
11461      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
11462      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
11464   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
11465      apzHpux_Spu_InfoMachs,
11466      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11467      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
11469   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
11470      apzHpux_Stdint_Least_FastMachs,
11471      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11472      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
11474   {  zHpux_LongjmpName,    zHpux_LongjmpList,
11475      apzHpux_LongjmpMachs,
11476      HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11477      aHpux_LongjmpTests,   apzHpux_LongjmpPatch, 0 },
11479   {  zHpux_SystimeName,    zHpux_SystimeList,
11480      apzHpux_SystimeMachs,
11481      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11482      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
11484   {  zHuge_Val_HexName,    zHuge_Val_HexList,
11485      apzHuge_Val_HexMachs,
11486      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11487      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
11489   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
11490      apzHuge_Valf_HexMachs,
11491      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11492      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
11494   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
11495      apzHuge_Vall_HexMachs,
11496      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11497      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
11499   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
11500      apzInt_Abort_Free_And_ExitMachs,
11501      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11502      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
11504   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
11505      apzIo_Quotes_DefMachs,
11506      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11507      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
11509   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
11510      apzIo_Quotes_UseMachs,
11511      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11512      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
11514   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
11515      apzIp_Missing_SemiMachs,
11516      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
11517      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
11519   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
11520      apzIrix_Limits_ConstMachs,
11521      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11522      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
11524   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
11525      apzIrix_Stdio_Va_ListMachs,
11526      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11527      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
11529   {  zKandr_ConcatName,    zKandr_ConcatList,
11530      apzKandr_ConcatMachs,
11531      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11532      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
11534   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
11535      apzLinux_Ia64_UcontextMachs,
11536      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11537      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
11539   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
11540      apzLynxos_No_Warning_In_Sys_Time_HMachs,
11541      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11542      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
11544   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
11545      apzLynxos_Missing_PutenvMachs,
11546      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11547      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
11549   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
11550      apzMachine_Ansi_H_Va_ListMachs,
11551      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11552      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
11554   {  zMachine_NameName,    zMachine_NameList,
11555      apzMachine_NameMachs,
11556      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11557      aMachine_NameTests,   apzMachine_NamePatch, 0 },
11559   {  zMath_ExceptionName,    zMath_ExceptionList,
11560      apzMath_ExceptionMachs,
11561      MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11562      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
11564   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
11565      apzMath_Huge_Val_From_Dbl_MaxMachs,
11566      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
11567      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
11569   {  zNested_Auth_DesName,    zNested_Auth_DesList,
11570      apzNested_Auth_DesMachs,
11571      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11572      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
11574   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
11575      apzNetbsd_C99_Inline_1Machs,
11576      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11577      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
11579   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
11580      apzNetbsd_C99_Inline_2Machs,
11581      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11582      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
11584   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
11585      apzNetbsd_Extra_SemicolonMachs,
11586      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11587      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
11589   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
11590      apzNewlib_Stdint_1Machs,
11591      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
11592      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
11594   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
11595      apzNewlib_Stdint_2Machs,
11596      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11597      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
11599   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
11600      apzNext_Math_PrefixMachs,
11601      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11602      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
11604   {  zNext_TemplateName,    zNext_TemplateList,
11605      apzNext_TemplateMachs,
11606      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11607      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
11609   {  zNext_VolitileName,    zNext_VolitileList,
11610      apzNext_VolitileMachs,
11611      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11612      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
11614   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
11615      apzNext_Wait_UnionMachs,
11616      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11617      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
11619   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
11620      apzNodeent_SyntaxMachs,
11621      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11622      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
11624   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
11625      apzOpenbsd_Null_DefinitionMachs,
11626      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11627      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
11629   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
11630      apzObstack_Lvalue_CastMachs,
11631      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11632      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
11634   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
11635      apzOpenbsd_Va_StartMachs,
11636      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11637      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
11639   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
11640      apzOsf_Namespace_AMachs,
11641      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11642      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
11644   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
11645      apzOsf_Namespace_CMachs,
11646      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11647      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
11649   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
11650      apzPthread_Incomplete_Struct_ArgumentMachs,
11651      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11652      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
11654   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
11655      apzRead_Ret_TypeMachs,
11656      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11657      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
11659   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
11660      apzRpc_Xdr_Lvalue_Cast_AMachs,
11661      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11662      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
11664   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
11665      apzRpc_Xdr_Lvalue_Cast_BMachs,
11666      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11667      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
11669   {  zRs6000_DoubleName,    zRs6000_DoubleList,
11670      apzRs6000_DoubleMachs,
11671      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11672      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
11674   {  zRs6000_FchmodName,    zRs6000_FchmodList,
11675      apzRs6000_FchmodMachs,
11676      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11677      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
11679   {  zRs6000_ParamName,    zRs6000_ParamList,
11680      apzRs6000_ParamMachs,
11681      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11682      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
11684   {  zSolaris___RestrictName,    zSolaris___RestrictList,
11685      apzSolaris___RestrictMachs,
11686      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11687      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
11689   {  zSolaris_ComplexName,    zSolaris_ComplexList,
11690      apzSolaris_ComplexMachs,
11691      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
11692      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
11694   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
11695      apzSolaris_Complex_CxxMachs,
11696      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
11697      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
11699   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
11700      apzSolaris_Cxx_LinkageMachs,
11701      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11702      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
11704   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
11705      apzSolaris_Getc_Strict_StdcMachs,
11706      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11707      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
11709   {  zSolaris_Gets_C11Name,    zSolaris_Gets_C11List,
11710      apzSolaris_Gets_C11Machs,
11711      SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11712      aSolaris_Gets_C11Tests,   apzSolaris_Gets_C11Patch, 0 },
11714   {  zSolaris_Gets_Cxx14Name,    zSolaris_Gets_Cxx14List,
11715      apzSolaris_Gets_Cxx14Machs,
11716      SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11717      aSolaris_Gets_Cxx14Tests,   apzSolaris_Gets_Cxx14Patch, 0 },
11719   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
11720      apzSolaris_Int_ConstMachs,
11721      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11722      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
11724   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
11725      apzSolaris_Int_Limits_1Machs,
11726      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11727      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
11729   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
11730      apzSolaris_Int_Limits_2Machs,
11731      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11732      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
11734   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
11735      apzSolaris_Int_Limits_3Machs,
11736      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11737      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
11739   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
11740      apzSolaris_Math_1Machs,
11741      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11742      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
11744   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
11745      apzSolaris_Math_10Machs,
11746      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11747      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
11749   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
11750      apzSolaris_Math_2Machs,
11751      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11752      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
11754   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
11755      apzSolaris_Math_3Machs,
11756      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11757      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
11759   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
11760      apzSolaris_Math_4Machs,
11761      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11762      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
11764   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
11765      apzSolaris_Math_8Machs,
11766      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11767      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
11769   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
11770      apzSolaris_Math_9Machs,
11771      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11772      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
11774   {  zSolaris_Math_11Name,    zSolaris_Math_11List,
11775      apzSolaris_Math_11Machs,
11776      SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11777      aSolaris_Math_11Tests,   apzSolaris_Math_11Patch, 0 },
11779   {  zSolaris_Math_12Name,    zSolaris_Math_12List,
11780      apzSolaris_Math_12Machs,
11781      SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
11782      aSolaris_Math_12Tests,   apzSolaris_Math_12Patch, 0 },
11784   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
11785      apzSolaris_Once_Init_1Machs,
11786      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11787      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
11789   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
11790      apzSolaris_Posix_Spawn_RestrictMachs,
11791      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11792      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
11794   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
11795      apzSolaris_Pow_Int_OverloadMachs,
11796      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11797      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
11799   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
11800      apzSolaris_Rwlock_Init_1Machs,
11801      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11802      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
11804   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
11805      apzSolaris_Std___FilbufMachs,
11806      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11807      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
11809   {  zSolaris_Std_Gets_Cxx14Name,    zSolaris_Std_Gets_Cxx14List,
11810      apzSolaris_Std_Gets_Cxx14Machs,
11811      SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11812      aSolaris_Std_Gets_Cxx14Tests,   apzSolaris_Std_Gets_Cxx14Patch, 0 },
11814   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
11815      apzSolaris_Stdio_TagMachs,
11816      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
11817      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
11819   {  zSolaris_Stdlib_NoreturnName,    zSolaris_Stdlib_NoreturnList,
11820      apzSolaris_Stdlib_NoreturnMachs,
11821      SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11822      aSolaris_Stdlib_NoreturnTests,   apzSolaris_Stdlib_NoreturnPatch, 0 },
11824   {  zStatsswtchName,    zStatsswtchList,
11825      apzStatsswtchMachs,
11826      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11827      aStatsswtchTests,   apzStatsswtchPatch, 0 },
11829   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
11830      apzStdio_Stdarg_HMachs,
11831      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11832      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
11834   {  zStdio_Va_ListName,    zStdio_Va_ListList,
11835      apzStdio_Va_ListMachs,
11836      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
11837      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
11839   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
11840      apzStdio_Va_List_ClientsMachs,
11841      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
11842      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
11844   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
11845      apzStrict_Ansi_NotMachs,
11846      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11847      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
11849   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
11850      apzStrict_Ansi_Not_CtdMachs,
11851      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11852      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
11854   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
11855      apzStrict_Ansi_OnlyMachs,
11856      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11857      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
11859   {  zStruct_FileName,    zStruct_FileList,
11860      apzStruct_FileMachs,
11861      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11862      aStruct_FileTests,   apzStruct_FilePatch, 0 },
11864   {  zStruct_SockaddrName,    zStruct_SockaddrList,
11865      apzStruct_SockaddrMachs,
11866      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11867      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
11869   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
11870      apzSun_Auth_ProtoMachs,
11871      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11872      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
11874   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
11875      apzSun_Bogus_IfdefMachs,
11876      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11877      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
11879   {  zSun_CatmacroName,    zSun_CatmacroList,
11880      apzSun_CatmacroMachs,
11881      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11882      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
11884   {  zSun_MallocName,    zSun_MallocList,
11885      apzSun_MallocMachs,
11886      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
11887      aSun_MallocTests,   apzSun_MallocPatch, 0 },
11889   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
11890      apzSun_Rusers_SemiMachs,
11891      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
11892      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
11894   {  zSun_SignalName,    zSun_SignalList,
11895      apzSun_SignalMachs,
11896      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11897      aSun_SignalTests,   apzSun_SignalPatch, 0 },
11899   {  zSunos_StrlenName,    zSunos_StrlenList,
11900      apzSunos_StrlenMachs,
11901      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11902      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
11904   {  zSuse_Linux_Vt_CxxName,    zSuse_Linux_Vt_CxxList,
11905      apzSuse_Linux_Vt_CxxMachs,
11906      SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11907      aSuse_Linux_Vt_CxxTests,   apzSuse_Linux_Vt_CxxPatch, 0 },
11909   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
11910      apzSvr4_Disable_OptMachs,
11911      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
11912      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
11914   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
11915      apzSvr4_GetcwdMachs,
11916      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11917      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
11919   {  zSvr4_ProfilName,    zSvr4_ProfilList,
11920      apzSvr4_ProfilMachs,
11921      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11922      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
11924   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
11925      apzSvr4_Sighandler_TypeMachs,
11926      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11927      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
11929   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
11930      apzSvr4_Undeclared_GetrngeMachs,
11931      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11932      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
11934   {  zSysv68_StringName,    zSysv68_StringList,
11935      apzSysv68_StringMachs,
11936      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
11937      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
11939   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
11940      apzSysz_Stdlib_For_SunMachs,
11941      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11942      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
11944   {  zThread_KeywordName,    zThread_KeywordList,
11945      apzThread_KeywordMachs,
11946      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11947      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
11949   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
11950      apzTinfo_CplusplusMachs,
11951      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11952      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
11954   {  zUltrix_ConstName,    zUltrix_ConstList,
11955      apzUltrix_ConstMachs,
11956      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11957      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
11959   {  zUltrix_Const2Name,    zUltrix_Const2List,
11960      apzUltrix_Const2Machs,
11961      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11962      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
11964   {  zVa_I960_MacroName,    zVa_I960_MacroList,
11965      apzVa_I960_MacroMachs,
11966      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11967      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
11969   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
11970      apzVms_Add_Missing_BracesMachs,
11971      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11972      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
11974   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
11975      apzVms_Decc_BuiltinMachs,
11976      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
11977      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
11979   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
11980      apzVms_Define_Can_Use_Extern_PrefixMachs,
11981      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11982      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
11984   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
11985      apzVms_Disable_Decc_String_BuiltinsMachs,
11986      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11987      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
11989   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
11990      apzVms_Do_Not_Redeclare_HostaliasMachs,
11991      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11992      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
11994   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
11995      apzVms_Forward_Declare_StructMachs,
11996      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11997      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
11999   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
12000      apzVms_No_64bit_GetoptMachs,
12001      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12002      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
12004   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
12005      apzVms_Use_Fast_SetjmpMachs,
12006      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12007      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
12009   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
12010      apzVms_Use_Pragma_Extern_ModelMachs,
12011      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12012      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
12014   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
12015      apzVms_Use_Quoted_IncludeMachs,
12016      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12017      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
12019   {  zVoid_NullName,    zVoid_NullList,
12020      apzVoid_NullMachs,
12021      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12022      aVoid_NullTests,   apzVoid_NullPatch, 0 },
12024   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
12025      apzVxworks_Gcc_ProblemMachs,
12026      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
12027      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
12029   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
12030      apzVxworks_Ioctl_MacroMachs,
12031      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12032      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
12034   {  zVxworks_Mkdir_MacroName,    zVxworks_Mkdir_MacroList,
12035      apzVxworks_Mkdir_MacroMachs,
12036      VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12037      aVxworks_Mkdir_MacroTests,   apzVxworks_Mkdir_MacroPatch, 0 },
12039   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
12040      apzVxworks_Needs_VxtypesMachs,
12041      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12042      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
12044   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
12045      apzVxworks_Needs_VxworksMachs,
12046      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
12047      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
12049   {  zVxworks_RegsName,    zVxworks_RegsList,
12050      apzVxworks_RegsMachs,
12051      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12052      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
12054   {  zVxworks_TimeName,    zVxworks_TimeList,
12055      apzVxworks_TimeMachs,
12056      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12057      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
12059   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
12060      apzVxworks_Write_ConstMachs,
12061      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12062      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
12064   {  zVxworks_Iolib_Include_UnistdName,    zVxworks_Iolib_Include_UnistdList,
12065      apzVxworks_Iolib_Include_UnistdMachs,
12066      VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12067      aVxworks_Iolib_Include_UnistdTests,   apzVxworks_Iolib_Include_UnistdPatch, 0 },
12069   {  zX11_ClassName,    zX11_ClassList,
12070      apzX11_ClassMachs,
12071      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12072      aX11_ClassTests,   apzX11_ClassPatch, 0 },
12074   {  zX11_Class_UsageName,    zX11_Class_UsageList,
12075      apzX11_Class_UsageMachs,
12076      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12077      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
12079   {  zX11_NewName,    zX11_NewList,
12080      apzX11_NewMachs,
12081      X11_NEW_TEST_CT, FD_MACH_ONLY,
12082      aX11_NewTests,   apzX11_NewPatch, 0 },
12084   {  zX11_SprintfName,    zX11_SprintfList,
12085      apzX11_SprintfMachs,
12086      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12087      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }