1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Friday July 3, 2009 at 10:27:01 PM CEST
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Fri Jul 3 22:27:01 CEST 2009
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 196 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_Pthread fix
490 tSCC zAix_PthreadName[] =
494 * File name selection pattern
496 tSCC zAix_PthreadList[] =
499 * Machine/OS name selection pattern
501 #define apzAix_PthreadMachs (const char**)NULL
504 * content selection pattern - do fix if pattern found
506 tSCC zAix_PthreadSelect0[] =
507 "(#define [A-Za-z_0-9]+)(\\\\\n\
511 #define AIX_PTHREAD_TEST_CT 1
512 static tTestDesc aAix_PthreadTests[] = {
513 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
516 * Fix Command Arguments for Aix_Pthread
518 static const char* apzAix_PthreadPatch[] = {
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525 * Description of Aix_Sysmachine fix
527 tSCC zAix_SysmachineName[] =
531 * File name selection pattern
533 tSCC zAix_SysmachineList[] =
536 * Machine/OS name selection pattern
538 #define apzAix_SysmachineMachs (const char**)NULL
541 * content selection pattern - do fix if pattern found
543 tSCC zAix_SysmachineSelect0[] =
546 #define AIX_SYSMACHINE_TEST_CT 1
547 static tTestDesc aAix_SysmachineTests[] = {
548 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
551 * Fix Command Arguments for Aix_Sysmachine
553 static const char* apzAix_SysmachinePatch[] = {
558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
560 * Description of Aix_Syswait_2 fix
562 tSCC zAix_Syswait_2Name[] =
566 * File name selection pattern
568 tSCC zAix_Syswait_2List[] =
571 * Machine/OS name selection pattern
573 #define apzAix_Syswait_2Machs (const char**)NULL
576 * content selection pattern - do fix if pattern found
578 tSCC zAix_Syswait_2Select0[] =
579 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
581 #define AIX_SYSWAIT_2_TEST_CT 1
582 static tTestDesc aAix_Syswait_2Tests[] = {
583 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
586 * Fix Command Arguments for Aix_Syswait_2
588 static const char* apzAix_Syswait_2Patch[] = {
593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
595 * Description of Aix_Volatile fix
597 tSCC zAix_VolatileName[] =
601 * File name selection pattern
603 tSCC zAix_VolatileList[] =
606 * Machine/OS name selection pattern
608 #define apzAix_VolatileMachs (const char**)NULL
611 * content selection pattern - do fix if pattern found
613 tSCC zAix_VolatileSelect0[] =
614 "typedef volatile int sig_atomic_t";
616 #define AIX_VOLATILE_TEST_CT 1
617 static tTestDesc aAix_VolatileTests[] = {
618 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
621 * Fix Command Arguments for Aix_Volatile
623 static const char* apzAix_VolatilePatch[] = {
625 "typedef int sig_atomic_t",
628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
630 * Description of Alpha___Assert fix
632 tSCC zAlpha___AssertName[] =
636 * File name selection pattern
638 tSCC zAlpha___AssertList[] =
641 * Machine/OS name selection pattern
643 #define apzAlpha___AssertMachs (const char**)NULL
646 * content selection pattern - do fix if pattern found
648 tSCC zAlpha___AssertSelect0[] =
649 "__assert\\(char \\*, char \\*, int\\)";
651 #define ALPHA___ASSERT_TEST_CT 1
652 static tTestDesc aAlpha___AssertTests[] = {
653 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
656 * Fix Command Arguments for Alpha___Assert
658 static const char* apzAlpha___AssertPatch[] = {
660 "__assert(const char *, const char *, int)",
663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
665 * Description of Alpha___Extern_Prefix fix
667 tSCC zAlpha___Extern_PrefixName[] =
668 "alpha___extern_prefix";
671 * File name selection pattern
673 #define zAlpha___Extern_PrefixList (char*)NULL
675 * Machine/OS name selection pattern
677 tSCC* apzAlpha___Extern_PrefixMachs[] = {
682 * content selection pattern - do fix if pattern found
684 tSCC zAlpha___Extern_PrefixSelect0[] =
685 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
686 (#[ \t]*pragma[ \t]*extern_prefix.*)";
688 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
689 static tTestDesc aAlpha___Extern_PrefixTests[] = {
690 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
693 * Fix Command Arguments for Alpha___Extern_Prefix
695 static const char* apzAlpha___Extern_PrefixPatch[] = {
697 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
703 * Description of Alpha___Extern_Prefix_Standards fix
705 tSCC zAlpha___Extern_Prefix_StandardsName[] =
706 "alpha___extern_prefix_standards";
709 * File name selection pattern
711 tSCC zAlpha___Extern_Prefix_StandardsList[] =
714 * Machine/OS name selection pattern
716 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
721 * content selection pattern - do fix if pattern found
723 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
724 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
726 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
727 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
728 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
731 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
733 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
735 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
740 * Description of Alpha___Extern_Prefix_Sys_Stat fix
742 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
743 "alpha___extern_prefix_sys_stat";
746 * File name selection pattern
748 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
749 "sys/stat.h\0sys/mount.h\0";
751 * Machine/OS name selection pattern
753 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
758 * content selection pattern - do fix if pattern found
760 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
761 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
763 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
764 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
765 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
768 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
770 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
772 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
777 * Description of Alpha_Assert fix
779 tSCC zAlpha_AssertName[] =
783 * File name selection pattern
785 tSCC zAlpha_AssertList[] =
788 * Machine/OS name selection pattern
790 #define apzAlpha_AssertMachs (const char**)NULL
793 * content selection pattern - do fix if pattern found
795 tSCC zAlpha_AssertSelect0[] =
796 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
798 #define ALPHA_ASSERT_TEST_CT 1
799 static tTestDesc aAlpha_AssertTests[] = {
800 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
803 * Fix Command Arguments for Alpha_Assert
805 static const char* apzAlpha_AssertPatch[] = {
810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
812 * Description of Alpha_Bad_Lval fix
814 tSCC zAlpha_Bad_LvalName[] =
818 * File name selection pattern
820 #define zAlpha_Bad_LvalList (char*)NULL
822 * Machine/OS name selection pattern
824 tSCC* apzAlpha_Bad_LvalMachs[] = {
829 * content selection pattern - do fix if pattern found
831 tSCC zAlpha_Bad_LvalSelect0[] =
832 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
834 #define ALPHA_BAD_LVAL_TEST_CT 1
835 static tTestDesc aAlpha_Bad_LvalTests[] = {
836 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
839 * Fix Command Arguments for Alpha_Bad_Lval
841 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
842 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
847 * Description of Alpha_Getopt fix
849 tSCC zAlpha_GetoptName[] =
853 * File name selection pattern
855 tSCC zAlpha_GetoptList[] =
856 "stdio.h\0stdlib.h\0";
858 * Machine/OS name selection pattern
860 #define apzAlpha_GetoptMachs (const char**)NULL
863 * content selection pattern - do fix if pattern found
865 tSCC zAlpha_GetoptSelect0[] =
866 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
868 #define ALPHA_GETOPT_TEST_CT 1
869 static tTestDesc aAlpha_GetoptTests[] = {
870 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
873 * Fix Command Arguments for Alpha_Getopt
875 static const char* apzAlpha_GetoptPatch[] = {
877 "getopt(int, char *const[], const char *)",
880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
882 * Description of Alpha_If_Semicolon fix
884 tSCC zAlpha_If_SemicolonName[] =
885 "alpha_if_semicolon";
888 * File name selection pattern
890 tSCC zAlpha_If_SemicolonList[] =
893 * Machine/OS name selection pattern
895 #define apzAlpha_If_SemicolonMachs (const char**)NULL
898 * content selection pattern - do fix if pattern found
900 tSCC zAlpha_If_SemicolonSelect0[] =
901 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
903 #define ALPHA_IF_SEMICOLON_TEST_CT 1
904 static tTestDesc aAlpha_If_SemicolonTests[] = {
905 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
908 * Fix Command Arguments for Alpha_If_Semicolon
910 static const char* apzAlpha_If_SemicolonPatch[] = {
912 "struct sockaddr vmif_paddr;\t/*",
915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
917 * Description of Alpha_Parens fix
919 tSCC zAlpha_ParensName[] =
923 * File name selection pattern
925 tSCC zAlpha_ParensList[] =
928 * Machine/OS name selection pattern
930 #define apzAlpha_ParensMachs (const char**)NULL
933 * content selection pattern - do fix if pattern found
935 tSCC zAlpha_ParensSelect0[] =
936 "#ifndef\\(__mips64\\)";
938 #define ALPHA_PARENS_TEST_CT 1
939 static tTestDesc aAlpha_ParensTests[] = {
940 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
943 * Fix Command Arguments for Alpha_Parens
945 static const char* apzAlpha_ParensPatch[] = {
950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
952 * Description of Alpha_Pthread fix
954 tSCC zAlpha_PthreadName[] =
958 * File name selection pattern
960 tSCC zAlpha_PthreadList[] =
963 * Machine/OS name selection pattern
965 tSCC* apzAlpha_PthreadMachs[] = {
970 * content selection pattern - do fix if pattern found
972 tSCC zAlpha_PthreadSelect0[] =
973 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
974 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
976 #define ALPHA_PTHREAD_TEST_CT 1
977 static tTestDesc aAlpha_PthreadTests[] = {
978 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
981 * Fix Command Arguments for Alpha_Pthread
983 static const char* apzAlpha_PthreadPatch[] = {
985 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
991 * Description of Alpha_Pthread_Gcc fix
993 tSCC zAlpha_Pthread_GccName[] =
997 * File name selection pattern
999 tSCC zAlpha_Pthread_GccList[] =
1002 * Machine/OS name selection pattern
1004 tSCC* apzAlpha_Pthread_GccMachs[] = {
1006 (const char*)NULL };
1009 * content selection pattern - do fix if pattern found
1011 tSCC zAlpha_Pthread_GccSelect0[] =
1013 # error <pthread.h>: unrecognized compiler.";
1015 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1016 static tTestDesc aAlpha_Pthread_GccTests[] = {
1017 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1020 * Fix Command Arguments for Alpha_Pthread_Gcc
1022 static const char* apzAlpha_Pthread_GccPatch[] = {
1024 "#elif defined (__GNUC__)\n\
1025 # define _PTHREAD_ENV_GCC\n\
1029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1031 * Description of Alpha_Pthread_Init fix
1033 tSCC zAlpha_Pthread_InitName[] =
1034 "alpha_pthread_init";
1037 * File name selection pattern
1039 tSCC zAlpha_Pthread_InitList[] =
1042 * Machine/OS name selection pattern
1044 tSCC* apzAlpha_Pthread_InitMachs[] = {
1046 (const char*)NULL };
1049 * content selection pattern - do fix if pattern found
1051 tSCC zAlpha_Pthread_InitSelect0[] =
1052 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1054 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1055 static tTestDesc aAlpha_Pthread_InitTests[] = {
1056 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1059 * Fix Command Arguments for Alpha_Pthread_Init
1061 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1062 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1063 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1064 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1065 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1066 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1067 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1070 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1072 * Description of Alpha_Sbrk fix
1074 tSCC zAlpha_SbrkName[] =
1078 * File name selection pattern
1080 tSCC zAlpha_SbrkList[] =
1083 * Machine/OS name selection pattern
1085 #define apzAlpha_SbrkMachs (const char**)NULL
1088 * content selection pattern - do fix if pattern found
1090 tSCC zAlpha_SbrkSelect0[] =
1091 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1093 #define ALPHA_SBRK_TEST_CT 1
1094 static tTestDesc aAlpha_SbrkTests[] = {
1095 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1098 * Fix Command Arguments for Alpha_Sbrk
1100 static const char* apzAlpha_SbrkPatch[] = {
1105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1107 * Description of Alpha_Wchar fix
1109 tSCC zAlpha_WcharName[] =
1113 * File name selection pattern
1115 tSCC zAlpha_WcharList[] =
1118 * Machine/OS name selection pattern
1120 tSCC* apzAlpha_WcharMachs[] = {
1122 (const char*)NULL };
1125 * content selection pattern - do fix if pattern found
1127 tSCC zAlpha_WcharSelect0[] =
1128 "#define wcstok wcstok_r";
1130 #define ALPHA_WCHAR_TEST_CT 1
1131 static tTestDesc aAlpha_WcharTests[] = {
1132 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1135 * Fix Command Arguments for Alpha_Wchar
1137 static const char* apzAlpha_WcharPatch[] = { sed_cmd_z,
1138 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1139 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1144 * Description of Avoid_Bool_Define fix
1146 tSCC zAvoid_Bool_DefineName[] =
1147 "avoid_bool_define";
1150 * File name selection pattern
1152 tSCC zAvoid_Bool_DefineList[] =
1153 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1155 * Machine/OS name selection pattern
1157 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1160 * content selection pattern - do fix if pattern found
1162 tSCC zAvoid_Bool_DefineSelect0[] =
1163 "#[ \t]*define[ \t]+bool[ \t]";
1166 * content bypass pattern - skip fix if pattern found
1168 tSCC zAvoid_Bool_DefineBypass0[] =
1171 #define AVOID_BOOL_DEFINE_TEST_CT 2
1172 static tTestDesc aAvoid_Bool_DefineTests[] = {
1173 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1174 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1177 * Fix Command Arguments for Avoid_Bool_Define
1179 static const char* apzAvoid_Bool_DefinePatch[] = {
1181 "#ifndef __cplusplus\n\
1184 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1189 * Description of Avoid_Bool_Type fix
1191 tSCC zAvoid_Bool_TypeName[] =
1195 * File name selection pattern
1197 tSCC zAvoid_Bool_TypeList[] =
1198 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1200 * Machine/OS name selection pattern
1202 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1205 * content selection pattern - do fix if pattern found
1207 tSCC zAvoid_Bool_TypeSelect0[] =
1208 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1211 * content bypass pattern - skip fix if pattern found
1213 tSCC zAvoid_Bool_TypeBypass0[] =
1216 #define AVOID_BOOL_TYPE_TEST_CT 2
1217 static tTestDesc aAvoid_Bool_TypeTests[] = {
1218 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1219 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1222 * Fix Command Arguments for Avoid_Bool_Type
1224 static const char* apzAvoid_Bool_TypePatch[] = {
1226 "#ifndef __cplusplus\n\
1231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1233 * Description of Avoid_Wchar_T_Type fix
1235 tSCC zAvoid_Wchar_T_TypeName[] =
1236 "avoid_wchar_t_type";
1239 * File name selection pattern
1241 #define zAvoid_Wchar_T_TypeList (char*)NULL
1243 * Machine/OS name selection pattern
1245 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1248 * content selection pattern - do fix if pattern found
1250 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1251 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1254 * content bypass pattern - skip fix if pattern found
1256 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1258 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1260 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1261 "XFree86: xc/lib/X11/Xlib\\.h";
1263 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1264 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1265 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1266 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1267 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1268 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1271 * Fix Command Arguments for Avoid_Wchar_T_Type
1273 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1275 "#ifndef __cplusplus\n\
1280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1282 * Description of Bad_Struct_Term fix
1284 tSCC zBad_Struct_TermName[] =
1288 * File name selection pattern
1290 tSCC zBad_Struct_TermList[] =
1293 * Machine/OS name selection pattern
1295 #define apzBad_Struct_TermMachs (const char**)NULL
1298 * content selection pattern - do fix if pattern found
1300 tSCC zBad_Struct_TermSelect0[] =
1301 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1303 #define BAD_STRUCT_TERM_TEST_CT 1
1304 static tTestDesc aBad_Struct_TermTests[] = {
1305 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1308 * Fix Command Arguments for Bad_Struct_Term
1310 static const char* apzBad_Struct_TermPatch[] = {
1315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1317 * Description of Badquote fix
1319 tSCC zBadquoteName[] =
1323 * File name selection pattern
1325 tSCC zBadquoteList[] =
1326 "sundev/vuid_event.h\0";
1328 * Machine/OS name selection pattern
1330 #define apzBadquoteMachs (const char**)NULL
1333 * content selection pattern - do fix if pattern found
1335 tSCC zBadquoteSelect0[] =
1338 #define BADQUOTE_TEST_CT 1
1339 static tTestDesc aBadquoteTests[] = {
1340 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1343 * Fix Command Arguments for Badquote
1345 static const char* apzBadquotePatch[] = {
1350 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1352 * Description of Broken_Assert_Stdio fix
1354 tSCC zBroken_Assert_StdioName[] =
1355 "broken_assert_stdio";
1358 * File name selection pattern
1360 tSCC zBroken_Assert_StdioList[] =
1363 * Machine/OS name selection pattern
1365 #define apzBroken_Assert_StdioMachs (const char**)NULL
1368 * content selection pattern - do fix if pattern found
1370 tSCC zBroken_Assert_StdioSelect0[] =
1374 * content bypass pattern - skip fix if pattern found
1376 tSCC zBroken_Assert_StdioBypass0[] =
1377 "include.*stdio\\.h";
1379 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1380 static tTestDesc aBroken_Assert_StdioTests[] = {
1381 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1382 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1385 * Fix Command Arguments for Broken_Assert_Stdio
1387 static const char* apzBroken_Assert_StdioPatch[] = {
1389 "#include <stdio.h>\n",
1392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1394 * Description of Broken_Assert_Stdlib fix
1396 tSCC zBroken_Assert_StdlibName[] =
1397 "broken_assert_stdlib";
1400 * File name selection pattern
1402 tSCC zBroken_Assert_StdlibList[] =
1405 * Machine/OS name selection pattern
1407 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1410 * content selection pattern - do fix if pattern found
1412 tSCC zBroken_Assert_StdlibSelect0[] =
1413 "exit *\\(|abort *\\(";
1416 * content bypass pattern - skip fix if pattern found
1418 tSCC zBroken_Assert_StdlibBypass0[] =
1419 "include.*stdlib\\.h";
1421 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1422 static tTestDesc aBroken_Assert_StdlibTests[] = {
1423 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1424 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1427 * Fix Command Arguments for Broken_Assert_Stdlib
1429 static const char* apzBroken_Assert_StdlibPatch[] = {
1431 "#ifdef __cplusplus\n\
1432 #include <stdlib.h>\n\
1436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1438 * Description of Broken_Cabs fix
1440 tSCC zBroken_CabsName[] =
1444 * File name selection pattern
1446 tSCC zBroken_CabsList[] =
1447 "math.h\0architecture/*/math.h\0";
1449 * Machine/OS name selection pattern
1451 #define apzBroken_CabsMachs (const char**)NULL
1454 * content selection pattern - do fix if pattern found
1456 tSCC zBroken_CabsSelect0[] =
1457 "^extern[ \t]+double[ \t]+cabs";
1459 #define BROKEN_CABS_TEST_CT 1
1460 static tTestDesc aBroken_CabsTests[] = {
1461 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1464 * Fix Command Arguments for Broken_Cabs
1466 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1467 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1468 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1473 * Description of Broken_Nan fix
1475 tSCC zBroken_NanName[] =
1479 * File name selection pattern
1481 tSCC zBroken_NanList[] =
1482 "architecture/ppc/math.h\0architecture/*/math.h\0";
1484 * Machine/OS name selection pattern
1486 #define apzBroken_NanMachs (const char**)NULL
1489 * content selection pattern - do fix if pattern found
1491 tSCC zBroken_NanSelect0[] =
1492 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1495 * content bypass pattern - skip fix if pattern found
1497 tSCC zBroken_NanBypass0[] =
1500 #define BROKEN_NAN_TEST_CT 2
1501 static tTestDesc aBroken_NanTests[] = {
1502 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1503 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1506 * Fix Command Arguments for Broken_Nan
1508 static const char* apzBroken_NanPatch[] = {
1513 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1515 * Description of Bsd_Stdio_Attrs_Conflict fix
1517 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1518 "bsd_stdio_attrs_conflict";
1521 * File name selection pattern
1523 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1526 * Machine/OS name selection pattern
1528 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1531 (const char*)NULL };
1534 * content selection pattern - do fix if pattern found
1536 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1537 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1539 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1540 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1541 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1544 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1546 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1548 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1549 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1550 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1555 * Description of Ctrl_Quotes_Def fix
1557 tSCC zCtrl_Quotes_DefName[] =
1561 * File name selection pattern
1563 #define zCtrl_Quotes_DefList (char*)NULL
1565 * Machine/OS name selection pattern
1567 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1570 * content selection pattern - do fix if pattern found
1572 tSCC zCtrl_Quotes_DefSelect0[] =
1573 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1575 #define CTRL_QUOTES_DEF_TEST_CT 1
1576 static tTestDesc aCtrl_Quotes_DefTests[] = {
1577 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1580 * Fix Command Arguments for Ctrl_Quotes_Def
1582 static const char* apzCtrl_Quotes_DefPatch[] = {
1587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1589 * Description of Ctrl_Quotes_Use fix
1591 tSCC zCtrl_Quotes_UseName[] =
1595 * File name selection pattern
1597 #define zCtrl_Quotes_UseList (char*)NULL
1599 * Machine/OS name selection pattern
1601 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1604 * content selection pattern - do fix if pattern found
1606 tSCC zCtrl_Quotes_UseSelect0[] =
1607 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1609 #define CTRL_QUOTES_USE_TEST_CT 1
1610 static tTestDesc aCtrl_Quotes_UseTests[] = {
1611 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1614 * Fix Command Arguments for Ctrl_Quotes_Use
1616 static const char* apzCtrl_Quotes_UsePatch[] = {
1621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1623 * Description of Cxx_Unready fix
1625 tSCC zCxx_UnreadyName[] =
1629 * File name selection pattern
1631 tSCC zCxx_UnreadyList[] =
1632 "sys/mman.h\0rpc/types.h\0";
1634 * Machine/OS name selection pattern
1636 #define apzCxx_UnreadyMachs (const char**)NULL
1639 * content selection pattern - do fix if pattern found
1641 tSCC zCxx_UnreadySelect0[] =
1645 * content bypass pattern - skip fix if pattern found
1647 tSCC zCxx_UnreadyBypass0[] =
1648 "\"C\"|__BEGIN_DECLS";
1650 #define CXX_UNREADY_TEST_CT 2
1651 static tTestDesc aCxx_UnreadyTests[] = {
1652 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1653 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1656 * Fix Command Arguments for Cxx_Unready
1658 static const char* apzCxx_UnreadyPatch[] = {
1660 "#ifdef __cplusplus\n\
1663 "#ifdef __cplusplus\n\
1668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1670 * Description of Darwin_Externc fix
1672 tSCC zDarwin_ExterncName[] =
1676 * File name selection pattern
1678 tSCC zDarwin_ExterncList[] =
1679 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1681 * Machine/OS name selection pattern
1683 tSCC* apzDarwin_ExterncMachs[] = {
1685 (const char*)NULL };
1688 * content bypass pattern - skip fix if pattern found
1690 tSCC zDarwin_ExterncBypass0[] =
1692 tSCC zDarwin_ExterncBypass1[] =
1695 #define DARWIN_EXTERNC_TEST_CT 2
1696 static tTestDesc aDarwin_ExterncTests[] = {
1697 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1698 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1701 * Fix Command Arguments for Darwin_Externc
1703 static const char* apzDarwin_ExterncPatch[] = {
1705 "#ifdef __cplusplus\n\
1708 "#ifdef __cplusplus\n\
1713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1715 * Description of Darwin_Gcc4_Breakage fix
1717 tSCC zDarwin_Gcc4_BreakageName[] =
1718 "darwin_gcc4_breakage";
1721 * File name selection pattern
1723 tSCC zDarwin_Gcc4_BreakageList[] =
1724 "AvailabilityMacros.h\0";
1726 * Machine/OS name selection pattern
1728 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1730 (const char*)NULL };
1733 * content selection pattern - do fix if pattern found
1735 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1736 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1738 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1739 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1740 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1743 * Fix Command Arguments for Darwin_Gcc4_Breakage
1745 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1747 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1750 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1752 * Description of Darwin_Private_Extern fix
1754 tSCC zDarwin_Private_ExternName[] =
1755 "darwin_private_extern";
1758 * File name selection pattern
1760 tSCC zDarwin_Private_ExternList[] =
1763 * Machine/OS name selection pattern
1765 tSCC* apzDarwin_Private_ExternMachs[] = {
1767 (const char*)NULL };
1770 * content selection pattern - do fix if pattern found
1772 tSCC zDarwin_Private_ExternSelect0[] =
1773 "__private_extern__ [a-z_]+ _dyld_";
1775 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1776 static tTestDesc aDarwin_Private_ExternTests[] = {
1777 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1780 * Fix Command Arguments for Darwin_Private_Extern
1782 static const char* apzDarwin_Private_ExternPatch[] = {
1785 "__private_extern__",
1788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1790 * Description of Darwin_Stdint_1 fix
1792 tSCC zDarwin_Stdint_1Name[] =
1796 * File name selection pattern
1798 tSCC zDarwin_Stdint_1List[] =
1801 * Machine/OS name selection pattern
1803 tSCC* apzDarwin_Stdint_1Machs[] = {
1805 (const char*)NULL };
1808 * content selection pattern - do fix if pattern found
1810 tSCC zDarwin_Stdint_1Select0[] =
1811 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
1812 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
1814 #define DARWIN_STDINT_1_TEST_CT 1
1815 static tTestDesc aDarwin_Stdint_1Tests[] = {
1816 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
1819 * Fix Command Arguments for Darwin_Stdint_1
1821 static const char* apzDarwin_Stdint_1Patch[] = {
1823 "#define UINT8_C(v)\tv\n\
1824 #define UINT16_C(v)\tv",
1827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1829 * Description of Darwin_Stdint_2 fix
1831 tSCC zDarwin_Stdint_2Name[] =
1835 * File name selection pattern
1837 tSCC zDarwin_Stdint_2List[] =
1840 * Machine/OS name selection pattern
1842 tSCC* apzDarwin_Stdint_2Machs[] = {
1844 (const char*)NULL };
1847 * content selection pattern - do fix if pattern found
1849 tSCC zDarwin_Stdint_2Select0[] =
1850 "#if __WORDSIZE == 64\n\
1851 #define INTPTR_MIN[ \t]+INT64_MIN\n\
1852 #define INTPTR_MAX[ \t]+INT64_MAX\n\
1854 #define INTPTR_MIN[ \t]+INT32_MIN\n\
1855 #define INTPTR_MAX[ \t]+INT32_MAX\n\
1858 #define DARWIN_STDINT_2_TEST_CT 1
1859 static tTestDesc aDarwin_Stdint_2Tests[] = {
1860 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
1863 * Fix Command Arguments for Darwin_Stdint_2
1865 static const char* apzDarwin_Stdint_2Patch[] = {
1867 "#if __WORDSIZE == 64\n\
1868 #define INTPTR_MAX 9223372036854775807L\n\
1869 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
1871 #define INTPTR_MAX 2147483647L\n\
1872 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
1876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1878 * Description of Darwin_Stdint_3 fix
1880 tSCC zDarwin_Stdint_3Name[] =
1884 * File name selection pattern
1886 tSCC zDarwin_Stdint_3List[] =
1889 * Machine/OS name selection pattern
1891 tSCC* apzDarwin_Stdint_3Machs[] = {
1893 (const char*)NULL };
1896 * content selection pattern - do fix if pattern found
1898 tSCC zDarwin_Stdint_3Select0[] =
1899 "#if __WORDSIZE == 64\n\
1900 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
1902 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
1905 #define DARWIN_STDINT_3_TEST_CT 1
1906 static tTestDesc aDarwin_Stdint_3Tests[] = {
1907 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
1910 * Fix Command Arguments for Darwin_Stdint_3
1912 static const char* apzDarwin_Stdint_3Patch[] = {
1914 "#if __WORDSIZE == 64\n\
1915 #define UINTPTR_MAX 18446744073709551615UL\n\
1917 #define UINTPTR_MAX 4294967295UL\n\
1921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1923 * Description of Darwin_Stdint_4 fix
1925 tSCC zDarwin_Stdint_4Name[] =
1929 * File name selection pattern
1931 tSCC zDarwin_Stdint_4List[] =
1934 * Machine/OS name selection pattern
1936 tSCC* apzDarwin_Stdint_4Machs[] = {
1938 (const char*)NULL };
1941 * content selection pattern - do fix if pattern found
1943 tSCC zDarwin_Stdint_4Select0[] =
1944 "#if __WORDSIZE == 64\n\
1945 #define SIZE_MAX[ \t]+UINT64_MAX\n\
1947 #define SIZE_MAX[ \t]+UINT32_MAX\n\
1950 #define DARWIN_STDINT_4_TEST_CT 1
1951 static tTestDesc aDarwin_Stdint_4Tests[] = {
1952 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
1955 * Fix Command Arguments for Darwin_Stdint_4
1957 static const char* apzDarwin_Stdint_4Patch[] = {
1959 "#if __WORDSIZE == 64\n\
1960 #define SIZE_MAX 18446744073709551615UL\n\
1962 #define SIZE_MAX 4294967295UL\n\
1966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1968 * Description of Dec_Intern_Asm fix
1970 tSCC zDec_Intern_AsmName[] =
1974 * File name selection pattern
1976 tSCC zDec_Intern_AsmList[] =
1979 * Machine/OS name selection pattern
1981 #define apzDec_Intern_AsmMachs (const char**)NULL
1982 #define DEC_INTERN_ASM_TEST_CT 0
1983 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1986 * Fix Command Arguments for Dec_Intern_Asm
1988 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
1989 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1991 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1997 * Description of Djgpp_Wchar_H fix
1999 tSCC zDjgpp_Wchar_HName[] =
2003 * File name selection pattern
2005 #define zDjgpp_Wchar_HList (char*)NULL
2007 * Machine/OS name selection pattern
2009 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2012 * content selection pattern - do fix if pattern found
2014 tSCC zDjgpp_Wchar_HSelect0[] =
2018 * content bypass pattern - skip fix if pattern found
2020 tSCC zDjgpp_Wchar_HBypass0[] =
2023 #define DJGPP_WCHAR_H_TEST_CT 2
2024 static tTestDesc aDjgpp_Wchar_HTests[] = {
2025 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2026 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2029 * Fix Command Arguments for Djgpp_Wchar_H
2031 static const char* apzDjgpp_Wchar_HPatch[] = {
2034 #include <sys/djtypes.h>",
2035 "#include <stddef.h>",
2038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2040 * Description of Ecd_Cursor fix
2042 tSCC zEcd_CursorName[] =
2046 * File name selection pattern
2048 tSCC zEcd_CursorList[] =
2049 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2051 * Machine/OS name selection pattern
2053 #define apzEcd_CursorMachs (const char**)NULL
2056 * content selection pattern - do fix if pattern found
2058 tSCC zEcd_CursorSelect0[] =
2061 #define ECD_CURSOR_TEST_CT 1
2062 static tTestDesc aEcd_CursorTests[] = {
2063 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2066 * Fix Command Arguments for Ecd_Cursor
2068 static const char* apzEcd_CursorPatch[] = {
2073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2075 * Description of Freebsd_Gcc3_Breakage fix
2077 tSCC zFreebsd_Gcc3_BreakageName[] =
2078 "freebsd_gcc3_breakage";
2081 * File name selection pattern
2083 tSCC zFreebsd_Gcc3_BreakageList[] =
2086 * Machine/OS name selection pattern
2088 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2090 (const char*)NULL };
2093 * content selection pattern - do fix if pattern found
2095 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2096 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2099 * content bypass pattern - skip fix if pattern found
2101 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2102 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2104 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2105 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2106 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2107 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2110 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2112 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2114 "%0 || __GNUC__ >= 3",
2117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2119 * Description of Freebsd_Gcc4_Breakage fix
2121 tSCC zFreebsd_Gcc4_BreakageName[] =
2122 "freebsd_gcc4_breakage";
2125 * File name selection pattern
2127 tSCC zFreebsd_Gcc4_BreakageList[] =
2130 * Machine/OS name selection pattern
2132 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2134 (const char*)NULL };
2137 * content selection pattern - do fix if pattern found
2139 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2140 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2142 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2143 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2144 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2147 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2149 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2151 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2156 * Description of Glibc_C99_Inline_1 fix
2158 tSCC zGlibc_C99_Inline_1Name[] =
2159 "glibc_c99_inline_1";
2162 * File name selection pattern
2164 tSCC zGlibc_C99_Inline_1List[] =
2165 "features.h\0*/features.h\0";
2167 * Machine/OS name selection pattern
2169 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2172 * content selection pattern - do fix if pattern found
2174 tSCC zGlibc_C99_Inline_1Select0[] =
2175 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2177 #define GLIBC_C99_INLINE_1_TEST_CT 1
2178 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2179 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2182 * Fix Command Arguments for Glibc_C99_Inline_1
2184 static const char* apzGlibc_C99_Inline_1Patch[] = {
2186 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2191 * Description of Glibc_C99_Inline_1a fix
2193 tSCC zGlibc_C99_Inline_1aName[] =
2194 "glibc_c99_inline_1a";
2197 * File name selection pattern
2199 tSCC zGlibc_C99_Inline_1aList[] =
2200 "features.h\0*/features.h\0";
2202 * Machine/OS name selection pattern
2204 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2207 * content selection pattern - do fix if pattern found
2209 tSCC zGlibc_C99_Inline_1aSelect0[] =
2210 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2211 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2213 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2214 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2215 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2218 * Fix Command Arguments for Glibc_C99_Inline_1a
2220 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2222 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2228 * Description of Glibc_C99_Inline_2 fix
2230 tSCC zGlibc_C99_Inline_2Name[] =
2231 "glibc_c99_inline_2";
2234 * File name selection pattern
2236 tSCC zGlibc_C99_Inline_2List[] =
2237 "sys/stat.h\0*/sys/stat.h\0";
2239 * Machine/OS name selection pattern
2241 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2244 * content selection pattern - do fix if pattern found
2246 tSCC zGlibc_C99_Inline_2Select0[] =
2247 "extern __inline__ int";
2249 #define GLIBC_C99_INLINE_2_TEST_CT 1
2250 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2251 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2254 * Fix Command Arguments for Glibc_C99_Inline_2
2256 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2257 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2260 __inline__ int \\1/",
2261 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2264 __inline__ int __REDIRECT\\1 (\\2/",
2265 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2273 * Description of Glibc_C99_Inline_3 fix
2275 tSCC zGlibc_C99_Inline_3Name[] =
2276 "glibc_c99_inline_3";
2279 * File name selection pattern
2281 tSCC zGlibc_C99_Inline_3List[] =
2282 "bits/string2.h\0*/bits/string2.h\0";
2284 * Machine/OS name selection pattern
2286 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2289 * content selection pattern - do fix if pattern found
2291 tSCC zGlibc_C99_Inline_3Select0[] =
2295 * content bypass pattern - skip fix if pattern found
2297 tSCC zGlibc_C99_Inline_3Bypass0[] =
2298 "__extern_inline|__GNU_STDC_INLINE__";
2300 #define GLIBC_C99_INLINE_3_TEST_CT 2
2301 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2302 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2303 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2306 * Fix Command Arguments for Glibc_C99_Inline_3
2308 static const char* apzGlibc_C99_Inline_3Patch[] = {
2310 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2311 "^# ifdef __cplusplus$",
2314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2316 * Description of Glibc_C99_Inline_4 fix
2318 tSCC zGlibc_C99_Inline_4Name[] =
2319 "glibc_c99_inline_4";
2322 * File name selection pattern
2324 tSCC zGlibc_C99_Inline_4List[] =
2325 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2327 * Machine/OS name selection pattern
2329 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2332 * content selection pattern - do fix if pattern found
2334 tSCC zGlibc_C99_Inline_4Select0[] =
2335 "(^| )extern __inline";
2338 * content bypass pattern - skip fix if pattern found
2340 tSCC zGlibc_C99_Inline_4Bypass0[] =
2341 "__extern_inline|__gnu_inline__";
2343 #define GLIBC_C99_INLINE_4_TEST_CT 2
2344 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2345 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2346 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2349 * Fix Command Arguments for Glibc_C99_Inline_4
2351 static const char* apzGlibc_C99_Inline_4Patch[] = {
2353 "%0 __attribute__ ((__gnu_inline__))",
2356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2358 * Description of Glibc_Mutex_Init fix
2360 tSCC zGlibc_Mutex_InitName[] =
2364 * File name selection pattern
2366 tSCC zGlibc_Mutex_InitList[] =
2369 * Machine/OS name selection pattern
2371 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2374 * content selection pattern - do fix if pattern found
2376 tSCC zGlibc_Mutex_InitSelect0[] =
2377 "\\{ *\\{ *0, *\\} *\\}";
2379 #define GLIBC_MUTEX_INIT_TEST_CT 1
2380 static tTestDesc aGlibc_Mutex_InitTests[] = {
2381 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2384 * Fix Command Arguments for Glibc_Mutex_Init
2386 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2387 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2389 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2391 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2392 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2393 "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/",
2394 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2395 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2400 * Description of Glibc_Stdint fix
2402 tSCC zGlibc_StdintName[] =
2406 * File name selection pattern
2408 tSCC zGlibc_StdintList[] =
2411 * Machine/OS name selection pattern
2413 #define apzGlibc_StdintMachs (const char**)NULL
2416 * content selection pattern - do fix if pattern found
2418 tSCC zGlibc_StdintSelect0[] =
2421 #define GLIBC_STDINT_TEST_CT 1
2422 static tTestDesc aGlibc_StdintTests[] = {
2423 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2426 * Fix Command Arguments for Glibc_Stdint
2428 static const char* apzGlibc_StdintPatch[] = {
2430 "# define UINT8_C(c)\tc\n\
2431 # define UINT16_C(c)\tc",
2432 "# define UINT8_C\\(c\\)\tc ## U\n\
2433 # define UINT16_C\\(c\\)\tc ## U",
2436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2438 * Description of Glibc_Tgmath fix
2440 tSCC zGlibc_TgmathName[] =
2444 * File name selection pattern
2446 tSCC zGlibc_TgmathList[] =
2449 * Machine/OS name selection pattern
2451 #define apzGlibc_TgmathMachs (const char**)NULL
2454 * content selection pattern - do fix if pattern found
2456 tSCC zGlibc_TgmathSelect0[] =
2457 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2460 * content bypass pattern - skip fix if pattern found
2462 tSCC zGlibc_TgmathBypass0[] =
2463 "__floating_type\\(type\\) \\\\\n\
2464 .*__builtin_classify_type";
2466 #define GLIBC_TGMATH_TEST_CT 2
2467 static tTestDesc aGlibc_TgmathTests[] = {
2468 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2469 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2472 * Fix Command Arguments for Glibc_Tgmath
2474 static const char* apzGlibc_TgmathPatch[] = {
2476 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2481 * Description of Gnu_Types fix
2483 tSCC zGnu_TypesName[] =
2487 * File name selection pattern
2489 tSCC zGnu_TypesList[] =
2490 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2492 * Machine/OS name selection pattern
2494 tSCC* apzGnu_TypesMachs[] = {
2495 "*-*-solaris2.1[0-9]*",
2496 (const char*)NULL };
2499 * content selection pattern - do fix if pattern found
2501 tSCC zGnu_TypesSelect0[] =
2502 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2505 * content bypass pattern - skip fix if pattern found
2507 tSCC zGnu_TypesBypass0[] =
2508 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2510 #define GNU_TYPES_TEST_CT 2
2511 static tTestDesc aGnu_TypesTests[] = {
2512 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2513 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2516 * Fix Command Arguments for Gnu_Types
2518 static const char* apzGnu_TypesPatch[] = {
2522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2524 * Description of Hp_Inline fix
2526 tSCC zHp_InlineName[] =
2530 * File name selection pattern
2532 tSCC zHp_InlineList[] =
2533 "sys/spinlock.h\0machine/machparam.h\0";
2535 * Machine/OS name selection pattern
2537 #define apzHp_InlineMachs (const char**)NULL
2540 * content selection pattern - do fix if pattern found
2542 tSCC zHp_InlineSelect0[] =
2543 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2545 #define HP_INLINE_TEST_CT 1
2546 static tTestDesc aHp_InlineTests[] = {
2547 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2550 * Fix Command Arguments for Hp_Inline
2552 static const char* apzHp_InlinePatch[] = {
2555 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2560 * Description of Hp_Sysfile fix
2562 tSCC zHp_SysfileName[] =
2566 * File name selection pattern
2568 tSCC zHp_SysfileList[] =
2571 * Machine/OS name selection pattern
2573 #define apzHp_SysfileMachs (const char**)NULL
2576 * content selection pattern - do fix if pattern found
2578 tSCC zHp_SysfileSelect0[] =
2581 #define HP_SYSFILE_TEST_CT 1
2582 static tTestDesc aHp_SysfileTests[] = {
2583 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2586 * Fix Command Arguments for Hp_Sysfile
2588 static const char* apzHp_SysfilePatch[] = {
2590 "(struct file *, ...)",
2594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2596 * Description of Hppa_Hpux_Fp_Macros fix
2598 tSCC zHppa_Hpux_Fp_MacrosName[] =
2599 "hppa_hpux_fp_macros";
2602 * File name selection pattern
2604 tSCC zHppa_Hpux_Fp_MacrosList[] =
2607 * Machine/OS name selection pattern
2609 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2611 (const char*)NULL };
2614 * content selection pattern - do fix if pattern found
2616 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2617 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2618 #[ \t]*define[ \t]*FP_ZERO.*\n\
2619 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2620 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2621 #[ \t]*define[ \t]*FP_NAN.*\n";
2623 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2624 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2625 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2628 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2630 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2632 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2633 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2634 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2636 #ifdef _INCLUDE_HPUX_SOURCE\n",
2639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2641 * Description of Hpux10_Cpp_Pow_Inline fix
2643 tSCC zHpux10_Cpp_Pow_InlineName[] =
2644 "hpux10_cpp_pow_inline";
2647 * File name selection pattern
2649 tSCC zHpux10_Cpp_Pow_InlineList[] =
2650 "fixinc-test-limits.h\0math.h\0";
2652 * Machine/OS name selection pattern
2654 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2657 * content selection pattern - do fix if pattern found
2659 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2660 "^# +ifdef +__cplusplus\n\
2662 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2663 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2665 +extern +\"C\" +\\{\n\
2669 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2670 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2671 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2674 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2676 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2683 * Description of Hpux11_Cpp_Pow_Inline fix
2685 tSCC zHpux11_Cpp_Pow_InlineName[] =
2686 "hpux11_cpp_pow_inline";
2689 * File name selection pattern
2691 tSCC zHpux11_Cpp_Pow_InlineList[] =
2694 * Machine/OS name selection pattern
2696 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2699 * content selection pattern - do fix if pattern found
2701 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2702 " +inline double pow\\(double d,int expon\\) \\{\n\
2703 +return pow\\(d, \\(double\\)expon\\);\n\
2706 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2707 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2708 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2711 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2713 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2720 * Description of Hpux10_Ctype_Declarations1 fix
2722 tSCC zHpux10_Ctype_Declarations1Name[] =
2723 "hpux10_ctype_declarations1";
2726 * File name selection pattern
2728 tSCC zHpux10_Ctype_Declarations1List[] =
2731 * Machine/OS name selection pattern
2733 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2736 * content selection pattern - do fix if pattern found
2738 tSCC zHpux10_Ctype_Declarations1Select0[] =
2739 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2742 * content bypass pattern - skip fix if pattern found
2744 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2745 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2747 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2748 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2749 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2750 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2753 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2755 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2757 "#ifdef _PROTOTYPES\n\
2758 extern int __tolower(int);\n\
2759 extern int __toupper(int);\n\
2760 #else /* NOT _PROTOTYPES */\n\
2761 extern int __tolower();\n\
2762 extern int __toupper();\n\
2763 #endif /* _PROTOTYPES */\n\n\
2767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2769 * Description of Hpux10_Ctype_Declarations2 fix
2771 tSCC zHpux10_Ctype_Declarations2Name[] =
2772 "hpux10_ctype_declarations2";
2775 * File name selection pattern
2777 tSCC zHpux10_Ctype_Declarations2List[] =
2780 * Machine/OS name selection pattern
2782 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2785 * content selection pattern - do fix if pattern found
2787 tSCC zHpux10_Ctype_Declarations2Select0[] =
2788 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2791 * content bypass pattern - skip fix if pattern found
2793 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2794 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2796 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2797 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2798 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2799 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2802 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2804 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2807 #ifdef _PROTOTYPES\n\
2808 extern int _isalnum(int);\n\
2809 extern int _isalpha(int);\n\
2810 extern int _iscntrl(int);\n\
2811 extern int _isdigit(int);\n\
2812 extern int _isgraph(int);\n\
2813 extern int _islower(int);\n\
2814 extern int _isprint(int);\n\
2815 extern int _ispunct(int);\n\
2816 extern int _isspace(int);\n\
2817 extern int _isupper(int);\n\
2818 extern int _isxdigit(int);\n\
2819 # else /* not _PROTOTYPES */\n\
2820 extern int _isalnum();\n\
2821 extern int _isalpha();\n\
2822 extern int _iscntrl();\n\
2823 extern int _isdigit();\n\
2824 extern int _isgraph();\n\
2825 extern int _islower();\n\
2826 extern int _isprint();\n\
2827 extern int _ispunct();\n\
2828 extern int _isspace();\n\
2829 extern int _isupper();\n\
2830 extern int _isxdigit();\n\
2831 #endif /* _PROTOTYPES */\n",
2834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2836 * Description of Hpux10_Stdio_Declarations fix
2838 tSCC zHpux10_Stdio_DeclarationsName[] =
2839 "hpux10_stdio_declarations";
2842 * File name selection pattern
2844 tSCC zHpux10_Stdio_DeclarationsList[] =
2847 * Machine/OS name selection pattern
2849 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2852 * content selection pattern - do fix if pattern found
2854 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2855 "^#[ \t]*define _iob[ \t]*__iob";
2858 * content bypass pattern - skip fix if pattern found
2860 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2861 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2863 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2864 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2865 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2866 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2869 * Fix Command Arguments for Hpux10_Stdio_Declarations
2871 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2874 # if defined(__STDC__) || defined(__cplusplus)\n\
2875 extern int snprintf(char *, size_t, const char *, ...);\n\
2876 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2877 # else /* not __STDC__) || __cplusplus */\n\
2878 extern int snprintf();\n\
2879 extern int vsnprintf();\n\
2880 # endif /* __STDC__) || __cplusplus */\n",
2883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2885 * Description of Hpux11_Abs fix
2887 tSCC zHpux11_AbsName[] =
2891 * File name selection pattern
2893 tSCC zHpux11_AbsList[] =
2896 * Machine/OS name selection pattern
2898 tSCC* apzHpux11_AbsMachs[] = {
2900 (const char*)NULL };
2903 * content selection pattern - do fix if pattern found
2905 tSCC zHpux11_AbsSelect0[] =
2906 "ifndef _MATH_INCLUDED";
2908 #define HPUX11_ABS_TEST_CT 1
2909 static tTestDesc aHpux11_AbsTests[] = {
2910 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2913 * Fix Command Arguments for Hpux11_Abs
2915 static const char* apzHpux11_AbsPatch[] = {
2917 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2922 * Description of Hpux11_Fabsf fix
2924 tSCC zHpux11_FabsfName[] =
2928 * File name selection pattern
2930 tSCC zHpux11_FabsfList[] =
2933 * Machine/OS name selection pattern
2935 #define apzHpux11_FabsfMachs (const char**)NULL
2938 * content selection pattern - do fix if pattern found
2940 tSCC zHpux11_FabsfSelect0[] =
2941 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2944 * content bypass pattern - skip fix if pattern found
2946 tSCC zHpux11_FabsfBypass0[] =
2949 #define HPUX11_FABSF_TEST_CT 2
2950 static tTestDesc aHpux11_FabsfTests[] = {
2951 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2952 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2955 * Fix Command Arguments for Hpux11_Fabsf
2957 static const char* apzHpux11_FabsfPatch[] = {
2959 "#ifndef __cplusplus\n\
2964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2966 * Description of Hpux11_Pthread_Const fix
2968 tSCC zHpux11_Pthread_ConstName[] =
2969 "hpux11_pthread_const";
2972 * File name selection pattern
2974 tSCC zHpux11_Pthread_ConstList[] =
2977 * Machine/OS name selection pattern
2979 tSCC* apzHpux11_Pthread_ConstMachs[] = {
2980 "*-hp-hpux11.[0-3]*",
2981 (const char*)NULL };
2984 * content selection pattern - do fix if pattern found
2986 tSCC zHpux11_Pthread_ConstSelect0[] =
2987 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2989 #define HPUX11_PTHREAD_CONST_TEST_CT 1
2990 static tTestDesc aHpux11_Pthread_ConstTests[] = {
2991 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2994 * Fix Command Arguments for Hpux11_Pthread_Const
2996 static const char* apzHpux11_Pthread_ConstPatch[] = {
2998 "#define __POINTER_SET\t\t((void *) 1L)",
3001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3003 * Description of Hpux11_Size_T fix
3005 tSCC zHpux11_Size_TName[] =
3009 * File name selection pattern
3011 #define zHpux11_Size_TList (char*)NULL
3013 * Machine/OS name selection pattern
3015 tSCC* apzHpux11_Size_TMachs[] = {
3017 (const char*)NULL };
3020 * content selection pattern - do fix if pattern found
3022 tSCC zHpux11_Size_TSelect0[] =
3025 #define HPUX11_SIZE_T_TEST_CT 1
3026 static tTestDesc aHpux11_Size_TTests[] = {
3027 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3030 * Fix Command Arguments for Hpux11_Size_T
3032 static const char* apzHpux11_Size_TPatch[] = {
3037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3039 * Description of Hpux11_Snprintf fix
3041 tSCC zHpux11_SnprintfName[] =
3045 * File name selection pattern
3047 tSCC zHpux11_SnprintfList[] =
3050 * Machine/OS name selection pattern
3052 #define apzHpux11_SnprintfMachs (const char**)NULL
3055 * content selection pattern - do fix if pattern found
3057 tSCC zHpux11_SnprintfSelect0[] =
3058 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3060 #define HPUX11_SNPRINTF_TEST_CT 1
3061 static tTestDesc aHpux11_SnprintfTests[] = {
3062 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3065 * Fix Command Arguments for Hpux11_Snprintf
3067 static const char* apzHpux11_SnprintfPatch[] = {
3072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3074 * Description of Hpux11_Vsnprintf fix
3076 tSCC zHpux11_VsnprintfName[] =
3080 * File name selection pattern
3082 tSCC zHpux11_VsnprintfList[] =
3085 * Machine/OS name selection pattern
3087 #define apzHpux11_VsnprintfMachs (const char**)NULL
3090 * content selection pattern - do fix if pattern found
3092 tSCC zHpux11_VsnprintfSelect0[] =
3093 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3095 #define HPUX11_VSNPRINTF_TEST_CT 1
3096 static tTestDesc aHpux11_VsnprintfTests[] = {
3097 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3100 * Fix Command Arguments for Hpux11_Vsnprintf
3102 static const char* apzHpux11_VsnprintfPatch[] = {
3107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3109 * Description of Hpux8_Bogus_Inlines fix
3111 tSCC zHpux8_Bogus_InlinesName[] =
3112 "hpux8_bogus_inlines";
3115 * File name selection pattern
3117 tSCC zHpux8_Bogus_InlinesList[] =
3120 * Machine/OS name selection pattern
3122 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3125 * content selection pattern - do fix if pattern found
3127 tSCC zHpux8_Bogus_InlinesSelect0[] =
3131 * content bypass pattern - skip fix if pattern found
3133 tSCC zHpux8_Bogus_InlinesBypass0[] =
3136 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3137 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3138 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3139 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3142 * Fix Command Arguments for Hpux8_Bogus_Inlines
3144 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3145 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3146 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3147 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3148 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3153 * Description of Hpux_Ctype_Macros fix
3155 tSCC zHpux_Ctype_MacrosName[] =
3156 "hpux_ctype_macros";
3159 * File name selection pattern
3161 tSCC zHpux_Ctype_MacrosList[] =
3164 * Machine/OS name selection pattern
3166 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3169 * content selection pattern - do fix if pattern found
3171 tSCC zHpux_Ctype_MacrosSelect0[] =
3172 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3174 #define HPUX_CTYPE_MACROS_TEST_CT 1
3175 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3176 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3179 * Fix Command Arguments for Hpux_Ctype_Macros
3181 static const char* apzHpux_Ctype_MacrosPatch[] = {
3186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3188 * Description of Hpux_Htonl fix
3190 tSCC zHpux_HtonlName[] =
3194 * File name selection pattern
3196 tSCC zHpux_HtonlList[] =
3199 * Machine/OS name selection pattern
3201 #define apzHpux_HtonlMachs (const char**)NULL
3204 * content selection pattern - do fix if pattern found
3206 tSCC zHpux_HtonlSelect0[] =
3207 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3209 \\* Macros for number representation conversion\\.\n\
3213 #define HPUX_HTONL_TEST_CT 1
3214 static tTestDesc aHpux_HtonlTests[] = {
3215 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3218 * Fix Command Arguments for Hpux_Htonl
3220 static const char* apzHpux_HtonlPatch[] = {
3226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3228 * Description of Hpux_Long_Double fix
3230 tSCC zHpux_Long_DoubleName[] =
3234 * File name selection pattern
3236 tSCC zHpux_Long_DoubleList[] =
3239 * Machine/OS name selection pattern
3241 tSCC* apzHpux_Long_DoubleMachs[] = {
3243 "*-*-hpux11.[012]*",
3244 (const char*)NULL };
3247 * content selection pattern - do fix if pattern found
3249 tSCC zHpux_Long_DoubleSelect0[] =
3250 "extern[ \t]long_double[ \t]strtold";
3253 * content bypass pattern - skip fix if pattern found
3255 tSCC zHpux_Long_DoubleBypass0[] =
3258 #define HPUX_LONG_DOUBLE_TEST_CT 2
3259 static tTestDesc aHpux_Long_DoubleTests[] = {
3260 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3261 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3264 * Fix Command Arguments for Hpux_Long_Double
3266 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3267 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3268 "-e", "s/long_double/long double/g",
3271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3273 * Description of Hpux_Long_Double_2 fix
3275 tSCC zHpux_Long_Double_2Name[] =
3276 "hpux_long_double_2";
3279 * File name selection pattern
3281 tSCC zHpux_Long_Double_2List[] =
3284 * Machine/OS name selection pattern
3286 tSCC* apzHpux_Long_Double_2Machs[] = {
3287 "hppa*-*-hpux11.3*",
3288 (const char*)NULL };
3291 * content selection pattern - do fix if pattern found
3293 tSCC zHpux_Long_Double_2Select0[] =
3294 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3296 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3297 static tTestDesc aHpux_Long_Double_2Tests[] = {
3298 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3301 * Fix Command Arguments for Hpux_Long_Double_2
3303 static const char* apzHpux_Long_Double_2Patch[] = {
3305 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3310 * Description of Hpux_Systime fix
3312 tSCC zHpux_SystimeName[] =
3316 * File name selection pattern
3318 tSCC zHpux_SystimeList[] =
3321 * Machine/OS name selection pattern
3323 #define apzHpux_SystimeMachs (const char**)NULL
3326 * content selection pattern - do fix if pattern found
3328 tSCC zHpux_SystimeSelect0[] =
3329 "^extern struct sigevent;";
3331 #define HPUX_SYSTIME_TEST_CT 1
3332 static tTestDesc aHpux_SystimeTests[] = {
3333 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3336 * Fix Command Arguments for Hpux_Systime
3338 static const char* apzHpux_SystimePatch[] = {
3343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3345 * Description of Hpux_Spu_Info fix
3347 tSCC zHpux_Spu_InfoName[] =
3351 * File name selection pattern
3353 tSCC zHpux_Spu_InfoList[] =
3354 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3356 * Machine/OS name selection pattern
3358 tSCC* apzHpux_Spu_InfoMachs[] = {
3360 (const char*)NULL };
3363 * content selection pattern - do fix if pattern found
3365 tSCC zHpux_Spu_InfoSelect0[] =
3366 "^.*extern.*spu_info.*";
3368 #define HPUX_SPU_INFO_TEST_CT 1
3369 static tTestDesc aHpux_Spu_InfoTests[] = {
3370 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3373 * Fix Command Arguments for Hpux_Spu_Info
3375 static const char* apzHpux_Spu_InfoPatch[] = {
3382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3384 * Description of Hpux11_Extern_Sendfile fix
3386 tSCC zHpux11_Extern_SendfileName[] =
3387 "hpux11_extern_sendfile";
3390 * File name selection pattern
3392 tSCC zHpux11_Extern_SendfileList[] =
3395 * Machine/OS name selection pattern
3397 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3398 "*-hp-hpux11.[12]*",
3399 (const char*)NULL };
3402 * content selection pattern - do fix if pattern found
3404 tSCC zHpux11_Extern_SendfileSelect0[] =
3405 "^[ \t]*extern sbsize_t sendfile.*\n\
3408 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3409 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3410 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3413 * Fix Command Arguments for Hpux11_Extern_Sendfile
3415 static const char* apzHpux11_Extern_SendfilePatch[] = {
3417 "#ifndef _APP32_64BIT_OFF_T\n\
3421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3423 * Description of Hpux11_Extern_Sendpath fix
3425 tSCC zHpux11_Extern_SendpathName[] =
3426 "hpux11_extern_sendpath";
3429 * File name selection pattern
3431 tSCC zHpux11_Extern_SendpathList[] =
3434 * Machine/OS name selection pattern
3436 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3437 "*-hp-hpux11.[12]*",
3438 (const char*)NULL };
3441 * content selection pattern - do fix if pattern found
3443 tSCC zHpux11_Extern_SendpathSelect0[] =
3444 "^[ \t]*extern sbsize_t sendpath.*\n\
3447 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3448 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3449 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3452 * Fix Command Arguments for Hpux11_Extern_Sendpath
3454 static const char* apzHpux11_Extern_SendpathPatch[] = {
3456 "#ifndef _APP32_64BIT_OFF_T\n\
3460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3462 * Description of Hpux_Extern_Errno fix
3464 tSCC zHpux_Extern_ErrnoName[] =
3465 "hpux_extern_errno";
3468 * File name selection pattern
3470 tSCC zHpux_Extern_ErrnoList[] =
3473 * Machine/OS name selection pattern
3475 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3477 "*-hp-hpux11.[0-2]*",
3478 (const char*)NULL };
3481 * content selection pattern - do fix if pattern found
3483 tSCC zHpux_Extern_ErrnoSelect0[] =
3484 "^[ \t]*extern int errno;$";
3486 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3487 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3488 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3491 * Fix Command Arguments for Hpux_Extern_Errno
3493 static const char* apzHpux_Extern_ErrnoPatch[] = {
3495 "#ifdef __cplusplus\n\
3499 #ifdef __cplusplus\n\
3504 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3506 * Description of Hpux_Pthread_Initializers fix
3508 tSCC zHpux_Pthread_InitializersName[] =
3509 "hpux_pthread_initializers";
3512 * File name selection pattern
3514 tSCC zHpux_Pthread_InitializersList[] =
3517 * Machine/OS name selection pattern
3519 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3520 "*-hp-hpux11.[0-3]*",
3521 (const char*)NULL };
3522 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3523 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3526 * Fix Command Arguments for Hpux_Pthread_Initializers
3528 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3529 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3530 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3531 "-e", "/^[ \t]*0$/d",
3532 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3533 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3534 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3535 "-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\\\\@",
3536 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3537 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3538 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3539 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3540 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3541 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3546 * Description of Hpux_C99_Intptr fix
3548 tSCC zHpux_C99_IntptrName[] =
3552 * File name selection pattern
3554 tSCC zHpux_C99_IntptrList[] =
3557 * Machine/OS name selection pattern
3559 tSCC* apzHpux_C99_IntptrMachs[] = {
3561 (const char*)NULL };
3562 #define HPUX_C99_INTPTR_TEST_CT 0
3563 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
3566 * Fix Command Arguments for Hpux_C99_Intptr
3568 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3569 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3570 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3571 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3572 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3573 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3574 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3579 * Description of Hpux_C99_Inttypes fix
3581 tSCC zHpux_C99_InttypesName[] =
3582 "hpux_c99_inttypes";
3585 * File name selection pattern
3587 tSCC zHpux_C99_InttypesList[] =
3588 "inttypes.h\0stdint.h\0";
3590 * Machine/OS name selection pattern
3592 tSCC* apzHpux_C99_InttypesMachs[] = {
3593 "*-hp-hpux11.[23]*",
3594 (const char*)NULL };
3595 #define HPUX_C99_INTTYPES_TEST_CT 0
3596 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
3599 * Fix Command Arguments for Hpux_C99_Inttypes
3601 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3602 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3603 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3604 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3605 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3610 * Description of Hpux_C99_Inttypes2 fix
3612 tSCC zHpux_C99_Inttypes2Name[] =
3613 "hpux_c99_inttypes2";
3616 * File name selection pattern
3618 tSCC zHpux_C99_Inttypes2List[] =
3621 * Machine/OS name selection pattern
3623 tSCC* apzHpux_C99_Inttypes2Machs[] = {
3625 (const char*)NULL };
3626 #define HPUX_C99_INTTYPES2_TEST_CT 0
3627 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
3630 * Fix Command Arguments for Hpux_C99_Inttypes2
3632 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
3633 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
3634 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
3635 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
3636 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
3639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3641 * Description of Hpux_Stdint_Least fix
3643 tSCC zHpux_Stdint_LeastName[] =
3644 "hpux_stdint_least";
3647 * File name selection pattern
3649 tSCC zHpux_Stdint_LeastList[] =
3652 * Machine/OS name selection pattern
3654 tSCC* apzHpux_Stdint_LeastMachs[] = {
3656 (const char*)NULL };
3659 * content selection pattern - do fix if pattern found
3661 tSCC zHpux_Stdint_LeastSelect0[] =
3662 "^[ \t]*#[ \t]*define[ \t]*UINT_LEAST64_MAX[ \t]*ULLONG_MAX";
3664 #define HPUX_STDINT_LEAST_TEST_CT 1
3665 static tTestDesc aHpux_Stdint_LeastTests[] = {
3666 { TT_EGREP, zHpux_Stdint_LeastSelect0, (regex_t*)NULL }, };
3669 * Fix Command Arguments for Hpux_Stdint_Least
3671 static const char* apzHpux_Stdint_LeastPatch[] = {
3674 # define\tUINT_LEAST64_MAX\tULONG_MAX\n\
3680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3682 * Description of Hpux_Stdint_Fast fix
3684 tSCC zHpux_Stdint_FastName[] =
3688 * File name selection pattern
3690 tSCC zHpux_Stdint_FastList[] =
3693 * Machine/OS name selection pattern
3695 tSCC* apzHpux_Stdint_FastMachs[] = {
3697 (const char*)NULL };
3700 * content selection pattern - do fix if pattern found
3702 tSCC zHpux_Stdint_FastSelect0[] =
3703 "^[ \t]*#[ \t]*define[ \t]*UINT_FAST64_MAX[ \t]*ULLONG_MAX";
3705 #define HPUX_STDINT_FAST_TEST_CT 1
3706 static tTestDesc aHpux_Stdint_FastTests[] = {
3707 { TT_EGREP, zHpux_Stdint_FastSelect0, (regex_t*)NULL }, };
3710 * Fix Command Arguments for Hpux_Stdint_Fast
3712 static const char* apzHpux_Stdint_FastPatch[] = {
3715 # define\tUINT_FAST64_MAX\t\tULONG_MAX\n\
3721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3723 * Description of Hpux_Inttype_Int_Least8_T fix
3725 tSCC zHpux_Inttype_Int_Least8_TName[] =
3726 "hpux_inttype_int_least8_t";
3729 * File name selection pattern
3731 tSCC zHpux_Inttype_Int_Least8_TList[] =
3732 "sys/_inttypes.h\0";
3734 * Machine/OS name selection pattern
3736 tSCC* apzHpux_Inttype_Int_Least8_TMachs[] = {
3738 (const char*)NULL };
3741 * content selection pattern - do fix if pattern found
3743 tSCC zHpux_Inttype_Int_Least8_TSelect0[] =
3744 "^[ \t]*typedef[ \t]*char[ \t]*int_least8_t.*";
3746 #define HPUX_INTTYPE_INT_LEAST8_T_TEST_CT 1
3747 static tTestDesc aHpux_Inttype_Int_Least8_TTests[] = {
3748 { TT_EGREP, zHpux_Inttype_Int_Least8_TSelect0, (regex_t*)NULL }, };
3751 * Fix Command Arguments for Hpux_Inttype_Int_Least8_T
3753 static const char* apzHpux_Inttype_Int_Least8_TPatch[] = {
3755 "typedef signed char int_least8_t;",
3758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3760 * Description of Hpux_Inttype_Int8_T fix
3762 tSCC zHpux_Inttype_Int8_TName[] =
3763 "hpux_inttype_int8_t";
3766 * File name selection pattern
3768 tSCC zHpux_Inttype_Int8_TList[] =
3769 "sys/_inttypes.h\0";
3771 * Machine/OS name selection pattern
3773 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
3775 (const char*)NULL };
3778 * content selection pattern - do fix if pattern found
3780 tSCC zHpux_Inttype_Int8_TSelect0[] =
3781 "^[ \t]*typedef[ \t]*char[ \t]*int8_t.*";
3783 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
3784 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
3785 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
3788 * Fix Command Arguments for Hpux_Inttype_Int8_T
3790 static const char* apzHpux_Inttype_Int8_TPatch[] = {
3792 "typedef signed char int8_t;",
3795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3797 * Description of Huge_Val_Hex fix
3799 tSCC zHuge_Val_HexName[] =
3803 * File name selection pattern
3805 tSCC zHuge_Val_HexList[] =
3806 "bits/huge_val.h\0";
3808 * Machine/OS name selection pattern
3810 #define apzHuge_Val_HexMachs (const char**)NULL
3813 * content selection pattern - do fix if pattern found
3815 tSCC zHuge_Val_HexSelect0[] =
3816 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3819 * content bypass pattern - skip fix if pattern found
3821 tSCC zHuge_Val_HexBypass0[] =
3822 "__builtin_huge_val";
3824 #define HUGE_VAL_HEX_TEST_CT 2
3825 static tTestDesc aHuge_Val_HexTests[] = {
3826 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3827 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3830 * Fix Command Arguments for Huge_Val_Hex
3832 static const char* apzHuge_Val_HexPatch[] = {
3834 "#define HUGE_VAL (__builtin_huge_val())\n",
3837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3839 * Description of Huge_Valf_Hex fix
3841 tSCC zHuge_Valf_HexName[] =
3845 * File name selection pattern
3847 tSCC zHuge_Valf_HexList[] =
3848 "bits/huge_val.h\0";
3850 * Machine/OS name selection pattern
3852 #define apzHuge_Valf_HexMachs (const char**)NULL
3855 * content selection pattern - do fix if pattern found
3857 tSCC zHuge_Valf_HexSelect0[] =
3858 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3861 * content bypass pattern - skip fix if pattern found
3863 tSCC zHuge_Valf_HexBypass0[] =
3864 "__builtin_huge_valf";
3866 #define HUGE_VALF_HEX_TEST_CT 2
3867 static tTestDesc aHuge_Valf_HexTests[] = {
3868 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3869 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3872 * Fix Command Arguments for Huge_Valf_Hex
3874 static const char* apzHuge_Valf_HexPatch[] = {
3876 "#define HUGE_VALF (__builtin_huge_valf())\n",
3879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3881 * Description of Huge_Vall_Hex fix
3883 tSCC zHuge_Vall_HexName[] =
3887 * File name selection pattern
3889 tSCC zHuge_Vall_HexList[] =
3890 "bits/huge_val.h\0";
3892 * Machine/OS name selection pattern
3894 #define apzHuge_Vall_HexMachs (const char**)NULL
3897 * content selection pattern - do fix if pattern found
3899 tSCC zHuge_Vall_HexSelect0[] =
3900 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3903 * content bypass pattern - skip fix if pattern found
3905 tSCC zHuge_Vall_HexBypass0[] =
3906 "__builtin_huge_vall";
3908 #define HUGE_VALL_HEX_TEST_CT 2
3909 static tTestDesc aHuge_Vall_HexTests[] = {
3910 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3911 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3914 * Fix Command Arguments for Huge_Vall_Hex
3916 static const char* apzHuge_Vall_HexPatch[] = {
3918 "#define HUGE_VALL (__builtin_huge_vall())\n",
3921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3923 * Description of Int_Abort_Free_And_Exit fix
3925 tSCC zInt_Abort_Free_And_ExitName[] =
3926 "int_abort_free_and_exit";
3929 * File name selection pattern
3931 tSCC zInt_Abort_Free_And_ExitList[] =
3934 * Machine/OS name selection pattern
3936 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3939 * content selection pattern - do fix if pattern found
3941 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3942 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3945 * content bypass pattern - skip fix if pattern found
3947 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3948 "_CLASSIC_ANSI_TYPES";
3950 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3951 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3952 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3953 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3956 * Fix Command Arguments for Int_Abort_Free_And_Exit
3958 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3965 * Description of Io_Quotes_Def fix
3967 tSCC zIo_Quotes_DefName[] =
3971 * File name selection pattern
3973 #define zIo_Quotes_DefList (char*)NULL
3975 * Machine/OS name selection pattern
3977 #define apzIo_Quotes_DefMachs (const char**)NULL
3980 * content selection pattern - do fix if pattern found
3982 tSCC zIo_Quotes_DefSelect0[] =
3983 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3985 #define IO_QUOTES_DEF_TEST_CT 1
3986 static tTestDesc aIo_Quotes_DefTests[] = {
3987 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3990 * Fix Command Arguments for Io_Quotes_Def
3992 static const char* apzIo_Quotes_DefPatch[] = {
3997 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3999 * Description of Io_Quotes_Use fix
4001 tSCC zIo_Quotes_UseName[] =
4005 * File name selection pattern
4007 #define zIo_Quotes_UseList (char*)NULL
4009 * Machine/OS name selection pattern
4011 #define apzIo_Quotes_UseMachs (const char**)NULL
4014 * content selection pattern - do fix if pattern found
4016 tSCC zIo_Quotes_UseSelect0[] =
4017 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4019 #define IO_QUOTES_USE_TEST_CT 1
4020 static tTestDesc aIo_Quotes_UseTests[] = {
4021 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4024 * Fix Command Arguments for Io_Quotes_Use
4026 static const char* apzIo_Quotes_UsePatch[] = {
4031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4033 * Description of Ip_Missing_Semi fix
4035 tSCC zIp_Missing_SemiName[] =
4039 * File name selection pattern
4041 tSCC zIp_Missing_SemiList[] =
4044 * Machine/OS name selection pattern
4046 #define apzIp_Missing_SemiMachs (const char**)NULL
4049 * content selection pattern - do fix if pattern found
4051 tSCC zIp_Missing_SemiSelect0[] =
4054 #define IP_MISSING_SEMI_TEST_CT 1
4055 static tTestDesc aIp_Missing_SemiTests[] = {
4056 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4059 * Fix Command Arguments for Ip_Missing_Semi
4061 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4062 "-e", "/^struct/,/^};/s/}$/};/",
4065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4067 * Description of Irix___Restrict fix
4069 tSCC zIrix___RestrictName[] =
4073 * File name selection pattern
4075 tSCC zIrix___RestrictList[] =
4076 "internal/sgimacros.h\0";
4078 * Machine/OS name selection pattern
4080 tSCC* apzIrix___RestrictMachs[] = {
4082 (const char*)NULL };
4085 * content selection pattern - do fix if pattern found
4087 tSCC zIrix___RestrictSelect0[] =
4089 )(#[ \t]*define __restrict restrict)";
4091 #define IRIX___RESTRICT_TEST_CT 1
4092 static tTestDesc aIrix___RestrictTests[] = {
4093 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4096 * Fix Command Arguments for Irix___Restrict
4098 static const char* apzIrix___RestrictPatch[] = {
4100 "%1# ifndef __cplusplus\n\
4105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4107 * Description of Irix___Generic1 fix
4109 tSCC zIrix___Generic1Name[] =
4113 * File name selection pattern
4115 tSCC zIrix___Generic1List[] =
4116 "internal/math_core.h\0";
4118 * Machine/OS name selection pattern
4120 tSCC* apzIrix___Generic1Machs[] = {
4122 (const char*)NULL };
4125 * content selection pattern - do fix if pattern found
4127 tSCC zIrix___Generic1Select0[] =
4128 "#define ([a-z]+)\\(x\\) *__generic.*";
4130 #define IRIX___GENERIC1_TEST_CT 1
4131 static tTestDesc aIrix___Generic1Tests[] = {
4132 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4135 * Fix Command Arguments for Irix___Generic1
4137 static const char* apzIrix___Generic1Patch[] = {
4139 "extern int %1(double);\n\
4140 extern int %1f(float);\n\
4141 extern int %1l(long double);\n\
4142 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4143 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4149 * Description of Irix___Generic2 fix
4151 tSCC zIrix___Generic2Name[] =
4155 * File name selection pattern
4157 tSCC zIrix___Generic2List[] =
4158 "internal/math_core.h\0";
4160 * Machine/OS name selection pattern
4162 tSCC* apzIrix___Generic2Machs[] = {
4164 (const char*)NULL };
4167 * content selection pattern - do fix if pattern found
4169 tSCC zIrix___Generic2Select0[] =
4170 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4172 #define IRIX___GENERIC2_TEST_CT 1
4173 static tTestDesc aIrix___Generic2Tests[] = {
4174 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4177 * Fix Command Arguments for Irix___Generic2
4179 static const char* apzIrix___Generic2Patch[] = {
4181 "#define %1(x,y) \\\n\
4182 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4183 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4189 * Description of Irix_Asm_Apostrophe fix
4191 tSCC zIrix_Asm_ApostropheName[] =
4192 "irix_asm_apostrophe";
4195 * File name selection pattern
4197 tSCC zIrix_Asm_ApostropheList[] =
4200 * Machine/OS name selection pattern
4202 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4205 * content selection pattern - do fix if pattern found
4207 tSCC zIrix_Asm_ApostropheSelect0[] =
4208 "^[ \t]*#.*[Ww]e're";
4210 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4211 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4212 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4215 * Fix Command Arguments for Irix_Asm_Apostrophe
4217 static const char* apzIrix_Asm_ApostrophePatch[] = {
4220 "^([ \t]*#.*[Ww]e)'re",
4223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4225 * Description of Irix_Limits_Const fix
4227 tSCC zIrix_Limits_ConstName[] =
4228 "irix_limits_const";
4231 * File name selection pattern
4233 tSCC zIrix_Limits_ConstList[] =
4234 "fixinc-test-limits.h\0limits.h\0";
4236 * Machine/OS name selection pattern
4238 #define apzIrix_Limits_ConstMachs (const char**)NULL
4241 * content selection pattern - do fix if pattern found
4243 tSCC zIrix_Limits_ConstSelect0[] =
4246 #define IRIX_LIMITS_CONST_TEST_CT 1
4247 static tTestDesc aIrix_Limits_ConstTests[] = {
4248 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4251 * Fix Command Arguments for Irix_Limits_Const
4253 static const char* apzIrix_Limits_ConstPatch[] = {
4258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4260 * Description of Irix_Socklen_T fix
4262 tSCC zIrix_Socklen_TName[] =
4266 * File name selection pattern
4268 tSCC zIrix_Socklen_TList[] =
4271 * Machine/OS name selection pattern
4273 tSCC* apzIrix_Socklen_TMachs[] = {
4275 (const char*)NULL };
4278 * content selection pattern - do fix if pattern found
4280 tSCC zIrix_Socklen_TSelect0[] =
4281 "(#define _SOCKLEN_T\n\
4282 )(typedef u_int32_t socklen_t;)";
4284 #define IRIX_SOCKLEN_T_TEST_CT 1
4285 static tTestDesc aIrix_Socklen_TTests[] = {
4286 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4289 * Fix Command Arguments for Irix_Socklen_T
4291 static const char* apzIrix_Socklen_TPatch[] = {
4293 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4294 typedef int socklen_t;\n\
4297 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4302 * Description of Irix_Stdint_C99 fix
4304 tSCC zIrix_Stdint_C99Name[] =
4308 * File name selection pattern
4310 tSCC zIrix_Stdint_C99List[] =
4313 * Machine/OS name selection pattern
4315 tSCC* apzIrix_Stdint_C99Machs[] = {
4317 (const char*)NULL };
4320 * content selection pattern - do fix if pattern found
4322 tSCC zIrix_Stdint_C99Select0[] =
4324 )(#error This header file is to be used only for c99 mode compilations)";
4326 #define IRIX_STDINT_C99_TEST_CT 1
4327 static tTestDesc aIrix_Stdint_C99Tests[] = {
4328 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4331 * Fix Command Arguments for Irix_Stdint_C99
4333 static const char* apzIrix_Stdint_C99Patch[] = {
4339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4341 * Description of Irix_Stdio_Va_List fix
4343 tSCC zIrix_Stdio_Va_ListName[] =
4344 "irix_stdio_va_list";
4347 * File name selection pattern
4349 tSCC zIrix_Stdio_Va_ListList[] =
4350 "stdio.h\0internal/stdio_core.h\0";
4352 * Machine/OS name selection pattern
4354 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4357 * content selection pattern - do fix if pattern found
4359 tSCC zIrix_Stdio_Va_ListSelect0[] =
4360 "/\\* va_list \\*/ char \\*";
4362 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4363 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4364 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4367 * Fix Command Arguments for Irix_Stdio_Va_List
4369 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4376 * Description of Irix_Wcsftime fix
4378 tSCC zIrix_WcsftimeName[] =
4382 * File name selection pattern
4384 tSCC zIrix_WcsftimeList[] =
4385 "internal/wchar_core.h\0";
4387 * Machine/OS name selection pattern
4389 tSCC* apzIrix_WcsftimeMachs[] = {
4391 (const char*)NULL };
4394 * content selection pattern - do fix if pattern found
4396 tSCC zIrix_WcsftimeSelect0[] =
4398 (extern size_t[ \t]+wcsftime.*const char *.*)";
4400 #define IRIX_WCSFTIME_TEST_CT 1
4401 static tTestDesc aIrix_WcsftimeTests[] = {
4402 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4405 * Fix Command Arguments for Irix_Wcsftime
4407 static const char* apzIrix_WcsftimePatch[] = {
4409 "#if _NO_XOPEN5 && !defined(__c99)\n\
4413 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4415 * Description of Isc_Fmod fix
4417 tSCC zIsc_FmodName[] =
4421 * File name selection pattern
4423 tSCC zIsc_FmodList[] =
4426 * Machine/OS name selection pattern
4428 #define apzIsc_FmodMachs (const char**)NULL
4431 * content selection pattern - do fix if pattern found
4433 tSCC zIsc_FmodSelect0[] =
4436 #define ISC_FMOD_TEST_CT 1
4437 static tTestDesc aIsc_FmodTests[] = {
4438 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4441 * Fix Command Arguments for Isc_Fmod
4443 static const char* apzIsc_FmodPatch[] = {
4445 "fmod(double, double)",
4448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4450 * Description of Isc_Omits_With_Stdc fix
4452 tSCC zIsc_Omits_With_StdcName[] =
4453 "isc_omits_with_stdc";
4456 * File name selection pattern
4458 tSCC zIsc_Omits_With_StdcList[] =
4459 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4461 * Machine/OS name selection pattern
4463 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4466 * content selection pattern - do fix if pattern found
4468 tSCC zIsc_Omits_With_StdcSelect0[] =
4469 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4471 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4472 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4473 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4476 * Fix Command Arguments for Isc_Omits_With_Stdc
4478 static const char* apzIsc_Omits_With_StdcPatch[] = {
4480 "!defined(_POSIX_SOURCE)",
4483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4485 * Description of Kandr_Concat fix
4487 tSCC zKandr_ConcatName[] =
4491 * File name selection pattern
4493 tSCC zKandr_ConcatList[] =
4494 "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";
4496 * Machine/OS name selection pattern
4498 #define apzKandr_ConcatMachs (const char**)NULL
4501 * content selection pattern - do fix if pattern found
4503 tSCC zKandr_ConcatSelect0[] =
4506 #define KANDR_CONCAT_TEST_CT 1
4507 static tTestDesc aKandr_ConcatTests[] = {
4508 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4511 * Fix Command Arguments for Kandr_Concat
4513 static const char* apzKandr_ConcatPatch[] = {
4518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4520 * Description of Linux_Ia64_Ucontext fix
4522 tSCC zLinux_Ia64_UcontextName[] =
4523 "linux_ia64_ucontext";
4526 * File name selection pattern
4528 tSCC zLinux_Ia64_UcontextList[] =
4531 * Machine/OS name selection pattern
4533 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4535 (const char*)NULL };
4538 * content selection pattern - do fix if pattern found
4540 tSCC zLinux_Ia64_UcontextSelect0[] =
4541 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4543 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4544 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4545 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4548 * Fix Command Arguments for Linux_Ia64_Ucontext
4550 static const char* apzLinux_Ia64_UcontextPatch[] = {
4552 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4557 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4559 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4560 "lynxos_no_warning_in_sys_time_h";
4563 * File name selection pattern
4565 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4568 * Machine/OS name selection pattern
4570 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4573 * content selection pattern - do fix if pattern found
4575 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4576 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4578 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4579 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4580 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4583 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4585 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4592 * Description of Lynxos_Missing_Putenv fix
4594 tSCC zLynxos_Missing_PutenvName[] =
4595 "lynxos_missing_putenv";
4598 * File name selection pattern
4600 tSCC zLynxos_Missing_PutenvList[] =
4603 * Machine/OS name selection pattern
4605 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4607 (const char*)NULL };
4610 * content selection pattern - do fix if pattern found
4612 tSCC zLynxos_Missing_PutenvSelect0[] =
4613 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4616 * content bypass pattern - skip fix if pattern found
4618 tSCC zLynxos_Missing_PutenvBypass0[] =
4621 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4622 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4623 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4624 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4627 * Fix Command Arguments for Lynxos_Missing_Putenv
4629 static const char* apzLynxos_Missing_PutenvPatch[] = {
4632 extern int putenv\t\t\t\t_AP((char *));",
4633 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4638 * Description of Machine_Ansi_H_Va_List fix
4640 tSCC zMachine_Ansi_H_Va_ListName[] =
4641 "machine_ansi_h_va_list";
4644 * File name selection pattern
4646 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4648 * Machine/OS name selection pattern
4650 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4653 * content selection pattern - do fix if pattern found
4655 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4656 "define[ \t]+_BSD_VA_LIST_[ \t]";
4659 * content bypass pattern - skip fix if pattern found
4661 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4662 "__builtin_va_list";
4664 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4665 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4666 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4667 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4670 * Fix Command Arguments for Machine_Ansi_H_Va_List
4672 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4674 "%1__builtin_va_list",
4675 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4680 * Description of Machine_Name fix
4682 tSCC zMachine_NameName[] =
4686 * File name selection pattern
4688 #define zMachine_NameList (char*)NULL
4690 * Machine/OS name selection pattern
4692 #define apzMachine_NameMachs (const char**)NULL
4695 * perform the C function call test
4697 tSCC zMachine_NameFTst0[] = "machine_name";
4699 #define MACHINE_NAME_TEST_CT 1
4700 static tTestDesc aMachine_NameTests[] = {
4701 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4704 * Fix Command Arguments for Machine_Name
4706 static const char* apzMachine_NamePatch[] = {
4710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4712 * Description of Math_Exception fix
4714 tSCC zMath_ExceptionName[] =
4718 * File name selection pattern
4720 tSCC zMath_ExceptionList[] =
4723 * Machine/OS name selection pattern
4725 #define apzMath_ExceptionMachs (const char**)NULL
4728 * content selection pattern - do fix if pattern found
4730 tSCC zMath_ExceptionSelect0[] =
4734 * content bypass pattern - skip fix if pattern found
4736 tSCC zMath_ExceptionBypass0[] =
4737 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4739 #define MATH_EXCEPTION_TEST_CT 2
4740 static tTestDesc aMath_ExceptionTests[] = {
4741 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4742 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4745 * Fix Command Arguments for Math_Exception
4747 static const char* apzMath_ExceptionPatch[] = {
4749 "#ifdef __cplusplus\n\
4750 #define exception __math_exception\n\
4752 "#ifdef __cplusplus\n\
4757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4759 * Description of Math_Huge_Val_From_Dbl_Max fix
4761 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4762 "math_huge_val_from_dbl_max";
4765 * File name selection pattern
4767 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4770 * Machine/OS name selection pattern
4772 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4775 * content selection pattern - do fix if pattern found
4777 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4778 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4781 * content bypass pattern - skip fix if pattern found
4783 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4784 "define[ \t]+DBL_MAX";
4786 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4787 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4788 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4789 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4792 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4794 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4795 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4796 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4797 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4804 * Description of Nested_Auth_Des fix
4806 tSCC zNested_Auth_DesName[] =
4810 * File name selection pattern
4812 tSCC zNested_Auth_DesList[] =
4815 * Machine/OS name selection pattern
4817 #define apzNested_Auth_DesMachs (const char**)NULL
4820 * content selection pattern - do fix if pattern found
4822 tSCC zNested_Auth_DesSelect0[] =
4823 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4825 #define NESTED_AUTH_DES_TEST_CT 1
4826 static tTestDesc aNested_Auth_DesTests[] = {
4827 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4830 * Fix Command Arguments for Nested_Auth_Des
4832 static const char* apzNested_Auth_DesPatch[] = {
4837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4839 * Description of Nested_Sys_Limits fix
4841 tSCC zNested_Sys_LimitsName[] =
4842 "nested_sys_limits";
4845 * File name selection pattern
4847 tSCC zNested_Sys_LimitsList[] =
4850 * Machine/OS name selection pattern
4852 #define apzNested_Sys_LimitsMachs (const char**)NULL
4855 * content selection pattern - do fix if pattern found
4857 tSCC zNested_Sys_LimitsSelect0[] =
4860 #define NESTED_SYS_LIMITS_TEST_CT 1
4861 static tTestDesc aNested_Sys_LimitsTests[] = {
4862 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4865 * Fix Command Arguments for Nested_Sys_Limits
4867 static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
4868 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4869 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4874 * Description of Netbsd_C99_Inline_1 fix
4876 tSCC zNetbsd_C99_Inline_1Name[] =
4877 "netbsd_c99_inline_1";
4880 * File name selection pattern
4882 tSCC zNetbsd_C99_Inline_1List[] =
4885 * Machine/OS name selection pattern
4887 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4889 (const char*)NULL };
4892 * content selection pattern - do fix if pattern found
4894 tSCC zNetbsd_C99_Inline_1Select0[] =
4895 "extern __inline int";
4897 #define NETBSD_C99_INLINE_1_TEST_CT 1
4898 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4899 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4902 * Fix Command Arguments for Netbsd_C99_Inline_1
4904 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4907 #ifdef __GNUC_STDC_INLINE__\n\
4908 __attribute__((__gnu_inline__))\n\
4913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4915 * Description of Netbsd_C99_Inline_2 fix
4917 tSCC zNetbsd_C99_Inline_2Name[] =
4918 "netbsd_c99_inline_2";
4921 * File name selection pattern
4923 tSCC zNetbsd_C99_Inline_2List[] =
4926 * Machine/OS name selection pattern
4928 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4930 (const char*)NULL };
4933 * content selection pattern - do fix if pattern found
4935 tSCC zNetbsd_C99_Inline_2Select0[] =
4936 "#define _SIGINLINE extern __inline";
4938 #define NETBSD_C99_INLINE_2_TEST_CT 1
4939 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4940 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4943 * Fix Command Arguments for Netbsd_C99_Inline_2
4945 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4947 "#ifdef __GNUC_STDC_INLINE__\n\
4948 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4956 * Description of Netbsd_Extra_Semicolon fix
4958 tSCC zNetbsd_Extra_SemicolonName[] =
4959 "netbsd_extra_semicolon";
4962 * File name selection pattern
4964 tSCC zNetbsd_Extra_SemicolonList[] =
4967 * Machine/OS name selection pattern
4969 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4971 (const char*)NULL };
4974 * content selection pattern - do fix if pattern found
4976 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4977 "#define[ \t]*__END_DECLS[ \t]*};";
4979 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4980 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4981 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4984 * Fix Command Arguments for Netbsd_Extra_Semicolon
4986 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4988 "#define __END_DECLS }",
4991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4993 * Description of Newlib_Stdint_1 fix
4995 tSCC zNewlib_Stdint_1Name[] =
4999 * File name selection pattern
5001 tSCC zNewlib_Stdint_1List[] =
5004 * Machine/OS name selection pattern
5006 #define apzNewlib_Stdint_1Machs (const char**)NULL
5009 * content selection pattern - do fix if pattern found
5011 tSCC zNewlib_Stdint_1Select0[] =
5012 "@todo - Add support for wint_t types";
5014 #define NEWLIB_STDINT_1_TEST_CT 1
5015 static tTestDesc aNewlib_Stdint_1Tests[] = {
5016 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5019 * Fix Command Arguments for Newlib_Stdint_1
5021 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5022 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5023 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5024 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5025 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5026 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5027 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5028 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5029 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5030 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5031 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5032 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5033 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5034 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5035 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5040 * Description of Newlib_Stdint_2 fix
5042 tSCC zNewlib_Stdint_2Name[] =
5046 * File name selection pattern
5048 tSCC zNewlib_Stdint_2List[] =
5051 * Machine/OS name selection pattern
5053 #define apzNewlib_Stdint_2Machs (const char**)NULL
5056 * content selection pattern - do fix if pattern found
5058 tSCC zNewlib_Stdint_2Select0[] =
5059 "@todo - Add support for wint_t types";
5061 #define NEWLIB_STDINT_2_TEST_CT 1
5062 static tTestDesc aNewlib_Stdint_2Tests[] = {
5063 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5066 * Fix Command Arguments for Newlib_Stdint_2
5068 static const char* apzNewlib_Stdint_2Patch[] = {
5070 "#define INTMAX_MAX __INTMAX_MAX__\n\
5071 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5072 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5073 #define WCHAR_MAX __WCHAR_MAX__\n\
5074 #define WCHAR_MIN __WCHAR_MIN__\n\
5075 #define WINT_MAX __WINT_MAX__\n\
5076 #define WINT_MIN __WINT_MIN__\n\n\
5078 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5081 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5083 * Description of Next_Math_Prefix fix
5085 tSCC zNext_Math_PrefixName[] =
5089 * File name selection pattern
5091 tSCC zNext_Math_PrefixList[] =
5094 * Machine/OS name selection pattern
5096 #define apzNext_Math_PrefixMachs (const char**)NULL
5099 * content selection pattern - do fix if pattern found
5101 tSCC zNext_Math_PrefixSelect0[] =
5102 "^extern[ \t]+double[ \t]+__const__[ \t]";
5104 #define NEXT_MATH_PREFIX_TEST_CT 1
5105 static tTestDesc aNext_Math_PrefixTests[] = {
5106 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5109 * Fix Command Arguments for Next_Math_Prefix
5111 static const char* apzNext_Math_PrefixPatch[] = {
5113 "extern double %1(",
5114 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5119 * Description of Next_Template fix
5121 tSCC zNext_TemplateName[] =
5125 * File name selection pattern
5127 tSCC zNext_TemplateList[] =
5130 * Machine/OS name selection pattern
5132 #define apzNext_TemplateMachs (const char**)NULL
5135 * content selection pattern - do fix if pattern found
5137 tSCC zNext_TemplateSelect0[] =
5140 #define NEXT_TEMPLATE_TEST_CT 1
5141 static tTestDesc aNext_TemplateTests[] = {
5142 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5145 * Fix Command Arguments for Next_Template
5147 static const char* apzNext_TemplatePatch[] = {
5150 "\\(([^)]*)[ \t]template\\)",
5153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5155 * Description of Next_Volitile fix
5157 tSCC zNext_VolitileName[] =
5161 * File name selection pattern
5163 tSCC zNext_VolitileList[] =
5166 * Machine/OS name selection pattern
5168 #define apzNext_VolitileMachs (const char**)NULL
5171 * content selection pattern - do fix if pattern found
5173 tSCC zNext_VolitileSelect0[] =
5174 "^extern[ \t]+volatile[ \t]+void[ \t]";
5176 #define NEXT_VOLITILE_TEST_CT 1
5177 static tTestDesc aNext_VolitileTests[] = {
5178 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5181 * Fix Command Arguments for Next_Volitile
5183 static const char* apzNext_VolitilePatch[] = {
5186 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5191 * Description of Next_Wait_Union fix
5193 tSCC zNext_Wait_UnionName[] =
5197 * File name selection pattern
5199 tSCC zNext_Wait_UnionList[] =
5202 * Machine/OS name selection pattern
5204 #define apzNext_Wait_UnionMachs (const char**)NULL
5207 * content selection pattern - do fix if pattern found
5209 tSCC zNext_Wait_UnionSelect0[] =
5210 "wait\\(union wait";
5212 #define NEXT_WAIT_UNION_TEST_CT 1
5213 static tTestDesc aNext_Wait_UnionTests[] = {
5214 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5217 * Fix Command Arguments for Next_Wait_Union
5219 static const char* apzNext_Wait_UnionPatch[] = {
5224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5226 * Description of Nodeent_Syntax fix
5228 tSCC zNodeent_SyntaxName[] =
5232 * File name selection pattern
5234 tSCC zNodeent_SyntaxList[] =
5235 "netdnet/dnetdb.h\0";
5237 * Machine/OS name selection pattern
5239 #define apzNodeent_SyntaxMachs (const char**)NULL
5242 * content selection pattern - do fix if pattern found
5244 tSCC zNodeent_SyntaxSelect0[] =
5245 "char[ \t]*\\*na_addr[ \t]*$";
5247 #define NODEENT_SYNTAX_TEST_CT 1
5248 static tTestDesc aNodeent_SyntaxTests[] = {
5249 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5252 * Fix Command Arguments for Nodeent_Syntax
5254 static const char* apzNodeent_SyntaxPatch[] = {
5259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5261 * Description of Openbsd_Null_Definition fix
5263 tSCC zOpenbsd_Null_DefinitionName[] =
5264 "openbsd_null_definition";
5267 * File name selection pattern
5269 tSCC zOpenbsd_Null_DefinitionList[] =
5270 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5272 * Machine/OS name selection pattern
5274 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5276 (const char*)NULL };
5279 * content selection pattern - do fix if pattern found
5281 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5284 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5285 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5286 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5289 * Fix Command Arguments for Openbsd_Null_Definition
5291 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5294 #ifdef __cplusplus\n\
5296 #define NULL\t__null\n\
5297 #else\t /* ! __GNUG__ */\n\
5299 #endif\t /* __GNUG__ */\n\
5300 #else\t /* ! __cplusplus */\n\
5301 #define NULL\t((void *)0)\n\
5302 #endif\t /* __cplusplus */\n\
5303 #endif\t /* !NULL */",
5304 "^#ifndef[ \t]*NULL\n\
5305 ^#ifdef[ \t]*__GNUG__\n\
5306 ^#define[ \t]*NULL[ \t]*__null\n\
5308 ^#define[ \t]*NULL[ \t]*0L\n\
5313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5315 * Description of Obstack_Lvalue_Cast fix
5317 tSCC zObstack_Lvalue_CastName[] =
5318 "obstack_lvalue_cast";
5321 * File name selection pattern
5323 tSCC zObstack_Lvalue_CastList[] =
5326 * Machine/OS name selection pattern
5328 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5331 * content selection pattern - do fix if pattern found
5333 tSCC zObstack_Lvalue_CastSelect0[] =
5334 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5336 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5337 static tTestDesc aObstack_Lvalue_CastTests[] = {
5338 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5341 * Fix Command Arguments for Obstack_Lvalue_Cast
5343 static const char* apzObstack_Lvalue_CastPatch[] = {
5345 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5350 * Description of Openbsd_Va_Start fix
5352 tSCC zOpenbsd_Va_StartName[] =
5356 * File name selection pattern
5358 tSCC zOpenbsd_Va_StartList[] =
5361 * Machine/OS name selection pattern
5363 tSCC* apzOpenbsd_Va_StartMachs[] = {
5365 (const char*)NULL };
5368 * content selection pattern - do fix if pattern found
5370 tSCC zOpenbsd_Va_StartSelect0[] =
5371 "__builtin_stdarg_start";
5373 #define OPENBSD_VA_START_TEST_CT 1
5374 static tTestDesc aOpenbsd_Va_StartTests[] = {
5375 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5378 * Fix Command Arguments for Openbsd_Va_Start
5380 static const char* apzOpenbsd_Va_StartPatch[] = {
5382 "__builtin_va_start",
5385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5387 * Description of Osf_Namespace_A fix
5389 tSCC zOsf_Namespace_AName[] =
5393 * File name selection pattern
5395 tSCC zOsf_Namespace_AList[] =
5396 "reg_types.h\0sys/lc_core.h\0";
5398 * Machine/OS name selection pattern
5400 #define apzOsf_Namespace_AMachs (const char**)NULL
5403 * perform the 'test' shell command - do fix on success
5405 tSCC zOsf_Namespace_ATest0[] =
5407 tSCC zOsf_Namespace_ATest1[] =
5408 " -r sys/lc_core.h";
5409 tSCC zOsf_Namespace_ATest2[] =
5410 " -n \"`grep '} regex_t;' reg_types.h`\"";
5411 tSCC zOsf_Namespace_ATest3[] =
5412 " -z \"`grep __regex_t regex.h`\"";
5414 #define OSF_NAMESPACE_A_TEST_CT 4
5415 static tTestDesc aOsf_Namespace_ATests[] = {
5416 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5417 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5418 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5419 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5422 * Fix Command Arguments for Osf_Namespace_A
5424 static const char* apzOsf_Namespace_APatch[] = {
5427 "reg(ex|off|match)_t",
5430 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5432 * Description of Osf_Namespace_C fix
5434 tSCC zOsf_Namespace_CName[] =
5438 * File name selection pattern
5440 tSCC zOsf_Namespace_CList[] =
5443 * Machine/OS name selection pattern
5445 #define apzOsf_Namespace_CMachs (const char**)NULL
5448 * content selection pattern - do fix if pattern found
5450 tSCC zOsf_Namespace_CSelect0[] =
5451 "#include <reg_types.h>.*";
5454 * perform the 'test' shell command - do fix on success
5456 tSCC zOsf_Namespace_CTest0[] =
5458 tSCC zOsf_Namespace_CTest1[] =
5459 " -r sys/lc_core.h";
5460 tSCC zOsf_Namespace_CTest2[] =
5461 " -n \"`grep '} regex_t;' reg_types.h`\"";
5462 tSCC zOsf_Namespace_CTest3[] =
5463 " -z \"`grep __regex_t regex.h`\"";
5465 #define OSF_NAMESPACE_C_TEST_CT 5
5466 static tTestDesc aOsf_Namespace_CTests[] = {
5467 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5468 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5469 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5470 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5471 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5474 * Fix Command Arguments for Osf_Namespace_C
5476 static const char* apzOsf_Namespace_CPatch[] = {
5479 typedef __regex_t\tregex_t;\n\
5480 typedef __regoff_t\tregoff_t;\n\
5481 typedef __regmatch_t\tregmatch_t;",
5484 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5486 * Description of Pthread_Incomplete_Struct_Argument fix
5488 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5489 "pthread_incomplete_struct_argument";
5492 * File name selection pattern
5494 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5497 * Machine/OS name selection pattern
5499 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5502 * content selection pattern - do fix if pattern found
5504 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5505 "struct __jmp_buf_tag";
5507 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5508 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5509 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5512 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5514 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5517 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5522 * Description of Read_Ret_Type fix
5524 tSCC zRead_Ret_TypeName[] =
5528 * File name selection pattern
5530 tSCC zRead_Ret_TypeList[] =
5533 * Machine/OS name selection pattern
5535 #define apzRead_Ret_TypeMachs (const char**)NULL
5538 * content selection pattern - do fix if pattern found
5540 tSCC zRead_Ret_TypeSelect0[] =
5541 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5543 #define READ_RET_TYPE_TEST_CT 1
5544 static tTestDesc aRead_Ret_TypeTests[] = {
5545 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5548 * Fix Command Arguments for Read_Ret_Type
5550 static const char* apzRead_Ret_TypePatch[] = {
5552 "extern unsigned int fread(), fwrite();\n\
5554 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5559 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5561 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5562 "rpc_xdr_lvalue_cast_a";
5565 * File name selection pattern
5567 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5570 * Machine/OS name selection pattern
5572 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5575 * content selection pattern - do fix if pattern found
5577 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5578 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5581 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5582 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5583 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5586 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5588 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5590 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5595 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5597 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5598 "rpc_xdr_lvalue_cast_b";
5601 * File name selection pattern
5603 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5606 * Machine/OS name selection pattern
5608 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5611 * content selection pattern - do fix if pattern found
5613 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5614 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5617 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5618 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5619 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5622 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5624 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5626 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5631 * Description of Rs6000_Double fix
5633 tSCC zRs6000_DoubleName[] =
5637 * File name selection pattern
5639 tSCC zRs6000_DoubleList[] =
5642 * Machine/OS name selection pattern
5644 #define apzRs6000_DoubleMachs (const char**)NULL
5647 * content selection pattern - do fix if pattern found
5649 tSCC zRs6000_DoubleSelect0[] =
5650 "[^a-zA-Z_]class\\(";
5652 #define RS6000_DOUBLE_TEST_CT 1
5653 static tTestDesc aRs6000_DoubleTests[] = {
5654 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5657 * Fix Command Arguments for Rs6000_Double
5659 static const char* apzRs6000_DoublePatch[] = {
5661 "#ifndef __cplusplus\n\
5664 "^.*[^a-zA-Z_]class\\(.*",
5667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5669 * Description of Rs6000_Fchmod fix
5671 tSCC zRs6000_FchmodName[] =
5675 * File name selection pattern
5677 tSCC zRs6000_FchmodList[] =
5680 * Machine/OS name selection pattern
5682 #define apzRs6000_FchmodMachs (const char**)NULL
5685 * content selection pattern - do fix if pattern found
5687 tSCC zRs6000_FchmodSelect0[] =
5688 "fchmod\\(char \\*";
5690 #define RS6000_FCHMOD_TEST_CT 1
5691 static tTestDesc aRs6000_FchmodTests[] = {
5692 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5695 * Fix Command Arguments for Rs6000_Fchmod
5697 static const char* apzRs6000_FchmodPatch[] = {
5702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5704 * Description of Rs6000_Param fix
5706 tSCC zRs6000_ParamName[] =
5710 * File name selection pattern
5712 tSCC zRs6000_ParamList[] =
5713 "stdio.h\0unistd.h\0";
5715 * Machine/OS name selection pattern
5717 #define apzRs6000_ParamMachs (const char**)NULL
5720 * content selection pattern - do fix if pattern found
5722 tSCC zRs6000_ParamSelect0[] =
5723 "rename\\(const char \\*old, const char \\*new\\)";
5725 #define RS6000_PARAM_TEST_CT 1
5726 static tTestDesc aRs6000_ParamTests[] = {
5727 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5730 * Fix Command Arguments for Rs6000_Param
5732 static const char* apzRs6000_ParamPatch[] = {
5734 "rename(const char *_old, const char *_new)",
5737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5739 * Description of Sco_Math fix
5741 tSCC zSco_MathName[] =
5745 * File name selection pattern
5747 tSCC zSco_MathList[] =
5748 "math.h\0*/math.h\0";
5750 * Machine/OS name selection pattern
5752 #define apzSco_MathMachs (const char**)NULL
5755 * content selection pattern - do fix if pattern found
5757 tSCC zSco_MathSelect0[] =
5758 "inline double abs";
5761 * content bypass pattern - skip fix if pattern found
5763 tSCC zSco_MathBypass0[] =
5766 #define SCO_MATH_TEST_CT 2
5767 static tTestDesc aSco_MathTests[] = {
5768 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5769 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5772 * Fix Command Arguments for Sco_Math
5774 static const char* apzSco_MathPatch[] = { sed_cmd_z,
5775 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5776 #ifndef __GNUC__\n",
5777 "-e", "/.*__builtin_generic/a\\\n\
5779 #define __fp_class(a) \\\\\\\n\
5780 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5781 __fpclassifyl(a), \\\\\\\n\
5782 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5783 __fpclassifyf(a),__fpclassify(a)))\\\n\
5785 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5786 #ifndef __GNUC__\n",
5787 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5788 #endif /* ! __GNUC__ */",
5791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5793 * Description of Solaris_Math_1 fix
5795 tSCC zSolaris_Math_1Name[] =
5799 * File name selection pattern
5801 tSCC zSolaris_Math_1List[] =
5804 * Machine/OS name selection pattern
5806 #define apzSolaris_Math_1Machs (const char**)NULL
5809 * content selection pattern - do fix if pattern found
5811 tSCC zSolaris_Math_1Select0[] =
5812 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5815 * content bypass pattern - skip fix if pattern found
5817 tSCC zSolaris_Math_1Bypass0[] =
5820 #define SOLARIS_MATH_1_TEST_CT 2
5821 static tTestDesc aSolaris_Math_1Tests[] = {
5822 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5823 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5826 * Fix Command Arguments for Solaris_Math_1
5828 static const char* apzSolaris_Math_1Patch[] = {
5830 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5831 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5836 * Description of Solaris_Math_2 fix
5838 tSCC zSolaris_Math_2Name[] =
5842 * File name selection pattern
5844 tSCC zSolaris_Math_2List[] =
5847 * Machine/OS name selection pattern
5849 #define apzSolaris_Math_2Machs (const char**)NULL
5852 * content selection pattern - do fix if pattern found
5854 tSCC zSolaris_Math_2Select0[] =
5855 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5858 * content bypass pattern - skip fix if pattern found
5860 tSCC zSolaris_Math_2Bypass0[] =
5863 #define SOLARIS_MATH_2_TEST_CT 2
5864 static tTestDesc aSolaris_Math_2Tests[] = {
5865 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5866 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5869 * Fix Command Arguments for Solaris_Math_2
5871 static const char* apzSolaris_Math_2Patch[] = {
5873 "#define\tINFINITY\t(__builtin_inff())",
5874 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5879 * Description of Solaris_Math_3 fix
5881 tSCC zSolaris_Math_3Name[] =
5885 * File name selection pattern
5887 tSCC zSolaris_Math_3List[] =
5890 * Machine/OS name selection pattern
5892 #define apzSolaris_Math_3Machs (const char**)NULL
5895 * content selection pattern - do fix if pattern found
5897 tSCC zSolaris_Math_3Select0[] =
5898 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5901 * content bypass pattern - skip fix if pattern found
5903 tSCC zSolaris_Math_3Bypass0[] =
5906 #define SOLARIS_MATH_3_TEST_CT 2
5907 static tTestDesc aSolaris_Math_3Tests[] = {
5908 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5909 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5912 * Fix Command Arguments for Solaris_Math_3
5914 static const char* apzSolaris_Math_3Patch[] = {
5916 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5917 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5922 * Description of Solaris_Math_4 fix
5924 tSCC zSolaris_Math_4Name[] =
5928 * File name selection pattern
5930 tSCC zSolaris_Math_4List[] =
5933 * Machine/OS name selection pattern
5935 #define apzSolaris_Math_4Machs (const char**)NULL
5938 * content selection pattern - do fix if pattern found
5940 tSCC zSolaris_Math_4Select0[] =
5941 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5944 * content bypass pattern - skip fix if pattern found
5946 tSCC zSolaris_Math_4Bypass0[] =
5949 #define SOLARIS_MATH_4_TEST_CT 2
5950 static tTestDesc aSolaris_Math_4Tests[] = {
5951 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5952 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5955 * Fix Command Arguments for Solaris_Math_4
5957 static const char* apzSolaris_Math_4Patch[] = {
5959 "#define\tfpclassify(x) \\\n\
5960 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
5961 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5966 * Description of Solaris_Math_8 fix
5968 tSCC zSolaris_Math_8Name[] =
5972 * File name selection pattern
5974 tSCC zSolaris_Math_8List[] =
5977 * Machine/OS name selection pattern
5979 #define apzSolaris_Math_8Machs (const char**)NULL
5982 * content selection pattern - do fix if pattern found
5984 tSCC zSolaris_Math_8Select0[] =
5985 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5988 * content bypass pattern - skip fix if pattern found
5990 tSCC zSolaris_Math_8Bypass0[] =
5993 #define SOLARIS_MATH_8_TEST_CT 2
5994 static tTestDesc aSolaris_Math_8Tests[] = {
5995 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5996 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5999 * Fix Command Arguments for Solaris_Math_8
6001 static const char* apzSolaris_Math_8Patch[] = {
6003 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6004 \t\t\t ? __builtin_signbitf(x) \\\n\
6005 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6006 \t\t\t ? __builtin_signbitl(x) \\\n\
6007 \t\t\t : __builtin_signbit(x))",
6008 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6013 * Description of Solaris_Math_9 fix
6015 tSCC zSolaris_Math_9Name[] =
6019 * File name selection pattern
6021 tSCC zSolaris_Math_9List[] =
6024 * Machine/OS name selection pattern
6026 #define apzSolaris_Math_9Machs (const char**)NULL
6029 * content selection pattern - do fix if pattern found
6031 tSCC zSolaris_Math_9Select0[] =
6032 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6035 * content bypass pattern - skip fix if pattern found
6037 tSCC zSolaris_Math_9Bypass0[] =
6040 #define SOLARIS_MATH_9_TEST_CT 2
6041 static tTestDesc aSolaris_Math_9Tests[] = {
6042 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6043 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6046 * Fix Command Arguments for Solaris_Math_9
6048 static const char* apzSolaris_Math_9Patch[] = {
6050 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6051 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6056 * Description of Solaris_Math_10 fix
6058 tSCC zSolaris_Math_10Name[] =
6062 * File name selection pattern
6064 tSCC zSolaris_Math_10List[] =
6067 * Machine/OS name selection pattern
6069 #define apzSolaris_Math_10Machs (const char**)NULL
6072 * content selection pattern - do fix if pattern found
6074 tSCC zSolaris_Math_10Select0[] =
6075 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6077 #define SOLARIS_MATH_10_TEST_CT 1
6078 static tTestDesc aSolaris_Math_10Tests[] = {
6079 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6082 * Fix Command Arguments for Solaris_Math_10
6084 static const char* apzSolaris_Math_10Patch[] = {
6086 "#define\tisinf(x) __builtin_isinf(x)",
6087 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6088 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6089 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6090 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6095 * Description of Solaris_Mutex_Init_2 fix
6097 tSCC zSolaris_Mutex_Init_2Name[] =
6098 "solaris_mutex_init_2";
6101 * File name selection pattern
6103 tSCC zSolaris_Mutex_Init_2List[] =
6106 * Machine/OS name selection pattern
6108 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6109 "*-*-solaris2.[0-9]",
6110 "*-*-solaris2.[0-9][!0-9]*",
6111 (const char*)NULL };
6114 * content selection pattern - do fix if pattern found
6116 tSCC zSolaris_Mutex_Init_2Select0[] =
6117 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6119 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6120 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6121 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6124 * Fix Command Arguments for Solaris_Mutex_Init_2
6126 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6128 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6133 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6134 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6139 * Description of Solaris_Rwlock_Init_1 fix
6141 tSCC zSolaris_Rwlock_Init_1Name[] =
6142 "solaris_rwlock_init_1";
6145 * File name selection pattern
6147 tSCC zSolaris_Rwlock_Init_1List[] =
6150 * Machine/OS name selection pattern
6152 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6154 (const char*)NULL };
6157 * content selection pattern - do fix if pattern found
6159 tSCC zSolaris_Rwlock_Init_1Select0[] =
6160 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6162 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6163 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6164 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6167 * Fix Command Arguments for Solaris_Rwlock_Init_1
6169 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6171 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6174 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6176 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6181 * Description of Solaris_Once_Init_1 fix
6183 tSCC zSolaris_Once_Init_1Name[] =
6184 "solaris_once_init_1";
6187 * File name selection pattern
6189 tSCC zSolaris_Once_Init_1List[] =
6192 * Machine/OS name selection pattern
6194 tSCC* apzSolaris_Once_Init_1Machs[] = {
6196 (const char*)NULL };
6199 * content selection pattern - do fix if pattern found
6201 tSCC zSolaris_Once_Init_1Select0[] =
6202 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6204 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6205 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6206 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6209 * Fix Command Arguments for Solaris_Once_Init_1
6211 static const char* apzSolaris_Once_Init_1Patch[] = {
6214 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6219 * Description of Solaris_Once_Init_2 fix
6221 tSCC zSolaris_Once_Init_2Name[] =
6222 "solaris_once_init_2";
6225 * File name selection pattern
6227 tSCC zSolaris_Once_Init_2List[] =
6230 * Machine/OS name selection pattern
6232 tSCC* apzSolaris_Once_Init_2Machs[] = {
6233 "*-*-solaris2.[0-9]",
6234 "*-*-solaris2.[0-9][!0-9]*",
6235 (const char*)NULL };
6238 * content selection pattern - do fix if pattern found
6240 tSCC zSolaris_Once_Init_2Select0[] =
6241 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6243 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6244 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6245 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6248 * Fix Command Arguments for Solaris_Once_Init_2
6250 static const char* apzSolaris_Once_Init_2Patch[] = {
6252 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6255 %1{0}, {0}, {0}, {%3}%4\n\
6257 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6262 * Description of Solaris_Int_Const fix
6264 tSCC zSolaris_Int_ConstName[] =
6265 "solaris_int_const";
6268 * File name selection pattern
6270 tSCC zSolaris_Int_ConstList[] =
6271 "sys/int_const.h\0";
6273 * Machine/OS name selection pattern
6275 #define apzSolaris_Int_ConstMachs (const char**)NULL
6278 * content selection pattern - do fix if pattern found
6280 tSCC zSolaris_Int_ConstSelect0[] =
6281 "@\\(#\\)int_const.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6283 #define SOLARIS_INT_CONST_TEST_CT 1
6284 static tTestDesc aSolaris_Int_ConstTests[] = {
6285 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6288 * Fix Command Arguments for Solaris_Int_Const
6290 static const char* apzSolaris_Int_ConstPatch[] = {
6292 "#define\tUINT8_C(c)\t(c)\n\
6294 #define\tUINT16_C(c)\t(c)",
6295 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6297 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*",
6300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6302 * Description of Solaris_Int_Limits_1 fix
6304 tSCC zSolaris_Int_Limits_1Name[] =
6305 "solaris_int_limits_1";
6308 * File name selection pattern
6310 tSCC zSolaris_Int_Limits_1List[] =
6311 "sys/int_limits.h\0";
6313 * Machine/OS name selection pattern
6315 #define apzSolaris_Int_Limits_1Machs (const char**)NULL
6318 * content selection pattern - do fix if pattern found
6320 tSCC zSolaris_Int_Limits_1Select0[] =
6321 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6323 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6324 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6325 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6328 * Fix Command Arguments for Solaris_Int_Limits_1
6330 static const char* apzSolaris_Int_Limits_1Patch[] = {
6332 "#define\tUINT8_MAX\t(255)\n\
6333 #define\tUINT16_MAX\t(65535)",
6334 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6335 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)",
6338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6340 * Description of Solaris_Int_Limits_2 fix
6342 tSCC zSolaris_Int_Limits_2Name[] =
6343 "solaris_int_limits_2";
6346 * File name selection pattern
6348 tSCC zSolaris_Int_Limits_2List[] =
6349 "sys/int_limits.h\0";
6351 * Machine/OS name selection pattern
6353 #define apzSolaris_Int_Limits_2Machs (const char**)NULL
6356 * content selection pattern - do fix if pattern found
6358 tSCC zSolaris_Int_Limits_2Select0[] =
6359 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6361 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6362 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6363 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6366 * Fix Command Arguments for Solaris_Int_Limits_2
6368 static const char* apzSolaris_Int_Limits_2Patch[] = {
6370 "#define\t%1_FAST16_%2 %132_%2",
6371 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*",
6374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6376 * Description of Solaris_Int_Types fix
6378 tSCC zSolaris_Int_TypesName[] =
6379 "solaris_int_types";
6382 * File name selection pattern
6384 tSCC zSolaris_Int_TypesList[] =
6385 "sys/int_types.h\0";
6387 * Machine/OS name selection pattern
6389 #define apzSolaris_Int_TypesMachs (const char**)NULL
6392 * content selection pattern - do fix if pattern found
6394 tSCC zSolaris_Int_TypesSelect0[] =
6395 "__STDC__ - 0 == 0";
6398 * content bypass pattern - skip fix if pattern found
6400 tSCC zSolaris_Int_TypesBypass0[] =
6403 #define SOLARIS_INT_TYPES_TEST_CT 2
6404 static tTestDesc aSolaris_Int_TypesTests[] = {
6405 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6406 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6409 * Fix Command Arguments for Solaris_Int_Types
6411 static const char* apzSolaris_Int_TypesPatch[] = {
6413 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6418 * Description of Solaris_Stdio_Tag fix
6420 tSCC zSolaris_Stdio_TagName[] =
6421 "solaris_stdio_tag";
6424 * File name selection pattern
6426 tSCC zSolaris_Stdio_TagList[] =
6429 * Machine/OS name selection pattern
6431 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6434 * content selection pattern - do fix if pattern found
6436 tSCC zSolaris_Stdio_TagSelect0[] =
6437 "__cplusplus < 54321L";
6440 * content bypass pattern - skip fix if pattern found
6442 tSCC zSolaris_Stdio_TagBypass0[] =
6445 #define SOLARIS_STDIO_TAG_TEST_CT 2
6446 static tTestDesc aSolaris_Stdio_TagTests[] = {
6447 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6448 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6451 * Fix Command Arguments for Solaris_Stdio_Tag
6453 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
6454 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6459 * Description of Statsswtch fix
6461 tSCC zStatsswtchName[] =
6465 * File name selection pattern
6467 tSCC zStatsswtchList[] =
6470 * Machine/OS name selection pattern
6472 #define apzStatsswtchMachs (const char**)NULL
6475 * content selection pattern - do fix if pattern found
6477 tSCC zStatsswtchSelect0[] =
6480 #define STATSSWTCH_TEST_CT 1
6481 static tTestDesc aStatsswtchTests[] = {
6482 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6485 * Fix Command Arguments for Statsswtch
6487 static const char* apzStatsswtchPatch[] = {
6492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6494 * Description of Stdio_Stdarg_H fix
6496 tSCC zStdio_Stdarg_HName[] =
6500 * File name selection pattern
6502 tSCC zStdio_Stdarg_HList[] =
6505 * Machine/OS name selection pattern
6507 tSCC* apzStdio_Stdarg_HMachs[] = {
6508 "*-*-solaris2.1[0-9]*",
6509 (const char*)NULL };
6512 * content bypass pattern - skip fix if pattern found
6514 tSCC zStdio_Stdarg_HBypass0[] =
6515 "include.*(stdarg.h|machine/ansi.h)";
6517 #define STDIO_STDARG_H_TEST_CT 1
6518 static tTestDesc aStdio_Stdarg_HTests[] = {
6519 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6522 * Fix Command Arguments for Stdio_Stdarg_H
6524 static const char* apzStdio_Stdarg_HPatch[] = {
6526 "#define __need___va_list\n\
6527 #include <stdarg.h>\n",
6530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6532 * Description of Stdio_Va_List fix
6534 tSCC zStdio_Va_ListName[] =
6538 * File name selection pattern
6540 tSCC zStdio_Va_ListList[] =
6541 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6543 * Machine/OS name selection pattern
6545 tSCC* apzStdio_Va_ListMachs[] = {
6546 "*-*-solaris2.1[0-9]*",
6547 (const char*)NULL };
6550 * content bypass pattern - skip fix if pattern found
6552 tSCC zStdio_Va_ListBypass0[] =
6553 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6555 #define STDIO_VA_LIST_TEST_CT 1
6556 static tTestDesc aStdio_Va_ListTests[] = {
6557 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6560 * Fix Command Arguments for Stdio_Va_List
6562 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
6563 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6564 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6565 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6566 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6567 s@ va_list@ __not_va_list__@\n\
6568 s@\\*va_list@*__not_va_list__@\n\
6569 s@ __va_list)@ __gnuc_va_list)@\n\
6570 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6571 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6572 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6573 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6574 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6575 s@VA_LIST@DUMMY_VA_LIST@\n\
6576 s@_Va_LIST@_VA_LIST@",
6579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6581 * Description of Stdio_Va_List_Clients fix
6583 tSCC zStdio_Va_List_ClientsName[] =
6584 "stdio_va_list_clients";
6587 * File name selection pattern
6589 tSCC zStdio_Va_List_ClientsList[] =
6590 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6592 * Machine/OS name selection pattern
6594 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6597 * content bypass pattern - skip fix if pattern found
6599 tSCC zStdio_Va_List_ClientsBypass0[] =
6600 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6601 tSCC zStdio_Va_List_ClientsBypass1[] =
6602 "include <stdarg\\.h>|#ifdef va_start";
6604 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6605 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6606 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6607 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6610 * Fix Command Arguments for Stdio_Va_List_Clients
6612 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
6613 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6614 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6615 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6616 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6617 s@ va_list@ __not_va_list__@\n\
6618 s@\\*va_list@*__not_va_list__@\n\
6619 s@ __va_list)@ __gnuc_va_list)@\n\
6620 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6621 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6622 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6623 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6624 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6625 s@VA_LIST@DUMMY_VA_LIST@\n\
6626 s@_Va_LIST@_VA_LIST@",
6629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6631 * Description of Strict_Ansi_Not fix
6633 tSCC zStrict_Ansi_NotName[] =
6637 * File name selection pattern
6639 #define zStrict_Ansi_NotList (char*)NULL
6641 * Machine/OS name selection pattern
6643 #define apzStrict_Ansi_NotMachs (const char**)NULL
6646 * content selection pattern - do fix if pattern found
6648 tSCC zStrict_Ansi_NotSelect0[] =
6649 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6652 * content bypass pattern - skip fix if pattern found
6654 tSCC zStrict_Ansi_NotBypass0[] =
6655 "GNU and MIPS C compilers define __STDC__ differently";
6656 tSCC zStrict_Ansi_NotBypass1[] =
6657 "__SCO_VERSION__.*__STDC__ != 1";
6660 * perform the C function call test
6662 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6664 #define STRICT_ANSI_NOT_TEST_CT 4
6665 static tTestDesc aStrict_Ansi_NotTests[] = {
6666 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6667 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6668 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6669 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6672 * Fix Command Arguments for Strict_Ansi_Not
6674 static const char* apzStrict_Ansi_NotPatch[] = {
6676 "%1 !defined(__STRICT_ANSI__)",
6679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6681 * Description of Strict_Ansi_Not_Ctd fix
6683 tSCC zStrict_Ansi_Not_CtdName[] =
6684 "strict_ansi_not_ctd";
6687 * File name selection pattern
6689 tSCC zStrict_Ansi_Not_CtdList[] =
6690 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6692 * Machine/OS name selection pattern
6694 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6697 * content selection pattern - do fix if pattern found
6699 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6700 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6703 * perform the C function call test
6705 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6707 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6708 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6709 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6710 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6713 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6715 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6717 "%1 !defined(__STRICT_ANSI__)",
6720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6722 * Description of Strict_Ansi_Only fix
6724 tSCC zStrict_Ansi_OnlyName[] =
6728 * File name selection pattern
6730 #define zStrict_Ansi_OnlyList (char*)NULL
6732 * Machine/OS name selection pattern
6734 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6737 * content selection pattern - do fix if pattern found
6739 tSCC zStrict_Ansi_OnlySelect0[] =
6740 "^([ \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)";
6743 * perform the C function call test
6745 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6747 #define STRICT_ANSI_ONLY_TEST_CT 2
6748 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6749 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6750 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6753 * Fix Command Arguments for Strict_Ansi_Only
6755 static const char* apzStrict_Ansi_OnlyPatch[] = {
6757 "%1 defined(__STRICT_ANSI__)",
6760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6762 * Description of Struct_File fix
6764 tSCC zStruct_FileName[] =
6768 * File name selection pattern
6770 tSCC zStruct_FileList[] =
6773 * Machine/OS name selection pattern
6775 #define apzStruct_FileMachs (const char**)NULL
6778 * content selection pattern - do fix if pattern found
6780 tSCC zStruct_FileSelect0[] =
6781 "^.*xdrstdio_create.*struct __file_s";
6783 #define STRUCT_FILE_TEST_CT 1
6784 static tTestDesc aStruct_FileTests[] = {
6785 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6788 * Fix Command Arguments for Struct_File
6790 static const char* apzStruct_FilePatch[] = {
6792 "struct __file_s;\n\
6796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6798 * Description of Struct_Sockaddr fix
6800 tSCC zStruct_SockaddrName[] =
6804 * File name selection pattern
6806 tSCC zStruct_SockaddrList[] =
6809 * Machine/OS name selection pattern
6811 #define apzStruct_SockaddrMachs (const char**)NULL
6814 * content selection pattern - do fix if pattern found
6816 tSCC zStruct_SockaddrSelect0[] =
6817 "^.*authdes_create.*struct sockaddr[^_]";
6820 * content bypass pattern - skip fix if pattern found
6822 tSCC zStruct_SockaddrBypass0[] =
6824 tSCC zStruct_SockaddrBypass1[] =
6825 "struct sockaddr;\n";
6827 #define STRUCT_SOCKADDR_TEST_CT 3
6828 static tTestDesc aStruct_SockaddrTests[] = {
6829 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6830 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6831 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6834 * Fix Command Arguments for Struct_Sockaddr
6836 static const char* apzStruct_SockaddrPatch[] = {
6838 "struct sockaddr;\n\
6842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6844 * Description of Sun_Auth_Proto fix
6846 tSCC zSun_Auth_ProtoName[] =
6850 * File name selection pattern
6852 tSCC zSun_Auth_ProtoList[] =
6853 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6855 * Machine/OS name selection pattern
6857 #define apzSun_Auth_ProtoMachs (const char**)NULL
6860 * content selection pattern - do fix if pattern found
6862 tSCC zSun_Auth_ProtoSelect0[] =
6863 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6866 * content bypass pattern - skip fix if pattern found
6868 tSCC zSun_Auth_ProtoBypass0[] =
6871 #define SUN_AUTH_PROTO_TEST_CT 2
6872 static tTestDesc aSun_Auth_ProtoTests[] = {
6873 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6874 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6877 * Fix Command Arguments for Sun_Auth_Proto
6879 static const char* apzSun_Auth_ProtoPatch[] = {
6881 "#ifdef __cplusplus\n\
6886 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6889 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6891 * Description of Sun_Bogus_Ifdef fix
6893 tSCC zSun_Bogus_IfdefName[] =
6897 * File name selection pattern
6899 tSCC zSun_Bogus_IfdefList[] =
6900 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6902 * Machine/OS name selection pattern
6904 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6907 * content selection pattern - do fix if pattern found
6909 tSCC zSun_Bogus_IfdefSelect0[] =
6910 "#ifdef(.*\\|\\|.*)";
6912 #define SUN_BOGUS_IFDEF_TEST_CT 1
6913 static tTestDesc aSun_Bogus_IfdefTests[] = {
6914 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6917 * Fix Command Arguments for Sun_Bogus_Ifdef
6919 static const char* apzSun_Bogus_IfdefPatch[] = {
6924 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6926 * Description of Sun_Catmacro fix
6928 tSCC zSun_CatmacroName[] =
6932 * File name selection pattern
6934 tSCC zSun_CatmacroList[] =
6935 "pixrect/memvar.h\0";
6937 * Machine/OS name selection pattern
6939 #define apzSun_CatmacroMachs (const char**)NULL
6942 * content selection pattern - do fix if pattern found
6944 tSCC zSun_CatmacroSelect0[] =
6945 "^#define[ \t]+CAT\\(a,b\\).*";
6947 #define SUN_CATMACRO_TEST_CT 1
6948 static tTestDesc aSun_CatmacroTests[] = {
6949 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6952 * Fix Command Arguments for Sun_Catmacro
6954 static const char* apzSun_CatmacroPatch[] = {
6957 # define CAT(a,b) a##b\n\
6963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6965 * Description of Sun_Malloc fix
6967 tSCC zSun_MallocName[] =
6971 * File name selection pattern
6973 tSCC zSun_MallocList[] =
6976 * Machine/OS name selection pattern
6978 #define apzSun_MallocMachs (const char**)NULL
6981 * content bypass pattern - skip fix if pattern found
6983 tSCC zSun_MallocBypass0[] =
6984 "_CLASSIC_ANSI_TYPES";
6986 #define SUN_MALLOC_TEST_CT 1
6987 static tTestDesc aSun_MallocTests[] = {
6988 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6991 * Fix Command Arguments for Sun_Malloc
6993 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
6994 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6995 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6996 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6997 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6998 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7003 * Description of Sun_Rusers_Semi fix
7005 tSCC zSun_Rusers_SemiName[] =
7009 * File name selection pattern
7011 tSCC zSun_Rusers_SemiList[] =
7012 "rpcsvc/rusers.h\0";
7014 * Machine/OS name selection pattern
7016 #define apzSun_Rusers_SemiMachs (const char**)NULL
7019 * content selection pattern - do fix if pattern found
7021 tSCC zSun_Rusers_SemiSelect0[] =
7024 #define SUN_RUSERS_SEMI_TEST_CT 1
7025 static tTestDesc aSun_Rusers_SemiTests[] = {
7026 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7029 * Fix Command Arguments for Sun_Rusers_Semi
7031 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7032 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7035 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7037 * Description of Sun_Signal fix
7039 tSCC zSun_SignalName[] =
7043 * File name selection pattern
7045 tSCC zSun_SignalList[] =
7046 "sys/signal.h\0signal.h\0";
7048 * Machine/OS name selection pattern
7050 #define apzSun_SignalMachs (const char**)NULL
7053 * content selection pattern - do fix if pattern found
7055 tSCC zSun_SignalSelect0[] =
7056 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7058 #define SUN_SIGNAL_TEST_CT 1
7059 static tTestDesc aSun_SignalTests[] = {
7060 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7063 * Fix Command Arguments for Sun_Signal
7065 static const char* apzSun_SignalPatch[] = {
7067 "#ifdef __cplusplus\n\
7068 void\t(*signal(...))(...);\n\
7074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7076 * Description of Sunos_Strlen fix
7078 tSCC zSunos_StrlenName[] =
7082 * File name selection pattern
7084 tSCC zSunos_StrlenList[] =
7087 * Machine/OS name selection pattern
7089 #define apzSunos_StrlenMachs (const char**)NULL
7092 * content selection pattern - do fix if pattern found
7094 tSCC zSunos_StrlenSelect0[] =
7095 "int[ \t]*strlen\\(\\);(.*)";
7097 #define SUNOS_STRLEN_TEST_CT 1
7098 static tTestDesc aSunos_StrlenTests[] = {
7099 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7102 * Fix Command Arguments for Sunos_Strlen
7104 static const char* apzSunos_StrlenPatch[] = {
7106 "__SIZE_TYPE__ strlen();%1",
7109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7111 * Description of Svr4_Disable_Opt fix
7113 tSCC zSvr4_Disable_OptName[] =
7117 * File name selection pattern
7119 tSCC zSvr4_Disable_OptList[] =
7122 * Machine/OS name selection pattern
7124 #define apzSvr4_Disable_OptMachs (const char**)NULL
7127 * content selection pattern - do fix if pattern found
7129 tSCC zSvr4_Disable_OptSelect0[] =
7130 "#define.*__std_hdr_";
7132 #define SVR4_DISABLE_OPT_TEST_CT 1
7133 static tTestDesc aSvr4_Disable_OptTests[] = {
7134 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7137 * Fix Command Arguments for Svr4_Disable_Opt
7139 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7140 "-e", "/#define.*__std_hdr_/d",
7143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7145 * Description of Svr4_Getcwd fix
7147 tSCC zSvr4_GetcwdName[] =
7151 * File name selection pattern
7153 tSCC zSvr4_GetcwdList[] =
7154 "stdlib.h\0unistd.h\0prototypes.h\0";
7156 * Machine/OS name selection pattern
7158 #define apzSvr4_GetcwdMachs (const char**)NULL
7161 * content selection pattern - do fix if pattern found
7163 tSCC zSvr4_GetcwdSelect0[] =
7164 "getcwd\\(char \\*, int\\)";
7166 #define SVR4_GETCWD_TEST_CT 1
7167 static tTestDesc aSvr4_GetcwdTests[] = {
7168 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7171 * Fix Command Arguments for Svr4_Getcwd
7173 static const char* apzSvr4_GetcwdPatch[] = {
7175 "getcwd(char *, size_t)",
7178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7180 * Description of Svr4_Profil fix
7182 tSCC zSvr4_ProfilName[] =
7186 * File name selection pattern
7188 tSCC zSvr4_ProfilList[] =
7189 "stdlib.h\0unistd.h\0";
7191 * Machine/OS name selection pattern
7193 #define apzSvr4_ProfilMachs (const char**)NULL
7196 * content selection pattern - do fix if pattern found
7198 tSCC zSvr4_ProfilSelect0[] =
7199 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7202 * content bypass pattern - skip fix if pattern found
7204 tSCC zSvr4_ProfilBypass0[] =
7207 #define SVR4_PROFIL_TEST_CT 2
7208 static tTestDesc aSvr4_ProfilTests[] = {
7209 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7210 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7213 * Fix Command Arguments for Svr4_Profil
7215 static const char* apzSvr4_ProfilPatch[] = {
7217 "profil(unsigned short *, size_t, int, unsigned int)",
7220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7222 * Description of Svr4_Sighandler_Type fix
7224 tSCC zSvr4_Sighandler_TypeName[] =
7225 "svr4_sighandler_type";
7228 * File name selection pattern
7230 tSCC zSvr4_Sighandler_TypeList[] =
7233 * Machine/OS name selection pattern
7235 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7238 * content selection pattern - do fix if pattern found
7240 tSCC zSvr4_Sighandler_TypeSelect0[] =
7241 "void *\\(\\*\\)\\(\\)";
7243 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7244 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7245 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7248 * Fix Command Arguments for Svr4_Sighandler_Type
7250 static const char* apzSvr4_Sighandler_TypePatch[] = {
7255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7257 * Description of Svr4_Undeclared_Getrnge fix
7259 tSCC zSvr4_Undeclared_GetrngeName[] =
7260 "svr4_undeclared_getrnge";
7263 * File name selection pattern
7265 tSCC zSvr4_Undeclared_GetrngeList[] =
7268 * Machine/OS name selection pattern
7270 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7273 * content selection pattern - do fix if pattern found
7275 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7279 * content bypass pattern - skip fix if pattern found
7281 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7282 "static void getrnge";
7284 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7285 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7286 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7287 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7290 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7292 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7295 static int getrnge ();",
7296 "^static int[ \t]+size;",
7299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7301 * Description of Sysv68_String fix
7303 tSCC zSysv68_StringName[] =
7307 * File name selection pattern
7309 tSCC zSysv68_StringList[] =
7310 "testing.h\0string.h\0";
7312 * Machine/OS name selection pattern
7314 #define apzSysv68_StringMachs (const char**)NULL
7317 * content bypass pattern - skip fix if pattern found
7319 tSCC zSysv68_StringBypass0[] =
7320 "_CLASSIC_ANSI_TYPES";
7322 #define SYSV68_STRING_TEST_CT 1
7323 static tTestDesc aSysv68_StringTests[] = {
7324 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7327 * Fix Command Arguments for Sysv68_String
7329 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7330 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7331 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7332 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7333 "-e", "/^extern char$/N",
7334 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7335 "-e", "/^extern int$/N",
7336 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7337 "-e", "/^\tstrncmp(),$/N",
7338 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7339 extern unsigned int\\\n\
7343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7345 * Description of Sysz_Stdlib_For_Sun fix
7347 tSCC zSysz_Stdlib_For_SunName[] =
7348 "sysz_stdlib_for_sun";
7351 * File name selection pattern
7353 tSCC zSysz_Stdlib_For_SunList[] =
7356 * Machine/OS name selection pattern
7358 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7361 * content selection pattern - do fix if pattern found
7363 tSCC zSysz_Stdlib_For_SunSelect0[] =
7364 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7367 * content bypass pattern - skip fix if pattern found
7369 tSCC zSysz_Stdlib_For_SunBypass0[] =
7370 "_CLASSIC_ANSI_TYPES";
7372 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7373 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7374 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7375 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7378 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7380 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7387 * Description of Thread_Keyword fix
7389 tSCC zThread_KeywordName[] =
7393 * File name selection pattern
7395 tSCC zThread_KeywordList[] =
7396 "pthread.h\0bits/sigthread.h\0";
7398 * Machine/OS name selection pattern
7400 #define apzThread_KeywordMachs (const char**)NULL
7403 * content selection pattern - do fix if pattern found
7405 tSCC zThread_KeywordSelect0[] =
7406 "([* ])__thread([,)])";
7408 #define THREAD_KEYWORD_TEST_CT 1
7409 static tTestDesc aThread_KeywordTests[] = {
7410 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7413 * Fix Command Arguments for Thread_Keyword
7415 static const char* apzThread_KeywordPatch[] = {
7420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7422 * Description of Tinfo_Cplusplus fix
7424 tSCC zTinfo_CplusplusName[] =
7428 * File name selection pattern
7430 tSCC zTinfo_CplusplusList[] =
7433 * Machine/OS name selection pattern
7435 #define apzTinfo_CplusplusMachs (const char**)NULL
7438 * content selection pattern - do fix if pattern found
7440 tSCC zTinfo_CplusplusSelect0[] =
7443 #define TINFO_CPLUSPLUS_TEST_CT 1
7444 static tTestDesc aTinfo_CplusplusTests[] = {
7445 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7448 * Fix Command Arguments for Tinfo_Cplusplus
7450 static const char* apzTinfo_CplusplusPatch[] = {
7455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7457 * Description of Ultrix_Const fix
7459 tSCC zUltrix_ConstName[] =
7463 * File name selection pattern
7465 tSCC zUltrix_ConstList[] =
7468 * Machine/OS name selection pattern
7470 #define apzUltrix_ConstMachs (const char**)NULL
7473 * content selection pattern - do fix if pattern found
7475 tSCC zUltrix_ConstSelect0[] =
7476 "perror\\( char \\*";
7478 #define ULTRIX_CONST_TEST_CT 1
7479 static tTestDesc aUltrix_ConstTests[] = {
7480 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7483 * Fix Command Arguments for Ultrix_Const
7485 static const char* apzUltrix_ConstPatch[] = {
7488 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7493 * Description of Ultrix_Const2 fix
7495 tSCC zUltrix_Const2Name[] =
7499 * File name selection pattern
7501 tSCC zUltrix_Const2List[] =
7504 * Machine/OS name selection pattern
7506 #define apzUltrix_Const2Machs (const char**)NULL
7509 * content selection pattern - do fix if pattern found
7511 tSCC zUltrix_Const2Select0[] =
7512 "\\*fopen\\( char \\*";
7514 #define ULTRIX_CONST2_TEST_CT 1
7515 static tTestDesc aUltrix_Const2Tests[] = {
7516 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7519 * Fix Command Arguments for Ultrix_Const2
7521 static const char* apzUltrix_Const2Patch[] = {
7523 "%1( const char *%3, const char *",
7524 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7529 * Description of Va_I960_Macro fix
7531 tSCC zVa_I960_MacroName[] =
7535 * File name selection pattern
7537 tSCC zVa_I960_MacroList[] =
7538 "arch/i960/archI960.h\0";
7540 * Machine/OS name selection pattern
7542 #define apzVa_I960_MacroMachs (const char**)NULL
7545 * content selection pattern - do fix if pattern found
7547 tSCC zVa_I960_MacroSelect0[] =
7548 "__(vsiz|vali|vpad|alignof__)";
7550 #define VA_I960_MACRO_TEST_CT 1
7551 static tTestDesc aVa_I960_MacroTests[] = {
7552 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7555 * Fix Command Arguments for Va_I960_Macro
7557 static const char* apzVa_I960_MacroPatch[] = {
7562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7564 * Description of Void_Null fix
7566 tSCC zVoid_NullName[] =
7570 * File name selection pattern
7572 tSCC zVoid_NullList[] =
7573 "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";
7575 * Machine/OS name selection pattern
7577 #define apzVoid_NullMachs (const char**)NULL
7580 * content selection pattern - do fix if pattern found
7582 tSCC zVoid_NullSelect0[] =
7583 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
7586 * content bypass pattern - skip fix if pattern found
7588 tSCC zVoid_NullBypass0[] =
7591 #define VOID_NULL_TEST_CT 2
7592 static tTestDesc aVoid_NullTests[] = {
7593 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
7594 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
7597 * Fix Command Arguments for Void_Null
7599 static const char* apzVoid_NullPatch[] = {
7604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7606 * Description of Vxworks_Gcc_Problem fix
7608 tSCC zVxworks_Gcc_ProblemName[] =
7609 "vxworks_gcc_problem";
7612 * File name selection pattern
7614 tSCC zVxworks_Gcc_ProblemList[] =
7615 "types/vxTypesBase.h\0";
7617 * Machine/OS name selection pattern
7619 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7622 * content selection pattern - do fix if pattern found
7624 tSCC zVxworks_Gcc_ProblemSelect0[] =
7625 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7627 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
7628 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
7629 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
7632 * Fix Command Arguments for Vxworks_Gcc_Problem
7634 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
7635 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
7636 "-e", "/[ \t]size_t/i\\\n\
7637 #ifndef _GCC_SIZE_T\\\n\
7638 #define _GCC_SIZE_T\n",
7639 "-e", "/[ \t]size_t/a\\\n\
7641 "-e", "/[ \t]ptrdiff_t/i\\\n\
7642 #ifndef _GCC_PTRDIFF_T\\\n\
7643 #define _GCC_PTRDIFF_T\n",
7644 "-e", "/[ \t]ptrdiff_t/a\\\n\
7646 "-e", "/[ \t]wchar_t/i\\\n\
7647 #ifndef _GCC_WCHAR_T\\\n\
7648 #define _GCC_WCHAR_T\n",
7649 "-e", "/[ \t]wchar_t/a\\\n\
7653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7655 * Description of Vxworks_Needs_Vxtypes fix
7657 tSCC zVxworks_Needs_VxtypesName[] =
7658 "vxworks_needs_vxtypes";
7661 * File name selection pattern
7663 tSCC zVxworks_Needs_VxtypesList[] =
7666 * Machine/OS name selection pattern
7668 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7671 * content selection pattern - do fix if pattern found
7673 tSCC zVxworks_Needs_VxtypesSelect0[] =
7674 "uint_t([ \t]+_clocks_per_sec)";
7676 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
7677 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
7678 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
7681 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7683 static const char* apzVxworks_Needs_VxtypesPatch[] = {
7688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7690 * Description of Vxworks_Needs_Vxworks fix
7692 tSCC zVxworks_Needs_VxworksName[] =
7693 "vxworks_needs_vxworks";
7696 * File name selection pattern
7698 tSCC zVxworks_Needs_VxworksList[] =
7701 * Machine/OS name selection pattern
7703 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
7706 * content selection pattern - do fix if pattern found
7708 tSCC zVxworks_Needs_VxworksSelect0[] =
7709 "#[ \t]define[ \t]+__INCstath";
7712 * perform the 'test' shell command - do fix on success
7714 tSCC zVxworks_Needs_VxworksTest0[] =
7715 " -r types/vxTypesOld.h";
7716 tSCC zVxworks_Needs_VxworksTest1[] =
7717 " -n \"`egrep '#include' $file`\"";
7718 tSCC zVxworks_Needs_VxworksTest2[] =
7719 " -n \"`egrep ULONG $file`\"";
7721 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7722 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7723 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7724 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7725 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7726 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7729 * Fix Command Arguments for Vxworks_Needs_Vxworks
7731 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
7732 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7733 #include <types/vxTypesOld.h>\n",
7736 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7738 * Description of Vxworks_Time fix
7740 tSCC zVxworks_TimeName[] =
7744 * File name selection pattern
7746 tSCC zVxworks_TimeList[] =
7749 * Machine/OS name selection pattern
7751 #define apzVxworks_TimeMachs (const char**)NULL
7754 * content selection pattern - do fix if pattern found
7756 tSCC zVxworks_TimeSelect0[] =
7757 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7760 * perform the 'test' shell command - do fix on success
7762 tSCC zVxworks_TimeTest0[] =
7765 #define VXWORKS_TIME_TEST_CT 2
7766 static tTestDesc aVxworks_TimeTests[] = {
7767 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7768 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7771 * Fix Command Arguments for Vxworks_Time
7773 static const char* apzVxworks_TimePatch[] = {
7775 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7776 #ifdef __cplusplus\n\
7777 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7779 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7781 #define __gcc_VOIDFUNCPTR_defined\n\
7783 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7788 * Description of X11_Class fix
7790 tSCC zX11_ClassName[] =
7794 * File name selection pattern
7796 tSCC zX11_ClassList[] =
7799 * Machine/OS name selection pattern
7801 #define apzX11_ClassMachs (const char**)NULL
7804 * content selection pattern - do fix if pattern found
7806 tSCC zX11_ClassSelect0[] =
7807 "^([ \t]*char \\*)class;(.*)";
7810 * content bypass pattern - skip fix if pattern found
7812 tSCC zX11_ClassBypass0[] =
7815 #define X11_CLASS_TEST_CT 2
7816 static tTestDesc aX11_ClassTests[] = {
7817 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7818 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
7821 * Fix Command Arguments for X11_Class
7823 static const char* apzX11_ClassPatch[] = {
7825 "#ifdef __cplusplus\n\
7832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7834 * Description of X11_Class_Usage fix
7836 tSCC zX11_Class_UsageName[] =
7840 * File name selection pattern
7842 tSCC zX11_Class_UsageList[] =
7843 "Xm/BaseClassI.h\0";
7845 * Machine/OS name selection pattern
7847 #define apzX11_Class_UsageMachs (const char**)NULL
7850 * content selection pattern - do fix if pattern found
7852 tSCC zX11_Class_UsageSelect0[] =
7856 * content bypass pattern - skip fix if pattern found
7858 tSCC zX11_Class_UsageBypass0[] =
7861 #define X11_CLASS_USAGE_TEST_CT 2
7862 static tTestDesc aX11_Class_UsageTests[] = {
7863 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7864 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
7867 * Fix Command Arguments for X11_Class_Usage
7869 static const char* apzX11_Class_UsagePatch[] = {
7874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7876 * Description of X11_New fix
7878 tSCC zX11_NewName[] =
7882 * File name selection pattern
7884 tSCC zX11_NewList[] =
7887 * Machine/OS name selection pattern
7889 #define apzX11_NewMachs (const char**)NULL
7892 * content bypass pattern - skip fix if pattern found
7894 tSCC zX11_NewBypass0[] =
7897 #define X11_NEW_TEST_CT 1
7898 static tTestDesc aX11_NewTests[] = {
7899 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
7902 * Fix Command Arguments for X11_New
7904 static const char* apzX11_NewPatch[] = { sed_cmd_z,
7905 "-e", "/Widget\told, new;/i\\\n\
7906 #ifdef __cplusplus\\\n\
7907 \tWidget\told, c_new;\\\n\
7909 "-e", "/Widget\told, new;/a\\\n\
7911 "-e", "s/Widget new,/Widget c_new,/g",
7914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7916 * Description of X11_Sprintf fix
7918 tSCC zX11_SprintfName[] =
7922 * File name selection pattern
7924 tSCC zX11_SprintfList[] =
7925 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
7927 * Machine/OS name selection pattern
7929 #define apzX11_SprintfMachs (const char**)NULL
7932 * content selection pattern - do fix if pattern found
7934 tSCC zX11_SprintfSelect0[] =
7935 "^extern char \\*\tsprintf\\(\\);$";
7937 #define X11_SPRINTF_TEST_CT 1
7938 static tTestDesc aX11_SprintfTests[] = {
7939 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
7942 * Fix Command Arguments for X11_Sprintf
7944 static const char* apzX11_SprintfPatch[] = {
7946 "#ifndef __STDC__\n\
7948 #endif /* !defined __STDC__ */",
7952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7956 #define REGEX_COUNT 239
7957 #define MACH_LIST_SIZE_LIMIT 181
7958 #define FIX_COUNT 196
7961 * Enumerate the fixes
7964 AAB_AIX_STDIO_FIXIDX,
7965 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
7966 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
7967 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7968 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7969 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7970 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7971 AAB_SUN_MEMCPY_FIXIDX,
7973 AIX_SYSMACHINE_FIXIDX,
7974 AIX_SYSWAIT_2_FIXIDX,
7975 AIX_VOLATILE_FIXIDX,
7976 ALPHA___ASSERT_FIXIDX,
7977 ALPHA___EXTERN_PREFIX_FIXIDX,
7978 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7979 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7980 ALPHA_ASSERT_FIXIDX,
7981 ALPHA_BAD_LVAL_FIXIDX,
7982 ALPHA_GETOPT_FIXIDX,
7983 ALPHA_IF_SEMICOLON_FIXIDX,
7984 ALPHA_PARENS_FIXIDX,
7985 ALPHA_PTHREAD_FIXIDX,
7986 ALPHA_PTHREAD_GCC_FIXIDX,
7987 ALPHA_PTHREAD_INIT_FIXIDX,
7990 AVOID_BOOL_DEFINE_FIXIDX,
7991 AVOID_BOOL_TYPE_FIXIDX,
7992 AVOID_WCHAR_T_TYPE_FIXIDX,
7993 BAD_STRUCT_TERM_FIXIDX,
7995 BROKEN_ASSERT_STDIO_FIXIDX,
7996 BROKEN_ASSERT_STDLIB_FIXIDX,
7999 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8000 CTRL_QUOTES_DEF_FIXIDX,
8001 CTRL_QUOTES_USE_FIXIDX,
8003 DARWIN_EXTERNC_FIXIDX,
8004 DARWIN_GCC4_BREAKAGE_FIXIDX,
8005 DARWIN_PRIVATE_EXTERN_FIXIDX,
8006 DARWIN_STDINT_1_FIXIDX,
8007 DARWIN_STDINT_2_FIXIDX,
8008 DARWIN_STDINT_3_FIXIDX,
8009 DARWIN_STDINT_4_FIXIDX,
8010 DEC_INTERN_ASM_FIXIDX,
8011 DJGPP_WCHAR_H_FIXIDX,
8013 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8014 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8015 GLIBC_C99_INLINE_1_FIXIDX,
8016 GLIBC_C99_INLINE_1A_FIXIDX,
8017 GLIBC_C99_INLINE_2_FIXIDX,
8018 GLIBC_C99_INLINE_3_FIXIDX,
8019 GLIBC_C99_INLINE_4_FIXIDX,
8020 GLIBC_MUTEX_INIT_FIXIDX,
8021 GLIBC_STDINT_FIXIDX,
8022 GLIBC_TGMATH_FIXIDX,
8026 HPPA_HPUX_FP_MACROS_FIXIDX,
8027 HPUX10_CPP_POW_INLINE_FIXIDX,
8028 HPUX11_CPP_POW_INLINE_FIXIDX,
8029 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8030 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8031 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8033 HPUX11_FABSF_FIXIDX,
8034 HPUX11_PTHREAD_CONST_FIXIDX,
8035 HPUX11_SIZE_T_FIXIDX,
8036 HPUX11_SNPRINTF_FIXIDX,
8037 HPUX11_VSNPRINTF_FIXIDX,
8038 HPUX8_BOGUS_INLINES_FIXIDX,
8039 HPUX_CTYPE_MACROS_FIXIDX,
8041 HPUX_LONG_DOUBLE_FIXIDX,
8042 HPUX_LONG_DOUBLE_2_FIXIDX,
8043 HPUX_SYSTIME_FIXIDX,
8044 HPUX_SPU_INFO_FIXIDX,
8045 HPUX11_EXTERN_SENDFILE_FIXIDX,
8046 HPUX11_EXTERN_SENDPATH_FIXIDX,
8047 HPUX_EXTERN_ERRNO_FIXIDX,
8048 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8049 HPUX_C99_INTPTR_FIXIDX,
8050 HPUX_C99_INTTYPES_FIXIDX,
8051 HPUX_C99_INTTYPES2_FIXIDX,
8052 HPUX_STDINT_LEAST_FIXIDX,
8053 HPUX_STDINT_FAST_FIXIDX,
8054 HPUX_INTTYPE_INT_LEAST8_T_FIXIDX,
8055 HPUX_INTTYPE_INT8_T_FIXIDX,
8056 HUGE_VAL_HEX_FIXIDX,
8057 HUGE_VALF_HEX_FIXIDX,
8058 HUGE_VALL_HEX_FIXIDX,
8059 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8060 IO_QUOTES_DEF_FIXIDX,
8061 IO_QUOTES_USE_FIXIDX,
8062 IP_MISSING_SEMI_FIXIDX,
8063 IRIX___RESTRICT_FIXIDX,
8064 IRIX___GENERIC1_FIXIDX,
8065 IRIX___GENERIC2_FIXIDX,
8066 IRIX_ASM_APOSTROPHE_FIXIDX,
8067 IRIX_LIMITS_CONST_FIXIDX,
8068 IRIX_SOCKLEN_T_FIXIDX,
8069 IRIX_STDINT_C99_FIXIDX,
8070 IRIX_STDIO_VA_LIST_FIXIDX,
8071 IRIX_WCSFTIME_FIXIDX,
8073 ISC_OMITS_WITH_STDC_FIXIDX,
8074 KANDR_CONCAT_FIXIDX,
8075 LINUX_IA64_UCONTEXT_FIXIDX,
8076 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8077 LYNXOS_MISSING_PUTENV_FIXIDX,
8078 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8079 MACHINE_NAME_FIXIDX,
8080 MATH_EXCEPTION_FIXIDX,
8081 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8082 NESTED_AUTH_DES_FIXIDX,
8083 NESTED_SYS_LIMITS_FIXIDX,
8084 NETBSD_C99_INLINE_1_FIXIDX,
8085 NETBSD_C99_INLINE_2_FIXIDX,
8086 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8087 NEWLIB_STDINT_1_FIXIDX,
8088 NEWLIB_STDINT_2_FIXIDX,
8089 NEXT_MATH_PREFIX_FIXIDX,
8090 NEXT_TEMPLATE_FIXIDX,
8091 NEXT_VOLITILE_FIXIDX,
8092 NEXT_WAIT_UNION_FIXIDX,
8093 NODEENT_SYNTAX_FIXIDX,
8094 OPENBSD_NULL_DEFINITION_FIXIDX,
8095 OBSTACK_LVALUE_CAST_FIXIDX,
8096 OPENBSD_VA_START_FIXIDX,
8097 OSF_NAMESPACE_A_FIXIDX,
8098 OSF_NAMESPACE_C_FIXIDX,
8099 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8100 READ_RET_TYPE_FIXIDX,
8101 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8102 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8103 RS6000_DOUBLE_FIXIDX,
8104 RS6000_FCHMOD_FIXIDX,
8105 RS6000_PARAM_FIXIDX,
8107 SOLARIS_MATH_1_FIXIDX,
8108 SOLARIS_MATH_2_FIXIDX,
8109 SOLARIS_MATH_3_FIXIDX,
8110 SOLARIS_MATH_4_FIXIDX,
8111 SOLARIS_MATH_8_FIXIDX,
8112 SOLARIS_MATH_9_FIXIDX,
8113 SOLARIS_MATH_10_FIXIDX,
8114 SOLARIS_MUTEX_INIT_2_FIXIDX,
8115 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8116 SOLARIS_ONCE_INIT_1_FIXIDX,
8117 SOLARIS_ONCE_INIT_2_FIXIDX,
8118 SOLARIS_INT_CONST_FIXIDX,
8119 SOLARIS_INT_LIMITS_1_FIXIDX,
8120 SOLARIS_INT_LIMITS_2_FIXIDX,
8121 SOLARIS_INT_TYPES_FIXIDX,
8122 SOLARIS_STDIO_TAG_FIXIDX,
8124 STDIO_STDARG_H_FIXIDX,
8125 STDIO_VA_LIST_FIXIDX,
8126 STDIO_VA_LIST_CLIENTS_FIXIDX,
8127 STRICT_ANSI_NOT_FIXIDX,
8128 STRICT_ANSI_NOT_CTD_FIXIDX,
8129 STRICT_ANSI_ONLY_FIXIDX,
8131 STRUCT_SOCKADDR_FIXIDX,
8132 SUN_AUTH_PROTO_FIXIDX,
8133 SUN_BOGUS_IFDEF_FIXIDX,
8134 SUN_CATMACRO_FIXIDX,
8136 SUN_RUSERS_SEMI_FIXIDX,
8138 SUNOS_STRLEN_FIXIDX,
8139 SVR4_DISABLE_OPT_FIXIDX,
8142 SVR4_SIGHANDLER_TYPE_FIXIDX,
8143 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8144 SYSV68_STRING_FIXIDX,
8145 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8146 THREAD_KEYWORD_FIXIDX,
8147 TINFO_CPLUSPLUS_FIXIDX,
8148 ULTRIX_CONST_FIXIDX,
8149 ULTRIX_CONST2_FIXIDX,
8150 VA_I960_MACRO_FIXIDX,
8152 VXWORKS_GCC_PROBLEM_FIXIDX,
8153 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8154 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8155 VXWORKS_TIME_FIXIDX,
8157 X11_CLASS_USAGE_FIXIDX,
8162 tFixDesc fixDescList[ FIX_COUNT ] = {
8163 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8164 apzAab_Aix_StdioMachs,
8165 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8166 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8168 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8169 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8170 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8171 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8173 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8174 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8175 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8176 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8178 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8179 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8180 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8181 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8183 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8184 apzAab_Fd_Zero_Gnu_Types_HMachs,
8185 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8186 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8188 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8189 apzAab_Fd_Zero_Selectbits_HMachs,
8190 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8191 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8193 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8194 apzAab_Solaris_Sys_Varargs_HMachs,
8195 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8196 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8198 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8199 apzAab_Sun_MemcpyMachs,
8200 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8201 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8203 { zAix_PthreadName, zAix_PthreadList,
8204 apzAix_PthreadMachs,
8205 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8206 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8208 { zAix_SysmachineName, zAix_SysmachineList,
8209 apzAix_SysmachineMachs,
8210 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8211 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8213 { zAix_Syswait_2Name, zAix_Syswait_2List,
8214 apzAix_Syswait_2Machs,
8215 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8216 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8218 { zAix_VolatileName, zAix_VolatileList,
8219 apzAix_VolatileMachs,
8220 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8221 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8223 { zAlpha___AssertName, zAlpha___AssertList,
8224 apzAlpha___AssertMachs,
8225 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8226 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8228 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8229 apzAlpha___Extern_PrefixMachs,
8230 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8231 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8233 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8234 apzAlpha___Extern_Prefix_StandardsMachs,
8235 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8236 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8238 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8239 apzAlpha___Extern_Prefix_Sys_StatMachs,
8240 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8241 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8243 { zAlpha_AssertName, zAlpha_AssertList,
8244 apzAlpha_AssertMachs,
8245 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8246 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8248 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8249 apzAlpha_Bad_LvalMachs,
8250 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8251 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8253 { zAlpha_GetoptName, zAlpha_GetoptList,
8254 apzAlpha_GetoptMachs,
8255 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8256 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8258 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
8259 apzAlpha_If_SemicolonMachs,
8260 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8261 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
8263 { zAlpha_ParensName, zAlpha_ParensList,
8264 apzAlpha_ParensMachs,
8265 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8266 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8268 { zAlpha_PthreadName, zAlpha_PthreadList,
8269 apzAlpha_PthreadMachs,
8270 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8271 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8273 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8274 apzAlpha_Pthread_GccMachs,
8275 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8276 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8278 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8279 apzAlpha_Pthread_InitMachs,
8280 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8281 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8283 { zAlpha_SbrkName, zAlpha_SbrkList,
8285 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8286 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8288 { zAlpha_WcharName, zAlpha_WcharList,
8289 apzAlpha_WcharMachs,
8290 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8291 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8293 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8294 apzAvoid_Bool_DefineMachs,
8295 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8296 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8298 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8299 apzAvoid_Bool_TypeMachs,
8300 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8301 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8303 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8304 apzAvoid_Wchar_T_TypeMachs,
8305 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8306 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8308 { zBad_Struct_TermName, zBad_Struct_TermList,
8309 apzBad_Struct_TermMachs,
8310 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8311 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8313 { zBadquoteName, zBadquoteList,
8315 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8316 aBadquoteTests, apzBadquotePatch, 0 },
8318 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8319 apzBroken_Assert_StdioMachs,
8320 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8321 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8323 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8324 apzBroken_Assert_StdlibMachs,
8325 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8326 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8328 { zBroken_CabsName, zBroken_CabsList,
8329 apzBroken_CabsMachs,
8330 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8331 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8333 { zBroken_NanName, zBroken_NanList,
8335 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8336 aBroken_NanTests, apzBroken_NanPatch, 0 },
8338 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8339 apzBsd_Stdio_Attrs_ConflictMachs,
8340 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8341 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8343 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8344 apzCtrl_Quotes_DefMachs,
8345 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8346 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8348 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8349 apzCtrl_Quotes_UseMachs,
8350 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8351 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8353 { zCxx_UnreadyName, zCxx_UnreadyList,
8354 apzCxx_UnreadyMachs,
8355 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8356 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8358 { zDarwin_ExterncName, zDarwin_ExterncList,
8359 apzDarwin_ExterncMachs,
8360 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8361 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
8363 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8364 apzDarwin_Gcc4_BreakageMachs,
8365 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8366 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8368 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8369 apzDarwin_Private_ExternMachs,
8370 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8371 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8373 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
8374 apzDarwin_Stdint_1Machs,
8375 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8376 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
8378 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
8379 apzDarwin_Stdint_2Machs,
8380 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8381 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
8383 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
8384 apzDarwin_Stdint_3Machs,
8385 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8386 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
8388 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
8389 apzDarwin_Stdint_4Machs,
8390 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8391 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
8393 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8394 apzDec_Intern_AsmMachs,
8395 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8396 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8398 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8399 apzDjgpp_Wchar_HMachs,
8400 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8401 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8403 { zEcd_CursorName, zEcd_CursorList,
8405 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8406 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
8408 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8409 apzFreebsd_Gcc3_BreakageMachs,
8410 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8411 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8413 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8414 apzFreebsd_Gcc4_BreakageMachs,
8415 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8416 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8418 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
8419 apzGlibc_C99_Inline_1Machs,
8420 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8421 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
8423 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
8424 apzGlibc_C99_Inline_1aMachs,
8425 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8426 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
8428 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
8429 apzGlibc_C99_Inline_2Machs,
8430 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
8431 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
8433 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
8434 apzGlibc_C99_Inline_3Machs,
8435 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8436 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
8438 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
8439 apzGlibc_C99_Inline_4Machs,
8440 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8441 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
8443 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
8444 apzGlibc_Mutex_InitMachs,
8445 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8446 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
8448 { zGlibc_StdintName, zGlibc_StdintList,
8449 apzGlibc_StdintMachs,
8450 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8451 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
8453 { zGlibc_TgmathName, zGlibc_TgmathList,
8454 apzGlibc_TgmathMachs,
8455 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8456 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
8458 { zGnu_TypesName, zGnu_TypesList,
8460 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8461 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
8463 { zHp_InlineName, zHp_InlineList,
8465 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8466 aHp_InlineTests, apzHp_InlinePatch, 0 },
8468 { zHp_SysfileName, zHp_SysfileList,
8470 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8471 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
8473 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
8474 apzHppa_Hpux_Fp_MacrosMachs,
8475 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8476 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
8478 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
8479 apzHpux10_Cpp_Pow_InlineMachs,
8480 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8481 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
8483 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
8484 apzHpux11_Cpp_Pow_InlineMachs,
8485 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8486 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
8488 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
8489 apzHpux10_Ctype_Declarations1Machs,
8490 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8491 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
8493 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
8494 apzHpux10_Ctype_Declarations2Machs,
8495 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8496 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
8498 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
8499 apzHpux10_Stdio_DeclarationsMachs,
8500 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8501 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
8503 { zHpux11_AbsName, zHpux11_AbsList,
8505 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8506 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
8508 { zHpux11_FabsfName, zHpux11_FabsfList,
8509 apzHpux11_FabsfMachs,
8510 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8511 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
8513 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
8514 apzHpux11_Pthread_ConstMachs,
8515 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8516 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
8518 { zHpux11_Size_TName, zHpux11_Size_TList,
8519 apzHpux11_Size_TMachs,
8520 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8521 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
8523 { zHpux11_SnprintfName, zHpux11_SnprintfList,
8524 apzHpux11_SnprintfMachs,
8525 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8526 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
8528 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
8529 apzHpux11_VsnprintfMachs,
8530 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8531 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
8533 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
8534 apzHpux8_Bogus_InlinesMachs,
8535 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
8536 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
8538 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
8539 apzHpux_Ctype_MacrosMachs,
8540 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8541 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
8543 { zHpux_HtonlName, zHpux_HtonlList,
8545 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8546 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
8548 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
8549 apzHpux_Long_DoubleMachs,
8550 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
8551 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
8553 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
8554 apzHpux_Long_Double_2Machs,
8555 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8556 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
8558 { zHpux_SystimeName, zHpux_SystimeList,
8559 apzHpux_SystimeMachs,
8560 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8561 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
8563 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
8564 apzHpux_Spu_InfoMachs,
8565 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8566 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
8568 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
8569 apzHpux11_Extern_SendfileMachs,
8570 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8571 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
8573 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
8574 apzHpux11_Extern_SendpathMachs,
8575 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8576 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
8578 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
8579 apzHpux_Extern_ErrnoMachs,
8580 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8581 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
8583 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
8584 apzHpux_Pthread_InitializersMachs,
8585 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
8586 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
8588 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
8589 apzHpux_C99_IntptrMachs,
8590 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
8591 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
8593 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
8594 apzHpux_C99_InttypesMachs,
8595 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
8596 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
8598 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
8599 apzHpux_C99_Inttypes2Machs,
8600 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
8601 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
8603 { zHpux_Stdint_LeastName, zHpux_Stdint_LeastList,
8604 apzHpux_Stdint_LeastMachs,
8605 HPUX_STDINT_LEAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8606 aHpux_Stdint_LeastTests, apzHpux_Stdint_LeastPatch, 0 },
8608 { zHpux_Stdint_FastName, zHpux_Stdint_FastList,
8609 apzHpux_Stdint_FastMachs,
8610 HPUX_STDINT_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8611 aHpux_Stdint_FastTests, apzHpux_Stdint_FastPatch, 0 },
8613 { zHpux_Inttype_Int_Least8_TName, zHpux_Inttype_Int_Least8_TList,
8614 apzHpux_Inttype_Int_Least8_TMachs,
8615 HPUX_INTTYPE_INT_LEAST8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8616 aHpux_Inttype_Int_Least8_TTests, apzHpux_Inttype_Int_Least8_TPatch, 0 },
8618 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
8619 apzHpux_Inttype_Int8_TMachs,
8620 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8621 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
8623 { zHuge_Val_HexName, zHuge_Val_HexList,
8624 apzHuge_Val_HexMachs,
8625 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8626 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
8628 { zHuge_Valf_HexName, zHuge_Valf_HexList,
8629 apzHuge_Valf_HexMachs,
8630 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8631 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
8633 { zHuge_Vall_HexName, zHuge_Vall_HexList,
8634 apzHuge_Vall_HexMachs,
8635 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8636 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
8638 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
8639 apzInt_Abort_Free_And_ExitMachs,
8640 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8641 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
8643 { zIo_Quotes_DefName, zIo_Quotes_DefList,
8644 apzIo_Quotes_DefMachs,
8645 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8646 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
8648 { zIo_Quotes_UseName, zIo_Quotes_UseList,
8649 apzIo_Quotes_UseMachs,
8650 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8651 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
8653 { zIp_Missing_SemiName, zIp_Missing_SemiList,
8654 apzIp_Missing_SemiMachs,
8655 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
8656 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
8658 { zIrix___RestrictName, zIrix___RestrictList,
8659 apzIrix___RestrictMachs,
8660 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8661 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8663 { zIrix___Generic1Name, zIrix___Generic1List,
8664 apzIrix___Generic1Machs,
8665 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8666 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8668 { zIrix___Generic2Name, zIrix___Generic2List,
8669 apzIrix___Generic2Machs,
8670 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8671 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8673 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8674 apzIrix_Asm_ApostropheMachs,
8675 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8676 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
8678 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8679 apzIrix_Limits_ConstMachs,
8680 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8681 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8683 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8684 apzIrix_Socklen_TMachs,
8685 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8686 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8688 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
8689 apzIrix_Stdint_C99Machs,
8690 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8691 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
8693 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8694 apzIrix_Stdio_Va_ListMachs,
8695 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8696 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8698 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8699 apzIrix_WcsftimeMachs,
8700 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8701 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8703 { zIsc_FmodName, zIsc_FmodList,
8705 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8706 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
8708 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8709 apzIsc_Omits_With_StdcMachs,
8710 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8711 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8713 { zKandr_ConcatName, zKandr_ConcatList,
8714 apzKandr_ConcatMachs,
8715 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8716 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
8718 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8719 apzLinux_Ia64_UcontextMachs,
8720 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8721 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8723 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8724 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8725 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8726 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
8728 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8729 apzLynxos_Missing_PutenvMachs,
8730 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8731 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
8733 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
8734 apzMachine_Ansi_H_Va_ListMachs,
8735 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8736 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
8738 { zMachine_NameName, zMachine_NameList,
8739 apzMachine_NameMachs,
8740 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8741 aMachine_NameTests, apzMachine_NamePatch, 0 },
8743 { zMath_ExceptionName, zMath_ExceptionList,
8744 apzMath_ExceptionMachs,
8745 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8746 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
8748 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
8749 apzMath_Huge_Val_From_Dbl_MaxMachs,
8750 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
8751 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
8753 { zNested_Auth_DesName, zNested_Auth_DesList,
8754 apzNested_Auth_DesMachs,
8755 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8756 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8758 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8759 apzNested_Sys_LimitsMachs,
8760 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
8761 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
8763 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
8764 apzNetbsd_C99_Inline_1Machs,
8765 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8766 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
8768 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
8769 apzNetbsd_C99_Inline_2Machs,
8770 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8771 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
8773 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8774 apzNetbsd_Extra_SemicolonMachs,
8775 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8776 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8778 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
8779 apzNewlib_Stdint_1Machs,
8780 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
8781 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
8783 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
8784 apzNewlib_Stdint_2Machs,
8785 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8786 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
8788 { zNext_Math_PrefixName, zNext_Math_PrefixList,
8789 apzNext_Math_PrefixMachs,
8790 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8791 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
8793 { zNext_TemplateName, zNext_TemplateList,
8794 apzNext_TemplateMachs,
8795 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8796 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
8798 { zNext_VolitileName, zNext_VolitileList,
8799 apzNext_VolitileMachs,
8800 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8801 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
8803 { zNext_Wait_UnionName, zNext_Wait_UnionList,
8804 apzNext_Wait_UnionMachs,
8805 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8806 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8808 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8809 apzNodeent_SyntaxMachs,
8810 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8811 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8813 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
8814 apzOpenbsd_Null_DefinitionMachs,
8815 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8816 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
8818 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8819 apzObstack_Lvalue_CastMachs,
8820 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8821 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8823 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
8824 apzOpenbsd_Va_StartMachs,
8825 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8826 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8828 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8829 apzOsf_Namespace_AMachs,
8830 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8831 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8833 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8834 apzOsf_Namespace_CMachs,
8835 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8836 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8838 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8839 apzPthread_Incomplete_Struct_ArgumentMachs,
8840 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8841 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8843 { zRead_Ret_TypeName, zRead_Ret_TypeList,
8844 apzRead_Ret_TypeMachs,
8845 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8846 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
8848 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8849 apzRpc_Xdr_Lvalue_Cast_AMachs,
8850 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8851 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8853 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8854 apzRpc_Xdr_Lvalue_Cast_BMachs,
8855 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8856 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8858 { zRs6000_DoubleName, zRs6000_DoubleList,
8859 apzRs6000_DoubleMachs,
8860 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8861 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
8863 { zRs6000_FchmodName, zRs6000_FchmodList,
8864 apzRs6000_FchmodMachs,
8865 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8866 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
8868 { zRs6000_ParamName, zRs6000_ParamList,
8869 apzRs6000_ParamMachs,
8870 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8871 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
8873 { zSco_MathName, zSco_MathList,
8875 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8876 aSco_MathTests, apzSco_MathPatch, 0 },
8878 { zSolaris_Math_1Name, zSolaris_Math_1List,
8879 apzSolaris_Math_1Machs,
8880 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8881 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8883 { zSolaris_Math_2Name, zSolaris_Math_2List,
8884 apzSolaris_Math_2Machs,
8885 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8886 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8888 { zSolaris_Math_3Name, zSolaris_Math_3List,
8889 apzSolaris_Math_3Machs,
8890 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8891 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8893 { zSolaris_Math_4Name, zSolaris_Math_4List,
8894 apzSolaris_Math_4Machs,
8895 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8896 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8898 { zSolaris_Math_8Name, zSolaris_Math_8List,
8899 apzSolaris_Math_8Machs,
8900 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8901 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
8903 { zSolaris_Math_9Name, zSolaris_Math_9List,
8904 apzSolaris_Math_9Machs,
8905 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8906 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
8908 { zSolaris_Math_10Name, zSolaris_Math_10List,
8909 apzSolaris_Math_10Machs,
8910 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8911 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
8913 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8914 apzSolaris_Mutex_Init_2Machs,
8915 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8916 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
8918 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
8919 apzSolaris_Rwlock_Init_1Machs,
8920 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8921 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
8923 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
8924 apzSolaris_Once_Init_1Machs,
8925 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8926 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
8928 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
8929 apzSolaris_Once_Init_2Machs,
8930 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8931 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
8933 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
8934 apzSolaris_Int_ConstMachs,
8935 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8936 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
8938 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
8939 apzSolaris_Int_Limits_1Machs,
8940 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8941 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
8943 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
8944 apzSolaris_Int_Limits_2Machs,
8945 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8946 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
8948 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
8949 apzSolaris_Int_TypesMachs,
8950 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8951 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
8953 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8954 apzSolaris_Stdio_TagMachs,
8955 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8956 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8958 { zStatsswtchName, zStatsswtchList,
8960 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8961 aStatsswtchTests, apzStatsswtchPatch, 0 },
8963 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
8964 apzStdio_Stdarg_HMachs,
8965 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8966 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
8968 { zStdio_Va_ListName, zStdio_Va_ListList,
8969 apzStdio_Va_ListMachs,
8970 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
8971 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
8973 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8974 apzStdio_Va_List_ClientsMachs,
8975 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8976 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8978 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8979 apzStrict_Ansi_NotMachs,
8980 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8981 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8983 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8984 apzStrict_Ansi_Not_CtdMachs,
8985 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8986 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8988 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8989 apzStrict_Ansi_OnlyMachs,
8990 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8991 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8993 { zStruct_FileName, zStruct_FileList,
8994 apzStruct_FileMachs,
8995 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8996 aStruct_FileTests, apzStruct_FilePatch, 0 },
8998 { zStruct_SockaddrName, zStruct_SockaddrList,
8999 apzStruct_SockaddrMachs,
9000 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9001 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9003 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9004 apzSun_Auth_ProtoMachs,
9005 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9006 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9008 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9009 apzSun_Bogus_IfdefMachs,
9010 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9011 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9013 { zSun_CatmacroName, zSun_CatmacroList,
9014 apzSun_CatmacroMachs,
9015 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9016 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9018 { zSun_MallocName, zSun_MallocList,
9020 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9021 aSun_MallocTests, apzSun_MallocPatch, 0 },
9023 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9024 apzSun_Rusers_SemiMachs,
9025 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9026 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9028 { zSun_SignalName, zSun_SignalList,
9030 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9031 aSun_SignalTests, apzSun_SignalPatch, 0 },
9033 { zSunos_StrlenName, zSunos_StrlenList,
9034 apzSunos_StrlenMachs,
9035 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9036 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9038 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9039 apzSvr4_Disable_OptMachs,
9040 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9041 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9043 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9044 apzSvr4_GetcwdMachs,
9045 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9046 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9048 { zSvr4_ProfilName, zSvr4_ProfilList,
9049 apzSvr4_ProfilMachs,
9050 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9051 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9053 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9054 apzSvr4_Sighandler_TypeMachs,
9055 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9056 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9058 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9059 apzSvr4_Undeclared_GetrngeMachs,
9060 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9061 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9063 { zSysv68_StringName, zSysv68_StringList,
9064 apzSysv68_StringMachs,
9065 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9066 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9068 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9069 apzSysz_Stdlib_For_SunMachs,
9070 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9071 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9073 { zThread_KeywordName, zThread_KeywordList,
9074 apzThread_KeywordMachs,
9075 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9076 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9078 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9079 apzTinfo_CplusplusMachs,
9080 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9081 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9083 { zUltrix_ConstName, zUltrix_ConstList,
9084 apzUltrix_ConstMachs,
9085 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9086 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9088 { zUltrix_Const2Name, zUltrix_Const2List,
9089 apzUltrix_Const2Machs,
9090 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9091 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9093 { zVa_I960_MacroName, zVa_I960_MacroList,
9094 apzVa_I960_MacroMachs,
9095 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9096 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9098 { zVoid_NullName, zVoid_NullList,
9100 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9101 aVoid_NullTests, apzVoid_NullPatch, 0 },
9103 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9104 apzVxworks_Gcc_ProblemMachs,
9105 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9106 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9108 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9109 apzVxworks_Needs_VxtypesMachs,
9110 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9111 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9113 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9114 apzVxworks_Needs_VxworksMachs,
9115 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9116 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9118 { zVxworks_TimeName, zVxworks_TimeList,
9119 apzVxworks_TimeMachs,
9120 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9121 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9123 { zX11_ClassName, zX11_ClassList,
9125 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9126 aX11_ClassTests, apzX11_ClassPatch, 0 },
9128 { zX11_Class_UsageName, zX11_Class_UsageList,
9129 apzX11_Class_UsageMachs,
9130 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9131 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9133 { zX11_NewName, zX11_NewList,
9135 X11_NEW_TEST_CT, FD_MACH_ONLY,
9136 aX11_NewTests, apzX11_NewPatch, 0 },
9138 { zX11_SprintfName, zX11_SprintfList,
9139 apzX11_SprintfMachs,
9140 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9141 aX11_SprintfTests, apzX11_SprintfPatch, 0 }