1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Monday March 12, 2012 at 04:25:19 PM MET
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mon Mar 12 16:25:19 MET 2012
11 * You must regenerate it. Use the ./genfixes script.
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.
18 * This file contains 223 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
24 * The Free Software Foundation, Inc.
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.
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.
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/>.
40 #define SED_PROGRAM "/usr/bin/sed"
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Aix_Stdio fix
48 tSCC zAab_Aix_StdioName[] =
52 * File name selection pattern
54 tSCC zAab_Aix_StdioList[] =
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Aix_StdioMachs[] = {
64 * content selection pattern - do fix if pattern found
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
76 static const char* apzAab_Aix_StdioPatch[] = {
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\
89 /* Alias the symbols using asm */\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\
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
106 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107 "AAB_darwin7_9_long_double_funcs";
110 * File name selection pattern
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113 "architecture/ppc/math.h\0";
115 * Machine/OS name selection pattern
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
122 * content bypass pattern - skip fix if pattern found
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
127 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
128 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
132 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
134 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135 "/* This file prototypes the long double functions available on Mac OS\n\
138 # undef __APPLE_CC__\n\
139 # define __APPLE_CC__ 1345\n\
140 # include_next <architecture/ppc/math.h>\n\
141 # undef __APPLE_CC__\n\
142 # define __APPLE_CC__ 1\n\
143 # ifndef __LIBMLDBL_COMPAT\n\
144 # ifdef __LONG_DOUBLE_128__\n\
145 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
147 # define __LIBMLDBL_COMPAT(sym)\n\
148 # endif /* __LONG_DOUBLE_128__ */\n\
149 # endif /* __LIBMLDBL_COMPAT */\n\
150 # ifdef __cplusplus\n\
153 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
154 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
155 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
156 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
157 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
158 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
159 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
160 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
161 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
162 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
163 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
164 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
165 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
166 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
167 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
168 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
169 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
170 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
171 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
172 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
173 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
174 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
175 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
176 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
177 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
178 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
179 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
180 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
181 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
182 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
183 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
184 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
185 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
186 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
187 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
188 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
189 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
190 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
191 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
192 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
193 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
194 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
195 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
196 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
197 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
198 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
199 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
200 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
201 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
202 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
203 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
204 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
205 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
206 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
207 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
208 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
209 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
210 # ifdef __cplusplus\n\
213 #endif /* __MATH__ */",
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
218 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
220 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221 "AAB_darwin7_9_long_double_funcs_2";
224 * File name selection pattern
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
229 * Machine/OS name selection pattern
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
236 * content selection pattern - do fix if pattern found
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239 "#include[ \\t]+\\\"";
241 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
242 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
246 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
248 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
251 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
256 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
258 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
259 "AAB_fd_zero_asm_posix_types_h";
262 * File name selection pattern
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265 "asm/posix_types.h\0";
267 * Machine/OS name selection pattern
269 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
270 "i[34567]86-*-linux*",
274 * content bypass pattern - skip fix if pattern found
276 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
278 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
283 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
284 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
285 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
286 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
287 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
290 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
292 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
293 "/* This file fixes a bug in the __FD_ZERO macro\n\
294 for older versions of the Linux kernel. */\n\
295 #ifndef _POSIX_TYPES_H_WRAPPER\n\
296 #include <features.h>\n\
297 #include_next <asm/posix_types.h>\n\n\
298 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
300 #define __FD_ZERO(fdsetp) \\\n\
302 int __d0, __d1; \\\n\
303 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
304 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
305 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
306 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
309 #define _POSIX_TYPES_H_WRAPPER\n\
310 #endif /* _POSIX_TYPES_H_WRAPPER */",
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
315 * Description of Aab_Fd_Zero_Gnu_Types_H fix
317 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
318 "AAB_fd_zero_gnu_types_h";
321 * File name selection pattern
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
326 * Machine/OS name selection pattern
328 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
329 "i[34567]86-*-linux*",
331 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
332 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
335 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
337 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
338 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
339 #ifndef _TYPES_H_WRAPPER\n\
340 #include <features.h>\n\
341 #include_next <gnu/types.h>\n\n\
342 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
344 # define __FD_ZERO(fdsetp) \\\n\
346 int __d0, __d1; \\\n\
347 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
348 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
349 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
350 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
353 #define _TYPES_H_WRAPPER\n\
354 #endif /* _TYPES_H_WRAPPER */",
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
359 * Description of Aab_Fd_Zero_Selectbits_H fix
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362 "AAB_fd_zero_selectbits_h";
365 * File name selection pattern
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
370 * Machine/OS name selection pattern
372 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
373 "i[34567]86-*-linux*",
375 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
376 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
379 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
381 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
382 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
383 #ifndef _SELECTBITS_H_WRAPPER\n\
384 #include <features.h>\n\
385 #include_next <selectbits.h>\n\n\
386 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
387 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
388 && __GLIBC_MINOR__ == 0\n\
390 #define __FD_ZERO(fdsetp) \\\\\n\
392 int __d0, __d1; \\\\\n\
393 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
394 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
395 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
396 / sizeof (__fd_mask)), \\\\\n\
397 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
398 : \"memory\"); \\\\\n\
401 #define _SELECTBITS_H_WRAPPER\n\
402 #endif /* _SELECTBITS_H_WRAPPER */",
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
407 * Description of Aab_Solaris_Sys_Varargs_H fix
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410 "AAB_solaris_sys_varargs_h";
413 * File name selection pattern
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
418 * Machine/OS name selection pattern
420 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
423 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
424 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
427 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
429 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
431 #include <stdarg.h>\n\
433 #include <varargs.h>\n\
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 * Description of Aab_Sun_Memcpy fix
441 tSCC zAab_Sun_MemcpyName[] =
445 * File name selection pattern
447 tSCC zAab_Sun_MemcpyList[] =
450 * Machine/OS name selection pattern
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
455 * content selection pattern - do fix if pattern found
457 tSCC zAab_Sun_MemcpySelect0[] =
458 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
460 #define AAB_SUN_MEMCPY_TEST_CT 1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
465 * Fix Command Arguments for Aab_Sun_Memcpy
467 static const char* apzAab_Sun_MemcpyPatch[] = {
468 "/* This file was generated by fixincludes */\n\
469 #ifndef __memory_h__\n\
470 #define __memory_h__\n\n\
472 extern void *memccpy();\n\
473 extern void *memchr();\n\
474 extern void *memcpy();\n\
475 extern void *memset();\n\
477 extern char *memccpy();\n\
478 extern char *memchr();\n\
479 extern char *memcpy();\n\
480 extern char *memset();\n\
481 #endif /* __STDC__ */\n\n\
482 extern int memcmp();\n\n\
483 #endif /* __memory_h__ */",
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
488 * Description of Aix_Complex fix
490 tSCC zAix_ComplexName[] =
494 * File name selection pattern
496 tSCC zAix_ComplexList[] =
499 * Machine/OS name selection pattern
501 tSCC* apzAix_ComplexMachs[] = {
506 * content selection pattern - do fix if pattern found
508 tSCC zAix_ComplexSelect0[] =
509 "#define[ \t]_Complex_I[ \t]__I";
511 #define AIX_COMPLEX_TEST_CT 1
512 static tTestDesc aAix_ComplexTests[] = {
513 { TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
516 * Fix Command Arguments for Aix_Complex
518 static const char* apzAix_ComplexPatch[] = {
520 "#define _Complex_I (__extension__ 1.0iF)",
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525 * Description of Aix_Net_If_Arp fix
527 tSCC zAix_Net_If_ArpName[] =
531 * File name selection pattern
533 tSCC zAix_Net_If_ArpList[] =
536 * Machine/OS name selection pattern
538 tSCC* apzAix_Net_If_ArpMachs[] = {
543 * content selection pattern - do fix if pattern found
545 tSCC zAix_Net_If_ArpSelect0[] =
546 "^struct fc_softc \\{";
548 #define AIX_NET_IF_ARP_TEST_CT 1
549 static tTestDesc aAix_Net_If_ArpTests[] = {
550 { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
553 * Fix Command Arguments for Aix_Net_If_Arp
555 static const char* apzAix_Net_If_ArpPatch[] = {
557 "typedef struct _fc_softc {",
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
562 * Description of Aix_Once_Init_1 fix
564 tSCC zAix_Once_Init_1Name[] =
568 * File name selection pattern
570 tSCC zAix_Once_Init_1List[] =
573 * Machine/OS name selection pattern
575 tSCC* apzAix_Once_Init_1Machs[] = {
580 * content selection pattern - do fix if pattern found
582 tSCC zAix_Once_Init_1Select0[] =
583 "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
586 #define AIX_ONCE_INIT_1_TEST_CT 1
587 static tTestDesc aAix_Once_Init_1Tests[] = {
588 { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, };
591 * Fix Command Arguments for Aix_Once_Init_1
593 static const char* apzAix_Once_Init_1Patch[] = {
595 "#define PTHREAD_ONCE_INIT \\\n\
599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
601 * Description of Aix_Once_Init_2 fix
603 tSCC zAix_Once_Init_2Name[] =
607 * File name selection pattern
609 tSCC zAix_Once_Init_2List[] =
612 * Machine/OS name selection pattern
614 tSCC* apzAix_Once_Init_2Machs[] = {
619 * content selection pattern - do fix if pattern found
621 tSCC zAix_Once_Init_2Select0[] =
625 #define AIX_ONCE_INIT_2_TEST_CT 1
626 static tTestDesc aAix_Once_Init_2Tests[] = {
627 { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, };
630 * Fix Command Arguments for Aix_Once_Init_2
632 static const char* apzAix_Once_Init_2Patch[] = {
638 /* * * * * * * * * * * * * * * * * * * * * * * * * *
640 * Description of Aix_Pthread fix
642 tSCC zAix_PthreadName[] =
646 * File name selection pattern
648 tSCC zAix_PthreadList[] =
651 * Machine/OS name selection pattern
653 #define apzAix_PthreadMachs (const char**)NULL
656 * content selection pattern - do fix if pattern found
658 tSCC zAix_PthreadSelect0[] =
659 "(#define [A-Za-z_0-9]+)(\\\\\n\
663 #define AIX_PTHREAD_TEST_CT 1
664 static tTestDesc aAix_PthreadTests[] = {
665 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
668 * Fix Command Arguments for Aix_Pthread
670 static const char* apzAix_PthreadPatch[] = {
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
677 * Description of Aix_Stdint_1 fix
679 tSCC zAix_Stdint_1Name[] =
683 * File name selection pattern
685 tSCC zAix_Stdint_1List[] =
686 "stdint-aix.h\0stdint.h\0";
688 * Machine/OS name selection pattern
690 tSCC* apzAix_Stdint_1Machs[] = {
695 * content selection pattern - do fix if pattern found
697 tSCC zAix_Stdint_1Select0[] =
698 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
699 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
701 #define AIX_STDINT_1_TEST_CT 1
702 static tTestDesc aAix_Stdint_1Tests[] = {
703 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
706 * Fix Command Arguments for Aix_Stdint_1
708 static const char* apzAix_Stdint_1Patch[] = {
710 "#define UINT8_MAX\t(255)\n\
711 #define UINT16_MAX\t(65535)",
714 /* * * * * * * * * * * * * * * * * * * * * * * * * *
716 * Description of Aix_Stdint_2 fix
718 tSCC zAix_Stdint_2Name[] =
722 * File name selection pattern
724 tSCC zAix_Stdint_2List[] =
725 "stdint-aix.h\0stdint.h\0";
727 * Machine/OS name selection pattern
729 tSCC* apzAix_Stdint_2Machs[] = {
734 * content selection pattern - do fix if pattern found
736 tSCC zAix_Stdint_2Select0[] =
737 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
738 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
739 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
741 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
742 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
743 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
745 #define AIX_STDINT_2_TEST_CT 1
746 static tTestDesc aAix_Stdint_2Tests[] = {
747 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
750 * Fix Command Arguments for Aix_Stdint_2
752 static const char* apzAix_Stdint_2Patch[] = {
754 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
755 #define INTPTR_MAX\t9223372036854775807L\n\
756 #define UINTPTR_MAX\t18446744073709551615UL\n\
758 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
759 #define INTPTR_MAX\t2147483647L\n\
760 #define UINTPTR_MAX\t4294967295UL",
763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
765 * Description of Aix_Stdint_3 fix
767 tSCC zAix_Stdint_3Name[] =
771 * File name selection pattern
773 tSCC zAix_Stdint_3List[] =
774 "stdint-aix.h\0stdint.h\0";
776 * Machine/OS name selection pattern
778 tSCC* apzAix_Stdint_3Machs[] = {
783 * content selection pattern - do fix if pattern found
785 tSCC zAix_Stdint_3Select0[] =
786 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
787 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
789 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
790 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
792 #define AIX_STDINT_3_TEST_CT 1
793 static tTestDesc aAix_Stdint_3Tests[] = {
794 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
797 * Fix Command Arguments for Aix_Stdint_3
799 static const char* apzAix_Stdint_3Patch[] = {
801 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
802 #define PTRDIFF_MAX\t9223372036854775807L\n\
804 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
805 #define PTRDIFF_MAX\t2147483647L",
808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
810 * Description of Aix_Stdint_4 fix
812 tSCC zAix_Stdint_4Name[] =
816 * File name selection pattern
818 tSCC zAix_Stdint_4List[] =
819 "stdint-aix.h\0stdint.h\0";
821 * Machine/OS name selection pattern
823 tSCC* apzAix_Stdint_4Machs[] = {
828 * content selection pattern - do fix if pattern found
830 tSCC zAix_Stdint_4Select0[] =
831 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
833 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
835 #define AIX_STDINT_4_TEST_CT 1
836 static tTestDesc aAix_Stdint_4Tests[] = {
837 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
840 * Fix Command Arguments for Aix_Stdint_4
842 static const char* apzAix_Stdint_4Patch[] = {
844 "#define SIZE_MAX\t18446744073709551615UL\n\
846 #define SIZE_MAX\t4294967295UL",
849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
851 * Description of Aix_Stdint_5 fix
853 tSCC zAix_Stdint_5Name[] =
857 * File name selection pattern
859 tSCC zAix_Stdint_5List[] =
860 "stdint-aix.h\0stdint.h\0";
862 * Machine/OS name selection pattern
864 tSCC* apzAix_Stdint_5Machs[] = {
869 * content selection pattern - do fix if pattern found
871 tSCC zAix_Stdint_5Select0[] =
872 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
873 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
875 #define AIX_STDINT_5_TEST_CT 1
876 static tTestDesc aAix_Stdint_5Tests[] = {
877 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
880 * Fix Command Arguments for Aix_Stdint_5
882 static const char* apzAix_Stdint_5Patch[] = {
884 "#define UINT8_C(c)\tc\n\
885 #define UINT16_C(c)\tc",
888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
890 * Description of Aix_Sysmachine fix
892 tSCC zAix_SysmachineName[] =
896 * File name selection pattern
898 tSCC zAix_SysmachineList[] =
901 * Machine/OS name selection pattern
903 #define apzAix_SysmachineMachs (const char**)NULL
906 * content selection pattern - do fix if pattern found
908 tSCC zAix_SysmachineSelect0[] =
911 #define AIX_SYSMACHINE_TEST_CT 1
912 static tTestDesc aAix_SysmachineTests[] = {
913 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
916 * Fix Command Arguments for Aix_Sysmachine
918 static const char* apzAix_SysmachinePatch[] = {
923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
925 * Description of Aix_Syswait_2 fix
927 tSCC zAix_Syswait_2Name[] =
931 * File name selection pattern
933 tSCC zAix_Syswait_2List[] =
936 * Machine/OS name selection pattern
938 #define apzAix_Syswait_2Machs (const char**)NULL
941 * content selection pattern - do fix if pattern found
943 tSCC zAix_Syswait_2Select0[] =
944 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
946 #define AIX_SYSWAIT_2_TEST_CT 1
947 static tTestDesc aAix_Syswait_2Tests[] = {
948 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
951 * Fix Command Arguments for Aix_Syswait_2
953 static const char* apzAix_Syswait_2Patch[] = {
958 /* * * * * * * * * * * * * * * * * * * * * * * * * *
960 * Description of Aix_Volatile fix
962 tSCC zAix_VolatileName[] =
966 * File name selection pattern
968 tSCC zAix_VolatileList[] =
971 * Machine/OS name selection pattern
973 #define apzAix_VolatileMachs (const char**)NULL
976 * content selection pattern - do fix if pattern found
978 tSCC zAix_VolatileSelect0[] =
979 "typedef volatile int sig_atomic_t";
981 #define AIX_VOLATILE_TEST_CT 1
982 static tTestDesc aAix_VolatileTests[] = {
983 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
986 * Fix Command Arguments for Aix_Volatile
988 static const char* apzAix_VolatilePatch[] = {
990 "typedef int sig_atomic_t",
993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
995 * Description of Alpha___Assert fix
997 tSCC zAlpha___AssertName[] =
1001 * File name selection pattern
1003 tSCC zAlpha___AssertList[] =
1006 * Machine/OS name selection pattern
1008 #define apzAlpha___AssertMachs (const char**)NULL
1011 * content selection pattern - do fix if pattern found
1013 tSCC zAlpha___AssertSelect0[] =
1014 "__assert\\(char \\*, char \\*, int\\)";
1016 #define ALPHA___ASSERT_TEST_CT 1
1017 static tTestDesc aAlpha___AssertTests[] = {
1018 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
1021 * Fix Command Arguments for Alpha___Assert
1023 static const char* apzAlpha___AssertPatch[] = {
1025 "__assert(const char *, const char *, int)",
1028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1030 * Description of Alpha_Assert fix
1032 tSCC zAlpha_AssertName[] =
1036 * File name selection pattern
1038 tSCC zAlpha_AssertList[] =
1041 * Machine/OS name selection pattern
1043 #define apzAlpha_AssertMachs (const char**)NULL
1046 * content selection pattern - do fix if pattern found
1048 tSCC zAlpha_AssertSelect0[] =
1049 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1051 #define ALPHA_ASSERT_TEST_CT 1
1052 static tTestDesc aAlpha_AssertTests[] = {
1053 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1056 * Fix Command Arguments for Alpha_Assert
1058 static const char* apzAlpha_AssertPatch[] = {
1063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1065 * Description of Alpha_Getopt fix
1067 tSCC zAlpha_GetoptName[] =
1071 * File name selection pattern
1073 tSCC zAlpha_GetoptList[] =
1074 "stdio.h\0stdlib.h\0";
1076 * Machine/OS name selection pattern
1078 #define apzAlpha_GetoptMachs (const char**)NULL
1081 * content selection pattern - do fix if pattern found
1083 tSCC zAlpha_GetoptSelect0[] =
1084 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1086 #define ALPHA_GETOPT_TEST_CT 1
1087 static tTestDesc aAlpha_GetoptTests[] = {
1088 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1091 * Fix Command Arguments for Alpha_Getopt
1093 static const char* apzAlpha_GetoptPatch[] = {
1095 "getopt(int, char *const[], const char *)",
1098 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1100 * Description of Alpha_If_Semicolon fix
1102 tSCC zAlpha_If_SemicolonName[] =
1103 "alpha_if_semicolon";
1106 * File name selection pattern
1108 tSCC zAlpha_If_SemicolonList[] =
1111 * Machine/OS name selection pattern
1113 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1116 * content selection pattern - do fix if pattern found
1118 tSCC zAlpha_If_SemicolonSelect0[] =
1119 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1121 #define ALPHA_IF_SEMICOLON_TEST_CT 1
1122 static tTestDesc aAlpha_If_SemicolonTests[] = {
1123 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1126 * Fix Command Arguments for Alpha_If_Semicolon
1128 static const char* apzAlpha_If_SemicolonPatch[] = {
1130 "struct sockaddr vmif_paddr;\t/*",
1133 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1135 * Description of Alpha_Parens fix
1137 tSCC zAlpha_ParensName[] =
1141 * File name selection pattern
1143 tSCC zAlpha_ParensList[] =
1146 * Machine/OS name selection pattern
1148 #define apzAlpha_ParensMachs (const char**)NULL
1151 * content selection pattern - do fix if pattern found
1153 tSCC zAlpha_ParensSelect0[] =
1154 "#ifndef\\(__mips64\\)";
1156 #define ALPHA_PARENS_TEST_CT 1
1157 static tTestDesc aAlpha_ParensTests[] = {
1158 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1161 * Fix Command Arguments for Alpha_Parens
1163 static const char* apzAlpha_ParensPatch[] = {
1168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1170 * Description of Alpha_Sbrk fix
1172 tSCC zAlpha_SbrkName[] =
1176 * File name selection pattern
1178 tSCC zAlpha_SbrkList[] =
1181 * Machine/OS name selection pattern
1183 #define apzAlpha_SbrkMachs (const char**)NULL
1186 * content selection pattern - do fix if pattern found
1188 tSCC zAlpha_SbrkSelect0[] =
1189 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1191 #define ALPHA_SBRK_TEST_CT 1
1192 static tTestDesc aAlpha_SbrkTests[] = {
1193 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1196 * Fix Command Arguments for Alpha_Sbrk
1198 static const char* apzAlpha_SbrkPatch[] = {
1203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1205 * Description of Avoid_Bool_Define fix
1207 tSCC zAvoid_Bool_DefineName[] =
1208 "avoid_bool_define";
1211 * File name selection pattern
1213 tSCC zAvoid_Bool_DefineList[] =
1214 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1216 * Machine/OS name selection pattern
1218 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1221 * content selection pattern - do fix if pattern found
1223 tSCC zAvoid_Bool_DefineSelect0[] =
1224 "#[ \t]*define[ \t]+bool[ \t]";
1227 * content bypass pattern - skip fix if pattern found
1229 tSCC zAvoid_Bool_DefineBypass0[] =
1232 #define AVOID_BOOL_DEFINE_TEST_CT 2
1233 static tTestDesc aAvoid_Bool_DefineTests[] = {
1234 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1235 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1238 * Fix Command Arguments for Avoid_Bool_Define
1240 static const char* apzAvoid_Bool_DefinePatch[] = {
1242 "#ifndef __cplusplus\n\
1245 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1250 * Description of Avoid_Bool_Type fix
1252 tSCC zAvoid_Bool_TypeName[] =
1256 * File name selection pattern
1258 tSCC zAvoid_Bool_TypeList[] =
1259 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1261 * Machine/OS name selection pattern
1263 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1266 * content selection pattern - do fix if pattern found
1268 tSCC zAvoid_Bool_TypeSelect0[] =
1269 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1272 * content bypass pattern - skip fix if pattern found
1274 tSCC zAvoid_Bool_TypeBypass0[] =
1277 #define AVOID_BOOL_TYPE_TEST_CT 2
1278 static tTestDesc aAvoid_Bool_TypeTests[] = {
1279 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1280 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1283 * Fix Command Arguments for Avoid_Bool_Type
1285 static const char* apzAvoid_Bool_TypePatch[] = {
1287 "#ifndef __cplusplus\n\
1292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1294 * Description of Avoid_Wchar_T_Type fix
1296 tSCC zAvoid_Wchar_T_TypeName[] =
1297 "avoid_wchar_t_type";
1300 * File name selection pattern
1302 #define zAvoid_Wchar_T_TypeList (char*)NULL
1304 * Machine/OS name selection pattern
1306 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1309 * content selection pattern - do fix if pattern found
1311 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1312 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1315 * content bypass pattern - skip fix if pattern found
1317 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1319 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1321 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1322 "XFree86: xc/lib/X11/Xlib\\.h";
1324 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1325 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1326 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1327 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1328 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1329 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1332 * Fix Command Arguments for Avoid_Wchar_T_Type
1334 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1336 "#ifndef __cplusplus\n\
1341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1343 * Description of Bad_Struct_Term fix
1345 tSCC zBad_Struct_TermName[] =
1349 * File name selection pattern
1351 tSCC zBad_Struct_TermList[] =
1354 * Machine/OS name selection pattern
1356 #define apzBad_Struct_TermMachs (const char**)NULL
1359 * content selection pattern - do fix if pattern found
1361 tSCC zBad_Struct_TermSelect0[] =
1362 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1364 #define BAD_STRUCT_TERM_TEST_CT 1
1365 static tTestDesc aBad_Struct_TermTests[] = {
1366 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1369 * Fix Command Arguments for Bad_Struct_Term
1371 static const char* apzBad_Struct_TermPatch[] = {
1376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1378 * Description of Badquote fix
1380 tSCC zBadquoteName[] =
1384 * File name selection pattern
1386 tSCC zBadquoteList[] =
1387 "sundev/vuid_event.h\0";
1389 * Machine/OS name selection pattern
1391 #define apzBadquoteMachs (const char**)NULL
1394 * content selection pattern - do fix if pattern found
1396 tSCC zBadquoteSelect0[] =
1399 #define BADQUOTE_TEST_CT 1
1400 static tTestDesc aBadquoteTests[] = {
1401 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1404 * Fix Command Arguments for Badquote
1406 static const char* apzBadquotePatch[] = {
1411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1413 * Description of Broken_Assert_Stdio fix
1415 tSCC zBroken_Assert_StdioName[] =
1416 "broken_assert_stdio";
1419 * File name selection pattern
1421 tSCC zBroken_Assert_StdioList[] =
1424 * Machine/OS name selection pattern
1426 #define apzBroken_Assert_StdioMachs (const char**)NULL
1429 * content selection pattern - do fix if pattern found
1431 tSCC zBroken_Assert_StdioSelect0[] =
1435 * content bypass pattern - skip fix if pattern found
1437 tSCC zBroken_Assert_StdioBypass0[] =
1438 "include.*stdio\\.h";
1440 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1441 static tTestDesc aBroken_Assert_StdioTests[] = {
1442 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1443 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1446 * Fix Command Arguments for Broken_Assert_Stdio
1448 static const char* apzBroken_Assert_StdioPatch[] = {
1450 "#include <stdio.h>\n",
1453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1455 * Description of Broken_Assert_Stdlib fix
1457 tSCC zBroken_Assert_StdlibName[] =
1458 "broken_assert_stdlib";
1461 * File name selection pattern
1463 tSCC zBroken_Assert_StdlibList[] =
1466 * Machine/OS name selection pattern
1468 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1471 * content selection pattern - do fix if pattern found
1473 tSCC zBroken_Assert_StdlibSelect0[] =
1474 "exit *\\(|abort *\\(";
1477 * content bypass pattern - skip fix if pattern found
1479 tSCC zBroken_Assert_StdlibBypass0[] =
1480 "include.*stdlib\\.h";
1482 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1483 static tTestDesc aBroken_Assert_StdlibTests[] = {
1484 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1485 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1488 * Fix Command Arguments for Broken_Assert_Stdlib
1490 static const char* apzBroken_Assert_StdlibPatch[] = {
1492 "#ifdef __cplusplus\n\
1493 #include <stdlib.h>\n\
1497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1499 * Description of Broken_Cabs fix
1501 tSCC zBroken_CabsName[] =
1505 * File name selection pattern
1507 tSCC zBroken_CabsList[] =
1508 "math.h\0architecture/*/math.h\0";
1510 * Machine/OS name selection pattern
1512 #define apzBroken_CabsMachs (const char**)NULL
1515 * content selection pattern - do fix if pattern found
1517 tSCC zBroken_CabsSelect0[] =
1518 "^extern[ \t]+double[ \t]+cabs";
1520 #define BROKEN_CABS_TEST_CT 1
1521 static tTestDesc aBroken_CabsTests[] = {
1522 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1525 * Fix Command Arguments for Broken_Cabs
1527 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1528 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1529 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1534 * Description of Broken_Nan fix
1536 tSCC zBroken_NanName[] =
1540 * File name selection pattern
1542 tSCC zBroken_NanList[] =
1543 "architecture/ppc/math.h\0architecture/*/math.h\0";
1545 * Machine/OS name selection pattern
1547 #define apzBroken_NanMachs (const char**)NULL
1550 * content selection pattern - do fix if pattern found
1552 tSCC zBroken_NanSelect0[] =
1553 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1556 * content bypass pattern - skip fix if pattern found
1558 tSCC zBroken_NanBypass0[] =
1561 #define BROKEN_NAN_TEST_CT 2
1562 static tTestDesc aBroken_NanTests[] = {
1563 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1564 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1567 * Fix Command Arguments for Broken_Nan
1569 static const char* apzBroken_NanPatch[] = {
1574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1576 * Description of Bsd_Stdio_Attrs_Conflict fix
1578 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1579 "bsd_stdio_attrs_conflict";
1582 * File name selection pattern
1584 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1587 * Machine/OS name selection pattern
1589 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1592 (const char*)NULL };
1595 * content selection pattern - do fix if pattern found
1597 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1598 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1600 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1601 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1602 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1605 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1607 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1609 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1610 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1611 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1614 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1616 * Description of Cdef_Cplusplus fix
1618 tSCC zCdef_CplusplusName[] =
1622 * File name selection pattern
1624 tSCC zCdef_CplusplusList[] =
1627 * Machine/OS name selection pattern
1629 #define apzCdef_CplusplusMachs (const char**)NULL
1632 * content selection pattern - do fix if pattern found
1634 tSCC zCdef_CplusplusSelect0[] =
1635 "\\[\\[noreturn\\]\\]";
1637 #define CDEF_CPLUSPLUS_TEST_CT 1
1638 static tTestDesc aCdef_CplusplusTests[] = {
1639 { TT_EGREP, zCdef_CplusplusSelect0, (regex_t*)NULL }, };
1642 * Fix Command Arguments for Cdef_Cplusplus
1644 static const char* apzCdef_CplusplusPatch[] = {
1646 "__attribute__((__noreturn__))",
1649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1651 * Description of Ctrl_Quotes_Def fix
1653 tSCC zCtrl_Quotes_DefName[] =
1657 * File name selection pattern
1659 #define zCtrl_Quotes_DefList (char*)NULL
1661 * Machine/OS name selection pattern
1663 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1666 * content selection pattern - do fix if pattern found
1668 tSCC zCtrl_Quotes_DefSelect0[] =
1669 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1671 #define CTRL_QUOTES_DEF_TEST_CT 1
1672 static tTestDesc aCtrl_Quotes_DefTests[] = {
1673 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1676 * Fix Command Arguments for Ctrl_Quotes_Def
1678 static const char* apzCtrl_Quotes_DefPatch[] = {
1683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1685 * Description of Ctrl_Quotes_Use fix
1687 tSCC zCtrl_Quotes_UseName[] =
1691 * File name selection pattern
1693 #define zCtrl_Quotes_UseList (char*)NULL
1695 * Machine/OS name selection pattern
1697 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1700 * content selection pattern - do fix if pattern found
1702 tSCC zCtrl_Quotes_UseSelect0[] =
1703 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1705 #define CTRL_QUOTES_USE_TEST_CT 1
1706 static tTestDesc aCtrl_Quotes_UseTests[] = {
1707 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1710 * Fix Command Arguments for Ctrl_Quotes_Use
1712 static const char* apzCtrl_Quotes_UsePatch[] = {
1717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1719 * Description of Cxx_Unready fix
1721 tSCC zCxx_UnreadyName[] =
1725 * File name selection pattern
1727 tSCC zCxx_UnreadyList[] =
1728 "sys/mman.h\0rpc/types.h\0";
1730 * Machine/OS name selection pattern
1732 #define apzCxx_UnreadyMachs (const char**)NULL
1735 * content selection pattern - do fix if pattern found
1737 tSCC zCxx_UnreadySelect0[] =
1741 * content bypass pattern - skip fix if pattern found
1743 tSCC zCxx_UnreadyBypass0[] =
1744 "\"C\"|__BEGIN_DECLS";
1746 #define CXX_UNREADY_TEST_CT 2
1747 static tTestDesc aCxx_UnreadyTests[] = {
1748 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1749 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1752 * Fix Command Arguments for Cxx_Unready
1754 static const char* apzCxx_UnreadyPatch[] = {
1756 "#ifdef __cplusplus\n\
1759 "#ifdef __cplusplus\n\
1764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1766 * Description of Darwin_Externc fix
1768 tSCC zDarwin_ExterncName[] =
1772 * File name selection pattern
1774 tSCC zDarwin_ExterncList[] =
1775 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1777 * Machine/OS name selection pattern
1779 tSCC* apzDarwin_ExterncMachs[] = {
1781 (const char*)NULL };
1784 * content bypass pattern - skip fix if pattern found
1786 tSCC zDarwin_ExterncBypass0[] =
1788 tSCC zDarwin_ExterncBypass1[] =
1791 #define DARWIN_EXTERNC_TEST_CT 2
1792 static tTestDesc aDarwin_ExterncTests[] = {
1793 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1794 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1797 * Fix Command Arguments for Darwin_Externc
1799 static const char* apzDarwin_ExterncPatch[] = {
1801 "#ifdef __cplusplus\n\
1804 "#ifdef __cplusplus\n\
1809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1811 * Description of Darwin_Gcc4_Breakage fix
1813 tSCC zDarwin_Gcc4_BreakageName[] =
1814 "darwin_gcc4_breakage";
1817 * File name selection pattern
1819 tSCC zDarwin_Gcc4_BreakageList[] =
1820 "AvailabilityMacros.h\0";
1822 * Machine/OS name selection pattern
1824 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1826 (const char*)NULL };
1829 * content selection pattern - do fix if pattern found
1831 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1832 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1834 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1835 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1836 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1839 * Fix Command Arguments for Darwin_Gcc4_Breakage
1841 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1843 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1848 * Description of Darwin_Private_Extern fix
1850 tSCC zDarwin_Private_ExternName[] =
1851 "darwin_private_extern";
1854 * File name selection pattern
1856 tSCC zDarwin_Private_ExternList[] =
1859 * Machine/OS name selection pattern
1861 tSCC* apzDarwin_Private_ExternMachs[] = {
1863 (const char*)NULL };
1866 * content selection pattern - do fix if pattern found
1868 tSCC zDarwin_Private_ExternSelect0[] =
1869 "__private_extern__ [a-z_]+ _dyld_";
1871 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1872 static tTestDesc aDarwin_Private_ExternTests[] = {
1873 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1876 * Fix Command Arguments for Darwin_Private_Extern
1878 static const char* apzDarwin_Private_ExternPatch[] = {
1881 "__private_extern__",
1884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1886 * Description of Darwin_Stdint_1 fix
1888 tSCC zDarwin_Stdint_1Name[] =
1892 * File name selection pattern
1894 tSCC zDarwin_Stdint_1List[] =
1895 "stdint-darwin.h\0stdint.h\0";
1897 * Machine/OS name selection pattern
1899 tSCC* apzDarwin_Stdint_1Machs[] = {
1901 (const char*)NULL };
1904 * content selection pattern - do fix if pattern found
1906 tSCC zDarwin_Stdint_1Select0[] =
1907 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
1908 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
1910 #define DARWIN_STDINT_1_TEST_CT 1
1911 static tTestDesc aDarwin_Stdint_1Tests[] = {
1912 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
1915 * Fix Command Arguments for Darwin_Stdint_1
1917 static const char* apzDarwin_Stdint_1Patch[] = {
1919 "#define UINT8_C(v)\tv\n\
1920 #define UINT16_C(v)\tv",
1923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1925 * Description of Darwin_Stdint_2 fix
1927 tSCC zDarwin_Stdint_2Name[] =
1931 * File name selection pattern
1933 tSCC zDarwin_Stdint_2List[] =
1934 "stdint-darwin.h\0stdint.h\0";
1936 * Machine/OS name selection pattern
1938 tSCC* apzDarwin_Stdint_2Machs[] = {
1940 (const char*)NULL };
1943 * content selection pattern - do fix if pattern found
1945 tSCC zDarwin_Stdint_2Select0[] =
1946 "#if __WORDSIZE == 64\n\
1947 #define INTPTR_MIN[ \t]+INT64_MIN\n\
1948 #define INTPTR_MAX[ \t]+INT64_MAX\n\
1950 #define INTPTR_MIN[ \t]+INT32_MIN\n\
1951 #define INTPTR_MAX[ \t]+INT32_MAX\n\
1954 #define DARWIN_STDINT_2_TEST_CT 1
1955 static tTestDesc aDarwin_Stdint_2Tests[] = {
1956 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
1959 * Fix Command Arguments for Darwin_Stdint_2
1961 static const char* apzDarwin_Stdint_2Patch[] = {
1963 "#if __WORDSIZE == 64\n\
1964 #define INTPTR_MAX 9223372036854775807L\n\
1965 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
1967 #define INTPTR_MAX 2147483647L\n\
1968 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
1972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1974 * Description of Darwin_Stdint_3 fix
1976 tSCC zDarwin_Stdint_3Name[] =
1980 * File name selection pattern
1982 tSCC zDarwin_Stdint_3List[] =
1983 "stdint-darwin.h\0stdint.h\0";
1985 * Machine/OS name selection pattern
1987 tSCC* apzDarwin_Stdint_3Machs[] = {
1989 (const char*)NULL };
1992 * content selection pattern - do fix if pattern found
1994 tSCC zDarwin_Stdint_3Select0[] =
1995 "#if __WORDSIZE == 64\n\
1996 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
1998 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2001 #define DARWIN_STDINT_3_TEST_CT 1
2002 static tTestDesc aDarwin_Stdint_3Tests[] = {
2003 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2006 * Fix Command Arguments for Darwin_Stdint_3
2008 static const char* apzDarwin_Stdint_3Patch[] = {
2010 "#if __WORDSIZE == 64\n\
2011 #define UINTPTR_MAX 18446744073709551615UL\n\
2013 #define UINTPTR_MAX 4294967295UL\n\
2017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2019 * Description of Darwin_Stdint_4 fix
2021 tSCC zDarwin_Stdint_4Name[] =
2025 * File name selection pattern
2027 tSCC zDarwin_Stdint_4List[] =
2028 "stdint-darwin.h\0stdint.h\0";
2030 * Machine/OS name selection pattern
2032 tSCC* apzDarwin_Stdint_4Machs[] = {
2034 (const char*)NULL };
2037 * content selection pattern - do fix if pattern found
2039 tSCC zDarwin_Stdint_4Select0[] =
2040 "#if __WORDSIZE == 64\n\
2041 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2043 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2046 #define DARWIN_STDINT_4_TEST_CT 1
2047 static tTestDesc aDarwin_Stdint_4Tests[] = {
2048 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2051 * Fix Command Arguments for Darwin_Stdint_4
2053 static const char* apzDarwin_Stdint_4Patch[] = {
2055 "#if __WORDSIZE == 64\n\
2056 #define SIZE_MAX 18446744073709551615UL\n\
2058 #define SIZE_MAX 4294967295UL\n\
2062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2064 * Description of Darwin_Stdint_5 fix
2066 tSCC zDarwin_Stdint_5Name[] =
2070 * File name selection pattern
2072 tSCC zDarwin_Stdint_5List[] =
2073 "stdint-darwin.h\0stdint.h\0";
2075 * Machine/OS name selection pattern
2077 tSCC* apzDarwin_Stdint_5Machs[] = {
2079 (const char*)NULL };
2082 * content selection pattern - do fix if pattern found
2084 tSCC zDarwin_Stdint_5Select0[] =
2085 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2086 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2087 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2089 #define DARWIN_STDINT_5_TEST_CT 1
2090 static tTestDesc aDarwin_Stdint_5Tests[] = {
2091 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2094 * Fix Command Arguments for Darwin_Stdint_5
2096 static const char* apzDarwin_Stdint_5Patch[] = {
2098 "#if __WORDSIZE == 64\n\
2099 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2100 #define INTMAX_MAX 9223372036854775807L\n\
2101 #define UINTMAX_MAX 18446744073709551615UL\n\
2103 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2104 #define INTMAX_MAX 9223372036854775807LL\n\
2105 #define UINTMAX_MAX 18446744073709551615ULL\n\
2109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2111 * Description of Darwin_Stdint_6 fix
2113 tSCC zDarwin_Stdint_6Name[] =
2117 * File name selection pattern
2119 tSCC zDarwin_Stdint_6List[] =
2120 "stdint-darwin.h\0stdint.h\0";
2122 * Machine/OS name selection pattern
2124 tSCC* apzDarwin_Stdint_6Machs[] = {
2126 (const char*)NULL };
2129 * content selection pattern - do fix if pattern found
2131 tSCC zDarwin_Stdint_6Select0[] =
2132 "#if __WORDSIZE == 64\n\
2133 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2134 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2136 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2137 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2140 #define DARWIN_STDINT_6_TEST_CT 1
2141 static tTestDesc aDarwin_Stdint_6Tests[] = {
2142 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2145 * Fix Command Arguments for Darwin_Stdint_6
2147 static const char* apzDarwin_Stdint_6Patch[] = {
2149 "#if __WORDSIZE == 64\n\
2150 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2151 #define PTRDIFF_MAX 9223372036854775807L\n\
2153 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2154 #define PTRDIFF_MAX 2147483647\n\
2158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2160 * Description of Darwin_Stdint_7 fix
2162 tSCC zDarwin_Stdint_7Name[] =
2166 * File name selection pattern
2168 tSCC zDarwin_Stdint_7List[] =
2169 "stdint-darwin.h\0stdint.h\0";
2171 * Machine/OS name selection pattern
2173 tSCC* apzDarwin_Stdint_7Machs[] = {
2175 (const char*)NULL };
2178 * content selection pattern - do fix if pattern found
2180 tSCC zDarwin_Stdint_7Select0[] =
2181 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2182 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2184 #define DARWIN_STDINT_7_TEST_CT 1
2185 static tTestDesc aDarwin_Stdint_7Tests[] = {
2186 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2189 * Fix Command Arguments for Darwin_Stdint_7
2191 static const char* apzDarwin_Stdint_7Patch[] = {
2193 "#if __WORDSIZE == 64\n\
2194 #define INTMAX_C(v) (v ## L)\n\
2195 #define UINTMAX_C(v) (v ## UL)\n\
2197 #define INTMAX_C(v) (v ## LL)\n\
2198 #define UINTMAX_C(v) (v ## ULL)\n\
2202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2204 * Description of Dec_Intern_Asm fix
2206 tSCC zDec_Intern_AsmName[] =
2210 * File name selection pattern
2212 tSCC zDec_Intern_AsmList[] =
2215 * Machine/OS name selection pattern
2217 #define apzDec_Intern_AsmMachs (const char**)NULL
2218 #define DEC_INTERN_ASM_TEST_CT 0
2219 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2222 * Fix Command Arguments for Dec_Intern_Asm
2224 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2225 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2227 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2233 * Description of Djgpp_Wchar_H fix
2235 tSCC zDjgpp_Wchar_HName[] =
2239 * File name selection pattern
2241 #define zDjgpp_Wchar_HList (char*)NULL
2243 * Machine/OS name selection pattern
2245 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2248 * content selection pattern - do fix if pattern found
2250 tSCC zDjgpp_Wchar_HSelect0[] =
2254 * content bypass pattern - skip fix if pattern found
2256 tSCC zDjgpp_Wchar_HBypass0[] =
2259 #define DJGPP_WCHAR_H_TEST_CT 2
2260 static tTestDesc aDjgpp_Wchar_HTests[] = {
2261 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2262 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2265 * Fix Command Arguments for Djgpp_Wchar_H
2267 static const char* apzDjgpp_Wchar_HPatch[] = {
2270 #include <sys/djtypes.h>",
2271 "#include <stddef.h>",
2274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2276 * Description of Ecd_Cursor fix
2278 tSCC zEcd_CursorName[] =
2282 * File name selection pattern
2284 tSCC zEcd_CursorList[] =
2285 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2287 * Machine/OS name selection pattern
2289 #define apzEcd_CursorMachs (const char**)NULL
2292 * content selection pattern - do fix if pattern found
2294 tSCC zEcd_CursorSelect0[] =
2297 #define ECD_CURSOR_TEST_CT 1
2298 static tTestDesc aEcd_CursorTests[] = {
2299 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2302 * Fix Command Arguments for Ecd_Cursor
2304 static const char* apzEcd_CursorPatch[] = {
2309 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2311 * Description of Freebsd_Gcc3_Breakage fix
2313 tSCC zFreebsd_Gcc3_BreakageName[] =
2314 "freebsd_gcc3_breakage";
2317 * File name selection pattern
2319 tSCC zFreebsd_Gcc3_BreakageList[] =
2322 * Machine/OS name selection pattern
2324 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2326 (const char*)NULL };
2329 * content selection pattern - do fix if pattern found
2331 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2332 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2335 * content bypass pattern - skip fix if pattern found
2337 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2338 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2340 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2341 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2342 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2343 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2346 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2348 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2350 "%0 || __GNUC__ >= 3",
2353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2355 * Description of Freebsd_Gcc4_Breakage fix
2357 tSCC zFreebsd_Gcc4_BreakageName[] =
2358 "freebsd_gcc4_breakage";
2361 * File name selection pattern
2363 tSCC zFreebsd_Gcc4_BreakageList[] =
2366 * Machine/OS name selection pattern
2368 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2370 (const char*)NULL };
2373 * content selection pattern - do fix if pattern found
2375 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2376 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2378 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2379 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2380 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2383 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2385 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2387 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2392 * Description of Glibc_C99_Inline_1 fix
2394 tSCC zGlibc_C99_Inline_1Name[] =
2395 "glibc_c99_inline_1";
2398 * File name selection pattern
2400 tSCC zGlibc_C99_Inline_1List[] =
2401 "features.h\0*/features.h\0";
2403 * Machine/OS name selection pattern
2405 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2408 * content selection pattern - do fix if pattern found
2410 tSCC zGlibc_C99_Inline_1Select0[] =
2411 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2413 #define GLIBC_C99_INLINE_1_TEST_CT 1
2414 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2415 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2418 * Fix Command Arguments for Glibc_C99_Inline_1
2420 static const char* apzGlibc_C99_Inline_1Patch[] = {
2422 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2427 * Description of Glibc_C99_Inline_1a fix
2429 tSCC zGlibc_C99_Inline_1aName[] =
2430 "glibc_c99_inline_1a";
2433 * File name selection pattern
2435 tSCC zGlibc_C99_Inline_1aList[] =
2436 "features.h\0*/features.h\0";
2438 * Machine/OS name selection pattern
2440 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2443 * content selection pattern - do fix if pattern found
2445 tSCC zGlibc_C99_Inline_1aSelect0[] =
2446 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2447 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2449 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2450 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2451 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2454 * Fix Command Arguments for Glibc_C99_Inline_1a
2456 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2458 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2464 * Description of Glibc_C99_Inline_2 fix
2466 tSCC zGlibc_C99_Inline_2Name[] =
2467 "glibc_c99_inline_2";
2470 * File name selection pattern
2472 tSCC zGlibc_C99_Inline_2List[] =
2473 "sys/stat.h\0*/sys/stat.h\0";
2475 * Machine/OS name selection pattern
2477 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2480 * content selection pattern - do fix if pattern found
2482 tSCC zGlibc_C99_Inline_2Select0[] =
2483 "extern __inline__ int";
2485 #define GLIBC_C99_INLINE_2_TEST_CT 1
2486 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2487 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2490 * Fix Command Arguments for Glibc_C99_Inline_2
2492 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2493 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2496 __inline__ int \\1/",
2497 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2500 __inline__ int \\1/",
2501 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2504 __inline__ int \\1/",
2505 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2508 __inline__ int __REDIRECT\\1 (\\2/",
2509 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2512 __inline__ int __REDIRECT\\1 (\\2/",
2513 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2519 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2521 * Description of Glibc_C99_Inline_3 fix
2523 tSCC zGlibc_C99_Inline_3Name[] =
2524 "glibc_c99_inline_3";
2527 * File name selection pattern
2529 tSCC zGlibc_C99_Inline_3List[] =
2530 "bits/string2.h\0*/bits/string2.h\0";
2532 * Machine/OS name selection pattern
2534 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2537 * content selection pattern - do fix if pattern found
2539 tSCC zGlibc_C99_Inline_3Select0[] =
2543 * content bypass pattern - skip fix if pattern found
2545 tSCC zGlibc_C99_Inline_3Bypass0[] =
2546 "__extern_inline|__GNU_STDC_INLINE__";
2548 #define GLIBC_C99_INLINE_3_TEST_CT 2
2549 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2550 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2551 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2554 * Fix Command Arguments for Glibc_C99_Inline_3
2556 static const char* apzGlibc_C99_Inline_3Patch[] = {
2558 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2559 "^# ifdef __cplusplus$",
2562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2564 * Description of Glibc_C99_Inline_4 fix
2566 tSCC zGlibc_C99_Inline_4Name[] =
2567 "glibc_c99_inline_4";
2570 * File name selection pattern
2572 tSCC zGlibc_C99_Inline_4List[] =
2573 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2575 * Machine/OS name selection pattern
2577 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2580 * content selection pattern - do fix if pattern found
2582 tSCC zGlibc_C99_Inline_4Select0[] =
2583 "(^| )extern __inline";
2586 * content bypass pattern - skip fix if pattern found
2588 tSCC zGlibc_C99_Inline_4Bypass0[] =
2589 "__extern_inline|__gnu_inline__";
2591 #define GLIBC_C99_INLINE_4_TEST_CT 2
2592 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2593 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2594 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2597 * Fix Command Arguments for Glibc_C99_Inline_4
2599 static const char* apzGlibc_C99_Inline_4Patch[] = {
2601 "%0 __attribute__ ((__gnu_inline__))",
2604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2606 * Description of Glibc_Mutex_Init fix
2608 tSCC zGlibc_Mutex_InitName[] =
2612 * File name selection pattern
2614 tSCC zGlibc_Mutex_InitList[] =
2617 * Machine/OS name selection pattern
2619 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2622 * content selection pattern - do fix if pattern found
2624 tSCC zGlibc_Mutex_InitSelect0[] =
2625 "\\{ *\\{ *0, *\\} *\\}";
2627 #define GLIBC_MUTEX_INIT_TEST_CT 1
2628 static tTestDesc aGlibc_Mutex_InitTests[] = {
2629 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2632 * Fix Command Arguments for Glibc_Mutex_Init
2634 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2635 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2637 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2639 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2640 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2641 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2642 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2643 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2644 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2645 "-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\
2647 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2650 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2652 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2653 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2658 * Description of Glibc_Stdint fix
2660 tSCC zGlibc_StdintName[] =
2664 * File name selection pattern
2666 tSCC zGlibc_StdintList[] =
2669 * Machine/OS name selection pattern
2671 #define apzGlibc_StdintMachs (const char**)NULL
2674 * content selection pattern - do fix if pattern found
2676 tSCC zGlibc_StdintSelect0[] =
2679 #define GLIBC_STDINT_TEST_CT 1
2680 static tTestDesc aGlibc_StdintTests[] = {
2681 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2684 * Fix Command Arguments for Glibc_Stdint
2686 static const char* apzGlibc_StdintPatch[] = {
2688 "# define UINT8_C(c)\tc\n\
2689 # define UINT16_C(c)\tc",
2690 "# define UINT8_C\\(c\\)\tc ## U\n\
2691 # define UINT16_C\\(c\\)\tc ## U",
2694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2696 * Description of Glibc_Strncpy fix
2698 tSCC zGlibc_StrncpyName[] =
2702 * File name selection pattern
2704 tSCC zGlibc_StrncpyList[] =
2707 * Machine/OS name selection pattern
2709 #define apzGlibc_StrncpyMachs (const char**)NULL
2712 * content bypass pattern - skip fix if pattern found
2714 tSCC zGlibc_StrncpyBypass0[] =
2715 "__builtin_strncpy";
2717 #define GLIBC_STRNCPY_TEST_CT 1
2718 static tTestDesc aGlibc_StrncpyTests[] = {
2719 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2722 * Fix Command Arguments for Glibc_Strncpy
2724 static const char* apzGlibc_StrncpyPatch[] = {
2726 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2727 "# define strncpy([^\n\
2733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2735 * Description of Glibc_Tgmath fix
2737 tSCC zGlibc_TgmathName[] =
2741 * File name selection pattern
2743 tSCC zGlibc_TgmathList[] =
2746 * Machine/OS name selection pattern
2748 #define apzGlibc_TgmathMachs (const char**)NULL
2751 * content selection pattern - do fix if pattern found
2753 tSCC zGlibc_TgmathSelect0[] =
2754 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2757 * content bypass pattern - skip fix if pattern found
2759 tSCC zGlibc_TgmathBypass0[] =
2760 "__floating_type\\(type\\) \\\\\n\
2761 .*__builtin_classify_type";
2763 #define GLIBC_TGMATH_TEST_CT 2
2764 static tTestDesc aGlibc_TgmathTests[] = {
2765 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2766 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2769 * Fix Command Arguments for Glibc_Tgmath
2771 static const char* apzGlibc_TgmathPatch[] = {
2773 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2778 * Description of Gnu_Types fix
2780 tSCC zGnu_TypesName[] =
2784 * File name selection pattern
2786 tSCC zGnu_TypesList[] =
2787 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2789 * Machine/OS name selection pattern
2791 tSCC* apzGnu_TypesMachs[] = {
2792 "*-*-solaris2.1[0-9]*",
2793 (const char*)NULL };
2796 * content selection pattern - do fix if pattern found
2798 tSCC zGnu_TypesSelect0[] =
2799 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2802 * content bypass pattern - skip fix if pattern found
2804 tSCC zGnu_TypesBypass0[] =
2805 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2807 #define GNU_TYPES_TEST_CT 2
2808 static tTestDesc aGnu_TypesTests[] = {
2809 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2810 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2813 * Fix Command Arguments for Gnu_Types
2815 static const char* apzGnu_TypesPatch[] = {
2819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2821 * Description of Hp_Inline fix
2823 tSCC zHp_InlineName[] =
2827 * File name selection pattern
2829 tSCC zHp_InlineList[] =
2830 "sys/spinlock.h\0machine/machparam.h\0";
2832 * Machine/OS name selection pattern
2834 #define apzHp_InlineMachs (const char**)NULL
2837 * content selection pattern - do fix if pattern found
2839 tSCC zHp_InlineSelect0[] =
2840 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2842 #define HP_INLINE_TEST_CT 1
2843 static tTestDesc aHp_InlineTests[] = {
2844 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2847 * Fix Command Arguments for Hp_Inline
2849 static const char* apzHp_InlinePatch[] = {
2852 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2857 * Description of Hp_Sysfile fix
2859 tSCC zHp_SysfileName[] =
2863 * File name selection pattern
2865 tSCC zHp_SysfileList[] =
2868 * Machine/OS name selection pattern
2870 #define apzHp_SysfileMachs (const char**)NULL
2873 * content selection pattern - do fix if pattern found
2875 tSCC zHp_SysfileSelect0[] =
2878 #define HP_SYSFILE_TEST_CT 1
2879 static tTestDesc aHp_SysfileTests[] = {
2880 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2883 * Fix Command Arguments for Hp_Sysfile
2885 static const char* apzHp_SysfilePatch[] = {
2887 "(struct file *, ...)",
2891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2893 * Description of Hppa_Hpux_Fp_Macros fix
2895 tSCC zHppa_Hpux_Fp_MacrosName[] =
2896 "hppa_hpux_fp_macros";
2899 * File name selection pattern
2901 tSCC zHppa_Hpux_Fp_MacrosList[] =
2904 * Machine/OS name selection pattern
2906 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2908 (const char*)NULL };
2911 * content selection pattern - do fix if pattern found
2913 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2914 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2915 #[ \t]*define[ \t]*FP_ZERO.*\n\
2916 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2917 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2918 #[ \t]*define[ \t]*FP_NAN.*\n";
2920 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2921 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2922 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2925 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2927 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2929 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2930 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2931 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2933 #ifdef _INCLUDE_HPUX_SOURCE\n",
2936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2938 * Description of Hpux10_Cpp_Pow_Inline fix
2940 tSCC zHpux10_Cpp_Pow_InlineName[] =
2941 "hpux10_cpp_pow_inline";
2944 * File name selection pattern
2946 tSCC zHpux10_Cpp_Pow_InlineList[] =
2947 "fixinc-test-limits.h\0math.h\0";
2949 * Machine/OS name selection pattern
2951 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2954 * content selection pattern - do fix if pattern found
2956 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2957 "^# +ifdef +__cplusplus\n\
2959 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2960 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2962 +extern +\"C\" +\\{\n\
2966 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2967 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2968 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2971 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2973 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2980 * Description of Hpux11_Cpp_Pow_Inline fix
2982 tSCC zHpux11_Cpp_Pow_InlineName[] =
2983 "hpux11_cpp_pow_inline";
2986 * File name selection pattern
2988 tSCC zHpux11_Cpp_Pow_InlineList[] =
2991 * Machine/OS name selection pattern
2993 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2996 * content selection pattern - do fix if pattern found
2998 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2999 " +inline double pow\\(double d,int expon\\) \\{\n\
3000 +return pow\\(d, \\(double\\)expon\\);\n\
3003 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
3004 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3005 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3008 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3010 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3017 * Description of Hpux10_Ctype_Declarations1 fix
3019 tSCC zHpux10_Ctype_Declarations1Name[] =
3020 "hpux10_ctype_declarations1";
3023 * File name selection pattern
3025 tSCC zHpux10_Ctype_Declarations1List[] =
3028 * Machine/OS name selection pattern
3030 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3033 * content selection pattern - do fix if pattern found
3035 tSCC zHpux10_Ctype_Declarations1Select0[] =
3036 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3039 * content bypass pattern - skip fix if pattern found
3041 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3042 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3044 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
3045 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3046 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3047 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3050 * Fix Command Arguments for Hpux10_Ctype_Declarations1
3052 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3054 "#ifdef _PROTOTYPES\n\
3055 extern int __tolower(int);\n\
3056 extern int __toupper(int);\n\
3057 #else /* NOT _PROTOTYPES */\n\
3058 extern int __tolower();\n\
3059 extern int __toupper();\n\
3060 #endif /* _PROTOTYPES */\n\n\
3064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3066 * Description of Hpux10_Ctype_Declarations2 fix
3068 tSCC zHpux10_Ctype_Declarations2Name[] =
3069 "hpux10_ctype_declarations2";
3072 * File name selection pattern
3074 tSCC zHpux10_Ctype_Declarations2List[] =
3077 * Machine/OS name selection pattern
3079 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3082 * content selection pattern - do fix if pattern found
3084 tSCC zHpux10_Ctype_Declarations2Select0[] =
3085 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3088 * content bypass pattern - skip fix if pattern found
3090 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3091 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3093 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
3094 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3095 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3096 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3099 * Fix Command Arguments for Hpux10_Ctype_Declarations2
3101 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3104 #ifdef _PROTOTYPES\n\
3105 extern int _isalnum(int);\n\
3106 extern int _isalpha(int);\n\
3107 extern int _iscntrl(int);\n\
3108 extern int _isdigit(int);\n\
3109 extern int _isgraph(int);\n\
3110 extern int _islower(int);\n\
3111 extern int _isprint(int);\n\
3112 extern int _ispunct(int);\n\
3113 extern int _isspace(int);\n\
3114 extern int _isupper(int);\n\
3115 extern int _isxdigit(int);\n\
3116 # else /* not _PROTOTYPES */\n\
3117 extern int _isalnum();\n\
3118 extern int _isalpha();\n\
3119 extern int _iscntrl();\n\
3120 extern int _isdigit();\n\
3121 extern int _isgraph();\n\
3122 extern int _islower();\n\
3123 extern int _isprint();\n\
3124 extern int _ispunct();\n\
3125 extern int _isspace();\n\
3126 extern int _isupper();\n\
3127 extern int _isxdigit();\n\
3128 #endif /* _PROTOTYPES */\n",
3131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3133 * Description of Hpux10_Stdio_Declarations fix
3135 tSCC zHpux10_Stdio_DeclarationsName[] =
3136 "hpux10_stdio_declarations";
3139 * File name selection pattern
3141 tSCC zHpux10_Stdio_DeclarationsList[] =
3144 * Machine/OS name selection pattern
3146 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3149 * content selection pattern - do fix if pattern found
3151 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3152 "^#[ \t]*define _iob[ \t]*__iob";
3155 * content bypass pattern - skip fix if pattern found
3157 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3158 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3160 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3161 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3162 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3163 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3166 * Fix Command Arguments for Hpux10_Stdio_Declarations
3168 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3171 # if defined(__STDC__) || defined(__cplusplus)\n\
3172 extern int snprintf(char *, size_t, const char *, ...);\n\
3173 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3174 # else /* not __STDC__) || __cplusplus */\n\
3175 extern int snprintf();\n\
3176 extern int vsnprintf();\n\
3177 # endif /* __STDC__) || __cplusplus */\n",
3180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3182 * Description of Hpux11_Abs fix
3184 tSCC zHpux11_AbsName[] =
3188 * File name selection pattern
3190 tSCC zHpux11_AbsList[] =
3193 * Machine/OS name selection pattern
3195 tSCC* apzHpux11_AbsMachs[] = {
3197 (const char*)NULL };
3200 * content selection pattern - do fix if pattern found
3202 tSCC zHpux11_AbsSelect0[] =
3203 "ifndef _MATH_INCLUDED";
3205 #define HPUX11_ABS_TEST_CT 1
3206 static tTestDesc aHpux11_AbsTests[] = {
3207 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3210 * Fix Command Arguments for Hpux11_Abs
3212 static const char* apzHpux11_AbsPatch[] = {
3214 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3219 * Description of Hpux11_Fabsf fix
3221 tSCC zHpux11_FabsfName[] =
3225 * File name selection pattern
3227 tSCC zHpux11_FabsfList[] =
3230 * Machine/OS name selection pattern
3232 #define apzHpux11_FabsfMachs (const char**)NULL
3235 * content selection pattern - do fix if pattern found
3237 tSCC zHpux11_FabsfSelect0[] =
3238 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3241 * content bypass pattern - skip fix if pattern found
3243 tSCC zHpux11_FabsfBypass0[] =
3246 #define HPUX11_FABSF_TEST_CT 2
3247 static tTestDesc aHpux11_FabsfTests[] = {
3248 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3249 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3252 * Fix Command Arguments for Hpux11_Fabsf
3254 static const char* apzHpux11_FabsfPatch[] = {
3256 "#ifndef __cplusplus\n\
3261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3263 * Description of Hpux11_Pthread_Const fix
3265 tSCC zHpux11_Pthread_ConstName[] =
3266 "hpux11_pthread_const";
3269 * File name selection pattern
3271 tSCC zHpux11_Pthread_ConstList[] =
3274 * Machine/OS name selection pattern
3276 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3277 "*-hp-hpux11.[0-3]*",
3278 (const char*)NULL };
3281 * content selection pattern - do fix if pattern found
3283 tSCC zHpux11_Pthread_ConstSelect0[] =
3284 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3286 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3287 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3288 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3291 * Fix Command Arguments for Hpux11_Pthread_Const
3293 static const char* apzHpux11_Pthread_ConstPatch[] = {
3295 "#define __POINTER_SET\t\t((void *) 1L)",
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3300 * Description of Hpux11_Size_T fix
3302 tSCC zHpux11_Size_TName[] =
3306 * File name selection pattern
3308 #define zHpux11_Size_TList (char*)NULL
3310 * Machine/OS name selection pattern
3312 tSCC* apzHpux11_Size_TMachs[] = {
3314 (const char*)NULL };
3317 * content selection pattern - do fix if pattern found
3319 tSCC zHpux11_Size_TSelect0[] =
3322 #define HPUX11_SIZE_T_TEST_CT 1
3323 static tTestDesc aHpux11_Size_TTests[] = {
3324 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3327 * Fix Command Arguments for Hpux11_Size_T
3329 static const char* apzHpux11_Size_TPatch[] = {
3334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3336 * Description of Hpux11_Snprintf fix
3338 tSCC zHpux11_SnprintfName[] =
3342 * File name selection pattern
3344 tSCC zHpux11_SnprintfList[] =
3347 * Machine/OS name selection pattern
3349 #define apzHpux11_SnprintfMachs (const char**)NULL
3352 * content selection pattern - do fix if pattern found
3354 tSCC zHpux11_SnprintfSelect0[] =
3355 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3357 #define HPUX11_SNPRINTF_TEST_CT 1
3358 static tTestDesc aHpux11_SnprintfTests[] = {
3359 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3362 * Fix Command Arguments for Hpux11_Snprintf
3364 static const char* apzHpux11_SnprintfPatch[] = {
3369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3371 * Description of Hpux11_Vsnprintf fix
3373 tSCC zHpux11_VsnprintfName[] =
3377 * File name selection pattern
3379 tSCC zHpux11_VsnprintfList[] =
3382 * Machine/OS name selection pattern
3384 #define apzHpux11_VsnprintfMachs (const char**)NULL
3387 * content selection pattern - do fix if pattern found
3389 tSCC zHpux11_VsnprintfSelect0[] =
3390 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3392 #define HPUX11_VSNPRINTF_TEST_CT 1
3393 static tTestDesc aHpux11_VsnprintfTests[] = {
3394 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3397 * Fix Command Arguments for Hpux11_Vsnprintf
3399 static const char* apzHpux11_VsnprintfPatch[] = {
3404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3406 * Description of Hpux8_Bogus_Inlines fix
3408 tSCC zHpux8_Bogus_InlinesName[] =
3409 "hpux8_bogus_inlines";
3412 * File name selection pattern
3414 tSCC zHpux8_Bogus_InlinesList[] =
3417 * Machine/OS name selection pattern
3419 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3422 * content selection pattern - do fix if pattern found
3424 tSCC zHpux8_Bogus_InlinesSelect0[] =
3428 * content bypass pattern - skip fix if pattern found
3430 tSCC zHpux8_Bogus_InlinesBypass0[] =
3433 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3434 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3435 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3436 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3439 * Fix Command Arguments for Hpux8_Bogus_Inlines
3441 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3442 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3443 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3444 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3445 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3450 * Description of Hpux_Ctype_Macros fix
3452 tSCC zHpux_Ctype_MacrosName[] =
3453 "hpux_ctype_macros";
3456 * File name selection pattern
3458 tSCC zHpux_Ctype_MacrosList[] =
3461 * Machine/OS name selection pattern
3463 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3466 * content selection pattern - do fix if pattern found
3468 tSCC zHpux_Ctype_MacrosSelect0[] =
3469 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3471 #define HPUX_CTYPE_MACROS_TEST_CT 1
3472 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3473 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3476 * Fix Command Arguments for Hpux_Ctype_Macros
3478 static const char* apzHpux_Ctype_MacrosPatch[] = {
3483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3485 * Description of Hpux_Htonl fix
3487 tSCC zHpux_HtonlName[] =
3491 * File name selection pattern
3493 tSCC zHpux_HtonlList[] =
3496 * Machine/OS name selection pattern
3498 #define apzHpux_HtonlMachs (const char**)NULL
3501 * content selection pattern - do fix if pattern found
3503 tSCC zHpux_HtonlSelect0[] =
3504 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3506 \\* Macros for number representation conversion\\.\n\
3510 #define HPUX_HTONL_TEST_CT 1
3511 static tTestDesc aHpux_HtonlTests[] = {
3512 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3515 * Fix Command Arguments for Hpux_Htonl
3517 static const char* apzHpux_HtonlPatch[] = {
3523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3525 * Description of Hpux_Long_Double fix
3527 tSCC zHpux_Long_DoubleName[] =
3531 * File name selection pattern
3533 tSCC zHpux_Long_DoubleList[] =
3536 * Machine/OS name selection pattern
3538 tSCC* apzHpux_Long_DoubleMachs[] = {
3540 "*-*-hpux11.[012]*",
3541 (const char*)NULL };
3544 * content selection pattern - do fix if pattern found
3546 tSCC zHpux_Long_DoubleSelect0[] =
3547 "extern[ \t]long_double[ \t]strtold";
3550 * content bypass pattern - skip fix if pattern found
3552 tSCC zHpux_Long_DoubleBypass0[] =
3555 #define HPUX_LONG_DOUBLE_TEST_CT 2
3556 static tTestDesc aHpux_Long_DoubleTests[] = {
3557 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3558 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3561 * Fix Command Arguments for Hpux_Long_Double
3563 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3564 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3565 "-e", "s/long_double/long double/g",
3568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3570 * Description of Hpux_Long_Double_2 fix
3572 tSCC zHpux_Long_Double_2Name[] =
3573 "hpux_long_double_2";
3576 * File name selection pattern
3578 tSCC zHpux_Long_Double_2List[] =
3581 * Machine/OS name selection pattern
3583 tSCC* apzHpux_Long_Double_2Machs[] = {
3584 "hppa*-*-hpux11.3*",
3585 (const char*)NULL };
3588 * content selection pattern - do fix if pattern found
3590 tSCC zHpux_Long_Double_2Select0[] =
3591 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3593 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3594 static tTestDesc aHpux_Long_Double_2Tests[] = {
3595 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3598 * Fix Command Arguments for Hpux_Long_Double_2
3600 static const char* apzHpux_Long_Double_2Patch[] = {
3602 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3607 * Description of Hpux_Systime fix
3609 tSCC zHpux_SystimeName[] =
3613 * File name selection pattern
3615 tSCC zHpux_SystimeList[] =
3618 * Machine/OS name selection pattern
3620 #define apzHpux_SystimeMachs (const char**)NULL
3623 * content selection pattern - do fix if pattern found
3625 tSCC zHpux_SystimeSelect0[] =
3626 "^extern struct sigevent;";
3628 #define HPUX_SYSTIME_TEST_CT 1
3629 static tTestDesc aHpux_SystimeTests[] = {
3630 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3633 * Fix Command Arguments for Hpux_Systime
3635 static const char* apzHpux_SystimePatch[] = {
3640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3642 * Description of Hpux_Spu_Info fix
3644 tSCC zHpux_Spu_InfoName[] =
3648 * File name selection pattern
3650 tSCC zHpux_Spu_InfoList[] =
3651 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3653 * Machine/OS name selection pattern
3655 tSCC* apzHpux_Spu_InfoMachs[] = {
3657 (const char*)NULL };
3660 * content selection pattern - do fix if pattern found
3662 tSCC zHpux_Spu_InfoSelect0[] =
3663 "^.*extern.*spu_info.*";
3665 #define HPUX_SPU_INFO_TEST_CT 1
3666 static tTestDesc aHpux_Spu_InfoTests[] = {
3667 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3670 * Fix Command Arguments for Hpux_Spu_Info
3672 static const char* apzHpux_Spu_InfoPatch[] = {
3679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3681 * Description of Hpux11_Extern_Sendfile fix
3683 tSCC zHpux11_Extern_SendfileName[] =
3684 "hpux11_extern_sendfile";
3687 * File name selection pattern
3689 tSCC zHpux11_Extern_SendfileList[] =
3692 * Machine/OS name selection pattern
3694 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3695 "*-hp-hpux11.[12]*",
3696 (const char*)NULL };
3699 * content selection pattern - do fix if pattern found
3701 tSCC zHpux11_Extern_SendfileSelect0[] =
3702 "^[ \t]*extern sbsize_t sendfile.*\n\
3705 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3706 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3707 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3710 * Fix Command Arguments for Hpux11_Extern_Sendfile
3712 static const char* apzHpux11_Extern_SendfilePatch[] = {
3714 "#ifndef _APP32_64BIT_OFF_T\n\
3718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3720 * Description of Hpux11_Extern_Sendpath fix
3722 tSCC zHpux11_Extern_SendpathName[] =
3723 "hpux11_extern_sendpath";
3726 * File name selection pattern
3728 tSCC zHpux11_Extern_SendpathList[] =
3731 * Machine/OS name selection pattern
3733 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3734 "*-hp-hpux11.[12]*",
3735 (const char*)NULL };
3738 * content selection pattern - do fix if pattern found
3740 tSCC zHpux11_Extern_SendpathSelect0[] =
3741 "^[ \t]*extern sbsize_t sendpath.*\n\
3744 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3745 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3746 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3749 * Fix Command Arguments for Hpux11_Extern_Sendpath
3751 static const char* apzHpux11_Extern_SendpathPatch[] = {
3753 "#ifndef _APP32_64BIT_OFF_T\n\
3757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3759 * Description of Hpux_Extern_Errno fix
3761 tSCC zHpux_Extern_ErrnoName[] =
3762 "hpux_extern_errno";
3765 * File name selection pattern
3767 tSCC zHpux_Extern_ErrnoList[] =
3770 * Machine/OS name selection pattern
3772 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3774 "*-hp-hpux11.[0-2]*",
3775 (const char*)NULL };
3778 * content selection pattern - do fix if pattern found
3780 tSCC zHpux_Extern_ErrnoSelect0[] =
3781 "^[ \t]*extern int errno;$";
3783 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3784 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3785 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3788 * Fix Command Arguments for Hpux_Extern_Errno
3790 static const char* apzHpux_Extern_ErrnoPatch[] = {
3792 "#ifdef __cplusplus\n\
3796 #ifdef __cplusplus\n\
3801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3803 * Description of Hpux_Pthread_Initializers fix
3805 tSCC zHpux_Pthread_InitializersName[] =
3806 "hpux_pthread_initializers";
3809 * File name selection pattern
3811 tSCC zHpux_Pthread_InitializersList[] =
3814 * Machine/OS name selection pattern
3816 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3817 "*-hp-hpux11.[0-3]*",
3818 (const char*)NULL };
3819 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3820 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3823 * Fix Command Arguments for Hpux_Pthread_Initializers
3825 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3826 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3827 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3828 "-e", "/^[ \t]*0$/d",
3829 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3830 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3831 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3832 "-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\\\\@",
3833 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3834 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3835 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3836 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3837 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3838 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3843 * Description of Hpux_C99_Intptr fix
3845 tSCC zHpux_C99_IntptrName[] =
3849 * File name selection pattern
3851 tSCC zHpux_C99_IntptrList[] =
3852 "stdint-hpux11.h\0stdint.h\0";
3854 * Machine/OS name selection pattern
3856 tSCC* apzHpux_C99_IntptrMachs[] = {
3858 (const char*)NULL };
3859 #define HPUX_C99_INTPTR_TEST_CT 0
3860 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
3863 * Fix Command Arguments for Hpux_C99_Intptr
3865 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3866 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3867 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3868 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3869 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3870 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3871 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3876 * Description of Hpux_C99_Inttypes fix
3878 tSCC zHpux_C99_InttypesName[] =
3879 "hpux_c99_inttypes";
3882 * File name selection pattern
3884 tSCC zHpux_C99_InttypesList[] =
3885 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
3887 * Machine/OS name selection pattern
3889 tSCC* apzHpux_C99_InttypesMachs[] = {
3890 "*-hp-hpux11.[23]*",
3891 (const char*)NULL };
3892 #define HPUX_C99_INTTYPES_TEST_CT 0
3893 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
3896 * Fix Command Arguments for Hpux_C99_Inttypes
3898 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3899 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3900 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3901 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3902 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3907 * Description of Hpux_C99_Inttypes2 fix
3909 tSCC zHpux_C99_Inttypes2Name[] =
3910 "hpux_c99_inttypes2";
3913 * File name selection pattern
3915 tSCC zHpux_C99_Inttypes2List[] =
3916 "stdint-hpux11.h\0stdint.h\0";
3918 * Machine/OS name selection pattern
3920 tSCC* apzHpux_C99_Inttypes2Machs[] = {
3922 (const char*)NULL };
3923 #define HPUX_C99_INTTYPES2_TEST_CT 0
3924 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
3927 * Fix Command Arguments for Hpux_C99_Inttypes2
3929 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
3930 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
3931 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
3932 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
3933 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
3936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3938 * Description of Hpux_Stdint_Least_Fast fix
3940 tSCC zHpux_Stdint_Least_FastName[] =
3941 "hpux_stdint_least_fast";
3944 * File name selection pattern
3946 tSCC zHpux_Stdint_Least_FastList[] =
3947 "stdint-hpux11.h\0stdint.h\0";
3949 * Machine/OS name selection pattern
3951 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
3953 (const char*)NULL };
3956 * content selection pattern - do fix if pattern found
3958 tSCC zHpux_Stdint_Least_FastSelect0[] =
3959 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
3961 #define HPUX_STDINT_LEAST_FAST_TEST_CT 1
3962 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
3963 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
3966 * Fix Command Arguments for Hpux_Stdint_Least_Fast
3968 static const char* apzHpux_Stdint_Least_FastPatch[] = {
3970 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
3973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3975 * Description of Hpux_Inttype_Int8_T fix
3977 tSCC zHpux_Inttype_Int8_TName[] =
3978 "hpux_inttype_int8_t";
3981 * File name selection pattern
3983 tSCC zHpux_Inttype_Int8_TList[] =
3984 "sys/_inttypes.h\0";
3986 * Machine/OS name selection pattern
3988 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
3990 (const char*)NULL };
3993 * content selection pattern - do fix if pattern found
3995 tSCC zHpux_Inttype_Int8_TSelect0[] =
3996 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
3998 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
3999 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4000 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4003 * Fix Command Arguments for Hpux_Inttype_Int8_T
4005 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4007 "typedef signed char int%18_t;",
4010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4012 * Description of Hpux_Imaginary_I fix
4014 tSCC zHpux_Imaginary_IName[] =
4018 * File name selection pattern
4020 tSCC zHpux_Imaginary_IList[] =
4023 * Machine/OS name selection pattern
4025 tSCC* apzHpux_Imaginary_IMachs[] = {
4027 (const char*)NULL };
4030 * content selection pattern - do fix if pattern found
4032 tSCC zHpux_Imaginary_ISelect0[] =
4033 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4035 #define HPUX_IMAGINARY_I_TEST_CT 1
4036 static tTestDesc aHpux_Imaginary_ITests[] = {
4037 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4040 * Fix Command Arguments for Hpux_Imaginary_I
4042 static const char* apzHpux_Imaginary_IPatch[] = {
4044 "#define _Complex_I (__extension__ 1.0iF)",
4047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4049 * Description of Huge_Val_Hex fix
4051 tSCC zHuge_Val_HexName[] =
4055 * File name selection pattern
4057 tSCC zHuge_Val_HexList[] =
4058 "bits/huge_val.h\0";
4060 * Machine/OS name selection pattern
4062 #define apzHuge_Val_HexMachs (const char**)NULL
4065 * content selection pattern - do fix if pattern found
4067 tSCC zHuge_Val_HexSelect0[] =
4068 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4071 * content bypass pattern - skip fix if pattern found
4073 tSCC zHuge_Val_HexBypass0[] =
4074 "__builtin_huge_val";
4076 #define HUGE_VAL_HEX_TEST_CT 2
4077 static tTestDesc aHuge_Val_HexTests[] = {
4078 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
4079 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4082 * Fix Command Arguments for Huge_Val_Hex
4084 static const char* apzHuge_Val_HexPatch[] = {
4086 "#define HUGE_VAL (__builtin_huge_val())\n",
4089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4091 * Description of Huge_Valf_Hex fix
4093 tSCC zHuge_Valf_HexName[] =
4097 * File name selection pattern
4099 tSCC zHuge_Valf_HexList[] =
4100 "bits/huge_val.h\0";
4102 * Machine/OS name selection pattern
4104 #define apzHuge_Valf_HexMachs (const char**)NULL
4107 * content selection pattern - do fix if pattern found
4109 tSCC zHuge_Valf_HexSelect0[] =
4110 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4113 * content bypass pattern - skip fix if pattern found
4115 tSCC zHuge_Valf_HexBypass0[] =
4116 "__builtin_huge_valf";
4118 #define HUGE_VALF_HEX_TEST_CT 2
4119 static tTestDesc aHuge_Valf_HexTests[] = {
4120 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4121 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4124 * Fix Command Arguments for Huge_Valf_Hex
4126 static const char* apzHuge_Valf_HexPatch[] = {
4128 "#define HUGE_VALF (__builtin_huge_valf())\n",
4131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4133 * Description of Huge_Vall_Hex fix
4135 tSCC zHuge_Vall_HexName[] =
4139 * File name selection pattern
4141 tSCC zHuge_Vall_HexList[] =
4142 "bits/huge_val.h\0";
4144 * Machine/OS name selection pattern
4146 #define apzHuge_Vall_HexMachs (const char**)NULL
4149 * content selection pattern - do fix if pattern found
4151 tSCC zHuge_Vall_HexSelect0[] =
4152 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4155 * content bypass pattern - skip fix if pattern found
4157 tSCC zHuge_Vall_HexBypass0[] =
4158 "__builtin_huge_vall";
4160 #define HUGE_VALL_HEX_TEST_CT 2
4161 static tTestDesc aHuge_Vall_HexTests[] = {
4162 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4163 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4166 * Fix Command Arguments for Huge_Vall_Hex
4168 static const char* apzHuge_Vall_HexPatch[] = {
4170 "#define HUGE_VALL (__builtin_huge_vall())\n",
4173 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4175 * Description of Int_Abort_Free_And_Exit fix
4177 tSCC zInt_Abort_Free_And_ExitName[] =
4178 "int_abort_free_and_exit";
4181 * File name selection pattern
4183 tSCC zInt_Abort_Free_And_ExitList[] =
4186 * Machine/OS name selection pattern
4188 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4191 * content selection pattern - do fix if pattern found
4193 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4194 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4197 * content bypass pattern - skip fix if pattern found
4199 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4200 "_CLASSIC_ANSI_TYPES";
4202 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4203 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4204 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4205 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4208 * Fix Command Arguments for Int_Abort_Free_And_Exit
4210 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4217 * Description of Io_Quotes_Def fix
4219 tSCC zIo_Quotes_DefName[] =
4223 * File name selection pattern
4225 #define zIo_Quotes_DefList (char*)NULL
4227 * Machine/OS name selection pattern
4229 #define apzIo_Quotes_DefMachs (const char**)NULL
4232 * content selection pattern - do fix if pattern found
4234 tSCC zIo_Quotes_DefSelect0[] =
4235 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4237 #define IO_QUOTES_DEF_TEST_CT 1
4238 static tTestDesc aIo_Quotes_DefTests[] = {
4239 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4242 * Fix Command Arguments for Io_Quotes_Def
4244 static const char* apzIo_Quotes_DefPatch[] = {
4249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4251 * Description of Io_Quotes_Use fix
4253 tSCC zIo_Quotes_UseName[] =
4257 * File name selection pattern
4259 #define zIo_Quotes_UseList (char*)NULL
4261 * Machine/OS name selection pattern
4263 #define apzIo_Quotes_UseMachs (const char**)NULL
4266 * content selection pattern - do fix if pattern found
4268 tSCC zIo_Quotes_UseSelect0[] =
4269 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4271 #define IO_QUOTES_USE_TEST_CT 1
4272 static tTestDesc aIo_Quotes_UseTests[] = {
4273 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4276 * Fix Command Arguments for Io_Quotes_Use
4278 static const char* apzIo_Quotes_UsePatch[] = {
4283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4285 * Description of Ip_Missing_Semi fix
4287 tSCC zIp_Missing_SemiName[] =
4291 * File name selection pattern
4293 tSCC zIp_Missing_SemiList[] =
4296 * Machine/OS name selection pattern
4298 #define apzIp_Missing_SemiMachs (const char**)NULL
4301 * content selection pattern - do fix if pattern found
4303 tSCC zIp_Missing_SemiSelect0[] =
4306 #define IP_MISSING_SEMI_TEST_CT 1
4307 static tTestDesc aIp_Missing_SemiTests[] = {
4308 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4311 * Fix Command Arguments for Ip_Missing_Semi
4313 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4314 "-e", "/^struct/,/^};/s/}$/};/",
4317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4319 * Description of Irix___Restrict fix
4321 tSCC zIrix___RestrictName[] =
4325 * File name selection pattern
4327 tSCC zIrix___RestrictList[] =
4328 "internal/sgimacros.h\0";
4330 * Machine/OS name selection pattern
4332 tSCC* apzIrix___RestrictMachs[] = {
4334 (const char*)NULL };
4337 * content selection pattern - do fix if pattern found
4339 tSCC zIrix___RestrictSelect0[] =
4341 )(#[ \t]*define __restrict restrict)";
4343 #define IRIX___RESTRICT_TEST_CT 1
4344 static tTestDesc aIrix___RestrictTests[] = {
4345 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4348 * Fix Command Arguments for Irix___Restrict
4350 static const char* apzIrix___RestrictPatch[] = {
4352 "%1# ifndef __cplusplus\n\
4357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4359 * Description of Irix___Generic1 fix
4361 tSCC zIrix___Generic1Name[] =
4365 * File name selection pattern
4367 tSCC zIrix___Generic1List[] =
4368 "internal/math_core.h\0";
4370 * Machine/OS name selection pattern
4372 tSCC* apzIrix___Generic1Machs[] = {
4374 (const char*)NULL };
4377 * content selection pattern - do fix if pattern found
4379 tSCC zIrix___Generic1Select0[] =
4380 "#define ([a-z]+)\\(x\\) *__generic.*";
4382 #define IRIX___GENERIC1_TEST_CT 1
4383 static tTestDesc aIrix___Generic1Tests[] = {
4384 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4387 * Fix Command Arguments for Irix___Generic1
4389 static const char* apzIrix___Generic1Patch[] = {
4391 "extern int %1(double);\n\
4392 extern int %1f(float);\n\
4393 extern int %1l(long double);\n\
4394 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4395 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4401 * Description of Irix___Generic2 fix
4403 tSCC zIrix___Generic2Name[] =
4407 * File name selection pattern
4409 tSCC zIrix___Generic2List[] =
4410 "internal/math_core.h\0";
4412 * Machine/OS name selection pattern
4414 tSCC* apzIrix___Generic2Machs[] = {
4416 (const char*)NULL };
4419 * content selection pattern - do fix if pattern found
4421 tSCC zIrix___Generic2Select0[] =
4422 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4424 #define IRIX___GENERIC2_TEST_CT 1
4425 static tTestDesc aIrix___Generic2Tests[] = {
4426 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4429 * Fix Command Arguments for Irix___Generic2
4431 static const char* apzIrix___Generic2Patch[] = {
4433 "#define %1(x,y) \\\n\
4434 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4435 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4441 * Description of Irix_Asm_Apostrophe fix
4443 tSCC zIrix_Asm_ApostropheName[] =
4444 "irix_asm_apostrophe";
4447 * File name selection pattern
4449 tSCC zIrix_Asm_ApostropheList[] =
4452 * Machine/OS name selection pattern
4454 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4457 * content selection pattern - do fix if pattern found
4459 tSCC zIrix_Asm_ApostropheSelect0[] =
4460 "^[ \t]*#.*[Ww]e're";
4462 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4463 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4464 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4467 * Fix Command Arguments for Irix_Asm_Apostrophe
4469 static const char* apzIrix_Asm_ApostrophePatch[] = {
4472 "^([ \t]*#.*[Ww]e)'re",
4475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4477 * Description of Irix_Complex fix
4479 tSCC zIrix_ComplexName[] =
4483 * File name selection pattern
4485 tSCC zIrix_ComplexList[] =
4488 * Machine/OS name selection pattern
4490 tSCC* apzIrix_ComplexMachs[] = {
4492 (const char*)NULL };
4495 * content selection pattern - do fix if pattern found
4497 tSCC zIrix_ComplexSelect0[] =
4498 "#define[ \t]_Complex_I[ \t]\\(\\(float[ \t]_Complex\\)[ \t]\\(__I__\\)\\)";
4500 #define IRIX_COMPLEX_TEST_CT 1
4501 static tTestDesc aIrix_ComplexTests[] = {
4502 { TT_EGREP, zIrix_ComplexSelect0, (regex_t*)NULL }, };
4505 * Fix Command Arguments for Irix_Complex
4507 static const char* apzIrix_ComplexPatch[] = { sed_cmd_z,
4508 "-e", "s/#define[ \t]_Complex_I[ \t]((float[ \t]_Complex)[ \t](__I__))/#define _Complex_I (__extension__ 1.0iF)/",
4509 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
4510 "-e", "/#define[ \t]_Imaginary_I/d",
4511 "-e", "s/#define[ \t]I[ \t]_Imaginary_I/#define I _Complex_I/",
4514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4516 * Description of Irix_Limits_Const fix
4518 tSCC zIrix_Limits_ConstName[] =
4519 "irix_limits_const";
4522 * File name selection pattern
4524 tSCC zIrix_Limits_ConstList[] =
4525 "fixinc-test-limits.h\0limits.h\0";
4527 * Machine/OS name selection pattern
4529 #define apzIrix_Limits_ConstMachs (const char**)NULL
4532 * content selection pattern - do fix if pattern found
4534 tSCC zIrix_Limits_ConstSelect0[] =
4537 #define IRIX_LIMITS_CONST_TEST_CT 1
4538 static tTestDesc aIrix_Limits_ConstTests[] = {
4539 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4542 * Fix Command Arguments for Irix_Limits_Const
4544 static const char* apzIrix_Limits_ConstPatch[] = {
4549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4551 * Description of Irix_Pthread_Init fix
4553 tSCC zIrix_Pthread_InitName[] =
4554 "irix_pthread_init";
4557 * File name selection pattern
4559 tSCC zIrix_Pthread_InitList[] =
4562 * Machine/OS name selection pattern
4564 tSCC* apzIrix_Pthread_InitMachs[] = {
4566 (const char*)NULL };
4569 * content selection pattern - do fix if pattern found
4571 tSCC zIrix_Pthread_InitSelect0[] =
4572 "^(#define[ \t]+PTHREAD_.*_INITIALIZER[ \t]+)(\\{ 0 \\})";
4574 #define IRIX_PTHREAD_INIT_TEST_CT 1
4575 static tTestDesc aIrix_Pthread_InitTests[] = {
4576 { TT_EGREP, zIrix_Pthread_InitSelect0, (regex_t*)NULL }, };
4579 * Fix Command Arguments for Irix_Pthread_Init
4581 static const char* apzIrix_Pthread_InitPatch[] = {
4586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4588 * Description of Irix_Socklen_T fix
4590 tSCC zIrix_Socklen_TName[] =
4594 * File name selection pattern
4596 tSCC zIrix_Socklen_TList[] =
4599 * Machine/OS name selection pattern
4601 tSCC* apzIrix_Socklen_TMachs[] = {
4603 (const char*)NULL };
4606 * content selection pattern - do fix if pattern found
4608 tSCC zIrix_Socklen_TSelect0[] =
4609 "(#define _SOCKLEN_T\n\
4610 )(typedef u_int32_t socklen_t;)";
4612 #define IRIX_SOCKLEN_T_TEST_CT 1
4613 static tTestDesc aIrix_Socklen_TTests[] = {
4614 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4617 * Fix Command Arguments for Irix_Socklen_T
4619 static const char* apzIrix_Socklen_TPatch[] = {
4621 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4622 typedef int socklen_t;\n\
4625 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4630 * Description of Irix_Stdint_C99_Mode fix
4632 tSCC zIrix_Stdint_C99_ModeName[] =
4633 "irix_stdint_c99_mode";
4636 * File name selection pattern
4638 tSCC zIrix_Stdint_C99_ModeList[] =
4641 * Machine/OS name selection pattern
4643 tSCC* apzIrix_Stdint_C99_ModeMachs[] = {
4645 (const char*)NULL };
4648 * content selection pattern - do fix if pattern found
4650 tSCC zIrix_Stdint_C99_ModeSelect0[] =
4652 )(#error This header file is to be used only for c99 mode compilations)";
4654 #define IRIX_STDINT_C99_MODE_TEST_CT 1
4655 static tTestDesc aIrix_Stdint_C99_ModeTests[] = {
4656 { TT_EGREP, zIrix_Stdint_C99_ModeSelect0, (regex_t*)NULL }, };
4659 * Fix Command Arguments for Irix_Stdint_C99_Mode
4661 static const char* apzIrix_Stdint_C99_ModePatch[] = {
4667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4669 * Description of Irix_Stdint_C99_Types fix
4671 tSCC zIrix_Stdint_C99_TypesName[] =
4672 "irix_stdint_c99_types";
4675 * File name selection pattern
4677 tSCC zIrix_Stdint_C99_TypesList[] =
4678 "stdint-irix65.h\0stdint.h\0";
4680 * Machine/OS name selection pattern
4682 tSCC* apzIrix_Stdint_C99_TypesMachs[] = {
4684 (const char*)NULL };
4685 #define IRIX_STDINT_C99_TYPES_TEST_CT 0
4686 #define aIrix_Stdint_C99_TypesTests (tTestDesc*)NULL
4689 * Fix Command Arguments for Irix_Stdint_C99_Types
4691 static const char* apzIrix_Stdint_C99_TypesPatch[] = { sed_cmd_z,
4692 "-e", "s@^#define INT64_MIN.*(-0x7fffffffffffffff - 1)$@#define INT64_MIN (-0x7fffffffffffffffLL - 1)@",
4693 "-e", "s@^#define INT64_MAX.*0x7fffffffffffffff$@#define INT64_MAX 0x7fffffffffffffffLL@",
4694 "-e", "s@^#define UINT32_MAX.*0xffffffff$@#define UINT32_MAX 0xffffffffU@",
4695 "-e", "s@^#define UINT64_MAX.*0xffffffffffffffff$@#define UINT64_MAX 0xffffffffffffffffULL@",
4696 "-e", "s@^#define INTPTR_MIN.*INT32_MIN$@#define INTPTR_MIN (-0x7fffffffL - 1)@",
4697 "-e", "s@^#define INTPTR_MAX.*INT32_MAX$@#define INTPTR_MAX 0x7fffffffL@",
4698 "-e", "s@^#define UINTPTR_MAX.*UINT32_MAX$@#define UINTPTR_MAX 0xffffffffUL@",
4699 "-e", "s@^#define INTPTR_MIN.*INT64_MIN@#define INTPTR_MIN (-0x7fffffffffffffffL - 1)@",
4700 "-e", "s@^#define INTPTR_MAX.*INT64_MAX$@#define INTPTR_MAX 0x7fffffffffffffffL@",
4701 "-e", "s@^#define UINTPTR_MAX.*UINT64_MAX$@#define UINTPTR_MAX 0xffffffffffffffffUL@",
4702 "-e", "s@^#define PTRDIFF_MIN.*INT64_MIN$@#define PTRDIFF_MIN (-0x7fffffffffffffffL - 1)@",
4703 "-e", "s@^#define PTRDIFF_MAX.*INT64_MAX$@#define PTRDIFF_MAX 0x7fffffffffffffffL@",
4704 "-e", "s@^#define SIZE_MAX.*UINT64_MAX$@#define SIZE_MAX 0xffffffffffffffffUL@",
4707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4709 * Description of Irix_Stdint_C99_Macros fix
4711 tSCC zIrix_Stdint_C99_MacrosName[] =
4712 "irix_stdint_c99_macros";
4715 * File name selection pattern
4717 tSCC zIrix_Stdint_C99_MacrosList[] =
4718 "stdint-irix65.h\0stdint.h\0";
4720 * Machine/OS name selection pattern
4722 tSCC* apzIrix_Stdint_C99_MacrosMachs[] = {
4724 (const char*)NULL };
4725 #define IRIX_STDINT_C99_MACROS_TEST_CT 0
4726 #define aIrix_Stdint_C99_MacrosTests (tTestDesc*)NULL
4729 * Fix Command Arguments for Irix_Stdint_C99_Macros
4731 static const char* apzIrix_Stdint_C99_MacrosPatch[] = { sed_cmd_z,
4732 "-e", "s@^#define INT8_C(x).*int.*_t.*$@#define INT8_C(x) (x)@",
4733 "-e", "s@^#define INT16_C(x).*int.*_t.*$@#define INT16_C(x) (x)@",
4734 "-e", "s@^#define INT32_C(x).*int.*_t.*$@#define INT32_C(x) (x)@",
4735 "-e", "s@^#define INT64_C(x).*int.*_t.*$@#define INT64_C(x) (x ## LL)@",
4736 "-e", "s@^#define UINT8_C(x).*int.*_t.*$@#define UINT8_C(x) (x)@",
4737 "-e", "s@^#define UINT16_C(x).*int.*_t.*$@#define UINT16_C(x) (x)@",
4738 "-e", "s@^#define UINT32_C(x).*int.*_t.*$@#define UINT32_C(x) (x ## U)@",
4739 "-e", "s@^#define UINT64_C(x).*int.*_t.*$@#define UINT64_C(x) (x ## ULL)@",
4740 "-e", "s@^#define INTMAX_C(x).*int.*_t.*$@#define INTMAX_C(x) (x ## LL)@",
4741 "-e", "s@^#define UINTMAX_C(x).*int.*_t.*$@#define UINTMAX_C(x) (x ## ULL)@",
4744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4746 * Description of Irix_Stdio_Va_List fix
4748 tSCC zIrix_Stdio_Va_ListName[] =
4749 "irix_stdio_va_list";
4752 * File name selection pattern
4754 tSCC zIrix_Stdio_Va_ListList[] =
4755 "stdio.h\0internal/stdio_core.h\0";
4757 * Machine/OS name selection pattern
4759 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4762 * content selection pattern - do fix if pattern found
4764 tSCC zIrix_Stdio_Va_ListSelect0[] =
4765 "/\\* va_list \\*/ char \\*";
4767 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4768 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4769 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4772 * Fix Command Arguments for Irix_Stdio_Va_List
4774 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4781 * Description of Irix_Wcsftime fix
4783 tSCC zIrix_WcsftimeName[] =
4787 * File name selection pattern
4789 tSCC zIrix_WcsftimeList[] =
4790 "internal/wchar_core.h\0";
4792 * Machine/OS name selection pattern
4794 tSCC* apzIrix_WcsftimeMachs[] = {
4796 (const char*)NULL };
4799 * content selection pattern - do fix if pattern found
4801 tSCC zIrix_WcsftimeSelect0[] =
4803 (extern size_t[ \t]+wcsftime.*const char *.*)";
4805 #define IRIX_WCSFTIME_TEST_CT 1
4806 static tTestDesc aIrix_WcsftimeTests[] = {
4807 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4810 * Fix Command Arguments for Irix_Wcsftime
4812 static const char* apzIrix_WcsftimePatch[] = {
4814 "#if _NO_XOPEN5 && !defined(__c99)\n\
4818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4820 * Description of Kandr_Concat fix
4822 tSCC zKandr_ConcatName[] =
4826 * File name selection pattern
4828 tSCC zKandr_ConcatList[] =
4829 "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";
4831 * Machine/OS name selection pattern
4833 #define apzKandr_ConcatMachs (const char**)NULL
4836 * content selection pattern - do fix if pattern found
4838 tSCC zKandr_ConcatSelect0[] =
4841 #define KANDR_CONCAT_TEST_CT 1
4842 static tTestDesc aKandr_ConcatTests[] = {
4843 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4846 * Fix Command Arguments for Kandr_Concat
4848 static const char* apzKandr_ConcatPatch[] = {
4853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4855 * Description of Linux_Ia64_Ucontext fix
4857 tSCC zLinux_Ia64_UcontextName[] =
4858 "linux_ia64_ucontext";
4861 * File name selection pattern
4863 tSCC zLinux_Ia64_UcontextList[] =
4866 * Machine/OS name selection pattern
4868 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4870 (const char*)NULL };
4873 * content selection pattern - do fix if pattern found
4875 tSCC zLinux_Ia64_UcontextSelect0[] =
4876 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4878 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4879 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4880 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4883 * Fix Command Arguments for Linux_Ia64_Ucontext
4885 static const char* apzLinux_Ia64_UcontextPatch[] = {
4887 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4890 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4892 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4894 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4895 "lynxos_no_warning_in_sys_time_h";
4898 * File name selection pattern
4900 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4903 * Machine/OS name selection pattern
4905 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4908 * content selection pattern - do fix if pattern found
4910 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4911 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4913 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4914 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4915 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4918 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4920 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4927 * Description of Lynxos_Missing_Putenv fix
4929 tSCC zLynxos_Missing_PutenvName[] =
4930 "lynxos_missing_putenv";
4933 * File name selection pattern
4935 tSCC zLynxos_Missing_PutenvList[] =
4938 * Machine/OS name selection pattern
4940 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4942 (const char*)NULL };
4945 * content selection pattern - do fix if pattern found
4947 tSCC zLynxos_Missing_PutenvSelect0[] =
4948 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4951 * content bypass pattern - skip fix if pattern found
4953 tSCC zLynxos_Missing_PutenvBypass0[] =
4956 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4957 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4958 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4959 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4962 * Fix Command Arguments for Lynxos_Missing_Putenv
4964 static const char* apzLynxos_Missing_PutenvPatch[] = {
4967 extern int putenv\t\t\t\t_AP((char *));",
4968 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4973 * Description of Machine_Ansi_H_Va_List fix
4975 tSCC zMachine_Ansi_H_Va_ListName[] =
4976 "machine_ansi_h_va_list";
4979 * File name selection pattern
4981 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4983 * Machine/OS name selection pattern
4985 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4988 * content selection pattern - do fix if pattern found
4990 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4991 "define[ \t]+_BSD_VA_LIST_[ \t]";
4994 * content bypass pattern - skip fix if pattern found
4996 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4997 "__builtin_va_list";
4999 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
5000 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5001 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5002 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5005 * Fix Command Arguments for Machine_Ansi_H_Va_List
5007 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5009 "%1__builtin_va_list",
5010 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5013 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5015 * Description of Machine_Name fix
5017 tSCC zMachine_NameName[] =
5021 * File name selection pattern
5023 #define zMachine_NameList (char*)NULL
5025 * Machine/OS name selection pattern
5027 #define apzMachine_NameMachs (const char**)NULL
5030 * perform the C function call test
5032 tSCC zMachine_NameFTst0[] = "machine_name";
5034 #define MACHINE_NAME_TEST_CT 1
5035 static tTestDesc aMachine_NameTests[] = {
5036 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
5039 * Fix Command Arguments for Machine_Name
5041 static const char* apzMachine_NamePatch[] = {
5045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5047 * Description of Math_Exception fix
5049 tSCC zMath_ExceptionName[] =
5053 * File name selection pattern
5055 tSCC zMath_ExceptionList[] =
5058 * Machine/OS name selection pattern
5060 #define apzMath_ExceptionMachs (const char**)NULL
5063 * content selection pattern - do fix if pattern found
5065 tSCC zMath_ExceptionSelect0[] =
5069 * content bypass pattern - skip fix if pattern found
5071 tSCC zMath_ExceptionBypass0[] =
5072 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5074 #define MATH_EXCEPTION_TEST_CT 2
5075 static tTestDesc aMath_ExceptionTests[] = {
5076 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5077 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
5080 * Fix Command Arguments for Math_Exception
5082 static const char* apzMath_ExceptionPatch[] = {
5084 "#ifdef __cplusplus\n\
5085 #define exception __math_exception\n\
5087 "#ifdef __cplusplus\n\
5092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5094 * Description of Math_Huge_Val_From_Dbl_Max fix
5096 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5097 "math_huge_val_from_dbl_max";
5100 * File name selection pattern
5102 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5105 * Machine/OS name selection pattern
5107 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5110 * content selection pattern - do fix if pattern found
5112 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5113 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5116 * content bypass pattern - skip fix if pattern found
5118 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5119 "define[ \t]+DBL_MAX";
5121 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
5122 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5123 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5124 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5127 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5129 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5130 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5131 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5132 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5139 * Description of Nested_Auth_Des fix
5141 tSCC zNested_Auth_DesName[] =
5145 * File name selection pattern
5147 tSCC zNested_Auth_DesList[] =
5150 * Machine/OS name selection pattern
5152 #define apzNested_Auth_DesMachs (const char**)NULL
5155 * content selection pattern - do fix if pattern found
5157 tSCC zNested_Auth_DesSelect0[] =
5158 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5160 #define NESTED_AUTH_DES_TEST_CT 1
5161 static tTestDesc aNested_Auth_DesTests[] = {
5162 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5165 * Fix Command Arguments for Nested_Auth_Des
5167 static const char* apzNested_Auth_DesPatch[] = {
5172 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5174 * Description of Netbsd_C99_Inline_1 fix
5176 tSCC zNetbsd_C99_Inline_1Name[] =
5177 "netbsd_c99_inline_1";
5180 * File name selection pattern
5182 tSCC zNetbsd_C99_Inline_1List[] =
5185 * Machine/OS name selection pattern
5187 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5189 (const char*)NULL };
5192 * content selection pattern - do fix if pattern found
5194 tSCC zNetbsd_C99_Inline_1Select0[] =
5195 "extern __inline int";
5197 #define NETBSD_C99_INLINE_1_TEST_CT 1
5198 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5199 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5202 * Fix Command Arguments for Netbsd_C99_Inline_1
5204 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5207 #ifdef __GNUC_STDC_INLINE__\n\
5208 __attribute__((__gnu_inline__))\n\
5213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5215 * Description of Netbsd_C99_Inline_2 fix
5217 tSCC zNetbsd_C99_Inline_2Name[] =
5218 "netbsd_c99_inline_2";
5221 * File name selection pattern
5223 tSCC zNetbsd_C99_Inline_2List[] =
5226 * Machine/OS name selection pattern
5228 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5230 (const char*)NULL };
5233 * content selection pattern - do fix if pattern found
5235 tSCC zNetbsd_C99_Inline_2Select0[] =
5236 "#define _SIGINLINE extern __inline";
5238 #define NETBSD_C99_INLINE_2_TEST_CT 1
5239 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5240 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5243 * Fix Command Arguments for Netbsd_C99_Inline_2
5245 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5247 "#ifdef __GNUC_STDC_INLINE__\n\
5248 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5256 * Description of Netbsd_Extra_Semicolon fix
5258 tSCC zNetbsd_Extra_SemicolonName[] =
5259 "netbsd_extra_semicolon";
5262 * File name selection pattern
5264 tSCC zNetbsd_Extra_SemicolonList[] =
5267 * Machine/OS name selection pattern
5269 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5271 (const char*)NULL };
5274 * content selection pattern - do fix if pattern found
5276 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5277 "#define[ \t]*__END_DECLS[ \t]*};";
5279 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
5280 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5281 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5284 * Fix Command Arguments for Netbsd_Extra_Semicolon
5286 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5288 "#define __END_DECLS }",
5291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5293 * Description of Newlib_Stdint_1 fix
5295 tSCC zNewlib_Stdint_1Name[] =
5299 * File name selection pattern
5301 tSCC zNewlib_Stdint_1List[] =
5302 "stdint-newlib.h\0stdint.h\0";
5304 * Machine/OS name selection pattern
5306 #define apzNewlib_Stdint_1Machs (const char**)NULL
5309 * content selection pattern - do fix if pattern found
5311 tSCC zNewlib_Stdint_1Select0[] =
5312 "@todo - Add support for wint_t types";
5314 #define NEWLIB_STDINT_1_TEST_CT 1
5315 static tTestDesc aNewlib_Stdint_1Tests[] = {
5316 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5319 * Fix Command Arguments for Newlib_Stdint_1
5321 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5322 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5323 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5324 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5325 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5326 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5327 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5328 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5329 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5330 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5331 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5332 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5333 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5334 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5335 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5340 * Description of Newlib_Stdint_2 fix
5342 tSCC zNewlib_Stdint_2Name[] =
5346 * File name selection pattern
5348 tSCC zNewlib_Stdint_2List[] =
5349 "stdint-newlib.h\0stdint.h\0";
5351 * Machine/OS name selection pattern
5353 #define apzNewlib_Stdint_2Machs (const char**)NULL
5356 * content selection pattern - do fix if pattern found
5358 tSCC zNewlib_Stdint_2Select0[] =
5359 "@todo - Add support for wint_t types";
5361 #define NEWLIB_STDINT_2_TEST_CT 1
5362 static tTestDesc aNewlib_Stdint_2Tests[] = {
5363 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5366 * Fix Command Arguments for Newlib_Stdint_2
5368 static const char* apzNewlib_Stdint_2Patch[] = {
5370 "#define INTMAX_MAX __INTMAX_MAX__\n\
5371 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5372 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5373 #define WCHAR_MAX __WCHAR_MAX__\n\
5374 #define WCHAR_MIN __WCHAR_MIN__\n\
5375 #define WINT_MAX __WINT_MAX__\n\
5376 #define WINT_MIN __WINT_MIN__\n\n\
5378 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5383 * Description of Next_Math_Prefix fix
5385 tSCC zNext_Math_PrefixName[] =
5389 * File name selection pattern
5391 tSCC zNext_Math_PrefixList[] =
5394 * Machine/OS name selection pattern
5396 #define apzNext_Math_PrefixMachs (const char**)NULL
5399 * content selection pattern - do fix if pattern found
5401 tSCC zNext_Math_PrefixSelect0[] =
5402 "^extern[ \t]+double[ \t]+__const__[ \t]";
5404 #define NEXT_MATH_PREFIX_TEST_CT 1
5405 static tTestDesc aNext_Math_PrefixTests[] = {
5406 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5409 * Fix Command Arguments for Next_Math_Prefix
5411 static const char* apzNext_Math_PrefixPatch[] = {
5413 "extern double %1(",
5414 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5419 * Description of Next_Template fix
5421 tSCC zNext_TemplateName[] =
5425 * File name selection pattern
5427 tSCC zNext_TemplateList[] =
5430 * Machine/OS name selection pattern
5432 #define apzNext_TemplateMachs (const char**)NULL
5435 * content selection pattern - do fix if pattern found
5437 tSCC zNext_TemplateSelect0[] =
5440 #define NEXT_TEMPLATE_TEST_CT 1
5441 static tTestDesc aNext_TemplateTests[] = {
5442 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5445 * Fix Command Arguments for Next_Template
5447 static const char* apzNext_TemplatePatch[] = {
5450 "\\(([^)]*)[ \t]template\\)",
5453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5455 * Description of Next_Volitile fix
5457 tSCC zNext_VolitileName[] =
5461 * File name selection pattern
5463 tSCC zNext_VolitileList[] =
5466 * Machine/OS name selection pattern
5468 #define apzNext_VolitileMachs (const char**)NULL
5471 * content selection pattern - do fix if pattern found
5473 tSCC zNext_VolitileSelect0[] =
5474 "^extern[ \t]+volatile[ \t]+void[ \t]";
5476 #define NEXT_VOLITILE_TEST_CT 1
5477 static tTestDesc aNext_VolitileTests[] = {
5478 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5481 * Fix Command Arguments for Next_Volitile
5483 static const char* apzNext_VolitilePatch[] = {
5486 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5491 * Description of Next_Wait_Union fix
5493 tSCC zNext_Wait_UnionName[] =
5497 * File name selection pattern
5499 tSCC zNext_Wait_UnionList[] =
5502 * Machine/OS name selection pattern
5504 #define apzNext_Wait_UnionMachs (const char**)NULL
5507 * content selection pattern - do fix if pattern found
5509 tSCC zNext_Wait_UnionSelect0[] =
5510 "wait\\(union wait";
5512 #define NEXT_WAIT_UNION_TEST_CT 1
5513 static tTestDesc aNext_Wait_UnionTests[] = {
5514 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5517 * Fix Command Arguments for Next_Wait_Union
5519 static const char* apzNext_Wait_UnionPatch[] = {
5524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5526 * Description of Nodeent_Syntax fix
5528 tSCC zNodeent_SyntaxName[] =
5532 * File name selection pattern
5534 tSCC zNodeent_SyntaxList[] =
5535 "netdnet/dnetdb.h\0";
5537 * Machine/OS name selection pattern
5539 #define apzNodeent_SyntaxMachs (const char**)NULL
5542 * content selection pattern - do fix if pattern found
5544 tSCC zNodeent_SyntaxSelect0[] =
5545 "char[ \t]*\\*na_addr[ \t]*$";
5547 #define NODEENT_SYNTAX_TEST_CT 1
5548 static tTestDesc aNodeent_SyntaxTests[] = {
5549 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5552 * Fix Command Arguments for Nodeent_Syntax
5554 static const char* apzNodeent_SyntaxPatch[] = {
5559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5561 * Description of Openbsd_Null_Definition fix
5563 tSCC zOpenbsd_Null_DefinitionName[] =
5564 "openbsd_null_definition";
5567 * File name selection pattern
5569 tSCC zOpenbsd_Null_DefinitionList[] =
5570 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5572 * Machine/OS name selection pattern
5574 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5576 (const char*)NULL };
5579 * content selection pattern - do fix if pattern found
5581 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5584 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5585 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5586 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5589 * Fix Command Arguments for Openbsd_Null_Definition
5591 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5594 #ifdef __cplusplus\n\
5596 #define NULL\t__null\n\
5597 #else\t /* ! __GNUG__ */\n\
5599 #endif\t /* __GNUG__ */\n\
5600 #else\t /* ! __cplusplus */\n\
5601 #define NULL\t((void *)0)\n\
5602 #endif\t /* __cplusplus */\n\
5603 #endif\t /* !NULL */",
5604 "^#ifndef[ \t]*NULL\n\
5605 ^#ifdef[ \t]*__GNUG__\n\
5606 ^#define[ \t]*NULL[ \t]*__null\n\
5608 ^#define[ \t]*NULL[ \t]*0L\n\
5613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5615 * Description of Obstack_Lvalue_Cast fix
5617 tSCC zObstack_Lvalue_CastName[] =
5618 "obstack_lvalue_cast";
5621 * File name selection pattern
5623 tSCC zObstack_Lvalue_CastList[] =
5626 * Machine/OS name selection pattern
5628 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5631 * content selection pattern - do fix if pattern found
5633 tSCC zObstack_Lvalue_CastSelect0[] =
5634 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5636 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5637 static tTestDesc aObstack_Lvalue_CastTests[] = {
5638 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5641 * Fix Command Arguments for Obstack_Lvalue_Cast
5643 static const char* apzObstack_Lvalue_CastPatch[] = {
5645 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5650 * Description of Openbsd_Va_Start fix
5652 tSCC zOpenbsd_Va_StartName[] =
5656 * File name selection pattern
5658 tSCC zOpenbsd_Va_StartList[] =
5661 * Machine/OS name selection pattern
5663 tSCC* apzOpenbsd_Va_StartMachs[] = {
5665 (const char*)NULL };
5668 * content selection pattern - do fix if pattern found
5670 tSCC zOpenbsd_Va_StartSelect0[] =
5671 "__builtin_stdarg_start";
5673 #define OPENBSD_VA_START_TEST_CT 1
5674 static tTestDesc aOpenbsd_Va_StartTests[] = {
5675 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5678 * Fix Command Arguments for Openbsd_Va_Start
5680 static const char* apzOpenbsd_Va_StartPatch[] = {
5682 "__builtin_va_start",
5685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5687 * Description of Osf_Namespace_A fix
5689 tSCC zOsf_Namespace_AName[] =
5693 * File name selection pattern
5695 tSCC zOsf_Namespace_AList[] =
5696 "reg_types.h\0sys/lc_core.h\0";
5698 * Machine/OS name selection pattern
5700 #define apzOsf_Namespace_AMachs (const char**)NULL
5703 * perform the 'test' shell command - do fix on success
5705 tSCC zOsf_Namespace_ATest0[] =
5707 tSCC zOsf_Namespace_ATest1[] =
5708 " -r sys/lc_core.h";
5709 tSCC zOsf_Namespace_ATest2[] =
5710 " -n \"`grep '} regex_t;' reg_types.h`\"";
5711 tSCC zOsf_Namespace_ATest3[] =
5712 " -z \"`grep __regex_t regex.h`\"";
5714 #define OSF_NAMESPACE_A_TEST_CT 4
5715 static tTestDesc aOsf_Namespace_ATests[] = {
5716 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5717 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5718 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5719 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5722 * Fix Command Arguments for Osf_Namespace_A
5724 static const char* apzOsf_Namespace_APatch[] = {
5727 "reg(ex|off|match)_t",
5730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5732 * Description of Osf_Namespace_C fix
5734 tSCC zOsf_Namespace_CName[] =
5738 * File name selection pattern
5740 tSCC zOsf_Namespace_CList[] =
5743 * Machine/OS name selection pattern
5745 #define apzOsf_Namespace_CMachs (const char**)NULL
5748 * content selection pattern - do fix if pattern found
5750 tSCC zOsf_Namespace_CSelect0[] =
5751 "#include <reg_types.h>.*";
5754 * perform the 'test' shell command - do fix on success
5756 tSCC zOsf_Namespace_CTest0[] =
5758 tSCC zOsf_Namespace_CTest1[] =
5759 " -r sys/lc_core.h";
5760 tSCC zOsf_Namespace_CTest2[] =
5761 " -n \"`grep '} regex_t;' reg_types.h`\"";
5762 tSCC zOsf_Namespace_CTest3[] =
5763 " -z \"`grep __regex_t regex.h`\"";
5765 #define OSF_NAMESPACE_C_TEST_CT 5
5766 static tTestDesc aOsf_Namespace_CTests[] = {
5767 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5768 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5769 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5770 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5771 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5774 * Fix Command Arguments for Osf_Namespace_C
5776 static const char* apzOsf_Namespace_CPatch[] = {
5779 typedef __regex_t\tregex_t;\n\
5780 typedef __regoff_t\tregoff_t;\n\
5781 typedef __regmatch_t\tregmatch_t;",
5784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5786 * Description of Pthread_Incomplete_Struct_Argument fix
5788 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5789 "pthread_incomplete_struct_argument";
5792 * File name selection pattern
5794 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5797 * Machine/OS name selection pattern
5799 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5802 * content selection pattern - do fix if pattern found
5804 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5805 "struct __jmp_buf_tag";
5807 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5808 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5809 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5812 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5814 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5817 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5822 * Description of Read_Ret_Type fix
5824 tSCC zRead_Ret_TypeName[] =
5828 * File name selection pattern
5830 tSCC zRead_Ret_TypeList[] =
5833 * Machine/OS name selection pattern
5835 #define apzRead_Ret_TypeMachs (const char**)NULL
5838 * content selection pattern - do fix if pattern found
5840 tSCC zRead_Ret_TypeSelect0[] =
5841 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5843 #define READ_RET_TYPE_TEST_CT 1
5844 static tTestDesc aRead_Ret_TypeTests[] = {
5845 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5848 * Fix Command Arguments for Read_Ret_Type
5850 static const char* apzRead_Ret_TypePatch[] = {
5852 "extern unsigned int fread(), fwrite();\n\
5854 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5859 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5861 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5862 "rpc_xdr_lvalue_cast_a";
5865 * File name selection pattern
5867 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5870 * Machine/OS name selection pattern
5872 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5875 * content selection pattern - do fix if pattern found
5877 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5878 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5881 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5882 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5883 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5886 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5888 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5890 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5895 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5897 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5898 "rpc_xdr_lvalue_cast_b";
5901 * File name selection pattern
5903 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5906 * Machine/OS name selection pattern
5908 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5911 * content selection pattern - do fix if pattern found
5913 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5914 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5917 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5918 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5919 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5922 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5924 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5926 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5931 * Description of Rs6000_Double fix
5933 tSCC zRs6000_DoubleName[] =
5937 * File name selection pattern
5939 tSCC zRs6000_DoubleList[] =
5942 * Machine/OS name selection pattern
5944 #define apzRs6000_DoubleMachs (const char**)NULL
5947 * content selection pattern - do fix if pattern found
5949 tSCC zRs6000_DoubleSelect0[] =
5950 "[^a-zA-Z_]class\\(";
5952 #define RS6000_DOUBLE_TEST_CT 1
5953 static tTestDesc aRs6000_DoubleTests[] = {
5954 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5957 * Fix Command Arguments for Rs6000_Double
5959 static const char* apzRs6000_DoublePatch[] = {
5961 "#ifndef __cplusplus\n\
5964 "^.*[^a-zA-Z_]class\\(.*",
5967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5969 * Description of Rs6000_Fchmod fix
5971 tSCC zRs6000_FchmodName[] =
5975 * File name selection pattern
5977 tSCC zRs6000_FchmodList[] =
5980 * Machine/OS name selection pattern
5982 #define apzRs6000_FchmodMachs (const char**)NULL
5985 * content selection pattern - do fix if pattern found
5987 tSCC zRs6000_FchmodSelect0[] =
5988 "fchmod\\(char \\*";
5990 #define RS6000_FCHMOD_TEST_CT 1
5991 static tTestDesc aRs6000_FchmodTests[] = {
5992 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5995 * Fix Command Arguments for Rs6000_Fchmod
5997 static const char* apzRs6000_FchmodPatch[] = {
6002 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6004 * Description of Rs6000_Param fix
6006 tSCC zRs6000_ParamName[] =
6010 * File name selection pattern
6012 tSCC zRs6000_ParamList[] =
6013 "stdio.h\0unistd.h\0";
6015 * Machine/OS name selection pattern
6017 #define apzRs6000_ParamMachs (const char**)NULL
6020 * content selection pattern - do fix if pattern found
6022 tSCC zRs6000_ParamSelect0[] =
6023 "rename\\(const char \\*old, const char \\*new\\)";
6025 #define RS6000_PARAM_TEST_CT 1
6026 static tTestDesc aRs6000_ParamTests[] = {
6027 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
6030 * Fix Command Arguments for Rs6000_Param
6032 static const char* apzRs6000_ParamPatch[] = {
6034 "rename(const char *_old, const char *_new)",
6037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6039 * Description of Solaris___Restrict fix
6041 tSCC zSolaris___RestrictName[] =
6042 "solaris___restrict";
6045 * File name selection pattern
6047 tSCC zSolaris___RestrictList[] =
6048 "sys/feature_tests.h\0";
6050 * Machine/OS name selection pattern
6052 tSCC* apzSolaris___RestrictMachs[] = {
6054 (const char*)NULL };
6057 * content selection pattern - do fix if pattern found
6059 tSCC zSolaris___RestrictSelect0[] =
6060 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6062 #define SOLARIS___RESTRICT_TEST_CT 1
6063 static tTestDesc aSolaris___RestrictTests[] = {
6064 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6067 * Fix Command Arguments for Solaris___Restrict
6069 static const char* apzSolaris___RestrictPatch[] = {
6071 "#ifdef __cplusplus\n\
6072 #define\t_RESTRICT_KYWD\t__restrict\n\
6078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6080 * Description of Solaris_Complex fix
6082 tSCC zSolaris_ComplexName[] =
6086 * File name selection pattern
6088 tSCC zSolaris_ComplexList[] =
6091 * Machine/OS name selection pattern
6093 tSCC* apzSolaris_ComplexMachs[] = {
6095 (const char*)NULL };
6098 * content selection pattern - do fix if pattern found
6100 tSCC zSolaris_ComplexSelect0[] =
6101 "#define[ \t]_Complex_I[ \t]_Complex_I";
6103 #define SOLARIS_COMPLEX_TEST_CT 1
6104 static tTestDesc aSolaris_ComplexTests[] = {
6105 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6108 * Fix Command Arguments for Solaris_Complex
6110 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6111 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6112 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6113 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6114 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6119 * Description of Solaris_Complex_Cxx fix
6121 tSCC zSolaris_Complex_CxxName[] =
6122 "solaris_complex_cxx";
6125 * File name selection pattern
6127 tSCC zSolaris_Complex_CxxList[] =
6130 * Machine/OS name selection pattern
6132 tSCC* apzSolaris_Complex_CxxMachs[] = {
6134 (const char*)NULL };
6135 #define SOLARIS_COMPLEX_CXX_TEST_CT 0
6136 #define aSolaris_Complex_CxxTests (tTestDesc*)NULL
6139 * Fix Command Arguments for Solaris_Complex_Cxx
6141 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6142 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6143 #ifdef\t__cplusplus\\\n\
6146 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6147 #ifdef\t__cplusplus\\\n\
6152 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6154 * Description of Solaris_Cond_Init fix
6156 tSCC zSolaris_Cond_InitName[] =
6157 "solaris_cond_init";
6160 * File name selection pattern
6162 tSCC zSolaris_Cond_InitList[] =
6165 * Machine/OS name selection pattern
6167 tSCC* apzSolaris_Cond_InitMachs[] = {
6169 (const char*)NULL };
6172 * content selection pattern - do fix if pattern found
6174 tSCC zSolaris_Cond_InitSelect0[] =
6175 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6177 #define SOLARIS_COND_INIT_TEST_CT 1
6178 static tTestDesc aSolaris_Cond_InitTests[] = {
6179 { TT_EGREP, zSolaris_Cond_InitSelect0, (regex_t*)NULL }, };
6182 * Fix Command Arguments for Solaris_Cond_Init
6184 static const char* apzSolaris_Cond_InitPatch[] = {
6187 "^(#define[ \t]+PTHREAD_COND_INITIALIZER[ \t]+\\{.*0)(\\},[ \t]*0\\}.*)$",
6190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6192 * Description of Solaris_Cxx_Linkage fix
6194 tSCC zSolaris_Cxx_LinkageName[] =
6195 "solaris_cxx_linkage";
6198 * File name selection pattern
6200 tSCC zSolaris_Cxx_LinkageList[] =
6201 "iso/stdlib_iso.h\0";
6203 * Machine/OS name selection pattern
6205 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6207 (const char*)NULL };
6210 * content selection pattern - do fix if pattern found
6212 tSCC zSolaris_Cxx_LinkageSelect0[] =
6213 "(#if __cplusplus >= 199711L)\n\
6214 (extern \"C\\+\\+\" \\{\n\
6215 )(.*(bsearch|qsort).*)";
6217 #define SOLARIS_CXX_LINKAGE_TEST_CT 1
6218 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6219 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6222 * Fix Command Arguments for Solaris_Cxx_Linkage
6224 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6232 * Description of Solaris_Getc_Strict_Stdc fix
6234 tSCC zSolaris_Getc_Strict_StdcName[] =
6235 "solaris_getc_strict_stdc";
6238 * File name selection pattern
6240 tSCC zSolaris_Getc_Strict_StdcList[] =
6241 "iso/stdio_iso.h\0";
6243 * Machine/OS name selection pattern
6245 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6247 (const char*)NULL };
6250 * content selection pattern - do fix if pattern found
6252 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6253 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6255 #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1
6256 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6257 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6260 * Fix Command Arguments for Solaris_Getc_Strict_Stdc
6262 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6264 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6269 * Description of Solaris_Longjmp_Noreturn fix
6271 tSCC zSolaris_Longjmp_NoreturnName[] =
6272 "solaris_longjmp_noreturn";
6275 * File name selection pattern
6277 tSCC zSolaris_Longjmp_NoreturnList[] =
6278 "iso/setjmp_iso.h\0";
6280 * Machine/OS name selection pattern
6282 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6284 (const char*)NULL };
6287 * content selection pattern - do fix if pattern found
6289 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6290 "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6293 * content bypass pattern - skip fix if pattern found
6295 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6298 #define SOLARIS_LONGJMP_NORETURN_TEST_CT 2
6299 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6300 { TT_NEGREP, zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6301 { TT_EGREP, zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6304 * Fix Command Arguments for Solaris_Longjmp_Noreturn
6306 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6308 "%1 __attribute__ ((__noreturn__));",
6311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6313 * Description of Solaris_Math_1 fix
6315 tSCC zSolaris_Math_1Name[] =
6319 * File name selection pattern
6321 tSCC zSolaris_Math_1List[] =
6324 * Machine/OS name selection pattern
6326 #define apzSolaris_Math_1Machs (const char**)NULL
6329 * content selection pattern - do fix if pattern found
6331 tSCC zSolaris_Math_1Select0[] =
6332 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6335 * content bypass pattern - skip fix if pattern found
6337 tSCC zSolaris_Math_1Bypass0[] =
6340 #define SOLARIS_MATH_1_TEST_CT 2
6341 static tTestDesc aSolaris_Math_1Tests[] = {
6342 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
6343 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
6346 * Fix Command Arguments for Solaris_Math_1
6348 static const char* apzSolaris_Math_1Patch[] = {
6350 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6351 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6356 * Description of Solaris_Math_2 fix
6358 tSCC zSolaris_Math_2Name[] =
6362 * File name selection pattern
6364 tSCC zSolaris_Math_2List[] =
6367 * Machine/OS name selection pattern
6369 #define apzSolaris_Math_2Machs (const char**)NULL
6372 * content selection pattern - do fix if pattern found
6374 tSCC zSolaris_Math_2Select0[] =
6375 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6378 * content bypass pattern - skip fix if pattern found
6380 tSCC zSolaris_Math_2Bypass0[] =
6383 #define SOLARIS_MATH_2_TEST_CT 2
6384 static tTestDesc aSolaris_Math_2Tests[] = {
6385 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
6386 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
6389 * Fix Command Arguments for Solaris_Math_2
6391 static const char* apzSolaris_Math_2Patch[] = {
6393 "#define\tINFINITY\t(__builtin_inff())",
6394 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6397 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6399 * Description of Solaris_Math_3 fix
6401 tSCC zSolaris_Math_3Name[] =
6405 * File name selection pattern
6407 tSCC zSolaris_Math_3List[] =
6410 * Machine/OS name selection pattern
6412 #define apzSolaris_Math_3Machs (const char**)NULL
6415 * content selection pattern - do fix if pattern found
6417 tSCC zSolaris_Math_3Select0[] =
6418 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6421 * content bypass pattern - skip fix if pattern found
6423 tSCC zSolaris_Math_3Bypass0[] =
6426 #define SOLARIS_MATH_3_TEST_CT 2
6427 static tTestDesc aSolaris_Math_3Tests[] = {
6428 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
6429 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6432 * Fix Command Arguments for Solaris_Math_3
6434 static const char* apzSolaris_Math_3Patch[] = {
6436 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6437 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6442 * Description of Solaris_Math_4 fix
6444 tSCC zSolaris_Math_4Name[] =
6448 * File name selection pattern
6450 tSCC zSolaris_Math_4List[] =
6453 * Machine/OS name selection pattern
6455 #define apzSolaris_Math_4Machs (const char**)NULL
6458 * content selection pattern - do fix if pattern found
6460 tSCC zSolaris_Math_4Select0[] =
6461 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6464 * content bypass pattern - skip fix if pattern found
6466 tSCC zSolaris_Math_4Bypass0[] =
6469 #define SOLARIS_MATH_4_TEST_CT 2
6470 static tTestDesc aSolaris_Math_4Tests[] = {
6471 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6472 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6475 * Fix Command Arguments for Solaris_Math_4
6477 static const char* apzSolaris_Math_4Patch[] = {
6479 "#define\tfpclassify(x) \\\n\
6480 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6481 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6484 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6486 * Description of Solaris_Math_8 fix
6488 tSCC zSolaris_Math_8Name[] =
6492 * File name selection pattern
6494 tSCC zSolaris_Math_8List[] =
6497 * Machine/OS name selection pattern
6499 #define apzSolaris_Math_8Machs (const char**)NULL
6502 * content selection pattern - do fix if pattern found
6504 tSCC zSolaris_Math_8Select0[] =
6505 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6508 * content bypass pattern - skip fix if pattern found
6510 tSCC zSolaris_Math_8Bypass0[] =
6513 #define SOLARIS_MATH_8_TEST_CT 2
6514 static tTestDesc aSolaris_Math_8Tests[] = {
6515 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6516 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6519 * Fix Command Arguments for Solaris_Math_8
6521 static const char* apzSolaris_Math_8Patch[] = {
6523 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6524 \t\t\t ? __builtin_signbitf(x) \\\n\
6525 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6526 \t\t\t ? __builtin_signbitl(x) \\\n\
6527 \t\t\t : __builtin_signbit(x))",
6528 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6533 * Description of Solaris_Math_9 fix
6535 tSCC zSolaris_Math_9Name[] =
6539 * File name selection pattern
6541 tSCC zSolaris_Math_9List[] =
6544 * Machine/OS name selection pattern
6546 #define apzSolaris_Math_9Machs (const char**)NULL
6549 * content selection pattern - do fix if pattern found
6551 tSCC zSolaris_Math_9Select0[] =
6552 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6555 * content bypass pattern - skip fix if pattern found
6557 tSCC zSolaris_Math_9Bypass0[] =
6560 #define SOLARIS_MATH_9_TEST_CT 2
6561 static tTestDesc aSolaris_Math_9Tests[] = {
6562 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6563 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6566 * Fix Command Arguments for Solaris_Math_9
6568 static const char* apzSolaris_Math_9Patch[] = {
6570 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6571 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6576 * Description of Solaris_Math_10 fix
6578 tSCC zSolaris_Math_10Name[] =
6582 * File name selection pattern
6584 tSCC zSolaris_Math_10List[] =
6587 * Machine/OS name selection pattern
6589 #define apzSolaris_Math_10Machs (const char**)NULL
6592 * content selection pattern - do fix if pattern found
6594 tSCC zSolaris_Math_10Select0[] =
6595 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6597 #define SOLARIS_MATH_10_TEST_CT 1
6598 static tTestDesc aSolaris_Math_10Tests[] = {
6599 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6602 * Fix Command Arguments for Solaris_Math_10
6604 static const char* apzSolaris_Math_10Patch[] = {
6606 "#define\tisinf(x) __builtin_isinf(x)",
6607 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6608 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6609 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6610 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6615 * Description of Solaris_Mutex_Init_2 fix
6617 tSCC zSolaris_Mutex_Init_2Name[] =
6618 "solaris_mutex_init_2";
6621 * File name selection pattern
6623 tSCC zSolaris_Mutex_Init_2List[] =
6626 * Machine/OS name selection pattern
6628 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6629 "*-*-solaris2.[0-9]",
6630 "*-*-solaris2.[0-9][!0-9]*",
6631 (const char*)NULL };
6634 * content selection pattern - do fix if pattern found
6636 tSCC zSolaris_Mutex_Init_2Select0[] =
6637 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6639 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6640 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6641 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6644 * Fix Command Arguments for Solaris_Mutex_Init_2
6646 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6648 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6653 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6654 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6659 * Description of Solaris_Pow_Int_Overload fix
6661 tSCC zSolaris_Pow_Int_OverloadName[] =
6662 "solaris_pow_int_overload";
6665 * File name selection pattern
6667 tSCC zSolaris_Pow_Int_OverloadList[] =
6670 * Machine/OS name selection pattern
6672 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6674 (const char*)NULL };
6677 * content selection pattern - do fix if pattern found
6679 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6680 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6683 #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1
6684 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6685 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6688 * Fix Command Arguments for Solaris_Pow_Int_Overload
6690 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6692 "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6699 * Description of Solaris_Rwlock_Init_1 fix
6701 tSCC zSolaris_Rwlock_Init_1Name[] =
6702 "solaris_rwlock_init_1";
6705 * File name selection pattern
6707 tSCC zSolaris_Rwlock_Init_1List[] =
6710 * Machine/OS name selection pattern
6712 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6714 (const char*)NULL };
6717 * content selection pattern - do fix if pattern found
6719 tSCC zSolaris_Rwlock_Init_1Select0[] =
6720 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6722 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6723 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6724 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6727 * Fix Command Arguments for Solaris_Rwlock_Init_1
6729 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6731 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6734 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6736 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6741 * Description of Solaris_Once_Init_1 fix
6743 tSCC zSolaris_Once_Init_1Name[] =
6744 "solaris_once_init_1";
6747 * File name selection pattern
6749 tSCC zSolaris_Once_Init_1List[] =
6752 * Machine/OS name selection pattern
6754 tSCC* apzSolaris_Once_Init_1Machs[] = {
6756 (const char*)NULL };
6759 * content selection pattern - do fix if pattern found
6761 tSCC zSolaris_Once_Init_1Select0[] =
6762 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6764 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6765 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6766 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6769 * Fix Command Arguments for Solaris_Once_Init_1
6771 static const char* apzSolaris_Once_Init_1Patch[] = {
6774 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6779 * Description of Solaris_Once_Init_2 fix
6781 tSCC zSolaris_Once_Init_2Name[] =
6782 "solaris_once_init_2";
6785 * File name selection pattern
6787 tSCC zSolaris_Once_Init_2List[] =
6790 * Machine/OS name selection pattern
6792 tSCC* apzSolaris_Once_Init_2Machs[] = {
6793 "*-*-solaris2.[0-9]",
6794 "*-*-solaris2.[0-9][!0-9]*",
6795 (const char*)NULL };
6798 * content selection pattern - do fix if pattern found
6800 tSCC zSolaris_Once_Init_2Select0[] =
6801 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6803 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6804 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6805 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6808 * Fix Command Arguments for Solaris_Once_Init_2
6810 static const char* apzSolaris_Once_Init_2Patch[] = {
6812 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6815 %1{0}, {0}, {0}, {%3}%4\n\
6817 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6822 * Description of Solaris_Int_Const fix
6824 tSCC zSolaris_Int_ConstName[] =
6825 "solaris_int_const";
6828 * File name selection pattern
6830 tSCC zSolaris_Int_ConstList[] =
6831 "sys/int_const.h\0";
6833 * Machine/OS name selection pattern
6835 tSCC* apzSolaris_Int_ConstMachs[] = {
6837 (const char*)NULL };
6840 * content selection pattern - do fix if pattern found
6842 tSCC zSolaris_Int_ConstSelect0[] =
6843 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6845 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6847 #define SOLARIS_INT_CONST_TEST_CT 1
6848 static tTestDesc aSolaris_Int_ConstTests[] = {
6849 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6852 * Fix Command Arguments for Solaris_Int_Const
6854 static const char* apzSolaris_Int_ConstPatch[] = {
6856 "#define\tUINT8_C(c)\t(c)\n\
6858 #define\tUINT16_C(c)\t(c)",
6861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6863 * Description of Solaris_Int_Limits_1 fix
6865 tSCC zSolaris_Int_Limits_1Name[] =
6866 "solaris_int_limits_1";
6869 * File name selection pattern
6871 tSCC zSolaris_Int_Limits_1List[] =
6872 "sys/int_limits.h\0";
6874 * Machine/OS name selection pattern
6876 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6878 (const char*)NULL };
6881 * content selection pattern - do fix if pattern found
6883 tSCC zSolaris_Int_Limits_1Select0[] =
6884 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6885 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6887 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6888 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6889 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6892 * Fix Command Arguments for Solaris_Int_Limits_1
6894 static const char* apzSolaris_Int_Limits_1Patch[] = {
6896 "#define\tUINT8_MAX\t(255)\n\
6897 #define\tUINT16_MAX\t(65535)",
6900 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6902 * Description of Solaris_Int_Limits_2 fix
6904 tSCC zSolaris_Int_Limits_2Name[] =
6905 "solaris_int_limits_2";
6908 * File name selection pattern
6910 tSCC zSolaris_Int_Limits_2List[] =
6911 "sys/int_limits.h\0";
6913 * Machine/OS name selection pattern
6915 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6917 (const char*)NULL };
6920 * content selection pattern - do fix if pattern found
6922 tSCC zSolaris_Int_Limits_2Select0[] =
6923 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6925 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6926 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6927 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6930 * Fix Command Arguments for Solaris_Int_Limits_2
6932 static const char* apzSolaris_Int_Limits_2Patch[] = {
6934 "#define\t%1_FAST16_%2 %132_%2",
6937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6939 * Description of Solaris_Int_Limits_3 fix
6941 tSCC zSolaris_Int_Limits_3Name[] =
6942 "solaris_int_limits_3";
6945 * File name selection pattern
6947 tSCC zSolaris_Int_Limits_3List[] =
6948 "sys/int_limits.h\0";
6950 * Machine/OS name selection pattern
6952 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6954 (const char*)NULL };
6957 * content selection pattern - do fix if pattern found
6959 tSCC zSolaris_Int_Limits_3Select0[] =
6960 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6962 #define SOLARIS_INT_LIMITS_3_TEST_CT 1
6963 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6964 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6967 * Fix Command Arguments for Solaris_Int_Limits_3
6969 static const char* apzSolaris_Int_Limits_3Patch[] = {
6971 "#define\tSIZE_MAX\t4294967295U",
6974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6976 * Description of Solaris_Int_Types fix
6978 tSCC zSolaris_Int_TypesName[] =
6979 "solaris_int_types";
6982 * File name selection pattern
6984 tSCC zSolaris_Int_TypesList[] =
6985 "sys/int_types.h\0";
6987 * Machine/OS name selection pattern
6989 #define apzSolaris_Int_TypesMachs (const char**)NULL
6992 * content selection pattern - do fix if pattern found
6994 tSCC zSolaris_Int_TypesSelect0[] =
6995 "__STDC__ - 0 == 0";
6998 * content bypass pattern - skip fix if pattern found
7000 tSCC zSolaris_Int_TypesBypass0[] =
7003 #define SOLARIS_INT_TYPES_TEST_CT 2
7004 static tTestDesc aSolaris_Int_TypesTests[] = {
7005 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
7006 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
7009 * Fix Command Arguments for Solaris_Int_Types
7011 static const char* apzSolaris_Int_TypesPatch[] = {
7013 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
7016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7018 * Description of Solaris_Posix_Spawn_Restrict fix
7020 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7021 "solaris_posix_spawn_restrict";
7024 * File name selection pattern
7026 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7029 * Machine/OS name selection pattern
7031 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7033 (const char*)NULL };
7036 * content selection pattern - do fix if pattern found
7038 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7039 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7041 #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1
7042 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7043 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7046 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7048 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7050 "%1*_RESTRICT_KYWD %2%3",
7053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7055 * Description of Solaris_Std___Filbuf fix
7057 tSCC zSolaris_Std___FilbufName[] =
7058 "solaris_std___filbuf";
7061 * File name selection pattern
7063 tSCC zSolaris_Std___FilbufList[] =
7066 * Machine/OS name selection pattern
7068 tSCC* apzSolaris_Std___FilbufMachs[] = {
7070 (const char*)NULL };
7073 * content selection pattern - do fix if pattern found
7075 tSCC zSolaris_Std___FilbufSelect0[] =
7076 "(using std::perror;\n\
7080 * content bypass pattern - skip fix if pattern found
7082 tSCC zSolaris_Std___FilbufBypass0[] =
7083 "using std::__filbuf";
7085 #define SOLARIS_STD___FILBUF_TEST_CT 2
7086 static tTestDesc aSolaris_Std___FilbufTests[] = {
7087 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7088 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7091 * Fix Command Arguments for Solaris_Std___Filbuf
7093 static const char* apzSolaris_Std___FilbufPatch[] = {
7096 using std::__filbuf;\n\
7097 using std::__flsbuf;\n\
7102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7104 * Description of Solaris_Stdio_Tag fix
7106 tSCC zSolaris_Stdio_TagName[] =
7107 "solaris_stdio_tag";
7110 * File name selection pattern
7112 tSCC zSolaris_Stdio_TagList[] =
7115 * Machine/OS name selection pattern
7117 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7120 * content selection pattern - do fix if pattern found
7122 tSCC zSolaris_Stdio_TagSelect0[] =
7123 "__cplusplus < 54321L";
7126 * content bypass pattern - skip fix if pattern found
7128 tSCC zSolaris_Stdio_TagBypass0[] =
7131 #define SOLARIS_STDIO_TAG_TEST_CT 2
7132 static tTestDesc aSolaris_Stdio_TagTests[] = {
7133 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7134 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7137 * Fix Command Arguments for Solaris_Stdio_Tag
7139 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7140 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7145 * Description of Solaris_Sys_Va_List fix
7147 tSCC zSolaris_Sys_Va_ListName[] =
7148 "solaris_sys_va_list";
7151 * File name selection pattern
7153 tSCC zSolaris_Sys_Va_ListList[] =
7156 * Machine/OS name selection pattern
7158 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7159 "*-*-solaris2.[89]",
7160 (const char*)NULL };
7163 * content selection pattern - do fix if pattern found
7165 tSCC zSolaris_Sys_Va_ListSelect0[] =
7167 typedef void \\*__va_list;\n\
7169 typedef char \\*__va_list;\n\
7172 #define SOLARIS_SYS_VA_LIST_TEST_CT 1
7173 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7174 { TT_EGREP, zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7177 * Fix Command Arguments for Solaris_Sys_Va_List
7179 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7182 typedef __builtin_va_list __va_list;\n\
7188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7190 * Description of Statsswtch fix
7192 tSCC zStatsswtchName[] =
7196 * File name selection pattern
7198 tSCC zStatsswtchList[] =
7201 * Machine/OS name selection pattern
7203 #define apzStatsswtchMachs (const char**)NULL
7206 * content selection pattern - do fix if pattern found
7208 tSCC zStatsswtchSelect0[] =
7211 #define STATSSWTCH_TEST_CT 1
7212 static tTestDesc aStatsswtchTests[] = {
7213 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
7216 * Fix Command Arguments for Statsswtch
7218 static const char* apzStatsswtchPatch[] = {
7223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7225 * Description of Stdio_Stdarg_H fix
7227 tSCC zStdio_Stdarg_HName[] =
7231 * File name selection pattern
7233 tSCC zStdio_Stdarg_HList[] =
7236 * Machine/OS name selection pattern
7238 tSCC* apzStdio_Stdarg_HMachs[] = {
7239 "*-*-solaris2.1[0-9]*",
7240 (const char*)NULL };
7243 * content bypass pattern - skip fix if pattern found
7245 tSCC zStdio_Stdarg_HBypass0[] =
7246 "include.*(stdarg.h|machine/ansi.h)";
7248 #define STDIO_STDARG_H_TEST_CT 1
7249 static tTestDesc aStdio_Stdarg_HTests[] = {
7250 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7253 * Fix Command Arguments for Stdio_Stdarg_H
7255 static const char* apzStdio_Stdarg_HPatch[] = {
7257 "#define __need___va_list\n\
7258 #include <stdarg.h>\n",
7261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7263 * Description of Stdio_Va_List fix
7265 tSCC zStdio_Va_ListName[] =
7269 * File name selection pattern
7271 tSCC zStdio_Va_ListList[] =
7272 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
7274 * Machine/OS name selection pattern
7276 tSCC* apzStdio_Va_ListMachs[] = {
7277 "*-*-solaris2.1[0-9]*",
7278 (const char*)NULL };
7281 * content bypass pattern - skip fix if pattern found
7283 tSCC zStdio_Va_ListBypass0[] =
7284 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7286 #define STDIO_VA_LIST_TEST_CT 1
7287 static tTestDesc aStdio_Va_ListTests[] = {
7288 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7291 * Fix Command Arguments for Stdio_Va_List
7293 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7294 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7295 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7296 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7297 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7298 s@ va_list@ __not_va_list__@\n\
7299 s@\\*va_list@*__not_va_list__@\n\
7300 s@ __va_list)@ __gnuc_va_list)@\n\
7301 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7302 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7303 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7304 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7305 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7306 s@VA_LIST@DUMMY_VA_LIST@\n\
7307 s@_Va_LIST@_VA_LIST@",
7310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7312 * Description of Stdio_Va_List_Clients fix
7314 tSCC zStdio_Va_List_ClientsName[] =
7315 "stdio_va_list_clients";
7318 * File name selection pattern
7320 tSCC zStdio_Va_List_ClientsList[] =
7321 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7323 * Machine/OS name selection pattern
7325 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7328 * content bypass pattern - skip fix if pattern found
7330 tSCC zStdio_Va_List_ClientsBypass0[] =
7331 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7332 tSCC zStdio_Va_List_ClientsBypass1[] =
7333 "include <stdarg\\.h>|#ifdef va_start";
7335 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
7336 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7337 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7338 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7341 * Fix Command Arguments for Stdio_Va_List_Clients
7343 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7344 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7345 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7346 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7347 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7348 s@ va_list@ __not_va_list__@\n\
7349 s@\\*va_list@*__not_va_list__@\n\
7350 s@ __va_list)@ __gnuc_va_list)@\n\
7351 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7352 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7353 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7354 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7355 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7356 s@VA_LIST@DUMMY_VA_LIST@\n\
7357 s@_Va_LIST@_VA_LIST@",
7360 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7362 * Description of Strict_Ansi_Not fix
7364 tSCC zStrict_Ansi_NotName[] =
7368 * File name selection pattern
7370 #define zStrict_Ansi_NotList (char*)NULL
7372 * Machine/OS name selection pattern
7374 #define apzStrict_Ansi_NotMachs (const char**)NULL
7377 * content selection pattern - do fix if pattern found
7379 tSCC zStrict_Ansi_NotSelect0[] =
7380 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7383 * content bypass pattern - skip fix if pattern found
7385 tSCC zStrict_Ansi_NotBypass0[] =
7386 "GNU and MIPS C compilers define __STDC__ differently";
7387 tSCC zStrict_Ansi_NotBypass1[] =
7388 "__SCO_VERSION__.*__STDC__ != 1";
7391 * perform the C function call test
7393 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7395 #define STRICT_ANSI_NOT_TEST_CT 4
7396 static tTestDesc aStrict_Ansi_NotTests[] = {
7397 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
7398 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7399 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7400 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7403 * Fix Command Arguments for Strict_Ansi_Not
7405 static const char* apzStrict_Ansi_NotPatch[] = {
7407 "%1 !defined(__STRICT_ANSI__)",
7410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7412 * Description of Strict_Ansi_Not_Ctd fix
7414 tSCC zStrict_Ansi_Not_CtdName[] =
7415 "strict_ansi_not_ctd";
7418 * File name selection pattern
7420 tSCC zStrict_Ansi_Not_CtdList[] =
7421 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7423 * Machine/OS name selection pattern
7425 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7428 * content selection pattern - do fix if pattern found
7430 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7431 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7434 * perform the C function call test
7436 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7438 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
7439 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7440 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
7441 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7444 * Fix Command Arguments for Strict_Ansi_Not_Ctd
7446 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7448 "%1 !defined(__STRICT_ANSI__)",
7451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7453 * Description of Strict_Ansi_Only fix
7455 tSCC zStrict_Ansi_OnlyName[] =
7459 * File name selection pattern
7461 #define zStrict_Ansi_OnlyList (char*)NULL
7463 * Machine/OS name selection pattern
7465 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7468 * content selection pattern - do fix if pattern found
7470 tSCC zStrict_Ansi_OnlySelect0[] =
7471 "^([ \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)";
7474 * perform the C function call test
7476 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7478 #define STRICT_ANSI_ONLY_TEST_CT 2
7479 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7480 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
7481 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7484 * Fix Command Arguments for Strict_Ansi_Only
7486 static const char* apzStrict_Ansi_OnlyPatch[] = {
7488 "%1 defined(__STRICT_ANSI__)",
7491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7493 * Description of Struct_File fix
7495 tSCC zStruct_FileName[] =
7499 * File name selection pattern
7501 tSCC zStruct_FileList[] =
7504 * Machine/OS name selection pattern
7506 #define apzStruct_FileMachs (const char**)NULL
7509 * content selection pattern - do fix if pattern found
7511 tSCC zStruct_FileSelect0[] =
7512 "^.*xdrstdio_create.*struct __file_s";
7514 #define STRUCT_FILE_TEST_CT 1
7515 static tTestDesc aStruct_FileTests[] = {
7516 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
7519 * Fix Command Arguments for Struct_File
7521 static const char* apzStruct_FilePatch[] = {
7523 "struct __file_s;\n\
7527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7529 * Description of Struct_Sockaddr fix
7531 tSCC zStruct_SockaddrName[] =
7535 * File name selection pattern
7537 tSCC zStruct_SockaddrList[] =
7540 * Machine/OS name selection pattern
7542 #define apzStruct_SockaddrMachs (const char**)NULL
7545 * content selection pattern - do fix if pattern found
7547 tSCC zStruct_SockaddrSelect0[] =
7548 "^.*authdes_create.*struct sockaddr[^_]";
7551 * content bypass pattern - skip fix if pattern found
7553 tSCC zStruct_SockaddrBypass0[] =
7555 tSCC zStruct_SockaddrBypass1[] =
7556 "struct sockaddr;\n";
7558 #define STRUCT_SOCKADDR_TEST_CT 3
7559 static tTestDesc aStruct_SockaddrTests[] = {
7560 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
7561 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
7562 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7565 * Fix Command Arguments for Struct_Sockaddr
7567 static const char* apzStruct_SockaddrPatch[] = {
7569 "struct sockaddr;\n\
7573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7575 * Description of Sun_Auth_Proto fix
7577 tSCC zSun_Auth_ProtoName[] =
7581 * File name selection pattern
7583 tSCC zSun_Auth_ProtoList[] =
7584 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7586 * Machine/OS name selection pattern
7588 #define apzSun_Auth_ProtoMachs (const char**)NULL
7591 * content selection pattern - do fix if pattern found
7593 tSCC zSun_Auth_ProtoSelect0[] =
7594 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7597 * content bypass pattern - skip fix if pattern found
7599 tSCC zSun_Auth_ProtoBypass0[] =
7602 #define SUN_AUTH_PROTO_TEST_CT 2
7603 static tTestDesc aSun_Auth_ProtoTests[] = {
7604 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7605 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7608 * Fix Command Arguments for Sun_Auth_Proto
7610 static const char* apzSun_Auth_ProtoPatch[] = {
7612 "#ifdef __cplusplus\n\
7617 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7620 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7622 * Description of Sun_Bogus_Ifdef fix
7624 tSCC zSun_Bogus_IfdefName[] =
7628 * File name selection pattern
7630 tSCC zSun_Bogus_IfdefList[] =
7631 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7633 * Machine/OS name selection pattern
7635 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7638 * content selection pattern - do fix if pattern found
7640 tSCC zSun_Bogus_IfdefSelect0[] =
7641 "#ifdef(.*\\|\\|.*)";
7643 #define SUN_BOGUS_IFDEF_TEST_CT 1
7644 static tTestDesc aSun_Bogus_IfdefTests[] = {
7645 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7648 * Fix Command Arguments for Sun_Bogus_Ifdef
7650 static const char* apzSun_Bogus_IfdefPatch[] = {
7655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7657 * Description of Sun_Catmacro fix
7659 tSCC zSun_CatmacroName[] =
7663 * File name selection pattern
7665 tSCC zSun_CatmacroList[] =
7666 "pixrect/memvar.h\0";
7668 * Machine/OS name selection pattern
7670 #define apzSun_CatmacroMachs (const char**)NULL
7673 * content selection pattern - do fix if pattern found
7675 tSCC zSun_CatmacroSelect0[] =
7676 "^#define[ \t]+CAT\\(a,b\\).*";
7678 #define SUN_CATMACRO_TEST_CT 1
7679 static tTestDesc aSun_CatmacroTests[] = {
7680 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7683 * Fix Command Arguments for Sun_Catmacro
7685 static const char* apzSun_CatmacroPatch[] = {
7688 # define CAT(a,b) a##b\n\
7694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7696 * Description of Sun_Malloc fix
7698 tSCC zSun_MallocName[] =
7702 * File name selection pattern
7704 tSCC zSun_MallocList[] =
7707 * Machine/OS name selection pattern
7709 #define apzSun_MallocMachs (const char**)NULL
7712 * content bypass pattern - skip fix if pattern found
7714 tSCC zSun_MallocBypass0[] =
7715 "_CLASSIC_ANSI_TYPES";
7717 #define SUN_MALLOC_TEST_CT 1
7718 static tTestDesc aSun_MallocTests[] = {
7719 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7722 * Fix Command Arguments for Sun_Malloc
7724 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7725 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7726 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7727 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7728 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7729 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7734 * Description of Sun_Rusers_Semi fix
7736 tSCC zSun_Rusers_SemiName[] =
7740 * File name selection pattern
7742 tSCC zSun_Rusers_SemiList[] =
7743 "rpcsvc/rusers.h\0";
7745 * Machine/OS name selection pattern
7747 #define apzSun_Rusers_SemiMachs (const char**)NULL
7750 * content selection pattern - do fix if pattern found
7752 tSCC zSun_Rusers_SemiSelect0[] =
7755 #define SUN_RUSERS_SEMI_TEST_CT 1
7756 static tTestDesc aSun_Rusers_SemiTests[] = {
7757 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7760 * Fix Command Arguments for Sun_Rusers_Semi
7762 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7763 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7768 * Description of Sun_Signal fix
7770 tSCC zSun_SignalName[] =
7774 * File name selection pattern
7776 tSCC zSun_SignalList[] =
7777 "sys/signal.h\0signal.h\0";
7779 * Machine/OS name selection pattern
7781 #define apzSun_SignalMachs (const char**)NULL
7784 * content selection pattern - do fix if pattern found
7786 tSCC zSun_SignalSelect0[] =
7787 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7789 #define SUN_SIGNAL_TEST_CT 1
7790 static tTestDesc aSun_SignalTests[] = {
7791 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7794 * Fix Command Arguments for Sun_Signal
7796 static const char* apzSun_SignalPatch[] = {
7798 "#ifdef __cplusplus\n\
7799 void\t(*signal(...))(...);\n\
7805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7807 * Description of Sunos_Strlen fix
7809 tSCC zSunos_StrlenName[] =
7813 * File name selection pattern
7815 tSCC zSunos_StrlenList[] =
7818 * Machine/OS name selection pattern
7820 #define apzSunos_StrlenMachs (const char**)NULL
7823 * content selection pattern - do fix if pattern found
7825 tSCC zSunos_StrlenSelect0[] =
7826 "int[ \t]*strlen\\(\\);(.*)";
7828 #define SUNOS_STRLEN_TEST_CT 1
7829 static tTestDesc aSunos_StrlenTests[] = {
7830 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7833 * Fix Command Arguments for Sunos_Strlen
7835 static const char* apzSunos_StrlenPatch[] = {
7837 "__SIZE_TYPE__ strlen();%1",
7840 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7842 * Description of Svr4_Disable_Opt fix
7844 tSCC zSvr4_Disable_OptName[] =
7848 * File name selection pattern
7850 tSCC zSvr4_Disable_OptList[] =
7853 * Machine/OS name selection pattern
7855 #define apzSvr4_Disable_OptMachs (const char**)NULL
7858 * content selection pattern - do fix if pattern found
7860 tSCC zSvr4_Disable_OptSelect0[] =
7861 "#define.*__std_hdr_";
7863 #define SVR4_DISABLE_OPT_TEST_CT 1
7864 static tTestDesc aSvr4_Disable_OptTests[] = {
7865 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7868 * Fix Command Arguments for Svr4_Disable_Opt
7870 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7871 "-e", "/#define.*__std_hdr_/d",
7874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7876 * Description of Svr4_Getcwd fix
7878 tSCC zSvr4_GetcwdName[] =
7882 * File name selection pattern
7884 tSCC zSvr4_GetcwdList[] =
7885 "stdlib.h\0unistd.h\0prototypes.h\0";
7887 * Machine/OS name selection pattern
7889 #define apzSvr4_GetcwdMachs (const char**)NULL
7892 * content selection pattern - do fix if pattern found
7894 tSCC zSvr4_GetcwdSelect0[] =
7895 "getcwd\\(char \\*, int\\)";
7897 #define SVR4_GETCWD_TEST_CT 1
7898 static tTestDesc aSvr4_GetcwdTests[] = {
7899 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7902 * Fix Command Arguments for Svr4_Getcwd
7904 static const char* apzSvr4_GetcwdPatch[] = {
7906 "getcwd(char *, size_t)",
7909 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7911 * Description of Svr4_Profil fix
7913 tSCC zSvr4_ProfilName[] =
7917 * File name selection pattern
7919 tSCC zSvr4_ProfilList[] =
7920 "stdlib.h\0unistd.h\0";
7922 * Machine/OS name selection pattern
7924 #define apzSvr4_ProfilMachs (const char**)NULL
7927 * content selection pattern - do fix if pattern found
7929 tSCC zSvr4_ProfilSelect0[] =
7930 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7933 * content bypass pattern - skip fix if pattern found
7935 tSCC zSvr4_ProfilBypass0[] =
7938 #define SVR4_PROFIL_TEST_CT 2
7939 static tTestDesc aSvr4_ProfilTests[] = {
7940 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7941 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7944 * Fix Command Arguments for Svr4_Profil
7946 static const char* apzSvr4_ProfilPatch[] = {
7948 "profil(unsigned short *, size_t, int, unsigned int)",
7951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7953 * Description of Svr4_Sighandler_Type fix
7955 tSCC zSvr4_Sighandler_TypeName[] =
7956 "svr4_sighandler_type";
7959 * File name selection pattern
7961 tSCC zSvr4_Sighandler_TypeList[] =
7964 * Machine/OS name selection pattern
7966 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7969 * content selection pattern - do fix if pattern found
7971 tSCC zSvr4_Sighandler_TypeSelect0[] =
7972 "void *\\(\\*\\)\\(\\)";
7974 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7975 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7976 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7979 * Fix Command Arguments for Svr4_Sighandler_Type
7981 static const char* apzSvr4_Sighandler_TypePatch[] = {
7986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7988 * Description of Svr4_Undeclared_Getrnge fix
7990 tSCC zSvr4_Undeclared_GetrngeName[] =
7991 "svr4_undeclared_getrnge";
7994 * File name selection pattern
7996 tSCC zSvr4_Undeclared_GetrngeList[] =
7999 * Machine/OS name selection pattern
8001 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8004 * content selection pattern - do fix if pattern found
8006 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8010 * content bypass pattern - skip fix if pattern found
8012 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8013 "static void getrnge";
8015 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
8016 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8017 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8018 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8021 * Fix Command Arguments for Svr4_Undeclared_Getrnge
8023 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8026 static int getrnge ();",
8027 "^static int[ \t]+size;",
8030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8032 * Description of Sysv68_String fix
8034 tSCC zSysv68_StringName[] =
8038 * File name selection pattern
8040 tSCC zSysv68_StringList[] =
8041 "testing.h\0string.h\0";
8043 * Machine/OS name selection pattern
8045 #define apzSysv68_StringMachs (const char**)NULL
8048 * content bypass pattern - skip fix if pattern found
8050 tSCC zSysv68_StringBypass0[] =
8051 "_CLASSIC_ANSI_TYPES";
8053 #define SYSV68_STRING_TEST_CT 1
8054 static tTestDesc aSysv68_StringTests[] = {
8055 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
8058 * Fix Command Arguments for Sysv68_String
8060 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8061 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8062 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8063 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8064 "-e", "/^extern char$/N",
8065 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8066 "-e", "/^extern int$/N",
8067 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8068 "-e", "/^\tstrncmp(),$/N",
8069 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8070 extern unsigned int\\\n\
8074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8076 * Description of Sysz_Stdlib_For_Sun fix
8078 tSCC zSysz_Stdlib_For_SunName[] =
8079 "sysz_stdlib_for_sun";
8082 * File name selection pattern
8084 tSCC zSysz_Stdlib_For_SunList[] =
8087 * Machine/OS name selection pattern
8089 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8092 * content selection pattern - do fix if pattern found
8094 tSCC zSysz_Stdlib_For_SunSelect0[] =
8095 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8098 * content bypass pattern - skip fix if pattern found
8100 tSCC zSysz_Stdlib_For_SunBypass0[] =
8101 "_CLASSIC_ANSI_TYPES";
8103 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
8104 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8105 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8106 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8109 * Fix Command Arguments for Sysz_Stdlib_For_Sun
8111 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8118 * Description of Thread_Keyword fix
8120 tSCC zThread_KeywordName[] =
8124 * File name selection pattern
8126 tSCC zThread_KeywordList[] =
8127 "pthread.h\0bits/sigthread.h\0";
8129 * Machine/OS name selection pattern
8131 #define apzThread_KeywordMachs (const char**)NULL
8134 * content selection pattern - do fix if pattern found
8136 tSCC zThread_KeywordSelect0[] =
8137 "([* ])__thread([,)])";
8139 #define THREAD_KEYWORD_TEST_CT 1
8140 static tTestDesc aThread_KeywordTests[] = {
8141 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
8144 * Fix Command Arguments for Thread_Keyword
8146 static const char* apzThread_KeywordPatch[] = {
8151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8153 * Description of Tinfo_Cplusplus fix
8155 tSCC zTinfo_CplusplusName[] =
8159 * File name selection pattern
8161 tSCC zTinfo_CplusplusList[] =
8164 * Machine/OS name selection pattern
8166 #define apzTinfo_CplusplusMachs (const char**)NULL
8169 * content selection pattern - do fix if pattern found
8171 tSCC zTinfo_CplusplusSelect0[] =
8174 #define TINFO_CPLUSPLUS_TEST_CT 1
8175 static tTestDesc aTinfo_CplusplusTests[] = {
8176 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8179 * Fix Command Arguments for Tinfo_Cplusplus
8181 static const char* apzTinfo_CplusplusPatch[] = {
8186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8188 * Description of Ultrix_Const fix
8190 tSCC zUltrix_ConstName[] =
8194 * File name selection pattern
8196 tSCC zUltrix_ConstList[] =
8199 * Machine/OS name selection pattern
8201 #define apzUltrix_ConstMachs (const char**)NULL
8204 * content selection pattern - do fix if pattern found
8206 tSCC zUltrix_ConstSelect0[] =
8207 "perror\\( char \\*";
8209 #define ULTRIX_CONST_TEST_CT 1
8210 static tTestDesc aUltrix_ConstTests[] = {
8211 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
8214 * Fix Command Arguments for Ultrix_Const
8216 static const char* apzUltrix_ConstPatch[] = {
8219 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8224 * Description of Ultrix_Const2 fix
8226 tSCC zUltrix_Const2Name[] =
8230 * File name selection pattern
8232 tSCC zUltrix_Const2List[] =
8235 * Machine/OS name selection pattern
8237 #define apzUltrix_Const2Machs (const char**)NULL
8240 * content selection pattern - do fix if pattern found
8242 tSCC zUltrix_Const2Select0[] =
8243 "\\*fopen\\( char \\*";
8245 #define ULTRIX_CONST2_TEST_CT 1
8246 static tTestDesc aUltrix_Const2Tests[] = {
8247 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
8250 * Fix Command Arguments for Ultrix_Const2
8252 static const char* apzUltrix_Const2Patch[] = {
8254 "%1( const char *%3, const char *",
8255 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8260 * Description of Va_I960_Macro fix
8262 tSCC zVa_I960_MacroName[] =
8266 * File name selection pattern
8268 tSCC zVa_I960_MacroList[] =
8269 "arch/i960/archI960.h\0";
8271 * Machine/OS name selection pattern
8273 #define apzVa_I960_MacroMachs (const char**)NULL
8276 * content selection pattern - do fix if pattern found
8278 tSCC zVa_I960_MacroSelect0[] =
8279 "__(vsiz|vali|vpad|alignof__)";
8281 #define VA_I960_MACRO_TEST_CT 1
8282 static tTestDesc aVa_I960_MacroTests[] = {
8283 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8286 * Fix Command Arguments for Va_I960_Macro
8288 static const char* apzVa_I960_MacroPatch[] = {
8293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8295 * Description of Vms_Define_Can_Use_Extern_Prefix fix
8297 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8298 "vms_define_can_use_extern_prefix";
8301 * File name selection pattern
8303 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8304 "rtldef/decc$types.h\0";
8306 * Machine/OS name selection pattern
8308 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8310 (const char*)NULL };
8313 * content selection pattern - do fix if pattern found
8315 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8317 #[ \t]*if defined\\(__DECCXX\\)\n\
8318 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8320 #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1
8321 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8322 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8325 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8327 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8329 "%0# elif defined (__GNUC__)\n\
8330 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8333 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8335 * Description of Vms_Use_Pragma_Extern_Model fix
8337 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8338 "vms_use_pragma_extern_model";
8341 * File name selection pattern
8343 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8345 * Machine/OS name selection pattern
8347 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8349 (const char*)NULL };
8352 * content selection pattern - do fix if pattern found
8354 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8355 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8356 # pragma extern_model __save\n";
8358 #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1
8359 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8360 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8363 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8365 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8367 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8368 # pragma extern_model __save\n",
8371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8373 * Description of Vms_Disable_Decc_String_Builtins fix
8375 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8376 "vms_disable_decc_string_builtins";
8379 * File name selection pattern
8381 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8382 "rtldef/string.h\0";
8384 * Machine/OS name selection pattern
8386 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8388 (const char*)NULL };
8391 * content selection pattern - do fix if pattern found
8393 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8394 "#if !defined\\(__VAX\\)\n";
8396 #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1
8397 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8398 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8401 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8403 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8405 "#if !defined(__VAX) && !defined(__GNUC__)\n",
8408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8410 * Description of Vms_Use_Quoted_Include fix
8412 tSCC zVms_Use_Quoted_IncludeName[] =
8413 "vms_use_quoted_include";
8416 * File name selection pattern
8418 tSCC zVms_Use_Quoted_IncludeList[] =
8419 "rtldef/wait.h\0starlet_c/pthread.h\0";
8421 * Machine/OS name selection pattern
8423 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
8425 (const char*)NULL };
8428 * content selection pattern - do fix if pattern found
8430 tSCC zVms_Use_Quoted_IncludeSelect0[] =
8431 "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
8433 #define VMS_USE_QUOTED_INCLUDE_TEST_CT 1
8434 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
8435 { TT_EGREP, zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
8438 * Fix Command Arguments for Vms_Use_Quoted_Include
8440 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8445 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8447 * Description of Vms_Add_Missing_Braces fix
8449 tSCC zVms_Add_Missing_BracesName[] =
8450 "vms_add_missing_braces";
8453 * File name selection pattern
8455 tSCC zVms_Add_Missing_BracesList[] =
8456 "rtldef/signal.h\0";
8458 * Machine/OS name selection pattern
8460 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8462 (const char*)NULL };
8465 * content selection pattern - do fix if pattern found
8467 tSCC zVms_Add_Missing_BracesSelect0[] =
8468 "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8470 #define VMS_ADD_MISSING_BRACES_TEST_CT 1
8471 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8472 { TT_EGREP, zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8475 * Fix Command Arguments for Vms_Add_Missing_Braces
8477 static const char* apzVms_Add_Missing_BracesPatch[] = {
8482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8484 * Description of Vms_Do_Not_Redeclare_Hostalias fix
8486 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8487 "vms_do_not_redeclare_hostalias";
8490 * File name selection pattern
8492 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8493 "rtldef/resolv.h\0";
8495 * Machine/OS name selection pattern
8497 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8499 (const char*)NULL };
8502 * content selection pattern - do fix if pattern found
8504 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8505 "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8506 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8508 #define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1
8509 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8510 { TT_EGREP, zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8513 * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8515 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8523 * Description of Vms_Decc_Builtin fix
8525 tSCC zVms_Decc_BuiltinName[] =
8529 * File name selection pattern
8531 tSCC zVms_Decc_BuiltinList[] =
8532 "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8534 * Machine/OS name selection pattern
8536 tSCC* apzVms_Decc_BuiltinMachs[] = {
8538 (const char*)NULL };
8541 * content selection pattern - do fix if pattern found
8543 tSCC zVms_Decc_BuiltinSelect0[] =
8544 "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8546 #define VMS_DECC_BUILTIN_TEST_CT 1
8547 static tTestDesc aVms_Decc_BuiltinTests[] = {
8548 { TT_EGREP, zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8551 * Fix Command Arguments for Vms_Decc_Builtin
8553 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8554 "-e", "s@__MEMSET@memset@",
8555 "-e", "s@__MEMMOVE@memmove@",
8556 "-e", "s@__MEMCPY@memcpy@",
8557 "-e", "s@__STRLEN@strlen@",
8558 "-e", "s@__STRCPY@strcpy@",
8561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8563 * Description of Vms_No_64bit_Getopt fix
8565 tSCC zVms_No_64bit_GetoptName[] =
8566 "vms_no_64bit_getopt";
8569 * File name selection pattern
8571 tSCC zVms_No_64bit_GetoptList[] =
8572 "rtldef/stdio.h\0rtldef/unistd.h\0";
8574 * Machine/OS name selection pattern
8576 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8578 (const char*)NULL };
8581 * content selection pattern - do fix if pattern found
8583 tSCC zVms_No_64bit_GetoptSelect0[] =
8584 "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8586 #define VMS_NO_64BIT_GETOPT_TEST_CT 1
8587 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8588 { TT_EGREP, zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8591 * Fix Command Arguments for Vms_No_64bit_Getopt
8593 static const char* apzVms_No_64bit_GetoptPatch[] = {
8595 "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\
8599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8601 * Description of Vms_Forward_Declare_Struct fix
8603 tSCC zVms_Forward_Declare_StructName[] =
8604 "vms_forward_declare_struct";
8607 * File name selection pattern
8609 tSCC zVms_Forward_Declare_StructList[] =
8612 * Machine/OS name selection pattern
8614 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8616 (const char*)NULL };
8619 * content selection pattern - do fix if pattern found
8621 tSCC zVms_Forward_Declare_StructSelect0[] =
8622 "(/\\* forward decls for C\\+\\+ \\*/\n\
8623 )#ifdef __cplusplus\n";
8625 #define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1
8626 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8627 { TT_EGREP, zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8630 * Fix Command Arguments for Vms_Forward_Declare_Struct
8632 static const char* apzVms_Forward_Declare_StructPatch[] = {
8634 "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8637 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8639 * Description of Vms_Use_Fast_Setjmp fix
8641 tSCC zVms_Use_Fast_SetjmpName[] =
8642 "vms_use_fast_setjmp";
8645 * File name selection pattern
8647 tSCC zVms_Use_Fast_SetjmpList[] =
8648 "rtldef/setjmp.h\0";
8650 * Machine/OS name selection pattern
8652 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8654 (const char*)NULL };
8657 * content selection pattern - do fix if pattern found
8659 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8660 "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8662 #define VMS_USE_FAST_SETJMP_TEST_CT 1
8663 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8664 { TT_EGREP, zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8667 * Fix Command Arguments for Vms_Use_Fast_Setjmp
8669 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8671 "%0 defined (__GNUC__) ||",
8674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8676 * Description of Void_Null fix
8678 tSCC zVoid_NullName[] =
8682 * File name selection pattern
8684 tSCC zVoid_NullList[] =
8685 "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";
8687 * Machine/OS name selection pattern
8689 #define apzVoid_NullMachs (const char**)NULL
8692 * content selection pattern - do fix if pattern found
8694 tSCC zVoid_NullSelect0[] =
8695 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8698 * content bypass pattern - skip fix if pattern found
8700 tSCC zVoid_NullBypass0[] =
8702 tSCC zVoid_NullBypass1[] =
8705 #define VOID_NULL_TEST_CT 3
8706 static tTestDesc aVoid_NullTests[] = {
8707 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8708 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL },
8709 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8712 * Fix Command Arguments for Void_Null
8714 static const char* apzVoid_NullPatch[] = {
8719 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8721 * Description of Vxworks_Gcc_Problem fix
8723 tSCC zVxworks_Gcc_ProblemName[] =
8724 "vxworks_gcc_problem";
8727 * File name selection pattern
8729 tSCC zVxworks_Gcc_ProblemList[] =
8730 "types/vxTypesBase.h\0";
8732 * Machine/OS name selection pattern
8734 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8737 * content selection pattern - do fix if pattern found
8739 tSCC zVxworks_Gcc_ProblemSelect0[] =
8740 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8742 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8743 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8744 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8747 * Fix Command Arguments for Vxworks_Gcc_Problem
8749 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8750 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8751 "-e", "/[ \t]size_t/i\\\n\
8752 #ifndef _GCC_SIZE_T\\\n\
8753 #define _GCC_SIZE_T\n",
8754 "-e", "/[ \t]size_t/a\\\n\
8756 "-e", "/[ \t]ptrdiff_t/i\\\n\
8757 #ifndef _GCC_PTRDIFF_T\\\n\
8758 #define _GCC_PTRDIFF_T\n",
8759 "-e", "/[ \t]ptrdiff_t/a\\\n\
8761 "-e", "/[ \t]wchar_t/i\\\n\
8762 #ifndef _GCC_WCHAR_T\\\n\
8763 #define _GCC_WCHAR_T\n",
8764 "-e", "/[ \t]wchar_t/a\\\n\
8768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8770 * Description of Vxworks_Needs_Vxtypes fix
8772 tSCC zVxworks_Needs_VxtypesName[] =
8773 "vxworks_needs_vxtypes";
8776 * File name selection pattern
8778 tSCC zVxworks_Needs_VxtypesList[] =
8781 * Machine/OS name selection pattern
8783 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8786 * content selection pattern - do fix if pattern found
8788 tSCC zVxworks_Needs_VxtypesSelect0[] =
8789 "uint_t([ \t]+_clocks_per_sec)";
8791 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8792 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8793 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8796 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8798 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8805 * Description of Vxworks_Needs_Vxworks fix
8807 tSCC zVxworks_Needs_VxworksName[] =
8808 "vxworks_needs_vxworks";
8811 * File name selection pattern
8813 tSCC zVxworks_Needs_VxworksList[] =
8816 * Machine/OS name selection pattern
8818 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8821 * content selection pattern - do fix if pattern found
8823 tSCC zVxworks_Needs_VxworksSelect0[] =
8824 "#[ \t]define[ \t]+__INCstath";
8827 * perform the 'test' shell command - do fix on success
8829 tSCC zVxworks_Needs_VxworksTest0[] =
8830 " -r types/vxTypesOld.h";
8831 tSCC zVxworks_Needs_VxworksTest1[] =
8832 " -n \"`egrep '#include' $file`\"";
8833 tSCC zVxworks_Needs_VxworksTest2[] =
8834 " -n \"`egrep ULONG $file`\"";
8836 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8837 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8838 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8839 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8840 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8841 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8844 * Fix Command Arguments for Vxworks_Needs_Vxworks
8846 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8847 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8848 #include <types/vxTypesOld.h>\n",
8851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8853 * Description of Vxworks_Time fix
8855 tSCC zVxworks_TimeName[] =
8859 * File name selection pattern
8861 tSCC zVxworks_TimeList[] =
8864 * Machine/OS name selection pattern
8866 #define apzVxworks_TimeMachs (const char**)NULL
8869 * content selection pattern - do fix if pattern found
8871 tSCC zVxworks_TimeSelect0[] =
8872 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8875 * perform the 'test' shell command - do fix on success
8877 tSCC zVxworks_TimeTest0[] =
8880 #define VXWORKS_TIME_TEST_CT 2
8881 static tTestDesc aVxworks_TimeTests[] = {
8882 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8883 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8886 * Fix Command Arguments for Vxworks_Time
8888 static const char* apzVxworks_TimePatch[] = {
8890 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8891 #ifdef __cplusplus\n\
8892 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8894 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8896 #define __gcc_VOIDFUNCPTR_defined\n\
8898 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8901 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8903 * Description of X11_Class fix
8905 tSCC zX11_ClassName[] =
8909 * File name selection pattern
8911 tSCC zX11_ClassList[] =
8914 * Machine/OS name selection pattern
8916 #define apzX11_ClassMachs (const char**)NULL
8919 * content selection pattern - do fix if pattern found
8921 tSCC zX11_ClassSelect0[] =
8922 "^([ \t]*char \\*)class;(.*)";
8925 * content bypass pattern - skip fix if pattern found
8927 tSCC zX11_ClassBypass0[] =
8930 #define X11_CLASS_TEST_CT 2
8931 static tTestDesc aX11_ClassTests[] = {
8932 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8933 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8936 * Fix Command Arguments for X11_Class
8938 static const char* apzX11_ClassPatch[] = {
8940 "#ifdef __cplusplus\n\
8947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8949 * Description of X11_Class_Usage fix
8951 tSCC zX11_Class_UsageName[] =
8955 * File name selection pattern
8957 tSCC zX11_Class_UsageList[] =
8958 "Xm/BaseClassI.h\0";
8960 * Machine/OS name selection pattern
8962 #define apzX11_Class_UsageMachs (const char**)NULL
8965 * content selection pattern - do fix if pattern found
8967 tSCC zX11_Class_UsageSelect0[] =
8971 * content bypass pattern - skip fix if pattern found
8973 tSCC zX11_Class_UsageBypass0[] =
8976 #define X11_CLASS_USAGE_TEST_CT 2
8977 static tTestDesc aX11_Class_UsageTests[] = {
8978 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8979 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8982 * Fix Command Arguments for X11_Class_Usage
8984 static const char* apzX11_Class_UsagePatch[] = {
8989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8991 * Description of X11_New fix
8993 tSCC zX11_NewName[] =
8997 * File name selection pattern
8999 tSCC zX11_NewList[] =
9002 * Machine/OS name selection pattern
9004 #define apzX11_NewMachs (const char**)NULL
9007 * content bypass pattern - skip fix if pattern found
9009 tSCC zX11_NewBypass0[] =
9012 #define X11_NEW_TEST_CT 1
9013 static tTestDesc aX11_NewTests[] = {
9014 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
9017 * Fix Command Arguments for X11_New
9019 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9020 "-e", "/Widget\told, new;/i\\\n\
9021 #ifdef __cplusplus\\\n\
9022 \\\tWidget\told, c_new;\\\n\
9024 "-e", "/Widget\told, new;/a\\\n\
9026 "-e", "s/Widget new,/Widget c_new,/g",
9029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9031 * Description of X11_Sprintf fix
9033 tSCC zX11_SprintfName[] =
9037 * File name selection pattern
9039 tSCC zX11_SprintfList[] =
9040 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9042 * Machine/OS name selection pattern
9044 #define apzX11_SprintfMachs (const char**)NULL
9047 * content selection pattern - do fix if pattern found
9049 tSCC zX11_SprintfSelect0[] =
9050 "^extern char \\*\tsprintf\\(\\);$";
9052 #define X11_SPRINTF_TEST_CT 1
9053 static tTestDesc aX11_SprintfTests[] = {
9054 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
9057 * Fix Command Arguments for X11_Sprintf
9059 static const char* apzX11_SprintfPatch[] = {
9061 "#ifndef __STDC__\n\
9063 #endif /* !defined __STDC__ */",
9067 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9071 #define REGEX_COUNT 265
9072 #define MACH_LIST_SIZE_LIMIT 181
9073 #define FIX_COUNT 223
9076 * Enumerate the fixes
9079 AAB_AIX_STDIO_FIXIDX,
9080 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9081 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9082 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9083 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9084 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9085 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9086 AAB_SUN_MEMCPY_FIXIDX,
9088 AIX_NET_IF_ARP_FIXIDX,
9089 AIX_ONCE_INIT_1_FIXIDX,
9090 AIX_ONCE_INIT_2_FIXIDX,
9092 AIX_STDINT_1_FIXIDX,
9093 AIX_STDINT_2_FIXIDX,
9094 AIX_STDINT_3_FIXIDX,
9095 AIX_STDINT_4_FIXIDX,
9096 AIX_STDINT_5_FIXIDX,
9097 AIX_SYSMACHINE_FIXIDX,
9098 AIX_SYSWAIT_2_FIXIDX,
9099 AIX_VOLATILE_FIXIDX,
9100 ALPHA___ASSERT_FIXIDX,
9101 ALPHA_ASSERT_FIXIDX,
9102 ALPHA_GETOPT_FIXIDX,
9103 ALPHA_IF_SEMICOLON_FIXIDX,
9104 ALPHA_PARENS_FIXIDX,
9106 AVOID_BOOL_DEFINE_FIXIDX,
9107 AVOID_BOOL_TYPE_FIXIDX,
9108 AVOID_WCHAR_T_TYPE_FIXIDX,
9109 BAD_STRUCT_TERM_FIXIDX,
9111 BROKEN_ASSERT_STDIO_FIXIDX,
9112 BROKEN_ASSERT_STDLIB_FIXIDX,
9115 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9116 CDEF_CPLUSPLUS_FIXIDX,
9117 CTRL_QUOTES_DEF_FIXIDX,
9118 CTRL_QUOTES_USE_FIXIDX,
9120 DARWIN_EXTERNC_FIXIDX,
9121 DARWIN_GCC4_BREAKAGE_FIXIDX,
9122 DARWIN_PRIVATE_EXTERN_FIXIDX,
9123 DARWIN_STDINT_1_FIXIDX,
9124 DARWIN_STDINT_2_FIXIDX,
9125 DARWIN_STDINT_3_FIXIDX,
9126 DARWIN_STDINT_4_FIXIDX,
9127 DARWIN_STDINT_5_FIXIDX,
9128 DARWIN_STDINT_6_FIXIDX,
9129 DARWIN_STDINT_7_FIXIDX,
9130 DEC_INTERN_ASM_FIXIDX,
9131 DJGPP_WCHAR_H_FIXIDX,
9133 FREEBSD_GCC3_BREAKAGE_FIXIDX,
9134 FREEBSD_GCC4_BREAKAGE_FIXIDX,
9135 GLIBC_C99_INLINE_1_FIXIDX,
9136 GLIBC_C99_INLINE_1A_FIXIDX,
9137 GLIBC_C99_INLINE_2_FIXIDX,
9138 GLIBC_C99_INLINE_3_FIXIDX,
9139 GLIBC_C99_INLINE_4_FIXIDX,
9140 GLIBC_MUTEX_INIT_FIXIDX,
9141 GLIBC_STDINT_FIXIDX,
9142 GLIBC_STRNCPY_FIXIDX,
9143 GLIBC_TGMATH_FIXIDX,
9147 HPPA_HPUX_FP_MACROS_FIXIDX,
9148 HPUX10_CPP_POW_INLINE_FIXIDX,
9149 HPUX11_CPP_POW_INLINE_FIXIDX,
9150 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9151 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9152 HPUX10_STDIO_DECLARATIONS_FIXIDX,
9154 HPUX11_FABSF_FIXIDX,
9155 HPUX11_PTHREAD_CONST_FIXIDX,
9156 HPUX11_SIZE_T_FIXIDX,
9157 HPUX11_SNPRINTF_FIXIDX,
9158 HPUX11_VSNPRINTF_FIXIDX,
9159 HPUX8_BOGUS_INLINES_FIXIDX,
9160 HPUX_CTYPE_MACROS_FIXIDX,
9162 HPUX_LONG_DOUBLE_FIXIDX,
9163 HPUX_LONG_DOUBLE_2_FIXIDX,
9164 HPUX_SYSTIME_FIXIDX,
9165 HPUX_SPU_INFO_FIXIDX,
9166 HPUX11_EXTERN_SENDFILE_FIXIDX,
9167 HPUX11_EXTERN_SENDPATH_FIXIDX,
9168 HPUX_EXTERN_ERRNO_FIXIDX,
9169 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9170 HPUX_C99_INTPTR_FIXIDX,
9171 HPUX_C99_INTTYPES_FIXIDX,
9172 HPUX_C99_INTTYPES2_FIXIDX,
9173 HPUX_STDINT_LEAST_FAST_FIXIDX,
9174 HPUX_INTTYPE_INT8_T_FIXIDX,
9175 HPUX_IMAGINARY_I_FIXIDX,
9176 HUGE_VAL_HEX_FIXIDX,
9177 HUGE_VALF_HEX_FIXIDX,
9178 HUGE_VALL_HEX_FIXIDX,
9179 INT_ABORT_FREE_AND_EXIT_FIXIDX,
9180 IO_QUOTES_DEF_FIXIDX,
9181 IO_QUOTES_USE_FIXIDX,
9182 IP_MISSING_SEMI_FIXIDX,
9183 IRIX___RESTRICT_FIXIDX,
9184 IRIX___GENERIC1_FIXIDX,
9185 IRIX___GENERIC2_FIXIDX,
9186 IRIX_ASM_APOSTROPHE_FIXIDX,
9187 IRIX_COMPLEX_FIXIDX,
9188 IRIX_LIMITS_CONST_FIXIDX,
9189 IRIX_PTHREAD_INIT_FIXIDX,
9190 IRIX_SOCKLEN_T_FIXIDX,
9191 IRIX_STDINT_C99_MODE_FIXIDX,
9192 IRIX_STDINT_C99_TYPES_FIXIDX,
9193 IRIX_STDINT_C99_MACROS_FIXIDX,
9194 IRIX_STDIO_VA_LIST_FIXIDX,
9195 IRIX_WCSFTIME_FIXIDX,
9196 KANDR_CONCAT_FIXIDX,
9197 LINUX_IA64_UCONTEXT_FIXIDX,
9198 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9199 LYNXOS_MISSING_PUTENV_FIXIDX,
9200 MACHINE_ANSI_H_VA_LIST_FIXIDX,
9201 MACHINE_NAME_FIXIDX,
9202 MATH_EXCEPTION_FIXIDX,
9203 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9204 NESTED_AUTH_DES_FIXIDX,
9205 NETBSD_C99_INLINE_1_FIXIDX,
9206 NETBSD_C99_INLINE_2_FIXIDX,
9207 NETBSD_EXTRA_SEMICOLON_FIXIDX,
9208 NEWLIB_STDINT_1_FIXIDX,
9209 NEWLIB_STDINT_2_FIXIDX,
9210 NEXT_MATH_PREFIX_FIXIDX,
9211 NEXT_TEMPLATE_FIXIDX,
9212 NEXT_VOLITILE_FIXIDX,
9213 NEXT_WAIT_UNION_FIXIDX,
9214 NODEENT_SYNTAX_FIXIDX,
9215 OPENBSD_NULL_DEFINITION_FIXIDX,
9216 OBSTACK_LVALUE_CAST_FIXIDX,
9217 OPENBSD_VA_START_FIXIDX,
9218 OSF_NAMESPACE_A_FIXIDX,
9219 OSF_NAMESPACE_C_FIXIDX,
9220 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9221 READ_RET_TYPE_FIXIDX,
9222 RPC_XDR_LVALUE_CAST_A_FIXIDX,
9223 RPC_XDR_LVALUE_CAST_B_FIXIDX,
9224 RS6000_DOUBLE_FIXIDX,
9225 RS6000_FCHMOD_FIXIDX,
9226 RS6000_PARAM_FIXIDX,
9227 SOLARIS___RESTRICT_FIXIDX,
9228 SOLARIS_COMPLEX_FIXIDX,
9229 SOLARIS_COMPLEX_CXX_FIXIDX,
9230 SOLARIS_COND_INIT_FIXIDX,
9231 SOLARIS_CXX_LINKAGE_FIXIDX,
9232 SOLARIS_GETC_STRICT_STDC_FIXIDX,
9233 SOLARIS_LONGJMP_NORETURN_FIXIDX,
9234 SOLARIS_MATH_1_FIXIDX,
9235 SOLARIS_MATH_2_FIXIDX,
9236 SOLARIS_MATH_3_FIXIDX,
9237 SOLARIS_MATH_4_FIXIDX,
9238 SOLARIS_MATH_8_FIXIDX,
9239 SOLARIS_MATH_9_FIXIDX,
9240 SOLARIS_MATH_10_FIXIDX,
9241 SOLARIS_MUTEX_INIT_2_FIXIDX,
9242 SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9243 SOLARIS_RWLOCK_INIT_1_FIXIDX,
9244 SOLARIS_ONCE_INIT_1_FIXIDX,
9245 SOLARIS_ONCE_INIT_2_FIXIDX,
9246 SOLARIS_INT_CONST_FIXIDX,
9247 SOLARIS_INT_LIMITS_1_FIXIDX,
9248 SOLARIS_INT_LIMITS_2_FIXIDX,
9249 SOLARIS_INT_LIMITS_3_FIXIDX,
9250 SOLARIS_INT_TYPES_FIXIDX,
9251 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9252 SOLARIS_STD___FILBUF_FIXIDX,
9253 SOLARIS_STDIO_TAG_FIXIDX,
9254 SOLARIS_SYS_VA_LIST_FIXIDX,
9256 STDIO_STDARG_H_FIXIDX,
9257 STDIO_VA_LIST_FIXIDX,
9258 STDIO_VA_LIST_CLIENTS_FIXIDX,
9259 STRICT_ANSI_NOT_FIXIDX,
9260 STRICT_ANSI_NOT_CTD_FIXIDX,
9261 STRICT_ANSI_ONLY_FIXIDX,
9263 STRUCT_SOCKADDR_FIXIDX,
9264 SUN_AUTH_PROTO_FIXIDX,
9265 SUN_BOGUS_IFDEF_FIXIDX,
9266 SUN_CATMACRO_FIXIDX,
9268 SUN_RUSERS_SEMI_FIXIDX,
9270 SUNOS_STRLEN_FIXIDX,
9271 SVR4_DISABLE_OPT_FIXIDX,
9274 SVR4_SIGHANDLER_TYPE_FIXIDX,
9275 SVR4_UNDECLARED_GETRNGE_FIXIDX,
9276 SYSV68_STRING_FIXIDX,
9277 SYSZ_STDLIB_FOR_SUN_FIXIDX,
9278 THREAD_KEYWORD_FIXIDX,
9279 TINFO_CPLUSPLUS_FIXIDX,
9280 ULTRIX_CONST_FIXIDX,
9281 ULTRIX_CONST2_FIXIDX,
9282 VA_I960_MACRO_FIXIDX,
9283 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9284 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9285 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9286 VMS_USE_QUOTED_INCLUDE_FIXIDX,
9287 VMS_ADD_MISSING_BRACES_FIXIDX,
9288 VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
9289 VMS_DECC_BUILTIN_FIXIDX,
9290 VMS_NO_64BIT_GETOPT_FIXIDX,
9291 VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
9292 VMS_USE_FAST_SETJMP_FIXIDX,
9294 VXWORKS_GCC_PROBLEM_FIXIDX,
9295 VXWORKS_NEEDS_VXTYPES_FIXIDX,
9296 VXWORKS_NEEDS_VXWORKS_FIXIDX,
9297 VXWORKS_TIME_FIXIDX,
9299 X11_CLASS_USAGE_FIXIDX,
9304 tFixDesc fixDescList[ FIX_COUNT ] = {
9305 { zAab_Aix_StdioName, zAab_Aix_StdioList,
9306 apzAab_Aix_StdioMachs,
9307 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
9310 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
9311 apzAab_Darwin7_9_Long_Double_FuncsMachs,
9312 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9313 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9315 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
9316 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
9317 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9318 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
9320 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
9321 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9322 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9323 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9325 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
9326 apzAab_Fd_Zero_Gnu_Types_HMachs,
9327 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9328 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9330 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
9331 apzAab_Fd_Zero_Selectbits_HMachs,
9332 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9333 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9335 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
9336 apzAab_Solaris_Sys_Varargs_HMachs,
9337 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9338 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9340 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
9341 apzAab_Sun_MemcpyMachs,
9342 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9343 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
9345 { zAix_ComplexName, zAix_ComplexList,
9346 apzAix_ComplexMachs,
9347 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
9350 { zAix_Net_If_ArpName, zAix_Net_If_ArpList,
9351 apzAix_Net_If_ArpMachs,
9352 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 },
9355 { zAix_Once_Init_1Name, zAix_Once_Init_1List,
9356 apzAix_Once_Init_1Machs,
9357 AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358 aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 },
9360 { zAix_Once_Init_2Name, zAix_Once_Init_2List,
9361 apzAix_Once_Init_2Machs,
9362 AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363 aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 },
9365 { zAix_PthreadName, zAix_PthreadList,
9366 apzAix_PthreadMachs,
9367 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
9370 { zAix_Stdint_1Name, zAix_Stdint_1List,
9371 apzAix_Stdint_1Machs,
9372 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
9375 { zAix_Stdint_2Name, zAix_Stdint_2List,
9376 apzAix_Stdint_2Machs,
9377 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
9380 { zAix_Stdint_3Name, zAix_Stdint_3List,
9381 apzAix_Stdint_3Machs,
9382 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
9385 { zAix_Stdint_4Name, zAix_Stdint_4List,
9386 apzAix_Stdint_4Machs,
9387 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
9390 { zAix_Stdint_5Name, zAix_Stdint_5List,
9391 apzAix_Stdint_5Machs,
9392 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
9395 { zAix_SysmachineName, zAix_SysmachineList,
9396 apzAix_SysmachineMachs,
9397 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
9400 { zAix_Syswait_2Name, zAix_Syswait_2List,
9401 apzAix_Syswait_2Machs,
9402 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
9405 { zAix_VolatileName, zAix_VolatileList,
9406 apzAix_VolatileMachs,
9407 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
9410 { zAlpha___AssertName, zAlpha___AssertList,
9411 apzAlpha___AssertMachs,
9412 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
9415 { zAlpha_AssertName, zAlpha_AssertList,
9416 apzAlpha_AssertMachs,
9417 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
9420 { zAlpha_GetoptName, zAlpha_GetoptList,
9421 apzAlpha_GetoptMachs,
9422 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
9425 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
9426 apzAlpha_If_SemicolonMachs,
9427 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
9430 { zAlpha_ParensName, zAlpha_ParensList,
9431 apzAlpha_ParensMachs,
9432 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
9435 { zAlpha_SbrkName, zAlpha_SbrkList,
9437 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
9440 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
9441 apzAvoid_Bool_DefineMachs,
9442 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9445 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9446 apzAvoid_Bool_TypeMachs,
9447 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9450 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9451 apzAvoid_Wchar_T_TypeMachs,
9452 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9453 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9455 { zBad_Struct_TermName, zBad_Struct_TermList,
9456 apzBad_Struct_TermMachs,
9457 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9460 { zBadquoteName, zBadquoteList,
9462 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463 aBadquoteTests, apzBadquotePatch, 0 },
9465 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9466 apzBroken_Assert_StdioMachs,
9467 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9470 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9471 apzBroken_Assert_StdlibMachs,
9472 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9475 { zBroken_CabsName, zBroken_CabsList,
9476 apzBroken_CabsMachs,
9477 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9478 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9480 { zBroken_NanName, zBroken_NanList,
9482 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483 aBroken_NanTests, apzBroken_NanPatch, 0 },
9485 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9486 apzBsd_Stdio_Attrs_ConflictMachs,
9487 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9490 { zCdef_CplusplusName, zCdef_CplusplusList,
9491 apzCdef_CplusplusMachs,
9492 CDEF_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493 aCdef_CplusplusTests, apzCdef_CplusplusPatch, 0 },
9495 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9496 apzCtrl_Quotes_DefMachs,
9497 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9500 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9501 apzCtrl_Quotes_UseMachs,
9502 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9505 { zCxx_UnreadyName, zCxx_UnreadyList,
9506 apzCxx_UnreadyMachs,
9507 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9510 { zDarwin_ExterncName, zDarwin_ExterncList,
9511 apzDarwin_ExterncMachs,
9512 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9515 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9516 apzDarwin_Gcc4_BreakageMachs,
9517 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9520 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9521 apzDarwin_Private_ExternMachs,
9522 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9525 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
9526 apzDarwin_Stdint_1Machs,
9527 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
9530 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
9531 apzDarwin_Stdint_2Machs,
9532 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
9535 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
9536 apzDarwin_Stdint_3Machs,
9537 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
9540 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
9541 apzDarwin_Stdint_4Machs,
9542 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
9545 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
9546 apzDarwin_Stdint_5Machs,
9547 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
9550 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
9551 apzDarwin_Stdint_6Machs,
9552 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
9555 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
9556 apzDarwin_Stdint_7Machs,
9557 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9558 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
9560 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9561 apzDec_Intern_AsmMachs,
9562 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9563 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9565 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9566 apzDjgpp_Wchar_HMachs,
9567 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9570 { zEcd_CursorName, zEcd_CursorList,
9572 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9575 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9576 apzFreebsd_Gcc3_BreakageMachs,
9577 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9580 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9581 apzFreebsd_Gcc4_BreakageMachs,
9582 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9585 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9586 apzGlibc_C99_Inline_1Machs,
9587 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9590 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9591 apzGlibc_C99_Inline_1aMachs,
9592 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9595 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9596 apzGlibc_C99_Inline_2Machs,
9597 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9598 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9600 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9601 apzGlibc_C99_Inline_3Machs,
9602 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9605 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9606 apzGlibc_C99_Inline_4Machs,
9607 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9610 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9611 apzGlibc_Mutex_InitMachs,
9612 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9613 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9615 { zGlibc_StdintName, zGlibc_StdintList,
9616 apzGlibc_StdintMachs,
9617 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
9620 { zGlibc_StrncpyName, zGlibc_StrncpyList,
9621 apzGlibc_StrncpyMachs,
9622 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
9625 { zGlibc_TgmathName, zGlibc_TgmathList,
9626 apzGlibc_TgmathMachs,
9627 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
9630 { zGnu_TypesName, zGnu_TypesList,
9632 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9633 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9635 { zHp_InlineName, zHp_InlineList,
9637 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638 aHp_InlineTests, apzHp_InlinePatch, 0 },
9640 { zHp_SysfileName, zHp_SysfileList,
9642 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9645 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9646 apzHppa_Hpux_Fp_MacrosMachs,
9647 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9650 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9651 apzHpux10_Cpp_Pow_InlineMachs,
9652 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9655 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9656 apzHpux11_Cpp_Pow_InlineMachs,
9657 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9660 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9661 apzHpux10_Ctype_Declarations1Machs,
9662 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9665 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9666 apzHpux10_Ctype_Declarations2Machs,
9667 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9670 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9671 apzHpux10_Stdio_DeclarationsMachs,
9672 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9675 { zHpux11_AbsName, zHpux11_AbsList,
9677 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9680 { zHpux11_FabsfName, zHpux11_FabsfList,
9681 apzHpux11_FabsfMachs,
9682 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9685 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9686 apzHpux11_Pthread_ConstMachs,
9687 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9690 { zHpux11_Size_TName, zHpux11_Size_TList,
9691 apzHpux11_Size_TMachs,
9692 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9695 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9696 apzHpux11_SnprintfMachs,
9697 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9700 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9701 apzHpux11_VsnprintfMachs,
9702 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9705 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9706 apzHpux8_Bogus_InlinesMachs,
9707 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9708 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9710 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9711 apzHpux_Ctype_MacrosMachs,
9712 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9715 { zHpux_HtonlName, zHpux_HtonlList,
9717 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9720 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9721 apzHpux_Long_DoubleMachs,
9722 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9723 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9725 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
9726 apzHpux_Long_Double_2Machs,
9727 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
9730 { zHpux_SystimeName, zHpux_SystimeList,
9731 apzHpux_SystimeMachs,
9732 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9735 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9736 apzHpux_Spu_InfoMachs,
9737 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9740 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9741 apzHpux11_Extern_SendfileMachs,
9742 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9745 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9746 apzHpux11_Extern_SendpathMachs,
9747 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9750 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9751 apzHpux_Extern_ErrnoMachs,
9752 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9753 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9755 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9756 apzHpux_Pthread_InitializersMachs,
9757 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9758 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9760 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
9761 apzHpux_C99_IntptrMachs,
9762 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9763 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
9765 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
9766 apzHpux_C99_InttypesMachs,
9767 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9768 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
9770 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
9771 apzHpux_C99_Inttypes2Machs,
9772 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9773 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
9775 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
9776 apzHpux_Stdint_Least_FastMachs,
9777 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
9780 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
9781 apzHpux_Inttype_Int8_TMachs,
9782 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
9785 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
9786 apzHpux_Imaginary_IMachs,
9787 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
9790 { zHuge_Val_HexName, zHuge_Val_HexList,
9791 apzHuge_Val_HexMachs,
9792 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9795 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9796 apzHuge_Valf_HexMachs,
9797 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9800 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9801 apzHuge_Vall_HexMachs,
9802 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9805 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9806 apzInt_Abort_Free_And_ExitMachs,
9807 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9810 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9811 apzIo_Quotes_DefMachs,
9812 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9815 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9816 apzIo_Quotes_UseMachs,
9817 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9820 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9821 apzIp_Missing_SemiMachs,
9822 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9823 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9825 { zIrix___RestrictName, zIrix___RestrictList,
9826 apzIrix___RestrictMachs,
9827 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9830 { zIrix___Generic1Name, zIrix___Generic1List,
9831 apzIrix___Generic1Machs,
9832 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9835 { zIrix___Generic2Name, zIrix___Generic2List,
9836 apzIrix___Generic2Machs,
9837 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9840 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9841 apzIrix_Asm_ApostropheMachs,
9842 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9845 { zIrix_ComplexName, zIrix_ComplexList,
9846 apzIrix_ComplexMachs,
9847 IRIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
9848 aIrix_ComplexTests, apzIrix_ComplexPatch, 0 },
9850 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9851 apzIrix_Limits_ConstMachs,
9852 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9855 { zIrix_Pthread_InitName, zIrix_Pthread_InitList,
9856 apzIrix_Pthread_InitMachs,
9857 IRIX_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858 aIrix_Pthread_InitTests, apzIrix_Pthread_InitPatch, 0 },
9860 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9861 apzIrix_Socklen_TMachs,
9862 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9865 { zIrix_Stdint_C99_ModeName, zIrix_Stdint_C99_ModeList,
9866 apzIrix_Stdint_C99_ModeMachs,
9867 IRIX_STDINT_C99_MODE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868 aIrix_Stdint_C99_ModeTests, apzIrix_Stdint_C99_ModePatch, 0 },
9870 { zIrix_Stdint_C99_TypesName, zIrix_Stdint_C99_TypesList,
9871 apzIrix_Stdint_C99_TypesMachs,
9872 IRIX_STDINT_C99_TYPES_TEST_CT, FD_MACH_ONLY,
9873 aIrix_Stdint_C99_TypesTests, apzIrix_Stdint_C99_TypesPatch, 0 },
9875 { zIrix_Stdint_C99_MacrosName, zIrix_Stdint_C99_MacrosList,
9876 apzIrix_Stdint_C99_MacrosMachs,
9877 IRIX_STDINT_C99_MACROS_TEST_CT, FD_MACH_ONLY,
9878 aIrix_Stdint_C99_MacrosTests, apzIrix_Stdint_C99_MacrosPatch, 0 },
9880 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9881 apzIrix_Stdio_Va_ListMachs,
9882 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9885 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9886 apzIrix_WcsftimeMachs,
9887 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9890 { zKandr_ConcatName, zKandr_ConcatList,
9891 apzKandr_ConcatMachs,
9892 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9895 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9896 apzLinux_Ia64_UcontextMachs,
9897 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9900 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9901 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9902 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9905 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9906 apzLynxos_Missing_PutenvMachs,
9907 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9910 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9911 apzMachine_Ansi_H_Va_ListMachs,
9912 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9915 { zMachine_NameName, zMachine_NameList,
9916 apzMachine_NameMachs,
9917 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9918 aMachine_NameTests, apzMachine_NamePatch, 0 },
9920 { zMath_ExceptionName, zMath_ExceptionList,
9921 apzMath_ExceptionMachs,
9922 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9923 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9925 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9926 apzMath_Huge_Val_From_Dbl_MaxMachs,
9927 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9928 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9930 { zNested_Auth_DesName, zNested_Auth_DesList,
9931 apzNested_Auth_DesMachs,
9932 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9935 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9936 apzNetbsd_C99_Inline_1Machs,
9937 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9940 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9941 apzNetbsd_C99_Inline_2Machs,
9942 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9945 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9946 apzNetbsd_Extra_SemicolonMachs,
9947 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9948 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9950 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
9951 apzNewlib_Stdint_1Machs,
9952 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9953 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
9955 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
9956 apzNewlib_Stdint_2Machs,
9957 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9958 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
9960 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9961 apzNext_Math_PrefixMachs,
9962 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9963 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9965 { zNext_TemplateName, zNext_TemplateList,
9966 apzNext_TemplateMachs,
9967 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9968 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9970 { zNext_VolitileName, zNext_VolitileList,
9971 apzNext_VolitileMachs,
9972 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9975 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9976 apzNext_Wait_UnionMachs,
9977 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9980 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9981 apzNodeent_SyntaxMachs,
9982 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9985 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
9986 apzOpenbsd_Null_DefinitionMachs,
9987 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
9990 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9991 apzObstack_Lvalue_CastMachs,
9992 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9995 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
9996 apzOpenbsd_Va_StartMachs,
9997 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
10000 { zOsf_Namespace_AName, zOsf_Namespace_AList,
10001 apzOsf_Namespace_AMachs,
10002 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10003 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
10005 { zOsf_Namespace_CName, zOsf_Namespace_CList,
10006 apzOsf_Namespace_CMachs,
10007 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10008 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
10010 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
10011 apzPthread_Incomplete_Struct_ArgumentMachs,
10012 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10013 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10015 { zRead_Ret_TypeName, zRead_Ret_TypeList,
10016 apzRead_Ret_TypeMachs,
10017 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
10020 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
10021 apzRpc_Xdr_Lvalue_Cast_AMachs,
10022 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10025 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
10026 apzRpc_Xdr_Lvalue_Cast_BMachs,
10027 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10030 { zRs6000_DoubleName, zRs6000_DoubleList,
10031 apzRs6000_DoubleMachs,
10032 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
10035 { zRs6000_FchmodName, zRs6000_FchmodList,
10036 apzRs6000_FchmodMachs,
10037 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
10040 { zRs6000_ParamName, zRs6000_ParamList,
10041 apzRs6000_ParamMachs,
10042 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
10045 { zSolaris___RestrictName, zSolaris___RestrictList,
10046 apzSolaris___RestrictMachs,
10047 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10048 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
10050 { zSolaris_ComplexName, zSolaris_ComplexList,
10051 apzSolaris_ComplexMachs,
10052 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10053 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
10055 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
10056 apzSolaris_Complex_CxxMachs,
10057 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10058 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
10060 { zSolaris_Cond_InitName, zSolaris_Cond_InitList,
10061 apzSolaris_Cond_InitMachs,
10062 SOLARIS_COND_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10063 aSolaris_Cond_InitTests, apzSolaris_Cond_InitPatch, 0 },
10065 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList,
10066 apzSolaris_Cxx_LinkageMachs,
10067 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 },
10070 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList,
10071 apzSolaris_Getc_Strict_StdcMachs,
10072 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 },
10075 { zSolaris_Longjmp_NoreturnName, zSolaris_Longjmp_NoreturnList,
10076 apzSolaris_Longjmp_NoreturnMachs,
10077 SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078 aSolaris_Longjmp_NoreturnTests, apzSolaris_Longjmp_NoreturnPatch, 0 },
10080 { zSolaris_Math_1Name, zSolaris_Math_1List,
10081 apzSolaris_Math_1Machs,
10082 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10083 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
10085 { zSolaris_Math_2Name, zSolaris_Math_2List,
10086 apzSolaris_Math_2Machs,
10087 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
10090 { zSolaris_Math_3Name, zSolaris_Math_3List,
10091 apzSolaris_Math_3Machs,
10092 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
10095 { zSolaris_Math_4Name, zSolaris_Math_4List,
10096 apzSolaris_Math_4Machs,
10097 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
10100 { zSolaris_Math_8Name, zSolaris_Math_8List,
10101 apzSolaris_Math_8Machs,
10102 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10103 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
10105 { zSolaris_Math_9Name, zSolaris_Math_9List,
10106 apzSolaris_Math_9Machs,
10107 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10108 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
10110 { zSolaris_Math_10Name, zSolaris_Math_10List,
10111 apzSolaris_Math_10Machs,
10112 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10113 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
10115 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
10116 apzSolaris_Mutex_Init_2Machs,
10117 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10118 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
10120 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList,
10121 apzSolaris_Pow_Int_OverloadMachs,
10122 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10123 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 },
10125 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
10126 apzSolaris_Rwlock_Init_1Machs,
10127 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10128 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
10130 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
10131 apzSolaris_Once_Init_1Machs,
10132 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
10135 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
10136 apzSolaris_Once_Init_2Machs,
10137 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10138 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
10140 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
10141 apzSolaris_Int_ConstMachs,
10142 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10143 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
10145 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
10146 apzSolaris_Int_Limits_1Machs,
10147 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
10150 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
10151 apzSolaris_Int_Limits_2Machs,
10152 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10153 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
10155 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
10156 apzSolaris_Int_Limits_3Machs,
10157 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10158 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
10160 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
10161 apzSolaris_Int_TypesMachs,
10162 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
10165 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList,
10166 apzSolaris_Posix_Spawn_RestrictMachs,
10167 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10170 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList,
10171 apzSolaris_Std___FilbufMachs,
10172 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10173 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 },
10175 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
10176 apzSolaris_Stdio_TagMachs,
10177 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10178 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
10180 { zSolaris_Sys_Va_ListName, zSolaris_Sys_Va_ListList,
10181 apzSolaris_Sys_Va_ListMachs,
10182 SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10183 aSolaris_Sys_Va_ListTests, apzSolaris_Sys_Va_ListPatch, 0 },
10185 { zStatsswtchName, zStatsswtchList,
10186 apzStatsswtchMachs,
10187 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10188 aStatsswtchTests, apzStatsswtchPatch, 0 },
10190 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
10191 apzStdio_Stdarg_HMachs,
10192 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10193 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
10195 { zStdio_Va_ListName, zStdio_Va_ListList,
10196 apzStdio_Va_ListMachs,
10197 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10198 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
10200 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
10201 apzStdio_Va_List_ClientsMachs,
10202 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10203 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
10205 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
10206 apzStrict_Ansi_NotMachs,
10207 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
10210 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
10211 apzStrict_Ansi_Not_CtdMachs,
10212 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
10215 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
10216 apzStrict_Ansi_OnlyMachs,
10217 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
10220 { zStruct_FileName, zStruct_FileList,
10221 apzStruct_FileMachs,
10222 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223 aStruct_FileTests, apzStruct_FilePatch, 0 },
10225 { zStruct_SockaddrName, zStruct_SockaddrList,
10226 apzStruct_SockaddrMachs,
10227 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10228 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
10230 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
10231 apzSun_Auth_ProtoMachs,
10232 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
10235 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
10236 apzSun_Bogus_IfdefMachs,
10237 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10238 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
10240 { zSun_CatmacroName, zSun_CatmacroList,
10241 apzSun_CatmacroMachs,
10242 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10243 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
10245 { zSun_MallocName, zSun_MallocList,
10246 apzSun_MallocMachs,
10247 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10248 aSun_MallocTests, apzSun_MallocPatch, 0 },
10250 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
10251 apzSun_Rusers_SemiMachs,
10252 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10253 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
10255 { zSun_SignalName, zSun_SignalList,
10256 apzSun_SignalMachs,
10257 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258 aSun_SignalTests, apzSun_SignalPatch, 0 },
10260 { zSunos_StrlenName, zSunos_StrlenList,
10261 apzSunos_StrlenMachs,
10262 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10263 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
10265 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
10266 apzSvr4_Disable_OptMachs,
10267 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10268 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
10270 { zSvr4_GetcwdName, zSvr4_GetcwdList,
10271 apzSvr4_GetcwdMachs,
10272 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
10275 { zSvr4_ProfilName, zSvr4_ProfilList,
10276 apzSvr4_ProfilMachs,
10277 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
10280 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
10281 apzSvr4_Sighandler_TypeMachs,
10282 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10283 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
10285 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
10286 apzSvr4_Undeclared_GetrngeMachs,
10287 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10288 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
10290 { zSysv68_StringName, zSysv68_StringList,
10291 apzSysv68_StringMachs,
10292 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10293 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
10295 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
10296 apzSysz_Stdlib_For_SunMachs,
10297 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10298 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
10300 { zThread_KeywordName, zThread_KeywordList,
10301 apzThread_KeywordMachs,
10302 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10303 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
10305 { zTinfo_CplusplusName, zTinfo_CplusplusList,
10306 apzTinfo_CplusplusMachs,
10307 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10308 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
10310 { zUltrix_ConstName, zUltrix_ConstList,
10311 apzUltrix_ConstMachs,
10312 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10313 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
10315 { zUltrix_Const2Name, zUltrix_Const2List,
10316 apzUltrix_Const2Machs,
10317 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10318 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
10320 { zVa_I960_MacroName, zVa_I960_MacroList,
10321 apzVa_I960_MacroMachs,
10322 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10323 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
10325 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList,
10326 apzVms_Define_Can_Use_Extern_PrefixMachs,
10327 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10328 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10330 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList,
10331 apzVms_Use_Pragma_Extern_ModelMachs,
10332 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10333 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10335 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList,
10336 apzVms_Disable_Decc_String_BuiltinsMachs,
10337 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10338 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10340 { zVms_Use_Quoted_IncludeName, zVms_Use_Quoted_IncludeList,
10341 apzVms_Use_Quoted_IncludeMachs,
10342 VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10343 aVms_Use_Quoted_IncludeTests, apzVms_Use_Quoted_IncludePatch, 0 },
10345 { zVms_Add_Missing_BracesName, zVms_Add_Missing_BracesList,
10346 apzVms_Add_Missing_BracesMachs,
10347 VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10348 aVms_Add_Missing_BracesTests, apzVms_Add_Missing_BracesPatch, 0 },
10350 { zVms_Do_Not_Redeclare_HostaliasName, zVms_Do_Not_Redeclare_HostaliasList,
10351 apzVms_Do_Not_Redeclare_HostaliasMachs,
10352 VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10353 aVms_Do_Not_Redeclare_HostaliasTests, apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
10355 { zVms_Decc_BuiltinName, zVms_Decc_BuiltinList,
10356 apzVms_Decc_BuiltinMachs,
10357 VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
10358 aVms_Decc_BuiltinTests, apzVms_Decc_BuiltinPatch, 0 },
10360 { zVms_No_64bit_GetoptName, zVms_No_64bit_GetoptList,
10361 apzVms_No_64bit_GetoptMachs,
10362 VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10363 aVms_No_64bit_GetoptTests, apzVms_No_64bit_GetoptPatch, 0 },
10365 { zVms_Forward_Declare_StructName, zVms_Forward_Declare_StructList,
10366 apzVms_Forward_Declare_StructMachs,
10367 VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10368 aVms_Forward_Declare_StructTests, apzVms_Forward_Declare_StructPatch, 0 },
10370 { zVms_Use_Fast_SetjmpName, zVms_Use_Fast_SetjmpList,
10371 apzVms_Use_Fast_SetjmpMachs,
10372 VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10373 aVms_Use_Fast_SetjmpTests, apzVms_Use_Fast_SetjmpPatch, 0 },
10375 { zVoid_NullName, zVoid_NullList,
10377 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10378 aVoid_NullTests, apzVoid_NullPatch, 0 },
10380 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
10381 apzVxworks_Gcc_ProblemMachs,
10382 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10383 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
10385 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
10386 apzVxworks_Needs_VxtypesMachs,
10387 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10388 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
10390 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
10391 apzVxworks_Needs_VxworksMachs,
10392 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10393 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
10395 { zVxworks_TimeName, zVxworks_TimeList,
10396 apzVxworks_TimeMachs,
10397 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10398 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
10400 { zX11_ClassName, zX11_ClassList,
10402 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10403 aX11_ClassTests, apzX11_ClassPatch, 0 },
10405 { zX11_Class_UsageName, zX11_Class_UsageList,
10406 apzX11_Class_UsageMachs,
10407 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10408 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
10410 { zX11_NewName, zX11_NewList,
10412 X11_NEW_TEST_CT, FD_MACH_ONLY,
10413 aX11_NewTests, apzX11_NewPatch, 0 },
10415 { zX11_SprintfName, zX11_SprintfList,
10416 apzX11_SprintfMachs,
10417 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10418 aX11_SprintfTests, apzX11_SprintfPatch, 0 }