1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed March 23, 2012 at 02:26:20 PM by AutoGen 5.10
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Fri Mar 23 14:26:20 EDT 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 212 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_Malloc fix
527 tSCC zAix_MallocName[] =
531 * File name selection pattern
533 tSCC zAix_MallocList[] =
536 * Machine/OS name selection pattern
538 tSCC* apzAix_MallocMachs[] = {
543 * content selection pattern - do fix if pattern found
545 tSCC zAix_MallocSelect0[] =
546 "#ifdef __cplusplus";
548 #define AIX_MALLOC_TEST_CT 1
549 static tTestDesc aAix_MallocTests[] = {
550 { TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, };
553 * Fix Command Arguments for Aix_Malloc
555 static const char* apzAix_MallocPatch[] = {
557 "#if (defined(__cplusplus) && defined(__IBMCPP__))",
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
562 * Description of Aix_Net_If_Arp fix
564 tSCC zAix_Net_If_ArpName[] =
568 * File name selection pattern
570 tSCC zAix_Net_If_ArpList[] =
573 * Machine/OS name selection pattern
575 tSCC* apzAix_Net_If_ArpMachs[] = {
580 * content selection pattern - do fix if pattern found
582 tSCC zAix_Net_If_ArpSelect0[] =
583 "^struct fc_softc \\{";
585 #define AIX_NET_IF_ARP_TEST_CT 1
586 static tTestDesc aAix_Net_If_ArpTests[] = {
587 { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
590 * Fix Command Arguments for Aix_Net_If_Arp
592 static const char* apzAix_Net_If_ArpPatch[] = {
594 "typedef struct _fc_softc {",
597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
599 * Description of Aix_Once_Init_1 fix
601 tSCC zAix_Once_Init_1Name[] =
605 * File name selection pattern
607 tSCC zAix_Once_Init_1List[] =
610 * Machine/OS name selection pattern
612 tSCC* apzAix_Once_Init_1Machs[] = {
617 * content selection pattern - do fix if pattern found
619 tSCC zAix_Once_Init_1Select0[] =
620 "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
623 #define AIX_ONCE_INIT_1_TEST_CT 1
624 static tTestDesc aAix_Once_Init_1Tests[] = {
625 { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, };
628 * Fix Command Arguments for Aix_Once_Init_1
630 static const char* apzAix_Once_Init_1Patch[] = {
632 "#define PTHREAD_ONCE_INIT \\\n\
636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
638 * Description of Aix_Once_Init_2 fix
640 tSCC zAix_Once_Init_2Name[] =
644 * File name selection pattern
646 tSCC zAix_Once_Init_2List[] =
649 * Machine/OS name selection pattern
651 tSCC* apzAix_Once_Init_2Machs[] = {
656 * content selection pattern - do fix if pattern found
658 tSCC zAix_Once_Init_2Select0[] =
662 #define AIX_ONCE_INIT_2_TEST_CT 1
663 static tTestDesc aAix_Once_Init_2Tests[] = {
664 { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, };
667 * Fix Command Arguments for Aix_Once_Init_2
669 static const char* apzAix_Once_Init_2Patch[] = {
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
677 * Description of Aix_Pthread fix
679 tSCC zAix_PthreadName[] =
683 * File name selection pattern
685 tSCC zAix_PthreadList[] =
688 * Machine/OS name selection pattern
690 #define apzAix_PthreadMachs (const char**)NULL
693 * content selection pattern - do fix if pattern found
695 tSCC zAix_PthreadSelect0[] =
696 "(#define [A-Za-z_0-9]+)(\\\\\n\
700 #define AIX_PTHREAD_TEST_CT 1
701 static tTestDesc aAix_PthreadTests[] = {
702 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
705 * Fix Command Arguments for Aix_Pthread
707 static const char* apzAix_PthreadPatch[] = {
712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
714 * Description of Aix_Stdint_1 fix
716 tSCC zAix_Stdint_1Name[] =
720 * File name selection pattern
722 tSCC zAix_Stdint_1List[] =
723 "stdint-aix.h\0stdint.h\0";
725 * Machine/OS name selection pattern
727 tSCC* apzAix_Stdint_1Machs[] = {
732 * content selection pattern - do fix if pattern found
734 tSCC zAix_Stdint_1Select0[] =
735 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
736 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
738 #define AIX_STDINT_1_TEST_CT 1
739 static tTestDesc aAix_Stdint_1Tests[] = {
740 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
743 * Fix Command Arguments for Aix_Stdint_1
745 static const char* apzAix_Stdint_1Patch[] = {
747 "#define UINT8_MAX\t(255)\n\
748 #define UINT16_MAX\t(65535)",
751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
753 * Description of Aix_Stdint_2 fix
755 tSCC zAix_Stdint_2Name[] =
759 * File name selection pattern
761 tSCC zAix_Stdint_2List[] =
762 "stdint-aix.h\0stdint.h\0";
764 * Machine/OS name selection pattern
766 tSCC* apzAix_Stdint_2Machs[] = {
771 * content selection pattern - do fix if pattern found
773 tSCC zAix_Stdint_2Select0[] =
774 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
775 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
776 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
778 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
779 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
780 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
782 #define AIX_STDINT_2_TEST_CT 1
783 static tTestDesc aAix_Stdint_2Tests[] = {
784 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
787 * Fix Command Arguments for Aix_Stdint_2
789 static const char* apzAix_Stdint_2Patch[] = {
791 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
792 #define INTPTR_MAX\t9223372036854775807L\n\
793 #define UINTPTR_MAX\t18446744073709551615UL\n\
795 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
796 #define INTPTR_MAX\t2147483647L\n\
797 #define UINTPTR_MAX\t4294967295UL",
800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
802 * Description of Aix_Stdint_3 fix
804 tSCC zAix_Stdint_3Name[] =
808 * File name selection pattern
810 tSCC zAix_Stdint_3List[] =
811 "stdint-aix.h\0stdint.h\0";
813 * Machine/OS name selection pattern
815 tSCC* apzAix_Stdint_3Machs[] = {
820 * content selection pattern - do fix if pattern found
822 tSCC zAix_Stdint_3Select0[] =
823 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
824 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
826 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
827 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
829 #define AIX_STDINT_3_TEST_CT 1
830 static tTestDesc aAix_Stdint_3Tests[] = {
831 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
834 * Fix Command Arguments for Aix_Stdint_3
836 static const char* apzAix_Stdint_3Patch[] = {
838 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
839 #define PTRDIFF_MAX\t9223372036854775807L\n\
841 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
842 #define PTRDIFF_MAX\t2147483647L",
845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
847 * Description of Aix_Stdint_4 fix
849 tSCC zAix_Stdint_4Name[] =
853 * File name selection pattern
855 tSCC zAix_Stdint_4List[] =
856 "stdint-aix.h\0stdint.h\0";
858 * Machine/OS name selection pattern
860 tSCC* apzAix_Stdint_4Machs[] = {
865 * content selection pattern - do fix if pattern found
867 tSCC zAix_Stdint_4Select0[] =
868 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
870 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
872 #define AIX_STDINT_4_TEST_CT 1
873 static tTestDesc aAix_Stdint_4Tests[] = {
874 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
877 * Fix Command Arguments for Aix_Stdint_4
879 static const char* apzAix_Stdint_4Patch[] = {
881 "#define SIZE_MAX\t18446744073709551615UL\n\
883 #define SIZE_MAX\t4294967295UL",
886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
888 * Description of Aix_Stdint_5 fix
890 tSCC zAix_Stdint_5Name[] =
894 * File name selection pattern
896 tSCC zAix_Stdint_5List[] =
897 "stdint-aix.h\0stdint.h\0";
899 * Machine/OS name selection pattern
901 tSCC* apzAix_Stdint_5Machs[] = {
906 * content selection pattern - do fix if pattern found
908 tSCC zAix_Stdint_5Select0[] =
909 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
910 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
912 #define AIX_STDINT_5_TEST_CT 1
913 static tTestDesc aAix_Stdint_5Tests[] = {
914 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
917 * Fix Command Arguments for Aix_Stdint_5
919 static const char* apzAix_Stdint_5Patch[] = {
921 "#define UINT8_C(c)\tc\n\
922 #define UINT16_C(c)\tc",
925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
927 * Description of Aix_Sysmachine fix
929 tSCC zAix_SysmachineName[] =
933 * File name selection pattern
935 tSCC zAix_SysmachineList[] =
938 * Machine/OS name selection pattern
940 #define apzAix_SysmachineMachs (const char**)NULL
943 * content selection pattern - do fix if pattern found
945 tSCC zAix_SysmachineSelect0[] =
948 #define AIX_SYSMACHINE_TEST_CT 1
949 static tTestDesc aAix_SysmachineTests[] = {
950 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
953 * Fix Command Arguments for Aix_Sysmachine
955 static const char* apzAix_SysmachinePatch[] = {
960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
962 * Description of Aix_Syswait_2 fix
964 tSCC zAix_Syswait_2Name[] =
968 * File name selection pattern
970 tSCC zAix_Syswait_2List[] =
973 * Machine/OS name selection pattern
975 #define apzAix_Syswait_2Machs (const char**)NULL
978 * content selection pattern - do fix if pattern found
980 tSCC zAix_Syswait_2Select0[] =
981 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
983 #define AIX_SYSWAIT_2_TEST_CT 1
984 static tTestDesc aAix_Syswait_2Tests[] = {
985 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
988 * Fix Command Arguments for Aix_Syswait_2
990 static const char* apzAix_Syswait_2Patch[] = {
995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
997 * Description of Aix_Volatile fix
999 tSCC zAix_VolatileName[] =
1003 * File name selection pattern
1005 tSCC zAix_VolatileList[] =
1008 * Machine/OS name selection pattern
1010 #define apzAix_VolatileMachs (const char**)NULL
1013 * content selection pattern - do fix if pattern found
1015 tSCC zAix_VolatileSelect0[] =
1016 "typedef volatile int sig_atomic_t";
1018 #define AIX_VOLATILE_TEST_CT 1
1019 static tTestDesc aAix_VolatileTests[] = {
1020 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
1023 * Fix Command Arguments for Aix_Volatile
1025 static const char* apzAix_VolatilePatch[] = {
1027 "typedef int sig_atomic_t",
1030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1032 * Description of Alpha___Assert fix
1034 tSCC zAlpha___AssertName[] =
1038 * File name selection pattern
1040 tSCC zAlpha___AssertList[] =
1043 * Machine/OS name selection pattern
1045 #define apzAlpha___AssertMachs (const char**)NULL
1048 * content selection pattern - do fix if pattern found
1050 tSCC zAlpha___AssertSelect0[] =
1051 "__assert\\(char \\*, char \\*, int\\)";
1053 #define ALPHA___ASSERT_TEST_CT 1
1054 static tTestDesc aAlpha___AssertTests[] = {
1055 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
1058 * Fix Command Arguments for Alpha___Assert
1060 static const char* apzAlpha___AssertPatch[] = {
1062 "__assert(const char *, const char *, int)",
1065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1067 * Description of Alpha_Assert fix
1069 tSCC zAlpha_AssertName[] =
1073 * File name selection pattern
1075 tSCC zAlpha_AssertList[] =
1078 * Machine/OS name selection pattern
1080 #define apzAlpha_AssertMachs (const char**)NULL
1083 * content selection pattern - do fix if pattern found
1085 tSCC zAlpha_AssertSelect0[] =
1086 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1088 #define ALPHA_ASSERT_TEST_CT 1
1089 static tTestDesc aAlpha_AssertTests[] = {
1090 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1093 * Fix Command Arguments for Alpha_Assert
1095 static const char* apzAlpha_AssertPatch[] = {
1100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1102 * Description of Alpha_Getopt fix
1104 tSCC zAlpha_GetoptName[] =
1108 * File name selection pattern
1110 tSCC zAlpha_GetoptList[] =
1111 "stdio.h\0stdlib.h\0";
1113 * Machine/OS name selection pattern
1115 #define apzAlpha_GetoptMachs (const char**)NULL
1118 * content selection pattern - do fix if pattern found
1120 tSCC zAlpha_GetoptSelect0[] =
1121 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1123 #define ALPHA_GETOPT_TEST_CT 1
1124 static tTestDesc aAlpha_GetoptTests[] = {
1125 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1128 * Fix Command Arguments for Alpha_Getopt
1130 static const char* apzAlpha_GetoptPatch[] = {
1132 "getopt(int, char *const[], const char *)",
1135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1137 * Description of Alpha_If_Semicolon fix
1139 tSCC zAlpha_If_SemicolonName[] =
1140 "alpha_if_semicolon";
1143 * File name selection pattern
1145 tSCC zAlpha_If_SemicolonList[] =
1148 * Machine/OS name selection pattern
1150 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1153 * content selection pattern - do fix if pattern found
1155 tSCC zAlpha_If_SemicolonSelect0[] =
1156 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1158 #define ALPHA_IF_SEMICOLON_TEST_CT 1
1159 static tTestDesc aAlpha_If_SemicolonTests[] = {
1160 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1163 * Fix Command Arguments for Alpha_If_Semicolon
1165 static const char* apzAlpha_If_SemicolonPatch[] = {
1167 "struct sockaddr vmif_paddr;\t/*",
1170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1172 * Description of Alpha_Parens fix
1174 tSCC zAlpha_ParensName[] =
1178 * File name selection pattern
1180 tSCC zAlpha_ParensList[] =
1183 * Machine/OS name selection pattern
1185 #define apzAlpha_ParensMachs (const char**)NULL
1188 * content selection pattern - do fix if pattern found
1190 tSCC zAlpha_ParensSelect0[] =
1191 "#ifndef\\(__mips64\\)";
1193 #define ALPHA_PARENS_TEST_CT 1
1194 static tTestDesc aAlpha_ParensTests[] = {
1195 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1198 * Fix Command Arguments for Alpha_Parens
1200 static const char* apzAlpha_ParensPatch[] = {
1205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1207 * Description of Alpha_Sbrk fix
1209 tSCC zAlpha_SbrkName[] =
1213 * File name selection pattern
1215 tSCC zAlpha_SbrkList[] =
1218 * Machine/OS name selection pattern
1220 #define apzAlpha_SbrkMachs (const char**)NULL
1223 * content selection pattern - do fix if pattern found
1225 tSCC zAlpha_SbrkSelect0[] =
1226 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1228 #define ALPHA_SBRK_TEST_CT 1
1229 static tTestDesc aAlpha_SbrkTests[] = {
1230 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1233 * Fix Command Arguments for Alpha_Sbrk
1235 static const char* apzAlpha_SbrkPatch[] = {
1240 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1242 * Description of Avoid_Bool_Define fix
1244 tSCC zAvoid_Bool_DefineName[] =
1245 "avoid_bool_define";
1248 * File name selection pattern
1250 tSCC zAvoid_Bool_DefineList[] =
1251 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1253 * Machine/OS name selection pattern
1255 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1258 * content selection pattern - do fix if pattern found
1260 tSCC zAvoid_Bool_DefineSelect0[] =
1261 "#[ \t]*define[ \t]+bool[ \t]";
1264 * content bypass pattern - skip fix if pattern found
1266 tSCC zAvoid_Bool_DefineBypass0[] =
1269 #define AVOID_BOOL_DEFINE_TEST_CT 2
1270 static tTestDesc aAvoid_Bool_DefineTests[] = {
1271 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1272 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1275 * Fix Command Arguments for Avoid_Bool_Define
1277 static const char* apzAvoid_Bool_DefinePatch[] = {
1279 "#ifndef __cplusplus\n\
1282 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1287 * Description of Avoid_Bool_Type fix
1289 tSCC zAvoid_Bool_TypeName[] =
1293 * File name selection pattern
1295 tSCC zAvoid_Bool_TypeList[] =
1296 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1298 * Machine/OS name selection pattern
1300 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1303 * content selection pattern - do fix if pattern found
1305 tSCC zAvoid_Bool_TypeSelect0[] =
1306 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1309 * content bypass pattern - skip fix if pattern found
1311 tSCC zAvoid_Bool_TypeBypass0[] =
1314 #define AVOID_BOOL_TYPE_TEST_CT 2
1315 static tTestDesc aAvoid_Bool_TypeTests[] = {
1316 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1317 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1320 * Fix Command Arguments for Avoid_Bool_Type
1322 static const char* apzAvoid_Bool_TypePatch[] = {
1324 "#ifndef __cplusplus\n\
1329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1331 * Description of Avoid_Wchar_T_Type fix
1333 tSCC zAvoid_Wchar_T_TypeName[] =
1334 "avoid_wchar_t_type";
1337 * File name selection pattern
1339 #define zAvoid_Wchar_T_TypeList (char*)NULL
1341 * Machine/OS name selection pattern
1343 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1346 * content selection pattern - do fix if pattern found
1348 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1349 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1352 * content bypass pattern - skip fix if pattern found
1354 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1356 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1358 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1359 "XFree86: xc/lib/X11/Xlib\\.h";
1361 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1362 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1363 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1364 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1365 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1366 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1369 * Fix Command Arguments for Avoid_Wchar_T_Type
1371 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1373 "#ifndef __cplusplus\n\
1378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1380 * Description of Bad_Struct_Term fix
1382 tSCC zBad_Struct_TermName[] =
1386 * File name selection pattern
1388 tSCC zBad_Struct_TermList[] =
1391 * Machine/OS name selection pattern
1393 #define apzBad_Struct_TermMachs (const char**)NULL
1396 * content selection pattern - do fix if pattern found
1398 tSCC zBad_Struct_TermSelect0[] =
1399 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1401 #define BAD_STRUCT_TERM_TEST_CT 1
1402 static tTestDesc aBad_Struct_TermTests[] = {
1403 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1406 * Fix Command Arguments for Bad_Struct_Term
1408 static const char* apzBad_Struct_TermPatch[] = {
1413 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1415 * Description of Badquote fix
1417 tSCC zBadquoteName[] =
1421 * File name selection pattern
1423 tSCC zBadquoteList[] =
1424 "sundev/vuid_event.h\0";
1426 * Machine/OS name selection pattern
1428 #define apzBadquoteMachs (const char**)NULL
1431 * content selection pattern - do fix if pattern found
1433 tSCC zBadquoteSelect0[] =
1436 #define BADQUOTE_TEST_CT 1
1437 static tTestDesc aBadquoteTests[] = {
1438 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1441 * Fix Command Arguments for Badquote
1443 static const char* apzBadquotePatch[] = {
1448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1450 * Description of Broken_Assert_Stdio fix
1452 tSCC zBroken_Assert_StdioName[] =
1453 "broken_assert_stdio";
1456 * File name selection pattern
1458 tSCC zBroken_Assert_StdioList[] =
1461 * Machine/OS name selection pattern
1463 #define apzBroken_Assert_StdioMachs (const char**)NULL
1466 * content selection pattern - do fix if pattern found
1468 tSCC zBroken_Assert_StdioSelect0[] =
1472 * content bypass pattern - skip fix if pattern found
1474 tSCC zBroken_Assert_StdioBypass0[] =
1475 "include.*stdio\\.h";
1477 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1478 static tTestDesc aBroken_Assert_StdioTests[] = {
1479 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1480 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1483 * Fix Command Arguments for Broken_Assert_Stdio
1485 static const char* apzBroken_Assert_StdioPatch[] = {
1487 "#include <stdio.h>\n",
1490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1492 * Description of Broken_Assert_Stdlib fix
1494 tSCC zBroken_Assert_StdlibName[] =
1495 "broken_assert_stdlib";
1498 * File name selection pattern
1500 tSCC zBroken_Assert_StdlibList[] =
1503 * Machine/OS name selection pattern
1505 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1508 * content selection pattern - do fix if pattern found
1510 tSCC zBroken_Assert_StdlibSelect0[] =
1511 "exit *\\(|abort *\\(";
1514 * content bypass pattern - skip fix if pattern found
1516 tSCC zBroken_Assert_StdlibBypass0[] =
1517 "include.*stdlib\\.h";
1519 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1520 static tTestDesc aBroken_Assert_StdlibTests[] = {
1521 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1522 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1525 * Fix Command Arguments for Broken_Assert_Stdlib
1527 static const char* apzBroken_Assert_StdlibPatch[] = {
1529 "#ifdef __cplusplus\n\
1530 #include <stdlib.h>\n\
1534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1536 * Description of Broken_Cabs fix
1538 tSCC zBroken_CabsName[] =
1542 * File name selection pattern
1544 tSCC zBroken_CabsList[] =
1545 "math.h\0architecture/*/math.h\0";
1547 * Machine/OS name selection pattern
1549 #define apzBroken_CabsMachs (const char**)NULL
1552 * content selection pattern - do fix if pattern found
1554 tSCC zBroken_CabsSelect0[] =
1555 "^extern[ \t]+double[ \t]+cabs";
1557 #define BROKEN_CABS_TEST_CT 1
1558 static tTestDesc aBroken_CabsTests[] = {
1559 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1562 * Fix Command Arguments for Broken_Cabs
1564 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1565 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1566 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1569 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1571 * Description of Broken_Nan fix
1573 tSCC zBroken_NanName[] =
1577 * File name selection pattern
1579 tSCC zBroken_NanList[] =
1580 "architecture/ppc/math.h\0architecture/*/math.h\0";
1582 * Machine/OS name selection pattern
1584 #define apzBroken_NanMachs (const char**)NULL
1587 * content selection pattern - do fix if pattern found
1589 tSCC zBroken_NanSelect0[] =
1590 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1593 * content bypass pattern - skip fix if pattern found
1595 tSCC zBroken_NanBypass0[] =
1598 #define BROKEN_NAN_TEST_CT 2
1599 static tTestDesc aBroken_NanTests[] = {
1600 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1601 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1604 * Fix Command Arguments for Broken_Nan
1606 static const char* apzBroken_NanPatch[] = {
1611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1613 * Description of Bsd_Stdio_Attrs_Conflict fix
1615 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1616 "bsd_stdio_attrs_conflict";
1619 * File name selection pattern
1621 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1624 * Machine/OS name selection pattern
1626 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1629 (const char*)NULL };
1632 * content selection pattern - do fix if pattern found
1634 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1635 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1637 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1638 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1639 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1642 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1644 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1646 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1647 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1648 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1653 * Description of Cdef_Cplusplus fix
1655 tSCC zCdef_CplusplusName[] =
1659 * File name selection pattern
1661 tSCC zCdef_CplusplusList[] =
1664 * Machine/OS name selection pattern
1666 #define apzCdef_CplusplusMachs (const char**)NULL
1669 * content selection pattern - do fix if pattern found
1671 tSCC zCdef_CplusplusSelect0[] =
1672 "\\[\\[noreturn\\]\\]";
1674 #define CDEF_CPLUSPLUS_TEST_CT 1
1675 static tTestDesc aCdef_CplusplusTests[] = {
1676 { TT_EGREP, zCdef_CplusplusSelect0, (regex_t*)NULL }, };
1679 * Fix Command Arguments for Cdef_Cplusplus
1681 static const char* apzCdef_CplusplusPatch[] = {
1683 "__attribute__((__noreturn__))",
1686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1688 * Description of Ctrl_Quotes_Def fix
1690 tSCC zCtrl_Quotes_DefName[] =
1694 * File name selection pattern
1696 #define zCtrl_Quotes_DefList (char*)NULL
1698 * Machine/OS name selection pattern
1700 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1703 * content selection pattern - do fix if pattern found
1705 tSCC zCtrl_Quotes_DefSelect0[] =
1706 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1708 #define CTRL_QUOTES_DEF_TEST_CT 1
1709 static tTestDesc aCtrl_Quotes_DefTests[] = {
1710 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1713 * Fix Command Arguments for Ctrl_Quotes_Def
1715 static const char* apzCtrl_Quotes_DefPatch[] = {
1720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1722 * Description of Ctrl_Quotes_Use fix
1724 tSCC zCtrl_Quotes_UseName[] =
1728 * File name selection pattern
1730 #define zCtrl_Quotes_UseList (char*)NULL
1732 * Machine/OS name selection pattern
1734 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1737 * content selection pattern - do fix if pattern found
1739 tSCC zCtrl_Quotes_UseSelect0[] =
1740 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1742 #define CTRL_QUOTES_USE_TEST_CT 1
1743 static tTestDesc aCtrl_Quotes_UseTests[] = {
1744 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1747 * Fix Command Arguments for Ctrl_Quotes_Use
1749 static const char* apzCtrl_Quotes_UsePatch[] = {
1754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1756 * Description of Cxx_Unready fix
1758 tSCC zCxx_UnreadyName[] =
1762 * File name selection pattern
1764 tSCC zCxx_UnreadyList[] =
1765 "sys/mman.h\0rpc/types.h\0";
1767 * Machine/OS name selection pattern
1769 #define apzCxx_UnreadyMachs (const char**)NULL
1772 * content selection pattern - do fix if pattern found
1774 tSCC zCxx_UnreadySelect0[] =
1778 * content bypass pattern - skip fix if pattern found
1780 tSCC zCxx_UnreadyBypass0[] =
1781 "\"C\"|__BEGIN_DECLS";
1783 #define CXX_UNREADY_TEST_CT 2
1784 static tTestDesc aCxx_UnreadyTests[] = {
1785 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1786 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1789 * Fix Command Arguments for Cxx_Unready
1791 static const char* apzCxx_UnreadyPatch[] = {
1793 "#ifdef __cplusplus\n\
1796 "#ifdef __cplusplus\n\
1801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1803 * Description of Darwin_Externc fix
1805 tSCC zDarwin_ExterncName[] =
1809 * File name selection pattern
1811 tSCC zDarwin_ExterncList[] =
1812 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1814 * Machine/OS name selection pattern
1816 tSCC* apzDarwin_ExterncMachs[] = {
1818 (const char*)NULL };
1821 * content bypass pattern - skip fix if pattern found
1823 tSCC zDarwin_ExterncBypass0[] =
1825 tSCC zDarwin_ExterncBypass1[] =
1828 #define DARWIN_EXTERNC_TEST_CT 2
1829 static tTestDesc aDarwin_ExterncTests[] = {
1830 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1831 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1834 * Fix Command Arguments for Darwin_Externc
1836 static const char* apzDarwin_ExterncPatch[] = {
1838 "#ifdef __cplusplus\n\
1841 "#ifdef __cplusplus\n\
1846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1848 * Description of Darwin_Gcc4_Breakage fix
1850 tSCC zDarwin_Gcc4_BreakageName[] =
1851 "darwin_gcc4_breakage";
1854 * File name selection pattern
1856 tSCC zDarwin_Gcc4_BreakageList[] =
1857 "AvailabilityMacros.h\0";
1859 * Machine/OS name selection pattern
1861 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1863 (const char*)NULL };
1866 * content selection pattern - do fix if pattern found
1868 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1869 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1871 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1872 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1873 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1876 * Fix Command Arguments for Darwin_Gcc4_Breakage
1878 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1880 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1885 * Description of Darwin_Private_Extern fix
1887 tSCC zDarwin_Private_ExternName[] =
1888 "darwin_private_extern";
1891 * File name selection pattern
1893 tSCC zDarwin_Private_ExternList[] =
1896 * Machine/OS name selection pattern
1898 tSCC* apzDarwin_Private_ExternMachs[] = {
1900 (const char*)NULL };
1903 * content selection pattern - do fix if pattern found
1905 tSCC zDarwin_Private_ExternSelect0[] =
1906 "__private_extern__ [a-z_]+ _dyld_";
1908 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1909 static tTestDesc aDarwin_Private_ExternTests[] = {
1910 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1913 * Fix Command Arguments for Darwin_Private_Extern
1915 static const char* apzDarwin_Private_ExternPatch[] = {
1918 "__private_extern__",
1921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1923 * Description of Darwin_Stdint_1 fix
1925 tSCC zDarwin_Stdint_1Name[] =
1929 * File name selection pattern
1931 tSCC zDarwin_Stdint_1List[] =
1932 "stdint-darwin.h\0stdint.h\0";
1934 * Machine/OS name selection pattern
1936 tSCC* apzDarwin_Stdint_1Machs[] = {
1938 (const char*)NULL };
1941 * content selection pattern - do fix if pattern found
1943 tSCC zDarwin_Stdint_1Select0[] =
1944 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
1945 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
1947 #define DARWIN_STDINT_1_TEST_CT 1
1948 static tTestDesc aDarwin_Stdint_1Tests[] = {
1949 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
1952 * Fix Command Arguments for Darwin_Stdint_1
1954 static const char* apzDarwin_Stdint_1Patch[] = {
1956 "#define UINT8_C(v)\tv\n\
1957 #define UINT16_C(v)\tv",
1960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1962 * Description of Darwin_Stdint_2 fix
1964 tSCC zDarwin_Stdint_2Name[] =
1968 * File name selection pattern
1970 tSCC zDarwin_Stdint_2List[] =
1971 "stdint-darwin.h\0stdint.h\0";
1973 * Machine/OS name selection pattern
1975 tSCC* apzDarwin_Stdint_2Machs[] = {
1977 (const char*)NULL };
1980 * content selection pattern - do fix if pattern found
1982 tSCC zDarwin_Stdint_2Select0[] =
1983 "#if __WORDSIZE == 64\n\
1984 #define INTPTR_MIN[ \t]+INT64_MIN\n\
1985 #define INTPTR_MAX[ \t]+INT64_MAX\n\
1987 #define INTPTR_MIN[ \t]+INT32_MIN\n\
1988 #define INTPTR_MAX[ \t]+INT32_MAX\n\
1991 #define DARWIN_STDINT_2_TEST_CT 1
1992 static tTestDesc aDarwin_Stdint_2Tests[] = {
1993 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
1996 * Fix Command Arguments for Darwin_Stdint_2
1998 static const char* apzDarwin_Stdint_2Patch[] = {
2000 "#if __WORDSIZE == 64\n\
2001 #define INTPTR_MAX 9223372036854775807L\n\
2002 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2004 #define INTPTR_MAX 2147483647L\n\
2005 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2011 * Description of Darwin_Stdint_3 fix
2013 tSCC zDarwin_Stdint_3Name[] =
2017 * File name selection pattern
2019 tSCC zDarwin_Stdint_3List[] =
2020 "stdint-darwin.h\0stdint.h\0";
2022 * Machine/OS name selection pattern
2024 tSCC* apzDarwin_Stdint_3Machs[] = {
2026 (const char*)NULL };
2029 * content selection pattern - do fix if pattern found
2031 tSCC zDarwin_Stdint_3Select0[] =
2032 "#if __WORDSIZE == 64\n\
2033 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2035 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2038 #define DARWIN_STDINT_3_TEST_CT 1
2039 static tTestDesc aDarwin_Stdint_3Tests[] = {
2040 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2043 * Fix Command Arguments for Darwin_Stdint_3
2045 static const char* apzDarwin_Stdint_3Patch[] = {
2047 "#if __WORDSIZE == 64\n\
2048 #define UINTPTR_MAX 18446744073709551615UL\n\
2050 #define UINTPTR_MAX 4294967295UL\n\
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2056 * Description of Darwin_Stdint_4 fix
2058 tSCC zDarwin_Stdint_4Name[] =
2062 * File name selection pattern
2064 tSCC zDarwin_Stdint_4List[] =
2065 "stdint-darwin.h\0stdint.h\0";
2067 * Machine/OS name selection pattern
2069 tSCC* apzDarwin_Stdint_4Machs[] = {
2071 (const char*)NULL };
2074 * content selection pattern - do fix if pattern found
2076 tSCC zDarwin_Stdint_4Select0[] =
2077 "#if __WORDSIZE == 64\n\
2078 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2080 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2083 #define DARWIN_STDINT_4_TEST_CT 1
2084 static tTestDesc aDarwin_Stdint_4Tests[] = {
2085 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2088 * Fix Command Arguments for Darwin_Stdint_4
2090 static const char* apzDarwin_Stdint_4Patch[] = {
2092 "#if __WORDSIZE == 64\n\
2093 #define SIZE_MAX 18446744073709551615UL\n\
2095 #define SIZE_MAX 4294967295UL\n\
2099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2101 * Description of Darwin_Stdint_5 fix
2103 tSCC zDarwin_Stdint_5Name[] =
2107 * File name selection pattern
2109 tSCC zDarwin_Stdint_5List[] =
2110 "stdint-darwin.h\0stdint.h\0";
2112 * Machine/OS name selection pattern
2114 tSCC* apzDarwin_Stdint_5Machs[] = {
2116 (const char*)NULL };
2119 * content selection pattern - do fix if pattern found
2121 tSCC zDarwin_Stdint_5Select0[] =
2122 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2123 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2124 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2126 #define DARWIN_STDINT_5_TEST_CT 1
2127 static tTestDesc aDarwin_Stdint_5Tests[] = {
2128 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2131 * Fix Command Arguments for Darwin_Stdint_5
2133 static const char* apzDarwin_Stdint_5Patch[] = {
2135 "#if __WORDSIZE == 64\n\
2136 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2137 #define INTMAX_MAX 9223372036854775807L\n\
2138 #define UINTMAX_MAX 18446744073709551615UL\n\
2140 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2141 #define INTMAX_MAX 9223372036854775807LL\n\
2142 #define UINTMAX_MAX 18446744073709551615ULL\n\
2146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2148 * Description of Darwin_Stdint_6 fix
2150 tSCC zDarwin_Stdint_6Name[] =
2154 * File name selection pattern
2156 tSCC zDarwin_Stdint_6List[] =
2157 "stdint-darwin.h\0stdint.h\0";
2159 * Machine/OS name selection pattern
2161 tSCC* apzDarwin_Stdint_6Machs[] = {
2163 (const char*)NULL };
2166 * content selection pattern - do fix if pattern found
2168 tSCC zDarwin_Stdint_6Select0[] =
2169 "#if __WORDSIZE == 64\n\
2170 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2171 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2173 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2174 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2177 #define DARWIN_STDINT_6_TEST_CT 1
2178 static tTestDesc aDarwin_Stdint_6Tests[] = {
2179 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2182 * Fix Command Arguments for Darwin_Stdint_6
2184 static const char* apzDarwin_Stdint_6Patch[] = {
2186 "#if __WORDSIZE == 64\n\
2187 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2188 #define PTRDIFF_MAX 9223372036854775807L\n\
2190 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2191 #define PTRDIFF_MAX 2147483647\n\
2195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2197 * Description of Darwin_Stdint_7 fix
2199 tSCC zDarwin_Stdint_7Name[] =
2203 * File name selection pattern
2205 tSCC zDarwin_Stdint_7List[] =
2206 "stdint-darwin.h\0stdint.h\0";
2208 * Machine/OS name selection pattern
2210 tSCC* apzDarwin_Stdint_7Machs[] = {
2212 (const char*)NULL };
2215 * content selection pattern - do fix if pattern found
2217 tSCC zDarwin_Stdint_7Select0[] =
2218 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2219 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2221 #define DARWIN_STDINT_7_TEST_CT 1
2222 static tTestDesc aDarwin_Stdint_7Tests[] = {
2223 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2226 * Fix Command Arguments for Darwin_Stdint_7
2228 static const char* apzDarwin_Stdint_7Patch[] = {
2230 "#if __WORDSIZE == 64\n\
2231 #define INTMAX_C(v) (v ## L)\n\
2232 #define UINTMAX_C(v) (v ## UL)\n\
2234 #define INTMAX_C(v) (v ## LL)\n\
2235 #define UINTMAX_C(v) (v ## ULL)\n\
2239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2241 * Description of Dec_Intern_Asm fix
2243 tSCC zDec_Intern_AsmName[] =
2247 * File name selection pattern
2249 tSCC zDec_Intern_AsmList[] =
2252 * Machine/OS name selection pattern
2254 #define apzDec_Intern_AsmMachs (const char**)NULL
2255 #define DEC_INTERN_ASM_TEST_CT 0
2256 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2259 * Fix Command Arguments for Dec_Intern_Asm
2261 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2262 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2264 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2270 * Description of Djgpp_Wchar_H fix
2272 tSCC zDjgpp_Wchar_HName[] =
2276 * File name selection pattern
2278 #define zDjgpp_Wchar_HList (char*)NULL
2280 * Machine/OS name selection pattern
2282 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2285 * content selection pattern - do fix if pattern found
2287 tSCC zDjgpp_Wchar_HSelect0[] =
2291 * content bypass pattern - skip fix if pattern found
2293 tSCC zDjgpp_Wchar_HBypass0[] =
2296 #define DJGPP_WCHAR_H_TEST_CT 2
2297 static tTestDesc aDjgpp_Wchar_HTests[] = {
2298 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2299 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2302 * Fix Command Arguments for Djgpp_Wchar_H
2304 static const char* apzDjgpp_Wchar_HPatch[] = {
2307 #include <sys/djtypes.h>",
2308 "#include <stddef.h>",
2311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2313 * Description of Ecd_Cursor fix
2315 tSCC zEcd_CursorName[] =
2319 * File name selection pattern
2321 tSCC zEcd_CursorList[] =
2322 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2324 * Machine/OS name selection pattern
2326 #define apzEcd_CursorMachs (const char**)NULL
2329 * content selection pattern - do fix if pattern found
2331 tSCC zEcd_CursorSelect0[] =
2334 #define ECD_CURSOR_TEST_CT 1
2335 static tTestDesc aEcd_CursorTests[] = {
2336 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2339 * Fix Command Arguments for Ecd_Cursor
2341 static const char* apzEcd_CursorPatch[] = {
2346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2348 * Description of Freebsd_Gcc3_Breakage fix
2350 tSCC zFreebsd_Gcc3_BreakageName[] =
2351 "freebsd_gcc3_breakage";
2354 * File name selection pattern
2356 tSCC zFreebsd_Gcc3_BreakageList[] =
2359 * Machine/OS name selection pattern
2361 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2363 (const char*)NULL };
2366 * content selection pattern - do fix if pattern found
2368 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2369 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2372 * content bypass pattern - skip fix if pattern found
2374 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2375 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2377 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2378 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2379 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2380 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2383 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2385 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2387 "%0 || __GNUC__ >= 3",
2390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2392 * Description of Freebsd_Gcc4_Breakage fix
2394 tSCC zFreebsd_Gcc4_BreakageName[] =
2395 "freebsd_gcc4_breakage";
2398 * File name selection pattern
2400 tSCC zFreebsd_Gcc4_BreakageList[] =
2403 * Machine/OS name selection pattern
2405 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2407 (const char*)NULL };
2410 * content selection pattern - do fix if pattern found
2412 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2413 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2415 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2416 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2417 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2420 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2422 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2424 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2429 * Description of Glibc_C99_Inline_1 fix
2431 tSCC zGlibc_C99_Inline_1Name[] =
2432 "glibc_c99_inline_1";
2435 * File name selection pattern
2437 tSCC zGlibc_C99_Inline_1List[] =
2438 "features.h\0*/features.h\0";
2440 * Machine/OS name selection pattern
2442 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2445 * content selection pattern - do fix if pattern found
2447 tSCC zGlibc_C99_Inline_1Select0[] =
2448 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2450 #define GLIBC_C99_INLINE_1_TEST_CT 1
2451 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2452 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2455 * Fix Command Arguments for Glibc_C99_Inline_1
2457 static const char* apzGlibc_C99_Inline_1Patch[] = {
2459 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2464 * Description of Glibc_C99_Inline_1a fix
2466 tSCC zGlibc_C99_Inline_1aName[] =
2467 "glibc_c99_inline_1a";
2470 * File name selection pattern
2472 tSCC zGlibc_C99_Inline_1aList[] =
2473 "features.h\0*/features.h\0";
2475 * Machine/OS name selection pattern
2477 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2480 * content selection pattern - do fix if pattern found
2482 tSCC zGlibc_C99_Inline_1aSelect0[] =
2483 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2484 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2486 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2487 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2488 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2491 * Fix Command Arguments for Glibc_C99_Inline_1a
2493 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2495 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2501 * Description of Glibc_C99_Inline_2 fix
2503 tSCC zGlibc_C99_Inline_2Name[] =
2504 "glibc_c99_inline_2";
2507 * File name selection pattern
2509 tSCC zGlibc_C99_Inline_2List[] =
2510 "sys/stat.h\0*/sys/stat.h\0";
2512 * Machine/OS name selection pattern
2514 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2517 * content selection pattern - do fix if pattern found
2519 tSCC zGlibc_C99_Inline_2Select0[] =
2520 "extern __inline__ int";
2522 #define GLIBC_C99_INLINE_2_TEST_CT 1
2523 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2524 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2527 * Fix Command Arguments for Glibc_C99_Inline_2
2529 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2530 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2533 __inline__ int \\1/",
2534 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2537 __inline__ int \\1/",
2538 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2541 __inline__ int \\1/",
2542 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2545 __inline__ int __REDIRECT\\1 (\\2/",
2546 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2549 __inline__ int __REDIRECT\\1 (\\2/",
2550 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2558 * Description of Glibc_C99_Inline_3 fix
2560 tSCC zGlibc_C99_Inline_3Name[] =
2561 "glibc_c99_inline_3";
2564 * File name selection pattern
2566 tSCC zGlibc_C99_Inline_3List[] =
2567 "bits/string2.h\0*/bits/string2.h\0";
2569 * Machine/OS name selection pattern
2571 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2574 * content selection pattern - do fix if pattern found
2576 tSCC zGlibc_C99_Inline_3Select0[] =
2580 * content bypass pattern - skip fix if pattern found
2582 tSCC zGlibc_C99_Inline_3Bypass0[] =
2583 "__extern_inline|__GNU_STDC_INLINE__";
2585 #define GLIBC_C99_INLINE_3_TEST_CT 2
2586 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2587 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2588 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2591 * Fix Command Arguments for Glibc_C99_Inline_3
2593 static const char* apzGlibc_C99_Inline_3Patch[] = {
2595 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2596 "^# ifdef __cplusplus$",
2599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2601 * Description of Glibc_C99_Inline_4 fix
2603 tSCC zGlibc_C99_Inline_4Name[] =
2604 "glibc_c99_inline_4";
2607 * File name selection pattern
2609 tSCC zGlibc_C99_Inline_4List[] =
2610 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2612 * Machine/OS name selection pattern
2614 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2617 * content selection pattern - do fix if pattern found
2619 tSCC zGlibc_C99_Inline_4Select0[] =
2620 "(^| )extern __inline";
2623 * content bypass pattern - skip fix if pattern found
2625 tSCC zGlibc_C99_Inline_4Bypass0[] =
2626 "__extern_inline|__gnu_inline__";
2628 #define GLIBC_C99_INLINE_4_TEST_CT 2
2629 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2630 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2631 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2634 * Fix Command Arguments for Glibc_C99_Inline_4
2636 static const char* apzGlibc_C99_Inline_4Patch[] = {
2638 "%0 __attribute__ ((__gnu_inline__))",
2641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2643 * Description of Glibc_Mutex_Init fix
2645 tSCC zGlibc_Mutex_InitName[] =
2649 * File name selection pattern
2651 tSCC zGlibc_Mutex_InitList[] =
2654 * Machine/OS name selection pattern
2656 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2659 * content selection pattern - do fix if pattern found
2661 tSCC zGlibc_Mutex_InitSelect0[] =
2662 "\\{ *\\{ *0, *\\} *\\}";
2664 #define GLIBC_MUTEX_INIT_TEST_CT 1
2665 static tTestDesc aGlibc_Mutex_InitTests[] = {
2666 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2669 * Fix Command Arguments for Glibc_Mutex_Init
2671 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2672 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2674 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2676 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2677 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2678 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2679 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2680 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2681 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2682 "-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\
2684 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2687 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2689 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2690 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2693 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2695 * Description of Glibc_Stdint fix
2697 tSCC zGlibc_StdintName[] =
2701 * File name selection pattern
2703 tSCC zGlibc_StdintList[] =
2706 * Machine/OS name selection pattern
2708 #define apzGlibc_StdintMachs (const char**)NULL
2711 * content selection pattern - do fix if pattern found
2713 tSCC zGlibc_StdintSelect0[] =
2716 #define GLIBC_STDINT_TEST_CT 1
2717 static tTestDesc aGlibc_StdintTests[] = {
2718 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2721 * Fix Command Arguments for Glibc_Stdint
2723 static const char* apzGlibc_StdintPatch[] = {
2725 "# define UINT8_C(c)\tc\n\
2726 # define UINT16_C(c)\tc",
2727 "# define UINT8_C\\(c\\)\tc ## U\n\
2728 # define UINT16_C\\(c\\)\tc ## U",
2731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2733 * Description of Glibc_Strncpy fix
2735 tSCC zGlibc_StrncpyName[] =
2739 * File name selection pattern
2741 tSCC zGlibc_StrncpyList[] =
2744 * Machine/OS name selection pattern
2746 #define apzGlibc_StrncpyMachs (const char**)NULL
2749 * content bypass pattern - skip fix if pattern found
2751 tSCC zGlibc_StrncpyBypass0[] =
2752 "__builtin_strncpy";
2754 #define GLIBC_STRNCPY_TEST_CT 1
2755 static tTestDesc aGlibc_StrncpyTests[] = {
2756 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2759 * Fix Command Arguments for Glibc_Strncpy
2761 static const char* apzGlibc_StrncpyPatch[] = {
2763 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2764 "# define strncpy([^\n\
2770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2772 * Description of Glibc_Tgmath fix
2774 tSCC zGlibc_TgmathName[] =
2778 * File name selection pattern
2780 tSCC zGlibc_TgmathList[] =
2783 * Machine/OS name selection pattern
2785 #define apzGlibc_TgmathMachs (const char**)NULL
2788 * content selection pattern - do fix if pattern found
2790 tSCC zGlibc_TgmathSelect0[] =
2791 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2794 * content bypass pattern - skip fix if pattern found
2796 tSCC zGlibc_TgmathBypass0[] =
2797 "__floating_type\\(type\\) \\\\\n\
2798 .*__builtin_classify_type";
2800 #define GLIBC_TGMATH_TEST_CT 2
2801 static tTestDesc aGlibc_TgmathTests[] = {
2802 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2803 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2806 * Fix Command Arguments for Glibc_Tgmath
2808 static const char* apzGlibc_TgmathPatch[] = {
2810 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2815 * Description of Gnu_Types fix
2817 tSCC zGnu_TypesName[] =
2821 * File name selection pattern
2823 tSCC zGnu_TypesList[] =
2824 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2826 * Machine/OS name selection pattern
2828 tSCC* apzGnu_TypesMachs[] = {
2829 "*-*-solaris2.1[0-9]*",
2830 (const char*)NULL };
2833 * content selection pattern - do fix if pattern found
2835 tSCC zGnu_TypesSelect0[] =
2836 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2839 * content bypass pattern - skip fix if pattern found
2841 tSCC zGnu_TypesBypass0[] =
2842 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2844 #define GNU_TYPES_TEST_CT 2
2845 static tTestDesc aGnu_TypesTests[] = {
2846 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2847 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2850 * Fix Command Arguments for Gnu_Types
2852 static const char* apzGnu_TypesPatch[] = {
2856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2858 * Description of Hp_Inline fix
2860 tSCC zHp_InlineName[] =
2864 * File name selection pattern
2866 tSCC zHp_InlineList[] =
2867 "sys/spinlock.h\0machine/machparam.h\0";
2869 * Machine/OS name selection pattern
2871 #define apzHp_InlineMachs (const char**)NULL
2874 * content selection pattern - do fix if pattern found
2876 tSCC zHp_InlineSelect0[] =
2877 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2879 #define HP_INLINE_TEST_CT 1
2880 static tTestDesc aHp_InlineTests[] = {
2881 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2884 * Fix Command Arguments for Hp_Inline
2886 static const char* apzHp_InlinePatch[] = {
2889 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2892 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2894 * Description of Hp_Sysfile fix
2896 tSCC zHp_SysfileName[] =
2900 * File name selection pattern
2902 tSCC zHp_SysfileList[] =
2905 * Machine/OS name selection pattern
2907 #define apzHp_SysfileMachs (const char**)NULL
2910 * content selection pattern - do fix if pattern found
2912 tSCC zHp_SysfileSelect0[] =
2915 #define HP_SYSFILE_TEST_CT 1
2916 static tTestDesc aHp_SysfileTests[] = {
2917 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2920 * Fix Command Arguments for Hp_Sysfile
2922 static const char* apzHp_SysfilePatch[] = {
2924 "(struct file *, ...)",
2928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2930 * Description of Hppa_Hpux_Fp_Macros fix
2932 tSCC zHppa_Hpux_Fp_MacrosName[] =
2933 "hppa_hpux_fp_macros";
2936 * File name selection pattern
2938 tSCC zHppa_Hpux_Fp_MacrosList[] =
2941 * Machine/OS name selection pattern
2943 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2945 (const char*)NULL };
2948 * content selection pattern - do fix if pattern found
2950 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2951 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2952 #[ \t]*define[ \t]*FP_ZERO.*\n\
2953 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2954 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2955 #[ \t]*define[ \t]*FP_NAN.*\n";
2957 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2958 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2959 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2962 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2964 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2966 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2967 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2968 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2970 #ifdef _INCLUDE_HPUX_SOURCE\n",
2973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2975 * Description of Hpux10_Cpp_Pow_Inline fix
2977 tSCC zHpux10_Cpp_Pow_InlineName[] =
2978 "hpux10_cpp_pow_inline";
2981 * File name selection pattern
2983 tSCC zHpux10_Cpp_Pow_InlineList[] =
2984 "fixinc-test-limits.h\0math.h\0";
2986 * Machine/OS name selection pattern
2988 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2991 * content selection pattern - do fix if pattern found
2993 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2994 "^# +ifdef +__cplusplus\n\
2996 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2997 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2999 +extern +\"C\" +\\{\n\
3003 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
3004 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3005 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3008 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3010 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3017 * Description of Hpux11_Cpp_Pow_Inline fix
3019 tSCC zHpux11_Cpp_Pow_InlineName[] =
3020 "hpux11_cpp_pow_inline";
3023 * File name selection pattern
3025 tSCC zHpux11_Cpp_Pow_InlineList[] =
3028 * Machine/OS name selection pattern
3030 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3033 * content selection pattern - do fix if pattern found
3035 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3036 " +inline double pow\\(double d,int expon\\) \\{\n\
3037 +return pow\\(d, \\(double\\)expon\\);\n\
3040 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
3041 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3042 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3045 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3047 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3054 * Description of Hpux10_Ctype_Declarations1 fix
3056 tSCC zHpux10_Ctype_Declarations1Name[] =
3057 "hpux10_ctype_declarations1";
3060 * File name selection pattern
3062 tSCC zHpux10_Ctype_Declarations1List[] =
3065 * Machine/OS name selection pattern
3067 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3070 * content selection pattern - do fix if pattern found
3072 tSCC zHpux10_Ctype_Declarations1Select0[] =
3073 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3076 * content bypass pattern - skip fix if pattern found
3078 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3079 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3081 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
3082 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3083 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3084 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3087 * Fix Command Arguments for Hpux10_Ctype_Declarations1
3089 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3091 "#ifdef _PROTOTYPES\n\
3092 extern int __tolower(int);\n\
3093 extern int __toupper(int);\n\
3094 #else /* NOT _PROTOTYPES */\n\
3095 extern int __tolower();\n\
3096 extern int __toupper();\n\
3097 #endif /* _PROTOTYPES */\n\n\
3101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3103 * Description of Hpux10_Ctype_Declarations2 fix
3105 tSCC zHpux10_Ctype_Declarations2Name[] =
3106 "hpux10_ctype_declarations2";
3109 * File name selection pattern
3111 tSCC zHpux10_Ctype_Declarations2List[] =
3114 * Machine/OS name selection pattern
3116 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3119 * content selection pattern - do fix if pattern found
3121 tSCC zHpux10_Ctype_Declarations2Select0[] =
3122 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3125 * content bypass pattern - skip fix if pattern found
3127 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3128 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3130 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
3131 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3132 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3133 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3136 * Fix Command Arguments for Hpux10_Ctype_Declarations2
3138 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3141 #ifdef _PROTOTYPES\n\
3142 extern int _isalnum(int);\n\
3143 extern int _isalpha(int);\n\
3144 extern int _iscntrl(int);\n\
3145 extern int _isdigit(int);\n\
3146 extern int _isgraph(int);\n\
3147 extern int _islower(int);\n\
3148 extern int _isprint(int);\n\
3149 extern int _ispunct(int);\n\
3150 extern int _isspace(int);\n\
3151 extern int _isupper(int);\n\
3152 extern int _isxdigit(int);\n\
3153 # else /* not _PROTOTYPES */\n\
3154 extern int _isalnum();\n\
3155 extern int _isalpha();\n\
3156 extern int _iscntrl();\n\
3157 extern int _isdigit();\n\
3158 extern int _isgraph();\n\
3159 extern int _islower();\n\
3160 extern int _isprint();\n\
3161 extern int _ispunct();\n\
3162 extern int _isspace();\n\
3163 extern int _isupper();\n\
3164 extern int _isxdigit();\n\
3165 #endif /* _PROTOTYPES */\n",
3168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3170 * Description of Hpux10_Stdio_Declarations fix
3172 tSCC zHpux10_Stdio_DeclarationsName[] =
3173 "hpux10_stdio_declarations";
3176 * File name selection pattern
3178 tSCC zHpux10_Stdio_DeclarationsList[] =
3181 * Machine/OS name selection pattern
3183 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3186 * content selection pattern - do fix if pattern found
3188 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3189 "^#[ \t]*define _iob[ \t]*__iob";
3192 * content bypass pattern - skip fix if pattern found
3194 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3195 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3197 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3198 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3199 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3200 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3203 * Fix Command Arguments for Hpux10_Stdio_Declarations
3205 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3208 # if defined(__STDC__) || defined(__cplusplus)\n\
3209 extern int snprintf(char *, size_t, const char *, ...);\n\
3210 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3211 # else /* not __STDC__) || __cplusplus */\n\
3212 extern int snprintf();\n\
3213 extern int vsnprintf();\n\
3214 # endif /* __STDC__) || __cplusplus */\n",
3217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3219 * Description of Hpux11_Abs fix
3221 tSCC zHpux11_AbsName[] =
3225 * File name selection pattern
3227 tSCC zHpux11_AbsList[] =
3230 * Machine/OS name selection pattern
3232 tSCC* apzHpux11_AbsMachs[] = {
3234 (const char*)NULL };
3237 * content selection pattern - do fix if pattern found
3239 tSCC zHpux11_AbsSelect0[] =
3240 "ifndef _MATH_INCLUDED";
3242 #define HPUX11_ABS_TEST_CT 1
3243 static tTestDesc aHpux11_AbsTests[] = {
3244 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3247 * Fix Command Arguments for Hpux11_Abs
3249 static const char* apzHpux11_AbsPatch[] = {
3251 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3256 * Description of Hpux11_Fabsf fix
3258 tSCC zHpux11_FabsfName[] =
3262 * File name selection pattern
3264 tSCC zHpux11_FabsfList[] =
3267 * Machine/OS name selection pattern
3269 #define apzHpux11_FabsfMachs (const char**)NULL
3272 * content selection pattern - do fix if pattern found
3274 tSCC zHpux11_FabsfSelect0[] =
3275 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3278 * content bypass pattern - skip fix if pattern found
3280 tSCC zHpux11_FabsfBypass0[] =
3283 #define HPUX11_FABSF_TEST_CT 2
3284 static tTestDesc aHpux11_FabsfTests[] = {
3285 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3286 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3289 * Fix Command Arguments for Hpux11_Fabsf
3291 static const char* apzHpux11_FabsfPatch[] = {
3293 "#ifndef __cplusplus\n\
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3300 * Description of Hpux11_Pthread_Const fix
3302 tSCC zHpux11_Pthread_ConstName[] =
3303 "hpux11_pthread_const";
3306 * File name selection pattern
3308 tSCC zHpux11_Pthread_ConstList[] =
3311 * Machine/OS name selection pattern
3313 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3314 "*-hp-hpux11.[0-3]*",
3315 (const char*)NULL };
3318 * content selection pattern - do fix if pattern found
3320 tSCC zHpux11_Pthread_ConstSelect0[] =
3321 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3323 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3324 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3325 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3328 * Fix Command Arguments for Hpux11_Pthread_Const
3330 static const char* apzHpux11_Pthread_ConstPatch[] = {
3332 "#define __POINTER_SET\t\t((void *) 1L)",
3335 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3337 * Description of Hpux11_Size_T fix
3339 tSCC zHpux11_Size_TName[] =
3343 * File name selection pattern
3345 #define zHpux11_Size_TList (char*)NULL
3347 * Machine/OS name selection pattern
3349 tSCC* apzHpux11_Size_TMachs[] = {
3351 (const char*)NULL };
3354 * content selection pattern - do fix if pattern found
3356 tSCC zHpux11_Size_TSelect0[] =
3359 #define HPUX11_SIZE_T_TEST_CT 1
3360 static tTestDesc aHpux11_Size_TTests[] = {
3361 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3364 * Fix Command Arguments for Hpux11_Size_T
3366 static const char* apzHpux11_Size_TPatch[] = {
3371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3373 * Description of Hpux11_Snprintf fix
3375 tSCC zHpux11_SnprintfName[] =
3379 * File name selection pattern
3381 tSCC zHpux11_SnprintfList[] =
3384 * Machine/OS name selection pattern
3386 #define apzHpux11_SnprintfMachs (const char**)NULL
3389 * content selection pattern - do fix if pattern found
3391 tSCC zHpux11_SnprintfSelect0[] =
3392 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3394 #define HPUX11_SNPRINTF_TEST_CT 1
3395 static tTestDesc aHpux11_SnprintfTests[] = {
3396 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3399 * Fix Command Arguments for Hpux11_Snprintf
3401 static const char* apzHpux11_SnprintfPatch[] = {
3406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3408 * Description of Hpux11_Vsnprintf fix
3410 tSCC zHpux11_VsnprintfName[] =
3414 * File name selection pattern
3416 tSCC zHpux11_VsnprintfList[] =
3419 * Machine/OS name selection pattern
3421 #define apzHpux11_VsnprintfMachs (const char**)NULL
3424 * content selection pattern - do fix if pattern found
3426 tSCC zHpux11_VsnprintfSelect0[] =
3427 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3429 #define HPUX11_VSNPRINTF_TEST_CT 1
3430 static tTestDesc aHpux11_VsnprintfTests[] = {
3431 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3434 * Fix Command Arguments for Hpux11_Vsnprintf
3436 static const char* apzHpux11_VsnprintfPatch[] = {
3441 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3443 * Description of Hpux8_Bogus_Inlines fix
3445 tSCC zHpux8_Bogus_InlinesName[] =
3446 "hpux8_bogus_inlines";
3449 * File name selection pattern
3451 tSCC zHpux8_Bogus_InlinesList[] =
3454 * Machine/OS name selection pattern
3456 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3459 * content selection pattern - do fix if pattern found
3461 tSCC zHpux8_Bogus_InlinesSelect0[] =
3465 * content bypass pattern - skip fix if pattern found
3467 tSCC zHpux8_Bogus_InlinesBypass0[] =
3470 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3471 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3472 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3473 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3476 * Fix Command Arguments for Hpux8_Bogus_Inlines
3478 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3479 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3480 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3481 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3482 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3487 * Description of Hpux_Ctype_Macros fix
3489 tSCC zHpux_Ctype_MacrosName[] =
3490 "hpux_ctype_macros";
3493 * File name selection pattern
3495 tSCC zHpux_Ctype_MacrosList[] =
3498 * Machine/OS name selection pattern
3500 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3503 * content selection pattern - do fix if pattern found
3505 tSCC zHpux_Ctype_MacrosSelect0[] =
3506 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3508 #define HPUX_CTYPE_MACROS_TEST_CT 1
3509 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3510 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3513 * Fix Command Arguments for Hpux_Ctype_Macros
3515 static const char* apzHpux_Ctype_MacrosPatch[] = {
3520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3522 * Description of Hpux_Htonl fix
3524 tSCC zHpux_HtonlName[] =
3528 * File name selection pattern
3530 tSCC zHpux_HtonlList[] =
3533 * Machine/OS name selection pattern
3535 #define apzHpux_HtonlMachs (const char**)NULL
3538 * content selection pattern - do fix if pattern found
3540 tSCC zHpux_HtonlSelect0[] =
3541 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3543 \\* Macros for number representation conversion\\.\n\
3547 #define HPUX_HTONL_TEST_CT 1
3548 static tTestDesc aHpux_HtonlTests[] = {
3549 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3552 * Fix Command Arguments for Hpux_Htonl
3554 static const char* apzHpux_HtonlPatch[] = {
3560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3562 * Description of Hpux_Long_Double fix
3564 tSCC zHpux_Long_DoubleName[] =
3568 * File name selection pattern
3570 tSCC zHpux_Long_DoubleList[] =
3573 * Machine/OS name selection pattern
3575 tSCC* apzHpux_Long_DoubleMachs[] = {
3577 "*-*-hpux11.[012]*",
3578 (const char*)NULL };
3581 * content selection pattern - do fix if pattern found
3583 tSCC zHpux_Long_DoubleSelect0[] =
3584 "extern[ \t]long_double[ \t]strtold";
3587 * content bypass pattern - skip fix if pattern found
3589 tSCC zHpux_Long_DoubleBypass0[] =
3592 #define HPUX_LONG_DOUBLE_TEST_CT 2
3593 static tTestDesc aHpux_Long_DoubleTests[] = {
3594 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3595 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3598 * Fix Command Arguments for Hpux_Long_Double
3600 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3601 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3602 "-e", "s/long_double/long double/g",
3605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3607 * Description of Hpux_Long_Double_2 fix
3609 tSCC zHpux_Long_Double_2Name[] =
3610 "hpux_long_double_2";
3613 * File name selection pattern
3615 tSCC zHpux_Long_Double_2List[] =
3618 * Machine/OS name selection pattern
3620 tSCC* apzHpux_Long_Double_2Machs[] = {
3621 "hppa*-*-hpux11.3*",
3622 (const char*)NULL };
3625 * content selection pattern - do fix if pattern found
3627 tSCC zHpux_Long_Double_2Select0[] =
3628 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3630 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3631 static tTestDesc aHpux_Long_Double_2Tests[] = {
3632 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3635 * Fix Command Arguments for Hpux_Long_Double_2
3637 static const char* apzHpux_Long_Double_2Patch[] = {
3639 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3644 * Description of Hpux_Systime fix
3646 tSCC zHpux_SystimeName[] =
3650 * File name selection pattern
3652 tSCC zHpux_SystimeList[] =
3655 * Machine/OS name selection pattern
3657 #define apzHpux_SystimeMachs (const char**)NULL
3660 * content selection pattern - do fix if pattern found
3662 tSCC zHpux_SystimeSelect0[] =
3663 "^extern struct sigevent;";
3665 #define HPUX_SYSTIME_TEST_CT 1
3666 static tTestDesc aHpux_SystimeTests[] = {
3667 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3670 * Fix Command Arguments for Hpux_Systime
3672 static const char* apzHpux_SystimePatch[] = {
3677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3679 * Description of Hpux_Spu_Info fix
3681 tSCC zHpux_Spu_InfoName[] =
3685 * File name selection pattern
3687 tSCC zHpux_Spu_InfoList[] =
3688 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3690 * Machine/OS name selection pattern
3692 tSCC* apzHpux_Spu_InfoMachs[] = {
3694 (const char*)NULL };
3697 * content selection pattern - do fix if pattern found
3699 tSCC zHpux_Spu_InfoSelect0[] =
3700 "^.*extern.*spu_info.*";
3702 #define HPUX_SPU_INFO_TEST_CT 1
3703 static tTestDesc aHpux_Spu_InfoTests[] = {
3704 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3707 * Fix Command Arguments for Hpux_Spu_Info
3709 static const char* apzHpux_Spu_InfoPatch[] = {
3716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3718 * Description of Hpux11_Extern_Sendfile fix
3720 tSCC zHpux11_Extern_SendfileName[] =
3721 "hpux11_extern_sendfile";
3724 * File name selection pattern
3726 tSCC zHpux11_Extern_SendfileList[] =
3729 * Machine/OS name selection pattern
3731 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3732 "*-hp-hpux11.[12]*",
3733 (const char*)NULL };
3736 * content selection pattern - do fix if pattern found
3738 tSCC zHpux11_Extern_SendfileSelect0[] =
3739 "^[ \t]*extern sbsize_t sendfile.*\n\
3742 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3743 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3744 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3747 * Fix Command Arguments for Hpux11_Extern_Sendfile
3749 static const char* apzHpux11_Extern_SendfilePatch[] = {
3751 "#ifndef _APP32_64BIT_OFF_T\n\
3755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3757 * Description of Hpux11_Extern_Sendpath fix
3759 tSCC zHpux11_Extern_SendpathName[] =
3760 "hpux11_extern_sendpath";
3763 * File name selection pattern
3765 tSCC zHpux11_Extern_SendpathList[] =
3768 * Machine/OS name selection pattern
3770 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3771 "*-hp-hpux11.[12]*",
3772 (const char*)NULL };
3775 * content selection pattern - do fix if pattern found
3777 tSCC zHpux11_Extern_SendpathSelect0[] =
3778 "^[ \t]*extern sbsize_t sendpath.*\n\
3781 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3782 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3783 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3786 * Fix Command Arguments for Hpux11_Extern_Sendpath
3788 static const char* apzHpux11_Extern_SendpathPatch[] = {
3790 "#ifndef _APP32_64BIT_OFF_T\n\
3794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3796 * Description of Hpux_Extern_Errno fix
3798 tSCC zHpux_Extern_ErrnoName[] =
3799 "hpux_extern_errno";
3802 * File name selection pattern
3804 tSCC zHpux_Extern_ErrnoList[] =
3807 * Machine/OS name selection pattern
3809 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3811 "*-hp-hpux11.[0-2]*",
3812 (const char*)NULL };
3815 * content selection pattern - do fix if pattern found
3817 tSCC zHpux_Extern_ErrnoSelect0[] =
3818 "^[ \t]*extern int errno;$";
3820 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3821 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3822 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3825 * Fix Command Arguments for Hpux_Extern_Errno
3827 static const char* apzHpux_Extern_ErrnoPatch[] = {
3829 "#ifdef __cplusplus\n\
3833 #ifdef __cplusplus\n\
3838 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3840 * Description of Hpux_Pthread_Initializers fix
3842 tSCC zHpux_Pthread_InitializersName[] =
3843 "hpux_pthread_initializers";
3846 * File name selection pattern
3848 tSCC zHpux_Pthread_InitializersList[] =
3851 * Machine/OS name selection pattern
3853 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3854 "*-hp-hpux11.[0-3]*",
3855 (const char*)NULL };
3856 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3857 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3860 * Fix Command Arguments for Hpux_Pthread_Initializers
3862 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3863 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3864 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3865 "-e", "/^[ \t]*0$/d",
3866 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3867 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3868 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3869 "-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\\\\@",
3870 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3871 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3872 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3873 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3874 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3875 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3880 * Description of Hpux_C99_Intptr fix
3882 tSCC zHpux_C99_IntptrName[] =
3886 * File name selection pattern
3888 tSCC zHpux_C99_IntptrList[] =
3889 "stdint-hpux11.h\0stdint.h\0";
3891 * Machine/OS name selection pattern
3893 tSCC* apzHpux_C99_IntptrMachs[] = {
3895 (const char*)NULL };
3896 #define HPUX_C99_INTPTR_TEST_CT 0
3897 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
3900 * Fix Command Arguments for Hpux_C99_Intptr
3902 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3903 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3904 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3905 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3906 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3907 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3908 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3913 * Description of Hpux_C99_Inttypes fix
3915 tSCC zHpux_C99_InttypesName[] =
3916 "hpux_c99_inttypes";
3919 * File name selection pattern
3921 tSCC zHpux_C99_InttypesList[] =
3922 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
3924 * Machine/OS name selection pattern
3926 tSCC* apzHpux_C99_InttypesMachs[] = {
3927 "*-hp-hpux11.[23]*",
3928 (const char*)NULL };
3929 #define HPUX_C99_INTTYPES_TEST_CT 0
3930 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
3933 * Fix Command Arguments for Hpux_C99_Inttypes
3935 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3936 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3937 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3938 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3939 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3944 * Description of Hpux_C99_Inttypes2 fix
3946 tSCC zHpux_C99_Inttypes2Name[] =
3947 "hpux_c99_inttypes2";
3950 * File name selection pattern
3952 tSCC zHpux_C99_Inttypes2List[] =
3953 "stdint-hpux11.h\0stdint.h\0";
3955 * Machine/OS name selection pattern
3957 tSCC* apzHpux_C99_Inttypes2Machs[] = {
3959 (const char*)NULL };
3960 #define HPUX_C99_INTTYPES2_TEST_CT 0
3961 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
3964 * Fix Command Arguments for Hpux_C99_Inttypes2
3966 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
3967 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
3968 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
3969 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
3970 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
3973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3975 * Description of Hpux_Stdint_Least_Fast fix
3977 tSCC zHpux_Stdint_Least_FastName[] =
3978 "hpux_stdint_least_fast";
3981 * File name selection pattern
3983 tSCC zHpux_Stdint_Least_FastList[] =
3984 "stdint-hpux11.h\0stdint.h\0";
3986 * Machine/OS name selection pattern
3988 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
3990 (const char*)NULL };
3993 * content selection pattern - do fix if pattern found
3995 tSCC zHpux_Stdint_Least_FastSelect0[] =
3996 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
3998 #define HPUX_STDINT_LEAST_FAST_TEST_CT 1
3999 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4000 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4003 * Fix Command Arguments for Hpux_Stdint_Least_Fast
4005 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4007 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
4010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4012 * Description of Hpux_Inttype_Int8_T fix
4014 tSCC zHpux_Inttype_Int8_TName[] =
4015 "hpux_inttype_int8_t";
4018 * File name selection pattern
4020 tSCC zHpux_Inttype_Int8_TList[] =
4021 "sys/_inttypes.h\0";
4023 * Machine/OS name selection pattern
4025 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4027 (const char*)NULL };
4030 * content selection pattern - do fix if pattern found
4032 tSCC zHpux_Inttype_Int8_TSelect0[] =
4033 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4035 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
4036 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4037 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4040 * Fix Command Arguments for Hpux_Inttype_Int8_T
4042 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4044 "typedef signed char int%18_t;",
4047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4049 * Description of Hpux_Imaginary_I fix
4051 tSCC zHpux_Imaginary_IName[] =
4055 * File name selection pattern
4057 tSCC zHpux_Imaginary_IList[] =
4060 * Machine/OS name selection pattern
4062 tSCC* apzHpux_Imaginary_IMachs[] = {
4064 (const char*)NULL };
4067 * content selection pattern - do fix if pattern found
4069 tSCC zHpux_Imaginary_ISelect0[] =
4070 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4072 #define HPUX_IMAGINARY_I_TEST_CT 1
4073 static tTestDesc aHpux_Imaginary_ITests[] = {
4074 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4077 * Fix Command Arguments for Hpux_Imaginary_I
4079 static const char* apzHpux_Imaginary_IPatch[] = {
4081 "#define _Complex_I (__extension__ 1.0iF)",
4084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4086 * Description of Huge_Val_Hex fix
4088 tSCC zHuge_Val_HexName[] =
4092 * File name selection pattern
4094 tSCC zHuge_Val_HexList[] =
4095 "bits/huge_val.h\0";
4097 * Machine/OS name selection pattern
4099 #define apzHuge_Val_HexMachs (const char**)NULL
4102 * content selection pattern - do fix if pattern found
4104 tSCC zHuge_Val_HexSelect0[] =
4105 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4108 * content bypass pattern - skip fix if pattern found
4110 tSCC zHuge_Val_HexBypass0[] =
4111 "__builtin_huge_val";
4113 #define HUGE_VAL_HEX_TEST_CT 2
4114 static tTestDesc aHuge_Val_HexTests[] = {
4115 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
4116 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4119 * Fix Command Arguments for Huge_Val_Hex
4121 static const char* apzHuge_Val_HexPatch[] = {
4123 "#define HUGE_VAL (__builtin_huge_val())\n",
4126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4128 * Description of Huge_Valf_Hex fix
4130 tSCC zHuge_Valf_HexName[] =
4134 * File name selection pattern
4136 tSCC zHuge_Valf_HexList[] =
4137 "bits/huge_val.h\0";
4139 * Machine/OS name selection pattern
4141 #define apzHuge_Valf_HexMachs (const char**)NULL
4144 * content selection pattern - do fix if pattern found
4146 tSCC zHuge_Valf_HexSelect0[] =
4147 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4150 * content bypass pattern - skip fix if pattern found
4152 tSCC zHuge_Valf_HexBypass0[] =
4153 "__builtin_huge_valf";
4155 #define HUGE_VALF_HEX_TEST_CT 2
4156 static tTestDesc aHuge_Valf_HexTests[] = {
4157 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4158 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4161 * Fix Command Arguments for Huge_Valf_Hex
4163 static const char* apzHuge_Valf_HexPatch[] = {
4165 "#define HUGE_VALF (__builtin_huge_valf())\n",
4168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4170 * Description of Huge_Vall_Hex fix
4172 tSCC zHuge_Vall_HexName[] =
4176 * File name selection pattern
4178 tSCC zHuge_Vall_HexList[] =
4179 "bits/huge_val.h\0";
4181 * Machine/OS name selection pattern
4183 #define apzHuge_Vall_HexMachs (const char**)NULL
4186 * content selection pattern - do fix if pattern found
4188 tSCC zHuge_Vall_HexSelect0[] =
4189 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4192 * content bypass pattern - skip fix if pattern found
4194 tSCC zHuge_Vall_HexBypass0[] =
4195 "__builtin_huge_vall";
4197 #define HUGE_VALL_HEX_TEST_CT 2
4198 static tTestDesc aHuge_Vall_HexTests[] = {
4199 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4200 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4203 * Fix Command Arguments for Huge_Vall_Hex
4205 static const char* apzHuge_Vall_HexPatch[] = {
4207 "#define HUGE_VALL (__builtin_huge_vall())\n",
4210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4212 * Description of Int_Abort_Free_And_Exit fix
4214 tSCC zInt_Abort_Free_And_ExitName[] =
4215 "int_abort_free_and_exit";
4218 * File name selection pattern
4220 tSCC zInt_Abort_Free_And_ExitList[] =
4223 * Machine/OS name selection pattern
4225 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4228 * content selection pattern - do fix if pattern found
4230 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4231 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4234 * content bypass pattern - skip fix if pattern found
4236 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4237 "_CLASSIC_ANSI_TYPES";
4239 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4240 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4241 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4242 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4245 * Fix Command Arguments for Int_Abort_Free_And_Exit
4247 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4254 * Description of Io_Quotes_Def fix
4256 tSCC zIo_Quotes_DefName[] =
4260 * File name selection pattern
4262 #define zIo_Quotes_DefList (char*)NULL
4264 * Machine/OS name selection pattern
4266 #define apzIo_Quotes_DefMachs (const char**)NULL
4269 * content selection pattern - do fix if pattern found
4271 tSCC zIo_Quotes_DefSelect0[] =
4272 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4274 #define IO_QUOTES_DEF_TEST_CT 1
4275 static tTestDesc aIo_Quotes_DefTests[] = {
4276 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4279 * Fix Command Arguments for Io_Quotes_Def
4281 static const char* apzIo_Quotes_DefPatch[] = {
4286 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4288 * Description of Io_Quotes_Use fix
4290 tSCC zIo_Quotes_UseName[] =
4294 * File name selection pattern
4296 #define zIo_Quotes_UseList (char*)NULL
4298 * Machine/OS name selection pattern
4300 #define apzIo_Quotes_UseMachs (const char**)NULL
4303 * content selection pattern - do fix if pattern found
4305 tSCC zIo_Quotes_UseSelect0[] =
4306 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4308 #define IO_QUOTES_USE_TEST_CT 1
4309 static tTestDesc aIo_Quotes_UseTests[] = {
4310 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4313 * Fix Command Arguments for Io_Quotes_Use
4315 static const char* apzIo_Quotes_UsePatch[] = {
4320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4322 * Description of Ip_Missing_Semi fix
4324 tSCC zIp_Missing_SemiName[] =
4328 * File name selection pattern
4330 tSCC zIp_Missing_SemiList[] =
4333 * Machine/OS name selection pattern
4335 #define apzIp_Missing_SemiMachs (const char**)NULL
4338 * content selection pattern - do fix if pattern found
4340 tSCC zIp_Missing_SemiSelect0[] =
4343 #define IP_MISSING_SEMI_TEST_CT 1
4344 static tTestDesc aIp_Missing_SemiTests[] = {
4345 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4348 * Fix Command Arguments for Ip_Missing_Semi
4350 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4351 "-e", "/^struct/,/^};/s/}$/};/",
4354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4356 * Description of Irix_Limits_Const fix
4358 tSCC zIrix_Limits_ConstName[] =
4359 "irix_limits_const";
4362 * File name selection pattern
4364 tSCC zIrix_Limits_ConstList[] =
4365 "fixinc-test-limits.h\0limits.h\0";
4367 * Machine/OS name selection pattern
4369 #define apzIrix_Limits_ConstMachs (const char**)NULL
4372 * content selection pattern - do fix if pattern found
4374 tSCC zIrix_Limits_ConstSelect0[] =
4377 #define IRIX_LIMITS_CONST_TEST_CT 1
4378 static tTestDesc aIrix_Limits_ConstTests[] = {
4379 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4382 * Fix Command Arguments for Irix_Limits_Const
4384 static const char* apzIrix_Limits_ConstPatch[] = {
4389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4391 * Description of Irix_Stdio_Va_List fix
4393 tSCC zIrix_Stdio_Va_ListName[] =
4394 "irix_stdio_va_list";
4397 * File name selection pattern
4399 tSCC zIrix_Stdio_Va_ListList[] =
4402 * Machine/OS name selection pattern
4404 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4407 * content selection pattern - do fix if pattern found
4409 tSCC zIrix_Stdio_Va_ListSelect0[] =
4410 "/\\* va_list \\*/ char \\*";
4412 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4413 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4414 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4417 * Fix Command Arguments for Irix_Stdio_Va_List
4419 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4426 * Description of Kandr_Concat fix
4428 tSCC zKandr_ConcatName[] =
4432 * File name selection pattern
4434 tSCC zKandr_ConcatList[] =
4435 "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";
4437 * Machine/OS name selection pattern
4439 #define apzKandr_ConcatMachs (const char**)NULL
4442 * content selection pattern - do fix if pattern found
4444 tSCC zKandr_ConcatSelect0[] =
4447 #define KANDR_CONCAT_TEST_CT 1
4448 static tTestDesc aKandr_ConcatTests[] = {
4449 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4452 * Fix Command Arguments for Kandr_Concat
4454 static const char* apzKandr_ConcatPatch[] = {
4459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4461 * Description of Linux_Ia64_Ucontext fix
4463 tSCC zLinux_Ia64_UcontextName[] =
4464 "linux_ia64_ucontext";
4467 * File name selection pattern
4469 tSCC zLinux_Ia64_UcontextList[] =
4472 * Machine/OS name selection pattern
4474 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4476 (const char*)NULL };
4479 * content selection pattern - do fix if pattern found
4481 tSCC zLinux_Ia64_UcontextSelect0[] =
4482 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4484 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4485 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4486 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4489 * Fix Command Arguments for Linux_Ia64_Ucontext
4491 static const char* apzLinux_Ia64_UcontextPatch[] = {
4493 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4498 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4500 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4501 "lynxos_no_warning_in_sys_time_h";
4504 * File name selection pattern
4506 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4509 * Machine/OS name selection pattern
4511 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4514 * content selection pattern - do fix if pattern found
4516 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4517 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4519 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4520 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4521 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4524 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4526 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4533 * Description of Lynxos_Missing_Putenv fix
4535 tSCC zLynxos_Missing_PutenvName[] =
4536 "lynxos_missing_putenv";
4539 * File name selection pattern
4541 tSCC zLynxos_Missing_PutenvList[] =
4544 * Machine/OS name selection pattern
4546 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4548 (const char*)NULL };
4551 * content selection pattern - do fix if pattern found
4553 tSCC zLynxos_Missing_PutenvSelect0[] =
4554 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4557 * content bypass pattern - skip fix if pattern found
4559 tSCC zLynxos_Missing_PutenvBypass0[] =
4562 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4563 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4564 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4565 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4568 * Fix Command Arguments for Lynxos_Missing_Putenv
4570 static const char* apzLynxos_Missing_PutenvPatch[] = {
4573 extern int putenv\t\t\t\t_AP((char *));",
4574 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4579 * Description of Machine_Ansi_H_Va_List fix
4581 tSCC zMachine_Ansi_H_Va_ListName[] =
4582 "machine_ansi_h_va_list";
4585 * File name selection pattern
4587 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4589 * Machine/OS name selection pattern
4591 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4594 * content selection pattern - do fix if pattern found
4596 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4597 "define[ \t]+_BSD_VA_LIST_[ \t]";
4600 * content bypass pattern - skip fix if pattern found
4602 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4603 "__builtin_va_list";
4605 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4606 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4607 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4608 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4611 * Fix Command Arguments for Machine_Ansi_H_Va_List
4613 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4615 "%1__builtin_va_list",
4616 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4621 * Description of Machine_Name fix
4623 tSCC zMachine_NameName[] =
4627 * File name selection pattern
4629 #define zMachine_NameList (char*)NULL
4631 * Machine/OS name selection pattern
4633 #define apzMachine_NameMachs (const char**)NULL
4636 * perform the C function call test
4638 tSCC zMachine_NameFTst0[] = "machine_name";
4640 #define MACHINE_NAME_TEST_CT 1
4641 static tTestDesc aMachine_NameTests[] = {
4642 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4645 * Fix Command Arguments for Machine_Name
4647 static const char* apzMachine_NamePatch[] = {
4651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4653 * Description of Math_Exception fix
4655 tSCC zMath_ExceptionName[] =
4659 * File name selection pattern
4661 tSCC zMath_ExceptionList[] =
4664 * Machine/OS name selection pattern
4666 #define apzMath_ExceptionMachs (const char**)NULL
4669 * content selection pattern - do fix if pattern found
4671 tSCC zMath_ExceptionSelect0[] =
4675 * content bypass pattern - skip fix if pattern found
4677 tSCC zMath_ExceptionBypass0[] =
4678 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4680 #define MATH_EXCEPTION_TEST_CT 2
4681 static tTestDesc aMath_ExceptionTests[] = {
4682 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4683 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4686 * Fix Command Arguments for Math_Exception
4688 static const char* apzMath_ExceptionPatch[] = {
4690 "#ifdef __cplusplus\n\
4691 #define exception __math_exception\n\
4693 "#ifdef __cplusplus\n\
4698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4700 * Description of Math_Huge_Val_From_Dbl_Max fix
4702 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4703 "math_huge_val_from_dbl_max";
4706 * File name selection pattern
4708 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4711 * Machine/OS name selection pattern
4713 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4716 * content selection pattern - do fix if pattern found
4718 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4719 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4722 * content bypass pattern - skip fix if pattern found
4724 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4725 "define[ \t]+DBL_MAX";
4727 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4728 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4729 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4730 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4733 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4735 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4736 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4737 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4738 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4745 * Description of Nested_Auth_Des fix
4747 tSCC zNested_Auth_DesName[] =
4751 * File name selection pattern
4753 tSCC zNested_Auth_DesList[] =
4756 * Machine/OS name selection pattern
4758 #define apzNested_Auth_DesMachs (const char**)NULL
4761 * content selection pattern - do fix if pattern found
4763 tSCC zNested_Auth_DesSelect0[] =
4764 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4766 #define NESTED_AUTH_DES_TEST_CT 1
4767 static tTestDesc aNested_Auth_DesTests[] = {
4768 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4771 * Fix Command Arguments for Nested_Auth_Des
4773 static const char* apzNested_Auth_DesPatch[] = {
4778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4780 * Description of Netbsd_C99_Inline_1 fix
4782 tSCC zNetbsd_C99_Inline_1Name[] =
4783 "netbsd_c99_inline_1";
4786 * File name selection pattern
4788 tSCC zNetbsd_C99_Inline_1List[] =
4791 * Machine/OS name selection pattern
4793 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4795 (const char*)NULL };
4798 * content selection pattern - do fix if pattern found
4800 tSCC zNetbsd_C99_Inline_1Select0[] =
4801 "extern __inline int";
4803 #define NETBSD_C99_INLINE_1_TEST_CT 1
4804 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4805 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4808 * Fix Command Arguments for Netbsd_C99_Inline_1
4810 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4813 #ifdef __GNUC_STDC_INLINE__\n\
4814 __attribute__((__gnu_inline__))\n\
4819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4821 * Description of Netbsd_C99_Inline_2 fix
4823 tSCC zNetbsd_C99_Inline_2Name[] =
4824 "netbsd_c99_inline_2";
4827 * File name selection pattern
4829 tSCC zNetbsd_C99_Inline_2List[] =
4832 * Machine/OS name selection pattern
4834 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4836 (const char*)NULL };
4839 * content selection pattern - do fix if pattern found
4841 tSCC zNetbsd_C99_Inline_2Select0[] =
4842 "#define _SIGINLINE extern __inline";
4844 #define NETBSD_C99_INLINE_2_TEST_CT 1
4845 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4846 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4849 * Fix Command Arguments for Netbsd_C99_Inline_2
4851 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4853 "#ifdef __GNUC_STDC_INLINE__\n\
4854 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4862 * Description of Netbsd_Extra_Semicolon fix
4864 tSCC zNetbsd_Extra_SemicolonName[] =
4865 "netbsd_extra_semicolon";
4868 * File name selection pattern
4870 tSCC zNetbsd_Extra_SemicolonList[] =
4873 * Machine/OS name selection pattern
4875 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4877 (const char*)NULL };
4880 * content selection pattern - do fix if pattern found
4882 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4883 "#define[ \t]*__END_DECLS[ \t]*};";
4885 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4886 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4887 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4890 * Fix Command Arguments for Netbsd_Extra_Semicolon
4892 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4894 "#define __END_DECLS }",
4897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4899 * Description of Newlib_Stdint_1 fix
4901 tSCC zNewlib_Stdint_1Name[] =
4905 * File name selection pattern
4907 tSCC zNewlib_Stdint_1List[] =
4908 "stdint-newlib.h\0stdint.h\0";
4910 * Machine/OS name selection pattern
4912 #define apzNewlib_Stdint_1Machs (const char**)NULL
4915 * content selection pattern - do fix if pattern found
4917 tSCC zNewlib_Stdint_1Select0[] =
4918 "@todo - Add support for wint_t types";
4920 #define NEWLIB_STDINT_1_TEST_CT 1
4921 static tTestDesc aNewlib_Stdint_1Tests[] = {
4922 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
4925 * Fix Command Arguments for Newlib_Stdint_1
4927 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
4928 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
4929 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
4930 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
4931 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
4932 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
4933 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
4934 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
4935 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
4936 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
4937 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
4938 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4939 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
4940 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
4941 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
4944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4946 * Description of Newlib_Stdint_2 fix
4948 tSCC zNewlib_Stdint_2Name[] =
4952 * File name selection pattern
4954 tSCC zNewlib_Stdint_2List[] =
4955 "stdint-newlib.h\0stdint.h\0";
4957 * Machine/OS name selection pattern
4959 #define apzNewlib_Stdint_2Machs (const char**)NULL
4962 * content selection pattern - do fix if pattern found
4964 tSCC zNewlib_Stdint_2Select0[] =
4965 "@todo - Add support for wint_t types";
4967 #define NEWLIB_STDINT_2_TEST_CT 1
4968 static tTestDesc aNewlib_Stdint_2Tests[] = {
4969 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
4972 * Fix Command Arguments for Newlib_Stdint_2
4974 static const char* apzNewlib_Stdint_2Patch[] = {
4976 "#define INTMAX_MAX __INTMAX_MAX__\n\
4977 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
4978 #define UINTMAX_MAX __UINTMAX_MAX__\n\
4979 #define WCHAR_MAX __WCHAR_MAX__\n\
4980 #define WCHAR_MIN __WCHAR_MIN__\n\
4981 #define WINT_MAX __WINT_MAX__\n\
4982 #define WINT_MIN __WINT_MIN__\n\n\
4984 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
4987 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4989 * Description of Next_Math_Prefix fix
4991 tSCC zNext_Math_PrefixName[] =
4995 * File name selection pattern
4997 tSCC zNext_Math_PrefixList[] =
5000 * Machine/OS name selection pattern
5002 #define apzNext_Math_PrefixMachs (const char**)NULL
5005 * content selection pattern - do fix if pattern found
5007 tSCC zNext_Math_PrefixSelect0[] =
5008 "^extern[ \t]+double[ \t]+__const__[ \t]";
5010 #define NEXT_MATH_PREFIX_TEST_CT 1
5011 static tTestDesc aNext_Math_PrefixTests[] = {
5012 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5015 * Fix Command Arguments for Next_Math_Prefix
5017 static const char* apzNext_Math_PrefixPatch[] = {
5019 "extern double %1(",
5020 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5025 * Description of Next_Template fix
5027 tSCC zNext_TemplateName[] =
5031 * File name selection pattern
5033 tSCC zNext_TemplateList[] =
5036 * Machine/OS name selection pattern
5038 #define apzNext_TemplateMachs (const char**)NULL
5041 * content selection pattern - do fix if pattern found
5043 tSCC zNext_TemplateSelect0[] =
5046 #define NEXT_TEMPLATE_TEST_CT 1
5047 static tTestDesc aNext_TemplateTests[] = {
5048 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5051 * Fix Command Arguments for Next_Template
5053 static const char* apzNext_TemplatePatch[] = {
5056 "\\(([^)]*)[ \t]template\\)",
5059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5061 * Description of Next_Volitile fix
5063 tSCC zNext_VolitileName[] =
5067 * File name selection pattern
5069 tSCC zNext_VolitileList[] =
5072 * Machine/OS name selection pattern
5074 #define apzNext_VolitileMachs (const char**)NULL
5077 * content selection pattern - do fix if pattern found
5079 tSCC zNext_VolitileSelect0[] =
5080 "^extern[ \t]+volatile[ \t]+void[ \t]";
5082 #define NEXT_VOLITILE_TEST_CT 1
5083 static tTestDesc aNext_VolitileTests[] = {
5084 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5087 * Fix Command Arguments for Next_Volitile
5089 static const char* apzNext_VolitilePatch[] = {
5092 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5097 * Description of Next_Wait_Union fix
5099 tSCC zNext_Wait_UnionName[] =
5103 * File name selection pattern
5105 tSCC zNext_Wait_UnionList[] =
5108 * Machine/OS name selection pattern
5110 #define apzNext_Wait_UnionMachs (const char**)NULL
5113 * content selection pattern - do fix if pattern found
5115 tSCC zNext_Wait_UnionSelect0[] =
5116 "wait\\(union wait";
5118 #define NEXT_WAIT_UNION_TEST_CT 1
5119 static tTestDesc aNext_Wait_UnionTests[] = {
5120 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5123 * Fix Command Arguments for Next_Wait_Union
5125 static const char* apzNext_Wait_UnionPatch[] = {
5130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5132 * Description of Nodeent_Syntax fix
5134 tSCC zNodeent_SyntaxName[] =
5138 * File name selection pattern
5140 tSCC zNodeent_SyntaxList[] =
5141 "netdnet/dnetdb.h\0";
5143 * Machine/OS name selection pattern
5145 #define apzNodeent_SyntaxMachs (const char**)NULL
5148 * content selection pattern - do fix if pattern found
5150 tSCC zNodeent_SyntaxSelect0[] =
5151 "char[ \t]*\\*na_addr[ \t]*$";
5153 #define NODEENT_SYNTAX_TEST_CT 1
5154 static tTestDesc aNodeent_SyntaxTests[] = {
5155 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5158 * Fix Command Arguments for Nodeent_Syntax
5160 static const char* apzNodeent_SyntaxPatch[] = {
5165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5167 * Description of Openbsd_Null_Definition fix
5169 tSCC zOpenbsd_Null_DefinitionName[] =
5170 "openbsd_null_definition";
5173 * File name selection pattern
5175 tSCC zOpenbsd_Null_DefinitionList[] =
5176 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5178 * Machine/OS name selection pattern
5180 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5182 (const char*)NULL };
5185 * content selection pattern - do fix if pattern found
5187 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5190 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5191 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5192 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5195 * Fix Command Arguments for Openbsd_Null_Definition
5197 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5200 #ifdef __cplusplus\n\
5202 #define NULL\t__null\n\
5203 #else\t /* ! __GNUG__ */\n\
5205 #endif\t /* __GNUG__ */\n\
5206 #else\t /* ! __cplusplus */\n\
5207 #define NULL\t((void *)0)\n\
5208 #endif\t /* __cplusplus */\n\
5209 #endif\t /* !NULL */",
5210 "^#ifndef[ \t]*NULL\n\
5211 ^#ifdef[ \t]*__GNUG__\n\
5212 ^#define[ \t]*NULL[ \t]*__null\n\
5214 ^#define[ \t]*NULL[ \t]*0L\n\
5219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5221 * Description of Obstack_Lvalue_Cast fix
5223 tSCC zObstack_Lvalue_CastName[] =
5224 "obstack_lvalue_cast";
5227 * File name selection pattern
5229 tSCC zObstack_Lvalue_CastList[] =
5232 * Machine/OS name selection pattern
5234 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5237 * content selection pattern - do fix if pattern found
5239 tSCC zObstack_Lvalue_CastSelect0[] =
5240 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5242 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5243 static tTestDesc aObstack_Lvalue_CastTests[] = {
5244 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5247 * Fix Command Arguments for Obstack_Lvalue_Cast
5249 static const char* apzObstack_Lvalue_CastPatch[] = {
5251 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5256 * Description of Openbsd_Va_Start fix
5258 tSCC zOpenbsd_Va_StartName[] =
5262 * File name selection pattern
5264 tSCC zOpenbsd_Va_StartList[] =
5267 * Machine/OS name selection pattern
5269 tSCC* apzOpenbsd_Va_StartMachs[] = {
5271 (const char*)NULL };
5274 * content selection pattern - do fix if pattern found
5276 tSCC zOpenbsd_Va_StartSelect0[] =
5277 "__builtin_stdarg_start";
5279 #define OPENBSD_VA_START_TEST_CT 1
5280 static tTestDesc aOpenbsd_Va_StartTests[] = {
5281 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5284 * Fix Command Arguments for Openbsd_Va_Start
5286 static const char* apzOpenbsd_Va_StartPatch[] = {
5288 "__builtin_va_start",
5291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5293 * Description of Osf_Namespace_A fix
5295 tSCC zOsf_Namespace_AName[] =
5299 * File name selection pattern
5301 tSCC zOsf_Namespace_AList[] =
5302 "reg_types.h\0sys/lc_core.h\0";
5304 * Machine/OS name selection pattern
5306 #define apzOsf_Namespace_AMachs (const char**)NULL
5309 * perform the 'test' shell command - do fix on success
5311 tSCC zOsf_Namespace_ATest0[] =
5313 tSCC zOsf_Namespace_ATest1[] =
5314 " -r sys/lc_core.h";
5315 tSCC zOsf_Namespace_ATest2[] =
5316 " -n \"`grep '} regex_t;' reg_types.h`\"";
5317 tSCC zOsf_Namespace_ATest3[] =
5318 " -z \"`grep __regex_t regex.h`\"";
5320 #define OSF_NAMESPACE_A_TEST_CT 4
5321 static tTestDesc aOsf_Namespace_ATests[] = {
5322 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5323 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5324 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5325 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5328 * Fix Command Arguments for Osf_Namespace_A
5330 static const char* apzOsf_Namespace_APatch[] = {
5333 "reg(ex|off|match)_t",
5336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5338 * Description of Osf_Namespace_C fix
5340 tSCC zOsf_Namespace_CName[] =
5344 * File name selection pattern
5346 tSCC zOsf_Namespace_CList[] =
5349 * Machine/OS name selection pattern
5351 #define apzOsf_Namespace_CMachs (const char**)NULL
5354 * content selection pattern - do fix if pattern found
5356 tSCC zOsf_Namespace_CSelect0[] =
5357 "#include <reg_types.h>.*";
5360 * perform the 'test' shell command - do fix on success
5362 tSCC zOsf_Namespace_CTest0[] =
5364 tSCC zOsf_Namespace_CTest1[] =
5365 " -r sys/lc_core.h";
5366 tSCC zOsf_Namespace_CTest2[] =
5367 " -n \"`grep '} regex_t;' reg_types.h`\"";
5368 tSCC zOsf_Namespace_CTest3[] =
5369 " -z \"`grep __regex_t regex.h`\"";
5371 #define OSF_NAMESPACE_C_TEST_CT 5
5372 static tTestDesc aOsf_Namespace_CTests[] = {
5373 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5374 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5375 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5376 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5377 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5380 * Fix Command Arguments for Osf_Namespace_C
5382 static const char* apzOsf_Namespace_CPatch[] = {
5385 typedef __regex_t\tregex_t;\n\
5386 typedef __regoff_t\tregoff_t;\n\
5387 typedef __regmatch_t\tregmatch_t;",
5390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5392 * Description of Pthread_Incomplete_Struct_Argument fix
5394 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5395 "pthread_incomplete_struct_argument";
5398 * File name selection pattern
5400 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5403 * Machine/OS name selection pattern
5405 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5408 * content selection pattern - do fix if pattern found
5410 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5411 "struct __jmp_buf_tag";
5413 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5414 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5415 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5418 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5420 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5423 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5428 * Description of Read_Ret_Type fix
5430 tSCC zRead_Ret_TypeName[] =
5434 * File name selection pattern
5436 tSCC zRead_Ret_TypeList[] =
5439 * Machine/OS name selection pattern
5441 #define apzRead_Ret_TypeMachs (const char**)NULL
5444 * content selection pattern - do fix if pattern found
5446 tSCC zRead_Ret_TypeSelect0[] =
5447 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5449 #define READ_RET_TYPE_TEST_CT 1
5450 static tTestDesc aRead_Ret_TypeTests[] = {
5451 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5454 * Fix Command Arguments for Read_Ret_Type
5456 static const char* apzRead_Ret_TypePatch[] = {
5458 "extern unsigned int fread(), fwrite();\n\
5460 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5465 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5467 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5468 "rpc_xdr_lvalue_cast_a";
5471 * File name selection pattern
5473 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5476 * Machine/OS name selection pattern
5478 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5481 * content selection pattern - do fix if pattern found
5483 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5484 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5487 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5488 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5489 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5492 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5494 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5496 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5501 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5503 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5504 "rpc_xdr_lvalue_cast_b";
5507 * File name selection pattern
5509 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5512 * Machine/OS name selection pattern
5514 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5517 * content selection pattern - do fix if pattern found
5519 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5520 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5523 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5524 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5525 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5528 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5530 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5532 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5537 * Description of Rs6000_Double fix
5539 tSCC zRs6000_DoubleName[] =
5543 * File name selection pattern
5545 tSCC zRs6000_DoubleList[] =
5548 * Machine/OS name selection pattern
5550 #define apzRs6000_DoubleMachs (const char**)NULL
5553 * content selection pattern - do fix if pattern found
5555 tSCC zRs6000_DoubleSelect0[] =
5556 "[^a-zA-Z_]class\\(";
5558 #define RS6000_DOUBLE_TEST_CT 1
5559 static tTestDesc aRs6000_DoubleTests[] = {
5560 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5563 * Fix Command Arguments for Rs6000_Double
5565 static const char* apzRs6000_DoublePatch[] = {
5567 "#ifndef __cplusplus\n\
5570 "^.*[^a-zA-Z_]class\\(.*",
5573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5575 * Description of Rs6000_Fchmod fix
5577 tSCC zRs6000_FchmodName[] =
5581 * File name selection pattern
5583 tSCC zRs6000_FchmodList[] =
5586 * Machine/OS name selection pattern
5588 #define apzRs6000_FchmodMachs (const char**)NULL
5591 * content selection pattern - do fix if pattern found
5593 tSCC zRs6000_FchmodSelect0[] =
5594 "fchmod\\(char \\*";
5596 #define RS6000_FCHMOD_TEST_CT 1
5597 static tTestDesc aRs6000_FchmodTests[] = {
5598 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5601 * Fix Command Arguments for Rs6000_Fchmod
5603 static const char* apzRs6000_FchmodPatch[] = {
5608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5610 * Description of Rs6000_Param fix
5612 tSCC zRs6000_ParamName[] =
5616 * File name selection pattern
5618 tSCC zRs6000_ParamList[] =
5619 "stdio.h\0unistd.h\0";
5621 * Machine/OS name selection pattern
5623 #define apzRs6000_ParamMachs (const char**)NULL
5626 * content selection pattern - do fix if pattern found
5628 tSCC zRs6000_ParamSelect0[] =
5629 "rename\\(const char \\*old, const char \\*new\\)";
5631 #define RS6000_PARAM_TEST_CT 1
5632 static tTestDesc aRs6000_ParamTests[] = {
5633 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5636 * Fix Command Arguments for Rs6000_Param
5638 static const char* apzRs6000_ParamPatch[] = {
5640 "rename(const char *_old, const char *_new)",
5643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5645 * Description of Solaris___Restrict fix
5647 tSCC zSolaris___RestrictName[] =
5648 "solaris___restrict";
5651 * File name selection pattern
5653 tSCC zSolaris___RestrictList[] =
5654 "sys/feature_tests.h\0";
5656 * Machine/OS name selection pattern
5658 tSCC* apzSolaris___RestrictMachs[] = {
5660 (const char*)NULL };
5663 * content selection pattern - do fix if pattern found
5665 tSCC zSolaris___RestrictSelect0[] =
5666 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
5668 #define SOLARIS___RESTRICT_TEST_CT 1
5669 static tTestDesc aSolaris___RestrictTests[] = {
5670 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
5673 * Fix Command Arguments for Solaris___Restrict
5675 static const char* apzSolaris___RestrictPatch[] = {
5677 "#ifdef __cplusplus\n\
5678 #define\t_RESTRICT_KYWD\t__restrict\n\
5684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5686 * Description of Solaris_Complex fix
5688 tSCC zSolaris_ComplexName[] =
5692 * File name selection pattern
5694 tSCC zSolaris_ComplexList[] =
5697 * Machine/OS name selection pattern
5699 tSCC* apzSolaris_ComplexMachs[] = {
5701 (const char*)NULL };
5704 * content selection pattern - do fix if pattern found
5706 tSCC zSolaris_ComplexSelect0[] =
5707 "#define[ \t]_Complex_I[ \t]_Complex_I";
5709 #define SOLARIS_COMPLEX_TEST_CT 1
5710 static tTestDesc aSolaris_ComplexTests[] = {
5711 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
5714 * Fix Command Arguments for Solaris_Complex
5716 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
5717 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
5718 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
5719 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
5720 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
5723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5725 * Description of Solaris_Complex_Cxx fix
5727 tSCC zSolaris_Complex_CxxName[] =
5728 "solaris_complex_cxx";
5731 * File name selection pattern
5733 tSCC zSolaris_Complex_CxxList[] =
5736 * Machine/OS name selection pattern
5738 tSCC* apzSolaris_Complex_CxxMachs[] = {
5740 (const char*)NULL };
5741 #define SOLARIS_COMPLEX_CXX_TEST_CT 0
5742 #define aSolaris_Complex_CxxTests (tTestDesc*)NULL
5745 * Fix Command Arguments for Solaris_Complex_Cxx
5747 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
5748 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
5749 #ifdef\t__cplusplus\\\n\
5752 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
5753 #ifdef\t__cplusplus\\\n\
5758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5760 * Description of Solaris_Cxx_Linkage fix
5762 tSCC zSolaris_Cxx_LinkageName[] =
5763 "solaris_cxx_linkage";
5766 * File name selection pattern
5768 tSCC zSolaris_Cxx_LinkageList[] =
5769 "iso/stdlib_iso.h\0";
5771 * Machine/OS name selection pattern
5773 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
5775 (const char*)NULL };
5778 * content selection pattern - do fix if pattern found
5780 tSCC zSolaris_Cxx_LinkageSelect0[] =
5781 "(#if __cplusplus >= 199711L)\n\
5782 (extern \"C\\+\\+\" \\{\n\
5783 )(.*(bsearch|qsort).*)";
5785 #define SOLARIS_CXX_LINKAGE_TEST_CT 1
5786 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
5787 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
5790 * Fix Command Arguments for Solaris_Cxx_Linkage
5792 static const char* apzSolaris_Cxx_LinkagePatch[] = {
5798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5800 * Description of Solaris_Getc_Strict_Stdc fix
5802 tSCC zSolaris_Getc_Strict_StdcName[] =
5803 "solaris_getc_strict_stdc";
5806 * File name selection pattern
5808 tSCC zSolaris_Getc_Strict_StdcList[] =
5809 "iso/stdio_iso.h\0";
5811 * Machine/OS name selection pattern
5813 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
5815 (const char*)NULL };
5818 * content selection pattern - do fix if pattern found
5820 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
5821 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
5823 #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1
5824 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
5825 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
5828 * Fix Command Arguments for Solaris_Getc_Strict_Stdc
5830 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
5832 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
5835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5837 * Description of Solaris_Longjmp_Noreturn fix
5839 tSCC zSolaris_Longjmp_NoreturnName[] =
5840 "solaris_longjmp_noreturn";
5843 * File name selection pattern
5845 tSCC zSolaris_Longjmp_NoreturnList[] =
5846 "iso/setjmp_iso.h\0";
5848 * Machine/OS name selection pattern
5850 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
5852 (const char*)NULL };
5855 * content selection pattern - do fix if pattern found
5857 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
5858 "(.*longjmp\\(jmp_buf.*[^)]+\\));";
5861 * content bypass pattern - skip fix if pattern found
5863 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
5866 #define SOLARIS_LONGJMP_NORETURN_TEST_CT 2
5867 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
5868 { TT_NEGREP, zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
5869 { TT_EGREP, zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
5872 * Fix Command Arguments for Solaris_Longjmp_Noreturn
5874 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
5876 "%1 __attribute__ ((__noreturn__));",
5879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5881 * Description of Solaris_Math_1 fix
5883 tSCC zSolaris_Math_1Name[] =
5887 * File name selection pattern
5889 tSCC zSolaris_Math_1List[] =
5892 * Machine/OS name selection pattern
5894 #define apzSolaris_Math_1Machs (const char**)NULL
5897 * content selection pattern - do fix if pattern found
5899 tSCC zSolaris_Math_1Select0[] =
5900 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5903 * content bypass pattern - skip fix if pattern found
5905 tSCC zSolaris_Math_1Bypass0[] =
5908 #define SOLARIS_MATH_1_TEST_CT 2
5909 static tTestDesc aSolaris_Math_1Tests[] = {
5910 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5911 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5914 * Fix Command Arguments for Solaris_Math_1
5916 static const char* apzSolaris_Math_1Patch[] = {
5918 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5919 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5924 * Description of Solaris_Math_2 fix
5926 tSCC zSolaris_Math_2Name[] =
5930 * File name selection pattern
5932 tSCC zSolaris_Math_2List[] =
5935 * Machine/OS name selection pattern
5937 #define apzSolaris_Math_2Machs (const char**)NULL
5940 * content selection pattern - do fix if pattern found
5942 tSCC zSolaris_Math_2Select0[] =
5943 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5946 * content bypass pattern - skip fix if pattern found
5948 tSCC zSolaris_Math_2Bypass0[] =
5951 #define SOLARIS_MATH_2_TEST_CT 2
5952 static tTestDesc aSolaris_Math_2Tests[] = {
5953 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5954 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5957 * Fix Command Arguments for Solaris_Math_2
5959 static const char* apzSolaris_Math_2Patch[] = {
5961 "#define\tINFINITY\t(__builtin_inff())",
5962 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5967 * Description of Solaris_Math_3 fix
5969 tSCC zSolaris_Math_3Name[] =
5973 * File name selection pattern
5975 tSCC zSolaris_Math_3List[] =
5978 * Machine/OS name selection pattern
5980 #define apzSolaris_Math_3Machs (const char**)NULL
5983 * content selection pattern - do fix if pattern found
5985 tSCC zSolaris_Math_3Select0[] =
5986 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5989 * content bypass pattern - skip fix if pattern found
5991 tSCC zSolaris_Math_3Bypass0[] =
5994 #define SOLARIS_MATH_3_TEST_CT 2
5995 static tTestDesc aSolaris_Math_3Tests[] = {
5996 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5997 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6000 * Fix Command Arguments for Solaris_Math_3
6002 static const char* apzSolaris_Math_3Patch[] = {
6004 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6005 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6010 * Description of Solaris_Math_4 fix
6012 tSCC zSolaris_Math_4Name[] =
6016 * File name selection pattern
6018 tSCC zSolaris_Math_4List[] =
6021 * Machine/OS name selection pattern
6023 #define apzSolaris_Math_4Machs (const char**)NULL
6026 * content selection pattern - do fix if pattern found
6028 tSCC zSolaris_Math_4Select0[] =
6029 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6032 * content bypass pattern - skip fix if pattern found
6034 tSCC zSolaris_Math_4Bypass0[] =
6037 #define SOLARIS_MATH_4_TEST_CT 2
6038 static tTestDesc aSolaris_Math_4Tests[] = {
6039 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6040 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6043 * Fix Command Arguments for Solaris_Math_4
6045 static const char* apzSolaris_Math_4Patch[] = {
6047 "#define\tfpclassify(x) \\\n\
6048 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6049 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6054 * Description of Solaris_Math_8 fix
6056 tSCC zSolaris_Math_8Name[] =
6060 * File name selection pattern
6062 tSCC zSolaris_Math_8List[] =
6065 * Machine/OS name selection pattern
6067 #define apzSolaris_Math_8Machs (const char**)NULL
6070 * content selection pattern - do fix if pattern found
6072 tSCC zSolaris_Math_8Select0[] =
6073 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6076 * content bypass pattern - skip fix if pattern found
6078 tSCC zSolaris_Math_8Bypass0[] =
6081 #define SOLARIS_MATH_8_TEST_CT 2
6082 static tTestDesc aSolaris_Math_8Tests[] = {
6083 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6084 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6087 * Fix Command Arguments for Solaris_Math_8
6089 static const char* apzSolaris_Math_8Patch[] = {
6091 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6092 \t\t\t ? __builtin_signbitf(x) \\\n\
6093 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6094 \t\t\t ? __builtin_signbitl(x) \\\n\
6095 \t\t\t : __builtin_signbit(x))",
6096 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6101 * Description of Solaris_Math_9 fix
6103 tSCC zSolaris_Math_9Name[] =
6107 * File name selection pattern
6109 tSCC zSolaris_Math_9List[] =
6112 * Machine/OS name selection pattern
6114 #define apzSolaris_Math_9Machs (const char**)NULL
6117 * content selection pattern - do fix if pattern found
6119 tSCC zSolaris_Math_9Select0[] =
6120 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6123 * content bypass pattern - skip fix if pattern found
6125 tSCC zSolaris_Math_9Bypass0[] =
6128 #define SOLARIS_MATH_9_TEST_CT 2
6129 static tTestDesc aSolaris_Math_9Tests[] = {
6130 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6131 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6134 * Fix Command Arguments for Solaris_Math_9
6136 static const char* apzSolaris_Math_9Patch[] = {
6138 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6139 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6144 * Description of Solaris_Math_10 fix
6146 tSCC zSolaris_Math_10Name[] =
6150 * File name selection pattern
6152 tSCC zSolaris_Math_10List[] =
6155 * Machine/OS name selection pattern
6157 #define apzSolaris_Math_10Machs (const char**)NULL
6160 * content selection pattern - do fix if pattern found
6162 tSCC zSolaris_Math_10Select0[] =
6163 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6165 #define SOLARIS_MATH_10_TEST_CT 1
6166 static tTestDesc aSolaris_Math_10Tests[] = {
6167 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6170 * Fix Command Arguments for Solaris_Math_10
6172 static const char* apzSolaris_Math_10Patch[] = {
6174 "#define\tisinf(x) __builtin_isinf(x)",
6175 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6176 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6177 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6178 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6183 * Description of Solaris_Mutex_Init_2 fix
6185 tSCC zSolaris_Mutex_Init_2Name[] =
6186 "solaris_mutex_init_2";
6189 * File name selection pattern
6191 tSCC zSolaris_Mutex_Init_2List[] =
6194 * Machine/OS name selection pattern
6196 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6197 "*-*-solaris2.[0-9]",
6198 "*-*-solaris2.[0-9][!0-9]*",
6199 (const char*)NULL };
6202 * content selection pattern - do fix if pattern found
6204 tSCC zSolaris_Mutex_Init_2Select0[] =
6205 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6207 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6208 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6209 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6212 * Fix Command Arguments for Solaris_Mutex_Init_2
6214 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6216 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6221 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6222 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6227 * Description of Solaris_Pow_Int_Overload fix
6229 tSCC zSolaris_Pow_Int_OverloadName[] =
6230 "solaris_pow_int_overload";
6233 * File name selection pattern
6235 tSCC zSolaris_Pow_Int_OverloadList[] =
6238 * Machine/OS name selection pattern
6240 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6242 (const char*)NULL };
6245 * content selection pattern - do fix if pattern found
6247 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6248 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6251 #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1
6252 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6253 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6256 * Fix Command Arguments for Solaris_Pow_Int_Overload
6258 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6260 "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6267 * Description of Solaris_Rwlock_Init_1 fix
6269 tSCC zSolaris_Rwlock_Init_1Name[] =
6270 "solaris_rwlock_init_1";
6273 * File name selection pattern
6275 tSCC zSolaris_Rwlock_Init_1List[] =
6278 * Machine/OS name selection pattern
6280 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6282 (const char*)NULL };
6285 * content selection pattern - do fix if pattern found
6287 tSCC zSolaris_Rwlock_Init_1Select0[] =
6288 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6290 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6291 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6292 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6295 * Fix Command Arguments for Solaris_Rwlock_Init_1
6297 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6299 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6302 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6304 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6309 * Description of Solaris_Once_Init_1 fix
6311 tSCC zSolaris_Once_Init_1Name[] =
6312 "solaris_once_init_1";
6315 * File name selection pattern
6317 tSCC zSolaris_Once_Init_1List[] =
6320 * Machine/OS name selection pattern
6322 tSCC* apzSolaris_Once_Init_1Machs[] = {
6324 (const char*)NULL };
6327 * content selection pattern - do fix if pattern found
6329 tSCC zSolaris_Once_Init_1Select0[] =
6330 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6332 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6333 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6334 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6337 * Fix Command Arguments for Solaris_Once_Init_1
6339 static const char* apzSolaris_Once_Init_1Patch[] = {
6342 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6347 * Description of Solaris_Once_Init_2 fix
6349 tSCC zSolaris_Once_Init_2Name[] =
6350 "solaris_once_init_2";
6353 * File name selection pattern
6355 tSCC zSolaris_Once_Init_2List[] =
6358 * Machine/OS name selection pattern
6360 tSCC* apzSolaris_Once_Init_2Machs[] = {
6361 "*-*-solaris2.[0-9]",
6362 "*-*-solaris2.[0-9][!0-9]*",
6363 (const char*)NULL };
6366 * content selection pattern - do fix if pattern found
6368 tSCC zSolaris_Once_Init_2Select0[] =
6369 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6371 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6372 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6373 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6376 * Fix Command Arguments for Solaris_Once_Init_2
6378 static const char* apzSolaris_Once_Init_2Patch[] = {
6380 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6383 %1{0}, {0}, {0}, {%3}%4\n\
6385 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6390 * Description of Solaris_Int_Const fix
6392 tSCC zSolaris_Int_ConstName[] =
6393 "solaris_int_const";
6396 * File name selection pattern
6398 tSCC zSolaris_Int_ConstList[] =
6399 "sys/int_const.h\0";
6401 * Machine/OS name selection pattern
6403 tSCC* apzSolaris_Int_ConstMachs[] = {
6405 (const char*)NULL };
6408 * content selection pattern - do fix if pattern found
6410 tSCC zSolaris_Int_ConstSelect0[] =
6411 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6413 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6415 #define SOLARIS_INT_CONST_TEST_CT 1
6416 static tTestDesc aSolaris_Int_ConstTests[] = {
6417 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6420 * Fix Command Arguments for Solaris_Int_Const
6422 static const char* apzSolaris_Int_ConstPatch[] = {
6424 "#define\tUINT8_C(c)\t(c)\n\
6426 #define\tUINT16_C(c)\t(c)",
6429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6431 * Description of Solaris_Int_Limits_1 fix
6433 tSCC zSolaris_Int_Limits_1Name[] =
6434 "solaris_int_limits_1";
6437 * File name selection pattern
6439 tSCC zSolaris_Int_Limits_1List[] =
6440 "sys/int_limits.h\0";
6442 * Machine/OS name selection pattern
6444 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6446 (const char*)NULL };
6449 * content selection pattern - do fix if pattern found
6451 tSCC zSolaris_Int_Limits_1Select0[] =
6452 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6453 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6455 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6456 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6457 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6460 * Fix Command Arguments for Solaris_Int_Limits_1
6462 static const char* apzSolaris_Int_Limits_1Patch[] = {
6464 "#define\tUINT8_MAX\t(255)\n\
6465 #define\tUINT16_MAX\t(65535)",
6468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6470 * Description of Solaris_Int_Limits_2 fix
6472 tSCC zSolaris_Int_Limits_2Name[] =
6473 "solaris_int_limits_2";
6476 * File name selection pattern
6478 tSCC zSolaris_Int_Limits_2List[] =
6479 "sys/int_limits.h\0";
6481 * Machine/OS name selection pattern
6483 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6485 (const char*)NULL };
6488 * content selection pattern - do fix if pattern found
6490 tSCC zSolaris_Int_Limits_2Select0[] =
6491 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6493 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6494 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6495 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6498 * Fix Command Arguments for Solaris_Int_Limits_2
6500 static const char* apzSolaris_Int_Limits_2Patch[] = {
6502 "#define\t%1_FAST16_%2 %132_%2",
6505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6507 * Description of Solaris_Int_Limits_3 fix
6509 tSCC zSolaris_Int_Limits_3Name[] =
6510 "solaris_int_limits_3";
6513 * File name selection pattern
6515 tSCC zSolaris_Int_Limits_3List[] =
6516 "sys/int_limits.h\0";
6518 * Machine/OS name selection pattern
6520 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6522 (const char*)NULL };
6525 * content selection pattern - do fix if pattern found
6527 tSCC zSolaris_Int_Limits_3Select0[] =
6528 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6530 #define SOLARIS_INT_LIMITS_3_TEST_CT 1
6531 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6532 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6535 * Fix Command Arguments for Solaris_Int_Limits_3
6537 static const char* apzSolaris_Int_Limits_3Patch[] = {
6539 "#define\tSIZE_MAX\t4294967295U",
6542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6544 * Description of Solaris_Int_Types fix
6546 tSCC zSolaris_Int_TypesName[] =
6547 "solaris_int_types";
6550 * File name selection pattern
6552 tSCC zSolaris_Int_TypesList[] =
6553 "sys/int_types.h\0";
6555 * Machine/OS name selection pattern
6557 #define apzSolaris_Int_TypesMachs (const char**)NULL
6560 * content selection pattern - do fix if pattern found
6562 tSCC zSolaris_Int_TypesSelect0[] =
6563 "__STDC__ - 0 == 0";
6566 * content bypass pattern - skip fix if pattern found
6568 tSCC zSolaris_Int_TypesBypass0[] =
6571 #define SOLARIS_INT_TYPES_TEST_CT 2
6572 static tTestDesc aSolaris_Int_TypesTests[] = {
6573 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6574 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6577 * Fix Command Arguments for Solaris_Int_Types
6579 static const char* apzSolaris_Int_TypesPatch[] = {
6581 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6586 * Description of Solaris_Posix_Spawn_Restrict fix
6588 tSCC zSolaris_Posix_Spawn_RestrictName[] =
6589 "solaris_posix_spawn_restrict";
6592 * File name selection pattern
6594 tSCC zSolaris_Posix_Spawn_RestrictList[] =
6597 * Machine/OS name selection pattern
6599 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
6601 (const char*)NULL };
6604 * content selection pattern - do fix if pattern found
6606 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
6607 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
6609 #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1
6610 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
6611 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
6614 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict
6616 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
6618 "%1*_RESTRICT_KYWD %2%3",
6621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6623 * Description of Solaris_Std___Filbuf fix
6625 tSCC zSolaris_Std___FilbufName[] =
6626 "solaris_std___filbuf";
6629 * File name selection pattern
6631 tSCC zSolaris_Std___FilbufList[] =
6634 * Machine/OS name selection pattern
6636 tSCC* apzSolaris_Std___FilbufMachs[] = {
6638 (const char*)NULL };
6641 * content selection pattern - do fix if pattern found
6643 tSCC zSolaris_Std___FilbufSelect0[] =
6644 "(using std::perror;\n\
6648 * content bypass pattern - skip fix if pattern found
6650 tSCC zSolaris_Std___FilbufBypass0[] =
6651 "using std::__filbuf";
6653 #define SOLARIS_STD___FILBUF_TEST_CT 2
6654 static tTestDesc aSolaris_Std___FilbufTests[] = {
6655 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
6656 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
6659 * Fix Command Arguments for Solaris_Std___Filbuf
6661 static const char* apzSolaris_Std___FilbufPatch[] = {
6664 using std::__filbuf;\n\
6665 using std::__flsbuf;\n\
6670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6672 * Description of Solaris_Stdio_Tag fix
6674 tSCC zSolaris_Stdio_TagName[] =
6675 "solaris_stdio_tag";
6678 * File name selection pattern
6680 tSCC zSolaris_Stdio_TagList[] =
6683 * Machine/OS name selection pattern
6685 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6688 * content selection pattern - do fix if pattern found
6690 tSCC zSolaris_Stdio_TagSelect0[] =
6691 "__cplusplus < 54321L";
6694 * content bypass pattern - skip fix if pattern found
6696 tSCC zSolaris_Stdio_TagBypass0[] =
6699 #define SOLARIS_STDIO_TAG_TEST_CT 2
6700 static tTestDesc aSolaris_Stdio_TagTests[] = {
6701 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6702 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6705 * Fix Command Arguments for Solaris_Stdio_Tag
6707 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
6708 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6713 * Description of Solaris_Sys_Va_List fix
6715 tSCC zSolaris_Sys_Va_ListName[] =
6716 "solaris_sys_va_list";
6719 * File name selection pattern
6721 tSCC zSolaris_Sys_Va_ListList[] =
6724 * Machine/OS name selection pattern
6726 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
6728 (const char*)NULL };
6731 * content selection pattern - do fix if pattern found
6733 tSCC zSolaris_Sys_Va_ListSelect0[] =
6735 typedef void \\*__va_list;\n\
6737 typedef char \\*__va_list;\n\
6740 #define SOLARIS_SYS_VA_LIST_TEST_CT 1
6741 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
6742 { TT_EGREP, zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
6745 * Fix Command Arguments for Solaris_Sys_Va_List
6747 static const char* apzSolaris_Sys_Va_ListPatch[] = {
6750 typedef __builtin_va_list __va_list;\n\
6756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6758 * Description of Statsswtch fix
6760 tSCC zStatsswtchName[] =
6764 * File name selection pattern
6766 tSCC zStatsswtchList[] =
6769 * Machine/OS name selection pattern
6771 #define apzStatsswtchMachs (const char**)NULL
6774 * content selection pattern - do fix if pattern found
6776 tSCC zStatsswtchSelect0[] =
6779 #define STATSSWTCH_TEST_CT 1
6780 static tTestDesc aStatsswtchTests[] = {
6781 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6784 * Fix Command Arguments for Statsswtch
6786 static const char* apzStatsswtchPatch[] = {
6791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6793 * Description of Stdio_Stdarg_H fix
6795 tSCC zStdio_Stdarg_HName[] =
6799 * File name selection pattern
6801 tSCC zStdio_Stdarg_HList[] =
6804 * Machine/OS name selection pattern
6806 tSCC* apzStdio_Stdarg_HMachs[] = {
6807 "*-*-solaris2.1[0-9]*",
6808 (const char*)NULL };
6811 * content bypass pattern - skip fix if pattern found
6813 tSCC zStdio_Stdarg_HBypass0[] =
6814 "include.*(stdarg.h|machine/ansi.h)";
6816 #define STDIO_STDARG_H_TEST_CT 1
6817 static tTestDesc aStdio_Stdarg_HTests[] = {
6818 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6821 * Fix Command Arguments for Stdio_Stdarg_H
6823 static const char* apzStdio_Stdarg_HPatch[] = {
6825 "#define __need___va_list\n\
6826 #include <stdarg.h>\n",
6829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6831 * Description of Stdio_Va_List fix
6833 tSCC zStdio_Va_ListName[] =
6837 * File name selection pattern
6839 tSCC zStdio_Va_ListList[] =
6842 * Machine/OS name selection pattern
6844 tSCC* apzStdio_Va_ListMachs[] = {
6845 "*-*-solaris2.1[0-9]*",
6846 (const char*)NULL };
6849 * content bypass pattern - skip fix if pattern found
6851 tSCC zStdio_Va_ListBypass0[] =
6852 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6854 #define STDIO_VA_LIST_TEST_CT 1
6855 static tTestDesc aStdio_Va_ListTests[] = {
6856 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6859 * Fix Command Arguments for Stdio_Va_List
6861 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
6862 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6863 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6864 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6865 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6866 s@ va_list@ __not_va_list__@\n\
6867 s@\\*va_list@*__not_va_list__@\n\
6868 s@ __va_list)@ __gnuc_va_list)@\n\
6869 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6870 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6871 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6872 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6873 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6874 s@VA_LIST@DUMMY_VA_LIST@\n\
6875 s@_Va_LIST@_VA_LIST@",
6878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6880 * Description of Stdio_Va_List_Clients fix
6882 tSCC zStdio_Va_List_ClientsName[] =
6883 "stdio_va_list_clients";
6886 * File name selection pattern
6888 tSCC zStdio_Va_List_ClientsList[] =
6889 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6891 * Machine/OS name selection pattern
6893 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6896 * content bypass pattern - skip fix if pattern found
6898 tSCC zStdio_Va_List_ClientsBypass0[] =
6899 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6900 tSCC zStdio_Va_List_ClientsBypass1[] =
6901 "include <stdarg\\.h>|#ifdef va_start";
6903 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6904 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6905 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6906 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6909 * Fix Command Arguments for Stdio_Va_List_Clients
6911 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
6912 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6913 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6914 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6915 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6916 s@ va_list@ __not_va_list__@\n\
6917 s@\\*va_list@*__not_va_list__@\n\
6918 s@ __va_list)@ __gnuc_va_list)@\n\
6919 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6920 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6921 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6922 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6923 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6924 s@VA_LIST@DUMMY_VA_LIST@\n\
6925 s@_Va_LIST@_VA_LIST@",
6928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6930 * Description of Strict_Ansi_Not fix
6932 tSCC zStrict_Ansi_NotName[] =
6936 * File name selection pattern
6938 #define zStrict_Ansi_NotList (char*)NULL
6940 * Machine/OS name selection pattern
6942 #define apzStrict_Ansi_NotMachs (const char**)NULL
6945 * content selection pattern - do fix if pattern found
6947 tSCC zStrict_Ansi_NotSelect0[] =
6948 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6951 * content bypass pattern - skip fix if pattern found
6953 tSCC zStrict_Ansi_NotBypass0[] =
6954 "GNU and MIPS C compilers define __STDC__ differently";
6955 tSCC zStrict_Ansi_NotBypass1[] =
6956 "__SCO_VERSION__.*__STDC__ != 1";
6959 * perform the C function call test
6961 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6963 #define STRICT_ANSI_NOT_TEST_CT 4
6964 static tTestDesc aStrict_Ansi_NotTests[] = {
6965 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6966 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6967 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6968 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6971 * Fix Command Arguments for Strict_Ansi_Not
6973 static const char* apzStrict_Ansi_NotPatch[] = {
6975 "%1 !defined(__STRICT_ANSI__)",
6978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6980 * Description of Strict_Ansi_Not_Ctd fix
6982 tSCC zStrict_Ansi_Not_CtdName[] =
6983 "strict_ansi_not_ctd";
6986 * File name selection pattern
6988 tSCC zStrict_Ansi_Not_CtdList[] =
6989 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6991 * Machine/OS name selection pattern
6993 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6996 * content selection pattern - do fix if pattern found
6998 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6999 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7002 * perform the C function call test
7004 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7006 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
7007 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7008 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
7009 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7012 * Fix Command Arguments for Strict_Ansi_Not_Ctd
7014 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7016 "%1 !defined(__STRICT_ANSI__)",
7019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7021 * Description of Strict_Ansi_Only fix
7023 tSCC zStrict_Ansi_OnlyName[] =
7027 * File name selection pattern
7029 #define zStrict_Ansi_OnlyList (char*)NULL
7031 * Machine/OS name selection pattern
7033 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7036 * content selection pattern - do fix if pattern found
7038 tSCC zStrict_Ansi_OnlySelect0[] =
7039 "^([ \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)";
7042 * perform the C function call test
7044 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7046 #define STRICT_ANSI_ONLY_TEST_CT 2
7047 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7048 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
7049 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7052 * Fix Command Arguments for Strict_Ansi_Only
7054 static const char* apzStrict_Ansi_OnlyPatch[] = {
7056 "%1 defined(__STRICT_ANSI__)",
7059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7061 * Description of Struct_File fix
7063 tSCC zStruct_FileName[] =
7067 * File name selection pattern
7069 tSCC zStruct_FileList[] =
7072 * Machine/OS name selection pattern
7074 #define apzStruct_FileMachs (const char**)NULL
7077 * content selection pattern - do fix if pattern found
7079 tSCC zStruct_FileSelect0[] =
7080 "^.*xdrstdio_create.*struct __file_s";
7082 #define STRUCT_FILE_TEST_CT 1
7083 static tTestDesc aStruct_FileTests[] = {
7084 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
7087 * Fix Command Arguments for Struct_File
7089 static const char* apzStruct_FilePatch[] = {
7091 "struct __file_s;\n\
7095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7097 * Description of Struct_Sockaddr fix
7099 tSCC zStruct_SockaddrName[] =
7103 * File name selection pattern
7105 tSCC zStruct_SockaddrList[] =
7108 * Machine/OS name selection pattern
7110 #define apzStruct_SockaddrMachs (const char**)NULL
7113 * content selection pattern - do fix if pattern found
7115 tSCC zStruct_SockaddrSelect0[] =
7116 "^.*authdes_create.*struct sockaddr[^_]";
7119 * content bypass pattern - skip fix if pattern found
7121 tSCC zStruct_SockaddrBypass0[] =
7123 tSCC zStruct_SockaddrBypass1[] =
7124 "struct sockaddr;\n";
7126 #define STRUCT_SOCKADDR_TEST_CT 3
7127 static tTestDesc aStruct_SockaddrTests[] = {
7128 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
7129 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
7130 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7133 * Fix Command Arguments for Struct_Sockaddr
7135 static const char* apzStruct_SockaddrPatch[] = {
7137 "struct sockaddr;\n\
7141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7143 * Description of Sun_Auth_Proto fix
7145 tSCC zSun_Auth_ProtoName[] =
7149 * File name selection pattern
7151 tSCC zSun_Auth_ProtoList[] =
7152 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7154 * Machine/OS name selection pattern
7156 #define apzSun_Auth_ProtoMachs (const char**)NULL
7159 * content selection pattern - do fix if pattern found
7161 tSCC zSun_Auth_ProtoSelect0[] =
7162 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7165 * content bypass pattern - skip fix if pattern found
7167 tSCC zSun_Auth_ProtoBypass0[] =
7170 #define SUN_AUTH_PROTO_TEST_CT 2
7171 static tTestDesc aSun_Auth_ProtoTests[] = {
7172 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7173 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7176 * Fix Command Arguments for Sun_Auth_Proto
7178 static const char* apzSun_Auth_ProtoPatch[] = {
7180 "#ifdef __cplusplus\n\
7185 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7190 * Description of Sun_Bogus_Ifdef fix
7192 tSCC zSun_Bogus_IfdefName[] =
7196 * File name selection pattern
7198 tSCC zSun_Bogus_IfdefList[] =
7199 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7201 * Machine/OS name selection pattern
7203 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7206 * content selection pattern - do fix if pattern found
7208 tSCC zSun_Bogus_IfdefSelect0[] =
7209 "#ifdef(.*\\|\\|.*)";
7211 #define SUN_BOGUS_IFDEF_TEST_CT 1
7212 static tTestDesc aSun_Bogus_IfdefTests[] = {
7213 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7216 * Fix Command Arguments for Sun_Bogus_Ifdef
7218 static const char* apzSun_Bogus_IfdefPatch[] = {
7223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7225 * Description of Sun_Catmacro fix
7227 tSCC zSun_CatmacroName[] =
7231 * File name selection pattern
7233 tSCC zSun_CatmacroList[] =
7234 "pixrect/memvar.h\0";
7236 * Machine/OS name selection pattern
7238 #define apzSun_CatmacroMachs (const char**)NULL
7241 * content selection pattern - do fix if pattern found
7243 tSCC zSun_CatmacroSelect0[] =
7244 "^#define[ \t]+CAT\\(a,b\\).*";
7246 #define SUN_CATMACRO_TEST_CT 1
7247 static tTestDesc aSun_CatmacroTests[] = {
7248 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7251 * Fix Command Arguments for Sun_Catmacro
7253 static const char* apzSun_CatmacroPatch[] = {
7256 # define CAT(a,b) a##b\n\
7262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7264 * Description of Sun_Malloc fix
7266 tSCC zSun_MallocName[] =
7270 * File name selection pattern
7272 tSCC zSun_MallocList[] =
7275 * Machine/OS name selection pattern
7277 #define apzSun_MallocMachs (const char**)NULL
7280 * content bypass pattern - skip fix if pattern found
7282 tSCC zSun_MallocBypass0[] =
7283 "_CLASSIC_ANSI_TYPES";
7285 #define SUN_MALLOC_TEST_CT 1
7286 static tTestDesc aSun_MallocTests[] = {
7287 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7290 * Fix Command Arguments for Sun_Malloc
7292 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7293 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7294 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7295 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7296 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7297 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7302 * Description of Sun_Rusers_Semi fix
7304 tSCC zSun_Rusers_SemiName[] =
7308 * File name selection pattern
7310 tSCC zSun_Rusers_SemiList[] =
7311 "rpcsvc/rusers.h\0";
7313 * Machine/OS name selection pattern
7315 #define apzSun_Rusers_SemiMachs (const char**)NULL
7318 * content selection pattern - do fix if pattern found
7320 tSCC zSun_Rusers_SemiSelect0[] =
7323 #define SUN_RUSERS_SEMI_TEST_CT 1
7324 static tTestDesc aSun_Rusers_SemiTests[] = {
7325 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7328 * Fix Command Arguments for Sun_Rusers_Semi
7330 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7331 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7336 * Description of Sun_Signal fix
7338 tSCC zSun_SignalName[] =
7342 * File name selection pattern
7344 tSCC zSun_SignalList[] =
7345 "sys/signal.h\0signal.h\0";
7347 * Machine/OS name selection pattern
7349 #define apzSun_SignalMachs (const char**)NULL
7352 * content selection pattern - do fix if pattern found
7354 tSCC zSun_SignalSelect0[] =
7355 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7357 #define SUN_SIGNAL_TEST_CT 1
7358 static tTestDesc aSun_SignalTests[] = {
7359 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7362 * Fix Command Arguments for Sun_Signal
7364 static const char* apzSun_SignalPatch[] = {
7366 "#ifdef __cplusplus\n\
7367 void\t(*signal(...))(...);\n\
7373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7375 * Description of Sunos_Strlen fix
7377 tSCC zSunos_StrlenName[] =
7381 * File name selection pattern
7383 tSCC zSunos_StrlenList[] =
7386 * Machine/OS name selection pattern
7388 #define apzSunos_StrlenMachs (const char**)NULL
7391 * content selection pattern - do fix if pattern found
7393 tSCC zSunos_StrlenSelect0[] =
7394 "int[ \t]*strlen\\(\\);(.*)";
7396 #define SUNOS_STRLEN_TEST_CT 1
7397 static tTestDesc aSunos_StrlenTests[] = {
7398 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7401 * Fix Command Arguments for Sunos_Strlen
7403 static const char* apzSunos_StrlenPatch[] = {
7405 "__SIZE_TYPE__ strlen();%1",
7408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7410 * Description of Svr4_Disable_Opt fix
7412 tSCC zSvr4_Disable_OptName[] =
7416 * File name selection pattern
7418 tSCC zSvr4_Disable_OptList[] =
7421 * Machine/OS name selection pattern
7423 #define apzSvr4_Disable_OptMachs (const char**)NULL
7426 * content selection pattern - do fix if pattern found
7428 tSCC zSvr4_Disable_OptSelect0[] =
7429 "#define.*__std_hdr_";
7431 #define SVR4_DISABLE_OPT_TEST_CT 1
7432 static tTestDesc aSvr4_Disable_OptTests[] = {
7433 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7436 * Fix Command Arguments for Svr4_Disable_Opt
7438 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7439 "-e", "/#define.*__std_hdr_/d",
7442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7444 * Description of Svr4_Getcwd fix
7446 tSCC zSvr4_GetcwdName[] =
7450 * File name selection pattern
7452 tSCC zSvr4_GetcwdList[] =
7453 "stdlib.h\0unistd.h\0prototypes.h\0";
7455 * Machine/OS name selection pattern
7457 #define apzSvr4_GetcwdMachs (const char**)NULL
7460 * content selection pattern - do fix if pattern found
7462 tSCC zSvr4_GetcwdSelect0[] =
7463 "getcwd\\(char \\*, int\\)";
7465 #define SVR4_GETCWD_TEST_CT 1
7466 static tTestDesc aSvr4_GetcwdTests[] = {
7467 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7470 * Fix Command Arguments for Svr4_Getcwd
7472 static const char* apzSvr4_GetcwdPatch[] = {
7474 "getcwd(char *, size_t)",
7477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7479 * Description of Svr4_Profil fix
7481 tSCC zSvr4_ProfilName[] =
7485 * File name selection pattern
7487 tSCC zSvr4_ProfilList[] =
7488 "stdlib.h\0unistd.h\0";
7490 * Machine/OS name selection pattern
7492 #define apzSvr4_ProfilMachs (const char**)NULL
7495 * content selection pattern - do fix if pattern found
7497 tSCC zSvr4_ProfilSelect0[] =
7498 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7500 #define SVR4_PROFIL_TEST_CT 1
7501 static tTestDesc aSvr4_ProfilTests[] = {
7502 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7505 * Fix Command Arguments for Svr4_Profil
7507 static const char* apzSvr4_ProfilPatch[] = {
7509 "profil(unsigned short *, size_t, int, unsigned int)",
7512 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7514 * Description of Svr4_Sighandler_Type fix
7516 tSCC zSvr4_Sighandler_TypeName[] =
7517 "svr4_sighandler_type";
7520 * File name selection pattern
7522 tSCC zSvr4_Sighandler_TypeList[] =
7525 * Machine/OS name selection pattern
7527 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7530 * content selection pattern - do fix if pattern found
7532 tSCC zSvr4_Sighandler_TypeSelect0[] =
7533 "void *\\(\\*\\)\\(\\)";
7535 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7536 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7537 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7540 * Fix Command Arguments for Svr4_Sighandler_Type
7542 static const char* apzSvr4_Sighandler_TypePatch[] = {
7547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7549 * Description of Svr4_Undeclared_Getrnge fix
7551 tSCC zSvr4_Undeclared_GetrngeName[] =
7552 "svr4_undeclared_getrnge";
7555 * File name selection pattern
7557 tSCC zSvr4_Undeclared_GetrngeList[] =
7560 * Machine/OS name selection pattern
7562 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7565 * content selection pattern - do fix if pattern found
7567 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7571 * content bypass pattern - skip fix if pattern found
7573 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7574 "static void getrnge";
7576 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7577 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7578 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7579 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7582 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7584 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7587 static int getrnge ();",
7588 "^static int[ \t]+size;",
7591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7593 * Description of Sysv68_String fix
7595 tSCC zSysv68_StringName[] =
7599 * File name selection pattern
7601 tSCC zSysv68_StringList[] =
7602 "testing.h\0string.h\0";
7604 * Machine/OS name selection pattern
7606 #define apzSysv68_StringMachs (const char**)NULL
7609 * content bypass pattern - skip fix if pattern found
7611 tSCC zSysv68_StringBypass0[] =
7612 "_CLASSIC_ANSI_TYPES";
7614 #define SYSV68_STRING_TEST_CT 1
7615 static tTestDesc aSysv68_StringTests[] = {
7616 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7619 * Fix Command Arguments for Sysv68_String
7621 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7622 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7623 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7624 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7625 "-e", "/^extern char$/N",
7626 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7627 "-e", "/^extern int$/N",
7628 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7629 "-e", "/^\tstrncmp(),$/N",
7630 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7631 extern unsigned int\\\n\
7635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7637 * Description of Sysz_Stdlib_For_Sun fix
7639 tSCC zSysz_Stdlib_For_SunName[] =
7640 "sysz_stdlib_for_sun";
7643 * File name selection pattern
7645 tSCC zSysz_Stdlib_For_SunList[] =
7648 * Machine/OS name selection pattern
7650 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7653 * content selection pattern - do fix if pattern found
7655 tSCC zSysz_Stdlib_For_SunSelect0[] =
7656 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7659 * content bypass pattern - skip fix if pattern found
7661 tSCC zSysz_Stdlib_For_SunBypass0[] =
7662 "_CLASSIC_ANSI_TYPES";
7664 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7665 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7666 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7667 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7670 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7672 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7679 * Description of Thread_Keyword fix
7681 tSCC zThread_KeywordName[] =
7685 * File name selection pattern
7687 tSCC zThread_KeywordList[] =
7688 "pthread.h\0bits/sigthread.h\0";
7690 * Machine/OS name selection pattern
7692 #define apzThread_KeywordMachs (const char**)NULL
7695 * content selection pattern - do fix if pattern found
7697 tSCC zThread_KeywordSelect0[] =
7698 "([* ])__thread([,)])";
7700 #define THREAD_KEYWORD_TEST_CT 1
7701 static tTestDesc aThread_KeywordTests[] = {
7702 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7705 * Fix Command Arguments for Thread_Keyword
7707 static const char* apzThread_KeywordPatch[] = {
7712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7714 * Description of Tinfo_Cplusplus fix
7716 tSCC zTinfo_CplusplusName[] =
7720 * File name selection pattern
7722 tSCC zTinfo_CplusplusList[] =
7725 * Machine/OS name selection pattern
7727 #define apzTinfo_CplusplusMachs (const char**)NULL
7730 * content selection pattern - do fix if pattern found
7732 tSCC zTinfo_CplusplusSelect0[] =
7735 #define TINFO_CPLUSPLUS_TEST_CT 1
7736 static tTestDesc aTinfo_CplusplusTests[] = {
7737 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7740 * Fix Command Arguments for Tinfo_Cplusplus
7742 static const char* apzTinfo_CplusplusPatch[] = {
7747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7749 * Description of Ultrix_Const fix
7751 tSCC zUltrix_ConstName[] =
7755 * File name selection pattern
7757 tSCC zUltrix_ConstList[] =
7760 * Machine/OS name selection pattern
7762 #define apzUltrix_ConstMachs (const char**)NULL
7765 * content selection pattern - do fix if pattern found
7767 tSCC zUltrix_ConstSelect0[] =
7768 "perror\\( char \\*";
7770 #define ULTRIX_CONST_TEST_CT 1
7771 static tTestDesc aUltrix_ConstTests[] = {
7772 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7775 * Fix Command Arguments for Ultrix_Const
7777 static const char* apzUltrix_ConstPatch[] = {
7780 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7783 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7785 * Description of Ultrix_Const2 fix
7787 tSCC zUltrix_Const2Name[] =
7791 * File name selection pattern
7793 tSCC zUltrix_Const2List[] =
7796 * Machine/OS name selection pattern
7798 #define apzUltrix_Const2Machs (const char**)NULL
7801 * content selection pattern - do fix if pattern found
7803 tSCC zUltrix_Const2Select0[] =
7804 "\\*fopen\\( char \\*";
7806 #define ULTRIX_CONST2_TEST_CT 1
7807 static tTestDesc aUltrix_Const2Tests[] = {
7808 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7811 * Fix Command Arguments for Ultrix_Const2
7813 static const char* apzUltrix_Const2Patch[] = {
7815 "%1( const char *%3, const char *",
7816 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7821 * Description of Va_I960_Macro fix
7823 tSCC zVa_I960_MacroName[] =
7827 * File name selection pattern
7829 tSCC zVa_I960_MacroList[] =
7830 "arch/i960/archI960.h\0";
7832 * Machine/OS name selection pattern
7834 #define apzVa_I960_MacroMachs (const char**)NULL
7837 * content selection pattern - do fix if pattern found
7839 tSCC zVa_I960_MacroSelect0[] =
7840 "__(vsiz|vali|vpad|alignof__)";
7842 #define VA_I960_MACRO_TEST_CT 1
7843 static tTestDesc aVa_I960_MacroTests[] = {
7844 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7847 * Fix Command Arguments for Va_I960_Macro
7849 static const char* apzVa_I960_MacroPatch[] = {
7854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7856 * Description of Vms_Define_Can_Use_Extern_Prefix fix
7858 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
7859 "vms_define_can_use_extern_prefix";
7862 * File name selection pattern
7864 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
7865 "rtldef/decc$types.h\0";
7867 * Machine/OS name selection pattern
7869 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
7871 (const char*)NULL };
7874 * content selection pattern - do fix if pattern found
7876 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
7878 #[ \t]*if defined\\(__DECCXX\\)\n\
7879 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
7881 #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1
7882 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
7883 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
7886 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
7888 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
7890 "%0# elif defined (__GNUC__)\n\
7891 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
7894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7896 * Description of Vms_Use_Pragma_Extern_Model fix
7898 tSCC zVms_Use_Pragma_Extern_ModelName[] =
7899 "vms_use_pragma_extern_model";
7902 * File name selection pattern
7904 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
7906 * Machine/OS name selection pattern
7908 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
7910 (const char*)NULL };
7913 * content selection pattern - do fix if pattern found
7915 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
7916 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
7917 # pragma extern_model __save\n";
7919 #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1
7920 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
7921 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
7924 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model
7926 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
7928 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
7929 # pragma extern_model __save\n",
7932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7934 * Description of Vms_Disable_Decc_String_Builtins fix
7936 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
7937 "vms_disable_decc_string_builtins";
7940 * File name selection pattern
7942 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
7943 "rtldef/string.h\0";
7945 * Machine/OS name selection pattern
7947 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
7949 (const char*)NULL };
7952 * content selection pattern - do fix if pattern found
7954 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
7955 "#if !defined\\(__VAX\\)\n";
7957 #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1
7958 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
7959 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
7962 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins
7964 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
7966 "#if !defined(__VAX) && !defined(__GNUC__)\n",
7969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7971 * Description of Vms_Use_Quoted_Include fix
7973 tSCC zVms_Use_Quoted_IncludeName[] =
7974 "vms_use_quoted_include";
7977 * File name selection pattern
7979 tSCC zVms_Use_Quoted_IncludeList[] =
7980 "rtldef/wait.h\0starlet_c/pthread.h\0";
7982 * Machine/OS name selection pattern
7984 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
7986 (const char*)NULL };
7989 * content selection pattern - do fix if pattern found
7991 tSCC zVms_Use_Quoted_IncludeSelect0[] =
7992 "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
7994 #define VMS_USE_QUOTED_INCLUDE_TEST_CT 1
7995 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
7996 { TT_EGREP, zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
7999 * Fix Command Arguments for Vms_Use_Quoted_Include
8001 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8008 * Description of Vms_Add_Missing_Braces fix
8010 tSCC zVms_Add_Missing_BracesName[] =
8011 "vms_add_missing_braces";
8014 * File name selection pattern
8016 tSCC zVms_Add_Missing_BracesList[] =
8017 "rtldef/signal.h\0";
8019 * Machine/OS name selection pattern
8021 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8023 (const char*)NULL };
8026 * content selection pattern - do fix if pattern found
8028 tSCC zVms_Add_Missing_BracesSelect0[] =
8029 "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8031 #define VMS_ADD_MISSING_BRACES_TEST_CT 1
8032 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8033 { TT_EGREP, zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8036 * Fix Command Arguments for Vms_Add_Missing_Braces
8038 static const char* apzVms_Add_Missing_BracesPatch[] = {
8043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8045 * Description of Vms_Do_Not_Redeclare_Hostalias fix
8047 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8048 "vms_do_not_redeclare_hostalias";
8051 * File name selection pattern
8053 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8054 "rtldef/resolv.h\0";
8056 * Machine/OS name selection pattern
8058 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8060 (const char*)NULL };
8063 * content selection pattern - do fix if pattern found
8065 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8066 "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8067 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8069 #define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1
8070 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8071 { TT_EGREP, zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8074 * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8076 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8082 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8084 * Description of Vms_Decc_Builtin fix
8086 tSCC zVms_Decc_BuiltinName[] =
8090 * File name selection pattern
8092 tSCC zVms_Decc_BuiltinList[] =
8093 "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8095 * Machine/OS name selection pattern
8097 tSCC* apzVms_Decc_BuiltinMachs[] = {
8099 (const char*)NULL };
8102 * content selection pattern - do fix if pattern found
8104 tSCC zVms_Decc_BuiltinSelect0[] =
8105 "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8107 #define VMS_DECC_BUILTIN_TEST_CT 1
8108 static tTestDesc aVms_Decc_BuiltinTests[] = {
8109 { TT_EGREP, zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8112 * Fix Command Arguments for Vms_Decc_Builtin
8114 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8115 "-e", "s@__MEMSET@memset@",
8116 "-e", "s@__MEMMOVE@memmove@",
8117 "-e", "s@__MEMCPY@memcpy@",
8118 "-e", "s@__STRLEN@strlen@",
8119 "-e", "s@__STRCPY@strcpy@",
8122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8124 * Description of Vms_No_64bit_Getopt fix
8126 tSCC zVms_No_64bit_GetoptName[] =
8127 "vms_no_64bit_getopt";
8130 * File name selection pattern
8132 tSCC zVms_No_64bit_GetoptList[] =
8133 "rtldef/stdio.h\0rtldef/unistd.h\0";
8135 * Machine/OS name selection pattern
8137 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8139 (const char*)NULL };
8142 * content selection pattern - do fix if pattern found
8144 tSCC zVms_No_64bit_GetoptSelect0[] =
8145 "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8147 #define VMS_NO_64BIT_GETOPT_TEST_CT 1
8148 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8149 { TT_EGREP, zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8152 * Fix Command Arguments for Vms_No_64bit_Getopt
8154 static const char* apzVms_No_64bit_GetoptPatch[] = {
8156 "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\
8160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8162 * Description of Vms_Forward_Declare_Struct fix
8164 tSCC zVms_Forward_Declare_StructName[] =
8165 "vms_forward_declare_struct";
8168 * File name selection pattern
8170 tSCC zVms_Forward_Declare_StructList[] =
8173 * Machine/OS name selection pattern
8175 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8177 (const char*)NULL };
8180 * content selection pattern - do fix if pattern found
8182 tSCC zVms_Forward_Declare_StructSelect0[] =
8183 "(/\\* forward decls for C\\+\\+ \\*/\n\
8184 )#ifdef __cplusplus\n";
8186 #define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1
8187 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8188 { TT_EGREP, zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8191 * Fix Command Arguments for Vms_Forward_Declare_Struct
8193 static const char* apzVms_Forward_Declare_StructPatch[] = {
8195 "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8200 * Description of Vms_Use_Fast_Setjmp fix
8202 tSCC zVms_Use_Fast_SetjmpName[] =
8203 "vms_use_fast_setjmp";
8206 * File name selection pattern
8208 tSCC zVms_Use_Fast_SetjmpList[] =
8209 "rtldef/setjmp.h\0";
8211 * Machine/OS name selection pattern
8213 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8215 (const char*)NULL };
8218 * content selection pattern - do fix if pattern found
8220 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8221 "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8223 #define VMS_USE_FAST_SETJMP_TEST_CT 1
8224 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8225 { TT_EGREP, zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8228 * Fix Command Arguments for Vms_Use_Fast_Setjmp
8230 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8232 "%0 defined (__GNUC__) ||",
8235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8237 * Description of Void_Null fix
8239 tSCC zVoid_NullName[] =
8243 * File name selection pattern
8245 tSCC zVoid_NullList[] =
8246 "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";
8248 * Machine/OS name selection pattern
8250 #define apzVoid_NullMachs (const char**)NULL
8253 * content selection pattern - do fix if pattern found
8255 tSCC zVoid_NullSelect0[] =
8256 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8259 * content bypass pattern - skip fix if pattern found
8261 tSCC zVoid_NullBypass0[] =
8263 tSCC zVoid_NullBypass1[] =
8266 #define VOID_NULL_TEST_CT 3
8267 static tTestDesc aVoid_NullTests[] = {
8268 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8269 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL },
8270 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8273 * Fix Command Arguments for Void_Null
8275 static const char* apzVoid_NullPatch[] = {
8280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8282 * Description of Vxworks_Gcc_Problem fix
8284 tSCC zVxworks_Gcc_ProblemName[] =
8285 "vxworks_gcc_problem";
8288 * File name selection pattern
8290 tSCC zVxworks_Gcc_ProblemList[] =
8291 "types/vxTypesBase.h\0";
8293 * Machine/OS name selection pattern
8295 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8298 * content selection pattern - do fix if pattern found
8300 tSCC zVxworks_Gcc_ProblemSelect0[] =
8301 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8303 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8304 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8305 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8308 * Fix Command Arguments for Vxworks_Gcc_Problem
8310 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8311 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8312 "-e", "/[ \t]size_t/i\\\n\
8313 #ifndef _GCC_SIZE_T\\\n\
8314 #define _GCC_SIZE_T\n",
8315 "-e", "/[ \t]size_t/a\\\n\
8317 "-e", "/[ \t]ptrdiff_t/i\\\n\
8318 #ifndef _GCC_PTRDIFF_T\\\n\
8319 #define _GCC_PTRDIFF_T\n",
8320 "-e", "/[ \t]ptrdiff_t/a\\\n\
8322 "-e", "/[ \t]wchar_t/i\\\n\
8323 #ifndef _GCC_WCHAR_T\\\n\
8324 #define _GCC_WCHAR_T\n",
8325 "-e", "/[ \t]wchar_t/a\\\n\
8329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8331 * Description of Vxworks_Needs_Vxtypes fix
8333 tSCC zVxworks_Needs_VxtypesName[] =
8334 "vxworks_needs_vxtypes";
8337 * File name selection pattern
8339 tSCC zVxworks_Needs_VxtypesList[] =
8342 * Machine/OS name selection pattern
8344 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8347 * content selection pattern - do fix if pattern found
8349 tSCC zVxworks_Needs_VxtypesSelect0[] =
8350 "uint_t([ \t]+_clocks_per_sec)";
8352 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8353 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8354 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8357 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8359 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8366 * Description of Vxworks_Needs_Vxworks fix
8368 tSCC zVxworks_Needs_VxworksName[] =
8369 "vxworks_needs_vxworks";
8372 * File name selection pattern
8374 tSCC zVxworks_Needs_VxworksList[] =
8377 * Machine/OS name selection pattern
8379 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8382 * content selection pattern - do fix if pattern found
8384 tSCC zVxworks_Needs_VxworksSelect0[] =
8385 "#[ \t]define[ \t]+__INCstath";
8388 * perform the 'test' shell command - do fix on success
8390 tSCC zVxworks_Needs_VxworksTest0[] =
8391 " -r types/vxTypesOld.h";
8392 tSCC zVxworks_Needs_VxworksTest1[] =
8393 " -n \"`egrep '#include' $file`\"";
8394 tSCC zVxworks_Needs_VxworksTest2[] =
8395 " -n \"`egrep ULONG $file`\"";
8397 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8398 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8399 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8400 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8401 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8402 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8405 * Fix Command Arguments for Vxworks_Needs_Vxworks
8407 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8408 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8409 #include <types/vxTypesOld.h>\n",
8412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8414 * Description of Vxworks_Time fix
8416 tSCC zVxworks_TimeName[] =
8420 * File name selection pattern
8422 tSCC zVxworks_TimeList[] =
8425 * Machine/OS name selection pattern
8427 #define apzVxworks_TimeMachs (const char**)NULL
8430 * content selection pattern - do fix if pattern found
8432 tSCC zVxworks_TimeSelect0[] =
8433 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8436 * perform the 'test' shell command - do fix on success
8438 tSCC zVxworks_TimeTest0[] =
8441 #define VXWORKS_TIME_TEST_CT 2
8442 static tTestDesc aVxworks_TimeTests[] = {
8443 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8444 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8447 * Fix Command Arguments for Vxworks_Time
8449 static const char* apzVxworks_TimePatch[] = {
8451 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8452 #ifdef __cplusplus\n\
8453 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8455 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8457 #define __gcc_VOIDFUNCPTR_defined\n\
8459 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8464 * Description of X11_Class fix
8466 tSCC zX11_ClassName[] =
8470 * File name selection pattern
8472 tSCC zX11_ClassList[] =
8475 * Machine/OS name selection pattern
8477 #define apzX11_ClassMachs (const char**)NULL
8480 * content selection pattern - do fix if pattern found
8482 tSCC zX11_ClassSelect0[] =
8483 "^([ \t]*char \\*)class;(.*)";
8486 * content bypass pattern - skip fix if pattern found
8488 tSCC zX11_ClassBypass0[] =
8491 #define X11_CLASS_TEST_CT 2
8492 static tTestDesc aX11_ClassTests[] = {
8493 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8494 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8497 * Fix Command Arguments for X11_Class
8499 static const char* apzX11_ClassPatch[] = {
8501 "#ifdef __cplusplus\n\
8508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8510 * Description of X11_Class_Usage fix
8512 tSCC zX11_Class_UsageName[] =
8516 * File name selection pattern
8518 tSCC zX11_Class_UsageList[] =
8519 "Xm/BaseClassI.h\0";
8521 * Machine/OS name selection pattern
8523 #define apzX11_Class_UsageMachs (const char**)NULL
8526 * content selection pattern - do fix if pattern found
8528 tSCC zX11_Class_UsageSelect0[] =
8532 * content bypass pattern - skip fix if pattern found
8534 tSCC zX11_Class_UsageBypass0[] =
8537 #define X11_CLASS_USAGE_TEST_CT 2
8538 static tTestDesc aX11_Class_UsageTests[] = {
8539 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8540 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8543 * Fix Command Arguments for X11_Class_Usage
8545 static const char* apzX11_Class_UsagePatch[] = {
8550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8552 * Description of X11_New fix
8554 tSCC zX11_NewName[] =
8558 * File name selection pattern
8560 tSCC zX11_NewList[] =
8563 * Machine/OS name selection pattern
8565 #define apzX11_NewMachs (const char**)NULL
8568 * content bypass pattern - skip fix if pattern found
8570 tSCC zX11_NewBypass0[] =
8573 #define X11_NEW_TEST_CT 1
8574 static tTestDesc aX11_NewTests[] = {
8575 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8578 * Fix Command Arguments for X11_New
8580 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8581 "-e", "/Widget\told, new;/i\\\n\
8582 #ifdef __cplusplus\\\n\
8583 \\\tWidget\told, c_new;\\\n\
8585 "-e", "/Widget\told, new;/a\\\n\
8587 "-e", "s/Widget new,/Widget c_new,/g",
8590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8592 * Description of X11_Sprintf fix
8594 tSCC zX11_SprintfName[] =
8598 * File name selection pattern
8600 tSCC zX11_SprintfList[] =
8601 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8603 * Machine/OS name selection pattern
8605 #define apzX11_SprintfMachs (const char**)NULL
8608 * content selection pattern - do fix if pattern found
8610 tSCC zX11_SprintfSelect0[] =
8611 "^extern char \\*\tsprintf\\(\\);$";
8613 #define X11_SPRINTF_TEST_CT 1
8614 static tTestDesc aX11_SprintfTests[] = {
8615 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8618 * Fix Command Arguments for X11_Sprintf
8620 static const char* apzX11_SprintfPatch[] = {
8622 "#ifndef __STDC__\n\
8624 #endif /* !defined __STDC__ */",
8628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8632 #define REGEX_COUNT 255
8633 #define MACH_LIST_SIZE_LIMIT 181
8634 #define FIX_COUNT 212
8637 * Enumerate the fixes
8640 AAB_AIX_STDIO_FIXIDX,
8641 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8642 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8643 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8644 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8645 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8646 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8647 AAB_SUN_MEMCPY_FIXIDX,
8650 AIX_NET_IF_ARP_FIXIDX,
8651 AIX_ONCE_INIT_1_FIXIDX,
8652 AIX_ONCE_INIT_2_FIXIDX,
8654 AIX_STDINT_1_FIXIDX,
8655 AIX_STDINT_2_FIXIDX,
8656 AIX_STDINT_3_FIXIDX,
8657 AIX_STDINT_4_FIXIDX,
8658 AIX_STDINT_5_FIXIDX,
8659 AIX_SYSMACHINE_FIXIDX,
8660 AIX_SYSWAIT_2_FIXIDX,
8661 AIX_VOLATILE_FIXIDX,
8662 ALPHA___ASSERT_FIXIDX,
8663 ALPHA_ASSERT_FIXIDX,
8664 ALPHA_GETOPT_FIXIDX,
8665 ALPHA_IF_SEMICOLON_FIXIDX,
8666 ALPHA_PARENS_FIXIDX,
8668 AVOID_BOOL_DEFINE_FIXIDX,
8669 AVOID_BOOL_TYPE_FIXIDX,
8670 AVOID_WCHAR_T_TYPE_FIXIDX,
8671 BAD_STRUCT_TERM_FIXIDX,
8673 BROKEN_ASSERT_STDIO_FIXIDX,
8674 BROKEN_ASSERT_STDLIB_FIXIDX,
8677 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8678 CDEF_CPLUSPLUS_FIXIDX,
8679 CTRL_QUOTES_DEF_FIXIDX,
8680 CTRL_QUOTES_USE_FIXIDX,
8682 DARWIN_EXTERNC_FIXIDX,
8683 DARWIN_GCC4_BREAKAGE_FIXIDX,
8684 DARWIN_PRIVATE_EXTERN_FIXIDX,
8685 DARWIN_STDINT_1_FIXIDX,
8686 DARWIN_STDINT_2_FIXIDX,
8687 DARWIN_STDINT_3_FIXIDX,
8688 DARWIN_STDINT_4_FIXIDX,
8689 DARWIN_STDINT_5_FIXIDX,
8690 DARWIN_STDINT_6_FIXIDX,
8691 DARWIN_STDINT_7_FIXIDX,
8692 DEC_INTERN_ASM_FIXIDX,
8693 DJGPP_WCHAR_H_FIXIDX,
8695 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8696 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8697 GLIBC_C99_INLINE_1_FIXIDX,
8698 GLIBC_C99_INLINE_1A_FIXIDX,
8699 GLIBC_C99_INLINE_2_FIXIDX,
8700 GLIBC_C99_INLINE_3_FIXIDX,
8701 GLIBC_C99_INLINE_4_FIXIDX,
8702 GLIBC_MUTEX_INIT_FIXIDX,
8703 GLIBC_STDINT_FIXIDX,
8704 GLIBC_STRNCPY_FIXIDX,
8705 GLIBC_TGMATH_FIXIDX,
8709 HPPA_HPUX_FP_MACROS_FIXIDX,
8710 HPUX10_CPP_POW_INLINE_FIXIDX,
8711 HPUX11_CPP_POW_INLINE_FIXIDX,
8712 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8713 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8714 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8716 HPUX11_FABSF_FIXIDX,
8717 HPUX11_PTHREAD_CONST_FIXIDX,
8718 HPUX11_SIZE_T_FIXIDX,
8719 HPUX11_SNPRINTF_FIXIDX,
8720 HPUX11_VSNPRINTF_FIXIDX,
8721 HPUX8_BOGUS_INLINES_FIXIDX,
8722 HPUX_CTYPE_MACROS_FIXIDX,
8724 HPUX_LONG_DOUBLE_FIXIDX,
8725 HPUX_LONG_DOUBLE_2_FIXIDX,
8726 HPUX_SYSTIME_FIXIDX,
8727 HPUX_SPU_INFO_FIXIDX,
8728 HPUX11_EXTERN_SENDFILE_FIXIDX,
8729 HPUX11_EXTERN_SENDPATH_FIXIDX,
8730 HPUX_EXTERN_ERRNO_FIXIDX,
8731 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8732 HPUX_C99_INTPTR_FIXIDX,
8733 HPUX_C99_INTTYPES_FIXIDX,
8734 HPUX_C99_INTTYPES2_FIXIDX,
8735 HPUX_STDINT_LEAST_FAST_FIXIDX,
8736 HPUX_INTTYPE_INT8_T_FIXIDX,
8737 HPUX_IMAGINARY_I_FIXIDX,
8738 HUGE_VAL_HEX_FIXIDX,
8739 HUGE_VALF_HEX_FIXIDX,
8740 HUGE_VALL_HEX_FIXIDX,
8741 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8742 IO_QUOTES_DEF_FIXIDX,
8743 IO_QUOTES_USE_FIXIDX,
8744 IP_MISSING_SEMI_FIXIDX,
8745 IRIX_LIMITS_CONST_FIXIDX,
8746 IRIX_STDIO_VA_LIST_FIXIDX,
8747 KANDR_CONCAT_FIXIDX,
8748 LINUX_IA64_UCONTEXT_FIXIDX,
8749 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8750 LYNXOS_MISSING_PUTENV_FIXIDX,
8751 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8752 MACHINE_NAME_FIXIDX,
8753 MATH_EXCEPTION_FIXIDX,
8754 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8755 NESTED_AUTH_DES_FIXIDX,
8756 NETBSD_C99_INLINE_1_FIXIDX,
8757 NETBSD_C99_INLINE_2_FIXIDX,
8758 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8759 NEWLIB_STDINT_1_FIXIDX,
8760 NEWLIB_STDINT_2_FIXIDX,
8761 NEXT_MATH_PREFIX_FIXIDX,
8762 NEXT_TEMPLATE_FIXIDX,
8763 NEXT_VOLITILE_FIXIDX,
8764 NEXT_WAIT_UNION_FIXIDX,
8765 NODEENT_SYNTAX_FIXIDX,
8766 OPENBSD_NULL_DEFINITION_FIXIDX,
8767 OBSTACK_LVALUE_CAST_FIXIDX,
8768 OPENBSD_VA_START_FIXIDX,
8769 OSF_NAMESPACE_A_FIXIDX,
8770 OSF_NAMESPACE_C_FIXIDX,
8771 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8772 READ_RET_TYPE_FIXIDX,
8773 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8774 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8775 RS6000_DOUBLE_FIXIDX,
8776 RS6000_FCHMOD_FIXIDX,
8777 RS6000_PARAM_FIXIDX,
8778 SOLARIS___RESTRICT_FIXIDX,
8779 SOLARIS_COMPLEX_FIXIDX,
8780 SOLARIS_COMPLEX_CXX_FIXIDX,
8781 SOLARIS_CXX_LINKAGE_FIXIDX,
8782 SOLARIS_GETC_STRICT_STDC_FIXIDX,
8783 SOLARIS_LONGJMP_NORETURN_FIXIDX,
8784 SOLARIS_MATH_1_FIXIDX,
8785 SOLARIS_MATH_2_FIXIDX,
8786 SOLARIS_MATH_3_FIXIDX,
8787 SOLARIS_MATH_4_FIXIDX,
8788 SOLARIS_MATH_8_FIXIDX,
8789 SOLARIS_MATH_9_FIXIDX,
8790 SOLARIS_MATH_10_FIXIDX,
8791 SOLARIS_MUTEX_INIT_2_FIXIDX,
8792 SOLARIS_POW_INT_OVERLOAD_FIXIDX,
8793 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8794 SOLARIS_ONCE_INIT_1_FIXIDX,
8795 SOLARIS_ONCE_INIT_2_FIXIDX,
8796 SOLARIS_INT_CONST_FIXIDX,
8797 SOLARIS_INT_LIMITS_1_FIXIDX,
8798 SOLARIS_INT_LIMITS_2_FIXIDX,
8799 SOLARIS_INT_LIMITS_3_FIXIDX,
8800 SOLARIS_INT_TYPES_FIXIDX,
8801 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
8802 SOLARIS_STD___FILBUF_FIXIDX,
8803 SOLARIS_STDIO_TAG_FIXIDX,
8804 SOLARIS_SYS_VA_LIST_FIXIDX,
8806 STDIO_STDARG_H_FIXIDX,
8807 STDIO_VA_LIST_FIXIDX,
8808 STDIO_VA_LIST_CLIENTS_FIXIDX,
8809 STRICT_ANSI_NOT_FIXIDX,
8810 STRICT_ANSI_NOT_CTD_FIXIDX,
8811 STRICT_ANSI_ONLY_FIXIDX,
8813 STRUCT_SOCKADDR_FIXIDX,
8814 SUN_AUTH_PROTO_FIXIDX,
8815 SUN_BOGUS_IFDEF_FIXIDX,
8816 SUN_CATMACRO_FIXIDX,
8818 SUN_RUSERS_SEMI_FIXIDX,
8820 SUNOS_STRLEN_FIXIDX,
8821 SVR4_DISABLE_OPT_FIXIDX,
8824 SVR4_SIGHANDLER_TYPE_FIXIDX,
8825 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8826 SYSV68_STRING_FIXIDX,
8827 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8828 THREAD_KEYWORD_FIXIDX,
8829 TINFO_CPLUSPLUS_FIXIDX,
8830 ULTRIX_CONST_FIXIDX,
8831 ULTRIX_CONST2_FIXIDX,
8832 VA_I960_MACRO_FIXIDX,
8833 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
8834 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
8835 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
8836 VMS_USE_QUOTED_INCLUDE_FIXIDX,
8837 VMS_ADD_MISSING_BRACES_FIXIDX,
8838 VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
8839 VMS_DECC_BUILTIN_FIXIDX,
8840 VMS_NO_64BIT_GETOPT_FIXIDX,
8841 VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
8842 VMS_USE_FAST_SETJMP_FIXIDX,
8844 VXWORKS_GCC_PROBLEM_FIXIDX,
8845 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8846 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8847 VXWORKS_TIME_FIXIDX,
8849 X11_CLASS_USAGE_FIXIDX,
8854 tFixDesc fixDescList[ FIX_COUNT ] = {
8855 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8856 apzAab_Aix_StdioMachs,
8857 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8858 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8860 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8861 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8862 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8863 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8865 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8866 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8867 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8868 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8870 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8871 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8872 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8873 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8875 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8876 apzAab_Fd_Zero_Gnu_Types_HMachs,
8877 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8878 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8880 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8881 apzAab_Fd_Zero_Selectbits_HMachs,
8882 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8883 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8885 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8886 apzAab_Solaris_Sys_Varargs_HMachs,
8887 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8888 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8890 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8891 apzAab_Sun_MemcpyMachs,
8892 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8893 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8895 { zAix_ComplexName, zAix_ComplexList,
8896 apzAix_ComplexMachs,
8897 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8898 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
8900 { zAix_MallocName, zAix_MallocList,
8902 AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8903 aAix_MallocTests, apzAix_MallocPatch, 0 },
8905 { zAix_Net_If_ArpName, zAix_Net_If_ArpList,
8906 apzAix_Net_If_ArpMachs,
8907 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8908 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 },
8910 { zAix_Once_Init_1Name, zAix_Once_Init_1List,
8911 apzAix_Once_Init_1Machs,
8912 AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8913 aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 },
8915 { zAix_Once_Init_2Name, zAix_Once_Init_2List,
8916 apzAix_Once_Init_2Machs,
8917 AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8918 aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 },
8920 { zAix_PthreadName, zAix_PthreadList,
8921 apzAix_PthreadMachs,
8922 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8923 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8925 { zAix_Stdint_1Name, zAix_Stdint_1List,
8926 apzAix_Stdint_1Machs,
8927 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8928 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
8930 { zAix_Stdint_2Name, zAix_Stdint_2List,
8931 apzAix_Stdint_2Machs,
8932 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8933 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
8935 { zAix_Stdint_3Name, zAix_Stdint_3List,
8936 apzAix_Stdint_3Machs,
8937 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8938 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
8940 { zAix_Stdint_4Name, zAix_Stdint_4List,
8941 apzAix_Stdint_4Machs,
8942 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8943 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
8945 { zAix_Stdint_5Name, zAix_Stdint_5List,
8946 apzAix_Stdint_5Machs,
8947 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8948 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
8950 { zAix_SysmachineName, zAix_SysmachineList,
8951 apzAix_SysmachineMachs,
8952 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8953 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8955 { zAix_Syswait_2Name, zAix_Syswait_2List,
8956 apzAix_Syswait_2Machs,
8957 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8958 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8960 { zAix_VolatileName, zAix_VolatileList,
8961 apzAix_VolatileMachs,
8962 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8963 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8965 { zAlpha___AssertName, zAlpha___AssertList,
8966 apzAlpha___AssertMachs,
8967 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8968 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8970 { zAlpha_AssertName, zAlpha_AssertList,
8971 apzAlpha_AssertMachs,
8972 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8973 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8975 { zAlpha_GetoptName, zAlpha_GetoptList,
8976 apzAlpha_GetoptMachs,
8977 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8978 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8980 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
8981 apzAlpha_If_SemicolonMachs,
8982 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8983 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
8985 { zAlpha_ParensName, zAlpha_ParensList,
8986 apzAlpha_ParensMachs,
8987 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8988 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8990 { zAlpha_SbrkName, zAlpha_SbrkList,
8992 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8993 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8995 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8996 apzAvoid_Bool_DefineMachs,
8997 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8998 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9000 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9001 apzAvoid_Bool_TypeMachs,
9002 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9003 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9005 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9006 apzAvoid_Wchar_T_TypeMachs,
9007 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9008 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9010 { zBad_Struct_TermName, zBad_Struct_TermList,
9011 apzBad_Struct_TermMachs,
9012 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9013 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9015 { zBadquoteName, zBadquoteList,
9017 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9018 aBadquoteTests, apzBadquotePatch, 0 },
9020 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9021 apzBroken_Assert_StdioMachs,
9022 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9023 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9025 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9026 apzBroken_Assert_StdlibMachs,
9027 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9028 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9030 { zBroken_CabsName, zBroken_CabsList,
9031 apzBroken_CabsMachs,
9032 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9033 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9035 { zBroken_NanName, zBroken_NanList,
9037 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9038 aBroken_NanTests, apzBroken_NanPatch, 0 },
9040 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9041 apzBsd_Stdio_Attrs_ConflictMachs,
9042 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9043 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9045 { zCdef_CplusplusName, zCdef_CplusplusList,
9046 apzCdef_CplusplusMachs,
9047 CDEF_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9048 aCdef_CplusplusTests, apzCdef_CplusplusPatch, 0 },
9050 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9051 apzCtrl_Quotes_DefMachs,
9052 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9053 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9055 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9056 apzCtrl_Quotes_UseMachs,
9057 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9058 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9060 { zCxx_UnreadyName, zCxx_UnreadyList,
9061 apzCxx_UnreadyMachs,
9062 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9063 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9065 { zDarwin_ExterncName, zDarwin_ExterncList,
9066 apzDarwin_ExterncMachs,
9067 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9068 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9070 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9071 apzDarwin_Gcc4_BreakageMachs,
9072 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9073 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9075 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9076 apzDarwin_Private_ExternMachs,
9077 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9078 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9080 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
9081 apzDarwin_Stdint_1Machs,
9082 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9083 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
9085 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
9086 apzDarwin_Stdint_2Machs,
9087 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9088 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
9090 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
9091 apzDarwin_Stdint_3Machs,
9092 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9093 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
9095 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
9096 apzDarwin_Stdint_4Machs,
9097 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9098 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
9100 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
9101 apzDarwin_Stdint_5Machs,
9102 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9103 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
9105 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
9106 apzDarwin_Stdint_6Machs,
9107 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9108 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
9110 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
9111 apzDarwin_Stdint_7Machs,
9112 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9113 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
9115 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9116 apzDec_Intern_AsmMachs,
9117 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9118 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9120 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9121 apzDjgpp_Wchar_HMachs,
9122 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9123 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9125 { zEcd_CursorName, zEcd_CursorList,
9127 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9128 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9130 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9131 apzFreebsd_Gcc3_BreakageMachs,
9132 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9133 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9135 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9136 apzFreebsd_Gcc4_BreakageMachs,
9137 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9138 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9140 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9141 apzGlibc_C99_Inline_1Machs,
9142 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9143 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9145 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9146 apzGlibc_C99_Inline_1aMachs,
9147 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9148 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9150 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9151 apzGlibc_C99_Inline_2Machs,
9152 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9153 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9155 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9156 apzGlibc_C99_Inline_3Machs,
9157 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9158 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9160 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9161 apzGlibc_C99_Inline_4Machs,
9162 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9163 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9165 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9166 apzGlibc_Mutex_InitMachs,
9167 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9168 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9170 { zGlibc_StdintName, zGlibc_StdintList,
9171 apzGlibc_StdintMachs,
9172 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9173 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
9175 { zGlibc_StrncpyName, zGlibc_StrncpyList,
9176 apzGlibc_StrncpyMachs,
9177 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9178 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
9180 { zGlibc_TgmathName, zGlibc_TgmathList,
9181 apzGlibc_TgmathMachs,
9182 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9183 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
9185 { zGnu_TypesName, zGnu_TypesList,
9187 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9188 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9190 { zHp_InlineName, zHp_InlineList,
9192 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9193 aHp_InlineTests, apzHp_InlinePatch, 0 },
9195 { zHp_SysfileName, zHp_SysfileList,
9197 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9198 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9200 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9201 apzHppa_Hpux_Fp_MacrosMachs,
9202 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9203 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9205 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9206 apzHpux10_Cpp_Pow_InlineMachs,
9207 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9208 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9210 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9211 apzHpux11_Cpp_Pow_InlineMachs,
9212 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9213 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9215 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9216 apzHpux10_Ctype_Declarations1Machs,
9217 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9218 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9220 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9221 apzHpux10_Ctype_Declarations2Machs,
9222 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9223 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9225 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9226 apzHpux10_Stdio_DeclarationsMachs,
9227 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9228 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9230 { zHpux11_AbsName, zHpux11_AbsList,
9232 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9233 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9235 { zHpux11_FabsfName, zHpux11_FabsfList,
9236 apzHpux11_FabsfMachs,
9237 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9238 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9240 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9241 apzHpux11_Pthread_ConstMachs,
9242 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9243 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9245 { zHpux11_Size_TName, zHpux11_Size_TList,
9246 apzHpux11_Size_TMachs,
9247 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9248 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9250 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9251 apzHpux11_SnprintfMachs,
9252 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9253 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9255 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9256 apzHpux11_VsnprintfMachs,
9257 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9258 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9260 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9261 apzHpux8_Bogus_InlinesMachs,
9262 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9263 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9265 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9266 apzHpux_Ctype_MacrosMachs,
9267 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9268 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9270 { zHpux_HtonlName, zHpux_HtonlList,
9272 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9275 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9276 apzHpux_Long_DoubleMachs,
9277 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9278 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9280 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
9281 apzHpux_Long_Double_2Machs,
9282 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
9285 { zHpux_SystimeName, zHpux_SystimeList,
9286 apzHpux_SystimeMachs,
9287 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9288 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9290 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9291 apzHpux_Spu_InfoMachs,
9292 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9293 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9295 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9296 apzHpux11_Extern_SendfileMachs,
9297 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9298 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9300 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9301 apzHpux11_Extern_SendpathMachs,
9302 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9303 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9305 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9306 apzHpux_Extern_ErrnoMachs,
9307 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9310 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9311 apzHpux_Pthread_InitializersMachs,
9312 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9313 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9315 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
9316 apzHpux_C99_IntptrMachs,
9317 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9318 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
9320 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
9321 apzHpux_C99_InttypesMachs,
9322 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9323 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
9325 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
9326 apzHpux_C99_Inttypes2Machs,
9327 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9328 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
9330 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
9331 apzHpux_Stdint_Least_FastMachs,
9332 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
9335 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
9336 apzHpux_Inttype_Int8_TMachs,
9337 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
9340 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
9341 apzHpux_Imaginary_IMachs,
9342 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
9345 { zHuge_Val_HexName, zHuge_Val_HexList,
9346 apzHuge_Val_HexMachs,
9347 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9350 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9351 apzHuge_Valf_HexMachs,
9352 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9355 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9356 apzHuge_Vall_HexMachs,
9357 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9360 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9361 apzInt_Abort_Free_And_ExitMachs,
9362 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9365 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9366 apzIo_Quotes_DefMachs,
9367 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9370 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9371 apzIo_Quotes_UseMachs,
9372 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9375 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9376 apzIp_Missing_SemiMachs,
9377 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9378 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9380 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9381 apzIrix_Limits_ConstMachs,
9382 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9385 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9386 apzIrix_Stdio_Va_ListMachs,
9387 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9390 { zKandr_ConcatName, zKandr_ConcatList,
9391 apzKandr_ConcatMachs,
9392 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9395 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9396 apzLinux_Ia64_UcontextMachs,
9397 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9400 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9401 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9402 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9405 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9406 apzLynxos_Missing_PutenvMachs,
9407 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9410 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9411 apzMachine_Ansi_H_Va_ListMachs,
9412 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9415 { zMachine_NameName, zMachine_NameList,
9416 apzMachine_NameMachs,
9417 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418 aMachine_NameTests, apzMachine_NamePatch, 0 },
9420 { zMath_ExceptionName, zMath_ExceptionList,
9421 apzMath_ExceptionMachs,
9422 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9425 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9426 apzMath_Huge_Val_From_Dbl_MaxMachs,
9427 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9428 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9430 { zNested_Auth_DesName, zNested_Auth_DesList,
9431 apzNested_Auth_DesMachs,
9432 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9435 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9436 apzNetbsd_C99_Inline_1Machs,
9437 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9440 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9441 apzNetbsd_C99_Inline_2Machs,
9442 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9445 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9446 apzNetbsd_Extra_SemicolonMachs,
9447 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9450 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
9451 apzNewlib_Stdint_1Machs,
9452 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9453 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
9455 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
9456 apzNewlib_Stdint_2Machs,
9457 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
9460 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9461 apzNext_Math_PrefixMachs,
9462 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9465 { zNext_TemplateName, zNext_TemplateList,
9466 apzNext_TemplateMachs,
9467 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9470 { zNext_VolitileName, zNext_VolitileList,
9471 apzNext_VolitileMachs,
9472 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9475 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9476 apzNext_Wait_UnionMachs,
9477 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9478 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9480 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9481 apzNodeent_SyntaxMachs,
9482 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9485 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
9486 apzOpenbsd_Null_DefinitionMachs,
9487 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
9490 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9491 apzObstack_Lvalue_CastMachs,
9492 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9495 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
9496 apzOpenbsd_Va_StartMachs,
9497 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
9500 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9501 apzOsf_Namespace_AMachs,
9502 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9505 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9506 apzOsf_Namespace_CMachs,
9507 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9510 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9511 apzPthread_Incomplete_Struct_ArgumentMachs,
9512 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9515 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9516 apzRead_Ret_TypeMachs,
9517 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9520 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9521 apzRpc_Xdr_Lvalue_Cast_AMachs,
9522 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9525 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9526 apzRpc_Xdr_Lvalue_Cast_BMachs,
9527 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9530 { zRs6000_DoubleName, zRs6000_DoubleList,
9531 apzRs6000_DoubleMachs,
9532 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9535 { zRs6000_FchmodName, zRs6000_FchmodList,
9536 apzRs6000_FchmodMachs,
9537 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9540 { zRs6000_ParamName, zRs6000_ParamList,
9541 apzRs6000_ParamMachs,
9542 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9545 { zSolaris___RestrictName, zSolaris___RestrictList,
9546 apzSolaris___RestrictMachs,
9547 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
9550 { zSolaris_ComplexName, zSolaris_ComplexList,
9551 apzSolaris_ComplexMachs,
9552 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
9553 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
9555 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
9556 apzSolaris_Complex_CxxMachs,
9557 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
9558 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
9560 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList,
9561 apzSolaris_Cxx_LinkageMachs,
9562 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 },
9565 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList,
9566 apzSolaris_Getc_Strict_StdcMachs,
9567 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 },
9570 { zSolaris_Longjmp_NoreturnName, zSolaris_Longjmp_NoreturnList,
9571 apzSolaris_Longjmp_NoreturnMachs,
9572 SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573 aSolaris_Longjmp_NoreturnTests, apzSolaris_Longjmp_NoreturnPatch, 0 },
9575 { zSolaris_Math_1Name, zSolaris_Math_1List,
9576 apzSolaris_Math_1Machs,
9577 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9580 { zSolaris_Math_2Name, zSolaris_Math_2List,
9581 apzSolaris_Math_2Machs,
9582 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9585 { zSolaris_Math_3Name, zSolaris_Math_3List,
9586 apzSolaris_Math_3Machs,
9587 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9590 { zSolaris_Math_4Name, zSolaris_Math_4List,
9591 apzSolaris_Math_4Machs,
9592 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9595 { zSolaris_Math_8Name, zSolaris_Math_8List,
9596 apzSolaris_Math_8Machs,
9597 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9600 { zSolaris_Math_9Name, zSolaris_Math_9List,
9601 apzSolaris_Math_9Machs,
9602 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9605 { zSolaris_Math_10Name, zSolaris_Math_10List,
9606 apzSolaris_Math_10Machs,
9607 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
9610 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9611 apzSolaris_Mutex_Init_2Machs,
9612 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9615 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList,
9616 apzSolaris_Pow_Int_OverloadMachs,
9617 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 },
9620 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9621 apzSolaris_Rwlock_Init_1Machs,
9622 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9625 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9626 apzSolaris_Once_Init_1Machs,
9627 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9630 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9631 apzSolaris_Once_Init_2Machs,
9632 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9635 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
9636 apzSolaris_Int_ConstMachs,
9637 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
9640 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
9641 apzSolaris_Int_Limits_1Machs,
9642 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
9645 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
9646 apzSolaris_Int_Limits_2Machs,
9647 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
9650 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
9651 apzSolaris_Int_Limits_3Machs,
9652 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
9655 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
9656 apzSolaris_Int_TypesMachs,
9657 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
9660 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList,
9661 apzSolaris_Posix_Spawn_RestrictMachs,
9662 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 },
9665 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList,
9666 apzSolaris_Std___FilbufMachs,
9667 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 },
9670 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9671 apzSolaris_Stdio_TagMachs,
9672 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9673 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9675 { zSolaris_Sys_Va_ListName, zSolaris_Sys_Va_ListList,
9676 apzSolaris_Sys_Va_ListMachs,
9677 SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678 aSolaris_Sys_Va_ListTests, apzSolaris_Sys_Va_ListPatch, 0 },
9680 { zStatsswtchName, zStatsswtchList,
9682 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683 aStatsswtchTests, apzStatsswtchPatch, 0 },
9685 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9686 apzStdio_Stdarg_HMachs,
9687 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9688 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9690 { zStdio_Va_ListName, zStdio_Va_ListList,
9691 apzStdio_Va_ListMachs,
9692 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9693 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9695 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9696 apzStdio_Va_List_ClientsMachs,
9697 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9698 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9700 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9701 apzStrict_Ansi_NotMachs,
9702 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9705 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9706 apzStrict_Ansi_Not_CtdMachs,
9707 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9710 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9711 apzStrict_Ansi_OnlyMachs,
9712 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9715 { zStruct_FileName, zStruct_FileList,
9716 apzStruct_FileMachs,
9717 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718 aStruct_FileTests, apzStruct_FilePatch, 0 },
9720 { zStruct_SockaddrName, zStruct_SockaddrList,
9721 apzStruct_SockaddrMachs,
9722 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9725 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9726 apzSun_Auth_ProtoMachs,
9727 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9730 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9731 apzSun_Bogus_IfdefMachs,
9732 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9735 { zSun_CatmacroName, zSun_CatmacroList,
9736 apzSun_CatmacroMachs,
9737 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9740 { zSun_MallocName, zSun_MallocList,
9742 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9743 aSun_MallocTests, apzSun_MallocPatch, 0 },
9745 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9746 apzSun_Rusers_SemiMachs,
9747 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9748 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9750 { zSun_SignalName, zSun_SignalList,
9752 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9753 aSun_SignalTests, apzSun_SignalPatch, 0 },
9755 { zSunos_StrlenName, zSunos_StrlenList,
9756 apzSunos_StrlenMachs,
9757 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9760 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9761 apzSvr4_Disable_OptMachs,
9762 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9763 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9765 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9766 apzSvr4_GetcwdMachs,
9767 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9770 { zSvr4_ProfilName, zSvr4_ProfilList,
9771 apzSvr4_ProfilMachs,
9772 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9775 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9776 apzSvr4_Sighandler_TypeMachs,
9777 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9780 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9781 apzSvr4_Undeclared_GetrngeMachs,
9782 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9785 { zSysv68_StringName, zSysv68_StringList,
9786 apzSysv68_StringMachs,
9787 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9788 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9790 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9791 apzSysz_Stdlib_For_SunMachs,
9792 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9795 { zThread_KeywordName, zThread_KeywordList,
9796 apzThread_KeywordMachs,
9797 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9800 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9801 apzTinfo_CplusplusMachs,
9802 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9805 { zUltrix_ConstName, zUltrix_ConstList,
9806 apzUltrix_ConstMachs,
9807 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9810 { zUltrix_Const2Name, zUltrix_Const2List,
9811 apzUltrix_Const2Machs,
9812 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9815 { zVa_I960_MacroName, zVa_I960_MacroList,
9816 apzVa_I960_MacroMachs,
9817 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9820 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList,
9821 apzVms_Define_Can_Use_Extern_PrefixMachs,
9822 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
9825 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList,
9826 apzVms_Use_Pragma_Extern_ModelMachs,
9827 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 },
9830 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList,
9831 apzVms_Disable_Decc_String_BuiltinsMachs,
9832 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
9835 { zVms_Use_Quoted_IncludeName, zVms_Use_Quoted_IncludeList,
9836 apzVms_Use_Quoted_IncludeMachs,
9837 VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838 aVms_Use_Quoted_IncludeTests, apzVms_Use_Quoted_IncludePatch, 0 },
9840 { zVms_Add_Missing_BracesName, zVms_Add_Missing_BracesList,
9841 apzVms_Add_Missing_BracesMachs,
9842 VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843 aVms_Add_Missing_BracesTests, apzVms_Add_Missing_BracesPatch, 0 },
9845 { zVms_Do_Not_Redeclare_HostaliasName, zVms_Do_Not_Redeclare_HostaliasList,
9846 apzVms_Do_Not_Redeclare_HostaliasMachs,
9847 VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848 aVms_Do_Not_Redeclare_HostaliasTests, apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
9850 { zVms_Decc_BuiltinName, zVms_Decc_BuiltinList,
9851 apzVms_Decc_BuiltinMachs,
9852 VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
9853 aVms_Decc_BuiltinTests, apzVms_Decc_BuiltinPatch, 0 },
9855 { zVms_No_64bit_GetoptName, zVms_No_64bit_GetoptList,
9856 apzVms_No_64bit_GetoptMachs,
9857 VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858 aVms_No_64bit_GetoptTests, apzVms_No_64bit_GetoptPatch, 0 },
9860 { zVms_Forward_Declare_StructName, zVms_Forward_Declare_StructList,
9861 apzVms_Forward_Declare_StructMachs,
9862 VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863 aVms_Forward_Declare_StructTests, apzVms_Forward_Declare_StructPatch, 0 },
9865 { zVms_Use_Fast_SetjmpName, zVms_Use_Fast_SetjmpList,
9866 apzVms_Use_Fast_SetjmpMachs,
9867 VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868 aVms_Use_Fast_SetjmpTests, apzVms_Use_Fast_SetjmpPatch, 0 },
9870 { zVoid_NullName, zVoid_NullList,
9872 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9873 aVoid_NullTests, apzVoid_NullPatch, 0 },
9875 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9876 apzVxworks_Gcc_ProblemMachs,
9877 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9878 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9880 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9881 apzVxworks_Needs_VxtypesMachs,
9882 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9885 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9886 apzVxworks_Needs_VxworksMachs,
9887 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9888 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9890 { zVxworks_TimeName, zVxworks_TimeList,
9891 apzVxworks_TimeMachs,
9892 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9895 { zX11_ClassName, zX11_ClassList,
9897 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898 aX11_ClassTests, apzX11_ClassPatch, 0 },
9900 { zX11_Class_UsageName, zX11_Class_UsageList,
9901 apzX11_Class_UsageMachs,
9902 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9905 { zX11_NewName, zX11_NewList,
9907 X11_NEW_TEST_CT, FD_MACH_ONLY,
9908 aX11_NewTests, apzX11_NewPatch, 0 },
9910 { zX11_SprintfName, zX11_SprintfList,
9911 apzX11_SprintfMachs,
9912 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913 aX11_SprintfTests, apzX11_SprintfPatch, 0 }