gccrs: Add lang.opt
[official-gcc.git] / fixincludes / fixincl.x
blob20867548e246c7ed97ea895e1df59fa8c0a9bedf
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  *
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  *
5  * It has been AutoGen-ed  September 29, 2022 at 10:22:55 PM by AutoGen 5.18.16
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Thu Sep 29 22:22:55 CEST 2022
10  *
11  * You must regenerate it.  Use the ./genfixes script.
12  *
13  *
14  * This is part of the fixincl program used to install modified versions of
15  * certain ANSI-incompatible system header files which are fixed to work
16  * correctly with ANSI C and placed in a directory that GNU C will search.
17  *
18  * This file contains 272 fixup descriptions.
19  *
20  * See README for more information.
21  *
22  *  inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
23  *                         2006, 2007, 2008
24  *  The Free Software Foundation, Inc.
25  *
26  *  inclhack is free software: you can redistribute it and/or modify it
27  *  under the terms of the GNU General Public License as published by the
28  *  Free Software Foundation, either version 3 of the License, or
29  *  (at your option) any later version.
30  *  
31  *  inclhack is distributed in the hope that it will be useful, but
32  *  WITHOUT ANY WARRANTY; without even the implied warranty of
33  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34  *  See the GNU General Public License for more details.
35  *  
36  *  You should have received a copy of the GNU General Public License along
37  *  with this program.  If not, see <http://www.gnu.org/licenses/>.
38  */
39 #ifndef SED_PROGRAM
40 #define SED_PROGRAM "/usr/bin/sed"
41 #endif
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45  *
46  *  Description of Aab_Aix_Stdio fix
47  */
48 tSCC zAab_Aix_StdioName[] =
49      "AAB_aix_stdio";
52  *  File name selection pattern
53  */
54 tSCC zAab_Aix_StdioList[] =
55   "stdio.h\0";
57  *  Machine/OS name selection pattern
58  */
59 tSCC* apzAab_Aix_StdioMachs[] = {
60         "*-*-aix*",
61         (const char*)NULL };
64  *  content selection pattern - do fix if pattern found
65  */
66 tSCC zAab_Aix_StdioSelect0[] =
67        "define fopen fopen64";
69 #define    AAB_AIX_STDIO_TEST_CT  1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71   { TT_EGREP,    zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74  *  Fix Command Arguments for Aab_Aix_Stdio
75  */
76 static const char* apzAab_Aix_StdioPatch[] = {
77     "wrap",
78     "",
79     "\n\
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
83 #undef fseeko\n\
84 #undef ftello\n\
85 #undef fgetpos\n\
86 #undef fsetpos\n\
87 #undef fopen\n\
88 #undef freopen\n\
89 /* Alias the symbols using asm */\n\
90 extern \"C\" {\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
97 }\n\
98 #endif\n\
99 #endif\n",
100     (char*)NULL };
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104  *  Description of Aab_Aix_Fcntl fix
105  */
106 tSCC zAab_Aix_FcntlName[] =
107      "AAB_aix_fcntl";
110  *  File name selection pattern
111  */
112 tSCC zAab_Aix_FcntlList[] =
113   "fcntl.h\0";
115  *  Machine/OS name selection pattern
116  */
117 tSCC* apzAab_Aix_FcntlMachs[] = {
118         "*-*-aix*",
119         (const char*)NULL };
122  *  content selection pattern - do fix if pattern found
123  */
124 tSCC zAab_Aix_FcntlSelect0[] =
125        "define open[ \t]open64";
127 #define    AAB_AIX_FCNTL_TEST_CT  1
128 static tTestDesc aAab_Aix_FcntlTests[] = {
129   { TT_EGREP,    zAab_Aix_FcntlSelect0, (regex_t*)NULL }, };
132  *  Fix Command Arguments for Aab_Aix_Fcntl
133  */
134 static const char* apzAab_Aix_FcntlPatch[] = {
135     "wrap",
136     "",
137     "\n\
138 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
139 #define __need__aix_fcntl_h_fix\n\
140 #ifdef __need__aix_fcntl_h_fix\n\
141 #undef open\n\
142 #undef creat\n\
143 #undef openat\n\
144 /* Alias the symbols using asm */\n\
145 extern \"C\" {\n\
146 extern int open(const char *, int, ...) __asm__(\"open64\");\n\
147 extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\
148 #if (_XOPEN_SOURCE >= 700)\n\
149 extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\
150 #endif\n\
151 }\n\
152 #endif\n\
153 #endif\n",
154     (char*)NULL };
156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
158  *  Description of Aab_Darwin7_9_Long_Double_Funcs fix
159  */
160 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
161      "AAB_darwin7_9_long_double_funcs";
164  *  File name selection pattern
165  */
166 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
167   "architecture/ppc/math.h\0";
169  *  Machine/OS name selection pattern
170  */
171 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
172         "*-*-darwin7.9*",
173         (const char*)NULL };
176  *  content bypass pattern - skip fix if pattern found
177  */
178 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
179        "powl";
181 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT  1
182 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
183   { TT_NEGREP,   zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
186  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
187  */
188 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
189 "/* This file prototypes the long double functions available on Mac OS\n\
190    10.3.9.  */\n\
191 #ifndef __MATH__\n\
192 # undef __APPLE_CC__\n\
193 # define __APPLE_CC__  1345\n\
194 # include_next <architecture/ppc/math.h>\n\
195 # undef __APPLE_CC__\n\
196 # define __APPLE_CC__ 1\n\
197 # ifndef __LIBMLDBL_COMPAT\n\
198 #  ifdef __LONG_DOUBLE_128__\n\
199 #   define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
200 #  else\n\
201 #   define __LIBMLDBL_COMPAT(sym)\n\
202 #  endif /* __LONG_DOUBLE_128__ */\n\
203 # endif /* __LIBMLDBL_COMPAT */\n\
204 # ifdef __cplusplus\n\
205    extern \"C\" {\n\
206 # endif\n\
207   extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
208   extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
209   extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
210   extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
211   extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
212   extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
213   extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
214   extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
215   extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
216   extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
217   extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
218   extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
219   extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
220   extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
221   extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
222   extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
223   extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
224   extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
225   extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
226   extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
227   extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
228   extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
229   extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
230   extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
231   extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
232   extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
233   extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
234   extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
235   extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
236   extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
237   extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
238   extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
239   extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
240   extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
241   extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
242   extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
243   extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
244   extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
245   extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
246   extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
247   extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
248   extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
249   extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
250   extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
251   extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
252   extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
253   extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
254   extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
255   extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
256   extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
257   extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
258   extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
259   extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
260   extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
261   extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
262   extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
263   extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
264 # ifdef __cplusplus\n\
265    }\n\
266 # endif\n\
267 #endif /* __MATH__ */",
268     (char*)NULL };
270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
272  *  Description of Darwin_Api_Availability fix
273  */
274 tSCC zDarwin_Api_AvailabilityName[] =
275      "darwin_api_availability";
278  *  File name selection pattern
279  */
280 tSCC zDarwin_Api_AvailabilityList[] =
281   "os/availability.h\0";
283  *  Machine/OS name selection pattern
284  */
285 tSCC* apzDarwin_Api_AvailabilityMachs[] = {
286         "*-*-darwin*",
287         (const char*)NULL };
290  *  content selection pattern - do fix if pattern found
291  */
292 tSCC zDarwin_Api_AvailabilitySelect0[] =
293        " *#define __API_AVAILABLE.*\n\
294  *#define __API_DEPRECATED.*\n\
295  *#define __API_DEPRECATED_WITH_REPLACEMENT.*\n\
296  *#define __API_UNAVAILABLE.*\n";
299  *  content bypass pattern - skip fix if pattern found
300  */
301 tSCC zDarwin_Api_AvailabilityBypass0[] =
302        "__IPHONE_OS_VERSION_MIN_REQUIRED";
304 #define    DARWIN_API_AVAILABILITY_TEST_CT  2
305 static tTestDesc aDarwin_Api_AvailabilityTests[] = {
306   { TT_NEGREP,   zDarwin_Api_AvailabilityBypass0, (regex_t*)NULL },
307   { TT_EGREP,    zDarwin_Api_AvailabilitySelect0, (regex_t*)NULL }, };
310  *  Fix Command Arguments for Darwin_Api_Availability
311  */
312 static const char* apzDarwin_Api_AvailabilityPatch[] = {
313     "format",
314     "    #define API_AVAILABLE(...)\n\
315     #define API_DEPRECATED(...)\n\
316     #define API_DEPRECATED_WITH_REPLACEMENT(...)\n\
317     #define API_UNAVAILABLE(...)\n",
318     (char*)NULL };
320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
322  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
323  */
324 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
325      "AAB_fd_zero_asm_posix_types_h";
328  *  File name selection pattern
329  */
330 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
331   "asm/posix_types.h\0";
333  *  Machine/OS name selection pattern
334  */
335 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
336         "i[34567]86-*-linux*",
337         (const char*)NULL };
340  *  content bypass pattern - skip fix if pattern found
341  */
342 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
343        "} while";
344 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
345        "x86_64";
346 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
347        "posix_types_64";
349 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  3
350 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
351   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
352   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
353   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
356  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
357  */
358 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
359 "/* This file fixes a bug in the __FD_ZERO macro\n\
360    for older versions of the Linux kernel. */\n\
361 #ifndef _POSIX_TYPES_H_WRAPPER\n\
362 #include <features.h>\n\
363  #include_next <asm/posix_types.h>\n\n\
364 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
365 #undef __FD_ZERO\n\
366 #define __FD_ZERO(fdsetp) \\\n\
367   do { \\\n\
368     int __d0, __d1; \\\n\
369 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
370 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
371 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
372   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
373   } while (0)\n\
374 #endif\n\n\
375 #define _POSIX_TYPES_H_WRAPPER\n\
376 #endif /* _POSIX_TYPES_H_WRAPPER */",
377     (char*)NULL };
379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
381  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
382  */
383 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
384      "AAB_fd_zero_gnu_types_h";
387  *  File name selection pattern
388  */
389 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
390   "gnu/types.h\0";
392  *  Machine/OS name selection pattern
393  */
394 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
395         "i[34567]86-*-linux*",
396         (const char*)NULL };
397 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
398 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
401  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
402  */
403 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
404 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
405 #ifndef _TYPES_H_WRAPPER\n\
406 #include <features.h>\n\
407 #include_next <gnu/types.h>\n\n\
408 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
409 #undef __FD_ZERO\n\
410 # define __FD_ZERO(fdsetp) \\\n\
411   do { \\\n\
412     int __d0, __d1; \\\n\
413         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
414         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
415         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
416           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
417   } while (0)\n\
418 #endif\n\n\
419 #define _TYPES_H_WRAPPER\n\
420 #endif /* _TYPES_H_WRAPPER */",
421     (char*)NULL };
423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
425  *  Description of Aab_Fd_Zero_Selectbits_H fix
426  */
427 tSCC zAab_Fd_Zero_Selectbits_HName[] =
428      "AAB_fd_zero_selectbits_h";
431  *  File name selection pattern
432  */
433 tSCC zAab_Fd_Zero_Selectbits_HList[] =
434   "selectbits.h\0";
436  *  Machine/OS name selection pattern
437  */
438 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
439         "i[34567]86-*-linux*",
440         (const char*)NULL };
441 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
442 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
445  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
446  */
447 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
448 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
449 #ifndef _SELECTBITS_H_WRAPPER\n\
450   #include <features.h>\n\
451   #include_next <selectbits.h>\n\n\
452   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
453   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
454   && __GLIBC_MINOR__ == 0\n\
455      #undef __FD_ZERO\n\
456      #define __FD_ZERO(fdsetp) \\\\\n\
457      do { \\\\\n\
458         int __d0, __d1; \\\\\n\
459       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
460                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
461                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
462                                         / sizeof (__fd_mask)), \\\\\n\
463                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
464                         : \"memory\"); \\\\\n\
465       } while (0)\n\
466   #endif\n\n\
467   #define _SELECTBITS_H_WRAPPER\n\
468 #endif /* _SELECTBITS_H_WRAPPER */",
469     (char*)NULL };
471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
473  *  Description of Aab_Solaris_Sys_Varargs_H fix
474  */
475 tSCC zAab_Solaris_Sys_Varargs_HName[] =
476      "AAB_solaris_sys_varargs_h";
479  *  File name selection pattern
480  */
481 tSCC zAab_Solaris_Sys_Varargs_HList[] =
482   "sys/varargs.h\0";
484  *  Machine/OS name selection pattern
485  */
486 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
487         "*-*-solaris*",
488         (const char*)NULL };
489 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
490 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
493  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
494  */
495 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
496 "#ifdef __STDC__\n\
497   #include <stdarg.h>\n\
498 #else\n\
499   #include <varargs.h>\n\
500 #endif",
501     (char*)NULL };
503 /* * * * * * * * * * * * * * * * * * * * * * * * * *
505  *  Description of Aab_Sun_Memcpy fix
506  */
507 tSCC zAab_Sun_MemcpyName[] =
508      "AAB_sun_memcpy";
511  *  File name selection pattern
512  */
513 tSCC zAab_Sun_MemcpyList[] =
514   "memory.h\0";
516  *  Machine/OS name selection pattern
517  */
518 #define apzAab_Sun_MemcpyMachs (const char**)NULL
521  *  content selection pattern - do fix if pattern found
522  */
523 tSCC zAab_Sun_MemcpySelect0[] =
524        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
526 #define    AAB_SUN_MEMCPY_TEST_CT  1
527 static tTestDesc aAab_Sun_MemcpyTests[] = {
528   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
531  *  Fix Command Arguments for Aab_Sun_Memcpy
532  */
533 static const char* apzAab_Sun_MemcpyPatch[] = {
534 "/* This file was generated by fixincludes */\n\
535 #ifndef __memory_h__\n\
536   #define __memory_h__\n\n\
537   #ifdef __STDC__\n\
538     extern void *memccpy();\n\
539     extern void *memchr();\n\
540     extern void *memcpy();\n\
541     extern void *memset();\n\
542   #else\n\
543     extern char *memccpy();\n\
544     extern char *memchr();\n\
545     extern char *memcpy();\n\
546     extern char *memset();\n\
547   #endif /* __STDC__ */\n\n\
548   extern int memcmp();\n\n\
549 #endif /* __memory_h__ */",
550     (char*)NULL };
552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
554  *  Description of Aab_Vxworks_Assert fix
555  */
556 tSCC zAab_Vxworks_AssertName[] =
557      "AAB_vxworks_assert";
560  *  File name selection pattern
561  */
562 tSCC zAab_Vxworks_AssertList[] =
563   "assert.h\0";
565  *  Machine/OS name selection pattern
566  */
567 tSCC* apzAab_Vxworks_AssertMachs[] = {
568         "*-*-vxworks*",
569         (const char*)NULL };
570 #define AAB_VXWORKS_ASSERT_TEST_CT  0
571 #define aAab_Vxworks_AssertTests   (tTestDesc*)NULL
574  *  Fix Command Arguments for Aab_Vxworks_Assert
575  */
576 static const char* apzAab_Vxworks_AssertPatch[] = {
577 "#ifdef _ASSERT_H\n\
578 #undef _ASSERT_H\n\
579 #undef assert\n\
580 #endif\n\n\
581 #define _ASSERT_H\n\n\
582 #ifdef __cplusplus\n\
583 extern \"C\" {\n\
584 #endif\n\n\
585 #if defined(__STDC__) || defined(__cplusplus)\n\
586 extern void __assert (const char*);\n\
587 #else\n\
588 extern void __assert ();\n\
589 #endif\n\n\
590 #ifdef NDEBUG\n\
591 #define assert(ign) ((void)0)\n\
592 #else\n\n\
593 #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
594 #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
595 #define assert(test) ((void) \\\n\
596         ((test) ? ((void)0) : \\\n\
597         __assert(\"Assertion failed: \" #test \", file \" \\\n\
598         __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
599 #endif\n\n\
600 #ifdef __cplusplus\n\
601 }\n\
602 #endif",
603     (char*)NULL };
605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
607  *  Description of Aab_Vxworks_Regs_Vxtypes fix
608  */
609 tSCC zAab_Vxworks_Regs_VxtypesName[] =
610      "AAB_vxworks_regs_vxtypes";
613  *  File name selection pattern
614  */
615 tSCC zAab_Vxworks_Regs_VxtypesList[] =
616   "regs.h\0";
618  *  Machine/OS name selection pattern
619  */
620 tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
621         "*-*-vxworks*",
622         (const char*)NULL };
623 #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT  0
624 #define aAab_Vxworks_Regs_VxtypesTests   (tTestDesc*)NULL
627  *  Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
628  */
629 static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
630 "#ifndef _REGS_H\n\
631 #define _REGS_H\n\
632 /* regs.h depends on CPU_FAMILY being properly defined, which\n\
633    is done by vxCpu.h.  */\n\
634 #include <types/vxCpu.h>\n\
635 /* regs.h includes a CPU_FAMILY-specific header that requires\n\
636    vxTypesOld.h to already have been included.  Those headers\n\
637    contain proper _ASMLANGUAGE guards around their typedefs,\n\
638    but vxTypesOld.h itself does not. So we avoid including\n\
639    vxTypesOld.h from assembly.  */\n\
640 #ifndef _ASMLANGUAGE\n\
641 #include <types/vxTypesOld.h>\n\
642 #endif\n\
643 #include_next <arch/../regs.h>\n\
644 #endif",
645     (char*)NULL };
647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
649  *  Description of Aab_Vxworks_Unistd fix
650  */
651 tSCC zAab_Vxworks_UnistdName[] =
652      "AAB_vxworks_unistd";
655  *  File name selection pattern
656  */
657 tSCC zAab_Vxworks_UnistdList[] =
658   "unistd.h\0";
660  *  Machine/OS name selection pattern
661  */
662 tSCC* apzAab_Vxworks_UnistdMachs[] = {
663         "*-*-vxworks*",
664         (const char*)NULL };
665 #define AAB_VXWORKS_UNISTD_TEST_CT  0
666 #define aAab_Vxworks_UnistdTests   (tTestDesc*)NULL
669  *  Fix Command Arguments for Aab_Vxworks_Unistd
670  */
671 static const char* apzAab_Vxworks_UnistdPatch[] = {
672 "#ifndef _UNISTD_H\n\
673 #define _UNISTD_H\n\
674 #include_next <unistd.h>\n\
675 #include <ioLib.h>\n\
676 #ifndef STDIN_FILENO\n\
677 #define STDIN_FILENO 0\n\
678 #endif\n\
679 #ifndef STDOUT_FILENO\n\
680 #define STDOUT_FILENO 1\n\
681 #endif\n\
682 #ifndef STDERR_FILENO\n\
683 #define STDERR_FILENO 2\n\
684 #endif\n\
685 #endif /* _UNISTD_H */",
686     (char*)NULL };
688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
690  *  Description of Aix_Assert fix
691  */
692 tSCC zAix_AssertName[] =
693      "aix_assert";
696  *  File name selection pattern
697  */
698 tSCC zAix_AssertList[] =
699   "assert.h\0";
701  *  Machine/OS name selection pattern
702  */
703 tSCC* apzAix_AssertMachs[] = {
704         "*-*-aix*",
705         (const char*)NULL };
708  *  content selection pattern - do fix if pattern found
709  */
710 tSCC zAix_AssertSelect0[] =
711        "#define[ \t]static_assert[ \t]_Static_assert";
713 #define    AIX_ASSERT_TEST_CT  1
714 static tTestDesc aAix_AssertTests[] = {
715   { TT_EGREP,    zAix_AssertSelect0, (regex_t*)NULL }, };
718  *  Fix Command Arguments for Aix_Assert
719  */
720 static const char* apzAix_AssertPatch[] = {
721     "format",
722     "#ifndef __cplusplus\n\
723 %0\n\
724 #endif",
725     (char*)NULL };
727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
729  *  Description of Aix_Complex fix
730  */
731 tSCC zAix_ComplexName[] =
732      "aix_complex";
735  *  File name selection pattern
736  */
737 tSCC zAix_ComplexList[] =
738   "complex.h\0";
740  *  Machine/OS name selection pattern
741  */
742 tSCC* apzAix_ComplexMachs[] = {
743         "*-*-aix*",
744         (const char*)NULL };
747  *  content selection pattern - do fix if pattern found
748  */
749 tSCC zAix_ComplexSelect0[] =
750        "#define[ \t]_Complex_I[ \t]__I";
752 #define    AIX_COMPLEX_TEST_CT  1
753 static tTestDesc aAix_ComplexTests[] = {
754   { TT_EGREP,    zAix_ComplexSelect0, (regex_t*)NULL }, };
757  *  Fix Command Arguments for Aix_Complex
758  */
759 static const char* apzAix_ComplexPatch[] = {
760     "format",
761     "#define _Complex_I (__extension__ 1.0iF)",
762     (char*)NULL };
764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
766  *  Description of Aix_Externc fix
767  */
768 tSCC zAix_ExterncName[] =
769      "aix_externc";
772  *  File name selection pattern
773  */
774 tSCC zAix_ExterncList[] =
775   "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0";
777  *  Machine/OS name selection pattern
778  */
779 tSCC* apzAix_ExterncMachs[] = {
780         "*-*-aix*",
781         (const char*)NULL };
784  *  content bypass pattern - skip fix if pattern found
785  */
786 tSCC zAix_ExterncBypass0[] =
787        "extern \"C\"";
789 #define    AIX_EXTERNC_TEST_CT  1
790 static tTestDesc aAix_ExterncTests[] = {
791   { TT_NEGREP,   zAix_ExterncBypass0, (regex_t*)NULL }, };
794  *  Fix Command Arguments for Aix_Externc
795  */
796 static const char* apzAix_ExterncPatch[] = {
797     "wrap",
798     "#ifdef __cplusplus\n\
799 extern \"C\" {\n\
800 #endif\n",
801     "#ifdef __cplusplus\n\
802 }\n\
803 #endif\n",
804     (char*)NULL };
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808  *  Description of Aix_Externcpp1 fix
809  */
810 tSCC zAix_Externcpp1Name[] =
811      "aix_externcpp1";
814  *  File name selection pattern
815  */
816 tSCC zAix_Externcpp1List[] =
817   "sys/socket.h\0";
819  *  Machine/OS name selection pattern
820  */
821 tSCC* apzAix_Externcpp1Machs[] = {
822         "*-*-aix*",
823         (const char*)NULL };
826  *  content selection pattern - do fix if pattern found
827  */
828 tSCC zAix_Externcpp1Select0[] =
829        "#ifndef _KERNEL\n\
830 #ifdef __cplusplus\n\
831 extern \"C\" int naccept\\(int, struct sockaddr \\*, socklen_t \\*\\);";
833 #define    AIX_EXTERNCPP1_TEST_CT  1
834 static tTestDesc aAix_Externcpp1Tests[] = {
835   { TT_EGREP,    zAix_Externcpp1Select0, (regex_t*)NULL }, };
838  *  Fix Command Arguments for Aix_Externcpp1
839  */
840 static const char* apzAix_Externcpp1Patch[] = {
841     "format",
842     "#ifndef _KERNEL\n\
843 #ifdef __cplusplus\n\
844 extern \"C++\" {\n\
845 extern \"C\" int naccept(int, struct sockaddr *, socklen_t *);",
846     (char*)NULL };
848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
850  *  Description of Aix_Externcpp2 fix
851  */
852 tSCC zAix_Externcpp2Name[] =
853      "aix_externcpp2";
856  *  File name selection pattern
857  */
858 tSCC zAix_Externcpp2List[] =
859   "sys/socket.h\0";
861  *  Machine/OS name selection pattern
862  */
863 tSCC* apzAix_Externcpp2Machs[] = {
864         "*-*-aix*",
865         (const char*)NULL };
868  *  content selection pattern - do fix if pattern found
869  */
870 tSCC zAix_Externcpp2Select0[] =
871        "#endif /\\* COMPAT_43 \\*/\n\
872 #else  /\\* __cplusplus \\*/";
874 #define    AIX_EXTERNCPP2_TEST_CT  1
875 static tTestDesc aAix_Externcpp2Tests[] = {
876   { TT_EGREP,    zAix_Externcpp2Select0, (regex_t*)NULL }, };
879  *  Fix Command Arguments for Aix_Externcpp2
880  */
881 static const char* apzAix_Externcpp2Patch[] = {
882     "format",
883     "#endif /* COMPAT_43 */\n\
884 } /* extern \"C++\" */\n\
885 #else  /* __cplusplus */",
886     (char*)NULL };
888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
890  *  Description of Aix_Inttypes fix
891  */
892 tSCC zAix_InttypesName[] =
893      "aix_inttypes";
896  *  File name selection pattern
897  */
898 tSCC zAix_InttypesList[] =
899   "sys/inttypes.h\0";
901  *  Machine/OS name selection pattern
902  */
903 tSCC* apzAix_InttypesMachs[] = {
904         "*-*-aix*",
905         (const char*)NULL };
908  *  content selection pattern - do fix if pattern found
909  */
910 tSCC zAix_InttypesSelect0[] =
911        "#if !defined\\(__cplusplus\\) \\|\\| defined\\(__STDC_FORMAT_MACROS\\)";
913 #define    AIX_INTTYPES_TEST_CT  1
914 static tTestDesc aAix_InttypesTests[] = {
915   { TT_EGREP,    zAix_InttypesSelect0, (regex_t*)NULL }, };
918  *  Fix Command Arguments for Aix_Inttypes
919  */
920 static const char* apzAix_InttypesPatch[] = {
921     "format",
922     "#if 1",
923     (char*)NULL };
925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
927  *  Description of Aix_Malloc fix
928  */
929 tSCC zAix_MallocName[] =
930      "aix_malloc";
933  *  File name selection pattern
934  */
935 tSCC zAix_MallocList[] =
936   "malloc.h\0";
938  *  Machine/OS name selection pattern
939  */
940 tSCC* apzAix_MallocMachs[] = {
941         "*-*-aix*",
942         (const char*)NULL };
945  *  content selection pattern - do fix if pattern found
946  */
947 tSCC zAix_MallocSelect0[] =
948        "#ifdef __cplusplus\n\
949 extern \"C\" \\{\n\
950 [ \t]extern \"builtin\" char \\*__alloca \\(size_t\\);";
952 #define    AIX_MALLOC_TEST_CT  1
953 static tTestDesc aAix_MallocTests[] = {
954   { TT_EGREP,    zAix_MallocSelect0, (regex_t*)NULL }, };
957  *  Fix Command Arguments for Aix_Malloc
958  */
959 static const char* apzAix_MallocPatch[] = {
960     "format",
961     "#if (defined(__cplusplus) && defined(__IBMCPP__))\n\
962 extern \"C\" {\n\
963 \textern \"builtin\" char *__alloca (size_t);",
964     (char*)NULL };
966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
968  *  Description of Aix_Net_If_Arp fix
969  */
970 tSCC zAix_Net_If_ArpName[] =
971      "aix_net_if_arp";
974  *  File name selection pattern
975  */
976 tSCC zAix_Net_If_ArpList[] =
977   "net/if_arp.h\0";
979  *  Machine/OS name selection pattern
980  */
981 tSCC* apzAix_Net_If_ArpMachs[] = {
982         "*-*-aix*",
983         (const char*)NULL };
986  *  content selection pattern - do fix if pattern found
987  */
988 tSCC zAix_Net_If_ArpSelect0[] =
989        "^struct  fc_softc \\{";
991 #define    AIX_NET_IF_ARP_TEST_CT  1
992 static tTestDesc aAix_Net_If_ArpTests[] = {
993   { TT_EGREP,    zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
996  *  Fix Command Arguments for Aix_Net_If_Arp
997  */
998 static const char* apzAix_Net_If_ArpPatch[] = {
999     "format",
1000     "typedef struct _fc_softc {",
1001     (char*)NULL };
1003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1005  *  Description of Aix_Null fix
1006  */
1007 tSCC zAix_NullName[] =
1008      "aix_null";
1011  *  File name selection pattern
1012  */
1013 tSCC zAix_NullList[] =
1014   "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
1016  *  Machine/OS name selection pattern
1017  */
1018 tSCC* apzAix_NullMachs[] = {
1019         "*-*-aix*",
1020         (const char*)NULL };
1023  *  content selection pattern - do fix if pattern found
1024  */
1025 tSCC zAix_NullSelect0[] =
1026        "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
1029  *  content bypass pattern - skip fix if pattern found
1030  */
1031 tSCC zAix_NullBypass0[] =
1032        "__null";
1034 #define    AIX_NULL_TEST_CT  2
1035 static tTestDesc aAix_NullTests[] = {
1036   { TT_NEGREP,   zAix_NullBypass0, (regex_t*)NULL },
1037   { TT_EGREP,    zAix_NullSelect0, (regex_t*)NULL }, };
1040  *  Fix Command Arguments for Aix_Null
1041  */
1042 static const char* apzAix_NullPatch[] = {
1043     "format",
1044     "#ifndef NULL\n\
1045 #ifdef __cplusplus\n\
1046 #ifdef __GNUG__\n\
1047 #define NULL __null\n\
1048 #else /* ! __GNUG__  */\n\
1049 #define NULL 0L\n\
1050 #endif /* __GNUG__  */\n\
1051 #else /* ! __cplusplus  */\n\
1052 #define NULL ((void *)0)\n\
1053 #endif /* __cplusplus  */\n\
1054 #endif /* !NULL  */",
1055     (char*)NULL };
1057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1059  *  Description of Aix_Once_Init_1 fix
1060  */
1061 tSCC zAix_Once_Init_1Name[] =
1062      "aix_once_init_1";
1065  *  File name selection pattern
1066  */
1067 tSCC zAix_Once_Init_1List[] =
1068   "pthread.h\0";
1070  *  Machine/OS name selection pattern
1071  */
1072 tSCC* apzAix_Once_Init_1Machs[] = {
1073         "*-*-aix*",
1074         (const char*)NULL };
1077  *  content selection pattern - do fix if pattern found
1078  */
1079 tSCC zAix_Once_Init_1Select0[] =
1080        "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
1081 \\{ \\\\\n";
1083 #define    AIX_ONCE_INIT_1_TEST_CT  1
1084 static tTestDesc aAix_Once_Init_1Tests[] = {
1085   { TT_EGREP,    zAix_Once_Init_1Select0, (regex_t*)NULL }, };
1088  *  Fix Command Arguments for Aix_Once_Init_1
1089  */
1090 static const char* apzAix_Once_Init_1Patch[] = {
1091     "format",
1092     "#define PTHREAD_ONCE_INIT \\\n\
1093 {{ \\\n",
1094     (char*)NULL };
1096 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1098  *  Description of Aix_Once_Init_2 fix
1099  */
1100 tSCC zAix_Once_Init_2Name[] =
1101      "aix_once_init_2";
1104  *  File name selection pattern
1105  */
1106 tSCC zAix_Once_Init_2List[] =
1107   "pthread.h\0";
1109  *  Machine/OS name selection pattern
1110  */
1111 tSCC* apzAix_Once_Init_2Machs[] = {
1112         "*-*-aix*",
1113         (const char*)NULL };
1116  *  content selection pattern - do fix if pattern found
1117  */
1118 tSCC zAix_Once_Init_2Select0[] =
1119        "[ \t]0 \\\\\n\
1120 \\}\n";
1122 #define    AIX_ONCE_INIT_2_TEST_CT  1
1123 static tTestDesc aAix_Once_Init_2Tests[] = {
1124   { TT_EGREP,    zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1127  *  Fix Command Arguments for Aix_Once_Init_2
1128  */
1129 static const char* apzAix_Once_Init_2Patch[] = {
1130     "format",
1131     "\t0 \\\n\
1132 }}\n",
1133     (char*)NULL };
1135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1137  *  Description of Aix_Mutex_Initializer_1 fix
1138  */
1139 tSCC zAix_Mutex_Initializer_1Name[] =
1140      "aix_mutex_initializer_1";
1143  *  File name selection pattern
1144  */
1145 tSCC zAix_Mutex_Initializer_1List[] =
1146   "pthread.h\0";
1148  *  Machine/OS name selection pattern
1149  */
1150 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1151         "*-*-aix*",
1152         (const char*)NULL };
1155  *  content selection pattern - do fix if pattern found
1156  */
1157 tSCC zAix_Mutex_Initializer_1Select0[] =
1158        "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1159 \\{ \\\\\n";
1161 #define    AIX_MUTEX_INITIALIZER_1_TEST_CT  1
1162 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1163   { TT_EGREP,    zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1166  *  Fix Command Arguments for Aix_Mutex_Initializer_1
1167  */
1168 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1169     "format",
1170     "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1171 {{ \\\n",
1172     (char*)NULL };
1174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1176  *  Description of Aix_Cond_Initializer_1 fix
1177  */
1178 tSCC zAix_Cond_Initializer_1Name[] =
1179      "aix_cond_initializer_1";
1182  *  File name selection pattern
1183  */
1184 tSCC zAix_Cond_Initializer_1List[] =
1185   "pthread.h\0";
1187  *  Machine/OS name selection pattern
1188  */
1189 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1190         "*-*-aix*",
1191         (const char*)NULL };
1194  *  content selection pattern - do fix if pattern found
1195  */
1196 tSCC zAix_Cond_Initializer_1Select0[] =
1197        "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1198 \\{ \\\\\n";
1200 #define    AIX_COND_INITIALIZER_1_TEST_CT  1
1201 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1202   { TT_EGREP,    zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1205  *  Fix Command Arguments for Aix_Cond_Initializer_1
1206  */
1207 static const char* apzAix_Cond_Initializer_1Patch[] = {
1208     "format",
1209     "#define PTHREAD_COND_INITIALIZER \\\n\
1210 {{ \\\n",
1211     (char*)NULL };
1213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1215  *  Description of Aix_Rwlock_Initializer_1 fix
1216  */
1217 tSCC zAix_Rwlock_Initializer_1Name[] =
1218      "aix_rwlock_initializer_1";
1221  *  File name selection pattern
1222  */
1223 tSCC zAix_Rwlock_Initializer_1List[] =
1224   "pthread.h\0";
1226  *  Machine/OS name selection pattern
1227  */
1228 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1229         "*-*-aix*",
1230         (const char*)NULL };
1233  *  content selection pattern - do fix if pattern found
1234  */
1235 tSCC zAix_Rwlock_Initializer_1Select0[] =
1236        "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1237 \\{ \\\\\n";
1239 #define    AIX_RWLOCK_INITIALIZER_1_TEST_CT  1
1240 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1241   { TT_EGREP,    zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1244  *  Fix Command Arguments for Aix_Rwlock_Initializer_1
1245  */
1246 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1247     "format",
1248     "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1249 {{ \\\n",
1250     (char*)NULL };
1252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1254  *  Description of Aix_Physadr_T fix
1255  */
1256 tSCC zAix_Physadr_TName[] =
1257      "aix_physadr_t";
1260  *  File name selection pattern
1261  */
1262 tSCC zAix_Physadr_TList[] =
1263   "sys/types.h\0";
1265  *  Machine/OS name selection pattern
1266  */
1267 tSCC* apzAix_Physadr_TMachs[] = {
1268         "*-*-aix*",
1269         (const char*)NULL };
1272  *  content selection pattern - do fix if pattern found
1273  */
1274 tSCC zAix_Physadr_TSelect0[] =
1275        "typedef[ \t]*struct[ \t]*([{][^}]*[}][ \t]*\\*[ \t]*physadr_t;)";
1277 #define    AIX_PHYSADR_T_TEST_CT  1
1278 static tTestDesc aAix_Physadr_TTests[] = {
1279   { TT_EGREP,    zAix_Physadr_TSelect0, (regex_t*)NULL }, };
1282  *  Fix Command Arguments for Aix_Physadr_T
1283  */
1284 static const char* apzAix_Physadr_TPatch[] = {
1285     "format",
1286     "typedef struct __physadr_s %1",
1287     (char*)NULL };
1289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1291  *  Description of Aix_Pthread fix
1292  */
1293 tSCC zAix_PthreadName[] =
1294      "aix_pthread";
1297  *  File name selection pattern
1298  */
1299 tSCC zAix_PthreadList[] =
1300   "pthread.h\0";
1302  *  Machine/OS name selection pattern
1303  */
1304 #define apzAix_PthreadMachs (const char**)NULL
1307  *  content selection pattern - do fix if pattern found
1308  */
1309 tSCC zAix_PthreadSelect0[] =
1310        "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\
1311 [^A-Za-z_0-9 \t\n\
1312 (])";
1314 #define    AIX_PTHREAD_TEST_CT  1
1315 static tTestDesc aAix_PthreadTests[] = {
1316   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
1319  *  Fix Command Arguments for Aix_Pthread
1320  */
1321 static const char* apzAix_PthreadPatch[] = {
1322     "format",
1323     "%1 %2",
1324     (char*)NULL };
1326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1328  *  Description of Aix_Stdint_1 fix
1329  */
1330 tSCC zAix_Stdint_1Name[] =
1331      "aix_stdint_1";
1334  *  File name selection pattern
1335  */
1336 tSCC zAix_Stdint_1List[] =
1337   "stdint-aix.h\0stdint.h\0";
1339  *  Machine/OS name selection pattern
1340  */
1341 tSCC* apzAix_Stdint_1Machs[] = {
1342         "*-*-aix*",
1343         (const char*)NULL };
1346  *  content selection pattern - do fix if pattern found
1347  */
1348 tSCC zAix_Stdint_1Select0[] =
1349        "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1350 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1352 #define    AIX_STDINT_1_TEST_CT  1
1353 static tTestDesc aAix_Stdint_1Tests[] = {
1354   { TT_EGREP,    zAix_Stdint_1Select0, (regex_t*)NULL }, };
1357  *  Fix Command Arguments for Aix_Stdint_1
1358  */
1359 static const char* apzAix_Stdint_1Patch[] = {
1360     "format",
1361     "#define UINT8_MAX\t(255)\n\
1362 #define UINT16_MAX\t(65535)",
1363     (char*)NULL };
1365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1367  *  Description of Aix_Stdint_2 fix
1368  */
1369 tSCC zAix_Stdint_2Name[] =
1370      "aix_stdint_2";
1373  *  File name selection pattern
1374  */
1375 tSCC zAix_Stdint_2List[] =
1376   "stdint-aix.h\0stdint.h\0";
1378  *  Machine/OS name selection pattern
1379  */
1380 tSCC* apzAix_Stdint_2Machs[] = {
1381         "*-*-aix*",
1382         (const char*)NULL };
1385  *  content selection pattern - do fix if pattern found
1386  */
1387 tSCC zAix_Stdint_2Select0[] =
1388        "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1389 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1390 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1391 #else\n\
1392 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1393 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1394 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1396 #define    AIX_STDINT_2_TEST_CT  1
1397 static tTestDesc aAix_Stdint_2Tests[] = {
1398   { TT_EGREP,    zAix_Stdint_2Select0, (regex_t*)NULL }, };
1401  *  Fix Command Arguments for Aix_Stdint_2
1402  */
1403 static const char* apzAix_Stdint_2Patch[] = {
1404     "format",
1405     "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1406 #define INTPTR_MAX\t9223372036854775807L\n\
1407 #define UINTPTR_MAX\t18446744073709551615UL\n\
1408 #else\n\
1409 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1410 #define INTPTR_MAX\t2147483647L\n\
1411 #define UINTPTR_MAX\t4294967295UL",
1412     (char*)NULL };
1414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1416  *  Description of Aix_Stdint_3 fix
1417  */
1418 tSCC zAix_Stdint_3Name[] =
1419      "aix_stdint_3";
1422  *  File name selection pattern
1423  */
1424 tSCC zAix_Stdint_3List[] =
1425   "stdint-aix.h\0stdint.h\0";
1427  *  Machine/OS name selection pattern
1428  */
1429 tSCC* apzAix_Stdint_3Machs[] = {
1430         "*-*-aix*",
1431         (const char*)NULL };
1434  *  content selection pattern - do fix if pattern found
1435  */
1436 tSCC zAix_Stdint_3Select0[] =
1437        "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1438 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1439 #else\n\
1440 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1441 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1443 #define    AIX_STDINT_3_TEST_CT  1
1444 static tTestDesc aAix_Stdint_3Tests[] = {
1445   { TT_EGREP,    zAix_Stdint_3Select0, (regex_t*)NULL }, };
1448  *  Fix Command Arguments for Aix_Stdint_3
1449  */
1450 static const char* apzAix_Stdint_3Patch[] = {
1451     "format",
1452     "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1453 #define PTRDIFF_MAX\t9223372036854775807L\n\
1454 #else\n\
1455 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1456 #define PTRDIFF_MAX\t2147483647L",
1457     (char*)NULL };
1459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1461  *  Description of Aix_Stdint_4 fix
1462  */
1463 tSCC zAix_Stdint_4Name[] =
1464      "aix_stdint_4";
1467  *  File name selection pattern
1468  */
1469 tSCC zAix_Stdint_4List[] =
1470   "stdint-aix.h\0stdint.h\0";
1472  *  Machine/OS name selection pattern
1473  */
1474 tSCC* apzAix_Stdint_4Machs[] = {
1475         "*-*-aix*",
1476         (const char*)NULL };
1479  *  content selection pattern - do fix if pattern found
1480  */
1481 tSCC zAix_Stdint_4Select0[] =
1482        "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1483 #else\n\
1484 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1486 #define    AIX_STDINT_4_TEST_CT  1
1487 static tTestDesc aAix_Stdint_4Tests[] = {
1488   { TT_EGREP,    zAix_Stdint_4Select0, (regex_t*)NULL }, };
1491  *  Fix Command Arguments for Aix_Stdint_4
1492  */
1493 static const char* apzAix_Stdint_4Patch[] = {
1494     "format",
1495     "#define SIZE_MAX\t18446744073709551615UL\n\
1496 #else\n\
1497 #define SIZE_MAX\t4294967295UL",
1498     (char*)NULL };
1500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1502  *  Description of Aix_Stdint_5 fix
1503  */
1504 tSCC zAix_Stdint_5Name[] =
1505      "aix_stdint_5";
1508  *  File name selection pattern
1509  */
1510 tSCC zAix_Stdint_5List[] =
1511   "stdint-aix.h\0stdint.h\0";
1513  *  Machine/OS name selection pattern
1514  */
1515 tSCC* apzAix_Stdint_5Machs[] = {
1516         "*-*-aix*",
1517         (const char*)NULL };
1520  *  content selection pattern - do fix if pattern found
1521  */
1522 tSCC zAix_Stdint_5Select0[] =
1523        "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1524 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1526 #define    AIX_STDINT_5_TEST_CT  1
1527 static tTestDesc aAix_Stdint_5Tests[] = {
1528   { TT_EGREP,    zAix_Stdint_5Select0, (regex_t*)NULL }, };
1531  *  Fix Command Arguments for Aix_Stdint_5
1532  */
1533 static const char* apzAix_Stdint_5Patch[] = {
1534     "format",
1535     "#define UINT8_C(c)\tc\n\
1536 #define UINT16_C(c)\tc",
1537     (char*)NULL };
1539 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1541  *  Description of Aix_Stdio_Inline fix
1542  */
1543 tSCC zAix_Stdio_InlineName[] =
1544      "aix_stdio_inline";
1547  *  File name selection pattern
1548  */
1549 tSCC zAix_Stdio_InlineList[] =
1550   "stdio.h\0";
1552  *  Machine/OS name selection pattern
1553  */
1554 tSCC* apzAix_Stdio_InlineMachs[] = {
1555         "*-*-aix*",
1556         (const char*)NULL };
1559  *  content selection pattern - do fix if pattern found
1560  */
1561 tSCC zAix_Stdio_InlineSelect0[] =
1562        "#ifdef __cplusplus\\\n\
1563 }\\\n\
1564 \\\n\
1565 #ifdef ferror\\\n";
1567 #define    AIX_STDIO_INLINE_TEST_CT  1
1568 static tTestDesc aAix_Stdio_InlineTests[] = {
1569   { TT_EGREP,    zAix_Stdio_InlineSelect0, (regex_t*)NULL }, };
1572  *  Fix Command Arguments for Aix_Stdio_Inline
1573  */
1574 static const char* apzAix_Stdio_InlinePatch[] = {
1575     "format",
1576     "#ifdef __cplusplus\n\
1577 }\n\
1578 #endif\n\n\
1579 #if (defined(__cplusplus) && defined(__IBMCPP__))\n\
1580 #ifdef ferror\n",
1581     (char*)NULL };
1583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1585  *  Description of Aix_Stdlib_Malloc fix
1586  */
1587 tSCC zAix_Stdlib_MallocName[] =
1588      "aix_stdlib_malloc";
1591  *  File name selection pattern
1592  */
1593 tSCC zAix_Stdlib_MallocList[] =
1594   "stdlib.h\0";
1596  *  Machine/OS name selection pattern
1597  */
1598 tSCC* apzAix_Stdlib_MallocMachs[] = {
1599         "*-*-aix*",
1600         (const char*)NULL };
1603  *  content selection pattern - do fix if pattern found
1604  */
1605 tSCC zAix_Stdlib_MallocSelect0[] =
1606        "#define[ \t]+malloc[ \t]+__linux_malloc";
1608 #define    AIX_STDLIB_MALLOC_TEST_CT  1
1609 static tTestDesc aAix_Stdlib_MallocTests[] = {
1610   { TT_EGREP,    zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, };
1613  *  Fix Command Arguments for Aix_Stdlib_Malloc
1614  */
1615 static const char* apzAix_Stdlib_MallocPatch[] = {
1616     "format",
1617     "extern void *malloc(size_t) __asm__(\"__linux_malloc\");",
1618     (char*)NULL };
1620 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1622  *  Description of Aix_Stdlib_Realloc fix
1623  */
1624 tSCC zAix_Stdlib_ReallocName[] =
1625      "aix_stdlib_realloc";
1628  *  File name selection pattern
1629  */
1630 tSCC zAix_Stdlib_ReallocList[] =
1631   "stdlib.h\0";
1633  *  Machine/OS name selection pattern
1634  */
1635 tSCC* apzAix_Stdlib_ReallocMachs[] = {
1636         "*-*-aix*",
1637         (const char*)NULL };
1640  *  content selection pattern - do fix if pattern found
1641  */
1642 tSCC zAix_Stdlib_ReallocSelect0[] =
1643        "#define[ \t]+realloc[ \t]+__linux_realloc";
1645 #define    AIX_STDLIB_REALLOC_TEST_CT  1
1646 static tTestDesc aAix_Stdlib_ReallocTests[] = {
1647   { TT_EGREP,    zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, };
1650  *  Fix Command Arguments for Aix_Stdlib_Realloc
1651  */
1652 static const char* apzAix_Stdlib_ReallocPatch[] = {
1653     "format",
1654     "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");",
1655     (char*)NULL };
1657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1659  *  Description of Aix_Stdlib_Calloc fix
1660  */
1661 tSCC zAix_Stdlib_CallocName[] =
1662      "aix_stdlib_calloc";
1665  *  File name selection pattern
1666  */
1667 tSCC zAix_Stdlib_CallocList[] =
1668   "stdlib.h\0";
1670  *  Machine/OS name selection pattern
1671  */
1672 tSCC* apzAix_Stdlib_CallocMachs[] = {
1673         "*-*-aix*",
1674         (const char*)NULL };
1677  *  content selection pattern - do fix if pattern found
1678  */
1679 tSCC zAix_Stdlib_CallocSelect0[] =
1680        "#define[ \t]+calloc[ \t]+__linux_calloc";
1682 #define    AIX_STDLIB_CALLOC_TEST_CT  1
1683 static tTestDesc aAix_Stdlib_CallocTests[] = {
1684   { TT_EGREP,    zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, };
1687  *  Fix Command Arguments for Aix_Stdlib_Calloc
1688  */
1689 static const char* apzAix_Stdlib_CallocPatch[] = {
1690     "format",
1691     "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");",
1692     (char*)NULL };
1694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1696  *  Description of Aix_Stdlib_Valloc fix
1697  */
1698 tSCC zAix_Stdlib_VallocName[] =
1699      "aix_stdlib_valloc";
1702  *  File name selection pattern
1703  */
1704 tSCC zAix_Stdlib_VallocList[] =
1705   "stdlib.h\0";
1707  *  Machine/OS name selection pattern
1708  */
1709 tSCC* apzAix_Stdlib_VallocMachs[] = {
1710         "*-*-aix*",
1711         (const char*)NULL };
1714  *  content selection pattern - do fix if pattern found
1715  */
1716 tSCC zAix_Stdlib_VallocSelect0[] =
1717        "#define[ \t]+valloc[ \t]+__linux_valloc";
1719 #define    AIX_STDLIB_VALLOC_TEST_CT  1
1720 static tTestDesc aAix_Stdlib_VallocTests[] = {
1721   { TT_EGREP,    zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, };
1724  *  Fix Command Arguments for Aix_Stdlib_Valloc
1725  */
1726 static const char* apzAix_Stdlib_VallocPatch[] = {
1727     "format",
1728     "extern void *valloc(size_t) __asm__(\"__linux_valloc\");",
1729     (char*)NULL };
1731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1733  *  Description of Aix_Stdlib_Vec_Malloc fix
1734  */
1735 tSCC zAix_Stdlib_Vec_MallocName[] =
1736      "aix_stdlib_vec_malloc";
1739  *  File name selection pattern
1740  */
1741 tSCC zAix_Stdlib_Vec_MallocList[] =
1742   "stdlib.h\0";
1744  *  Machine/OS name selection pattern
1745  */
1746 tSCC* apzAix_Stdlib_Vec_MallocMachs[] = {
1747         "*-*-aix*",
1748         (const char*)NULL };
1751  *  content selection pattern - do fix if pattern found
1752  */
1753 tSCC zAix_Stdlib_Vec_MallocSelect0[] =
1754        "#define[ \t]+malloc[ \t]+vec_malloc";
1756 #define    AIX_STDLIB_VEC_MALLOC_TEST_CT  1
1757 static tTestDesc aAix_Stdlib_Vec_MallocTests[] = {
1758   { TT_EGREP,    zAix_Stdlib_Vec_MallocSelect0, (regex_t*)NULL }, };
1761  *  Fix Command Arguments for Aix_Stdlib_Vec_Malloc
1762  */
1763 static const char* apzAix_Stdlib_Vec_MallocPatch[] = {
1764     "format",
1765     "extern void *malloc(size_t) __asm__(\"vec_malloc\");",
1766     (char*)NULL };
1768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1770  *  Description of Aix_Stdlib_Vec_Calloc fix
1771  */
1772 tSCC zAix_Stdlib_Vec_CallocName[] =
1773      "aix_stdlib_vec_calloc";
1776  *  File name selection pattern
1777  */
1778 tSCC zAix_Stdlib_Vec_CallocList[] =
1779   "stdlib.h\0";
1781  *  Machine/OS name selection pattern
1782  */
1783 tSCC* apzAix_Stdlib_Vec_CallocMachs[] = {
1784         "*-*-aix*",
1785         (const char*)NULL };
1788  *  content selection pattern - do fix if pattern found
1789  */
1790 tSCC zAix_Stdlib_Vec_CallocSelect0[] =
1791        "#define[ \t]+calloc[ \t]+vec_calloc";
1793 #define    AIX_STDLIB_VEC_CALLOC_TEST_CT  1
1794 static tTestDesc aAix_Stdlib_Vec_CallocTests[] = {
1795   { TT_EGREP,    zAix_Stdlib_Vec_CallocSelect0, (regex_t*)NULL }, };
1798  *  Fix Command Arguments for Aix_Stdlib_Vec_Calloc
1799  */
1800 static const char* apzAix_Stdlib_Vec_CallocPatch[] = {
1801     "format",
1802     "extern void *calloc(size_t, size_t) __asm__(\"vec_calloc\");",
1803     (char*)NULL };
1805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1807  *  Description of Aix_Strtof_Const fix
1808  */
1809 tSCC zAix_Strtof_ConstName[] =
1810      "aix_strtof_const";
1813  *  File name selection pattern
1814  */
1815 tSCC zAix_Strtof_ConstList[] =
1816   "stdlib.h\0";
1818  *  Machine/OS name selection pattern
1819  */
1820 tSCC* apzAix_Strtof_ConstMachs[] = {
1821         "*-*-aix*",
1822         (const char*)NULL };
1825  *  content selection pattern - do fix if pattern found
1826  */
1827 tSCC zAix_Strtof_ConstSelect0[] =
1828        "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1830 #define    AIX_STRTOF_CONST_TEST_CT  1
1831 static tTestDesc aAix_Strtof_ConstTests[] = {
1832   { TT_EGREP,    zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1835  *  Fix Command Arguments for Aix_Strtof_Const
1836  */
1837 static const char* apzAix_Strtof_ConstPatch[] = {
1838     "format",
1839     "%1(const char *, char **);",
1840     (char*)NULL };
1842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1844  *  Description of Aix_Sysmachine fix
1845  */
1846 tSCC zAix_SysmachineName[] =
1847      "aix_sysmachine";
1850  *  File name selection pattern
1851  */
1852 tSCC zAix_SysmachineList[] =
1853   "sys/machine.h\0";
1855  *  Machine/OS name selection pattern
1856  */
1857 tSCC* apzAix_SysmachineMachs[] = {
1858         "*-*-aix*",
1859         (const char*)NULL };
1862  *  content selection pattern - do fix if pattern found
1863  */
1864 tSCC zAix_SysmachineSelect0[] =
1865        "\\\\ +\n";
1867 #define    AIX_SYSMACHINE_TEST_CT  1
1868 static tTestDesc aAix_SysmachineTests[] = {
1869   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
1872  *  Fix Command Arguments for Aix_Sysmachine
1873  */
1874 static const char* apzAix_SysmachinePatch[] = {
1875     "format",
1876     "\\\n",
1877     (char*)NULL };
1879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1881  *  Description of Aix_Syswait_2 fix
1882  */
1883 tSCC zAix_Syswait_2Name[] =
1884      "aix_syswait_2";
1887  *  File name selection pattern
1888  */
1889 tSCC zAix_Syswait_2List[] =
1890   "sys/wait.h\0";
1892  *  Machine/OS name selection pattern
1893  */
1894 tSCC* apzAix_Syswait_2Machs[] = {
1895         "*-*-aix*",
1896         (const char*)NULL };
1899  *  content selection pattern - do fix if pattern found
1900  */
1901 tSCC zAix_Syswait_2Select0[] =
1902        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1904 #define    AIX_SYSWAIT_2_TEST_CT  1
1905 static tTestDesc aAix_Syswait_2Tests[] = {
1906   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
1909  *  Fix Command Arguments for Aix_Syswait_2
1910  */
1911 static const char* apzAix_Syswait_2Patch[] = {
1912     "format",
1913     "? (int)%1",
1914     (char*)NULL };
1916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1918  *  Description of Aix_Volatile fix
1919  */
1920 tSCC zAix_VolatileName[] =
1921      "aix_volatile";
1924  *  File name selection pattern
1925  */
1926 tSCC zAix_VolatileList[] =
1927   "sys/signal.h\0";
1929  *  Machine/OS name selection pattern
1930  */
1931 tSCC* apzAix_VolatileMachs[] = {
1932         "*-*-aix*",
1933         (const char*)NULL };
1936  *  content selection pattern - do fix if pattern found
1937  */
1938 tSCC zAix_VolatileSelect0[] =
1939        "typedef volatile int sig_atomic_t";
1941 #define    AIX_VOLATILE_TEST_CT  1
1942 static tTestDesc aAix_VolatileTests[] = {
1943   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
1946  *  Fix Command Arguments for Aix_Volatile
1947  */
1948 static const char* apzAix_VolatilePatch[] = {
1949     "format",
1950     "typedef int sig_atomic_t",
1951     (char*)NULL };
1953 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1955  *  Description of Aix_Unistd fix
1956  */
1957 tSCC zAix_UnistdName[] =
1958      "aix_unistd";
1961  *  File name selection pattern
1962  */
1963 tSCC zAix_UnistdList[] =
1964   "unistd.h\0";
1966  *  Machine/OS name selection pattern
1967  */
1968 tSCC* apzAix_UnistdMachs[] = {
1969         "*-*-aix*",
1970         (const char*)NULL };
1973  *  content selection pattern - do fix if pattern found
1974  */
1975 tSCC zAix_UnistdSelect0[] =
1976        "[ \t]+static[ \t]+int[ \t]+getdtablesize\\(\\)";
1978 #define    AIX_UNISTD_TEST_CT  1
1979 static tTestDesc aAix_UnistdTests[] = {
1980   { TT_EGREP,    zAix_UnistdSelect0, (regex_t*)NULL }, };
1983  *  Fix Command Arguments for Aix_Unistd
1984  */
1985 static const char* apzAix_UnistdPatch[] = {
1986     "format",
1987     "\tstatic int\t\tgetdtablesize(void)",
1988     (char*)NULL };
1990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1992  *  Description of Alpha___Assert fix
1993  */
1994 tSCC zAlpha___AssertName[] =
1995      "alpha___assert";
1998  *  File name selection pattern
1999  */
2000 tSCC zAlpha___AssertList[] =
2001   "assert.h\0";
2003  *  Machine/OS name selection pattern
2004  */
2005 #define apzAlpha___AssertMachs (const char**)NULL
2008  *  content selection pattern - do fix if pattern found
2009  */
2010 tSCC zAlpha___AssertSelect0[] =
2011        "__assert\\(char \\*, char \\*, int\\)";
2013 #define    ALPHA___ASSERT_TEST_CT  1
2014 static tTestDesc aAlpha___AssertTests[] = {
2015   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
2018  *  Fix Command Arguments for Alpha___Assert
2019  */
2020 static const char* apzAlpha___AssertPatch[] = {
2021     "format",
2022     "__assert(const char *, const char *, int)",
2023     (char*)NULL };
2025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2027  *  Description of Alpha_Assert fix
2028  */
2029 tSCC zAlpha_AssertName[] =
2030      "alpha_assert";
2033  *  File name selection pattern
2034  */
2035 tSCC zAlpha_AssertList[] =
2036   "assert.h\0";
2038  *  Machine/OS name selection pattern
2039  */
2040 #define apzAlpha_AssertMachs (const char**)NULL
2043  *  content selection pattern - do fix if pattern found
2044  */
2045 tSCC zAlpha_AssertSelect0[] =
2046        "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
2048 #define    ALPHA_ASSERT_TEST_CT  1
2049 static tTestDesc aAlpha_AssertTests[] = {
2050   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
2053  *  Fix Command Arguments for Alpha_Assert
2054  */
2055 static const char* apzAlpha_AssertPatch[] = {
2056     "format",
2057     "%1(EX)",
2058     (char*)NULL };
2060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2062  *  Description of Alpha_Getopt fix
2063  */
2064 tSCC zAlpha_GetoptName[] =
2065      "alpha_getopt";
2068  *  File name selection pattern
2069  */
2070 tSCC zAlpha_GetoptList[] =
2071   "stdio.h\0stdlib.h\0";
2073  *  Machine/OS name selection pattern
2074  */
2075 #define apzAlpha_GetoptMachs (const char**)NULL
2078  *  content selection pattern - do fix if pattern found
2079  */
2080 tSCC zAlpha_GetoptSelect0[] =
2081        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
2083 #define    ALPHA_GETOPT_TEST_CT  1
2084 static tTestDesc aAlpha_GetoptTests[] = {
2085   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
2088  *  Fix Command Arguments for Alpha_Getopt
2089  */
2090 static const char* apzAlpha_GetoptPatch[] = {
2091     "format",
2092     "getopt(int, char *const[], const char *)",
2093     (char*)NULL };
2095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2097  *  Description of Alpha_If_Semicolon fix
2098  */
2099 tSCC zAlpha_If_SemicolonName[] =
2100      "alpha_if_semicolon";
2103  *  File name selection pattern
2104  */
2105 tSCC zAlpha_If_SemicolonList[] =
2106   "net/if.h\0";
2108  *  Machine/OS name selection pattern
2109  */
2110 #define apzAlpha_If_SemicolonMachs (const char**)NULL
2113  *  content selection pattern - do fix if pattern found
2114  */
2115 tSCC zAlpha_If_SemicolonSelect0[] =
2116        "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
2118 #define    ALPHA_IF_SEMICOLON_TEST_CT  1
2119 static tTestDesc aAlpha_If_SemicolonTests[] = {
2120   { TT_EGREP,    zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
2123  *  Fix Command Arguments for Alpha_If_Semicolon
2124  */
2125 static const char* apzAlpha_If_SemicolonPatch[] = {
2126     "format",
2127     "struct sockaddr vmif_paddr;\t/*",
2128     (char*)NULL };
2130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2132  *  Description of Alpha_Parens fix
2133  */
2134 tSCC zAlpha_ParensName[] =
2135      "alpha_parens";
2138  *  File name selection pattern
2139  */
2140 tSCC zAlpha_ParensList[] =
2141   "sym.h\0";
2143  *  Machine/OS name selection pattern
2144  */
2145 #define apzAlpha_ParensMachs (const char**)NULL
2148  *  content selection pattern - do fix if pattern found
2149  */
2150 tSCC zAlpha_ParensSelect0[] =
2151        "#ifndef\\(__mips64\\)";
2153 #define    ALPHA_PARENS_TEST_CT  1
2154 static tTestDesc aAlpha_ParensTests[] = {
2155   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
2158  *  Fix Command Arguments for Alpha_Parens
2159  */
2160 static const char* apzAlpha_ParensPatch[] = {
2161     "format",
2162     "#ifndef __mips64",
2163     (char*)NULL };
2165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2167  *  Description of Alpha_Sbrk fix
2168  */
2169 tSCC zAlpha_SbrkName[] =
2170      "alpha_sbrk";
2173  *  File name selection pattern
2174  */
2175 tSCC zAlpha_SbrkList[] =
2176   "unistd.h\0";
2178  *  Machine/OS name selection pattern
2179  */
2180 #define apzAlpha_SbrkMachs (const char**)NULL
2183  *  content selection pattern - do fix if pattern found
2184  */
2185 tSCC zAlpha_SbrkSelect0[] =
2186        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
2188 #define    ALPHA_SBRK_TEST_CT  1
2189 static tTestDesc aAlpha_SbrkTests[] = {
2190   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
2193  *  Fix Command Arguments for Alpha_Sbrk
2194  */
2195 static const char* apzAlpha_SbrkPatch[] = {
2196     "format",
2197     "void *sbrk(",
2198     (char*)NULL };
2200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2202  *  Description of Avoid_Bool_Define fix
2203  */
2204 tSCC zAvoid_Bool_DefineName[] =
2205      "avoid_bool_define";
2208  *  File name selection pattern
2209  */
2210 tSCC zAvoid_Bool_DefineList[] =
2211   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2213  *  Machine/OS name selection pattern
2214  */
2215 #define apzAvoid_Bool_DefineMachs (const char**)NULL
2218  *  content selection pattern - do fix if pattern found
2219  */
2220 tSCC zAvoid_Bool_DefineSelect0[] =
2221        "#[ \t]*define[ \t]+bool[ \t]";
2224  *  content bypass pattern - skip fix if pattern found
2225  */
2226 tSCC zAvoid_Bool_DefineBypass0[] =
2227        "__cplusplus";
2229 #define    AVOID_BOOL_DEFINE_TEST_CT  2
2230 static tTestDesc aAvoid_Bool_DefineTests[] = {
2231   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
2232   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
2235  *  Fix Command Arguments for Avoid_Bool_Define
2236  */
2237 static const char* apzAvoid_Bool_DefinePatch[] = {
2238     "format",
2239     "#ifndef __cplusplus\n\
2240 %0\n\
2241 #endif",
2242     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
2243     (char*)NULL };
2245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2247  *  Description of Avoid_Bool_Type fix
2248  */
2249 tSCC zAvoid_Bool_TypeName[] =
2250      "avoid_bool_type";
2253  *  File name selection pattern
2254  */
2255 tSCC zAvoid_Bool_TypeList[] =
2256   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2258  *  Machine/OS name selection pattern
2259  */
2260 #define apzAvoid_Bool_TypeMachs (const char**)NULL
2263  *  content selection pattern - do fix if pattern found
2264  */
2265 tSCC zAvoid_Bool_TypeSelect0[] =
2266        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
2269  *  content bypass pattern - skip fix if pattern found
2270  */
2271 tSCC zAvoid_Bool_TypeBypass0[] =
2272        "__cplusplus";
2274 #define    AVOID_BOOL_TYPE_TEST_CT  2
2275 static tTestDesc aAvoid_Bool_TypeTests[] = {
2276   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
2277   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
2280  *  Fix Command Arguments for Avoid_Bool_Type
2281  */
2282 static const char* apzAvoid_Bool_TypePatch[] = {
2283     "format",
2284     "#ifndef __cplusplus\n\
2285 %0\n\
2286 #endif",
2287     (char*)NULL };
2289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2291  *  Description of Avoid_Wchar_T_Type fix
2292  */
2293 tSCC zAvoid_Wchar_T_TypeName[] =
2294      "avoid_wchar_t_type";
2297  *  File name selection pattern
2298  */
2299 #define zAvoid_Wchar_T_TypeList (char*)NULL
2301  *  Machine/OS name selection pattern
2302  */
2303 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
2306  *  content selection pattern - do fix if pattern found
2307  */
2308 tSCC zAvoid_Wchar_T_TypeSelect0[] =
2309        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
2312  *  content bypass pattern - skip fix if pattern found
2313  */
2314 tSCC zAvoid_Wchar_T_TypeBypass0[] =
2315        "__cplusplus";
2316 tSCC zAvoid_Wchar_T_TypeBypass1[] =
2317        "_LINUX_NLS_H";
2318 tSCC zAvoid_Wchar_T_TypeBypass2[] =
2319        "XFree86: xc/lib/X11/Xlib\\.h";
2321 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
2322 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
2323   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
2324   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
2325   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
2326   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
2329  *  Fix Command Arguments for Avoid_Wchar_T_Type
2330  */
2331 static const char* apzAvoid_Wchar_T_TypePatch[] = {
2332     "format",
2333     "#ifndef __cplusplus\n\
2334 %0\n\
2335 #endif",
2336     (char*)NULL };
2338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2340  *  Description of Bad_Struct_Term fix
2341  */
2342 tSCC zBad_Struct_TermName[] =
2343      "bad_struct_term";
2346  *  File name selection pattern
2347  */
2348 tSCC zBad_Struct_TermList[] =
2349   "curses.h\0";
2351  *  Machine/OS name selection pattern
2352  */
2353 #define apzBad_Struct_TermMachs (const char**)NULL
2356  *  content selection pattern - do fix if pattern found
2357  */
2358 tSCC zBad_Struct_TermSelect0[] =
2359        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
2361 #define    BAD_STRUCT_TERM_TEST_CT  1
2362 static tTestDesc aBad_Struct_TermTests[] = {
2363   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
2366  *  Fix Command Arguments for Bad_Struct_Term
2367  */
2368 static const char* apzBad_Struct_TermPatch[] = {
2369     "format",
2370     "struct term;",
2371     (char*)NULL };
2373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2375  *  Description of Badquote fix
2376  */
2377 tSCC zBadquoteName[] =
2378      "badquote";
2381  *  File name selection pattern
2382  */
2383 tSCC zBadquoteList[] =
2384   "sundev/vuid_event.h\0";
2386  *  Machine/OS name selection pattern
2387  */
2388 #define apzBadquoteMachs (const char**)NULL
2391  *  content selection pattern - do fix if pattern found
2392  */
2393 tSCC zBadquoteSelect0[] =
2394        "doesn't";
2396 #define    BADQUOTE_TEST_CT  1
2397 static tTestDesc aBadquoteTests[] = {
2398   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
2401  *  Fix Command Arguments for Badquote
2402  */
2403 static const char* apzBadquotePatch[] = {
2404     "format",
2405     "does not",
2406     (char*)NULL };
2408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2410  *  Description of Broken_Assert_Stdio fix
2411  */
2412 tSCC zBroken_Assert_StdioName[] =
2413      "broken_assert_stdio";
2416  *  File name selection pattern
2417  */
2418 tSCC zBroken_Assert_StdioList[] =
2419   "assert.h\0";
2421  *  Machine/OS name selection pattern
2422  */
2423 #define apzBroken_Assert_StdioMachs (const char**)NULL
2426  *  content selection pattern - do fix if pattern found
2427  */
2428 tSCC zBroken_Assert_StdioSelect0[] =
2429        "stderr";
2432  *  content bypass pattern - skip fix if pattern found
2433  */
2434 tSCC zBroken_Assert_StdioBypass0[] =
2435        "include.*stdio\\.h";
2437 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
2438 static tTestDesc aBroken_Assert_StdioTests[] = {
2439   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
2440   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
2443  *  Fix Command Arguments for Broken_Assert_Stdio
2444  */
2445 static const char* apzBroken_Assert_StdioPatch[] = {
2446     "wrap",
2447     "#include <stdio.h>\n",
2448     (char*)NULL };
2450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2452  *  Description of Broken_Assert_Stdlib fix
2453  */
2454 tSCC zBroken_Assert_StdlibName[] =
2455      "broken_assert_stdlib";
2458  *  File name selection pattern
2459  */
2460 tSCC zBroken_Assert_StdlibList[] =
2461   "assert.h\0";
2463  *  Machine/OS name selection pattern
2464  */
2465 #define apzBroken_Assert_StdlibMachs (const char**)NULL
2468  *  content selection pattern - do fix if pattern found
2469  */
2470 tSCC zBroken_Assert_StdlibSelect0[] =
2471        "exit *\\(|abort *\\(";
2474  *  content bypass pattern - skip fix if pattern found
2475  */
2476 tSCC zBroken_Assert_StdlibBypass0[] =
2477        "include.*stdlib\\.h";
2479 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
2480 static tTestDesc aBroken_Assert_StdlibTests[] = {
2481   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2482   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
2485  *  Fix Command Arguments for Broken_Assert_Stdlib
2486  */
2487 static const char* apzBroken_Assert_StdlibPatch[] = {
2488     "wrap",
2489     "#ifdef __cplusplus\n\
2490 #include <stdlib.h>\n\
2491 #endif\n",
2492     (char*)NULL };
2494 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2496  *  Description of Broken_Cabs fix
2497  */
2498 tSCC zBroken_CabsName[] =
2499      "broken_cabs";
2502  *  File name selection pattern
2503  */
2504 tSCC zBroken_CabsList[] =
2505   "math.h\0architecture/*/math.h\0";
2507  *  Machine/OS name selection pattern
2508  */
2509 #define apzBroken_CabsMachs (const char**)NULL
2512  *  content selection pattern - do fix if pattern found
2513  */
2514 tSCC zBroken_CabsSelect0[] =
2515        "^extern[ \t]+double[ \t]+cabs";
2517 #define    BROKEN_CABS_TEST_CT  1
2518 static tTestDesc aBroken_CabsTests[] = {
2519   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
2522  *  Fix Command Arguments for Broken_Cabs
2523  */
2524 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2525     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2526     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2527     (char*)NULL };
2529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2531  *  Description of Broken_Nan fix
2532  */
2533 tSCC zBroken_NanName[] =
2534      "broken_nan";
2537  *  File name selection pattern
2538  */
2539 tSCC zBroken_NanList[] =
2540   "architecture/ppc/math.h\0architecture/*/math.h\0";
2542  *  Machine/OS name selection pattern
2543  */
2544 #define apzBroken_NanMachs (const char**)NULL
2547  *  content selection pattern - do fix if pattern found
2548  */
2549 tSCC zBroken_NanSelect0[] =
2550        "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2553  *  content bypass pattern - skip fix if pattern found
2554  */
2555 tSCC zBroken_NanBypass0[] =
2556        "powl";
2558 #define    BROKEN_NAN_TEST_CT  2
2559 static tTestDesc aBroken_NanTests[] = {
2560   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
2561   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
2564  *  Fix Command Arguments for Broken_Nan
2565  */
2566 static const char* apzBroken_NanPatch[] = {
2567     "format",
2568     "#if 1",
2569     (char*)NULL };
2571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2573  *  Description of Bsd_Stdio_Attrs_Conflict fix
2574  */
2575 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2576      "bsd_stdio_attrs_conflict";
2579  *  File name selection pattern
2580  */
2581 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2582   "stdio.h\0";
2584  *  Machine/OS name selection pattern
2585  */
2586 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2587         "*-*-*bsd*",
2588         "*-*-*darwin*",
2589         (const char*)NULL };
2592  *  content selection pattern - do fix if pattern found
2593  */
2594 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2595        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2597 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
2598 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2599   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2602  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2603  */
2604 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2605     "format",
2606     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2607 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2608 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2609     (char*)NULL };
2611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2613  *  Description of Ctrl_Quotes_Def fix
2614  */
2615 tSCC zCtrl_Quotes_DefName[] =
2616      "ctrl_quotes_def";
2619  *  File name selection pattern
2620  */
2621 #define zCtrl_Quotes_DefList (char*)NULL
2623  *  Machine/OS name selection pattern
2624  */
2625 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2628  *  content selection pattern - do fix if pattern found
2629  */
2630 tSCC zCtrl_Quotes_DefSelect0[] =
2631        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2633 #define    CTRL_QUOTES_DEF_TEST_CT  1
2634 static tTestDesc aCtrl_Quotes_DefTests[] = {
2635   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2638  *  Fix Command Arguments for Ctrl_Quotes_Def
2639  */
2640 static const char* apzCtrl_Quotes_DefPatch[] = {
2641     "char_macro_def",
2642     "CTRL",
2643     (char*)NULL };
2645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2647  *  Description of Ctrl_Quotes_Use fix
2648  */
2649 tSCC zCtrl_Quotes_UseName[] =
2650      "ctrl_quotes_use";
2653  *  File name selection pattern
2654  */
2655 #define zCtrl_Quotes_UseList (char*)NULL
2657  *  Machine/OS name selection pattern
2658  */
2659 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2662  *  content selection pattern - do fix if pattern found
2663  */
2664 tSCC zCtrl_Quotes_UseSelect0[] =
2665        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2667 #define    CTRL_QUOTES_USE_TEST_CT  1
2668 static tTestDesc aCtrl_Quotes_UseTests[] = {
2669   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2672  *  Fix Command Arguments for Ctrl_Quotes_Use
2673  */
2674 static const char* apzCtrl_Quotes_UsePatch[] = {
2675     "char_macro_use",
2676     "CTRL",
2677     (char*)NULL };
2679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2681  *  Description of Cxx_Unready fix
2682  */
2683 tSCC zCxx_UnreadyName[] =
2684      "cxx_unready";
2687  *  File name selection pattern
2688  */
2689 tSCC zCxx_UnreadyList[] =
2690   "sys/mman.h\0rpc/types.h\0";
2692  *  Machine/OS name selection pattern
2693  */
2694 #define apzCxx_UnreadyMachs (const char**)NULL
2697  *  content selection pattern - do fix if pattern found
2698  */
2699 tSCC zCxx_UnreadySelect0[] =
2700        "[^#]+malloc.*;";
2703  *  content bypass pattern - skip fix if pattern found
2704  */
2705 tSCC zCxx_UnreadyBypass0[] =
2706        "\"C\"|__BEGIN_DECLS";
2708 #define    CXX_UNREADY_TEST_CT  2
2709 static tTestDesc aCxx_UnreadyTests[] = {
2710   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
2711   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
2714  *  Fix Command Arguments for Cxx_Unready
2715  */
2716 static const char* apzCxx_UnreadyPatch[] = {
2717     "wrap",
2718     "#ifdef __cplusplus\n\
2719 extern \"C\" {\n\
2720 #endif\n",
2721     "#ifdef __cplusplus\n\
2722 }\n\
2723 #endif\n",
2724     (char*)NULL };
2726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2728  *  Description of Darwin_Availabilityinternal fix
2729  */
2730 tSCC zDarwin_AvailabilityinternalName[] =
2731      "darwin_availabilityinternal";
2734  *  File name selection pattern
2735  */
2736 tSCC zDarwin_AvailabilityinternalList[] =
2737   "AvailabilityInternal.h\0";
2739  *  Machine/OS name selection pattern
2740  */
2741 tSCC* apzDarwin_AvailabilityinternalMachs[] = {
2742         "*-*-darwin*",
2743         (const char*)NULL };
2746  *  content selection pattern - do fix if pattern found
2747  */
2748 tSCC zDarwin_AvailabilityinternalSelect0[] =
2749        "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*";
2751 #define    DARWIN_AVAILABILITYINTERNAL_TEST_CT  1
2752 static tTestDesc aDarwin_AvailabilityinternalTests[] = {
2753   { TT_EGREP,    zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, };
2756  *  Fix Command Arguments for Darwin_Availabilityinternal
2757  */
2758 static const char* apzDarwin_AvailabilityinternalPatch[] = {
2759     "format",
2760     "#if defined(__has_attribute)\n\
2761   #if __has_attribute(availability)\n\
2762 %0\n\
2763   #else\n\
2764     #define %1\n\
2765   #endif\n\
2766 #else\n\
2767     #define %1\n\
2768 #endif",
2769     (char*)NULL };
2771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2773  *  Description of Darwin_9_Long_Double_Funcs_2 fix
2774  */
2775 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2776      "darwin_9_long_double_funcs_2";
2779  *  File name selection pattern
2780  */
2781 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2782   "math.h\0";
2784  *  Machine/OS name selection pattern
2785  */
2786 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2787         "*-*-darwin*",
2788         (const char*)NULL };
2791  *  content selection pattern - do fix if pattern found
2792  */
2793 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2794        "#include[ \\t]+\\\"";
2796 #define    DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
2797 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2798   { TT_EGREP,    zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2801  *  Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2802  */
2803 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2804     "format",
2805     "%1<%2.h>",
2806     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2807     (char*)NULL };
2809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2811  *  Description of Darwin_Externc fix
2812  */
2813 tSCC zDarwin_ExterncName[] =
2814      "darwin_externc";
2817  *  File name selection pattern
2818  */
2819 tSCC zDarwin_ExterncList[] =
2820   "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2822  *  Machine/OS name selection pattern
2823  */
2824 tSCC* apzDarwin_ExterncMachs[] = {
2825         "*-*-darwin*",
2826         (const char*)NULL };
2829  *  content bypass pattern - skip fix if pattern found
2830  */
2831 tSCC zDarwin_ExterncBypass0[] =
2832        "extern \"C\"";
2833 tSCC zDarwin_ExterncBypass1[] =
2834        "__BEGIN_DECLS";
2836 #define    DARWIN_EXTERNC_TEST_CT  2
2837 static tTestDesc aDarwin_ExterncTests[] = {
2838   { TT_NEGREP,   zDarwin_ExterncBypass0, (regex_t*)NULL },
2839   { TT_NEGREP,   zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2842  *  Fix Command Arguments for Darwin_Externc
2843  */
2844 static const char* apzDarwin_ExterncPatch[] = {
2845     "wrap",
2846     "#ifdef __cplusplus\n\
2847 extern \"C\" {\n\
2848 #endif\n",
2849     "#ifdef __cplusplus\n\
2850 }\n\
2851 #endif\n",
2852     (char*)NULL };
2854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2856  *  Description of Darwin_Gcc4_Breakage fix
2857  */
2858 tSCC zDarwin_Gcc4_BreakageName[] =
2859      "darwin_gcc4_breakage";
2862  *  File name selection pattern
2863  */
2864 tSCC zDarwin_Gcc4_BreakageList[] =
2865   "AvailabilityMacros.h\0";
2867  *  Machine/OS name selection pattern
2868  */
2869 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2870         "*-*-darwin*",
2871         (const char*)NULL };
2874  *  content selection pattern - do fix if pattern found
2875  */
2876 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2877        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2879 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
2880 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2881   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2884  *  Fix Command Arguments for Darwin_Gcc4_Breakage
2885  */
2886 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2887     "format",
2888     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2889     (char*)NULL };
2891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2893  *  Description of Darwin_Ll_Funcs_Avail fix
2894  */
2895 tSCC zDarwin_Ll_Funcs_AvailName[] =
2896      "darwin_ll_funcs_avail";
2899  *  File name selection pattern
2900  */
2901 tSCC zDarwin_Ll_Funcs_AvailList[] =
2902   "architecture/ppc/math.h\0architecture/i386/math.h\0";
2904  *  Machine/OS name selection pattern
2905  */
2906 tSCC* apzDarwin_Ll_Funcs_AvailMachs[] = {
2907         "*-*-darwin*",
2908         (const char*)NULL };
2911  *  content selection pattern - do fix if pattern found
2912  */
2913 tSCC zDarwin_Ll_Funcs_AvailSelect0[] =
2914        "#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^1]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^)]*";
2916 #define    DARWIN_LL_FUNCS_AVAIL_TEST_CT  1
2917 static tTestDesc aDarwin_Ll_Funcs_AvailTests[] = {
2918   { TT_EGREP,    zDarwin_Ll_Funcs_AvailSelect0, (regex_t*)NULL }, };
2921  *  Fix Command Arguments for Darwin_Ll_Funcs_Avail
2922  */
2923 static const char* apzDarwin_Ll_Funcs_AvailPatch[] = { sed_cmd_z,
2924     "-e", "s/#if[^_]*__STDC_VERSION__[^_]*__STDC_VERSION__[^_]*199901L[^_]*__STRICT_ANSI__[^_]*__GNUC__[^\\)]*)/#if !(__DARWIN_NO_LONG_LONG)/",
2925     (char*)NULL };
2927 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2929  *  Description of Darwin_Longjmp_Noreturn fix
2930  */
2931 tSCC zDarwin_Longjmp_NoreturnName[] =
2932      "darwin_longjmp_noreturn";
2935  *  File name selection pattern
2936  */
2937 tSCC zDarwin_Longjmp_NoreturnList[] =
2938   "i386/setjmp.h\0";
2940  *  Machine/OS name selection pattern
2941  */
2942 tSCC* apzDarwin_Longjmp_NoreturnMachs[] = {
2943         "*-*-darwin*",
2944         (const char*)NULL };
2947  *  content selection pattern - do fix if pattern found
2948  */
2949 tSCC zDarwin_Longjmp_NoreturnSelect0[] =
2950        "(.*longjmp\\(.*jmp_buf.*[^)]+\\));";
2953  *  content bypass pattern - skip fix if pattern found
2954  */
2955 tSCC zDarwin_Longjmp_NoreturnBypass0[] =
2956        "__dead2";
2958 #define    DARWIN_LONGJMP_NORETURN_TEST_CT  2
2959 static tTestDesc aDarwin_Longjmp_NoreturnTests[] = {
2960   { TT_NEGREP,   zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL },
2961   { TT_EGREP,    zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
2964  *  Fix Command Arguments for Darwin_Longjmp_Noreturn
2965  */
2966 static const char* apzDarwin_Longjmp_NoreturnPatch[] = {
2967     "format",
2968     "%1 __attribute__ ((__noreturn__));",
2969     (char*)NULL };
2971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2973  *  Description of Darwin_Os_Trace_1 fix
2974  */
2975 tSCC zDarwin_Os_Trace_1Name[] =
2976      "darwin_os_trace_1";
2979  *  File name selection pattern
2980  */
2981 tSCC zDarwin_Os_Trace_1List[] =
2982   "os/trace.h\0";
2984  *  Machine/OS name selection pattern
2985  */
2986 tSCC* apzDarwin_Os_Trace_1Machs[] = {
2987         "*-*-darwin*",
2988         (const char*)NULL };
2991  *  content selection pattern - do fix if pattern found
2992  */
2993 tSCC zDarwin_Os_Trace_1Select0[] =
2994        "^(_os_trace_verify_printf.*) (__attribute__.*)";
2996 #define    DARWIN_OS_TRACE_1_TEST_CT  1
2997 static tTestDesc aDarwin_Os_Trace_1Tests[] = {
2998   { TT_EGREP,    zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, };
3001  *  Fix Command Arguments for Darwin_Os_Trace_1
3002  */
3003 static const char* apzDarwin_Os_Trace_1Patch[] = {
3004     "format",
3005     "%1",
3006     (char*)NULL };
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010  *  Description of Darwin_Os_Trace_2 fix
3011  */
3012 tSCC zDarwin_Os_Trace_2Name[] =
3013      "darwin_os_trace_2";
3016  *  File name selection pattern
3017  */
3018 tSCC zDarwin_Os_Trace_2List[] =
3019   "os/trace.h\0";
3021  *  Machine/OS name selection pattern
3022  */
3023 tSCC* apzDarwin_Os_Trace_2Machs[] = {
3024         "*-*-darwin*",
3025         (const char*)NULL };
3028  *  content selection pattern - do fix if pattern found
3029  */
3030 tSCC zDarwin_Os_Trace_2Select0[] =
3031        "typedef.*\\^os_trace_payload_t.*";
3033 #define    DARWIN_OS_TRACE_2_TEST_CT  1
3034 static tTestDesc aDarwin_Os_Trace_2Tests[] = {
3035   { TT_EGREP,    zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, };
3038  *  Fix Command Arguments for Darwin_Os_Trace_2
3039  */
3040 static const char* apzDarwin_Os_Trace_2Patch[] = {
3041     "format",
3042     "#if __BLOCKS__\n\
3043 %0\n\
3044 #endif",
3045     (char*)NULL };
3047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3049  *  Description of Darwin_Os_Trace_3 fix
3050  */
3051 tSCC zDarwin_Os_Trace_3Name[] =
3052      "darwin_os_trace_3";
3055  *  File name selection pattern
3056  */
3057 tSCC zDarwin_Os_Trace_3List[] =
3058   "os/trace.h\0";
3060  *  Machine/OS name selection pattern
3061  */
3062 tSCC* apzDarwin_Os_Trace_3Machs[] = {
3063         "*-*-darwin*",
3064         (const char*)NULL };
3067  *  content selection pattern - do fix if pattern found
3068  */
3069 tSCC zDarwin_Os_Trace_3Select0[] =
3070        "__(API|OSX)_.*\n\
3071 OS_EXPORT.*\n\
3072 .*\n\
3073 _os_trace.*os_trace_payload_t payload);";
3075 #define    DARWIN_OS_TRACE_3_TEST_CT  1
3076 static tTestDesc aDarwin_Os_Trace_3Tests[] = {
3077   { TT_EGREP,    zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, };
3080  *  Fix Command Arguments for Darwin_Os_Trace_3
3081  */
3082 static const char* apzDarwin_Os_Trace_3Patch[] = {
3083     "format",
3084     "#if __BLOCKS__\n\
3085 %0\n\
3086 #endif",
3087     (char*)NULL };
3089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3091  *  Description of Darwin_Os_Base_1 fix
3092  */
3093 tSCC zDarwin_Os_Base_1Name[] =
3094      "darwin_os_base_1";
3097  *  File name selection pattern
3098  */
3099 tSCC zDarwin_Os_Base_1List[] =
3100   "os/base.h\0";
3102  *  Machine/OS name selection pattern
3103  */
3104 tSCC* apzDarwin_Os_Base_1Machs[] = {
3105         "*-*-darwin*",
3106         (const char*)NULL };
3109  *  content selection pattern - do fix if pattern found
3110  */
3111 tSCC zDarwin_Os_Base_1Select0[] =
3112        "#define __has_attribute.*\n\
3113 #endif";
3115 #define    DARWIN_OS_BASE_1_TEST_CT  1
3116 static tTestDesc aDarwin_Os_Base_1Tests[] = {
3117   { TT_EGREP,    zDarwin_Os_Base_1Select0, (regex_t*)NULL }, };
3120  *  Fix Command Arguments for Darwin_Os_Base_1
3121  */
3122 static const char* apzDarwin_Os_Base_1Patch[] = {
3123     "format",
3124     "%0\n\
3125 #ifndef __has_extension\n\
3126 #define __has_extension(x) 0\n\
3127 #endif",
3128     (char*)NULL };
3130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3132  *  Description of Darwin_Dispatch_Object_1 fix
3133  */
3134 tSCC zDarwin_Dispatch_Object_1Name[] =
3135      "darwin_dispatch_object_1";
3138  *  File name selection pattern
3139  */
3140 tSCC zDarwin_Dispatch_Object_1List[] =
3141   "dispatch/object.h\0";
3143  *  Machine/OS name selection pattern
3144  */
3145 tSCC* apzDarwin_Dispatch_Object_1Machs[] = {
3146         "*-*-darwin*",
3147         (const char*)NULL };
3150  *  content selection pattern - do fix if pattern found
3151  */
3152 tSCC zDarwin_Dispatch_Object_1Select0[] =
3153        "typedef void.*\\^dispatch_block_t.*";
3155 #define    DARWIN_DISPATCH_OBJECT_1_TEST_CT  1
3156 static tTestDesc aDarwin_Dispatch_Object_1Tests[] = {
3157   { TT_EGREP,    zDarwin_Dispatch_Object_1Select0, (regex_t*)NULL }, };
3160  *  Fix Command Arguments for Darwin_Dispatch_Object_1
3161  */
3162 static const char* apzDarwin_Dispatch_Object_1Patch[] = {
3163     "format",
3164     "#if __BLOCKS__\n\
3165 %0\n\
3166 #endif",
3167     (char*)NULL };
3169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3171  *  Description of Darwin_Private_Extern fix
3172  */
3173 tSCC zDarwin_Private_ExternName[] =
3174      "darwin_private_extern";
3177  *  File name selection pattern
3178  */
3179 tSCC zDarwin_Private_ExternList[] =
3180   "mach-o/dyld.h\0";
3182  *  Machine/OS name selection pattern
3183  */
3184 tSCC* apzDarwin_Private_ExternMachs[] = {
3185         "*-*-darwin*",
3186         (const char*)NULL };
3189  *  content selection pattern - do fix if pattern found
3190  */
3191 tSCC zDarwin_Private_ExternSelect0[] =
3192        "__private_extern__ [a-z_]+ _dyld_";
3194 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
3195 static tTestDesc aDarwin_Private_ExternTests[] = {
3196   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
3199  *  Fix Command Arguments for Darwin_Private_Extern
3200  */
3201 static const char* apzDarwin_Private_ExternPatch[] = {
3202     "format",
3203     "extern",
3204     "__private_extern__",
3205     (char*)NULL };
3207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3209  *  Description of Darwin_Stdint_1 fix
3210  */
3211 tSCC zDarwin_Stdint_1Name[] =
3212      "darwin_stdint_1";
3215  *  File name selection pattern
3216  */
3217 tSCC zDarwin_Stdint_1List[] =
3218   "stdint-darwin.h\0stdint.h\0";
3220  *  Machine/OS name selection pattern
3221  */
3222 tSCC* apzDarwin_Stdint_1Machs[] = {
3223         "*-*-darwin*",
3224         (const char*)NULL };
3227  *  content selection pattern - do fix if pattern found
3228  */
3229 tSCC zDarwin_Stdint_1Select0[] =
3230        "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
3231 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
3233 #define    DARWIN_STDINT_1_TEST_CT  1
3234 static tTestDesc aDarwin_Stdint_1Tests[] = {
3235   { TT_EGREP,    zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
3238  *  Fix Command Arguments for Darwin_Stdint_1
3239  */
3240 static const char* apzDarwin_Stdint_1Patch[] = {
3241     "format",
3242     "#define UINT8_C(v)\tv\n\
3243 #define UINT16_C(v)\tv",
3244     (char*)NULL };
3246 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3248  *  Description of Darwin_Stdint_2 fix
3249  */
3250 tSCC zDarwin_Stdint_2Name[] =
3251      "darwin_stdint_2";
3254  *  File name selection pattern
3255  */
3256 tSCC zDarwin_Stdint_2List[] =
3257   "stdint-darwin.h\0stdint.h\0";
3259  *  Machine/OS name selection pattern
3260  */
3261 tSCC* apzDarwin_Stdint_2Machs[] = {
3262         "*-*-darwin*",
3263         (const char*)NULL };
3266  *  content selection pattern - do fix if pattern found
3267  */
3268 tSCC zDarwin_Stdint_2Select0[] =
3269        "#if __WORDSIZE == 64\n\
3270 #define INTPTR_MIN[ \t]+INT64_MIN\n\
3271 #define INTPTR_MAX[ \t]+INT64_MAX\n\
3272 #else\n\
3273 #define INTPTR_MIN[ \t]+INT32_MIN\n\
3274 #define INTPTR_MAX[ \t]+INT32_MAX\n\
3275 #endif";
3277 #define    DARWIN_STDINT_2_TEST_CT  1
3278 static tTestDesc aDarwin_Stdint_2Tests[] = {
3279   { TT_EGREP,    zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
3282  *  Fix Command Arguments for Darwin_Stdint_2
3283  */
3284 static const char* apzDarwin_Stdint_2Patch[] = {
3285     "format",
3286     "#if __WORDSIZE == 64\n\
3287 #define INTPTR_MAX 9223372036854775807L\n\
3288 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3289 #else\n\
3290 #define INTPTR_MAX 2147483647L\n\
3291 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
3292 #endif",
3293     (char*)NULL };
3295 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3297  *  Description of Darwin_Stdint_3 fix
3298  */
3299 tSCC zDarwin_Stdint_3Name[] =
3300      "darwin_stdint_3";
3303  *  File name selection pattern
3304  */
3305 tSCC zDarwin_Stdint_3List[] =
3306   "stdint-darwin.h\0stdint.h\0";
3308  *  Machine/OS name selection pattern
3309  */
3310 tSCC* apzDarwin_Stdint_3Machs[] = {
3311         "*-*-darwin*",
3312         (const char*)NULL };
3315  *  content selection pattern - do fix if pattern found
3316  */
3317 tSCC zDarwin_Stdint_3Select0[] =
3318        "#if __WORDSIZE == 64\n\
3319 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
3320 #else\n\
3321 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
3322 #endif";
3324 #define    DARWIN_STDINT_3_TEST_CT  1
3325 static tTestDesc aDarwin_Stdint_3Tests[] = {
3326   { TT_EGREP,    zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
3329  *  Fix Command Arguments for Darwin_Stdint_3
3330  */
3331 static const char* apzDarwin_Stdint_3Patch[] = {
3332     "format",
3333     "#if __WORDSIZE == 64\n\
3334 #define UINTPTR_MAX 18446744073709551615UL\n\
3335 #else\n\
3336 #define UINTPTR_MAX 4294967295UL\n\
3337 #endif",
3338     (char*)NULL };
3340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3342  *  Description of Darwin_Stdint_4 fix
3343  */
3344 tSCC zDarwin_Stdint_4Name[] =
3345      "darwin_stdint_4";
3348  *  File name selection pattern
3349  */
3350 tSCC zDarwin_Stdint_4List[] =
3351   "stdint-darwin.h\0stdint.h\0";
3353  *  Machine/OS name selection pattern
3354  */
3355 tSCC* apzDarwin_Stdint_4Machs[] = {
3356         "*-*-darwin*",
3357         (const char*)NULL };
3360  *  content selection pattern - do fix if pattern found
3361  */
3362 tSCC zDarwin_Stdint_4Select0[] =
3363        "#if __WORDSIZE == 64\n\
3364 #define SIZE_MAX[ \t]+UINT64_MAX\n\
3365 #else\n\
3366 #define SIZE_MAX[ \t]+UINT32_MAX\n\
3367 #endif";
3369 #define    DARWIN_STDINT_4_TEST_CT  1
3370 static tTestDesc aDarwin_Stdint_4Tests[] = {
3371   { TT_EGREP,    zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
3374  *  Fix Command Arguments for Darwin_Stdint_4
3375  */
3376 static const char* apzDarwin_Stdint_4Patch[] = {
3377     "format",
3378     "#if __WORDSIZE == 64\n\
3379 #define SIZE_MAX 18446744073709551615UL\n\
3380 #else\n\
3381 #define SIZE_MAX 4294967295UL\n\
3382 #endif",
3383     (char*)NULL };
3385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3387  *  Description of Darwin_Stdint_5 fix
3388  */
3389 tSCC zDarwin_Stdint_5Name[] =
3390      "darwin_stdint_5";
3393  *  File name selection pattern
3394  */
3395 tSCC zDarwin_Stdint_5List[] =
3396   "stdint-darwin.h\0stdint.h\0";
3398  *  Machine/OS name selection pattern
3399  */
3400 tSCC* apzDarwin_Stdint_5Machs[] = {
3401         "*-*-darwin*",
3402         (const char*)NULL };
3405  *  content selection pattern - do fix if pattern found
3406  */
3407 tSCC zDarwin_Stdint_5Select0[] =
3408        "#define INTMAX_MIN[ \t]+INT64_MIN\n\
3409 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
3410 #define UINTMAX_MAX[ \t]+UINT64_MAX";
3412 #define    DARWIN_STDINT_5_TEST_CT  1
3413 static tTestDesc aDarwin_Stdint_5Tests[] = {
3414   { TT_EGREP,    zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
3417  *  Fix Command Arguments for Darwin_Stdint_5
3418  */
3419 static const char* apzDarwin_Stdint_5Patch[] = {
3420     "format",
3421     "#if __WORDSIZE == 64\n\
3422 #define INTMAX_MIN   (-9223372036854775807L - 1)\n\
3423 #define INTMAX_MAX   9223372036854775807L\n\
3424 #define UINTMAX_MAX  18446744073709551615UL\n\
3425 #else\n\
3426 #define INTMAX_MIN   (-9223372036854775807LL - 1)\n\
3427 #define INTMAX_MAX   9223372036854775807LL\n\
3428 #define UINTMAX_MAX  18446744073709551615ULL\n\
3429 #endif",
3430     (char*)NULL };
3432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3434  *  Description of Darwin_Stdint_6 fix
3435  */
3436 tSCC zDarwin_Stdint_6Name[] =
3437      "darwin_stdint_6";
3440  *  File name selection pattern
3441  */
3442 tSCC zDarwin_Stdint_6List[] =
3443   "stdint-darwin.h\0stdint.h\0";
3445  *  Machine/OS name selection pattern
3446  */
3447 tSCC* apzDarwin_Stdint_6Machs[] = {
3448         "*-*-darwin*",
3449         (const char*)NULL };
3452  *  content selection pattern - do fix if pattern found
3453  */
3454 tSCC zDarwin_Stdint_6Select0[] =
3455        "#if __WORDSIZE == 64\n\
3456 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
3457 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
3458 #else\n\
3459 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
3460 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
3461 #endif";
3463 #define    DARWIN_STDINT_6_TEST_CT  1
3464 static tTestDesc aDarwin_Stdint_6Tests[] = {
3465   { TT_EGREP,    zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
3468  *  Fix Command Arguments for Darwin_Stdint_6
3469  */
3470 static const char* apzDarwin_Stdint_6Patch[] = {
3471     "format",
3472     "#if __WORDSIZE == 64\n\
3473 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
3474 #define PTRDIFF_MAX 9223372036854775807L\n\
3475 #else\n\
3476 #define PTRDIFF_MIN (-2147483647 - 1)\n\
3477 #define PTRDIFF_MAX 2147483647\n\
3478 #endif",
3479     (char*)NULL };
3481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3483  *  Description of Darwin_Stdint_7 fix
3484  */
3485 tSCC zDarwin_Stdint_7Name[] =
3486      "darwin_stdint_7";
3489  *  File name selection pattern
3490  */
3491 tSCC zDarwin_Stdint_7List[] =
3492   "stdint-darwin.h\0stdint.h\0";
3494  *  Machine/OS name selection pattern
3495  */
3496 tSCC* apzDarwin_Stdint_7Machs[] = {
3497         "*-*-darwin*",
3498         (const char*)NULL };
3501  *  content selection pattern - do fix if pattern found
3502  */
3503 tSCC zDarwin_Stdint_7Select0[] =
3504        "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
3505 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
3507 #define    DARWIN_STDINT_7_TEST_CT  1
3508 static tTestDesc aDarwin_Stdint_7Tests[] = {
3509   { TT_EGREP,    zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
3512  *  Fix Command Arguments for Darwin_Stdint_7
3513  */
3514 static const char* apzDarwin_Stdint_7Patch[] = {
3515     "format",
3516     "#if __WORDSIZE == 64\n\
3517 #define INTMAX_C(v)  (v ## L)\n\
3518 #define UINTMAX_C(v) (v ## UL)\n\
3519 #else\n\
3520 #define INTMAX_C(v)  (v ## LL)\n\
3521 #define UINTMAX_C(v) (v ## ULL)\n\
3522 #endif",
3523     (char*)NULL };
3525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3527  *  Description of Darwin_Ucred__Atomic fix
3528  */
3529 tSCC zDarwin_Ucred__AtomicName[] =
3530      "darwin_ucred__Atomic";
3533  *  File name selection pattern
3534  */
3535 tSCC zDarwin_Ucred__AtomicList[] =
3536   "sys/ucred.h\0";
3538  *  Machine/OS name selection pattern
3539  */
3540 tSCC* apzDarwin_Ucred__AtomicMachs[] = {
3541         "*-*-darwin*",
3542         (const char*)NULL };
3545  *  content selection pattern - do fix if pattern found
3546  */
3547 tSCC zDarwin_Ucred__AtomicSelect0[] =
3548        "_Atomic";
3550 #define    DARWIN_UCRED__ATOMIC_TEST_CT  1
3551 static tTestDesc aDarwin_Ucred__AtomicTests[] = {
3552   { TT_EGREP,    zDarwin_Ucred__AtomicSelect0, (regex_t*)NULL }, };
3555  *  Fix Command Arguments for Darwin_Ucred__Atomic
3556  */
3557 static const char* apzDarwin_Ucred__AtomicPatch[] = {
3558     "wrap",
3559     "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3560 # define _Atomic volatile\n\
3561 #endif\n",
3562     "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3563 # undef _Atomic\n\
3564 #endif\n",
3565     (char*)NULL };
3567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3569  *  Description of Darwin_Flt_Eval_Method fix
3570  */
3571 tSCC zDarwin_Flt_Eval_MethodName[] =
3572      "darwin_flt_eval_method";
3575  *  File name selection pattern
3576  */
3577 tSCC zDarwin_Flt_Eval_MethodList[] =
3578   "math.h\0";
3580  *  Machine/OS name selection pattern
3581  */
3582 tSCC* apzDarwin_Flt_Eval_MethodMachs[] = {
3583         "*-*-darwin*",
3584         (const char*)NULL };
3587  *  content selection pattern - do fix if pattern found
3588  */
3589 tSCC zDarwin_Flt_Eval_MethodSelect0[] =
3590        "^#if __FLT_EVAL_METHOD__ == 0$";
3592 #define    DARWIN_FLT_EVAL_METHOD_TEST_CT  1
3593 static tTestDesc aDarwin_Flt_Eval_MethodTests[] = {
3594   { TT_EGREP,    zDarwin_Flt_Eval_MethodSelect0, (regex_t*)NULL }, };
3597  *  Fix Command Arguments for Darwin_Flt_Eval_Method
3598  */
3599 static const char* apzDarwin_Flt_Eval_MethodPatch[] = {
3600     "format",
3601     "#if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 16",
3602     (char*)NULL };
3604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3606  *  Description of Dec_Intern_Asm fix
3607  */
3608 tSCC zDec_Intern_AsmName[] =
3609      "dec_intern_asm";
3612  *  File name selection pattern
3613  */
3614 tSCC zDec_Intern_AsmList[] =
3615   "c_asm.h\0";
3617  *  Machine/OS name selection pattern
3618  */
3619 #define apzDec_Intern_AsmMachs (const char**)NULL
3620 #define DEC_INTERN_ASM_TEST_CT  0
3621 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
3624  *  Fix Command Arguments for Dec_Intern_Asm
3625  */
3626 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
3627     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
3628 #ifdef __DECC\n",
3629     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
3630 #endif\n",
3631     (char*)NULL };
3633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3635  *  Description of Djgpp_Wchar_H fix
3636  */
3637 tSCC zDjgpp_Wchar_HName[] =
3638      "djgpp_wchar_h";
3641  *  File name selection pattern
3642  */
3643 #define zDjgpp_Wchar_HList (char*)NULL
3645  *  Machine/OS name selection pattern
3646  */
3647 #define apzDjgpp_Wchar_HMachs (const char**)NULL
3650  *  content selection pattern - do fix if pattern found
3651  */
3652 tSCC zDjgpp_Wchar_HSelect0[] =
3653        "__DJ_wint_t";
3656  *  content bypass pattern - skip fix if pattern found
3657  */
3658 tSCC zDjgpp_Wchar_HBypass0[] =
3659        "sys/djtypes.h";
3661 #define    DJGPP_WCHAR_H_TEST_CT  2
3662 static tTestDesc aDjgpp_Wchar_HTests[] = {
3663   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
3664   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
3667  *  Fix Command Arguments for Djgpp_Wchar_H
3668  */
3669 static const char* apzDjgpp_Wchar_HPatch[] = {
3670     "format",
3671     "%0\n\
3672 #include <sys/djtypes.h>",
3673     "#include <stddef.h>",
3674     (char*)NULL };
3676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3678  *  Description of Ecd_Cursor fix
3679  */
3680 tSCC zEcd_CursorName[] =
3681      "ecd_cursor";
3684  *  File name selection pattern
3685  */
3686 tSCC zEcd_CursorList[] =
3687   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
3689  *  Machine/OS name selection pattern
3690  */
3691 #define apzEcd_CursorMachs (const char**)NULL
3694  *  content selection pattern - do fix if pattern found
3695  */
3696 tSCC zEcd_CursorSelect0[] =
3697        "ecd\\.cursor";
3699 #define    ECD_CURSOR_TEST_CT  1
3700 static tTestDesc aEcd_CursorTests[] = {
3701   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
3704  *  Fix Command Arguments for Ecd_Cursor
3705  */
3706 static const char* apzEcd_CursorPatch[] = {
3707     "format",
3708     "ecd_cursor",
3709     (char*)NULL };
3711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3713  *  Description of Feraiseexcept_Nosse_Divbyzero fix
3714  */
3715 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
3716      "feraiseexcept_nosse_divbyzero";
3719  *  File name selection pattern
3720  */
3721 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
3722   "bits/fenv.h\0*/bits/fenv.h\0";
3724  *  Machine/OS name selection pattern
3725  */
3726 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
3727         "i[34567]86-*-linux*",
3728         "x86*-linux*",
3729         "amd64-*-linux*",
3730         (const char*)NULL };
3733  *  content selection pattern - do fix if pattern found
3734  */
3735 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
3736        "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
3739  *  content bypass pattern - skip fix if pattern found
3740  */
3741 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
3742        "\"fdivp .*; fwait\"";
3744 #define    FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT  2
3745 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
3746   { TT_NEGREP,   zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
3747   { TT_EGREP,    zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
3750  *  Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
3751  */
3752 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
3753     "format",
3754     "# ifdef __SSE_MATH__\n\
3755 %0\n\
3756 # else\n\
3757 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
3758 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
3759 # endif",
3760     (char*)NULL };
3762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3764  *  Description of Feraiseexcept_Nosse_Invalid fix
3765  */
3766 tSCC zFeraiseexcept_Nosse_InvalidName[] =
3767      "feraiseexcept_nosse_invalid";
3770  *  File name selection pattern
3771  */
3772 tSCC zFeraiseexcept_Nosse_InvalidList[] =
3773   "bits/fenv.h\0*/bits/fenv.h\0";
3775  *  Machine/OS name selection pattern
3776  */
3777 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
3778         "i[34567]86-*-linux*",
3779         "x86*-linux*",
3780         "amd64-*-linux*",
3781         (const char*)NULL };
3784  *  content selection pattern - do fix if pattern found
3785  */
3786 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
3787        "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
3790  *  content bypass pattern - skip fix if pattern found
3791  */
3792 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
3793        "\"fdiv .*; fwait\"";
3795 #define    FERAISEEXCEPT_NOSSE_INVALID_TEST_CT  2
3796 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
3797   { TT_NEGREP,   zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
3798   { TT_EGREP,    zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
3801  *  Fix Command Arguments for Feraiseexcept_Nosse_Invalid
3802  */
3803 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
3804     "format",
3805     "# ifdef __SSE_MATH__\n\
3806 %0\n\
3807 # else\n\
3808 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
3809 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
3810 # endif",
3811     (char*)NULL };
3813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3815  *  Description of Freebsd_Gcc3_Breakage fix
3816  */
3817 tSCC zFreebsd_Gcc3_BreakageName[] =
3818      "freebsd_gcc3_breakage";
3821  *  File name selection pattern
3822  */
3823 tSCC zFreebsd_Gcc3_BreakageList[] =
3824   "sys/cdefs.h\0";
3826  *  Machine/OS name selection pattern
3827  */
3828 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
3829         "*-*-freebsd*",
3830         (const char*)NULL };
3833  *  content selection pattern - do fix if pattern found
3834  */
3835 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
3836        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
3839  *  content bypass pattern - skip fix if pattern found
3840  */
3841 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
3842        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
3844 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
3845 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
3846   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
3847   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
3850  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
3851  */
3852 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
3853     "format",
3854     "%0 || __GNUC__ >= 3",
3855     (char*)NULL };
3857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3859  *  Description of Freebsd_Gcc4_Breakage fix
3860  */
3861 tSCC zFreebsd_Gcc4_BreakageName[] =
3862      "freebsd_gcc4_breakage";
3865  *  File name selection pattern
3866  */
3867 tSCC zFreebsd_Gcc4_BreakageList[] =
3868   "sys/cdefs.h\0";
3870  *  Machine/OS name selection pattern
3871  */
3872 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3873         "*-*-freebsd*",
3874         (const char*)NULL };
3877  *  content selection pattern - do fix if pattern found
3878  */
3879 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3880        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3882 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
3883 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3884   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3887  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
3888  */
3889 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3890     "format",
3891     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3892     (char*)NULL };
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3896  *  Description of Glibc_C99_Inline_1 fix
3897  */
3898 tSCC zGlibc_C99_Inline_1Name[] =
3899      "glibc_c99_inline_1";
3902  *  File name selection pattern
3903  */
3904 tSCC zGlibc_C99_Inline_1List[] =
3905   "features.h\0*/features.h\0";
3907  *  Machine/OS name selection pattern
3908  */
3909 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3912  *  content selection pattern - do fix if pattern found
3913  */
3914 tSCC zGlibc_C99_Inline_1Select0[] =
3915        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3917 #define    GLIBC_C99_INLINE_1_TEST_CT  1
3918 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3919   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3922  *  Fix Command Arguments for Glibc_C99_Inline_1
3923  */
3924 static const char* apzGlibc_C99_Inline_1Patch[] = {
3925     "format",
3926     "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3927     (char*)NULL };
3929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3931  *  Description of Glibc_C99_Inline_1a fix
3932  */
3933 tSCC zGlibc_C99_Inline_1aName[] =
3934      "glibc_c99_inline_1a";
3937  *  File name selection pattern
3938  */
3939 tSCC zGlibc_C99_Inline_1aList[] =
3940   "features.h\0*/features.h\0";
3942  *  Machine/OS name selection pattern
3943  */
3944 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3947  *  content selection pattern - do fix if pattern found
3948  */
3949 tSCC zGlibc_C99_Inline_1aSelect0[] =
3950        "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3951 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3953 #define    GLIBC_C99_INLINE_1A_TEST_CT  1
3954 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3955   { TT_EGREP,    zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3958  *  Fix Command Arguments for Glibc_C99_Inline_1a
3959  */
3960 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3961     "format",
3962     "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3963 %2",
3964     (char*)NULL };
3966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3968  *  Description of Glibc_C99_Inline_2 fix
3969  */
3970 tSCC zGlibc_C99_Inline_2Name[] =
3971      "glibc_c99_inline_2";
3974  *  File name selection pattern
3975  */
3976 tSCC zGlibc_C99_Inline_2List[] =
3977   "sys/stat.h\0*/sys/stat.h\0";
3979  *  Machine/OS name selection pattern
3980  */
3981 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3984  *  content selection pattern - do fix if pattern found
3985  */
3986 tSCC zGlibc_C99_Inline_2Select0[] =
3987        "extern __inline__ int";
3989 #define    GLIBC_C99_INLINE_2_TEST_CT  1
3990 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3991   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3994  *  Fix Command Arguments for Glibc_C99_Inline_2
3995  */
3996 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3997     "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3998 extern\\\n\
3999 #endif\\\n\
4000 __inline__ int \\1/",
4001     "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4002 extern\\\n\
4003 #endif\\\n\
4004 __inline__ int \\1/",
4005     "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4006 extern\\\n\
4007 #endif\\\n\
4008 __inline__ int \\1/",
4009     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4010 extern\\\n\
4011 #endif\\\n\
4012 __inline__ int __REDIRECT\\1 (\\2/",
4013     "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
4014 extern\\\n\
4015 #endif\\\n\
4016 __inline__ int __REDIRECT\\1 (\\2/",
4017     "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
4018 extern\\\n\
4019 #endif\\\n\
4020 __inline__ int/",
4021     (char*)NULL };
4023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4025  *  Description of Glibc_C99_Inline_3 fix
4026  */
4027 tSCC zGlibc_C99_Inline_3Name[] =
4028      "glibc_c99_inline_3";
4031  *  File name selection pattern
4032  */
4033 tSCC zGlibc_C99_Inline_3List[] =
4034   "bits/string2.h\0*/bits/string2.h\0";
4036  *  Machine/OS name selection pattern
4037  */
4038 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
4041  *  content selection pattern - do fix if pattern found
4042  */
4043 tSCC zGlibc_C99_Inline_3Select0[] =
4044        "extern __inline";
4047  *  content bypass pattern - skip fix if pattern found
4048  */
4049 tSCC zGlibc_C99_Inline_3Bypass0[] =
4050        "__extern_inline|__GNU_STDC_INLINE__";
4052 #define    GLIBC_C99_INLINE_3_TEST_CT  2
4053 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
4054   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
4055   { TT_EGREP,    zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
4058  *  Fix Command Arguments for Glibc_C99_Inline_3
4059  */
4060 static const char* apzGlibc_C99_Inline_3Patch[] = {
4061     "format",
4062     "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
4063     "^# ifdef __cplusplus$",
4064     (char*)NULL };
4066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4068  *  Description of Glibc_C99_Inline_4 fix
4069  */
4070 tSCC zGlibc_C99_Inline_4Name[] =
4071      "glibc_c99_inline_4";
4074  *  File name selection pattern
4075  */
4076 tSCC zGlibc_C99_Inline_4List[] =
4077   "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
4079  *  Machine/OS name selection pattern
4080  */
4081 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
4084  *  content selection pattern - do fix if pattern found
4085  */
4086 tSCC zGlibc_C99_Inline_4Select0[] =
4087        "(^| )extern __inline";
4090  *  content bypass pattern - skip fix if pattern found
4091  */
4092 tSCC zGlibc_C99_Inline_4Bypass0[] =
4093        "__extern_inline|__gnu_inline__";
4095 #define    GLIBC_C99_INLINE_4_TEST_CT  2
4096 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
4097   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
4098   { TT_EGREP,    zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
4101  *  Fix Command Arguments for Glibc_C99_Inline_4
4102  */
4103 static const char* apzGlibc_C99_Inline_4Patch[] = {
4104     "format",
4105     "%0 __attribute__ ((__gnu_inline__))",
4106     (char*)NULL };
4108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4110  *  Description of Glibc_Cxx_Floatn_1 fix
4111  */
4112 tSCC zGlibc_Cxx_Floatn_1Name[] =
4113      "glibc_cxx_floatn_1";
4116  *  File name selection pattern
4117  */
4118 tSCC zGlibc_Cxx_Floatn_1List[] =
4119   "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0";
4121  *  Machine/OS name selection pattern
4122  */
4123 #define apzGlibc_Cxx_Floatn_1Machs (const char**)NULL
4126  *  content selection pattern - do fix if pattern found
4127  */
4128 tSCC zGlibc_Cxx_Floatn_1Select0[] =
4129        "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\
4130 (([ \t]*/\\*[^\n\
4131 ]*\\*/\n\
4132 )?([ \t]*#[ \t]*if[^\n\
4133 ]*\n\
4134 )?[ \t]*#[ \t]*define __f(16|32|64|128)x?\\()";
4136 #define    GLIBC_CXX_FLOATN_1_TEST_CT  1
4137 static tTestDesc aGlibc_Cxx_Floatn_1Tests[] = {
4138   { TT_EGREP,    zGlibc_Cxx_Floatn_1Select0, (regex_t*)NULL }, };
4141  *  Fix Command Arguments for Glibc_Cxx_Floatn_1
4142  */
4143 static const char* apzGlibc_Cxx_Floatn_1Patch[] = {
4144     "format",
4145     "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\
4146 %2",
4147     (char*)NULL };
4149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4151  *  Description of Glibc_Cxx_Floatn_2 fix
4152  */
4153 tSCC zGlibc_Cxx_Floatn_2Name[] =
4154      "glibc_cxx_floatn_2";
4157  *  File name selection pattern
4158  */
4159 tSCC zGlibc_Cxx_Floatn_2List[] =
4160   "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0";
4162  *  Machine/OS name selection pattern
4163  */
4164 #define apzGlibc_Cxx_Floatn_2Machs (const char**)NULL
4167  *  content selection pattern - do fix if pattern found
4168  */
4169 tSCC zGlibc_Cxx_Floatn_2Select0[] =
4170        "^([ \t]*#[ \t]*(el)?if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\
4171 (([ \t]*/\\*[^\n\
4172 ]*\\*/\n\
4173 )?[ \t]*typedef[ \t]+[^\n\
4174 ]*[ \t]+_Float(16|32|64|128)x?([ \t]+__attribute__ \\(\\(__mode__ \\(__HF__\\)\\)\\))?;)";
4176 #define    GLIBC_CXX_FLOATN_2_TEST_CT  1
4177 static tTestDesc aGlibc_Cxx_Floatn_2Tests[] = {
4178   { TT_EGREP,    zGlibc_Cxx_Floatn_2Select0, (regex_t*)NULL }, };
4181  *  Fix Command Arguments for Glibc_Cxx_Floatn_2
4182  */
4183 static const char* apzGlibc_Cxx_Floatn_2Patch[] = {
4184     "format",
4185     "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\
4186 %3",
4187     (char*)NULL };
4189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4191  *  Description of Glibc_Cxx_Floatn_3 fix
4192  */
4193 tSCC zGlibc_Cxx_Floatn_3Name[] =
4194      "glibc_cxx_floatn_3";
4197  *  File name selection pattern
4198  */
4199 tSCC zGlibc_Cxx_Floatn_3List[] =
4200   "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0";
4202  *  Machine/OS name selection pattern
4203  */
4204 #define apzGlibc_Cxx_Floatn_3Machs (const char**)NULL
4207  *  content selection pattern - do fix if pattern found
4208  */
4209 tSCC zGlibc_Cxx_Floatn_3Select0[] =
4210        "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\
4211 (([ \t]*/\\*[^\n\
4212 ]*\n\
4213 ?[^\n\
4214 ]*\\*/\n\
4215 )?([ \t]*#[ \t]*if[^\n\
4216 ]*\n\
4217 )?([ \t]*typedef[ \t]+[^\n\
4218 ]*;\n\
4219 )?[ \t]*#[ \t]*define __CFLOAT(16|32|64|128)X?[ \t]+)";
4221 #define    GLIBC_CXX_FLOATN_3_TEST_CT  1
4222 static tTestDesc aGlibc_Cxx_Floatn_3Tests[] = {
4223   { TT_EGREP,    zGlibc_Cxx_Floatn_3Select0, (regex_t*)NULL }, };
4226  *  Fix Command Arguments for Glibc_Cxx_Floatn_3
4227  */
4228 static const char* apzGlibc_Cxx_Floatn_3Patch[] = {
4229     "format",
4230     "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\
4231 %2",
4232     (char*)NULL };
4234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4236  *  Description of Glibc_Cxx_Floatn_4 fix
4237  */
4238 tSCC zGlibc_Cxx_Floatn_4Name[] =
4239      "glibc_cxx_floatn_4";
4242  *  File name selection pattern
4243  */
4244 tSCC zGlibc_Cxx_Floatn_4List[] =
4245   "bits/floatn.h\0*/bits/floatn.h\0";
4247  *  Machine/OS name selection pattern
4248  */
4249 #define apzGlibc_Cxx_Floatn_4Machs (const char**)NULL
4252  *  content selection pattern - do fix if pattern found
4253  */
4254 tSCC zGlibc_Cxx_Floatn_4Select0[] =
4255        "^([ \t]*#[ \t]*if __LDBL_MANT_DIG__ == 113 && )defined __cplusplus\n\
4256 (([ \t]*/\\*[^\n\
4257 ]*\\*/\n\
4258 )?[ \t]*typedef[ \t]+[^\n\
4259 ]*[ \t]+_Float128;)";
4261 #define    GLIBC_CXX_FLOATN_4_TEST_CT  1
4262 static tTestDesc aGlibc_Cxx_Floatn_4Tests[] = {
4263   { TT_EGREP,    zGlibc_Cxx_Floatn_4Select0, (regex_t*)NULL }, };
4266  *  Fix Command Arguments for Glibc_Cxx_Floatn_4
4267  */
4268 static const char* apzGlibc_Cxx_Floatn_4Patch[] = {
4269     "format",
4270     "%1defined __cplusplus && !__GNUC_PREREQ (13, 0)\n\
4271 %2",
4272     (char*)NULL };
4274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4276  *  Description of Glibc_Cxx_Floatn_5 fix
4277  */
4278 tSCC zGlibc_Cxx_Floatn_5Name[] =
4279      "glibc_cxx_floatn_5";
4282  *  File name selection pattern
4283  */
4284 tSCC zGlibc_Cxx_Floatn_5List[] =
4285   "bits/floatn.h\0bits/floatn-common.h\0*/bits/floatn.h\0*/bits/floatn-common.h\0";
4287  *  Machine/OS name selection pattern
4288  */
4289 #define apzGlibc_Cxx_Floatn_5Machs (const char**)NULL
4292  *  content selection pattern - do fix if pattern found
4293  */
4294 tSCC zGlibc_Cxx_Floatn_5Select0[] =
4295        "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\
4296 ([ \t]*#[ \t]+error \"_Float128[xX] supported but no )";
4298 #define    GLIBC_CXX_FLOATN_5_TEST_CT  1
4299 static tTestDesc aGlibc_Cxx_Floatn_5Tests[] = {
4300   { TT_EGREP,    zGlibc_Cxx_Floatn_5Select0, (regex_t*)NULL }, };
4303  *  Fix Command Arguments for Glibc_Cxx_Floatn_5
4304  */
4305 static const char* apzGlibc_Cxx_Floatn_5Patch[] = {
4306     "format",
4307     "%1(defined __cplusplus && !__GNUC_PREREQ (13, 0))\n\
4308 %2",
4309     (char*)NULL };
4311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4313  *  Description of Glibc_Mutex_Init fix
4314  */
4315 tSCC zGlibc_Mutex_InitName[] =
4316      "glibc_mutex_init";
4319  *  File name selection pattern
4320  */
4321 tSCC zGlibc_Mutex_InitList[] =
4322   "pthread.h\0";
4324  *  Machine/OS name selection pattern
4325  */
4326 #define apzGlibc_Mutex_InitMachs (const char**)NULL
4329  *  content selection pattern - do fix if pattern found
4330  */
4331 tSCC zGlibc_Mutex_InitSelect0[] =
4332        "\\{ *\\{ *0, *\\} *\\}";
4334 #define    GLIBC_MUTEX_INIT_TEST_CT  1
4335 static tTestDesc aGlibc_Mutex_InitTests[] = {
4336   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
4339  *  Fix Command Arguments for Glibc_Mutex_Init
4340  */
4341 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
4342     "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
4343 N\n\
4344 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
4346     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
4347     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
4348     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
4349     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
4350     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
4351     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
4352     "-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\
4353 #  \\1\\\n\
4354   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
4355 # else\\\n\
4356 #  \\1\\\n\
4357   { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
4358 # endif/",
4359     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
4360     "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
4361     (char*)NULL };
4363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4365  *  Description of Glibc_Stdint fix
4366  */
4367 tSCC zGlibc_StdintName[] =
4368      "glibc_stdint";
4371  *  File name selection pattern
4372  */
4373 tSCC zGlibc_StdintList[] =
4374   "stdint.h\0";
4376  *  Machine/OS name selection pattern
4377  */
4378 #define apzGlibc_StdintMachs (const char**)NULL
4381  *  content selection pattern - do fix if pattern found
4382  */
4383 tSCC zGlibc_StdintSelect0[] =
4384        "GNU C Library";
4386 #define    GLIBC_STDINT_TEST_CT  1
4387 static tTestDesc aGlibc_StdintTests[] = {
4388   { TT_EGREP,    zGlibc_StdintSelect0, (regex_t*)NULL }, };
4391  *  Fix Command Arguments for Glibc_Stdint
4392  */
4393 static const char* apzGlibc_StdintPatch[] = {
4394     "format",
4395     "# define UINT8_C(c)\tc\n\
4396 # define UINT16_C(c)\tc",
4397     "# define UINT8_C\\(c\\)\tc ## U\n\
4398 # define UINT16_C\\(c\\)\tc ## U",
4399     (char*)NULL };
4401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4403  *  Description of Glibc_Strncpy fix
4404  */
4405 tSCC zGlibc_StrncpyName[] =
4406      "glibc_strncpy";
4409  *  File name selection pattern
4410  */
4411 tSCC zGlibc_StrncpyList[] =
4412   "bits/string2.h\0*/bits/string2.h\0";
4414  *  Machine/OS name selection pattern
4415  */
4416 #define apzGlibc_StrncpyMachs (const char**)NULL
4419  *  content bypass pattern - skip fix if pattern found
4420  */
4421 tSCC zGlibc_StrncpyBypass0[] =
4422        "__builtin_strncpy";
4424 #define    GLIBC_STRNCPY_TEST_CT  1
4425 static tTestDesc aGlibc_StrncpyTests[] = {
4426   { TT_NEGREP,   zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
4429  *  Fix Command Arguments for Glibc_Strncpy
4430  */
4431 static const char* apzGlibc_StrncpyPatch[] = {
4432     "format",
4433     "#  define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
4434     "#  define strncpy([^\n\
4435 ]*\\\\\n\
4436 )*[^\n\
4437 ]*",
4438     (char*)NULL };
4440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4442  *  Description of Glibc_Tgmath fix
4443  */
4444 tSCC zGlibc_TgmathName[] =
4445      "glibc_tgmath";
4448  *  File name selection pattern
4449  */
4450 tSCC zGlibc_TgmathList[] =
4451   "tgmath.h\0";
4453  *  Machine/OS name selection pattern
4454  */
4455 #define apzGlibc_TgmathMachs (const char**)NULL
4458  *  content selection pattern - do fix if pattern found
4459  */
4460 tSCC zGlibc_TgmathSelect0[] =
4461        "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
4464  *  content bypass pattern - skip fix if pattern found
4465  */
4466 tSCC zGlibc_TgmathBypass0[] =
4467        "__floating_type\\(type\\) \\\\\n\
4468 .*__builtin_classify_type";
4470 #define    GLIBC_TGMATH_TEST_CT  2
4471 static tTestDesc aGlibc_TgmathTests[] = {
4472   { TT_NEGREP,   zGlibc_TgmathBypass0, (regex_t*)NULL },
4473   { TT_EGREP,    zGlibc_TgmathSelect0, (regex_t*)NULL }, };
4476  *  Fix Command Arguments for Glibc_Tgmath
4477  */
4478 static const char* apzGlibc_TgmathPatch[] = {
4479     "format",
4480     "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
4481     (char*)NULL };
4483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4485  *  Description of Gnu_Types fix
4486  */
4487 tSCC zGnu_TypesName[] =
4488      "gnu_types";
4491  *  File name selection pattern
4492  */
4493 tSCC zGnu_TypesList[] =
4494   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
4496  *  Machine/OS name selection pattern
4497  */
4498 tSCC* apzGnu_TypesMachs[] = {
4499         "*-*-solaris2.1[0-9]*",
4500         (const char*)NULL };
4503  *  content selection pattern - do fix if pattern found
4504  */
4505 tSCC zGnu_TypesSelect0[] =
4506        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
4509  *  content bypass pattern - skip fix if pattern found
4510  */
4511 tSCC zGnu_TypesBypass0[] =
4512        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
4514 #define    GNU_TYPES_TEST_CT  2
4515 static tTestDesc aGnu_TypesTests[] = {
4516   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
4517   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
4520  *  Fix Command Arguments for Gnu_Types
4521  */
4522 static const char* apzGnu_TypesPatch[] = {
4523     "gnu_type",
4524     (char*)NULL };
4526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4528  *  Description of Hp_Inline fix
4529  */
4530 tSCC zHp_InlineName[] =
4531      "hp_inline";
4534  *  File name selection pattern
4535  */
4536 tSCC zHp_InlineList[] =
4537   "sys/spinlock.h\0machine/machparam.h\0";
4539  *  Machine/OS name selection pattern
4540  */
4541 #define apzHp_InlineMachs (const char**)NULL
4544  *  content selection pattern - do fix if pattern found
4545  */
4546 tSCC zHp_InlineSelect0[] =
4547        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
4549 #define    HP_INLINE_TEST_CT  1
4550 static tTestDesc aHp_InlineTests[] = {
4551   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
4554  *  Fix Command Arguments for Hp_Inline
4555  */
4556 static const char* apzHp_InlinePatch[] = {
4557     "format",
4558     "%1<machine/%2.h>",
4559     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
4560     (char*)NULL };
4562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4564  *  Description of Hp_Sysfile fix
4565  */
4566 tSCC zHp_SysfileName[] =
4567      "hp_sysfile";
4570  *  File name selection pattern
4571  */
4572 tSCC zHp_SysfileList[] =
4573   "sys/file.h\0";
4575  *  Machine/OS name selection pattern
4576  */
4577 #define apzHp_SysfileMachs (const char**)NULL
4580  *  content selection pattern - do fix if pattern found
4581  */
4582 tSCC zHp_SysfileSelect0[] =
4583        "HPUX_SOURCE";
4585 #define    HP_SYSFILE_TEST_CT  1
4586 static tTestDesc aHp_SysfileTests[] = {
4587   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
4590  *  Fix Command Arguments for Hp_Sysfile
4591  */
4592 static const char* apzHp_SysfilePatch[] = {
4593     "format",
4594     "(struct file *, ...)",
4595     "\\(\\.\\.\\.\\)",
4596     (char*)NULL };
4598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4600  *  Description of Hppa_Hpux_Fp_Macros fix
4601  */
4602 tSCC zHppa_Hpux_Fp_MacrosName[] =
4603      "hppa_hpux_fp_macros";
4606  *  File name selection pattern
4607  */
4608 tSCC zHppa_Hpux_Fp_MacrosList[] =
4609   "math.h\0";
4611  *  Machine/OS name selection pattern
4612  */
4613 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
4614         "hppa*-hp-hpux11*",
4615         (const char*)NULL };
4618  *  content selection pattern - do fix if pattern found
4619  */
4620 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
4621        "#[ \t]*define[ \t]*FP_NORMAL.*\n\
4622 #[ \t]*define[ \t]*FP_ZERO.*\n\
4623 #[ \t]*define[ \t]*FP_INFINITE.*\n\
4624 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
4625 #[ \t]*define[ \t]*FP_NAN.*\n";
4627 #define    HPPA_HPUX_FP_MACROS_TEST_CT  1
4628 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
4629   { TT_EGREP,    zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
4632  *  Fix Command Arguments for Hppa_Hpux_Fp_Macros
4633  */
4634 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
4635     "format",
4636     "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
4637 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
4638    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
4639 %0#endif\n\n\
4640 #ifdef _INCLUDE_HPUX_SOURCE\n",
4641     (char*)NULL };
4643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4645  *  Description of Hpux10_Cpp_Pow_Inline fix
4646  */
4647 tSCC zHpux10_Cpp_Pow_InlineName[] =
4648      "hpux10_cpp_pow_inline";
4651  *  File name selection pattern
4652  */
4653 tSCC zHpux10_Cpp_Pow_InlineList[] =
4654   "fixinc-test-limits.h\0math.h\0";
4656  *  Machine/OS name selection pattern
4657  */
4658 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
4661  *  content selection pattern - do fix if pattern found
4662  */
4663 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
4664        "^# +ifdef +__cplusplus\n\
4665  +\\}\n\
4666  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
4667 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
4668  +\\}\n\
4669  +extern +\"C\" +\\{\n\
4670 #else\n\
4671 # +endif";
4673 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
4674 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
4675   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4678  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
4679  */
4680 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
4681     "format",
4682     "",
4683     (char*)NULL };
4685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4687  *  Description of Hpux11_Cpp_Pow_Inline fix
4688  */
4689 tSCC zHpux11_Cpp_Pow_InlineName[] =
4690      "hpux11_cpp_pow_inline";
4693  *  File name selection pattern
4694  */
4695 tSCC zHpux11_Cpp_Pow_InlineList[] =
4696   "math.h\0";
4698  *  Machine/OS name selection pattern
4699  */
4700 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
4703  *  content selection pattern - do fix if pattern found
4704  */
4705 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
4706        " +inline double pow\\(double d,int expon\\) \\{\n\
4707  +return pow\\(d, \\(double\\)expon\\);\n\
4708  +\\}\n";
4710 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
4711 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
4712   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4715  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
4716  */
4717 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
4718     "format",
4719     "",
4720     (char*)NULL };
4722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4724  *  Description of Hpux_Math_Constexpr fix
4725  */
4726 tSCC zHpux_Math_ConstexprName[] =
4727      "hpux_math_constexpr";
4730  *  File name selection pattern
4731  */
4732 tSCC zHpux_Math_ConstexprList[] =
4733   "math.h\0";
4735  *  Machine/OS name selection pattern
4736  */
4737 tSCC* apzHpux_Math_ConstexprMachs[] = {
4738         "*-hp-hpux11*",
4739         (const char*)NULL };
4740 #define HPUX_MATH_CONSTEXPR_TEST_CT  0
4741 #define aHpux_Math_ConstexprTests   (tTestDesc*)NULL
4744  *  Fix Command Arguments for Hpux_Math_Constexpr
4745  */
4746 static const char* apzHpux_Math_ConstexprPatch[] = { sed_cmd_z,
4747     "-e", "s@^[ \t]*extern[ \t]*const[ \t]*double[ \t]*_DINFINITY;[ \t]*$@#  define _DINFINITY (__builtin_inf ())@",
4748     "-e", "s@^[ \t]*extern[ \t]*const[ \t]*float[ \t]*_SINFINITY;[ \t]*$@#    define _SINFINITY (__builtin_inff ())@",
4749     "-e", "s@^[ \t]*extern[ \t]*const[ \t]*float[ \t]*_SQNAN;[ \t]*$@#    define _SQNAN (__builtin_nanf (\\\"\\\"))@",
4750     (char*)NULL };
4752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4754  *  Description of Hpux10_Ctype_Declarations1 fix
4755  */
4756 tSCC zHpux10_Ctype_Declarations1Name[] =
4757      "hpux10_ctype_declarations1";
4760  *  File name selection pattern
4761  */
4762 tSCC zHpux10_Ctype_Declarations1List[] =
4763   "ctype.h\0";
4765  *  Machine/OS name selection pattern
4766  */
4767 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
4770  *  content selection pattern - do fix if pattern found
4771  */
4772 tSCC zHpux10_Ctype_Declarations1Select0[] =
4773        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
4776  *  content bypass pattern - skip fix if pattern found
4777  */
4778 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
4779        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
4781 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
4782 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
4783   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
4784   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
4787  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
4788  */
4789 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
4790     "format",
4791     "#ifdef _PROTOTYPES\n\
4792 extern int __tolower(int);\n\
4793 extern int __toupper(int);\n\
4794 #else /* NOT _PROTOTYPES */\n\
4795 extern int __tolower();\n\
4796 extern int __toupper();\n\
4797 #endif /* _PROTOTYPES */\n\n\
4798 %0\n",
4799     (char*)NULL };
4801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4803  *  Description of Hpux10_Ctype_Declarations2 fix
4804  */
4805 tSCC zHpux10_Ctype_Declarations2Name[] =
4806      "hpux10_ctype_declarations2";
4809  *  File name selection pattern
4810  */
4811 tSCC zHpux10_Ctype_Declarations2List[] =
4812   "ctype.h\0";
4814  *  Machine/OS name selection pattern
4815  */
4816 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
4819  *  content selection pattern - do fix if pattern found
4820  */
4821 tSCC zHpux10_Ctype_Declarations2Select0[] =
4822        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
4825  *  content bypass pattern - skip fix if pattern found
4826  */
4827 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
4828        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
4830 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
4831 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
4832   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
4833   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
4836  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
4837  */
4838 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
4839     "format",
4840     "%0\n\n\
4841 #ifdef _PROTOTYPES\n\
4842      extern int _isalnum(int);\n\
4843      extern int _isalpha(int);\n\
4844      extern int _iscntrl(int);\n\
4845      extern int _isdigit(int);\n\
4846      extern int _isgraph(int);\n\
4847      extern int _islower(int);\n\
4848      extern int _isprint(int);\n\
4849      extern int _ispunct(int);\n\
4850      extern int _isspace(int);\n\
4851      extern int _isupper(int);\n\
4852      extern int _isxdigit(int);\n\
4853 #  else /* not _PROTOTYPES */\n\
4854      extern int _isalnum();\n\
4855      extern int _isalpha();\n\
4856      extern int _iscntrl();\n\
4857      extern int _isdigit();\n\
4858      extern int _isgraph();\n\
4859      extern int _islower();\n\
4860      extern int _isprint();\n\
4861      extern int _ispunct();\n\
4862      extern int _isspace();\n\
4863      extern int _isupper();\n\
4864      extern int _isxdigit();\n\
4865 #endif /* _PROTOTYPES */\n",
4866     (char*)NULL };
4868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4870  *  Description of Hpux10_Stdio_Declarations fix
4871  */
4872 tSCC zHpux10_Stdio_DeclarationsName[] =
4873      "hpux10_stdio_declarations";
4876  *  File name selection pattern
4877  */
4878 tSCC zHpux10_Stdio_DeclarationsList[] =
4879   "stdio.h\0";
4881  *  Machine/OS name selection pattern
4882  */
4883 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
4886  *  content selection pattern - do fix if pattern found
4887  */
4888 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
4889        "^#[ \t]*define _iob[ \t]*__iob";
4892  *  content bypass pattern - skip fix if pattern found
4893  */
4894 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
4895        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
4897 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
4898 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
4899   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
4900   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
4903  *  Fix Command Arguments for Hpux10_Stdio_Declarations
4904  */
4905 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
4906     "format",
4907     "%0\n\n\
4908 #  if defined(__STDC__) || defined(__cplusplus)\n\
4909      extern int snprintf(char *, size_t, const char *, ...);\n\
4910      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
4911 #  else /* not __STDC__) || __cplusplus */\n\
4912      extern int snprintf();\n\
4913      extern int vsnprintf();\n\
4914 #  endif /* __STDC__) || __cplusplus */\n",
4915     (char*)NULL };
4917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4919  *  Description of Hppa_Hpux11_Alloca fix
4920  */
4921 tSCC zHppa_Hpux11_AllocaName[] =
4922      "hppa_hpux11_alloca";
4925  *  File name selection pattern
4926  */
4927 tSCC zHppa_Hpux11_AllocaList[] =
4928   "alloca.h\0";
4930  *  Machine/OS name selection pattern
4931  */
4932 tSCC* apzHppa_Hpux11_AllocaMachs[] = {
4933         "hppa*-*-hpux11*",
4934         (const char*)NULL };
4937  *  content selection pattern - do fix if pattern found
4938  */
4939 tSCC zHppa_Hpux11_AllocaSelect0[] =
4940        "#ifndef _STDDEF_INCLUDED";
4942 #define    HPPA_HPUX11_ALLOCA_TEST_CT  1
4943 static tTestDesc aHppa_Hpux11_AllocaTests[] = {
4944   { TT_EGREP,    zHppa_Hpux11_AllocaSelect0, (regex_t*)NULL }, };
4947  *  Fix Command Arguments for Hppa_Hpux11_Alloca
4948  */
4949 static const char* apzHppa_Hpux11_AllocaPatch[] = {
4950     "format",
4951     "#ifndef _SYS_STDSYMS_INCLUDED\n\
4952 #  include <sys/stdsyms.h>\n\
4953 #endif /* _SYS_STDSYMS_INCLUDED */\n\n\
4954 %0",
4955     (char*)NULL };
4957 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4959  *  Description of Hpux11_Abs fix
4960  */
4961 tSCC zHpux11_AbsName[] =
4962      "hpux11_abs";
4965  *  File name selection pattern
4966  */
4967 tSCC zHpux11_AbsList[] =
4968   "stdlib.h\0";
4970  *  Machine/OS name selection pattern
4971  */
4972 tSCC* apzHpux11_AbsMachs[] = {
4973         "*-hp-hpux11*",
4974         (const char*)NULL };
4977  *  content selection pattern - do fix if pattern found
4978  */
4979 tSCC zHpux11_AbsSelect0[] =
4980        "ifndef _MATH_INCLUDED";
4982 #define    HPUX11_ABS_TEST_CT  1
4983 static tTestDesc aHpux11_AbsTests[] = {
4984   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
4987  *  Fix Command Arguments for Hpux11_Abs
4988  */
4989 static const char* apzHpux11_AbsPatch[] = {
4990     "format",
4991     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
4992     (char*)NULL };
4994 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4996  *  Description of Hpux11_Lwp_Rwlock_Valid fix
4997  */
4998 tSCC zHpux11_Lwp_Rwlock_ValidName[] =
4999      "hpux11_lwp_rwlock_valid";
5002  *  File name selection pattern
5003  */
5004 tSCC zHpux11_Lwp_Rwlock_ValidList[] =
5005   "sys/pthread.h\0";
5007  *  Machine/OS name selection pattern
5008  */
5009 tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = {
5010         "*-hp-hpux11*",
5011         (const char*)NULL };
5014  *  content selection pattern - do fix if pattern found
5015  */
5016 tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] =
5017        "#define __LWP_RWLOCK_VALID[ \t]*0x8c91";
5019 #define    HPUX11_LWP_RWLOCK_VALID_TEST_CT  1
5020 static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = {
5021   { TT_EGREP,    zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, };
5024  *  Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid
5025  */
5026 static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = {
5027     "format",
5028     "#define __LWP_RWLOCK_VALID              -29551",
5029     (char*)NULL };
5031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5033  *  Description of Hpux11_Extern_Sendfile fix
5034  */
5035 tSCC zHpux11_Extern_SendfileName[] =
5036      "hpux11_extern_sendfile";
5039  *  File name selection pattern
5040  */
5041 tSCC zHpux11_Extern_SendfileList[] =
5042   "sys/socket.h\0";
5044  *  Machine/OS name selection pattern
5045  */
5046 tSCC* apzHpux11_Extern_SendfileMachs[] = {
5047         "*-hp-hpux11.[12]*",
5048         (const char*)NULL };
5051  *  content selection pattern - do fix if pattern found
5052  */
5053 tSCC zHpux11_Extern_SendfileSelect0[] =
5054        "^[ \t]*extern sbsize_t sendfile.*\n\
5055 .*, int\\)\\);\n";
5057 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
5058 static tTestDesc aHpux11_Extern_SendfileTests[] = {
5059   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
5062  *  Fix Command Arguments for Hpux11_Extern_Sendfile
5063  */
5064 static const char* apzHpux11_Extern_SendfilePatch[] = {
5065     "format",
5066     "#ifndef _APP32_64BIT_OFF_T\n\
5067 %0#endif\n",
5068     (char*)NULL };
5070 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5072  *  Description of Hpux11_Extern_Sendpath fix
5073  */
5074 tSCC zHpux11_Extern_SendpathName[] =
5075      "hpux11_extern_sendpath";
5078  *  File name selection pattern
5079  */
5080 tSCC zHpux11_Extern_SendpathList[] =
5081   "sys/socket.h\0";
5083  *  Machine/OS name selection pattern
5084  */
5085 tSCC* apzHpux11_Extern_SendpathMachs[] = {
5086         "*-hp-hpux11.[12]*",
5087         (const char*)NULL };
5090  *  content selection pattern - do fix if pattern found
5091  */
5092 tSCC zHpux11_Extern_SendpathSelect0[] =
5093        "^[ \t]*extern sbsize_t sendpath.*\n\
5094 .*, int\\)\\);\n";
5096 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
5097 static tTestDesc aHpux11_Extern_SendpathTests[] = {
5098   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
5101  *  Fix Command Arguments for Hpux11_Extern_Sendpath
5102  */
5103 static const char* apzHpux11_Extern_SendpathPatch[] = {
5104     "format",
5105     "#ifndef _APP32_64BIT_OFF_T\n\
5106 %0#endif\n",
5107     (char*)NULL };
5109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5111  *  Description of Hpux11_Fabsf fix
5112  */
5113 tSCC zHpux11_FabsfName[] =
5114      "hpux11_fabsf";
5117  *  File name selection pattern
5118  */
5119 tSCC zHpux11_FabsfList[] =
5120   "math.h\0";
5122  *  Machine/OS name selection pattern
5123  */
5124 tSCC* apzHpux11_FabsfMachs[] = {
5125         "*-hp-hpux11*",
5126         (const char*)NULL };
5129  *  content selection pattern - do fix if pattern found
5130  */
5131 tSCC zHpux11_FabsfSelect0[] =
5132        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
5134 #define    HPUX11_FABSF_TEST_CT  1
5135 static tTestDesc aHpux11_FabsfTests[] = {
5136   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
5139  *  Fix Command Arguments for Hpux11_Fabsf
5140  */
5141 static const char* apzHpux11_FabsfPatch[] = {
5142     "format",
5143     "#ifndef __cplusplus\n\
5144 %0\n\
5145 #endif",
5146     (char*)NULL };
5148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5150  *  Description of Hpux11_Pthread_Pointer fix
5151  */
5152 tSCC zHpux11_Pthread_PointerName[] =
5153      "hpux11_pthread_pointer";
5156  *  File name selection pattern
5157  */
5158 tSCC zHpux11_Pthread_PointerList[] =
5159   "sys/pthread.h\0";
5161  *  Machine/OS name selection pattern
5162  */
5163 tSCC* apzHpux11_Pthread_PointerMachs[] = {
5164         "*-hp-hpux11.[0-3]*",
5165         (const char*)NULL };
5168  *  content selection pattern - do fix if pattern found
5169  */
5170 tSCC zHpux11_Pthread_PointerSelect0[] =
5171        "(void[ \t]*\\*)(m|c|rw)(_ptr)";
5173 #define    HPUX11_PTHREAD_POINTER_TEST_CT  1
5174 static tTestDesc aHpux11_Pthread_PointerTests[] = {
5175   { TT_EGREP,    zHpux11_Pthread_PointerSelect0, (regex_t*)NULL }, };
5178  *  Fix Command Arguments for Hpux11_Pthread_Pointer
5179  */
5180 static const char* apzHpux11_Pthread_PointerPatch[] = {
5181     "format",
5182     "long\t%2%3",
5183     (char*)NULL };
5185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5187  *  Description of Hpux11_Pthread_Const fix
5188  */
5189 tSCC zHpux11_Pthread_ConstName[] =
5190      "hpux11_pthread_const";
5193  *  File name selection pattern
5194  */
5195 tSCC zHpux11_Pthread_ConstList[] =
5196   "sys/pthread.h\0";
5198  *  Machine/OS name selection pattern
5199  */
5200 tSCC* apzHpux11_Pthread_ConstMachs[] = {
5201         "*-hp-hpux11.[0-3]*",
5202         (const char*)NULL };
5205  *  content selection pattern - do fix if pattern found
5206  */
5207 tSCC zHpux11_Pthread_ConstSelect0[] =
5208        "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))";
5210 #define    HPUX11_PTHREAD_CONST_TEST_CT  1
5211 static tTestDesc aHpux11_Pthread_ConstTests[] = {
5212   { TT_EGREP,    zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
5215  *  Fix Command Arguments for Hpux11_Pthread_Const
5216  */
5217 static const char* apzHpux11_Pthread_ConstPatch[] = {
5218     "format",
5219     "%11",
5220     (char*)NULL };
5222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5224  *  Description of Hpux11_Size_T fix
5225  */
5226 tSCC zHpux11_Size_TName[] =
5227      "hpux11_size_t";
5230  *  File name selection pattern
5231  */
5232 #define zHpux11_Size_TList (char*)NULL
5234  *  Machine/OS name selection pattern
5235  */
5236 tSCC* apzHpux11_Size_TMachs[] = {
5237         "*-hp-hpux11*",
5238         (const char*)NULL };
5241  *  content selection pattern - do fix if pattern found
5242  */
5243 tSCC zHpux11_Size_TSelect0[] =
5244        "__size_t";
5246 #define    HPUX11_SIZE_T_TEST_CT  1
5247 static tTestDesc aHpux11_Size_TTests[] = {
5248   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
5251  *  Fix Command Arguments for Hpux11_Size_T
5252  */
5253 static const char* apzHpux11_Size_TPatch[] = {
5254     "format",
5255     "_hpux_size_t",
5256     (char*)NULL };
5258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5260  *  Description of Hpux11_Snprintf fix
5261  */
5262 tSCC zHpux11_SnprintfName[] =
5263      "hpux11_snprintf";
5266  *  File name selection pattern
5267  */
5268 tSCC zHpux11_SnprintfList[] =
5269   "stdio.h\0";
5271  *  Machine/OS name selection pattern
5272  */
5273 #define apzHpux11_SnprintfMachs (const char**)NULL
5276  *  content selection pattern - do fix if pattern found
5277  */
5278 tSCC zHpux11_SnprintfSelect0[] =
5279        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
5281 #define    HPUX11_SNPRINTF_TEST_CT  1
5282 static tTestDesc aHpux11_SnprintfTests[] = {
5283   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
5286  *  Fix Command Arguments for Hpux11_Snprintf
5287  */
5288 static const char* apzHpux11_SnprintfPatch[] = {
5289     "format",
5290     "%1 const %3",
5291     (char*)NULL };
5293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5295  *  Description of Hpux11_Vsnprintf fix
5296  */
5297 tSCC zHpux11_VsnprintfName[] =
5298      "hpux11_vsnprintf";
5301  *  File name selection pattern
5302  */
5303 tSCC zHpux11_VsnprintfList[] =
5304   "stdio.h\0";
5306  *  Machine/OS name selection pattern
5307  */
5308 #define apzHpux11_VsnprintfMachs (const char**)NULL
5311  *  content selection pattern - do fix if pattern found
5312  */
5313 tSCC zHpux11_VsnprintfSelect0[] =
5314        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
5316 #define    HPUX11_VSNPRINTF_TEST_CT  1
5317 static tTestDesc aHpux11_VsnprintfTests[] = {
5318   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
5321  *  Fix Command Arguments for Hpux11_Vsnprintf
5322  */
5323 static const char* apzHpux11_VsnprintfPatch[] = {
5324     "format",
5325     "%1 __va_list);",
5326     (char*)NULL };
5328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5330  *  Description of Hpux_Vsscanf fix
5331  */
5332 tSCC zHpux_VsscanfName[] =
5333      "hpux_vsscanf";
5336  *  File name selection pattern
5337  */
5338 tSCC zHpux_VsscanfList[] =
5339   "stdio.h\0";
5341  *  Machine/OS name selection pattern
5342  */
5343 tSCC* apzHpux_VsscanfMachs[] = {
5344         "*-*-hpux*",
5345         (const char*)NULL };
5348  *  content selection pattern - do fix if pattern found
5349  */
5350 tSCC zHpux_VsscanfSelect0[] =
5351        "(extern int vsscanf\\()char";
5353 #define    HPUX_VSSCANF_TEST_CT  1
5354 static tTestDesc aHpux_VsscanfTests[] = {
5355   { TT_EGREP,    zHpux_VsscanfSelect0, (regex_t*)NULL }, };
5358  *  Fix Command Arguments for Hpux_Vsscanf
5359  */
5360 static const char* apzHpux_VsscanfPatch[] = {
5361     "format",
5362     "%1const char",
5363     (char*)NULL };
5365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5367  *  Description of Hpux8_Bogus_Inlines fix
5368  */
5369 tSCC zHpux8_Bogus_InlinesName[] =
5370      "hpux8_bogus_inlines";
5373  *  File name selection pattern
5374  */
5375 tSCC zHpux8_Bogus_InlinesList[] =
5376   "math.h\0";
5378  *  Machine/OS name selection pattern
5379  */
5380 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
5383  *  content selection pattern - do fix if pattern found
5384  */
5385 tSCC zHpux8_Bogus_InlinesSelect0[] =
5386        "inline";
5389  *  content bypass pattern - skip fix if pattern found
5390  */
5391 tSCC zHpux8_Bogus_InlinesBypass0[] =
5392        "__GNUG__";
5394 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
5395 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
5396   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
5397   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
5400  *  Fix Command Arguments for Hpux8_Bogus_Inlines
5401  */
5402 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
5403     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
5404     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
5405     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
5406     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
5407     (char*)NULL };
5409 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5411  *  Description of Hpux_C99_Intptr fix
5412  */
5413 tSCC zHpux_C99_IntptrName[] =
5414      "hpux_c99_intptr";
5417  *  File name selection pattern
5418  */
5419 tSCC zHpux_C99_IntptrList[] =
5420   "stdint-hpux11.h\0stdint.h\0";
5422  *  Machine/OS name selection pattern
5423  */
5424 tSCC* apzHpux_C99_IntptrMachs[] = {
5425         "*-hp-hpux11.3*",
5426         (const char*)NULL };
5427 #define HPUX_C99_INTPTR_TEST_CT  0
5428 #define aHpux_C99_IntptrTests   (tTestDesc*)NULL
5431  *  Fix Command Arguments for Hpux_C99_Intptr
5432  */
5433 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
5434     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
5435     "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5436     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
5437     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
5438     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
5439     "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
5440     (char*)NULL };
5442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5444  *  Description of Hpux_C99_Inttypes fix
5445  */
5446 tSCC zHpux_C99_InttypesName[] =
5447      "hpux_c99_inttypes";
5450  *  File name selection pattern
5451  */
5452 tSCC zHpux_C99_InttypesList[] =
5453   "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
5455  *  Machine/OS name selection pattern
5456  */
5457 tSCC* apzHpux_C99_InttypesMachs[] = {
5458         "*-hp-hpux11.[23]*",
5459         (const char*)NULL };
5460 #define HPUX_C99_INTTYPES_TEST_CT  0
5461 #define aHpux_C99_InttypesTests   (tTestDesc*)NULL
5464  *  Fix Command Arguments for Hpux_C99_Inttypes
5465  */
5466 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
5467     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
5468     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
5469     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
5470     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
5471     (char*)NULL };
5473 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5475  *  Description of Hpux_C99_Inttypes2 fix
5476  */
5477 tSCC zHpux_C99_Inttypes2Name[] =
5478      "hpux_c99_inttypes2";
5481  *  File name selection pattern
5482  */
5483 tSCC zHpux_C99_Inttypes2List[] =
5484   "stdint-hpux11.h\0stdint.h\0";
5486  *  Machine/OS name selection pattern
5487  */
5488 tSCC* apzHpux_C99_Inttypes2Machs[] = {
5489         "*-hp-hpux11.2*",
5490         (const char*)NULL };
5491 #define HPUX_C99_INTTYPES2_TEST_CT  0
5492 #define aHpux_C99_Inttypes2Tests   (tTestDesc*)NULL
5495  *  Fix Command Arguments for Hpux_C99_Inttypes2
5496  */
5497 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
5498     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
5499     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
5500     "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
5501     "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
5502     (char*)NULL };
5504 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5506  *  Description of Hpux_C99_Inttypes3 fix
5507  */
5508 tSCC zHpux_C99_Inttypes3Name[] =
5509      "hpux_c99_inttypes3";
5512  *  File name selection pattern
5513  */
5514 tSCC zHpux_C99_Inttypes3List[] =
5515   "inttypes.h\0";
5517  *  Machine/OS name selection pattern
5518  */
5519 tSCC* apzHpux_C99_Inttypes3Machs[] = {
5520         "hppa*-hp-hpux11*",
5521         (const char*)NULL };
5524  *  content selection pattern - do fix if pattern found
5525  */
5526 tSCC zHpux_C99_Inttypes3Select0[] =
5527        "#define[ \t]INTPTR_MAX[ \t]*\n\
5528 #define[ \t]UINTPTR_MAX[ \t]*\n";
5530 #define    HPUX_C99_INTTYPES3_TEST_CT  1
5531 static tTestDesc aHpux_C99_Inttypes3Tests[] = {
5532   { TT_EGREP,    zHpux_C99_Inttypes3Select0, (regex_t*)NULL }, };
5535  *  Fix Command Arguments for Hpux_C99_Inttypes3
5536  */
5537 static const char* apzHpux_C99_Inttypes3Patch[] = {
5538     "format",
5539     "#undef SIZE_MAX\n\
5540 #define SIZE_MAX __SIZE_MAX__\n\
5541 #ifdef __INTPTR_MAX__\n\
5542 # undef INTPTR_MAX\n\
5543 # define INTPTR_MAX __INTPTR_MAX__\n\
5544 # undef INTPTR_MIN\n\
5545 # define INTPTR_MIN (-INTPTR_MAX - 1)\n\
5546 #endif\n\
5547 #ifdef __UINTPTR_MAX__\n\
5548 # undef UINTPTR_MAX\n\
5549 # define UINTPTR_MAX __UINTPTR_MAX__\n\
5550 #endif\n",
5551     (char*)NULL };
5553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5555  *  Description of Hpux_C99_Inttypes4 fix
5556  */
5557 tSCC zHpux_C99_Inttypes4Name[] =
5558      "hpux_c99_inttypes4";
5561  *  File name selection pattern
5562  */
5563 tSCC zHpux_C99_Inttypes4List[] =
5564   "inttypes.h\0";
5566  *  Machine/OS name selection pattern
5567  */
5568 tSCC* apzHpux_C99_Inttypes4Machs[] = {
5569         "hppa*-hp-hpux11.[01]*",
5570         (const char*)NULL };
5571 #define HPUX_C99_INTTYPES4_TEST_CT  0
5572 #define aHpux_C99_Inttypes4Tests   (tTestDesc*)NULL
5575  *  Fix Command Arguments for Hpux_C99_Inttypes4
5576  */
5577 static const char* apzHpux_C99_Inttypes4Patch[] = { sed_cmd_z,
5578     "-e", "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx64/a\\\n\
5579 #define SCNuMAX \t SCNu64\n",
5580     "-e", "/^[ \t]*#[ \t]*define[ \t]*SCNxMAX[ \t]*SCNx32/a\\\n\
5581 #define SCNuMAX \t SCNu32\n",
5582     (char*)NULL };
5584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5586  *  Description of Hpux_C99_Inttypes5 fix
5587  */
5588 tSCC zHpux_C99_Inttypes5Name[] =
5589      "hpux_c99_inttypes5";
5592  *  File name selection pattern
5593  */
5594 tSCC zHpux_C99_Inttypes5List[] =
5595   "inttypes.h\0";
5597  *  Machine/OS name selection pattern
5598  */
5599 tSCC* apzHpux_C99_Inttypes5Machs[] = {
5600         "hppa*-hp-hpux11.[01]*",
5601         (const char*)NULL };
5604  *  content selection pattern - do fix if pattern found
5605  */
5606 tSCC zHpux_C99_Inttypes5Select0[] =
5607        "#ifndef[ \t]_KERNEL[ \t]*\n";
5609 #define    HPUX_C99_INTTYPES5_TEST_CT  1
5610 static tTestDesc aHpux_C99_Inttypes5Tests[] = {
5611   { TT_EGREP,    zHpux_C99_Inttypes5Select0, (regex_t*)NULL }, };
5614  *  Fix Command Arguments for Hpux_C99_Inttypes5
5615  */
5616 static const char* apzHpux_C99_Inttypes5Patch[] = {
5617     "format",
5618     "#ifndef __LP64__\n\
5619 #define PRIdPTR\t\tPRId32\n\
5620 #define PRIiPTR\t\tPRIi32\n\
5621 #define PRIoPTR\t\tPRIo32\n\
5622 #define PRIuPTR\t\tPRIu32\n\
5623 #define PRIxPTR\t\tPRIx32\n\
5624 #define PRIXPTR\t\tPRIX32\n\
5625 #else\n\
5626 #define PRIdPTR\t\tPRId64\n\
5627 #define PRIiPTR\t\tPRIi64\n\
5628 #define PRIoPTR\t\tPRIo64\n\
5629 #define PRIuPTR\t\tPRIu64\n\
5630 #define PRIxPTR\t\tPRIx64\n\
5631 #define PRIXPTR\t\tPRIX64\n\
5632 #endif\n\n\
5633 #ifndef _KERNEL\n",
5634     (char*)NULL };
5636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5638  *  Description of Hpux_Ctype_Macros fix
5639  */
5640 tSCC zHpux_Ctype_MacrosName[] =
5641      "hpux_ctype_macros";
5644  *  File name selection pattern
5645  */
5646 tSCC zHpux_Ctype_MacrosList[] =
5647   "ctype.h\0";
5649  *  Machine/OS name selection pattern
5650  */
5651 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
5654  *  content selection pattern - do fix if pattern found
5655  */
5656 tSCC zHpux_Ctype_MacrosSelect0[] =
5657        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
5659 #define    HPUX_CTYPE_MACROS_TEST_CT  1
5660 static tTestDesc aHpux_Ctype_MacrosTests[] = {
5661   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
5664  *  Fix Command Arguments for Hpux_Ctype_Macros
5665  */
5666 static const char* apzHpux_Ctype_MacrosPatch[] = {
5667     "format",
5668     "%1(int)%3",
5669     (char*)NULL };
5671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5673  *  Description of Hpux_Extern_Errno fix
5674  */
5675 tSCC zHpux_Extern_ErrnoName[] =
5676      "hpux_extern_errno";
5679  *  File name selection pattern
5680  */
5681 tSCC zHpux_Extern_ErrnoList[] =
5682   "errno.h\0";
5684  *  Machine/OS name selection pattern
5685  */
5686 tSCC* apzHpux_Extern_ErrnoMachs[] = {
5687         "*-hp-hpux10.*",
5688         "*-hp-hpux11.[0-2]*",
5689         (const char*)NULL };
5692  *  content selection pattern - do fix if pattern found
5693  */
5694 tSCC zHpux_Extern_ErrnoSelect0[] =
5695        "^[ \t]*extern int errno;$";
5697 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
5698 static tTestDesc aHpux_Extern_ErrnoTests[] = {
5699   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
5702  *  Fix Command Arguments for Hpux_Extern_Errno
5703  */
5704 static const char* apzHpux_Extern_ErrnoPatch[] = {
5705     "format",
5706     "#ifdef __cplusplus\n\
5707 extern \"C\" {\n\
5708 #endif\n\
5709 %0\n\
5710 #ifdef __cplusplus\n\
5711 }\n\
5712 #endif",
5713     (char*)NULL };
5715 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5717  *  Description of Hpux_Htonl fix
5718  */
5719 tSCC zHpux_HtonlName[] =
5720      "hpux_htonl";
5723  *  File name selection pattern
5724  */
5725 tSCC zHpux_HtonlList[] =
5726   "netinet/in.h\0";
5728  *  Machine/OS name selection pattern
5729  */
5730 #define apzHpux_HtonlMachs (const char**)NULL
5733  *  content selection pattern - do fix if pattern found
5734  */
5735 tSCC zHpux_HtonlSelect0[] =
5736        "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
5737 (/\\*\n\
5738  \\* Macros for number representation conversion\\.\n\
5739  \\*/\n\
5740 #ifndef ntohl)";
5742 #define    HPUX_HTONL_TEST_CT  1
5743 static tTestDesc aHpux_HtonlTests[] = {
5744   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
5747  *  Fix Command Arguments for Hpux_Htonl
5748  */
5749 static const char* apzHpux_HtonlPatch[] = {
5750     "format",
5751     "#if 1\n\
5752 %1",
5753     (char*)NULL };
5755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5757  *  Description of Hpux_Imaginary_I fix
5758  */
5759 tSCC zHpux_Imaginary_IName[] =
5760      "hpux_imaginary_i";
5763  *  File name selection pattern
5764  */
5765 tSCC zHpux_Imaginary_IList[] =
5766   "complex.h\0";
5768  *  Machine/OS name selection pattern
5769  */
5770 tSCC* apzHpux_Imaginary_IMachs[] = {
5771         "ia64-hp-hpux11.*",
5772         (const char*)NULL };
5775  *  content selection pattern - do fix if pattern found
5776  */
5777 tSCC zHpux_Imaginary_ISelect0[] =
5778        "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
5780 #define    HPUX_IMAGINARY_I_TEST_CT  1
5781 static tTestDesc aHpux_Imaginary_ITests[] = {
5782   { TT_EGREP,    zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
5785  *  Fix Command Arguments for Hpux_Imaginary_I
5786  */
5787 static const char* apzHpux_Imaginary_IPatch[] = {
5788     "format",
5789     "#define _Complex_I (__extension__ 1.0iF)",
5790     (char*)NULL };
5792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5794  *  Description of Hpux_Inttype_Int8_T fix
5795  */
5796 tSCC zHpux_Inttype_Int8_TName[] =
5797      "hpux_inttype_int8_t";
5800  *  File name selection pattern
5801  */
5802 tSCC zHpux_Inttype_Int8_TList[] =
5803   "sys/_inttypes.h\0";
5805  *  Machine/OS name selection pattern
5806  */
5807 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
5808         "*-hp-hpux1[01].*",
5809         (const char*)NULL };
5812  *  content selection pattern - do fix if pattern found
5813  */
5814 tSCC zHpux_Inttype_Int8_TSelect0[] =
5815        "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
5817 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
5818 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
5819   { TT_EGREP,    zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
5822  *  Fix Command Arguments for Hpux_Inttype_Int8_T
5823  */
5824 static const char* apzHpux_Inttype_Int8_TPatch[] = {
5825     "format",
5826     "typedef signed char int%18_t;",
5827     (char*)NULL };
5829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5831  *  Description of Hpux_Long_Double fix
5832  */
5833 tSCC zHpux_Long_DoubleName[] =
5834      "hpux_long_double";
5837  *  File name selection pattern
5838  */
5839 tSCC zHpux_Long_DoubleList[] =
5840   "stdlib.h\0";
5842  *  Machine/OS name selection pattern
5843  */
5844 tSCC* apzHpux_Long_DoubleMachs[] = {
5845         "*-*-hpux10*",
5846         "*-*-hpux11.[012]*",
5847         (const char*)NULL };
5850  *  content selection pattern - do fix if pattern found
5851  */
5852 tSCC zHpux_Long_DoubleSelect0[] =
5853        "extern[ \t]long_double[ \t]strtold";
5856  *  content bypass pattern - skip fix if pattern found
5857  */
5858 tSCC zHpux_Long_DoubleBypass0[] =
5859        "long_double_t";
5861 #define    HPUX_LONG_DOUBLE_TEST_CT  2
5862 static tTestDesc aHpux_Long_DoubleTests[] = {
5863   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
5864   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
5867  *  Fix Command Arguments for Hpux_Long_Double
5868  */
5869 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
5870     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
5871     "-e", "s/long_double/long double/g",
5872     (char*)NULL };
5874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5876  *  Description of Hpux_Long_Double_2 fix
5877  */
5878 tSCC zHpux_Long_Double_2Name[] =
5879      "hpux_long_double_2";
5882  *  File name selection pattern
5883  */
5884 tSCC zHpux_Long_Double_2List[] =
5885   "stdlib.h\0";
5887  *  Machine/OS name selection pattern
5888  */
5889 tSCC* apzHpux_Long_Double_2Machs[] = {
5890         "hppa*-*-hpux11.3*",
5891         (const char*)NULL };
5894  *  content selection pattern - do fix if pattern found
5895  */
5896 tSCC zHpux_Long_Double_2Select0[] =
5897        "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
5899 #define    HPUX_LONG_DOUBLE_2_TEST_CT  1
5900 static tTestDesc aHpux_Long_Double_2Tests[] = {
5901   { TT_EGREP,    zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
5904  *  Fix Command Arguments for Hpux_Long_Double_2
5905  */
5906 static const char* apzHpux_Long_Double_2Patch[] = {
5907     "format",
5908     "#  if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
5909     (char*)NULL };
5911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5913  *  Description of Hpux_Pthread_Initializers fix
5914  */
5915 tSCC zHpux_Pthread_InitializersName[] =
5916      "hpux_pthread_initializers";
5919  *  File name selection pattern
5920  */
5921 tSCC zHpux_Pthread_InitializersList[] =
5922   "sys/pthread.h\0";
5924  *  Machine/OS name selection pattern
5925  */
5926 tSCC* apzHpux_Pthread_InitializersMachs[] = {
5927         "*-hp-hpux11.[0-3]*",
5928         (const char*)NULL };
5929 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
5930 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
5933  *  Fix Command Arguments for Hpux_Pthread_Initializers
5934  */
5935 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
5936     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
5937     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
5938     "-e", "/^[ \t]*0$/d",
5939     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
5940     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
5941     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
5942     "-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\\\\@",
5943     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
5944     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
5945     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
5946     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
5947     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
5948     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
5949     (char*)NULL };
5951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5953  *  Description of Hpux_Spu_Info fix
5954  */
5955 tSCC zHpux_Spu_InfoName[] =
5956      "hpux_spu_info";
5959  *  File name selection pattern
5960  */
5961 tSCC zHpux_Spu_InfoList[] =
5962   "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
5964  *  Machine/OS name selection pattern
5965  */
5966 tSCC* apzHpux_Spu_InfoMachs[] = {
5967         "*-hp-hpux*",
5968         (const char*)NULL };
5971  *  content selection pattern - do fix if pattern found
5972  */
5973 tSCC zHpux_Spu_InfoSelect0[] =
5974        "^.*extern.*spu_info.*";
5976 #define    HPUX_SPU_INFO_TEST_CT  1
5977 static tTestDesc aHpux_Spu_InfoTests[] = {
5978   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
5981  *  Fix Command Arguments for Hpux_Spu_Info
5982  */
5983 static const char* apzHpux_Spu_InfoPatch[] = {
5984     "format",
5985     "#ifdef _KERNEL\n\
5986 %0\n\
5987 #endif",
5988     (char*)NULL };
5990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5992  *  Description of Hpux_Stdint_Least_Fast fix
5993  */
5994 tSCC zHpux_Stdint_Least_FastName[] =
5995      "hpux_stdint_least_fast";
5998  *  File name selection pattern
5999  */
6000 tSCC zHpux_Stdint_Least_FastList[] =
6001   "stdint-hpux11.h\0stdint.h\0";
6003  *  Machine/OS name selection pattern
6004  */
6005 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
6006         "*-hp-hpux11.2*",
6007         (const char*)NULL };
6010  *  content selection pattern - do fix if pattern found
6011  */
6012 tSCC zHpux_Stdint_Least_FastSelect0[] =
6013        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
6015 #define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
6016 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
6017   { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
6020  *  Fix Command Arguments for Hpux_Stdint_Least_Fast
6021  */
6022 static const char* apzHpux_Stdint_Least_FastPatch[] = {
6023     "format",
6024     "#  define\tUINT_%164_MAX\t__UINT64_MAX__",
6025     (char*)NULL };
6027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6029  *  Description of Hpux_Longjmp fix
6030  */
6031 tSCC zHpux_LongjmpName[] =
6032      "hpux_longjmp";
6035  *  File name selection pattern
6036  */
6037 tSCC zHpux_LongjmpList[] =
6038   "setjmp.h\0";
6040  *  Machine/OS name selection pattern
6041  */
6042 tSCC* apzHpux_LongjmpMachs[] = {
6043         "*-hp-hpux*",
6044         (const char*)NULL };
6047  *  content selection pattern - do fix if pattern found
6048  */
6049 tSCC zHpux_LongjmpSelect0[] =
6050        "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))";
6052 #define    HPUX_LONGJMP_TEST_CT  1
6053 static tTestDesc aHpux_LongjmpTests[] = {
6054   { TT_EGREP,    zHpux_LongjmpSelect0, (regex_t*)NULL }, };
6057  *  Fix Command Arguments for Hpux_Longjmp
6058  */
6059 static const char* apzHpux_LongjmpPatch[] = {
6060     "format",
6061     "%0 __attribute__ ((__noreturn__))",
6062     (char*)NULL };
6064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6066  *  Description of Hpux_Systime fix
6067  */
6068 tSCC zHpux_SystimeName[] =
6069      "hpux_systime";
6072  *  File name selection pattern
6073  */
6074 tSCC zHpux_SystimeList[] =
6075   "sys/time.h\0";
6077  *  Machine/OS name selection pattern
6078  */
6079 #define apzHpux_SystimeMachs (const char**)NULL
6082  *  content selection pattern - do fix if pattern found
6083  */
6084 tSCC zHpux_SystimeSelect0[] =
6085        "^extern struct sigevent;";
6087 #define    HPUX_SYSTIME_TEST_CT  1
6088 static tTestDesc aHpux_SystimeTests[] = {
6089   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
6092  *  Fix Command Arguments for Hpux_Systime
6093  */
6094 static const char* apzHpux_SystimePatch[] = {
6095     "format",
6096     "struct sigevent;",
6097     (char*)NULL };
6099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6101  *  Description of Huge_Val_Hex fix
6102  */
6103 tSCC zHuge_Val_HexName[] =
6104      "huge_val_hex";
6107  *  File name selection pattern
6108  */
6109 tSCC zHuge_Val_HexList[] =
6110   "bits/huge_val.h\0*/bits/huge_val.h\0";
6112  *  Machine/OS name selection pattern
6113  */
6114 #define apzHuge_Val_HexMachs (const char**)NULL
6117  *  content selection pattern - do fix if pattern found
6118  */
6119 tSCC zHuge_Val_HexSelect0[] =
6120        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
6123  *  content bypass pattern - skip fix if pattern found
6124  */
6125 tSCC zHuge_Val_HexBypass0[] =
6126        "__builtin_huge_val";
6128 #define    HUGE_VAL_HEX_TEST_CT  2
6129 static tTestDesc aHuge_Val_HexTests[] = {
6130   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
6131   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
6134  *  Fix Command Arguments for Huge_Val_Hex
6135  */
6136 static const char* apzHuge_Val_HexPatch[] = {
6137     "format",
6138     "#define HUGE_VAL (__builtin_huge_val())\n",
6139     (char*)NULL };
6141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6143  *  Description of Huge_Valf_Hex fix
6144  */
6145 tSCC zHuge_Valf_HexName[] =
6146      "huge_valf_hex";
6149  *  File name selection pattern
6150  */
6151 tSCC zHuge_Valf_HexList[] =
6152   "bits/huge_val.h\0*/bits/huge_val.h\0";
6154  *  Machine/OS name selection pattern
6155  */
6156 #define apzHuge_Valf_HexMachs (const char**)NULL
6159  *  content selection pattern - do fix if pattern found
6160  */
6161 tSCC zHuge_Valf_HexSelect0[] =
6162        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
6165  *  content bypass pattern - skip fix if pattern found
6166  */
6167 tSCC zHuge_Valf_HexBypass0[] =
6168        "__builtin_huge_valf";
6170 #define    HUGE_VALF_HEX_TEST_CT  2
6171 static tTestDesc aHuge_Valf_HexTests[] = {
6172   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
6173   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
6176  *  Fix Command Arguments for Huge_Valf_Hex
6177  */
6178 static const char* apzHuge_Valf_HexPatch[] = {
6179     "format",
6180     "#define HUGE_VALF (__builtin_huge_valf())\n",
6181     (char*)NULL };
6183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6185  *  Description of Huge_Vall_Hex fix
6186  */
6187 tSCC zHuge_Vall_HexName[] =
6188      "huge_vall_hex";
6191  *  File name selection pattern
6192  */
6193 tSCC zHuge_Vall_HexList[] =
6194   "bits/huge_val.h\0*/bits/huge_val.h\0";
6196  *  Machine/OS name selection pattern
6197  */
6198 #define apzHuge_Vall_HexMachs (const char**)NULL
6201  *  content selection pattern - do fix if pattern found
6202  */
6203 tSCC zHuge_Vall_HexSelect0[] =
6204        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
6207  *  content bypass pattern - skip fix if pattern found
6208  */
6209 tSCC zHuge_Vall_HexBypass0[] =
6210        "__builtin_huge_vall";
6212 #define    HUGE_VALL_HEX_TEST_CT  2
6213 static tTestDesc aHuge_Vall_HexTests[] = {
6214   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
6215   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
6218  *  Fix Command Arguments for Huge_Vall_Hex
6219  */
6220 static const char* apzHuge_Vall_HexPatch[] = {
6221     "format",
6222     "#define HUGE_VALL (__builtin_huge_vall())\n",
6223     (char*)NULL };
6225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6227  *  Description of Int_Abort_Free_And_Exit fix
6228  */
6229 tSCC zInt_Abort_Free_And_ExitName[] =
6230      "int_abort_free_and_exit";
6233  *  File name selection pattern
6234  */
6235 tSCC zInt_Abort_Free_And_ExitList[] =
6236   "stdlib.h\0";
6238  *  Machine/OS name selection pattern
6239  */
6240 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
6243  *  content selection pattern - do fix if pattern found
6244  */
6245 tSCC zInt_Abort_Free_And_ExitSelect0[] =
6246        "int[ \t]+(abort|free|exit)[ \t]*\\(";
6249  *  content bypass pattern - skip fix if pattern found
6250  */
6251 tSCC zInt_Abort_Free_And_ExitBypass0[] =
6252        "_CLASSIC_ANSI_TYPES";
6254 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
6255 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
6256   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
6257   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
6260  *  Fix Command Arguments for Int_Abort_Free_And_Exit
6261  */
6262 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
6263     "format",
6264     "void\t%1(",
6265     (char*)NULL };
6267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6269  *  Description of Io_Quotes_Def fix
6270  */
6271 tSCC zIo_Quotes_DefName[] =
6272      "io_quotes_def";
6275  *  File name selection pattern
6276  */
6277 #define zIo_Quotes_DefList (char*)NULL
6279  *  Machine/OS name selection pattern
6280  */
6281 #define apzIo_Quotes_DefMachs (const char**)NULL
6284  *  content selection pattern - do fix if pattern found
6285  */
6286 tSCC zIo_Quotes_DefSelect0[] =
6287        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
6289 #define    IO_QUOTES_DEF_TEST_CT  1
6290 static tTestDesc aIo_Quotes_DefTests[] = {
6291   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
6294  *  Fix Command Arguments for Io_Quotes_Def
6295  */
6296 static const char* apzIo_Quotes_DefPatch[] = {
6297     "char_macro_def",
6298     "IO",
6299     (char*)NULL };
6301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6303  *  Description of Io_Quotes_Use fix
6304  */
6305 tSCC zIo_Quotes_UseName[] =
6306      "io_quotes_use";
6309  *  File name selection pattern
6310  */
6311 #define zIo_Quotes_UseList (char*)NULL
6313  *  Machine/OS name selection pattern
6314  */
6315 #define apzIo_Quotes_UseMachs (const char**)NULL
6318  *  content selection pattern - do fix if pattern found
6319  */
6320 tSCC zIo_Quotes_UseSelect0[] =
6321        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
6323 #define    IO_QUOTES_USE_TEST_CT  1
6324 static tTestDesc aIo_Quotes_UseTests[] = {
6325   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
6328  *  Fix Command Arguments for Io_Quotes_Use
6329  */
6330 static const char* apzIo_Quotes_UsePatch[] = {
6331     "char_macro_use",
6332     "IO",
6333     (char*)NULL };
6335 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6337  *  Description of Ip_Missing_Semi fix
6338  */
6339 tSCC zIp_Missing_SemiName[] =
6340      "ip_missing_semi";
6343  *  File name selection pattern
6344  */
6345 tSCC zIp_Missing_SemiList[] =
6346   "netinet/ip.h\0";
6348  *  Machine/OS name selection pattern
6349  */
6350 #define apzIp_Missing_SemiMachs (const char**)NULL
6353  *  content selection pattern - do fix if pattern found
6354  */
6355 tSCC zIp_Missing_SemiSelect0[] =
6356        "}$";
6358 #define    IP_MISSING_SEMI_TEST_CT  1
6359 static tTestDesc aIp_Missing_SemiTests[] = {
6360   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
6363  *  Fix Command Arguments for Ip_Missing_Semi
6364  */
6365 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
6366     "-e", "/^struct/,/^};/s/}$/};/",
6367     (char*)NULL };
6369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6371  *  Description of Irix_Limits_Const fix
6372  */
6373 tSCC zIrix_Limits_ConstName[] =
6374      "irix_limits_const";
6377  *  File name selection pattern
6378  */
6379 tSCC zIrix_Limits_ConstList[] =
6380   "fixinc-test-limits.h\0limits.h\0";
6382  *  Machine/OS name selection pattern
6383  */
6384 #define apzIrix_Limits_ConstMachs (const char**)NULL
6387  *  content selection pattern - do fix if pattern found
6388  */
6389 tSCC zIrix_Limits_ConstSelect0[] =
6390        "^extern const ";
6392 #define    IRIX_LIMITS_CONST_TEST_CT  1
6393 static tTestDesc aIrix_Limits_ConstTests[] = {
6394   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
6397  *  Fix Command Arguments for Irix_Limits_Const
6398  */
6399 static const char* apzIrix_Limits_ConstPatch[] = {
6400     "format",
6401     "extern __const ",
6402     (char*)NULL };
6404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6406  *  Description of Irix_Stdio_Va_List fix
6407  */
6408 tSCC zIrix_Stdio_Va_ListName[] =
6409      "irix_stdio_va_list";
6412  *  File name selection pattern
6413  */
6414 tSCC zIrix_Stdio_Va_ListList[] =
6415   "stdio.h\0";
6417  *  Machine/OS name selection pattern
6418  */
6419 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
6422  *  content selection pattern - do fix if pattern found
6423  */
6424 tSCC zIrix_Stdio_Va_ListSelect0[] =
6425        "/\\* va_list \\*/ char \\*";
6427 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
6428 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
6429   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
6432  *  Fix Command Arguments for Irix_Stdio_Va_List
6433  */
6434 static const char* apzIrix_Stdio_Va_ListPatch[] = {
6435     "format",
6436     "__gnuc_va_list",
6437     (char*)NULL };
6439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6441  *  Description of Kandr_Concat fix
6442  */
6443 tSCC zKandr_ConcatName[] =
6444      "kandr_concat";
6447  *  File name selection pattern
6448  */
6449 tSCC zKandr_ConcatList[] =
6450   "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";
6452  *  Machine/OS name selection pattern
6453  */
6454 #define apzKandr_ConcatMachs (const char**)NULL
6457  *  content selection pattern - do fix if pattern found
6458  */
6459 tSCC zKandr_ConcatSelect0[] =
6460        "/\\*\\*/";
6462 #define    KANDR_CONCAT_TEST_CT  1
6463 static tTestDesc aKandr_ConcatTests[] = {
6464   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
6467  *  Fix Command Arguments for Kandr_Concat
6468  */
6469 static const char* apzKandr_ConcatPatch[] = {
6470     "format",
6471     "##",
6472     (char*)NULL };
6474 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6476  *  Description of Linux_Ia64_Ucontext fix
6477  */
6478 tSCC zLinux_Ia64_UcontextName[] =
6479      "linux_ia64_ucontext";
6482  *  File name selection pattern
6483  */
6484 tSCC zLinux_Ia64_UcontextList[] =
6485   "sys/ucontext.h\0";
6487  *  Machine/OS name selection pattern
6488  */
6489 tSCC* apzLinux_Ia64_UcontextMachs[] = {
6490         "ia64-*-linux*",
6491         (const char*)NULL };
6494  *  content selection pattern - do fix if pattern found
6495  */
6496 tSCC zLinux_Ia64_UcontextSelect0[] =
6497        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
6499 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
6500 static tTestDesc aLinux_Ia64_UcontextTests[] = {
6501   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
6504  *  Fix Command Arguments for Linux_Ia64_Ucontext
6505  */
6506 static const char* apzLinux_Ia64_UcontextPatch[] = {
6507     "format",
6508     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
6509     (char*)NULL };
6511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6513  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
6514  */
6515 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
6516      "lynxos_no_warning_in_sys_time_h";
6519  *  File name selection pattern
6520  */
6521 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
6522   "sys/time.h\0";
6524  *  Machine/OS name selection pattern
6525  */
6526 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
6529  *  content selection pattern - do fix if pattern found
6530  */
6531 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
6532        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
6534 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
6535 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
6536   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
6539  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
6540  */
6541 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
6542     "format",
6543     "",
6544     (char*)NULL };
6546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6548  *  Description of Lynxos_Missing_Putenv fix
6549  */
6550 tSCC zLynxos_Missing_PutenvName[] =
6551      "lynxos_missing_putenv";
6554  *  File name selection pattern
6555  */
6556 tSCC zLynxos_Missing_PutenvList[] =
6557   "stdlib.h\0";
6559  *  Machine/OS name selection pattern
6560  */
6561 tSCC* apzLynxos_Missing_PutenvMachs[] = {
6562         "*-*-lynxos*",
6563         (const char*)NULL };
6566  *  content selection pattern - do fix if pattern found
6567  */
6568 tSCC zLynxos_Missing_PutenvSelect0[] =
6569        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
6572  *  content bypass pattern - skip fix if pattern found
6573  */
6574 tSCC zLynxos_Missing_PutenvBypass0[] =
6575        "putenv[ \\t]*\\(";
6577 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
6578 static tTestDesc aLynxos_Missing_PutenvTests[] = {
6579   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
6580   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
6583  *  Fix Command Arguments for Lynxos_Missing_Putenv
6584  */
6585 static const char* apzLynxos_Missing_PutenvPatch[] = {
6586     "format",
6587     "%0\n\
6588 extern int putenv\t\t\t\t_AP((char *));",
6589     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
6590     (char*)NULL };
6592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6594  *  Description of Machine_Ansi_H_Va_List fix
6595  */
6596 tSCC zMachine_Ansi_H_Va_ListName[] =
6597      "machine_ansi_h_va_list";
6600  *  File name selection pattern
6601  */
6602 #define zMachine_Ansi_H_Va_ListList (char*)NULL
6604  *  Machine/OS name selection pattern
6605  */
6606 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
6609  *  content selection pattern - do fix if pattern found
6610  */
6611 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
6612        "define[ \t]+_BSD_VA_LIST_[ \t]";
6615  *  content bypass pattern - skip fix if pattern found
6616  */
6617 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
6618        "__builtin_va_list";
6620 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
6621 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
6622   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
6623   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
6626  *  Fix Command Arguments for Machine_Ansi_H_Va_List
6627  */
6628 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
6629     "format",
6630     "%1__builtin_va_list",
6631     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
6632     (char*)NULL };
6634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6636  *  Description of Machine_Name fix
6637  */
6638 tSCC zMachine_NameName[] =
6639      "machine_name";
6642  *  File name selection pattern
6643  */
6644 #define zMachine_NameList (char*)NULL
6646  *  Machine/OS name selection pattern
6647  */
6648 #define apzMachine_NameMachs (const char**)NULL
6651  *  perform the C function call test
6652  */
6653 tSCC zMachine_NameFTst0[] = "machine_name";
6655 #define    MACHINE_NAME_TEST_CT  1
6656 static tTestDesc aMachine_NameTests[] = {
6657   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
6660  *  Fix Command Arguments for Machine_Name
6661  */
6662 static const char* apzMachine_NamePatch[] = {
6663     "machine_name",
6664     (char*)NULL };
6666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6668  *  Description of Math_Exception fix
6669  */
6670 tSCC zMath_ExceptionName[] =
6671      "math_exception";
6674  *  File name selection pattern
6675  */
6676 tSCC zMath_ExceptionList[] =
6677   "math.h\0";
6679  *  Machine/OS name selection pattern
6680  */
6681 tSCC* apzMath_ExceptionMachs[] = {
6682         "*-*-solaris2.1[0-9]*",
6683         (const char*)NULL };
6686  *  content selection pattern - do fix if pattern found
6687  */
6688 tSCC zMath_ExceptionSelect0[] =
6689        "struct exception";
6692  *  content bypass pattern - skip fix if pattern found
6693  */
6694 tSCC zMath_ExceptionBypass0[] =
6695        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
6697 #define    MATH_EXCEPTION_TEST_CT  2
6698 static tTestDesc aMath_ExceptionTests[] = {
6699   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
6700   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
6703  *  Fix Command Arguments for Math_Exception
6704  */
6705 static const char* apzMath_ExceptionPatch[] = {
6706     "wrap",
6707     "#ifdef __cplusplus\n\
6708 #define exception __math_exception\n\
6709 #endif\n",
6710     "#ifdef __cplusplus\n\
6711 #undef exception\n\
6712 #endif\n",
6713     (char*)NULL };
6715 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6717  *  Description of Math_Huge_Val_From_Dbl_Max fix
6718  */
6719 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
6720      "math_huge_val_from_dbl_max";
6723  *  File name selection pattern
6724  */
6725 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
6726   "math.h\0";
6728  *  Machine/OS name selection pattern
6729  */
6730 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
6733  *  content selection pattern - do fix if pattern found
6734  */
6735 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
6736        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
6739  *  content bypass pattern - skip fix if pattern found
6740  */
6741 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
6742        "define[ \t]+DBL_MAX";
6744 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
6745 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
6746   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
6747   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
6750  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
6751  */
6752 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
6753     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
6754 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
6755 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
6756 \telse cat\n\
6757 \tfi",
6758     (char*)NULL };
6760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6762  *  Description of Nested_Auth_Des fix
6763  */
6764 tSCC zNested_Auth_DesName[] =
6765      "nested_auth_des";
6768  *  File name selection pattern
6769  */
6770 tSCC zNested_Auth_DesList[] =
6771   "rpc/rpc.h\0";
6773  *  Machine/OS name selection pattern
6774  */
6775 #define apzNested_Auth_DesMachs (const char**)NULL
6778  *  content selection pattern - do fix if pattern found
6779  */
6780 tSCC zNested_Auth_DesSelect0[] =
6781        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
6783 #define    NESTED_AUTH_DES_TEST_CT  1
6784 static tTestDesc aNested_Auth_DesTests[] = {
6785   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
6788  *  Fix Command Arguments for Nested_Auth_Des
6789  */
6790 static const char* apzNested_Auth_DesPatch[] = {
6791     "format",
6792     "%1*/ /*",
6793     (char*)NULL };
6795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6797  *  Description of Netbsd_C99_Inline_1 fix
6798  */
6799 tSCC zNetbsd_C99_Inline_1Name[] =
6800      "netbsd_c99_inline_1";
6803  *  File name selection pattern
6804  */
6805 tSCC zNetbsd_C99_Inline_1List[] =
6806   "signal.h\0";
6808  *  Machine/OS name selection pattern
6809  */
6810 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
6811         "*-*-netbsd*",
6812         (const char*)NULL };
6815  *  content selection pattern - do fix if pattern found
6816  */
6817 tSCC zNetbsd_C99_Inline_1Select0[] =
6818        "extern __inline int";
6820 #define    NETBSD_C99_INLINE_1_TEST_CT  1
6821 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
6822   { TT_EGREP,    zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
6825  *  Fix Command Arguments for Netbsd_C99_Inline_1
6826  */
6827 static const char* apzNetbsd_C99_Inline_1Patch[] = {
6828     "format",
6829     "extern\n\
6830 #ifdef __GNUC_STDC_INLINE__\n\
6831 __attribute__((__gnu_inline__))\n\
6832 #endif\n\
6833 __inline int",
6834     (char*)NULL };
6836 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6838  *  Description of Netbsd_C99_Inline_2 fix
6839  */
6840 tSCC zNetbsd_C99_Inline_2Name[] =
6841      "netbsd_c99_inline_2";
6844  *  File name selection pattern
6845  */
6846 tSCC zNetbsd_C99_Inline_2List[] =
6847   "signal.h\0";
6849  *  Machine/OS name selection pattern
6850  */
6851 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
6852         "*-*-netbsd*",
6853         (const char*)NULL };
6856  *  content selection pattern - do fix if pattern found
6857  */
6858 tSCC zNetbsd_C99_Inline_2Select0[] =
6859        "#define _SIGINLINE extern __inline";
6861 #define    NETBSD_C99_INLINE_2_TEST_CT  1
6862 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
6863   { TT_EGREP,    zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
6866  *  Fix Command Arguments for Netbsd_C99_Inline_2
6867  */
6868 static const char* apzNetbsd_C99_Inline_2Patch[] = {
6869     "format",
6870     "#ifdef __GNUC_STDC_INLINE__\n\
6871 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
6872 #else\n\
6873 %0\n\
6874 #endif",
6875     (char*)NULL };
6877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6879  *  Description of Netbsd_Extra_Semicolon fix
6880  */
6881 tSCC zNetbsd_Extra_SemicolonName[] =
6882      "netbsd_extra_semicolon";
6885  *  File name selection pattern
6886  */
6887 tSCC zNetbsd_Extra_SemicolonList[] =
6888   "sys/cdefs.h\0";
6890  *  Machine/OS name selection pattern
6891  */
6892 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
6893         "*-*-netbsd*",
6894         (const char*)NULL };
6897  *  content selection pattern - do fix if pattern found
6898  */
6899 tSCC zNetbsd_Extra_SemicolonSelect0[] =
6900        "#define[ \t]*__END_DECLS[ \t]*};";
6902 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
6903 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
6904   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
6907  *  Fix Command Arguments for Netbsd_Extra_Semicolon
6908  */
6909 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
6910     "format",
6911     "#define __END_DECLS }",
6912     (char*)NULL };
6914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6916  *  Description of Newlib_Stdint_1 fix
6917  */
6918 tSCC zNewlib_Stdint_1Name[] =
6919      "newlib_stdint_1";
6922  *  File name selection pattern
6923  */
6924 tSCC zNewlib_Stdint_1List[] =
6925   "stdint-newlib.h\0stdint.h\0";
6927  *  Machine/OS name selection pattern
6928  */
6929 #define apzNewlib_Stdint_1Machs (const char**)NULL
6932  *  content selection pattern - do fix if pattern found
6933  */
6934 tSCC zNewlib_Stdint_1Select0[] =
6935        "@todo - Add support for wint_t types";
6937 #define    NEWLIB_STDINT_1_TEST_CT  1
6938 static tTestDesc aNewlib_Stdint_1Tests[] = {
6939   { TT_EGREP,    zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
6942  *  Fix Command Arguments for Newlib_Stdint_1
6943  */
6944 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
6945     "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
6946     "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
6947     "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
6948     "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
6949     "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
6950     "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
6951     "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
6952     "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
6953     "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
6954     "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
6955     "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
6956     "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
6957     "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
6958     "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
6959     (char*)NULL };
6961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6963  *  Description of Newlib_Stdint_2 fix
6964  */
6965 tSCC zNewlib_Stdint_2Name[] =
6966      "newlib_stdint_2";
6969  *  File name selection pattern
6970  */
6971 tSCC zNewlib_Stdint_2List[] =
6972   "stdint-newlib.h\0stdint.h\0";
6974  *  Machine/OS name selection pattern
6975  */
6976 #define apzNewlib_Stdint_2Machs (const char**)NULL
6979  *  content selection pattern - do fix if pattern found
6980  */
6981 tSCC zNewlib_Stdint_2Select0[] =
6982        "@todo - Add support for wint_t types";
6984 #define    NEWLIB_STDINT_2_TEST_CT  1
6985 static tTestDesc aNewlib_Stdint_2Tests[] = {
6986   { TT_EGREP,    zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
6989  *  Fix Command Arguments for Newlib_Stdint_2
6990  */
6991 static const char* apzNewlib_Stdint_2Patch[] = {
6992     "format",
6993     "#define INTMAX_MAX __INTMAX_MAX__\n\
6994 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
6995 #define UINTMAX_MAX __UINTMAX_MAX__\n\
6996 #define WCHAR_MAX __WCHAR_MAX__\n\
6997 #define WCHAR_MIN __WCHAR_MIN__\n\
6998 #define WINT_MAX __WINT_MAX__\n\
6999 #define WINT_MIN __WINT_MIN__\n\n\
7000 %0",
7001     "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
7002     (char*)NULL };
7004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7006  *  Description of Next_Math_Prefix fix
7007  */
7008 tSCC zNext_Math_PrefixName[] =
7009      "next_math_prefix";
7012  *  File name selection pattern
7013  */
7014 tSCC zNext_Math_PrefixList[] =
7015   "ansi/math.h\0";
7017  *  Machine/OS name selection pattern
7018  */
7019 #define apzNext_Math_PrefixMachs (const char**)NULL
7022  *  content selection pattern - do fix if pattern found
7023  */
7024 tSCC zNext_Math_PrefixSelect0[] =
7025        "^extern[ \t]+double[ \t]+__const__[ \t]";
7027 #define    NEXT_MATH_PREFIX_TEST_CT  1
7028 static tTestDesc aNext_Math_PrefixTests[] = {
7029   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
7032  *  Fix Command Arguments for Next_Math_Prefix
7033  */
7034 static const char* apzNext_Math_PrefixPatch[] = {
7035     "format",
7036     "extern double %1(",
7037     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
7038     (char*)NULL };
7040 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7042  *  Description of Next_Template fix
7043  */
7044 tSCC zNext_TemplateName[] =
7045      "next_template";
7048  *  File name selection pattern
7049  */
7050 tSCC zNext_TemplateList[] =
7051   "bsd/libc.h\0";
7053  *  Machine/OS name selection pattern
7054  */
7055 #define apzNext_TemplateMachs (const char**)NULL
7058  *  content selection pattern - do fix if pattern found
7059  */
7060 tSCC zNext_TemplateSelect0[] =
7061        "[ \t]template\\)";
7063 #define    NEXT_TEMPLATE_TEST_CT  1
7064 static tTestDesc aNext_TemplateTests[] = {
7065   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
7068  *  Fix Command Arguments for Next_Template
7069  */
7070 static const char* apzNext_TemplatePatch[] = {
7071     "format",
7072     "(%1)",
7073     "\\(([^)]*)[ \t]template\\)",
7074     (char*)NULL };
7076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7078  *  Description of Next_Volitile fix
7079  */
7080 tSCC zNext_VolitileName[] =
7081      "next_volitile";
7084  *  File name selection pattern
7085  */
7086 tSCC zNext_VolitileList[] =
7087   "ansi/stdlib.h\0";
7089  *  Machine/OS name selection pattern
7090  */
7091 #define apzNext_VolitileMachs (const char**)NULL
7094  *  content selection pattern - do fix if pattern found
7095  */
7096 tSCC zNext_VolitileSelect0[] =
7097        "^extern[ \t]+volatile[ \t]+void[ \t]";
7099 #define    NEXT_VOLITILE_TEST_CT  1
7100 static tTestDesc aNext_VolitileTests[] = {
7101   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
7104  *  Fix Command Arguments for Next_Volitile
7105  */
7106 static const char* apzNext_VolitilePatch[] = {
7107     "format",
7108     "extern void %1(",
7109     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
7110     (char*)NULL };
7112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7114  *  Description of Next_Wait_Union fix
7115  */
7116 tSCC zNext_Wait_UnionName[] =
7117      "next_wait_union";
7120  *  File name selection pattern
7121  */
7122 tSCC zNext_Wait_UnionList[] =
7123   "sys/wait.h\0";
7125  *  Machine/OS name selection pattern
7126  */
7127 #define apzNext_Wait_UnionMachs (const char**)NULL
7130  *  content selection pattern - do fix if pattern found
7131  */
7132 tSCC zNext_Wait_UnionSelect0[] =
7133        "wait\\(union wait";
7135 #define    NEXT_WAIT_UNION_TEST_CT  1
7136 static tTestDesc aNext_Wait_UnionTests[] = {
7137   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
7140  *  Fix Command Arguments for Next_Wait_Union
7141  */
7142 static const char* apzNext_Wait_UnionPatch[] = {
7143     "format",
7144     "wait(void",
7145     (char*)NULL };
7147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7149  *  Description of Nodeent_Syntax fix
7150  */
7151 tSCC zNodeent_SyntaxName[] =
7152      "nodeent_syntax";
7155  *  File name selection pattern
7156  */
7157 tSCC zNodeent_SyntaxList[] =
7158   "netdnet/dnetdb.h\0";
7160  *  Machine/OS name selection pattern
7161  */
7162 #define apzNodeent_SyntaxMachs (const char**)NULL
7165  *  content selection pattern - do fix if pattern found
7166  */
7167 tSCC zNodeent_SyntaxSelect0[] =
7168        "char[ \t]*\\*na_addr[ \t]*$";
7170 #define    NODEENT_SYNTAX_TEST_CT  1
7171 static tTestDesc aNodeent_SyntaxTests[] = {
7172   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
7175  *  Fix Command Arguments for Nodeent_Syntax
7176  */
7177 static const char* apzNodeent_SyntaxPatch[] = {
7178     "format",
7179     "%0;",
7180     (char*)NULL };
7182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7184  *  Description of Openbsd_Null_Definition fix
7185  */
7186 tSCC zOpenbsd_Null_DefinitionName[] =
7187      "openbsd_null_definition";
7190  *  File name selection pattern
7191  */
7192 tSCC zOpenbsd_Null_DefinitionList[] =
7193   "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
7195  *  Machine/OS name selection pattern
7196  */
7197 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
7198         "*-*-openbsd*",
7199         (const char*)NULL };
7202  *  content selection pattern - do fix if pattern found
7203  */
7204 tSCC zOpenbsd_Null_DefinitionSelect0[] =
7205        "__GNUG__";
7207 #define    OPENBSD_NULL_DEFINITION_TEST_CT  1
7208 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
7209   { TT_EGREP,    zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
7212  *  Fix Command Arguments for Openbsd_Null_Definition
7213  */
7214 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
7215     "format",
7216     "#ifndef NULL\n\
7217 #ifdef __cplusplus\n\
7218 #ifdef __GNUG__\n\
7219 #define NULL\t__null\n\
7220 #else\t /* ! __GNUG__  */\n\
7221 #define NULL\t0L\n\
7222 #endif\t /* __GNUG__  */\n\
7223 #else\t /* ! __cplusplus  */\n\
7224 #define NULL\t((void *)0)\n\
7225 #endif\t /* __cplusplus  */\n\
7226 #endif\t /* !NULL  */",
7227     "^#ifndef[ \t]*NULL\n\
7228 ^#ifdef[ \t]*__GNUG__\n\
7229 ^#define[ \t]*NULL[ \t]*__null\n\
7230 ^#else\n\
7231 ^#define[ \t]*NULL[ \t]*0L\n\
7232 ^#endif\n\
7233 ^#endif",
7234     (char*)NULL };
7236 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7238  *  Description of Obstack_Lvalue_Cast fix
7239  */
7240 tSCC zObstack_Lvalue_CastName[] =
7241      "obstack_lvalue_cast";
7244  *  File name selection pattern
7245  */
7246 tSCC zObstack_Lvalue_CastList[] =
7247   "obstack.h\0";
7249  *  Machine/OS name selection pattern
7250  */
7251 #define apzObstack_Lvalue_CastMachs (const char**)NULL
7254  *  content selection pattern - do fix if pattern found
7255  */
7256 tSCC zObstack_Lvalue_CastSelect0[] =
7257        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
7259 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
7260 static tTestDesc aObstack_Lvalue_CastTests[] = {
7261   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
7264  *  Fix Command Arguments for Obstack_Lvalue_Cast
7265  */
7266 static const char* apzObstack_Lvalue_CastPatch[] = {
7267     "format",
7268     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
7269     (char*)NULL };
7271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7273  *  Description of Openbsd_Va_Start fix
7274  */
7275 tSCC zOpenbsd_Va_StartName[] =
7276      "openbsd_va_start";
7279  *  File name selection pattern
7280  */
7281 tSCC zOpenbsd_Va_StartList[] =
7282   "stdarg.h\0";
7284  *  Machine/OS name selection pattern
7285  */
7286 tSCC* apzOpenbsd_Va_StartMachs[] = {
7287         "*-*-openbsd*",
7288         (const char*)NULL };
7291  *  content selection pattern - do fix if pattern found
7292  */
7293 tSCC zOpenbsd_Va_StartSelect0[] =
7294        "__builtin_stdarg_start";
7296 #define    OPENBSD_VA_START_TEST_CT  1
7297 static tTestDesc aOpenbsd_Va_StartTests[] = {
7298   { TT_EGREP,    zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
7301  *  Fix Command Arguments for Openbsd_Va_Start
7302  */
7303 static const char* apzOpenbsd_Va_StartPatch[] = {
7304     "format",
7305     "__builtin_va_start",
7306     (char*)NULL };
7308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7310  *  Description of Osf_Namespace_A fix
7311  */
7312 tSCC zOsf_Namespace_AName[] =
7313      "osf_namespace_a";
7316  *  File name selection pattern
7317  */
7318 tSCC zOsf_Namespace_AList[] =
7319   "reg_types.h\0sys/lc_core.h\0";
7321  *  Machine/OS name selection pattern
7322  */
7323 #define apzOsf_Namespace_AMachs (const char**)NULL
7326  *  perform the 'test' shell command - do fix on success
7327  */
7328 tSCC zOsf_Namespace_ATest0[] =
7329        " -r reg_types.h";
7330 tSCC zOsf_Namespace_ATest1[] =
7331        " -r sys/lc_core.h";
7332 tSCC zOsf_Namespace_ATest2[] =
7333        " -n \"`grep '} regex_t;' reg_types.h`\"";
7334 tSCC zOsf_Namespace_ATest3[] =
7335        " -z \"`grep __regex_t regex.h`\"";
7337 #define    OSF_NAMESPACE_A_TEST_CT  4
7338 static tTestDesc aOsf_Namespace_ATests[] = {
7339   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
7340   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
7341   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
7342   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
7345  *  Fix Command Arguments for Osf_Namespace_A
7346  */
7347 static const char* apzOsf_Namespace_APatch[] = {
7348     "format",
7349     "__%0",
7350     "reg(ex|off|match)_t",
7351     (char*)NULL };
7353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7355  *  Description of Osf_Namespace_C fix
7356  */
7357 tSCC zOsf_Namespace_CName[] =
7358      "osf_namespace_c";
7361  *  File name selection pattern
7362  */
7363 tSCC zOsf_Namespace_CList[] =
7364   "regex.h\0";
7366  *  Machine/OS name selection pattern
7367  */
7368 #define apzOsf_Namespace_CMachs (const char**)NULL
7371  *  content selection pattern - do fix if pattern found
7372  */
7373 tSCC zOsf_Namespace_CSelect0[] =
7374        "#include <reg_types.h>.*";
7377  *  perform the 'test' shell command - do fix on success
7378  */
7379 tSCC zOsf_Namespace_CTest0[] =
7380        " -r reg_types.h";
7381 tSCC zOsf_Namespace_CTest1[] =
7382        " -r sys/lc_core.h";
7383 tSCC zOsf_Namespace_CTest2[] =
7384        " -n \"`grep '} regex_t;' reg_types.h`\"";
7385 tSCC zOsf_Namespace_CTest3[] =
7386        " -z \"`grep __regex_t regex.h`\"";
7388 #define    OSF_NAMESPACE_C_TEST_CT  5
7389 static tTestDesc aOsf_Namespace_CTests[] = {
7390   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
7391   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
7392   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
7393   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
7394   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
7397  *  Fix Command Arguments for Osf_Namespace_C
7398  */
7399 static const char* apzOsf_Namespace_CPatch[] = {
7400     "format",
7401     "%0\n\
7402 typedef __regex_t\tregex_t;\n\
7403 typedef __regoff_t\tregoff_t;\n\
7404 typedef __regmatch_t\tregmatch_t;",
7405     (char*)NULL };
7407 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7409  *  Description of Pthread_Incomplete_Struct_Argument fix
7410  */
7411 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
7412      "pthread_incomplete_struct_argument";
7415  *  File name selection pattern
7416  */
7417 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
7418   "pthread.h\0";
7420  *  Machine/OS name selection pattern
7421  */
7422 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
7425  *  content selection pattern - do fix if pattern found
7426  */
7427 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
7428        "struct __jmp_buf_tag";
7430 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
7431 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
7432   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
7435  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
7436  */
7437 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
7438     "format",
7439     "%1 *%2%3",
7440     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
7441     (char*)NULL };
7443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7445  *  Description of Read_Ret_Type fix
7446  */
7447 tSCC zRead_Ret_TypeName[] =
7448      "read_ret_type";
7451  *  File name selection pattern
7452  */
7453 tSCC zRead_Ret_TypeList[] =
7454   "stdio.h\0";
7456  *  Machine/OS name selection pattern
7457  */
7458 #define apzRead_Ret_TypeMachs (const char**)NULL
7461  *  content selection pattern - do fix if pattern found
7462  */
7463 tSCC zRead_Ret_TypeSelect0[] =
7464        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
7466 #define    READ_RET_TYPE_TEST_CT  1
7467 static tTestDesc aRead_Ret_TypeTests[] = {
7468   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
7471  *  Fix Command Arguments for Read_Ret_Type
7472  */
7473 static const char* apzRead_Ret_TypePatch[] = {
7474     "format",
7475     "extern unsigned int fread(), fwrite();\n\
7476 %1%2",
7477     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
7478     (char*)NULL };
7480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7482  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
7483  */
7484 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
7485      "rpc_xdr_lvalue_cast_a";
7488  *  File name selection pattern
7489  */
7490 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
7491   "rpc/xdr.h\0";
7493  *  Machine/OS name selection pattern
7494  */
7495 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
7498  *  content selection pattern - do fix if pattern found
7499  */
7500 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
7501        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
7502 .*__extension__.*";
7504 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
7505 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
7506   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
7509  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
7510  */
7511 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
7512     "format",
7513     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
7514     (char*)NULL };
7516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7518  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
7519  */
7520 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
7521      "rpc_xdr_lvalue_cast_b";
7524  *  File name selection pattern
7525  */
7526 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
7527   "rpc/xdr.h\0";
7529  *  Machine/OS name selection pattern
7530  */
7531 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
7534  *  content selection pattern - do fix if pattern found
7535  */
7536 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
7537        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
7538 .*__extension__.*";
7540 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
7541 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
7542   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
7545  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
7546  */
7547 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
7548     "format",
7549     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
7550     (char*)NULL };
7552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7554  *  Description of Rs6000_Double fix
7555  */
7556 tSCC zRs6000_DoubleName[] =
7557      "rs6000_double";
7560  *  File name selection pattern
7561  */
7562 tSCC zRs6000_DoubleList[] =
7563   "math.h\0";
7565  *  Machine/OS name selection pattern
7566  */
7567 #define apzRs6000_DoubleMachs (const char**)NULL
7570  *  content selection pattern - do fix if pattern found
7571  */
7572 tSCC zRs6000_DoubleSelect0[] =
7573        "[^a-zA-Z_]class\\(";
7575 #define    RS6000_DOUBLE_TEST_CT  1
7576 static tTestDesc aRs6000_DoubleTests[] = {
7577   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
7580  *  Fix Command Arguments for Rs6000_Double
7581  */
7582 static const char* apzRs6000_DoublePatch[] = {
7583     "format",
7584     "#ifndef __cplusplus\n\
7585 %0\n\
7586 #endif",
7587     "^.*[^a-zA-Z_]class\\(.*",
7588     (char*)NULL };
7590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7592  *  Description of Rs6000_Fchmod fix
7593  */
7594 tSCC zRs6000_FchmodName[] =
7595      "rs6000_fchmod";
7598  *  File name selection pattern
7599  */
7600 tSCC zRs6000_FchmodList[] =
7601   "sys/stat.h\0";
7603  *  Machine/OS name selection pattern
7604  */
7605 #define apzRs6000_FchmodMachs (const char**)NULL
7608  *  content selection pattern - do fix if pattern found
7609  */
7610 tSCC zRs6000_FchmodSelect0[] =
7611        "fchmod\\(char \\*";
7613 #define    RS6000_FCHMOD_TEST_CT  1
7614 static tTestDesc aRs6000_FchmodTests[] = {
7615   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
7618  *  Fix Command Arguments for Rs6000_Fchmod
7619  */
7620 static const char* apzRs6000_FchmodPatch[] = {
7621     "format",
7622     "fchmod(int",
7623     (char*)NULL };
7625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7627  *  Description of Rs6000_Param fix
7628  */
7629 tSCC zRs6000_ParamName[] =
7630      "rs6000_param";
7633  *  File name selection pattern
7634  */
7635 tSCC zRs6000_ParamList[] =
7636   "stdio.h\0unistd.h\0";
7638  *  Machine/OS name selection pattern
7639  */
7640 #define apzRs6000_ParamMachs (const char**)NULL
7643  *  content selection pattern - do fix if pattern found
7644  */
7645 tSCC zRs6000_ParamSelect0[] =
7646        "rename\\(const char \\*old, const char \\*new\\)";
7648 #define    RS6000_PARAM_TEST_CT  1
7649 static tTestDesc aRs6000_ParamTests[] = {
7650   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
7653  *  Fix Command Arguments for Rs6000_Param
7654  */
7655 static const char* apzRs6000_ParamPatch[] = {
7656     "format",
7657     "rename(const char *_old, const char *_new)",
7658     (char*)NULL };
7660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7662  *  Description of Solaris___Restrict fix
7663  */
7664 tSCC zSolaris___RestrictName[] =
7665      "solaris___restrict";
7668  *  File name selection pattern
7669  */
7670 tSCC zSolaris___RestrictList[] =
7671   "sys/feature_tests.h\0";
7673  *  Machine/OS name selection pattern
7674  */
7675 tSCC* apzSolaris___RestrictMachs[] = {
7676         "*-*-solaris2*",
7677         (const char*)NULL };
7680  *  content selection pattern - do fix if pattern found
7681  */
7682 tSCC zSolaris___RestrictSelect0[] =
7683        "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
7685 #define    SOLARIS___RESTRICT_TEST_CT  1
7686 static tTestDesc aSolaris___RestrictTests[] = {
7687   { TT_EGREP,    zSolaris___RestrictSelect0, (regex_t*)NULL }, };
7690  *  Fix Command Arguments for Solaris___Restrict
7691  */
7692 static const char* apzSolaris___RestrictPatch[] = {
7693     "format",
7694     "#ifdef __cplusplus\n\
7695 #define\t_RESTRICT_KYWD\t__restrict\n\
7696 #else\n\
7697 %0\n\
7698 #endif",
7699     (char*)NULL };
7701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7703  *  Description of Solaris_Complex fix
7704  */
7705 tSCC zSolaris_ComplexName[] =
7706      "solaris_complex";
7709  *  File name selection pattern
7710  */
7711 tSCC zSolaris_ComplexList[] =
7712   "complex.h\0";
7714  *  Machine/OS name selection pattern
7715  */
7716 tSCC* apzSolaris_ComplexMachs[] = {
7717         "*-*-solaris2.*",
7718         (const char*)NULL };
7721  *  content selection pattern - do fix if pattern found
7722  */
7723 tSCC zSolaris_ComplexSelect0[] =
7724        "#define[ \t]_Complex_I[ \t]_Complex_I";
7726 #define    SOLARIS_COMPLEX_TEST_CT  1
7727 static tTestDesc aSolaris_ComplexTests[] = {
7728   { TT_EGREP,    zSolaris_ComplexSelect0, (regex_t*)NULL }, };
7731  *  Fix Command Arguments for Solaris_Complex
7732  */
7733 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
7734     "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
7735     "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
7736     "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
7737     "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
7738     (char*)NULL };
7740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7742  *  Description of Solaris_Complex_Cxx fix
7743  */
7744 tSCC zSolaris_Complex_CxxName[] =
7745      "solaris_complex_cxx";
7748  *  File name selection pattern
7749  */
7750 tSCC zSolaris_Complex_CxxList[] =
7751   "complex.h\0";
7753  *  Machine/OS name selection pattern
7754  */
7755 tSCC* apzSolaris_Complex_CxxMachs[] = {
7756         "*-*-solaris2.*",
7757         (const char*)NULL };
7758 #define SOLARIS_COMPLEX_CXX_TEST_CT  0
7759 #define aSolaris_Complex_CxxTests   (tTestDesc*)NULL
7762  *  Fix Command Arguments for Solaris_Complex_Cxx
7763  */
7764 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
7765     "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
7766 #ifdef\t__cplusplus\\\n\
7767 extern \"C\" {\\\n\
7768 #endif",
7769     "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
7770 #ifdef\t__cplusplus\\\n\
7771 }\\\n\
7772 #endif",
7773     (char*)NULL };
7775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7777  *  Description of Solaris_Cxx_Linkage fix
7778  */
7779 tSCC zSolaris_Cxx_LinkageName[] =
7780      "solaris_cxx_linkage";
7783  *  File name selection pattern
7784  */
7785 tSCC zSolaris_Cxx_LinkageList[] =
7786   "iso/stdlib_iso.h\0";
7788  *  Machine/OS name selection pattern
7789  */
7790 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
7791         "*-*-solaris2*",
7792         (const char*)NULL };
7795  *  content selection pattern - do fix if pattern found
7796  */
7797 tSCC zSolaris_Cxx_LinkageSelect0[] =
7798        "(#if __cplusplus >= 199711L)\n\
7799 (extern \"C\\+\\+\" \\{\n\
7800 )(.*(bsearch|qsort).*)";
7802 #define    SOLARIS_CXX_LINKAGE_TEST_CT  1
7803 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
7804   { TT_EGREP,    zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
7807  *  Fix Command Arguments for Solaris_Cxx_Linkage
7808  */
7809 static const char* apzSolaris_Cxx_LinkagePatch[] = {
7810     "format",
7811     "%1 && !__GNUG__\n\
7812 %2%3",
7813     (char*)NULL };
7815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7817  *  Description of Solaris_Getc_Strict_Stdc fix
7818  */
7819 tSCC zSolaris_Getc_Strict_StdcName[] =
7820      "solaris_getc_strict_stdc";
7823  *  File name selection pattern
7824  */
7825 tSCC zSolaris_Getc_Strict_StdcList[] =
7826   "iso/stdio_iso.h\0";
7828  *  Machine/OS name selection pattern
7829  */
7830 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
7831         "*-*-solaris2*",
7832         (const char*)NULL };
7835  *  content selection pattern - do fix if pattern found
7836  */
7837 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
7838        "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
7840 #define    SOLARIS_GETC_STRICT_STDC_TEST_CT  1
7841 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
7842   { TT_EGREP,    zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
7845  *  Fix Command Arguments for Solaris_Getc_Strict_Stdc
7846  */
7847 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
7848     "format",
7849     "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
7850     (char*)NULL };
7852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7854  *  Description of Solaris_Gets_C11 fix
7855  */
7856 tSCC zSolaris_Gets_C11Name[] =
7857      "solaris_gets_c11";
7860  *  File name selection pattern
7861  */
7862 tSCC zSolaris_Gets_C11List[] =
7863   "iso/stdio_iso.h\0";
7865  *  Machine/OS name selection pattern
7866  */
7867 tSCC* apzSolaris_Gets_C11Machs[] = {
7868         "*-*-solaris2*",
7869         (const char*)NULL };
7872  *  content selection pattern - do fix if pattern found
7873  */
7874 tSCC zSolaris_Gets_C11Select0[] =
7875        "(extern char[ \t]*\\*gets\\(char \\*\\));";
7877 #define    SOLARIS_GETS_C11_TEST_CT  1
7878 static tTestDesc aSolaris_Gets_C11Tests[] = {
7879   { TT_EGREP,    zSolaris_Gets_C11Select0, (regex_t*)NULL }, };
7882  *  Fix Command Arguments for Solaris_Gets_C11
7883  */
7884 static const char* apzSolaris_Gets_C11Patch[] = {
7885     "format",
7886     "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\
7887 %1 __attribute__((__deprecated__));\n\
7888 #endif",
7889     (char*)NULL };
7891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7893  *  Description of Solaris_Gets_Cxx14 fix
7894  */
7895 tSCC zSolaris_Gets_Cxx14Name[] =
7896      "solaris_gets_cxx14";
7899  *  File name selection pattern
7900  */
7901 tSCC zSolaris_Gets_Cxx14List[] =
7902   "iso/stdio_iso.h\0";
7904  *  Machine/OS name selection pattern
7905  */
7906 tSCC* apzSolaris_Gets_Cxx14Machs[] = {
7907         "*-*-solaris2*",
7908         (const char*)NULL };
7911  *  content selection pattern - do fix if pattern found
7912  */
7913 tSCC zSolaris_Gets_Cxx14Select0[] =
7914        "(#if __STDC_VERSION__ < 201112L)\n\
7915 (extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)";
7917 #define    SOLARIS_GETS_CXX14_TEST_CT  1
7918 static tTestDesc aSolaris_Gets_Cxx14Tests[] = {
7919   { TT_EGREP,    zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, };
7922  *  Fix Command Arguments for Solaris_Gets_Cxx14
7923  */
7924 static const char* apzSolaris_Gets_Cxx14Patch[] = {
7925     "format",
7926     "%1 && __cplusplus < 201402L\n\
7927 %2",
7928     (char*)NULL };
7930 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7932  *  Description of Solaris_Int_Const fix
7933  */
7934 tSCC zSolaris_Int_ConstName[] =
7935      "solaris_int_const";
7938  *  File name selection pattern
7939  */
7940 tSCC zSolaris_Int_ConstList[] =
7941   "sys/int_const.h\0";
7943  *  Machine/OS name selection pattern
7944  */
7945 tSCC* apzSolaris_Int_ConstMachs[] = {
7946         "*-*-solaris2*",
7947         (const char*)NULL };
7950  *  content selection pattern - do fix if pattern found
7951  */
7952 tSCC zSolaris_Int_ConstSelect0[] =
7953        "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7954 (/*.**/)\n\
7955 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7957 #define    SOLARIS_INT_CONST_TEST_CT  1
7958 static tTestDesc aSolaris_Int_ConstTests[] = {
7959   { TT_EGREP,    zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7962  *  Fix Command Arguments for Solaris_Int_Const
7963  */
7964 static const char* apzSolaris_Int_ConstPatch[] = {
7965     "format",
7966     "#define\tUINT8_C(c)\t(c)\n\
7967 %1\n\
7968 #define\tUINT16_C(c)\t(c)",
7969     (char*)NULL };
7971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7973  *  Description of Solaris_Int_Limits_1 fix
7974  */
7975 tSCC zSolaris_Int_Limits_1Name[] =
7976      "solaris_int_limits_1";
7979  *  File name selection pattern
7980  */
7981 tSCC zSolaris_Int_Limits_1List[] =
7982   "sys/int_limits.h\0";
7984  *  Machine/OS name selection pattern
7985  */
7986 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7987         "*-*-solaris2*",
7988         (const char*)NULL };
7991  *  content selection pattern - do fix if pattern found
7992  */
7993 tSCC zSolaris_Int_Limits_1Select0[] =
7994        "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7995 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7997 #define    SOLARIS_INT_LIMITS_1_TEST_CT  1
7998 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7999   { TT_EGREP,    zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
8002  *  Fix Command Arguments for Solaris_Int_Limits_1
8003  */
8004 static const char* apzSolaris_Int_Limits_1Patch[] = {
8005     "format",
8006     "#define\tUINT8_MAX\t(255)\n\
8007 #define\tUINT16_MAX\t(65535)",
8008     (char*)NULL };
8010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8012  *  Description of Solaris_Int_Limits_2 fix
8013  */
8014 tSCC zSolaris_Int_Limits_2Name[] =
8015      "solaris_int_limits_2";
8018  *  File name selection pattern
8019  */
8020 tSCC zSolaris_Int_Limits_2List[] =
8021   "sys/int_limits.h\0";
8023  *  Machine/OS name selection pattern
8024  */
8025 tSCC* apzSolaris_Int_Limits_2Machs[] = {
8026         "*-*-solaris2*",
8027         (const char*)NULL };
8030  *  content selection pattern - do fix if pattern found
8031  */
8032 tSCC zSolaris_Int_Limits_2Select0[] =
8033        "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
8035 #define    SOLARIS_INT_LIMITS_2_TEST_CT  1
8036 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
8037   { TT_EGREP,    zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
8040  *  Fix Command Arguments for Solaris_Int_Limits_2
8041  */
8042 static const char* apzSolaris_Int_Limits_2Patch[] = {
8043     "format",
8044     "#define\t%1_FAST16_%2 %132_%2",
8045     (char*)NULL };
8047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8049  *  Description of Solaris_Int_Limits_3 fix
8050  */
8051 tSCC zSolaris_Int_Limits_3Name[] =
8052      "solaris_int_limits_3";
8055  *  File name selection pattern
8056  */
8057 tSCC zSolaris_Int_Limits_3List[] =
8058   "sys/int_limits.h\0";
8060  *  Machine/OS name selection pattern
8061  */
8062 tSCC* apzSolaris_Int_Limits_3Machs[] = {
8063         "*-*-solaris2*",
8064         (const char*)NULL };
8067  *  content selection pattern - do fix if pattern found
8068  */
8069 tSCC zSolaris_Int_Limits_3Select0[] =
8070        "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
8072 #define    SOLARIS_INT_LIMITS_3_TEST_CT  1
8073 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
8074   { TT_EGREP,    zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
8077  *  Fix Command Arguments for Solaris_Int_Limits_3
8078  */
8079 static const char* apzSolaris_Int_Limits_3Patch[] = {
8080     "format",
8081     "#define\tSIZE_MAX\t4294967295U",
8082     (char*)NULL };
8084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8086  *  Description of Solaris_Math_1 fix
8087  */
8088 tSCC zSolaris_Math_1Name[] =
8089      "solaris_math_1";
8092  *  File name selection pattern
8093  */
8094 tSCC zSolaris_Math_1List[] =
8095   "iso/math_c99.h\0";
8097  *  Machine/OS name selection pattern
8098  */
8099 #define apzSolaris_Math_1Machs (const char**)NULL
8102  *  content selection pattern - do fix if pattern found
8103  */
8104 tSCC zSolaris_Math_1Select0[] =
8105        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8108  *  content bypass pattern - skip fix if pattern found
8109  */
8110 tSCC zSolaris_Math_1Bypass0[] =
8111        "__GNUC__";
8113 #define    SOLARIS_MATH_1_TEST_CT  2
8114 static tTestDesc aSolaris_Math_1Tests[] = {
8115   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
8116   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
8119  *  Fix Command Arguments for Solaris_Math_1
8120  */
8121 static const char* apzSolaris_Math_1Patch[] = {
8122     "format",
8123     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
8124     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
8125     (char*)NULL };
8127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8129  *  Description of Solaris_Math_10 fix
8130  */
8131 tSCC zSolaris_Math_10Name[] =
8132      "solaris_math_10";
8135  *  File name selection pattern
8136  */
8137 tSCC zSolaris_Math_10List[] =
8138   "iso/math_c99.h\0";
8140  *  Machine/OS name selection pattern
8141  */
8142 #define apzSolaris_Math_10Machs (const char**)NULL
8145  *  content selection pattern - do fix if pattern found
8146  */
8147 tSCC zSolaris_Math_10Select0[] =
8148        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8150 #define    SOLARIS_MATH_10_TEST_CT  1
8151 static tTestDesc aSolaris_Math_10Tests[] = {
8152   { TT_EGREP,    zSolaris_Math_10Select0, (regex_t*)NULL }, };
8155  *  Fix Command Arguments for Solaris_Math_10
8156  */
8157 static const char* apzSolaris_Math_10Patch[] = {
8158     "format",
8159     "#define\tisinf(x) __builtin_isinf(x)",
8160     "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
8161 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
8162 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
8163 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
8164     (char*)NULL };
8166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8168  *  Description of Solaris_Math_2 fix
8169  */
8170 tSCC zSolaris_Math_2Name[] =
8171      "solaris_math_2";
8174  *  File name selection pattern
8175  */
8176 tSCC zSolaris_Math_2List[] =
8177   "iso/math_c99.h\0";
8179  *  Machine/OS name selection pattern
8180  */
8181 #define apzSolaris_Math_2Machs (const char**)NULL
8184  *  content selection pattern - do fix if pattern found
8185  */
8186 tSCC zSolaris_Math_2Select0[] =
8187        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8190  *  content bypass pattern - skip fix if pattern found
8191  */
8192 tSCC zSolaris_Math_2Bypass0[] =
8193        "__GNUC__";
8195 #define    SOLARIS_MATH_2_TEST_CT  2
8196 static tTestDesc aSolaris_Math_2Tests[] = {
8197   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
8198   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
8201  *  Fix Command Arguments for Solaris_Math_2
8202  */
8203 static const char* apzSolaris_Math_2Patch[] = {
8204     "format",
8205     "#define\tINFINITY\t(__builtin_inff())",
8206     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
8207     (char*)NULL };
8209 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8211  *  Description of Solaris_Math_3 fix
8212  */
8213 tSCC zSolaris_Math_3Name[] =
8214      "solaris_math_3";
8217  *  File name selection pattern
8218  */
8219 tSCC zSolaris_Math_3List[] =
8220   "iso/math_c99.h\0";
8222  *  Machine/OS name selection pattern
8223  */
8224 #define apzSolaris_Math_3Machs (const char**)NULL
8227  *  content selection pattern - do fix if pattern found
8228  */
8229 tSCC zSolaris_Math_3Select0[] =
8230        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8233  *  content bypass pattern - skip fix if pattern found
8234  */
8235 tSCC zSolaris_Math_3Bypass0[] =
8236        "__GNUC__";
8238 #define    SOLARIS_MATH_3_TEST_CT  2
8239 static tTestDesc aSolaris_Math_3Tests[] = {
8240   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
8241   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
8244  *  Fix Command Arguments for Solaris_Math_3
8245  */
8246 static const char* apzSolaris_Math_3Patch[] = {
8247     "format",
8248     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
8249     "^#define[ \t]+NAN[ \t]+__builtin_nan",
8250     (char*)NULL };
8252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8254  *  Description of Solaris_Math_4 fix
8255  */
8256 tSCC zSolaris_Math_4Name[] =
8257      "solaris_math_4";
8260  *  File name selection pattern
8261  */
8262 tSCC zSolaris_Math_4List[] =
8263   "iso/math_c99.h\0";
8265  *  Machine/OS name selection pattern
8266  */
8267 #define apzSolaris_Math_4Machs (const char**)NULL
8270  *  content selection pattern - do fix if pattern found
8271  */
8272 tSCC zSolaris_Math_4Select0[] =
8273        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8276  *  content bypass pattern - skip fix if pattern found
8277  */
8278 tSCC zSolaris_Math_4Bypass0[] =
8279        "__GNUC__";
8281 #define    SOLARIS_MATH_4_TEST_CT  2
8282 static tTestDesc aSolaris_Math_4Tests[] = {
8283   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
8284   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
8287  *  Fix Command Arguments for Solaris_Math_4
8288  */
8289 static const char* apzSolaris_Math_4Patch[] = {
8290     "format",
8291     "#define\tfpclassify(x) \\\n\
8292   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
8293     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
8294     (char*)NULL };
8296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8298  *  Description of Solaris_Math_8 fix
8299  */
8300 tSCC zSolaris_Math_8Name[] =
8301      "solaris_math_8";
8304  *  File name selection pattern
8305  */
8306 tSCC zSolaris_Math_8List[] =
8307   "iso/math_c99.h\0";
8309  *  Machine/OS name selection pattern
8310  */
8311 #define apzSolaris_Math_8Machs (const char**)NULL
8314  *  content selection pattern - do fix if pattern found
8315  */
8316 tSCC zSolaris_Math_8Select0[] =
8317        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
8320  *  content bypass pattern - skip fix if pattern found
8321  */
8322 tSCC zSolaris_Math_8Bypass0[] =
8323        "__GNUC__";
8325 #define    SOLARIS_MATH_8_TEST_CT  2
8326 static tTestDesc aSolaris_Math_8Tests[] = {
8327   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
8328   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
8331  *  Fix Command Arguments for Solaris_Math_8
8332  */
8333 static const char* apzSolaris_Math_8Patch[] = {
8334     "format",
8335     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
8336 \t\t\t   ? __builtin_signbitf(x) \\\n\
8337 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
8338 \t\t\t     ? __builtin_signbitl(x) \\\n\
8339 \t\t\t     : __builtin_signbit(x))",
8340     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
8341     (char*)NULL };
8343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8345  *  Description of Solaris_Math_9 fix
8346  */
8347 tSCC zSolaris_Math_9Name[] =
8348      "solaris_math_9";
8351  *  File name selection pattern
8352  */
8353 tSCC zSolaris_Math_9List[] =
8354   "iso/math_c99.h\0";
8356  *  Machine/OS name selection pattern
8357  */
8358 #define apzSolaris_Math_9Machs (const char**)NULL
8361  *  content selection pattern - do fix if pattern found
8362  */
8363 tSCC zSolaris_Math_9Select0[] =
8364        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8367  *  content bypass pattern - skip fix if pattern found
8368  */
8369 tSCC zSolaris_Math_9Bypass0[] =
8370        "__GNUC__";
8372 #define    SOLARIS_MATH_9_TEST_CT  2
8373 static tTestDesc aSolaris_Math_9Tests[] = {
8374   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
8375   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
8378  *  Fix Command Arguments for Solaris_Math_9
8379  */
8380 static const char* apzSolaris_Math_9Patch[] = {
8381     "format",
8382     "#define\t%1(x, y)%2__builtin_%1(x, y)",
8383     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
8384     (char*)NULL };
8386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8388  *  Description of Solaris_Math_11 fix
8389  */
8390 tSCC zSolaris_Math_11Name[] =
8391      "solaris_math_11";
8394  *  File name selection pattern
8395  */
8396 tSCC zSolaris_Math_11List[] =
8397   "iso/math_c99.h\0";
8399  *  Machine/OS name selection pattern
8400  */
8401 #define apzSolaris_Math_11Machs (const char**)NULL
8404  *  content selection pattern - do fix if pattern found
8405  */
8406 tSCC zSolaris_Math_11Select0[] =
8407        "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
8409 #define    SOLARIS_MATH_11_TEST_CT  1
8410 static tTestDesc aSolaris_Math_11Tests[] = {
8411   { TT_EGREP,    zSolaris_Math_11Select0, (regex_t*)NULL }, };
8414  *  Fix Command Arguments for Solaris_Math_11
8415  */
8416 static const char* apzSolaris_Math_11Patch[] = {
8417     "format",
8418     "#undef\tsignbit\n\
8419 #define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
8420 \t\t\t   ? __builtin_signbitf(x) \\\n\
8421 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
8422 \t\t\t     ? __builtin_signbitl(x) \\\n\
8423 \t\t\t     : __builtin_signbit(x))",
8424     "^#undef[ \t]+signbit\n\
8425 #if defined\\(__sparc\\)\n\
8426 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
8427 [ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
8428 [ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
8429 #elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
8430 #define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
8431 [ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
8432 [ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
8433 [ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
8434 [ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
8435 [ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
8436 [ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
8437 #endif",
8438     (char*)NULL };
8440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8442  *  Description of Solaris_Math_12 fix
8443  */
8444 tSCC zSolaris_Math_12Name[] =
8445      "solaris_math_12";
8448  *  File name selection pattern
8449  */
8450 tSCC zSolaris_Math_12List[] =
8451   "math.h\0";
8453  *  Machine/OS name selection pattern
8454  */
8455 tSCC* apzSolaris_Math_12Machs[] = {
8456         "*-*-solaris2*",
8457         (const char*)NULL };
8460  *  content selection pattern - do fix if pattern found
8461  */
8462 tSCC zSolaris_Math_12Select0[] =
8463        "#undef.*_GLIBCXX_USE_C99_MATH";
8465 #define    SOLARIS_MATH_12_TEST_CT  1
8466 static tTestDesc aSolaris_Math_12Tests[] = {
8467   { TT_EGREP,    zSolaris_Math_12Select0, (regex_t*)NULL }, };
8470  *  Fix Command Arguments for Solaris_Math_12
8471  */
8472 static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
8473     "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
8474     (char*)NULL };
8476 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8478  *  Description of Solaris_Once_Init_1 fix
8479  */
8480 tSCC zSolaris_Once_Init_1Name[] =
8481      "solaris_once_init_1";
8484  *  File name selection pattern
8485  */
8486 tSCC zSolaris_Once_Init_1List[] =
8487   "pthread.h\0";
8489  *  Machine/OS name selection pattern
8490  */
8491 tSCC* apzSolaris_Once_Init_1Machs[] = {
8492         "*-*-solaris*",
8493         (const char*)NULL };
8496  *  content selection pattern - do fix if pattern found
8497  */
8498 tSCC zSolaris_Once_Init_1Select0[] =
8499        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8501 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
8502 static tTestDesc aSolaris_Once_Init_1Tests[] = {
8503   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
8506  *  Fix Command Arguments for Solaris_Once_Init_1
8507  */
8508 static const char* apzSolaris_Once_Init_1Patch[] = {
8509     "format",
8510     "%1{%2}%3",
8511     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
8512     (char*)NULL };
8514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8516  *  Description of Solaris_Posix_Spawn_Restrict fix
8517  */
8518 tSCC zSolaris_Posix_Spawn_RestrictName[] =
8519      "solaris_posix_spawn_restrict";
8522  *  File name selection pattern
8523  */
8524 tSCC zSolaris_Posix_Spawn_RestrictList[] =
8525   "spawn.h\0";
8527  *  Machine/OS name selection pattern
8528  */
8529 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
8530         "*-*-solaris2*",
8531         (const char*)NULL };
8534  *  content selection pattern - do fix if pattern found
8535  */
8536 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
8537        "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
8539 #define    SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT  1
8540 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
8541   { TT_EGREP,    zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
8544  *  Fix Command Arguments for Solaris_Posix_Spawn_Restrict
8545  */
8546 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
8547     "format",
8548     "%1*_RESTRICT_KYWD %2%3",
8549     (char*)NULL };
8551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8553  *  Description of Solaris_Pow_Int_Overload fix
8554  */
8555 tSCC zSolaris_Pow_Int_OverloadName[] =
8556      "solaris_pow_int_overload";
8559  *  File name selection pattern
8560  */
8561 tSCC zSolaris_Pow_Int_OverloadList[] =
8562   "iso/math_iso.h\0";
8564  *  Machine/OS name selection pattern
8565  */
8566 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
8567         "*-*-solaris2*",
8568         (const char*)NULL };
8571  *  content selection pattern - do fix if pattern found
8572  */
8573 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
8574        "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
8575 [^{}]*\\}";
8577 #define    SOLARIS_POW_INT_OVERLOAD_TEST_CT  1
8578 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
8579   { TT_EGREP,    zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
8582  *  Fix Command Arguments for Solaris_Pow_Int_Overload
8583  */
8584 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
8585     "format",
8586     "#if __cplusplus < 201103L\n\
8587 %0\n\
8588 #endif",
8589     (char*)NULL };
8591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8593  *  Description of Solaris_Rwlock_Init_1 fix
8594  */
8595 tSCC zSolaris_Rwlock_Init_1Name[] =
8596      "solaris_rwlock_init_1";
8599  *  File name selection pattern
8600  */
8601 tSCC zSolaris_Rwlock_Init_1List[] =
8602   "pthread.h\0";
8604  *  Machine/OS name selection pattern
8605  */
8606 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
8607         "*-*-solaris*",
8608         (const char*)NULL };
8611  *  content selection pattern - do fix if pattern found
8612  */
8613 tSCC zSolaris_Rwlock_Init_1Select0[] =
8614        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
8616 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
8617 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
8618   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
8621  *  Fix Command Arguments for Solaris_Rwlock_Init_1
8622  */
8623 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
8624     "format",
8625     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
8626 %0\n\
8627 #else\n\
8628 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
8629 #endif",
8630     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
8631     (char*)NULL };
8633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8635  *  Description of Solaris_Std___Filbuf fix
8636  */
8637 tSCC zSolaris_Std___FilbufName[] =
8638      "solaris_std___filbuf";
8641  *  File name selection pattern
8642  */
8643 tSCC zSolaris_Std___FilbufList[] =
8644   "stdio.h\0";
8646  *  Machine/OS name selection pattern
8647  */
8648 tSCC* apzSolaris_Std___FilbufMachs[] = {
8649         "*-*-solaris2*",
8650         (const char*)NULL };
8653  *  content selection pattern - do fix if pattern found
8654  */
8655 tSCC zSolaris_Std___FilbufSelect0[] =
8656        "(using std::perror;\n\
8657 )(#endif)";
8660  *  content bypass pattern - skip fix if pattern found
8661  */
8662 tSCC zSolaris_Std___FilbufBypass0[] =
8663        "using std::__filbuf";
8665 #define    SOLARIS_STD___FILBUF_TEST_CT  2
8666 static tTestDesc aSolaris_Std___FilbufTests[] = {
8667   { TT_NEGREP,   zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
8668   { TT_EGREP,    zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
8671  *  Fix Command Arguments for Solaris_Std___Filbuf
8672  */
8673 static const char* apzSolaris_Std___FilbufPatch[] = {
8674     "format",
8675     "%1#ifndef _LP64\n\
8676 using std::__filbuf;\n\
8677 using std::__flsbuf;\n\
8678 #endif\n\
8679 %2",
8680     (char*)NULL };
8682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8684  *  Description of Solaris_Std_Gets_Cxx14 fix
8685  */
8686 tSCC zSolaris_Std_Gets_Cxx14Name[] =
8687      "solaris_std_gets_cxx14";
8690  *  File name selection pattern
8691  */
8692 tSCC zSolaris_Std_Gets_Cxx14List[] =
8693   "stdio.h\0";
8695  *  Machine/OS name selection pattern
8696  */
8697 tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = {
8698         "*-*-solaris2*",
8699         (const char*)NULL };
8702  *  content selection pattern - do fix if pattern found
8703  */
8704 tSCC zSolaris_Std_Gets_Cxx14Select0[] =
8705        "using std::gets;";
8707 #define    SOLARIS_STD_GETS_CXX14_TEST_CT  1
8708 static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = {
8709   { TT_EGREP,    zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, };
8712  *  Fix Command Arguments for Solaris_Std_Gets_Cxx14
8713  */
8714 static const char* apzSolaris_Std_Gets_Cxx14Patch[] = {
8715     "format",
8716     "#if __cplusplus < 201402L\n\
8717 %0\n\
8718 #endif",
8719     (char*)NULL };
8721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8723  *  Description of Solaris_Stdio_Tag fix
8724  */
8725 tSCC zSolaris_Stdio_TagName[] =
8726      "solaris_stdio_tag";
8729  *  File name selection pattern
8730  */
8731 tSCC zSolaris_Stdio_TagList[] =
8732   "stdio_tag.h\0";
8734  *  Machine/OS name selection pattern
8735  */
8736 #define apzSolaris_Stdio_TagMachs (const char**)NULL
8739  *  content selection pattern - do fix if pattern found
8740  */
8741 tSCC zSolaris_Stdio_TagSelect0[] =
8742        "__cplusplus < 54321L";
8745  *  content bypass pattern - skip fix if pattern found
8746  */
8747 tSCC zSolaris_Stdio_TagBypass0[] =
8748        "__GNUC__";
8750 #define    SOLARIS_STDIO_TAG_TEST_CT  2
8751 static tTestDesc aSolaris_Stdio_TagTests[] = {
8752   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
8753   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
8756  *  Fix Command Arguments for Solaris_Stdio_Tag
8757  */
8758 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
8759     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
8760     (char*)NULL };
8762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8764  *  Description of Solaris_Stdlib_Noreturn fix
8765  */
8766 tSCC zSolaris_Stdlib_NoreturnName[] =
8767      "solaris_stdlib_noreturn";
8770  *  File name selection pattern
8771  */
8772 tSCC zSolaris_Stdlib_NoreturnList[] =
8773   "iso/stdlib_c99.h\0";
8775  *  Machine/OS name selection pattern
8776  */
8777 tSCC* apzSolaris_Stdlib_NoreturnMachs[] = {
8778         "*-*-solaris2*",
8779         (const char*)NULL };
8782  *  content selection pattern - do fix if pattern found
8783  */
8784 tSCC zSolaris_Stdlib_NoreturnSelect0[] =
8785        "(extern) _Noreturn (void quick_exit\\(int\\));";
8787 #define    SOLARIS_STDLIB_NORETURN_TEST_CT  1
8788 static tTestDesc aSolaris_Stdlib_NoreturnTests[] = {
8789   { TT_EGREP,    zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, };
8792  *  Fix Command Arguments for Solaris_Stdlib_Noreturn
8793  */
8794 static const char* apzSolaris_Stdlib_NoreturnPatch[] = {
8795     "format",
8796     "%1 %2 __attribute__((__noreturn__));",
8797     (char*)NULL };
8799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8801  *  Description of Statsswtch fix
8802  */
8803 tSCC zStatsswtchName[] =
8804      "statsswtch";
8807  *  File name selection pattern
8808  */
8809 tSCC zStatsswtchList[] =
8810   "rpcsvc/rstat.h\0";
8812  *  Machine/OS name selection pattern
8813  */
8814 #define apzStatsswtchMachs (const char**)NULL
8817  *  content selection pattern - do fix if pattern found
8818  */
8819 tSCC zStatsswtchSelect0[] =
8820        "boottime$";
8822 #define    STATSSWTCH_TEST_CT  1
8823 static tTestDesc aStatsswtchTests[] = {
8824   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
8827  *  Fix Command Arguments for Statsswtch
8828  */
8829 static const char* apzStatsswtchPatch[] = {
8830     "format",
8831     "boottime;",
8832     (char*)NULL };
8834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8836  *  Description of Stdio_Stdarg_H fix
8837  */
8838 tSCC zStdio_Stdarg_HName[] =
8839      "stdio_stdarg_h";
8842  *  File name selection pattern
8843  */
8844 tSCC zStdio_Stdarg_HList[] =
8845   "stdio.h\0";
8847  *  Machine/OS name selection pattern
8848  */
8849 tSCC* apzStdio_Stdarg_HMachs[] = {
8850         "*-*-solaris2.1[0-9]*",
8851         (const char*)NULL };
8854  *  content bypass pattern - skip fix if pattern found
8855  */
8856 tSCC zStdio_Stdarg_HBypass0[] =
8857        "include.*(stdarg.h|machine/ansi.h)";
8859 #define    STDIO_STDARG_H_TEST_CT  1
8860 static tTestDesc aStdio_Stdarg_HTests[] = {
8861   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
8864  *  Fix Command Arguments for Stdio_Stdarg_H
8865  */
8866 static const char* apzStdio_Stdarg_HPatch[] = {
8867     "wrap",
8868     "#define __need___va_list\n\
8869 #include <stdarg.h>\n",
8870     (char*)NULL };
8872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8874  *  Description of Stdio_Va_List fix
8875  */
8876 tSCC zStdio_Va_ListName[] =
8877      "stdio_va_list";
8880  *  File name selection pattern
8881  */
8882 tSCC zStdio_Va_ListList[] =
8883   "stdio.h\0";
8885  *  Machine/OS name selection pattern
8886  */
8887 tSCC* apzStdio_Va_ListMachs[] = {
8888         "*-*-solaris2.1[0-9]*",
8889         (const char*)NULL };
8892  *  content bypass pattern - skip fix if pattern found
8893  */
8894 tSCC zStdio_Va_ListBypass0[] =
8895        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8897 #define    STDIO_VA_LIST_TEST_CT  1
8898 static tTestDesc aStdio_Va_ListTests[] = {
8899   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
8902  *  Fix Command Arguments for Stdio_Va_List
8903  */
8904 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
8905     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8906 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8907 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8908 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8909 s@ va_list@ __not_va_list__@\n\
8910 s@\\*va_list@*__not_va_list__@\n\
8911 s@ __va_list)@ __gnuc_va_list)@\n\
8912 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8913 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8914 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8915 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8916 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8917 s@VA_LIST@DUMMY_VA_LIST@\n\
8918 s@_Va_LIST@_VA_LIST@",
8919     (char*)NULL };
8921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8923  *  Description of Stdio_Va_List_Clients fix
8924  */
8925 tSCC zStdio_Va_List_ClientsName[] =
8926      "stdio_va_list_clients";
8929  *  File name selection pattern
8930  */
8931 tSCC zStdio_Va_List_ClientsList[] =
8932   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
8934  *  Machine/OS name selection pattern
8935  */
8936 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
8939  *  content bypass pattern - skip fix if pattern found
8940  */
8941 tSCC zStdio_Va_List_ClientsBypass0[] =
8942        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8943 tSCC zStdio_Va_List_ClientsBypass1[] =
8944        "include <stdarg\\.h>|#ifdef va_start";
8946 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
8947 static tTestDesc aStdio_Va_List_ClientsTests[] = {
8948   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
8949   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
8952  *  Fix Command Arguments for Stdio_Va_List_Clients
8953  */
8954 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
8955     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8956 s@(va_list)&@(__gnuc_va_list)\\&@\n\
8957 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8958 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8959 s@ va_list@ __not_va_list__@\n\
8960 s@\\*va_list@*__not_va_list__@\n\
8961 s@ __va_list)@ __gnuc_va_list)@\n\
8962 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8963 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8964 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8965 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8966 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8967 s@VA_LIST@DUMMY_VA_LIST@\n\
8968 s@_Va_LIST@_VA_LIST@",
8969     (char*)NULL };
8971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8973  *  Description of Strict_Ansi_Not fix
8974  */
8975 tSCC zStrict_Ansi_NotName[] =
8976      "strict_ansi_not";
8979  *  File name selection pattern
8980  */
8981 #define zStrict_Ansi_NotList (char*)NULL
8983  *  Machine/OS name selection pattern
8984  */
8985 #define apzStrict_Ansi_NotMachs (const char**)NULL
8988  *  content selection pattern - do fix if pattern found
8989  */
8990 tSCC zStrict_Ansi_NotSelect0[] =
8991        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
8994  *  content bypass pattern - skip fix if pattern found
8995  */
8996 tSCC zStrict_Ansi_NotBypass0[] =
8997        "GNU and MIPS C compilers define __STDC__ differently";
8998 tSCC zStrict_Ansi_NotBypass1[] =
8999        "__SCO_VERSION__.*__STDC__ != 1";
9002  *  perform the C function call test
9003  */
9004 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
9006 #define    STRICT_ANSI_NOT_TEST_CT  4
9007 static tTestDesc aStrict_Ansi_NotTests[] = {
9008   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
9009   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
9010   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
9011   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
9014  *  Fix Command Arguments for Strict_Ansi_Not
9015  */
9016 static const char* apzStrict_Ansi_NotPatch[] = {
9017     "format",
9018     "%1 !defined(__STRICT_ANSI__)",
9019     (char*)NULL };
9021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9023  *  Description of Strict_Ansi_Not_Ctd fix
9024  */
9025 tSCC zStrict_Ansi_Not_CtdName[] =
9026      "strict_ansi_not_ctd";
9029  *  File name selection pattern
9030  */
9031 tSCC zStrict_Ansi_Not_CtdList[] =
9032   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
9034  *  Machine/OS name selection pattern
9035  */
9036 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
9039  *  content selection pattern - do fix if pattern found
9040  */
9041 tSCC zStrict_Ansi_Not_CtdSelect0[] =
9042        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
9045  *  perform the C function call test
9046  */
9047 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
9049 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
9050 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
9051   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
9052   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
9055  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
9056  */
9057 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
9058     "format",
9059     "%1 !defined(__STRICT_ANSI__)",
9060     (char*)NULL };
9062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9064  *  Description of Strict_Ansi_Only fix
9065  */
9066 tSCC zStrict_Ansi_OnlyName[] =
9067      "strict_ansi_only";
9070  *  File name selection pattern
9071  */
9072 #define zStrict_Ansi_OnlyList (char*)NULL
9074  *  Machine/OS name selection pattern
9075  */
9076 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
9079  *  content selection pattern - do fix if pattern found
9080  */
9081 tSCC zStrict_Ansi_OnlySelect0[] =
9082        "^([ \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)";
9085  *  perform the C function call test
9086  */
9087 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
9089 #define    STRICT_ANSI_ONLY_TEST_CT  2
9090 static tTestDesc aStrict_Ansi_OnlyTests[] = {
9091   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
9092   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
9095  *  Fix Command Arguments for Strict_Ansi_Only
9096  */
9097 static const char* apzStrict_Ansi_OnlyPatch[] = {
9098     "format",
9099     "%1 defined(__STRICT_ANSI__)",
9100     (char*)NULL };
9102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9104  *  Description of Struct_File fix
9105  */
9106 tSCC zStruct_FileName[] =
9107      "struct_file";
9110  *  File name selection pattern
9111  */
9112 tSCC zStruct_FileList[] =
9113   "rpc/xdr.h\0";
9115  *  Machine/OS name selection pattern
9116  */
9117 #define apzStruct_FileMachs (const char**)NULL
9120  *  content selection pattern - do fix if pattern found
9121  */
9122 tSCC zStruct_FileSelect0[] =
9123        "^.*xdrstdio_create.*struct __file_s";
9125 #define    STRUCT_FILE_TEST_CT  1
9126 static tTestDesc aStruct_FileTests[] = {
9127   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
9130  *  Fix Command Arguments for Struct_File
9131  */
9132 static const char* apzStruct_FilePatch[] = {
9133     "format",
9134     "struct __file_s;\n\
9135 %0",
9136     (char*)NULL };
9138 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9140  *  Description of Struct_Sockaddr fix
9141  */
9142 tSCC zStruct_SockaddrName[] =
9143      "struct_sockaddr";
9146  *  File name selection pattern
9147  */
9148 tSCC zStruct_SockaddrList[] =
9149   "rpc/auth.h\0";
9151  *  Machine/OS name selection pattern
9152  */
9153 #define apzStruct_SockaddrMachs (const char**)NULL
9156  *  content selection pattern - do fix if pattern found
9157  */
9158 tSCC zStruct_SockaddrSelect0[] =
9159        "^.*authdes_create.*struct sockaddr[^_]";
9162  *  content bypass pattern - skip fix if pattern found
9163  */
9164 tSCC zStruct_SockaddrBypass0[] =
9165        "<sys/socket.h>";
9166 tSCC zStruct_SockaddrBypass1[] =
9167        "struct sockaddr;\n";
9169 #define    STRUCT_SOCKADDR_TEST_CT  3
9170 static tTestDesc aStruct_SockaddrTests[] = {
9171   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
9172   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
9173   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
9176  *  Fix Command Arguments for Struct_Sockaddr
9177  */
9178 static const char* apzStruct_SockaddrPatch[] = {
9179     "format",
9180     "struct sockaddr;\n\
9181 %0",
9182     (char*)NULL };
9184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9186  *  Description of Sun_Auth_Proto fix
9187  */
9188 tSCC zSun_Auth_ProtoName[] =
9189      "sun_auth_proto";
9192  *  File name selection pattern
9193  */
9194 tSCC zSun_Auth_ProtoList[] =
9195   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
9197  *  Machine/OS name selection pattern
9198  */
9199 #define apzSun_Auth_ProtoMachs (const char**)NULL
9202  *  content selection pattern - do fix if pattern found
9203  */
9204 tSCC zSun_Auth_ProtoSelect0[] =
9205        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
9208  *  content bypass pattern - skip fix if pattern found
9209  */
9210 tSCC zSun_Auth_ProtoBypass0[] =
9211        "__cplusplus";
9213 #define    SUN_AUTH_PROTO_TEST_CT  2
9214 static tTestDesc aSun_Auth_ProtoTests[] = {
9215   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
9216   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
9219  *  Fix Command Arguments for Sun_Auth_Proto
9220  */
9221 static const char* apzSun_Auth_ProtoPatch[] = {
9222     "format",
9223     "#ifdef __cplusplus\n\
9224 %1(...);%2\n\
9225 #else\n\
9226 %1();%2\n\
9227 #endif",
9228     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
9229     (char*)NULL };
9231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9233  *  Description of Sun_Bogus_Ifdef fix
9234  */
9235 tSCC zSun_Bogus_IfdefName[] =
9236      "sun_bogus_ifdef";
9239  *  File name selection pattern
9240  */
9241 tSCC zSun_Bogus_IfdefList[] =
9242   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
9244  *  Machine/OS name selection pattern
9245  */
9246 #define apzSun_Bogus_IfdefMachs (const char**)NULL
9249  *  content selection pattern - do fix if pattern found
9250  */
9251 tSCC zSun_Bogus_IfdefSelect0[] =
9252        "#ifdef(.*\\|\\|.*)";
9254 #define    SUN_BOGUS_IFDEF_TEST_CT  1
9255 static tTestDesc aSun_Bogus_IfdefTests[] = {
9256   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
9259  *  Fix Command Arguments for Sun_Bogus_Ifdef
9260  */
9261 static const char* apzSun_Bogus_IfdefPatch[] = {
9262     "format",
9263     "#if%1",
9264     (char*)NULL };
9266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9268  *  Description of Sun_Catmacro fix
9269  */
9270 tSCC zSun_CatmacroName[] =
9271      "sun_catmacro";
9274  *  File name selection pattern
9275  */
9276 tSCC zSun_CatmacroList[] =
9277   "pixrect/memvar.h\0";
9279  *  Machine/OS name selection pattern
9280  */
9281 #define apzSun_CatmacroMachs (const char**)NULL
9284  *  content selection pattern - do fix if pattern found
9285  */
9286 tSCC zSun_CatmacroSelect0[] =
9287        "^#define[ \t]+CAT\\(a,b\\).*";
9289 #define    SUN_CATMACRO_TEST_CT  1
9290 static tTestDesc aSun_CatmacroTests[] = {
9291   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
9294  *  Fix Command Arguments for Sun_Catmacro
9295  */
9296 static const char* apzSun_CatmacroPatch[] = {
9297     "format",
9298     "#ifdef __STDC__\n\
9299 #  define CAT(a,b) a##b\n\
9300 #else\n\
9301 %0\n\
9302 #endif",
9303     (char*)NULL };
9305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9307  *  Description of Sun_Malloc fix
9308  */
9309 tSCC zSun_MallocName[] =
9310      "sun_malloc";
9313  *  File name selection pattern
9314  */
9315 tSCC zSun_MallocList[] =
9316   "malloc.h\0";
9318  *  Machine/OS name selection pattern
9319  */
9320 #define apzSun_MallocMachs (const char**)NULL
9323  *  content bypass pattern - skip fix if pattern found
9324  */
9325 tSCC zSun_MallocBypass0[] =
9326        "_CLASSIC_ANSI_TYPES";
9328 #define    SUN_MALLOC_TEST_CT  1
9329 static tTestDesc aSun_MallocTests[] = {
9330   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
9333  *  Fix Command Arguments for Sun_Malloc
9334  */
9335 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
9336     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
9337     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
9338     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
9339     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
9340     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
9341     (char*)NULL };
9343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9345  *  Description of Sun_Rusers_Semi fix
9346  */
9347 tSCC zSun_Rusers_SemiName[] =
9348      "sun_rusers_semi";
9351  *  File name selection pattern
9352  */
9353 tSCC zSun_Rusers_SemiList[] =
9354   "rpcsvc/rusers.h\0";
9356  *  Machine/OS name selection pattern
9357  */
9358 #define apzSun_Rusers_SemiMachs (const char**)NULL
9361  *  content selection pattern - do fix if pattern found
9362  */
9363 tSCC zSun_Rusers_SemiSelect0[] =
9364        "_cnt$";
9366 #define    SUN_RUSERS_SEMI_TEST_CT  1
9367 static tTestDesc aSun_Rusers_SemiTests[] = {
9368   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
9371  *  Fix Command Arguments for Sun_Rusers_Semi
9372  */
9373 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
9374     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
9375     (char*)NULL };
9377 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9379  *  Description of Sun_Signal fix
9380  */
9381 tSCC zSun_SignalName[] =
9382      "sun_signal";
9385  *  File name selection pattern
9386  */
9387 tSCC zSun_SignalList[] =
9388   "sys/signal.h\0signal.h\0";
9390  *  Machine/OS name selection pattern
9391  */
9392 #define apzSun_SignalMachs (const char**)NULL
9395  *  content selection pattern - do fix if pattern found
9396  */
9397 tSCC zSun_SignalSelect0[] =
9398        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
9400 #define    SUN_SIGNAL_TEST_CT  1
9401 static tTestDesc aSun_SignalTests[] = {
9402   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
9405  *  Fix Command Arguments for Sun_Signal
9406  */
9407 static const char* apzSun_SignalPatch[] = {
9408     "format",
9409     "#ifdef __cplusplus\n\
9410 void\t(*signal(...))(...);\n\
9411 #else\n\
9412 %0\n\
9413 #endif",
9414     (char*)NULL };
9416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9418  *  Description of Sunos_Strlen fix
9419  */
9420 tSCC zSunos_StrlenName[] =
9421      "sunos_strlen";
9424  *  File name selection pattern
9425  */
9426 tSCC zSunos_StrlenList[] =
9427   "strings.h\0";
9429  *  Machine/OS name selection pattern
9430  */
9431 #define apzSunos_StrlenMachs (const char**)NULL
9434  *  content selection pattern - do fix if pattern found
9435  */
9436 tSCC zSunos_StrlenSelect0[] =
9437        "int[ \t]*strlen\\(\\);(.*)";
9439 #define    SUNOS_STRLEN_TEST_CT  1
9440 static tTestDesc aSunos_StrlenTests[] = {
9441   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
9444  *  Fix Command Arguments for Sunos_Strlen
9445  */
9446 static const char* apzSunos_StrlenPatch[] = {
9447     "format",
9448     "__SIZE_TYPE__ strlen();%1",
9449     (char*)NULL };
9451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9453  *  Description of Suse_Linux_Vt_Cxx fix
9454  */
9455 tSCC zSuse_Linux_Vt_CxxName[] =
9456      "suse_linux_vt_cxx";
9459  *  File name selection pattern
9460  */
9461 tSCC zSuse_Linux_Vt_CxxList[] =
9462   "linux/vt.h\0";
9464  *  Machine/OS name selection pattern
9465  */
9466 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
9469  *  content selection pattern - do fix if pattern found
9470  */
9471 tSCC zSuse_Linux_Vt_CxxSelect0[] =
9472        "^[ \t]*unsigned int new;";
9474 #define    SUSE_LINUX_VT_CXX_TEST_CT  1
9475 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
9476   { TT_EGREP,    zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
9479  *  Fix Command Arguments for Suse_Linux_Vt_Cxx
9480  */
9481 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
9482     "format",
9483     "unsigned int newev;",
9484     (char*)NULL };
9486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9488  *  Description of Svr4_Disable_Opt fix
9489  */
9490 tSCC zSvr4_Disable_OptName[] =
9491      "svr4_disable_opt";
9494  *  File name selection pattern
9495  */
9496 tSCC zSvr4_Disable_OptList[] =
9497   "string.h\0";
9499  *  Machine/OS name selection pattern
9500  */
9501 #define apzSvr4_Disable_OptMachs (const char**)NULL
9504  *  content selection pattern - do fix if pattern found
9505  */
9506 tSCC zSvr4_Disable_OptSelect0[] =
9507        "#define.*__std_hdr_";
9509 #define    SVR4_DISABLE_OPT_TEST_CT  1
9510 static tTestDesc aSvr4_Disable_OptTests[] = {
9511   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
9514  *  Fix Command Arguments for Svr4_Disable_Opt
9515  */
9516 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
9517     "-e", "/#define.*__std_hdr_/d",
9518     (char*)NULL };
9520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9522  *  Description of Svr4_Getcwd fix
9523  */
9524 tSCC zSvr4_GetcwdName[] =
9525      "svr4_getcwd";
9528  *  File name selection pattern
9529  */
9530 tSCC zSvr4_GetcwdList[] =
9531   "stdlib.h\0unistd.h\0prototypes.h\0";
9533  *  Machine/OS name selection pattern
9534  */
9535 #define apzSvr4_GetcwdMachs (const char**)NULL
9538  *  content selection pattern - do fix if pattern found
9539  */
9540 tSCC zSvr4_GetcwdSelect0[] =
9541        "getcwd\\(char \\*, int\\)";
9543 #define    SVR4_GETCWD_TEST_CT  1
9544 static tTestDesc aSvr4_GetcwdTests[] = {
9545   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
9548  *  Fix Command Arguments for Svr4_Getcwd
9549  */
9550 static const char* apzSvr4_GetcwdPatch[] = {
9551     "format",
9552     "getcwd(char *, size_t)",
9553     (char*)NULL };
9555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9557  *  Description of Svr4_Profil fix
9558  */
9559 tSCC zSvr4_ProfilName[] =
9560      "svr4_profil";
9563  *  File name selection pattern
9564  */
9565 tSCC zSvr4_ProfilList[] =
9566   "stdlib.h\0unistd.h\0";
9568  *  Machine/OS name selection pattern
9569  */
9570 #define apzSvr4_ProfilMachs (const char**)NULL
9573  *  content selection pattern - do fix if pattern found
9574  */
9575 tSCC zSvr4_ProfilSelect0[] =
9576        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
9578 #define    SVR4_PROFIL_TEST_CT  1
9579 static tTestDesc aSvr4_ProfilTests[] = {
9580   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
9583  *  Fix Command Arguments for Svr4_Profil
9584  */
9585 static const char* apzSvr4_ProfilPatch[] = {
9586     "format",
9587     "profil(unsigned short *, size_t, int, unsigned int)",
9588     (char*)NULL };
9590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9592  *  Description of Svr4_Sighandler_Type fix
9593  */
9594 tSCC zSvr4_Sighandler_TypeName[] =
9595      "svr4_sighandler_type";
9598  *  File name selection pattern
9599  */
9600 tSCC zSvr4_Sighandler_TypeList[] =
9601   "sys/signal.h\0";
9603  *  Machine/OS name selection pattern
9604  */
9605 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
9608  *  content selection pattern - do fix if pattern found
9609  */
9610 tSCC zSvr4_Sighandler_TypeSelect0[] =
9611        "void *\\(\\*\\)\\(\\)";
9613 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
9614 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
9615   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
9618  *  Fix Command Arguments for Svr4_Sighandler_Type
9619  */
9620 static const char* apzSvr4_Sighandler_TypePatch[] = {
9621     "format",
9622     "void (*)(int)",
9623     (char*)NULL };
9625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9627  *  Description of Svr4_Undeclared_Getrnge fix
9628  */
9629 tSCC zSvr4_Undeclared_GetrngeName[] =
9630      "svr4_undeclared_getrnge";
9633  *  File name selection pattern
9634  */
9635 tSCC zSvr4_Undeclared_GetrngeList[] =
9636   "regexp.h\0";
9638  *  Machine/OS name selection pattern
9639  */
9640 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
9643  *  content selection pattern - do fix if pattern found
9644  */
9645 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
9646        "getrnge";
9649  *  content bypass pattern - skip fix if pattern found
9650  */
9651 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
9652        "static void getrnge";
9654 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
9655 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
9656   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
9657   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
9660  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
9661  */
9662 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
9663     "format",
9664     "%0\n\
9665 static int getrnge ();",
9666     "^static int[ \t]+size;",
9667     (char*)NULL };
9669 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9671  *  Description of Sysv68_String fix
9672  */
9673 tSCC zSysv68_StringName[] =
9674      "sysv68_string";
9677  *  File name selection pattern
9678  */
9679 tSCC zSysv68_StringList[] =
9680   "testing.h\0string.h\0";
9682  *  Machine/OS name selection pattern
9683  */
9684 #define apzSysv68_StringMachs (const char**)NULL
9687  *  content bypass pattern - skip fix if pattern found
9688  */
9689 tSCC zSysv68_StringBypass0[] =
9690        "_CLASSIC_ANSI_TYPES";
9692 #define    SYSV68_STRING_TEST_CT  1
9693 static tTestDesc aSysv68_StringTests[] = {
9694   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
9697  *  Fix Command Arguments for Sysv68_String
9698  */
9699 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
9700     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
9701     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
9702     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
9703     "-e", "/^extern char$/N",
9704     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
9705     "-e", "/^extern int$/N",
9706     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
9707     "-e", "/^\tstrncmp(),$/N",
9708     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
9709 extern unsigned int\\\n\
9710 \\2/",
9711     (char*)NULL };
9713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9715  *  Description of Sysz_Stdlib_For_Sun fix
9716  */
9717 tSCC zSysz_Stdlib_For_SunName[] =
9718      "sysz_stdlib_for_sun";
9721  *  File name selection pattern
9722  */
9723 tSCC zSysz_Stdlib_For_SunList[] =
9724   "stdlib.h\0";
9726  *  Machine/OS name selection pattern
9727  */
9728 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
9731  *  content selection pattern - do fix if pattern found
9732  */
9733 tSCC zSysz_Stdlib_For_SunSelect0[] =
9734        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
9737  *  content bypass pattern - skip fix if pattern found
9738  */
9739 tSCC zSysz_Stdlib_For_SunBypass0[] =
9740        "_CLASSIC_ANSI_TYPES";
9742 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
9743 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
9744   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
9745   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
9748  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
9749  */
9750 static const char* apzSysz_Stdlib_For_SunPatch[] = {
9751     "format",
9752     "void *\t%1(",
9753     (char*)NULL };
9755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9757  *  Description of Thread_Keyword fix
9758  */
9759 tSCC zThread_KeywordName[] =
9760      "thread_keyword";
9763  *  File name selection pattern
9764  */
9765 tSCC zThread_KeywordList[] =
9766   "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
9768  *  Machine/OS name selection pattern
9769  */
9770 #define apzThread_KeywordMachs (const char**)NULL
9773  *  content selection pattern - do fix if pattern found
9774  */
9775 tSCC zThread_KeywordSelect0[] =
9776        "([* ])__thread([,)])";
9778 #define    THREAD_KEYWORD_TEST_CT  1
9779 static tTestDesc aThread_KeywordTests[] = {
9780   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
9783  *  Fix Command Arguments for Thread_Keyword
9784  */
9785 static const char* apzThread_KeywordPatch[] = {
9786     "format",
9787     "%1__thr%2",
9788     (char*)NULL };
9790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9792  *  Description of Tinfo_Cplusplus fix
9793  */
9794 tSCC zTinfo_CplusplusName[] =
9795      "tinfo_cplusplus";
9798  *  File name selection pattern
9799  */
9800 tSCC zTinfo_CplusplusList[] =
9801   "tinfo.h\0";
9803  *  Machine/OS name selection pattern
9804  */
9805 #define apzTinfo_CplusplusMachs (const char**)NULL
9808  *  content selection pattern - do fix if pattern found
9809  */
9810 tSCC zTinfo_CplusplusSelect0[] =
9811        "[ \t]_cplusplus";
9813 #define    TINFO_CPLUSPLUS_TEST_CT  1
9814 static tTestDesc aTinfo_CplusplusTests[] = {
9815   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
9818  *  Fix Command Arguments for Tinfo_Cplusplus
9819  */
9820 static const char* apzTinfo_CplusplusPatch[] = {
9821     "format",
9822     " __cplusplus",
9823     (char*)NULL };
9825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9827  *  Description of Ultrix_Const fix
9828  */
9829 tSCC zUltrix_ConstName[] =
9830      "ultrix_const";
9833  *  File name selection pattern
9834  */
9835 tSCC zUltrix_ConstList[] =
9836   "stdio.h\0";
9838  *  Machine/OS name selection pattern
9839  */
9840 #define apzUltrix_ConstMachs (const char**)NULL
9843  *  content selection pattern - do fix if pattern found
9844  */
9845 tSCC zUltrix_ConstSelect0[] =
9846        "perror\\( char \\*";
9848 #define    ULTRIX_CONST_TEST_CT  1
9849 static tTestDesc aUltrix_ConstTests[] = {
9850   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
9853  *  Fix Command Arguments for Ultrix_Const
9854  */
9855 static const char* apzUltrix_ConstPatch[] = {
9856     "format",
9857     "%1 const %3 *__",
9858     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
9859     (char*)NULL };
9861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9863  *  Description of Ultrix_Const2 fix
9864  */
9865 tSCC zUltrix_Const2Name[] =
9866      "ultrix_const2";
9869  *  File name selection pattern
9870  */
9871 tSCC zUltrix_Const2List[] =
9872   "stdio.h\0";
9874  *  Machine/OS name selection pattern
9875  */
9876 #define apzUltrix_Const2Machs (const char**)NULL
9879  *  content selection pattern - do fix if pattern found
9880  */
9881 tSCC zUltrix_Const2Select0[] =
9882        "\\*fopen\\( char \\*";
9884 #define    ULTRIX_CONST2_TEST_CT  1
9885 static tTestDesc aUltrix_Const2Tests[] = {
9886   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
9889  *  Fix Command Arguments for Ultrix_Const2
9890  */
9891 static const char* apzUltrix_Const2Patch[] = {
9892     "format",
9893     "%1( const char *%3, const char *",
9894     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
9895     (char*)NULL };
9897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9899  *  Description of Va_I960_Macro fix
9900  */
9901 tSCC zVa_I960_MacroName[] =
9902      "va_i960_macro";
9905  *  File name selection pattern
9906  */
9907 tSCC zVa_I960_MacroList[] =
9908   "arch/i960/archI960.h\0";
9910  *  Machine/OS name selection pattern
9911  */
9912 #define apzVa_I960_MacroMachs (const char**)NULL
9915  *  content selection pattern - do fix if pattern found
9916  */
9917 tSCC zVa_I960_MacroSelect0[] =
9918        "__(vsiz|vali|vpad|alignof__)";
9920 #define    VA_I960_MACRO_TEST_CT  1
9921 static tTestDesc aVa_I960_MacroTests[] = {
9922   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
9925  *  Fix Command Arguments for Va_I960_Macro
9926  */
9927 static const char* apzVa_I960_MacroPatch[] = {
9928     "format",
9929     "__vx%1",
9930     (char*)NULL };
9932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9934  *  Description of Vms_Add_Missing_Braces fix
9935  */
9936 tSCC zVms_Add_Missing_BracesName[] =
9937      "vms_add_missing_braces";
9940  *  File name selection pattern
9941  */
9942 tSCC zVms_Add_Missing_BracesList[] =
9943   "rtldef/signal.h\0";
9945  *  Machine/OS name selection pattern
9946  */
9947 tSCC* apzVms_Add_Missing_BracesMachs[] = {
9948         "*-*-*vms*",
9949         (const char*)NULL };
9952  *  content selection pattern - do fix if pattern found
9953  */
9954 tSCC zVms_Add_Missing_BracesSelect0[] =
9955        "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
9957 #define    VMS_ADD_MISSING_BRACES_TEST_CT  1
9958 static tTestDesc aVms_Add_Missing_BracesTests[] = {
9959   { TT_EGREP,    zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
9962  *  Fix Command Arguments for Vms_Add_Missing_Braces
9963  */
9964 static const char* apzVms_Add_Missing_BracesPatch[] = {
9965     "format",
9966     "%1 {%2} ",
9967     (char*)NULL };
9969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9971  *  Description of Vms_Decc_Builtin fix
9972  */
9973 tSCC zVms_Decc_BuiltinName[] =
9974      "vms_decc_builtin";
9977  *  File name selection pattern
9978  */
9979 tSCC zVms_Decc_BuiltinList[] =
9980   "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
9982  *  Machine/OS name selection pattern
9983  */
9984 tSCC* apzVms_Decc_BuiltinMachs[] = {
9985         "*-*-*vms*",
9986         (const char*)NULL };
9989  *  content selection pattern - do fix if pattern found
9990  */
9991 tSCC zVms_Decc_BuiltinSelect0[] =
9992        "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
9994 #define    VMS_DECC_BUILTIN_TEST_CT  1
9995 static tTestDesc aVms_Decc_BuiltinTests[] = {
9996   { TT_EGREP,    zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
9999  *  Fix Command Arguments for Vms_Decc_Builtin
10000  */
10001 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
10002     "-e", "s@__MEMSET@memset@",
10003     "-e", "s@__MEMMOVE@memmove@",
10004     "-e", "s@__MEMCPY@memcpy@",
10005     "-e", "s@__STRLEN@strlen@",
10006     "-e", "s@__STRCPY@strcpy@",
10007     (char*)NULL };
10009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10011  *  Description of Vms_Define_Can_Use_Extern_Prefix fix
10012  */
10013 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
10014      "vms_define_can_use_extern_prefix";
10017  *  File name selection pattern
10018  */
10019 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
10020   "rtldef/decc$types.h\0";
10022  *  Machine/OS name selection pattern
10023  */
10024 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
10025         "*-*-*vms*",
10026         (const char*)NULL };
10029  *  content selection pattern - do fix if pattern found
10030  */
10031 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
10032        "#[ \t]*else\n\
10033 #[ \t]*if defined\\(__DECCXX\\)\n\
10034 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
10036 #define    VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT  1
10037 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
10038   { TT_EGREP,    zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
10041  *  Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
10042  */
10043 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
10044     "format",
10045     "%0#    elif defined (__GNUC__)\n\
10046 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
10047     (char*)NULL };
10049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10051  *  Description of Vms_Disable_Decc_String_Builtins fix
10052  */
10053 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
10054      "vms_disable_decc_string_builtins";
10057  *  File name selection pattern
10058  */
10059 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
10060   "rtldef/string.h\0";
10062  *  Machine/OS name selection pattern
10063  */
10064 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
10065         "*-*-*vms*",
10066         (const char*)NULL };
10069  *  content selection pattern - do fix if pattern found
10070  */
10071 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
10072        "#if !defined\\(__VAX\\)\n";
10074 #define    VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT  1
10075 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
10076   { TT_EGREP,    zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
10079  *  Fix Command Arguments for Vms_Disable_Decc_String_Builtins
10080  */
10081 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
10082     "format",
10083     "#if !defined(__VAX) && !defined(__GNUC__)\n",
10084     (char*)NULL };
10086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10088  *  Description of Vms_Do_Not_Redeclare_Hostalias fix
10089  */
10090 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
10091      "vms_do_not_redeclare_hostalias";
10094  *  File name selection pattern
10095  */
10096 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
10097   "rtldef/resolv.h\0";
10099  *  Machine/OS name selection pattern
10100  */
10101 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
10102         "*-*-*vms*",
10103         (const char*)NULL };
10106  *  content selection pattern - do fix if pattern found
10107  */
10108 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
10109        "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
10110 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
10112 #define    VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT  1
10113 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
10114   { TT_EGREP,    zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
10117  *  Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
10118  */
10119 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
10120     "format",
10121     "%1\n\
10122 /* %2 */",
10123     (char*)NULL };
10125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10127  *  Description of Vms_Forward_Declare_Struct fix
10128  */
10129 tSCC zVms_Forward_Declare_StructName[] =
10130      "vms_forward_declare_struct";
10133  *  File name selection pattern
10134  */
10135 tSCC zVms_Forward_Declare_StructList[] =
10136   "rtldef/if.h\0";
10138  *  Machine/OS name selection pattern
10139  */
10140 tSCC* apzVms_Forward_Declare_StructMachs[] = {
10141         "*-*-*vms*",
10142         (const char*)NULL };
10145  *  content selection pattern - do fix if pattern found
10146  */
10147 tSCC zVms_Forward_Declare_StructSelect0[] =
10148        "(/\\* forward decls for C\\+\\+ \\*/\n\
10149 )#ifdef __cplusplus\n";
10151 #define    VMS_FORWARD_DECLARE_STRUCT_TEST_CT  1
10152 static tTestDesc aVms_Forward_Declare_StructTests[] = {
10153   { TT_EGREP,    zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
10156  *  Fix Command Arguments for Vms_Forward_Declare_Struct
10157  */
10158 static const char* apzVms_Forward_Declare_StructPatch[] = {
10159     "format",
10160     "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
10161     (char*)NULL };
10163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10165  *  Description of Vms_No_64bit_Getopt fix
10166  */
10167 tSCC zVms_No_64bit_GetoptName[] =
10168      "vms_no_64bit_getopt";
10171  *  File name selection pattern
10172  */
10173 tSCC zVms_No_64bit_GetoptList[] =
10174   "rtldef/stdio.h\0rtldef/unistd.h\0";
10176  *  Machine/OS name selection pattern
10177  */
10178 tSCC* apzVms_No_64bit_GetoptMachs[] = {
10179         "*-*-*vms*",
10180         (const char*)NULL };
10183  *  content selection pattern - do fix if pattern found
10184  */
10185 tSCC zVms_No_64bit_GetoptSelect0[] =
10186        "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
10188 #define    VMS_NO_64BIT_GETOPT_TEST_CT  1
10189 static tTestDesc aVms_No_64bit_GetoptTests[] = {
10190   { TT_EGREP,    zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
10193  *  Fix Command Arguments for Vms_No_64bit_Getopt
10194  */
10195 static const char* apzVms_No_64bit_GetoptPatch[] = {
10196     "format",
10197     "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only.  */\n\
10198 %0#endif\n",
10199     (char*)NULL };
10201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10203  *  Description of Vms_Use_Fast_Setjmp fix
10204  */
10205 tSCC zVms_Use_Fast_SetjmpName[] =
10206      "vms_use_fast_setjmp";
10209  *  File name selection pattern
10210  */
10211 tSCC zVms_Use_Fast_SetjmpList[] =
10212   "rtldef/setjmp.h\0";
10214  *  Machine/OS name selection pattern
10215  */
10216 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
10217         "*-*-*vms*",
10218         (const char*)NULL };
10221  *  content selection pattern - do fix if pattern found
10222  */
10223 tSCC zVms_Use_Fast_SetjmpSelect0[] =
10224        "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
10226 #define    VMS_USE_FAST_SETJMP_TEST_CT  1
10227 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
10228   { TT_EGREP,    zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
10231  *  Fix Command Arguments for Vms_Use_Fast_Setjmp
10232  */
10233 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
10234     "format",
10235     "%0 defined (__GNUC__) ||",
10236     (char*)NULL };
10238 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10240  *  Description of Vms_Use_Pragma_Extern_Model fix
10241  */
10242 tSCC zVms_Use_Pragma_Extern_ModelName[] =
10243      "vms_use_pragma_extern_model";
10246  *  File name selection pattern
10247  */
10248 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
10250  *  Machine/OS name selection pattern
10251  */
10252 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
10253         "*-*-*vms*",
10254         (const char*)NULL };
10257  *  content selection pattern - do fix if pattern found
10258  */
10259 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
10260        "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
10261 # pragma extern_model __save\n";
10263 #define    VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT  1
10264 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
10265   { TT_EGREP,    zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
10268  *  Fix Command Arguments for Vms_Use_Pragma_Extern_Model
10269  */
10270 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
10271     "format",
10272     "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
10273 # pragma extern_model __save\n",
10274     (char*)NULL };
10276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10278  *  Description of Vms_Use_Quoted_Include fix
10279  */
10280 tSCC zVms_Use_Quoted_IncludeName[] =
10281      "vms_use_quoted_include";
10284  *  File name selection pattern
10285  */
10286 tSCC zVms_Use_Quoted_IncludeList[] =
10287   "rtldef/wait.h\0starlet_c/pthread.h\0";
10289  *  Machine/OS name selection pattern
10290  */
10291 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
10292         "*-*-*vms*",
10293         (const char*)NULL };
10296  *  content selection pattern - do fix if pattern found
10297  */
10298 tSCC zVms_Use_Quoted_IncludeSelect0[] =
10299        "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
10301 #define    VMS_USE_QUOTED_INCLUDE_TEST_CT  1
10302 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
10303   { TT_EGREP,    zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
10306  *  Fix Command Arguments for Vms_Use_Quoted_Include
10307  */
10308 static const char* apzVms_Use_Quoted_IncludePatch[] = {
10309     "format",
10310     "%1<sys/%2.h>",
10311     (char*)NULL };
10313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10315  *  Description of Void_Null fix
10316  */
10317 tSCC zVoid_NullName[] =
10318      "void_null";
10321  *  File name selection pattern
10322  */
10323 tSCC zVoid_NullList[] =
10324   "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";
10326  *  Machine/OS name selection pattern
10327  */
10328 #define apzVoid_NullMachs (const char**)NULL
10331  *  content selection pattern - do fix if pattern found
10332  */
10333 tSCC zVoid_NullSelect0[] =
10334        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
10337  *  content bypass pattern - skip fix if pattern found
10338  */
10339 tSCC zVoid_NullBypass0[] =
10340        "__cplusplus";
10341 tSCC zVoid_NullBypass1[] =
10342        "__null";
10344 #define    VOID_NULL_TEST_CT  3
10345 static tTestDesc aVoid_NullTests[] = {
10346   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
10347   { TT_NEGREP,   zVoid_NullBypass1, (regex_t*)NULL },
10348   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
10351  *  Fix Command Arguments for Void_Null
10352  */
10353 static const char* apzVoid_NullPatch[] = {
10354     "format",
10355     "#ifndef NULL\n\
10356 #ifdef __cplusplus\n\
10357 #ifdef __GNUG__\n\
10358 #define NULL __null\n\
10359 #else /* ! __GNUG__  */\n\
10360 #define NULL 0L\n\
10361 #endif /* __GNUG__  */\n\
10362 #else /* ! __cplusplus  */\n\
10363 #define NULL ((void *)0)\n\
10364 #endif /* __cplusplus  */\n\
10365 #endif /* !NULL  */",
10366     (char*)NULL };
10368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10370  *  Description of Vxworks_Gcc_Problem fix
10371  */
10372 tSCC zVxworks_Gcc_ProblemName[] =
10373      "vxworks_gcc_problem";
10376  *  File name selection pattern
10377  */
10378 tSCC zVxworks_Gcc_ProblemList[] =
10379   "types/vxTypesBase.h\0";
10381  *  Machine/OS name selection pattern
10382  */
10383 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
10386  *  content selection pattern - do fix if pattern found
10387  */
10388 tSCC zVxworks_Gcc_ProblemSelect0[] =
10389        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
10391 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
10392 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
10393   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
10396  *  Fix Command Arguments for Vxworks_Gcc_Problem
10397  */
10398 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
10399     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
10400     "-e", "/[ \t]size_t/i\\\n\
10401 #ifndef _GCC_SIZE_T\\\n\
10402 #define _GCC_SIZE_T\n",
10403     "-e", "/[ \t]size_t/a\\\n\
10404 #endif\n",
10405     "-e", "/[ \t]ptrdiff_t/i\\\n\
10406 #ifndef _GCC_PTRDIFF_T\\\n\
10407 #define _GCC_PTRDIFF_T\n",
10408     "-e", "/[ \t]ptrdiff_t/a\\\n\
10409 #endif\n",
10410     "-e", "/[ \t]wchar_t/i\\\n\
10411 #ifndef _GCC_WCHAR_T\\\n\
10412 #define _GCC_WCHAR_T\n",
10413     "-e", "/[ \t]wchar_t/a\\\n\
10414 #endif\n",
10415     (char*)NULL };
10417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10419  *  Description of Vxworks_Ioctl_Macro fix
10420  */
10421 tSCC zVxworks_Ioctl_MacroName[] =
10422      "vxworks_ioctl_macro";
10425  *  File name selection pattern
10426  */
10427 tSCC zVxworks_Ioctl_MacroList[] =
10428   "ioLib.h\0";
10430  *  Machine/OS name selection pattern
10431  */
10432 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
10433         "*-*-vxworks*",
10434         (const char*)NULL };
10435 #define VXWORKS_IOCTL_MACRO_TEST_CT  0
10436 #define aVxworks_Ioctl_MacroTests   (tTestDesc*)NULL
10439  *  Fix Command Arguments for Vxworks_Ioctl_Macro
10440  */
10441 static const char* apzVxworks_Ioctl_MacroPatch[] = {
10442     "format",
10443     "%0\n\
10444 #define ioctl(fd, func, arg) ioctl(fd, func, (int)(arg))\n",
10445     "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
10446     (char*)NULL };
10448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10450  *  Description of Vxworks_Math_H_Fp_C99 fix
10451  */
10452 tSCC zVxworks_Math_H_Fp_C99Name[] =
10453      "vxworks_math_h_fp_c99";
10456  *  File name selection pattern
10457  */
10458 tSCC zVxworks_Math_H_Fp_C99List[] =
10459   "math.h\0";
10461  *  Machine/OS name selection pattern
10462  */
10463 tSCC* apzVxworks_Math_H_Fp_C99Machs[] = {
10464         "*-*-vxworks*",
10465         (const char*)NULL };
10468  *  content selection pattern - do fix if pattern found
10469  */
10470 tSCC zVxworks_Math_H_Fp_C99Select0[] =
10471        "#define HUGE_VAL[ \t]*_ARCH.*";
10474  *  content bypass pattern - skip fix if pattern found
10475  */
10476 tSCC zVxworks_Math_H_Fp_C99Bypass0[] =
10477        "#define[ \t]+FP_INFINITE";
10479 #define    VXWORKS_MATH_H_FP_C99_TEST_CT  2
10480 static tTestDesc aVxworks_Math_H_Fp_C99Tests[] = {
10481   { TT_NEGREP,   zVxworks_Math_H_Fp_C99Bypass0, (regex_t*)NULL },
10482   { TT_EGREP,    zVxworks_Math_H_Fp_C99Select0, (regex_t*)NULL }, };
10485  *  Fix Command Arguments for Vxworks_Math_H_Fp_C99
10486  */
10487 static const char* apzVxworks_Math_H_Fp_C99Patch[] = {
10488     "format",
10489     "\n\
10490 %0\n\n\
10491 #if _C99\n\n\
10492 #define FP_INFINITE  1\n\
10493 #define FP_NAN       2\n\
10494 #define FP_NORMAL    (-1)\n\
10495 #define FP_SUBNORMAL (-2)\n\
10496 #define FP_ZERO      0\n\n\
10497 #define fpclassify(x) \\\n\
10498   __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, \\\n\
10499 \t\t       FP_SUBNORMAL, FP_ZERO, (x))\n\n\
10500 #define signbit(x) __builtin_signbit(x)\n\
10501 #define isfinite(x) __builtin_isfinite(x)\n\
10502 #define isnormal(x) __builtin_isnormal(x)\n\
10503 #define isnan(x) __builtin_isnan(x)\n\
10504 #define isinf(x) __builtin_isinf(x)\n\n\
10505 #define isgreater(x, y) __builtin_isgreater((x),(y))\n\
10506 #define isgreaterequal(x, y) __builtin_isgreaterequal((x),(y))\n\
10507 #define isless(x, y) __builtin_isless((x),(y))\n\
10508 #define islessequal(x, y) __builtin_islessequal((x),(y))\n\
10509 #define islessgreater(x, y) __builtin_islessgreater((x),(y))\n\
10510 #define isunordered(x, y) __builtin_isunordered((x),(y))\n\n\
10511 #endif /* _C99 */\n",
10512     (char*)NULL };
10514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10516  *  Description of Vxworks_Posix_Mkdir fix
10517  */
10518 tSCC zVxworks_Posix_MkdirName[] =
10519      "vxworks_posix_mkdir";
10522  *  File name selection pattern
10523  */
10524 tSCC zVxworks_Posix_MkdirList[] =
10525   "sys/stat.h\0";
10527  *  Machine/OS name selection pattern
10528  */
10529 tSCC* apzVxworks_Posix_MkdirMachs[] = {
10530         "*-*-vxworks*",
10531         (const char*)NULL };
10532 #define VXWORKS_POSIX_MKDIR_TEST_CT  0
10533 #define aVxworks_Posix_MkdirTests   (tTestDesc*)NULL
10536  *  Fix Command Arguments for Vxworks_Posix_Mkdir
10537  */
10538 static const char* apzVxworks_Posix_MkdirPatch[] = {
10539     "format",
10540     "extern STATUS mkdir(const char *dir, ...);",
10541     "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
10542     (char*)NULL };
10544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10546  *  Description of Vxworks_Needs_Vxtypes fix
10547  */
10548 tSCC zVxworks_Needs_VxtypesName[] =
10549      "vxworks_needs_vxtypes";
10552  *  File name selection pattern
10553  */
10554 tSCC zVxworks_Needs_VxtypesList[] =
10555   "time.h\0";
10557  *  Machine/OS name selection pattern
10558  */
10559 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
10562  *  content selection pattern - do fix if pattern found
10563  */
10564 tSCC zVxworks_Needs_VxtypesSelect0[] =
10565        "uint_t([ \t]+_clocks_per_sec)";
10567 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
10568 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
10569   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
10572  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
10573  */
10574 static const char* apzVxworks_Needs_VxtypesPatch[] = {
10575     "format",
10576     "unsigned int%1",
10577     (char*)NULL };
10579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10581  *  Description of Vxworks_Needs_Vxworks fix
10582  */
10583 tSCC zVxworks_Needs_VxworksName[] =
10584      "vxworks_needs_vxworks";
10587  *  File name selection pattern
10588  */
10589 tSCC zVxworks_Needs_VxworksList[] =
10590   "sys/stat.h\0";
10592  *  Machine/OS name selection pattern
10593  */
10594 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
10597  *  content selection pattern - do fix if pattern found
10598  */
10599 tSCC zVxworks_Needs_VxworksSelect0[] =
10600        "#[ \t]define[ \t]+__INCstath";
10603  *  perform the 'test' shell command - do fix on success
10604  */
10605 tSCC zVxworks_Needs_VxworksTest0[] =
10606        " -r types/vxTypesOld.h";
10607 tSCC zVxworks_Needs_VxworksTest1[] =
10608        " -n \"`egrep '#include' $file`\"";
10609 tSCC zVxworks_Needs_VxworksTest2[] =
10610        " -n \"`egrep ULONG $file`\"";
10612 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
10613 static tTestDesc aVxworks_Needs_VxworksTests[] = {
10614   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
10615   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
10616   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
10617   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
10620  *  Fix Command Arguments for Vxworks_Needs_Vxworks
10621  */
10622 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
10623     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
10624 #include <types/vxTypesOld.h>\n",
10625     (char*)NULL };
10627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10629  *  Description of Vxworks_Next_Yvals fix
10630  */
10631 tSCC zVxworks_Next_YvalsName[] =
10632      "vxworks_next_yvals";
10635  *  File name selection pattern
10636  */
10637 tSCC zVxworks_Next_YvalsList[] =
10638   "yvals.h\0";
10640  *  Machine/OS name selection pattern
10641  */
10642 tSCC* apzVxworks_Next_YvalsMachs[] = {
10643         "*-*-vxworks*",
10644         (const char*)NULL };
10647  *  content selection pattern - do fix if pattern found
10648  */
10649 tSCC zVxworks_Next_YvalsSelect0[] =
10650        "#include_next <yvals.h>";
10652 #define    VXWORKS_NEXT_YVALS_TEST_CT  1
10653 static tTestDesc aVxworks_Next_YvalsTests[] = {
10654   { TT_EGREP,    zVxworks_Next_YvalsSelect0, (regex_t*)NULL }, };
10657  *  Fix Command Arguments for Vxworks_Next_Yvals
10658  */
10659 static const char* apzVxworks_Next_YvalsPatch[] = {
10660     "format",
10661     "#if 0 /* GCC does not provide yvals.h.  */\n\
10662 %1",
10663     "#if .*\n\
10664 /\\* .*\n\
10665 (#include_next <yvals.h>\n\
10667     (char*)NULL };
10669 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10671  *  Description of Vxworks_Regs fix
10672  */
10673 tSCC zVxworks_RegsName[] =
10674      "vxworks_regs";
10677  *  File name selection pattern
10678  */
10679 #define zVxworks_RegsList (char*)NULL
10681  *  Machine/OS name selection pattern
10682  */
10683 tSCC* apzVxworks_RegsMachs[] = {
10684         "*-*-vxworks*",
10685         (const char*)NULL };
10688  *  content selection pattern - do fix if pattern found
10689  */
10690 tSCC zVxworks_RegsSelect0[] =
10691        "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
10693 #define    VXWORKS_REGS_TEST_CT  1
10694 static tTestDesc aVxworks_RegsTests[] = {
10695   { TT_EGREP,    zVxworks_RegsSelect0, (regex_t*)NULL }, };
10698  *  Fix Command Arguments for Vxworks_Regs
10699  */
10700 static const char* apzVxworks_RegsPatch[] = {
10701     "format",
10702     "#include <arch/../regs.h>",
10703     (char*)NULL };
10705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10707  *  Description of Vxworks_Posix_Open fix
10708  */
10709 tSCC zVxworks_Posix_OpenName[] =
10710      "vxworks_posix_open";
10713  *  File name selection pattern
10714  */
10715 tSCC zVxworks_Posix_OpenList[] =
10716   "fcntl.h\0";
10718  *  Machine/OS name selection pattern
10719  */
10720 tSCC* apzVxworks_Posix_OpenMachs[] = {
10721         "*-*-vxworks*",
10722         (const char*)NULL };
10725  *  content selection pattern - do fix if pattern found
10726  */
10727 tSCC zVxworks_Posix_OpenSelect0[] =
10728        "extern int.*open \\(const char \\*[ a-z]*, int[ a-z]*, int[ a-z]*\\);";
10730 #define    VXWORKS_POSIX_OPEN_TEST_CT  1
10731 static tTestDesc aVxworks_Posix_OpenTests[] = {
10732   { TT_EGREP,    zVxworks_Posix_OpenSelect0, (regex_t*)NULL }, };
10735  *  Fix Command Arguments for Vxworks_Posix_Open
10736  */
10737 static const char* apzVxworks_Posix_OpenPatch[] = {
10738     "format",
10739     "%0\n\n\
10740 #if defined(__cplusplus)\n\
10741 extern \"C++\" {\n\
10742   inline int open (const char *, int) __attribute__((__always_inline__));\n\n\
10743   inline int\n\
10744   open (const char *name, int flags)\n\
10745   {\n\
10746     return open (name, flags, 0);\n\
10747   }\n\
10748 }\n\
10749 #endif\n",
10750     (char*)NULL };
10752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10754  *  Description of Vxworks_Time fix
10755  */
10756 tSCC zVxworks_TimeName[] =
10757      "vxworks_time";
10760  *  File name selection pattern
10761  */
10762 tSCC zVxworks_TimeList[] =
10763   "time.h\0";
10765  *  Machine/OS name selection pattern
10766  */
10767 #define apzVxworks_TimeMachs (const char**)NULL
10770  *  content selection pattern - do fix if pattern found
10771  */
10772 tSCC zVxworks_TimeSelect0[] =
10773        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
10776  *  perform the 'test' shell command - do fix on success
10777  */
10778 tSCC zVxworks_TimeTest0[] =
10779        " -r vxWorks.h";
10781 #define    VXWORKS_TIME_TEST_CT  2
10782 static tTestDesc aVxworks_TimeTests[] = {
10783   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
10784   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
10787  *  Fix Command Arguments for Vxworks_Time
10788  */
10789 static const char* apzVxworks_TimePatch[] = {
10790     "format",
10791     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
10792 #ifdef __cplusplus\n\
10793 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
10794 #else\n\
10795 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
10796 #endif\n\
10797 #define __gcc_VOIDFUNCPTR_defined\n\
10798 #endif\n\
10799 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
10800     (char*)NULL };
10802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10804  *  Description of Vxworks_Write_Const fix
10805  */
10806 tSCC zVxworks_Write_ConstName[] =
10807      "vxworks_write_const";
10810  *  File name selection pattern
10811  */
10812 tSCC zVxworks_Write_ConstList[] =
10813   "ioLib.h\0";
10815  *  Machine/OS name selection pattern
10816  */
10817 tSCC* apzVxworks_Write_ConstMachs[] = {
10818         "*-*-vxworks*",
10819         (const char*)NULL };
10820 #define VXWORKS_WRITE_CONST_TEST_CT  0
10821 #define aVxworks_Write_ConstTests   (tTestDesc*)NULL
10824  *  Fix Command Arguments for Vxworks_Write_Const
10825  */
10826 static const char* apzVxworks_Write_ConstPatch[] = {
10827     "format",
10828     "extern int  write (int, const char*, size_t);",
10829     "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
10830     (char*)NULL };
10832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10834  *  Description of Vxworks_Iolib_Include_Unistd fix
10835  */
10836 tSCC zVxworks_Iolib_Include_UnistdName[] =
10837      "vxworks_iolib_include_unistd";
10840  *  File name selection pattern
10841  */
10842 tSCC zVxworks_Iolib_Include_UnistdList[] =
10843   "ioLib.h\0";
10845  *  Machine/OS name selection pattern
10846  */
10847 tSCC* apzVxworks_Iolib_Include_UnistdMachs[] = {
10848         "*-*-vxworks*",
10849         (const char*)NULL };
10852  *  content selection pattern - do fix if pattern found
10853  */
10854 tSCC zVxworks_Iolib_Include_UnistdSelect0[] =
10855        "#include \"unistd.h\"";
10857 #define    VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT  1
10858 static tTestDesc aVxworks_Iolib_Include_UnistdTests[] = {
10859   { TT_EGREP,    zVxworks_Iolib_Include_UnistdSelect0, (regex_t*)NULL }, };
10862  *  Fix Command Arguments for Vxworks_Iolib_Include_Unistd
10863  */
10864 static const char* apzVxworks_Iolib_Include_UnistdPatch[] = {
10865     "format",
10866     "#include <unistd.h>",
10867     (char*)NULL };
10869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10871  *  Description of Vxworks_Time_H_Syslib fix
10872  */
10873 tSCC zVxworks_Time_H_SyslibName[] =
10874      "vxworks_time_h_syslib";
10877  *  File name selection pattern
10878  */
10879 tSCC zVxworks_Time_H_SyslibList[] =
10880   "time.h\0";
10882  *  Machine/OS name selection pattern
10883  */
10884 tSCC* apzVxworks_Time_H_SyslibMachs[] = {
10885         "*-*-vxworks*",
10886         (const char*)NULL };
10889  *  content selection pattern - do fix if pattern found
10890  */
10891 tSCC zVxworks_Time_H_SyslibSelect0[] =
10892        "[ \t]*#define[ \t]+CLOCKS_PER_SEC[ \t]+sysClkRateGet.*";
10894 #define    VXWORKS_TIME_H_SYSLIB_TEST_CT  1
10895 static tTestDesc aVxworks_Time_H_SyslibTests[] = {
10896   { TT_EGREP,    zVxworks_Time_H_SyslibSelect0, (regex_t*)NULL }, };
10899  *  Fix Command Arguments for Vxworks_Time_H_Syslib
10900  */
10901 static const char* apzVxworks_Time_H_SyslibPatch[] = {
10902     "format",
10903     "%0\n\
10904 #include <sysLib.h>",
10905     "#include <vxWorks.h>|#endif.* _YVALS.*",
10906     (char*)NULL };
10908 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10910  *  Description of X11_Class fix
10911  */
10912 tSCC zX11_ClassName[] =
10913      "x11_class";
10916  *  File name selection pattern
10917  */
10918 tSCC zX11_ClassList[] =
10919   "X11/ShellP.h\0";
10921  *  Machine/OS name selection pattern
10922  */
10923 #define apzX11_ClassMachs (const char**)NULL
10926  *  content selection pattern - do fix if pattern found
10927  */
10928 tSCC zX11_ClassSelect0[] =
10929        "^([ \t]*char \\*)class;(.*)";
10932  *  content bypass pattern - skip fix if pattern found
10933  */
10934 tSCC zX11_ClassBypass0[] =
10935        "__cplusplus";
10937 #define    X11_CLASS_TEST_CT  2
10938 static tTestDesc aX11_ClassTests[] = {
10939   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
10940   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
10943  *  Fix Command Arguments for X11_Class
10944  */
10945 static const char* apzX11_ClassPatch[] = {
10946     "format",
10947     "#ifdef __cplusplus\n\
10948 %1c_class;%2\n\
10949 #else\n\
10950 %1class;%2\n\
10951 #endif",
10952     (char*)NULL };
10954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10956  *  Description of X11_Class_Usage fix
10957  */
10958 tSCC zX11_Class_UsageName[] =
10959      "x11_class_usage";
10962  *  File name selection pattern
10963  */
10964 tSCC zX11_Class_UsageList[] =
10965   "Xm/BaseClassI.h\0";
10967  *  Machine/OS name selection pattern
10968  */
10969 #define apzX11_Class_UsageMachs (const char**)NULL
10972  *  content selection pattern - do fix if pattern found
10973  */
10974 tSCC zX11_Class_UsageSelect0[] =
10975        " class\\)";
10978  *  content bypass pattern - skip fix if pattern found
10979  */
10980 tSCC zX11_Class_UsageBypass0[] =
10981        "__cplusplus";
10983 #define    X11_CLASS_USAGE_TEST_CT  2
10984 static tTestDesc aX11_Class_UsageTests[] = {
10985   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
10986   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
10989  *  Fix Command Arguments for X11_Class_Usage
10990  */
10991 static const char* apzX11_Class_UsagePatch[] = {
10992     "format",
10993     " c_class)",
10994     (char*)NULL };
10996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
10998  *  Description of X11_New fix
10999  */
11000 tSCC zX11_NewName[] =
11001      "x11_new";
11004  *  File name selection pattern
11005  */
11006 tSCC zX11_NewList[] =
11007   "Xm/Traversal.h\0";
11009  *  Machine/OS name selection pattern
11010  */
11011 #define apzX11_NewMachs (const char**)NULL
11014  *  content bypass pattern - skip fix if pattern found
11015  */
11016 tSCC zX11_NewBypass0[] =
11017        "__cplusplus";
11019 #define    X11_NEW_TEST_CT  1
11020 static tTestDesc aX11_NewTests[] = {
11021   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
11024  *  Fix Command Arguments for X11_New
11025  */
11026 static const char* apzX11_NewPatch[] = { sed_cmd_z,
11027     "-e", "/Widget\told, new;/i\\\n\
11028 #ifdef __cplusplus\\\n\
11029 \\\tWidget\told, c_new;\\\n\
11030 #else\n",
11031     "-e", "/Widget\told, new;/a\\\n\
11032 #endif\n",
11033     "-e", "s/Widget new,/Widget c_new,/g",
11034     (char*)NULL };
11036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
11038  *  Description of X11_Sprintf fix
11039  */
11040 tSCC zX11_SprintfName[] =
11041      "x11_sprintf";
11044  *  File name selection pattern
11045  */
11046 tSCC zX11_SprintfList[] =
11047   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
11049  *  Machine/OS name selection pattern
11050  */
11051 #define apzX11_SprintfMachs (const char**)NULL
11054  *  content selection pattern - do fix if pattern found
11055  */
11056 tSCC zX11_SprintfSelect0[] =
11057        "^extern char \\*\tsprintf\\(\\);$";
11059 #define    X11_SPRINTF_TEST_CT  1
11060 static tTestDesc aX11_SprintfTests[] = {
11061   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
11064  *  Fix Command Arguments for X11_Sprintf
11065  */
11066 static const char* apzX11_SprintfPatch[] = {
11067     "format",
11068     "#ifndef __STDC__\n\
11069 %0\n\
11070 #endif /* !defined __STDC__ */",
11071     (char*)NULL };
11074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
11076  *  List of all fixes
11077  */
11078 #define REGEX_COUNT          310
11079 #define MACH_LIST_SIZE_LIMIT 187
11080 #define FIX_COUNT            272
11083  *  Enumerate the fixes
11084  */
11085 typedef enum {
11086     AAB_AIX_STDIO_FIXIDX,
11087     AAB_AIX_FCNTL_FIXIDX,
11088     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
11089     DARWIN_API_AVAILABILITY_FIXIDX,
11090     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
11091     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
11092     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
11093     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
11094     AAB_SUN_MEMCPY_FIXIDX,
11095     AAB_VXWORKS_ASSERT_FIXIDX,
11096     AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
11097     AAB_VXWORKS_UNISTD_FIXIDX,
11098     AIX_ASSERT_FIXIDX,
11099     AIX_COMPLEX_FIXIDX,
11100     AIX_EXTERNC_FIXIDX,
11101     AIX_EXTERNCPP1_FIXIDX,
11102     AIX_EXTERNCPP2_FIXIDX,
11103     AIX_INTTYPES_FIXIDX,
11104     AIX_MALLOC_FIXIDX,
11105     AIX_NET_IF_ARP_FIXIDX,
11106     AIX_NULL_FIXIDX,
11107     AIX_ONCE_INIT_1_FIXIDX,
11108     AIX_ONCE_INIT_2_FIXIDX,
11109     AIX_MUTEX_INITIALIZER_1_FIXIDX,
11110     AIX_COND_INITIALIZER_1_FIXIDX,
11111     AIX_RWLOCK_INITIALIZER_1_FIXIDX,
11112     AIX_PHYSADR_T_FIXIDX,
11113     AIX_PTHREAD_FIXIDX,
11114     AIX_STDINT_1_FIXIDX,
11115     AIX_STDINT_2_FIXIDX,
11116     AIX_STDINT_3_FIXIDX,
11117     AIX_STDINT_4_FIXIDX,
11118     AIX_STDINT_5_FIXIDX,
11119     AIX_STDIO_INLINE_FIXIDX,
11120     AIX_STDLIB_MALLOC_FIXIDX,
11121     AIX_STDLIB_REALLOC_FIXIDX,
11122     AIX_STDLIB_CALLOC_FIXIDX,
11123     AIX_STDLIB_VALLOC_FIXIDX,
11124     AIX_STDLIB_VEC_MALLOC_FIXIDX,
11125     AIX_STDLIB_VEC_CALLOC_FIXIDX,
11126     AIX_STRTOF_CONST_FIXIDX,
11127     AIX_SYSMACHINE_FIXIDX,
11128     AIX_SYSWAIT_2_FIXIDX,
11129     AIX_VOLATILE_FIXIDX,
11130     AIX_UNISTD_FIXIDX,
11131     ALPHA___ASSERT_FIXIDX,
11132     ALPHA_ASSERT_FIXIDX,
11133     ALPHA_GETOPT_FIXIDX,
11134     ALPHA_IF_SEMICOLON_FIXIDX,
11135     ALPHA_PARENS_FIXIDX,
11136     ALPHA_SBRK_FIXIDX,
11137     AVOID_BOOL_DEFINE_FIXIDX,
11138     AVOID_BOOL_TYPE_FIXIDX,
11139     AVOID_WCHAR_T_TYPE_FIXIDX,
11140     BAD_STRUCT_TERM_FIXIDX,
11141     BADQUOTE_FIXIDX,
11142     BROKEN_ASSERT_STDIO_FIXIDX,
11143     BROKEN_ASSERT_STDLIB_FIXIDX,
11144     BROKEN_CABS_FIXIDX,
11145     BROKEN_NAN_FIXIDX,
11146     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
11147     CTRL_QUOTES_DEF_FIXIDX,
11148     CTRL_QUOTES_USE_FIXIDX,
11149     CXX_UNREADY_FIXIDX,
11150     DARWIN_AVAILABILITYINTERNAL_FIXIDX,
11151     DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
11152     DARWIN_EXTERNC_FIXIDX,
11153     DARWIN_GCC4_BREAKAGE_FIXIDX,
11154     DARWIN_LL_FUNCS_AVAIL_FIXIDX,
11155     DARWIN_LONGJMP_NORETURN_FIXIDX,
11156     DARWIN_OS_TRACE_1_FIXIDX,
11157     DARWIN_OS_TRACE_2_FIXIDX,
11158     DARWIN_OS_TRACE_3_FIXIDX,
11159     DARWIN_OS_BASE_1_FIXIDX,
11160     DARWIN_DISPATCH_OBJECT_1_FIXIDX,
11161     DARWIN_PRIVATE_EXTERN_FIXIDX,
11162     DARWIN_STDINT_1_FIXIDX,
11163     DARWIN_STDINT_2_FIXIDX,
11164     DARWIN_STDINT_3_FIXIDX,
11165     DARWIN_STDINT_4_FIXIDX,
11166     DARWIN_STDINT_5_FIXIDX,
11167     DARWIN_STDINT_6_FIXIDX,
11168     DARWIN_STDINT_7_FIXIDX,
11169     DARWIN_UCRED__ATOMIC_FIXIDX,
11170     DARWIN_FLT_EVAL_METHOD_FIXIDX,
11171     DEC_INTERN_ASM_FIXIDX,
11172     DJGPP_WCHAR_H_FIXIDX,
11173     ECD_CURSOR_FIXIDX,
11174     FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
11175     FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
11176     FREEBSD_GCC3_BREAKAGE_FIXIDX,
11177     FREEBSD_GCC4_BREAKAGE_FIXIDX,
11178     GLIBC_C99_INLINE_1_FIXIDX,
11179     GLIBC_C99_INLINE_1A_FIXIDX,
11180     GLIBC_C99_INLINE_2_FIXIDX,
11181     GLIBC_C99_INLINE_3_FIXIDX,
11182     GLIBC_C99_INLINE_4_FIXIDX,
11183     GLIBC_CXX_FLOATN_1_FIXIDX,
11184     GLIBC_CXX_FLOATN_2_FIXIDX,
11185     GLIBC_CXX_FLOATN_3_FIXIDX,
11186     GLIBC_CXX_FLOATN_4_FIXIDX,
11187     GLIBC_CXX_FLOATN_5_FIXIDX,
11188     GLIBC_MUTEX_INIT_FIXIDX,
11189     GLIBC_STDINT_FIXIDX,
11190     GLIBC_STRNCPY_FIXIDX,
11191     GLIBC_TGMATH_FIXIDX,
11192     GNU_TYPES_FIXIDX,
11193     HP_INLINE_FIXIDX,
11194     HP_SYSFILE_FIXIDX,
11195     HPPA_HPUX_FP_MACROS_FIXIDX,
11196     HPUX10_CPP_POW_INLINE_FIXIDX,
11197     HPUX11_CPP_POW_INLINE_FIXIDX,
11198     HPUX_MATH_CONSTEXPR_FIXIDX,
11199     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
11200     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
11201     HPUX10_STDIO_DECLARATIONS_FIXIDX,
11202     HPPA_HPUX11_ALLOCA_FIXIDX,
11203     HPUX11_ABS_FIXIDX,
11204     HPUX11_LWP_RWLOCK_VALID_FIXIDX,
11205     HPUX11_EXTERN_SENDFILE_FIXIDX,
11206     HPUX11_EXTERN_SENDPATH_FIXIDX,
11207     HPUX11_FABSF_FIXIDX,
11208     HPUX11_PTHREAD_POINTER_FIXIDX,
11209     HPUX11_PTHREAD_CONST_FIXIDX,
11210     HPUX11_SIZE_T_FIXIDX,
11211     HPUX11_SNPRINTF_FIXIDX,
11212     HPUX11_VSNPRINTF_FIXIDX,
11213     HPUX_VSSCANF_FIXIDX,
11214     HPUX8_BOGUS_INLINES_FIXIDX,
11215     HPUX_C99_INTPTR_FIXIDX,
11216     HPUX_C99_INTTYPES_FIXIDX,
11217     HPUX_C99_INTTYPES2_FIXIDX,
11218     HPUX_C99_INTTYPES3_FIXIDX,
11219     HPUX_C99_INTTYPES4_FIXIDX,
11220     HPUX_C99_INTTYPES5_FIXIDX,
11221     HPUX_CTYPE_MACROS_FIXIDX,
11222     HPUX_EXTERN_ERRNO_FIXIDX,
11223     HPUX_HTONL_FIXIDX,
11224     HPUX_IMAGINARY_I_FIXIDX,
11225     HPUX_INTTYPE_INT8_T_FIXIDX,
11226     HPUX_LONG_DOUBLE_FIXIDX,
11227     HPUX_LONG_DOUBLE_2_FIXIDX,
11228     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
11229     HPUX_SPU_INFO_FIXIDX,
11230     HPUX_STDINT_LEAST_FAST_FIXIDX,
11231     HPUX_LONGJMP_FIXIDX,
11232     HPUX_SYSTIME_FIXIDX,
11233     HUGE_VAL_HEX_FIXIDX,
11234     HUGE_VALF_HEX_FIXIDX,
11235     HUGE_VALL_HEX_FIXIDX,
11236     INT_ABORT_FREE_AND_EXIT_FIXIDX,
11237     IO_QUOTES_DEF_FIXIDX,
11238     IO_QUOTES_USE_FIXIDX,
11239     IP_MISSING_SEMI_FIXIDX,
11240     IRIX_LIMITS_CONST_FIXIDX,
11241     IRIX_STDIO_VA_LIST_FIXIDX,
11242     KANDR_CONCAT_FIXIDX,
11243     LINUX_IA64_UCONTEXT_FIXIDX,
11244     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
11245     LYNXOS_MISSING_PUTENV_FIXIDX,
11246     MACHINE_ANSI_H_VA_LIST_FIXIDX,
11247     MACHINE_NAME_FIXIDX,
11248     MATH_EXCEPTION_FIXIDX,
11249     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
11250     NESTED_AUTH_DES_FIXIDX,
11251     NETBSD_C99_INLINE_1_FIXIDX,
11252     NETBSD_C99_INLINE_2_FIXIDX,
11253     NETBSD_EXTRA_SEMICOLON_FIXIDX,
11254     NEWLIB_STDINT_1_FIXIDX,
11255     NEWLIB_STDINT_2_FIXIDX,
11256     NEXT_MATH_PREFIX_FIXIDX,
11257     NEXT_TEMPLATE_FIXIDX,
11258     NEXT_VOLITILE_FIXIDX,
11259     NEXT_WAIT_UNION_FIXIDX,
11260     NODEENT_SYNTAX_FIXIDX,
11261     OPENBSD_NULL_DEFINITION_FIXIDX,
11262     OBSTACK_LVALUE_CAST_FIXIDX,
11263     OPENBSD_VA_START_FIXIDX,
11264     OSF_NAMESPACE_A_FIXIDX,
11265     OSF_NAMESPACE_C_FIXIDX,
11266     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
11267     READ_RET_TYPE_FIXIDX,
11268     RPC_XDR_LVALUE_CAST_A_FIXIDX,
11269     RPC_XDR_LVALUE_CAST_B_FIXIDX,
11270     RS6000_DOUBLE_FIXIDX,
11271     RS6000_FCHMOD_FIXIDX,
11272     RS6000_PARAM_FIXIDX,
11273     SOLARIS___RESTRICT_FIXIDX,
11274     SOLARIS_COMPLEX_FIXIDX,
11275     SOLARIS_COMPLEX_CXX_FIXIDX,
11276     SOLARIS_CXX_LINKAGE_FIXIDX,
11277     SOLARIS_GETC_STRICT_STDC_FIXIDX,
11278     SOLARIS_GETS_C11_FIXIDX,
11279     SOLARIS_GETS_CXX14_FIXIDX,
11280     SOLARIS_INT_CONST_FIXIDX,
11281     SOLARIS_INT_LIMITS_1_FIXIDX,
11282     SOLARIS_INT_LIMITS_2_FIXIDX,
11283     SOLARIS_INT_LIMITS_3_FIXIDX,
11284     SOLARIS_MATH_1_FIXIDX,
11285     SOLARIS_MATH_10_FIXIDX,
11286     SOLARIS_MATH_2_FIXIDX,
11287     SOLARIS_MATH_3_FIXIDX,
11288     SOLARIS_MATH_4_FIXIDX,
11289     SOLARIS_MATH_8_FIXIDX,
11290     SOLARIS_MATH_9_FIXIDX,
11291     SOLARIS_MATH_11_FIXIDX,
11292     SOLARIS_MATH_12_FIXIDX,
11293     SOLARIS_ONCE_INIT_1_FIXIDX,
11294     SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
11295     SOLARIS_POW_INT_OVERLOAD_FIXIDX,
11296     SOLARIS_RWLOCK_INIT_1_FIXIDX,
11297     SOLARIS_STD___FILBUF_FIXIDX,
11298     SOLARIS_STD_GETS_CXX14_FIXIDX,
11299     SOLARIS_STDIO_TAG_FIXIDX,
11300     SOLARIS_STDLIB_NORETURN_FIXIDX,
11301     STATSSWTCH_FIXIDX,
11302     STDIO_STDARG_H_FIXIDX,
11303     STDIO_VA_LIST_FIXIDX,
11304     STDIO_VA_LIST_CLIENTS_FIXIDX,
11305     STRICT_ANSI_NOT_FIXIDX,
11306     STRICT_ANSI_NOT_CTD_FIXIDX,
11307     STRICT_ANSI_ONLY_FIXIDX,
11308     STRUCT_FILE_FIXIDX,
11309     STRUCT_SOCKADDR_FIXIDX,
11310     SUN_AUTH_PROTO_FIXIDX,
11311     SUN_BOGUS_IFDEF_FIXIDX,
11312     SUN_CATMACRO_FIXIDX,
11313     SUN_MALLOC_FIXIDX,
11314     SUN_RUSERS_SEMI_FIXIDX,
11315     SUN_SIGNAL_FIXIDX,
11316     SUNOS_STRLEN_FIXIDX,
11317     SUSE_LINUX_VT_CXX_FIXIDX,
11318     SVR4_DISABLE_OPT_FIXIDX,
11319     SVR4_GETCWD_FIXIDX,
11320     SVR4_PROFIL_FIXIDX,
11321     SVR4_SIGHANDLER_TYPE_FIXIDX,
11322     SVR4_UNDECLARED_GETRNGE_FIXIDX,
11323     SYSV68_STRING_FIXIDX,
11324     SYSZ_STDLIB_FOR_SUN_FIXIDX,
11325     THREAD_KEYWORD_FIXIDX,
11326     TINFO_CPLUSPLUS_FIXIDX,
11327     ULTRIX_CONST_FIXIDX,
11328     ULTRIX_CONST2_FIXIDX,
11329     VA_I960_MACRO_FIXIDX,
11330     VMS_ADD_MISSING_BRACES_FIXIDX,
11331     VMS_DECC_BUILTIN_FIXIDX,
11332     VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
11333     VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
11334     VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
11335     VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
11336     VMS_NO_64BIT_GETOPT_FIXIDX,
11337     VMS_USE_FAST_SETJMP_FIXIDX,
11338     VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
11339     VMS_USE_QUOTED_INCLUDE_FIXIDX,
11340     VOID_NULL_FIXIDX,
11341     VXWORKS_GCC_PROBLEM_FIXIDX,
11342     VXWORKS_IOCTL_MACRO_FIXIDX,
11343     VXWORKS_MATH_H_FP_C99_FIXIDX,
11344     VXWORKS_POSIX_MKDIR_FIXIDX,
11345     VXWORKS_NEEDS_VXTYPES_FIXIDX,
11346     VXWORKS_NEEDS_VXWORKS_FIXIDX,
11347     VXWORKS_NEXT_YVALS_FIXIDX,
11348     VXWORKS_REGS_FIXIDX,
11349     VXWORKS_POSIX_OPEN_FIXIDX,
11350     VXWORKS_TIME_FIXIDX,
11351     VXWORKS_WRITE_CONST_FIXIDX,
11352     VXWORKS_IOLIB_INCLUDE_UNISTD_FIXIDX,
11353     VXWORKS_TIME_H_SYSLIB_FIXIDX,
11354     X11_CLASS_FIXIDX,
11355     X11_CLASS_USAGE_FIXIDX,
11356     X11_NEW_FIXIDX,
11357     X11_SPRINTF_FIXIDX
11358 } t_fixinc_idx;
11360 tFixDesc fixDescList[ FIX_COUNT ] = {
11361   {  zAab_Aix_StdioName,    zAab_Aix_StdioList,
11362      apzAab_Aix_StdioMachs,
11363      AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11364      aAab_Aix_StdioTests,   apzAab_Aix_StdioPatch, 0 },
11366   {  zAab_Aix_FcntlName,    zAab_Aix_FcntlList,
11367      apzAab_Aix_FcntlMachs,
11368      AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11369      aAab_Aix_FcntlTests,   apzAab_Aix_FcntlPatch, 0 },
11371   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
11372      apzAab_Darwin7_9_Long_Double_FuncsMachs,
11373      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11374      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
11376   {  zDarwin_Api_AvailabilityName,    zDarwin_Api_AvailabilityList,
11377      apzDarwin_Api_AvailabilityMachs,
11378      DARWIN_API_AVAILABILITY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11379      aDarwin_Api_AvailabilityTests,   apzDarwin_Api_AvailabilityPatch, 0 },
11381   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
11382      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
11383      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11384      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
11386   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
11387      apzAab_Fd_Zero_Gnu_Types_HMachs,
11388      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11389      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
11391   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
11392      apzAab_Fd_Zero_Selectbits_HMachs,
11393      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11394      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
11396   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
11397      apzAab_Solaris_Sys_Varargs_HMachs,
11398      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11399      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
11401   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
11402      apzAab_Sun_MemcpyMachs,
11403      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11404      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
11406   {  zAab_Vxworks_AssertName,    zAab_Vxworks_AssertList,
11407      apzAab_Vxworks_AssertMachs,
11408      AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11409      aAab_Vxworks_AssertTests,   apzAab_Vxworks_AssertPatch, 0 },
11411   {  zAab_Vxworks_Regs_VxtypesName,    zAab_Vxworks_Regs_VxtypesList,
11412      apzAab_Vxworks_Regs_VxtypesMachs,
11413      AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11414      aAab_Vxworks_Regs_VxtypesTests,   apzAab_Vxworks_Regs_VxtypesPatch, 0 },
11416   {  zAab_Vxworks_UnistdName,    zAab_Vxworks_UnistdList,
11417      apzAab_Vxworks_UnistdMachs,
11418      AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
11419      aAab_Vxworks_UnistdTests,   apzAab_Vxworks_UnistdPatch, 0 },
11421   {  zAix_AssertName,    zAix_AssertList,
11422      apzAix_AssertMachs,
11423      AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11424      aAix_AssertTests,   apzAix_AssertPatch, 0 },
11426   {  zAix_ComplexName,    zAix_ComplexList,
11427      apzAix_ComplexMachs,
11428      AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11429      aAix_ComplexTests,   apzAix_ComplexPatch, 0 },
11431   {  zAix_ExterncName,    zAix_ExterncList,
11432      apzAix_ExterncMachs,
11433      AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11434      aAix_ExterncTests,   apzAix_ExterncPatch, 0 },
11436   {  zAix_Externcpp1Name,    zAix_Externcpp1List,
11437      apzAix_Externcpp1Machs,
11438      AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11439      aAix_Externcpp1Tests,   apzAix_Externcpp1Patch, 0 },
11441   {  zAix_Externcpp2Name,    zAix_Externcpp2List,
11442      apzAix_Externcpp2Machs,
11443      AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11444      aAix_Externcpp2Tests,   apzAix_Externcpp2Patch, 0 },
11446   {  zAix_InttypesName,    zAix_InttypesList,
11447      apzAix_InttypesMachs,
11448      AIX_INTTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11449      aAix_InttypesTests,   apzAix_InttypesPatch, 0 },
11451   {  zAix_MallocName,    zAix_MallocList,
11452      apzAix_MallocMachs,
11453      AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11454      aAix_MallocTests,   apzAix_MallocPatch, 0 },
11456   {  zAix_Net_If_ArpName,    zAix_Net_If_ArpList,
11457      apzAix_Net_If_ArpMachs,
11458      AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11459      aAix_Net_If_ArpTests,   apzAix_Net_If_ArpPatch, 0 },
11461   {  zAix_NullName,    zAix_NullList,
11462      apzAix_NullMachs,
11463      AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11464      aAix_NullTests,   apzAix_NullPatch, 0 },
11466   {  zAix_Once_Init_1Name,    zAix_Once_Init_1List,
11467      apzAix_Once_Init_1Machs,
11468      AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11469      aAix_Once_Init_1Tests,   apzAix_Once_Init_1Patch, 0 },
11471   {  zAix_Once_Init_2Name,    zAix_Once_Init_2List,
11472      apzAix_Once_Init_2Machs,
11473      AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11474      aAix_Once_Init_2Tests,   apzAix_Once_Init_2Patch, 0 },
11476   {  zAix_Mutex_Initializer_1Name,    zAix_Mutex_Initializer_1List,
11477      apzAix_Mutex_Initializer_1Machs,
11478      AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11479      aAix_Mutex_Initializer_1Tests,   apzAix_Mutex_Initializer_1Patch, 0 },
11481   {  zAix_Cond_Initializer_1Name,    zAix_Cond_Initializer_1List,
11482      apzAix_Cond_Initializer_1Machs,
11483      AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11484      aAix_Cond_Initializer_1Tests,   apzAix_Cond_Initializer_1Patch, 0 },
11486   {  zAix_Rwlock_Initializer_1Name,    zAix_Rwlock_Initializer_1List,
11487      apzAix_Rwlock_Initializer_1Machs,
11488      AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11489      aAix_Rwlock_Initializer_1Tests,   apzAix_Rwlock_Initializer_1Patch, 0 },
11491   {  zAix_Physadr_TName,    zAix_Physadr_TList,
11492      apzAix_Physadr_TMachs,
11493      AIX_PHYSADR_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11494      aAix_Physadr_TTests,   apzAix_Physadr_TPatch, 0 },
11496   {  zAix_PthreadName,    zAix_PthreadList,
11497      apzAix_PthreadMachs,
11498      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11499      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
11501   {  zAix_Stdint_1Name,    zAix_Stdint_1List,
11502      apzAix_Stdint_1Machs,
11503      AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11504      aAix_Stdint_1Tests,   apzAix_Stdint_1Patch, 0 },
11506   {  zAix_Stdint_2Name,    zAix_Stdint_2List,
11507      apzAix_Stdint_2Machs,
11508      AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11509      aAix_Stdint_2Tests,   apzAix_Stdint_2Patch, 0 },
11511   {  zAix_Stdint_3Name,    zAix_Stdint_3List,
11512      apzAix_Stdint_3Machs,
11513      AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11514      aAix_Stdint_3Tests,   apzAix_Stdint_3Patch, 0 },
11516   {  zAix_Stdint_4Name,    zAix_Stdint_4List,
11517      apzAix_Stdint_4Machs,
11518      AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11519      aAix_Stdint_4Tests,   apzAix_Stdint_4Patch, 0 },
11521   {  zAix_Stdint_5Name,    zAix_Stdint_5List,
11522      apzAix_Stdint_5Machs,
11523      AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11524      aAix_Stdint_5Tests,   apzAix_Stdint_5Patch, 0 },
11526   {  zAix_Stdio_InlineName,    zAix_Stdio_InlineList,
11527      apzAix_Stdio_InlineMachs,
11528      AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11529      aAix_Stdio_InlineTests,   apzAix_Stdio_InlinePatch, 0 },
11531   {  zAix_Stdlib_MallocName,    zAix_Stdlib_MallocList,
11532      apzAix_Stdlib_MallocMachs,
11533      AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11534      aAix_Stdlib_MallocTests,   apzAix_Stdlib_MallocPatch, 0 },
11536   {  zAix_Stdlib_ReallocName,    zAix_Stdlib_ReallocList,
11537      apzAix_Stdlib_ReallocMachs,
11538      AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11539      aAix_Stdlib_ReallocTests,   apzAix_Stdlib_ReallocPatch, 0 },
11541   {  zAix_Stdlib_CallocName,    zAix_Stdlib_CallocList,
11542      apzAix_Stdlib_CallocMachs,
11543      AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11544      aAix_Stdlib_CallocTests,   apzAix_Stdlib_CallocPatch, 0 },
11546   {  zAix_Stdlib_VallocName,    zAix_Stdlib_VallocList,
11547      apzAix_Stdlib_VallocMachs,
11548      AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11549      aAix_Stdlib_VallocTests,   apzAix_Stdlib_VallocPatch, 0 },
11551   {  zAix_Stdlib_Vec_MallocName,    zAix_Stdlib_Vec_MallocList,
11552      apzAix_Stdlib_Vec_MallocMachs,
11553      AIX_STDLIB_VEC_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11554      aAix_Stdlib_Vec_MallocTests,   apzAix_Stdlib_Vec_MallocPatch, 0 },
11556   {  zAix_Stdlib_Vec_CallocName,    zAix_Stdlib_Vec_CallocList,
11557      apzAix_Stdlib_Vec_CallocMachs,
11558      AIX_STDLIB_VEC_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11559      aAix_Stdlib_Vec_CallocTests,   apzAix_Stdlib_Vec_CallocPatch, 0 },
11561   {  zAix_Strtof_ConstName,    zAix_Strtof_ConstList,
11562      apzAix_Strtof_ConstMachs,
11563      AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11564      aAix_Strtof_ConstTests,   apzAix_Strtof_ConstPatch, 0 },
11566   {  zAix_SysmachineName,    zAix_SysmachineList,
11567      apzAix_SysmachineMachs,
11568      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11569      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
11571   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
11572      apzAix_Syswait_2Machs,
11573      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11574      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
11576   {  zAix_VolatileName,    zAix_VolatileList,
11577      apzAix_VolatileMachs,
11578      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11579      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
11581   {  zAix_UnistdName,    zAix_UnistdList,
11582      apzAix_UnistdMachs,
11583      AIX_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11584      aAix_UnistdTests,   apzAix_UnistdPatch, 0 },
11586   {  zAlpha___AssertName,    zAlpha___AssertList,
11587      apzAlpha___AssertMachs,
11588      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11589      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
11591   {  zAlpha_AssertName,    zAlpha_AssertList,
11592      apzAlpha_AssertMachs,
11593      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11594      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
11596   {  zAlpha_GetoptName,    zAlpha_GetoptList,
11597      apzAlpha_GetoptMachs,
11598      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11599      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
11601   {  zAlpha_If_SemicolonName,    zAlpha_If_SemicolonList,
11602      apzAlpha_If_SemicolonMachs,
11603      ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11604      aAlpha_If_SemicolonTests,   apzAlpha_If_SemicolonPatch, 0 },
11606   {  zAlpha_ParensName,    zAlpha_ParensList,
11607      apzAlpha_ParensMachs,
11608      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11609      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
11611   {  zAlpha_SbrkName,    zAlpha_SbrkList,
11612      apzAlpha_SbrkMachs,
11613      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11614      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
11616   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
11617      apzAvoid_Bool_DefineMachs,
11618      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11619      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
11621   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
11622      apzAvoid_Bool_TypeMachs,
11623      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11624      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
11626   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
11627      apzAvoid_Wchar_T_TypeMachs,
11628      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11629      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
11631   {  zBad_Struct_TermName,    zBad_Struct_TermList,
11632      apzBad_Struct_TermMachs,
11633      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11634      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
11636   {  zBadquoteName,    zBadquoteList,
11637      apzBadquoteMachs,
11638      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11639      aBadquoteTests,   apzBadquotePatch, 0 },
11641   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
11642      apzBroken_Assert_StdioMachs,
11643      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11644      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
11646   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
11647      apzBroken_Assert_StdlibMachs,
11648      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11649      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
11651   {  zBroken_CabsName,    zBroken_CabsList,
11652      apzBroken_CabsMachs,
11653      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
11654      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
11656   {  zBroken_NanName,    zBroken_NanList,
11657      apzBroken_NanMachs,
11658      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11659      aBroken_NanTests,   apzBroken_NanPatch, 0 },
11661   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
11662      apzBsd_Stdio_Attrs_ConflictMachs,
11663      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11664      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
11666   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
11667      apzCtrl_Quotes_DefMachs,
11668      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11669      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
11671   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
11672      apzCtrl_Quotes_UseMachs,
11673      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11674      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
11676   {  zCxx_UnreadyName,    zCxx_UnreadyList,
11677      apzCxx_UnreadyMachs,
11678      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11679      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
11681   {  zDarwin_AvailabilityinternalName,    zDarwin_AvailabilityinternalList,
11682      apzDarwin_AvailabilityinternalMachs,
11683      DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11684      aDarwin_AvailabilityinternalTests,   apzDarwin_AvailabilityinternalPatch, 0 },
11686   {  zDarwin_9_Long_Double_Funcs_2Name,    zDarwin_9_Long_Double_Funcs_2List,
11687      apzDarwin_9_Long_Double_Funcs_2Machs,
11688      DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11689      aDarwin_9_Long_Double_Funcs_2Tests,   apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
11691   {  zDarwin_ExterncName,    zDarwin_ExterncList,
11692      apzDarwin_ExterncMachs,
11693      DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11694      aDarwin_ExterncTests,   apzDarwin_ExterncPatch, 0 },
11696   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
11697      apzDarwin_Gcc4_BreakageMachs,
11698      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11699      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
11701   {  zDarwin_Ll_Funcs_AvailName,    zDarwin_Ll_Funcs_AvailList,
11702      apzDarwin_Ll_Funcs_AvailMachs,
11703      DARWIN_LL_FUNCS_AVAIL_TEST_CT, FD_MACH_ONLY,
11704      aDarwin_Ll_Funcs_AvailTests,   apzDarwin_Ll_Funcs_AvailPatch, 0 },
11706   {  zDarwin_Longjmp_NoreturnName,    zDarwin_Longjmp_NoreturnList,
11707      apzDarwin_Longjmp_NoreturnMachs,
11708      DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11709      aDarwin_Longjmp_NoreturnTests,   apzDarwin_Longjmp_NoreturnPatch, 0 },
11711   {  zDarwin_Os_Trace_1Name,    zDarwin_Os_Trace_1List,
11712      apzDarwin_Os_Trace_1Machs,
11713      DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11714      aDarwin_Os_Trace_1Tests,   apzDarwin_Os_Trace_1Patch, 0 },
11716   {  zDarwin_Os_Trace_2Name,    zDarwin_Os_Trace_2List,
11717      apzDarwin_Os_Trace_2Machs,
11718      DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11719      aDarwin_Os_Trace_2Tests,   apzDarwin_Os_Trace_2Patch, 0 },
11721   {  zDarwin_Os_Trace_3Name,    zDarwin_Os_Trace_3List,
11722      apzDarwin_Os_Trace_3Machs,
11723      DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11724      aDarwin_Os_Trace_3Tests,   apzDarwin_Os_Trace_3Patch, 0 },
11726   {  zDarwin_Os_Base_1Name,    zDarwin_Os_Base_1List,
11727      apzDarwin_Os_Base_1Machs,
11728      DARWIN_OS_BASE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11729      aDarwin_Os_Base_1Tests,   apzDarwin_Os_Base_1Patch, 0 },
11731   {  zDarwin_Dispatch_Object_1Name,    zDarwin_Dispatch_Object_1List,
11732      apzDarwin_Dispatch_Object_1Machs,
11733      DARWIN_DISPATCH_OBJECT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11734      aDarwin_Dispatch_Object_1Tests,   apzDarwin_Dispatch_Object_1Patch, 0 },
11736   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
11737      apzDarwin_Private_ExternMachs,
11738      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11739      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
11741   {  zDarwin_Stdint_1Name,    zDarwin_Stdint_1List,
11742      apzDarwin_Stdint_1Machs,
11743      DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11744      aDarwin_Stdint_1Tests,   apzDarwin_Stdint_1Patch, 0 },
11746   {  zDarwin_Stdint_2Name,    zDarwin_Stdint_2List,
11747      apzDarwin_Stdint_2Machs,
11748      DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11749      aDarwin_Stdint_2Tests,   apzDarwin_Stdint_2Patch, 0 },
11751   {  zDarwin_Stdint_3Name,    zDarwin_Stdint_3List,
11752      apzDarwin_Stdint_3Machs,
11753      DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11754      aDarwin_Stdint_3Tests,   apzDarwin_Stdint_3Patch, 0 },
11756   {  zDarwin_Stdint_4Name,    zDarwin_Stdint_4List,
11757      apzDarwin_Stdint_4Machs,
11758      DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11759      aDarwin_Stdint_4Tests,   apzDarwin_Stdint_4Patch, 0 },
11761   {  zDarwin_Stdint_5Name,    zDarwin_Stdint_5List,
11762      apzDarwin_Stdint_5Machs,
11763      DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11764      aDarwin_Stdint_5Tests,   apzDarwin_Stdint_5Patch, 0 },
11766   {  zDarwin_Stdint_6Name,    zDarwin_Stdint_6List,
11767      apzDarwin_Stdint_6Machs,
11768      DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11769      aDarwin_Stdint_6Tests,   apzDarwin_Stdint_6Patch, 0 },
11771   {  zDarwin_Stdint_7Name,    zDarwin_Stdint_7List,
11772      apzDarwin_Stdint_7Machs,
11773      DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11774      aDarwin_Stdint_7Tests,   apzDarwin_Stdint_7Patch, 0 },
11776   {  zDarwin_Ucred__AtomicName,    zDarwin_Ucred__AtomicList,
11777      apzDarwin_Ucred__AtomicMachs,
11778      DARWIN_UCRED__ATOMIC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11779      aDarwin_Ucred__AtomicTests,   apzDarwin_Ucred__AtomicPatch, 0 },
11781   {  zDarwin_Flt_Eval_MethodName,    zDarwin_Flt_Eval_MethodList,
11782      apzDarwin_Flt_Eval_MethodMachs,
11783      DARWIN_FLT_EVAL_METHOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11784      aDarwin_Flt_Eval_MethodTests,   apzDarwin_Flt_Eval_MethodPatch, 0 },
11786   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
11787      apzDec_Intern_AsmMachs,
11788      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
11789      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
11791   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
11792      apzDjgpp_Wchar_HMachs,
11793      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11794      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
11796   {  zEcd_CursorName,    zEcd_CursorList,
11797      apzEcd_CursorMachs,
11798      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11799      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
11801   {  zFeraiseexcept_Nosse_DivbyzeroName,    zFeraiseexcept_Nosse_DivbyzeroList,
11802      apzFeraiseexcept_Nosse_DivbyzeroMachs,
11803      FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11804      aFeraiseexcept_Nosse_DivbyzeroTests,   apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
11806   {  zFeraiseexcept_Nosse_InvalidName,    zFeraiseexcept_Nosse_InvalidList,
11807      apzFeraiseexcept_Nosse_InvalidMachs,
11808      FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11809      aFeraiseexcept_Nosse_InvalidTests,   apzFeraiseexcept_Nosse_InvalidPatch, 0 },
11811   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
11812      apzFreebsd_Gcc3_BreakageMachs,
11813      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11814      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
11816   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
11817      apzFreebsd_Gcc4_BreakageMachs,
11818      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11819      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
11821   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
11822      apzGlibc_C99_Inline_1Machs,
11823      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11824      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
11826   {  zGlibc_C99_Inline_1aName,    zGlibc_C99_Inline_1aList,
11827      apzGlibc_C99_Inline_1aMachs,
11828      GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11829      aGlibc_C99_Inline_1aTests,   apzGlibc_C99_Inline_1aPatch, 0 },
11831   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
11832      apzGlibc_C99_Inline_2Machs,
11833      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
11834      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
11836   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
11837      apzGlibc_C99_Inline_3Machs,
11838      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11839      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
11841   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
11842      apzGlibc_C99_Inline_4Machs,
11843      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11844      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
11846   {  zGlibc_Cxx_Floatn_1Name,    zGlibc_Cxx_Floatn_1List,
11847      apzGlibc_Cxx_Floatn_1Machs,
11848      GLIBC_CXX_FLOATN_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11849      aGlibc_Cxx_Floatn_1Tests,   apzGlibc_Cxx_Floatn_1Patch, 0 },
11851   {  zGlibc_Cxx_Floatn_2Name,    zGlibc_Cxx_Floatn_2List,
11852      apzGlibc_Cxx_Floatn_2Machs,
11853      GLIBC_CXX_FLOATN_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11854      aGlibc_Cxx_Floatn_2Tests,   apzGlibc_Cxx_Floatn_2Patch, 0 },
11856   {  zGlibc_Cxx_Floatn_3Name,    zGlibc_Cxx_Floatn_3List,
11857      apzGlibc_Cxx_Floatn_3Machs,
11858      GLIBC_CXX_FLOATN_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11859      aGlibc_Cxx_Floatn_3Tests,   apzGlibc_Cxx_Floatn_3Patch, 0 },
11861   {  zGlibc_Cxx_Floatn_4Name,    zGlibc_Cxx_Floatn_4List,
11862      apzGlibc_Cxx_Floatn_4Machs,
11863      GLIBC_CXX_FLOATN_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11864      aGlibc_Cxx_Floatn_4Tests,   apzGlibc_Cxx_Floatn_4Patch, 0 },
11866   {  zGlibc_Cxx_Floatn_5Name,    zGlibc_Cxx_Floatn_5List,
11867      apzGlibc_Cxx_Floatn_5Machs,
11868      GLIBC_CXX_FLOATN_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11869      aGlibc_Cxx_Floatn_5Tests,   apzGlibc_Cxx_Floatn_5Patch, 0 },
11871   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
11872      apzGlibc_Mutex_InitMachs,
11873      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
11874      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
11876   {  zGlibc_StdintName,    zGlibc_StdintList,
11877      apzGlibc_StdintMachs,
11878      GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11879      aGlibc_StdintTests,   apzGlibc_StdintPatch, 0 },
11881   {  zGlibc_StrncpyName,    zGlibc_StrncpyList,
11882      apzGlibc_StrncpyMachs,
11883      GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11884      aGlibc_StrncpyTests,   apzGlibc_StrncpyPatch, 0 },
11886   {  zGlibc_TgmathName,    zGlibc_TgmathList,
11887      apzGlibc_TgmathMachs,
11888      GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11889      aGlibc_TgmathTests,   apzGlibc_TgmathPatch, 0 },
11891   {  zGnu_TypesName,    zGnu_TypesList,
11892      apzGnu_TypesMachs,
11893      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
11894      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
11896   {  zHp_InlineName,    zHp_InlineList,
11897      apzHp_InlineMachs,
11898      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11899      aHp_InlineTests,   apzHp_InlinePatch, 0 },
11901   {  zHp_SysfileName,    zHp_SysfileList,
11902      apzHp_SysfileMachs,
11903      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11904      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
11906   {  zHppa_Hpux_Fp_MacrosName,    zHppa_Hpux_Fp_MacrosList,
11907      apzHppa_Hpux_Fp_MacrosMachs,
11908      HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11909      aHppa_Hpux_Fp_MacrosTests,   apzHppa_Hpux_Fp_MacrosPatch, 0 },
11911   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
11912      apzHpux10_Cpp_Pow_InlineMachs,
11913      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11914      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
11916   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
11917      apzHpux11_Cpp_Pow_InlineMachs,
11918      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11919      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
11921   {  zHpux_Math_ConstexprName,    zHpux_Math_ConstexprList,
11922      apzHpux_Math_ConstexprMachs,
11923      HPUX_MATH_CONSTEXPR_TEST_CT, FD_MACH_ONLY,
11924      aHpux_Math_ConstexprTests,   apzHpux_Math_ConstexprPatch, 0 },
11926   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
11927      apzHpux10_Ctype_Declarations1Machs,
11928      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11929      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
11931   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
11932      apzHpux10_Ctype_Declarations2Machs,
11933      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11934      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
11936   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
11937      apzHpux10_Stdio_DeclarationsMachs,
11938      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11939      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
11941   {  zHppa_Hpux11_AllocaName,    zHppa_Hpux11_AllocaList,
11942      apzHppa_Hpux11_AllocaMachs,
11943      HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11944      aHppa_Hpux11_AllocaTests,   apzHppa_Hpux11_AllocaPatch, 0 },
11946   {  zHpux11_AbsName,    zHpux11_AbsList,
11947      apzHpux11_AbsMachs,
11948      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11949      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
11951   {  zHpux11_Lwp_Rwlock_ValidName,    zHpux11_Lwp_Rwlock_ValidList,
11952      apzHpux11_Lwp_Rwlock_ValidMachs,
11953      HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11954      aHpux11_Lwp_Rwlock_ValidTests,   apzHpux11_Lwp_Rwlock_ValidPatch, 0 },
11956   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
11957      apzHpux11_Extern_SendfileMachs,
11958      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11959      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
11961   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
11962      apzHpux11_Extern_SendpathMachs,
11963      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11964      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
11966   {  zHpux11_FabsfName,    zHpux11_FabsfList,
11967      apzHpux11_FabsfMachs,
11968      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11969      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
11971   {  zHpux11_Pthread_PointerName,    zHpux11_Pthread_PointerList,
11972      apzHpux11_Pthread_PointerMachs,
11973      HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11974      aHpux11_Pthread_PointerTests,   apzHpux11_Pthread_PointerPatch, 0 },
11976   {  zHpux11_Pthread_ConstName,    zHpux11_Pthread_ConstList,
11977      apzHpux11_Pthread_ConstMachs,
11978      HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11979      aHpux11_Pthread_ConstTests,   apzHpux11_Pthread_ConstPatch, 0 },
11981   {  zHpux11_Size_TName,    zHpux11_Size_TList,
11982      apzHpux11_Size_TMachs,
11983      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11984      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
11986   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
11987      apzHpux11_SnprintfMachs,
11988      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11989      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
11991   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
11992      apzHpux11_VsnprintfMachs,
11993      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11994      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
11996   {  zHpux_VsscanfName,    zHpux_VsscanfList,
11997      apzHpux_VsscanfMachs,
11998      HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11999      aHpux_VsscanfTests,   apzHpux_VsscanfPatch, 0 },
12001   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
12002      apzHpux8_Bogus_InlinesMachs,
12003      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
12004      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
12006   {  zHpux_C99_IntptrName,    zHpux_C99_IntptrList,
12007      apzHpux_C99_IntptrMachs,
12008      HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
12009      aHpux_C99_IntptrTests,   apzHpux_C99_IntptrPatch, 0 },
12011   {  zHpux_C99_InttypesName,    zHpux_C99_InttypesList,
12012      apzHpux_C99_InttypesMachs,
12013      HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
12014      aHpux_C99_InttypesTests,   apzHpux_C99_InttypesPatch, 0 },
12016   {  zHpux_C99_Inttypes2Name,    zHpux_C99_Inttypes2List,
12017      apzHpux_C99_Inttypes2Machs,
12018      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
12019      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
12021   {  zHpux_C99_Inttypes3Name,    zHpux_C99_Inttypes3List,
12022      apzHpux_C99_Inttypes3Machs,
12023      HPUX_C99_INTTYPES3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12024      aHpux_C99_Inttypes3Tests,   apzHpux_C99_Inttypes3Patch, 0 },
12026   {  zHpux_C99_Inttypes4Name,    zHpux_C99_Inttypes4List,
12027      apzHpux_C99_Inttypes4Machs,
12028      HPUX_C99_INTTYPES4_TEST_CT, FD_MACH_ONLY,
12029      aHpux_C99_Inttypes4Tests,   apzHpux_C99_Inttypes4Patch, 0 },
12031   {  zHpux_C99_Inttypes5Name,    zHpux_C99_Inttypes5List,
12032      apzHpux_C99_Inttypes5Machs,
12033      HPUX_C99_INTTYPES5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12034      aHpux_C99_Inttypes5Tests,   apzHpux_C99_Inttypes5Patch, 0 },
12036   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
12037      apzHpux_Ctype_MacrosMachs,
12038      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12039      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
12041   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
12042      apzHpux_Extern_ErrnoMachs,
12043      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12044      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
12046   {  zHpux_HtonlName,    zHpux_HtonlList,
12047      apzHpux_HtonlMachs,
12048      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12049      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
12051   {  zHpux_Imaginary_IName,    zHpux_Imaginary_IList,
12052      apzHpux_Imaginary_IMachs,
12053      HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12054      aHpux_Imaginary_ITests,   apzHpux_Imaginary_IPatch, 0 },
12056   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
12057      apzHpux_Inttype_Int8_TMachs,
12058      HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12059      aHpux_Inttype_Int8_TTests,   apzHpux_Inttype_Int8_TPatch, 0 },
12061   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
12062      apzHpux_Long_DoubleMachs,
12063      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
12064      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
12066   {  zHpux_Long_Double_2Name,    zHpux_Long_Double_2List,
12067      apzHpux_Long_Double_2Machs,
12068      HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12069      aHpux_Long_Double_2Tests,   apzHpux_Long_Double_2Patch, 0 },
12071   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
12072      apzHpux_Pthread_InitializersMachs,
12073      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
12074      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
12076   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
12077      apzHpux_Spu_InfoMachs,
12078      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12079      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
12081   {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
12082      apzHpux_Stdint_Least_FastMachs,
12083      HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12084      aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
12086   {  zHpux_LongjmpName,    zHpux_LongjmpList,
12087      apzHpux_LongjmpMachs,
12088      HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12089      aHpux_LongjmpTests,   apzHpux_LongjmpPatch, 0 },
12091   {  zHpux_SystimeName,    zHpux_SystimeList,
12092      apzHpux_SystimeMachs,
12093      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12094      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
12096   {  zHuge_Val_HexName,    zHuge_Val_HexList,
12097      apzHuge_Val_HexMachs,
12098      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12099      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
12101   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
12102      apzHuge_Valf_HexMachs,
12103      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12104      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
12106   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
12107      apzHuge_Vall_HexMachs,
12108      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12109      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
12111   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
12112      apzInt_Abort_Free_And_ExitMachs,
12113      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12114      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
12116   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
12117      apzIo_Quotes_DefMachs,
12118      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12119      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
12121   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
12122      apzIo_Quotes_UseMachs,
12123      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12124      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
12126   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
12127      apzIp_Missing_SemiMachs,
12128      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
12129      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
12131   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
12132      apzIrix_Limits_ConstMachs,
12133      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12134      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
12136   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
12137      apzIrix_Stdio_Va_ListMachs,
12138      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12139      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
12141   {  zKandr_ConcatName,    zKandr_ConcatList,
12142      apzKandr_ConcatMachs,
12143      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12144      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
12146   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
12147      apzLinux_Ia64_UcontextMachs,
12148      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12149      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
12151   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
12152      apzLynxos_No_Warning_In_Sys_Time_HMachs,
12153      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12154      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
12156   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
12157      apzLynxos_Missing_PutenvMachs,
12158      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12159      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
12161   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
12162      apzMachine_Ansi_H_Va_ListMachs,
12163      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12164      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
12166   {  zMachine_NameName,    zMachine_NameList,
12167      apzMachine_NameMachs,
12168      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12169      aMachine_NameTests,   apzMachine_NamePatch, 0 },
12171   {  zMath_ExceptionName,    zMath_ExceptionList,
12172      apzMath_ExceptionMachs,
12173      MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
12174      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
12176   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
12177      apzMath_Huge_Val_From_Dbl_MaxMachs,
12178      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
12179      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
12181   {  zNested_Auth_DesName,    zNested_Auth_DesList,
12182      apzNested_Auth_DesMachs,
12183      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12184      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
12186   {  zNetbsd_C99_Inline_1Name,    zNetbsd_C99_Inline_1List,
12187      apzNetbsd_C99_Inline_1Machs,
12188      NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12189      aNetbsd_C99_Inline_1Tests,   apzNetbsd_C99_Inline_1Patch, 0 },
12191   {  zNetbsd_C99_Inline_2Name,    zNetbsd_C99_Inline_2List,
12192      apzNetbsd_C99_Inline_2Machs,
12193      NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12194      aNetbsd_C99_Inline_2Tests,   apzNetbsd_C99_Inline_2Patch, 0 },
12196   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
12197      apzNetbsd_Extra_SemicolonMachs,
12198      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12199      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
12201   {  zNewlib_Stdint_1Name,    zNewlib_Stdint_1List,
12202      apzNewlib_Stdint_1Machs,
12203      NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
12204      aNewlib_Stdint_1Tests,   apzNewlib_Stdint_1Patch, 0 },
12206   {  zNewlib_Stdint_2Name,    zNewlib_Stdint_2List,
12207      apzNewlib_Stdint_2Machs,
12208      NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12209      aNewlib_Stdint_2Tests,   apzNewlib_Stdint_2Patch, 0 },
12211   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
12212      apzNext_Math_PrefixMachs,
12213      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12214      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
12216   {  zNext_TemplateName,    zNext_TemplateList,
12217      apzNext_TemplateMachs,
12218      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12219      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
12221   {  zNext_VolitileName,    zNext_VolitileList,
12222      apzNext_VolitileMachs,
12223      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12224      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
12226   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
12227      apzNext_Wait_UnionMachs,
12228      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12229      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
12231   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
12232      apzNodeent_SyntaxMachs,
12233      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12234      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
12236   {  zOpenbsd_Null_DefinitionName,    zOpenbsd_Null_DefinitionList,
12237      apzOpenbsd_Null_DefinitionMachs,
12238      OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12239      aOpenbsd_Null_DefinitionTests,   apzOpenbsd_Null_DefinitionPatch, 0 },
12241   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
12242      apzObstack_Lvalue_CastMachs,
12243      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12244      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
12246   {  zOpenbsd_Va_StartName,    zOpenbsd_Va_StartList,
12247      apzOpenbsd_Va_StartMachs,
12248      OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12249      aOpenbsd_Va_StartTests,   apzOpenbsd_Va_StartPatch, 0 },
12251   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
12252      apzOsf_Namespace_AMachs,
12253      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12254      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
12256   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
12257      apzOsf_Namespace_CMachs,
12258      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12259      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
12261   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
12262      apzPthread_Incomplete_Struct_ArgumentMachs,
12263      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12264      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
12266   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
12267      apzRead_Ret_TypeMachs,
12268      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12269      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
12271   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
12272      apzRpc_Xdr_Lvalue_Cast_AMachs,
12273      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12274      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
12276   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
12277      apzRpc_Xdr_Lvalue_Cast_BMachs,
12278      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12279      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
12281   {  zRs6000_DoubleName,    zRs6000_DoubleList,
12282      apzRs6000_DoubleMachs,
12283      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12284      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
12286   {  zRs6000_FchmodName,    zRs6000_FchmodList,
12287      apzRs6000_FchmodMachs,
12288      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12289      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
12291   {  zRs6000_ParamName,    zRs6000_ParamList,
12292      apzRs6000_ParamMachs,
12293      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12294      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
12296   {  zSolaris___RestrictName,    zSolaris___RestrictList,
12297      apzSolaris___RestrictMachs,
12298      SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12299      aSolaris___RestrictTests,   apzSolaris___RestrictPatch, 0 },
12301   {  zSolaris_ComplexName,    zSolaris_ComplexList,
12302      apzSolaris_ComplexMachs,
12303      SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
12304      aSolaris_ComplexTests,   apzSolaris_ComplexPatch, 0 },
12306   {  zSolaris_Complex_CxxName,    zSolaris_Complex_CxxList,
12307      apzSolaris_Complex_CxxMachs,
12308      SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
12309      aSolaris_Complex_CxxTests,   apzSolaris_Complex_CxxPatch, 0 },
12311   {  zSolaris_Cxx_LinkageName,    zSolaris_Cxx_LinkageList,
12312      apzSolaris_Cxx_LinkageMachs,
12313      SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12314      aSolaris_Cxx_LinkageTests,   apzSolaris_Cxx_LinkagePatch, 0 },
12316   {  zSolaris_Getc_Strict_StdcName,    zSolaris_Getc_Strict_StdcList,
12317      apzSolaris_Getc_Strict_StdcMachs,
12318      SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12319      aSolaris_Getc_Strict_StdcTests,   apzSolaris_Getc_Strict_StdcPatch, 0 },
12321   {  zSolaris_Gets_C11Name,    zSolaris_Gets_C11List,
12322      apzSolaris_Gets_C11Machs,
12323      SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12324      aSolaris_Gets_C11Tests,   apzSolaris_Gets_C11Patch, 0 },
12326   {  zSolaris_Gets_Cxx14Name,    zSolaris_Gets_Cxx14List,
12327      apzSolaris_Gets_Cxx14Machs,
12328      SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12329      aSolaris_Gets_Cxx14Tests,   apzSolaris_Gets_Cxx14Patch, 0 },
12331   {  zSolaris_Int_ConstName,    zSolaris_Int_ConstList,
12332      apzSolaris_Int_ConstMachs,
12333      SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12334      aSolaris_Int_ConstTests,   apzSolaris_Int_ConstPatch, 0 },
12336   {  zSolaris_Int_Limits_1Name,    zSolaris_Int_Limits_1List,
12337      apzSolaris_Int_Limits_1Machs,
12338      SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12339      aSolaris_Int_Limits_1Tests,   apzSolaris_Int_Limits_1Patch, 0 },
12341   {  zSolaris_Int_Limits_2Name,    zSolaris_Int_Limits_2List,
12342      apzSolaris_Int_Limits_2Machs,
12343      SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12344      aSolaris_Int_Limits_2Tests,   apzSolaris_Int_Limits_2Patch, 0 },
12346   {  zSolaris_Int_Limits_3Name,    zSolaris_Int_Limits_3List,
12347      apzSolaris_Int_Limits_3Machs,
12348      SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12349      aSolaris_Int_Limits_3Tests,   apzSolaris_Int_Limits_3Patch, 0 },
12351   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
12352      apzSolaris_Math_1Machs,
12353      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12354      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
12356   {  zSolaris_Math_10Name,    zSolaris_Math_10List,
12357      apzSolaris_Math_10Machs,
12358      SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12359      aSolaris_Math_10Tests,   apzSolaris_Math_10Patch, 0 },
12361   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
12362      apzSolaris_Math_2Machs,
12363      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12364      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
12366   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
12367      apzSolaris_Math_3Machs,
12368      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12369      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
12371   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
12372      apzSolaris_Math_4Machs,
12373      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12374      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
12376   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
12377      apzSolaris_Math_8Machs,
12378      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12379      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
12381   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
12382      apzSolaris_Math_9Machs,
12383      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12384      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
12386   {  zSolaris_Math_11Name,    zSolaris_Math_11List,
12387      apzSolaris_Math_11Machs,
12388      SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12389      aSolaris_Math_11Tests,   apzSolaris_Math_11Patch, 0 },
12391   {  zSolaris_Math_12Name,    zSolaris_Math_12List,
12392      apzSolaris_Math_12Machs,
12393      SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
12394      aSolaris_Math_12Tests,   apzSolaris_Math_12Patch, 0 },
12396   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
12397      apzSolaris_Once_Init_1Machs,
12398      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12399      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
12401   {  zSolaris_Posix_Spawn_RestrictName,    zSolaris_Posix_Spawn_RestrictList,
12402      apzSolaris_Posix_Spawn_RestrictMachs,
12403      SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12404      aSolaris_Posix_Spawn_RestrictTests,   apzSolaris_Posix_Spawn_RestrictPatch, 0 },
12406   {  zSolaris_Pow_Int_OverloadName,    zSolaris_Pow_Int_OverloadList,
12407      apzSolaris_Pow_Int_OverloadMachs,
12408      SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12409      aSolaris_Pow_Int_OverloadTests,   apzSolaris_Pow_Int_OverloadPatch, 0 },
12411   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
12412      apzSolaris_Rwlock_Init_1Machs,
12413      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12414      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
12416   {  zSolaris_Std___FilbufName,    zSolaris_Std___FilbufList,
12417      apzSolaris_Std___FilbufMachs,
12418      SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12419      aSolaris_Std___FilbufTests,   apzSolaris_Std___FilbufPatch, 0 },
12421   {  zSolaris_Std_Gets_Cxx14Name,    zSolaris_Std_Gets_Cxx14List,
12422      apzSolaris_Std_Gets_Cxx14Machs,
12423      SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12424      aSolaris_Std_Gets_Cxx14Tests,   apzSolaris_Std_Gets_Cxx14Patch, 0 },
12426   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
12427      apzSolaris_Stdio_TagMachs,
12428      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
12429      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
12431   {  zSolaris_Stdlib_NoreturnName,    zSolaris_Stdlib_NoreturnList,
12432      apzSolaris_Stdlib_NoreturnMachs,
12433      SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12434      aSolaris_Stdlib_NoreturnTests,   apzSolaris_Stdlib_NoreturnPatch, 0 },
12436   {  zStatsswtchName,    zStatsswtchList,
12437      apzStatsswtchMachs,
12438      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12439      aStatsswtchTests,   apzStatsswtchPatch, 0 },
12441   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
12442      apzStdio_Stdarg_HMachs,
12443      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
12444      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
12446   {  zStdio_Va_ListName,    zStdio_Va_ListList,
12447      apzStdio_Va_ListMachs,
12448      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
12449      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
12451   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
12452      apzStdio_Va_List_ClientsMachs,
12453      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
12454      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
12456   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
12457      apzStrict_Ansi_NotMachs,
12458      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12459      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
12461   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
12462      apzStrict_Ansi_Not_CtdMachs,
12463      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12464      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
12466   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
12467      apzStrict_Ansi_OnlyMachs,
12468      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12469      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
12471   {  zStruct_FileName,    zStruct_FileList,
12472      apzStruct_FileMachs,
12473      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12474      aStruct_FileTests,   apzStruct_FilePatch, 0 },
12476   {  zStruct_SockaddrName,    zStruct_SockaddrList,
12477      apzStruct_SockaddrMachs,
12478      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12479      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
12481   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
12482      apzSun_Auth_ProtoMachs,
12483      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12484      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
12486   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
12487      apzSun_Bogus_IfdefMachs,
12488      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12489      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
12491   {  zSun_CatmacroName,    zSun_CatmacroList,
12492      apzSun_CatmacroMachs,
12493      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12494      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
12496   {  zSun_MallocName,    zSun_MallocList,
12497      apzSun_MallocMachs,
12498      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
12499      aSun_MallocTests,   apzSun_MallocPatch, 0 },
12501   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
12502      apzSun_Rusers_SemiMachs,
12503      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
12504      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
12506   {  zSun_SignalName,    zSun_SignalList,
12507      apzSun_SignalMachs,
12508      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12509      aSun_SignalTests,   apzSun_SignalPatch, 0 },
12511   {  zSunos_StrlenName,    zSunos_StrlenList,
12512      apzSunos_StrlenMachs,
12513      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12514      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
12516   {  zSuse_Linux_Vt_CxxName,    zSuse_Linux_Vt_CxxList,
12517      apzSuse_Linux_Vt_CxxMachs,
12518      SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12519      aSuse_Linux_Vt_CxxTests,   apzSuse_Linux_Vt_CxxPatch, 0 },
12521   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
12522      apzSvr4_Disable_OptMachs,
12523      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
12524      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
12526   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
12527      apzSvr4_GetcwdMachs,
12528      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12529      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
12531   {  zSvr4_ProfilName,    zSvr4_ProfilList,
12532      apzSvr4_ProfilMachs,
12533      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12534      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
12536   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
12537      apzSvr4_Sighandler_TypeMachs,
12538      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12539      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
12541   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
12542      apzSvr4_Undeclared_GetrngeMachs,
12543      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12544      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
12546   {  zSysv68_StringName,    zSysv68_StringList,
12547      apzSysv68_StringMachs,
12548      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
12549      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
12551   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
12552      apzSysz_Stdlib_For_SunMachs,
12553      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12554      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
12556   {  zThread_KeywordName,    zThread_KeywordList,
12557      apzThread_KeywordMachs,
12558      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12559      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
12561   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
12562      apzTinfo_CplusplusMachs,
12563      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12564      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
12566   {  zUltrix_ConstName,    zUltrix_ConstList,
12567      apzUltrix_ConstMachs,
12568      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12569      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
12571   {  zUltrix_Const2Name,    zUltrix_Const2List,
12572      apzUltrix_Const2Machs,
12573      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12574      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
12576   {  zVa_I960_MacroName,    zVa_I960_MacroList,
12577      apzVa_I960_MacroMachs,
12578      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12579      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
12581   {  zVms_Add_Missing_BracesName,    zVms_Add_Missing_BracesList,
12582      apzVms_Add_Missing_BracesMachs,
12583      VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12584      aVms_Add_Missing_BracesTests,   apzVms_Add_Missing_BracesPatch, 0 },
12586   {  zVms_Decc_BuiltinName,    zVms_Decc_BuiltinList,
12587      apzVms_Decc_BuiltinMachs,
12588      VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
12589      aVms_Decc_BuiltinTests,   apzVms_Decc_BuiltinPatch, 0 },
12591   {  zVms_Define_Can_Use_Extern_PrefixName,    zVms_Define_Can_Use_Extern_PrefixList,
12592      apzVms_Define_Can_Use_Extern_PrefixMachs,
12593      VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12594      aVms_Define_Can_Use_Extern_PrefixTests,   apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
12596   {  zVms_Disable_Decc_String_BuiltinsName,    zVms_Disable_Decc_String_BuiltinsList,
12597      apzVms_Disable_Decc_String_BuiltinsMachs,
12598      VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12599      aVms_Disable_Decc_String_BuiltinsTests,   apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
12601   {  zVms_Do_Not_Redeclare_HostaliasName,    zVms_Do_Not_Redeclare_HostaliasList,
12602      apzVms_Do_Not_Redeclare_HostaliasMachs,
12603      VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12604      aVms_Do_Not_Redeclare_HostaliasTests,   apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
12606   {  zVms_Forward_Declare_StructName,    zVms_Forward_Declare_StructList,
12607      apzVms_Forward_Declare_StructMachs,
12608      VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12609      aVms_Forward_Declare_StructTests,   apzVms_Forward_Declare_StructPatch, 0 },
12611   {  zVms_No_64bit_GetoptName,    zVms_No_64bit_GetoptList,
12612      apzVms_No_64bit_GetoptMachs,
12613      VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12614      aVms_No_64bit_GetoptTests,   apzVms_No_64bit_GetoptPatch, 0 },
12616   {  zVms_Use_Fast_SetjmpName,    zVms_Use_Fast_SetjmpList,
12617      apzVms_Use_Fast_SetjmpMachs,
12618      VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12619      aVms_Use_Fast_SetjmpTests,   apzVms_Use_Fast_SetjmpPatch, 0 },
12621   {  zVms_Use_Pragma_Extern_ModelName,    zVms_Use_Pragma_Extern_ModelList,
12622      apzVms_Use_Pragma_Extern_ModelMachs,
12623      VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12624      aVms_Use_Pragma_Extern_ModelTests,   apzVms_Use_Pragma_Extern_ModelPatch, 0 },
12626   {  zVms_Use_Quoted_IncludeName,    zVms_Use_Quoted_IncludeList,
12627      apzVms_Use_Quoted_IncludeMachs,
12628      VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12629      aVms_Use_Quoted_IncludeTests,   apzVms_Use_Quoted_IncludePatch, 0 },
12631   {  zVoid_NullName,    zVoid_NullList,
12632      apzVoid_NullMachs,
12633      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12634      aVoid_NullTests,   apzVoid_NullPatch, 0 },
12636   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
12637      apzVxworks_Gcc_ProblemMachs,
12638      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
12639      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
12641   {  zVxworks_Ioctl_MacroName,    zVxworks_Ioctl_MacroList,
12642      apzVxworks_Ioctl_MacroMachs,
12643      VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12644      aVxworks_Ioctl_MacroTests,   apzVxworks_Ioctl_MacroPatch, 0 },
12646   {  zVxworks_Math_H_Fp_C99Name,    zVxworks_Math_H_Fp_C99List,
12647      apzVxworks_Math_H_Fp_C99Machs,
12648      VXWORKS_MATH_H_FP_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12649      aVxworks_Math_H_Fp_C99Tests,   apzVxworks_Math_H_Fp_C99Patch, 0 },
12651   {  zVxworks_Posix_MkdirName,    zVxworks_Posix_MkdirList,
12652      apzVxworks_Posix_MkdirMachs,
12653      VXWORKS_POSIX_MKDIR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12654      aVxworks_Posix_MkdirTests,   apzVxworks_Posix_MkdirPatch, 0 },
12656   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
12657      apzVxworks_Needs_VxtypesMachs,
12658      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12659      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
12661   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
12662      apzVxworks_Needs_VxworksMachs,
12663      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
12664      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
12666   {  zVxworks_Next_YvalsName,    zVxworks_Next_YvalsList,
12667      apzVxworks_Next_YvalsMachs,
12668      VXWORKS_NEXT_YVALS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12669      aVxworks_Next_YvalsTests,   apzVxworks_Next_YvalsPatch, 0 },
12671   {  zVxworks_RegsName,    zVxworks_RegsList,
12672      apzVxworks_RegsMachs,
12673      VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12674      aVxworks_RegsTests,   apzVxworks_RegsPatch, 0 },
12676   {  zVxworks_Posix_OpenName,    zVxworks_Posix_OpenList,
12677      apzVxworks_Posix_OpenMachs,
12678      VXWORKS_POSIX_OPEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12679      aVxworks_Posix_OpenTests,   apzVxworks_Posix_OpenPatch, 0 },
12681   {  zVxworks_TimeName,    zVxworks_TimeList,
12682      apzVxworks_TimeMachs,
12683      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12684      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
12686   {  zVxworks_Write_ConstName,    zVxworks_Write_ConstList,
12687      apzVxworks_Write_ConstMachs,
12688      VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12689      aVxworks_Write_ConstTests,   apzVxworks_Write_ConstPatch, 0 },
12691   {  zVxworks_Iolib_Include_UnistdName,    zVxworks_Iolib_Include_UnistdList,
12692      apzVxworks_Iolib_Include_UnistdMachs,
12693      VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12694      aVxworks_Iolib_Include_UnistdTests,   apzVxworks_Iolib_Include_UnistdPatch, 0 },
12696   {  zVxworks_Time_H_SyslibName,    zVxworks_Time_H_SyslibList,
12697      apzVxworks_Time_H_SyslibMachs,
12698      VXWORKS_TIME_H_SYSLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12699      aVxworks_Time_H_SyslibTests,   apzVxworks_Time_H_SyslibPatch, 0 },
12701   {  zX11_ClassName,    zX11_ClassList,
12702      apzX11_ClassMachs,
12703      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12704      aX11_ClassTests,   apzX11_ClassPatch, 0 },
12706   {  zX11_Class_UsageName,    zX11_Class_UsageList,
12707      apzX11_Class_UsageMachs,
12708      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12709      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
12711   {  zX11_NewName,    zX11_NewList,
12712      apzX11_NewMachs,
12713      X11_NEW_TEST_CT, FD_MACH_ONLY,
12714      aX11_NewTests,   apzX11_NewPatch, 0 },
12716   {  zX11_SprintfName,    zX11_SprintfList,
12717      apzX11_SprintfMachs,
12718      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
12719      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }