1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Monday November 8, 2010 at 08:33:47 PM MET
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mon Nov 8 20:33:47 MET 2010
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 210 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_Pthread fix
527 tSCC zAix_PthreadName[] =
531 * File name selection pattern
533 tSCC zAix_PthreadList[] =
536 * Machine/OS name selection pattern
538 #define apzAix_PthreadMachs (const char**)NULL
541 * content selection pattern - do fix if pattern found
543 tSCC zAix_PthreadSelect0[] =
544 "(#define [A-Za-z_0-9]+)(\\\\\n\
548 #define AIX_PTHREAD_TEST_CT 1
549 static tTestDesc aAix_PthreadTests[] = {
550 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
553 * Fix Command Arguments for Aix_Pthread
555 static const char* apzAix_PthreadPatch[] = {
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
562 * Description of Aix_Stdint_1 fix
564 tSCC zAix_Stdint_1Name[] =
568 * File name selection pattern
570 tSCC zAix_Stdint_1List[] =
571 "stdint-aix.h\0stdint.h\0";
573 * Machine/OS name selection pattern
575 tSCC* apzAix_Stdint_1Machs[] = {
580 * content selection pattern - do fix if pattern found
582 tSCC zAix_Stdint_1Select0[] =
583 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
584 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
586 #define AIX_STDINT_1_TEST_CT 1
587 static tTestDesc aAix_Stdint_1Tests[] = {
588 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
591 * Fix Command Arguments for Aix_Stdint_1
593 static const char* apzAix_Stdint_1Patch[] = {
595 "#define UINT8_MAX\t(255)\n\
596 #define UINT16_MAX\t(65535)",
599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
601 * Description of Aix_Stdint_2 fix
603 tSCC zAix_Stdint_2Name[] =
607 * File name selection pattern
609 tSCC zAix_Stdint_2List[] =
610 "stdint-aix.h\0stdint.h\0";
612 * Machine/OS name selection pattern
614 tSCC* apzAix_Stdint_2Machs[] = {
619 * content selection pattern - do fix if pattern found
621 tSCC zAix_Stdint_2Select0[] =
622 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
623 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
624 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
626 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
627 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
628 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
630 #define AIX_STDINT_2_TEST_CT 1
631 static tTestDesc aAix_Stdint_2Tests[] = {
632 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
635 * Fix Command Arguments for Aix_Stdint_2
637 static const char* apzAix_Stdint_2Patch[] = {
639 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
640 #define INTPTR_MAX\t9223372036854775807L\n\
641 #define UINTPTR_MAX\t18446744073709551615UL\n\
643 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
644 #define INTPTR_MAX\t2147483647L\n\
645 #define UINTPTR_MAX\t4294967295UL",
648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
650 * Description of Aix_Stdint_3 fix
652 tSCC zAix_Stdint_3Name[] =
656 * File name selection pattern
658 tSCC zAix_Stdint_3List[] =
659 "stdint-aix.h\0stdint.h\0";
661 * Machine/OS name selection pattern
663 tSCC* apzAix_Stdint_3Machs[] = {
668 * content selection pattern - do fix if pattern found
670 tSCC zAix_Stdint_3Select0[] =
671 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
672 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
674 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
675 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
677 #define AIX_STDINT_3_TEST_CT 1
678 static tTestDesc aAix_Stdint_3Tests[] = {
679 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
682 * Fix Command Arguments for Aix_Stdint_3
684 static const char* apzAix_Stdint_3Patch[] = {
686 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
687 #define PTRDIFF_MAX\t9223372036854775807L\n\
689 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
690 #define PTRDIFF_MAX\t2147483647L",
693 /* * * * * * * * * * * * * * * * * * * * * * * * * *
695 * Description of Aix_Stdint_4 fix
697 tSCC zAix_Stdint_4Name[] =
701 * File name selection pattern
703 tSCC zAix_Stdint_4List[] =
704 "stdint-aix.h\0stdint.h\0";
706 * Machine/OS name selection pattern
708 tSCC* apzAix_Stdint_4Machs[] = {
713 * content selection pattern - do fix if pattern found
715 tSCC zAix_Stdint_4Select0[] =
716 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
718 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
720 #define AIX_STDINT_4_TEST_CT 1
721 static tTestDesc aAix_Stdint_4Tests[] = {
722 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
725 * Fix Command Arguments for Aix_Stdint_4
727 static const char* apzAix_Stdint_4Patch[] = {
729 "#define SIZE_MAX\t18446744073709551615UL\n\
731 #define SIZE_MAX\t4294967295UL",
734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
736 * Description of Aix_Stdint_5 fix
738 tSCC zAix_Stdint_5Name[] =
742 * File name selection pattern
744 tSCC zAix_Stdint_5List[] =
745 "stdint-aix.h\0stdint.h\0";
747 * Machine/OS name selection pattern
749 tSCC* apzAix_Stdint_5Machs[] = {
754 * content selection pattern - do fix if pattern found
756 tSCC zAix_Stdint_5Select0[] =
757 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
758 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
760 #define AIX_STDINT_5_TEST_CT 1
761 static tTestDesc aAix_Stdint_5Tests[] = {
762 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
765 * Fix Command Arguments for Aix_Stdint_5
767 static const char* apzAix_Stdint_5Patch[] = {
769 "#define UINT8_C(c)\tc\n\
770 #define UINT16_C(c)\tc",
773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
775 * Description of Aix_Sysmachine fix
777 tSCC zAix_SysmachineName[] =
781 * File name selection pattern
783 tSCC zAix_SysmachineList[] =
786 * Machine/OS name selection pattern
788 #define apzAix_SysmachineMachs (const char**)NULL
791 * content selection pattern - do fix if pattern found
793 tSCC zAix_SysmachineSelect0[] =
796 #define AIX_SYSMACHINE_TEST_CT 1
797 static tTestDesc aAix_SysmachineTests[] = {
798 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
801 * Fix Command Arguments for Aix_Sysmachine
803 static const char* apzAix_SysmachinePatch[] = {
808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
810 * Description of Aix_Syswait_2 fix
812 tSCC zAix_Syswait_2Name[] =
816 * File name selection pattern
818 tSCC zAix_Syswait_2List[] =
821 * Machine/OS name selection pattern
823 #define apzAix_Syswait_2Machs (const char**)NULL
826 * content selection pattern - do fix if pattern found
828 tSCC zAix_Syswait_2Select0[] =
829 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
831 #define AIX_SYSWAIT_2_TEST_CT 1
832 static tTestDesc aAix_Syswait_2Tests[] = {
833 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
836 * Fix Command Arguments for Aix_Syswait_2
838 static const char* apzAix_Syswait_2Patch[] = {
843 /* * * * * * * * * * * * * * * * * * * * * * * * * *
845 * Description of Aix_Volatile fix
847 tSCC zAix_VolatileName[] =
851 * File name selection pattern
853 tSCC zAix_VolatileList[] =
856 * Machine/OS name selection pattern
858 #define apzAix_VolatileMachs (const char**)NULL
861 * content selection pattern - do fix if pattern found
863 tSCC zAix_VolatileSelect0[] =
864 "typedef volatile int sig_atomic_t";
866 #define AIX_VOLATILE_TEST_CT 1
867 static tTestDesc aAix_VolatileTests[] = {
868 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
871 * Fix Command Arguments for Aix_Volatile
873 static const char* apzAix_VolatilePatch[] = {
875 "typedef int sig_atomic_t",
878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
880 * Description of Alpha___Assert fix
882 tSCC zAlpha___AssertName[] =
886 * File name selection pattern
888 tSCC zAlpha___AssertList[] =
891 * Machine/OS name selection pattern
893 #define apzAlpha___AssertMachs (const char**)NULL
896 * content selection pattern - do fix if pattern found
898 tSCC zAlpha___AssertSelect0[] =
899 "__assert\\(char \\*, char \\*, int\\)";
901 #define ALPHA___ASSERT_TEST_CT 1
902 static tTestDesc aAlpha___AssertTests[] = {
903 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
906 * Fix Command Arguments for Alpha___Assert
908 static const char* apzAlpha___AssertPatch[] = {
910 "__assert(const char *, const char *, int)",
913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
915 * Description of Alpha___Extern_Prefix fix
917 tSCC zAlpha___Extern_PrefixName[] =
918 "alpha___extern_prefix";
921 * File name selection pattern
923 #define zAlpha___Extern_PrefixList (char*)NULL
925 * Machine/OS name selection pattern
927 tSCC* apzAlpha___Extern_PrefixMachs[] = {
932 * content selection pattern - do fix if pattern found
934 tSCC zAlpha___Extern_PrefixSelect0[] =
935 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
936 (#[ \t]*pragma[ \t]*extern_prefix.*)";
938 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
939 static tTestDesc aAlpha___Extern_PrefixTests[] = {
940 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
943 * Fix Command Arguments for Alpha___Extern_Prefix
945 static const char* apzAlpha___Extern_PrefixPatch[] = {
947 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
953 * Description of Alpha___Extern_Prefix_Standards fix
955 tSCC zAlpha___Extern_Prefix_StandardsName[] =
956 "alpha___extern_prefix_standards";
959 * File name selection pattern
961 tSCC zAlpha___Extern_Prefix_StandardsList[] =
964 * Machine/OS name selection pattern
966 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
971 * content selection pattern - do fix if pattern found
973 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
974 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
976 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
977 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
978 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
981 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
983 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
985 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
990 * Description of Alpha___Extern_Prefix_Sys_Stat fix
992 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
993 "alpha___extern_prefix_sys_stat";
996 * File name selection pattern
998 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
999 "sys/stat.h\0sys/mount.h\0";
1001 * Machine/OS name selection pattern
1003 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1005 (const char*)NULL };
1008 * content selection pattern - do fix if pattern found
1010 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1011 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1013 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1014 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1015 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1018 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1020 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1022 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1027 * Description of Alpha_Assert fix
1029 tSCC zAlpha_AssertName[] =
1033 * File name selection pattern
1035 tSCC zAlpha_AssertList[] =
1038 * Machine/OS name selection pattern
1040 #define apzAlpha_AssertMachs (const char**)NULL
1043 * content selection pattern - do fix if pattern found
1045 tSCC zAlpha_AssertSelect0[] =
1046 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1048 #define ALPHA_ASSERT_TEST_CT 1
1049 static tTestDesc aAlpha_AssertTests[] = {
1050 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1053 * Fix Command Arguments for Alpha_Assert
1055 static const char* apzAlpha_AssertPatch[] = {
1060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1062 * Description of Alpha_Bad_Lval fix
1064 tSCC zAlpha_Bad_LvalName[] =
1068 * File name selection pattern
1070 #define zAlpha_Bad_LvalList (char*)NULL
1072 * Machine/OS name selection pattern
1074 tSCC* apzAlpha_Bad_LvalMachs[] = {
1076 (const char*)NULL };
1079 * content selection pattern - do fix if pattern found
1081 tSCC zAlpha_Bad_LvalSelect0[] =
1082 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1084 #define ALPHA_BAD_LVAL_TEST_CT 1
1085 static tTestDesc aAlpha_Bad_LvalTests[] = {
1086 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1089 * Fix Command Arguments for Alpha_Bad_Lval
1091 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
1092 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1097 * Description of Alpha_Getopt fix
1099 tSCC zAlpha_GetoptName[] =
1103 * File name selection pattern
1105 tSCC zAlpha_GetoptList[] =
1106 "stdio.h\0stdlib.h\0";
1108 * Machine/OS name selection pattern
1110 #define apzAlpha_GetoptMachs (const char**)NULL
1113 * content selection pattern - do fix if pattern found
1115 tSCC zAlpha_GetoptSelect0[] =
1116 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1118 #define ALPHA_GETOPT_TEST_CT 1
1119 static tTestDesc aAlpha_GetoptTests[] = {
1120 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1123 * Fix Command Arguments for Alpha_Getopt
1125 static const char* apzAlpha_GetoptPatch[] = {
1127 "getopt(int, char *const[], const char *)",
1130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1132 * Description of Alpha_If_Semicolon fix
1134 tSCC zAlpha_If_SemicolonName[] =
1135 "alpha_if_semicolon";
1138 * File name selection pattern
1140 tSCC zAlpha_If_SemicolonList[] =
1143 * Machine/OS name selection pattern
1145 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1148 * content selection pattern - do fix if pattern found
1150 tSCC zAlpha_If_SemicolonSelect0[] =
1151 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1153 #define ALPHA_IF_SEMICOLON_TEST_CT 1
1154 static tTestDesc aAlpha_If_SemicolonTests[] = {
1155 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1158 * Fix Command Arguments for Alpha_If_Semicolon
1160 static const char* apzAlpha_If_SemicolonPatch[] = {
1162 "struct sockaddr vmif_paddr;\t/*",
1165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1167 * Description of Alpha_Parens fix
1169 tSCC zAlpha_ParensName[] =
1173 * File name selection pattern
1175 tSCC zAlpha_ParensList[] =
1178 * Machine/OS name selection pattern
1180 #define apzAlpha_ParensMachs (const char**)NULL
1183 * content selection pattern - do fix if pattern found
1185 tSCC zAlpha_ParensSelect0[] =
1186 "#ifndef\\(__mips64\\)";
1188 #define ALPHA_PARENS_TEST_CT 1
1189 static tTestDesc aAlpha_ParensTests[] = {
1190 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1193 * Fix Command Arguments for Alpha_Parens
1195 static const char* apzAlpha_ParensPatch[] = {
1200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1202 * Description of Alpha_Pthread fix
1204 tSCC zAlpha_PthreadName[] =
1208 * File name selection pattern
1210 tSCC zAlpha_PthreadList[] =
1213 * Machine/OS name selection pattern
1215 tSCC* apzAlpha_PthreadMachs[] = {
1217 (const char*)NULL };
1220 * content selection pattern - do fix if pattern found
1222 tSCC zAlpha_PthreadSelect0[] =
1223 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1224 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1226 #define ALPHA_PTHREAD_TEST_CT 1
1227 static tTestDesc aAlpha_PthreadTests[] = {
1228 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1231 * Fix Command Arguments for Alpha_Pthread
1233 static const char* apzAlpha_PthreadPatch[] = {
1235 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1241 * Description of Alpha_Pthread_Gcc fix
1243 tSCC zAlpha_Pthread_GccName[] =
1244 "alpha_pthread_gcc";
1247 * File name selection pattern
1249 tSCC zAlpha_Pthread_GccList[] =
1252 * Machine/OS name selection pattern
1254 tSCC* apzAlpha_Pthread_GccMachs[] = {
1256 (const char*)NULL };
1259 * content selection pattern - do fix if pattern found
1261 tSCC zAlpha_Pthread_GccSelect0[] =
1263 # error <pthread.h>: unrecognized compiler.";
1265 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1266 static tTestDesc aAlpha_Pthread_GccTests[] = {
1267 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1270 * Fix Command Arguments for Alpha_Pthread_Gcc
1272 static const char* apzAlpha_Pthread_GccPatch[] = {
1274 "#elif defined (__GNUC__)\n\
1275 # define _PTHREAD_ENV_GCC\n\
1279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1281 * Description of Alpha_Pthread_Init fix
1283 tSCC zAlpha_Pthread_InitName[] =
1284 "alpha_pthread_init";
1287 * File name selection pattern
1289 tSCC zAlpha_Pthread_InitList[] =
1292 * Machine/OS name selection pattern
1294 tSCC* apzAlpha_Pthread_InitMachs[] = {
1296 (const char*)NULL };
1299 * content selection pattern - do fix if pattern found
1301 tSCC zAlpha_Pthread_InitSelect0[] =
1302 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1304 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1305 static tTestDesc aAlpha_Pthread_InitTests[] = {
1306 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1309 * Fix Command Arguments for Alpha_Pthread_Init
1311 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1312 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1313 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1314 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1315 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1316 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1317 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1322 * Description of Alpha_Sbrk fix
1324 tSCC zAlpha_SbrkName[] =
1328 * File name selection pattern
1330 tSCC zAlpha_SbrkList[] =
1333 * Machine/OS name selection pattern
1335 #define apzAlpha_SbrkMachs (const char**)NULL
1338 * content selection pattern - do fix if pattern found
1340 tSCC zAlpha_SbrkSelect0[] =
1341 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1343 #define ALPHA_SBRK_TEST_CT 1
1344 static tTestDesc aAlpha_SbrkTests[] = {
1345 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1348 * Fix Command Arguments for Alpha_Sbrk
1350 static const char* apzAlpha_SbrkPatch[] = {
1355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1357 * Description of Avoid_Bool_Define fix
1359 tSCC zAvoid_Bool_DefineName[] =
1360 "avoid_bool_define";
1363 * File name selection pattern
1365 tSCC zAvoid_Bool_DefineList[] =
1366 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1368 * Machine/OS name selection pattern
1370 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1373 * content selection pattern - do fix if pattern found
1375 tSCC zAvoid_Bool_DefineSelect0[] =
1376 "#[ \t]*define[ \t]+bool[ \t]";
1379 * content bypass pattern - skip fix if pattern found
1381 tSCC zAvoid_Bool_DefineBypass0[] =
1384 #define AVOID_BOOL_DEFINE_TEST_CT 2
1385 static tTestDesc aAvoid_Bool_DefineTests[] = {
1386 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1387 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1390 * Fix Command Arguments for Avoid_Bool_Define
1392 static const char* apzAvoid_Bool_DefinePatch[] = {
1394 "#ifndef __cplusplus\n\
1397 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1402 * Description of Avoid_Bool_Type fix
1404 tSCC zAvoid_Bool_TypeName[] =
1408 * File name selection pattern
1410 tSCC zAvoid_Bool_TypeList[] =
1411 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1413 * Machine/OS name selection pattern
1415 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1418 * content selection pattern - do fix if pattern found
1420 tSCC zAvoid_Bool_TypeSelect0[] =
1421 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1424 * content bypass pattern - skip fix if pattern found
1426 tSCC zAvoid_Bool_TypeBypass0[] =
1429 #define AVOID_BOOL_TYPE_TEST_CT 2
1430 static tTestDesc aAvoid_Bool_TypeTests[] = {
1431 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1432 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1435 * Fix Command Arguments for Avoid_Bool_Type
1437 static const char* apzAvoid_Bool_TypePatch[] = {
1439 "#ifndef __cplusplus\n\
1444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1446 * Description of Avoid_Wchar_T_Type fix
1448 tSCC zAvoid_Wchar_T_TypeName[] =
1449 "avoid_wchar_t_type";
1452 * File name selection pattern
1454 #define zAvoid_Wchar_T_TypeList (char*)NULL
1456 * Machine/OS name selection pattern
1458 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1461 * content selection pattern - do fix if pattern found
1463 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1464 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1467 * content bypass pattern - skip fix if pattern found
1469 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1471 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1473 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1474 "XFree86: xc/lib/X11/Xlib\\.h";
1476 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1477 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1478 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1479 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1480 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1481 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1484 * Fix Command Arguments for Avoid_Wchar_T_Type
1486 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1488 "#ifndef __cplusplus\n\
1493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1495 * Description of Bad_Struct_Term fix
1497 tSCC zBad_Struct_TermName[] =
1501 * File name selection pattern
1503 tSCC zBad_Struct_TermList[] =
1506 * Machine/OS name selection pattern
1508 #define apzBad_Struct_TermMachs (const char**)NULL
1511 * content selection pattern - do fix if pattern found
1513 tSCC zBad_Struct_TermSelect0[] =
1514 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1516 #define BAD_STRUCT_TERM_TEST_CT 1
1517 static tTestDesc aBad_Struct_TermTests[] = {
1518 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1521 * Fix Command Arguments for Bad_Struct_Term
1523 static const char* apzBad_Struct_TermPatch[] = {
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530 * Description of Badquote fix
1532 tSCC zBadquoteName[] =
1536 * File name selection pattern
1538 tSCC zBadquoteList[] =
1539 "sundev/vuid_event.h\0";
1541 * Machine/OS name selection pattern
1543 #define apzBadquoteMachs (const char**)NULL
1546 * content selection pattern - do fix if pattern found
1548 tSCC zBadquoteSelect0[] =
1551 #define BADQUOTE_TEST_CT 1
1552 static tTestDesc aBadquoteTests[] = {
1553 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1556 * Fix Command Arguments for Badquote
1558 static const char* apzBadquotePatch[] = {
1563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1565 * Description of Broken_Assert_Stdio fix
1567 tSCC zBroken_Assert_StdioName[] =
1568 "broken_assert_stdio";
1571 * File name selection pattern
1573 tSCC zBroken_Assert_StdioList[] =
1576 * Machine/OS name selection pattern
1578 #define apzBroken_Assert_StdioMachs (const char**)NULL
1581 * content selection pattern - do fix if pattern found
1583 tSCC zBroken_Assert_StdioSelect0[] =
1587 * content bypass pattern - skip fix if pattern found
1589 tSCC zBroken_Assert_StdioBypass0[] =
1590 "include.*stdio\\.h";
1592 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1593 static tTestDesc aBroken_Assert_StdioTests[] = {
1594 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1595 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1598 * Fix Command Arguments for Broken_Assert_Stdio
1600 static const char* apzBroken_Assert_StdioPatch[] = {
1602 "#include <stdio.h>\n",
1605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1607 * Description of Broken_Assert_Stdlib fix
1609 tSCC zBroken_Assert_StdlibName[] =
1610 "broken_assert_stdlib";
1613 * File name selection pattern
1615 tSCC zBroken_Assert_StdlibList[] =
1618 * Machine/OS name selection pattern
1620 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1623 * content selection pattern - do fix if pattern found
1625 tSCC zBroken_Assert_StdlibSelect0[] =
1626 "exit *\\(|abort *\\(";
1629 * content bypass pattern - skip fix if pattern found
1631 tSCC zBroken_Assert_StdlibBypass0[] =
1632 "include.*stdlib\\.h";
1634 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1635 static tTestDesc aBroken_Assert_StdlibTests[] = {
1636 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1637 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1640 * Fix Command Arguments for Broken_Assert_Stdlib
1642 static const char* apzBroken_Assert_StdlibPatch[] = {
1644 "#ifdef __cplusplus\n\
1645 #include <stdlib.h>\n\
1649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1651 * Description of Broken_Cabs fix
1653 tSCC zBroken_CabsName[] =
1657 * File name selection pattern
1659 tSCC zBroken_CabsList[] =
1660 "math.h\0architecture/*/math.h\0";
1662 * Machine/OS name selection pattern
1664 #define apzBroken_CabsMachs (const char**)NULL
1667 * content selection pattern - do fix if pattern found
1669 tSCC zBroken_CabsSelect0[] =
1670 "^extern[ \t]+double[ \t]+cabs";
1672 #define BROKEN_CABS_TEST_CT 1
1673 static tTestDesc aBroken_CabsTests[] = {
1674 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1677 * Fix Command Arguments for Broken_Cabs
1679 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1680 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1681 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1686 * Description of Broken_Nan fix
1688 tSCC zBroken_NanName[] =
1692 * File name selection pattern
1694 tSCC zBroken_NanList[] =
1695 "architecture/ppc/math.h\0architecture/*/math.h\0";
1697 * Machine/OS name selection pattern
1699 #define apzBroken_NanMachs (const char**)NULL
1702 * content selection pattern - do fix if pattern found
1704 tSCC zBroken_NanSelect0[] =
1705 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1708 * content bypass pattern - skip fix if pattern found
1710 tSCC zBroken_NanBypass0[] =
1713 #define BROKEN_NAN_TEST_CT 2
1714 static tTestDesc aBroken_NanTests[] = {
1715 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1716 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1719 * Fix Command Arguments for Broken_Nan
1721 static const char* apzBroken_NanPatch[] = {
1726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1728 * Description of Bsd_Stdio_Attrs_Conflict fix
1730 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1731 "bsd_stdio_attrs_conflict";
1734 * File name selection pattern
1736 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1739 * Machine/OS name selection pattern
1741 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1744 (const char*)NULL };
1747 * content selection pattern - do fix if pattern found
1749 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1750 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1752 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1753 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1754 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1757 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1759 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1761 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1762 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1763 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1768 * Description of Ctrl_Quotes_Def fix
1770 tSCC zCtrl_Quotes_DefName[] =
1774 * File name selection pattern
1776 #define zCtrl_Quotes_DefList (char*)NULL
1778 * Machine/OS name selection pattern
1780 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1783 * content selection pattern - do fix if pattern found
1785 tSCC zCtrl_Quotes_DefSelect0[] =
1786 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1788 #define CTRL_QUOTES_DEF_TEST_CT 1
1789 static tTestDesc aCtrl_Quotes_DefTests[] = {
1790 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1793 * Fix Command Arguments for Ctrl_Quotes_Def
1795 static const char* apzCtrl_Quotes_DefPatch[] = {
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1802 * Description of Ctrl_Quotes_Use fix
1804 tSCC zCtrl_Quotes_UseName[] =
1808 * File name selection pattern
1810 #define zCtrl_Quotes_UseList (char*)NULL
1812 * Machine/OS name selection pattern
1814 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1817 * content selection pattern - do fix if pattern found
1819 tSCC zCtrl_Quotes_UseSelect0[] =
1820 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1822 #define CTRL_QUOTES_USE_TEST_CT 1
1823 static tTestDesc aCtrl_Quotes_UseTests[] = {
1824 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1827 * Fix Command Arguments for Ctrl_Quotes_Use
1829 static const char* apzCtrl_Quotes_UsePatch[] = {
1834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1836 * Description of Cxx_Unready fix
1838 tSCC zCxx_UnreadyName[] =
1842 * File name selection pattern
1844 tSCC zCxx_UnreadyList[] =
1845 "sys/mman.h\0rpc/types.h\0";
1847 * Machine/OS name selection pattern
1849 #define apzCxx_UnreadyMachs (const char**)NULL
1852 * content selection pattern - do fix if pattern found
1854 tSCC zCxx_UnreadySelect0[] =
1858 * content bypass pattern - skip fix if pattern found
1860 tSCC zCxx_UnreadyBypass0[] =
1861 "\"C\"|__BEGIN_DECLS";
1863 #define CXX_UNREADY_TEST_CT 2
1864 static tTestDesc aCxx_UnreadyTests[] = {
1865 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1866 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1869 * Fix Command Arguments for Cxx_Unready
1871 static const char* apzCxx_UnreadyPatch[] = {
1873 "#ifdef __cplusplus\n\
1876 "#ifdef __cplusplus\n\
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1883 * Description of Darwin_Externc fix
1885 tSCC zDarwin_ExterncName[] =
1889 * File name selection pattern
1891 tSCC zDarwin_ExterncList[] =
1892 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1894 * Machine/OS name selection pattern
1896 tSCC* apzDarwin_ExterncMachs[] = {
1898 (const char*)NULL };
1901 * content bypass pattern - skip fix if pattern found
1903 tSCC zDarwin_ExterncBypass0[] =
1905 tSCC zDarwin_ExterncBypass1[] =
1908 #define DARWIN_EXTERNC_TEST_CT 2
1909 static tTestDesc aDarwin_ExterncTests[] = {
1910 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1911 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1914 * Fix Command Arguments for Darwin_Externc
1916 static const char* apzDarwin_ExterncPatch[] = {
1918 "#ifdef __cplusplus\n\
1921 "#ifdef __cplusplus\n\
1926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1928 * Description of Darwin_Gcc4_Breakage fix
1930 tSCC zDarwin_Gcc4_BreakageName[] =
1931 "darwin_gcc4_breakage";
1934 * File name selection pattern
1936 tSCC zDarwin_Gcc4_BreakageList[] =
1937 "AvailabilityMacros.h\0";
1939 * Machine/OS name selection pattern
1941 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1943 (const char*)NULL };
1946 * content selection pattern - do fix if pattern found
1948 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1949 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1951 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1952 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1953 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1956 * Fix Command Arguments for Darwin_Gcc4_Breakage
1958 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1960 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1965 * Description of Darwin_Private_Extern fix
1967 tSCC zDarwin_Private_ExternName[] =
1968 "darwin_private_extern";
1971 * File name selection pattern
1973 tSCC zDarwin_Private_ExternList[] =
1976 * Machine/OS name selection pattern
1978 tSCC* apzDarwin_Private_ExternMachs[] = {
1980 (const char*)NULL };
1983 * content selection pattern - do fix if pattern found
1985 tSCC zDarwin_Private_ExternSelect0[] =
1986 "__private_extern__ [a-z_]+ _dyld_";
1988 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1989 static tTestDesc aDarwin_Private_ExternTests[] = {
1990 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1993 * Fix Command Arguments for Darwin_Private_Extern
1995 static const char* apzDarwin_Private_ExternPatch[] = {
1998 "__private_extern__",
2001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2003 * Description of Darwin_Stdint_1 fix
2005 tSCC zDarwin_Stdint_1Name[] =
2009 * File name selection pattern
2011 tSCC zDarwin_Stdint_1List[] =
2012 "stdint-darwin.h\0stdint.h\0";
2014 * Machine/OS name selection pattern
2016 tSCC* apzDarwin_Stdint_1Machs[] = {
2018 (const char*)NULL };
2021 * content selection pattern - do fix if pattern found
2023 tSCC zDarwin_Stdint_1Select0[] =
2024 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2025 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2027 #define DARWIN_STDINT_1_TEST_CT 1
2028 static tTestDesc aDarwin_Stdint_1Tests[] = {
2029 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2032 * Fix Command Arguments for Darwin_Stdint_1
2034 static const char* apzDarwin_Stdint_1Patch[] = {
2036 "#define UINT8_C(v)\tv\n\
2037 #define UINT16_C(v)\tv",
2040 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2042 * Description of Darwin_Stdint_2 fix
2044 tSCC zDarwin_Stdint_2Name[] =
2048 * File name selection pattern
2050 tSCC zDarwin_Stdint_2List[] =
2051 "stdint-darwin.h\0stdint.h\0";
2053 * Machine/OS name selection pattern
2055 tSCC* apzDarwin_Stdint_2Machs[] = {
2057 (const char*)NULL };
2060 * content selection pattern - do fix if pattern found
2062 tSCC zDarwin_Stdint_2Select0[] =
2063 "#if __WORDSIZE == 64\n\
2064 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2065 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2067 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2068 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2071 #define DARWIN_STDINT_2_TEST_CT 1
2072 static tTestDesc aDarwin_Stdint_2Tests[] = {
2073 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2076 * Fix Command Arguments for Darwin_Stdint_2
2078 static const char* apzDarwin_Stdint_2Patch[] = {
2080 "#if __WORDSIZE == 64\n\
2081 #define INTPTR_MAX 9223372036854775807L\n\
2082 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2084 #define INTPTR_MAX 2147483647L\n\
2085 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2091 * Description of Darwin_Stdint_3 fix
2093 tSCC zDarwin_Stdint_3Name[] =
2097 * File name selection pattern
2099 tSCC zDarwin_Stdint_3List[] =
2100 "stdint-darwin.h\0stdint.h\0";
2102 * Machine/OS name selection pattern
2104 tSCC* apzDarwin_Stdint_3Machs[] = {
2106 (const char*)NULL };
2109 * content selection pattern - do fix if pattern found
2111 tSCC zDarwin_Stdint_3Select0[] =
2112 "#if __WORDSIZE == 64\n\
2113 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2115 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2118 #define DARWIN_STDINT_3_TEST_CT 1
2119 static tTestDesc aDarwin_Stdint_3Tests[] = {
2120 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2123 * Fix Command Arguments for Darwin_Stdint_3
2125 static const char* apzDarwin_Stdint_3Patch[] = {
2127 "#if __WORDSIZE == 64\n\
2128 #define UINTPTR_MAX 18446744073709551615UL\n\
2130 #define UINTPTR_MAX 4294967295UL\n\
2134 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2136 * Description of Darwin_Stdint_4 fix
2138 tSCC zDarwin_Stdint_4Name[] =
2142 * File name selection pattern
2144 tSCC zDarwin_Stdint_4List[] =
2145 "stdint-darwin.h\0stdint.h\0";
2147 * Machine/OS name selection pattern
2149 tSCC* apzDarwin_Stdint_4Machs[] = {
2151 (const char*)NULL };
2154 * content selection pattern - do fix if pattern found
2156 tSCC zDarwin_Stdint_4Select0[] =
2157 "#if __WORDSIZE == 64\n\
2158 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2160 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2163 #define DARWIN_STDINT_4_TEST_CT 1
2164 static tTestDesc aDarwin_Stdint_4Tests[] = {
2165 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2168 * Fix Command Arguments for Darwin_Stdint_4
2170 static const char* apzDarwin_Stdint_4Patch[] = {
2172 "#if __WORDSIZE == 64\n\
2173 #define SIZE_MAX 18446744073709551615UL\n\
2175 #define SIZE_MAX 4294967295UL\n\
2179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2181 * Description of Darwin_Stdint_5 fix
2183 tSCC zDarwin_Stdint_5Name[] =
2187 * File name selection pattern
2189 tSCC zDarwin_Stdint_5List[] =
2190 "stdint-darwin.h\0stdint.h\0";
2192 * Machine/OS name selection pattern
2194 tSCC* apzDarwin_Stdint_5Machs[] = {
2196 (const char*)NULL };
2199 * content selection pattern - do fix if pattern found
2201 tSCC zDarwin_Stdint_5Select0[] =
2202 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2203 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2204 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2206 #define DARWIN_STDINT_5_TEST_CT 1
2207 static tTestDesc aDarwin_Stdint_5Tests[] = {
2208 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2211 * Fix Command Arguments for Darwin_Stdint_5
2213 static const char* apzDarwin_Stdint_5Patch[] = {
2215 "#if __WORDSIZE == 64\n\
2216 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2217 #define INTMAX_MAX 9223372036854775807L\n\
2218 #define UINTMAX_MAX 18446744073709551615UL\n\
2220 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2221 #define INTMAX_MAX 9223372036854775807LL\n\
2222 #define UINTMAX_MAX 18446744073709551615ULL\n\
2226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2228 * Description of Darwin_Stdint_6 fix
2230 tSCC zDarwin_Stdint_6Name[] =
2234 * File name selection pattern
2236 tSCC zDarwin_Stdint_6List[] =
2237 "stdint-darwin.h\0stdint.h\0";
2239 * Machine/OS name selection pattern
2241 tSCC* apzDarwin_Stdint_6Machs[] = {
2243 (const char*)NULL };
2246 * content selection pattern - do fix if pattern found
2248 tSCC zDarwin_Stdint_6Select0[] =
2249 "#if __WORDSIZE == 64\n\
2250 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2251 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2253 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2254 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2257 #define DARWIN_STDINT_6_TEST_CT 1
2258 static tTestDesc aDarwin_Stdint_6Tests[] = {
2259 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2262 * Fix Command Arguments for Darwin_Stdint_6
2264 static const char* apzDarwin_Stdint_6Patch[] = {
2266 "#if __WORDSIZE == 64\n\
2267 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2268 #define PTRDIFF_MAX 9223372036854775807L\n\
2270 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2271 #define PTRDIFF_MAX 2147483647\n\
2275 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2277 * Description of Darwin_Stdint_7 fix
2279 tSCC zDarwin_Stdint_7Name[] =
2283 * File name selection pattern
2285 tSCC zDarwin_Stdint_7List[] =
2286 "stdint-darwin.h\0stdint.h\0";
2288 * Machine/OS name selection pattern
2290 tSCC* apzDarwin_Stdint_7Machs[] = {
2292 (const char*)NULL };
2295 * content selection pattern - do fix if pattern found
2297 tSCC zDarwin_Stdint_7Select0[] =
2298 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2299 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2301 #define DARWIN_STDINT_7_TEST_CT 1
2302 static tTestDesc aDarwin_Stdint_7Tests[] = {
2303 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2306 * Fix Command Arguments for Darwin_Stdint_7
2308 static const char* apzDarwin_Stdint_7Patch[] = {
2310 "#if __WORDSIZE == 64\n\
2311 #define INTMAX_C(v) (v ## L)\n\
2312 #define UINTMAX_C(v) (v ## UL)\n\
2314 #define INTMAX_C(v) (v ## LL)\n\
2315 #define UINTMAX_C(v) (v ## ULL)\n\
2319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2321 * Description of Dec_Intern_Asm fix
2323 tSCC zDec_Intern_AsmName[] =
2327 * File name selection pattern
2329 tSCC zDec_Intern_AsmList[] =
2332 * Machine/OS name selection pattern
2334 #define apzDec_Intern_AsmMachs (const char**)NULL
2335 #define DEC_INTERN_ASM_TEST_CT 0
2336 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2339 * Fix Command Arguments for Dec_Intern_Asm
2341 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2342 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2344 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2350 * Description of Djgpp_Wchar_H fix
2352 tSCC zDjgpp_Wchar_HName[] =
2356 * File name selection pattern
2358 #define zDjgpp_Wchar_HList (char*)NULL
2360 * Machine/OS name selection pattern
2362 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2365 * content selection pattern - do fix if pattern found
2367 tSCC zDjgpp_Wchar_HSelect0[] =
2371 * content bypass pattern - skip fix if pattern found
2373 tSCC zDjgpp_Wchar_HBypass0[] =
2376 #define DJGPP_WCHAR_H_TEST_CT 2
2377 static tTestDesc aDjgpp_Wchar_HTests[] = {
2378 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2379 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2382 * Fix Command Arguments for Djgpp_Wchar_H
2384 static const char* apzDjgpp_Wchar_HPatch[] = {
2387 #include <sys/djtypes.h>",
2388 "#include <stddef.h>",
2391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2393 * Description of Ecd_Cursor fix
2395 tSCC zEcd_CursorName[] =
2399 * File name selection pattern
2401 tSCC zEcd_CursorList[] =
2402 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2404 * Machine/OS name selection pattern
2406 #define apzEcd_CursorMachs (const char**)NULL
2409 * content selection pattern - do fix if pattern found
2411 tSCC zEcd_CursorSelect0[] =
2414 #define ECD_CURSOR_TEST_CT 1
2415 static tTestDesc aEcd_CursorTests[] = {
2416 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2419 * Fix Command Arguments for Ecd_Cursor
2421 static const char* apzEcd_CursorPatch[] = {
2426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2428 * Description of Freebsd_Gcc3_Breakage fix
2430 tSCC zFreebsd_Gcc3_BreakageName[] =
2431 "freebsd_gcc3_breakage";
2434 * File name selection pattern
2436 tSCC zFreebsd_Gcc3_BreakageList[] =
2439 * Machine/OS name selection pattern
2441 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2443 (const char*)NULL };
2446 * content selection pattern - do fix if pattern found
2448 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2449 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2452 * content bypass pattern - skip fix if pattern found
2454 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2455 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2457 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2458 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2459 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2460 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2463 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2465 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2467 "%0 || __GNUC__ >= 3",
2470 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2472 * Description of Freebsd_Gcc4_Breakage fix
2474 tSCC zFreebsd_Gcc4_BreakageName[] =
2475 "freebsd_gcc4_breakage";
2478 * File name selection pattern
2480 tSCC zFreebsd_Gcc4_BreakageList[] =
2483 * Machine/OS name selection pattern
2485 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2487 (const char*)NULL };
2490 * content selection pattern - do fix if pattern found
2492 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2493 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2495 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2496 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2497 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2500 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2502 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2504 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2509 * Description of Glibc_C99_Inline_1 fix
2511 tSCC zGlibc_C99_Inline_1Name[] =
2512 "glibc_c99_inline_1";
2515 * File name selection pattern
2517 tSCC zGlibc_C99_Inline_1List[] =
2518 "features.h\0*/features.h\0";
2520 * Machine/OS name selection pattern
2522 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2525 * content selection pattern - do fix if pattern found
2527 tSCC zGlibc_C99_Inline_1Select0[] =
2528 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2530 #define GLIBC_C99_INLINE_1_TEST_CT 1
2531 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2532 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2535 * Fix Command Arguments for Glibc_C99_Inline_1
2537 static const char* apzGlibc_C99_Inline_1Patch[] = {
2539 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2544 * Description of Glibc_C99_Inline_1a fix
2546 tSCC zGlibc_C99_Inline_1aName[] =
2547 "glibc_c99_inline_1a";
2550 * File name selection pattern
2552 tSCC zGlibc_C99_Inline_1aList[] =
2553 "features.h\0*/features.h\0";
2555 * Machine/OS name selection pattern
2557 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2560 * content selection pattern - do fix if pattern found
2562 tSCC zGlibc_C99_Inline_1aSelect0[] =
2563 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2564 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2566 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2567 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2568 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2571 * Fix Command Arguments for Glibc_C99_Inline_1a
2573 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2575 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2581 * Description of Glibc_C99_Inline_2 fix
2583 tSCC zGlibc_C99_Inline_2Name[] =
2584 "glibc_c99_inline_2";
2587 * File name selection pattern
2589 tSCC zGlibc_C99_Inline_2List[] =
2590 "sys/stat.h\0*/sys/stat.h\0";
2592 * Machine/OS name selection pattern
2594 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2597 * content selection pattern - do fix if pattern found
2599 tSCC zGlibc_C99_Inline_2Select0[] =
2600 "extern __inline__ int";
2602 #define GLIBC_C99_INLINE_2_TEST_CT 1
2603 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2604 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2607 * Fix Command Arguments for Glibc_C99_Inline_2
2609 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2610 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2613 __inline__ int \\1/",
2614 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2617 __inline__ int \\1/",
2618 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2621 __inline__ int \\1/",
2622 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2625 __inline__ int __REDIRECT\\1 (\\2/",
2626 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2629 __inline__ int __REDIRECT\\1 (\\2/",
2630 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2638 * Description of Glibc_C99_Inline_3 fix
2640 tSCC zGlibc_C99_Inline_3Name[] =
2641 "glibc_c99_inline_3";
2644 * File name selection pattern
2646 tSCC zGlibc_C99_Inline_3List[] =
2647 "bits/string2.h\0*/bits/string2.h\0";
2649 * Machine/OS name selection pattern
2651 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2654 * content selection pattern - do fix if pattern found
2656 tSCC zGlibc_C99_Inline_3Select0[] =
2660 * content bypass pattern - skip fix if pattern found
2662 tSCC zGlibc_C99_Inline_3Bypass0[] =
2663 "__extern_inline|__GNU_STDC_INLINE__";
2665 #define GLIBC_C99_INLINE_3_TEST_CT 2
2666 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2667 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2668 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2671 * Fix Command Arguments for Glibc_C99_Inline_3
2673 static const char* apzGlibc_C99_Inline_3Patch[] = {
2675 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2676 "^# ifdef __cplusplus$",
2679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2681 * Description of Glibc_C99_Inline_4 fix
2683 tSCC zGlibc_C99_Inline_4Name[] =
2684 "glibc_c99_inline_4";
2687 * File name selection pattern
2689 tSCC zGlibc_C99_Inline_4List[] =
2690 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2692 * Machine/OS name selection pattern
2694 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2697 * content selection pattern - do fix if pattern found
2699 tSCC zGlibc_C99_Inline_4Select0[] =
2700 "(^| )extern __inline";
2703 * content bypass pattern - skip fix if pattern found
2705 tSCC zGlibc_C99_Inline_4Bypass0[] =
2706 "__extern_inline|__gnu_inline__";
2708 #define GLIBC_C99_INLINE_4_TEST_CT 2
2709 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2710 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2711 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2714 * Fix Command Arguments for Glibc_C99_Inline_4
2716 static const char* apzGlibc_C99_Inline_4Patch[] = {
2718 "%0 __attribute__ ((__gnu_inline__))",
2721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2723 * Description of Glibc_Mutex_Init fix
2725 tSCC zGlibc_Mutex_InitName[] =
2729 * File name selection pattern
2731 tSCC zGlibc_Mutex_InitList[] =
2734 * Machine/OS name selection pattern
2736 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2739 * content selection pattern - do fix if pattern found
2741 tSCC zGlibc_Mutex_InitSelect0[] =
2742 "\\{ *\\{ *0, *\\} *\\}";
2744 #define GLIBC_MUTEX_INIT_TEST_CT 1
2745 static tTestDesc aGlibc_Mutex_InitTests[] = {
2746 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2749 * Fix Command Arguments for Glibc_Mutex_Init
2751 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2752 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2754 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2756 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2757 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2758 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2759 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2760 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2761 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2762 "-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\
2764 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2767 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2769 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2770 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2775 * Description of Glibc_Stdint fix
2777 tSCC zGlibc_StdintName[] =
2781 * File name selection pattern
2783 tSCC zGlibc_StdintList[] =
2786 * Machine/OS name selection pattern
2788 #define apzGlibc_StdintMachs (const char**)NULL
2791 * content selection pattern - do fix if pattern found
2793 tSCC zGlibc_StdintSelect0[] =
2796 #define GLIBC_STDINT_TEST_CT 1
2797 static tTestDesc aGlibc_StdintTests[] = {
2798 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2801 * Fix Command Arguments for Glibc_Stdint
2803 static const char* apzGlibc_StdintPatch[] = {
2805 "# define UINT8_C(c)\tc\n\
2806 # define UINT16_C(c)\tc",
2807 "# define UINT8_C\\(c\\)\tc ## U\n\
2808 # define UINT16_C\\(c\\)\tc ## U",
2811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2813 * Description of Glibc_Strncpy fix
2815 tSCC zGlibc_StrncpyName[] =
2819 * File name selection pattern
2821 tSCC zGlibc_StrncpyList[] =
2824 * Machine/OS name selection pattern
2826 #define apzGlibc_StrncpyMachs (const char**)NULL
2829 * content bypass pattern - skip fix if pattern found
2831 tSCC zGlibc_StrncpyBypass0[] =
2832 "__builtin_strncpy";
2834 #define GLIBC_STRNCPY_TEST_CT 1
2835 static tTestDesc aGlibc_StrncpyTests[] = {
2836 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2839 * Fix Command Arguments for Glibc_Strncpy
2841 static const char* apzGlibc_StrncpyPatch[] = {
2843 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2844 "# define strncpy([^\n\
2850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2852 * Description of Glibc_Tgmath fix
2854 tSCC zGlibc_TgmathName[] =
2858 * File name selection pattern
2860 tSCC zGlibc_TgmathList[] =
2863 * Machine/OS name selection pattern
2865 #define apzGlibc_TgmathMachs (const char**)NULL
2868 * content selection pattern - do fix if pattern found
2870 tSCC zGlibc_TgmathSelect0[] =
2871 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2874 * content bypass pattern - skip fix if pattern found
2876 tSCC zGlibc_TgmathBypass0[] =
2877 "__floating_type\\(type\\) \\\\\n\
2878 .*__builtin_classify_type";
2880 #define GLIBC_TGMATH_TEST_CT 2
2881 static tTestDesc aGlibc_TgmathTests[] = {
2882 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2883 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2886 * Fix Command Arguments for Glibc_Tgmath
2888 static const char* apzGlibc_TgmathPatch[] = {
2890 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2895 * Description of Gnu_Types fix
2897 tSCC zGnu_TypesName[] =
2901 * File name selection pattern
2903 tSCC zGnu_TypesList[] =
2904 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2906 * Machine/OS name selection pattern
2908 tSCC* apzGnu_TypesMachs[] = {
2909 "*-*-solaris2.1[0-9]*",
2910 (const char*)NULL };
2913 * content selection pattern - do fix if pattern found
2915 tSCC zGnu_TypesSelect0[] =
2916 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2919 * content bypass pattern - skip fix if pattern found
2921 tSCC zGnu_TypesBypass0[] =
2922 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2924 #define GNU_TYPES_TEST_CT 2
2925 static tTestDesc aGnu_TypesTests[] = {
2926 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2927 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2930 * Fix Command Arguments for Gnu_Types
2932 static const char* apzGnu_TypesPatch[] = {
2936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2938 * Description of Hp_Inline fix
2940 tSCC zHp_InlineName[] =
2944 * File name selection pattern
2946 tSCC zHp_InlineList[] =
2947 "sys/spinlock.h\0machine/machparam.h\0";
2949 * Machine/OS name selection pattern
2951 #define apzHp_InlineMachs (const char**)NULL
2954 * content selection pattern - do fix if pattern found
2956 tSCC zHp_InlineSelect0[] =
2957 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2959 #define HP_INLINE_TEST_CT 1
2960 static tTestDesc aHp_InlineTests[] = {
2961 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2964 * Fix Command Arguments for Hp_Inline
2966 static const char* apzHp_InlinePatch[] = {
2969 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2974 * Description of Hp_Sysfile fix
2976 tSCC zHp_SysfileName[] =
2980 * File name selection pattern
2982 tSCC zHp_SysfileList[] =
2985 * Machine/OS name selection pattern
2987 #define apzHp_SysfileMachs (const char**)NULL
2990 * content selection pattern - do fix if pattern found
2992 tSCC zHp_SysfileSelect0[] =
2995 #define HP_SYSFILE_TEST_CT 1
2996 static tTestDesc aHp_SysfileTests[] = {
2997 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
3000 * Fix Command Arguments for Hp_Sysfile
3002 static const char* apzHp_SysfilePatch[] = {
3004 "(struct file *, ...)",
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010 * Description of Hppa_Hpux_Fp_Macros fix
3012 tSCC zHppa_Hpux_Fp_MacrosName[] =
3013 "hppa_hpux_fp_macros";
3016 * File name selection pattern
3018 tSCC zHppa_Hpux_Fp_MacrosList[] =
3021 * Machine/OS name selection pattern
3023 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3025 (const char*)NULL };
3028 * content selection pattern - do fix if pattern found
3030 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3031 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3032 #[ \t]*define[ \t]*FP_ZERO.*\n\
3033 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3034 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3035 #[ \t]*define[ \t]*FP_NAN.*\n";
3037 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
3038 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3039 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3042 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
3044 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3046 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3047 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3048 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3050 #ifdef _INCLUDE_HPUX_SOURCE\n",
3053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3055 * Description of Hpux10_Cpp_Pow_Inline fix
3057 tSCC zHpux10_Cpp_Pow_InlineName[] =
3058 "hpux10_cpp_pow_inline";
3061 * File name selection pattern
3063 tSCC zHpux10_Cpp_Pow_InlineList[] =
3064 "fixinc-test-limits.h\0math.h\0";
3066 * Machine/OS name selection pattern
3068 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3071 * content selection pattern - do fix if pattern found
3073 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3074 "^# +ifdef +__cplusplus\n\
3076 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3077 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3079 +extern +\"C\" +\\{\n\
3083 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
3084 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3085 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3088 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3090 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3097 * Description of Hpux11_Cpp_Pow_Inline fix
3099 tSCC zHpux11_Cpp_Pow_InlineName[] =
3100 "hpux11_cpp_pow_inline";
3103 * File name selection pattern
3105 tSCC zHpux11_Cpp_Pow_InlineList[] =
3108 * Machine/OS name selection pattern
3110 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3113 * content selection pattern - do fix if pattern found
3115 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3116 " +inline double pow\\(double d,int expon\\) \\{\n\
3117 +return pow\\(d, \\(double\\)expon\\);\n\
3120 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
3121 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3122 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3125 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3127 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3134 * Description of Hpux10_Ctype_Declarations1 fix
3136 tSCC zHpux10_Ctype_Declarations1Name[] =
3137 "hpux10_ctype_declarations1";
3140 * File name selection pattern
3142 tSCC zHpux10_Ctype_Declarations1List[] =
3145 * Machine/OS name selection pattern
3147 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3150 * content selection pattern - do fix if pattern found
3152 tSCC zHpux10_Ctype_Declarations1Select0[] =
3153 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3156 * content bypass pattern - skip fix if pattern found
3158 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3159 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3161 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
3162 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3163 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3164 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3167 * Fix Command Arguments for Hpux10_Ctype_Declarations1
3169 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3171 "#ifdef _PROTOTYPES\n\
3172 extern int __tolower(int);\n\
3173 extern int __toupper(int);\n\
3174 #else /* NOT _PROTOTYPES */\n\
3175 extern int __tolower();\n\
3176 extern int __toupper();\n\
3177 #endif /* _PROTOTYPES */\n\n\
3181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3183 * Description of Hpux10_Ctype_Declarations2 fix
3185 tSCC zHpux10_Ctype_Declarations2Name[] =
3186 "hpux10_ctype_declarations2";
3189 * File name selection pattern
3191 tSCC zHpux10_Ctype_Declarations2List[] =
3194 * Machine/OS name selection pattern
3196 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3199 * content selection pattern - do fix if pattern found
3201 tSCC zHpux10_Ctype_Declarations2Select0[] =
3202 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3205 * content bypass pattern - skip fix if pattern found
3207 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3208 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3210 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
3211 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3212 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3213 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3216 * Fix Command Arguments for Hpux10_Ctype_Declarations2
3218 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3221 #ifdef _PROTOTYPES\n\
3222 extern int _isalnum(int);\n\
3223 extern int _isalpha(int);\n\
3224 extern int _iscntrl(int);\n\
3225 extern int _isdigit(int);\n\
3226 extern int _isgraph(int);\n\
3227 extern int _islower(int);\n\
3228 extern int _isprint(int);\n\
3229 extern int _ispunct(int);\n\
3230 extern int _isspace(int);\n\
3231 extern int _isupper(int);\n\
3232 extern int _isxdigit(int);\n\
3233 # else /* not _PROTOTYPES */\n\
3234 extern int _isalnum();\n\
3235 extern int _isalpha();\n\
3236 extern int _iscntrl();\n\
3237 extern int _isdigit();\n\
3238 extern int _isgraph();\n\
3239 extern int _islower();\n\
3240 extern int _isprint();\n\
3241 extern int _ispunct();\n\
3242 extern int _isspace();\n\
3243 extern int _isupper();\n\
3244 extern int _isxdigit();\n\
3245 #endif /* _PROTOTYPES */\n",
3248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3250 * Description of Hpux10_Stdio_Declarations fix
3252 tSCC zHpux10_Stdio_DeclarationsName[] =
3253 "hpux10_stdio_declarations";
3256 * File name selection pattern
3258 tSCC zHpux10_Stdio_DeclarationsList[] =
3261 * Machine/OS name selection pattern
3263 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3266 * content selection pattern - do fix if pattern found
3268 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3269 "^#[ \t]*define _iob[ \t]*__iob";
3272 * content bypass pattern - skip fix if pattern found
3274 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3275 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3277 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3278 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3279 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3280 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3283 * Fix Command Arguments for Hpux10_Stdio_Declarations
3285 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3288 # if defined(__STDC__) || defined(__cplusplus)\n\
3289 extern int snprintf(char *, size_t, const char *, ...);\n\
3290 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3291 # else /* not __STDC__) || __cplusplus */\n\
3292 extern int snprintf();\n\
3293 extern int vsnprintf();\n\
3294 # endif /* __STDC__) || __cplusplus */\n",
3297 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3299 * Description of Hpux11_Abs fix
3301 tSCC zHpux11_AbsName[] =
3305 * File name selection pattern
3307 tSCC zHpux11_AbsList[] =
3310 * Machine/OS name selection pattern
3312 tSCC* apzHpux11_AbsMachs[] = {
3314 (const char*)NULL };
3317 * content selection pattern - do fix if pattern found
3319 tSCC zHpux11_AbsSelect0[] =
3320 "ifndef _MATH_INCLUDED";
3322 #define HPUX11_ABS_TEST_CT 1
3323 static tTestDesc aHpux11_AbsTests[] = {
3324 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3327 * Fix Command Arguments for Hpux11_Abs
3329 static const char* apzHpux11_AbsPatch[] = {
3331 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3336 * Description of Hpux11_Fabsf fix
3338 tSCC zHpux11_FabsfName[] =
3342 * File name selection pattern
3344 tSCC zHpux11_FabsfList[] =
3347 * Machine/OS name selection pattern
3349 #define apzHpux11_FabsfMachs (const char**)NULL
3352 * content selection pattern - do fix if pattern found
3354 tSCC zHpux11_FabsfSelect0[] =
3355 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3358 * content bypass pattern - skip fix if pattern found
3360 tSCC zHpux11_FabsfBypass0[] =
3363 #define HPUX11_FABSF_TEST_CT 2
3364 static tTestDesc aHpux11_FabsfTests[] = {
3365 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3366 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3369 * Fix Command Arguments for Hpux11_Fabsf
3371 static const char* apzHpux11_FabsfPatch[] = {
3373 "#ifndef __cplusplus\n\
3378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3380 * Description of Hpux11_Pthread_Const fix
3382 tSCC zHpux11_Pthread_ConstName[] =
3383 "hpux11_pthread_const";
3386 * File name selection pattern
3388 tSCC zHpux11_Pthread_ConstList[] =
3391 * Machine/OS name selection pattern
3393 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3394 "*-hp-hpux11.[0-3]*",
3395 (const char*)NULL };
3398 * content selection pattern - do fix if pattern found
3400 tSCC zHpux11_Pthread_ConstSelect0[] =
3401 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3403 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3404 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3405 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3408 * Fix Command Arguments for Hpux11_Pthread_Const
3410 static const char* apzHpux11_Pthread_ConstPatch[] = {
3412 "#define __POINTER_SET\t\t((void *) 1L)",
3415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3417 * Description of Hpux11_Size_T fix
3419 tSCC zHpux11_Size_TName[] =
3423 * File name selection pattern
3425 #define zHpux11_Size_TList (char*)NULL
3427 * Machine/OS name selection pattern
3429 tSCC* apzHpux11_Size_TMachs[] = {
3431 (const char*)NULL };
3434 * content selection pattern - do fix if pattern found
3436 tSCC zHpux11_Size_TSelect0[] =
3439 #define HPUX11_SIZE_T_TEST_CT 1
3440 static tTestDesc aHpux11_Size_TTests[] = {
3441 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3444 * Fix Command Arguments for Hpux11_Size_T
3446 static const char* apzHpux11_Size_TPatch[] = {
3451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3453 * Description of Hpux11_Snprintf fix
3455 tSCC zHpux11_SnprintfName[] =
3459 * File name selection pattern
3461 tSCC zHpux11_SnprintfList[] =
3464 * Machine/OS name selection pattern
3466 #define apzHpux11_SnprintfMachs (const char**)NULL
3469 * content selection pattern - do fix if pattern found
3471 tSCC zHpux11_SnprintfSelect0[] =
3472 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3474 #define HPUX11_SNPRINTF_TEST_CT 1
3475 static tTestDesc aHpux11_SnprintfTests[] = {
3476 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3479 * Fix Command Arguments for Hpux11_Snprintf
3481 static const char* apzHpux11_SnprintfPatch[] = {
3486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3488 * Description of Hpux11_Vsnprintf fix
3490 tSCC zHpux11_VsnprintfName[] =
3494 * File name selection pattern
3496 tSCC zHpux11_VsnprintfList[] =
3499 * Machine/OS name selection pattern
3501 #define apzHpux11_VsnprintfMachs (const char**)NULL
3504 * content selection pattern - do fix if pattern found
3506 tSCC zHpux11_VsnprintfSelect0[] =
3507 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3509 #define HPUX11_VSNPRINTF_TEST_CT 1
3510 static tTestDesc aHpux11_VsnprintfTests[] = {
3511 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3514 * Fix Command Arguments for Hpux11_Vsnprintf
3516 static const char* apzHpux11_VsnprintfPatch[] = {
3521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3523 * Description of Hpux8_Bogus_Inlines fix
3525 tSCC zHpux8_Bogus_InlinesName[] =
3526 "hpux8_bogus_inlines";
3529 * File name selection pattern
3531 tSCC zHpux8_Bogus_InlinesList[] =
3534 * Machine/OS name selection pattern
3536 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3539 * content selection pattern - do fix if pattern found
3541 tSCC zHpux8_Bogus_InlinesSelect0[] =
3545 * content bypass pattern - skip fix if pattern found
3547 tSCC zHpux8_Bogus_InlinesBypass0[] =
3550 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3551 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3552 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3553 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3556 * Fix Command Arguments for Hpux8_Bogus_Inlines
3558 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3559 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3560 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3561 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3562 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3567 * Description of Hpux_Ctype_Macros fix
3569 tSCC zHpux_Ctype_MacrosName[] =
3570 "hpux_ctype_macros";
3573 * File name selection pattern
3575 tSCC zHpux_Ctype_MacrosList[] =
3578 * Machine/OS name selection pattern
3580 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3583 * content selection pattern - do fix if pattern found
3585 tSCC zHpux_Ctype_MacrosSelect0[] =
3586 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3588 #define HPUX_CTYPE_MACROS_TEST_CT 1
3589 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3590 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3593 * Fix Command Arguments for Hpux_Ctype_Macros
3595 static const char* apzHpux_Ctype_MacrosPatch[] = {
3600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3602 * Description of Hpux_Htonl fix
3604 tSCC zHpux_HtonlName[] =
3608 * File name selection pattern
3610 tSCC zHpux_HtonlList[] =
3613 * Machine/OS name selection pattern
3615 #define apzHpux_HtonlMachs (const char**)NULL
3618 * content selection pattern - do fix if pattern found
3620 tSCC zHpux_HtonlSelect0[] =
3621 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3623 \\* Macros for number representation conversion\\.\n\
3627 #define HPUX_HTONL_TEST_CT 1
3628 static tTestDesc aHpux_HtonlTests[] = {
3629 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3632 * Fix Command Arguments for Hpux_Htonl
3634 static const char* apzHpux_HtonlPatch[] = {
3640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3642 * Description of Hpux_Long_Double fix
3644 tSCC zHpux_Long_DoubleName[] =
3648 * File name selection pattern
3650 tSCC zHpux_Long_DoubleList[] =
3653 * Machine/OS name selection pattern
3655 tSCC* apzHpux_Long_DoubleMachs[] = {
3657 "*-*-hpux11.[012]*",
3658 (const char*)NULL };
3661 * content selection pattern - do fix if pattern found
3663 tSCC zHpux_Long_DoubleSelect0[] =
3664 "extern[ \t]long_double[ \t]strtold";
3667 * content bypass pattern - skip fix if pattern found
3669 tSCC zHpux_Long_DoubleBypass0[] =
3672 #define HPUX_LONG_DOUBLE_TEST_CT 2
3673 static tTestDesc aHpux_Long_DoubleTests[] = {
3674 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3675 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3678 * Fix Command Arguments for Hpux_Long_Double
3680 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3681 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3682 "-e", "s/long_double/long double/g",
3685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3687 * Description of Hpux_Long_Double_2 fix
3689 tSCC zHpux_Long_Double_2Name[] =
3690 "hpux_long_double_2";
3693 * File name selection pattern
3695 tSCC zHpux_Long_Double_2List[] =
3698 * Machine/OS name selection pattern
3700 tSCC* apzHpux_Long_Double_2Machs[] = {
3701 "hppa*-*-hpux11.3*",
3702 (const char*)NULL };
3705 * content selection pattern - do fix if pattern found
3707 tSCC zHpux_Long_Double_2Select0[] =
3708 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3710 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3711 static tTestDesc aHpux_Long_Double_2Tests[] = {
3712 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3715 * Fix Command Arguments for Hpux_Long_Double_2
3717 static const char* apzHpux_Long_Double_2Patch[] = {
3719 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3724 * Description of Hpux_Systime fix
3726 tSCC zHpux_SystimeName[] =
3730 * File name selection pattern
3732 tSCC zHpux_SystimeList[] =
3735 * Machine/OS name selection pattern
3737 #define apzHpux_SystimeMachs (const char**)NULL
3740 * content selection pattern - do fix if pattern found
3742 tSCC zHpux_SystimeSelect0[] =
3743 "^extern struct sigevent;";
3745 #define HPUX_SYSTIME_TEST_CT 1
3746 static tTestDesc aHpux_SystimeTests[] = {
3747 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3750 * Fix Command Arguments for Hpux_Systime
3752 static const char* apzHpux_SystimePatch[] = {
3757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3759 * Description of Hpux_Spu_Info fix
3761 tSCC zHpux_Spu_InfoName[] =
3765 * File name selection pattern
3767 tSCC zHpux_Spu_InfoList[] =
3768 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3770 * Machine/OS name selection pattern
3772 tSCC* apzHpux_Spu_InfoMachs[] = {
3774 (const char*)NULL };
3777 * content selection pattern - do fix if pattern found
3779 tSCC zHpux_Spu_InfoSelect0[] =
3780 "^.*extern.*spu_info.*";
3782 #define HPUX_SPU_INFO_TEST_CT 1
3783 static tTestDesc aHpux_Spu_InfoTests[] = {
3784 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3787 * Fix Command Arguments for Hpux_Spu_Info
3789 static const char* apzHpux_Spu_InfoPatch[] = {
3796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3798 * Description of Hpux11_Extern_Sendfile fix
3800 tSCC zHpux11_Extern_SendfileName[] =
3801 "hpux11_extern_sendfile";
3804 * File name selection pattern
3806 tSCC zHpux11_Extern_SendfileList[] =
3809 * Machine/OS name selection pattern
3811 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3812 "*-hp-hpux11.[12]*",
3813 (const char*)NULL };
3816 * content selection pattern - do fix if pattern found
3818 tSCC zHpux11_Extern_SendfileSelect0[] =
3819 "^[ \t]*extern sbsize_t sendfile.*\n\
3822 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3823 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3824 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3827 * Fix Command Arguments for Hpux11_Extern_Sendfile
3829 static const char* apzHpux11_Extern_SendfilePatch[] = {
3831 "#ifndef _APP32_64BIT_OFF_T\n\
3835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3837 * Description of Hpux11_Extern_Sendpath fix
3839 tSCC zHpux11_Extern_SendpathName[] =
3840 "hpux11_extern_sendpath";
3843 * File name selection pattern
3845 tSCC zHpux11_Extern_SendpathList[] =
3848 * Machine/OS name selection pattern
3850 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3851 "*-hp-hpux11.[12]*",
3852 (const char*)NULL };
3855 * content selection pattern - do fix if pattern found
3857 tSCC zHpux11_Extern_SendpathSelect0[] =
3858 "^[ \t]*extern sbsize_t sendpath.*\n\
3861 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3862 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3863 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3866 * Fix Command Arguments for Hpux11_Extern_Sendpath
3868 static const char* apzHpux11_Extern_SendpathPatch[] = {
3870 "#ifndef _APP32_64BIT_OFF_T\n\
3874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3876 * Description of Hpux_Extern_Errno fix
3878 tSCC zHpux_Extern_ErrnoName[] =
3879 "hpux_extern_errno";
3882 * File name selection pattern
3884 tSCC zHpux_Extern_ErrnoList[] =
3887 * Machine/OS name selection pattern
3889 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3891 "*-hp-hpux11.[0-2]*",
3892 (const char*)NULL };
3895 * content selection pattern - do fix if pattern found
3897 tSCC zHpux_Extern_ErrnoSelect0[] =
3898 "^[ \t]*extern int errno;$";
3900 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3901 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3902 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3905 * Fix Command Arguments for Hpux_Extern_Errno
3907 static const char* apzHpux_Extern_ErrnoPatch[] = {
3909 "#ifdef __cplusplus\n\
3913 #ifdef __cplusplus\n\
3918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3920 * Description of Hpux_Pthread_Initializers fix
3922 tSCC zHpux_Pthread_InitializersName[] =
3923 "hpux_pthread_initializers";
3926 * File name selection pattern
3928 tSCC zHpux_Pthread_InitializersList[] =
3931 * Machine/OS name selection pattern
3933 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3934 "*-hp-hpux11.[0-3]*",
3935 (const char*)NULL };
3936 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3937 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3940 * Fix Command Arguments for Hpux_Pthread_Initializers
3942 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3943 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3944 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3945 "-e", "/^[ \t]*0$/d",
3946 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3947 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3948 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3949 "-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\\\\@",
3950 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3951 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3952 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3953 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3954 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3955 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3958 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3960 * Description of Hpux_C99_Intptr fix
3962 tSCC zHpux_C99_IntptrName[] =
3966 * File name selection pattern
3968 tSCC zHpux_C99_IntptrList[] =
3969 "stdint-hpux11.h\0stdint.h\0";
3971 * Machine/OS name selection pattern
3973 tSCC* apzHpux_C99_IntptrMachs[] = {
3975 (const char*)NULL };
3976 #define HPUX_C99_INTPTR_TEST_CT 0
3977 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
3980 * Fix Command Arguments for Hpux_C99_Intptr
3982 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3983 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3984 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3985 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3986 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3987 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3988 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3993 * Description of Hpux_C99_Inttypes fix
3995 tSCC zHpux_C99_InttypesName[] =
3996 "hpux_c99_inttypes";
3999 * File name selection pattern
4001 tSCC zHpux_C99_InttypesList[] =
4002 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4004 * Machine/OS name selection pattern
4006 tSCC* apzHpux_C99_InttypesMachs[] = {
4007 "*-hp-hpux11.[23]*",
4008 (const char*)NULL };
4009 #define HPUX_C99_INTTYPES_TEST_CT 0
4010 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
4013 * Fix Command Arguments for Hpux_C99_Inttypes
4015 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4016 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4017 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4018 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4019 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4024 * Description of Hpux_C99_Inttypes2 fix
4026 tSCC zHpux_C99_Inttypes2Name[] =
4027 "hpux_c99_inttypes2";
4030 * File name selection pattern
4032 tSCC zHpux_C99_Inttypes2List[] =
4033 "stdint-hpux11.h\0stdint.h\0";
4035 * Machine/OS name selection pattern
4037 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4039 (const char*)NULL };
4040 #define HPUX_C99_INTTYPES2_TEST_CT 0
4041 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
4044 * Fix Command Arguments for Hpux_C99_Inttypes2
4046 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4047 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4048 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4049 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4050 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4055 * Description of Hpux_Stdint_Least_Fast fix
4057 tSCC zHpux_Stdint_Least_FastName[] =
4058 "hpux_stdint_least_fast";
4061 * File name selection pattern
4063 tSCC zHpux_Stdint_Least_FastList[] =
4064 "stdint-hpux11.h\0stdint.h\0";
4066 * Machine/OS name selection pattern
4068 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4070 (const char*)NULL };
4073 * content selection pattern - do fix if pattern found
4075 tSCC zHpux_Stdint_Least_FastSelect0[] =
4076 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4078 #define HPUX_STDINT_LEAST_FAST_TEST_CT 1
4079 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4080 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4083 * Fix Command Arguments for Hpux_Stdint_Least_Fast
4085 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4087 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
4090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4092 * Description of Hpux_Inttype_Int8_T fix
4094 tSCC zHpux_Inttype_Int8_TName[] =
4095 "hpux_inttype_int8_t";
4098 * File name selection pattern
4100 tSCC zHpux_Inttype_Int8_TList[] =
4101 "sys/_inttypes.h\0";
4103 * Machine/OS name selection pattern
4105 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4107 (const char*)NULL };
4110 * content selection pattern - do fix if pattern found
4112 tSCC zHpux_Inttype_Int8_TSelect0[] =
4113 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4115 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
4116 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4117 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4120 * Fix Command Arguments for Hpux_Inttype_Int8_T
4122 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4124 "typedef signed char int%18_t;",
4127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4129 * Description of Hpux_Imaginary_I fix
4131 tSCC zHpux_Imaginary_IName[] =
4135 * File name selection pattern
4137 tSCC zHpux_Imaginary_IList[] =
4140 * Machine/OS name selection pattern
4142 tSCC* apzHpux_Imaginary_IMachs[] = {
4144 (const char*)NULL };
4147 * content selection pattern - do fix if pattern found
4149 tSCC zHpux_Imaginary_ISelect0[] =
4150 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4152 #define HPUX_IMAGINARY_I_TEST_CT 1
4153 static tTestDesc aHpux_Imaginary_ITests[] = {
4154 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4157 * Fix Command Arguments for Hpux_Imaginary_I
4159 static const char* apzHpux_Imaginary_IPatch[] = {
4161 "#define _Complex_I (__extension__ 1.0iF)",
4164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4166 * Description of Huge_Val_Hex fix
4168 tSCC zHuge_Val_HexName[] =
4172 * File name selection pattern
4174 tSCC zHuge_Val_HexList[] =
4175 "bits/huge_val.h\0";
4177 * Machine/OS name selection pattern
4179 #define apzHuge_Val_HexMachs (const char**)NULL
4182 * content selection pattern - do fix if pattern found
4184 tSCC zHuge_Val_HexSelect0[] =
4185 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4188 * content bypass pattern - skip fix if pattern found
4190 tSCC zHuge_Val_HexBypass0[] =
4191 "__builtin_huge_val";
4193 #define HUGE_VAL_HEX_TEST_CT 2
4194 static tTestDesc aHuge_Val_HexTests[] = {
4195 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
4196 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4199 * Fix Command Arguments for Huge_Val_Hex
4201 static const char* apzHuge_Val_HexPatch[] = {
4203 "#define HUGE_VAL (__builtin_huge_val())\n",
4206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4208 * Description of Huge_Valf_Hex fix
4210 tSCC zHuge_Valf_HexName[] =
4214 * File name selection pattern
4216 tSCC zHuge_Valf_HexList[] =
4217 "bits/huge_val.h\0";
4219 * Machine/OS name selection pattern
4221 #define apzHuge_Valf_HexMachs (const char**)NULL
4224 * content selection pattern - do fix if pattern found
4226 tSCC zHuge_Valf_HexSelect0[] =
4227 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4230 * content bypass pattern - skip fix if pattern found
4232 tSCC zHuge_Valf_HexBypass0[] =
4233 "__builtin_huge_valf";
4235 #define HUGE_VALF_HEX_TEST_CT 2
4236 static tTestDesc aHuge_Valf_HexTests[] = {
4237 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4238 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4241 * Fix Command Arguments for Huge_Valf_Hex
4243 static const char* apzHuge_Valf_HexPatch[] = {
4245 "#define HUGE_VALF (__builtin_huge_valf())\n",
4248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4250 * Description of Huge_Vall_Hex fix
4252 tSCC zHuge_Vall_HexName[] =
4256 * File name selection pattern
4258 tSCC zHuge_Vall_HexList[] =
4259 "bits/huge_val.h\0";
4261 * Machine/OS name selection pattern
4263 #define apzHuge_Vall_HexMachs (const char**)NULL
4266 * content selection pattern - do fix if pattern found
4268 tSCC zHuge_Vall_HexSelect0[] =
4269 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4272 * content bypass pattern - skip fix if pattern found
4274 tSCC zHuge_Vall_HexBypass0[] =
4275 "__builtin_huge_vall";
4277 #define HUGE_VALL_HEX_TEST_CT 2
4278 static tTestDesc aHuge_Vall_HexTests[] = {
4279 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4280 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4283 * Fix Command Arguments for Huge_Vall_Hex
4285 static const char* apzHuge_Vall_HexPatch[] = {
4287 "#define HUGE_VALL (__builtin_huge_vall())\n",
4290 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4292 * Description of Int_Abort_Free_And_Exit fix
4294 tSCC zInt_Abort_Free_And_ExitName[] =
4295 "int_abort_free_and_exit";
4298 * File name selection pattern
4300 tSCC zInt_Abort_Free_And_ExitList[] =
4303 * Machine/OS name selection pattern
4305 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4308 * content selection pattern - do fix if pattern found
4310 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4311 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4314 * content bypass pattern - skip fix if pattern found
4316 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4317 "_CLASSIC_ANSI_TYPES";
4319 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4320 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4321 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4322 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4325 * Fix Command Arguments for Int_Abort_Free_And_Exit
4327 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4332 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4334 * Description of Io_Quotes_Def fix
4336 tSCC zIo_Quotes_DefName[] =
4340 * File name selection pattern
4342 #define zIo_Quotes_DefList (char*)NULL
4344 * Machine/OS name selection pattern
4346 #define apzIo_Quotes_DefMachs (const char**)NULL
4349 * content selection pattern - do fix if pattern found
4351 tSCC zIo_Quotes_DefSelect0[] =
4352 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4354 #define IO_QUOTES_DEF_TEST_CT 1
4355 static tTestDesc aIo_Quotes_DefTests[] = {
4356 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4359 * Fix Command Arguments for Io_Quotes_Def
4361 static const char* apzIo_Quotes_DefPatch[] = {
4366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4368 * Description of Io_Quotes_Use fix
4370 tSCC zIo_Quotes_UseName[] =
4374 * File name selection pattern
4376 #define zIo_Quotes_UseList (char*)NULL
4378 * Machine/OS name selection pattern
4380 #define apzIo_Quotes_UseMachs (const char**)NULL
4383 * content selection pattern - do fix if pattern found
4385 tSCC zIo_Quotes_UseSelect0[] =
4386 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4388 #define IO_QUOTES_USE_TEST_CT 1
4389 static tTestDesc aIo_Quotes_UseTests[] = {
4390 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4393 * Fix Command Arguments for Io_Quotes_Use
4395 static const char* apzIo_Quotes_UsePatch[] = {
4400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4402 * Description of Ip_Missing_Semi fix
4404 tSCC zIp_Missing_SemiName[] =
4408 * File name selection pattern
4410 tSCC zIp_Missing_SemiList[] =
4413 * Machine/OS name selection pattern
4415 #define apzIp_Missing_SemiMachs (const char**)NULL
4418 * content selection pattern - do fix if pattern found
4420 tSCC zIp_Missing_SemiSelect0[] =
4423 #define IP_MISSING_SEMI_TEST_CT 1
4424 static tTestDesc aIp_Missing_SemiTests[] = {
4425 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4428 * Fix Command Arguments for Ip_Missing_Semi
4430 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4431 "-e", "/^struct/,/^};/s/}$/};/",
4434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4436 * Description of Irix___Restrict fix
4438 tSCC zIrix___RestrictName[] =
4442 * File name selection pattern
4444 tSCC zIrix___RestrictList[] =
4445 "internal/sgimacros.h\0";
4447 * Machine/OS name selection pattern
4449 tSCC* apzIrix___RestrictMachs[] = {
4451 (const char*)NULL };
4454 * content selection pattern - do fix if pattern found
4456 tSCC zIrix___RestrictSelect0[] =
4458 )(#[ \t]*define __restrict restrict)";
4460 #define IRIX___RESTRICT_TEST_CT 1
4461 static tTestDesc aIrix___RestrictTests[] = {
4462 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4465 * Fix Command Arguments for Irix___Restrict
4467 static const char* apzIrix___RestrictPatch[] = {
4469 "%1# ifndef __cplusplus\n\
4474 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4476 * Description of Irix___Generic1 fix
4478 tSCC zIrix___Generic1Name[] =
4482 * File name selection pattern
4484 tSCC zIrix___Generic1List[] =
4485 "internal/math_core.h\0";
4487 * Machine/OS name selection pattern
4489 tSCC* apzIrix___Generic1Machs[] = {
4491 (const char*)NULL };
4494 * content selection pattern - do fix if pattern found
4496 tSCC zIrix___Generic1Select0[] =
4497 "#define ([a-z]+)\\(x\\) *__generic.*";
4499 #define IRIX___GENERIC1_TEST_CT 1
4500 static tTestDesc aIrix___Generic1Tests[] = {
4501 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4504 * Fix Command Arguments for Irix___Generic1
4506 static const char* apzIrix___Generic1Patch[] = {
4508 "extern int %1(double);\n\
4509 extern int %1f(float);\n\
4510 extern int %1l(long double);\n\
4511 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4512 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4518 * Description of Irix___Generic2 fix
4520 tSCC zIrix___Generic2Name[] =
4524 * File name selection pattern
4526 tSCC zIrix___Generic2List[] =
4527 "internal/math_core.h\0";
4529 * Machine/OS name selection pattern
4531 tSCC* apzIrix___Generic2Machs[] = {
4533 (const char*)NULL };
4536 * content selection pattern - do fix if pattern found
4538 tSCC zIrix___Generic2Select0[] =
4539 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4541 #define IRIX___GENERIC2_TEST_CT 1
4542 static tTestDesc aIrix___Generic2Tests[] = {
4543 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4546 * Fix Command Arguments for Irix___Generic2
4548 static const char* apzIrix___Generic2Patch[] = {
4550 "#define %1(x,y) \\\n\
4551 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4552 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4558 * Description of Irix_Asm_Apostrophe fix
4560 tSCC zIrix_Asm_ApostropheName[] =
4561 "irix_asm_apostrophe";
4564 * File name selection pattern
4566 tSCC zIrix_Asm_ApostropheList[] =
4569 * Machine/OS name selection pattern
4571 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4574 * content selection pattern - do fix if pattern found
4576 tSCC zIrix_Asm_ApostropheSelect0[] =
4577 "^[ \t]*#.*[Ww]e're";
4579 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4580 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4581 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4584 * Fix Command Arguments for Irix_Asm_Apostrophe
4586 static const char* apzIrix_Asm_ApostrophePatch[] = {
4589 "^([ \t]*#.*[Ww]e)'re",
4592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4594 * Description of Irix_Complex fix
4596 tSCC zIrix_ComplexName[] =
4600 * File name selection pattern
4602 tSCC zIrix_ComplexList[] =
4605 * Machine/OS name selection pattern
4607 tSCC* apzIrix_ComplexMachs[] = {
4609 (const char*)NULL };
4612 * content selection pattern - do fix if pattern found
4614 tSCC zIrix_ComplexSelect0[] =
4615 "#define[ \t]_Complex_I[ \t]\\(\\(float[ \t]_Complex\\)[ \t]\\(__I__\\)\\)";
4617 #define IRIX_COMPLEX_TEST_CT 1
4618 static tTestDesc aIrix_ComplexTests[] = {
4619 { TT_EGREP, zIrix_ComplexSelect0, (regex_t*)NULL }, };
4622 * Fix Command Arguments for Irix_Complex
4624 static const char* apzIrix_ComplexPatch[] = { sed_cmd_z,
4625 "-e", "s/#define[ \t]_Complex_I[ \t]((float[ \t]_Complex)[ \t](__I__))/#define _Complex_I (__extension__ 1.0iF)/",
4626 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
4627 "-e", "/#define[ \t]_Imaginary_I/d",
4628 "-e", "s/#define[ \t]I[ \t]_Imaginary_I/#define I _Complex_I/",
4631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4633 * Description of Irix_Limits_Const fix
4635 tSCC zIrix_Limits_ConstName[] =
4636 "irix_limits_const";
4639 * File name selection pattern
4641 tSCC zIrix_Limits_ConstList[] =
4642 "fixinc-test-limits.h\0limits.h\0";
4644 * Machine/OS name selection pattern
4646 #define apzIrix_Limits_ConstMachs (const char**)NULL
4649 * content selection pattern - do fix if pattern found
4651 tSCC zIrix_Limits_ConstSelect0[] =
4654 #define IRIX_LIMITS_CONST_TEST_CT 1
4655 static tTestDesc aIrix_Limits_ConstTests[] = {
4656 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4659 * Fix Command Arguments for Irix_Limits_Const
4661 static const char* apzIrix_Limits_ConstPatch[] = {
4666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4668 * Description of Irix_Pthread_Init fix
4670 tSCC zIrix_Pthread_InitName[] =
4671 "irix_pthread_init";
4674 * File name selection pattern
4676 tSCC zIrix_Pthread_InitList[] =
4679 * Machine/OS name selection pattern
4681 tSCC* apzIrix_Pthread_InitMachs[] = {
4683 (const char*)NULL };
4686 * content selection pattern - do fix if pattern found
4688 tSCC zIrix_Pthread_InitSelect0[] =
4689 "^(#define[ \t]+PTHREAD_.*_INITIALIZER[ \t]+)(\\{ 0 \\})";
4691 #define IRIX_PTHREAD_INIT_TEST_CT 1
4692 static tTestDesc aIrix_Pthread_InitTests[] = {
4693 { TT_EGREP, zIrix_Pthread_InitSelect0, (regex_t*)NULL }, };
4696 * Fix Command Arguments for Irix_Pthread_Init
4698 static const char* apzIrix_Pthread_InitPatch[] = {
4703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4705 * Description of Irix_Socklen_T fix
4707 tSCC zIrix_Socklen_TName[] =
4711 * File name selection pattern
4713 tSCC zIrix_Socklen_TList[] =
4716 * Machine/OS name selection pattern
4718 tSCC* apzIrix_Socklen_TMachs[] = {
4720 (const char*)NULL };
4723 * content selection pattern - do fix if pattern found
4725 tSCC zIrix_Socklen_TSelect0[] =
4726 "(#define _SOCKLEN_T\n\
4727 )(typedef u_int32_t socklen_t;)";
4729 #define IRIX_SOCKLEN_T_TEST_CT 1
4730 static tTestDesc aIrix_Socklen_TTests[] = {
4731 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4734 * Fix Command Arguments for Irix_Socklen_T
4736 static const char* apzIrix_Socklen_TPatch[] = {
4738 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4739 typedef int socklen_t;\n\
4742 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4747 * Description of Irix_Stdint_C99_Mode fix
4749 tSCC zIrix_Stdint_C99_ModeName[] =
4750 "irix_stdint_c99_mode";
4753 * File name selection pattern
4755 tSCC zIrix_Stdint_C99_ModeList[] =
4758 * Machine/OS name selection pattern
4760 tSCC* apzIrix_Stdint_C99_ModeMachs[] = {
4762 (const char*)NULL };
4765 * content selection pattern - do fix if pattern found
4767 tSCC zIrix_Stdint_C99_ModeSelect0[] =
4769 )(#error This header file is to be used only for c99 mode compilations)";
4771 #define IRIX_STDINT_C99_MODE_TEST_CT 1
4772 static tTestDesc aIrix_Stdint_C99_ModeTests[] = {
4773 { TT_EGREP, zIrix_Stdint_C99_ModeSelect0, (regex_t*)NULL }, };
4776 * Fix Command Arguments for Irix_Stdint_C99_Mode
4778 static const char* apzIrix_Stdint_C99_ModePatch[] = {
4784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4786 * Description of Irix_Stdint_C99_Types fix
4788 tSCC zIrix_Stdint_C99_TypesName[] =
4789 "irix_stdint_c99_types";
4792 * File name selection pattern
4794 tSCC zIrix_Stdint_C99_TypesList[] =
4795 "stdint-irix65.h\0stdint.h\0";
4797 * Machine/OS name selection pattern
4799 tSCC* apzIrix_Stdint_C99_TypesMachs[] = {
4801 (const char*)NULL };
4802 #define IRIX_STDINT_C99_TYPES_TEST_CT 0
4803 #define aIrix_Stdint_C99_TypesTests (tTestDesc*)NULL
4806 * Fix Command Arguments for Irix_Stdint_C99_Types
4808 static const char* apzIrix_Stdint_C99_TypesPatch[] = { sed_cmd_z,
4809 "-e", "s@^#define INT64_MIN.*(-0x7fffffffffffffff - 1)$@#define INT64_MIN (-0x7fffffffffffffffLL - 1)@",
4810 "-e", "s@^#define INT64_MAX.*0x7fffffffffffffff$@#define INT64_MAX 0x7fffffffffffffffLL@",
4811 "-e", "s@^#define UINT32_MAX.*0xffffffff$@#define UINT32_MAX 0xffffffffU@",
4812 "-e", "s@^#define UINT64_MAX.*0xffffffffffffffff$@#define UINT64_MAX 0xffffffffffffffffULL@",
4813 "-e", "s@^#define INTPTR_MIN.*INT32_MIN$@#define INTPTR_MIN (-0x7fffffffL - 1)@",
4814 "-e", "s@^#define INTPTR_MAX.*INT32_MAX$@#define INTPTR_MAX 0x7fffffffL@",
4815 "-e", "s@^#define UINTPTR_MAX.*UINT32_MAX$@#define UINTPTR_MAX 0xffffffffUL@",
4816 "-e", "s@^#define INTPTR_MIN.*INT64_MIN@#define INTPTR_MIN (-0x7fffffffffffffffL - 1)@",
4817 "-e", "s@^#define INTPTR_MAX.*INT64_MAX$@#define INTPTR_MAX 0x7fffffffffffffffL@",
4818 "-e", "s@^#define UINTPTR_MAX.*UINT64_MAX$@#define UINTPTR_MAX 0xffffffffffffffffUL@",
4819 "-e", "s@^#define PTRDIFF_MIN.*INT64_MIN$@#define PTRDIFF_MIN (-0x7fffffffffffffffL - 1)@",
4820 "-e", "s@^#define PTRDIFF_MAX.*INT64_MAX$@#define PTRDIFF_MAX 0x7fffffffffffffffL@",
4821 "-e", "s@^#define SIZE_MAX.*UINT64_MAX$@#define SIZE_MAX 0xffffffffffffffffUL@",
4824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4826 * Description of Irix_Stdint_C99_Macros fix
4828 tSCC zIrix_Stdint_C99_MacrosName[] =
4829 "irix_stdint_c99_macros";
4832 * File name selection pattern
4834 tSCC zIrix_Stdint_C99_MacrosList[] =
4835 "stdint-irix65.h\0stdint.h\0";
4837 * Machine/OS name selection pattern
4839 tSCC* apzIrix_Stdint_C99_MacrosMachs[] = {
4841 (const char*)NULL };
4842 #define IRIX_STDINT_C99_MACROS_TEST_CT 0
4843 #define aIrix_Stdint_C99_MacrosTests (tTestDesc*)NULL
4846 * Fix Command Arguments for Irix_Stdint_C99_Macros
4848 static const char* apzIrix_Stdint_C99_MacrosPatch[] = { sed_cmd_z,
4849 "-e", "s@^#define INT8_C(x).*int.*_t.*$@#define INT8_C(x) (x)@",
4850 "-e", "s@^#define INT16_C(x).*int.*_t.*$@#define INT16_C(x) (x)@",
4851 "-e", "s@^#define INT32_C(x).*int.*_t.*$@#define INT32_C(x) (x)@",
4852 "-e", "s@^#define INT64_C(x).*int.*_t.*$@#define INT64_C(x) (x ## LL)@",
4853 "-e", "s@^#define UINT8_C(x).*int.*_t.*$@#define UINT8_C(x) (x)@",
4854 "-e", "s@^#define UINT16_C(x).*int.*_t.*$@#define UINT16_C(x) (x)@",
4855 "-e", "s@^#define UINT32_C(x).*int.*_t.*$@#define UINT32_C(x) (x ## U)@",
4856 "-e", "s@^#define UINT64_C(x).*int.*_t.*$@#define UINT64_C(x) (x ## ULL)@",
4857 "-e", "s@^#define INTMAX_C(x).*int.*_t.*$@#define INTMAX_C(x) (x ## LL)@",
4858 "-e", "s@^#define UINTMAX_C(x).*int.*_t.*$@#define UINTMAX_C(x) (x ## ULL)@",
4861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4863 * Description of Irix_Stdio_Va_List fix
4865 tSCC zIrix_Stdio_Va_ListName[] =
4866 "irix_stdio_va_list";
4869 * File name selection pattern
4871 tSCC zIrix_Stdio_Va_ListList[] =
4872 "stdio.h\0internal/stdio_core.h\0";
4874 * Machine/OS name selection pattern
4876 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4879 * content selection pattern - do fix if pattern found
4881 tSCC zIrix_Stdio_Va_ListSelect0[] =
4882 "/\\* va_list \\*/ char \\*";
4884 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4885 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4886 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4889 * Fix Command Arguments for Irix_Stdio_Va_List
4891 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4896 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4898 * Description of Irix_Wcsftime fix
4900 tSCC zIrix_WcsftimeName[] =
4904 * File name selection pattern
4906 tSCC zIrix_WcsftimeList[] =
4907 "internal/wchar_core.h\0";
4909 * Machine/OS name selection pattern
4911 tSCC* apzIrix_WcsftimeMachs[] = {
4913 (const char*)NULL };
4916 * content selection pattern - do fix if pattern found
4918 tSCC zIrix_WcsftimeSelect0[] =
4920 (extern size_t[ \t]+wcsftime.*const char *.*)";
4922 #define IRIX_WCSFTIME_TEST_CT 1
4923 static tTestDesc aIrix_WcsftimeTests[] = {
4924 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4927 * Fix Command Arguments for Irix_Wcsftime
4929 static const char* apzIrix_WcsftimePatch[] = {
4931 "#if _NO_XOPEN5 && !defined(__c99)\n\
4935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4937 * Description of Kandr_Concat fix
4939 tSCC zKandr_ConcatName[] =
4943 * File name selection pattern
4945 tSCC zKandr_ConcatList[] =
4946 "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";
4948 * Machine/OS name selection pattern
4950 #define apzKandr_ConcatMachs (const char**)NULL
4953 * content selection pattern - do fix if pattern found
4955 tSCC zKandr_ConcatSelect0[] =
4958 #define KANDR_CONCAT_TEST_CT 1
4959 static tTestDesc aKandr_ConcatTests[] = {
4960 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4963 * Fix Command Arguments for Kandr_Concat
4965 static const char* apzKandr_ConcatPatch[] = {
4970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4972 * Description of Linux_Ia64_Ucontext fix
4974 tSCC zLinux_Ia64_UcontextName[] =
4975 "linux_ia64_ucontext";
4978 * File name selection pattern
4980 tSCC zLinux_Ia64_UcontextList[] =
4983 * Machine/OS name selection pattern
4985 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4987 (const char*)NULL };
4990 * content selection pattern - do fix if pattern found
4992 tSCC zLinux_Ia64_UcontextSelect0[] =
4993 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4995 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4996 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4997 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5000 * Fix Command Arguments for Linux_Ia64_Ucontext
5002 static const char* apzLinux_Ia64_UcontextPatch[] = {
5004 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5009 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
5011 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5012 "lynxos_no_warning_in_sys_time_h";
5015 * File name selection pattern
5017 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5020 * Machine/OS name selection pattern
5022 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5025 * content selection pattern - do fix if pattern found
5027 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5028 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5030 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
5031 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5032 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5035 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5037 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5044 * Description of Lynxos_Missing_Putenv fix
5046 tSCC zLynxos_Missing_PutenvName[] =
5047 "lynxos_missing_putenv";
5050 * File name selection pattern
5052 tSCC zLynxos_Missing_PutenvList[] =
5055 * Machine/OS name selection pattern
5057 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5059 (const char*)NULL };
5062 * content selection pattern - do fix if pattern found
5064 tSCC zLynxos_Missing_PutenvSelect0[] =
5065 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5068 * content bypass pattern - skip fix if pattern found
5070 tSCC zLynxos_Missing_PutenvBypass0[] =
5073 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
5074 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5075 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5076 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5079 * Fix Command Arguments for Lynxos_Missing_Putenv
5081 static const char* apzLynxos_Missing_PutenvPatch[] = {
5084 extern int putenv\t\t\t\t_AP((char *));",
5085 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5090 * Description of Machine_Ansi_H_Va_List fix
5092 tSCC zMachine_Ansi_H_Va_ListName[] =
5093 "machine_ansi_h_va_list";
5096 * File name selection pattern
5098 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5100 * Machine/OS name selection pattern
5102 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5105 * content selection pattern - do fix if pattern found
5107 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5108 "define[ \t]+_BSD_VA_LIST_[ \t]";
5111 * content bypass pattern - skip fix if pattern found
5113 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5114 "__builtin_va_list";
5116 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
5117 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5118 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5119 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5122 * Fix Command Arguments for Machine_Ansi_H_Va_List
5124 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5126 "%1__builtin_va_list",
5127 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5132 * Description of Machine_Name fix
5134 tSCC zMachine_NameName[] =
5138 * File name selection pattern
5140 #define zMachine_NameList (char*)NULL
5142 * Machine/OS name selection pattern
5144 #define apzMachine_NameMachs (const char**)NULL
5147 * perform the C function call test
5149 tSCC zMachine_NameFTst0[] = "machine_name";
5151 #define MACHINE_NAME_TEST_CT 1
5152 static tTestDesc aMachine_NameTests[] = {
5153 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
5156 * Fix Command Arguments for Machine_Name
5158 static const char* apzMachine_NamePatch[] = {
5162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5164 * Description of Math_Exception fix
5166 tSCC zMath_ExceptionName[] =
5170 * File name selection pattern
5172 tSCC zMath_ExceptionList[] =
5175 * Machine/OS name selection pattern
5177 #define apzMath_ExceptionMachs (const char**)NULL
5180 * content selection pattern - do fix if pattern found
5182 tSCC zMath_ExceptionSelect0[] =
5186 * content bypass pattern - skip fix if pattern found
5188 tSCC zMath_ExceptionBypass0[] =
5189 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5191 #define MATH_EXCEPTION_TEST_CT 2
5192 static tTestDesc aMath_ExceptionTests[] = {
5193 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5194 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
5197 * Fix Command Arguments for Math_Exception
5199 static const char* apzMath_ExceptionPatch[] = {
5201 "#ifdef __cplusplus\n\
5202 #define exception __math_exception\n\
5204 "#ifdef __cplusplus\n\
5209 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5211 * Description of Math_Huge_Val_From_Dbl_Max fix
5213 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5214 "math_huge_val_from_dbl_max";
5217 * File name selection pattern
5219 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5222 * Machine/OS name selection pattern
5224 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5227 * content selection pattern - do fix if pattern found
5229 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5230 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5233 * content bypass pattern - skip fix if pattern found
5235 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5236 "define[ \t]+DBL_MAX";
5238 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
5239 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5240 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5241 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5244 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5246 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5247 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5248 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5249 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5256 * Description of Nested_Auth_Des fix
5258 tSCC zNested_Auth_DesName[] =
5262 * File name selection pattern
5264 tSCC zNested_Auth_DesList[] =
5267 * Machine/OS name selection pattern
5269 #define apzNested_Auth_DesMachs (const char**)NULL
5272 * content selection pattern - do fix if pattern found
5274 tSCC zNested_Auth_DesSelect0[] =
5275 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5277 #define NESTED_AUTH_DES_TEST_CT 1
5278 static tTestDesc aNested_Auth_DesTests[] = {
5279 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5282 * Fix Command Arguments for Nested_Auth_Des
5284 static const char* apzNested_Auth_DesPatch[] = {
5289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5291 * Description of Netbsd_C99_Inline_1 fix
5293 tSCC zNetbsd_C99_Inline_1Name[] =
5294 "netbsd_c99_inline_1";
5297 * File name selection pattern
5299 tSCC zNetbsd_C99_Inline_1List[] =
5302 * Machine/OS name selection pattern
5304 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5306 (const char*)NULL };
5309 * content selection pattern - do fix if pattern found
5311 tSCC zNetbsd_C99_Inline_1Select0[] =
5312 "extern __inline int";
5314 #define NETBSD_C99_INLINE_1_TEST_CT 1
5315 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5316 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5319 * Fix Command Arguments for Netbsd_C99_Inline_1
5321 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5324 #ifdef __GNUC_STDC_INLINE__\n\
5325 __attribute__((__gnu_inline__))\n\
5330 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5332 * Description of Netbsd_C99_Inline_2 fix
5334 tSCC zNetbsd_C99_Inline_2Name[] =
5335 "netbsd_c99_inline_2";
5338 * File name selection pattern
5340 tSCC zNetbsd_C99_Inline_2List[] =
5343 * Machine/OS name selection pattern
5345 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5347 (const char*)NULL };
5350 * content selection pattern - do fix if pattern found
5352 tSCC zNetbsd_C99_Inline_2Select0[] =
5353 "#define _SIGINLINE extern __inline";
5355 #define NETBSD_C99_INLINE_2_TEST_CT 1
5356 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5357 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5360 * Fix Command Arguments for Netbsd_C99_Inline_2
5362 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5364 "#ifdef __GNUC_STDC_INLINE__\n\
5365 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5373 * Description of Netbsd_Extra_Semicolon fix
5375 tSCC zNetbsd_Extra_SemicolonName[] =
5376 "netbsd_extra_semicolon";
5379 * File name selection pattern
5381 tSCC zNetbsd_Extra_SemicolonList[] =
5384 * Machine/OS name selection pattern
5386 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5388 (const char*)NULL };
5391 * content selection pattern - do fix if pattern found
5393 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5394 "#define[ \t]*__END_DECLS[ \t]*};";
5396 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
5397 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5398 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5401 * Fix Command Arguments for Netbsd_Extra_Semicolon
5403 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5405 "#define __END_DECLS }",
5408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5410 * Description of Newlib_Stdint_1 fix
5412 tSCC zNewlib_Stdint_1Name[] =
5416 * File name selection pattern
5418 tSCC zNewlib_Stdint_1List[] =
5419 "stdint-newlib.h\0stdint.h\0";
5421 * Machine/OS name selection pattern
5423 #define apzNewlib_Stdint_1Machs (const char**)NULL
5426 * content selection pattern - do fix if pattern found
5428 tSCC zNewlib_Stdint_1Select0[] =
5429 "@todo - Add support for wint_t types";
5431 #define NEWLIB_STDINT_1_TEST_CT 1
5432 static tTestDesc aNewlib_Stdint_1Tests[] = {
5433 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5436 * Fix Command Arguments for Newlib_Stdint_1
5438 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5439 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5440 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5441 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5442 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5443 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5444 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5445 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5446 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5447 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5448 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5449 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5450 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5451 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5452 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5457 * Description of Newlib_Stdint_2 fix
5459 tSCC zNewlib_Stdint_2Name[] =
5463 * File name selection pattern
5465 tSCC zNewlib_Stdint_2List[] =
5466 "stdint-newlib.h\0stdint.h\0";
5468 * Machine/OS name selection pattern
5470 #define apzNewlib_Stdint_2Machs (const char**)NULL
5473 * content selection pattern - do fix if pattern found
5475 tSCC zNewlib_Stdint_2Select0[] =
5476 "@todo - Add support for wint_t types";
5478 #define NEWLIB_STDINT_2_TEST_CT 1
5479 static tTestDesc aNewlib_Stdint_2Tests[] = {
5480 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5483 * Fix Command Arguments for Newlib_Stdint_2
5485 static const char* apzNewlib_Stdint_2Patch[] = {
5487 "#define INTMAX_MAX __INTMAX_MAX__\n\
5488 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5489 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5490 #define WCHAR_MAX __WCHAR_MAX__\n\
5491 #define WCHAR_MIN __WCHAR_MIN__\n\
5492 #define WINT_MAX __WINT_MAX__\n\
5493 #define WINT_MIN __WINT_MIN__\n\n\
5495 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5500 * Description of Next_Math_Prefix fix
5502 tSCC zNext_Math_PrefixName[] =
5506 * File name selection pattern
5508 tSCC zNext_Math_PrefixList[] =
5511 * Machine/OS name selection pattern
5513 #define apzNext_Math_PrefixMachs (const char**)NULL
5516 * content selection pattern - do fix if pattern found
5518 tSCC zNext_Math_PrefixSelect0[] =
5519 "^extern[ \t]+double[ \t]+__const__[ \t]";
5521 #define NEXT_MATH_PREFIX_TEST_CT 1
5522 static tTestDesc aNext_Math_PrefixTests[] = {
5523 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5526 * Fix Command Arguments for Next_Math_Prefix
5528 static const char* apzNext_Math_PrefixPatch[] = {
5530 "extern double %1(",
5531 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5536 * Description of Next_Template fix
5538 tSCC zNext_TemplateName[] =
5542 * File name selection pattern
5544 tSCC zNext_TemplateList[] =
5547 * Machine/OS name selection pattern
5549 #define apzNext_TemplateMachs (const char**)NULL
5552 * content selection pattern - do fix if pattern found
5554 tSCC zNext_TemplateSelect0[] =
5557 #define NEXT_TEMPLATE_TEST_CT 1
5558 static tTestDesc aNext_TemplateTests[] = {
5559 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5562 * Fix Command Arguments for Next_Template
5564 static const char* apzNext_TemplatePatch[] = {
5567 "\\(([^)]*)[ \t]template\\)",
5570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5572 * Description of Next_Volitile fix
5574 tSCC zNext_VolitileName[] =
5578 * File name selection pattern
5580 tSCC zNext_VolitileList[] =
5583 * Machine/OS name selection pattern
5585 #define apzNext_VolitileMachs (const char**)NULL
5588 * content selection pattern - do fix if pattern found
5590 tSCC zNext_VolitileSelect0[] =
5591 "^extern[ \t]+volatile[ \t]+void[ \t]";
5593 #define NEXT_VOLITILE_TEST_CT 1
5594 static tTestDesc aNext_VolitileTests[] = {
5595 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5598 * Fix Command Arguments for Next_Volitile
5600 static const char* apzNext_VolitilePatch[] = {
5603 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5608 * Description of Next_Wait_Union fix
5610 tSCC zNext_Wait_UnionName[] =
5614 * File name selection pattern
5616 tSCC zNext_Wait_UnionList[] =
5619 * Machine/OS name selection pattern
5621 #define apzNext_Wait_UnionMachs (const char**)NULL
5624 * content selection pattern - do fix if pattern found
5626 tSCC zNext_Wait_UnionSelect0[] =
5627 "wait\\(union wait";
5629 #define NEXT_WAIT_UNION_TEST_CT 1
5630 static tTestDesc aNext_Wait_UnionTests[] = {
5631 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5634 * Fix Command Arguments for Next_Wait_Union
5636 static const char* apzNext_Wait_UnionPatch[] = {
5641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5643 * Description of Nodeent_Syntax fix
5645 tSCC zNodeent_SyntaxName[] =
5649 * File name selection pattern
5651 tSCC zNodeent_SyntaxList[] =
5652 "netdnet/dnetdb.h\0";
5654 * Machine/OS name selection pattern
5656 #define apzNodeent_SyntaxMachs (const char**)NULL
5659 * content selection pattern - do fix if pattern found
5661 tSCC zNodeent_SyntaxSelect0[] =
5662 "char[ \t]*\\*na_addr[ \t]*$";
5664 #define NODEENT_SYNTAX_TEST_CT 1
5665 static tTestDesc aNodeent_SyntaxTests[] = {
5666 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5669 * Fix Command Arguments for Nodeent_Syntax
5671 static const char* apzNodeent_SyntaxPatch[] = {
5676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5678 * Description of Openbsd_Null_Definition fix
5680 tSCC zOpenbsd_Null_DefinitionName[] =
5681 "openbsd_null_definition";
5684 * File name selection pattern
5686 tSCC zOpenbsd_Null_DefinitionList[] =
5687 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5689 * Machine/OS name selection pattern
5691 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5693 (const char*)NULL };
5696 * content selection pattern - do fix if pattern found
5698 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5701 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5702 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5703 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5706 * Fix Command Arguments for Openbsd_Null_Definition
5708 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5711 #ifdef __cplusplus\n\
5713 #define NULL\t__null\n\
5714 #else\t /* ! __GNUG__ */\n\
5716 #endif\t /* __GNUG__ */\n\
5717 #else\t /* ! __cplusplus */\n\
5718 #define NULL\t((void *)0)\n\
5719 #endif\t /* __cplusplus */\n\
5720 #endif\t /* !NULL */",
5721 "^#ifndef[ \t]*NULL\n\
5722 ^#ifdef[ \t]*__GNUG__\n\
5723 ^#define[ \t]*NULL[ \t]*__null\n\
5725 ^#define[ \t]*NULL[ \t]*0L\n\
5730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5732 * Description of Obstack_Lvalue_Cast fix
5734 tSCC zObstack_Lvalue_CastName[] =
5735 "obstack_lvalue_cast";
5738 * File name selection pattern
5740 tSCC zObstack_Lvalue_CastList[] =
5743 * Machine/OS name selection pattern
5745 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5748 * content selection pattern - do fix if pattern found
5750 tSCC zObstack_Lvalue_CastSelect0[] =
5751 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5753 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5754 static tTestDesc aObstack_Lvalue_CastTests[] = {
5755 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5758 * Fix Command Arguments for Obstack_Lvalue_Cast
5760 static const char* apzObstack_Lvalue_CastPatch[] = {
5762 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5767 * Description of Openbsd_Va_Start fix
5769 tSCC zOpenbsd_Va_StartName[] =
5773 * File name selection pattern
5775 tSCC zOpenbsd_Va_StartList[] =
5778 * Machine/OS name selection pattern
5780 tSCC* apzOpenbsd_Va_StartMachs[] = {
5782 (const char*)NULL };
5785 * content selection pattern - do fix if pattern found
5787 tSCC zOpenbsd_Va_StartSelect0[] =
5788 "__builtin_stdarg_start";
5790 #define OPENBSD_VA_START_TEST_CT 1
5791 static tTestDesc aOpenbsd_Va_StartTests[] = {
5792 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5795 * Fix Command Arguments for Openbsd_Va_Start
5797 static const char* apzOpenbsd_Va_StartPatch[] = {
5799 "__builtin_va_start",
5802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5804 * Description of Osf_Namespace_A fix
5806 tSCC zOsf_Namespace_AName[] =
5810 * File name selection pattern
5812 tSCC zOsf_Namespace_AList[] =
5813 "reg_types.h\0sys/lc_core.h\0";
5815 * Machine/OS name selection pattern
5817 #define apzOsf_Namespace_AMachs (const char**)NULL
5820 * perform the 'test' shell command - do fix on success
5822 tSCC zOsf_Namespace_ATest0[] =
5824 tSCC zOsf_Namespace_ATest1[] =
5825 " -r sys/lc_core.h";
5826 tSCC zOsf_Namespace_ATest2[] =
5827 " -n \"`grep '} regex_t;' reg_types.h`\"";
5828 tSCC zOsf_Namespace_ATest3[] =
5829 " -z \"`grep __regex_t regex.h`\"";
5831 #define OSF_NAMESPACE_A_TEST_CT 4
5832 static tTestDesc aOsf_Namespace_ATests[] = {
5833 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5834 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5835 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5836 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5839 * Fix Command Arguments for Osf_Namespace_A
5841 static const char* apzOsf_Namespace_APatch[] = {
5844 "reg(ex|off|match)_t",
5847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5849 * Description of Osf_Namespace_C fix
5851 tSCC zOsf_Namespace_CName[] =
5855 * File name selection pattern
5857 tSCC zOsf_Namespace_CList[] =
5860 * Machine/OS name selection pattern
5862 #define apzOsf_Namespace_CMachs (const char**)NULL
5865 * content selection pattern - do fix if pattern found
5867 tSCC zOsf_Namespace_CSelect0[] =
5868 "#include <reg_types.h>.*";
5871 * perform the 'test' shell command - do fix on success
5873 tSCC zOsf_Namespace_CTest0[] =
5875 tSCC zOsf_Namespace_CTest1[] =
5876 " -r sys/lc_core.h";
5877 tSCC zOsf_Namespace_CTest2[] =
5878 " -n \"`grep '} regex_t;' reg_types.h`\"";
5879 tSCC zOsf_Namespace_CTest3[] =
5880 " -z \"`grep __regex_t regex.h`\"";
5882 #define OSF_NAMESPACE_C_TEST_CT 5
5883 static tTestDesc aOsf_Namespace_CTests[] = {
5884 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5885 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5886 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5887 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5888 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5891 * Fix Command Arguments for Osf_Namespace_C
5893 static const char* apzOsf_Namespace_CPatch[] = {
5896 typedef __regex_t\tregex_t;\n\
5897 typedef __regoff_t\tregoff_t;\n\
5898 typedef __regmatch_t\tregmatch_t;",
5901 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5903 * Description of Pthread_Incomplete_Struct_Argument fix
5905 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5906 "pthread_incomplete_struct_argument";
5909 * File name selection pattern
5911 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5914 * Machine/OS name selection pattern
5916 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5919 * content selection pattern - do fix if pattern found
5921 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5922 "struct __jmp_buf_tag";
5924 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5925 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5926 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5929 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5931 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5934 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5939 * Description of Read_Ret_Type fix
5941 tSCC zRead_Ret_TypeName[] =
5945 * File name selection pattern
5947 tSCC zRead_Ret_TypeList[] =
5950 * Machine/OS name selection pattern
5952 #define apzRead_Ret_TypeMachs (const char**)NULL
5955 * content selection pattern - do fix if pattern found
5957 tSCC zRead_Ret_TypeSelect0[] =
5958 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5960 #define READ_RET_TYPE_TEST_CT 1
5961 static tTestDesc aRead_Ret_TypeTests[] = {
5962 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5965 * Fix Command Arguments for Read_Ret_Type
5967 static const char* apzRead_Ret_TypePatch[] = {
5969 "extern unsigned int fread(), fwrite();\n\
5971 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5976 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5978 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5979 "rpc_xdr_lvalue_cast_a";
5982 * File name selection pattern
5984 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5987 * Machine/OS name selection pattern
5989 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5992 * content selection pattern - do fix if pattern found
5994 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5995 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5998 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5999 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6000 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6003 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6005 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6007 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6012 * Description of Rpc_Xdr_Lvalue_Cast_B fix
6014 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6015 "rpc_xdr_lvalue_cast_b";
6018 * File name selection pattern
6020 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6023 * Machine/OS name selection pattern
6025 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6028 * content selection pattern - do fix if pattern found
6030 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6031 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6034 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
6035 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6036 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6039 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6041 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6043 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6048 * Description of Rs6000_Double fix
6050 tSCC zRs6000_DoubleName[] =
6054 * File name selection pattern
6056 tSCC zRs6000_DoubleList[] =
6059 * Machine/OS name selection pattern
6061 #define apzRs6000_DoubleMachs (const char**)NULL
6064 * content selection pattern - do fix if pattern found
6066 tSCC zRs6000_DoubleSelect0[] =
6067 "[^a-zA-Z_]class\\(";
6069 #define RS6000_DOUBLE_TEST_CT 1
6070 static tTestDesc aRs6000_DoubleTests[] = {
6071 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6074 * Fix Command Arguments for Rs6000_Double
6076 static const char* apzRs6000_DoublePatch[] = {
6078 "#ifndef __cplusplus\n\
6081 "^.*[^a-zA-Z_]class\\(.*",
6084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6086 * Description of Rs6000_Fchmod fix
6088 tSCC zRs6000_FchmodName[] =
6092 * File name selection pattern
6094 tSCC zRs6000_FchmodList[] =
6097 * Machine/OS name selection pattern
6099 #define apzRs6000_FchmodMachs (const char**)NULL
6102 * content selection pattern - do fix if pattern found
6104 tSCC zRs6000_FchmodSelect0[] =
6105 "fchmod\\(char \\*";
6107 #define RS6000_FCHMOD_TEST_CT 1
6108 static tTestDesc aRs6000_FchmodTests[] = {
6109 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6112 * Fix Command Arguments for Rs6000_Fchmod
6114 static const char* apzRs6000_FchmodPatch[] = {
6119 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6121 * Description of Rs6000_Param fix
6123 tSCC zRs6000_ParamName[] =
6127 * File name selection pattern
6129 tSCC zRs6000_ParamList[] =
6130 "stdio.h\0unistd.h\0";
6132 * Machine/OS name selection pattern
6134 #define apzRs6000_ParamMachs (const char**)NULL
6137 * content selection pattern - do fix if pattern found
6139 tSCC zRs6000_ParamSelect0[] =
6140 "rename\\(const char \\*old, const char \\*new\\)";
6142 #define RS6000_PARAM_TEST_CT 1
6143 static tTestDesc aRs6000_ParamTests[] = {
6144 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
6147 * Fix Command Arguments for Rs6000_Param
6149 static const char* apzRs6000_ParamPatch[] = {
6151 "rename(const char *_old, const char *_new)",
6154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6156 * Description of Solaris___Restrict fix
6158 tSCC zSolaris___RestrictName[] =
6159 "solaris___restrict";
6162 * File name selection pattern
6164 tSCC zSolaris___RestrictList[] =
6165 "sys/feature_tests.h\0";
6167 * Machine/OS name selection pattern
6169 tSCC* apzSolaris___RestrictMachs[] = {
6171 (const char*)NULL };
6174 * content selection pattern - do fix if pattern found
6176 tSCC zSolaris___RestrictSelect0[] =
6177 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6179 #define SOLARIS___RESTRICT_TEST_CT 1
6180 static tTestDesc aSolaris___RestrictTests[] = {
6181 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6184 * Fix Command Arguments for Solaris___Restrict
6186 static const char* apzSolaris___RestrictPatch[] = {
6188 "#ifdef __cplusplus\n\
6189 #define\t_RESTRICT_KYWD\t__restrict\n\
6195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6197 * Description of Solaris_Complex fix
6199 tSCC zSolaris_ComplexName[] =
6203 * File name selection pattern
6205 tSCC zSolaris_ComplexList[] =
6208 * Machine/OS name selection pattern
6210 tSCC* apzSolaris_ComplexMachs[] = {
6212 (const char*)NULL };
6215 * content selection pattern - do fix if pattern found
6217 tSCC zSolaris_ComplexSelect0[] =
6218 "#define[ \t]_Complex_I[ \t]_Complex_I";
6220 #define SOLARIS_COMPLEX_TEST_CT 1
6221 static tTestDesc aSolaris_ComplexTests[] = {
6222 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6225 * Fix Command Arguments for Solaris_Complex
6227 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6228 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6229 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6230 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6231 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6236 * Description of Solaris_Complex_Cxx fix
6238 tSCC zSolaris_Complex_CxxName[] =
6239 "solaris_complex_cxx";
6242 * File name selection pattern
6244 tSCC zSolaris_Complex_CxxList[] =
6247 * Machine/OS name selection pattern
6249 tSCC* apzSolaris_Complex_CxxMachs[] = {
6251 (const char*)NULL };
6252 #define SOLARIS_COMPLEX_CXX_TEST_CT 0
6253 #define aSolaris_Complex_CxxTests (tTestDesc*)NULL
6256 * Fix Command Arguments for Solaris_Complex_Cxx
6258 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6259 "-e", "/#if[ \t]*!defined(__cplusplus)/c#ifdef\t__cplusplus\\\n\
6262 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c#ifdef\t__cplusplus\\\n\
6267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6269 * Description of Solaris_Cond_Init fix
6271 tSCC zSolaris_Cond_InitName[] =
6272 "solaris_cond_init";
6275 * File name selection pattern
6277 tSCC zSolaris_Cond_InitList[] =
6280 * Machine/OS name selection pattern
6282 tSCC* apzSolaris_Cond_InitMachs[] = {
6284 (const char*)NULL };
6287 * content selection pattern - do fix if pattern found
6289 tSCC zSolaris_Cond_InitSelect0[] =
6290 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6292 #define SOLARIS_COND_INIT_TEST_CT 1
6293 static tTestDesc aSolaris_Cond_InitTests[] = {
6294 { TT_EGREP, zSolaris_Cond_InitSelect0, (regex_t*)NULL }, };
6297 * Fix Command Arguments for Solaris_Cond_Init
6299 static const char* apzSolaris_Cond_InitPatch[] = {
6302 "^(#define[ \t]+PTHREAD_COND_INITIALIZER[ \t]+\\{.*0)(\\},[ \t]*0\\}.*)$",
6305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6307 * Description of Solaris_Math_1 fix
6309 tSCC zSolaris_Math_1Name[] =
6313 * File name selection pattern
6315 tSCC zSolaris_Math_1List[] =
6318 * Machine/OS name selection pattern
6320 #define apzSolaris_Math_1Machs (const char**)NULL
6323 * content selection pattern - do fix if pattern found
6325 tSCC zSolaris_Math_1Select0[] =
6326 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6329 * content bypass pattern - skip fix if pattern found
6331 tSCC zSolaris_Math_1Bypass0[] =
6334 #define SOLARIS_MATH_1_TEST_CT 2
6335 static tTestDesc aSolaris_Math_1Tests[] = {
6336 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
6337 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
6340 * Fix Command Arguments for Solaris_Math_1
6342 static const char* apzSolaris_Math_1Patch[] = {
6344 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6345 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6350 * Description of Solaris_Math_2 fix
6352 tSCC zSolaris_Math_2Name[] =
6356 * File name selection pattern
6358 tSCC zSolaris_Math_2List[] =
6361 * Machine/OS name selection pattern
6363 #define apzSolaris_Math_2Machs (const char**)NULL
6366 * content selection pattern - do fix if pattern found
6368 tSCC zSolaris_Math_2Select0[] =
6369 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6372 * content bypass pattern - skip fix if pattern found
6374 tSCC zSolaris_Math_2Bypass0[] =
6377 #define SOLARIS_MATH_2_TEST_CT 2
6378 static tTestDesc aSolaris_Math_2Tests[] = {
6379 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
6380 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
6383 * Fix Command Arguments for Solaris_Math_2
6385 static const char* apzSolaris_Math_2Patch[] = {
6387 "#define\tINFINITY\t(__builtin_inff())",
6388 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6393 * Description of Solaris_Math_3 fix
6395 tSCC zSolaris_Math_3Name[] =
6399 * File name selection pattern
6401 tSCC zSolaris_Math_3List[] =
6404 * Machine/OS name selection pattern
6406 #define apzSolaris_Math_3Machs (const char**)NULL
6409 * content selection pattern - do fix if pattern found
6411 tSCC zSolaris_Math_3Select0[] =
6412 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6415 * content bypass pattern - skip fix if pattern found
6417 tSCC zSolaris_Math_3Bypass0[] =
6420 #define SOLARIS_MATH_3_TEST_CT 2
6421 static tTestDesc aSolaris_Math_3Tests[] = {
6422 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
6423 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6426 * Fix Command Arguments for Solaris_Math_3
6428 static const char* apzSolaris_Math_3Patch[] = {
6430 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6431 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6436 * Description of Solaris_Math_4 fix
6438 tSCC zSolaris_Math_4Name[] =
6442 * File name selection pattern
6444 tSCC zSolaris_Math_4List[] =
6447 * Machine/OS name selection pattern
6449 #define apzSolaris_Math_4Machs (const char**)NULL
6452 * content selection pattern - do fix if pattern found
6454 tSCC zSolaris_Math_4Select0[] =
6455 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6458 * content bypass pattern - skip fix if pattern found
6460 tSCC zSolaris_Math_4Bypass0[] =
6463 #define SOLARIS_MATH_4_TEST_CT 2
6464 static tTestDesc aSolaris_Math_4Tests[] = {
6465 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6466 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6469 * Fix Command Arguments for Solaris_Math_4
6471 static const char* apzSolaris_Math_4Patch[] = {
6473 "#define\tfpclassify(x) \\\n\
6474 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6475 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6480 * Description of Solaris_Math_8 fix
6482 tSCC zSolaris_Math_8Name[] =
6486 * File name selection pattern
6488 tSCC zSolaris_Math_8List[] =
6491 * Machine/OS name selection pattern
6493 #define apzSolaris_Math_8Machs (const char**)NULL
6496 * content selection pattern - do fix if pattern found
6498 tSCC zSolaris_Math_8Select0[] =
6499 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6502 * content bypass pattern - skip fix if pattern found
6504 tSCC zSolaris_Math_8Bypass0[] =
6507 #define SOLARIS_MATH_8_TEST_CT 2
6508 static tTestDesc aSolaris_Math_8Tests[] = {
6509 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6510 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6513 * Fix Command Arguments for Solaris_Math_8
6515 static const char* apzSolaris_Math_8Patch[] = {
6517 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6518 \t\t\t ? __builtin_signbitf(x) \\\n\
6519 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6520 \t\t\t ? __builtin_signbitl(x) \\\n\
6521 \t\t\t : __builtin_signbit(x))",
6522 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6527 * Description of Solaris_Math_9 fix
6529 tSCC zSolaris_Math_9Name[] =
6533 * File name selection pattern
6535 tSCC zSolaris_Math_9List[] =
6538 * Machine/OS name selection pattern
6540 #define apzSolaris_Math_9Machs (const char**)NULL
6543 * content selection pattern - do fix if pattern found
6545 tSCC zSolaris_Math_9Select0[] =
6546 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6549 * content bypass pattern - skip fix if pattern found
6551 tSCC zSolaris_Math_9Bypass0[] =
6554 #define SOLARIS_MATH_9_TEST_CT 2
6555 static tTestDesc aSolaris_Math_9Tests[] = {
6556 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6557 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6560 * Fix Command Arguments for Solaris_Math_9
6562 static const char* apzSolaris_Math_9Patch[] = {
6564 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6565 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6570 * Description of Solaris_Math_10 fix
6572 tSCC zSolaris_Math_10Name[] =
6576 * File name selection pattern
6578 tSCC zSolaris_Math_10List[] =
6581 * Machine/OS name selection pattern
6583 #define apzSolaris_Math_10Machs (const char**)NULL
6586 * content selection pattern - do fix if pattern found
6588 tSCC zSolaris_Math_10Select0[] =
6589 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6591 #define SOLARIS_MATH_10_TEST_CT 1
6592 static tTestDesc aSolaris_Math_10Tests[] = {
6593 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6596 * Fix Command Arguments for Solaris_Math_10
6598 static const char* apzSolaris_Math_10Patch[] = {
6600 "#define\tisinf(x) __builtin_isinf(x)",
6601 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6602 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6603 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6604 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6609 * Description of Solaris_Mutex_Init_2 fix
6611 tSCC zSolaris_Mutex_Init_2Name[] =
6612 "solaris_mutex_init_2";
6615 * File name selection pattern
6617 tSCC zSolaris_Mutex_Init_2List[] =
6620 * Machine/OS name selection pattern
6622 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6623 "*-*-solaris2.[0-9]",
6624 "*-*-solaris2.[0-9][!0-9]*",
6625 (const char*)NULL };
6628 * content selection pattern - do fix if pattern found
6630 tSCC zSolaris_Mutex_Init_2Select0[] =
6631 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6633 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6634 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6635 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6638 * Fix Command Arguments for Solaris_Mutex_Init_2
6640 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6642 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6647 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6648 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6653 * Description of Solaris_Rwlock_Init_1 fix
6655 tSCC zSolaris_Rwlock_Init_1Name[] =
6656 "solaris_rwlock_init_1";
6659 * File name selection pattern
6661 tSCC zSolaris_Rwlock_Init_1List[] =
6664 * Machine/OS name selection pattern
6666 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6668 (const char*)NULL };
6671 * content selection pattern - do fix if pattern found
6673 tSCC zSolaris_Rwlock_Init_1Select0[] =
6674 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6676 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6677 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6678 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6681 * Fix Command Arguments for Solaris_Rwlock_Init_1
6683 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6685 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6688 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6690 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6693 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6695 * Description of Solaris_Once_Init_1 fix
6697 tSCC zSolaris_Once_Init_1Name[] =
6698 "solaris_once_init_1";
6701 * File name selection pattern
6703 tSCC zSolaris_Once_Init_1List[] =
6706 * Machine/OS name selection pattern
6708 tSCC* apzSolaris_Once_Init_1Machs[] = {
6710 (const char*)NULL };
6713 * content selection pattern - do fix if pattern found
6715 tSCC zSolaris_Once_Init_1Select0[] =
6716 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6718 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6719 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6720 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6723 * Fix Command Arguments for Solaris_Once_Init_1
6725 static const char* apzSolaris_Once_Init_1Patch[] = {
6728 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6733 * Description of Solaris_Once_Init_2 fix
6735 tSCC zSolaris_Once_Init_2Name[] =
6736 "solaris_once_init_2";
6739 * File name selection pattern
6741 tSCC zSolaris_Once_Init_2List[] =
6744 * Machine/OS name selection pattern
6746 tSCC* apzSolaris_Once_Init_2Machs[] = {
6747 "*-*-solaris2.[0-9]",
6748 "*-*-solaris2.[0-9][!0-9]*",
6749 (const char*)NULL };
6752 * content selection pattern - do fix if pattern found
6754 tSCC zSolaris_Once_Init_2Select0[] =
6755 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6757 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6758 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6759 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6762 * Fix Command Arguments for Solaris_Once_Init_2
6764 static const char* apzSolaris_Once_Init_2Patch[] = {
6766 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6769 %1{0}, {0}, {0}, {%3}%4\n\
6771 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6776 * Description of Solaris_Int_Const fix
6778 tSCC zSolaris_Int_ConstName[] =
6779 "solaris_int_const";
6782 * File name selection pattern
6784 tSCC zSolaris_Int_ConstList[] =
6785 "sys/int_const.h\0";
6787 * Machine/OS name selection pattern
6789 tSCC* apzSolaris_Int_ConstMachs[] = {
6791 (const char*)NULL };
6794 * content selection pattern - do fix if pattern found
6796 tSCC zSolaris_Int_ConstSelect0[] =
6797 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6799 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6801 #define SOLARIS_INT_CONST_TEST_CT 1
6802 static tTestDesc aSolaris_Int_ConstTests[] = {
6803 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6806 * Fix Command Arguments for Solaris_Int_Const
6808 static const char* apzSolaris_Int_ConstPatch[] = {
6810 "#define\tUINT8_C(c)\t(c)\n\
6812 #define\tUINT16_C(c)\t(c)",
6815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6817 * Description of Solaris_Int_Limits_1 fix
6819 tSCC zSolaris_Int_Limits_1Name[] =
6820 "solaris_int_limits_1";
6823 * File name selection pattern
6825 tSCC zSolaris_Int_Limits_1List[] =
6826 "sys/int_limits.h\0";
6828 * Machine/OS name selection pattern
6830 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6832 (const char*)NULL };
6835 * content selection pattern - do fix if pattern found
6837 tSCC zSolaris_Int_Limits_1Select0[] =
6838 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6839 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6841 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6842 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6843 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6846 * Fix Command Arguments for Solaris_Int_Limits_1
6848 static const char* apzSolaris_Int_Limits_1Patch[] = {
6850 "#define\tUINT8_MAX\t(255)\n\
6851 #define\tUINT16_MAX\t(65535)",
6854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6856 * Description of Solaris_Int_Limits_2 fix
6858 tSCC zSolaris_Int_Limits_2Name[] =
6859 "solaris_int_limits_2";
6862 * File name selection pattern
6864 tSCC zSolaris_Int_Limits_2List[] =
6865 "sys/int_limits.h\0";
6867 * Machine/OS name selection pattern
6869 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6871 (const char*)NULL };
6874 * content selection pattern - do fix if pattern found
6876 tSCC zSolaris_Int_Limits_2Select0[] =
6877 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6879 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6880 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6881 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6884 * Fix Command Arguments for Solaris_Int_Limits_2
6886 static const char* apzSolaris_Int_Limits_2Patch[] = {
6888 "#define\t%1_FAST16_%2 %132_%2",
6891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6893 * Description of Solaris_Int_Limits_3 fix
6895 tSCC zSolaris_Int_Limits_3Name[] =
6896 "solaris_int_limits_3";
6899 * File name selection pattern
6901 tSCC zSolaris_Int_Limits_3List[] =
6902 "sys/int_limits.h\0";
6904 * Machine/OS name selection pattern
6906 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6908 (const char*)NULL };
6911 * content selection pattern - do fix if pattern found
6913 tSCC zSolaris_Int_Limits_3Select0[] =
6914 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6916 #define SOLARIS_INT_LIMITS_3_TEST_CT 1
6917 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6918 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6921 * Fix Command Arguments for Solaris_Int_Limits_3
6923 static const char* apzSolaris_Int_Limits_3Patch[] = {
6925 "#define\tSIZE_MAX\t4294967295U",
6928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6930 * Description of Solaris_Int_Types fix
6932 tSCC zSolaris_Int_TypesName[] =
6933 "solaris_int_types";
6936 * File name selection pattern
6938 tSCC zSolaris_Int_TypesList[] =
6939 "sys/int_types.h\0";
6941 * Machine/OS name selection pattern
6943 #define apzSolaris_Int_TypesMachs (const char**)NULL
6946 * content selection pattern - do fix if pattern found
6948 tSCC zSolaris_Int_TypesSelect0[] =
6949 "__STDC__ - 0 == 0";
6952 * content bypass pattern - skip fix if pattern found
6954 tSCC zSolaris_Int_TypesBypass0[] =
6957 #define SOLARIS_INT_TYPES_TEST_CT 2
6958 static tTestDesc aSolaris_Int_TypesTests[] = {
6959 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6960 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6963 * Fix Command Arguments for Solaris_Int_Types
6965 static const char* apzSolaris_Int_TypesPatch[] = {
6967 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6972 * Description of Solaris_Stdio_Tag fix
6974 tSCC zSolaris_Stdio_TagName[] =
6975 "solaris_stdio_tag";
6978 * File name selection pattern
6980 tSCC zSolaris_Stdio_TagList[] =
6983 * Machine/OS name selection pattern
6985 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6988 * content selection pattern - do fix if pattern found
6990 tSCC zSolaris_Stdio_TagSelect0[] =
6991 "__cplusplus < 54321L";
6994 * content bypass pattern - skip fix if pattern found
6996 tSCC zSolaris_Stdio_TagBypass0[] =
6999 #define SOLARIS_STDIO_TAG_TEST_CT 2
7000 static tTestDesc aSolaris_Stdio_TagTests[] = {
7001 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7002 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7005 * Fix Command Arguments for Solaris_Stdio_Tag
7007 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7008 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7013 * Description of Solaris_Sys_Va_List fix
7015 tSCC zSolaris_Sys_Va_ListName[] =
7016 "solaris_sys_va_list";
7019 * File name selection pattern
7021 tSCC zSolaris_Sys_Va_ListList[] =
7024 * Machine/OS name selection pattern
7026 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7027 "*-*-solaris2.[89]",
7028 (const char*)NULL };
7031 * content selection pattern - do fix if pattern found
7033 tSCC zSolaris_Sys_Va_ListSelect0[] =
7035 typedef void \\*__va_list;\n\
7037 typedef char \\*__va_list;\n\
7040 #define SOLARIS_SYS_VA_LIST_TEST_CT 1
7041 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7042 { TT_EGREP, zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7045 * Fix Command Arguments for Solaris_Sys_Va_List
7047 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7050 typedef __builtin_va_list __va_list;\n\
7056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7058 * Description of Statsswtch fix
7060 tSCC zStatsswtchName[] =
7064 * File name selection pattern
7066 tSCC zStatsswtchList[] =
7069 * Machine/OS name selection pattern
7071 #define apzStatsswtchMachs (const char**)NULL
7074 * content selection pattern - do fix if pattern found
7076 tSCC zStatsswtchSelect0[] =
7079 #define STATSSWTCH_TEST_CT 1
7080 static tTestDesc aStatsswtchTests[] = {
7081 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
7084 * Fix Command Arguments for Statsswtch
7086 static const char* apzStatsswtchPatch[] = {
7091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7093 * Description of Stdio_Stdarg_H fix
7095 tSCC zStdio_Stdarg_HName[] =
7099 * File name selection pattern
7101 tSCC zStdio_Stdarg_HList[] =
7104 * Machine/OS name selection pattern
7106 tSCC* apzStdio_Stdarg_HMachs[] = {
7107 "*-*-solaris2.1[0-9]*",
7108 (const char*)NULL };
7111 * content bypass pattern - skip fix if pattern found
7113 tSCC zStdio_Stdarg_HBypass0[] =
7114 "include.*(stdarg.h|machine/ansi.h)";
7116 #define STDIO_STDARG_H_TEST_CT 1
7117 static tTestDesc aStdio_Stdarg_HTests[] = {
7118 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7121 * Fix Command Arguments for Stdio_Stdarg_H
7123 static const char* apzStdio_Stdarg_HPatch[] = {
7125 "#define __need___va_list\n\
7126 #include <stdarg.h>\n",
7129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7131 * Description of Stdio_Va_List fix
7133 tSCC zStdio_Va_ListName[] =
7137 * File name selection pattern
7139 tSCC zStdio_Va_ListList[] =
7140 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
7142 * Machine/OS name selection pattern
7144 tSCC* apzStdio_Va_ListMachs[] = {
7145 "*-*-solaris2.1[0-9]*",
7146 (const char*)NULL };
7149 * content bypass pattern - skip fix if pattern found
7151 tSCC zStdio_Va_ListBypass0[] =
7152 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7154 #define STDIO_VA_LIST_TEST_CT 1
7155 static tTestDesc aStdio_Va_ListTests[] = {
7156 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7159 * Fix Command Arguments for Stdio_Va_List
7161 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7162 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7163 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7164 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7165 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7166 s@ va_list@ __not_va_list__@\n\
7167 s@\\*va_list@*__not_va_list__@\n\
7168 s@ __va_list)@ __gnuc_va_list)@\n\
7169 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7170 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7171 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7172 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7173 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7174 s@VA_LIST@DUMMY_VA_LIST@\n\
7175 s@_Va_LIST@_VA_LIST@",
7178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7180 * Description of Stdio_Va_List_Clients fix
7182 tSCC zStdio_Va_List_ClientsName[] =
7183 "stdio_va_list_clients";
7186 * File name selection pattern
7188 tSCC zStdio_Va_List_ClientsList[] =
7189 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7191 * Machine/OS name selection pattern
7193 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7196 * content bypass pattern - skip fix if pattern found
7198 tSCC zStdio_Va_List_ClientsBypass0[] =
7199 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7200 tSCC zStdio_Va_List_ClientsBypass1[] =
7201 "include <stdarg\\.h>|#ifdef va_start";
7203 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
7204 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7205 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7206 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7209 * Fix Command Arguments for Stdio_Va_List_Clients
7211 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7212 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7213 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7214 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7215 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7216 s@ va_list@ __not_va_list__@\n\
7217 s@\\*va_list@*__not_va_list__@\n\
7218 s@ __va_list)@ __gnuc_va_list)@\n\
7219 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7220 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7221 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7222 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7223 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7224 s@VA_LIST@DUMMY_VA_LIST@\n\
7225 s@_Va_LIST@_VA_LIST@",
7228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7230 * Description of Strict_Ansi_Not fix
7232 tSCC zStrict_Ansi_NotName[] =
7236 * File name selection pattern
7238 #define zStrict_Ansi_NotList (char*)NULL
7240 * Machine/OS name selection pattern
7242 #define apzStrict_Ansi_NotMachs (const char**)NULL
7245 * content selection pattern - do fix if pattern found
7247 tSCC zStrict_Ansi_NotSelect0[] =
7248 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7251 * content bypass pattern - skip fix if pattern found
7253 tSCC zStrict_Ansi_NotBypass0[] =
7254 "GNU and MIPS C compilers define __STDC__ differently";
7255 tSCC zStrict_Ansi_NotBypass1[] =
7256 "__SCO_VERSION__.*__STDC__ != 1";
7259 * perform the C function call test
7261 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7263 #define STRICT_ANSI_NOT_TEST_CT 4
7264 static tTestDesc aStrict_Ansi_NotTests[] = {
7265 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
7266 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7267 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7268 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7271 * Fix Command Arguments for Strict_Ansi_Not
7273 static const char* apzStrict_Ansi_NotPatch[] = {
7275 "%1 !defined(__STRICT_ANSI__)",
7278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7280 * Description of Strict_Ansi_Not_Ctd fix
7282 tSCC zStrict_Ansi_Not_CtdName[] =
7283 "strict_ansi_not_ctd";
7286 * File name selection pattern
7288 tSCC zStrict_Ansi_Not_CtdList[] =
7289 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7291 * Machine/OS name selection pattern
7293 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7296 * content selection pattern - do fix if pattern found
7298 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7299 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7302 * perform the C function call test
7304 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7306 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
7307 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7308 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
7309 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7312 * Fix Command Arguments for Strict_Ansi_Not_Ctd
7314 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7316 "%1 !defined(__STRICT_ANSI__)",
7319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7321 * Description of Strict_Ansi_Only fix
7323 tSCC zStrict_Ansi_OnlyName[] =
7327 * File name selection pattern
7329 #define zStrict_Ansi_OnlyList (char*)NULL
7331 * Machine/OS name selection pattern
7333 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7336 * content selection pattern - do fix if pattern found
7338 tSCC zStrict_Ansi_OnlySelect0[] =
7339 "^([ \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)";
7342 * perform the C function call test
7344 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7346 #define STRICT_ANSI_ONLY_TEST_CT 2
7347 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7348 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
7349 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7352 * Fix Command Arguments for Strict_Ansi_Only
7354 static const char* apzStrict_Ansi_OnlyPatch[] = {
7356 "%1 defined(__STRICT_ANSI__)",
7359 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7361 * Description of Struct_File fix
7363 tSCC zStruct_FileName[] =
7367 * File name selection pattern
7369 tSCC zStruct_FileList[] =
7372 * Machine/OS name selection pattern
7374 #define apzStruct_FileMachs (const char**)NULL
7377 * content selection pattern - do fix if pattern found
7379 tSCC zStruct_FileSelect0[] =
7380 "^.*xdrstdio_create.*struct __file_s";
7382 #define STRUCT_FILE_TEST_CT 1
7383 static tTestDesc aStruct_FileTests[] = {
7384 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
7387 * Fix Command Arguments for Struct_File
7389 static const char* apzStruct_FilePatch[] = {
7391 "struct __file_s;\n\
7395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7397 * Description of Struct_Sockaddr fix
7399 tSCC zStruct_SockaddrName[] =
7403 * File name selection pattern
7405 tSCC zStruct_SockaddrList[] =
7408 * Machine/OS name selection pattern
7410 #define apzStruct_SockaddrMachs (const char**)NULL
7413 * content selection pattern - do fix if pattern found
7415 tSCC zStruct_SockaddrSelect0[] =
7416 "^.*authdes_create.*struct sockaddr[^_]";
7419 * content bypass pattern - skip fix if pattern found
7421 tSCC zStruct_SockaddrBypass0[] =
7423 tSCC zStruct_SockaddrBypass1[] =
7424 "struct sockaddr;\n";
7426 #define STRUCT_SOCKADDR_TEST_CT 3
7427 static tTestDesc aStruct_SockaddrTests[] = {
7428 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
7429 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
7430 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7433 * Fix Command Arguments for Struct_Sockaddr
7435 static const char* apzStruct_SockaddrPatch[] = {
7437 "struct sockaddr;\n\
7441 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7443 * Description of Sun_Auth_Proto fix
7445 tSCC zSun_Auth_ProtoName[] =
7449 * File name selection pattern
7451 tSCC zSun_Auth_ProtoList[] =
7452 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7454 * Machine/OS name selection pattern
7456 #define apzSun_Auth_ProtoMachs (const char**)NULL
7459 * content selection pattern - do fix if pattern found
7461 tSCC zSun_Auth_ProtoSelect0[] =
7462 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7465 * content bypass pattern - skip fix if pattern found
7467 tSCC zSun_Auth_ProtoBypass0[] =
7470 #define SUN_AUTH_PROTO_TEST_CT 2
7471 static tTestDesc aSun_Auth_ProtoTests[] = {
7472 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7473 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7476 * Fix Command Arguments for Sun_Auth_Proto
7478 static const char* apzSun_Auth_ProtoPatch[] = {
7480 "#ifdef __cplusplus\n\
7485 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7490 * Description of Sun_Bogus_Ifdef fix
7492 tSCC zSun_Bogus_IfdefName[] =
7496 * File name selection pattern
7498 tSCC zSun_Bogus_IfdefList[] =
7499 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7501 * Machine/OS name selection pattern
7503 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7506 * content selection pattern - do fix if pattern found
7508 tSCC zSun_Bogus_IfdefSelect0[] =
7509 "#ifdef(.*\\|\\|.*)";
7511 #define SUN_BOGUS_IFDEF_TEST_CT 1
7512 static tTestDesc aSun_Bogus_IfdefTests[] = {
7513 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7516 * Fix Command Arguments for Sun_Bogus_Ifdef
7518 static const char* apzSun_Bogus_IfdefPatch[] = {
7523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7525 * Description of Sun_Catmacro fix
7527 tSCC zSun_CatmacroName[] =
7531 * File name selection pattern
7533 tSCC zSun_CatmacroList[] =
7534 "pixrect/memvar.h\0";
7536 * Machine/OS name selection pattern
7538 #define apzSun_CatmacroMachs (const char**)NULL
7541 * content selection pattern - do fix if pattern found
7543 tSCC zSun_CatmacroSelect0[] =
7544 "^#define[ \t]+CAT\\(a,b\\).*";
7546 #define SUN_CATMACRO_TEST_CT 1
7547 static tTestDesc aSun_CatmacroTests[] = {
7548 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7551 * Fix Command Arguments for Sun_Catmacro
7553 static const char* apzSun_CatmacroPatch[] = {
7556 # define CAT(a,b) a##b\n\
7562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7564 * Description of Sun_Malloc fix
7566 tSCC zSun_MallocName[] =
7570 * File name selection pattern
7572 tSCC zSun_MallocList[] =
7575 * Machine/OS name selection pattern
7577 #define apzSun_MallocMachs (const char**)NULL
7580 * content bypass pattern - skip fix if pattern found
7582 tSCC zSun_MallocBypass0[] =
7583 "_CLASSIC_ANSI_TYPES";
7585 #define SUN_MALLOC_TEST_CT 1
7586 static tTestDesc aSun_MallocTests[] = {
7587 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7590 * Fix Command Arguments for Sun_Malloc
7592 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7593 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7594 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7595 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7596 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7597 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7602 * Description of Sun_Rusers_Semi fix
7604 tSCC zSun_Rusers_SemiName[] =
7608 * File name selection pattern
7610 tSCC zSun_Rusers_SemiList[] =
7611 "rpcsvc/rusers.h\0";
7613 * Machine/OS name selection pattern
7615 #define apzSun_Rusers_SemiMachs (const char**)NULL
7618 * content selection pattern - do fix if pattern found
7620 tSCC zSun_Rusers_SemiSelect0[] =
7623 #define SUN_RUSERS_SEMI_TEST_CT 1
7624 static tTestDesc aSun_Rusers_SemiTests[] = {
7625 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7628 * Fix Command Arguments for Sun_Rusers_Semi
7630 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7631 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7636 * Description of Sun_Signal fix
7638 tSCC zSun_SignalName[] =
7642 * File name selection pattern
7644 tSCC zSun_SignalList[] =
7645 "sys/signal.h\0signal.h\0";
7647 * Machine/OS name selection pattern
7649 #define apzSun_SignalMachs (const char**)NULL
7652 * content selection pattern - do fix if pattern found
7654 tSCC zSun_SignalSelect0[] =
7655 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7657 #define SUN_SIGNAL_TEST_CT 1
7658 static tTestDesc aSun_SignalTests[] = {
7659 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7662 * Fix Command Arguments for Sun_Signal
7664 static const char* apzSun_SignalPatch[] = {
7666 "#ifdef __cplusplus\n\
7667 void\t(*signal(...))(...);\n\
7673 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7675 * Description of Sunos_Strlen fix
7677 tSCC zSunos_StrlenName[] =
7681 * File name selection pattern
7683 tSCC zSunos_StrlenList[] =
7686 * Machine/OS name selection pattern
7688 #define apzSunos_StrlenMachs (const char**)NULL
7691 * content selection pattern - do fix if pattern found
7693 tSCC zSunos_StrlenSelect0[] =
7694 "int[ \t]*strlen\\(\\);(.*)";
7696 #define SUNOS_STRLEN_TEST_CT 1
7697 static tTestDesc aSunos_StrlenTests[] = {
7698 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7701 * Fix Command Arguments for Sunos_Strlen
7703 static const char* apzSunos_StrlenPatch[] = {
7705 "__SIZE_TYPE__ strlen();%1",
7708 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7710 * Description of Svr4_Disable_Opt fix
7712 tSCC zSvr4_Disable_OptName[] =
7716 * File name selection pattern
7718 tSCC zSvr4_Disable_OptList[] =
7721 * Machine/OS name selection pattern
7723 #define apzSvr4_Disable_OptMachs (const char**)NULL
7726 * content selection pattern - do fix if pattern found
7728 tSCC zSvr4_Disable_OptSelect0[] =
7729 "#define.*__std_hdr_";
7731 #define SVR4_DISABLE_OPT_TEST_CT 1
7732 static tTestDesc aSvr4_Disable_OptTests[] = {
7733 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7736 * Fix Command Arguments for Svr4_Disable_Opt
7738 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7739 "-e", "/#define.*__std_hdr_/d",
7742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7744 * Description of Svr4_Getcwd fix
7746 tSCC zSvr4_GetcwdName[] =
7750 * File name selection pattern
7752 tSCC zSvr4_GetcwdList[] =
7753 "stdlib.h\0unistd.h\0prototypes.h\0";
7755 * Machine/OS name selection pattern
7757 #define apzSvr4_GetcwdMachs (const char**)NULL
7760 * content selection pattern - do fix if pattern found
7762 tSCC zSvr4_GetcwdSelect0[] =
7763 "getcwd\\(char \\*, int\\)";
7765 #define SVR4_GETCWD_TEST_CT 1
7766 static tTestDesc aSvr4_GetcwdTests[] = {
7767 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7770 * Fix Command Arguments for Svr4_Getcwd
7772 static const char* apzSvr4_GetcwdPatch[] = {
7774 "getcwd(char *, size_t)",
7777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7779 * Description of Svr4_Profil fix
7781 tSCC zSvr4_ProfilName[] =
7785 * File name selection pattern
7787 tSCC zSvr4_ProfilList[] =
7788 "stdlib.h\0unistd.h\0";
7790 * Machine/OS name selection pattern
7792 #define apzSvr4_ProfilMachs (const char**)NULL
7795 * content selection pattern - do fix if pattern found
7797 tSCC zSvr4_ProfilSelect0[] =
7798 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7801 * content bypass pattern - skip fix if pattern found
7803 tSCC zSvr4_ProfilBypass0[] =
7806 #define SVR4_PROFIL_TEST_CT 2
7807 static tTestDesc aSvr4_ProfilTests[] = {
7808 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7809 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7812 * Fix Command Arguments for Svr4_Profil
7814 static const char* apzSvr4_ProfilPatch[] = {
7816 "profil(unsigned short *, size_t, int, unsigned int)",
7819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7821 * Description of Svr4_Sighandler_Type fix
7823 tSCC zSvr4_Sighandler_TypeName[] =
7824 "svr4_sighandler_type";
7827 * File name selection pattern
7829 tSCC zSvr4_Sighandler_TypeList[] =
7832 * Machine/OS name selection pattern
7834 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7837 * content selection pattern - do fix if pattern found
7839 tSCC zSvr4_Sighandler_TypeSelect0[] =
7840 "void *\\(\\*\\)\\(\\)";
7842 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7843 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7844 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7847 * Fix Command Arguments for Svr4_Sighandler_Type
7849 static const char* apzSvr4_Sighandler_TypePatch[] = {
7854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7856 * Description of Svr4_Undeclared_Getrnge fix
7858 tSCC zSvr4_Undeclared_GetrngeName[] =
7859 "svr4_undeclared_getrnge";
7862 * File name selection pattern
7864 tSCC zSvr4_Undeclared_GetrngeList[] =
7867 * Machine/OS name selection pattern
7869 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7872 * content selection pattern - do fix if pattern found
7874 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7878 * content bypass pattern - skip fix if pattern found
7880 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7881 "static void getrnge";
7883 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7884 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7885 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7886 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7889 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7891 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7894 static int getrnge ();",
7895 "^static int[ \t]+size;",
7898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7900 * Description of Sysv68_String fix
7902 tSCC zSysv68_StringName[] =
7906 * File name selection pattern
7908 tSCC zSysv68_StringList[] =
7909 "testing.h\0string.h\0";
7911 * Machine/OS name selection pattern
7913 #define apzSysv68_StringMachs (const char**)NULL
7916 * content bypass pattern - skip fix if pattern found
7918 tSCC zSysv68_StringBypass0[] =
7919 "_CLASSIC_ANSI_TYPES";
7921 #define SYSV68_STRING_TEST_CT 1
7922 static tTestDesc aSysv68_StringTests[] = {
7923 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7926 * Fix Command Arguments for Sysv68_String
7928 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7929 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7930 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7931 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7932 "-e", "/^extern char$/N",
7933 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7934 "-e", "/^extern int$/N",
7935 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7936 "-e", "/^\tstrncmp(),$/N",
7937 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7938 extern unsigned int\\\n\
7942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7944 * Description of Sysz_Stdlib_For_Sun fix
7946 tSCC zSysz_Stdlib_For_SunName[] =
7947 "sysz_stdlib_for_sun";
7950 * File name selection pattern
7952 tSCC zSysz_Stdlib_For_SunList[] =
7955 * Machine/OS name selection pattern
7957 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7960 * content selection pattern - do fix if pattern found
7962 tSCC zSysz_Stdlib_For_SunSelect0[] =
7963 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7966 * content bypass pattern - skip fix if pattern found
7968 tSCC zSysz_Stdlib_For_SunBypass0[] =
7969 "_CLASSIC_ANSI_TYPES";
7971 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7972 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7973 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7974 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7977 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7979 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7986 * Description of Thread_Keyword fix
7988 tSCC zThread_KeywordName[] =
7992 * File name selection pattern
7994 tSCC zThread_KeywordList[] =
7995 "pthread.h\0bits/sigthread.h\0";
7997 * Machine/OS name selection pattern
7999 #define apzThread_KeywordMachs (const char**)NULL
8002 * content selection pattern - do fix if pattern found
8004 tSCC zThread_KeywordSelect0[] =
8005 "([* ])__thread([,)])";
8007 #define THREAD_KEYWORD_TEST_CT 1
8008 static tTestDesc aThread_KeywordTests[] = {
8009 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
8012 * Fix Command Arguments for Thread_Keyword
8014 static const char* apzThread_KeywordPatch[] = {
8019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8021 * Description of Tinfo_Cplusplus fix
8023 tSCC zTinfo_CplusplusName[] =
8027 * File name selection pattern
8029 tSCC zTinfo_CplusplusList[] =
8032 * Machine/OS name selection pattern
8034 #define apzTinfo_CplusplusMachs (const char**)NULL
8037 * content selection pattern - do fix if pattern found
8039 tSCC zTinfo_CplusplusSelect0[] =
8042 #define TINFO_CPLUSPLUS_TEST_CT 1
8043 static tTestDesc aTinfo_CplusplusTests[] = {
8044 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8047 * Fix Command Arguments for Tinfo_Cplusplus
8049 static const char* apzTinfo_CplusplusPatch[] = {
8054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8056 * Description of Ultrix_Const fix
8058 tSCC zUltrix_ConstName[] =
8062 * File name selection pattern
8064 tSCC zUltrix_ConstList[] =
8067 * Machine/OS name selection pattern
8069 #define apzUltrix_ConstMachs (const char**)NULL
8072 * content selection pattern - do fix if pattern found
8074 tSCC zUltrix_ConstSelect0[] =
8075 "perror\\( char \\*";
8077 #define ULTRIX_CONST_TEST_CT 1
8078 static tTestDesc aUltrix_ConstTests[] = {
8079 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
8082 * Fix Command Arguments for Ultrix_Const
8084 static const char* apzUltrix_ConstPatch[] = {
8087 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8092 * Description of Ultrix_Const2 fix
8094 tSCC zUltrix_Const2Name[] =
8098 * File name selection pattern
8100 tSCC zUltrix_Const2List[] =
8103 * Machine/OS name selection pattern
8105 #define apzUltrix_Const2Machs (const char**)NULL
8108 * content selection pattern - do fix if pattern found
8110 tSCC zUltrix_Const2Select0[] =
8111 "\\*fopen\\( char \\*";
8113 #define ULTRIX_CONST2_TEST_CT 1
8114 static tTestDesc aUltrix_Const2Tests[] = {
8115 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
8118 * Fix Command Arguments for Ultrix_Const2
8120 static const char* apzUltrix_Const2Patch[] = {
8122 "%1( const char *%3, const char *",
8123 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8128 * Description of Va_I960_Macro fix
8130 tSCC zVa_I960_MacroName[] =
8134 * File name selection pattern
8136 tSCC zVa_I960_MacroList[] =
8137 "arch/i960/archI960.h\0";
8139 * Machine/OS name selection pattern
8141 #define apzVa_I960_MacroMachs (const char**)NULL
8144 * content selection pattern - do fix if pattern found
8146 tSCC zVa_I960_MacroSelect0[] =
8147 "__(vsiz|vali|vpad|alignof__)";
8149 #define VA_I960_MACRO_TEST_CT 1
8150 static tTestDesc aVa_I960_MacroTests[] = {
8151 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8154 * Fix Command Arguments for Va_I960_Macro
8156 static const char* apzVa_I960_MacroPatch[] = {
8161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8163 * Description of Void_Null fix
8165 tSCC zVoid_NullName[] =
8169 * File name selection pattern
8171 tSCC zVoid_NullList[] =
8172 "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";
8174 * Machine/OS name selection pattern
8176 #define apzVoid_NullMachs (const char**)NULL
8179 * content selection pattern - do fix if pattern found
8181 tSCC zVoid_NullSelect0[] =
8182 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8185 * content bypass pattern - skip fix if pattern found
8187 tSCC zVoid_NullBypass0[] =
8190 #define VOID_NULL_TEST_CT 2
8191 static tTestDesc aVoid_NullTests[] = {
8192 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8193 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8196 * Fix Command Arguments for Void_Null
8198 static const char* apzVoid_NullPatch[] = {
8203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8205 * Description of Vxworks_Gcc_Problem fix
8207 tSCC zVxworks_Gcc_ProblemName[] =
8208 "vxworks_gcc_problem";
8211 * File name selection pattern
8213 tSCC zVxworks_Gcc_ProblemList[] =
8214 "types/vxTypesBase.h\0";
8216 * Machine/OS name selection pattern
8218 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8221 * content selection pattern - do fix if pattern found
8223 tSCC zVxworks_Gcc_ProblemSelect0[] =
8224 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8226 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8227 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8228 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8231 * Fix Command Arguments for Vxworks_Gcc_Problem
8233 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8234 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8235 "-e", "/[ \t]size_t/i\\\n\
8236 #ifndef _GCC_SIZE_T\\\n\
8237 #define _GCC_SIZE_T\n",
8238 "-e", "/[ \t]size_t/a\\\n\
8240 "-e", "/[ \t]ptrdiff_t/i\\\n\
8241 #ifndef _GCC_PTRDIFF_T\\\n\
8242 #define _GCC_PTRDIFF_T\n",
8243 "-e", "/[ \t]ptrdiff_t/a\\\n\
8245 "-e", "/[ \t]wchar_t/i\\\n\
8246 #ifndef _GCC_WCHAR_T\\\n\
8247 #define _GCC_WCHAR_T\n",
8248 "-e", "/[ \t]wchar_t/a\\\n\
8252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8254 * Description of Vxworks_Needs_Vxtypes fix
8256 tSCC zVxworks_Needs_VxtypesName[] =
8257 "vxworks_needs_vxtypes";
8260 * File name selection pattern
8262 tSCC zVxworks_Needs_VxtypesList[] =
8265 * Machine/OS name selection pattern
8267 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8270 * content selection pattern - do fix if pattern found
8272 tSCC zVxworks_Needs_VxtypesSelect0[] =
8273 "uint_t([ \t]+_clocks_per_sec)";
8275 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8276 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8277 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8280 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8282 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8289 * Description of Vxworks_Needs_Vxworks fix
8291 tSCC zVxworks_Needs_VxworksName[] =
8292 "vxworks_needs_vxworks";
8295 * File name selection pattern
8297 tSCC zVxworks_Needs_VxworksList[] =
8300 * Machine/OS name selection pattern
8302 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8305 * content selection pattern - do fix if pattern found
8307 tSCC zVxworks_Needs_VxworksSelect0[] =
8308 "#[ \t]define[ \t]+__INCstath";
8311 * perform the 'test' shell command - do fix on success
8313 tSCC zVxworks_Needs_VxworksTest0[] =
8314 " -r types/vxTypesOld.h";
8315 tSCC zVxworks_Needs_VxworksTest1[] =
8316 " -n \"`egrep '#include' $file`\"";
8317 tSCC zVxworks_Needs_VxworksTest2[] =
8318 " -n \"`egrep ULONG $file`\"";
8320 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8321 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8322 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8323 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8324 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8325 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8328 * Fix Command Arguments for Vxworks_Needs_Vxworks
8330 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8331 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8332 #include <types/vxTypesOld.h>\n",
8335 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8337 * Description of Vxworks_Time fix
8339 tSCC zVxworks_TimeName[] =
8343 * File name selection pattern
8345 tSCC zVxworks_TimeList[] =
8348 * Machine/OS name selection pattern
8350 #define apzVxworks_TimeMachs (const char**)NULL
8353 * content selection pattern - do fix if pattern found
8355 tSCC zVxworks_TimeSelect0[] =
8356 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8359 * perform the 'test' shell command - do fix on success
8361 tSCC zVxworks_TimeTest0[] =
8364 #define VXWORKS_TIME_TEST_CT 2
8365 static tTestDesc aVxworks_TimeTests[] = {
8366 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8367 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8370 * Fix Command Arguments for Vxworks_Time
8372 static const char* apzVxworks_TimePatch[] = {
8374 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8375 #ifdef __cplusplus\n\
8376 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8378 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8380 #define __gcc_VOIDFUNCPTR_defined\n\
8382 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8387 * Description of X11_Class fix
8389 tSCC zX11_ClassName[] =
8393 * File name selection pattern
8395 tSCC zX11_ClassList[] =
8398 * Machine/OS name selection pattern
8400 #define apzX11_ClassMachs (const char**)NULL
8403 * content selection pattern - do fix if pattern found
8405 tSCC zX11_ClassSelect0[] =
8406 "^([ \t]*char \\*)class;(.*)";
8409 * content bypass pattern - skip fix if pattern found
8411 tSCC zX11_ClassBypass0[] =
8414 #define X11_CLASS_TEST_CT 2
8415 static tTestDesc aX11_ClassTests[] = {
8416 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8417 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8420 * Fix Command Arguments for X11_Class
8422 static const char* apzX11_ClassPatch[] = {
8424 "#ifdef __cplusplus\n\
8431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8433 * Description of X11_Class_Usage fix
8435 tSCC zX11_Class_UsageName[] =
8439 * File name selection pattern
8441 tSCC zX11_Class_UsageList[] =
8442 "Xm/BaseClassI.h\0";
8444 * Machine/OS name selection pattern
8446 #define apzX11_Class_UsageMachs (const char**)NULL
8449 * content selection pattern - do fix if pattern found
8451 tSCC zX11_Class_UsageSelect0[] =
8455 * content bypass pattern - skip fix if pattern found
8457 tSCC zX11_Class_UsageBypass0[] =
8460 #define X11_CLASS_USAGE_TEST_CT 2
8461 static tTestDesc aX11_Class_UsageTests[] = {
8462 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8463 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8466 * Fix Command Arguments for X11_Class_Usage
8468 static const char* apzX11_Class_UsagePatch[] = {
8473 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8475 * Description of X11_New fix
8477 tSCC zX11_NewName[] =
8481 * File name selection pattern
8483 tSCC zX11_NewList[] =
8486 * Machine/OS name selection pattern
8488 #define apzX11_NewMachs (const char**)NULL
8491 * content bypass pattern - skip fix if pattern found
8493 tSCC zX11_NewBypass0[] =
8496 #define X11_NEW_TEST_CT 1
8497 static tTestDesc aX11_NewTests[] = {
8498 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8501 * Fix Command Arguments for X11_New
8503 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8504 "-e", "/Widget\told, new;/i\\\n\
8505 #ifdef __cplusplus\\\n\
8506 \\\tWidget\told, c_new;\\\n\
8508 "-e", "/Widget\told, new;/a\\\n\
8510 "-e", "s/Widget new,/Widget c_new,/g",
8513 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8515 * Description of X11_Sprintf fix
8517 tSCC zX11_SprintfName[] =
8521 * File name selection pattern
8523 tSCC zX11_SprintfList[] =
8524 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8526 * Machine/OS name selection pattern
8528 #define apzX11_SprintfMachs (const char**)NULL
8531 * content selection pattern - do fix if pattern found
8533 tSCC zX11_SprintfSelect0[] =
8534 "^extern char \\*\tsprintf\\(\\);$";
8536 #define X11_SPRINTF_TEST_CT 1
8537 static tTestDesc aX11_SprintfTests[] = {
8538 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8541 * Fix Command Arguments for X11_Sprintf
8543 static const char* apzX11_SprintfPatch[] = {
8545 "#ifndef __STDC__\n\
8547 #endif /* !defined __STDC__ */",
8551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8555 #define REGEX_COUNT 249
8556 #define MACH_LIST_SIZE_LIMIT 181
8557 #define FIX_COUNT 210
8560 * Enumerate the fixes
8563 AAB_AIX_STDIO_FIXIDX,
8564 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8565 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8566 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8567 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8568 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8569 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8570 AAB_SUN_MEMCPY_FIXIDX,
8573 AIX_STDINT_1_FIXIDX,
8574 AIX_STDINT_2_FIXIDX,
8575 AIX_STDINT_3_FIXIDX,
8576 AIX_STDINT_4_FIXIDX,
8577 AIX_STDINT_5_FIXIDX,
8578 AIX_SYSMACHINE_FIXIDX,
8579 AIX_SYSWAIT_2_FIXIDX,
8580 AIX_VOLATILE_FIXIDX,
8581 ALPHA___ASSERT_FIXIDX,
8582 ALPHA___EXTERN_PREFIX_FIXIDX,
8583 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8584 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8585 ALPHA_ASSERT_FIXIDX,
8586 ALPHA_BAD_LVAL_FIXIDX,
8587 ALPHA_GETOPT_FIXIDX,
8588 ALPHA_IF_SEMICOLON_FIXIDX,
8589 ALPHA_PARENS_FIXIDX,
8590 ALPHA_PTHREAD_FIXIDX,
8591 ALPHA_PTHREAD_GCC_FIXIDX,
8592 ALPHA_PTHREAD_INIT_FIXIDX,
8594 AVOID_BOOL_DEFINE_FIXIDX,
8595 AVOID_BOOL_TYPE_FIXIDX,
8596 AVOID_WCHAR_T_TYPE_FIXIDX,
8597 BAD_STRUCT_TERM_FIXIDX,
8599 BROKEN_ASSERT_STDIO_FIXIDX,
8600 BROKEN_ASSERT_STDLIB_FIXIDX,
8603 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8604 CTRL_QUOTES_DEF_FIXIDX,
8605 CTRL_QUOTES_USE_FIXIDX,
8607 DARWIN_EXTERNC_FIXIDX,
8608 DARWIN_GCC4_BREAKAGE_FIXIDX,
8609 DARWIN_PRIVATE_EXTERN_FIXIDX,
8610 DARWIN_STDINT_1_FIXIDX,
8611 DARWIN_STDINT_2_FIXIDX,
8612 DARWIN_STDINT_3_FIXIDX,
8613 DARWIN_STDINT_4_FIXIDX,
8614 DARWIN_STDINT_5_FIXIDX,
8615 DARWIN_STDINT_6_FIXIDX,
8616 DARWIN_STDINT_7_FIXIDX,
8617 DEC_INTERN_ASM_FIXIDX,
8618 DJGPP_WCHAR_H_FIXIDX,
8620 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8621 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8622 GLIBC_C99_INLINE_1_FIXIDX,
8623 GLIBC_C99_INLINE_1A_FIXIDX,
8624 GLIBC_C99_INLINE_2_FIXIDX,
8625 GLIBC_C99_INLINE_3_FIXIDX,
8626 GLIBC_C99_INLINE_4_FIXIDX,
8627 GLIBC_MUTEX_INIT_FIXIDX,
8628 GLIBC_STDINT_FIXIDX,
8629 GLIBC_STRNCPY_FIXIDX,
8630 GLIBC_TGMATH_FIXIDX,
8634 HPPA_HPUX_FP_MACROS_FIXIDX,
8635 HPUX10_CPP_POW_INLINE_FIXIDX,
8636 HPUX11_CPP_POW_INLINE_FIXIDX,
8637 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8638 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8639 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8641 HPUX11_FABSF_FIXIDX,
8642 HPUX11_PTHREAD_CONST_FIXIDX,
8643 HPUX11_SIZE_T_FIXIDX,
8644 HPUX11_SNPRINTF_FIXIDX,
8645 HPUX11_VSNPRINTF_FIXIDX,
8646 HPUX8_BOGUS_INLINES_FIXIDX,
8647 HPUX_CTYPE_MACROS_FIXIDX,
8649 HPUX_LONG_DOUBLE_FIXIDX,
8650 HPUX_LONG_DOUBLE_2_FIXIDX,
8651 HPUX_SYSTIME_FIXIDX,
8652 HPUX_SPU_INFO_FIXIDX,
8653 HPUX11_EXTERN_SENDFILE_FIXIDX,
8654 HPUX11_EXTERN_SENDPATH_FIXIDX,
8655 HPUX_EXTERN_ERRNO_FIXIDX,
8656 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8657 HPUX_C99_INTPTR_FIXIDX,
8658 HPUX_C99_INTTYPES_FIXIDX,
8659 HPUX_C99_INTTYPES2_FIXIDX,
8660 HPUX_STDINT_LEAST_FAST_FIXIDX,
8661 HPUX_INTTYPE_INT8_T_FIXIDX,
8662 HPUX_IMAGINARY_I_FIXIDX,
8663 HUGE_VAL_HEX_FIXIDX,
8664 HUGE_VALF_HEX_FIXIDX,
8665 HUGE_VALL_HEX_FIXIDX,
8666 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8667 IO_QUOTES_DEF_FIXIDX,
8668 IO_QUOTES_USE_FIXIDX,
8669 IP_MISSING_SEMI_FIXIDX,
8670 IRIX___RESTRICT_FIXIDX,
8671 IRIX___GENERIC1_FIXIDX,
8672 IRIX___GENERIC2_FIXIDX,
8673 IRIX_ASM_APOSTROPHE_FIXIDX,
8674 IRIX_COMPLEX_FIXIDX,
8675 IRIX_LIMITS_CONST_FIXIDX,
8676 IRIX_PTHREAD_INIT_FIXIDX,
8677 IRIX_SOCKLEN_T_FIXIDX,
8678 IRIX_STDINT_C99_MODE_FIXIDX,
8679 IRIX_STDINT_C99_TYPES_FIXIDX,
8680 IRIX_STDINT_C99_MACROS_FIXIDX,
8681 IRIX_STDIO_VA_LIST_FIXIDX,
8682 IRIX_WCSFTIME_FIXIDX,
8683 KANDR_CONCAT_FIXIDX,
8684 LINUX_IA64_UCONTEXT_FIXIDX,
8685 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8686 LYNXOS_MISSING_PUTENV_FIXIDX,
8687 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8688 MACHINE_NAME_FIXIDX,
8689 MATH_EXCEPTION_FIXIDX,
8690 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8691 NESTED_AUTH_DES_FIXIDX,
8692 NETBSD_C99_INLINE_1_FIXIDX,
8693 NETBSD_C99_INLINE_2_FIXIDX,
8694 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8695 NEWLIB_STDINT_1_FIXIDX,
8696 NEWLIB_STDINT_2_FIXIDX,
8697 NEXT_MATH_PREFIX_FIXIDX,
8698 NEXT_TEMPLATE_FIXIDX,
8699 NEXT_VOLITILE_FIXIDX,
8700 NEXT_WAIT_UNION_FIXIDX,
8701 NODEENT_SYNTAX_FIXIDX,
8702 OPENBSD_NULL_DEFINITION_FIXIDX,
8703 OBSTACK_LVALUE_CAST_FIXIDX,
8704 OPENBSD_VA_START_FIXIDX,
8705 OSF_NAMESPACE_A_FIXIDX,
8706 OSF_NAMESPACE_C_FIXIDX,
8707 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8708 READ_RET_TYPE_FIXIDX,
8709 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8710 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8711 RS6000_DOUBLE_FIXIDX,
8712 RS6000_FCHMOD_FIXIDX,
8713 RS6000_PARAM_FIXIDX,
8714 SOLARIS___RESTRICT_FIXIDX,
8715 SOLARIS_COMPLEX_FIXIDX,
8716 SOLARIS_COMPLEX_CXX_FIXIDX,
8717 SOLARIS_COND_INIT_FIXIDX,
8718 SOLARIS_MATH_1_FIXIDX,
8719 SOLARIS_MATH_2_FIXIDX,
8720 SOLARIS_MATH_3_FIXIDX,
8721 SOLARIS_MATH_4_FIXIDX,
8722 SOLARIS_MATH_8_FIXIDX,
8723 SOLARIS_MATH_9_FIXIDX,
8724 SOLARIS_MATH_10_FIXIDX,
8725 SOLARIS_MUTEX_INIT_2_FIXIDX,
8726 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8727 SOLARIS_ONCE_INIT_1_FIXIDX,
8728 SOLARIS_ONCE_INIT_2_FIXIDX,
8729 SOLARIS_INT_CONST_FIXIDX,
8730 SOLARIS_INT_LIMITS_1_FIXIDX,
8731 SOLARIS_INT_LIMITS_2_FIXIDX,
8732 SOLARIS_INT_LIMITS_3_FIXIDX,
8733 SOLARIS_INT_TYPES_FIXIDX,
8734 SOLARIS_STDIO_TAG_FIXIDX,
8735 SOLARIS_SYS_VA_LIST_FIXIDX,
8737 STDIO_STDARG_H_FIXIDX,
8738 STDIO_VA_LIST_FIXIDX,
8739 STDIO_VA_LIST_CLIENTS_FIXIDX,
8740 STRICT_ANSI_NOT_FIXIDX,
8741 STRICT_ANSI_NOT_CTD_FIXIDX,
8742 STRICT_ANSI_ONLY_FIXIDX,
8744 STRUCT_SOCKADDR_FIXIDX,
8745 SUN_AUTH_PROTO_FIXIDX,
8746 SUN_BOGUS_IFDEF_FIXIDX,
8747 SUN_CATMACRO_FIXIDX,
8749 SUN_RUSERS_SEMI_FIXIDX,
8751 SUNOS_STRLEN_FIXIDX,
8752 SVR4_DISABLE_OPT_FIXIDX,
8755 SVR4_SIGHANDLER_TYPE_FIXIDX,
8756 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8757 SYSV68_STRING_FIXIDX,
8758 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8759 THREAD_KEYWORD_FIXIDX,
8760 TINFO_CPLUSPLUS_FIXIDX,
8761 ULTRIX_CONST_FIXIDX,
8762 ULTRIX_CONST2_FIXIDX,
8763 VA_I960_MACRO_FIXIDX,
8765 VXWORKS_GCC_PROBLEM_FIXIDX,
8766 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8767 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8768 VXWORKS_TIME_FIXIDX,
8770 X11_CLASS_USAGE_FIXIDX,
8775 tFixDesc fixDescList[ FIX_COUNT ] = {
8776 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8777 apzAab_Aix_StdioMachs,
8778 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8779 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8781 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8782 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8783 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8784 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8786 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8787 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8788 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8789 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8791 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8792 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8793 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8794 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8796 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8797 apzAab_Fd_Zero_Gnu_Types_HMachs,
8798 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8799 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8801 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8802 apzAab_Fd_Zero_Selectbits_HMachs,
8803 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8804 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8806 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8807 apzAab_Solaris_Sys_Varargs_HMachs,
8808 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8809 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8811 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8812 apzAab_Sun_MemcpyMachs,
8813 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8814 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8816 { zAix_ComplexName, zAix_ComplexList,
8817 apzAix_ComplexMachs,
8818 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8819 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
8821 { zAix_PthreadName, zAix_PthreadList,
8822 apzAix_PthreadMachs,
8823 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8824 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8826 { zAix_Stdint_1Name, zAix_Stdint_1List,
8827 apzAix_Stdint_1Machs,
8828 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8829 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
8831 { zAix_Stdint_2Name, zAix_Stdint_2List,
8832 apzAix_Stdint_2Machs,
8833 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8834 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
8836 { zAix_Stdint_3Name, zAix_Stdint_3List,
8837 apzAix_Stdint_3Machs,
8838 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8839 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
8841 { zAix_Stdint_4Name, zAix_Stdint_4List,
8842 apzAix_Stdint_4Machs,
8843 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8844 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
8846 { zAix_Stdint_5Name, zAix_Stdint_5List,
8847 apzAix_Stdint_5Machs,
8848 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8849 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
8851 { zAix_SysmachineName, zAix_SysmachineList,
8852 apzAix_SysmachineMachs,
8853 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8854 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8856 { zAix_Syswait_2Name, zAix_Syswait_2List,
8857 apzAix_Syswait_2Machs,
8858 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8859 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8861 { zAix_VolatileName, zAix_VolatileList,
8862 apzAix_VolatileMachs,
8863 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8864 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8866 { zAlpha___AssertName, zAlpha___AssertList,
8867 apzAlpha___AssertMachs,
8868 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8869 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8871 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8872 apzAlpha___Extern_PrefixMachs,
8873 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8874 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8876 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8877 apzAlpha___Extern_Prefix_StandardsMachs,
8878 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8879 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8881 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8882 apzAlpha___Extern_Prefix_Sys_StatMachs,
8883 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8884 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8886 { zAlpha_AssertName, zAlpha_AssertList,
8887 apzAlpha_AssertMachs,
8888 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8889 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8891 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8892 apzAlpha_Bad_LvalMachs,
8893 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8894 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8896 { zAlpha_GetoptName, zAlpha_GetoptList,
8897 apzAlpha_GetoptMachs,
8898 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8899 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8901 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
8902 apzAlpha_If_SemicolonMachs,
8903 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8904 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
8906 { zAlpha_ParensName, zAlpha_ParensList,
8907 apzAlpha_ParensMachs,
8908 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8909 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8911 { zAlpha_PthreadName, zAlpha_PthreadList,
8912 apzAlpha_PthreadMachs,
8913 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8914 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8916 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8917 apzAlpha_Pthread_GccMachs,
8918 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8919 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8921 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8922 apzAlpha_Pthread_InitMachs,
8923 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8924 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8926 { zAlpha_SbrkName, zAlpha_SbrkList,
8928 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8929 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8931 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8932 apzAvoid_Bool_DefineMachs,
8933 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8934 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8936 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8937 apzAvoid_Bool_TypeMachs,
8938 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8939 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8941 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8942 apzAvoid_Wchar_T_TypeMachs,
8943 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8944 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8946 { zBad_Struct_TermName, zBad_Struct_TermList,
8947 apzBad_Struct_TermMachs,
8948 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8949 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8951 { zBadquoteName, zBadquoteList,
8953 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8954 aBadquoteTests, apzBadquotePatch, 0 },
8956 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8957 apzBroken_Assert_StdioMachs,
8958 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8959 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8961 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8962 apzBroken_Assert_StdlibMachs,
8963 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8964 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8966 { zBroken_CabsName, zBroken_CabsList,
8967 apzBroken_CabsMachs,
8968 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8969 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8971 { zBroken_NanName, zBroken_NanList,
8973 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8974 aBroken_NanTests, apzBroken_NanPatch, 0 },
8976 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8977 apzBsd_Stdio_Attrs_ConflictMachs,
8978 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8979 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8981 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8982 apzCtrl_Quotes_DefMachs,
8983 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8984 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8986 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8987 apzCtrl_Quotes_UseMachs,
8988 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8989 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8991 { zCxx_UnreadyName, zCxx_UnreadyList,
8992 apzCxx_UnreadyMachs,
8993 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8994 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8996 { zDarwin_ExterncName, zDarwin_ExterncList,
8997 apzDarwin_ExterncMachs,
8998 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8999 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9001 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9002 apzDarwin_Gcc4_BreakageMachs,
9003 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9004 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9006 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9007 apzDarwin_Private_ExternMachs,
9008 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9009 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9011 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
9012 apzDarwin_Stdint_1Machs,
9013 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9014 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
9016 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
9017 apzDarwin_Stdint_2Machs,
9018 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9019 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
9021 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
9022 apzDarwin_Stdint_3Machs,
9023 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9024 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
9026 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
9027 apzDarwin_Stdint_4Machs,
9028 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9029 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
9031 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
9032 apzDarwin_Stdint_5Machs,
9033 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9034 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
9036 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
9037 apzDarwin_Stdint_6Machs,
9038 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9039 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
9041 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
9042 apzDarwin_Stdint_7Machs,
9043 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9044 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
9046 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9047 apzDec_Intern_AsmMachs,
9048 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9049 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9051 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9052 apzDjgpp_Wchar_HMachs,
9053 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9054 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9056 { zEcd_CursorName, zEcd_CursorList,
9058 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9059 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9061 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9062 apzFreebsd_Gcc3_BreakageMachs,
9063 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9064 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9066 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9067 apzFreebsd_Gcc4_BreakageMachs,
9068 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9069 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9071 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9072 apzGlibc_C99_Inline_1Machs,
9073 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9074 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9076 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9077 apzGlibc_C99_Inline_1aMachs,
9078 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9079 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9081 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9082 apzGlibc_C99_Inline_2Machs,
9083 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9084 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9086 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9087 apzGlibc_C99_Inline_3Machs,
9088 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9089 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9091 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9092 apzGlibc_C99_Inline_4Machs,
9093 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9094 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9096 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9097 apzGlibc_Mutex_InitMachs,
9098 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9099 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9101 { zGlibc_StdintName, zGlibc_StdintList,
9102 apzGlibc_StdintMachs,
9103 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9104 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
9106 { zGlibc_StrncpyName, zGlibc_StrncpyList,
9107 apzGlibc_StrncpyMachs,
9108 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9109 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
9111 { zGlibc_TgmathName, zGlibc_TgmathList,
9112 apzGlibc_TgmathMachs,
9113 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9114 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
9116 { zGnu_TypesName, zGnu_TypesList,
9118 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9119 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9121 { zHp_InlineName, zHp_InlineList,
9123 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9124 aHp_InlineTests, apzHp_InlinePatch, 0 },
9126 { zHp_SysfileName, zHp_SysfileList,
9128 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9129 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9131 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9132 apzHppa_Hpux_Fp_MacrosMachs,
9133 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9134 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9136 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9137 apzHpux10_Cpp_Pow_InlineMachs,
9138 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9139 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9141 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9142 apzHpux11_Cpp_Pow_InlineMachs,
9143 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9144 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9146 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9147 apzHpux10_Ctype_Declarations1Machs,
9148 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9149 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9151 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9152 apzHpux10_Ctype_Declarations2Machs,
9153 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9154 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9156 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9157 apzHpux10_Stdio_DeclarationsMachs,
9158 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9159 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9161 { zHpux11_AbsName, zHpux11_AbsList,
9163 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9164 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9166 { zHpux11_FabsfName, zHpux11_FabsfList,
9167 apzHpux11_FabsfMachs,
9168 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9169 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9171 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9172 apzHpux11_Pthread_ConstMachs,
9173 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9174 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9176 { zHpux11_Size_TName, zHpux11_Size_TList,
9177 apzHpux11_Size_TMachs,
9178 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9179 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9181 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9182 apzHpux11_SnprintfMachs,
9183 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9184 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9186 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9187 apzHpux11_VsnprintfMachs,
9188 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9189 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9191 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9192 apzHpux8_Bogus_InlinesMachs,
9193 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9194 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9196 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9197 apzHpux_Ctype_MacrosMachs,
9198 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9199 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9201 { zHpux_HtonlName, zHpux_HtonlList,
9203 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9204 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9206 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9207 apzHpux_Long_DoubleMachs,
9208 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9209 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9211 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
9212 apzHpux_Long_Double_2Machs,
9213 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9214 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
9216 { zHpux_SystimeName, zHpux_SystimeList,
9217 apzHpux_SystimeMachs,
9218 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9219 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9221 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9222 apzHpux_Spu_InfoMachs,
9223 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9224 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9226 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9227 apzHpux11_Extern_SendfileMachs,
9228 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9229 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9231 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9232 apzHpux11_Extern_SendpathMachs,
9233 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9234 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9236 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9237 apzHpux_Extern_ErrnoMachs,
9238 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9239 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9241 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9242 apzHpux_Pthread_InitializersMachs,
9243 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9244 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9246 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
9247 apzHpux_C99_IntptrMachs,
9248 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9249 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
9251 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
9252 apzHpux_C99_InttypesMachs,
9253 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9254 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
9256 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
9257 apzHpux_C99_Inttypes2Machs,
9258 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9259 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
9261 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
9262 apzHpux_Stdint_Least_FastMachs,
9263 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9264 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
9266 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
9267 apzHpux_Inttype_Int8_TMachs,
9268 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9269 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
9271 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
9272 apzHpux_Imaginary_IMachs,
9273 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9274 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
9276 { zHuge_Val_HexName, zHuge_Val_HexList,
9277 apzHuge_Val_HexMachs,
9278 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9279 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9281 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9282 apzHuge_Valf_HexMachs,
9283 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9284 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9286 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9287 apzHuge_Vall_HexMachs,
9288 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9289 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9291 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9292 apzInt_Abort_Free_And_ExitMachs,
9293 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9294 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9296 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9297 apzIo_Quotes_DefMachs,
9298 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9299 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9301 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9302 apzIo_Quotes_UseMachs,
9303 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9304 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9306 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9307 apzIp_Missing_SemiMachs,
9308 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9309 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9311 { zIrix___RestrictName, zIrix___RestrictList,
9312 apzIrix___RestrictMachs,
9313 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9314 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9316 { zIrix___Generic1Name, zIrix___Generic1List,
9317 apzIrix___Generic1Machs,
9318 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9319 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9321 { zIrix___Generic2Name, zIrix___Generic2List,
9322 apzIrix___Generic2Machs,
9323 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9324 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9326 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9327 apzIrix_Asm_ApostropheMachs,
9328 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9329 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9331 { zIrix_ComplexName, zIrix_ComplexList,
9332 apzIrix_ComplexMachs,
9333 IRIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
9334 aIrix_ComplexTests, apzIrix_ComplexPatch, 0 },
9336 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9337 apzIrix_Limits_ConstMachs,
9338 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9339 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9341 { zIrix_Pthread_InitName, zIrix_Pthread_InitList,
9342 apzIrix_Pthread_InitMachs,
9343 IRIX_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9344 aIrix_Pthread_InitTests, apzIrix_Pthread_InitPatch, 0 },
9346 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9347 apzIrix_Socklen_TMachs,
9348 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9349 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9351 { zIrix_Stdint_C99_ModeName, zIrix_Stdint_C99_ModeList,
9352 apzIrix_Stdint_C99_ModeMachs,
9353 IRIX_STDINT_C99_MODE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9354 aIrix_Stdint_C99_ModeTests, apzIrix_Stdint_C99_ModePatch, 0 },
9356 { zIrix_Stdint_C99_TypesName, zIrix_Stdint_C99_TypesList,
9357 apzIrix_Stdint_C99_TypesMachs,
9358 IRIX_STDINT_C99_TYPES_TEST_CT, FD_MACH_ONLY,
9359 aIrix_Stdint_C99_TypesTests, apzIrix_Stdint_C99_TypesPatch, 0 },
9361 { zIrix_Stdint_C99_MacrosName, zIrix_Stdint_C99_MacrosList,
9362 apzIrix_Stdint_C99_MacrosMachs,
9363 IRIX_STDINT_C99_MACROS_TEST_CT, FD_MACH_ONLY,
9364 aIrix_Stdint_C99_MacrosTests, apzIrix_Stdint_C99_MacrosPatch, 0 },
9366 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9367 apzIrix_Stdio_Va_ListMachs,
9368 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9369 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9371 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9372 apzIrix_WcsftimeMachs,
9373 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9374 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9376 { zKandr_ConcatName, zKandr_ConcatList,
9377 apzKandr_ConcatMachs,
9378 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9379 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9381 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9382 apzLinux_Ia64_UcontextMachs,
9383 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9384 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9386 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9387 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9388 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9389 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9391 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9392 apzLynxos_Missing_PutenvMachs,
9393 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9394 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9396 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9397 apzMachine_Ansi_H_Va_ListMachs,
9398 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9399 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9401 { zMachine_NameName, zMachine_NameList,
9402 apzMachine_NameMachs,
9403 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9404 aMachine_NameTests, apzMachine_NamePatch, 0 },
9406 { zMath_ExceptionName, zMath_ExceptionList,
9407 apzMath_ExceptionMachs,
9408 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9409 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9411 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9412 apzMath_Huge_Val_From_Dbl_MaxMachs,
9413 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9414 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9416 { zNested_Auth_DesName, zNested_Auth_DesList,
9417 apzNested_Auth_DesMachs,
9418 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9419 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9421 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9422 apzNetbsd_C99_Inline_1Machs,
9423 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9424 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9426 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9427 apzNetbsd_C99_Inline_2Machs,
9428 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9429 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9431 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9432 apzNetbsd_Extra_SemicolonMachs,
9433 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9434 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9436 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
9437 apzNewlib_Stdint_1Machs,
9438 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9439 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
9441 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
9442 apzNewlib_Stdint_2Machs,
9443 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9444 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
9446 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9447 apzNext_Math_PrefixMachs,
9448 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9449 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9451 { zNext_TemplateName, zNext_TemplateList,
9452 apzNext_TemplateMachs,
9453 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9454 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9456 { zNext_VolitileName, zNext_VolitileList,
9457 apzNext_VolitileMachs,
9458 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9459 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9461 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9462 apzNext_Wait_UnionMachs,
9463 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9464 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9466 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9467 apzNodeent_SyntaxMachs,
9468 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9469 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9471 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
9472 apzOpenbsd_Null_DefinitionMachs,
9473 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9474 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
9476 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9477 apzObstack_Lvalue_CastMachs,
9478 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9479 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9481 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
9482 apzOpenbsd_Va_StartMachs,
9483 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9484 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
9486 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9487 apzOsf_Namespace_AMachs,
9488 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9489 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9491 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9492 apzOsf_Namespace_CMachs,
9493 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9494 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9496 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9497 apzPthread_Incomplete_Struct_ArgumentMachs,
9498 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9499 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9501 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9502 apzRead_Ret_TypeMachs,
9503 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9504 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9506 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9507 apzRpc_Xdr_Lvalue_Cast_AMachs,
9508 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9509 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9511 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9512 apzRpc_Xdr_Lvalue_Cast_BMachs,
9513 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9514 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9516 { zRs6000_DoubleName, zRs6000_DoubleList,
9517 apzRs6000_DoubleMachs,
9518 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9519 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9521 { zRs6000_FchmodName, zRs6000_FchmodList,
9522 apzRs6000_FchmodMachs,
9523 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9524 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9526 { zRs6000_ParamName, zRs6000_ParamList,
9527 apzRs6000_ParamMachs,
9528 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9529 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9531 { zSolaris___RestrictName, zSolaris___RestrictList,
9532 apzSolaris___RestrictMachs,
9533 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9534 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
9536 { zSolaris_ComplexName, zSolaris_ComplexList,
9537 apzSolaris_ComplexMachs,
9538 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
9539 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
9541 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
9542 apzSolaris_Complex_CxxMachs,
9543 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
9544 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
9546 { zSolaris_Cond_InitName, zSolaris_Cond_InitList,
9547 apzSolaris_Cond_InitMachs,
9548 SOLARIS_COND_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9549 aSolaris_Cond_InitTests, apzSolaris_Cond_InitPatch, 0 },
9551 { zSolaris_Math_1Name, zSolaris_Math_1List,
9552 apzSolaris_Math_1Machs,
9553 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9554 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9556 { zSolaris_Math_2Name, zSolaris_Math_2List,
9557 apzSolaris_Math_2Machs,
9558 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9559 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9561 { zSolaris_Math_3Name, zSolaris_Math_3List,
9562 apzSolaris_Math_3Machs,
9563 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9564 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9566 { zSolaris_Math_4Name, zSolaris_Math_4List,
9567 apzSolaris_Math_4Machs,
9568 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9569 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9571 { zSolaris_Math_8Name, zSolaris_Math_8List,
9572 apzSolaris_Math_8Machs,
9573 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9574 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9576 { zSolaris_Math_9Name, zSolaris_Math_9List,
9577 apzSolaris_Math_9Machs,
9578 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9579 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9581 { zSolaris_Math_10Name, zSolaris_Math_10List,
9582 apzSolaris_Math_10Machs,
9583 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9584 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
9586 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9587 apzSolaris_Mutex_Init_2Machs,
9588 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9589 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9591 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9592 apzSolaris_Rwlock_Init_1Machs,
9593 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9594 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9596 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9597 apzSolaris_Once_Init_1Machs,
9598 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9599 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9601 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9602 apzSolaris_Once_Init_2Machs,
9603 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9604 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9606 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
9607 apzSolaris_Int_ConstMachs,
9608 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9609 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
9611 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
9612 apzSolaris_Int_Limits_1Machs,
9613 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9614 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
9616 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
9617 apzSolaris_Int_Limits_2Machs,
9618 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9619 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
9621 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
9622 apzSolaris_Int_Limits_3Machs,
9623 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9624 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
9626 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
9627 apzSolaris_Int_TypesMachs,
9628 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9629 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
9631 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9632 apzSolaris_Stdio_TagMachs,
9633 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9634 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9636 { zSolaris_Sys_Va_ListName, zSolaris_Sys_Va_ListList,
9637 apzSolaris_Sys_Va_ListMachs,
9638 SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9639 aSolaris_Sys_Va_ListTests, apzSolaris_Sys_Va_ListPatch, 0 },
9641 { zStatsswtchName, zStatsswtchList,
9643 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9644 aStatsswtchTests, apzStatsswtchPatch, 0 },
9646 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9647 apzStdio_Stdarg_HMachs,
9648 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9649 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9651 { zStdio_Va_ListName, zStdio_Va_ListList,
9652 apzStdio_Va_ListMachs,
9653 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9654 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9656 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9657 apzStdio_Va_List_ClientsMachs,
9658 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9659 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9661 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9662 apzStrict_Ansi_NotMachs,
9663 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9664 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9666 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9667 apzStrict_Ansi_Not_CtdMachs,
9668 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9669 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9671 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9672 apzStrict_Ansi_OnlyMachs,
9673 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9674 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9676 { zStruct_FileName, zStruct_FileList,
9677 apzStruct_FileMachs,
9678 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9679 aStruct_FileTests, apzStruct_FilePatch, 0 },
9681 { zStruct_SockaddrName, zStruct_SockaddrList,
9682 apzStruct_SockaddrMachs,
9683 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9684 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9686 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9687 apzSun_Auth_ProtoMachs,
9688 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9689 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9691 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9692 apzSun_Bogus_IfdefMachs,
9693 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9694 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9696 { zSun_CatmacroName, zSun_CatmacroList,
9697 apzSun_CatmacroMachs,
9698 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9699 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9701 { zSun_MallocName, zSun_MallocList,
9703 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9704 aSun_MallocTests, apzSun_MallocPatch, 0 },
9706 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9707 apzSun_Rusers_SemiMachs,
9708 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9709 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9711 { zSun_SignalName, zSun_SignalList,
9713 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9714 aSun_SignalTests, apzSun_SignalPatch, 0 },
9716 { zSunos_StrlenName, zSunos_StrlenList,
9717 apzSunos_StrlenMachs,
9718 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9719 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9721 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9722 apzSvr4_Disable_OptMachs,
9723 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9724 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9726 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9727 apzSvr4_GetcwdMachs,
9728 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9729 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9731 { zSvr4_ProfilName, zSvr4_ProfilList,
9732 apzSvr4_ProfilMachs,
9733 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9734 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9736 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9737 apzSvr4_Sighandler_TypeMachs,
9738 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9739 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9741 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9742 apzSvr4_Undeclared_GetrngeMachs,
9743 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9744 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9746 { zSysv68_StringName, zSysv68_StringList,
9747 apzSysv68_StringMachs,
9748 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9749 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9751 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9752 apzSysz_Stdlib_For_SunMachs,
9753 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9754 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9756 { zThread_KeywordName, zThread_KeywordList,
9757 apzThread_KeywordMachs,
9758 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9759 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9761 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9762 apzTinfo_CplusplusMachs,
9763 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9764 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9766 { zUltrix_ConstName, zUltrix_ConstList,
9767 apzUltrix_ConstMachs,
9768 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9769 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9771 { zUltrix_Const2Name, zUltrix_Const2List,
9772 apzUltrix_Const2Machs,
9773 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9774 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9776 { zVa_I960_MacroName, zVa_I960_MacroList,
9777 apzVa_I960_MacroMachs,
9778 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9779 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9781 { zVoid_NullName, zVoid_NullList,
9783 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9784 aVoid_NullTests, apzVoid_NullPatch, 0 },
9786 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9787 apzVxworks_Gcc_ProblemMachs,
9788 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9789 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9791 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9792 apzVxworks_Needs_VxtypesMachs,
9793 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9794 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9796 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9797 apzVxworks_Needs_VxworksMachs,
9798 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9799 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9801 { zVxworks_TimeName, zVxworks_TimeList,
9802 apzVxworks_TimeMachs,
9803 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9804 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9806 { zX11_ClassName, zX11_ClassList,
9808 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9809 aX11_ClassTests, apzX11_ClassPatch, 0 },
9811 { zX11_Class_UsageName, zX11_Class_UsageList,
9812 apzX11_Class_UsageMachs,
9813 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9814 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9816 { zX11_NewName, zX11_NewList,
9818 X11_NEW_TEST_CT, FD_MACH_ONLY,
9819 aX11_NewTests, apzX11_NewPatch, 0 },
9821 { zX11_SprintfName, zX11_SprintfList,
9822 apzX11_SprintfMachs,
9823 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9824 aX11_SprintfTests, apzX11_SprintfPatch, 0 }